Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/libvorbis-1.2.0/configure @ 62

Last change on this file since 62 was 16, checked in by landauf, 17 years ago

added libvorbis

  • Property svn:executable set to *
File size: 702.3 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""        $as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133         X"$0" : 'X\(//\)$' \| \
134         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137            s//\1/
138            q
139          }
140          /^X\/\(\/\/\)$/{
141            s//\1/
142            q
143          }
144          /^X\/\(\/\).*/{
145            s//\1/
146            q
147          }
148          s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes &&     (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227         /*)
228           for as_base in sh bash ksh sh5; do
229             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230           done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237         # Try only shells that exist, to save several forks.
238         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241  emulate sh
242  NULLCMD=:
243  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244  # is contrary to our usage.  Disable this feature.
245  alias -g '${1+"$@"}'='"$@"'
246  setopt NO_GLOB_SUBST
247else
248  case `(set -o) 2>/dev/null` in
249  *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258  CONFIG_SHELL=$as_shell
259               as_have_required=yes
260               if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278  (exit $1)
279}
280as_func_success () {
281  as_func_return 0
282}
283as_func_failure () {
284  as_func_return 1
285}
286as_func_ret_success () {
287  return 0
288}
289as_func_ret_failure () {
290  return 1
291}
292
293exitcode=0
294if as_func_success; then
295  :
296else
297  exitcode=1
298  echo as_func_success failed.
299fi
300
301if as_func_failure; then
302  exitcode=1
303  echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307  :
308else
309  exitcode=1
310  echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314  exitcode=1
315  echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319  :
320else
321  exitcode=1
322  echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328  as_lineno_1=$LINENO
329  as_lineno_2=$LINENO
330  test "x$as_lineno_1" != "x$as_lineno_2" &&
331  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335  break
336fi
337
338fi
339
340      done
341
342      if test "x$CONFIG_SHELL" != x; then
343  for as_var in BASH_ENV ENV
344        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345        done
346        export CONFIG_SHELL
347        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351    if test $as_have_required = no; then
352  echo This script requires a shell more modern than all the
353      echo shells that I found on your system.  Please install a
354      echo modern shell, or manually run the script under such a
355      echo shell if you do have one.
356      { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367  (exit \$1)
368}
369as_func_success () {
370  as_func_return 0
371}
372as_func_failure () {
373  as_func_return 1
374}
375as_func_ret_success () {
376  return 0
377}
378as_func_ret_failure () {
379  return 1
380}
381
382exitcode=0
383if as_func_success; then
384  :
385else
386  exitcode=1
387  echo as_func_success failed.
388fi
389
390if as_func_failure; then
391  exitcode=1
392  echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396  :
397else
398  exitcode=1
399  echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403  exitcode=1
404  echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408  :
409else
410  exitcode=1
411  echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415  echo No shell found that supports shell functions.
416  echo Please tell autoconf@gnu.org about your system,
417  echo including any error possibly output before this
418  echo message
419}
420
421
422
423  as_lineno_1=$LINENO
424  as_lineno_2=$LINENO
425  test "x$as_lineno_1" != "x$as_lineno_2" &&
426  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429  # uniformly replaced by the line number.  The first 'sed' inserts a
430  # line-number line after each line using $LINENO; the second 'sed'
431  # does the real work.  The second script uses 'N' to pair each
432  # line-number line with the line containing $LINENO, and appends
433  # trailing '-' during substitution so that $LINENO is not a special
434  # case at line end.
435  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436  # scripts with optimization help from Paolo Bonzini.  Blame Lee
437  # E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455   { (exit 1); exit 1; }; }
456
457  # Don't try to exec as it changes $[0], causing all sort of problems
458  # (the dirname of $[0] is not the place where we might find the
459  # original and so on.  Autoconf is especially sensitive to this).
460  . "./$as_me.lineno"
461  # Exit status is that of the last command.
462  exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467  as_dirname=dirname
468else
469  as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475  case `echo 'x\c'` in
476  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477  *)   ECHO_C='\c';;
478  esac;;
479*)
480  ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484   test "X`expr 00001 : '.*\(...\)'`" = X001; then
485  as_expr=expr
486else
487  as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492  rm -f conf$$.dir/conf$$.file
493else
494  rm -f conf$$.dir
495  mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499  as_ln_s='ln -s'
500  # ... but there are two gotchas:
501  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503  # In both cases, we have to default to `cp -p'.
504  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505    as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507  as_ln_s=ln
508else
509  as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515  as_mkdir_p=:
516else
517  test -d ./-p && rmdir ./-p
518  as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522  as_test_x='test -x'
523else
524  if ls -dL / >/dev/null 2>&1; then
525    as_ls_L_option=L
526  else
527    as_ls_L_option=
528  fi
529  as_test_x='
530    eval sh -c '\''
531      if test -d "$1"; then
532        test -d "$1/.";
533      else
534        case $1 in
535        -*)set "./$1";;
536        esac;
537        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538        ???[sx]*):;;*)false;;esac;fi
539    '\'' sh
540  '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553# Check that we are running under the correct shell.
554SHELL=${CONFIG_SHELL-/bin/sh}
555
556case X$ECHO in
557X*--fallback-echo)
558  # Remove one level of quotation (which was required for Make).
559  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560  ;;
561esac
562
563echo=${ECHO-echo}
564if test "X$1" = X--no-reexec; then
565  # Discard the --no-reexec flag, and continue.
566  shift
567elif test "X$1" = X--fallback-echo; then
568  # Avoid inline document here, it may be left over
569  :
570elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571  # Yippee, $echo works!
572  :
573else
574  # Restart under the correct shell.
575  exec $SHELL "$0" --no-reexec ${1+"$@"}
576fi
577
578if test "X$1" = X--fallback-echo; then
579  # used as fallback echo
580  shift
581  cat <<EOF
582$*
583EOF
584  exit 0
585fi
586
587# The HP-UX ksh and POSIX shell print the target directory to stdout
588# if CDPATH is set.
589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591if test -z "$ECHO"; then
592if test "X${echo_test_string+set}" != Xset; then
593# find a string as large as possible, as long as the shell can cope with it
594  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597       echo_test_string=`eval $cmd` &&
598       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599    then
600      break
601    fi
602  done
603fi
604
605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607   test "X$echo_testing_string" = "X$echo_test_string"; then
608  :
609else
610  # The Solaris, AIX, and Digital Unix default echo programs unquote
611  # backslashes.  This makes it impossible to quote backslashes using
612  #   echo "$something" | sed 's/\\/\\\\/g'
613  #
614  # So, first we look for a working echo in the user's PATH.
615
616  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617  for dir in $PATH /usr/ucb; do
618    IFS="$lt_save_ifs"
619    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622       test "X$echo_testing_string" = "X$echo_test_string"; then
623      echo="$dir/echo"
624      break
625    fi
626  done
627  IFS="$lt_save_ifs"
628
629  if test "X$echo" = Xecho; then
630    # We didn't find a better echo, so look for alternatives.
631    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633       test "X$echo_testing_string" = "X$echo_test_string"; then
634      # This shell has a builtin print -r that does the trick.
635      echo='print -r'
636    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637         test "X$CONFIG_SHELL" != X/bin/ksh; then
638      # If we have ksh, try running configure again with it.
639      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640      export ORIGINAL_CONFIG_SHELL
641      CONFIG_SHELL=/bin/ksh
642      export CONFIG_SHELL
643      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644    else
645      # Try using printf.
646      echo='printf %s\n'
647      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649         test "X$echo_testing_string" = "X$echo_test_string"; then
650        # Cool, printf works
651        :
652      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653           test "X$echo_testing_string" = 'X\t' &&
654           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655           test "X$echo_testing_string" = "X$echo_test_string"; then
656        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657        export CONFIG_SHELL
658        SHELL="$CONFIG_SHELL"
659        export SHELL
660        echo="$CONFIG_SHELL $0 --fallback-echo"
661      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662           test "X$echo_testing_string" = 'X\t' &&
663           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664           test "X$echo_testing_string" = "X$echo_test_string"; then
665        echo="$CONFIG_SHELL $0 --fallback-echo"
666      else
667        # maybe with a smaller string...
668        prev=:
669
670        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672          then
673            break
674          fi
675          prev="$cmd"
676        done
677
678        if test "$prev" != 'sed 50q "$0"'; then
679          echo_test_string=`eval $prev`
680          export echo_test_string
681          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682        else
683          # Oops.  We lost completely, so just stick with echo.
684          echo=echo
685        fi
686      fi
687    fi
688  fi
689fi
690fi
691
692# Copy echo and quote the copy suitably for passing to libtool from
693# the Makefile, instead of quoting the original, which is used later.
694ECHO=$echo
695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697fi
698
699
700
701
702tagnames=${tagnames+${tagnames},}CXX
703
704tagnames=${tagnames+${tagnames},}F77
705
706exec 7<&0 </dev/null 6>&1
707
708# Name of the host.
709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710# so uname gets run too.
711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713#
714# Initializations.
715#
716ac_default_prefix=/usr/local
717ac_clean_files=
718ac_config_libobj_dir=.
719LIBOBJS=
720cross_compiling=no
721subdirs=
722MFLAGS=
723MAKEFLAGS=
724SHELL=${CONFIG_SHELL-/bin/sh}
725
726# Identity of this package.
727PACKAGE_NAME=
728PACKAGE_TARNAME=
729PACKAGE_VERSION=
730PACKAGE_STRING=
731PACKAGE_BUGREPORT=
732
733ac_unique_file="lib/mdct.c"
734# Factoring default headers for most tests.
735ac_includes_default="\
736#include <stdio.h>
737#ifdef HAVE_SYS_TYPES_H
738# include <sys/types.h>
739#endif
740#ifdef HAVE_SYS_STAT_H
741# include <sys/stat.h>
742#endif
743#ifdef STDC_HEADERS
744# include <stdlib.h>
745# include <stddef.h>
746#else
747# ifdef HAVE_STDLIB_H
748#  include <stdlib.h>
749# endif
750#endif
751#ifdef HAVE_STRING_H
752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753#  include <memory.h>
754# endif
755# include <string.h>
756#endif
757#ifdef HAVE_STRINGS_H
758# include <strings.h>
759#endif
760#ifdef HAVE_INTTYPES_H
761# include <inttypes.h>
762#endif
763#ifdef HAVE_STDINT_H
764# include <stdint.h>
765#endif
766#ifdef HAVE_UNISTD_H
767# include <unistd.h>
768#endif"
769
770ac_subst_vars='SHELL
771PATH_SEPARATOR
772PACKAGE_NAME
773PACKAGE_TARNAME
774PACKAGE_VERSION
775PACKAGE_STRING
776PACKAGE_BUGREPORT
777exec_prefix
778prefix
779program_transform_name
780bindir
781sbindir
782libexecdir
783datarootdir
784datadir
785sysconfdir
786sharedstatedir
787localstatedir
788includedir
789oldincludedir
790docdir
791infodir
792htmldir
793dvidir
794pdfdir
795psdir
796libdir
797localedir
798mandir
799DEFS
800ECHO_C
801ECHO_N
802ECHO_T
803LIBS
804build_alias
805host_alias
806target_alias
807build
808build_cpu
809build_vendor
810build_os
811host
812host_cpu
813host_vendor
814host_os
815target
816target_cpu
817target_vendor
818target_os
819INSTALL_PROGRAM
820INSTALL_SCRIPT
821INSTALL_DATA
822am__isrc
823CYGPATH_W
824PACKAGE
825VERSION
826ACLOCAL
827AUTOCONF
828AUTOMAKE
829AUTOHEADER
830MAKEINFO
831install_sh
832STRIP
833INSTALL_STRIP_PROGRAM
834mkdir_p
835AWK
836SET_MAKE
837am__leading_dot
838AMTAR
839am__tar
840am__untar
841MAINTAINER_MODE_TRUE
842MAINTAINER_MODE_FALSE
843MAINT
844V_LIB_CURRENT
845V_LIB_REVISION
846V_LIB_AGE
847VF_LIB_CURRENT
848VF_LIB_REVISION
849VF_LIB_AGE
850VE_LIB_CURRENT
851VE_LIB_REVISION
852VE_LIB_AGE
853CC
854CFLAGS
855LDFLAGS
856CPPFLAGS
857ac_ct_CC
858EXEEXT
859OBJEXT
860DEPDIR
861am__include
862am__quote
863AMDEP_TRUE
864AMDEP_FALSE
865AMDEPBACKSLASH
866CCDEPMODE
867am__fastdepCC_TRUE
868am__fastdepCC_FALSE
869CPP
870GREP
871EGREP
872LN_S
873ECHO
874AR
875RANLIB
876CXX
877CXXFLAGS
878ac_ct_CXX
879CXXDEPMODE
880am__fastdepCXX_TRUE
881am__fastdepCXX_FALSE
882CXXCPP
883F77
884FFLAGS
885ac_ct_F77
886LIBTOOL
887XSLTPROC
888PDFXMLTEX
889BUILD_DOCS_TRUE
890BUILD_DOCS_FALSE
891HAVE_PKG_CONFIG
892PKG_CONFIG
893OGG_CFLAGS
894OGG_LIBS
895ALLOCA
896LIBOBJS
897VORBIS_LIBS
898DEBUG
899PROFILE
900pthread_lib
901LTLIBOBJS'
902ac_subst_files=''
903      ac_precious_vars='build_alias
904host_alias
905target_alias
906CC
907CFLAGS
908LDFLAGS
909LIBS
910CPPFLAGS
911CPP
912CXX
913CXXFLAGS
914CCC
915CXXCPP
916F77
917FFLAGS'
918
919
920# Initialize some variables set by options.
921ac_init_help=
922ac_init_version=false
923# The variables have the same names as the options, with
924# dashes changed to underlines.
925cache_file=/dev/null
926exec_prefix=NONE
927no_create=
928no_recursion=
929prefix=NONE
930program_prefix=NONE
931program_suffix=NONE
932program_transform_name=s,x,x,
933silent=
934site=
935srcdir=
936verbose=
937x_includes=NONE
938x_libraries=NONE
939
940# Installation directory options.
941# These are left unexpanded so users can "make install exec_prefix=/foo"
942# and all the variables that are supposed to be based on exec_prefix
943# by default will actually change.
944# Use braces instead of parens because sh, perl, etc. also accept them.
945# (The list follows the same order as the GNU Coding Standards.)
946bindir='${exec_prefix}/bin'
947sbindir='${exec_prefix}/sbin'
948libexecdir='${exec_prefix}/libexec'
949datarootdir='${prefix}/share'
950datadir='${datarootdir}'
951sysconfdir='${prefix}/etc'
952sharedstatedir='${prefix}/com'
953localstatedir='${prefix}/var'
954includedir='${prefix}/include'
955oldincludedir='/usr/include'
956docdir='${datarootdir}/doc/${PACKAGE}'
957infodir='${datarootdir}/info'
958htmldir='${docdir}'
959dvidir='${docdir}'
960pdfdir='${docdir}'
961psdir='${docdir}'
962libdir='${exec_prefix}/lib'
963localedir='${datarootdir}/locale'
964mandir='${datarootdir}/man'
965
966ac_prev=
967ac_dashdash=
968for ac_option
969do
970  # If the previous option needs an argument, assign it.
971  if test -n "$ac_prev"; then
972    eval $ac_prev=\$ac_option
973    ac_prev=
974    continue
975  fi
976
977  case $ac_option in
978  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
979  *)    ac_optarg=yes ;;
980  esac
981
982  # Accept the important Cygnus configure options, so we can diagnose typos.
983
984  case $ac_dashdash$ac_option in
985  --)
986    ac_dashdash=yes ;;
987
988  -bindir | --bindir | --bindi | --bind | --bin | --bi)
989    ac_prev=bindir ;;
990  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
991    bindir=$ac_optarg ;;
992
993  -build | --build | --buil | --bui | --bu)
994    ac_prev=build_alias ;;
995  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
996    build_alias=$ac_optarg ;;
997
998  -cache-file | --cache-file | --cache-fil | --cache-fi \
999  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1000    ac_prev=cache_file ;;
1001  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1002  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1003    cache_file=$ac_optarg ;;
1004
1005  --config-cache | -C)
1006    cache_file=config.cache ;;
1007
1008  -datadir | --datadir | --datadi | --datad)
1009    ac_prev=datadir ;;
1010  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1011    datadir=$ac_optarg ;;
1012
1013  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1014  | --dataroo | --dataro | --datar)
1015    ac_prev=datarootdir ;;
1016  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1017  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1018    datarootdir=$ac_optarg ;;
1019
1020  -disable-* | --disable-*)
1021    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1022    # Reject names that are not valid shell variable names.
1023    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1024      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1025   { (exit 1); exit 1; }; }
1026    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1027    eval enable_$ac_feature=no ;;
1028
1029  -docdir | --docdir | --docdi | --doc | --do)
1030    ac_prev=docdir ;;
1031  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1032    docdir=$ac_optarg ;;
1033
1034  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1035    ac_prev=dvidir ;;
1036  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1037    dvidir=$ac_optarg ;;
1038
1039  -enable-* | --enable-*)
1040    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1041    # Reject names that are not valid shell variable names.
1042    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1043      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1044   { (exit 1); exit 1; }; }
1045    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1046    eval enable_$ac_feature=\$ac_optarg ;;
1047
1048  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1049  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1050  | --exec | --exe | --ex)
1051    ac_prev=exec_prefix ;;
1052  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1053  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1054  | --exec=* | --exe=* | --ex=*)
1055    exec_prefix=$ac_optarg ;;
1056
1057  -gas | --gas | --ga | --g)
1058    # Obsolete; use --with-gas.
1059    with_gas=yes ;;
1060
1061  -help | --help | --hel | --he | -h)
1062    ac_init_help=long ;;
1063  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1064    ac_init_help=recursive ;;
1065  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1066    ac_init_help=short ;;
1067
1068  -host | --host | --hos | --ho)
1069    ac_prev=host_alias ;;
1070  -host=* | --host=* | --hos=* | --ho=*)
1071    host_alias=$ac_optarg ;;
1072
1073  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1074    ac_prev=htmldir ;;
1075  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1076  | --ht=*)
1077    htmldir=$ac_optarg ;;
1078
1079  -includedir | --includedir | --includedi | --included | --include \
1080  | --includ | --inclu | --incl | --inc)
1081    ac_prev=includedir ;;
1082  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1083  | --includ=* | --inclu=* | --incl=* | --inc=*)
1084    includedir=$ac_optarg ;;
1085
1086  -infodir | --infodir | --infodi | --infod | --info | --inf)
1087    ac_prev=infodir ;;
1088  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1089    infodir=$ac_optarg ;;
1090
1091  -libdir | --libdir | --libdi | --libd)
1092    ac_prev=libdir ;;
1093  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1094    libdir=$ac_optarg ;;
1095
1096  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1097  | --libexe | --libex | --libe)
1098    ac_prev=libexecdir ;;
1099  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1100  | --libexe=* | --libex=* | --libe=*)
1101    libexecdir=$ac_optarg ;;
1102
1103  -localedir | --localedir | --localedi | --localed | --locale)
1104    ac_prev=localedir ;;
1105  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1106    localedir=$ac_optarg ;;
1107
1108  -localstatedir | --localstatedir | --localstatedi | --localstated \
1109  | --localstate | --localstat | --localsta | --localst | --locals)
1110    ac_prev=localstatedir ;;
1111  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1112  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1113    localstatedir=$ac_optarg ;;
1114
1115  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1116    ac_prev=mandir ;;
1117  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1118    mandir=$ac_optarg ;;
1119
1120  -nfp | --nfp | --nf)
1121    # Obsolete; use --without-fp.
1122    with_fp=no ;;
1123
1124  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1125  | --no-cr | --no-c | -n)
1126    no_create=yes ;;
1127
1128  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1129  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1130    no_recursion=yes ;;
1131
1132  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1133  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1134  | --oldin | --oldi | --old | --ol | --o)
1135    ac_prev=oldincludedir ;;
1136  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1137  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1138  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1139    oldincludedir=$ac_optarg ;;
1140
1141  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1142    ac_prev=prefix ;;
1143  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1144    prefix=$ac_optarg ;;
1145
1146  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1147  | --program-pre | --program-pr | --program-p)
1148    ac_prev=program_prefix ;;
1149  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1150  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1151    program_prefix=$ac_optarg ;;
1152
1153  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1154  | --program-suf | --program-su | --program-s)
1155    ac_prev=program_suffix ;;
1156  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1157  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1158    program_suffix=$ac_optarg ;;
1159
1160  -program-transform-name | --program-transform-name \
1161  | --program-transform-nam | --program-transform-na \
1162  | --program-transform-n | --program-transform- \
1163  | --program-transform | --program-transfor \
1164  | --program-transfo | --program-transf \
1165  | --program-trans | --program-tran \
1166  | --progr-tra | --program-tr | --program-t)
1167    ac_prev=program_transform_name ;;
1168  -program-transform-name=* | --program-transform-name=* \
1169  | --program-transform-nam=* | --program-transform-na=* \
1170  | --program-transform-n=* | --program-transform-=* \
1171  | --program-transform=* | --program-transfor=* \
1172  | --program-transfo=* | --program-transf=* \
1173  | --program-trans=* | --program-tran=* \
1174  | --progr-tra=* | --program-tr=* | --program-t=*)
1175    program_transform_name=$ac_optarg ;;
1176
1177  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1178    ac_prev=pdfdir ;;
1179  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1180    pdfdir=$ac_optarg ;;
1181
1182  -psdir | --psdir | --psdi | --psd | --ps)
1183    ac_prev=psdir ;;
1184  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1185    psdir=$ac_optarg ;;
1186
1187  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1188  | -silent | --silent | --silen | --sile | --sil)
1189    silent=yes ;;
1190
1191  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1192    ac_prev=sbindir ;;
1193  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1194  | --sbi=* | --sb=*)
1195    sbindir=$ac_optarg ;;
1196
1197  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1198  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1199  | --sharedst | --shareds | --shared | --share | --shar \
1200  | --sha | --sh)
1201    ac_prev=sharedstatedir ;;
1202  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1203  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1204  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1205  | --sha=* | --sh=*)
1206    sharedstatedir=$ac_optarg ;;
1207
1208  -site | --site | --sit)
1209    ac_prev=site ;;
1210  -site=* | --site=* | --sit=*)
1211    site=$ac_optarg ;;
1212
1213  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1214    ac_prev=srcdir ;;
1215  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1216    srcdir=$ac_optarg ;;
1217
1218  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1219  | --syscon | --sysco | --sysc | --sys | --sy)
1220    ac_prev=sysconfdir ;;
1221  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1222  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1223    sysconfdir=$ac_optarg ;;
1224
1225  -target | --target | --targe | --targ | --tar | --ta | --t)
1226    ac_prev=target_alias ;;
1227  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1228    target_alias=$ac_optarg ;;
1229
1230  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1231    verbose=yes ;;
1232
1233  -version | --version | --versio | --versi | --vers | -V)
1234    ac_init_version=: ;;
1235
1236  -with-* | --with-*)
1237    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1238    # Reject names that are not valid shell variable names.
1239    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240      { echo "$as_me: error: invalid package name: $ac_package" >&2
1241   { (exit 1); exit 1; }; }
1242    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1243    eval with_$ac_package=\$ac_optarg ;;
1244
1245  -without-* | --without-*)
1246    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1247    # Reject names that are not valid shell variable names.
1248    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249      { echo "$as_me: error: invalid package name: $ac_package" >&2
1250   { (exit 1); exit 1; }; }
1251    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1252    eval with_$ac_package=no ;;
1253
1254  --x)
1255    # Obsolete; use --with-x.
1256    with_x=yes ;;
1257
1258  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1259  | --x-incl | --x-inc | --x-in | --x-i)
1260    ac_prev=x_includes ;;
1261  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1262  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1263    x_includes=$ac_optarg ;;
1264
1265  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1266  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1267    ac_prev=x_libraries ;;
1268  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1269  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1270    x_libraries=$ac_optarg ;;
1271
1272  -*) { echo "$as_me: error: unrecognized option: $ac_option
1273Try \`$0 --help' for more information." >&2
1274   { (exit 1); exit 1; }; }
1275    ;;
1276
1277  *=*)
1278    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1279    # Reject names that are not valid shell variable names.
1280    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1281      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1282   { (exit 1); exit 1; }; }
1283    eval $ac_envvar=\$ac_optarg
1284    export $ac_envvar ;;
1285
1286  *)
1287    # FIXME: should be removed in autoconf 3.0.
1288    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1289    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1290      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1291    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1292    ;;
1293
1294  esac
1295done
1296
1297if test -n "$ac_prev"; then
1298  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1299  { echo "$as_me: error: missing argument to $ac_option" >&2
1300   { (exit 1); exit 1; }; }
1301fi
1302
1303# Be sure to have absolute directory names.
1304for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1305                datadir sysconfdir sharedstatedir localstatedir includedir \
1306                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1307                libdir localedir mandir
1308do
1309  eval ac_val=\$$ac_var
1310  case $ac_val in
1311    [\\/$]* | ?:[\\/]* )  continue;;
1312    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1313  esac
1314  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1315   { (exit 1); exit 1; }; }
1316done
1317
1318# There might be people who depend on the old broken behavior: `$host'
1319# used to hold the argument of --host etc.
1320# FIXME: To remove some day.
1321build=$build_alias
1322host=$host_alias
1323target=$target_alias
1324
1325# FIXME: To remove some day.
1326if test "x$host_alias" != x; then
1327  if test "x$build_alias" = x; then
1328    cross_compiling=maybe
1329    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1330    If a cross compiler is detected then cross compile mode will be used." >&2
1331  elif test "x$build_alias" != "x$host_alias"; then
1332    cross_compiling=yes
1333  fi
1334fi
1335
1336ac_tool_prefix=
1337test -n "$host_alias" && ac_tool_prefix=$host_alias-
1338
1339test "$silent" = yes && exec 6>/dev/null
1340
1341
1342ac_pwd=`pwd` && test -n "$ac_pwd" &&
1343ac_ls_di=`ls -di .` &&
1344ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1345  { echo "$as_me: error: Working directory cannot be determined" >&2
1346   { (exit 1); exit 1; }; }
1347test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1348  { echo "$as_me: error: pwd does not report name of working directory" >&2
1349   { (exit 1); exit 1; }; }
1350
1351
1352# Find the source files, if location was not specified.
1353if test -z "$srcdir"; then
1354  ac_srcdir_defaulted=yes
1355  # Try the directory containing this script, then the parent directory.
1356  ac_confdir=`$as_dirname -- "$0" ||
1357$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358         X"$0" : 'X\(//\)[^/]' \| \
1359         X"$0" : 'X\(//\)$' \| \
1360         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1361echo X"$0" |
1362    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1363            s//\1/
1364            q
1365          }
1366          /^X\(\/\/\)[^/].*/{
1367            s//\1/
1368            q
1369          }
1370          /^X\(\/\/\)$/{
1371            s//\1/
1372            q
1373          }
1374          /^X\(\/\).*/{
1375            s//\1/
1376            q
1377          }
1378          s/.*/./; q'`
1379  srcdir=$ac_confdir
1380  if test ! -r "$srcdir/$ac_unique_file"; then
1381    srcdir=..
1382  fi
1383else
1384  ac_srcdir_defaulted=no
1385fi
1386if test ! -r "$srcdir/$ac_unique_file"; then
1387  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1388  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1389   { (exit 1); exit 1; }; }
1390fi
1391ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392ac_abs_confdir=`(
1393        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1394   { (exit 1); exit 1; }; }
1395        pwd)`
1396# When building in place, set srcdir=.
1397if test "$ac_abs_confdir" = "$ac_pwd"; then
1398  srcdir=.
1399fi
1400# Remove unnecessary trailing slashes from srcdir.
1401# Double slashes in file names in object file debugging info
1402# mess up M-x gdb in Emacs.
1403case $srcdir in
1404*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1405esac
1406for ac_var in $ac_precious_vars; do
1407  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1408  eval ac_env_${ac_var}_value=\$${ac_var}
1409  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1410  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1411done
1412
1413#
1414# Report the --help message.
1415#
1416if test "$ac_init_help" = "long"; then
1417  # Omit some internal or obsolete options to make the list less imposing.
1418  # This message is too long to be a string in the A/UX 3.1 sh.
1419  cat <<_ACEOF
1420\`configure' configures this package to adapt to many kinds of systems.
1421
1422Usage: $0 [OPTION]... [VAR=VALUE]...
1423
1424To assign environment variables (e.g., CC, CFLAGS...), specify them as
1425VAR=VALUE.  See below for descriptions of some of the useful variables.
1426
1427Defaults for the options are specified in brackets.
1428
1429Configuration:
1430  -h, --help              display this help and exit
1431      --help=short        display options specific to this package
1432      --help=recursive    display the short help of all the included packages
1433  -V, --version           display version information and exit
1434  -q, --quiet, --silent   do not print \`checking...' messages
1435      --cache-file=FILE   cache test results in FILE [disabled]
1436  -C, --config-cache      alias for \`--cache-file=config.cache'
1437  -n, --no-create         do not create output files
1438      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1439
1440Installation directories:
1441  --prefix=PREFIX         install architecture-independent files in PREFIX
1442                          [$ac_default_prefix]
1443  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1444                          [PREFIX]
1445
1446By default, \`make install' will install all the files in
1447\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1448an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1449for instance \`--prefix=\$HOME'.
1450
1451For better control, use the options below.
1452
1453Fine tuning of the installation directories:
1454  --bindir=DIR           user executables [EPREFIX/bin]
1455  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1456  --libexecdir=DIR       program executables [EPREFIX/libexec]
1457  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1458  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1459  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1460  --libdir=DIR           object code libraries [EPREFIX/lib]
1461  --includedir=DIR       C header files [PREFIX/include]
1462  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1463  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1464  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1465  --infodir=DIR          info documentation [DATAROOTDIR/info]
1466  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1467  --mandir=DIR           man documentation [DATAROOTDIR/man]
1468  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1469  --htmldir=DIR          html documentation [DOCDIR]
1470  --dvidir=DIR           dvi documentation [DOCDIR]
1471  --pdfdir=DIR           pdf documentation [DOCDIR]
1472  --psdir=DIR            ps documentation [DOCDIR]
1473_ACEOF
1474
1475  cat <<\_ACEOF
1476
1477Program names:
1478  --program-prefix=PREFIX            prepend PREFIX to installed program names
1479  --program-suffix=SUFFIX            append SUFFIX to installed program names
1480  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1481
1482System types:
1483  --build=BUILD     configure for building on BUILD [guessed]
1484  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1485  --target=TARGET   configure for building compilers for TARGET [HOST]
1486_ACEOF
1487fi
1488
1489if test -n "$ac_init_help"; then
1490
1491  cat <<\_ACEOF
1492
1493Optional Features:
1494  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1495  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1496  --enable-maintainer-mode  enable make rules and dependencies not useful
1497                          (and sometimes confusing) to the casual installer
1498  --disable-dependency-tracking  speeds up one-time build
1499  --enable-dependency-tracking   do not reject slow dependency extractors
1500  --enable-shared[=PKGS]  build shared libraries [default=yes]
1501  --enable-static[=PKGS]  build static libraries [default=yes]
1502  --enable-fast-install[=PKGS]
1503                          optimize for fast installation [default=yes]
1504  --disable-libtool-lock  avoid locking (might break parallel builds)
1505  --enable-docs           build the documentation
1506  --disable-oggtest       Do not try to compile and run a test Ogg program
1507
1508Optional Packages:
1509  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1510  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1511  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1512  --with-pic              try to use only PIC/non-PIC objects [default=use
1513                          both]
1514  --with-tags[=TAGS]      include additional configurations [automatic]
1515  --with-ogg=PFX   Prefix where libogg is installed (optional)
1516  --with-ogg-libraries=DIR   Directory where libogg library is installed (optional)
1517  --with-ogg-includes=DIR   Directory where libogg header files are installed (optional)
1518
1519Some influential environment variables:
1520  CC          C compiler command
1521  CFLAGS      C compiler flags
1522  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1523              nonstandard directory <lib dir>
1524  LIBS        libraries to pass to the linker, e.g. -l<library>
1525  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1526              you have headers in a nonstandard directory <include dir>
1527  CPP         C preprocessor
1528  CXX         C++ compiler command
1529  CXXFLAGS    C++ compiler flags
1530  CXXCPP      C++ preprocessor
1531  F77         Fortran 77 compiler command
1532  FFLAGS      Fortran 77 compiler flags
1533
1534Use these variables to override the choices made by `configure' or to help
1535it to find libraries and programs with nonstandard names/locations.
1536
1537_ACEOF
1538ac_status=$?
1539fi
1540
1541if test "$ac_init_help" = "recursive"; then
1542  # If there are subdirs, report their specific --help.
1543  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544    test -d "$ac_dir" || continue
1545    ac_builddir=.
1546
1547case "$ac_dir" in
1548.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549*)
1550  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1551  # A ".." for each directory in $ac_dir_suffix.
1552  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1553  case $ac_top_builddir_sub in
1554  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556  esac ;;
1557esac
1558ac_abs_top_builddir=$ac_pwd
1559ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560# for backward compatibility:
1561ac_top_builddir=$ac_top_build_prefix
1562
1563case $srcdir in
1564  .)  # We are building in place.
1565    ac_srcdir=.
1566    ac_top_srcdir=$ac_top_builddir_sub
1567    ac_abs_top_srcdir=$ac_pwd ;;
1568  [\\/]* | ?:[\\/]* )  # Absolute name.
1569    ac_srcdir=$srcdir$ac_dir_suffix;
1570    ac_top_srcdir=$srcdir
1571    ac_abs_top_srcdir=$srcdir ;;
1572  *) # Relative name.
1573    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574    ac_top_srcdir=$ac_top_build_prefix$srcdir
1575    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576esac
1577ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578
1579    cd "$ac_dir" || { ac_status=$?; continue; }
1580    # Check for guested configure.
1581    if test -f "$ac_srcdir/configure.gnu"; then
1582      echo &&
1583      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584    elif test -f "$ac_srcdir/configure"; then
1585      echo &&
1586      $SHELL "$ac_srcdir/configure" --help=recursive
1587    else
1588      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589    fi || ac_status=$?
1590    cd "$ac_pwd" || { ac_status=$?; break; }
1591  done
1592fi
1593
1594test -n "$ac_init_help" && exit $ac_status
1595if $ac_init_version; then
1596  cat <<\_ACEOF
1597configure
1598generated by GNU Autoconf 2.61
1599
1600Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16012002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1602This configure script is free software; the Free Software Foundation
1603gives unlimited permission to copy, distribute and modify it.
1604_ACEOF
1605  exit
1606fi
1607cat >config.log <<_ACEOF
1608This file contains any messages produced by compilers while
1609running configure, to aid debugging if configure makes a mistake.
1610
1611It was created by $as_me, which was
1612generated by GNU Autoconf 2.61.  Invocation command line was
1613
1614  $ $0 $@
1615
1616_ACEOF
1617exec 5>>config.log
1618{
1619cat <<_ASUNAME
1620## --------- ##
1621## Platform. ##
1622## --------- ##
1623
1624hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1625uname -m = `(uname -m) 2>/dev/null || echo unknown`
1626uname -r = `(uname -r) 2>/dev/null || echo unknown`
1627uname -s = `(uname -s) 2>/dev/null || echo unknown`
1628uname -v = `(uname -v) 2>/dev/null || echo unknown`
1629
1630/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1631/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1632
1633/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1634/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1635/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1636/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1637/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1638/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1639/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1640
1641_ASUNAME
1642
1643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644for as_dir in $PATH
1645do
1646  IFS=$as_save_IFS
1647  test -z "$as_dir" && as_dir=.
1648  echo "PATH: $as_dir"
1649done
1650IFS=$as_save_IFS
1651
1652} >&5
1653
1654cat >&5 <<_ACEOF
1655
1656
1657## ----------- ##
1658## Core tests. ##
1659## ----------- ##
1660
1661_ACEOF
1662
1663
1664# Keep a trace of the command line.
1665# Strip out --no-create and --no-recursion so they do not pile up.
1666# Strip out --silent because we don't want to record it for future runs.
1667# Also quote any args containing shell meta-characters.
1668# Make two passes to allow for proper duplicate-argument suppression.
1669ac_configure_args=
1670ac_configure_args0=
1671ac_configure_args1=
1672ac_must_keep_next=false
1673for ac_pass in 1 2
1674do
1675  for ac_arg
1676  do
1677    case $ac_arg in
1678    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1679    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1680    | -silent | --silent | --silen | --sile | --sil)
1681      continue ;;
1682    *\'*)
1683      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1684    esac
1685    case $ac_pass in
1686    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1687    2)
1688      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1689      if test $ac_must_keep_next = true; then
1690        ac_must_keep_next=false # Got value, back to normal.
1691      else
1692        case $ac_arg in
1693          *=* | --config-cache | -C | -disable-* | --disable-* \
1694          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1695          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1696          | -with-* | --with-* | -without-* | --without-* | --x)
1697            case "$ac_configure_args0 " in
1698              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1699            esac
1700            ;;
1701          -* ) ac_must_keep_next=true ;;
1702        esac
1703      fi
1704      ac_configure_args="$ac_configure_args '$ac_arg'"
1705      ;;
1706    esac
1707  done
1708done
1709$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1710$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1711
1712# When interrupted or exit'd, cleanup temporary files, and complete
1713# config.log.  We remove comments because anyway the quotes in there
1714# would cause problems or look ugly.
1715# WARNING: Use '\'' to represent an apostrophe within the trap.
1716# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1717trap 'exit_status=$?
1718  # Save into config.log some information that might help in debugging.
1719  {
1720    echo
1721
1722    cat <<\_ASBOX
1723## ---------------- ##
1724## Cache variables. ##
1725## ---------------- ##
1726_ASBOX
1727    echo
1728    # The following way of writing the cache mishandles newlines in values,
1729(
1730  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1731    eval ac_val=\$$ac_var
1732    case $ac_val in #(
1733    *${as_nl}*)
1734      case $ac_var in #(
1735      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1736echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1737      esac
1738      case $ac_var in #(
1739      _ | IFS | as_nl) ;; #(
1740      *) $as_unset $ac_var ;;
1741      esac ;;
1742    esac
1743  done
1744  (set) 2>&1 |
1745    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1746    *${as_nl}ac_space=\ *)
1747      sed -n \
1748        "s/'\''/'\''\\\\'\'''\''/g;
1749          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1750      ;; #(
1751    *)
1752      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1753      ;;
1754    esac |
1755    sort
1756)
1757    echo
1758
1759    cat <<\_ASBOX
1760## ----------------- ##
1761## Output variables. ##
1762## ----------------- ##
1763_ASBOX
1764    echo
1765    for ac_var in $ac_subst_vars
1766    do
1767      eval ac_val=\$$ac_var
1768      case $ac_val in
1769      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1770      esac
1771      echo "$ac_var='\''$ac_val'\''"
1772    done | sort
1773    echo
1774
1775    if test -n "$ac_subst_files"; then
1776      cat <<\_ASBOX
1777## ------------------- ##
1778## File substitutions. ##
1779## ------------------- ##
1780_ASBOX
1781      echo
1782      for ac_var in $ac_subst_files
1783      do
1784        eval ac_val=\$$ac_var
1785        case $ac_val in
1786        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1787        esac
1788        echo "$ac_var='\''$ac_val'\''"
1789      done | sort
1790      echo
1791    fi
1792
1793    if test -s confdefs.h; then
1794      cat <<\_ASBOX
1795## ----------- ##
1796## confdefs.h. ##
1797## ----------- ##
1798_ASBOX
1799      echo
1800      cat confdefs.h
1801      echo
1802    fi
1803    test "$ac_signal" != 0 &&
1804      echo "$as_me: caught signal $ac_signal"
1805    echo "$as_me: exit $exit_status"
1806  } >&5
1807  rm -f core *.core core.conftest.* &&
1808    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1809    exit $exit_status
1810' 0
1811for ac_signal in 1 2 13 15; do
1812  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1813done
1814ac_signal=0
1815
1816# confdefs.h avoids OS command line length limits that DEFS can exceed.
1817rm -f -r conftest* confdefs.h
1818
1819# Predefined preprocessor variables.
1820
1821cat >>confdefs.h <<_ACEOF
1822#define PACKAGE_NAME "$PACKAGE_NAME"
1823_ACEOF
1824
1825
1826cat >>confdefs.h <<_ACEOF
1827#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1828_ACEOF
1829
1830
1831cat >>confdefs.h <<_ACEOF
1832#define PACKAGE_VERSION "$PACKAGE_VERSION"
1833_ACEOF
1834
1835
1836cat >>confdefs.h <<_ACEOF
1837#define PACKAGE_STRING "$PACKAGE_STRING"
1838_ACEOF
1839
1840
1841cat >>confdefs.h <<_ACEOF
1842#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1843_ACEOF
1844
1845
1846# Let the site file select an alternate cache file if it wants to.
1847# Prefer explicitly selected file to automatically selected ones.
1848if test -n "$CONFIG_SITE"; then
1849  set x "$CONFIG_SITE"
1850elif test "x$prefix" != xNONE; then
1851  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1852else
1853  set x "$ac_default_prefix/share/config.site" \
1854        "$ac_default_prefix/etc/config.site"
1855fi
1856shift
1857for ac_site_file
1858do
1859  if test -r "$ac_site_file"; then
1860    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1861echo "$as_me: loading site script $ac_site_file" >&6;}
1862    sed 's/^/| /' "$ac_site_file" >&5
1863    . "$ac_site_file"
1864  fi
1865done
1866
1867if test -r "$cache_file"; then
1868  # Some versions of bash will fail to source /dev/null (special
1869  # files actually), so we avoid doing that.
1870  if test -f "$cache_file"; then
1871    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1872echo "$as_me: loading cache $cache_file" >&6;}
1873    case $cache_file in
1874      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1875      *)                      . "./$cache_file";;
1876    esac
1877  fi
1878else
1879  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1880echo "$as_me: creating cache $cache_file" >&6;}
1881  >$cache_file
1882fi
1883
1884# Check that the precious variables saved in the cache have kept the same
1885# value.
1886ac_cache_corrupted=false
1887for ac_var in $ac_precious_vars; do
1888  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1889  eval ac_new_set=\$ac_env_${ac_var}_set
1890  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1891  eval ac_new_val=\$ac_env_${ac_var}_value
1892  case $ac_old_set,$ac_new_set in
1893    set,)
1894      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1895echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1896      ac_cache_corrupted=: ;;
1897    ,set)
1898      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1899echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1900      ac_cache_corrupted=: ;;
1901    ,);;
1902    *)
1903      if test "x$ac_old_val" != "x$ac_new_val"; then
1904        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1905echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1906        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1907echo "$as_me:   former value:  $ac_old_val" >&2;}
1908        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1909echo "$as_me:   current value: $ac_new_val" >&2;}
1910        ac_cache_corrupted=:
1911      fi;;
1912  esac
1913  # Pass precious variables to config.status.
1914  if test "$ac_new_set" = set; then
1915    case $ac_new_val in
1916    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1917    *) ac_arg=$ac_var=$ac_new_val ;;
1918    esac
1919    case " $ac_configure_args " in
1920      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1921      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1922    esac
1923  fi
1924done
1925if $ac_cache_corrupted; then
1926  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1927echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1928  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1929echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1930   { (exit 1); exit 1; }; }
1931fi
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949ac_ext=c
1950ac_cpp='$CPP $CPPFLAGS'
1951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1953ac_compiler_gnu=$ac_cv_c_compiler_gnu
1954
1955
1956
1957ac_aux_dir=
1958for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1959  if test -f "$ac_dir/install-sh"; then
1960    ac_aux_dir=$ac_dir
1961    ac_install_sh="$ac_aux_dir/install-sh -c"
1962    break
1963  elif test -f "$ac_dir/install.sh"; then
1964    ac_aux_dir=$ac_dir
1965    ac_install_sh="$ac_aux_dir/install.sh -c"
1966    break
1967  elif test -f "$ac_dir/shtool"; then
1968    ac_aux_dir=$ac_dir
1969    ac_install_sh="$ac_aux_dir/shtool install -c"
1970    break
1971  fi
1972done
1973if test -z "$ac_aux_dir"; then
1974  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1975echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1976   { (exit 1); exit 1; }; }
1977fi
1978
1979# These three variables are undocumented and unsupported,
1980# and are intended to be withdrawn in a future Autoconf release.
1981# They can cause serious problems if a builder's source tree is in a directory
1982# whose full name contains unusual characters.
1983ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1984ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1985ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1986
1987
1988# Make sure we can run config.sub.
1989$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1990  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1991echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1992   { (exit 1); exit 1; }; }
1993
1994{ echo "$as_me:$LINENO: checking build system type" >&5
1995echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1996if test "${ac_cv_build+set}" = set; then
1997  echo $ECHO_N "(cached) $ECHO_C" >&6
1998else
1999  ac_build_alias=$build_alias
2000test "x$ac_build_alias" = x &&
2001  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2002test "x$ac_build_alias" = x &&
2003  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2004echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2005   { (exit 1); exit 1; }; }
2006ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2007  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2008echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2009   { (exit 1); exit 1; }; }
2010
2011fi
2012{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2013echo "${ECHO_T}$ac_cv_build" >&6; }
2014case $ac_cv_build in
2015*-*-*) ;;
2016*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2017echo "$as_me: error: invalid value of canonical build" >&2;}
2018   { (exit 1); exit 1; }; };;
2019esac
2020build=$ac_cv_build
2021ac_save_IFS=$IFS; IFS='-'
2022set x $ac_cv_build
2023shift
2024build_cpu=$1
2025build_vendor=$2
2026shift; shift
2027# Remember, the first character of IFS is used to create $*,
2028# except with old shells:
2029build_os=$*
2030IFS=$ac_save_IFS
2031case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2032
2033
2034{ echo "$as_me:$LINENO: checking host system type" >&5
2035echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2036if test "${ac_cv_host+set}" = set; then
2037  echo $ECHO_N "(cached) $ECHO_C" >&6
2038else
2039  if test "x$host_alias" = x; then
2040  ac_cv_host=$ac_cv_build
2041else
2042  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2043    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2044echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2045   { (exit 1); exit 1; }; }
2046fi
2047
2048fi
2049{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2050echo "${ECHO_T}$ac_cv_host" >&6; }
2051case $ac_cv_host in
2052*-*-*) ;;
2053*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2054echo "$as_me: error: invalid value of canonical host" >&2;}
2055   { (exit 1); exit 1; }; };;
2056esac
2057host=$ac_cv_host
2058ac_save_IFS=$IFS; IFS='-'
2059set x $ac_cv_host
2060shift
2061host_cpu=$1
2062host_vendor=$2
2063shift; shift
2064# Remember, the first character of IFS is used to create $*,
2065# except with old shells:
2066host_os=$*
2067IFS=$ac_save_IFS
2068case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2069
2070
2071{ echo "$as_me:$LINENO: checking target system type" >&5
2072echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2073if test "${ac_cv_target+set}" = set; then
2074  echo $ECHO_N "(cached) $ECHO_C" >&6
2075else
2076  if test "x$target_alias" = x; then
2077  ac_cv_target=$ac_cv_host
2078else
2079  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2080    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2081echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2082   { (exit 1); exit 1; }; }
2083fi
2084
2085fi
2086{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2087echo "${ECHO_T}$ac_cv_target" >&6; }
2088case $ac_cv_target in
2089*-*-*) ;;
2090*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2091echo "$as_me: error: invalid value of canonical target" >&2;}
2092   { (exit 1); exit 1; }; };;
2093esac
2094target=$ac_cv_target
2095ac_save_IFS=$IFS; IFS='-'
2096set x $ac_cv_target
2097shift
2098target_cpu=$1
2099target_vendor=$2
2100shift; shift
2101# Remember, the first character of IFS is used to create $*,
2102# except with old shells:
2103target_os=$*
2104IFS=$ac_save_IFS
2105case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2106
2107
2108# The aliases save the names the user supplied, while $host etc.
2109# will get canonicalized.
2110test -n "$target_alias" &&
2111  test "$program_prefix$program_suffix$program_transform_name" = \
2112    NONENONEs,x,x, &&
2113  program_prefix=${target_alias}-
2114
2115ac_config_headers="$ac_config_headers config.h"
2116
2117
2118am__api_version='1.10'
2119
2120# Find a good install program.  We prefer a C program (faster),
2121# so one script is as good as another.  But avoid the broken or
2122# incompatible versions:
2123# SysV /etc/install, /usr/sbin/install
2124# SunOS /usr/etc/install
2125# IRIX /sbin/install
2126# AIX /bin/install
2127# AmigaOS /C/install, which installs bootblocks on floppy discs
2128# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2129# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2130# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2131# OS/2's system install, which has a completely different semantic
2132# ./install, which can be erroneously created by make from ./install.sh.
2133{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2134echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2135if test -z "$INSTALL"; then
2136if test "${ac_cv_path_install+set}" = set; then
2137  echo $ECHO_N "(cached) $ECHO_C" >&6
2138else
2139  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140for as_dir in $PATH
2141do
2142  IFS=$as_save_IFS
2143  test -z "$as_dir" && as_dir=.
2144  # Account for people who put trailing slashes in PATH elements.
2145case $as_dir/ in
2146  ./ | .// | /cC/* | \
2147  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2148  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2149  /usr/ucb/* ) ;;
2150  *)
2151    # OSF1 and SCO ODT 3.0 have their own names for install.
2152    # Don't use installbsd from OSF since it installs stuff as root
2153    # by default.
2154    for ac_prog in ginstall scoinst install; do
2155      for ac_exec_ext in '' $ac_executable_extensions; do
2156        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2157          if test $ac_prog = install &&
2158            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2159            # AIX install.  It has an incompatible calling convention.
2160            :
2161          elif test $ac_prog = install &&
2162            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2163            # program-specific install script used by HP pwplus--don't use.
2164            :
2165          else
2166            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2167            break 3
2168          fi
2169        fi
2170      done
2171    done
2172    ;;
2173esac
2174done
2175IFS=$as_save_IFS
2176
2177
2178fi
2179  if test "${ac_cv_path_install+set}" = set; then
2180    INSTALL=$ac_cv_path_install
2181  else
2182    # As a last resort, use the slow shell script.  Don't cache a
2183    # value for INSTALL within a source directory, because that will
2184    # break other packages using the cache if that directory is
2185    # removed, or if the value is a relative name.
2186    INSTALL=$ac_install_sh
2187  fi
2188fi
2189{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2190echo "${ECHO_T}$INSTALL" >&6; }
2191
2192# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2193# It thinks the first close brace ends the variable substitution.
2194test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2195
2196test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2197
2198test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2199
2200{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2201echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2202# Just in case
2203sleep 1
2204echo timestamp > conftest.file
2205# Do `set' in a subshell so we don't clobber the current shell's
2206# arguments.  Must try -L first in case configure is actually a
2207# symlink; some systems play weird games with the mod time of symlinks
2208# (eg FreeBSD returns the mod time of the symlink's containing
2209# directory).
2210if (
2211   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2212   if test "$*" = "X"; then
2213      # -L didn't work.
2214      set X `ls -t $srcdir/configure conftest.file`
2215   fi
2216   rm -f conftest.file
2217   if test "$*" != "X $srcdir/configure conftest.file" \
2218      && test "$*" != "X conftest.file $srcdir/configure"; then
2219
2220      # If neither matched, then we have a broken ls.  This can happen
2221      # if, for instance, CONFIG_SHELL is bash and it inherits a
2222      # broken ls alias from the environment.  This has actually
2223      # happened.  Such a system could not be considered "sane".
2224      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2225alias in your environment" >&5
2226echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2227alias in your environment" >&2;}
2228   { (exit 1); exit 1; }; }
2229   fi
2230
2231   test "$2" = conftest.file
2232   )
2233then
2234   # Ok.
2235   :
2236else
2237   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2238Check your system clock" >&5
2239echo "$as_me: error: newly created file is older than distributed files!
2240Check your system clock" >&2;}
2241   { (exit 1); exit 1; }; }
2242fi
2243{ echo "$as_me:$LINENO: result: yes" >&5
2244echo "${ECHO_T}yes" >&6; }
2245test "$program_prefix" != NONE &&
2246  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2247# Use a double $ so make ignores it.
2248test "$program_suffix" != NONE &&
2249  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2250# Double any \ or $.  echo might interpret backslashes.
2251# By default was `s,x,x', remove it if useless.
2252cat <<\_ACEOF >conftest.sed
2253s/[\\$]/&&/g;s/;s,x,x,$//
2254_ACEOF
2255program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2256rm -f conftest.sed
2257
2258# expand $ac_aux_dir to an absolute path
2259am_aux_dir=`cd $ac_aux_dir && pwd`
2260
2261test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2262# Use eval to expand $SHELL
2263if eval "$MISSING --run true"; then
2264  am_missing_run="$MISSING --run "
2265else
2266  am_missing_run=
2267  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2268echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2269fi
2270
2271{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2272echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2273if test -z "$MKDIR_P"; then
2274  if test "${ac_cv_path_mkdir+set}" = set; then
2275  echo $ECHO_N "(cached) $ECHO_C" >&6
2276else
2277  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2279do
2280  IFS=$as_save_IFS
2281  test -z "$as_dir" && as_dir=.
2282  for ac_prog in mkdir gmkdir; do
2283         for ac_exec_ext in '' $ac_executable_extensions; do
2284           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2285           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2286             'mkdir (GNU coreutils) '* | \
2287             'mkdir (coreutils) '* | \
2288             'mkdir (fileutils) '4.1*)
2289               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2290               break 3;;
2291           esac
2292         done
2293       done
2294done
2295IFS=$as_save_IFS
2296
2297fi
2298
2299  if test "${ac_cv_path_mkdir+set}" = set; then
2300    MKDIR_P="$ac_cv_path_mkdir -p"
2301  else
2302    # As a last resort, use the slow shell script.  Don't cache a
2303    # value for MKDIR_P within a source directory, because that will
2304    # break other packages using the cache if that directory is
2305    # removed, or if the value is a relative name.
2306    test -d ./--version && rmdir ./--version
2307    MKDIR_P="$ac_install_sh -d"
2308  fi
2309fi
2310{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2311echo "${ECHO_T}$MKDIR_P" >&6; }
2312
2313mkdir_p="$MKDIR_P"
2314case $mkdir_p in
2315  [\\/$]* | ?:[\\/]*) ;;
2316  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2317esac
2318
2319for ac_prog in gawk mawk nawk awk
2320do
2321  # Extract the first word of "$ac_prog", so it can be a program name with args.
2322set dummy $ac_prog; ac_word=$2
2323{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2325if test "${ac_cv_prog_AWK+set}" = set; then
2326  echo $ECHO_N "(cached) $ECHO_C" >&6
2327else
2328  if test -n "$AWK"; then
2329  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2330else
2331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332for as_dir in $PATH
2333do
2334  IFS=$as_save_IFS
2335  test -z "$as_dir" && as_dir=.
2336  for ac_exec_ext in '' $ac_executable_extensions; do
2337  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2338    ac_cv_prog_AWK="$ac_prog"
2339    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2340    break 2
2341  fi
2342done
2343done
2344IFS=$as_save_IFS
2345
2346fi
2347fi
2348AWK=$ac_cv_prog_AWK
2349if test -n "$AWK"; then
2350  { echo "$as_me:$LINENO: result: $AWK" >&5
2351echo "${ECHO_T}$AWK" >&6; }
2352else
2353  { echo "$as_me:$LINENO: result: no" >&5
2354echo "${ECHO_T}no" >&6; }
2355fi
2356
2357
2358  test -n "$AWK" && break
2359done
2360
2361{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2362echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2363set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2364if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2365  echo $ECHO_N "(cached) $ECHO_C" >&6
2366else
2367  cat >conftest.make <<\_ACEOF
2368SHELL = /bin/sh
2369all:
2370        @echo '@@@%%%=$(MAKE)=@@@%%%'
2371_ACEOF
2372# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2373case `${MAKE-make} -f conftest.make 2>/dev/null` in
2374  *@@@%%%=?*=@@@%%%*)
2375    eval ac_cv_prog_make_${ac_make}_set=yes;;
2376  *)
2377    eval ac_cv_prog_make_${ac_make}_set=no;;
2378esac
2379rm -f conftest.make
2380fi
2381if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2382  { echo "$as_me:$LINENO: result: yes" >&5
2383echo "${ECHO_T}yes" >&6; }
2384  SET_MAKE=
2385else
2386  { echo "$as_me:$LINENO: result: no" >&5
2387echo "${ECHO_T}no" >&6; }
2388  SET_MAKE="MAKE=${MAKE-make}"
2389fi
2390
2391rm -rf .tst 2>/dev/null
2392mkdir .tst 2>/dev/null
2393if test -d .tst; then
2394  am__leading_dot=.
2395else
2396  am__leading_dot=_
2397fi
2398rmdir .tst 2>/dev/null
2399
2400if test "`cd $srcdir && pwd`" != "`pwd`"; then
2401  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2402  # is not polluted with repeated "-I."
2403  am__isrc=' -I$(srcdir)'
2404  # test to see if srcdir already configured
2405  if test -f $srcdir/config.status; then
2406    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2407echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2408   { (exit 1); exit 1; }; }
2409  fi
2410fi
2411
2412# test whether we have cygpath
2413if test -z "$CYGPATH_W"; then
2414  if (cygpath --version) >/dev/null 2>/dev/null; then
2415    CYGPATH_W='cygpath -w'
2416  else
2417    CYGPATH_W=echo
2418  fi
2419fi
2420
2421
2422# Define the identity of the package.
2423 PACKAGE=libvorbis
2424 VERSION=1.2.0
2425
2426
2427cat >>confdefs.h <<_ACEOF
2428#define PACKAGE "$PACKAGE"
2429_ACEOF
2430
2431
2432cat >>confdefs.h <<_ACEOF
2433#define VERSION "$VERSION"
2434_ACEOF
2435
2436# Some tools Automake needs.
2437
2438ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2439
2440
2441AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2442
2443
2444AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2445
2446
2447AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2448
2449
2450MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2451
2452install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2453
2454# Installed binaries are usually stripped using `strip' when the user
2455# run `make install-strip'.  However `strip' might not be the right
2456# tool to use in cross-compilation environments, therefore Automake
2457# will honor the `STRIP' environment variable to overrule this program.
2458if test "$cross_compiling" != no; then
2459  if test -n "$ac_tool_prefix"; then
2460  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2461set dummy ${ac_tool_prefix}strip; ac_word=$2
2462{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464if test "${ac_cv_prog_STRIP+set}" = set; then
2465  echo $ECHO_N "(cached) $ECHO_C" >&6
2466else
2467  if test -n "$STRIP"; then
2468  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2469else
2470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471for as_dir in $PATH
2472do
2473  IFS=$as_save_IFS
2474  test -z "$as_dir" && as_dir=.
2475  for ac_exec_ext in '' $ac_executable_extensions; do
2476  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2478    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479    break 2
2480  fi
2481done
2482done
2483IFS=$as_save_IFS
2484
2485fi
2486fi
2487STRIP=$ac_cv_prog_STRIP
2488if test -n "$STRIP"; then
2489  { echo "$as_me:$LINENO: result: $STRIP" >&5
2490echo "${ECHO_T}$STRIP" >&6; }
2491else
2492  { echo "$as_me:$LINENO: result: no" >&5
2493echo "${ECHO_T}no" >&6; }
2494fi
2495
2496
2497fi
2498if test -z "$ac_cv_prog_STRIP"; then
2499  ac_ct_STRIP=$STRIP
2500  # Extract the first word of "strip", so it can be a program name with args.
2501set dummy strip; ac_word=$2
2502{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2504if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2505  echo $ECHO_N "(cached) $ECHO_C" >&6
2506else
2507  if test -n "$ac_ct_STRIP"; then
2508  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2509else
2510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511for as_dir in $PATH
2512do
2513  IFS=$as_save_IFS
2514  test -z "$as_dir" && as_dir=.
2515  for ac_exec_ext in '' $ac_executable_extensions; do
2516  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2517    ac_cv_prog_ac_ct_STRIP="strip"
2518    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519    break 2
2520  fi
2521done
2522done
2523IFS=$as_save_IFS
2524
2525fi
2526fi
2527ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2528if test -n "$ac_ct_STRIP"; then
2529  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2530echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2531else
2532  { echo "$as_me:$LINENO: result: no" >&5
2533echo "${ECHO_T}no" >&6; }
2534fi
2535
2536  if test "x$ac_ct_STRIP" = x; then
2537    STRIP=":"
2538  else
2539    case $cross_compiling:$ac_tool_warned in
2540yes:)
2541{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2542whose name does not start with the host triplet.  If you think this
2543configuration is useful to you, please write to autoconf@gnu.org." >&5
2544echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2545whose name does not start with the host triplet.  If you think this
2546configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2547ac_tool_warned=yes ;;
2548esac
2549    STRIP=$ac_ct_STRIP
2550  fi
2551else
2552  STRIP="$ac_cv_prog_STRIP"
2553fi
2554
2555fi
2556INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2557
2558# We need awk for the "check" target.  The system "awk" is bad on
2559# some platforms.
2560# Always define AMTAR for backward compatibility.
2561
2562AMTAR=${AMTAR-"${am_missing_run}tar"}
2563
2564am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2565
2566
2567
2568
2569
2570{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2571echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2572    # Check whether --enable-maintainer-mode was given.
2573if test "${enable_maintainer_mode+set}" = set; then
2574  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2575else
2576  USE_MAINTAINER_MODE=no
2577fi
2578
2579  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2580echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2581   if test $USE_MAINTAINER_MODE = yes; then
2582  MAINTAINER_MODE_TRUE=
2583  MAINTAINER_MODE_FALSE='#'
2584else
2585  MAINTAINER_MODE_TRUE='#'
2586  MAINTAINER_MODE_FALSE=
2587fi
2588
2589  MAINT=$MAINTAINER_MODE_TRUE
2590
2591
2592
2593
2594V_LIB_CURRENT=4
2595V_LIB_REVISION=0
2596V_LIB_AGE=4
2597VF_LIB_CURRENT=5
2598VF_LIB_REVISION=0
2599VF_LIB_AGE=2
2600VE_LIB_CURRENT=2
2601VE_LIB_REVISION=3
2602VE_LIB_AGE=0
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614cflags_save="$CFLAGS"
2615ac_ext=c
2616ac_cpp='$CPP $CPPFLAGS'
2617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2619ac_compiler_gnu=$ac_cv_c_compiler_gnu
2620if test -n "$ac_tool_prefix"; then
2621  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2622set dummy ${ac_tool_prefix}gcc; ac_word=$2
2623{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2625if test "${ac_cv_prog_CC+set}" = set; then
2626  echo $ECHO_N "(cached) $ECHO_C" >&6
2627else
2628  if test -n "$CC"; then
2629  ac_cv_prog_CC="$CC" # Let the user override the test.
2630else
2631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632for as_dir in $PATH
2633do
2634  IFS=$as_save_IFS
2635  test -z "$as_dir" && as_dir=.
2636  for ac_exec_ext in '' $ac_executable_extensions; do
2637  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2638    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2639    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640    break 2
2641  fi
2642done
2643done
2644IFS=$as_save_IFS
2645
2646fi
2647fi
2648CC=$ac_cv_prog_CC
2649if test -n "$CC"; then
2650  { echo "$as_me:$LINENO: result: $CC" >&5
2651echo "${ECHO_T}$CC" >&6; }
2652else
2653  { echo "$as_me:$LINENO: result: no" >&5
2654echo "${ECHO_T}no" >&6; }
2655fi
2656
2657
2658fi
2659if test -z "$ac_cv_prog_CC"; then
2660  ac_ct_CC=$CC
2661  # Extract the first word of "gcc", so it can be a program name with args.
2662set dummy gcc; ac_word=$2
2663{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2665if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2666  echo $ECHO_N "(cached) $ECHO_C" >&6
2667else
2668  if test -n "$ac_ct_CC"; then
2669  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2670else
2671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672for as_dir in $PATH
2673do
2674  IFS=$as_save_IFS
2675  test -z "$as_dir" && as_dir=.
2676  for ac_exec_ext in '' $ac_executable_extensions; do
2677  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2678    ac_cv_prog_ac_ct_CC="gcc"
2679    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2680    break 2
2681  fi
2682done
2683done
2684IFS=$as_save_IFS
2685
2686fi
2687fi
2688ac_ct_CC=$ac_cv_prog_ac_ct_CC
2689if test -n "$ac_ct_CC"; then
2690  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2691echo "${ECHO_T}$ac_ct_CC" >&6; }
2692else
2693  { echo "$as_me:$LINENO: result: no" >&5
2694echo "${ECHO_T}no" >&6; }
2695fi
2696
2697  if test "x$ac_ct_CC" = x; then
2698    CC=""
2699  else
2700    case $cross_compiling:$ac_tool_warned in
2701yes:)
2702{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2703whose name does not start with the host triplet.  If you think this
2704configuration is useful to you, please write to autoconf@gnu.org." >&5
2705echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2706whose name does not start with the host triplet.  If you think this
2707configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2708ac_tool_warned=yes ;;
2709esac
2710    CC=$ac_ct_CC
2711  fi
2712else
2713  CC="$ac_cv_prog_CC"
2714fi
2715
2716if test -z "$CC"; then
2717          if test -n "$ac_tool_prefix"; then
2718    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2719set dummy ${ac_tool_prefix}cc; ac_word=$2
2720{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2722if test "${ac_cv_prog_CC+set}" = set; then
2723  echo $ECHO_N "(cached) $ECHO_C" >&6
2724else
2725  if test -n "$CC"; then
2726  ac_cv_prog_CC="$CC" # Let the user override the test.
2727else
2728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729for as_dir in $PATH
2730do
2731  IFS=$as_save_IFS
2732  test -z "$as_dir" && as_dir=.
2733  for ac_exec_ext in '' $ac_executable_extensions; do
2734  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2735    ac_cv_prog_CC="${ac_tool_prefix}cc"
2736    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2737    break 2
2738  fi
2739done
2740done
2741IFS=$as_save_IFS
2742
2743fi
2744fi
2745CC=$ac_cv_prog_CC
2746if test -n "$CC"; then
2747  { echo "$as_me:$LINENO: result: $CC" >&5
2748echo "${ECHO_T}$CC" >&6; }
2749else
2750  { echo "$as_me:$LINENO: result: no" >&5
2751echo "${ECHO_T}no" >&6; }
2752fi
2753
2754
2755  fi
2756fi
2757if test -z "$CC"; then
2758  # Extract the first word of "cc", so it can be a program name with args.
2759set dummy cc; ac_word=$2
2760{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2762if test "${ac_cv_prog_CC+set}" = set; then
2763  echo $ECHO_N "(cached) $ECHO_C" >&6
2764else
2765  if test -n "$CC"; then
2766  ac_cv_prog_CC="$CC" # Let the user override the test.
2767else
2768  ac_prog_rejected=no
2769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770for as_dir in $PATH
2771do
2772  IFS=$as_save_IFS
2773  test -z "$as_dir" && as_dir=.
2774  for ac_exec_ext in '' $ac_executable_extensions; do
2775  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2776    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2777       ac_prog_rejected=yes
2778       continue
2779     fi
2780    ac_cv_prog_CC="cc"
2781    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2782    break 2
2783  fi
2784done
2785done
2786IFS=$as_save_IFS
2787
2788if test $ac_prog_rejected = yes; then
2789  # We found a bogon in the path, so make sure we never use it.
2790  set dummy $ac_cv_prog_CC
2791  shift
2792  if test $# != 0; then
2793    # We chose a different compiler from the bogus one.
2794    # However, it has the same basename, so the bogon will be chosen
2795    # first if we set CC to just the basename; use the full file name.
2796    shift
2797    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2798  fi
2799fi
2800fi
2801fi
2802CC=$ac_cv_prog_CC
2803if test -n "$CC"; then
2804  { echo "$as_me:$LINENO: result: $CC" >&5
2805echo "${ECHO_T}$CC" >&6; }
2806else
2807  { echo "$as_me:$LINENO: result: no" >&5
2808echo "${ECHO_T}no" >&6; }
2809fi
2810
2811
2812fi
2813if test -z "$CC"; then
2814  if test -n "$ac_tool_prefix"; then
2815  for ac_prog in cl.exe
2816  do
2817    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2818set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2819{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2821if test "${ac_cv_prog_CC+set}" = set; then
2822  echo $ECHO_N "(cached) $ECHO_C" >&6
2823else
2824  if test -n "$CC"; then
2825  ac_cv_prog_CC="$CC" # Let the user override the test.
2826else
2827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828for as_dir in $PATH
2829do
2830  IFS=$as_save_IFS
2831  test -z "$as_dir" && as_dir=.
2832  for ac_exec_ext in '' $ac_executable_extensions; do
2833  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2834    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2835    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2836    break 2
2837  fi
2838done
2839done
2840IFS=$as_save_IFS
2841
2842fi
2843fi
2844CC=$ac_cv_prog_CC
2845if test -n "$CC"; then
2846  { echo "$as_me:$LINENO: result: $CC" >&5
2847echo "${ECHO_T}$CC" >&6; }
2848else
2849  { echo "$as_me:$LINENO: result: no" >&5
2850echo "${ECHO_T}no" >&6; }
2851fi
2852
2853
2854    test -n "$CC" && break
2855  done
2856fi
2857if test -z "$CC"; then
2858  ac_ct_CC=$CC
2859  for ac_prog in cl.exe
2860do
2861  # Extract the first word of "$ac_prog", so it can be a program name with args.
2862set dummy $ac_prog; ac_word=$2
2863{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2865if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2866  echo $ECHO_N "(cached) $ECHO_C" >&6
2867else
2868  if test -n "$ac_ct_CC"; then
2869  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2870else
2871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872for as_dir in $PATH
2873do
2874  IFS=$as_save_IFS
2875  test -z "$as_dir" && as_dir=.
2876  for ac_exec_ext in '' $ac_executable_extensions; do
2877  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2878    ac_cv_prog_ac_ct_CC="$ac_prog"
2879    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880    break 2
2881  fi
2882done
2883done
2884IFS=$as_save_IFS
2885
2886fi
2887fi
2888ac_ct_CC=$ac_cv_prog_ac_ct_CC
2889if test -n "$ac_ct_CC"; then
2890  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2891echo "${ECHO_T}$ac_ct_CC" >&6; }
2892else
2893  { echo "$as_me:$LINENO: result: no" >&5
2894echo "${ECHO_T}no" >&6; }
2895fi
2896
2897
2898  test -n "$ac_ct_CC" && break
2899done
2900
2901  if test "x$ac_ct_CC" = x; then
2902    CC=""
2903  else
2904    case $cross_compiling:$ac_tool_warned in
2905yes:)
2906{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2907whose name does not start with the host triplet.  If you think this
2908configuration is useful to you, please write to autoconf@gnu.org." >&5
2909echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2910whose name does not start with the host triplet.  If you think this
2911configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2912ac_tool_warned=yes ;;
2913esac
2914    CC=$ac_ct_CC
2915  fi
2916fi
2917
2918fi
2919
2920
2921test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2922See \`config.log' for more details." >&5
2923echo "$as_me: error: no acceptable C compiler found in \$PATH
2924See \`config.log' for more details." >&2;}
2925   { (exit 1); exit 1; }; }
2926
2927# Provide some information about the compiler.
2928echo "$as_me:$LINENO: checking for C compiler version" >&5
2929ac_compiler=`set X $ac_compile; echo $2`
2930{ (ac_try="$ac_compiler --version >&5"
2931case "(($ac_try" in
2932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933  *) ac_try_echo=$ac_try;;
2934esac
2935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936  (eval "$ac_compiler --version >&5") 2>&5
2937  ac_status=$?
2938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939  (exit $ac_status); }
2940{ (ac_try="$ac_compiler -v >&5"
2941case "(($ac_try" in
2942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943  *) ac_try_echo=$ac_try;;
2944esac
2945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946  (eval "$ac_compiler -v >&5") 2>&5
2947  ac_status=$?
2948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949  (exit $ac_status); }
2950{ (ac_try="$ac_compiler -V >&5"
2951case "(($ac_try" in
2952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953  *) ac_try_echo=$ac_try;;
2954esac
2955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956  (eval "$ac_compiler -V >&5") 2>&5
2957  ac_status=$?
2958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959  (exit $ac_status); }
2960
2961cat >conftest.$ac_ext <<_ACEOF
2962/* confdefs.h.  */
2963_ACEOF
2964cat confdefs.h >>conftest.$ac_ext
2965cat >>conftest.$ac_ext <<_ACEOF
2966/* end confdefs.h.  */
2967
2968int
2969main ()
2970{
2971
2972  ;
2973  return 0;
2974}
2975_ACEOF
2976ac_clean_files_save=$ac_clean_files
2977ac_clean_files="$ac_clean_files a.out a.exe b.out"
2978# Try to create an executable without -o first, disregard a.out.
2979# It will help us diagnose broken compilers, and finding out an intuition
2980# of exeext.
2981{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2982echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2983ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2984#
2985# List of possible output files, starting from the most likely.
2986# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2987# only as a last resort.  b.out is created by i960 compilers.
2988ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2989#
2990# The IRIX 6 linker writes into existing files which may not be
2991# executable, retaining their permissions.  Remove them first so a
2992# subsequent execution test works.
2993ac_rmfiles=
2994for ac_file in $ac_files
2995do
2996  case $ac_file in
2997    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2998    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2999  esac
3000done
3001rm -f $ac_rmfiles
3002
3003if { (ac_try="$ac_link_default"
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_link_default") 2>&5
3010  ac_status=$?
3011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012  (exit $ac_status); }; then
3013  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3014# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3015# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3016# so that the user can short-circuit this test for compilers unknown to
3017# Autoconf.
3018for ac_file in $ac_files ''
3019do
3020  test -f "$ac_file" || continue
3021  case $ac_file in
3022    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3023        ;;
3024    [ab].out )
3025        # We found the default executable, but exeext='' is most
3026        # certainly right.
3027        break;;
3028    *.* )
3029        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3030        then :; else
3031           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3032        fi
3033        # We set ac_cv_exeext here because the later test for it is not
3034        # safe: cross compilers may not add the suffix if given an `-o'
3035        # argument, so we may need to know it at that point already.
3036        # Even if this section looks crufty: it has the advantage of
3037        # actually working.
3038        break;;
3039    * )
3040        break;;
3041  esac
3042done
3043test "$ac_cv_exeext" = no && ac_cv_exeext=
3044
3045else
3046  ac_file=''
3047fi
3048
3049{ echo "$as_me:$LINENO: result: $ac_file" >&5
3050echo "${ECHO_T}$ac_file" >&6; }
3051if test -z "$ac_file"; then
3052  echo "$as_me: failed program was:" >&5
3053sed 's/^/| /' conftest.$ac_ext >&5
3054
3055{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3056See \`config.log' for more details." >&5
3057echo "$as_me: error: C compiler cannot create executables
3058See \`config.log' for more details." >&2;}
3059   { (exit 77); exit 77; }; }
3060fi
3061
3062ac_exeext=$ac_cv_exeext
3063
3064# Check that the compiler produces executables we can run.  If not, either
3065# the compiler is broken, or we cross compile.
3066{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3067echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3068# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3069# If not cross compiling, check that we can run a simple program.
3070if test "$cross_compiling" != yes; then
3071  if { ac_try='./$ac_file'
3072  { (case "(($ac_try" in
3073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074  *) ac_try_echo=$ac_try;;
3075esac
3076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077  (eval "$ac_try") 2>&5
3078  ac_status=$?
3079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080  (exit $ac_status); }; }; then
3081    cross_compiling=no
3082  else
3083    if test "$cross_compiling" = maybe; then
3084        cross_compiling=yes
3085    else
3086        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3087If you meant to cross compile, use \`--host'.
3088See \`config.log' for more details." >&5
3089echo "$as_me: error: cannot run C compiled programs.
3090If you meant to cross compile, use \`--host'.
3091See \`config.log' for more details." >&2;}
3092   { (exit 1); exit 1; }; }
3093    fi
3094  fi
3095fi
3096{ echo "$as_me:$LINENO: result: yes" >&5
3097echo "${ECHO_T}yes" >&6; }
3098
3099rm -f a.out a.exe conftest$ac_cv_exeext b.out
3100ac_clean_files=$ac_clean_files_save
3101# Check that the compiler produces executables we can run.  If not, either
3102# the compiler is broken, or we cross compile.
3103{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3104echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3105{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3106echo "${ECHO_T}$cross_compiling" >&6; }
3107
3108{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3109echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3110if { (ac_try="$ac_link"
3111case "(($ac_try" in
3112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113  *) ac_try_echo=$ac_try;;
3114esac
3115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116  (eval "$ac_link") 2>&5
3117  ac_status=$?
3118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119  (exit $ac_status); }; then
3120  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3121# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3122# work properly (i.e., refer to `conftest.exe'), while it won't with
3123# `rm'.
3124for ac_file in conftest.exe conftest conftest.*; do
3125  test -f "$ac_file" || continue
3126  case $ac_file in
3127    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3128    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3129          break;;
3130    * ) break;;
3131  esac
3132done
3133else
3134  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3135See \`config.log' for more details." >&5
3136echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3137See \`config.log' for more details." >&2;}
3138   { (exit 1); exit 1; }; }
3139fi
3140
3141rm -f conftest$ac_cv_exeext
3142{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3143echo "${ECHO_T}$ac_cv_exeext" >&6; }
3144
3145rm -f conftest.$ac_ext
3146EXEEXT=$ac_cv_exeext
3147ac_exeext=$EXEEXT
3148{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3149echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3150if test "${ac_cv_objext+set}" = set; then
3151  echo $ECHO_N "(cached) $ECHO_C" >&6
3152else
3153  cat >conftest.$ac_ext <<_ACEOF
3154/* confdefs.h.  */
3155_ACEOF
3156cat confdefs.h >>conftest.$ac_ext
3157cat >>conftest.$ac_ext <<_ACEOF
3158/* end confdefs.h.  */
3159
3160int
3161main ()
3162{
3163
3164  ;
3165  return 0;
3166}
3167_ACEOF
3168rm -f conftest.o conftest.obj
3169if { (ac_try="$ac_compile"
3170case "(($ac_try" in
3171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172  *) ac_try_echo=$ac_try;;
3173esac
3174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175  (eval "$ac_compile") 2>&5
3176  ac_status=$?
3177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178  (exit $ac_status); }; then
3179  for ac_file in conftest.o conftest.obj conftest.*; do
3180  test -f "$ac_file" || continue;
3181  case $ac_file in
3182    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3183    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3184       break;;
3185  esac
3186done
3187else
3188  echo "$as_me: failed program was:" >&5
3189sed 's/^/| /' conftest.$ac_ext >&5
3190
3191{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3192See \`config.log' for more details." >&5
3193echo "$as_me: error: cannot compute suffix of object files: cannot compile
3194See \`config.log' for more details." >&2;}
3195   { (exit 1); exit 1; }; }
3196fi
3197
3198rm -f conftest.$ac_cv_objext conftest.$ac_ext
3199fi
3200{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3201echo "${ECHO_T}$ac_cv_objext" >&6; }
3202OBJEXT=$ac_cv_objext
3203ac_objext=$OBJEXT
3204{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3205echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3206if test "${ac_cv_c_compiler_gnu+set}" = set; then
3207  echo $ECHO_N "(cached) $ECHO_C" >&6
3208else
3209  cat >conftest.$ac_ext <<_ACEOF
3210/* confdefs.h.  */
3211_ACEOF
3212cat confdefs.h >>conftest.$ac_ext
3213cat >>conftest.$ac_ext <<_ACEOF
3214/* end confdefs.h.  */
3215
3216int
3217main ()
3218{
3219#ifndef __GNUC__
3220       choke me
3221#endif
3222
3223  ;
3224  return 0;
3225}
3226_ACEOF
3227rm -f conftest.$ac_objext
3228if { (ac_try="$ac_compile"
3229case "(($ac_try" in
3230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231  *) ac_try_echo=$ac_try;;
3232esac
3233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234  (eval "$ac_compile") 2>conftest.er1
3235  ac_status=$?
3236  grep -v '^ *+' conftest.er1 >conftest.err
3237  rm -f conftest.er1
3238  cat conftest.err >&5
3239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240  (exit $ac_status); } && {
3241         test -z "$ac_c_werror_flag" ||
3242         test ! -s conftest.err
3243       } && test -s conftest.$ac_objext; then
3244  ac_compiler_gnu=yes
3245else
3246  echo "$as_me: failed program was:" >&5
3247sed 's/^/| /' conftest.$ac_ext >&5
3248
3249        ac_compiler_gnu=no
3250fi
3251
3252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253ac_cv_c_compiler_gnu=$ac_compiler_gnu
3254
3255fi
3256{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3257echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3258GCC=`test $ac_compiler_gnu = yes && echo yes`
3259ac_test_CFLAGS=${CFLAGS+set}
3260ac_save_CFLAGS=$CFLAGS
3261{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3262echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3263if test "${ac_cv_prog_cc_g+set}" = set; then
3264  echo $ECHO_N "(cached) $ECHO_C" >&6
3265else
3266  ac_save_c_werror_flag=$ac_c_werror_flag
3267   ac_c_werror_flag=yes
3268   ac_cv_prog_cc_g=no
3269   CFLAGS="-g"
3270   cat >conftest.$ac_ext <<_ACEOF
3271/* confdefs.h.  */
3272_ACEOF
3273cat confdefs.h >>conftest.$ac_ext
3274cat >>conftest.$ac_ext <<_ACEOF
3275/* end confdefs.h.  */
3276
3277int
3278main ()
3279{
3280
3281  ;
3282  return 0;
3283}
3284_ACEOF
3285rm -f conftest.$ac_objext
3286if { (ac_try="$ac_compile"
3287case "(($ac_try" in
3288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289  *) ac_try_echo=$ac_try;;
3290esac
3291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292  (eval "$ac_compile") 2>conftest.er1
3293  ac_status=$?
3294  grep -v '^ *+' conftest.er1 >conftest.err
3295  rm -f conftest.er1
3296  cat conftest.err >&5
3297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298  (exit $ac_status); } && {
3299         test -z "$ac_c_werror_flag" ||
3300         test ! -s conftest.err
3301       } && test -s conftest.$ac_objext; then
3302  ac_cv_prog_cc_g=yes
3303else
3304  echo "$as_me: failed program was:" >&5
3305sed 's/^/| /' conftest.$ac_ext >&5
3306
3307        CFLAGS=""
3308      cat >conftest.$ac_ext <<_ACEOF
3309/* confdefs.h.  */
3310_ACEOF
3311cat confdefs.h >>conftest.$ac_ext
3312cat >>conftest.$ac_ext <<_ACEOF
3313/* end confdefs.h.  */
3314
3315int
3316main ()
3317{
3318
3319  ;
3320  return 0;
3321}
3322_ACEOF
3323rm -f conftest.$ac_objext
3324if { (ac_try="$ac_compile"
3325case "(($ac_try" in
3326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327  *) ac_try_echo=$ac_try;;
3328esac
3329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330  (eval "$ac_compile") 2>conftest.er1
3331  ac_status=$?
3332  grep -v '^ *+' conftest.er1 >conftest.err
3333  rm -f conftest.er1
3334  cat conftest.err >&5
3335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336  (exit $ac_status); } && {
3337         test -z "$ac_c_werror_flag" ||
3338         test ! -s conftest.err
3339       } && test -s conftest.$ac_objext; then
3340  :
3341else
3342  echo "$as_me: failed program was:" >&5
3343sed 's/^/| /' conftest.$ac_ext >&5
3344
3345        ac_c_werror_flag=$ac_save_c_werror_flag
3346         CFLAGS="-g"
3347         cat >conftest.$ac_ext <<_ACEOF
3348/* confdefs.h.  */
3349_ACEOF
3350cat confdefs.h >>conftest.$ac_ext
3351cat >>conftest.$ac_ext <<_ACEOF
3352/* end confdefs.h.  */
3353
3354int
3355main ()
3356{
3357
3358  ;
3359  return 0;
3360}
3361_ACEOF
3362rm -f conftest.$ac_objext
3363if { (ac_try="$ac_compile"
3364case "(($ac_try" in
3365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366  *) ac_try_echo=$ac_try;;
3367esac
3368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3369  (eval "$ac_compile") 2>conftest.er1
3370  ac_status=$?
3371  grep -v '^ *+' conftest.er1 >conftest.err
3372  rm -f conftest.er1
3373  cat conftest.err >&5
3374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375  (exit $ac_status); } && {
3376         test -z "$ac_c_werror_flag" ||
3377         test ! -s conftest.err
3378       } && test -s conftest.$ac_objext; then
3379  ac_cv_prog_cc_g=yes
3380else
3381  echo "$as_me: failed program was:" >&5
3382sed 's/^/| /' conftest.$ac_ext >&5
3383
3384
3385fi
3386
3387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3388fi
3389
3390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3391fi
3392
3393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3394   ac_c_werror_flag=$ac_save_c_werror_flag
3395fi
3396{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3397echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3398if test "$ac_test_CFLAGS" = set; then
3399  CFLAGS=$ac_save_CFLAGS
3400elif test $ac_cv_prog_cc_g = yes; then
3401  if test "$GCC" = yes; then
3402    CFLAGS="-g -O2"
3403  else
3404    CFLAGS="-g"
3405  fi
3406else
3407  if test "$GCC" = yes; then
3408    CFLAGS="-O2"
3409  else
3410    CFLAGS=
3411  fi
3412fi
3413{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3414echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3415if test "${ac_cv_prog_cc_c89+set}" = set; then
3416  echo $ECHO_N "(cached) $ECHO_C" >&6
3417else
3418  ac_cv_prog_cc_c89=no
3419ac_save_CC=$CC
3420cat >conftest.$ac_ext <<_ACEOF
3421/* confdefs.h.  */
3422_ACEOF
3423cat confdefs.h >>conftest.$ac_ext
3424cat >>conftest.$ac_ext <<_ACEOF
3425/* end confdefs.h.  */
3426#include <stdarg.h>
3427#include <stdio.h>
3428#include <sys/types.h>
3429#include <sys/stat.h>
3430/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3431struct buf { int x; };
3432FILE * (*rcsopen) (struct buf *, struct stat *, int);
3433static char *e (p, i)
3434     char **p;
3435     int i;
3436{
3437  return p[i];
3438}
3439static char *f (char * (*g) (char **, int), char **p, ...)
3440{
3441  char *s;
3442  va_list v;
3443  va_start (v,p);
3444  s = g (p, va_arg (v,int));
3445  va_end (v);
3446  return s;
3447}
3448
3449/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3450   function prototypes and stuff, but not '\xHH' hex character constants.
3451   These don't provoke an error unfortunately, instead are silently treated
3452   as 'x'.  The following induces an error, until -std is added to get
3453   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3454   array size at least.  It's necessary to write '\x00'==0 to get something
3455   that's true only with -std.  */
3456int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3457
3458/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3459   inside strings and character constants.  */
3460#define FOO(x) 'x'
3461int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3462
3463int test (int i, double x);
3464struct s1 {int (*f) (int a);};
3465struct s2 {int (*f) (double a);};
3466int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3467int argc;
3468char **argv;
3469int
3470main ()
3471{
3472return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3473  ;
3474  return 0;
3475}
3476_ACEOF
3477for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3478        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3479do
3480  CC="$ac_save_CC $ac_arg"
3481  rm -f conftest.$ac_objext
3482if { (ac_try="$ac_compile"
3483case "(($ac_try" in
3484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485  *) ac_try_echo=$ac_try;;
3486esac
3487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488  (eval "$ac_compile") 2>conftest.er1
3489  ac_status=$?
3490  grep -v '^ *+' conftest.er1 >conftest.err
3491  rm -f conftest.er1
3492  cat conftest.err >&5
3493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494  (exit $ac_status); } && {
3495         test -z "$ac_c_werror_flag" ||
3496         test ! -s conftest.err
3497       } && test -s conftest.$ac_objext; then
3498  ac_cv_prog_cc_c89=$ac_arg
3499else
3500  echo "$as_me: failed program was:" >&5
3501sed 's/^/| /' conftest.$ac_ext >&5
3502
3503
3504fi
3505
3506rm -f core conftest.err conftest.$ac_objext
3507  test "x$ac_cv_prog_cc_c89" != "xno" && break
3508done
3509rm -f conftest.$ac_ext
3510CC=$ac_save_CC
3511
3512fi
3513# AC_CACHE_VAL
3514case "x$ac_cv_prog_cc_c89" in
3515  x)
3516    { echo "$as_me:$LINENO: result: none needed" >&5
3517echo "${ECHO_T}none needed" >&6; } ;;
3518  xno)
3519    { echo "$as_me:$LINENO: result: unsupported" >&5
3520echo "${ECHO_T}unsupported" >&6; } ;;
3521  *)
3522    CC="$CC $ac_cv_prog_cc_c89"
3523    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3524echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3525esac
3526
3527
3528ac_ext=c
3529ac_cpp='$CPP $CPPFLAGS'
3530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3532ac_compiler_gnu=$ac_cv_c_compiler_gnu
3533DEPDIR="${am__leading_dot}deps"
3534
3535ac_config_commands="$ac_config_commands depfiles"
3536
3537
3538am_make=${MAKE-make}
3539cat > confinc << 'END'
3540am__doit:
3541        @echo done
3542.PHONY: am__doit
3543END
3544# If we don't find an include directive, just comment out the code.
3545{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3546echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3547am__include="#"
3548am__quote=
3549_am_result=none
3550# First try GNU make style include.
3551echo "include confinc" > confmf
3552# We grep out `Entering directory' and `Leaving directory'
3553# messages which can occur if `w' ends up in MAKEFLAGS.
3554# In particular we don't look at `^make:' because GNU make might
3555# be invoked under some other name (usually "gmake"), in which
3556# case it prints its new name instead of `make'.
3557if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3558   am__include=include
3559   am__quote=
3560   _am_result=GNU
3561fi
3562# Now try BSD make style include.
3563if test "$am__include" = "#"; then
3564   echo '.include "confinc"' > confmf
3565   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3566      am__include=.include
3567      am__quote="\""
3568      _am_result=BSD
3569   fi
3570fi
3571
3572
3573{ echo "$as_me:$LINENO: result: $_am_result" >&5
3574echo "${ECHO_T}$_am_result" >&6; }
3575rm -f confinc confmf
3576
3577# Check whether --enable-dependency-tracking was given.
3578if test "${enable_dependency_tracking+set}" = set; then
3579  enableval=$enable_dependency_tracking;
3580fi
3581
3582if test "x$enable_dependency_tracking" != xno; then
3583  am_depcomp="$ac_aux_dir/depcomp"
3584  AMDEPBACKSLASH='\'
3585fi
3586 if test "x$enable_dependency_tracking" != xno; then
3587  AMDEP_TRUE=
3588  AMDEP_FALSE='#'
3589else
3590  AMDEP_TRUE='#'
3591  AMDEP_FALSE=
3592fi
3593
3594
3595
3596depcc="$CC"   am_compiler_list=
3597
3598{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3599echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3600if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3601  echo $ECHO_N "(cached) $ECHO_C" >&6
3602else
3603  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3604  # We make a subdir and do the tests there.  Otherwise we can end up
3605  # making bogus files that we don't know about and never remove.  For
3606  # instance it was reported that on HP-UX the gcc test will end up
3607  # making a dummy file named `D' -- because `-MD' means `put the output
3608  # in D'.
3609  mkdir conftest.dir
3610  # Copy depcomp to subdir because otherwise we won't find it if we're
3611  # using a relative directory.
3612  cp "$am_depcomp" conftest.dir
3613  cd conftest.dir
3614  # We will build objects and dependencies in a subdirectory because
3615  # it helps to detect inapplicable dependency modes.  For instance
3616  # both Tru64's cc and ICC support -MD to output dependencies as a
3617  # side effect of compilation, but ICC will put the dependencies in
3618  # the current directory while Tru64 will put them in the object
3619  # directory.
3620  mkdir sub
3621
3622  am_cv_CC_dependencies_compiler_type=none
3623  if test "$am_compiler_list" = ""; then
3624     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3625  fi
3626  for depmode in $am_compiler_list; do
3627    # Setup a source with many dependencies, because some compilers
3628    # like to wrap large dependency lists on column 80 (with \), and
3629    # we should not choose a depcomp mode which is confused by this.
3630    #
3631    # We need to recreate these files for each test, as the compiler may
3632    # overwrite some of them when testing with obscure command lines.
3633    # This happens at least with the AIX C compiler.
3634    : > sub/conftest.c
3635    for i in 1 2 3 4 5 6; do
3636      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3637      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3638      # Solaris 8's {/usr,}/bin/sh.
3639      touch sub/conftst$i.h
3640    done
3641    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3642
3643    case $depmode in
3644    nosideeffect)
3645      # after this tag, mechanisms are not by side-effect, so they'll
3646      # only be used when explicitly requested
3647      if test "x$enable_dependency_tracking" = xyes; then
3648        continue
3649      else
3650        break
3651      fi
3652      ;;
3653    none) break ;;
3654    esac
3655    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3656    # mode.  It turns out that the SunPro C++ compiler does not properly
3657    # handle `-M -o', and we need to detect this.
3658    if depmode=$depmode \
3659       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3660       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3661       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3662         >/dev/null 2>conftest.err &&
3663       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3664       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3665       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3666       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3667      # icc doesn't choke on unknown options, it will just issue warnings
3668      # or remarks (even with -Werror).  So we grep stderr for any message
3669      # that says an option was ignored or not supported.
3670      # When given -MP, icc 7.0 and 7.1 complain thusly:
3671      #   icc: Command line warning: ignoring option '-M'; no argument required
3672      # The diagnosis changed in icc 8.0:
3673      #   icc: Command line remark: option '-MP' not supported
3674      if (grep 'ignoring option' conftest.err ||
3675          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3676        am_cv_CC_dependencies_compiler_type=$depmode
3677        break
3678      fi
3679    fi
3680  done
3681
3682  cd ..
3683  rm -rf conftest.dir
3684else
3685  am_cv_CC_dependencies_compiler_type=none
3686fi
3687
3688fi
3689{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3690echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3691CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3692
3693 if
3694  test "x$enable_dependency_tracking" != xno \
3695  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3696  am__fastdepCC_TRUE=
3697  am__fastdepCC_FALSE='#'
3698else
3699  am__fastdepCC_TRUE='#'
3700  am__fastdepCC_FALSE=
3701fi
3702
3703
3704ac_ext=c
3705ac_cpp='$CPP $CPPFLAGS'
3706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3710echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3711# On Suns, sometimes $CPP names a directory.
3712if test -n "$CPP" && test -d "$CPP"; then
3713  CPP=
3714fi
3715if test -z "$CPP"; then
3716  if test "${ac_cv_prog_CPP+set}" = set; then
3717  echo $ECHO_N "(cached) $ECHO_C" >&6
3718else
3719      # Double quotes because CPP needs to be expanded
3720    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3721    do
3722      ac_preproc_ok=false
3723for ac_c_preproc_warn_flag in '' yes
3724do
3725  # Use a header file that comes with gcc, so configuring glibc
3726  # with a fresh cross-compiler works.
3727  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3728  # <limits.h> exists even on freestanding compilers.
3729  # On the NeXT, cc -E runs the code through the compiler's parser,
3730  # not just through cpp. "Syntax error" is here to catch this case.
3731  cat >conftest.$ac_ext <<_ACEOF
3732/* confdefs.h.  */
3733_ACEOF
3734cat confdefs.h >>conftest.$ac_ext
3735cat >>conftest.$ac_ext <<_ACEOF
3736/* end confdefs.h.  */
3737#ifdef __STDC__
3738# include <limits.h>
3739#else
3740# include <assert.h>
3741#endif
3742                     Syntax error
3743_ACEOF
3744if { (ac_try="$ac_cpp conftest.$ac_ext"
3745case "(($ac_try" in
3746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747  *) ac_try_echo=$ac_try;;
3748esac
3749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3750  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3751  ac_status=$?
3752  grep -v '^ *+' conftest.er1 >conftest.err
3753  rm -f conftest.er1
3754  cat conftest.err >&5
3755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756  (exit $ac_status); } >/dev/null && {
3757         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3758         test ! -s conftest.err
3759       }; then
3760  :
3761else
3762  echo "$as_me: failed program was:" >&5
3763sed 's/^/| /' conftest.$ac_ext >&5
3764
3765  # Broken: fails on valid input.
3766continue
3767fi
3768
3769rm -f conftest.err conftest.$ac_ext
3770
3771  # OK, works on sane cases.  Now check whether nonexistent headers
3772  # can be detected and how.
3773  cat >conftest.$ac_ext <<_ACEOF
3774/* confdefs.h.  */
3775_ACEOF
3776cat confdefs.h >>conftest.$ac_ext
3777cat >>conftest.$ac_ext <<_ACEOF
3778/* end confdefs.h.  */
3779#include <ac_nonexistent.h>
3780_ACEOF
3781if { (ac_try="$ac_cpp conftest.$ac_ext"
3782case "(($ac_try" in
3783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784  *) ac_try_echo=$ac_try;;
3785esac
3786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3787  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3788  ac_status=$?
3789  grep -v '^ *+' conftest.er1 >conftest.err
3790  rm -f conftest.er1
3791  cat conftest.err >&5
3792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793  (exit $ac_status); } >/dev/null && {
3794         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3795         test ! -s conftest.err
3796       }; then
3797  # Broken: success on invalid input.
3798continue
3799else
3800  echo "$as_me: failed program was:" >&5
3801sed 's/^/| /' conftest.$ac_ext >&5
3802
3803  # Passes both tests.
3804ac_preproc_ok=:
3805break
3806fi
3807
3808rm -f conftest.err conftest.$ac_ext
3809
3810done
3811# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3812rm -f conftest.err conftest.$ac_ext
3813if $ac_preproc_ok; then
3814  break
3815fi
3816
3817    done
3818    ac_cv_prog_CPP=$CPP
3819
3820fi
3821  CPP=$ac_cv_prog_CPP
3822else
3823  ac_cv_prog_CPP=$CPP
3824fi
3825{ echo "$as_me:$LINENO: result: $CPP" >&5
3826echo "${ECHO_T}$CPP" >&6; }
3827ac_preproc_ok=false
3828for ac_c_preproc_warn_flag in '' yes
3829do
3830  # Use a header file that comes with gcc, so configuring glibc
3831  # with a fresh cross-compiler works.
3832  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3833  # <limits.h> exists even on freestanding compilers.
3834  # On the NeXT, cc -E runs the code through the compiler's parser,
3835  # not just through cpp. "Syntax error" is here to catch this case.
3836  cat >conftest.$ac_ext <<_ACEOF
3837/* confdefs.h.  */
3838_ACEOF
3839cat confdefs.h >>conftest.$ac_ext
3840cat >>conftest.$ac_ext <<_ACEOF
3841/* end confdefs.h.  */
3842#ifdef __STDC__
3843# include <limits.h>
3844#else
3845# include <assert.h>
3846#endif
3847                     Syntax error
3848_ACEOF
3849if { (ac_try="$ac_cpp conftest.$ac_ext"
3850case "(($ac_try" in
3851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852  *) ac_try_echo=$ac_try;;
3853esac
3854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3855  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3856  ac_status=$?
3857  grep -v '^ *+' conftest.er1 >conftest.err
3858  rm -f conftest.er1
3859  cat conftest.err >&5
3860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861  (exit $ac_status); } >/dev/null && {
3862         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3863         test ! -s conftest.err
3864       }; then
3865  :
3866else
3867  echo "$as_me: failed program was:" >&5
3868sed 's/^/| /' conftest.$ac_ext >&5
3869
3870  # Broken: fails on valid input.
3871continue
3872fi
3873
3874rm -f conftest.err conftest.$ac_ext
3875
3876  # OK, works on sane cases.  Now check whether nonexistent headers
3877  # can be detected and how.
3878  cat >conftest.$ac_ext <<_ACEOF
3879/* confdefs.h.  */
3880_ACEOF
3881cat confdefs.h >>conftest.$ac_ext
3882cat >>conftest.$ac_ext <<_ACEOF
3883/* end confdefs.h.  */
3884#include <ac_nonexistent.h>
3885_ACEOF
3886if { (ac_try="$ac_cpp conftest.$ac_ext"
3887case "(($ac_try" in
3888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889  *) ac_try_echo=$ac_try;;
3890esac
3891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3893  ac_status=$?
3894  grep -v '^ *+' conftest.er1 >conftest.err
3895  rm -f conftest.er1
3896  cat conftest.err >&5
3897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898  (exit $ac_status); } >/dev/null && {
3899         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3900         test ! -s conftest.err
3901       }; then
3902  # Broken: success on invalid input.
3903continue
3904else
3905  echo "$as_me: failed program was:" >&5
3906sed 's/^/| /' conftest.$ac_ext >&5
3907
3908  # Passes both tests.
3909ac_preproc_ok=:
3910break
3911fi
3912
3913rm -f conftest.err conftest.$ac_ext
3914
3915done
3916# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3917rm -f conftest.err conftest.$ac_ext
3918if $ac_preproc_ok; then
3919  :
3920else
3921  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3922See \`config.log' for more details." >&5
3923echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3924See \`config.log' for more details." >&2;}
3925   { (exit 1); exit 1; }; }
3926fi
3927
3928ac_ext=c
3929ac_cpp='$CPP $CPPFLAGS'
3930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932ac_compiler_gnu=$ac_cv_c_compiler_gnu
3933
3934CFLAGS="$cflags_save"
3935
3936# Check whether --enable-shared was given.
3937if test "${enable_shared+set}" = set; then
3938  enableval=$enable_shared; p=${PACKAGE-default}
3939    case $enableval in
3940    yes) enable_shared=yes ;;
3941    no) enable_shared=no ;;
3942    *)
3943      enable_shared=no
3944      # Look at the argument we got.  We use all the common list separators.
3945      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3946      for pkg in $enableval; do
3947        IFS="$lt_save_ifs"
3948        if test "X$pkg" = "X$p"; then
3949          enable_shared=yes
3950        fi
3951      done
3952      IFS="$lt_save_ifs"
3953      ;;
3954    esac
3955else
3956  enable_shared=yes
3957fi
3958
3959
3960# Check whether --enable-static was given.
3961if test "${enable_static+set}" = set; then
3962  enableval=$enable_static; p=${PACKAGE-default}
3963    case $enableval in
3964    yes) enable_static=yes ;;
3965    no) enable_static=no ;;
3966    *)
3967     enable_static=no
3968      # Look at the argument we got.  We use all the common list separators.
3969      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3970      for pkg in $enableval; do
3971        IFS="$lt_save_ifs"
3972        if test "X$pkg" = "X$p"; then
3973          enable_static=yes
3974        fi
3975      done
3976      IFS="$lt_save_ifs"
3977      ;;
3978    esac
3979else
3980  enable_static=yes
3981fi
3982
3983
3984# Check whether --enable-fast-install was given.
3985if test "${enable_fast_install+set}" = set; then
3986  enableval=$enable_fast_install; p=${PACKAGE-default}
3987    case $enableval in
3988    yes) enable_fast_install=yes ;;
3989    no) enable_fast_install=no ;;
3990    *)
3991      enable_fast_install=no
3992      # Look at the argument we got.  We use all the common list separators.
3993      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3994      for pkg in $enableval; do
3995        IFS="$lt_save_ifs"
3996        if test "X$pkg" = "X$p"; then
3997          enable_fast_install=yes
3998        fi
3999      done
4000      IFS="$lt_save_ifs"
4001      ;;
4002    esac
4003else
4004  enable_fast_install=yes
4005fi
4006
4007
4008{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4009echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4010if test "${lt_cv_path_SED+set}" = set; then
4011  echo $ECHO_N "(cached) $ECHO_C" >&6
4012else
4013  # Loop through the user's path and test for sed and gsed.
4014# Then use that list of sed's as ones to test for truncation.
4015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016for as_dir in $PATH
4017do
4018  IFS=$as_save_IFS
4019  test -z "$as_dir" && as_dir=.
4020  for lt_ac_prog in sed gsed; do
4021    for ac_exec_ext in '' $ac_executable_extensions; do
4022      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4023        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4024      fi
4025    done
4026  done
4027done
4028lt_ac_max=0
4029lt_ac_count=0
4030# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4031# along with /bin/sed that truncates output.
4032for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4033  test ! -f $lt_ac_sed && continue
4034  cat /dev/null > conftest.in
4035  lt_ac_count=0
4036  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4037  # Check for GNU sed and select it if it is found.
4038  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4039    lt_cv_path_SED=$lt_ac_sed
4040    break
4041  fi
4042  while true; do
4043    cat conftest.in conftest.in >conftest.tmp
4044    mv conftest.tmp conftest.in
4045    cp conftest.in conftest.nl
4046    echo >>conftest.nl
4047    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4048    cmp -s conftest.out conftest.nl || break
4049    # 10000 chars as input seems more than enough
4050    test $lt_ac_count -gt 10 && break
4051    lt_ac_count=`expr $lt_ac_count + 1`
4052    if test $lt_ac_count -gt $lt_ac_max; then
4053      lt_ac_max=$lt_ac_count
4054      lt_cv_path_SED=$lt_ac_sed
4055    fi
4056  done
4057done
4058
4059fi
4060
4061SED=$lt_cv_path_SED
4062{ echo "$as_me:$LINENO: result: $SED" >&5
4063echo "${ECHO_T}$SED" >&6; }
4064
4065{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4066echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4067if test "${ac_cv_path_GREP+set}" = set; then
4068  echo $ECHO_N "(cached) $ECHO_C" >&6
4069else
4070  # Extract the first word of "grep ggrep" to use in msg output
4071if test -z "$GREP"; then
4072set dummy grep ggrep; ac_prog_name=$2
4073if test "${ac_cv_path_GREP+set}" = set; then
4074  echo $ECHO_N "(cached) $ECHO_C" >&6
4075else
4076  ac_path_GREP_found=false
4077# Loop through the user's path and test for each of PROGNAME-LIST
4078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4080do
4081  IFS=$as_save_IFS
4082  test -z "$as_dir" && as_dir=.
4083  for ac_prog in grep ggrep; do
4084  for ac_exec_ext in '' $ac_executable_extensions; do
4085    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4086    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4087    # Check for GNU ac_path_GREP and select it if it is found.
4088  # Check for GNU $ac_path_GREP
4089case `"$ac_path_GREP" --version 2>&1` in
4090*GNU*)
4091  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4092*)
4093  ac_count=0
4094  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4095  while :
4096  do
4097    cat "conftest.in" "conftest.in" >"conftest.tmp"
4098    mv "conftest.tmp" "conftest.in"
4099    cp "conftest.in" "conftest.nl"
4100    echo 'GREP' >> "conftest.nl"
4101    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4102    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4103    ac_count=`expr $ac_count + 1`
4104    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4105      # Best one so far, save it but keep looking for a better one
4106      ac_cv_path_GREP="$ac_path_GREP"
4107      ac_path_GREP_max=$ac_count
4108    fi
4109    # 10*(2^10) chars as input seems more than enough
4110    test $ac_count -gt 10 && break
4111  done
4112  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4113esac
4114
4115
4116    $ac_path_GREP_found && break 3
4117  done
4118done
4119
4120done
4121IFS=$as_save_IFS
4122
4123
4124fi
4125
4126GREP="$ac_cv_path_GREP"
4127if test -z "$GREP"; then
4128  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4129echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4130   { (exit 1); exit 1; }; }
4131fi
4132
4133else
4134  ac_cv_path_GREP=$GREP
4135fi
4136
4137
4138fi
4139{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4140echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4141 GREP="$ac_cv_path_GREP"
4142
4143
4144{ echo "$as_me:$LINENO: checking for egrep" >&5
4145echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4146if test "${ac_cv_path_EGREP+set}" = set; then
4147  echo $ECHO_N "(cached) $ECHO_C" >&6
4148else
4149  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4150   then ac_cv_path_EGREP="$GREP -E"
4151   else
4152     # Extract the first word of "egrep" to use in msg output
4153if test -z "$EGREP"; then
4154set dummy egrep; ac_prog_name=$2
4155if test "${ac_cv_path_EGREP+set}" = set; then
4156  echo $ECHO_N "(cached) $ECHO_C" >&6
4157else
4158  ac_path_EGREP_found=false
4159# Loop through the user's path and test for each of PROGNAME-LIST
4160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4162do
4163  IFS=$as_save_IFS
4164  test -z "$as_dir" && as_dir=.
4165  for ac_prog in egrep; do
4166  for ac_exec_ext in '' $ac_executable_extensions; do
4167    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4168    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4169    # Check for GNU ac_path_EGREP and select it if it is found.
4170  # Check for GNU $ac_path_EGREP
4171case `"$ac_path_EGREP" --version 2>&1` in
4172*GNU*)
4173  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4174*)
4175  ac_count=0
4176  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4177  while :
4178  do
4179    cat "conftest.in" "conftest.in" >"conftest.tmp"
4180    mv "conftest.tmp" "conftest.in"
4181    cp "conftest.in" "conftest.nl"
4182    echo 'EGREP' >> "conftest.nl"
4183    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4184    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4185    ac_count=`expr $ac_count + 1`
4186    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4187      # Best one so far, save it but keep looking for a better one
4188      ac_cv_path_EGREP="$ac_path_EGREP"
4189      ac_path_EGREP_max=$ac_count
4190    fi
4191    # 10*(2^10) chars as input seems more than enough
4192    test $ac_count -gt 10 && break
4193  done
4194  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4195esac
4196
4197
4198    $ac_path_EGREP_found && break 3
4199  done
4200done
4201
4202done
4203IFS=$as_save_IFS
4204
4205
4206fi
4207
4208EGREP="$ac_cv_path_EGREP"
4209if test -z "$EGREP"; then
4210  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4211echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4212   { (exit 1); exit 1; }; }
4213fi
4214
4215else
4216  ac_cv_path_EGREP=$EGREP
4217fi
4218
4219
4220   fi
4221fi
4222{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4223echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4224 EGREP="$ac_cv_path_EGREP"
4225
4226
4227
4228# Check whether --with-gnu-ld was given.
4229if test "${with_gnu_ld+set}" = set; then
4230  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4231else
4232  with_gnu_ld=no
4233fi
4234
4235ac_prog=ld
4236if test "$GCC" = yes; then
4237  # Check if gcc -print-prog-name=ld gives a path.
4238  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4239echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4240  case $host in
4241  *-*-mingw*)
4242    # gcc leaves a trailing carriage return which upsets mingw
4243    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4244  *)
4245    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4246  esac
4247  case $ac_prog in
4248    # Accept absolute paths.
4249    [\\/]* | ?:[\\/]*)
4250      re_direlt='/[^/][^/]*/\.\./'
4251      # Canonicalize the pathname of ld
4252      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4253      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4254        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4255      done
4256      test -z "$LD" && LD="$ac_prog"
4257      ;;
4258  "")
4259    # If it fails, then pretend we aren't using GCC.
4260    ac_prog=ld
4261    ;;
4262  *)
4263    # If it is relative, then search for the first ld in PATH.
4264    with_gnu_ld=unknown
4265    ;;
4266  esac
4267elif test "$with_gnu_ld" = yes; then
4268  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4269echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4270else
4271  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4272echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4273fi
4274if test "${lt_cv_path_LD+set}" = set; then
4275  echo $ECHO_N "(cached) $ECHO_C" >&6
4276else
4277  if test -z "$LD"; then
4278  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4279  for ac_dir in $PATH; do
4280    IFS="$lt_save_ifs"
4281    test -z "$ac_dir" && ac_dir=.
4282    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4283      lt_cv_path_LD="$ac_dir/$ac_prog"
4284      # Check to see if the program is GNU ld.  I'd rather use --version,
4285      # but apparently some variants of GNU ld only accept -v.
4286      # Break only if it was the GNU/non-GNU ld that we prefer.
4287      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4288      *GNU* | *'with BFD'*)
4289        test "$with_gnu_ld" != no && break
4290        ;;
4291      *)
4292        test "$with_gnu_ld" != yes && break
4293        ;;
4294      esac
4295    fi
4296  done
4297  IFS="$lt_save_ifs"
4298else
4299  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4300fi
4301fi
4302
4303LD="$lt_cv_path_LD"
4304if test -n "$LD"; then
4305  { echo "$as_me:$LINENO: result: $LD" >&5
4306echo "${ECHO_T}$LD" >&6; }
4307else
4308  { echo "$as_me:$LINENO: result: no" >&5
4309echo "${ECHO_T}no" >&6; }
4310fi
4311test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4312echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4313   { (exit 1); exit 1; }; }
4314{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4315echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4316if test "${lt_cv_prog_gnu_ld+set}" = set; then
4317  echo $ECHO_N "(cached) $ECHO_C" >&6
4318else
4319  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4320case `$LD -v 2>&1 </dev/null` in
4321*GNU* | *'with BFD'*)
4322  lt_cv_prog_gnu_ld=yes
4323  ;;
4324*)
4325  lt_cv_prog_gnu_ld=no
4326  ;;
4327esac
4328fi
4329{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4330echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4331with_gnu_ld=$lt_cv_prog_gnu_ld
4332
4333
4334{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4335echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4336if test "${lt_cv_ld_reload_flag+set}" = set; then
4337  echo $ECHO_N "(cached) $ECHO_C" >&6
4338else
4339  lt_cv_ld_reload_flag='-r'
4340fi
4341{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4342echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4343reload_flag=$lt_cv_ld_reload_flag
4344case $reload_flag in
4345"" | " "*) ;;
4346*) reload_flag=" $reload_flag" ;;
4347esac
4348reload_cmds='$LD$reload_flag -o $output$reload_objs'
4349case $host_os in
4350  darwin*)
4351    if test "$GCC" = yes; then
4352      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4353    else
4354      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4355    fi
4356    ;;
4357esac
4358
4359{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4360echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4361if test "${lt_cv_path_NM+set}" = set; then
4362  echo $ECHO_N "(cached) $ECHO_C" >&6
4363else
4364  if test -n "$NM"; then
4365  # Let the user override the test.
4366  lt_cv_path_NM="$NM"
4367else
4368  lt_nm_to_check="${ac_tool_prefix}nm"
4369  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4370    lt_nm_to_check="$lt_nm_to_check nm"
4371  fi
4372  for lt_tmp_nm in $lt_nm_to_check; do
4373    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4374    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4375      IFS="$lt_save_ifs"
4376      test -z "$ac_dir" && ac_dir=.
4377      tmp_nm="$ac_dir/$lt_tmp_nm"
4378      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4379        # Check to see if the nm accepts a BSD-compat flag.
4380        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4381        #   nm: unknown option "B" ignored
4382        # Tru64's nm complains that /dev/null is an invalid object file
4383        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4384        */dev/null* | *'Invalid file or object type'*)
4385          lt_cv_path_NM="$tmp_nm -B"
4386          break
4387          ;;
4388        *)
4389          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4390          */dev/null*)
4391            lt_cv_path_NM="$tmp_nm -p"
4392            break
4393            ;;
4394          *)
4395            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4396            continue # so that we can try to find one that supports BSD flags
4397            ;;
4398          esac
4399          ;;
4400        esac
4401      fi
4402    done
4403    IFS="$lt_save_ifs"
4404  done
4405  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4406fi
4407fi
4408{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4409echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4410NM="$lt_cv_path_NM"
4411
4412{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4413echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4414LN_S=$as_ln_s
4415if test "$LN_S" = "ln -s"; then
4416  { echo "$as_me:$LINENO: result: yes" >&5
4417echo "${ECHO_T}yes" >&6; }
4418else
4419  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4420echo "${ECHO_T}no, using $LN_S" >&6; }
4421fi
4422
4423{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4424echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4425if test "${lt_cv_deplibs_check_method+set}" = set; then
4426  echo $ECHO_N "(cached) $ECHO_C" >&6
4427else
4428  lt_cv_file_magic_cmd='$MAGIC_CMD'
4429lt_cv_file_magic_test_file=
4430lt_cv_deplibs_check_method='unknown'
4431# Need to set the preceding variable on all platforms that support
4432# interlibrary dependencies.
4433# 'none' -- dependencies not supported.
4434# `unknown' -- same as none, but documents that we really don't know.
4435# 'pass_all' -- all dependencies passed with no checks.
4436# 'test_compile' -- check by making test program.
4437# 'file_magic [[regex]]' -- check by looking for files in library path
4438# which responds to the $file_magic_cmd with a given extended regex.
4439# If you have `file' or equivalent on your system and you're not sure
4440# whether `pass_all' will *always* work, you probably want this one.
4441
4442case $host_os in
4443aix4* | aix5*)
4444  lt_cv_deplibs_check_method=pass_all
4445  ;;
4446
4447beos*)
4448  lt_cv_deplibs_check_method=pass_all
4449  ;;
4450
4451bsdi[45]*)
4452  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4453  lt_cv_file_magic_cmd='/usr/bin/file -L'
4454  lt_cv_file_magic_test_file=/shlib/libc.so
4455  ;;
4456
4457cygwin*)
4458  # func_win32_libid is a shell function defined in ltmain.sh
4459  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4460  lt_cv_file_magic_cmd='func_win32_libid'
4461  ;;
4462
4463mingw* | pw32*)
4464  # Base MSYS/MinGW do not provide the 'file' command needed by
4465  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4466  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4467  lt_cv_file_magic_cmd='$OBJDUMP -f'
4468  ;;
4469
4470darwin* | rhapsody*)
4471  lt_cv_deplibs_check_method=pass_all
4472  ;;
4473
4474freebsd* | dragonfly*)
4475  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4476    case $host_cpu in
4477    i*86 )
4478      # Not sure whether the presence of OpenBSD here was a mistake.
4479      # Let's accept both of them until this is cleared up.
4480      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4481      lt_cv_file_magic_cmd=/usr/bin/file
4482      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4483      ;;
4484    esac
4485  else
4486    lt_cv_deplibs_check_method=pass_all
4487  fi
4488  ;;
4489
4490gnu*)
4491  lt_cv_deplibs_check_method=pass_all
4492  ;;
4493
4494hpux10.20* | hpux11*)
4495  lt_cv_file_magic_cmd=/usr/bin/file
4496  case $host_cpu in
4497  ia64*)
4498    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4499    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4500    ;;
4501  hppa*64*)
4502    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]'
4503    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4504    ;;
4505  *)
4506    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4507    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4508    ;;
4509  esac
4510  ;;
4511
4512interix3*)
4513  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4514  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4515  ;;
4516
4517irix5* | irix6* | nonstopux*)
4518  case $LD in
4519  *-32|*"-32 ") libmagic=32-bit;;
4520  *-n32|*"-n32 ") libmagic=N32;;
4521  *-64|*"-64 ") libmagic=64-bit;;
4522  *) libmagic=never-match;;
4523  esac
4524  lt_cv_deplibs_check_method=pass_all
4525  ;;
4526
4527# This must be Linux ELF.
4528linux* | k*bsd*-gnu)
4529  lt_cv_deplibs_check_method=pass_all
4530  ;;
4531
4532netbsd* | netbsdelf*-gnu)
4533  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4534    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4535  else
4536    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4537  fi
4538  ;;
4539
4540newos6*)
4541  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4542  lt_cv_file_magic_cmd=/usr/bin/file
4543  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4544  ;;
4545
4546nto-qnx*)
4547  lt_cv_deplibs_check_method=unknown
4548  ;;
4549
4550openbsd*)
4551  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4552    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4553  else
4554    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4555  fi
4556  ;;
4557
4558osf3* | osf4* | osf5*)
4559  lt_cv_deplibs_check_method=pass_all
4560  ;;
4561
4562solaris*)
4563  lt_cv_deplibs_check_method=pass_all
4564  ;;
4565
4566sysv4 | sysv4.3*)
4567  case $host_vendor in
4568  motorola)
4569    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]'
4570    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4571    ;;
4572  ncr)
4573    lt_cv_deplibs_check_method=pass_all
4574    ;;
4575  sequent)
4576    lt_cv_file_magic_cmd='/bin/file'
4577    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4578    ;;
4579  sni)
4580    lt_cv_file_magic_cmd='/bin/file'
4581    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4582    lt_cv_file_magic_test_file=/lib/libc.so
4583    ;;
4584  siemens)
4585    lt_cv_deplibs_check_method=pass_all
4586    ;;
4587  pc)
4588    lt_cv_deplibs_check_method=pass_all
4589    ;;
4590  esac
4591  ;;
4592
4593sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4594  lt_cv_deplibs_check_method=pass_all
4595  ;;
4596esac
4597
4598fi
4599{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4600echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4601file_magic_cmd=$lt_cv_file_magic_cmd
4602deplibs_check_method=$lt_cv_deplibs_check_method
4603test -z "$deplibs_check_method" && deplibs_check_method=unknown
4604
4605
4606
4607
4608# If no C compiler was specified, use CC.
4609LTCC=${LTCC-"$CC"}
4610
4611# If no C compiler flags were specified, use CFLAGS.
4612LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4613
4614# Allow CC to be a program name with arguments.
4615compiler=$CC
4616
4617
4618# Check whether --enable-libtool-lock was given.
4619if test "${enable_libtool_lock+set}" = set; then
4620  enableval=$enable_libtool_lock;
4621fi
4622
4623test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4624
4625# Some flags need to be propagated to the compiler or linker for good
4626# libtool support.
4627case $host in
4628ia64-*-hpux*)
4629  # Find out which ABI we are using.
4630  echo 'int i;' > conftest.$ac_ext
4631  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4632  (eval $ac_compile) 2>&5
4633  ac_status=$?
4634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635  (exit $ac_status); }; then
4636    case `/usr/bin/file conftest.$ac_objext` in
4637    *ELF-32*)
4638      HPUX_IA64_MODE="32"
4639      ;;
4640    *ELF-64*)
4641      HPUX_IA64_MODE="64"
4642      ;;
4643    esac
4644  fi
4645  rm -rf conftest*
4646  ;;
4647*-*-irix6*)
4648  # Find out which ABI we are using.
4649  echo '#line 4649 "configure"' > conftest.$ac_ext
4650  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4651  (eval $ac_compile) 2>&5
4652  ac_status=$?
4653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654  (exit $ac_status); }; then
4655   if test "$lt_cv_prog_gnu_ld" = yes; then
4656    case `/usr/bin/file conftest.$ac_objext` in
4657    *32-bit*)
4658      LD="${LD-ld} -melf32bsmip"
4659      ;;
4660    *N32*)
4661      LD="${LD-ld} -melf32bmipn32"
4662      ;;
4663    *64-bit*)
4664      LD="${LD-ld} -melf64bmip"
4665      ;;
4666    esac
4667   else
4668    case `/usr/bin/file conftest.$ac_objext` in
4669    *32-bit*)
4670      LD="${LD-ld} -32"
4671      ;;
4672    *N32*)
4673      LD="${LD-ld} -n32"
4674      ;;
4675    *64-bit*)
4676      LD="${LD-ld} -64"
4677      ;;
4678    esac
4679   fi
4680  fi
4681  rm -rf conftest*
4682  ;;
4683
4684x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4685  # Find out which ABI we are using.
4686  echo 'int i;' > conftest.$ac_ext
4687  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4688  (eval $ac_compile) 2>&5
4689  ac_status=$?
4690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691  (exit $ac_status); }; then
4692    case `/usr/bin/file conftest.o` in
4693    *32-bit*)
4694      case $host in
4695        x86_64-*linux*)
4696          LD="${LD-ld} -m elf_i386"
4697          ;;
4698        ppc64-*linux*|powerpc64-*linux*)
4699          LD="${LD-ld} -m elf32ppclinux"
4700          ;;
4701        s390x-*linux*)
4702          LD="${LD-ld} -m elf_s390"
4703          ;;
4704        sparc64-*linux*)
4705          LD="${LD-ld} -m elf32_sparc"
4706          ;;
4707      esac
4708      ;;
4709    *64-bit*)
4710      case $host in
4711        x86_64-*linux*)
4712          LD="${LD-ld} -m elf_x86_64"
4713          ;;
4714        ppc*-*linux*|powerpc*-*linux*)
4715          LD="${LD-ld} -m elf64ppc"
4716          ;;
4717        s390*-*linux*)
4718          LD="${LD-ld} -m elf64_s390"
4719          ;;
4720        sparc*-*linux*)
4721          LD="${LD-ld} -m elf64_sparc"
4722          ;;
4723      esac
4724      ;;
4725    esac
4726  fi
4727  rm -rf conftest*
4728  ;;
4729
4730*-*-sco3.2v5*)
4731  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4732  SAVE_CFLAGS="$CFLAGS"
4733  CFLAGS="$CFLAGS -belf"
4734  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4735echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4736if test "${lt_cv_cc_needs_belf+set}" = set; then
4737  echo $ECHO_N "(cached) $ECHO_C" >&6
4738else
4739  ac_ext=c
4740ac_cpp='$CPP $CPPFLAGS'
4741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4743ac_compiler_gnu=$ac_cv_c_compiler_gnu
4744
4745     cat >conftest.$ac_ext <<_ACEOF
4746/* confdefs.h.  */
4747_ACEOF
4748cat confdefs.h >>conftest.$ac_ext
4749cat >>conftest.$ac_ext <<_ACEOF
4750/* end confdefs.h.  */
4751
4752int
4753main ()
4754{
4755
4756  ;
4757  return 0;
4758}
4759_ACEOF
4760rm -f conftest.$ac_objext conftest$ac_exeext
4761if { (ac_try="$ac_link"
4762case "(($ac_try" in
4763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764  *) ac_try_echo=$ac_try;;
4765esac
4766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4767  (eval "$ac_link") 2>conftest.er1
4768  ac_status=$?
4769  grep -v '^ *+' conftest.er1 >conftest.err
4770  rm -f conftest.er1
4771  cat conftest.err >&5
4772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773  (exit $ac_status); } && {
4774         test -z "$ac_c_werror_flag" ||
4775         test ! -s conftest.err
4776       } && test -s conftest$ac_exeext &&
4777       $as_test_x conftest$ac_exeext; then
4778  lt_cv_cc_needs_belf=yes
4779else
4780  echo "$as_me: failed program was:" >&5
4781sed 's/^/| /' conftest.$ac_ext >&5
4782
4783        lt_cv_cc_needs_belf=no
4784fi
4785
4786rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4787      conftest$ac_exeext conftest.$ac_ext
4788     ac_ext=c
4789ac_cpp='$CPP $CPPFLAGS'
4790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792ac_compiler_gnu=$ac_cv_c_compiler_gnu
4793
4794fi
4795{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4796echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4797  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4798    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4799    CFLAGS="$SAVE_CFLAGS"
4800  fi
4801  ;;
4802sparc*-*solaris*)
4803  # Find out which ABI we are using.
4804  echo 'int i;' > conftest.$ac_ext
4805  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4806  (eval $ac_compile) 2>&5
4807  ac_status=$?
4808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809  (exit $ac_status); }; then
4810    case `/usr/bin/file conftest.o` in
4811    *64-bit*)
4812      case $lt_cv_prog_gnu_ld in
4813      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4814      *)    LD="${LD-ld} -64" ;;
4815      esac
4816      ;;
4817    esac
4818  fi
4819  rm -rf conftest*
4820  ;;
4821
4822
4823esac
4824
4825need_locks="$enable_libtool_lock"
4826
4827
4828
4829{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4830echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4831if test "${ac_cv_header_stdc+set}" = set; then
4832  echo $ECHO_N "(cached) $ECHO_C" >&6
4833else
4834  cat >conftest.$ac_ext <<_ACEOF
4835/* confdefs.h.  */
4836_ACEOF
4837cat confdefs.h >>conftest.$ac_ext
4838cat >>conftest.$ac_ext <<_ACEOF
4839/* end confdefs.h.  */
4840#include <stdlib.h>
4841#include <stdarg.h>
4842#include <string.h>
4843#include <float.h>
4844
4845int
4846main ()
4847{
4848
4849  ;
4850  return 0;
4851}
4852_ACEOF
4853rm -f conftest.$ac_objext
4854if { (ac_try="$ac_compile"
4855case "(($ac_try" in
4856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4857  *) ac_try_echo=$ac_try;;
4858esac
4859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4860  (eval "$ac_compile") 2>conftest.er1
4861  ac_status=$?
4862  grep -v '^ *+' conftest.er1 >conftest.err
4863  rm -f conftest.er1
4864  cat conftest.err >&5
4865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866  (exit $ac_status); } && {
4867         test -z "$ac_c_werror_flag" ||
4868         test ! -s conftest.err
4869       } && test -s conftest.$ac_objext; then
4870  ac_cv_header_stdc=yes
4871else
4872  echo "$as_me: failed program was:" >&5
4873sed 's/^/| /' conftest.$ac_ext >&5
4874
4875        ac_cv_header_stdc=no
4876fi
4877
4878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4879
4880if test $ac_cv_header_stdc = yes; then
4881  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4882  cat >conftest.$ac_ext <<_ACEOF
4883/* confdefs.h.  */
4884_ACEOF
4885cat confdefs.h >>conftest.$ac_ext
4886cat >>conftest.$ac_ext <<_ACEOF
4887/* end confdefs.h.  */
4888#include <string.h>
4889
4890_ACEOF
4891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4892  $EGREP "memchr" >/dev/null 2>&1; then
4893  :
4894else
4895  ac_cv_header_stdc=no
4896fi
4897rm -f conftest*
4898
4899fi
4900
4901if test $ac_cv_header_stdc = yes; then
4902  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4903  cat >conftest.$ac_ext <<_ACEOF
4904/* confdefs.h.  */
4905_ACEOF
4906cat confdefs.h >>conftest.$ac_ext
4907cat >>conftest.$ac_ext <<_ACEOF
4908/* end confdefs.h.  */
4909#include <stdlib.h>
4910
4911_ACEOF
4912if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4913  $EGREP "free" >/dev/null 2>&1; then
4914  :
4915else
4916  ac_cv_header_stdc=no
4917fi
4918rm -f conftest*
4919
4920fi
4921
4922if test $ac_cv_header_stdc = yes; then
4923  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4924  if test "$cross_compiling" = yes; then
4925  :
4926else
4927  cat >conftest.$ac_ext <<_ACEOF
4928/* confdefs.h.  */
4929_ACEOF
4930cat confdefs.h >>conftest.$ac_ext
4931cat >>conftest.$ac_ext <<_ACEOF
4932/* end confdefs.h.  */
4933#include <ctype.h>
4934#include <stdlib.h>
4935#if ((' ' & 0x0FF) == 0x020)
4936# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4937# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4938#else
4939# define ISLOWER(c) \
4940                   (('a' <= (c) && (c) <= 'i') \
4941                     || ('j' <= (c) && (c) <= 'r') \
4942                     || ('s' <= (c) && (c) <= 'z'))
4943# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4944#endif
4945
4946#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4947int
4948main ()
4949{
4950  int i;
4951  for (i = 0; i < 256; i++)
4952    if (XOR (islower (i), ISLOWER (i))
4953        || toupper (i) != TOUPPER (i))
4954      return 2;
4955  return 0;
4956}
4957_ACEOF
4958rm -f conftest$ac_exeext
4959if { (ac_try="$ac_link"
4960case "(($ac_try" in
4961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4962  *) ac_try_echo=$ac_try;;
4963esac
4964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4965  (eval "$ac_link") 2>&5
4966  ac_status=$?
4967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4969  { (case "(($ac_try" in
4970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4971  *) ac_try_echo=$ac_try;;
4972esac
4973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4974  (eval "$ac_try") 2>&5
4975  ac_status=$?
4976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977  (exit $ac_status); }; }; then
4978  :
4979else
4980  echo "$as_me: program exited with status $ac_status" >&5
4981echo "$as_me: failed program was:" >&5
4982sed 's/^/| /' conftest.$ac_ext >&5
4983
4984( exit $ac_status )
4985ac_cv_header_stdc=no
4986fi
4987rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4988fi
4989
4990
4991fi
4992fi
4993{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4994echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4995if test $ac_cv_header_stdc = yes; then
4996
4997cat >>confdefs.h <<\_ACEOF
4998#define STDC_HEADERS 1
4999_ACEOF
5000
5001fi
5002
5003# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5014                  inttypes.h stdint.h unistd.h
5015do
5016as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5017{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5018echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5019if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5020  echo $ECHO_N "(cached) $ECHO_C" >&6
5021else
5022  cat >conftest.$ac_ext <<_ACEOF
5023/* confdefs.h.  */
5024_ACEOF
5025cat confdefs.h >>conftest.$ac_ext
5026cat >>conftest.$ac_ext <<_ACEOF
5027/* end confdefs.h.  */
5028$ac_includes_default
5029
5030#include <$ac_header>
5031_ACEOF
5032rm -f conftest.$ac_objext
5033if { (ac_try="$ac_compile"
5034case "(($ac_try" in
5035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5036  *) ac_try_echo=$ac_try;;
5037esac
5038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5039  (eval "$ac_compile") 2>conftest.er1
5040  ac_status=$?
5041  grep -v '^ *+' conftest.er1 >conftest.err
5042  rm -f conftest.er1
5043  cat conftest.err >&5
5044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045  (exit $ac_status); } && {
5046         test -z "$ac_c_werror_flag" ||
5047         test ! -s conftest.err
5048       } && test -s conftest.$ac_objext; then
5049  eval "$as_ac_Header=yes"
5050else
5051  echo "$as_me: failed program was:" >&5
5052sed 's/^/| /' conftest.$ac_ext >&5
5053
5054        eval "$as_ac_Header=no"
5055fi
5056
5057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058fi
5059ac_res=`eval echo '${'$as_ac_Header'}'`
5060               { echo "$as_me:$LINENO: result: $ac_res" >&5
5061echo "${ECHO_T}$ac_res" >&6; }
5062if test `eval echo '${'$as_ac_Header'}'` = yes; then
5063  cat >>confdefs.h <<_ACEOF
5064#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5065_ACEOF
5066
5067fi
5068
5069done
5070
5071
5072
5073for ac_header in dlfcn.h
5074do
5075as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5076if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5077  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5079if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5080  echo $ECHO_N "(cached) $ECHO_C" >&6
5081fi
5082ac_res=`eval echo '${'$as_ac_Header'}'`
5083               { echo "$as_me:$LINENO: result: $ac_res" >&5
5084echo "${ECHO_T}$ac_res" >&6; }
5085else
5086  # Is the header compilable?
5087{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5088echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5089cat >conftest.$ac_ext <<_ACEOF
5090/* confdefs.h.  */
5091_ACEOF
5092cat confdefs.h >>conftest.$ac_ext
5093cat >>conftest.$ac_ext <<_ACEOF
5094/* end confdefs.h.  */
5095$ac_includes_default
5096#include <$ac_header>
5097_ACEOF
5098rm -f conftest.$ac_objext
5099if { (ac_try="$ac_compile"
5100case "(($ac_try" in
5101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102  *) ac_try_echo=$ac_try;;
5103esac
5104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5105  (eval "$ac_compile") 2>conftest.er1
5106  ac_status=$?
5107  grep -v '^ *+' conftest.er1 >conftest.err
5108  rm -f conftest.er1
5109  cat conftest.err >&5
5110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111  (exit $ac_status); } && {
5112         test -z "$ac_c_werror_flag" ||
5113         test ! -s conftest.err
5114       } && test -s conftest.$ac_objext; then
5115  ac_header_compiler=yes
5116else
5117  echo "$as_me: failed program was:" >&5
5118sed 's/^/| /' conftest.$ac_ext >&5
5119
5120        ac_header_compiler=no
5121fi
5122
5123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5124{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5125echo "${ECHO_T}$ac_header_compiler" >&6; }
5126
5127# Is the header present?
5128{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5129echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5130cat >conftest.$ac_ext <<_ACEOF
5131/* confdefs.h.  */
5132_ACEOF
5133cat confdefs.h >>conftest.$ac_ext
5134cat >>conftest.$ac_ext <<_ACEOF
5135/* end confdefs.h.  */
5136#include <$ac_header>
5137_ACEOF
5138if { (ac_try="$ac_cpp conftest.$ac_ext"
5139case "(($ac_try" in
5140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5141  *) ac_try_echo=$ac_try;;
5142esac
5143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5144  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5145  ac_status=$?
5146  grep -v '^ *+' conftest.er1 >conftest.err
5147  rm -f conftest.er1
5148  cat conftest.err >&5
5149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150  (exit $ac_status); } >/dev/null && {
5151         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5152         test ! -s conftest.err
5153       }; then
5154  ac_header_preproc=yes
5155else
5156  echo "$as_me: failed program was:" >&5
5157sed 's/^/| /' conftest.$ac_ext >&5
5158
5159  ac_header_preproc=no
5160fi
5161
5162rm -f conftest.err conftest.$ac_ext
5163{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5164echo "${ECHO_T}$ac_header_preproc" >&6; }
5165
5166# So?  What about this header?
5167case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5168  yes:no: )
5169    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5170echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5171    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5172echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5173    ac_header_preproc=yes
5174    ;;
5175  no:yes:* )
5176    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5177echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5178    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5179echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5180    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5181echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5182    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5183echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5184    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5185echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5186    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5187echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5188
5189    ;;
5190esac
5191{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5193if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5194  echo $ECHO_N "(cached) $ECHO_C" >&6
5195else
5196  eval "$as_ac_Header=\$ac_header_preproc"
5197fi
5198ac_res=`eval echo '${'$as_ac_Header'}'`
5199               { echo "$as_me:$LINENO: result: $ac_res" >&5
5200echo "${ECHO_T}$ac_res" >&6; }
5201
5202fi
5203if test `eval echo '${'$as_ac_Header'}'` = yes; then
5204  cat >>confdefs.h <<_ACEOF
5205#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5206_ACEOF
5207
5208fi
5209
5210done
5211
5212ac_ext=cpp
5213ac_cpp='$CXXCPP $CPPFLAGS'
5214ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5215ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5216ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5217if test -z "$CXX"; then
5218  if test -n "$CCC"; then
5219    CXX=$CCC
5220  else
5221    if test -n "$ac_tool_prefix"; then
5222  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5223  do
5224    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5225set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5226{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5228if test "${ac_cv_prog_CXX+set}" = set; then
5229  echo $ECHO_N "(cached) $ECHO_C" >&6
5230else
5231  if test -n "$CXX"; then
5232  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5233else
5234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235for as_dir in $PATH
5236do
5237  IFS=$as_save_IFS
5238  test -z "$as_dir" && as_dir=.
5239  for ac_exec_ext in '' $ac_executable_extensions; do
5240  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5241    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5242    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5243    break 2
5244  fi
5245done
5246done
5247IFS=$as_save_IFS
5248
5249fi
5250fi
5251CXX=$ac_cv_prog_CXX
5252if test -n "$CXX"; then
5253  { echo "$as_me:$LINENO: result: $CXX" >&5
5254echo "${ECHO_T}$CXX" >&6; }
5255else
5256  { echo "$as_me:$LINENO: result: no" >&5
5257echo "${ECHO_T}no" >&6; }
5258fi
5259
5260
5261    test -n "$CXX" && break
5262  done
5263fi
5264if test -z "$CXX"; then
5265  ac_ct_CXX=$CXX
5266  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5267do
5268  # Extract the first word of "$ac_prog", so it can be a program name with args.
5269set dummy $ac_prog; ac_word=$2
5270{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5272if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5273  echo $ECHO_N "(cached) $ECHO_C" >&6
5274else
5275  if test -n "$ac_ct_CXX"; then
5276  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5277else
5278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279for as_dir in $PATH
5280do
5281  IFS=$as_save_IFS
5282  test -z "$as_dir" && as_dir=.
5283  for ac_exec_ext in '' $ac_executable_extensions; do
5284  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5285    ac_cv_prog_ac_ct_CXX="$ac_prog"
5286    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5287    break 2
5288  fi
5289done
5290done
5291IFS=$as_save_IFS
5292
5293fi
5294fi
5295ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5296if test -n "$ac_ct_CXX"; then
5297  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5298echo "${ECHO_T}$ac_ct_CXX" >&6; }
5299else
5300  { echo "$as_me:$LINENO: result: no" >&5
5301echo "${ECHO_T}no" >&6; }
5302fi
5303
5304
5305  test -n "$ac_ct_CXX" && break
5306done
5307
5308  if test "x$ac_ct_CXX" = x; then
5309    CXX="g++"
5310  else
5311    case $cross_compiling:$ac_tool_warned in
5312yes:)
5313{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5314whose name does not start with the host triplet.  If you think this
5315configuration is useful to you, please write to autoconf@gnu.org." >&5
5316echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5317whose name does not start with the host triplet.  If you think this
5318configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5319ac_tool_warned=yes ;;
5320esac
5321    CXX=$ac_ct_CXX
5322  fi
5323fi
5324
5325  fi
5326fi
5327# Provide some information about the compiler.
5328echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5329ac_compiler=`set X $ac_compile; echo $2`
5330{ (ac_try="$ac_compiler --version >&5"
5331case "(($ac_try" in
5332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333  *) ac_try_echo=$ac_try;;
5334esac
5335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336  (eval "$ac_compiler --version >&5") 2>&5
5337  ac_status=$?
5338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339  (exit $ac_status); }
5340{ (ac_try="$ac_compiler -v >&5"
5341case "(($ac_try" in
5342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343  *) ac_try_echo=$ac_try;;
5344esac
5345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5346  (eval "$ac_compiler -v >&5") 2>&5
5347  ac_status=$?
5348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349  (exit $ac_status); }
5350{ (ac_try="$ac_compiler -V >&5"
5351case "(($ac_try" in
5352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353  *) ac_try_echo=$ac_try;;
5354esac
5355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356  (eval "$ac_compiler -V >&5") 2>&5
5357  ac_status=$?
5358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359  (exit $ac_status); }
5360
5361{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5362echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5363if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5364  echo $ECHO_N "(cached) $ECHO_C" >&6
5365else
5366  cat >conftest.$ac_ext <<_ACEOF
5367/* confdefs.h.  */
5368_ACEOF
5369cat confdefs.h >>conftest.$ac_ext
5370cat >>conftest.$ac_ext <<_ACEOF
5371/* end confdefs.h.  */
5372
5373int
5374main ()
5375{
5376#ifndef __GNUC__
5377       choke me
5378#endif
5379
5380  ;
5381  return 0;
5382}
5383_ACEOF
5384rm -f conftest.$ac_objext
5385if { (ac_try="$ac_compile"
5386case "(($ac_try" in
5387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388  *) ac_try_echo=$ac_try;;
5389esac
5390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5391  (eval "$ac_compile") 2>conftest.er1
5392  ac_status=$?
5393  grep -v '^ *+' conftest.er1 >conftest.err
5394  rm -f conftest.er1
5395  cat conftest.err >&5
5396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397  (exit $ac_status); } && {
5398         test -z "$ac_cxx_werror_flag" ||
5399         test ! -s conftest.err
5400       } && test -s conftest.$ac_objext; then
5401  ac_compiler_gnu=yes
5402else
5403  echo "$as_me: failed program was:" >&5
5404sed 's/^/| /' conftest.$ac_ext >&5
5405
5406        ac_compiler_gnu=no
5407fi
5408
5409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5410ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5411
5412fi
5413{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5414echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5415GXX=`test $ac_compiler_gnu = yes && echo yes`
5416ac_test_CXXFLAGS=${CXXFLAGS+set}
5417ac_save_CXXFLAGS=$CXXFLAGS
5418{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5419echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5420if test "${ac_cv_prog_cxx_g+set}" = set; then
5421  echo $ECHO_N "(cached) $ECHO_C" >&6
5422else
5423  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5424   ac_cxx_werror_flag=yes
5425   ac_cv_prog_cxx_g=no
5426   CXXFLAGS="-g"
5427   cat >conftest.$ac_ext <<_ACEOF
5428/* confdefs.h.  */
5429_ACEOF
5430cat confdefs.h >>conftest.$ac_ext
5431cat >>conftest.$ac_ext <<_ACEOF
5432/* end confdefs.h.  */
5433
5434int
5435main ()
5436{
5437
5438  ;
5439  return 0;
5440}
5441_ACEOF
5442rm -f conftest.$ac_objext
5443if { (ac_try="$ac_compile"
5444case "(($ac_try" in
5445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446  *) ac_try_echo=$ac_try;;
5447esac
5448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449  (eval "$ac_compile") 2>conftest.er1
5450  ac_status=$?
5451  grep -v '^ *+' conftest.er1 >conftest.err
5452  rm -f conftest.er1
5453  cat conftest.err >&5
5454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455  (exit $ac_status); } && {
5456         test -z "$ac_cxx_werror_flag" ||
5457         test ! -s conftest.err
5458       } && test -s conftest.$ac_objext; then
5459  ac_cv_prog_cxx_g=yes
5460else
5461  echo "$as_me: failed program was:" >&5
5462sed 's/^/| /' conftest.$ac_ext >&5
5463
5464        CXXFLAGS=""
5465      cat >conftest.$ac_ext <<_ACEOF
5466/* confdefs.h.  */
5467_ACEOF
5468cat confdefs.h >>conftest.$ac_ext
5469cat >>conftest.$ac_ext <<_ACEOF
5470/* end confdefs.h.  */
5471
5472int
5473main ()
5474{
5475
5476  ;
5477  return 0;
5478}
5479_ACEOF
5480rm -f conftest.$ac_objext
5481if { (ac_try="$ac_compile"
5482case "(($ac_try" in
5483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484  *) ac_try_echo=$ac_try;;
5485esac
5486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487  (eval "$ac_compile") 2>conftest.er1
5488  ac_status=$?
5489  grep -v '^ *+' conftest.er1 >conftest.err
5490  rm -f conftest.er1
5491  cat conftest.err >&5
5492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493  (exit $ac_status); } && {
5494         test -z "$ac_cxx_werror_flag" ||
5495         test ! -s conftest.err
5496       } && test -s conftest.$ac_objext; then
5497  :
5498else
5499  echo "$as_me: failed program was:" >&5
5500sed 's/^/| /' conftest.$ac_ext >&5
5501
5502        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5503         CXXFLAGS="-g"
5504         cat >conftest.$ac_ext <<_ACEOF
5505/* confdefs.h.  */
5506_ACEOF
5507cat confdefs.h >>conftest.$ac_ext
5508cat >>conftest.$ac_ext <<_ACEOF
5509/* end confdefs.h.  */
5510
5511int
5512main ()
5513{
5514
5515  ;
5516  return 0;
5517}
5518_ACEOF
5519rm -f conftest.$ac_objext
5520if { (ac_try="$ac_compile"
5521case "(($ac_try" in
5522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523  *) ac_try_echo=$ac_try;;
5524esac
5525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526  (eval "$ac_compile") 2>conftest.er1
5527  ac_status=$?
5528  grep -v '^ *+' conftest.er1 >conftest.err
5529  rm -f conftest.er1
5530  cat conftest.err >&5
5531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532  (exit $ac_status); } && {
5533         test -z "$ac_cxx_werror_flag" ||
5534         test ! -s conftest.err
5535       } && test -s conftest.$ac_objext; then
5536  ac_cv_prog_cxx_g=yes
5537else
5538  echo "$as_me: failed program was:" >&5
5539sed 's/^/| /' conftest.$ac_ext >&5
5540
5541
5542fi
5543
5544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5545fi
5546
5547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548fi
5549
5550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5552fi
5553{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5554echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5555if test "$ac_test_CXXFLAGS" = set; then
5556  CXXFLAGS=$ac_save_CXXFLAGS
5557elif test $ac_cv_prog_cxx_g = yes; then
5558  if test "$GXX" = yes; then
5559    CXXFLAGS="-g -O2"
5560  else
5561    CXXFLAGS="-g"
5562  fi
5563else
5564  if test "$GXX" = yes; then
5565    CXXFLAGS="-O2"
5566  else
5567    CXXFLAGS=
5568  fi
5569fi
5570ac_ext=cpp
5571ac_cpp='$CXXCPP $CPPFLAGS'
5572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5575
5576depcc="$CXX"  am_compiler_list=
5577
5578{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5579echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5580if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5581  echo $ECHO_N "(cached) $ECHO_C" >&6
5582else
5583  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5584  # We make a subdir and do the tests there.  Otherwise we can end up
5585  # making bogus files that we don't know about and never remove.  For
5586  # instance it was reported that on HP-UX the gcc test will end up
5587  # making a dummy file named `D' -- because `-MD' means `put the output
5588  # in D'.
5589  mkdir conftest.dir
5590  # Copy depcomp to subdir because otherwise we won't find it if we're
5591  # using a relative directory.
5592  cp "$am_depcomp" conftest.dir
5593  cd conftest.dir
5594  # We will build objects and dependencies in a subdirectory because
5595  # it helps to detect inapplicable dependency modes.  For instance
5596  # both Tru64's cc and ICC support -MD to output dependencies as a
5597  # side effect of compilation, but ICC will put the dependencies in
5598  # the current directory while Tru64 will put them in the object
5599  # directory.
5600  mkdir sub
5601
5602  am_cv_CXX_dependencies_compiler_type=none
5603  if test "$am_compiler_list" = ""; then
5604     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5605  fi
5606  for depmode in $am_compiler_list; do
5607    # Setup a source with many dependencies, because some compilers
5608    # like to wrap large dependency lists on column 80 (with \), and
5609    # we should not choose a depcomp mode which is confused by this.
5610    #
5611    # We need to recreate these files for each test, as the compiler may
5612    # overwrite some of them when testing with obscure command lines.
5613    # This happens at least with the AIX C compiler.
5614    : > sub/conftest.c
5615    for i in 1 2 3 4 5 6; do
5616      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5617      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5618      # Solaris 8's {/usr,}/bin/sh.
5619      touch sub/conftst$i.h
5620    done
5621    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5622
5623    case $depmode in
5624    nosideeffect)
5625      # after this tag, mechanisms are not by side-effect, so they'll
5626      # only be used when explicitly requested
5627      if test "x$enable_dependency_tracking" = xyes; then
5628        continue
5629      else
5630        break
5631      fi
5632      ;;
5633    none) break ;;
5634    esac
5635    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5636    # mode.  It turns out that the SunPro C++ compiler does not properly
5637    # handle `-M -o', and we need to detect this.
5638    if depmode=$depmode \
5639       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5640       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5641       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5642         >/dev/null 2>conftest.err &&
5643       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5644       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5645       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5646       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5647      # icc doesn't choke on unknown options, it will just issue warnings
5648      # or remarks (even with -Werror).  So we grep stderr for any message
5649      # that says an option was ignored or not supported.
5650      # When given -MP, icc 7.0 and 7.1 complain thusly:
5651      #   icc: Command line warning: ignoring option '-M'; no argument required
5652      # The diagnosis changed in icc 8.0:
5653      #   icc: Command line remark: option '-MP' not supported
5654      if (grep 'ignoring option' conftest.err ||
5655          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5656        am_cv_CXX_dependencies_compiler_type=$depmode
5657        break
5658      fi
5659    fi
5660  done
5661
5662  cd ..
5663  rm -rf conftest.dir
5664else
5665  am_cv_CXX_dependencies_compiler_type=none
5666fi
5667
5668fi
5669{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5670echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5671CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5672
5673 if
5674  test "x$enable_dependency_tracking" != xno \
5675  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5676  am__fastdepCXX_TRUE=
5677  am__fastdepCXX_FALSE='#'
5678else
5679  am__fastdepCXX_TRUE='#'
5680  am__fastdepCXX_FALSE=
5681fi
5682
5683
5684
5685
5686if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5687    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5688    (test "X$CXX" != "Xg++"))) ; then
5689  ac_ext=cpp
5690ac_cpp='$CXXCPP $CPPFLAGS'
5691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5694{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5695echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5696if test -z "$CXXCPP"; then
5697  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5698  echo $ECHO_N "(cached) $ECHO_C" >&6
5699else
5700      # Double quotes because CXXCPP needs to be expanded
5701    for CXXCPP in "$CXX -E" "/lib/cpp"
5702    do
5703      ac_preproc_ok=false
5704for ac_cxx_preproc_warn_flag in '' yes
5705do
5706  # Use a header file that comes with gcc, so configuring glibc
5707  # with a fresh cross-compiler works.
5708  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5709  # <limits.h> exists even on freestanding compilers.
5710  # On the NeXT, cc -E runs the code through the compiler's parser,
5711  # not just through cpp. "Syntax error" is here to catch this case.
5712  cat >conftest.$ac_ext <<_ACEOF
5713/* confdefs.h.  */
5714_ACEOF
5715cat confdefs.h >>conftest.$ac_ext
5716cat >>conftest.$ac_ext <<_ACEOF
5717/* end confdefs.h.  */
5718#ifdef __STDC__
5719# include <limits.h>
5720#else
5721# include <assert.h>
5722#endif
5723                     Syntax error
5724_ACEOF
5725if { (ac_try="$ac_cpp conftest.$ac_ext"
5726case "(($ac_try" in
5727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728  *) ac_try_echo=$ac_try;;
5729esac
5730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5732  ac_status=$?
5733  grep -v '^ *+' conftest.er1 >conftest.err
5734  rm -f conftest.er1
5735  cat conftest.err >&5
5736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737  (exit $ac_status); } >/dev/null && {
5738         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5739         test ! -s conftest.err
5740       }; then
5741  :
5742else
5743  echo "$as_me: failed program was:" >&5
5744sed 's/^/| /' conftest.$ac_ext >&5
5745
5746  # Broken: fails on valid input.
5747continue
5748fi
5749
5750rm -f conftest.err conftest.$ac_ext
5751
5752  # OK, works on sane cases.  Now check whether nonexistent headers
5753  # can be detected and how.
5754  cat >conftest.$ac_ext <<_ACEOF
5755/* confdefs.h.  */
5756_ACEOF
5757cat confdefs.h >>conftest.$ac_ext
5758cat >>conftest.$ac_ext <<_ACEOF
5759/* end confdefs.h.  */
5760#include <ac_nonexistent.h>
5761_ACEOF
5762if { (ac_try="$ac_cpp conftest.$ac_ext"
5763case "(($ac_try" in
5764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765  *) ac_try_echo=$ac_try;;
5766esac
5767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5769  ac_status=$?
5770  grep -v '^ *+' conftest.er1 >conftest.err
5771  rm -f conftest.er1
5772  cat conftest.err >&5
5773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774  (exit $ac_status); } >/dev/null && {
5775         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5776         test ! -s conftest.err
5777       }; then
5778  # Broken: success on invalid input.
5779continue
5780else
5781  echo "$as_me: failed program was:" >&5
5782sed 's/^/| /' conftest.$ac_ext >&5
5783
5784  # Passes both tests.
5785ac_preproc_ok=:
5786break
5787fi
5788
5789rm -f conftest.err conftest.$ac_ext
5790
5791done
5792# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5793rm -f conftest.err conftest.$ac_ext
5794if $ac_preproc_ok; then
5795  break
5796fi
5797
5798    done
5799    ac_cv_prog_CXXCPP=$CXXCPP
5800
5801fi
5802  CXXCPP=$ac_cv_prog_CXXCPP
5803else
5804  ac_cv_prog_CXXCPP=$CXXCPP
5805fi
5806{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5807echo "${ECHO_T}$CXXCPP" >&6; }
5808ac_preproc_ok=false
5809for ac_cxx_preproc_warn_flag in '' yes
5810do
5811  # Use a header file that comes with gcc, so configuring glibc
5812  # with a fresh cross-compiler works.
5813  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5814  # <limits.h> exists even on freestanding compilers.
5815  # On the NeXT, cc -E runs the code through the compiler's parser,
5816  # not just through cpp. "Syntax error" is here to catch this case.
5817  cat >conftest.$ac_ext <<_ACEOF
5818/* confdefs.h.  */
5819_ACEOF
5820cat confdefs.h >>conftest.$ac_ext
5821cat >>conftest.$ac_ext <<_ACEOF
5822/* end confdefs.h.  */
5823#ifdef __STDC__
5824# include <limits.h>
5825#else
5826# include <assert.h>
5827#endif
5828                     Syntax error
5829_ACEOF
5830if { (ac_try="$ac_cpp conftest.$ac_ext"
5831case "(($ac_try" in
5832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833  *) ac_try_echo=$ac_try;;
5834esac
5835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5837  ac_status=$?
5838  grep -v '^ *+' conftest.er1 >conftest.err
5839  rm -f conftest.er1
5840  cat conftest.err >&5
5841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842  (exit $ac_status); } >/dev/null && {
5843         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5844         test ! -s conftest.err
5845       }; then
5846  :
5847else
5848  echo "$as_me: failed program was:" >&5
5849sed 's/^/| /' conftest.$ac_ext >&5
5850
5851  # Broken: fails on valid input.
5852continue
5853fi
5854
5855rm -f conftest.err conftest.$ac_ext
5856
5857  # OK, works on sane cases.  Now check whether nonexistent headers
5858  # can be detected and how.
5859  cat >conftest.$ac_ext <<_ACEOF
5860/* confdefs.h.  */
5861_ACEOF
5862cat confdefs.h >>conftest.$ac_ext
5863cat >>conftest.$ac_ext <<_ACEOF
5864/* end confdefs.h.  */
5865#include <ac_nonexistent.h>
5866_ACEOF
5867if { (ac_try="$ac_cpp conftest.$ac_ext"
5868case "(($ac_try" in
5869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870  *) ac_try_echo=$ac_try;;
5871esac
5872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5874  ac_status=$?
5875  grep -v '^ *+' conftest.er1 >conftest.err
5876  rm -f conftest.er1
5877  cat conftest.err >&5
5878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879  (exit $ac_status); } >/dev/null && {
5880         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5881         test ! -s conftest.err
5882       }; then
5883  # Broken: success on invalid input.
5884continue
5885else
5886  echo "$as_me: failed program was:" >&5
5887sed 's/^/| /' conftest.$ac_ext >&5
5888
5889  # Passes both tests.
5890ac_preproc_ok=:
5891break
5892fi
5893
5894rm -f conftest.err conftest.$ac_ext
5895
5896done
5897# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5898rm -f conftest.err conftest.$ac_ext
5899if $ac_preproc_ok; then
5900  :
5901else
5902  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5903See \`config.log' for more details." >&5
5904echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5905See \`config.log' for more details." >&2;}
5906   { (exit 1); exit 1; }; }
5907fi
5908
5909ac_ext=cpp
5910ac_cpp='$CXXCPP $CPPFLAGS'
5911ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5912ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5913ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5914
5915fi
5916
5917
5918ac_ext=f
5919ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5920ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5921ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5922if test -n "$ac_tool_prefix"; then
5923  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
5924  do
5925    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5926set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5927{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5929if test "${ac_cv_prog_F77+set}" = set; then
5930  echo $ECHO_N "(cached) $ECHO_C" >&6
5931else
5932  if test -n "$F77"; then
5933  ac_cv_prog_F77="$F77" # Let the user override the test.
5934else
5935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936for as_dir in $PATH
5937do
5938  IFS=$as_save_IFS
5939  test -z "$as_dir" && as_dir=.
5940  for ac_exec_ext in '' $ac_executable_extensions; do
5941  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5943    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5944    break 2
5945  fi
5946done
5947done
5948IFS=$as_save_IFS
5949
5950fi
5951fi
5952F77=$ac_cv_prog_F77
5953if test -n "$F77"; then
5954  { echo "$as_me:$LINENO: result: $F77" >&5
5955echo "${ECHO_T}$F77" >&6; }
5956else
5957  { echo "$as_me:$LINENO: result: no" >&5
5958echo "${ECHO_T}no" >&6; }
5959fi
5960
5961
5962    test -n "$F77" && break
5963  done
5964fi
5965if test -z "$F77"; then
5966  ac_ct_F77=$F77
5967  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
5968do
5969  # Extract the first word of "$ac_prog", so it can be a program name with args.
5970set dummy $ac_prog; ac_word=$2
5971{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5973if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5974  echo $ECHO_N "(cached) $ECHO_C" >&6
5975else
5976  if test -n "$ac_ct_F77"; then
5977  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5978else
5979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980for as_dir in $PATH
5981do
5982  IFS=$as_save_IFS
5983  test -z "$as_dir" && as_dir=.
5984  for ac_exec_ext in '' $ac_executable_extensions; do
5985  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5986    ac_cv_prog_ac_ct_F77="$ac_prog"
5987    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5988    break 2
5989  fi
5990done
5991done
5992IFS=$as_save_IFS
5993
5994fi
5995fi
5996ac_ct_F77=$ac_cv_prog_ac_ct_F77
5997if test -n "$ac_ct_F77"; then
5998  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5999echo "${ECHO_T}$ac_ct_F77" >&6; }
6000else
6001  { echo "$as_me:$LINENO: result: no" >&5
6002echo "${ECHO_T}no" >&6; }
6003fi
6004
6005
6006  test -n "$ac_ct_F77" && break
6007done
6008
6009  if test "x$ac_ct_F77" = x; then
6010    F77=""
6011  else
6012    case $cross_compiling:$ac_tool_warned in
6013yes:)
6014{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6015whose name does not start with the host triplet.  If you think this
6016configuration is useful to you, please write to autoconf@gnu.org." >&5
6017echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6018whose name does not start with the host triplet.  If you think this
6019configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6020ac_tool_warned=yes ;;
6021esac
6022    F77=$ac_ct_F77
6023  fi
6024fi
6025
6026
6027# Provide some information about the compiler.
6028echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6029ac_compiler=`set X $ac_compile; echo $2`
6030{ (ac_try="$ac_compiler --version >&5"
6031case "(($ac_try" in
6032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033  *) ac_try_echo=$ac_try;;
6034esac
6035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6036  (eval "$ac_compiler --version >&5") 2>&5
6037  ac_status=$?
6038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039  (exit $ac_status); }
6040{ (ac_try="$ac_compiler -v >&5"
6041case "(($ac_try" in
6042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043  *) ac_try_echo=$ac_try;;
6044esac
6045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6046  (eval "$ac_compiler -v >&5") 2>&5
6047  ac_status=$?
6048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049  (exit $ac_status); }
6050{ (ac_try="$ac_compiler -V >&5"
6051case "(($ac_try" in
6052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053  *) ac_try_echo=$ac_try;;
6054esac
6055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056  (eval "$ac_compiler -V >&5") 2>&5
6057  ac_status=$?
6058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059  (exit $ac_status); }
6060rm -f a.out
6061
6062# If we don't use `.F' as extension, the preprocessor is not run on the
6063# input file.  (Note that this only needs to work for GNU compilers.)
6064ac_save_ext=$ac_ext
6065ac_ext=F
6066{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6067echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6068if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6069  echo $ECHO_N "(cached) $ECHO_C" >&6
6070else
6071  cat >conftest.$ac_ext <<_ACEOF
6072      program main
6073#ifndef __GNUC__
6074       choke me
6075#endif
6076
6077      end
6078_ACEOF
6079rm -f conftest.$ac_objext
6080if { (ac_try="$ac_compile"
6081case "(($ac_try" in
6082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083  *) ac_try_echo=$ac_try;;
6084esac
6085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6086  (eval "$ac_compile") 2>conftest.er1
6087  ac_status=$?
6088  grep -v '^ *+' conftest.er1 >conftest.err
6089  rm -f conftest.er1
6090  cat conftest.err >&5
6091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092  (exit $ac_status); } && {
6093         test -z "$ac_f77_werror_flag" ||
6094         test ! -s conftest.err
6095       } && test -s conftest.$ac_objext; then
6096  ac_compiler_gnu=yes
6097else
6098  echo "$as_me: failed program was:" >&5
6099sed 's/^/| /' conftest.$ac_ext >&5
6100
6101        ac_compiler_gnu=no
6102fi
6103
6104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6105ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6106
6107fi
6108{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6109echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6110ac_ext=$ac_save_ext
6111ac_test_FFLAGS=${FFLAGS+set}
6112ac_save_FFLAGS=$FFLAGS
6113FFLAGS=
6114{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6115echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6116if test "${ac_cv_prog_f77_g+set}" = set; then
6117  echo $ECHO_N "(cached) $ECHO_C" >&6
6118else
6119  FFLAGS=-g
6120cat >conftest.$ac_ext <<_ACEOF
6121      program main
6122
6123      end
6124_ACEOF
6125rm -f conftest.$ac_objext
6126if { (ac_try="$ac_compile"
6127case "(($ac_try" in
6128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6129  *) ac_try_echo=$ac_try;;
6130esac
6131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6132  (eval "$ac_compile") 2>conftest.er1
6133  ac_status=$?
6134  grep -v '^ *+' conftest.er1 >conftest.err
6135  rm -f conftest.er1
6136  cat conftest.err >&5
6137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138  (exit $ac_status); } && {
6139         test -z "$ac_f77_werror_flag" ||
6140         test ! -s conftest.err
6141       } && test -s conftest.$ac_objext; then
6142  ac_cv_prog_f77_g=yes
6143else
6144  echo "$as_me: failed program was:" >&5
6145sed 's/^/| /' conftest.$ac_ext >&5
6146
6147        ac_cv_prog_f77_g=no
6148fi
6149
6150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6151
6152fi
6153{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6154echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6155if test "$ac_test_FFLAGS" = set; then
6156  FFLAGS=$ac_save_FFLAGS
6157elif test $ac_cv_prog_f77_g = yes; then
6158  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6159    FFLAGS="-g -O2"
6160  else
6161    FFLAGS="-g"
6162  fi
6163else
6164  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6165    FFLAGS="-O2"
6166  else
6167    FFLAGS=
6168  fi
6169fi
6170
6171G77=`test $ac_compiler_gnu = yes && echo yes`
6172ac_ext=c
6173ac_cpp='$CPP $CPPFLAGS'
6174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6176ac_compiler_gnu=$ac_cv_c_compiler_gnu
6177
6178
6179
6180# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6181
6182# find the maximum length of command line arguments
6183{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6184echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6185if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6186  echo $ECHO_N "(cached) $ECHO_C" >&6
6187else
6188    i=0
6189  teststring="ABCD"
6190
6191  case $build_os in
6192  msdosdjgpp*)
6193    # On DJGPP, this test can blow up pretty badly due to problems in libc
6194    # (any single argument exceeding 2000 bytes causes a buffer overrun
6195    # during glob expansion).  Even if it were fixed, the result of this
6196    # check would be larger than it should be.
6197    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6198    ;;
6199
6200  gnu*)
6201    # Under GNU Hurd, this test is not required because there is
6202    # no limit to the length of command line arguments.
6203    # Libtool will interpret -1 as no limit whatsoever
6204    lt_cv_sys_max_cmd_len=-1;
6205    ;;
6206
6207  cygwin* | mingw*)
6208    # On Win9x/ME, this test blows up -- it succeeds, but takes
6209    # about 5 minutes as the teststring grows exponentially.
6210    # Worse, since 9x/ME are not pre-emptively multitasking,
6211    # you end up with a "frozen" computer, even though with patience
6212    # the test eventually succeeds (with a max line length of 256k).
6213    # Instead, let's just punt: use the minimum linelength reported by
6214    # all of the supported platforms: 8192 (on NT/2K/XP).
6215    lt_cv_sys_max_cmd_len=8192;
6216    ;;
6217
6218  amigaos*)
6219    # On AmigaOS with pdksh, this test takes hours, literally.
6220    # So we just punt and use a minimum line length of 8192.
6221    lt_cv_sys_max_cmd_len=8192;
6222    ;;
6223
6224  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6225    # This has been around since 386BSD, at least.  Likely further.
6226    if test -x /sbin/sysctl; then
6227      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6228    elif test -x /usr/sbin/sysctl; then
6229      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6230    else
6231      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6232    fi
6233    # And add a safety zone
6234    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6235    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6236    ;;
6237
6238  interix*)
6239    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6240    lt_cv_sys_max_cmd_len=196608
6241    ;;
6242
6243  osf*)
6244    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6245    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6246    # nice to cause kernel panics so lets avoid the loop below.
6247    # First set a reasonable default.
6248    lt_cv_sys_max_cmd_len=16384
6249    #
6250    if test -x /sbin/sysconfig; then
6251      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6252        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6253      esac
6254    fi
6255    ;;
6256  sco3.2v5*)
6257    lt_cv_sys_max_cmd_len=102400
6258    ;;
6259  sysv5* | sco5v6* | sysv4.2uw2*)
6260    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6261    if test -n "$kargmax"; then
6262      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6263    else
6264      lt_cv_sys_max_cmd_len=32768
6265    fi
6266    ;;
6267  *)
6268    # If test is not a shell built-in, we'll probably end up computing a
6269    # maximum length that is only half of the actual maximum length, but
6270    # we can't tell.
6271    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6272    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6273               = "XX$teststring") >/dev/null 2>&1 &&
6274            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6275            lt_cv_sys_max_cmd_len=$new_result &&
6276            test $i != 17 # 1/2 MB should be enough
6277    do
6278      i=`expr $i + 1`
6279      teststring=$teststring$teststring
6280    done
6281    teststring=
6282    # Add a significant safety factor because C++ compilers can tack on massive
6283    # amounts of additional arguments before passing them to the linker.
6284    # It appears as though 1/2 is a usable value.
6285    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6286    ;;
6287  esac
6288
6289fi
6290
6291if test -n $lt_cv_sys_max_cmd_len ; then
6292  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6293echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6294else
6295  { echo "$as_me:$LINENO: result: none" >&5
6296echo "${ECHO_T}none" >&6; }
6297fi
6298
6299
6300
6301
6302# Check for command to grab the raw symbol name followed by C symbol from nm.
6303{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6304echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6305if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6306  echo $ECHO_N "(cached) $ECHO_C" >&6
6307else
6308
6309# These are sane defaults that work on at least a few old systems.
6310# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6311
6312# Character class describing NM global symbol codes.
6313symcode='[BCDEGRST]'
6314
6315# Regexp to match symbols that can be accessed directly from C.
6316sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6317
6318# Transform an extracted symbol line into a proper C declaration
6319lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6320
6321# Transform an extracted symbol line into symbol name and symbol address
6322lt_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'"
6323
6324# Define system-specific variables.
6325case $host_os in
6326aix*)
6327  symcode='[BCDT]'
6328  ;;
6329cygwin* | mingw* | pw32*)
6330  symcode='[ABCDGISTW]'
6331  ;;
6332hpux*) # Its linker distinguishes data from code symbols
6333  if test "$host_cpu" = ia64; then
6334    symcode='[ABCDEGRST]'
6335  fi
6336  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6337  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'"
6338  ;;
6339linux* | k*bsd*-gnu)
6340  if test "$host_cpu" = ia64; then
6341    symcode='[ABCDGIRSTW]'
6342    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6343    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'"
6344  fi
6345  ;;
6346irix* | nonstopux*)
6347  symcode='[BCDEGRST]'
6348  ;;
6349osf*)
6350  symcode='[BCDEGQRST]'
6351  ;;
6352solaris*)
6353  symcode='[BDRT]'
6354  ;;
6355sco3.2v5*)
6356  symcode='[DT]'
6357  ;;
6358sysv4.2uw2*)
6359  symcode='[DT]'
6360  ;;
6361sysv5* | sco5v6* | unixware* | OpenUNIX*)
6362  symcode='[ABDT]'
6363  ;;
6364sysv4)
6365  symcode='[DFNSTU]'
6366  ;;
6367esac
6368
6369# Handle CRLF in mingw tool chain
6370opt_cr=
6371case $build_os in
6372mingw*)
6373  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6374  ;;
6375esac
6376
6377# If we're using GNU nm, then use its standard symbol codes.
6378case `$NM -V 2>&1` in
6379*GNU* | *'with BFD'*)
6380  symcode='[ABCDGIRSTW]' ;;
6381esac
6382
6383# Try without a prefix undercore, then with it.
6384for ac_symprfx in "" "_"; do
6385
6386  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6387  symxfrm="\\1 $ac_symprfx\\2 \\2"
6388
6389  # Write the raw and C identifiers.
6390  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6391
6392  # Check to see that the pipe works correctly.
6393  pipe_works=no
6394
6395  rm -f conftest*
6396  cat > conftest.$ac_ext <<EOF
6397#ifdef __cplusplus
6398extern "C" {
6399#endif
6400char nm_test_var;
6401void nm_test_func(){}
6402#ifdef __cplusplus
6403}
6404#endif
6405int main(){nm_test_var='a';nm_test_func();return(0);}
6406EOF
6407
6408  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6409  (eval $ac_compile) 2>&5
6410  ac_status=$?
6411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412  (exit $ac_status); }; then
6413    # Now try to grab the symbols.
6414    nlist=conftest.nm
6415    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6416  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6417  ac_status=$?
6418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419  (exit $ac_status); } && test -s "$nlist"; then
6420      # Try sorting and uniquifying the output.
6421      if sort "$nlist" | uniq > "$nlist"T; then
6422        mv -f "$nlist"T "$nlist"
6423      else
6424        rm -f "$nlist"T
6425      fi
6426
6427      # Make sure that we snagged all the symbols we need.
6428      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6429        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6430          cat <<EOF > conftest.$ac_ext
6431#ifdef __cplusplus
6432extern "C" {
6433#endif
6434
6435EOF
6436          # Now generate the symbol file.
6437          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6438
6439          cat <<EOF >> conftest.$ac_ext
6440#if defined (__STDC__) && __STDC__
6441# define lt_ptr_t void *
6442#else
6443# define lt_ptr_t char *
6444# define const
6445#endif
6446
6447/* The mapping between symbol names and symbols. */
6448const struct {
6449  const char *name;
6450  lt_ptr_t address;
6451}
6452lt_preloaded_symbols[] =
6453{
6454EOF
6455          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6456          cat <<\EOF >> conftest.$ac_ext
6457  {0, (lt_ptr_t) 0}
6458};
6459
6460#ifdef __cplusplus
6461}
6462#endif
6463EOF
6464          # Now try linking the two files.
6465          mv conftest.$ac_objext conftstm.$ac_objext
6466          lt_save_LIBS="$LIBS"
6467          lt_save_CFLAGS="$CFLAGS"
6468          LIBS="conftstm.$ac_objext"
6469          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6470          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6471  (eval $ac_link) 2>&5
6472  ac_status=$?
6473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6475            pipe_works=yes
6476          fi
6477          LIBS="$lt_save_LIBS"
6478          CFLAGS="$lt_save_CFLAGS"
6479        else
6480          echo "cannot find nm_test_func in $nlist" >&5
6481        fi
6482      else
6483        echo "cannot find nm_test_var in $nlist" >&5
6484      fi
6485    else
6486      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6487    fi
6488  else
6489    echo "$progname: failed program was:" >&5
6490    cat conftest.$ac_ext >&5
6491  fi
6492  rm -f conftest* conftst*
6493
6494  # Do not use the global_symbol_pipe unless it works.
6495  if test "$pipe_works" = yes; then
6496    break
6497  else
6498    lt_cv_sys_global_symbol_pipe=
6499  fi
6500done
6501
6502fi
6503
6504if test -z "$lt_cv_sys_global_symbol_pipe"; then
6505  lt_cv_sys_global_symbol_to_cdecl=
6506fi
6507if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6508  { echo "$as_me:$LINENO: result: failed" >&5
6509echo "${ECHO_T}failed" >&6; }
6510else
6511  { echo "$as_me:$LINENO: result: ok" >&5
6512echo "${ECHO_T}ok" >&6; }
6513fi
6514
6515{ echo "$as_me:$LINENO: checking for objdir" >&5
6516echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6517if test "${lt_cv_objdir+set}" = set; then
6518  echo $ECHO_N "(cached) $ECHO_C" >&6
6519else
6520  rm -f .libs 2>/dev/null
6521mkdir .libs 2>/dev/null
6522if test -d .libs; then
6523  lt_cv_objdir=.libs
6524else
6525  # MS-DOS does not allow filenames that begin with a dot.
6526  lt_cv_objdir=_libs
6527fi
6528rmdir .libs 2>/dev/null
6529fi
6530{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6531echo "${ECHO_T}$lt_cv_objdir" >&6; }
6532objdir=$lt_cv_objdir
6533
6534
6535
6536
6537
6538case $host_os in
6539aix3*)
6540  # AIX sometimes has problems with the GCC collect2 program.  For some
6541  # reason, if we set the COLLECT_NAMES environment variable, the problems
6542  # vanish in a puff of smoke.
6543  if test "X${COLLECT_NAMES+set}" != Xset; then
6544    COLLECT_NAMES=
6545    export COLLECT_NAMES
6546  fi
6547  ;;
6548esac
6549
6550# Sed substitution that helps us do robust quoting.  It backslashifies
6551# metacharacters that are still active within double-quoted strings.
6552Xsed='sed -e 1s/^X//'
6553sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6554
6555# Same as above, but do not quote variable references.
6556double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6557
6558# Sed substitution to delay expansion of an escaped shell variable in a
6559# double_quote_subst'ed string.
6560delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6561
6562# Sed substitution to avoid accidental globbing in evaled expressions
6563no_glob_subst='s/\*/\\\*/g'
6564
6565# Constants:
6566rm="rm -f"
6567
6568# Global variables:
6569default_ofile=libtool
6570can_build_shared=yes
6571
6572# All known linkers require a `.a' archive for static linking (except MSVC,
6573# which needs '.lib').
6574libext=a
6575ltmain="$ac_aux_dir/ltmain.sh"
6576ofile="$default_ofile"
6577with_gnu_ld="$lt_cv_prog_gnu_ld"
6578
6579if test -n "$ac_tool_prefix"; then
6580  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6581set dummy ${ac_tool_prefix}ar; ac_word=$2
6582{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6584if test "${ac_cv_prog_AR+set}" = set; then
6585  echo $ECHO_N "(cached) $ECHO_C" >&6
6586else
6587  if test -n "$AR"; then
6588  ac_cv_prog_AR="$AR" # Let the user override the test.
6589else
6590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591for as_dir in $PATH
6592do
6593  IFS=$as_save_IFS
6594  test -z "$as_dir" && as_dir=.
6595  for ac_exec_ext in '' $ac_executable_extensions; do
6596  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597    ac_cv_prog_AR="${ac_tool_prefix}ar"
6598    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599    break 2
6600  fi
6601done
6602done
6603IFS=$as_save_IFS
6604
6605fi
6606fi
6607AR=$ac_cv_prog_AR
6608if test -n "$AR"; then
6609  { echo "$as_me:$LINENO: result: $AR" >&5
6610echo "${ECHO_T}$AR" >&6; }
6611else
6612  { echo "$as_me:$LINENO: result: no" >&5
6613echo "${ECHO_T}no" >&6; }
6614fi
6615
6616
6617fi
6618if test -z "$ac_cv_prog_AR"; then
6619  ac_ct_AR=$AR
6620  # Extract the first word of "ar", so it can be a program name with args.
6621set dummy ar; ac_word=$2
6622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6624if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6625  echo $ECHO_N "(cached) $ECHO_C" >&6
6626else
6627  if test -n "$ac_ct_AR"; then
6628  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6629else
6630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631for as_dir in $PATH
6632do
6633  IFS=$as_save_IFS
6634  test -z "$as_dir" && as_dir=.
6635  for ac_exec_ext in '' $ac_executable_extensions; do
6636  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6637    ac_cv_prog_ac_ct_AR="ar"
6638    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639    break 2
6640  fi
6641done
6642done
6643IFS=$as_save_IFS
6644
6645fi
6646fi
6647ac_ct_AR=$ac_cv_prog_ac_ct_AR
6648if test -n "$ac_ct_AR"; then
6649  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6650echo "${ECHO_T}$ac_ct_AR" >&6; }
6651else
6652  { echo "$as_me:$LINENO: result: no" >&5
6653echo "${ECHO_T}no" >&6; }
6654fi
6655
6656  if test "x$ac_ct_AR" = x; then
6657    AR="false"
6658  else
6659    case $cross_compiling:$ac_tool_warned in
6660yes:)
6661{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6662whose name does not start with the host triplet.  If you think this
6663configuration is useful to you, please write to autoconf@gnu.org." >&5
6664echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6665whose name does not start with the host triplet.  If you think this
6666configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6667ac_tool_warned=yes ;;
6668esac
6669    AR=$ac_ct_AR
6670  fi
6671else
6672  AR="$ac_cv_prog_AR"
6673fi
6674
6675if test -n "$ac_tool_prefix"; then
6676  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6677set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6678{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6680if test "${ac_cv_prog_RANLIB+set}" = set; then
6681  echo $ECHO_N "(cached) $ECHO_C" >&6
6682else
6683  if test -n "$RANLIB"; then
6684  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6685else
6686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687for as_dir in $PATH
6688do
6689  IFS=$as_save_IFS
6690  test -z "$as_dir" && as_dir=.
6691  for ac_exec_ext in '' $ac_executable_extensions; do
6692  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6693    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6694    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6695    break 2
6696  fi
6697done
6698done
6699IFS=$as_save_IFS
6700
6701fi
6702fi
6703RANLIB=$ac_cv_prog_RANLIB
6704if test -n "$RANLIB"; then
6705  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6706echo "${ECHO_T}$RANLIB" >&6; }
6707else
6708  { echo "$as_me:$LINENO: result: no" >&5
6709echo "${ECHO_T}no" >&6; }
6710fi
6711
6712
6713fi
6714if test -z "$ac_cv_prog_RANLIB"; then
6715  ac_ct_RANLIB=$RANLIB
6716  # Extract the first word of "ranlib", so it can be a program name with args.
6717set dummy ranlib; ac_word=$2
6718{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6721  echo $ECHO_N "(cached) $ECHO_C" >&6
6722else
6723  if test -n "$ac_ct_RANLIB"; then
6724  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6725else
6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729  IFS=$as_save_IFS
6730  test -z "$as_dir" && as_dir=.
6731  for ac_exec_ext in '' $ac_executable_extensions; do
6732  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733    ac_cv_prog_ac_ct_RANLIB="ranlib"
6734    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735    break 2
6736  fi
6737done
6738done
6739IFS=$as_save_IFS
6740
6741fi
6742fi
6743ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6744if test -n "$ac_ct_RANLIB"; then
6745  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6746echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6747else
6748  { echo "$as_me:$LINENO: result: no" >&5
6749echo "${ECHO_T}no" >&6; }
6750fi
6751
6752  if test "x$ac_ct_RANLIB" = x; then
6753    RANLIB=":"
6754  else
6755    case $cross_compiling:$ac_tool_warned in
6756yes:)
6757{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6758whose name does not start with the host triplet.  If you think this
6759configuration is useful to you, please write to autoconf@gnu.org." >&5
6760echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6761whose name does not start with the host triplet.  If you think this
6762configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6763ac_tool_warned=yes ;;
6764esac
6765    RANLIB=$ac_ct_RANLIB
6766  fi
6767else
6768  RANLIB="$ac_cv_prog_RANLIB"
6769fi
6770
6771if test -n "$ac_tool_prefix"; then
6772  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6773set dummy ${ac_tool_prefix}strip; ac_word=$2
6774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776if test "${ac_cv_prog_STRIP+set}" = set; then
6777  echo $ECHO_N "(cached) $ECHO_C" >&6
6778else
6779  if test -n "$STRIP"; then
6780  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6781else
6782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783for as_dir in $PATH
6784do
6785  IFS=$as_save_IFS
6786  test -z "$as_dir" && as_dir=.
6787  for ac_exec_ext in '' $ac_executable_extensions; do
6788  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6790    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6791    break 2
6792  fi
6793done
6794done
6795IFS=$as_save_IFS
6796
6797fi
6798fi
6799STRIP=$ac_cv_prog_STRIP
6800if test -n "$STRIP"; then
6801  { echo "$as_me:$LINENO: result: $STRIP" >&5
6802echo "${ECHO_T}$STRIP" >&6; }
6803else
6804  { echo "$as_me:$LINENO: result: no" >&5
6805echo "${ECHO_T}no" >&6; }
6806fi
6807
6808
6809fi
6810if test -z "$ac_cv_prog_STRIP"; then
6811  ac_ct_STRIP=$STRIP
6812  # Extract the first word of "strip", so it can be a program name with args.
6813set dummy strip; ac_word=$2
6814{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6817  echo $ECHO_N "(cached) $ECHO_C" >&6
6818else
6819  if test -n "$ac_ct_STRIP"; then
6820  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6821else
6822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823for as_dir in $PATH
6824do
6825  IFS=$as_save_IFS
6826  test -z "$as_dir" && as_dir=.
6827  for ac_exec_ext in '' $ac_executable_extensions; do
6828  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6829    ac_cv_prog_ac_ct_STRIP="strip"
6830    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831    break 2
6832  fi
6833done
6834done
6835IFS=$as_save_IFS
6836
6837fi
6838fi
6839ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6840if test -n "$ac_ct_STRIP"; then
6841  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6842echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6843else
6844  { echo "$as_me:$LINENO: result: no" >&5
6845echo "${ECHO_T}no" >&6; }
6846fi
6847
6848  if test "x$ac_ct_STRIP" = x; then
6849    STRIP=":"
6850  else
6851    case $cross_compiling:$ac_tool_warned in
6852yes:)
6853{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6854whose name does not start with the host triplet.  If you think this
6855configuration is useful to you, please write to autoconf@gnu.org." >&5
6856echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6857whose name does not start with the host triplet.  If you think this
6858configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6859ac_tool_warned=yes ;;
6860esac
6861    STRIP=$ac_ct_STRIP
6862  fi
6863else
6864  STRIP="$ac_cv_prog_STRIP"
6865fi
6866
6867
6868old_CC="$CC"
6869old_CFLAGS="$CFLAGS"
6870
6871# Set sane defaults for various variables
6872test -z "$AR" && AR=ar
6873test -z "$AR_FLAGS" && AR_FLAGS=cru
6874test -z "$AS" && AS=as
6875test -z "$CC" && CC=cc
6876test -z "$LTCC" && LTCC=$CC
6877test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6878test -z "$DLLTOOL" && DLLTOOL=dlltool
6879test -z "$LD" && LD=ld
6880test -z "$LN_S" && LN_S="ln -s"
6881test -z "$MAGIC_CMD" && MAGIC_CMD=file
6882test -z "$NM" && NM=nm
6883test -z "$SED" && SED=sed
6884test -z "$OBJDUMP" && OBJDUMP=objdump
6885test -z "$RANLIB" && RANLIB=:
6886test -z "$STRIP" && STRIP=:
6887test -z "$ac_objext" && ac_objext=o
6888
6889# Determine commands to create old-style static archives.
6890old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6891old_postinstall_cmds='chmod 644 $oldlib'
6892old_postuninstall_cmds=
6893
6894if test -n "$RANLIB"; then
6895  case $host_os in
6896  openbsd*)
6897    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6898    ;;
6899  *)
6900    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6901    ;;
6902  esac
6903  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6904fi
6905
6906for cc_temp in $compiler""; do
6907  case $cc_temp in
6908    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6909    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6910    \-*) ;;
6911    *) break;;
6912  esac
6913done
6914cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6915
6916
6917# Only perform the check for file, if the check method requires it
6918case $deplibs_check_method in
6919file_magic*)
6920  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6921    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6922echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6923if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6924  echo $ECHO_N "(cached) $ECHO_C" >&6
6925else
6926  case $MAGIC_CMD in
6927[\\/*] |  ?:[\\/]*)
6928  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6929  ;;
6930*)
6931  lt_save_MAGIC_CMD="$MAGIC_CMD"
6932  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6933  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6934  for ac_dir in $ac_dummy; do
6935    IFS="$lt_save_ifs"
6936    test -z "$ac_dir" && ac_dir=.
6937    if test -f $ac_dir/${ac_tool_prefix}file; then
6938      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6939      if test -n "$file_magic_test_file"; then
6940        case $deplibs_check_method in
6941        "file_magic "*)
6942          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6943          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6944          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6945            $EGREP "$file_magic_regex" > /dev/null; then
6946            :
6947          else
6948            cat <<EOF 1>&2
6949
6950*** Warning: the command libtool uses to detect shared libraries,
6951*** $file_magic_cmd, produces output that libtool cannot recognize.
6952*** The result is that libtool may fail to recognize shared libraries
6953*** as such.  This will affect the creation of libtool libraries that
6954*** depend on shared libraries, but programs linked with such libtool
6955*** libraries will work regardless of this problem.  Nevertheless, you
6956*** may want to report the problem to your system manager and/or to
6957*** bug-libtool@gnu.org
6958
6959EOF
6960          fi ;;
6961        esac
6962      fi
6963      break
6964    fi
6965  done
6966  IFS="$lt_save_ifs"
6967  MAGIC_CMD="$lt_save_MAGIC_CMD"
6968  ;;
6969esac
6970fi
6971
6972MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6973if test -n "$MAGIC_CMD"; then
6974  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6975echo "${ECHO_T}$MAGIC_CMD" >&6; }
6976else
6977  { echo "$as_me:$LINENO: result: no" >&5
6978echo "${ECHO_T}no" >&6; }
6979fi
6980
6981if test -z "$lt_cv_path_MAGIC_CMD"; then
6982  if test -n "$ac_tool_prefix"; then
6983    { echo "$as_me:$LINENO: checking for file" >&5
6984echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6985if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6986  echo $ECHO_N "(cached) $ECHO_C" >&6
6987else
6988  case $MAGIC_CMD in
6989[\\/*] |  ?:[\\/]*)
6990  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6991  ;;
6992*)
6993  lt_save_MAGIC_CMD="$MAGIC_CMD"
6994  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6995  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6996  for ac_dir in $ac_dummy; do
6997    IFS="$lt_save_ifs"
6998    test -z "$ac_dir" && ac_dir=.
6999    if test -f $ac_dir/file; then
7000      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7001      if test -n "$file_magic_test_file"; then
7002        case $deplibs_check_method in
7003        "file_magic "*)
7004          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7005          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7006          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7007            $EGREP "$file_magic_regex" > /dev/null; then
7008            :
7009          else
7010            cat <<EOF 1>&2
7011
7012*** Warning: the command libtool uses to detect shared libraries,
7013*** $file_magic_cmd, produces output that libtool cannot recognize.
7014*** The result is that libtool may fail to recognize shared libraries
7015*** as such.  This will affect the creation of libtool libraries that
7016*** depend on shared libraries, but programs linked with such libtool
7017*** libraries will work regardless of this problem.  Nevertheless, you
7018*** may want to report the problem to your system manager and/or to
7019*** bug-libtool@gnu.org
7020
7021EOF
7022          fi ;;
7023        esac
7024      fi
7025      break
7026    fi
7027  done
7028  IFS="$lt_save_ifs"
7029  MAGIC_CMD="$lt_save_MAGIC_CMD"
7030  ;;
7031esac
7032fi
7033
7034MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7035if test -n "$MAGIC_CMD"; then
7036  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7037echo "${ECHO_T}$MAGIC_CMD" >&6; }
7038else
7039  { echo "$as_me:$LINENO: result: no" >&5
7040echo "${ECHO_T}no" >&6; }
7041fi
7042
7043  else
7044    MAGIC_CMD=:
7045  fi
7046fi
7047
7048  fi
7049  ;;
7050esac
7051
7052enable_dlopen=no
7053enable_win32_dll=no
7054
7055# Check whether --enable-libtool-lock was given.
7056if test "${enable_libtool_lock+set}" = set; then
7057  enableval=$enable_libtool_lock;
7058fi
7059
7060test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7061
7062
7063# Check whether --with-pic was given.
7064if test "${with_pic+set}" = set; then
7065  withval=$with_pic; pic_mode="$withval"
7066else
7067  pic_mode=default
7068fi
7069
7070test -z "$pic_mode" && pic_mode=default
7071
7072# Use C for the default configuration in the libtool script
7073tagname=
7074lt_save_CC="$CC"
7075ac_ext=c
7076ac_cpp='$CPP $CPPFLAGS'
7077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7079ac_compiler_gnu=$ac_cv_c_compiler_gnu
7080
7081
7082# Source file extension for C test sources.
7083ac_ext=c
7084
7085# Object file extension for compiled C test sources.
7086objext=o
7087objext=$objext
7088
7089# Code to be used in simple compile tests
7090lt_simple_compile_test_code="int some_variable = 0;\n"
7091
7092# Code to be used in simple link tests
7093lt_simple_link_test_code='int main(){return(0);}\n'
7094
7095
7096# If no C compiler was specified, use CC.
7097LTCC=${LTCC-"$CC"}
7098
7099# If no C compiler flags were specified, use CFLAGS.
7100LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7101
7102# Allow CC to be a program name with arguments.
7103compiler=$CC
7104
7105
7106# save warnings/boilerplate of simple test code
7107ac_outfile=conftest.$ac_objext
7108printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7109eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7110_lt_compiler_boilerplate=`cat conftest.err`
7111$rm conftest*
7112
7113ac_outfile=conftest.$ac_objext
7114printf "$lt_simple_link_test_code" >conftest.$ac_ext
7115eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7116_lt_linker_boilerplate=`cat conftest.err`
7117$rm conftest*
7118
7119
7120
7121lt_prog_compiler_no_builtin_flag=
7122
7123if test "$GCC" = yes; then
7124  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7125
7126
7127{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7128echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7129if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7130  echo $ECHO_N "(cached) $ECHO_C" >&6
7131else
7132  lt_cv_prog_compiler_rtti_exceptions=no
7133  ac_outfile=conftest.$ac_objext
7134   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7135   lt_compiler_flag="-fno-rtti -fno-exceptions"
7136   # Insert the option either (1) after the last *FLAGS variable, or
7137   # (2) before a word containing "conftest.", or (3) at the end.
7138   # Note that $ac_compile itself does not contain backslashes and begins
7139   # with a dollar sign (not a hyphen), so the echo should work correctly.
7140   # The option is referenced via a variable to avoid confusing sed.
7141   lt_compile=`echo "$ac_compile" | $SED \
7142   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7143   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7144   -e 's:$: $lt_compiler_flag:'`
7145   (eval echo "\"\$as_me:7145: $lt_compile\"" >&5)
7146   (eval "$lt_compile" 2>conftest.err)
7147   ac_status=$?
7148   cat conftest.err >&5
7149   echo "$as_me:7149: \$? = $ac_status" >&5
7150   if (exit $ac_status) && test -s "$ac_outfile"; then
7151     # The compiler can only warn and ignore the option if not recognized
7152     # So say no if there are warnings other than the usual output.
7153     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7154     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7155     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7156       lt_cv_prog_compiler_rtti_exceptions=yes
7157     fi
7158   fi
7159   $rm conftest*
7160
7161fi
7162{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7163echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7164
7165if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7166    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7167else
7168    :
7169fi
7170
7171fi
7172
7173lt_prog_compiler_wl=
7174lt_prog_compiler_pic=
7175lt_prog_compiler_static=
7176
7177{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7178echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7179
7180  if test "$GCC" = yes; then
7181    lt_prog_compiler_wl='-Wl,'
7182    lt_prog_compiler_static='-static'
7183
7184    case $host_os in
7185      aix*)
7186      # All AIX code is PIC.
7187      if test "$host_cpu" = ia64; then
7188        # AIX 5 now supports IA64 processor
7189        lt_prog_compiler_static='-Bstatic'
7190      fi
7191      ;;
7192
7193    amigaos*)
7194      # FIXME: we need at least 68020 code to build shared libraries, but
7195      # adding the `-m68020' flag to GCC prevents building anything better,
7196      # like `-m68040'.
7197      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7198      ;;
7199
7200    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7201      # PIC is the default for these OSes.
7202      ;;
7203
7204    mingw* | pw32* | os2*)
7205      # This hack is so that the source file can tell whether it is being
7206      # built for inclusion in a dll (and should export symbols for example).
7207      lt_prog_compiler_pic='-DDLL_EXPORT'
7208      ;;
7209
7210    darwin* | rhapsody*)
7211      # PIC is the default on this platform
7212      # Common symbols not allowed in MH_DYLIB files
7213      lt_prog_compiler_pic='-fno-common'
7214      ;;
7215
7216    interix3*)
7217      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7218      # Instead, we relocate shared libraries at runtime.
7219      ;;
7220
7221    msdosdjgpp*)
7222      # Just because we use GCC doesn't mean we suddenly get shared libraries
7223      # on systems that don't support them.
7224      lt_prog_compiler_can_build_shared=no
7225      enable_shared=no
7226      ;;
7227
7228    sysv4*MP*)
7229      if test -d /usr/nec; then
7230        lt_prog_compiler_pic=-Kconform_pic
7231      fi
7232      ;;
7233
7234    hpux*)
7235      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7236      # not for PA HP-UX.
7237      case $host_cpu in
7238      hppa*64*|ia64*)
7239        # +Z the default
7240        ;;
7241      *)
7242        lt_prog_compiler_pic='-fPIC'
7243        ;;
7244      esac
7245      ;;
7246
7247    *)
7248      lt_prog_compiler_pic='-fPIC'
7249      ;;
7250    esac
7251  else
7252    # PORTME Check for flag to pass linker flags through the system compiler.
7253    case $host_os in
7254    aix*)
7255      lt_prog_compiler_wl='-Wl,'
7256      if test "$host_cpu" = ia64; then
7257        # AIX 5 now supports IA64 processor
7258        lt_prog_compiler_static='-Bstatic'
7259      else
7260        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7261      fi
7262      ;;
7263      darwin*)
7264        # PIC is the default on this platform
7265        # Common symbols not allowed in MH_DYLIB files
7266       case $cc_basename in
7267         xlc*)
7268         lt_prog_compiler_pic='-qnocommon'
7269         lt_prog_compiler_wl='-Wl,'
7270         ;;
7271       esac
7272       ;;
7273
7274    mingw* | pw32* | os2*)
7275      # This hack is so that the source file can tell whether it is being
7276      # built for inclusion in a dll (and should export symbols for example).
7277      lt_prog_compiler_pic='-DDLL_EXPORT'
7278      ;;
7279
7280    hpux9* | hpux10* | hpux11*)
7281      lt_prog_compiler_wl='-Wl,'
7282      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7283      # not for PA HP-UX.
7284      case $host_cpu in
7285      hppa*64*|ia64*)
7286        # +Z the default
7287        ;;
7288      *)
7289        lt_prog_compiler_pic='+Z'
7290        ;;
7291      esac
7292      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7293      lt_prog_compiler_static='${wl}-a ${wl}archive'
7294      ;;
7295
7296    irix5* | irix6* | nonstopux*)
7297      lt_prog_compiler_wl='-Wl,'
7298      # PIC (with -KPIC) is the default.
7299      lt_prog_compiler_static='-non_shared'
7300      ;;
7301
7302    newsos6)
7303      lt_prog_compiler_pic='-KPIC'
7304      lt_prog_compiler_static='-Bstatic'
7305      ;;
7306
7307    linux* | k*bsd*-gnu)
7308      case $cc_basename in
7309      icc* | ecc*)
7310        lt_prog_compiler_wl='-Wl,'
7311        lt_prog_compiler_pic='-KPIC'
7312        lt_prog_compiler_static='-static'
7313        ;;
7314      pgcc* | pgf77* | pgf90* | pgf95*)
7315        # Portland Group compilers (*not* the Pentium gcc compiler,
7316        # which looks to be a dead project)
7317        lt_prog_compiler_wl='-Wl,'
7318        lt_prog_compiler_pic='-fpic'
7319        lt_prog_compiler_static='-Bstatic'
7320        ;;
7321      ccc*)
7322        lt_prog_compiler_wl='-Wl,'
7323        # All Alpha code is PIC.
7324        lt_prog_compiler_static='-non_shared'
7325        ;;
7326      esac
7327      ;;
7328
7329    osf3* | osf4* | osf5*)
7330      lt_prog_compiler_wl='-Wl,'
7331      # All OSF/1 code is PIC.
7332      lt_prog_compiler_static='-non_shared'
7333      ;;
7334
7335    solaris*)
7336      lt_prog_compiler_pic='-KPIC'
7337      lt_prog_compiler_static='-Bstatic'
7338      case $cc_basename in
7339      f77* | f90* | f95*)
7340        lt_prog_compiler_wl='-Qoption ld ';;
7341      *)
7342        lt_prog_compiler_wl='-Wl,';;
7343      esac
7344      ;;
7345
7346    sunos4*)
7347      lt_prog_compiler_wl='-Qoption ld '
7348      lt_prog_compiler_pic='-PIC'
7349      lt_prog_compiler_static='-Bstatic'
7350      ;;
7351
7352    sysv4 | sysv4.2uw2* | sysv4.3*)
7353      lt_prog_compiler_wl='-Wl,'
7354      lt_prog_compiler_pic='-KPIC'
7355      lt_prog_compiler_static='-Bstatic'
7356      ;;
7357
7358    sysv4*MP*)
7359      if test -d /usr/nec ;then
7360        lt_prog_compiler_pic='-Kconform_pic'
7361        lt_prog_compiler_static='-Bstatic'
7362      fi
7363      ;;
7364
7365    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7366      lt_prog_compiler_wl='-Wl,'
7367      lt_prog_compiler_pic='-KPIC'
7368      lt_prog_compiler_static='-Bstatic'
7369      ;;
7370
7371    unicos*)
7372      lt_prog_compiler_wl='-Wl,'
7373      lt_prog_compiler_can_build_shared=no
7374      ;;
7375
7376    uts4*)
7377      lt_prog_compiler_pic='-pic'
7378      lt_prog_compiler_static='-Bstatic'
7379      ;;
7380
7381    *)
7382      lt_prog_compiler_can_build_shared=no
7383      ;;
7384    esac
7385  fi
7386
7387{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7388echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7389
7390#
7391# Check to make sure the PIC flag actually works.
7392#
7393if test -n "$lt_prog_compiler_pic"; then
7394
7395{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7396echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7397if test "${lt_prog_compiler_pic_works+set}" = set; then
7398  echo $ECHO_N "(cached) $ECHO_C" >&6
7399else
7400  lt_prog_compiler_pic_works=no
7401  ac_outfile=conftest.$ac_objext
7402   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7403   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7404   # Insert the option either (1) after the last *FLAGS variable, or
7405   # (2) before a word containing "conftest.", or (3) at the end.
7406   # Note that $ac_compile itself does not contain backslashes and begins
7407   # with a dollar sign (not a hyphen), so the echo should work correctly.
7408   # The option is referenced via a variable to avoid confusing sed.
7409   lt_compile=`echo "$ac_compile" | $SED \
7410   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7411   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7412   -e 's:$: $lt_compiler_flag:'`
7413   (eval echo "\"\$as_me:7413: $lt_compile\"" >&5)
7414   (eval "$lt_compile" 2>conftest.err)
7415   ac_status=$?
7416   cat conftest.err >&5
7417   echo "$as_me:7417: \$? = $ac_status" >&5
7418   if (exit $ac_status) && test -s "$ac_outfile"; then
7419     # The compiler can only warn and ignore the option if not recognized
7420     # So say no if there are warnings other than the usual output.
7421     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7422     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7423     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7424       lt_prog_compiler_pic_works=yes
7425     fi
7426   fi
7427   $rm conftest*
7428
7429fi
7430{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7431echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7432
7433if test x"$lt_prog_compiler_pic_works" = xyes; then
7434    case $lt_prog_compiler_pic in
7435     "" | " "*) ;;
7436     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7437     esac
7438else
7439    lt_prog_compiler_pic=
7440     lt_prog_compiler_can_build_shared=no
7441fi
7442
7443fi
7444case $host_os in
7445  # For platforms which do not support PIC, -DPIC is meaningless:
7446  *djgpp*)
7447    lt_prog_compiler_pic=
7448    ;;
7449  *)
7450    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7451    ;;
7452esac
7453
7454#
7455# Check to make sure the static flag actually works.
7456#
7457wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7458{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7459echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7460if test "${lt_prog_compiler_static_works+set}" = set; then
7461  echo $ECHO_N "(cached) $ECHO_C" >&6
7462else
7463  lt_prog_compiler_static_works=no
7464   save_LDFLAGS="$LDFLAGS"
7465   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7466   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7467   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7468     # The linker can only warn and ignore the option if not recognized
7469     # So say no if there are warnings
7470     if test -s conftest.err; then
7471       # Append any errors to the config.log.
7472       cat conftest.err 1>&5
7473       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7474       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7475       if diff conftest.exp conftest.er2 >/dev/null; then
7476         lt_prog_compiler_static_works=yes
7477       fi
7478     else
7479       lt_prog_compiler_static_works=yes
7480     fi
7481   fi
7482   $rm conftest*
7483   LDFLAGS="$save_LDFLAGS"
7484
7485fi
7486{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7487echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7488
7489if test x"$lt_prog_compiler_static_works" = xyes; then
7490    :
7491else
7492    lt_prog_compiler_static=
7493fi
7494
7495
7496{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7497echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7498if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7499  echo $ECHO_N "(cached) $ECHO_C" >&6
7500else
7501  lt_cv_prog_compiler_c_o=no
7502   $rm -r conftest 2>/dev/null
7503   mkdir conftest
7504   cd conftest
7505   mkdir out
7506   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7507
7508   lt_compiler_flag="-o out/conftest2.$ac_objext"
7509   # Insert the option either (1) after the last *FLAGS variable, or
7510   # (2) before a word containing "conftest.", or (3) at the end.
7511   # Note that $ac_compile itself does not contain backslashes and begins
7512   # with a dollar sign (not a hyphen), so the echo should work correctly.
7513   lt_compile=`echo "$ac_compile" | $SED \
7514   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7515   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7516   -e 's:$: $lt_compiler_flag:'`
7517   (eval echo "\"\$as_me:7517: $lt_compile\"" >&5)
7518   (eval "$lt_compile" 2>out/conftest.err)
7519   ac_status=$?
7520   cat out/conftest.err >&5
7521   echo "$as_me:7521: \$? = $ac_status" >&5
7522   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7523   then
7524     # The compiler can only warn and ignore the option if not recognized
7525     # So say no if there are warnings
7526     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7527     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7528     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7529       lt_cv_prog_compiler_c_o=yes
7530     fi
7531   fi
7532   chmod u+w . 2>&5
7533   $rm conftest*
7534   # SGI C++ compiler will create directory out/ii_files/ for
7535   # template instantiation
7536   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7537   $rm out/* && rmdir out
7538   cd ..
7539   rmdir conftest
7540   $rm conftest*
7541
7542fi
7543{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7544echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7545
7546
7547hard_links="nottested"
7548if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7549  # do not overwrite the value of need_locks provided by the user
7550  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7551echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7552  hard_links=yes
7553  $rm conftest*
7554  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7555  touch conftest.a
7556  ln conftest.a conftest.b 2>&5 || hard_links=no
7557  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7558  { echo "$as_me:$LINENO: result: $hard_links" >&5
7559echo "${ECHO_T}$hard_links" >&6; }
7560  if test "$hard_links" = no; then
7561    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7562echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7563    need_locks=warn
7564  fi
7565else
7566  need_locks=no
7567fi
7568
7569{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7570echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7571
7572  runpath_var=
7573  allow_undefined_flag=
7574  enable_shared_with_static_runtimes=no
7575  archive_cmds=
7576  archive_expsym_cmds=
7577  old_archive_From_new_cmds=
7578  old_archive_from_expsyms_cmds=
7579  export_dynamic_flag_spec=
7580  whole_archive_flag_spec=
7581  thread_safe_flag_spec=
7582  hardcode_libdir_flag_spec=
7583  hardcode_libdir_flag_spec_ld=
7584  hardcode_libdir_separator=
7585  hardcode_direct=no
7586  hardcode_minus_L=no
7587  hardcode_shlibpath_var=unsupported
7588  link_all_deplibs=unknown
7589  hardcode_automatic=no
7590  module_cmds=
7591  module_expsym_cmds=
7592  always_export_symbols=no
7593  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7594  # include_expsyms should be a list of space-separated symbols to be *always*
7595  # included in the symbol list
7596  include_expsyms=
7597  # exclude_expsyms can be an extended regexp of symbols to exclude
7598  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7599  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7600  # as well as any symbol that contains `d'.
7601  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7602  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7603  # platforms (ab)use it in PIC code, but their linkers get confused if
7604  # the symbol is explicitly referenced.  Since portable code cannot
7605  # rely on this symbol name, it's probably fine to never include it in
7606  # preloaded symbol tables.
7607  extract_expsyms_cmds=
7608  # Just being paranoid about ensuring that cc_basename is set.
7609  for cc_temp in $compiler""; do
7610  case $cc_temp in
7611    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7612    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7613    \-*) ;;
7614    *) break;;
7615  esac
7616done
7617cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7618
7619  case $host_os in
7620  cygwin* | mingw* | pw32*)
7621    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7622    # When not using gcc, we currently assume that we are using
7623    # Microsoft Visual C++.
7624    if test "$GCC" != yes; then
7625      with_gnu_ld=no
7626    fi
7627    ;;
7628  interix*)
7629    # we just hope/assume this is gcc and not c89 (= MSVC++)
7630    with_gnu_ld=yes
7631    ;;
7632  openbsd*)
7633    with_gnu_ld=no
7634    ;;
7635  esac
7636
7637  ld_shlibs=yes
7638  if test "$with_gnu_ld" = yes; then
7639    # If archive_cmds runs LD, not CC, wlarc should be empty
7640    wlarc='${wl}'
7641
7642    # Set some defaults for GNU ld with shared library support. These
7643    # are reset later if shared libraries are not supported. Putting them
7644    # here allows them to be overridden if necessary.
7645    runpath_var=LD_RUN_PATH
7646    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7647    export_dynamic_flag_spec='${wl}--export-dynamic'
7648    # ancient GNU ld didn't support --whole-archive et. al.
7649    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7650        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7651      else
7652        whole_archive_flag_spec=
7653    fi
7654    supports_anon_versioning=no
7655    case `$LD -v 2>/dev/null` in
7656      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7657      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7658      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7659      *\ 2.11.*) ;; # other 2.11 versions
7660      *) supports_anon_versioning=yes ;;
7661    esac
7662
7663    # See if GNU ld supports shared libraries.
7664    case $host_os in
7665    aix3* | aix4* | aix5*)
7666      # On AIX/PPC, the GNU linker is very broken
7667      if test "$host_cpu" != ia64; then
7668        ld_shlibs=no
7669        cat <<EOF 1>&2
7670
7671*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7672*** to be unable to reliably create shared libraries on AIX.
7673*** Therefore, libtool is disabling shared libraries support.  If you
7674*** really care for shared libraries, you may want to modify your PATH
7675*** so that a non-GNU linker is found, and then restart.
7676
7677EOF
7678      fi
7679      ;;
7680
7681    amigaos*)
7682      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)'
7683      hardcode_libdir_flag_spec='-L$libdir'
7684      hardcode_minus_L=yes
7685
7686      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7687      # that the semantics of dynamic libraries on AmigaOS, at least up
7688      # to version 4, is to share data among multiple programs linked
7689      # with the same dynamic library.  Since this doesn't match the
7690      # behavior of shared libraries on other platforms, we can't use
7691      # them.
7692      ld_shlibs=no
7693      ;;
7694
7695    beos*)
7696      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7697        allow_undefined_flag=unsupported
7698        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7699        # support --undefined.  This deserves some investigation.  FIXME
7700        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7701      else
7702        ld_shlibs=no
7703      fi
7704      ;;
7705
7706    cygwin* | mingw* | pw32*)
7707      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7708      # as there is no search path for DLLs.
7709      hardcode_libdir_flag_spec='-L$libdir'
7710      allow_undefined_flag=unsupported
7711      always_export_symbols=no
7712      enable_shared_with_static_runtimes=yes
7713      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7714
7715      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7716        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7717        # If the export-symbols file already is a .def file (1st line
7718        # is EXPORTS), use it as is; otherwise, prepend...
7719        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7720          cp $export_symbols $output_objdir/$soname.def;
7721        else
7722          echo EXPORTS > $output_objdir/$soname.def;
7723          cat $export_symbols >> $output_objdir/$soname.def;
7724        fi~
7725        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7726      else
7727        ld_shlibs=no
7728      fi
7729      ;;
7730
7731    interix3*)
7732      hardcode_direct=no
7733      hardcode_shlibpath_var=no
7734      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7735      export_dynamic_flag_spec='${wl}-E'
7736      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7737      # Instead, shared libraries are loaded at an image base (0x10000000 by
7738      # default) and relocated if they conflict, which is a slow very memory
7739      # consuming and fragmenting process.  To avoid this, we pick a random,
7740      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7741      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7742      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7743      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'
7744      ;;
7745
7746    linux* | k*bsd*-gnu)
7747      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7748        tmp_addflag=
7749        case $cc_basename,$host_cpu in
7750        pgcc*)                          # Portland Group C compiler
7751          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'
7752          tmp_addflag=' $pic_flag'
7753          ;;
7754        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7755          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'
7756          tmp_addflag=' $pic_flag -Mnomain' ;;
7757        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7758          tmp_addflag=' -i_dynamic' ;;
7759        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7760          tmp_addflag=' -i_dynamic -nofor_main' ;;
7761        ifc* | ifort*)                  # Intel Fortran compiler
7762          tmp_addflag=' -nofor_main' ;;
7763        esac
7764        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7765
7766        if test $supports_anon_versioning = yes; then
7767          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7768  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7769  $echo "local: *; };" >> $output_objdir/$libname.ver~
7770          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7771        fi
7772        link_all_deplibs=no
7773      else
7774        ld_shlibs=no
7775      fi
7776      ;;
7777
7778    netbsd* | netbsdelf*-gnu)
7779      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7780        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7781        wlarc=
7782      else
7783        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7784        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7785      fi
7786      ;;
7787
7788    solaris*)
7789      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7790        ld_shlibs=no
7791        cat <<EOF 1>&2
7792
7793*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7794*** create shared libraries on Solaris systems.  Therefore, libtool
7795*** is disabling shared libraries support.  We urge you to upgrade GNU
7796*** binutils to release 2.9.1 or newer.  Another option is to modify
7797*** your PATH or compiler configuration so that the native linker is
7798*** used, and then restart.
7799
7800EOF
7801      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7802        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7803        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7804      else
7805        ld_shlibs=no
7806      fi
7807      ;;
7808
7809    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7810      case `$LD -v 2>&1` in
7811        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7812        ld_shlibs=no
7813        cat <<_LT_EOF 1>&2
7814
7815*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7816*** reliably create shared libraries on SCO systems.  Therefore, libtool
7817*** is disabling shared libraries support.  We urge you to upgrade GNU
7818*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7819*** your PATH or compiler configuration so that the native linker is
7820*** used, and then restart.
7821
7822_LT_EOF
7823        ;;
7824        *)
7825          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7826            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7827            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7828            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7829          else
7830            ld_shlibs=no
7831          fi
7832        ;;
7833      esac
7834      ;;
7835
7836    sunos4*)
7837      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7838      wlarc=
7839      hardcode_direct=yes
7840      hardcode_shlibpath_var=no
7841      ;;
7842
7843    *)
7844      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7845        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7846        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7847      else
7848        ld_shlibs=no
7849      fi
7850      ;;
7851    esac
7852
7853    if test "$ld_shlibs" = no; then
7854      runpath_var=
7855      hardcode_libdir_flag_spec=
7856      export_dynamic_flag_spec=
7857      whole_archive_flag_spec=
7858    fi
7859  else
7860    # PORTME fill in a description of your system's linker (not GNU ld)
7861    case $host_os in
7862    aix3*)
7863      allow_undefined_flag=unsupported
7864      always_export_symbols=yes
7865      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'
7866      # Note: this linker hardcodes the directories in LIBPATH if there
7867      # are no directories specified by -L.
7868      hardcode_minus_L=yes
7869      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7870        # Neither direct hardcoding nor static linking is supported with a
7871        # broken collect2.
7872        hardcode_direct=unsupported
7873      fi
7874      ;;
7875
7876    aix4* | aix5*)
7877      if test "$host_cpu" = ia64; then
7878        # On IA64, the linker does run time linking by default, so we don't
7879        # have to do anything special.
7880        aix_use_runtimelinking=no
7881        exp_sym_flag='-Bexport'
7882        no_entry_flag=""
7883      else
7884        # If we're using GNU nm, then we don't want the "-C" option.
7885        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7886        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7887          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'
7888        else
7889          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'
7890        fi
7891        aix_use_runtimelinking=no
7892
7893        # Test if we are trying to use run time linking or normal
7894        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7895        # need to do runtime linking.
7896        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7897          for ld_flag in $LDFLAGS; do
7898          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7899            aix_use_runtimelinking=yes
7900            break
7901          fi
7902          done
7903          ;;
7904        esac
7905
7906        exp_sym_flag='-bexport'
7907        no_entry_flag='-bnoentry'
7908      fi
7909
7910      # When large executables or shared objects are built, AIX ld can
7911      # have problems creating the table of contents.  If linking a library
7912      # or program results in "error TOC overflow" add -mminimal-toc to
7913      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7914      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7915
7916      archive_cmds=''
7917      hardcode_direct=yes
7918      hardcode_libdir_separator=':'
7919      link_all_deplibs=yes
7920
7921      if test "$GCC" = yes; then
7922        case $host_os in aix4.[012]|aix4.[012].*)
7923        # We only want to do this on AIX 4.2 and lower, the check
7924        # below for broken collect2 doesn't work under 4.3+
7925          collect2name=`${CC} -print-prog-name=collect2`
7926          if test -f "$collect2name" && \
7927           strings "$collect2name" | grep resolve_lib_name >/dev/null
7928          then
7929          # We have reworked collect2
7930          hardcode_direct=yes
7931          else
7932          # We have old collect2
7933          hardcode_direct=unsupported
7934          # It fails to find uninstalled libraries when the uninstalled
7935          # path is not listed in the libpath.  Setting hardcode_minus_L
7936          # to unsupported forces relinking
7937          hardcode_minus_L=yes
7938          hardcode_libdir_flag_spec='-L$libdir'
7939          hardcode_libdir_separator=
7940          fi
7941          ;;
7942        esac
7943        shared_flag='-shared'
7944        if test "$aix_use_runtimelinking" = yes; then
7945          shared_flag="$shared_flag "'${wl}-G'
7946        fi
7947      else
7948        # not using gcc
7949        if test "$host_cpu" = ia64; then
7950        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7951        # chokes on -Wl,-G. The following line is correct:
7952          shared_flag='-G'
7953        else
7954          if test "$aix_use_runtimelinking" = yes; then
7955            shared_flag='${wl}-G'
7956          else
7957            shared_flag='${wl}-bM:SRE'
7958          fi
7959        fi
7960      fi
7961
7962      # It seems that -bexpall does not export symbols beginning with
7963      # underscore (_), so it is better to generate a list of symbols to export.
7964      always_export_symbols=yes
7965      if test "$aix_use_runtimelinking" = yes; then
7966        # Warning - without using the other runtime loading flags (-brtl),
7967        # -berok will link without error, but may produce a broken library.
7968        allow_undefined_flag='-berok'
7969       # Determine the default libpath from the value encoded in an empty executable.
7970       cat >conftest.$ac_ext <<_ACEOF
7971/* confdefs.h.  */
7972_ACEOF
7973cat confdefs.h >>conftest.$ac_ext
7974cat >>conftest.$ac_ext <<_ACEOF
7975/* end confdefs.h.  */
7976
7977int
7978main ()
7979{
7980
7981  ;
7982  return 0;
7983}
7984_ACEOF
7985rm -f conftest.$ac_objext conftest$ac_exeext
7986if { (ac_try="$ac_link"
7987case "(($ac_try" in
7988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989  *) ac_try_echo=$ac_try;;
7990esac
7991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7992  (eval "$ac_link") 2>conftest.er1
7993  ac_status=$?
7994  grep -v '^ *+' conftest.er1 >conftest.err
7995  rm -f conftest.er1
7996  cat conftest.err >&5
7997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998  (exit $ac_status); } && {
7999         test -z "$ac_c_werror_flag" ||
8000         test ! -s conftest.err
8001       } && test -s conftest$ac_exeext &&
8002       $as_test_x conftest$ac_exeext; then
8003
8004aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8005}'`
8006# Check for a 64-bit object if we didn't find anything.
8007if 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; }
8008}'`; fi
8009else
8010  echo "$as_me: failed program was:" >&5
8011sed 's/^/| /' conftest.$ac_ext >&5
8012
8013
8014fi
8015
8016rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8017      conftest$ac_exeext conftest.$ac_ext
8018if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8019
8020       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8021        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"
8022       else
8023        if test "$host_cpu" = ia64; then
8024          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8025          allow_undefined_flag="-z nodefs"
8026          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"
8027        else
8028         # Determine the default libpath from the value encoded in an empty executable.
8029         cat >conftest.$ac_ext <<_ACEOF
8030/* confdefs.h.  */
8031_ACEOF
8032cat confdefs.h >>conftest.$ac_ext
8033cat >>conftest.$ac_ext <<_ACEOF
8034/* end confdefs.h.  */
8035
8036int
8037main ()
8038{
8039
8040  ;
8041  return 0;
8042}
8043_ACEOF
8044rm -f conftest.$ac_objext conftest$ac_exeext
8045if { (ac_try="$ac_link"
8046case "(($ac_try" in
8047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048  *) ac_try_echo=$ac_try;;
8049esac
8050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051  (eval "$ac_link") 2>conftest.er1
8052  ac_status=$?
8053  grep -v '^ *+' conftest.er1 >conftest.err
8054  rm -f conftest.er1
8055  cat conftest.err >&5
8056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057  (exit $ac_status); } && {
8058         test -z "$ac_c_werror_flag" ||
8059         test ! -s conftest.err
8060       } && test -s conftest$ac_exeext &&
8061       $as_test_x conftest$ac_exeext; then
8062
8063aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8064}'`
8065# Check for a 64-bit object if we didn't find anything.
8066if 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; }
8067}'`; fi
8068else
8069  echo "$as_me: failed program was:" >&5
8070sed 's/^/| /' conftest.$ac_ext >&5
8071
8072
8073fi
8074
8075rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8076      conftest$ac_exeext conftest.$ac_ext
8077if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8078
8079         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8080          # Warning - without using the other run time loading flags,
8081          # -berok will link without error, but may produce a broken library.
8082          no_undefined_flag=' ${wl}-bernotok'
8083          allow_undefined_flag=' ${wl}-berok'
8084          # Exported symbols can be pulled into shared objects from archives
8085          whole_archive_flag_spec='$convenience'
8086          archive_cmds_need_lc=yes
8087          # This is similar to how AIX traditionally builds its shared libraries.
8088          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'
8089        fi
8090      fi
8091      ;;
8092
8093    amigaos*)
8094      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)'
8095      hardcode_libdir_flag_spec='-L$libdir'
8096      hardcode_minus_L=yes
8097      # see comment about different semantics on the GNU ld section
8098      ld_shlibs=no
8099      ;;
8100
8101    bsdi[45]*)
8102      export_dynamic_flag_spec=-rdynamic
8103      ;;
8104
8105    cygwin* | mingw* | pw32*)
8106      # When not using gcc, we currently assume that we are using
8107      # Microsoft Visual C++.
8108      # hardcode_libdir_flag_spec is actually meaningless, as there is
8109      # no search path for DLLs.
8110      hardcode_libdir_flag_spec=' '
8111      allow_undefined_flag=unsupported
8112      # Tell ltmain to make .lib files, not .a files.
8113      libext=lib
8114      # Tell ltmain to make .dll files, not .so files.
8115      shrext_cmds=".dll"
8116      # FIXME: Setting linknames here is a bad hack.
8117      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8118      # The linker will automatically build a .lib file if we build a DLL.
8119      old_archive_From_new_cmds='true'
8120      # FIXME: Should let the user specify the lib program.
8121      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8122      fix_srcfile_path='`cygpath -w "$srcfile"`'
8123      enable_shared_with_static_runtimes=yes
8124      ;;
8125
8126    darwin* | rhapsody*)
8127      case $host_os in
8128        rhapsody* | darwin1.[012])
8129         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8130         ;;
8131       *) # Darwin 1.3 on
8132         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8133           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8134         else
8135           case ${MACOSX_DEPLOYMENT_TARGET} in
8136             10.[012])
8137               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8138               ;;
8139             10.*)
8140               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8141               ;;
8142           esac
8143         fi
8144         ;;
8145      esac
8146      archive_cmds_need_lc=no
8147      hardcode_direct=no
8148      hardcode_automatic=yes
8149      hardcode_shlibpath_var=unsupported
8150      whole_archive_flag_spec=''
8151      link_all_deplibs=yes
8152    if test "$GCC" = yes ; then
8153        output_verbose_link_cmd='echo'
8154        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8155      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8156      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8157      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}'
8158      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}'
8159    else
8160      case $cc_basename in
8161        xlc*)
8162         output_verbose_link_cmd='echo'
8163         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8164         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8165          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8166         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}'
8167          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}'
8168          ;;
8169       *)
8170         ld_shlibs=no
8171          ;;
8172      esac
8173    fi
8174      ;;
8175
8176    dgux*)
8177      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8178      hardcode_libdir_flag_spec='-L$libdir'
8179      hardcode_shlibpath_var=no
8180      ;;
8181
8182    freebsd1*)
8183      ld_shlibs=no
8184      ;;
8185
8186    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8187    # support.  Future versions do this automatically, but an explicit c++rt0.o
8188    # does not break anything, and helps significantly (at the cost of a little
8189    # extra space).
8190    freebsd2.2*)
8191      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8192      hardcode_libdir_flag_spec='-R$libdir'
8193      hardcode_direct=yes
8194      hardcode_shlibpath_var=no
8195      ;;
8196
8197    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8198    freebsd2*)
8199      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8200      hardcode_direct=yes
8201      hardcode_minus_L=yes
8202      hardcode_shlibpath_var=no
8203      ;;
8204
8205    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8206    freebsd* | dragonfly*)
8207      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8208      hardcode_libdir_flag_spec='-R$libdir'
8209      hardcode_direct=yes
8210      hardcode_shlibpath_var=no
8211      ;;
8212
8213    hpux9*)
8214      if test "$GCC" = yes; then
8215        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'
8216      else
8217        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'
8218      fi
8219      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8220      hardcode_libdir_separator=:
8221      hardcode_direct=yes
8222
8223      # hardcode_minus_L: Not really in the search PATH,
8224      # but as the default location of the library.
8225      hardcode_minus_L=yes
8226      export_dynamic_flag_spec='${wl}-E'
8227      ;;
8228
8229    hpux10*)
8230      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8231        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8232      else
8233        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8234      fi
8235      if test "$with_gnu_ld" = no; then
8236        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8237        hardcode_libdir_separator=:
8238
8239        hardcode_direct=yes
8240        export_dynamic_flag_spec='${wl}-E'
8241
8242        # hardcode_minus_L: Not really in the search PATH,
8243        # but as the default location of the library.
8244        hardcode_minus_L=yes
8245      fi
8246      ;;
8247
8248    hpux11*)
8249      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8250        case $host_cpu in
8251        hppa*64*)
8252          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8253          ;;
8254        ia64*)
8255          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8256          ;;
8257        *)
8258          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8259          ;;
8260        esac
8261      else
8262        case $host_cpu in
8263        hppa*64*)
8264          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8265          ;;
8266        ia64*)
8267          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8268          ;;
8269        *)
8270          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8271          ;;
8272        esac
8273      fi
8274      if test "$with_gnu_ld" = no; then
8275        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8276        hardcode_libdir_separator=:
8277
8278        case $host_cpu in
8279        hppa*64*|ia64*)
8280          hardcode_libdir_flag_spec_ld='+b $libdir'
8281          hardcode_direct=no
8282          hardcode_shlibpath_var=no
8283          ;;
8284        *)
8285          hardcode_direct=yes
8286          export_dynamic_flag_spec='${wl}-E'
8287
8288          # hardcode_minus_L: Not really in the search PATH,
8289          # but as the default location of the library.
8290          hardcode_minus_L=yes
8291          ;;
8292        esac
8293      fi
8294      ;;
8295
8296    irix5* | irix6* | nonstopux*)
8297      if test "$GCC" = yes; then
8298        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'
8299      else
8300        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'
8301        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8302      fi
8303      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8304      hardcode_libdir_separator=:
8305      link_all_deplibs=yes
8306      ;;
8307
8308    netbsd* | netbsdelf*-gnu)
8309      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8310        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8311      else
8312        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8313      fi
8314      hardcode_libdir_flag_spec='-R$libdir'
8315      hardcode_direct=yes
8316      hardcode_shlibpath_var=no
8317      ;;
8318
8319    newsos6)
8320      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8321      hardcode_direct=yes
8322      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8323      hardcode_libdir_separator=:
8324      hardcode_shlibpath_var=no
8325      ;;
8326
8327    openbsd*)
8328      hardcode_direct=yes
8329      hardcode_shlibpath_var=no
8330      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8331        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8332        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8333        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8334        export_dynamic_flag_spec='${wl}-E'
8335      else
8336       case $host_os in
8337         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8338           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8339           hardcode_libdir_flag_spec='-R$libdir'
8340           ;;
8341         *)
8342           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8343           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8344           ;;
8345       esac
8346      fi
8347      ;;
8348
8349    os2*)
8350      hardcode_libdir_flag_spec='-L$libdir'
8351      hardcode_minus_L=yes
8352      allow_undefined_flag=unsupported
8353      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'
8354      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8355      ;;
8356
8357    osf3*)
8358      if test "$GCC" = yes; then
8359        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8360        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'
8361      else
8362        allow_undefined_flag=' -expect_unresolved \*'
8363        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'
8364      fi
8365      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8366      hardcode_libdir_separator=:
8367      ;;
8368
8369    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8370      if test "$GCC" = yes; then
8371        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8372        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'
8373        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8374      else
8375        allow_undefined_flag=' -expect_unresolved \*'
8376        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'
8377        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8378        $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'
8379
8380        # Both c and cxx compiler support -rpath directly
8381        hardcode_libdir_flag_spec='-rpath $libdir'
8382      fi
8383      hardcode_libdir_separator=:
8384      ;;
8385
8386    solaris*)
8387      no_undefined_flag=' -z text'
8388      if test "$GCC" = yes; then
8389        wlarc='${wl}'
8390        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8391        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8392          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8393      else
8394        wlarc=''
8395        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8396        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8397        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8398      fi
8399      hardcode_libdir_flag_spec='-R$libdir'
8400      hardcode_shlibpath_var=no
8401      case $host_os in
8402      solaris2.[0-5] | solaris2.[0-5].*) ;;
8403      *)
8404        # The compiler driver will combine linker options so we
8405        # cannot just pass the convience library names through
8406        # without $wl, iff we do not link with $LD.
8407        # Luckily, gcc supports the same syntax we need for Sun Studio.
8408        # Supported since Solaris 2.6 (maybe 2.5.1?)
8409        case $wlarc in
8410        '')
8411          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8412        *)
8413          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' ;;
8414        esac ;;
8415      esac
8416      link_all_deplibs=yes
8417      ;;
8418
8419    sunos4*)
8420      if test "x$host_vendor" = xsequent; then
8421        # Use $CC to link under sequent, because it throws in some extra .o
8422        # files that make .init and .fini sections work.
8423        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8424      else
8425        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8426      fi
8427      hardcode_libdir_flag_spec='-L$libdir'
8428      hardcode_direct=yes
8429      hardcode_minus_L=yes
8430      hardcode_shlibpath_var=no
8431      ;;
8432
8433    sysv4)
8434      case $host_vendor in
8435        sni)
8436          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8437          hardcode_direct=yes # is this really true???
8438        ;;
8439        siemens)
8440          ## LD is ld it makes a PLAMLIB
8441          ## CC just makes a GrossModule.
8442          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8443          reload_cmds='$CC -r -o $output$reload_objs'
8444          hardcode_direct=no
8445        ;;
8446        motorola)
8447          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8448          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8449        ;;
8450      esac
8451      runpath_var='LD_RUN_PATH'
8452      hardcode_shlibpath_var=no
8453      ;;
8454
8455    sysv4.3*)
8456      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8457      hardcode_shlibpath_var=no
8458      export_dynamic_flag_spec='-Bexport'
8459      ;;
8460
8461    sysv4*MP*)
8462      if test -d /usr/nec; then
8463        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8464        hardcode_shlibpath_var=no
8465        runpath_var=LD_RUN_PATH
8466        hardcode_runpath_var=yes
8467        ld_shlibs=yes
8468      fi
8469      ;;
8470
8471    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8472      no_undefined_flag='${wl}-z,text'
8473      archive_cmds_need_lc=no
8474      hardcode_shlibpath_var=no
8475      runpath_var='LD_RUN_PATH'
8476
8477      if test "$GCC" = yes; then
8478        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8479        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8480      else
8481        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8482        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8483      fi
8484      ;;
8485
8486    sysv5* | sco3.2v5* | sco5v6*)
8487      # Note: We can NOT use -z defs as we might desire, because we do not
8488      # link with -lc, and that would cause any symbols used from libc to
8489      # always be unresolved, which means just about no library would
8490      # ever link correctly.  If we're not using GNU ld we use -z text
8491      # though, which does catch some bad symbols but isn't as heavy-handed
8492      # as -z defs.
8493      no_undefined_flag='${wl}-z,text'
8494      allow_undefined_flag='${wl}-z,nodefs'
8495      archive_cmds_need_lc=no
8496      hardcode_shlibpath_var=no
8497      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8498      hardcode_libdir_separator=':'
8499      link_all_deplibs=yes
8500      export_dynamic_flag_spec='${wl}-Bexport'
8501      runpath_var='LD_RUN_PATH'
8502
8503      if test "$GCC" = yes; then
8504        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8505        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8506      else
8507        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8508        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8509      fi
8510      ;;
8511
8512    uts4*)
8513      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8514      hardcode_libdir_flag_spec='-L$libdir'
8515      hardcode_shlibpath_var=no
8516      ;;
8517
8518    *)
8519      ld_shlibs=no
8520      ;;
8521    esac
8522  fi
8523
8524{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8525echo "${ECHO_T}$ld_shlibs" >&6; }
8526test "$ld_shlibs" = no && can_build_shared=no
8527
8528#
8529# Do we need to explicitly link libc?
8530#
8531case "x$archive_cmds_need_lc" in
8532x|xyes)
8533  # Assume -lc should be added
8534  archive_cmds_need_lc=yes
8535
8536  if test "$enable_shared" = yes && test "$GCC" = yes; then
8537    case $archive_cmds in
8538    *'~'*)
8539      # FIXME: we may have to deal with multi-command sequences.
8540      ;;
8541    '$CC '*)
8542      # Test whether the compiler implicitly links with -lc since on some
8543      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8544      # to ld, don't add -lc before -lgcc.
8545      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8546echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8547      $rm conftest*
8548      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8549
8550      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8551  (eval $ac_compile) 2>&5
8552  ac_status=$?
8553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554  (exit $ac_status); } 2>conftest.err; then
8555        soname=conftest
8556        lib=conftest
8557        libobjs=conftest.$ac_objext
8558        deplibs=
8559        wl=$lt_prog_compiler_wl
8560        pic_flag=$lt_prog_compiler_pic
8561        compiler_flags=-v
8562        linker_flags=-v
8563        verstring=
8564        output_objdir=.
8565        libname=conftest
8566        lt_save_allow_undefined_flag=$allow_undefined_flag
8567        allow_undefined_flag=
8568        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8569  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8570  ac_status=$?
8571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572  (exit $ac_status); }
8573        then
8574          archive_cmds_need_lc=no
8575        else
8576          archive_cmds_need_lc=yes
8577        fi
8578        allow_undefined_flag=$lt_save_allow_undefined_flag
8579      else
8580        cat conftest.err 1>&5
8581      fi
8582      $rm conftest*
8583      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8584echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8585      ;;
8586    esac
8587  fi
8588  ;;
8589esac
8590
8591{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8592echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8593library_names_spec=
8594libname_spec='lib$name'
8595soname_spec=
8596shrext_cmds=".so"
8597postinstall_cmds=
8598postuninstall_cmds=
8599finish_cmds=
8600finish_eval=
8601shlibpath_var=
8602shlibpath_overrides_runpath=unknown
8603version_type=none
8604dynamic_linker="$host_os ld.so"
8605sys_lib_dlsearch_path_spec="/lib /usr/lib"
8606if test "$GCC" = yes; then
8607  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8608  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8609    # if the path contains ";" then we assume it to be the separator
8610    # otherwise default to the standard path separator (i.e. ":") - it is
8611    # assumed that no part of a normal pathname contains ";" but that should
8612    # okay in the real world where ";" in dirpaths is itself problematic.
8613    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8614  else
8615    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8616  fi
8617else
8618  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8619fi
8620need_lib_prefix=unknown
8621hardcode_into_libs=no
8622
8623# when you set need_version to no, make sure it does not cause -set_version
8624# flags to be left without arguments
8625need_version=unknown
8626
8627case $host_os in
8628aix3*)
8629  version_type=linux
8630  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8631  shlibpath_var=LIBPATH
8632
8633  # AIX 3 has no versioning support, so we append a major version to the name.
8634  soname_spec='${libname}${release}${shared_ext}$major'
8635  ;;
8636
8637aix4* | aix5*)
8638  version_type=linux
8639  need_lib_prefix=no
8640  need_version=no
8641  hardcode_into_libs=yes
8642  if test "$host_cpu" = ia64; then
8643    # AIX 5 supports IA64
8644    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8645    shlibpath_var=LD_LIBRARY_PATH
8646  else
8647    # With GCC up to 2.95.x, collect2 would create an import file
8648    # for dependence libraries.  The import file would start with
8649    # the line `#! .'.  This would cause the generated library to
8650    # depend on `.', always an invalid library.  This was fixed in
8651    # development snapshots of GCC prior to 3.0.
8652    case $host_os in
8653      aix4 | aix4.[01] | aix4.[01].*)
8654      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8655           echo ' yes '
8656           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8657        :
8658      else
8659        can_build_shared=no
8660      fi
8661      ;;
8662    esac
8663    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8664    # soname into executable. Probably we can add versioning support to
8665    # collect2, so additional links can be useful in future.
8666    if test "$aix_use_runtimelinking" = yes; then
8667      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8668      # instead of lib<name>.a to let people know that these are not
8669      # typical AIX shared libraries.
8670      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8671    else
8672      # We preserve .a as extension for shared libraries through AIX4.2
8673      # and later when we are not doing run time linking.
8674      library_names_spec='${libname}${release}.a $libname.a'
8675      soname_spec='${libname}${release}${shared_ext}$major'
8676    fi
8677    shlibpath_var=LIBPATH
8678  fi
8679  ;;
8680
8681amigaos*)
8682  library_names_spec='$libname.ixlibrary $libname.a'
8683  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8684  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'
8685  ;;
8686
8687beos*)
8688  library_names_spec='${libname}${shared_ext}'
8689  dynamic_linker="$host_os ld.so"
8690  shlibpath_var=LIBRARY_PATH
8691  ;;
8692
8693bsdi[45]*)
8694  version_type=linux
8695  need_version=no
8696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8697  soname_spec='${libname}${release}${shared_ext}$major'
8698  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8699  shlibpath_var=LD_LIBRARY_PATH
8700  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8701  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8702  # the default ld.so.conf also contains /usr/contrib/lib and
8703  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8704  # libtool to hard-code these into programs
8705  ;;
8706
8707cygwin* | mingw* | pw32*)
8708  version_type=windows
8709  shrext_cmds=".dll"
8710  need_version=no
8711  need_lib_prefix=no
8712
8713  case $GCC,$host_os in
8714  yes,cygwin* | yes,mingw* | yes,pw32*)
8715    library_names_spec='$libname.dll.a'
8716    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8717    postinstall_cmds='base_file=`basename \${file}`~
8718      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8719      dldir=$destdir/`dirname \$dlpath`~
8720      test -d \$dldir || mkdir -p \$dldir~
8721      $install_prog $dir/$dlname \$dldir/$dlname~
8722      chmod a+x \$dldir/$dlname'
8723    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8724      dlpath=$dir/\$dldll~
8725       $rm \$dlpath'
8726    shlibpath_overrides_runpath=yes
8727
8728    case $host_os in
8729    cygwin*)
8730      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8731      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8732      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8733      ;;
8734    mingw*)
8735      # MinGW DLLs use traditional 'lib' prefix
8736      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8737      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8738      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8739        # It is most probably a Windows format PATH printed by
8740        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8741        # path with ; separators, and with drive letters. We can handle the
8742        # drive letters (cygwin fileutils understands them), so leave them,
8743        # especially as we might pass files found there to a mingw objdump,
8744        # which wouldn't understand a cygwinified path. Ahh.
8745        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8746      else
8747        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8748      fi
8749      ;;
8750    pw32*)
8751      # pw32 DLLs use 'pw' prefix rather than 'lib'
8752      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8753      ;;
8754    esac
8755    ;;
8756
8757  *)
8758    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8759    ;;
8760  esac
8761  dynamic_linker='Win32 ld.exe'
8762  # FIXME: first we should search . and the directory the executable is in
8763  shlibpath_var=PATH
8764  ;;
8765
8766darwin* | rhapsody*)
8767  dynamic_linker="$host_os dyld"
8768  version_type=darwin
8769  need_lib_prefix=no
8770  need_version=no
8771  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8772  soname_spec='${libname}${release}${major}$shared_ext'
8773  shlibpath_overrides_runpath=yes
8774  shlibpath_var=DYLD_LIBRARY_PATH
8775  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8776  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8777  if test "$GCC" = yes; then
8778    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"`
8779  else
8780    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8781  fi
8782  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8783  ;;
8784
8785dgux*)
8786  version_type=linux
8787  need_lib_prefix=no
8788  need_version=no
8789  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8790  soname_spec='${libname}${release}${shared_ext}$major'
8791  shlibpath_var=LD_LIBRARY_PATH
8792  ;;
8793
8794freebsd1*)
8795  dynamic_linker=no
8796  ;;
8797
8798freebsd* | dragonfly*)
8799  # DragonFly does not have aout.  When/if they implement a new
8800  # versioning mechanism, adjust this.
8801  if test -x /usr/bin/objformat; then
8802    objformat=`/usr/bin/objformat`
8803  else
8804    case $host_os in
8805    freebsd[123]*) objformat=aout ;;
8806    *) objformat=elf ;;
8807    esac
8808  fi
8809  version_type=freebsd-$objformat
8810  case $version_type in
8811    freebsd-elf*)
8812      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8813      need_version=no
8814      need_lib_prefix=no
8815      ;;
8816    freebsd-*)
8817      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8818      need_version=yes
8819      ;;
8820  esac
8821  shlibpath_var=LD_LIBRARY_PATH
8822  case $host_os in
8823  freebsd2*)
8824    shlibpath_overrides_runpath=yes
8825    ;;
8826  freebsd3.[01]* | freebsdelf3.[01]*)
8827    shlibpath_overrides_runpath=yes
8828    hardcode_into_libs=yes
8829    ;;
8830  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8831  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8832    shlibpath_overrides_runpath=no
8833    hardcode_into_libs=yes
8834    ;;
8835  freebsd*) # from 4.6 on
8836    shlibpath_overrides_runpath=yes
8837    hardcode_into_libs=yes
8838    ;;
8839  esac
8840  ;;
8841
8842gnu*)
8843  version_type=linux
8844  need_lib_prefix=no
8845  need_version=no
8846  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8847  soname_spec='${libname}${release}${shared_ext}$major'
8848  shlibpath_var=LD_LIBRARY_PATH
8849  hardcode_into_libs=yes
8850  ;;
8851
8852hpux9* | hpux10* | hpux11*)
8853  # Give a soname corresponding to the major version so that dld.sl refuses to
8854  # link against other versions.
8855  version_type=sunos
8856  need_lib_prefix=no
8857  need_version=no
8858  case $host_cpu in
8859  ia64*)
8860    shrext_cmds='.so'
8861    hardcode_into_libs=yes
8862    dynamic_linker="$host_os dld.so"
8863    shlibpath_var=LD_LIBRARY_PATH
8864    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8865    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8866    soname_spec='${libname}${release}${shared_ext}$major'
8867    if test "X$HPUX_IA64_MODE" = X32; then
8868      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8869    else
8870      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8871    fi
8872    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8873    ;;
8874   hppa*64*)
8875     shrext_cmds='.sl'
8876     hardcode_into_libs=yes
8877     dynamic_linker="$host_os dld.sl"
8878     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8879     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8880     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8881     soname_spec='${libname}${release}${shared_ext}$major'
8882     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8883     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8884     ;;
8885   *)
8886    shrext_cmds='.sl'
8887    dynamic_linker="$host_os dld.sl"
8888    shlibpath_var=SHLIB_PATH
8889    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8890    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8891    soname_spec='${libname}${release}${shared_ext}$major'
8892    ;;
8893  esac
8894  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8895  postinstall_cmds='chmod 555 $lib'
8896  ;;
8897
8898interix3*)
8899  version_type=linux
8900  need_lib_prefix=no
8901  need_version=no
8902  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8903  soname_spec='${libname}${release}${shared_ext}$major'
8904  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8905  shlibpath_var=LD_LIBRARY_PATH
8906  shlibpath_overrides_runpath=no
8907  hardcode_into_libs=yes
8908  ;;
8909
8910irix5* | irix6* | nonstopux*)
8911  case $host_os in
8912    nonstopux*) version_type=nonstopux ;;
8913    *)
8914        if test "$lt_cv_prog_gnu_ld" = yes; then
8915                version_type=linux
8916        else
8917                version_type=irix
8918        fi ;;
8919  esac
8920  need_lib_prefix=no
8921  need_version=no
8922  soname_spec='${libname}${release}${shared_ext}$major'
8923  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8924  case $host_os in
8925  irix5* | nonstopux*)
8926    libsuff= shlibsuff=
8927    ;;
8928  *)
8929    case $LD in # libtool.m4 will add one of these switches to LD
8930    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8931      libsuff= shlibsuff= libmagic=32-bit;;
8932    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8933      libsuff=32 shlibsuff=N32 libmagic=N32;;
8934    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8935      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8936    *) libsuff= shlibsuff= libmagic=never-match;;
8937    esac
8938    ;;
8939  esac
8940  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8941  shlibpath_overrides_runpath=no
8942  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8943  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8944  hardcode_into_libs=yes
8945  ;;
8946
8947# No shared lib support for Linux oldld, aout, or coff.
8948linux*oldld* | linux*aout* | linux*coff*)
8949  dynamic_linker=no
8950  ;;
8951
8952# This must be Linux ELF.
8953linux* | k*bsd*-gnu)
8954  version_type=linux
8955  need_lib_prefix=no
8956  need_version=no
8957  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8958  soname_spec='${libname}${release}${shared_ext}$major'
8959  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8960  shlibpath_var=LD_LIBRARY_PATH
8961  shlibpath_overrides_runpath=no
8962  # This implies no fast_install, which is unacceptable.
8963  # Some rework will be needed to allow for fast_install
8964  # before this can be enabled.
8965  hardcode_into_libs=yes
8966
8967  # Append ld.so.conf contents to the search path
8968  if test -f /etc/ld.so.conf; then
8969    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8970    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8971  fi
8972
8973  # We used to test for /lib/ld.so.1 and disable shared libraries on
8974  # powerpc, because MkLinux only supported shared libraries with the
8975  # GNU dynamic linker.  Since this was broken with cross compilers,
8976  # most powerpc-linux boxes support dynamic linking these days and
8977  # people can always --disable-shared, the test was removed, and we
8978  # assume the GNU/Linux dynamic linker is in use.
8979  dynamic_linker='GNU/Linux ld.so'
8980  ;;
8981
8982netbsdelf*-gnu)
8983  version_type=linux
8984  need_lib_prefix=no
8985  need_version=no
8986  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8987  soname_spec='${libname}${release}${shared_ext}$major'
8988  shlibpath_var=LD_LIBRARY_PATH
8989  shlibpath_overrides_runpath=no
8990  hardcode_into_libs=yes
8991  dynamic_linker='NetBSD ld.elf_so'
8992  ;;
8993
8994netbsd*)
8995  version_type=sunos
8996  need_lib_prefix=no
8997  need_version=no
8998  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8999    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9000    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9001    dynamic_linker='NetBSD (a.out) ld.so'
9002  else
9003    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9004    soname_spec='${libname}${release}${shared_ext}$major'
9005    dynamic_linker='NetBSD ld.elf_so'
9006  fi
9007  shlibpath_var=LD_LIBRARY_PATH
9008  shlibpath_overrides_runpath=yes
9009  hardcode_into_libs=yes
9010  ;;
9011
9012newsos6)
9013  version_type=linux
9014  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9015  shlibpath_var=LD_LIBRARY_PATH
9016  shlibpath_overrides_runpath=yes
9017  ;;
9018
9019nto-qnx*)
9020  version_type=linux
9021  need_lib_prefix=no
9022  need_version=no
9023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9024  soname_spec='${libname}${release}${shared_ext}$major'
9025  shlibpath_var=LD_LIBRARY_PATH
9026  shlibpath_overrides_runpath=yes
9027  ;;
9028
9029openbsd*)
9030  version_type=sunos
9031  sys_lib_dlsearch_path_spec="/usr/lib"
9032  need_lib_prefix=no
9033  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9034  case $host_os in
9035    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9036    *)                         need_version=no  ;;
9037  esac
9038  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9039  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9040  shlibpath_var=LD_LIBRARY_PATH
9041  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9042    case $host_os in
9043      openbsd2.[89] | openbsd2.[89].*)
9044        shlibpath_overrides_runpath=no
9045        ;;
9046      *)
9047        shlibpath_overrides_runpath=yes
9048        ;;
9049      esac
9050  else
9051    shlibpath_overrides_runpath=yes
9052  fi
9053  ;;
9054
9055os2*)
9056  libname_spec='$name'
9057  shrext_cmds=".dll"
9058  need_lib_prefix=no
9059  library_names_spec='$libname${shared_ext} $libname.a'
9060  dynamic_linker='OS/2 ld.exe'
9061  shlibpath_var=LIBPATH
9062  ;;
9063
9064osf3* | osf4* | osf5*)
9065  version_type=osf
9066  need_lib_prefix=no
9067  need_version=no
9068  soname_spec='${libname}${release}${shared_ext}$major'
9069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9070  shlibpath_var=LD_LIBRARY_PATH
9071  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9072  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9073  ;;
9074
9075solaris*)
9076  version_type=linux
9077  need_lib_prefix=no
9078  need_version=no
9079  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9080  soname_spec='${libname}${release}${shared_ext}$major'
9081  shlibpath_var=LD_LIBRARY_PATH
9082  shlibpath_overrides_runpath=yes
9083  hardcode_into_libs=yes
9084  # ldd complains unless libraries are executable
9085  postinstall_cmds='chmod +x $lib'
9086  ;;
9087
9088sunos4*)
9089  version_type=sunos
9090  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9091  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9092  shlibpath_var=LD_LIBRARY_PATH
9093  shlibpath_overrides_runpath=yes
9094  if test "$with_gnu_ld" = yes; then
9095    need_lib_prefix=no
9096  fi
9097  need_version=yes
9098  ;;
9099
9100sysv4 | sysv4.3*)
9101  version_type=linux
9102  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9103  soname_spec='${libname}${release}${shared_ext}$major'
9104  shlibpath_var=LD_LIBRARY_PATH
9105  case $host_vendor in
9106    sni)
9107      shlibpath_overrides_runpath=no
9108      need_lib_prefix=no
9109      export_dynamic_flag_spec='${wl}-Blargedynsym'
9110      runpath_var=LD_RUN_PATH
9111      ;;
9112    siemens)
9113      need_lib_prefix=no
9114      ;;
9115    motorola)
9116      need_lib_prefix=no
9117      need_version=no
9118      shlibpath_overrides_runpath=no
9119      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9120      ;;
9121  esac
9122  ;;
9123
9124sysv4*MP*)
9125  if test -d /usr/nec ;then
9126    version_type=linux
9127    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9128    soname_spec='$libname${shared_ext}.$major'
9129    shlibpath_var=LD_LIBRARY_PATH
9130  fi
9131  ;;
9132
9133sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9134  version_type=freebsd-elf
9135  need_lib_prefix=no
9136  need_version=no
9137  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9138  soname_spec='${libname}${release}${shared_ext}$major'
9139  shlibpath_var=LD_LIBRARY_PATH
9140  hardcode_into_libs=yes
9141  if test "$with_gnu_ld" = yes; then
9142    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9143    shlibpath_overrides_runpath=no
9144  else
9145    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9146    shlibpath_overrides_runpath=yes
9147    case $host_os in
9148      sco3.2v5*)
9149        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9150        ;;
9151    esac
9152  fi
9153  sys_lib_dlsearch_path_spec='/usr/lib'
9154  ;;
9155
9156uts4*)
9157  version_type=linux
9158  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9159  soname_spec='${libname}${release}${shared_ext}$major'
9160  shlibpath_var=LD_LIBRARY_PATH
9161  ;;
9162
9163*)
9164  dynamic_linker=no
9165  ;;
9166esac
9167{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9168echo "${ECHO_T}$dynamic_linker" >&6; }
9169test "$dynamic_linker" = no && can_build_shared=no
9170
9171variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9172if test "$GCC" = yes; then
9173  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9174fi
9175
9176{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9177echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9178hardcode_action=
9179if test -n "$hardcode_libdir_flag_spec" || \
9180   test -n "$runpath_var" || \
9181   test "X$hardcode_automatic" = "Xyes" ; then
9182
9183  # We can hardcode non-existant directories.
9184  if test "$hardcode_direct" != no &&
9185     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9186     # have to relink, otherwise we might link with an installed library
9187     # when we should be linking with a yet-to-be-installed one
9188     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9189     test "$hardcode_minus_L" != no; then
9190    # Linking always hardcodes the temporary library directory.
9191    hardcode_action=relink
9192  else
9193    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9194    hardcode_action=immediate
9195  fi
9196else
9197  # We cannot hardcode anything, or else we can only hardcode existing
9198  # directories.
9199  hardcode_action=unsupported
9200fi
9201{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9202echo "${ECHO_T}$hardcode_action" >&6; }
9203
9204if test "$hardcode_action" = relink; then
9205  # Fast installation is not supported
9206  enable_fast_install=no
9207elif test "$shlibpath_overrides_runpath" = yes ||
9208     test "$enable_shared" = no; then
9209  # Fast installation is not necessary
9210  enable_fast_install=needless
9211fi
9212
9213striplib=
9214old_striplib=
9215{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9216echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9217if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9218  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9219  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9220  { echo "$as_me:$LINENO: result: yes" >&5
9221echo "${ECHO_T}yes" >&6; }
9222else
9223# FIXME - insert some real tests, host_os isn't really good enough
9224  case $host_os in
9225   darwin*)
9226       if test -n "$STRIP" ; then
9227         striplib="$STRIP -x"
9228         { echo "$as_me:$LINENO: result: yes" >&5
9229echo "${ECHO_T}yes" >&6; }
9230       else
9231  { echo "$as_me:$LINENO: result: no" >&5
9232echo "${ECHO_T}no" >&6; }
9233fi
9234       ;;
9235   *)
9236  { echo "$as_me:$LINENO: result: no" >&5
9237echo "${ECHO_T}no" >&6; }
9238    ;;
9239  esac
9240fi
9241
9242if test "x$enable_dlopen" != xyes; then
9243  enable_dlopen=unknown
9244  enable_dlopen_self=unknown
9245  enable_dlopen_self_static=unknown
9246else
9247  lt_cv_dlopen=no
9248  lt_cv_dlopen_libs=
9249
9250  case $host_os in
9251  beos*)
9252    lt_cv_dlopen="load_add_on"
9253    lt_cv_dlopen_libs=
9254    lt_cv_dlopen_self=yes
9255    ;;
9256
9257  mingw* | pw32*)
9258    lt_cv_dlopen="LoadLibrary"
9259    lt_cv_dlopen_libs=
9260   ;;
9261
9262  cygwin*)
9263    lt_cv_dlopen="dlopen"
9264    lt_cv_dlopen_libs=
9265   ;;
9266
9267  darwin*)
9268  # if libdl is installed we need to link against it
9269    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9270echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9271if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9272  echo $ECHO_N "(cached) $ECHO_C" >&6
9273else
9274  ac_check_lib_save_LIBS=$LIBS
9275LIBS="-ldl  $LIBS"
9276cat >conftest.$ac_ext <<_ACEOF
9277/* confdefs.h.  */
9278_ACEOF
9279cat confdefs.h >>conftest.$ac_ext
9280cat >>conftest.$ac_ext <<_ACEOF
9281/* end confdefs.h.  */
9282
9283/* Override any GCC internal prototype to avoid an error.
9284   Use char because int might match the return type of a GCC
9285   builtin and then its argument prototype would still apply.  */
9286#ifdef __cplusplus
9287extern "C"
9288#endif
9289char dlopen ();
9290int
9291main ()
9292{
9293return dlopen ();
9294  ;
9295  return 0;
9296}
9297_ACEOF
9298rm -f conftest.$ac_objext conftest$ac_exeext
9299if { (ac_try="$ac_link"
9300case "(($ac_try" in
9301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9302  *) ac_try_echo=$ac_try;;
9303esac
9304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9305  (eval "$ac_link") 2>conftest.er1
9306  ac_status=$?
9307  grep -v '^ *+' conftest.er1 >conftest.err
9308  rm -f conftest.er1
9309  cat conftest.err >&5
9310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311  (exit $ac_status); } && {
9312         test -z "$ac_c_werror_flag" ||
9313         test ! -s conftest.err
9314       } && test -s conftest$ac_exeext &&
9315       $as_test_x conftest$ac_exeext; then
9316  ac_cv_lib_dl_dlopen=yes
9317else
9318  echo "$as_me: failed program was:" >&5
9319sed 's/^/| /' conftest.$ac_ext >&5
9320
9321        ac_cv_lib_dl_dlopen=no
9322fi
9323
9324rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9325      conftest$ac_exeext conftest.$ac_ext
9326LIBS=$ac_check_lib_save_LIBS
9327fi
9328{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9329echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9330if test $ac_cv_lib_dl_dlopen = yes; then
9331  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9332else
9333
9334    lt_cv_dlopen="dyld"
9335    lt_cv_dlopen_libs=
9336    lt_cv_dlopen_self=yes
9337
9338fi
9339
9340   ;;
9341
9342  *)
9343    { echo "$as_me:$LINENO: checking for shl_load" >&5
9344echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9345if test "${ac_cv_func_shl_load+set}" = set; then
9346  echo $ECHO_N "(cached) $ECHO_C" >&6
9347else
9348  cat >conftest.$ac_ext <<_ACEOF
9349/* confdefs.h.  */
9350_ACEOF
9351cat confdefs.h >>conftest.$ac_ext
9352cat >>conftest.$ac_ext <<_ACEOF
9353/* end confdefs.h.  */
9354/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9355   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9356#define shl_load innocuous_shl_load
9357
9358/* System header to define __stub macros and hopefully few prototypes,
9359    which can conflict with char shl_load (); below.
9360    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9361    <limits.h> exists even on freestanding compilers.  */
9362
9363#ifdef __STDC__
9364# include <limits.h>
9365#else
9366# include <assert.h>
9367#endif
9368
9369#undef shl_load
9370
9371/* Override any GCC internal prototype to avoid an error.
9372   Use char because int might match the return type of a GCC
9373   builtin and then its argument prototype would still apply.  */
9374#ifdef __cplusplus
9375extern "C"
9376#endif
9377char shl_load ();
9378/* The GNU C library defines this for functions which it implements
9379    to always fail with ENOSYS.  Some functions are actually named
9380    something starting with __ and the normal name is an alias.  */
9381#if defined __stub_shl_load || defined __stub___shl_load
9382choke me
9383#endif
9384
9385int
9386main ()
9387{
9388return shl_load ();
9389  ;
9390  return 0;
9391}
9392_ACEOF
9393rm -f conftest.$ac_objext conftest$ac_exeext
9394if { (ac_try="$ac_link"
9395case "(($ac_try" in
9396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9397  *) ac_try_echo=$ac_try;;
9398esac
9399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9400  (eval "$ac_link") 2>conftest.er1
9401  ac_status=$?
9402  grep -v '^ *+' conftest.er1 >conftest.err
9403  rm -f conftest.er1
9404  cat conftest.err >&5
9405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406  (exit $ac_status); } && {
9407         test -z "$ac_c_werror_flag" ||
9408         test ! -s conftest.err
9409       } && test -s conftest$ac_exeext &&
9410       $as_test_x conftest$ac_exeext; then
9411  ac_cv_func_shl_load=yes
9412else
9413  echo "$as_me: failed program was:" >&5
9414sed 's/^/| /' conftest.$ac_ext >&5
9415
9416        ac_cv_func_shl_load=no
9417fi
9418
9419rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9420      conftest$ac_exeext conftest.$ac_ext
9421fi
9422{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9423echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9424if test $ac_cv_func_shl_load = yes; then
9425  lt_cv_dlopen="shl_load"
9426else
9427  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9428echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9429if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9430  echo $ECHO_N "(cached) $ECHO_C" >&6
9431else
9432  ac_check_lib_save_LIBS=$LIBS
9433LIBS="-ldld  $LIBS"
9434cat >conftest.$ac_ext <<_ACEOF
9435/* confdefs.h.  */
9436_ACEOF
9437cat confdefs.h >>conftest.$ac_ext
9438cat >>conftest.$ac_ext <<_ACEOF
9439/* end confdefs.h.  */
9440
9441/* Override any GCC internal prototype to avoid an error.
9442   Use char because int might match the return type of a GCC
9443   builtin and then its argument prototype would still apply.  */
9444#ifdef __cplusplus
9445extern "C"
9446#endif
9447char shl_load ();
9448int
9449main ()
9450{
9451return shl_load ();
9452  ;
9453  return 0;
9454}
9455_ACEOF
9456rm -f conftest.$ac_objext conftest$ac_exeext
9457if { (ac_try="$ac_link"
9458case "(($ac_try" in
9459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9460  *) ac_try_echo=$ac_try;;
9461esac
9462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9463  (eval "$ac_link") 2>conftest.er1
9464  ac_status=$?
9465  grep -v '^ *+' conftest.er1 >conftest.err
9466  rm -f conftest.er1
9467  cat conftest.err >&5
9468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469  (exit $ac_status); } && {
9470         test -z "$ac_c_werror_flag" ||
9471         test ! -s conftest.err
9472       } && test -s conftest$ac_exeext &&
9473       $as_test_x conftest$ac_exeext; then
9474  ac_cv_lib_dld_shl_load=yes
9475else
9476  echo "$as_me: failed program was:" >&5
9477sed 's/^/| /' conftest.$ac_ext >&5
9478
9479        ac_cv_lib_dld_shl_load=no
9480fi
9481
9482rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9483      conftest$ac_exeext conftest.$ac_ext
9484LIBS=$ac_check_lib_save_LIBS
9485fi
9486{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9487echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9488if test $ac_cv_lib_dld_shl_load = yes; then
9489  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9490else
9491  { echo "$as_me:$LINENO: checking for dlopen" >&5
9492echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9493if test "${ac_cv_func_dlopen+set}" = set; then
9494  echo $ECHO_N "(cached) $ECHO_C" >&6
9495else
9496  cat >conftest.$ac_ext <<_ACEOF
9497/* confdefs.h.  */
9498_ACEOF
9499cat confdefs.h >>conftest.$ac_ext
9500cat >>conftest.$ac_ext <<_ACEOF
9501/* end confdefs.h.  */
9502/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9503   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9504#define dlopen innocuous_dlopen
9505
9506/* System header to define __stub macros and hopefully few prototypes,
9507    which can conflict with char dlopen (); below.
9508    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9509    <limits.h> exists even on freestanding compilers.  */
9510
9511#ifdef __STDC__
9512# include <limits.h>
9513#else
9514# include <assert.h>
9515#endif
9516
9517#undef dlopen
9518
9519/* Override any GCC internal prototype to avoid an error.
9520   Use char because int might match the return type of a GCC
9521   builtin and then its argument prototype would still apply.  */
9522#ifdef __cplusplus
9523extern "C"
9524#endif
9525char dlopen ();
9526/* The GNU C library defines this for functions which it implements
9527    to always fail with ENOSYS.  Some functions are actually named
9528    something starting with __ and the normal name is an alias.  */
9529#if defined __stub_dlopen || defined __stub___dlopen
9530choke me
9531#endif
9532
9533int
9534main ()
9535{
9536return dlopen ();
9537  ;
9538  return 0;
9539}
9540_ACEOF
9541rm -f conftest.$ac_objext conftest$ac_exeext
9542if { (ac_try="$ac_link"
9543case "(($ac_try" in
9544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545  *) ac_try_echo=$ac_try;;
9546esac
9547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9548  (eval "$ac_link") 2>conftest.er1
9549  ac_status=$?
9550  grep -v '^ *+' conftest.er1 >conftest.err
9551  rm -f conftest.er1
9552  cat conftest.err >&5
9553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554  (exit $ac_status); } && {
9555         test -z "$ac_c_werror_flag" ||
9556         test ! -s conftest.err
9557       } && test -s conftest$ac_exeext &&
9558       $as_test_x conftest$ac_exeext; then
9559  ac_cv_func_dlopen=yes
9560else
9561  echo "$as_me: failed program was:" >&5
9562sed 's/^/| /' conftest.$ac_ext >&5
9563
9564        ac_cv_func_dlopen=no
9565fi
9566
9567rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9568      conftest$ac_exeext conftest.$ac_ext
9569fi
9570{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9571echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9572if test $ac_cv_func_dlopen = yes; then
9573  lt_cv_dlopen="dlopen"
9574else
9575  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9576echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9577if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9578  echo $ECHO_N "(cached) $ECHO_C" >&6
9579else
9580  ac_check_lib_save_LIBS=$LIBS
9581LIBS="-ldl  $LIBS"
9582cat >conftest.$ac_ext <<_ACEOF
9583/* confdefs.h.  */
9584_ACEOF
9585cat confdefs.h >>conftest.$ac_ext
9586cat >>conftest.$ac_ext <<_ACEOF
9587/* end confdefs.h.  */
9588
9589/* Override any GCC internal prototype to avoid an error.
9590   Use char because int might match the return type of a GCC
9591   builtin and then its argument prototype would still apply.  */
9592#ifdef __cplusplus
9593extern "C"
9594#endif
9595char dlopen ();
9596int
9597main ()
9598{
9599return dlopen ();
9600  ;
9601  return 0;
9602}
9603_ACEOF
9604rm -f conftest.$ac_objext conftest$ac_exeext
9605if { (ac_try="$ac_link"
9606case "(($ac_try" in
9607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9608  *) ac_try_echo=$ac_try;;
9609esac
9610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9611  (eval "$ac_link") 2>conftest.er1
9612  ac_status=$?
9613  grep -v '^ *+' conftest.er1 >conftest.err
9614  rm -f conftest.er1
9615  cat conftest.err >&5
9616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617  (exit $ac_status); } && {
9618         test -z "$ac_c_werror_flag" ||
9619         test ! -s conftest.err
9620       } && test -s conftest$ac_exeext &&
9621       $as_test_x conftest$ac_exeext; then
9622  ac_cv_lib_dl_dlopen=yes
9623else
9624  echo "$as_me: failed program was:" >&5
9625sed 's/^/| /' conftest.$ac_ext >&5
9626
9627        ac_cv_lib_dl_dlopen=no
9628fi
9629
9630rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9631      conftest$ac_exeext conftest.$ac_ext
9632LIBS=$ac_check_lib_save_LIBS
9633fi
9634{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9635echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9636if test $ac_cv_lib_dl_dlopen = yes; then
9637  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9638else
9639  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9640echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9641if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9642  echo $ECHO_N "(cached) $ECHO_C" >&6
9643else
9644  ac_check_lib_save_LIBS=$LIBS
9645LIBS="-lsvld  $LIBS"
9646cat >conftest.$ac_ext <<_ACEOF
9647/* confdefs.h.  */
9648_ACEOF
9649cat confdefs.h >>conftest.$ac_ext
9650cat >>conftest.$ac_ext <<_ACEOF
9651/* end confdefs.h.  */
9652
9653/* Override any GCC internal prototype to avoid an error.
9654   Use char because int might match the return type of a GCC
9655   builtin and then its argument prototype would still apply.  */
9656#ifdef __cplusplus
9657extern "C"
9658#endif
9659char dlopen ();
9660int
9661main ()
9662{
9663return dlopen ();
9664  ;
9665  return 0;
9666}
9667_ACEOF
9668rm -f conftest.$ac_objext conftest$ac_exeext
9669if { (ac_try="$ac_link"
9670case "(($ac_try" in
9671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9672  *) ac_try_echo=$ac_try;;
9673esac
9674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9675  (eval "$ac_link") 2>conftest.er1
9676  ac_status=$?
9677  grep -v '^ *+' conftest.er1 >conftest.err
9678  rm -f conftest.er1
9679  cat conftest.err >&5
9680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681  (exit $ac_status); } && {
9682         test -z "$ac_c_werror_flag" ||
9683         test ! -s conftest.err
9684       } && test -s conftest$ac_exeext &&
9685       $as_test_x conftest$ac_exeext; then
9686  ac_cv_lib_svld_dlopen=yes
9687else
9688  echo "$as_me: failed program was:" >&5
9689sed 's/^/| /' conftest.$ac_ext >&5
9690
9691        ac_cv_lib_svld_dlopen=no
9692fi
9693
9694rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9695      conftest$ac_exeext conftest.$ac_ext
9696LIBS=$ac_check_lib_save_LIBS
9697fi
9698{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9699echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9700if test $ac_cv_lib_svld_dlopen = yes; then
9701  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9702else
9703  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9704echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9705if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9706  echo $ECHO_N "(cached) $ECHO_C" >&6
9707else
9708  ac_check_lib_save_LIBS=$LIBS
9709LIBS="-ldld  $LIBS"
9710cat >conftest.$ac_ext <<_ACEOF
9711/* confdefs.h.  */
9712_ACEOF
9713cat confdefs.h >>conftest.$ac_ext
9714cat >>conftest.$ac_ext <<_ACEOF
9715/* end confdefs.h.  */
9716
9717/* Override any GCC internal prototype to avoid an error.
9718   Use char because int might match the return type of a GCC
9719   builtin and then its argument prototype would still apply.  */
9720#ifdef __cplusplus
9721extern "C"
9722#endif
9723char dld_link ();
9724int
9725main ()
9726{
9727return dld_link ();
9728  ;
9729  return 0;
9730}
9731_ACEOF
9732rm -f conftest.$ac_objext conftest$ac_exeext
9733if { (ac_try="$ac_link"
9734case "(($ac_try" in
9735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9736  *) ac_try_echo=$ac_try;;
9737esac
9738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9739  (eval "$ac_link") 2>conftest.er1
9740  ac_status=$?
9741  grep -v '^ *+' conftest.er1 >conftest.err
9742  rm -f conftest.er1
9743  cat conftest.err >&5
9744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745  (exit $ac_status); } && {
9746         test -z "$ac_c_werror_flag" ||
9747         test ! -s conftest.err
9748       } && test -s conftest$ac_exeext &&
9749       $as_test_x conftest$ac_exeext; then
9750  ac_cv_lib_dld_dld_link=yes
9751else
9752  echo "$as_me: failed program was:" >&5
9753sed 's/^/| /' conftest.$ac_ext >&5
9754
9755        ac_cv_lib_dld_dld_link=no
9756fi
9757
9758rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9759      conftest$ac_exeext conftest.$ac_ext
9760LIBS=$ac_check_lib_save_LIBS
9761fi
9762{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9763echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9764if test $ac_cv_lib_dld_dld_link = yes; then
9765  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9766fi
9767
9768
9769fi
9770
9771
9772fi
9773
9774
9775fi
9776
9777
9778fi
9779
9780
9781fi
9782
9783    ;;
9784  esac
9785
9786  if test "x$lt_cv_dlopen" != xno; then
9787    enable_dlopen=yes
9788  else
9789    enable_dlopen=no
9790  fi
9791
9792  case $lt_cv_dlopen in
9793  dlopen)
9794    save_CPPFLAGS="$CPPFLAGS"
9795    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9796
9797    save_LDFLAGS="$LDFLAGS"
9798    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9799
9800    save_LIBS="$LIBS"
9801    LIBS="$lt_cv_dlopen_libs $LIBS"
9802
9803    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9804echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9805if test "${lt_cv_dlopen_self+set}" = set; then
9806  echo $ECHO_N "(cached) $ECHO_C" >&6
9807else
9808          if test "$cross_compiling" = yes; then :
9809  lt_cv_dlopen_self=cross
9810else
9811  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9812  lt_status=$lt_dlunknown
9813  cat > conftest.$ac_ext <<EOF
9814#line 9814 "configure"
9815#include "confdefs.h"
9816
9817#if HAVE_DLFCN_H
9818#include <dlfcn.h>
9819#endif
9820
9821#include <stdio.h>
9822
9823#ifdef RTLD_GLOBAL
9824#  define LT_DLGLOBAL           RTLD_GLOBAL
9825#else
9826#  ifdef DL_GLOBAL
9827#    define LT_DLGLOBAL         DL_GLOBAL
9828#  else
9829#    define LT_DLGLOBAL         0
9830#  endif
9831#endif
9832
9833/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9834   find out it does not work in some platform. */
9835#ifndef LT_DLLAZY_OR_NOW
9836#  ifdef RTLD_LAZY
9837#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9838#  else
9839#    ifdef DL_LAZY
9840#      define LT_DLLAZY_OR_NOW          DL_LAZY
9841#    else
9842#      ifdef RTLD_NOW
9843#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9844#      else
9845#        ifdef DL_NOW
9846#          define LT_DLLAZY_OR_NOW      DL_NOW
9847#        else
9848#          define LT_DLLAZY_OR_NOW      0
9849#        endif
9850#      endif
9851#    endif
9852#  endif
9853#endif
9854
9855#ifdef __cplusplus
9856extern "C" void exit (int);
9857#endif
9858
9859void fnord() { int i=42;}
9860int main ()
9861{
9862  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9863  int status = $lt_dlunknown;
9864
9865  if (self)
9866    {
9867      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9868      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9869      /* dlclose (self); */
9870    }
9871  else
9872    puts (dlerror ());
9873
9874    exit (status);
9875}
9876EOF
9877  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9878  (eval $ac_link) 2>&5
9879  ac_status=$?
9880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9882    (./conftest; exit; ) >&5 2>/dev/null
9883    lt_status=$?
9884    case x$lt_status in
9885      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9886      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9887      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9888    esac
9889  else :
9890    # compilation failed
9891    lt_cv_dlopen_self=no
9892  fi
9893fi
9894rm -fr conftest*
9895
9896
9897fi
9898{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9899echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9900
9901    if test "x$lt_cv_dlopen_self" = xyes; then
9902      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9903      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9904echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9905if test "${lt_cv_dlopen_self_static+set}" = set; then
9906  echo $ECHO_N "(cached) $ECHO_C" >&6
9907else
9908          if test "$cross_compiling" = yes; then :
9909  lt_cv_dlopen_self_static=cross
9910else
9911  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9912  lt_status=$lt_dlunknown
9913  cat > conftest.$ac_ext <<EOF
9914#line 9914 "configure"
9915#include "confdefs.h"
9916
9917#if HAVE_DLFCN_H
9918#include <dlfcn.h>
9919#endif
9920
9921#include <stdio.h>
9922
9923#ifdef RTLD_GLOBAL
9924#  define LT_DLGLOBAL           RTLD_GLOBAL
9925#else
9926#  ifdef DL_GLOBAL
9927#    define LT_DLGLOBAL         DL_GLOBAL
9928#  else
9929#    define LT_DLGLOBAL         0
9930#  endif
9931#endif
9932
9933/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9934   find out it does not work in some platform. */
9935#ifndef LT_DLLAZY_OR_NOW
9936#  ifdef RTLD_LAZY
9937#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9938#  else
9939#    ifdef DL_LAZY
9940#      define LT_DLLAZY_OR_NOW          DL_LAZY
9941#    else
9942#      ifdef RTLD_NOW
9943#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9944#      else
9945#        ifdef DL_NOW
9946#          define LT_DLLAZY_OR_NOW      DL_NOW
9947#        else
9948#          define LT_DLLAZY_OR_NOW      0
9949#        endif
9950#      endif
9951#    endif
9952#  endif
9953#endif
9954
9955#ifdef __cplusplus
9956extern "C" void exit (int);
9957#endif
9958
9959void fnord() { int i=42;}
9960int main ()
9961{
9962  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9963  int status = $lt_dlunknown;
9964
9965  if (self)
9966    {
9967      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9968      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9969      /* dlclose (self); */
9970    }
9971  else
9972    puts (dlerror ());
9973
9974    exit (status);
9975}
9976EOF
9977  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9978  (eval $ac_link) 2>&5
9979  ac_status=$?
9980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9982    (./conftest; exit; ) >&5 2>/dev/null
9983    lt_status=$?
9984    case x$lt_status in
9985      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9986      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9987      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9988    esac
9989  else :
9990    # compilation failed
9991    lt_cv_dlopen_self_static=no
9992  fi
9993fi
9994rm -fr conftest*
9995
9996
9997fi
9998{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9999echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10000    fi
10001
10002    CPPFLAGS="$save_CPPFLAGS"
10003    LDFLAGS="$save_LDFLAGS"
10004    LIBS="$save_LIBS"
10005    ;;
10006  esac
10007
10008  case $lt_cv_dlopen_self in
10009  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10010  *) enable_dlopen_self=unknown ;;
10011  esac
10012
10013  case $lt_cv_dlopen_self_static in
10014  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10015  *) enable_dlopen_self_static=unknown ;;
10016  esac
10017fi
10018
10019
10020# Report which library types will actually be built
10021{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10022echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10023{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10024echo "${ECHO_T}$can_build_shared" >&6; }
10025
10026{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10027echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10028test "$can_build_shared" = "no" && enable_shared=no
10029
10030# On AIX, shared libraries and static libraries use the same namespace, and
10031# are all built from PIC.
10032case $host_os in
10033aix3*)
10034  test "$enable_shared" = yes && enable_static=no
10035  if test -n "$RANLIB"; then
10036    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10037    postinstall_cmds='$RANLIB $lib'
10038  fi
10039  ;;
10040
10041aix4* | aix5*)
10042  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10043    test "$enable_shared" = yes && enable_static=no
10044  fi
10045    ;;
10046esac
10047{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10048echo "${ECHO_T}$enable_shared" >&6; }
10049
10050{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10051echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10052# Make sure either enable_shared or enable_static is yes.
10053test "$enable_shared" = yes || enable_static=yes
10054{ echo "$as_me:$LINENO: result: $enable_static" >&5
10055echo "${ECHO_T}$enable_static" >&6; }
10056
10057# The else clause should only fire when bootstrapping the
10058# libtool distribution, otherwise you forgot to ship ltmain.sh
10059# with your package, and you will get complaints that there are
10060# no rules to generate ltmain.sh.
10061if test -f "$ltmain"; then
10062  # See if we are running on zsh, and set the options which allow our commands through
10063  # without removal of \ escapes.
10064  if test -n "${ZSH_VERSION+set}" ; then
10065    setopt NO_GLOB_SUBST
10066  fi
10067  # Now quote all the things that may contain metacharacters while being
10068  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10069  # variables and quote the copies for generation of the libtool script.
10070  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10071    SED SHELL STRIP \
10072    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10073    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10074    deplibs_check_method reload_flag reload_cmds need_locks \
10075    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10076    lt_cv_sys_global_symbol_to_c_name_address \
10077    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10078    old_postinstall_cmds old_postuninstall_cmds \
10079    compiler \
10080    CC \
10081    LD \
10082    lt_prog_compiler_wl \
10083    lt_prog_compiler_pic \
10084    lt_prog_compiler_static \
10085    lt_prog_compiler_no_builtin_flag \
10086    export_dynamic_flag_spec \
10087    thread_safe_flag_spec \
10088    whole_archive_flag_spec \
10089    enable_shared_with_static_runtimes \
10090    old_archive_cmds \
10091    old_archive_from_new_cmds \
10092    predep_objects \
10093    postdep_objects \
10094    predeps \
10095    postdeps \
10096    compiler_lib_search_path \
10097    archive_cmds \
10098    archive_expsym_cmds \
10099    postinstall_cmds \
10100    postuninstall_cmds \
10101    old_archive_from_expsyms_cmds \
10102    allow_undefined_flag \
10103    no_undefined_flag \
10104    export_symbols_cmds \
10105    hardcode_libdir_flag_spec \
10106    hardcode_libdir_flag_spec_ld \
10107    hardcode_libdir_separator \
10108    hardcode_automatic \
10109    module_cmds \
10110    module_expsym_cmds \
10111    lt_cv_prog_compiler_c_o \
10112    exclude_expsyms \
10113    include_expsyms; do
10114
10115    case $var in
10116    old_archive_cmds | \
10117    old_archive_from_new_cmds | \
10118    archive_cmds | \
10119    archive_expsym_cmds | \
10120    module_cmds | \
10121    module_expsym_cmds | \
10122    old_archive_from_expsyms_cmds | \
10123    export_symbols_cmds | \
10124    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10125    postinstall_cmds | postuninstall_cmds | \
10126    old_postinstall_cmds | old_postuninstall_cmds | \
10127    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10128      # Double-quote double-evaled strings.
10129      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10130      ;;
10131    *)
10132      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10133      ;;
10134    esac
10135  done
10136
10137  case $lt_echo in
10138  *'\$0 --fallback-echo"')
10139    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10140    ;;
10141  esac
10142
10143cfgfile="${ofile}T"
10144  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10145  $rm -f "$cfgfile"
10146  { echo "$as_me:$LINENO: creating $ofile" >&5
10147echo "$as_me: creating $ofile" >&6;}
10148
10149  cat <<__EOF__ >> "$cfgfile"
10150#! $SHELL
10151
10152# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10153# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10154# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10155#
10156# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10157# Free Software Foundation, Inc.
10158#
10159# This file is part of GNU Libtool:
10160# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10161#
10162# This program is free software; you can redistribute it and/or modify
10163# it under the terms of the GNU General Public License as published by
10164# the Free Software Foundation; either version 2 of the License, or
10165# (at your option) any later version.
10166#
10167# This program is distributed in the hope that it will be useful, but
10168# WITHOUT ANY WARRANTY; without even the implied warranty of
10169# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10170# General Public License for more details.
10171#
10172# You should have received a copy of the GNU General Public License
10173# along with this program; if not, write to the Free Software
10174# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10175#
10176# As a special exception to the GNU General Public License, if you
10177# distribute this file as part of a program that contains a
10178# configuration script generated by Autoconf, you may include it under
10179# the same distribution terms that you use for the rest of that program.
10180
10181# A sed program that does not truncate output.
10182SED=$lt_SED
10183
10184# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10185Xsed="$SED -e 1s/^X//"
10186
10187# The HP-UX ksh and POSIX shell print the target directory to stdout
10188# if CDPATH is set.
10189(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10190
10191# The names of the tagged configurations supported by this script.
10192available_tags=
10193
10194# ### BEGIN LIBTOOL CONFIG
10195
10196# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10197
10198# Shell to use when invoking shell scripts.
10199SHELL=$lt_SHELL
10200
10201# Whether or not to build shared libraries.
10202build_libtool_libs=$enable_shared
10203
10204# Whether or not to build static libraries.
10205build_old_libs=$enable_static
10206
10207# Whether or not to add -lc for building shared libraries.
10208build_libtool_need_lc=$archive_cmds_need_lc
10209
10210# Whether or not to disallow shared libs when runtime libs are static
10211allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10212
10213# Whether or not to optimize for fast installation.
10214fast_install=$enable_fast_install
10215
10216# The host system.
10217host_alias=$host_alias
10218host=$host
10219host_os=$host_os
10220
10221# The build system.
10222build_alias=$build_alias
10223build=$build
10224build_os=$build_os
10225
10226# An echo program that does not interpret backslashes.
10227echo=$lt_echo
10228
10229# The archiver.
10230AR=$lt_AR
10231AR_FLAGS=$lt_AR_FLAGS
10232
10233# A C compiler.
10234LTCC=$lt_LTCC
10235
10236# LTCC compiler flags.
10237LTCFLAGS=$lt_LTCFLAGS
10238
10239# A language-specific compiler.
10240CC=$lt_compiler
10241
10242# Is the compiler the GNU C compiler?
10243with_gcc=$GCC
10244
10245# An ERE matcher.
10246EGREP=$lt_EGREP
10247
10248# The linker used to build libraries.
10249LD=$lt_LD
10250
10251# Whether we need hard or soft links.
10252LN_S=$lt_LN_S
10253
10254# A BSD-compatible nm program.
10255NM=$lt_NM
10256
10257# A symbol stripping program
10258STRIP=$lt_STRIP
10259
10260# Used to examine libraries when file_magic_cmd begins "file"
10261MAGIC_CMD=$MAGIC_CMD
10262
10263# Used on cygwin: DLL creation program.
10264DLLTOOL="$DLLTOOL"
10265
10266# Used on cygwin: object dumper.
10267OBJDUMP="$OBJDUMP"
10268
10269# Used on cygwin: assembler.
10270AS="$AS"
10271
10272# The name of the directory that contains temporary libtool files.
10273objdir=$objdir
10274
10275# How to create reloadable object files.
10276reload_flag=$lt_reload_flag
10277reload_cmds=$lt_reload_cmds
10278
10279# How to pass a linker flag through the compiler.
10280wl=$lt_lt_prog_compiler_wl
10281
10282# Object file suffix (normally "o").
10283objext="$ac_objext"
10284
10285# Old archive suffix (normally "a").
10286libext="$libext"
10287
10288# Shared library suffix (normally ".so").
10289shrext_cmds='$shrext_cmds'
10290
10291# Executable file suffix (normally "").
10292exeext="$exeext"
10293
10294# Additional compiler flags for building library objects.
10295pic_flag=$lt_lt_prog_compiler_pic
10296pic_mode=$pic_mode
10297
10298# What is the maximum length of a command?
10299max_cmd_len=$lt_cv_sys_max_cmd_len
10300
10301# Does compiler simultaneously support -c and -o options?
10302compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10303
10304# Must we lock files when doing compilation?
10305need_locks=$lt_need_locks
10306
10307# Do we need the lib prefix for modules?
10308need_lib_prefix=$need_lib_prefix
10309
10310# Do we need a version for libraries?
10311need_version=$need_version
10312
10313# Whether dlopen is supported.
10314dlopen_support=$enable_dlopen
10315
10316# Whether dlopen of programs is supported.
10317dlopen_self=$enable_dlopen_self
10318
10319# Whether dlopen of statically linked programs is supported.
10320dlopen_self_static=$enable_dlopen_self_static
10321
10322# Compiler flag to prevent dynamic linking.
10323link_static_flag=$lt_lt_prog_compiler_static
10324
10325# Compiler flag to turn off builtin functions.
10326no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10327
10328# Compiler flag to allow reflexive dlopens.
10329export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10330
10331# Compiler flag to generate shared objects directly from archives.
10332whole_archive_flag_spec=$lt_whole_archive_flag_spec
10333
10334# Compiler flag to generate thread-safe objects.
10335thread_safe_flag_spec=$lt_thread_safe_flag_spec
10336
10337# Library versioning type.
10338version_type=$version_type
10339
10340# Format of library name prefix.
10341libname_spec=$lt_libname_spec
10342
10343# List of archive names.  First name is the real one, the rest are links.
10344# The last name is the one that the linker finds with -lNAME.
10345library_names_spec=$lt_library_names_spec
10346
10347# The coded name of the library, if different from the real name.
10348soname_spec=$lt_soname_spec
10349
10350# Commands used to build and install an old-style archive.
10351RANLIB=$lt_RANLIB
10352old_archive_cmds=$lt_old_archive_cmds
10353old_postinstall_cmds=$lt_old_postinstall_cmds
10354old_postuninstall_cmds=$lt_old_postuninstall_cmds
10355
10356# Create an old-style archive from a shared archive.
10357old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10358
10359# Create a temporary old-style archive to link instead of a shared archive.
10360old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10361
10362# Commands used to build and install a shared archive.
10363archive_cmds=$lt_archive_cmds
10364archive_expsym_cmds=$lt_archive_expsym_cmds
10365postinstall_cmds=$lt_postinstall_cmds
10366postuninstall_cmds=$lt_postuninstall_cmds
10367
10368# Commands used to build a loadable module (assumed same as above if empty)
10369module_cmds=$lt_module_cmds
10370module_expsym_cmds=$lt_module_expsym_cmds
10371
10372# Commands to strip libraries.
10373old_striplib=$lt_old_striplib
10374striplib=$lt_striplib
10375
10376# Dependencies to place before the objects being linked to create a
10377# shared library.
10378predep_objects=$lt_predep_objects
10379
10380# Dependencies to place after the objects being linked to create a
10381# shared library.
10382postdep_objects=$lt_postdep_objects
10383
10384# Dependencies to place before the objects being linked to create a
10385# shared library.
10386predeps=$lt_predeps
10387
10388# Dependencies to place after the objects being linked to create a
10389# shared library.
10390postdeps=$lt_postdeps
10391
10392# The library search path used internally by the compiler when linking
10393# a shared library.
10394compiler_lib_search_path=$lt_compiler_lib_search_path
10395
10396# Method to check whether dependent libraries are shared objects.
10397deplibs_check_method=$lt_deplibs_check_method
10398
10399# Command to use when deplibs_check_method == file_magic.
10400file_magic_cmd=$lt_file_magic_cmd
10401
10402# Flag that allows shared libraries with undefined symbols to be built.
10403allow_undefined_flag=$lt_allow_undefined_flag
10404
10405# Flag that forces no undefined symbols.
10406no_undefined_flag=$lt_no_undefined_flag
10407
10408# Commands used to finish a libtool library installation in a directory.
10409finish_cmds=$lt_finish_cmds
10410
10411# Same as above, but a single script fragment to be evaled but not shown.
10412finish_eval=$lt_finish_eval
10413
10414# Take the output of nm and produce a listing of raw symbols and C names.
10415global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10416
10417# Transform the output of nm in a proper C declaration
10418global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10419
10420# Transform the output of nm in a C name address pair
10421global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10422
10423# This is the shared library runtime path variable.
10424runpath_var=$runpath_var
10425
10426# This is the shared library path variable.
10427shlibpath_var=$shlibpath_var
10428
10429# Is shlibpath searched before the hard-coded library search path?
10430shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10431
10432# How to hardcode a shared library path into an executable.
10433hardcode_action=$hardcode_action
10434
10435# Whether we should hardcode library paths into libraries.
10436hardcode_into_libs=$hardcode_into_libs
10437
10438# Flag to hardcode \$libdir into a binary during linking.
10439# This must work even if \$libdir does not exist.
10440hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10441
10442# If ld is used when linking, flag to hardcode \$libdir into
10443# a binary during linking. This must work even if \$libdir does
10444# not exist.
10445hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10446
10447# Whether we need a single -rpath flag with a separated argument.
10448hardcode_libdir_separator=$lt_hardcode_libdir_separator
10449
10450# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10451# resulting binary.
10452hardcode_direct=$hardcode_direct
10453
10454# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10455# resulting binary.
10456hardcode_minus_L=$hardcode_minus_L
10457
10458# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10459# the resulting binary.
10460hardcode_shlibpath_var=$hardcode_shlibpath_var
10461
10462# Set to yes if building a shared library automatically hardcodes DIR into the library
10463# and all subsequent libraries and executables linked against it.
10464hardcode_automatic=$hardcode_automatic
10465
10466# Variables whose values should be saved in libtool wrapper scripts and
10467# restored at relink time.
10468variables_saved_for_relink="$variables_saved_for_relink"
10469
10470# Whether libtool must link a program against all its dependency libraries.
10471link_all_deplibs=$link_all_deplibs
10472
10473# Compile-time system search path for libraries
10474sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10475
10476# Run-time system search path for libraries
10477sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10478
10479# Fix the shell variable \$srcfile for the compiler.
10480fix_srcfile_path="$fix_srcfile_path"
10481
10482# Set to yes if exported symbols are required.
10483always_export_symbols=$always_export_symbols
10484
10485# The commands to list exported symbols.
10486export_symbols_cmds=$lt_export_symbols_cmds
10487
10488# The commands to extract the exported symbol list from a shared archive.
10489extract_expsyms_cmds=$lt_extract_expsyms_cmds
10490
10491# Symbols that should not be listed in the preloaded symbols.
10492exclude_expsyms=$lt_exclude_expsyms
10493
10494# Symbols that must always be exported.
10495include_expsyms=$lt_include_expsyms
10496
10497# ### END LIBTOOL CONFIG
10498
10499__EOF__
10500
10501
10502  case $host_os in
10503  aix3*)
10504    cat <<\EOF >> "$cfgfile"
10505
10506# AIX sometimes has problems with the GCC collect2 program.  For some
10507# reason, if we set the COLLECT_NAMES environment variable, the problems
10508# vanish in a puff of smoke.
10509if test "X${COLLECT_NAMES+set}" != Xset; then
10510  COLLECT_NAMES=
10511  export COLLECT_NAMES
10512fi
10513EOF
10514    ;;
10515  esac
10516
10517  # We use sed instead of cat because bash on DJGPP gets confused if
10518  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10519  # text mode, it properly converts lines to CR/LF.  This bash problem
10520  # is reportedly fixed, but why not run on old versions too?
10521  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10522
10523  mv -f "$cfgfile" "$ofile" || \
10524    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10525  chmod +x "$ofile"
10526
10527else
10528  # If there is no Makefile yet, we rely on a make rule to execute
10529  # `config.status --recheck' to rerun these tests and create the
10530  # libtool script then.
10531  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10532  if test -f "$ltmain_in"; then
10533    test -f Makefile && make "$ltmain"
10534  fi
10535fi
10536
10537
10538ac_ext=c
10539ac_cpp='$CPP $CPPFLAGS'
10540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10542ac_compiler_gnu=$ac_cv_c_compiler_gnu
10543
10544CC="$lt_save_CC"
10545
10546
10547# Check whether --with-tags was given.
10548if test "${with_tags+set}" = set; then
10549  withval=$with_tags; tagnames="$withval"
10550fi
10551
10552
10553if test -f "$ltmain" && test -n "$tagnames"; then
10554  if test ! -f "${ofile}"; then
10555    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10556echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10557  fi
10558
10559  if test -z "$LTCC"; then
10560    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10561    if test -z "$LTCC"; then
10562      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10563echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10564    else
10565      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10566echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10567    fi
10568  fi
10569  if test -z "$LTCFLAGS"; then
10570    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10571  fi
10572
10573  # Extract list of available tagged configurations in $ofile.
10574  # Note that this assumes the entire list is on one line.
10575  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10576
10577  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10578  for tagname in $tagnames; do
10579    IFS="$lt_save_ifs"
10580    # Check whether tagname contains only valid characters
10581    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10582    "") ;;
10583    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10584echo "$as_me: error: invalid tag name: $tagname" >&2;}
10585   { (exit 1); exit 1; }; }
10586        ;;
10587    esac
10588
10589    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10590    then
10591      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10592echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10593   { (exit 1); exit 1; }; }
10594    fi
10595
10596    # Update the list of available tags.
10597    if test -n "$tagname"; then
10598      echo appending configuration tag \"$tagname\" to $ofile
10599
10600      case $tagname in
10601      CXX)
10602        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10603            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10604            (test "X$CXX" != "Xg++"))) ; then
10605          ac_ext=cpp
10606ac_cpp='$CXXCPP $CPPFLAGS'
10607ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10608ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10609ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10610
10611
10612
10613
10614archive_cmds_need_lc_CXX=no
10615allow_undefined_flag_CXX=
10616always_export_symbols_CXX=no
10617archive_expsym_cmds_CXX=
10618export_dynamic_flag_spec_CXX=
10619hardcode_direct_CXX=no
10620hardcode_libdir_flag_spec_CXX=
10621hardcode_libdir_flag_spec_ld_CXX=
10622hardcode_libdir_separator_CXX=
10623hardcode_minus_L_CXX=no
10624hardcode_shlibpath_var_CXX=unsupported
10625hardcode_automatic_CXX=no
10626module_cmds_CXX=
10627module_expsym_cmds_CXX=
10628link_all_deplibs_CXX=unknown
10629old_archive_cmds_CXX=$old_archive_cmds
10630no_undefined_flag_CXX=
10631whole_archive_flag_spec_CXX=
10632enable_shared_with_static_runtimes_CXX=no
10633
10634# Dependencies to place before and after the object being linked:
10635predep_objects_CXX=
10636postdep_objects_CXX=
10637predeps_CXX=
10638postdeps_CXX=
10639compiler_lib_search_path_CXX=
10640
10641# Source file extension for C++ test sources.
10642ac_ext=cpp
10643
10644# Object file extension for compiled C++ test sources.
10645objext=o
10646objext_CXX=$objext
10647
10648# Code to be used in simple compile tests
10649lt_simple_compile_test_code="int some_variable = 0;\n"
10650
10651# Code to be used in simple link tests
10652lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10653
10654# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10655
10656# If no C compiler was specified, use CC.
10657LTCC=${LTCC-"$CC"}
10658
10659# If no C compiler flags were specified, use CFLAGS.
10660LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10661
10662# Allow CC to be a program name with arguments.
10663compiler=$CC
10664
10665
10666# save warnings/boilerplate of simple test code
10667ac_outfile=conftest.$ac_objext
10668printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10669eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10670_lt_compiler_boilerplate=`cat conftest.err`
10671$rm conftest*
10672
10673ac_outfile=conftest.$ac_objext
10674printf "$lt_simple_link_test_code" >conftest.$ac_ext
10675eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10676_lt_linker_boilerplate=`cat conftest.err`
10677$rm conftest*
10678
10679
10680# Allow CC to be a program name with arguments.
10681lt_save_CC=$CC
10682lt_save_LD=$LD
10683lt_save_GCC=$GCC
10684GCC=$GXX
10685lt_save_with_gnu_ld=$with_gnu_ld
10686lt_save_path_LD=$lt_cv_path_LD
10687if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10688  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10689else
10690  $as_unset lt_cv_prog_gnu_ld
10691fi
10692if test -n "${lt_cv_path_LDCXX+set}"; then
10693  lt_cv_path_LD=$lt_cv_path_LDCXX
10694else
10695  $as_unset lt_cv_path_LD
10696fi
10697test -z "${LDCXX+set}" || LD=$LDCXX
10698CC=${CXX-"c++"}
10699compiler=$CC
10700compiler_CXX=$CC
10701for cc_temp in $compiler""; do
10702  case $cc_temp in
10703    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10704    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10705    \-*) ;;
10706    *) break;;
10707  esac
10708done
10709cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10710
10711
10712# We don't want -fno-exception wen compiling C++ code, so set the
10713# no_builtin_flag separately
10714if test "$GXX" = yes; then
10715  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10716else
10717  lt_prog_compiler_no_builtin_flag_CXX=
10718fi
10719
10720if test "$GXX" = yes; then
10721  # Set up default GNU C++ configuration
10722
10723
10724# Check whether --with-gnu-ld was given.
10725if test "${with_gnu_ld+set}" = set; then
10726  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10727else
10728  with_gnu_ld=no
10729fi
10730
10731ac_prog=ld
10732if test "$GCC" = yes; then
10733  # Check if gcc -print-prog-name=ld gives a path.
10734  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10735echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10736  case $host in
10737  *-*-mingw*)
10738    # gcc leaves a trailing carriage return which upsets mingw
10739    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10740  *)
10741    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10742  esac
10743  case $ac_prog in
10744    # Accept absolute paths.
10745    [\\/]* | ?:[\\/]*)
10746      re_direlt='/[^/][^/]*/\.\./'
10747      # Canonicalize the pathname of ld
10748      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10749      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10750        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10751      done
10752      test -z "$LD" && LD="$ac_prog"
10753      ;;
10754  "")
10755    # If it fails, then pretend we aren't using GCC.
10756    ac_prog=ld
10757    ;;
10758  *)
10759    # If it is relative, then search for the first ld in PATH.
10760    with_gnu_ld=unknown
10761    ;;
10762  esac
10763elif test "$with_gnu_ld" = yes; then
10764  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10765echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10766else
10767  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10768echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10769fi
10770if test "${lt_cv_path_LD+set}" = set; then
10771  echo $ECHO_N "(cached) $ECHO_C" >&6
10772else
10773  if test -z "$LD"; then
10774  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10775  for ac_dir in $PATH; do
10776    IFS="$lt_save_ifs"
10777    test -z "$ac_dir" && ac_dir=.
10778    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10779      lt_cv_path_LD="$ac_dir/$ac_prog"
10780      # Check to see if the program is GNU ld.  I'd rather use --version,
10781      # but apparently some variants of GNU ld only accept -v.
10782      # Break only if it was the GNU/non-GNU ld that we prefer.
10783      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10784      *GNU* | *'with BFD'*)
10785        test "$with_gnu_ld" != no && break
10786        ;;
10787      *)
10788        test "$with_gnu_ld" != yes && break
10789        ;;
10790      esac
10791    fi
10792  done
10793  IFS="$lt_save_ifs"
10794else
10795  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10796fi
10797fi
10798
10799LD="$lt_cv_path_LD"
10800if test -n "$LD"; then
10801  { echo "$as_me:$LINENO: result: $LD" >&5
10802echo "${ECHO_T}$LD" >&6; }
10803else
10804  { echo "$as_me:$LINENO: result: no" >&5
10805echo "${ECHO_T}no" >&6; }
10806fi
10807test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10808echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10809   { (exit 1); exit 1; }; }
10810{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10811echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10812if test "${lt_cv_prog_gnu_ld+set}" = set; then
10813  echo $ECHO_N "(cached) $ECHO_C" >&6
10814else
10815  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10816case `$LD -v 2>&1 </dev/null` in
10817*GNU* | *'with BFD'*)
10818  lt_cv_prog_gnu_ld=yes
10819  ;;
10820*)
10821  lt_cv_prog_gnu_ld=no
10822  ;;
10823esac
10824fi
10825{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10826echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10827with_gnu_ld=$lt_cv_prog_gnu_ld
10828
10829
10830
10831  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10832  # archiving commands below assume that GNU ld is being used.
10833  if test "$with_gnu_ld" = yes; then
10834    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10835    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10836
10837    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10838    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10839
10840    # If archive_cmds runs LD, not CC, wlarc should be empty
10841    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10842    #     investigate it a little bit more. (MM)
10843    wlarc='${wl}'
10844
10845    # ancient GNU ld didn't support --whole-archive et. al.
10846    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10847        grep 'no-whole-archive' > /dev/null; then
10848      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10849    else
10850      whole_archive_flag_spec_CXX=
10851    fi
10852  else
10853    with_gnu_ld=no
10854    wlarc=
10855
10856    # A generic and very simple default shared library creation
10857    # command for GNU C++ for the case where it uses the native
10858    # linker, instead of GNU ld.  If possible, this setting should
10859    # overridden to take advantage of the native linker features on
10860    # the platform it is being used on.
10861    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10862  fi
10863
10864  # Commands to make compiler produce verbose output that lists
10865  # what "hidden" libraries, object files and flags are used when
10866  # linking a shared library.
10867  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10868
10869else
10870  GXX=no
10871  with_gnu_ld=no
10872  wlarc=
10873fi
10874
10875# PORTME: fill in a description of your system's C++ link characteristics
10876{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10877echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10878ld_shlibs_CXX=yes
10879case $host_os in
10880  aix3*)
10881    # FIXME: insert proper C++ library support
10882    ld_shlibs_CXX=no
10883    ;;
10884  aix4* | aix5*)
10885    if test "$host_cpu" = ia64; then
10886      # On IA64, the linker does run time linking by default, so we don't
10887      # have to do anything special.
10888      aix_use_runtimelinking=no
10889      exp_sym_flag='-Bexport'
10890      no_entry_flag=""
10891    else
10892      aix_use_runtimelinking=no
10893
10894      # Test if we are trying to use run time linking or normal
10895      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10896      # need to do runtime linking.
10897      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10898        for ld_flag in $LDFLAGS; do
10899          case $ld_flag in
10900          *-brtl*)
10901            aix_use_runtimelinking=yes
10902            break
10903            ;;
10904          esac
10905        done
10906        ;;
10907      esac
10908
10909      exp_sym_flag='-bexport'
10910      no_entry_flag='-bnoentry'
10911    fi
10912
10913    # When large executables or shared objects are built, AIX ld can
10914    # have problems creating the table of contents.  If linking a library
10915    # or program results in "error TOC overflow" add -mminimal-toc to
10916    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10917    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10918
10919    archive_cmds_CXX=''
10920    hardcode_direct_CXX=yes
10921    hardcode_libdir_separator_CXX=':'
10922    link_all_deplibs_CXX=yes
10923
10924    if test "$GXX" = yes; then
10925      case $host_os in aix4.[012]|aix4.[012].*)
10926      # We only want to do this on AIX 4.2 and lower, the check
10927      # below for broken collect2 doesn't work under 4.3+
10928        collect2name=`${CC} -print-prog-name=collect2`
10929        if test -f "$collect2name" && \
10930           strings "$collect2name" | grep resolve_lib_name >/dev/null
10931        then
10932          # We have reworked collect2
10933          hardcode_direct_CXX=yes
10934        else
10935          # We have old collect2
10936          hardcode_direct_CXX=unsupported
10937          # It fails to find uninstalled libraries when the uninstalled
10938          # path is not listed in the libpath.  Setting hardcode_minus_L
10939          # to unsupported forces relinking
10940          hardcode_minus_L_CXX=yes
10941          hardcode_libdir_flag_spec_CXX='-L$libdir'
10942          hardcode_libdir_separator_CXX=
10943        fi
10944        ;;
10945      esac
10946      shared_flag='-shared'
10947      if test "$aix_use_runtimelinking" = yes; then
10948        shared_flag="$shared_flag "'${wl}-G'
10949      fi
10950    else
10951      # not using gcc
10952      if test "$host_cpu" = ia64; then
10953        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10954        # chokes on -Wl,-G. The following line is correct:
10955        shared_flag='-G'
10956      else
10957        if test "$aix_use_runtimelinking" = yes; then
10958          shared_flag='${wl}-G'
10959        else
10960          shared_flag='${wl}-bM:SRE'
10961        fi
10962      fi
10963    fi
10964
10965    # It seems that -bexpall does not export symbols beginning with
10966    # underscore (_), so it is better to generate a list of symbols to export.
10967    always_export_symbols_CXX=yes
10968    if test "$aix_use_runtimelinking" = yes; then
10969      # Warning - without using the other runtime loading flags (-brtl),
10970      # -berok will link without error, but may produce a broken library.
10971      allow_undefined_flag_CXX='-berok'
10972      # Determine the default libpath from the value encoded in an empty executable.
10973      cat >conftest.$ac_ext <<_ACEOF
10974/* confdefs.h.  */
10975_ACEOF
10976cat confdefs.h >>conftest.$ac_ext
10977cat >>conftest.$ac_ext <<_ACEOF
10978/* end confdefs.h.  */
10979
10980int
10981main ()
10982{
10983
10984  ;
10985  return 0;
10986}
10987_ACEOF
10988rm -f conftest.$ac_objext conftest$ac_exeext
10989if { (ac_try="$ac_link"
10990case "(($ac_try" in
10991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992  *) ac_try_echo=$ac_try;;
10993esac
10994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995  (eval "$ac_link") 2>conftest.er1
10996  ac_status=$?
10997  grep -v '^ *+' conftest.er1 >conftest.err
10998  rm -f conftest.er1
10999  cat conftest.err >&5
11000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001  (exit $ac_status); } && {
11002         test -z "$ac_cxx_werror_flag" ||
11003         test ! -s conftest.err
11004       } && test -s conftest$ac_exeext &&
11005       $as_test_x conftest$ac_exeext; then
11006
11007aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11008}'`
11009# Check for a 64-bit object if we didn't find anything.
11010if 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; }
11011}'`; fi
11012else
11013  echo "$as_me: failed program was:" >&5
11014sed 's/^/| /' conftest.$ac_ext >&5
11015
11016
11017fi
11018
11019rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11020      conftest$ac_exeext conftest.$ac_ext
11021if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11022
11023      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11024
11025      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11026     else
11027      if test "$host_cpu" = ia64; then
11028        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11029        allow_undefined_flag_CXX="-z nodefs"
11030        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11031      else
11032        # Determine the default libpath from the value encoded in an empty executable.
11033        cat >conftest.$ac_ext <<_ACEOF
11034/* confdefs.h.  */
11035_ACEOF
11036cat confdefs.h >>conftest.$ac_ext
11037cat >>conftest.$ac_ext <<_ACEOF
11038/* end confdefs.h.  */
11039
11040int
11041main ()
11042{
11043
11044  ;
11045  return 0;
11046}
11047_ACEOF
11048rm -f conftest.$ac_objext conftest$ac_exeext
11049if { (ac_try="$ac_link"
11050case "(($ac_try" in
11051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052  *) ac_try_echo=$ac_try;;
11053esac
11054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055  (eval "$ac_link") 2>conftest.er1
11056  ac_status=$?
11057  grep -v '^ *+' conftest.er1 >conftest.err
11058  rm -f conftest.er1
11059  cat conftest.err >&5
11060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061  (exit $ac_status); } && {
11062         test -z "$ac_cxx_werror_flag" ||
11063         test ! -s conftest.err
11064       } && test -s conftest$ac_exeext &&
11065       $as_test_x conftest$ac_exeext; then
11066
11067aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11068}'`
11069# Check for a 64-bit object if we didn't find anything.
11070if 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; }
11071}'`; fi
11072else
11073  echo "$as_me: failed program was:" >&5
11074sed 's/^/| /' conftest.$ac_ext >&5
11075
11076
11077fi
11078
11079rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11080      conftest$ac_exeext conftest.$ac_ext
11081if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11082
11083        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11084        # Warning - without using the other run time loading flags,
11085        # -berok will link without error, but may produce a broken library.
11086        no_undefined_flag_CXX=' ${wl}-bernotok'
11087        allow_undefined_flag_CXX=' ${wl}-berok'
11088        # Exported symbols can be pulled into shared objects from archives
11089        whole_archive_flag_spec_CXX='$convenience'
11090        archive_cmds_need_lc_CXX=yes
11091        # This is similar to how AIX traditionally builds its shared libraries.
11092        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11093      fi
11094    fi
11095    ;;
11096
11097  beos*)
11098    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11099      allow_undefined_flag_CXX=unsupported
11100      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11101      # support --undefined.  This deserves some investigation.  FIXME
11102      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11103    else
11104      ld_shlibs_CXX=no
11105    fi
11106    ;;
11107
11108  chorus*)
11109    case $cc_basename in
11110      *)
11111        # FIXME: insert proper C++ library support
11112        ld_shlibs_CXX=no
11113        ;;
11114    esac
11115    ;;
11116
11117  cygwin* | mingw* | pw32*)
11118    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11119    # as there is no search path for DLLs.
11120    hardcode_libdir_flag_spec_CXX='-L$libdir'
11121    allow_undefined_flag_CXX=unsupported
11122    always_export_symbols_CXX=no
11123    enable_shared_with_static_runtimes_CXX=yes
11124
11125    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11126      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11127      # If the export-symbols file already is a .def file (1st line
11128      # is EXPORTS), use it as is; otherwise, prepend...
11129      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11130        cp $export_symbols $output_objdir/$soname.def;
11131      else
11132        echo EXPORTS > $output_objdir/$soname.def;
11133        cat $export_symbols >> $output_objdir/$soname.def;
11134      fi~
11135      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11136    else
11137      ld_shlibs_CXX=no
11138    fi
11139  ;;
11140      darwin* | rhapsody*)
11141        case $host_os in
11142        rhapsody* | darwin1.[012])
11143         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11144         ;;
11145       *) # Darwin 1.3 on
11146         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11147           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11148         else
11149           case ${MACOSX_DEPLOYMENT_TARGET} in
11150             10.[012])
11151               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11152               ;;
11153             10.*)
11154               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11155               ;;
11156           esac
11157         fi
11158         ;;
11159        esac
11160      archive_cmds_need_lc_CXX=no
11161      hardcode_direct_CXX=no
11162      hardcode_automatic_CXX=yes
11163      hardcode_shlibpath_var_CXX=unsupported
11164      whole_archive_flag_spec_CXX=''
11165      link_all_deplibs_CXX=yes
11166
11167    if test "$GXX" = yes ; then
11168      lt_int_apple_cc_single_mod=no
11169      output_verbose_link_cmd='echo'
11170      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11171       lt_int_apple_cc_single_mod=yes
11172      fi
11173      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11174       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11175      else
11176          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11177        fi
11178        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11179        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11180          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11181            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11182          else
11183            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11184          fi
11185            module_expsym_cmds_CXX='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}'
11186      else
11187      case $cc_basename in
11188        xlc*)
11189         output_verbose_link_cmd='echo'
11190          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11191          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11192          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11193          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11194          module_expsym_cmds_CXX='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}'
11195          ;;
11196       *)
11197         ld_shlibs_CXX=no
11198          ;;
11199      esac
11200      fi
11201        ;;
11202
11203  dgux*)
11204    case $cc_basename in
11205      ec++*)
11206        # FIXME: insert proper C++ library support
11207        ld_shlibs_CXX=no
11208        ;;
11209      ghcx*)
11210        # Green Hills C++ Compiler
11211        # FIXME: insert proper C++ library support
11212        ld_shlibs_CXX=no
11213        ;;
11214      *)
11215        # FIXME: insert proper C++ library support
11216        ld_shlibs_CXX=no
11217        ;;
11218    esac
11219    ;;
11220  freebsd[12]*)
11221    # C++ shared libraries reported to be fairly broken before switch to ELF
11222    ld_shlibs_CXX=no
11223    ;;
11224  freebsd-elf*)
11225    archive_cmds_need_lc_CXX=no
11226    ;;
11227  freebsd* | dragonfly*)
11228    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11229    # conventions
11230    ld_shlibs_CXX=yes
11231    ;;
11232  gnu*)
11233    ;;
11234  hpux9*)
11235    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11236    hardcode_libdir_separator_CXX=:
11237    export_dynamic_flag_spec_CXX='${wl}-E'
11238    hardcode_direct_CXX=yes
11239    hardcode_minus_L_CXX=yes # Not in the search PATH,
11240                                # but as the default
11241                                # location of the library.
11242
11243    case $cc_basename in
11244    CC*)
11245      # FIXME: insert proper C++ library support
11246      ld_shlibs_CXX=no
11247      ;;
11248    aCC*)
11249      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11250      # Commands to make compiler produce verbose output that lists
11251      # what "hidden" libraries, object files and flags are used when
11252      # linking a shared library.
11253      #
11254      # There doesn't appear to be a way to prevent this compiler from
11255      # explicitly linking system object files so we need to strip them
11256      # from the output so that they don't get included in the library
11257      # dependencies.
11258      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11259      ;;
11260    *)
11261      if test "$GXX" = yes; then
11262        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11263      else
11264        # FIXME: insert proper C++ library support
11265        ld_shlibs_CXX=no
11266      fi
11267      ;;
11268    esac
11269    ;;
11270  hpux10*|hpux11*)
11271    if test $with_gnu_ld = no; then
11272      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11273      hardcode_libdir_separator_CXX=:
11274
11275      case $host_cpu in
11276      hppa*64*|ia64*)
11277        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11278        ;;
11279      *)
11280        export_dynamic_flag_spec_CXX='${wl}-E'
11281        ;;
11282      esac
11283    fi
11284    case $host_cpu in
11285    hppa*64*|ia64*)
11286      hardcode_direct_CXX=no
11287      hardcode_shlibpath_var_CXX=no
11288      ;;
11289    *)
11290      hardcode_direct_CXX=yes
11291      hardcode_minus_L_CXX=yes # Not in the search PATH,
11292                                              # but as the default
11293                                              # location of the library.
11294      ;;
11295    esac
11296
11297    case $cc_basename in
11298      CC*)
11299        # FIXME: insert proper C++ library support
11300        ld_shlibs_CXX=no
11301        ;;
11302      aCC*)
11303        case $host_cpu in
11304        hppa*64*)
11305          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11306          ;;
11307        ia64*)
11308          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11309          ;;
11310        *)
11311          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11312          ;;
11313        esac
11314        # Commands to make compiler produce verbose output that lists
11315        # what "hidden" libraries, object files and flags are used when
11316        # linking a shared library.
11317        #
11318        # There doesn't appear to be a way to prevent this compiler from
11319        # explicitly linking system object files so we need to strip them
11320        # from the output so that they don't get included in the library
11321        # dependencies.
11322        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11323        ;;
11324      *)
11325        if test "$GXX" = yes; then
11326          if test $with_gnu_ld = no; then
11327            case $host_cpu in
11328            hppa*64*)
11329              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11330              ;;
11331            ia64*)
11332              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11333              ;;
11334            *)
11335              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11336              ;;
11337            esac
11338          fi
11339        else
11340          # FIXME: insert proper C++ library support
11341          ld_shlibs_CXX=no
11342        fi
11343        ;;
11344    esac
11345    ;;
11346  interix3*)
11347    hardcode_direct_CXX=no
11348    hardcode_shlibpath_var_CXX=no
11349    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11350    export_dynamic_flag_spec_CXX='${wl}-E'
11351    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11352    # Instead, shared libraries are loaded at an image base (0x10000000 by
11353    # default) and relocated if they conflict, which is a slow very memory
11354    # consuming and fragmenting process.  To avoid this, we pick a random,
11355    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11356    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11357    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11358    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11359    ;;
11360  irix5* | irix6*)
11361    case $cc_basename in
11362      CC*)
11363        # SGI C++
11364        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11365
11366        # Archives containing C++ object files must be created using
11367        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11368        # necessary to make sure instantiated templates are included
11369        # in the archive.
11370        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11371        ;;
11372      *)
11373        if test "$GXX" = yes; then
11374          if test "$with_gnu_ld" = no; then
11375            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
11376          else
11377            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11378          fi
11379        fi
11380        link_all_deplibs_CXX=yes
11381        ;;
11382    esac
11383    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11384    hardcode_libdir_separator_CXX=:
11385    ;;
11386  linux* | k*bsd*-gnu)
11387    case $cc_basename in
11388      KCC*)
11389        # Kuck and Associates, Inc. (KAI) C++ Compiler
11390
11391        # KCC will only create a shared library if the output file
11392        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11393        # to its proper name (with version) after linking.
11394        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11395        archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11396        # Commands to make compiler produce verbose output that lists
11397        # what "hidden" libraries, object files and flags are used when
11398        # linking a shared library.
11399        #
11400        # There doesn't appear to be a way to prevent this compiler from
11401        # explicitly linking system object files so we need to strip them
11402        # from the output so that they don't get included in the library
11403        # dependencies.
11404        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11405
11406        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11407        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11408
11409        # Archives containing C++ object files must be created using
11410        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11411        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11412        ;;
11413      icpc*)
11414        # Intel C++
11415        with_gnu_ld=yes
11416        # version 8.0 and above of icpc choke on multiply defined symbols
11417        # if we add $predep_objects and $postdep_objects, however 7.1 and
11418        # earlier do not add the objects themselves.
11419        case `$CC -V 2>&1` in
11420        *"Version 7."*)
11421          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11422          archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11423          ;;
11424        *)  # Version 8.0 or newer
11425          tmp_idyn=
11426          case $host_cpu in
11427            ia64*) tmp_idyn=' -i_dynamic';;
11428          esac
11429          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11430          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11431          ;;
11432        esac
11433        archive_cmds_need_lc_CXX=no
11434        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11435        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11436        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11437        ;;
11438      pgCC*)
11439        # Portland Group C++ compiler
11440        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11441        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11442
11443        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11444        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11445        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11446        ;;
11447      cxx*)
11448        # Compaq C++
11449        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11450        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11451
11452        runpath_var=LD_RUN_PATH
11453        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11454        hardcode_libdir_separator_CXX=:
11455
11456        # Commands to make compiler produce verbose output that lists
11457        # what "hidden" libraries, object files and flags are used when
11458        # linking a shared library.
11459        #
11460        # There doesn't appear to be a way to prevent this compiler from
11461        # explicitly linking system object files so we need to strip them
11462        # from the output so that they don't get included in the library
11463        # dependencies.
11464        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11465        ;;
11466    esac
11467    ;;
11468  lynxos*)
11469    # FIXME: insert proper C++ library support
11470    ld_shlibs_CXX=no
11471    ;;
11472  m88k*)
11473    # FIXME: insert proper C++ library support
11474    ld_shlibs_CXX=no
11475    ;;
11476  mvs*)
11477    case $cc_basename in
11478      cxx*)
11479        # FIXME: insert proper C++ library support
11480        ld_shlibs_CXX=no
11481        ;;
11482      *)
11483        # FIXME: insert proper C++ library support
11484        ld_shlibs_CXX=no
11485        ;;
11486    esac
11487    ;;
11488  netbsd* | netbsdelf*-gnu)
11489    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11490      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11491      wlarc=
11492      hardcode_libdir_flag_spec_CXX='-R$libdir'
11493      hardcode_direct_CXX=yes
11494      hardcode_shlibpath_var_CXX=no
11495    fi
11496    # Workaround some broken pre-1.5 toolchains
11497    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11498    ;;
11499  openbsd2*)
11500    # C++ shared libraries are fairly broken
11501    ld_shlibs_CXX=no
11502    ;;
11503  openbsd*)
11504    hardcode_direct_CXX=yes
11505    hardcode_shlibpath_var_CXX=no
11506    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11507    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11508    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11509      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11510      export_dynamic_flag_spec_CXX='${wl}-E'
11511      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11512    fi
11513    output_verbose_link_cmd='echo'
11514    ;;
11515  osf3*)
11516    case $cc_basename in
11517      KCC*)
11518        # Kuck and Associates, Inc. (KAI) C++ Compiler
11519
11520        # KCC will only create a shared library if the output file
11521        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11522        # to its proper name (with version) after linking.
11523        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11524
11525        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11526        hardcode_libdir_separator_CXX=:
11527
11528        # Archives containing C++ object files must be created using
11529        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11530        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11531
11532        ;;
11533      RCC*)
11534        # Rational C++ 2.4.1
11535        # FIXME: insert proper C++ library support
11536        ld_shlibs_CXX=no
11537        ;;
11538      cxx*)
11539        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11540        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11541
11542        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11543        hardcode_libdir_separator_CXX=:
11544
11545        # Commands to make compiler produce verbose output that lists
11546        # what "hidden" libraries, object files and flags are used when
11547        # linking a shared library.
11548        #
11549        # There doesn't appear to be a way to prevent this compiler from
11550        # explicitly linking system object files so we need to strip them
11551        # from the output so that they don't get included in the library
11552        # dependencies.
11553        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11554        ;;
11555      *)
11556        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11557          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11558          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11559
11560          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11561          hardcode_libdir_separator_CXX=:
11562
11563          # Commands to make compiler produce verbose output that lists
11564          # what "hidden" libraries, object files and flags are used when
11565          # linking a shared library.
11566          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11567
11568        else
11569          # FIXME: insert proper C++ library support
11570          ld_shlibs_CXX=no
11571        fi
11572        ;;
11573    esac
11574    ;;
11575  osf4* | osf5*)
11576    case $cc_basename in
11577      KCC*)
11578        # Kuck and Associates, Inc. (KAI) C++ Compiler
11579
11580        # KCC will only create a shared library if the output file
11581        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11582        # to its proper name (with version) after linking.
11583        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11584
11585        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11586        hardcode_libdir_separator_CXX=:
11587
11588        # Archives containing C++ object files must be created using
11589        # the KAI C++ compiler.
11590        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11591        ;;
11592      RCC*)
11593        # Rational C++ 2.4.1
11594        # FIXME: insert proper C++ library support
11595        ld_shlibs_CXX=no
11596        ;;
11597      cxx*)
11598        allow_undefined_flag_CXX=' -expect_unresolved \*'
11599        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11600        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11601          echo "-hidden">> $lib.exp~
11602          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11603          $rm $lib.exp'
11604
11605        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11606        hardcode_libdir_separator_CXX=:
11607
11608        # Commands to make compiler produce verbose output that lists
11609        # what "hidden" libraries, object files and flags are used when
11610        # linking a shared library.
11611        #
11612        # There doesn't appear to be a way to prevent this compiler from
11613        # explicitly linking system object files so we need to strip them
11614        # from the output so that they don't get included in the library
11615        # dependencies.
11616        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11617        ;;
11618      *)
11619        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11620          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11621         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11622
11623          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11624          hardcode_libdir_separator_CXX=:
11625
11626          # Commands to make compiler produce verbose output that lists
11627          # what "hidden" libraries, object files and flags are used when
11628          # linking a shared library.
11629          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11630
11631        else
11632          # FIXME: insert proper C++ library support
11633          ld_shlibs_CXX=no
11634        fi
11635        ;;
11636    esac
11637    ;;
11638  psos*)
11639    # FIXME: insert proper C++ library support
11640    ld_shlibs_CXX=no
11641    ;;
11642  sunos4*)
11643    case $cc_basename in
11644      CC*)
11645        # Sun C++ 4.x
11646        # FIXME: insert proper C++ library support
11647        ld_shlibs_CXX=no
11648        ;;
11649      lcc*)
11650        # Lucid
11651        # FIXME: insert proper C++ library support
11652        ld_shlibs_CXX=no
11653        ;;
11654      *)
11655        # FIXME: insert proper C++ library support
11656        ld_shlibs_CXX=no
11657        ;;
11658    esac
11659    ;;
11660  solaris*)
11661    case $cc_basename in
11662      CC*)
11663        # Sun C++ 4.2, 5.x and Centerline C++
11664        archive_cmds_need_lc_CXX=yes
11665        no_undefined_flag_CXX=' -zdefs'
11666        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11667        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11668        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11669
11670        hardcode_libdir_flag_spec_CXX='-R$libdir'
11671        hardcode_shlibpath_var_CXX=no
11672        case $host_os in
11673          solaris2.[0-5] | solaris2.[0-5].*) ;;
11674          *)
11675            # The C++ compiler is used as linker so we must use $wl
11676            # flag to pass the commands to the underlying system
11677            # linker. We must also pass each convience library through
11678            # to the system linker between allextract/defaultextract.
11679            # The C++ compiler will combine linker options so we
11680            # cannot just pass the convience library names through
11681            # without $wl.
11682            # Supported since Solaris 2.6 (maybe 2.5.1?)
11683            whole_archive_flag_spec_CXX='${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'
11684            ;;
11685        esac
11686        link_all_deplibs_CXX=yes
11687
11688        output_verbose_link_cmd='echo'
11689
11690        # Archives containing C++ object files must be created using
11691        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11692        # necessary to make sure instantiated templates are included
11693        # in the archive.
11694        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11695        ;;
11696      gcx*)
11697        # Green Hills C++ Compiler
11698        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11699
11700        # The C++ compiler must be used to create the archive.
11701        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11702        ;;
11703      *)
11704        # GNU C++ compiler with Solaris linker
11705        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11706          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11707          if $CC --version | grep -v '^2\.7' > /dev/null; then
11708            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11709            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11710                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11711
11712            # Commands to make compiler produce verbose output that lists
11713            # what "hidden" libraries, object files and flags are used when
11714            # linking a shared library.
11715            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11716          else
11717            # g++ 2.7 appears to require `-G' NOT `-shared' on this
11718            # platform.
11719            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11720            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11721                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11722
11723            # Commands to make compiler produce verbose output that lists
11724            # what "hidden" libraries, object files and flags are used when
11725            # linking a shared library.
11726            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11727          fi
11728
11729          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11730        fi
11731        ;;
11732    esac
11733    ;;
11734  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11735    no_undefined_flag_CXX='${wl}-z,text'
11736    archive_cmds_need_lc_CXX=no
11737    hardcode_shlibpath_var_CXX=no
11738    runpath_var='LD_RUN_PATH'
11739
11740    case $cc_basename in
11741      CC*)
11742        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11743        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11744        ;;
11745      *)
11746        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11747        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11748        ;;
11749    esac
11750    ;;
11751  sysv5* | sco3.2v5* | sco5v6*)
11752    # Note: We can NOT use -z defs as we might desire, because we do not
11753    # link with -lc, and that would cause any symbols used from libc to
11754    # always be unresolved, which means just about no library would
11755    # ever link correctly.  If we're not using GNU ld we use -z text
11756    # though, which does catch some bad symbols but isn't as heavy-handed
11757    # as -z defs.
11758    # For security reasons, it is highly recommended that you always
11759    # use absolute paths for naming shared libraries, and exclude the
11760    # DT_RUNPATH tag from executables and libraries.  But doing so
11761    # requires that you compile everything twice, which is a pain.
11762    # So that behaviour is only enabled if SCOABSPATH is set to a
11763    # non-empty value in the environment.  Most likely only useful for
11764    # creating official distributions of packages.
11765    # This is a hack until libtool officially supports absolute path
11766    # names for shared libraries.
11767    no_undefined_flag_CXX='${wl}-z,text'
11768    allow_undefined_flag_CXX='${wl}-z,nodefs'
11769    archive_cmds_need_lc_CXX=no
11770    hardcode_shlibpath_var_CXX=no
11771    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11772    hardcode_libdir_separator_CXX=':'
11773    link_all_deplibs_CXX=yes
11774    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11775    runpath_var='LD_RUN_PATH'
11776
11777    case $cc_basename in
11778      CC*)
11779        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11780        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11781        ;;
11782      *)
11783        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11784        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11785        ;;
11786    esac
11787    ;;
11788  tandem*)
11789    case $cc_basename in
11790      NCC*)
11791        # NonStop-UX NCC 3.20
11792        # FIXME: insert proper C++ library support
11793        ld_shlibs_CXX=no
11794        ;;
11795      *)
11796        # FIXME: insert proper C++ library support
11797        ld_shlibs_CXX=no
11798        ;;
11799    esac
11800    ;;
11801  vxworks*)
11802    # FIXME: insert proper C++ library support
11803    ld_shlibs_CXX=no
11804    ;;
11805  *)
11806    # FIXME: insert proper C++ library support
11807    ld_shlibs_CXX=no
11808    ;;
11809esac
11810{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11811echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11812test "$ld_shlibs_CXX" = no && can_build_shared=no
11813
11814GCC_CXX="$GXX"
11815LD_CXX="$LD"
11816
11817
11818cat > conftest.$ac_ext <<EOF
11819class Foo
11820{
11821public:
11822  Foo (void) { a = 0; }
11823private:
11824  int a;
11825};
11826EOF
11827
11828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11829  (eval $ac_compile) 2>&5
11830  ac_status=$?
11831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832  (exit $ac_status); }; then
11833  # Parse the compiler output and extract the necessary
11834  # objects, libraries and library flags.
11835
11836  # Sentinel used to keep track of whether or not we are before
11837  # the conftest object file.
11838  pre_test_object_deps_done=no
11839
11840  # The `*' in the case matches for architectures that use `case' in
11841  # $output_verbose_cmd can trigger glob expansion during the loop
11842  # eval without this substitution.
11843  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11844
11845  for p in `eval $output_verbose_link_cmd`; do
11846    case $p in
11847
11848    -L* | -R* | -l*)
11849       # Some compilers place space between "-{L,R}" and the path.
11850       # Remove the space.
11851       if test $p = "-L" \
11852          || test $p = "-R"; then
11853         prev=$p
11854         continue
11855       else
11856         prev=
11857       fi
11858
11859       if test "$pre_test_object_deps_done" = no; then
11860         case $p in
11861         -L* | -R*)
11862           # Internal compiler library paths should come after those
11863           # provided the user.  The postdeps already come after the
11864           # user supplied libs so there is no need to process them.
11865           if test -z "$compiler_lib_search_path_CXX"; then
11866             compiler_lib_search_path_CXX="${prev}${p}"
11867           else
11868             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11869           fi
11870           ;;
11871         # The "-l" case would never come before the object being
11872         # linked, so don't bother handling this case.
11873         esac
11874       else
11875         if test -z "$postdeps_CXX"; then
11876           postdeps_CXX="${prev}${p}"
11877         else
11878           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11879         fi
11880       fi
11881       ;;
11882
11883    *.$objext)
11884       # This assumes that the test object file only shows up
11885       # once in the compiler output.
11886       if test "$p" = "conftest.$objext"; then
11887         pre_test_object_deps_done=yes
11888         continue
11889       fi
11890
11891       if test "$pre_test_object_deps_done" = no; then
11892         if test -z "$predep_objects_CXX"; then
11893           predep_objects_CXX="$p"
11894         else
11895           predep_objects_CXX="$predep_objects_CXX $p"
11896         fi
11897       else
11898         if test -z "$postdep_objects_CXX"; then
11899           postdep_objects_CXX="$p"
11900         else
11901           postdep_objects_CXX="$postdep_objects_CXX $p"
11902         fi
11903       fi
11904       ;;
11905
11906    *) ;; # Ignore the rest.
11907
11908    esac
11909  done
11910
11911  # Clean up.
11912  rm -f a.out a.exe
11913else
11914  echo "libtool.m4: error: problem compiling CXX test program"
11915fi
11916
11917$rm -f confest.$objext
11918
11919# PORTME: override above test on systems where it is broken
11920case $host_os in
11921interix3*)
11922  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11923  # hack all around it, let's just trust "g++" to DTRT.
11924  predep_objects_CXX=
11925  postdep_objects_CXX=
11926  postdeps_CXX=
11927  ;;
11928
11929solaris*)
11930  case $cc_basename in
11931  CC*)
11932    # Adding this requires a known-good setup of shared libraries for
11933    # Sun compiler versions before 5.6, else PIC objects from an old
11934    # archive will be linked into the output, leading to subtle bugs.
11935    postdeps_CXX='-lCstd -lCrun'
11936    ;;
11937  esac
11938  ;;
11939esac
11940
11941
11942case " $postdeps_CXX " in
11943*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11944esac
11945
11946lt_prog_compiler_wl_CXX=
11947lt_prog_compiler_pic_CXX=
11948lt_prog_compiler_static_CXX=
11949
11950{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11951echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11952
11953  # C++ specific cases for pic, static, wl, etc.
11954  if test "$GXX" = yes; then
11955    lt_prog_compiler_wl_CXX='-Wl,'
11956    lt_prog_compiler_static_CXX='-static'
11957
11958    case $host_os in
11959    aix*)
11960      # All AIX code is PIC.
11961      if test "$host_cpu" = ia64; then
11962        # AIX 5 now supports IA64 processor
11963        lt_prog_compiler_static_CXX='-Bstatic'
11964      fi
11965      ;;
11966    amigaos*)
11967      # FIXME: we need at least 68020 code to build shared libraries, but
11968      # adding the `-m68020' flag to GCC prevents building anything better,
11969      # like `-m68040'.
11970      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11971      ;;
11972    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11973      # PIC is the default for these OSes.
11974      ;;
11975    mingw* | os2* | pw32*)
11976      # This hack is so that the source file can tell whether it is being
11977      # built for inclusion in a dll (and should export symbols for example).
11978      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11979      ;;
11980    darwin* | rhapsody*)
11981      # PIC is the default on this platform
11982      # Common symbols not allowed in MH_DYLIB files
11983      lt_prog_compiler_pic_CXX='-fno-common'
11984      ;;
11985    *djgpp*)
11986      # DJGPP does not support shared libraries at all
11987      lt_prog_compiler_pic_CXX=
11988      ;;
11989    interix3*)
11990      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11991      # Instead, we relocate shared libraries at runtime.
11992      ;;
11993    sysv4*MP*)
11994      if test -d /usr/nec; then
11995        lt_prog_compiler_pic_CXX=-Kconform_pic
11996      fi
11997      ;;
11998    hpux*)
11999      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12000      # not for PA HP-UX.
12001      case $host_cpu in
12002      hppa*64*|ia64*)
12003        ;;
12004      *)
12005        lt_prog_compiler_pic_CXX='-fPIC'
12006        ;;
12007      esac
12008      ;;
12009    *)
12010      lt_prog_compiler_pic_CXX='-fPIC'
12011      ;;
12012    esac
12013  else
12014    case $host_os in
12015      aix4* | aix5*)
12016        # All AIX code is PIC.
12017        if test "$host_cpu" = ia64; then
12018          # AIX 5 now supports IA64 processor
12019          lt_prog_compiler_static_CXX='-Bstatic'
12020        else
12021          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12022        fi
12023        ;;
12024      chorus*)
12025        case $cc_basename in
12026        cxch68*)
12027          # Green Hills C++ Compiler
12028          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12029          ;;
12030        esac
12031        ;;
12032       darwin*)
12033         # PIC is the default on this platform
12034         # Common symbols not allowed in MH_DYLIB files
12035         case $cc_basename in
12036           xlc*)
12037           lt_prog_compiler_pic_CXX='-qnocommon'
12038           lt_prog_compiler_wl_CXX='-Wl,'
12039           ;;
12040         esac
12041       ;;
12042      dgux*)
12043        case $cc_basename in
12044          ec++*)
12045            lt_prog_compiler_pic_CXX='-KPIC'
12046            ;;
12047          ghcx*)
12048            # Green Hills C++ Compiler
12049            lt_prog_compiler_pic_CXX='-pic'
12050            ;;
12051          *)
12052            ;;
12053        esac
12054        ;;
12055      freebsd* | dragonfly*)
12056        # FreeBSD uses GNU C++
12057        ;;
12058      hpux9* | hpux10* | hpux11*)
12059        case $cc_basename in
12060          CC*)
12061            lt_prog_compiler_wl_CXX='-Wl,'
12062            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12063            if test "$host_cpu" != ia64; then
12064              lt_prog_compiler_pic_CXX='+Z'
12065            fi
12066            ;;
12067          aCC*)
12068            lt_prog_compiler_wl_CXX='-Wl,'
12069            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12070            case $host_cpu in
12071            hppa*64*|ia64*)
12072              # +Z the default
12073              ;;
12074            *)
12075              lt_prog_compiler_pic_CXX='+Z'
12076              ;;
12077            esac
12078            ;;
12079          *)
12080            ;;
12081        esac
12082        ;;
12083      interix*)
12084        # This is c89, which is MS Visual C++ (no shared libs)
12085        # Anyone wants to do a port?
12086        ;;
12087      irix5* | irix6* | nonstopux*)
12088        case $cc_basename in
12089          CC*)
12090            lt_prog_compiler_wl_CXX='-Wl,'
12091            lt_prog_compiler_static_CXX='-non_shared'
12092            # CC pic flag -KPIC is the default.
12093            ;;
12094          *)
12095            ;;
12096        esac
12097        ;;
12098      linux* | k*bsd*-gnu)
12099        case $cc_basename in
12100          KCC*)
12101            # KAI C++ Compiler
12102            lt_prog_compiler_wl_CXX='--backend -Wl,'
12103            lt_prog_compiler_pic_CXX='-fPIC'
12104            ;;
12105          icpc* | ecpc*)
12106            # Intel C++
12107            lt_prog_compiler_wl_CXX='-Wl,'
12108            lt_prog_compiler_pic_CXX='-KPIC'
12109            lt_prog_compiler_static_CXX='-static'
12110            ;;
12111          pgCC*)
12112            # Portland Group C++ compiler.
12113            lt_prog_compiler_wl_CXX='-Wl,'
12114            lt_prog_compiler_pic_CXX='-fpic'
12115            lt_prog_compiler_static_CXX='-Bstatic'
12116            ;;
12117          cxx*)
12118            # Compaq C++
12119            # Make sure the PIC flag is empty.  It appears that all Alpha
12120            # Linux and Compaq Tru64 Unix objects are PIC.
12121            lt_prog_compiler_pic_CXX=
12122            lt_prog_compiler_static_CXX='-non_shared'
12123            ;;
12124          *)
12125            ;;
12126        esac
12127        ;;
12128      lynxos*)
12129        ;;
12130      m88k*)
12131        ;;
12132      mvs*)
12133        case $cc_basename in
12134          cxx*)
12135            lt_prog_compiler_pic_CXX='-W c,exportall'
12136            ;;
12137          *)
12138            ;;
12139        esac
12140        ;;
12141      netbsd* | netbsdelf*-gnu)
12142        ;;
12143      osf3* | osf4* | osf5*)
12144        case $cc_basename in
12145          KCC*)
12146            lt_prog_compiler_wl_CXX='--backend -Wl,'
12147            ;;
12148          RCC*)
12149            # Rational C++ 2.4.1
12150            lt_prog_compiler_pic_CXX='-pic'
12151            ;;
12152          cxx*)
12153            # Digital/Compaq C++
12154            lt_prog_compiler_wl_CXX='-Wl,'
12155            # Make sure the PIC flag is empty.  It appears that all Alpha
12156            # Linux and Compaq Tru64 Unix objects are PIC.
12157            lt_prog_compiler_pic_CXX=
12158            lt_prog_compiler_static_CXX='-non_shared'
12159            ;;
12160          *)
12161            ;;
12162        esac
12163        ;;
12164      psos*)
12165        ;;
12166      solaris*)
12167        case $cc_basename in
12168          CC*)
12169            # Sun C++ 4.2, 5.x and Centerline C++
12170            lt_prog_compiler_pic_CXX='-KPIC'
12171            lt_prog_compiler_static_CXX='-Bstatic'
12172            lt_prog_compiler_wl_CXX='-Qoption ld '
12173            ;;
12174          gcx*)
12175            # Green Hills C++ Compiler
12176            lt_prog_compiler_pic_CXX='-PIC'
12177            ;;
12178          *)
12179            ;;
12180        esac
12181        ;;
12182      sunos4*)
12183        case $cc_basename in
12184          CC*)
12185            # Sun C++ 4.x
12186            lt_prog_compiler_pic_CXX='-pic'
12187            lt_prog_compiler_static_CXX='-Bstatic'
12188            ;;
12189          lcc*)
12190            # Lucid
12191            lt_prog_compiler_pic_CXX='-pic'
12192            ;;
12193          *)
12194            ;;
12195        esac
12196        ;;
12197      tandem*)
12198        case $cc_basename in
12199          NCC*)
12200            # NonStop-UX NCC 3.20
12201            lt_prog_compiler_pic_CXX='-KPIC'
12202            ;;
12203          *)
12204            ;;
12205        esac
12206        ;;
12207      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12208        case $cc_basename in
12209          CC*)
12210            lt_prog_compiler_wl_CXX='-Wl,'
12211            lt_prog_compiler_pic_CXX='-KPIC'
12212            lt_prog_compiler_static_CXX='-Bstatic'
12213            ;;
12214        esac
12215        ;;
12216      vxworks*)
12217        ;;
12218      *)
12219        lt_prog_compiler_can_build_shared_CXX=no
12220        ;;
12221    esac
12222  fi
12223
12224{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12225echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12226
12227#
12228# Check to make sure the PIC flag actually works.
12229#
12230if test -n "$lt_prog_compiler_pic_CXX"; then
12231
12232{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12233echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12234if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12235  echo $ECHO_N "(cached) $ECHO_C" >&6
12236else
12237  lt_prog_compiler_pic_works_CXX=no
12238  ac_outfile=conftest.$ac_objext
12239   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12240   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12241   # Insert the option either (1) after the last *FLAGS variable, or
12242   # (2) before a word containing "conftest.", or (3) at the end.
12243   # Note that $ac_compile itself does not contain backslashes and begins
12244   # with a dollar sign (not a hyphen), so the echo should work correctly.
12245   # The option is referenced via a variable to avoid confusing sed.
12246   lt_compile=`echo "$ac_compile" | $SED \
12247   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12248   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12249   -e 's:$: $lt_compiler_flag:'`
12250   (eval echo "\"\$as_me:12250: $lt_compile\"" >&5)
12251   (eval "$lt_compile" 2>conftest.err)
12252   ac_status=$?
12253   cat conftest.err >&5
12254   echo "$as_me:12254: \$? = $ac_status" >&5
12255   if (exit $ac_status) && test -s "$ac_outfile"; then
12256     # The compiler can only warn and ignore the option if not recognized
12257     # So say no if there are warnings other than the usual output.
12258     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12259     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12260     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12261       lt_prog_compiler_pic_works_CXX=yes
12262     fi
12263   fi
12264   $rm conftest*
12265
12266fi
12267{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12268echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12269
12270if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12271    case $lt_prog_compiler_pic_CXX in
12272     "" | " "*) ;;
12273     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12274     esac
12275else
12276    lt_prog_compiler_pic_CXX=
12277     lt_prog_compiler_can_build_shared_CXX=no
12278fi
12279
12280fi
12281case $host_os in
12282  # For platforms which do not support PIC, -DPIC is meaningless:
12283  *djgpp*)
12284    lt_prog_compiler_pic_CXX=
12285    ;;
12286  *)
12287    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12288    ;;
12289esac
12290
12291#
12292# Check to make sure the static flag actually works.
12293#
12294wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12295{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12296echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12297if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12298  echo $ECHO_N "(cached) $ECHO_C" >&6
12299else
12300  lt_prog_compiler_static_works_CXX=no
12301   save_LDFLAGS="$LDFLAGS"
12302   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12303   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12304   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12305     # The linker can only warn and ignore the option if not recognized
12306     # So say no if there are warnings
12307     if test -s conftest.err; then
12308       # Append any errors to the config.log.
12309       cat conftest.err 1>&5
12310       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12311       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12312       if diff conftest.exp conftest.er2 >/dev/null; then
12313         lt_prog_compiler_static_works_CXX=yes
12314       fi
12315     else
12316       lt_prog_compiler_static_works_CXX=yes
12317     fi
12318   fi
12319   $rm conftest*
12320   LDFLAGS="$save_LDFLAGS"
12321
12322fi
12323{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12324echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12325
12326if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12327    :
12328else
12329    lt_prog_compiler_static_CXX=
12330fi
12331
12332
12333{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12334echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12335if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12336  echo $ECHO_N "(cached) $ECHO_C" >&6
12337else
12338  lt_cv_prog_compiler_c_o_CXX=no
12339   $rm -r conftest 2>/dev/null
12340   mkdir conftest
12341   cd conftest
12342   mkdir out
12343   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12344
12345   lt_compiler_flag="-o out/conftest2.$ac_objext"
12346   # Insert the option either (1) after the last *FLAGS variable, or
12347   # (2) before a word containing "conftest.", or (3) at the end.
12348   # Note that $ac_compile itself does not contain backslashes and begins
12349   # with a dollar sign (not a hyphen), so the echo should work correctly.
12350   lt_compile=`echo "$ac_compile" | $SED \
12351   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12352   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12353   -e 's:$: $lt_compiler_flag:'`
12354   (eval echo "\"\$as_me:12354: $lt_compile\"" >&5)
12355   (eval "$lt_compile" 2>out/conftest.err)
12356   ac_status=$?
12357   cat out/conftest.err >&5
12358   echo "$as_me:12358: \$? = $ac_status" >&5
12359   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12360   then
12361     # The compiler can only warn and ignore the option if not recognized
12362     # So say no if there are warnings
12363     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12364     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12365     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12366       lt_cv_prog_compiler_c_o_CXX=yes
12367     fi
12368   fi
12369   chmod u+w . 2>&5
12370   $rm conftest*
12371   # SGI C++ compiler will create directory out/ii_files/ for
12372   # template instantiation
12373   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12374   $rm out/* && rmdir out
12375   cd ..
12376   rmdir conftest
12377   $rm conftest*
12378
12379fi
12380{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12381echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12382
12383
12384hard_links="nottested"
12385if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12386  # do not overwrite the value of need_locks provided by the user
12387  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12388echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12389  hard_links=yes
12390  $rm conftest*
12391  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12392  touch conftest.a
12393  ln conftest.a conftest.b 2>&5 || hard_links=no
12394  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12395  { echo "$as_me:$LINENO: result: $hard_links" >&5
12396echo "${ECHO_T}$hard_links" >&6; }
12397  if test "$hard_links" = no; then
12398    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12399echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12400    need_locks=warn
12401  fi
12402else
12403  need_locks=no
12404fi
12405
12406{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12407echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12408
12409  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12410  case $host_os in
12411  aix4* | aix5*)
12412    # If we're using GNU nm, then we don't want the "-C" option.
12413    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12414    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12415      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12416    else
12417      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12418    fi
12419    ;;
12420  pw32*)
12421    export_symbols_cmds_CXX="$ltdll_cmds"
12422  ;;
12423  cygwin* | mingw*)
12424    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12425  ;;
12426  linux* | k*bsd*-gnu)
12427    link_all_deplibs_CXX=no
12428  ;;
12429  *)
12430    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12431  ;;
12432  esac
12433
12434{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12435echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12436test "$ld_shlibs_CXX" = no && can_build_shared=no
12437
12438#
12439# Do we need to explicitly link libc?
12440#
12441case "x$archive_cmds_need_lc_CXX" in
12442x|xyes)
12443  # Assume -lc should be added
12444  archive_cmds_need_lc_CXX=yes
12445
12446  if test "$enable_shared" = yes && test "$GCC" = yes; then
12447    case $archive_cmds_CXX in
12448    *'~'*)
12449      # FIXME: we may have to deal with multi-command sequences.
12450      ;;
12451    '$CC '*)
12452      # Test whether the compiler implicitly links with -lc since on some
12453      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12454      # to ld, don't add -lc before -lgcc.
12455      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12456echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12457      $rm conftest*
12458      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12459
12460      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12461  (eval $ac_compile) 2>&5
12462  ac_status=$?
12463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464  (exit $ac_status); } 2>conftest.err; then
12465        soname=conftest
12466        lib=conftest
12467        libobjs=conftest.$ac_objext
12468        deplibs=
12469        wl=$lt_prog_compiler_wl_CXX
12470        pic_flag=$lt_prog_compiler_pic_CXX
12471        compiler_flags=-v
12472        linker_flags=-v
12473        verstring=
12474        output_objdir=.
12475        libname=conftest
12476        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12477        allow_undefined_flag_CXX=
12478        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12479  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12480  ac_status=$?
12481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482  (exit $ac_status); }
12483        then
12484          archive_cmds_need_lc_CXX=no
12485        else
12486          archive_cmds_need_lc_CXX=yes
12487        fi
12488        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12489      else
12490        cat conftest.err 1>&5
12491      fi
12492      $rm conftest*
12493      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12494echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12495      ;;
12496    esac
12497  fi
12498  ;;
12499esac
12500
12501{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12502echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12503library_names_spec=
12504libname_spec='lib$name'
12505soname_spec=
12506shrext_cmds=".so"
12507postinstall_cmds=
12508postuninstall_cmds=
12509finish_cmds=
12510finish_eval=
12511shlibpath_var=
12512shlibpath_overrides_runpath=unknown
12513version_type=none
12514dynamic_linker="$host_os ld.so"
12515sys_lib_dlsearch_path_spec="/lib /usr/lib"
12516if test "$GCC" = yes; then
12517  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12518  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12519    # if the path contains ";" then we assume it to be the separator
12520    # otherwise default to the standard path separator (i.e. ":") - it is
12521    # assumed that no part of a normal pathname contains ";" but that should
12522    # okay in the real world where ";" in dirpaths is itself problematic.
12523    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12524  else
12525    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12526  fi
12527else
12528  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12529fi
12530need_lib_prefix=unknown
12531hardcode_into_libs=no
12532
12533# when you set need_version to no, make sure it does not cause -set_version
12534# flags to be left without arguments
12535need_version=unknown
12536
12537case $host_os in
12538aix3*)
12539  version_type=linux
12540  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12541  shlibpath_var=LIBPATH
12542
12543  # AIX 3 has no versioning support, so we append a major version to the name.
12544  soname_spec='${libname}${release}${shared_ext}$major'
12545  ;;
12546
12547aix4* | aix5*)
12548  version_type=linux
12549  need_lib_prefix=no
12550  need_version=no
12551  hardcode_into_libs=yes
12552  if test "$host_cpu" = ia64; then
12553    # AIX 5 supports IA64
12554    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12555    shlibpath_var=LD_LIBRARY_PATH
12556  else
12557    # With GCC up to 2.95.x, collect2 would create an import file
12558    # for dependence libraries.  The import file would start with
12559    # the line `#! .'.  This would cause the generated library to
12560    # depend on `.', always an invalid library.  This was fixed in
12561    # development snapshots of GCC prior to 3.0.
12562    case $host_os in
12563      aix4 | aix4.[01] | aix4.[01].*)
12564      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12565           echo ' yes '
12566           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12567        :
12568      else
12569        can_build_shared=no
12570      fi
12571      ;;
12572    esac
12573    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12574    # soname into executable. Probably we can add versioning support to
12575    # collect2, so additional links can be useful in future.
12576    if test "$aix_use_runtimelinking" = yes; then
12577      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12578      # instead of lib<name>.a to let people know that these are not
12579      # typical AIX shared libraries.
12580      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12581    else
12582      # We preserve .a as extension for shared libraries through AIX4.2
12583      # and later when we are not doing run time linking.
12584      library_names_spec='${libname}${release}.a $libname.a'
12585      soname_spec='${libname}${release}${shared_ext}$major'
12586    fi
12587    shlibpath_var=LIBPATH
12588  fi
12589  ;;
12590
12591amigaos*)
12592  library_names_spec='$libname.ixlibrary $libname.a'
12593  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12594  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'
12595  ;;
12596
12597beos*)
12598  library_names_spec='${libname}${shared_ext}'
12599  dynamic_linker="$host_os ld.so"
12600  shlibpath_var=LIBRARY_PATH
12601  ;;
12602
12603bsdi[45]*)
12604  version_type=linux
12605  need_version=no
12606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12607  soname_spec='${libname}${release}${shared_ext}$major'
12608  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12609  shlibpath_var=LD_LIBRARY_PATH
12610  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12611  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12612  # the default ld.so.conf also contains /usr/contrib/lib and
12613  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12614  # libtool to hard-code these into programs
12615  ;;
12616
12617cygwin* | mingw* | pw32*)
12618  version_type=windows
12619  shrext_cmds=".dll"
12620  need_version=no
12621  need_lib_prefix=no
12622
12623  case $GCC,$host_os in
12624  yes,cygwin* | yes,mingw* | yes,pw32*)
12625    library_names_spec='$libname.dll.a'
12626    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12627    postinstall_cmds='base_file=`basename \${file}`~
12628      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12629      dldir=$destdir/`dirname \$dlpath`~
12630      test -d \$dldir || mkdir -p \$dldir~
12631      $install_prog $dir/$dlname \$dldir/$dlname~
12632      chmod a+x \$dldir/$dlname'
12633    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12634      dlpath=$dir/\$dldll~
12635       $rm \$dlpath'
12636    shlibpath_overrides_runpath=yes
12637
12638    case $host_os in
12639    cygwin*)
12640      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12641      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12642      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12643      ;;
12644    mingw*)
12645      # MinGW DLLs use traditional 'lib' prefix
12646      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12647      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12648      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12649        # It is most probably a Windows format PATH printed by
12650        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12651        # path with ; separators, and with drive letters. We can handle the
12652        # drive letters (cygwin fileutils understands them), so leave them,
12653        # especially as we might pass files found there to a mingw objdump,
12654        # which wouldn't understand a cygwinified path. Ahh.
12655        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12656      else
12657        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12658      fi
12659      ;;
12660    pw32*)
12661      # pw32 DLLs use 'pw' prefix rather than 'lib'
12662      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12663      ;;
12664    esac
12665    ;;
12666
12667  *)
12668    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12669    ;;
12670  esac
12671  dynamic_linker='Win32 ld.exe'
12672  # FIXME: first we should search . and the directory the executable is in
12673  shlibpath_var=PATH
12674  ;;
12675
12676darwin* | rhapsody*)
12677  dynamic_linker="$host_os dyld"
12678  version_type=darwin
12679  need_lib_prefix=no
12680  need_version=no
12681  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12682  soname_spec='${libname}${release}${major}$shared_ext'
12683  shlibpath_overrides_runpath=yes
12684  shlibpath_var=DYLD_LIBRARY_PATH
12685  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12686  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12687  if test "$GCC" = yes; then
12688    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"`
12689  else
12690    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12691  fi
12692  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12693  ;;
12694
12695dgux*)
12696  version_type=linux
12697  need_lib_prefix=no
12698  need_version=no
12699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12700  soname_spec='${libname}${release}${shared_ext}$major'
12701  shlibpath_var=LD_LIBRARY_PATH
12702  ;;
12703
12704freebsd1*)
12705  dynamic_linker=no
12706  ;;
12707
12708freebsd* | dragonfly*)
12709  # DragonFly does not have aout.  When/if they implement a new
12710  # versioning mechanism, adjust this.
12711  if test -x /usr/bin/objformat; then
12712    objformat=`/usr/bin/objformat`
12713  else
12714    case $host_os in
12715    freebsd[123]*) objformat=aout ;;
12716    *) objformat=elf ;;
12717    esac
12718  fi
12719  version_type=freebsd-$objformat
12720  case $version_type in
12721    freebsd-elf*)
12722      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12723      need_version=no
12724      need_lib_prefix=no
12725      ;;
12726    freebsd-*)
12727      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12728      need_version=yes
12729      ;;
12730  esac
12731  shlibpath_var=LD_LIBRARY_PATH
12732  case $host_os in
12733  freebsd2*)
12734    shlibpath_overrides_runpath=yes
12735    ;;
12736  freebsd3.[01]* | freebsdelf3.[01]*)
12737    shlibpath_overrides_runpath=yes
12738    hardcode_into_libs=yes
12739    ;;
12740  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12741  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12742    shlibpath_overrides_runpath=no
12743    hardcode_into_libs=yes
12744    ;;
12745  freebsd*) # from 4.6 on
12746    shlibpath_overrides_runpath=yes
12747    hardcode_into_libs=yes
12748    ;;
12749  esac
12750  ;;
12751
12752gnu*)
12753  version_type=linux
12754  need_lib_prefix=no
12755  need_version=no
12756  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12757  soname_spec='${libname}${release}${shared_ext}$major'
12758  shlibpath_var=LD_LIBRARY_PATH
12759  hardcode_into_libs=yes
12760  ;;
12761
12762hpux9* | hpux10* | hpux11*)
12763  # Give a soname corresponding to the major version so that dld.sl refuses to
12764  # link against other versions.
12765  version_type=sunos
12766  need_lib_prefix=no
12767  need_version=no
12768  case $host_cpu in
12769  ia64*)
12770    shrext_cmds='.so'
12771    hardcode_into_libs=yes
12772    dynamic_linker="$host_os dld.so"
12773    shlibpath_var=LD_LIBRARY_PATH
12774    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12775    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12776    soname_spec='${libname}${release}${shared_ext}$major'
12777    if test "X$HPUX_IA64_MODE" = X32; then
12778      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12779    else
12780      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12781    fi
12782    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12783    ;;
12784   hppa*64*)
12785     shrext_cmds='.sl'
12786     hardcode_into_libs=yes
12787     dynamic_linker="$host_os dld.sl"
12788     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12789     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12790     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12791     soname_spec='${libname}${release}${shared_ext}$major'
12792     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12793     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12794     ;;
12795   *)
12796    shrext_cmds='.sl'
12797    dynamic_linker="$host_os dld.sl"
12798    shlibpath_var=SHLIB_PATH
12799    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12800    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12801    soname_spec='${libname}${release}${shared_ext}$major'
12802    ;;
12803  esac
12804  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12805  postinstall_cmds='chmod 555 $lib'
12806  ;;
12807
12808interix3*)
12809  version_type=linux
12810  need_lib_prefix=no
12811  need_version=no
12812  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12813  soname_spec='${libname}${release}${shared_ext}$major'
12814  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12815  shlibpath_var=LD_LIBRARY_PATH
12816  shlibpath_overrides_runpath=no
12817  hardcode_into_libs=yes
12818  ;;
12819
12820irix5* | irix6* | nonstopux*)
12821  case $host_os in
12822    nonstopux*) version_type=nonstopux ;;
12823    *)
12824        if test "$lt_cv_prog_gnu_ld" = yes; then
12825                version_type=linux
12826        else
12827                version_type=irix
12828        fi ;;
12829  esac
12830  need_lib_prefix=no
12831  need_version=no
12832  soname_spec='${libname}${release}${shared_ext}$major'
12833  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12834  case $host_os in
12835  irix5* | nonstopux*)
12836    libsuff= shlibsuff=
12837    ;;
12838  *)
12839    case $LD in # libtool.m4 will add one of these switches to LD
12840    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12841      libsuff= shlibsuff= libmagic=32-bit;;
12842    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12843      libsuff=32 shlibsuff=N32 libmagic=N32;;
12844    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12845      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12846    *) libsuff= shlibsuff= libmagic=never-match;;
12847    esac
12848    ;;
12849  esac
12850  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12851  shlibpath_overrides_runpath=no
12852  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12853  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12854  hardcode_into_libs=yes
12855  ;;
12856
12857# No shared lib support for Linux oldld, aout, or coff.
12858linux*oldld* | linux*aout* | linux*coff*)
12859  dynamic_linker=no
12860  ;;
12861
12862# This must be Linux ELF.
12863linux* | k*bsd*-gnu)
12864  version_type=linux
12865  need_lib_prefix=no
12866  need_version=no
12867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12868  soname_spec='${libname}${release}${shared_ext}$major'
12869  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12870  shlibpath_var=LD_LIBRARY_PATH
12871  shlibpath_overrides_runpath=no
12872  # This implies no fast_install, which is unacceptable.
12873  # Some rework will be needed to allow for fast_install
12874  # before this can be enabled.
12875  hardcode_into_libs=yes
12876
12877  # Append ld.so.conf contents to the search path
12878  if test -f /etc/ld.so.conf; then
12879    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12880    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12881  fi
12882
12883  # We used to test for /lib/ld.so.1 and disable shared libraries on
12884  # powerpc, because MkLinux only supported shared libraries with the
12885  # GNU dynamic linker.  Since this was broken with cross compilers,
12886  # most powerpc-linux boxes support dynamic linking these days and
12887  # people can always --disable-shared, the test was removed, and we
12888  # assume the GNU/Linux dynamic linker is in use.
12889  dynamic_linker='GNU/Linux ld.so'
12890  ;;
12891
12892netbsdelf*-gnu)
12893  version_type=linux
12894  need_lib_prefix=no
12895  need_version=no
12896  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12897  soname_spec='${libname}${release}${shared_ext}$major'
12898  shlibpath_var=LD_LIBRARY_PATH
12899  shlibpath_overrides_runpath=no
12900  hardcode_into_libs=yes
12901  dynamic_linker='NetBSD ld.elf_so'
12902  ;;
12903
12904netbsd*)
12905  version_type=sunos
12906  need_lib_prefix=no
12907  need_version=no
12908  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12909    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12910    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12911    dynamic_linker='NetBSD (a.out) ld.so'
12912  else
12913    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12914    soname_spec='${libname}${release}${shared_ext}$major'
12915    dynamic_linker='NetBSD ld.elf_so'
12916  fi
12917  shlibpath_var=LD_LIBRARY_PATH
12918  shlibpath_overrides_runpath=yes
12919  hardcode_into_libs=yes
12920  ;;
12921
12922newsos6)
12923  version_type=linux
12924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12925  shlibpath_var=LD_LIBRARY_PATH
12926  shlibpath_overrides_runpath=yes
12927  ;;
12928
12929nto-qnx*)
12930  version_type=linux
12931  need_lib_prefix=no
12932  need_version=no
12933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12934  soname_spec='${libname}${release}${shared_ext}$major'
12935  shlibpath_var=LD_LIBRARY_PATH
12936  shlibpath_overrides_runpath=yes
12937  ;;
12938
12939openbsd*)
12940  version_type=sunos
12941  sys_lib_dlsearch_path_spec="/usr/lib"
12942  need_lib_prefix=no
12943  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12944  case $host_os in
12945    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12946    *)                         need_version=no  ;;
12947  esac
12948  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12949  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12950  shlibpath_var=LD_LIBRARY_PATH
12951  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12952    case $host_os in
12953      openbsd2.[89] | openbsd2.[89].*)
12954        shlibpath_overrides_runpath=no
12955        ;;
12956      *)
12957        shlibpath_overrides_runpath=yes
12958        ;;
12959      esac
12960  else
12961    shlibpath_overrides_runpath=yes
12962  fi
12963  ;;
12964
12965os2*)
12966  libname_spec='$name'
12967  shrext_cmds=".dll"
12968  need_lib_prefix=no
12969  library_names_spec='$libname${shared_ext} $libname.a'
12970  dynamic_linker='OS/2 ld.exe'
12971  shlibpath_var=LIBPATH
12972  ;;
12973
12974osf3* | osf4* | osf5*)
12975  version_type=osf
12976  need_lib_prefix=no
12977  need_version=no
12978  soname_spec='${libname}${release}${shared_ext}$major'
12979  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12980  shlibpath_var=LD_LIBRARY_PATH
12981  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12982  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12983  ;;
12984
12985solaris*)
12986  version_type=linux
12987  need_lib_prefix=no
12988  need_version=no
12989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12990  soname_spec='${libname}${release}${shared_ext}$major'
12991  shlibpath_var=LD_LIBRARY_PATH
12992  shlibpath_overrides_runpath=yes
12993  hardcode_into_libs=yes
12994  # ldd complains unless libraries are executable
12995  postinstall_cmds='chmod +x $lib'
12996  ;;
12997
12998sunos4*)
12999  version_type=sunos
13000  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13001  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13002  shlibpath_var=LD_LIBRARY_PATH
13003  shlibpath_overrides_runpath=yes
13004  if test "$with_gnu_ld" = yes; then
13005    need_lib_prefix=no
13006  fi
13007  need_version=yes
13008  ;;
13009
13010sysv4 | sysv4.3*)
13011  version_type=linux
13012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13013  soname_spec='${libname}${release}${shared_ext}$major'
13014  shlibpath_var=LD_LIBRARY_PATH
13015  case $host_vendor in
13016    sni)
13017      shlibpath_overrides_runpath=no
13018      need_lib_prefix=no
13019      export_dynamic_flag_spec='${wl}-Blargedynsym'
13020      runpath_var=LD_RUN_PATH
13021      ;;
13022    siemens)
13023      need_lib_prefix=no
13024      ;;
13025    motorola)
13026      need_lib_prefix=no
13027      need_version=no
13028      shlibpath_overrides_runpath=no
13029      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13030      ;;
13031  esac
13032  ;;
13033
13034sysv4*MP*)
13035  if test -d /usr/nec ;then
13036    version_type=linux
13037    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13038    soname_spec='$libname${shared_ext}.$major'
13039    shlibpath_var=LD_LIBRARY_PATH
13040  fi
13041  ;;
13042
13043sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13044  version_type=freebsd-elf
13045  need_lib_prefix=no
13046  need_version=no
13047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13048  soname_spec='${libname}${release}${shared_ext}$major'
13049  shlibpath_var=LD_LIBRARY_PATH
13050  hardcode_into_libs=yes
13051  if test "$with_gnu_ld" = yes; then
13052    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13053    shlibpath_overrides_runpath=no
13054  else
13055    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13056    shlibpath_overrides_runpath=yes
13057    case $host_os in
13058      sco3.2v5*)
13059        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13060        ;;
13061    esac
13062  fi
13063  sys_lib_dlsearch_path_spec='/usr/lib'
13064  ;;
13065
13066uts4*)
13067  version_type=linux
13068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13069  soname_spec='${libname}${release}${shared_ext}$major'
13070  shlibpath_var=LD_LIBRARY_PATH
13071  ;;
13072
13073*)
13074  dynamic_linker=no
13075  ;;
13076esac
13077{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13078echo "${ECHO_T}$dynamic_linker" >&6; }
13079test "$dynamic_linker" = no && can_build_shared=no
13080
13081variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13082if test "$GCC" = yes; then
13083  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13084fi
13085
13086{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13087echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13088hardcode_action_CXX=
13089if test -n "$hardcode_libdir_flag_spec_CXX" || \
13090   test -n "$runpath_var_CXX" || \
13091   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13092
13093  # We can hardcode non-existant directories.
13094  if test "$hardcode_direct_CXX" != no &&
13095     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13096     # have to relink, otherwise we might link with an installed library
13097     # when we should be linking with a yet-to-be-installed one
13098     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13099     test "$hardcode_minus_L_CXX" != no; then
13100    # Linking always hardcodes the temporary library directory.
13101    hardcode_action_CXX=relink
13102  else
13103    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13104    hardcode_action_CXX=immediate
13105  fi
13106else
13107  # We cannot hardcode anything, or else we can only hardcode existing
13108  # directories.
13109  hardcode_action_CXX=unsupported
13110fi
13111{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13112echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13113
13114if test "$hardcode_action_CXX" = relink; then
13115  # Fast installation is not supported
13116  enable_fast_install=no
13117elif test "$shlibpath_overrides_runpath" = yes ||
13118     test "$enable_shared" = no; then
13119  # Fast installation is not necessary
13120  enable_fast_install=needless
13121fi
13122
13123
13124# The else clause should only fire when bootstrapping the
13125# libtool distribution, otherwise you forgot to ship ltmain.sh
13126# with your package, and you will get complaints that there are
13127# no rules to generate ltmain.sh.
13128if test -f "$ltmain"; then
13129  # See if we are running on zsh, and set the options which allow our commands through
13130  # without removal of \ escapes.
13131  if test -n "${ZSH_VERSION+set}" ; then
13132    setopt NO_GLOB_SUBST
13133  fi
13134  # Now quote all the things that may contain metacharacters while being
13135  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13136  # variables and quote the copies for generation of the libtool script.
13137  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13138    SED SHELL STRIP \
13139    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13140    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13141    deplibs_check_method reload_flag reload_cmds need_locks \
13142    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13143    lt_cv_sys_global_symbol_to_c_name_address \
13144    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13145    old_postinstall_cmds old_postuninstall_cmds \
13146    compiler_CXX \
13147    CC_CXX \
13148    LD_CXX \
13149    lt_prog_compiler_wl_CXX \
13150    lt_prog_compiler_pic_CXX \
13151    lt_prog_compiler_static_CXX \
13152    lt_prog_compiler_no_builtin_flag_CXX \
13153    export_dynamic_flag_spec_CXX \
13154    thread_safe_flag_spec_CXX \
13155    whole_archive_flag_spec_CXX \
13156    enable_shared_with_static_runtimes_CXX \
13157    old_archive_cmds_CXX \
13158    old_archive_from_new_cmds_CXX \
13159    predep_objects_CXX \
13160    postdep_objects_CXX \
13161    predeps_CXX \
13162    postdeps_CXX \
13163    compiler_lib_search_path_CXX \
13164    archive_cmds_CXX \
13165    archive_expsym_cmds_CXX \
13166    postinstall_cmds_CXX \
13167    postuninstall_cmds_CXX \
13168    old_archive_from_expsyms_cmds_CXX \
13169    allow_undefined_flag_CXX \
13170    no_undefined_flag_CXX \
13171    export_symbols_cmds_CXX \
13172    hardcode_libdir_flag_spec_CXX \
13173    hardcode_libdir_flag_spec_ld_CXX \
13174    hardcode_libdir_separator_CXX \
13175    hardcode_automatic_CXX \
13176    module_cmds_CXX \
13177    module_expsym_cmds_CXX \
13178    lt_cv_prog_compiler_c_o_CXX \
13179    exclude_expsyms_CXX \
13180    include_expsyms_CXX; do
13181
13182    case $var in
13183    old_archive_cmds_CXX | \
13184    old_archive_from_new_cmds_CXX | \
13185    archive_cmds_CXX | \
13186    archive_expsym_cmds_CXX | \
13187    module_cmds_CXX | \
13188    module_expsym_cmds_CXX | \
13189    old_archive_from_expsyms_cmds_CXX | \
13190    export_symbols_cmds_CXX | \
13191    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13192    postinstall_cmds | postuninstall_cmds | \
13193    old_postinstall_cmds | old_postuninstall_cmds | \
13194    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13195      # Double-quote double-evaled strings.
13196      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13197      ;;
13198    *)
13199      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13200      ;;
13201    esac
13202  done
13203
13204  case $lt_echo in
13205  *'\$0 --fallback-echo"')
13206    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13207    ;;
13208  esac
13209
13210cfgfile="$ofile"
13211
13212  cat <<__EOF__ >> "$cfgfile"
13213# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13214
13215# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13216
13217# Shell to use when invoking shell scripts.
13218SHELL=$lt_SHELL
13219
13220# Whether or not to build shared libraries.
13221build_libtool_libs=$enable_shared
13222
13223# Whether or not to build static libraries.
13224build_old_libs=$enable_static
13225
13226# Whether or not to add -lc for building shared libraries.
13227build_libtool_need_lc=$archive_cmds_need_lc_CXX
13228
13229# Whether or not to disallow shared libs when runtime libs are static
13230allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13231
13232# Whether or not to optimize for fast installation.
13233fast_install=$enable_fast_install
13234
13235# The host system.
13236host_alias=$host_alias
13237host=$host
13238host_os=$host_os
13239
13240# The build system.
13241build_alias=$build_alias
13242build=$build
13243build_os=$build_os
13244
13245# An echo program that does not interpret backslashes.
13246echo=$lt_echo
13247
13248# The archiver.
13249AR=$lt_AR
13250AR_FLAGS=$lt_AR_FLAGS
13251
13252# A C compiler.
13253LTCC=$lt_LTCC
13254
13255# LTCC compiler flags.
13256LTCFLAGS=$lt_LTCFLAGS
13257
13258# A language-specific compiler.
13259CC=$lt_compiler_CXX
13260
13261# Is the compiler the GNU C compiler?
13262with_gcc=$GCC_CXX
13263
13264# An ERE matcher.
13265EGREP=$lt_EGREP
13266
13267# The linker used to build libraries.
13268LD=$lt_LD_CXX
13269
13270# Whether we need hard or soft links.
13271LN_S=$lt_LN_S
13272
13273# A BSD-compatible nm program.
13274NM=$lt_NM
13275
13276# A symbol stripping program
13277STRIP=$lt_STRIP
13278
13279# Used to examine libraries when file_magic_cmd begins "file"
13280MAGIC_CMD=$MAGIC_CMD
13281
13282# Used on cygwin: DLL creation program.
13283DLLTOOL="$DLLTOOL"
13284
13285# Used on cygwin: object dumper.
13286OBJDUMP="$OBJDUMP"
13287
13288# Used on cygwin: assembler.
13289AS="$AS"
13290
13291# The name of the directory that contains temporary libtool files.
13292objdir=$objdir
13293
13294# How to create reloadable object files.
13295reload_flag=$lt_reload_flag
13296reload_cmds=$lt_reload_cmds
13297
13298# How to pass a linker flag through the compiler.
13299wl=$lt_lt_prog_compiler_wl_CXX
13300
13301# Object file suffix (normally "o").
13302objext="$ac_objext"
13303
13304# Old archive suffix (normally "a").
13305libext="$libext"
13306
13307# Shared library suffix (normally ".so").
13308shrext_cmds='$shrext_cmds'
13309
13310# Executable file suffix (normally "").
13311exeext="$exeext"
13312
13313# Additional compiler flags for building library objects.
13314pic_flag=$lt_lt_prog_compiler_pic_CXX
13315pic_mode=$pic_mode
13316
13317# What is the maximum length of a command?
13318max_cmd_len=$lt_cv_sys_max_cmd_len
13319
13320# Does compiler simultaneously support -c and -o options?
13321compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13322
13323# Must we lock files when doing compilation?
13324need_locks=$lt_need_locks
13325
13326# Do we need the lib prefix for modules?
13327need_lib_prefix=$need_lib_prefix
13328
13329# Do we need a version for libraries?
13330need_version=$need_version
13331
13332# Whether dlopen is supported.
13333dlopen_support=$enable_dlopen
13334
13335# Whether dlopen of programs is supported.
13336dlopen_self=$enable_dlopen_self
13337
13338# Whether dlopen of statically linked programs is supported.
13339dlopen_self_static=$enable_dlopen_self_static
13340
13341# Compiler flag to prevent dynamic linking.
13342link_static_flag=$lt_lt_prog_compiler_static_CXX
13343
13344# Compiler flag to turn off builtin functions.
13345no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13346
13347# Compiler flag to allow reflexive dlopens.
13348export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13349
13350# Compiler flag to generate shared objects directly from archives.
13351whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13352
13353# Compiler flag to generate thread-safe objects.
13354thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13355
13356# Library versioning type.
13357version_type=$version_type
13358
13359# Format of library name prefix.
13360libname_spec=$lt_libname_spec
13361
13362# List of archive names.  First name is the real one, the rest are links.
13363# The last name is the one that the linker finds with -lNAME.
13364library_names_spec=$lt_library_names_spec
13365
13366# The coded name of the library, if different from the real name.
13367soname_spec=$lt_soname_spec
13368
13369# Commands used to build and install an old-style archive.
13370RANLIB=$lt_RANLIB
13371old_archive_cmds=$lt_old_archive_cmds_CXX
13372old_postinstall_cmds=$lt_old_postinstall_cmds
13373old_postuninstall_cmds=$lt_old_postuninstall_cmds
13374
13375# Create an old-style archive from a shared archive.
13376old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13377
13378# Create a temporary old-style archive to link instead of a shared archive.
13379old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13380
13381# Commands used to build and install a shared archive.
13382archive_cmds=$lt_archive_cmds_CXX
13383archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13384postinstall_cmds=$lt_postinstall_cmds
13385postuninstall_cmds=$lt_postuninstall_cmds
13386
13387# Commands used to build a loadable module (assumed same as above if empty)
13388module_cmds=$lt_module_cmds_CXX
13389module_expsym_cmds=$lt_module_expsym_cmds_CXX
13390
13391# Commands to strip libraries.
13392old_striplib=$lt_old_striplib
13393striplib=$lt_striplib
13394
13395# Dependencies to place before the objects being linked to create a
13396# shared library.
13397predep_objects=$lt_predep_objects_CXX
13398
13399# Dependencies to place after the objects being linked to create a
13400# shared library.
13401postdep_objects=$lt_postdep_objects_CXX
13402
13403# Dependencies to place before the objects being linked to create a
13404# shared library.
13405predeps=$lt_predeps_CXX
13406
13407# Dependencies to place after the objects being linked to create a
13408# shared library.
13409postdeps=$lt_postdeps_CXX
13410
13411# The library search path used internally by the compiler when linking
13412# a shared library.
13413compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13414
13415# Method to check whether dependent libraries are shared objects.
13416deplibs_check_method=$lt_deplibs_check_method
13417
13418# Command to use when deplibs_check_method == file_magic.
13419file_magic_cmd=$lt_file_magic_cmd
13420
13421# Flag that allows shared libraries with undefined symbols to be built.
13422allow_undefined_flag=$lt_allow_undefined_flag_CXX
13423
13424# Flag that forces no undefined symbols.
13425no_undefined_flag=$lt_no_undefined_flag_CXX
13426
13427# Commands used to finish a libtool library installation in a directory.
13428finish_cmds=$lt_finish_cmds
13429
13430# Same as above, but a single script fragment to be evaled but not shown.
13431finish_eval=$lt_finish_eval
13432
13433# Take the output of nm and produce a listing of raw symbols and C names.
13434global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13435
13436# Transform the output of nm in a proper C declaration
13437global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13438
13439# Transform the output of nm in a C name address pair
13440global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13441
13442# This is the shared library runtime path variable.
13443runpath_var=$runpath_var
13444
13445# This is the shared library path variable.
13446shlibpath_var=$shlibpath_var
13447
13448# Is shlibpath searched before the hard-coded library search path?
13449shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13450
13451# How to hardcode a shared library path into an executable.
13452hardcode_action=$hardcode_action_CXX
13453
13454# Whether we should hardcode library paths into libraries.
13455hardcode_into_libs=$hardcode_into_libs
13456
13457# Flag to hardcode \$libdir into a binary during linking.
13458# This must work even if \$libdir does not exist.
13459hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13460
13461# If ld is used when linking, flag to hardcode \$libdir into
13462# a binary during linking. This must work even if \$libdir does
13463# not exist.
13464hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13465
13466# Whether we need a single -rpath flag with a separated argument.
13467hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13468
13469# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13470# resulting binary.
13471hardcode_direct=$hardcode_direct_CXX
13472
13473# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13474# resulting binary.
13475hardcode_minus_L=$hardcode_minus_L_CXX
13476
13477# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13478# the resulting binary.
13479hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13480
13481# Set to yes if building a shared library automatically hardcodes DIR into the library
13482# and all subsequent libraries and executables linked against it.
13483hardcode_automatic=$hardcode_automatic_CXX
13484
13485# Variables whose values should be saved in libtool wrapper scripts and
13486# restored at relink time.
13487variables_saved_for_relink="$variables_saved_for_relink"
13488
13489# Whether libtool must link a program against all its dependency libraries.
13490link_all_deplibs=$link_all_deplibs_CXX
13491
13492# Compile-time system search path for libraries
13493sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13494
13495# Run-time system search path for libraries
13496sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13497
13498# Fix the shell variable \$srcfile for the compiler.
13499fix_srcfile_path="$fix_srcfile_path_CXX"
13500
13501# Set to yes if exported symbols are required.
13502always_export_symbols=$always_export_symbols_CXX
13503
13504# The commands to list exported symbols.
13505export_symbols_cmds=$lt_export_symbols_cmds_CXX
13506
13507# The commands to extract the exported symbol list from a shared archive.
13508extract_expsyms_cmds=$lt_extract_expsyms_cmds
13509
13510# Symbols that should not be listed in the preloaded symbols.
13511exclude_expsyms=$lt_exclude_expsyms_CXX
13512
13513# Symbols that must always be exported.
13514include_expsyms=$lt_include_expsyms_CXX
13515
13516# ### END LIBTOOL TAG CONFIG: $tagname
13517
13518__EOF__
13519
13520
13521else
13522  # If there is no Makefile yet, we rely on a make rule to execute
13523  # `config.status --recheck' to rerun these tests and create the
13524  # libtool script then.
13525  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13526  if test -f "$ltmain_in"; then
13527    test -f Makefile && make "$ltmain"
13528  fi
13529fi
13530
13531
13532ac_ext=c
13533ac_cpp='$CPP $CPPFLAGS'
13534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13536ac_compiler_gnu=$ac_cv_c_compiler_gnu
13537
13538CC=$lt_save_CC
13539LDCXX=$LD
13540LD=$lt_save_LD
13541GCC=$lt_save_GCC
13542with_gnu_ldcxx=$with_gnu_ld
13543with_gnu_ld=$lt_save_with_gnu_ld
13544lt_cv_path_LDCXX=$lt_cv_path_LD
13545lt_cv_path_LD=$lt_save_path_LD
13546lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13547lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13548
13549        else
13550          tagname=""
13551        fi
13552        ;;
13553
13554      F77)
13555        if test -n "$F77" && test "X$F77" != "Xno"; then
13556
13557ac_ext=f
13558ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13559ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13560ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13561
13562
13563archive_cmds_need_lc_F77=no
13564allow_undefined_flag_F77=
13565always_export_symbols_F77=no
13566archive_expsym_cmds_F77=
13567export_dynamic_flag_spec_F77=
13568hardcode_direct_F77=no
13569hardcode_libdir_flag_spec_F77=
13570hardcode_libdir_flag_spec_ld_F77=
13571hardcode_libdir_separator_F77=
13572hardcode_minus_L_F77=no
13573hardcode_automatic_F77=no
13574module_cmds_F77=
13575module_expsym_cmds_F77=
13576link_all_deplibs_F77=unknown
13577old_archive_cmds_F77=$old_archive_cmds
13578no_undefined_flag_F77=
13579whole_archive_flag_spec_F77=
13580enable_shared_with_static_runtimes_F77=no
13581
13582# Source file extension for f77 test sources.
13583ac_ext=f
13584
13585# Object file extension for compiled f77 test sources.
13586objext=o
13587objext_F77=$objext
13588
13589# Code to be used in simple compile tests
13590lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13591
13592# Code to be used in simple link tests
13593lt_simple_link_test_code="      program t\n      end\n"
13594
13595# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13596
13597# If no C compiler was specified, use CC.
13598LTCC=${LTCC-"$CC"}
13599
13600# If no C compiler flags were specified, use CFLAGS.
13601LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13602
13603# Allow CC to be a program name with arguments.
13604compiler=$CC
13605
13606
13607# save warnings/boilerplate of simple test code
13608ac_outfile=conftest.$ac_objext
13609printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13610eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13611_lt_compiler_boilerplate=`cat conftest.err`
13612$rm conftest*
13613
13614ac_outfile=conftest.$ac_objext
13615printf "$lt_simple_link_test_code" >conftest.$ac_ext
13616eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13617_lt_linker_boilerplate=`cat conftest.err`
13618$rm conftest*
13619
13620
13621# Allow CC to be a program name with arguments.
13622lt_save_CC="$CC"
13623CC=${F77-"f77"}
13624compiler=$CC
13625compiler_F77=$CC
13626for cc_temp in $compiler""; do
13627  case $cc_temp in
13628    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13629    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13630    \-*) ;;
13631    *) break;;
13632  esac
13633done
13634cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13635
13636
13637{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13638echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13639{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13640echo "${ECHO_T}$can_build_shared" >&6; }
13641
13642{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13643echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13644test "$can_build_shared" = "no" && enable_shared=no
13645
13646# On AIX, shared libraries and static libraries use the same namespace, and
13647# are all built from PIC.
13648case $host_os in
13649aix3*)
13650  test "$enable_shared" = yes && enable_static=no
13651  if test -n "$RANLIB"; then
13652    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13653    postinstall_cmds='$RANLIB $lib'
13654  fi
13655  ;;
13656aix4* | aix5*)
13657  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13658    test "$enable_shared" = yes && enable_static=no
13659  fi
13660  ;;
13661esac
13662{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13663echo "${ECHO_T}$enable_shared" >&6; }
13664
13665{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13666echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13667# Make sure either enable_shared or enable_static is yes.
13668test "$enable_shared" = yes || enable_static=yes
13669{ echo "$as_me:$LINENO: result: $enable_static" >&5
13670echo "${ECHO_T}$enable_static" >&6; }
13671
13672GCC_F77="$G77"
13673LD_F77="$LD"
13674
13675lt_prog_compiler_wl_F77=
13676lt_prog_compiler_pic_F77=
13677lt_prog_compiler_static_F77=
13678
13679{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13680echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13681
13682  if test "$GCC" = yes; then
13683    lt_prog_compiler_wl_F77='-Wl,'
13684    lt_prog_compiler_static_F77='-static'
13685
13686    case $host_os in
13687      aix*)
13688      # All AIX code is PIC.
13689      if test "$host_cpu" = ia64; then
13690        # AIX 5 now supports IA64 processor
13691        lt_prog_compiler_static_F77='-Bstatic'
13692      fi
13693      ;;
13694
13695    amigaos*)
13696      # FIXME: we need at least 68020 code to build shared libraries, but
13697      # adding the `-m68020' flag to GCC prevents building anything better,
13698      # like `-m68040'.
13699      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13700      ;;
13701
13702    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13703      # PIC is the default for these OSes.
13704      ;;
13705
13706    mingw* | pw32* | os2*)
13707      # This hack is so that the source file can tell whether it is being
13708      # built for inclusion in a dll (and should export symbols for example).
13709      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13710      ;;
13711
13712    darwin* | rhapsody*)
13713      # PIC is the default on this platform
13714      # Common symbols not allowed in MH_DYLIB files
13715      lt_prog_compiler_pic_F77='-fno-common'
13716      ;;
13717
13718    interix3*)
13719      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13720      # Instead, we relocate shared libraries at runtime.
13721      ;;
13722
13723    msdosdjgpp*)
13724      # Just because we use GCC doesn't mean we suddenly get shared libraries
13725      # on systems that don't support them.
13726      lt_prog_compiler_can_build_shared_F77=no
13727      enable_shared=no
13728      ;;
13729
13730    sysv4*MP*)
13731      if test -d /usr/nec; then
13732        lt_prog_compiler_pic_F77=-Kconform_pic
13733      fi
13734      ;;
13735
13736    hpux*)
13737      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13738      # not for PA HP-UX.
13739      case $host_cpu in
13740      hppa*64*|ia64*)
13741        # +Z the default
13742        ;;
13743      *)
13744        lt_prog_compiler_pic_F77='-fPIC'
13745        ;;
13746      esac
13747      ;;
13748
13749    *)
13750      lt_prog_compiler_pic_F77='-fPIC'
13751      ;;
13752    esac
13753  else
13754    # PORTME Check for flag to pass linker flags through the system compiler.
13755    case $host_os in
13756    aix*)
13757      lt_prog_compiler_wl_F77='-Wl,'
13758      if test "$host_cpu" = ia64; then
13759        # AIX 5 now supports IA64 processor
13760        lt_prog_compiler_static_F77='-Bstatic'
13761      else
13762        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13763      fi
13764      ;;
13765      darwin*)
13766        # PIC is the default on this platform
13767        # Common symbols not allowed in MH_DYLIB files
13768       case $cc_basename in
13769         xlc*)
13770         lt_prog_compiler_pic_F77='-qnocommon'
13771         lt_prog_compiler_wl_F77='-Wl,'
13772         ;;
13773       esac
13774       ;;
13775
13776    mingw* | pw32* | os2*)
13777      # This hack is so that the source file can tell whether it is being
13778      # built for inclusion in a dll (and should export symbols for example).
13779      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13780      ;;
13781
13782    hpux9* | hpux10* | hpux11*)
13783      lt_prog_compiler_wl_F77='-Wl,'
13784      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13785      # not for PA HP-UX.
13786      case $host_cpu in
13787      hppa*64*|ia64*)
13788        # +Z the default
13789        ;;
13790      *)
13791        lt_prog_compiler_pic_F77='+Z'
13792        ;;
13793      esac
13794      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13795      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13796      ;;
13797
13798    irix5* | irix6* | nonstopux*)
13799      lt_prog_compiler_wl_F77='-Wl,'
13800      # PIC (with -KPIC) is the default.
13801      lt_prog_compiler_static_F77='-non_shared'
13802      ;;
13803
13804    newsos6)
13805      lt_prog_compiler_pic_F77='-KPIC'
13806      lt_prog_compiler_static_F77='-Bstatic'
13807      ;;
13808
13809    linux* | k*bsd*-gnu)
13810      case $cc_basename in
13811      icc* | ecc*)
13812        lt_prog_compiler_wl_F77='-Wl,'
13813        lt_prog_compiler_pic_F77='-KPIC'
13814        lt_prog_compiler_static_F77='-static'
13815        ;;
13816      pgcc* | pgf77* | pgf90* | pgf95*)
13817        # Portland Group compilers (*not* the Pentium gcc compiler,
13818        # which looks to be a dead project)
13819        lt_prog_compiler_wl_F77='-Wl,'
13820        lt_prog_compiler_pic_F77='-fpic'
13821        lt_prog_compiler_static_F77='-Bstatic'
13822        ;;
13823      ccc*)
13824        lt_prog_compiler_wl_F77='-Wl,'
13825        # All Alpha code is PIC.
13826        lt_prog_compiler_static_F77='-non_shared'
13827        ;;
13828      esac
13829      ;;
13830
13831    osf3* | osf4* | osf5*)
13832      lt_prog_compiler_wl_F77='-Wl,'
13833      # All OSF/1 code is PIC.
13834      lt_prog_compiler_static_F77='-non_shared'
13835      ;;
13836
13837    solaris*)
13838      lt_prog_compiler_pic_F77='-KPIC'
13839      lt_prog_compiler_static_F77='-Bstatic'
13840      case $cc_basename in
13841      f77* | f90* | f95*)
13842        lt_prog_compiler_wl_F77='-Qoption ld ';;
13843      *)
13844        lt_prog_compiler_wl_F77='-Wl,';;
13845      esac
13846      ;;
13847
13848    sunos4*)
13849      lt_prog_compiler_wl_F77='-Qoption ld '
13850      lt_prog_compiler_pic_F77='-PIC'
13851      lt_prog_compiler_static_F77='-Bstatic'
13852      ;;
13853
13854    sysv4 | sysv4.2uw2* | sysv4.3*)
13855      lt_prog_compiler_wl_F77='-Wl,'
13856      lt_prog_compiler_pic_F77='-KPIC'
13857      lt_prog_compiler_static_F77='-Bstatic'
13858      ;;
13859
13860    sysv4*MP*)
13861      if test -d /usr/nec ;then
13862        lt_prog_compiler_pic_F77='-Kconform_pic'
13863        lt_prog_compiler_static_F77='-Bstatic'
13864      fi
13865      ;;
13866
13867    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13868      lt_prog_compiler_wl_F77='-Wl,'
13869      lt_prog_compiler_pic_F77='-KPIC'
13870      lt_prog_compiler_static_F77='-Bstatic'
13871      ;;
13872
13873    unicos*)
13874      lt_prog_compiler_wl_F77='-Wl,'
13875      lt_prog_compiler_can_build_shared_F77=no
13876      ;;
13877
13878    uts4*)
13879      lt_prog_compiler_pic_F77='-pic'
13880      lt_prog_compiler_static_F77='-Bstatic'
13881      ;;
13882
13883    *)
13884      lt_prog_compiler_can_build_shared_F77=no
13885      ;;
13886    esac
13887  fi
13888
13889{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13890echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13891
13892#
13893# Check to make sure the PIC flag actually works.
13894#
13895if test -n "$lt_prog_compiler_pic_F77"; then
13896
13897{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13898echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13899if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13900  echo $ECHO_N "(cached) $ECHO_C" >&6
13901else
13902  lt_prog_compiler_pic_works_F77=no
13903  ac_outfile=conftest.$ac_objext
13904   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13905   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13906   # Insert the option either (1) after the last *FLAGS variable, or
13907   # (2) before a word containing "conftest.", or (3) at the end.
13908   # Note that $ac_compile itself does not contain backslashes and begins
13909   # with a dollar sign (not a hyphen), so the echo should work correctly.
13910   # The option is referenced via a variable to avoid confusing sed.
13911   lt_compile=`echo "$ac_compile" | $SED \
13912   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13913   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13914   -e 's:$: $lt_compiler_flag:'`
13915   (eval echo "\"\$as_me:13915: $lt_compile\"" >&5)
13916   (eval "$lt_compile" 2>conftest.err)
13917   ac_status=$?
13918   cat conftest.err >&5
13919   echo "$as_me:13919: \$? = $ac_status" >&5
13920   if (exit $ac_status) && test -s "$ac_outfile"; then
13921     # The compiler can only warn and ignore the option if not recognized
13922     # So say no if there are warnings other than the usual output.
13923     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13924     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13925     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13926       lt_prog_compiler_pic_works_F77=yes
13927     fi
13928   fi
13929   $rm conftest*
13930
13931fi
13932{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13933echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13934
13935if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13936    case $lt_prog_compiler_pic_F77 in
13937     "" | " "*) ;;
13938     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13939     esac
13940else
13941    lt_prog_compiler_pic_F77=
13942     lt_prog_compiler_can_build_shared_F77=no
13943fi
13944
13945fi
13946case $host_os in
13947  # For platforms which do not support PIC, -DPIC is meaningless:
13948  *djgpp*)
13949    lt_prog_compiler_pic_F77=
13950    ;;
13951  *)
13952    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13953    ;;
13954esac
13955
13956#
13957# Check to make sure the static flag actually works.
13958#
13959wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13960{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13961echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13962if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13963  echo $ECHO_N "(cached) $ECHO_C" >&6
13964else
13965  lt_prog_compiler_static_works_F77=no
13966   save_LDFLAGS="$LDFLAGS"
13967   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13968   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13969   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13970     # The linker can only warn and ignore the option if not recognized
13971     # So say no if there are warnings
13972     if test -s conftest.err; then
13973       # Append any errors to the config.log.
13974       cat conftest.err 1>&5
13975       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13976       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13977       if diff conftest.exp conftest.er2 >/dev/null; then
13978         lt_prog_compiler_static_works_F77=yes
13979       fi
13980     else
13981       lt_prog_compiler_static_works_F77=yes
13982     fi
13983   fi
13984   $rm conftest*
13985   LDFLAGS="$save_LDFLAGS"
13986
13987fi
13988{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13989echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13990
13991if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13992    :
13993else
13994    lt_prog_compiler_static_F77=
13995fi
13996
13997
13998{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13999echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14000if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14001  echo $ECHO_N "(cached) $ECHO_C" >&6
14002else
14003  lt_cv_prog_compiler_c_o_F77=no
14004   $rm -r conftest 2>/dev/null
14005   mkdir conftest
14006   cd conftest
14007   mkdir out
14008   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14009
14010   lt_compiler_flag="-o out/conftest2.$ac_objext"
14011   # Insert the option either (1) after the last *FLAGS variable, or
14012   # (2) before a word containing "conftest.", or (3) at the end.
14013   # Note that $ac_compile itself does not contain backslashes and begins
14014   # with a dollar sign (not a hyphen), so the echo should work correctly.
14015   lt_compile=`echo "$ac_compile" | $SED \
14016   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14017   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14018   -e 's:$: $lt_compiler_flag:'`
14019   (eval echo "\"\$as_me:14019: $lt_compile\"" >&5)
14020   (eval "$lt_compile" 2>out/conftest.err)
14021   ac_status=$?
14022   cat out/conftest.err >&5
14023   echo "$as_me:14023: \$? = $ac_status" >&5
14024   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14025   then
14026     # The compiler can only warn and ignore the option if not recognized
14027     # So say no if there are warnings
14028     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14029     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14030     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14031       lt_cv_prog_compiler_c_o_F77=yes
14032     fi
14033   fi
14034   chmod u+w . 2>&5
14035   $rm conftest*
14036   # SGI C++ compiler will create directory out/ii_files/ for
14037   # template instantiation
14038   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14039   $rm out/* && rmdir out
14040   cd ..
14041   rmdir conftest
14042   $rm conftest*
14043
14044fi
14045{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14046echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14047
14048
14049hard_links="nottested"
14050if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14051  # do not overwrite the value of need_locks provided by the user
14052  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14053echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14054  hard_links=yes
14055  $rm conftest*
14056  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14057  touch conftest.a
14058  ln conftest.a conftest.b 2>&5 || hard_links=no
14059  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14060  { echo "$as_me:$LINENO: result: $hard_links" >&5
14061echo "${ECHO_T}$hard_links" >&6; }
14062  if test "$hard_links" = no; then
14063    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14064echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14065    need_locks=warn
14066  fi
14067else
14068  need_locks=no
14069fi
14070
14071{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14072echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14073
14074  runpath_var=
14075  allow_undefined_flag_F77=
14076  enable_shared_with_static_runtimes_F77=no
14077  archive_cmds_F77=
14078  archive_expsym_cmds_F77=
14079  old_archive_From_new_cmds_F77=
14080  old_archive_from_expsyms_cmds_F77=
14081  export_dynamic_flag_spec_F77=
14082  whole_archive_flag_spec_F77=
14083  thread_safe_flag_spec_F77=
14084  hardcode_libdir_flag_spec_F77=
14085  hardcode_libdir_flag_spec_ld_F77=
14086  hardcode_libdir_separator_F77=
14087  hardcode_direct_F77=no
14088  hardcode_minus_L_F77=no
14089  hardcode_shlibpath_var_F77=unsupported
14090  link_all_deplibs_F77=unknown
14091  hardcode_automatic_F77=no
14092  module_cmds_F77=
14093  module_expsym_cmds_F77=
14094  always_export_symbols_F77=no
14095  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14096  # include_expsyms should be a list of space-separated symbols to be *always*
14097  # included in the symbol list
14098  include_expsyms_F77=
14099  # exclude_expsyms can be an extended regexp of symbols to exclude
14100  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14101  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14102  # as well as any symbol that contains `d'.
14103  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14104  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14105  # platforms (ab)use it in PIC code, but their linkers get confused if
14106  # the symbol is explicitly referenced.  Since portable code cannot
14107  # rely on this symbol name, it's probably fine to never include it in
14108  # preloaded symbol tables.
14109  extract_expsyms_cmds=
14110  # Just being paranoid about ensuring that cc_basename is set.
14111  for cc_temp in $compiler""; do
14112  case $cc_temp in
14113    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14114    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14115    \-*) ;;
14116    *) break;;
14117  esac
14118done
14119cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14120
14121  case $host_os in
14122  cygwin* | mingw* | pw32*)
14123    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14124    # When not using gcc, we currently assume that we are using
14125    # Microsoft Visual C++.
14126    if test "$GCC" != yes; then
14127      with_gnu_ld=no
14128    fi
14129    ;;
14130  interix*)
14131    # we just hope/assume this is gcc and not c89 (= MSVC++)
14132    with_gnu_ld=yes
14133    ;;
14134  openbsd*)
14135    with_gnu_ld=no
14136    ;;
14137  esac
14138
14139  ld_shlibs_F77=yes
14140  if test "$with_gnu_ld" = yes; then
14141    # If archive_cmds runs LD, not CC, wlarc should be empty
14142    wlarc='${wl}'
14143
14144    # Set some defaults for GNU ld with shared library support. These
14145    # are reset later if shared libraries are not supported. Putting them
14146    # here allows them to be overridden if necessary.
14147    runpath_var=LD_RUN_PATH
14148    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14149    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14150    # ancient GNU ld didn't support --whole-archive et. al.
14151    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14152        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14153      else
14154        whole_archive_flag_spec_F77=
14155    fi
14156    supports_anon_versioning=no
14157    case `$LD -v 2>/dev/null` in
14158      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14159      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14160      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14161      *\ 2.11.*) ;; # other 2.11 versions
14162      *) supports_anon_versioning=yes ;;
14163    esac
14164
14165    # See if GNU ld supports shared libraries.
14166    case $host_os in
14167    aix3* | aix4* | aix5*)
14168      # On AIX/PPC, the GNU linker is very broken
14169      if test "$host_cpu" != ia64; then
14170        ld_shlibs_F77=no
14171        cat <<EOF 1>&2
14172
14173*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14174*** to be unable to reliably create shared libraries on AIX.
14175*** Therefore, libtool is disabling shared libraries support.  If you
14176*** really care for shared libraries, you may want to modify your PATH
14177*** so that a non-GNU linker is found, and then restart.
14178
14179EOF
14180      fi
14181      ;;
14182
14183    amigaos*)
14184      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14185      hardcode_libdir_flag_spec_F77='-L$libdir'
14186      hardcode_minus_L_F77=yes
14187
14188      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14189      # that the semantics of dynamic libraries on AmigaOS, at least up
14190      # to version 4, is to share data among multiple programs linked
14191      # with the same dynamic library.  Since this doesn't match the
14192      # behavior of shared libraries on other platforms, we can't use
14193      # them.
14194      ld_shlibs_F77=no
14195      ;;
14196
14197    beos*)
14198      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14199        allow_undefined_flag_F77=unsupported
14200        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14201        # support --undefined.  This deserves some investigation.  FIXME
14202        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14203      else
14204        ld_shlibs_F77=no
14205      fi
14206      ;;
14207
14208    cygwin* | mingw* | pw32*)
14209      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14210      # as there is no search path for DLLs.
14211      hardcode_libdir_flag_spec_F77='-L$libdir'
14212      allow_undefined_flag_F77=unsupported
14213      always_export_symbols_F77=no
14214      enable_shared_with_static_runtimes_F77=yes
14215      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14216
14217      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14218        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14219        # If the export-symbols file already is a .def file (1st line
14220        # is EXPORTS), use it as is; otherwise, prepend...
14221        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14222          cp $export_symbols $output_objdir/$soname.def;
14223        else
14224          echo EXPORTS > $output_objdir/$soname.def;
14225          cat $export_symbols >> $output_objdir/$soname.def;
14226        fi~
14227        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14228      else
14229        ld_shlibs_F77=no
14230      fi
14231      ;;
14232
14233    interix3*)
14234      hardcode_direct_F77=no
14235      hardcode_shlibpath_var_F77=no
14236      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14237      export_dynamic_flag_spec_F77='${wl}-E'
14238      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14239      # Instead, shared libraries are loaded at an image base (0x10000000 by
14240      # default) and relocated if they conflict, which is a slow very memory
14241      # consuming and fragmenting process.  To avoid this, we pick a random,
14242      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14243      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14244      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14245      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14246      ;;
14247
14248    linux* | k*bsd*-gnu)
14249      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14250        tmp_addflag=
14251        case $cc_basename,$host_cpu in
14252        pgcc*)                          # Portland Group C compiler
14253          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14254          tmp_addflag=' $pic_flag'
14255          ;;
14256        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14257          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14258          tmp_addflag=' $pic_flag -Mnomain' ;;
14259        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14260          tmp_addflag=' -i_dynamic' ;;
14261        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14262          tmp_addflag=' -i_dynamic -nofor_main' ;;
14263        ifc* | ifort*)                  # Intel Fortran compiler
14264          tmp_addflag=' -nofor_main' ;;
14265        esac
14266        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14267
14268        if test $supports_anon_versioning = yes; then
14269          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14270  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14271  $echo "local: *; };" >> $output_objdir/$libname.ver~
14272          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14273        fi
14274        link_all_deplibs_F77=no
14275      else
14276        ld_shlibs_F77=no
14277      fi
14278      ;;
14279
14280    netbsd* | netbsdelf*-gnu)
14281      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14282        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14283        wlarc=
14284      else
14285        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14286        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14287      fi
14288      ;;
14289
14290    solaris*)
14291      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14292        ld_shlibs_F77=no
14293        cat <<EOF 1>&2
14294
14295*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14296*** create shared libraries on Solaris systems.  Therefore, libtool
14297*** is disabling shared libraries support.  We urge you to upgrade GNU
14298*** binutils to release 2.9.1 or newer.  Another option is to modify
14299*** your PATH or compiler configuration so that the native linker is
14300*** used, and then restart.
14301
14302EOF
14303      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14304        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14305        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14306      else
14307        ld_shlibs_F77=no
14308      fi
14309      ;;
14310
14311    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14312      case `$LD -v 2>&1` in
14313        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14314        ld_shlibs_F77=no
14315        cat <<_LT_EOF 1>&2
14316
14317*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14318*** reliably create shared libraries on SCO systems.  Therefore, libtool
14319*** is disabling shared libraries support.  We urge you to upgrade GNU
14320*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14321*** your PATH or compiler configuration so that the native linker is
14322*** used, and then restart.
14323
14324_LT_EOF
14325        ;;
14326        *)
14327          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14328            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14329            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14330            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14331          else
14332            ld_shlibs_F77=no
14333          fi
14334        ;;
14335      esac
14336      ;;
14337
14338    sunos4*)
14339      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14340      wlarc=
14341      hardcode_direct_F77=yes
14342      hardcode_shlibpath_var_F77=no
14343      ;;
14344
14345    *)
14346      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14347        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14348        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14349      else
14350        ld_shlibs_F77=no
14351      fi
14352      ;;
14353    esac
14354
14355    if test "$ld_shlibs_F77" = no; then
14356      runpath_var=
14357      hardcode_libdir_flag_spec_F77=
14358      export_dynamic_flag_spec_F77=
14359      whole_archive_flag_spec_F77=
14360    fi
14361  else
14362    # PORTME fill in a description of your system's linker (not GNU ld)
14363    case $host_os in
14364    aix3*)
14365      allow_undefined_flag_F77=unsupported
14366      always_export_symbols_F77=yes
14367      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14368      # Note: this linker hardcodes the directories in LIBPATH if there
14369      # are no directories specified by -L.
14370      hardcode_minus_L_F77=yes
14371      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14372        # Neither direct hardcoding nor static linking is supported with a
14373        # broken collect2.
14374        hardcode_direct_F77=unsupported
14375      fi
14376      ;;
14377
14378    aix4* | aix5*)
14379      if test "$host_cpu" = ia64; then
14380        # On IA64, the linker does run time linking by default, so we don't
14381        # have to do anything special.
14382        aix_use_runtimelinking=no
14383        exp_sym_flag='-Bexport'
14384        no_entry_flag=""
14385      else
14386        # If we're using GNU nm, then we don't want the "-C" option.
14387        # -C means demangle to AIX nm, but means don't demangle with GNU nm
14388        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14389          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14390        else
14391          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14392        fi
14393        aix_use_runtimelinking=no
14394
14395        # Test if we are trying to use run time linking or normal
14396        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14397        # need to do runtime linking.
14398        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14399          for ld_flag in $LDFLAGS; do
14400          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14401            aix_use_runtimelinking=yes
14402            break
14403          fi
14404          done
14405          ;;
14406        esac
14407
14408        exp_sym_flag='-bexport'
14409        no_entry_flag='-bnoentry'
14410      fi
14411
14412      # When large executables or shared objects are built, AIX ld can
14413      # have problems creating the table of contents.  If linking a library
14414      # or program results in "error TOC overflow" add -mminimal-toc to
14415      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14416      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14417
14418      archive_cmds_F77=''
14419      hardcode_direct_F77=yes
14420      hardcode_libdir_separator_F77=':'
14421      link_all_deplibs_F77=yes
14422
14423      if test "$GCC" = yes; then
14424        case $host_os in aix4.[012]|aix4.[012].*)
14425        # We only want to do this on AIX 4.2 and lower, the check
14426        # below for broken collect2 doesn't work under 4.3+
14427          collect2name=`${CC} -print-prog-name=collect2`
14428          if test -f "$collect2name" && \
14429           strings "$collect2name" | grep resolve_lib_name >/dev/null
14430          then
14431          # We have reworked collect2
14432          hardcode_direct_F77=yes
14433          else
14434          # We have old collect2
14435          hardcode_direct_F77=unsupported
14436          # It fails to find uninstalled libraries when the uninstalled
14437          # path is not listed in the libpath.  Setting hardcode_minus_L
14438          # to unsupported forces relinking
14439          hardcode_minus_L_F77=yes
14440          hardcode_libdir_flag_spec_F77='-L$libdir'
14441          hardcode_libdir_separator_F77=
14442          fi
14443          ;;
14444        esac
14445        shared_flag='-shared'
14446        if test "$aix_use_runtimelinking" = yes; then
14447          shared_flag="$shared_flag "'${wl}-G'
14448        fi
14449      else
14450        # not using gcc
14451        if test "$host_cpu" = ia64; then
14452        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14453        # chokes on -Wl,-G. The following line is correct:
14454          shared_flag='-G'
14455        else
14456          if test "$aix_use_runtimelinking" = yes; then
14457            shared_flag='${wl}-G'
14458          else
14459            shared_flag='${wl}-bM:SRE'
14460          fi
14461        fi
14462      fi
14463
14464      # It seems that -bexpall does not export symbols beginning with
14465      # underscore (_), so it is better to generate a list of symbols to export.
14466      always_export_symbols_F77=yes
14467      if test "$aix_use_runtimelinking" = yes; then
14468        # Warning - without using the other runtime loading flags (-brtl),
14469        # -berok will link without error, but may produce a broken library.
14470        allow_undefined_flag_F77='-berok'
14471       # Determine the default libpath from the value encoded in an empty executable.
14472       cat >conftest.$ac_ext <<_ACEOF
14473      program main
14474
14475      end
14476_ACEOF
14477rm -f conftest.$ac_objext conftest$ac_exeext
14478if { (ac_try="$ac_link"
14479case "(($ac_try" in
14480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14481  *) ac_try_echo=$ac_try;;
14482esac
14483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14484  (eval "$ac_link") 2>conftest.er1
14485  ac_status=$?
14486  grep -v '^ *+' conftest.er1 >conftest.err
14487  rm -f conftest.er1
14488  cat conftest.err >&5
14489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490  (exit $ac_status); } && {
14491         test -z "$ac_f77_werror_flag" ||
14492         test ! -s conftest.err
14493       } && test -s conftest$ac_exeext &&
14494       $as_test_x conftest$ac_exeext; then
14495
14496aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14497}'`
14498# Check for a 64-bit object if we didn't find anything.
14499if 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; }
14500}'`; fi
14501else
14502  echo "$as_me: failed program was:" >&5
14503sed 's/^/| /' conftest.$ac_ext >&5
14504
14505
14506fi
14507
14508rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14509      conftest$ac_exeext conftest.$ac_ext
14510if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14511
14512       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14513        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14514       else
14515        if test "$host_cpu" = ia64; then
14516          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14517          allow_undefined_flag_F77="-z nodefs"
14518          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14519        else
14520         # Determine the default libpath from the value encoded in an empty executable.
14521         cat >conftest.$ac_ext <<_ACEOF
14522      program main
14523
14524      end
14525_ACEOF
14526rm -f conftest.$ac_objext conftest$ac_exeext
14527if { (ac_try="$ac_link"
14528case "(($ac_try" in
14529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14530  *) ac_try_echo=$ac_try;;
14531esac
14532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14533  (eval "$ac_link") 2>conftest.er1
14534  ac_status=$?
14535  grep -v '^ *+' conftest.er1 >conftest.err
14536  rm -f conftest.er1
14537  cat conftest.err >&5
14538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539  (exit $ac_status); } && {
14540         test -z "$ac_f77_werror_flag" ||
14541         test ! -s conftest.err
14542       } && test -s conftest$ac_exeext &&
14543       $as_test_x conftest$ac_exeext; then
14544
14545aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14546}'`
14547# Check for a 64-bit object if we didn't find anything.
14548if 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; }
14549}'`; fi
14550else
14551  echo "$as_me: failed program was:" >&5
14552sed 's/^/| /' conftest.$ac_ext >&5
14553
14554
14555fi
14556
14557rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14558      conftest$ac_exeext conftest.$ac_ext
14559if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14560
14561         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14562          # Warning - without using the other run time loading flags,
14563          # -berok will link without error, but may produce a broken library.
14564          no_undefined_flag_F77=' ${wl}-bernotok'
14565          allow_undefined_flag_F77=' ${wl}-berok'
14566          # Exported symbols can be pulled into shared objects from archives
14567          whole_archive_flag_spec_F77='$convenience'
14568          archive_cmds_need_lc_F77=yes
14569          # This is similar to how AIX traditionally builds its shared libraries.
14570          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14571        fi
14572      fi
14573      ;;
14574
14575    amigaos*)
14576      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14577      hardcode_libdir_flag_spec_F77='-L$libdir'
14578      hardcode_minus_L_F77=yes
14579      # see comment about different semantics on the GNU ld section
14580      ld_shlibs_F77=no
14581      ;;
14582
14583    bsdi[45]*)
14584      export_dynamic_flag_spec_F77=-rdynamic
14585      ;;
14586
14587    cygwin* | mingw* | pw32*)
14588      # When not using gcc, we currently assume that we are using
14589      # Microsoft Visual C++.
14590      # hardcode_libdir_flag_spec is actually meaningless, as there is
14591      # no search path for DLLs.
14592      hardcode_libdir_flag_spec_F77=' '
14593      allow_undefined_flag_F77=unsupported
14594      # Tell ltmain to make .lib files, not .a files.
14595      libext=lib
14596      # Tell ltmain to make .dll files, not .so files.
14597      shrext_cmds=".dll"
14598      # FIXME: Setting linknames here is a bad hack.
14599      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14600      # The linker will automatically build a .lib file if we build a DLL.
14601      old_archive_From_new_cmds_F77='true'
14602      # FIXME: Should let the user specify the lib program.
14603      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14604      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14605      enable_shared_with_static_runtimes_F77=yes
14606      ;;
14607
14608    darwin* | rhapsody*)
14609      case $host_os in
14610        rhapsody* | darwin1.[012])
14611         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14612         ;;
14613       *) # Darwin 1.3 on
14614         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14615           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14616         else
14617           case ${MACOSX_DEPLOYMENT_TARGET} in
14618             10.[012])
14619               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14620               ;;
14621             10.*)
14622               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14623               ;;
14624           esac
14625         fi
14626         ;;
14627      esac
14628      archive_cmds_need_lc_F77=no
14629      hardcode_direct_F77=no
14630      hardcode_automatic_F77=yes
14631      hardcode_shlibpath_var_F77=unsupported
14632      whole_archive_flag_spec_F77=''
14633      link_all_deplibs_F77=yes
14634    if test "$GCC" = yes ; then
14635        output_verbose_link_cmd='echo'
14636        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14637      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14638      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14639      archive_expsym_cmds_F77='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}'
14640      module_expsym_cmds_F77='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}'
14641    else
14642      case $cc_basename in
14643        xlc*)
14644         output_verbose_link_cmd='echo'
14645         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14646         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14647          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14648         archive_expsym_cmds_F77='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}'
14649          module_expsym_cmds_F77='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}'
14650          ;;
14651       *)
14652         ld_shlibs_F77=no
14653          ;;
14654      esac
14655    fi
14656      ;;
14657
14658    dgux*)
14659      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14660      hardcode_libdir_flag_spec_F77='-L$libdir'
14661      hardcode_shlibpath_var_F77=no
14662      ;;
14663
14664    freebsd1*)
14665      ld_shlibs_F77=no
14666      ;;
14667
14668    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14669    # support.  Future versions do this automatically, but an explicit c++rt0.o
14670    # does not break anything, and helps significantly (at the cost of a little
14671    # extra space).
14672    freebsd2.2*)
14673      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14674      hardcode_libdir_flag_spec_F77='-R$libdir'
14675      hardcode_direct_F77=yes
14676      hardcode_shlibpath_var_F77=no
14677      ;;
14678
14679    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14680    freebsd2*)
14681      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14682      hardcode_direct_F77=yes
14683      hardcode_minus_L_F77=yes
14684      hardcode_shlibpath_var_F77=no
14685      ;;
14686
14687    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14688    freebsd* | dragonfly*)
14689      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14690      hardcode_libdir_flag_spec_F77='-R$libdir'
14691      hardcode_direct_F77=yes
14692      hardcode_shlibpath_var_F77=no
14693      ;;
14694
14695    hpux9*)
14696      if test "$GCC" = yes; then
14697        archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14698      else
14699        archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14700      fi
14701      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14702      hardcode_libdir_separator_F77=:
14703      hardcode_direct_F77=yes
14704
14705      # hardcode_minus_L: Not really in the search PATH,
14706      # but as the default location of the library.
14707      hardcode_minus_L_F77=yes
14708      export_dynamic_flag_spec_F77='${wl}-E'
14709      ;;
14710
14711    hpux10*)
14712      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14713        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14714      else
14715        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14716      fi
14717      if test "$with_gnu_ld" = no; then
14718        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14719        hardcode_libdir_separator_F77=:
14720
14721        hardcode_direct_F77=yes
14722        export_dynamic_flag_spec_F77='${wl}-E'
14723
14724        # hardcode_minus_L: Not really in the search PATH,
14725        # but as the default location of the library.
14726        hardcode_minus_L_F77=yes
14727      fi
14728      ;;
14729
14730    hpux11*)
14731      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14732        case $host_cpu in
14733        hppa*64*)
14734          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14735          ;;
14736        ia64*)
14737          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14738          ;;
14739        *)
14740          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14741          ;;
14742        esac
14743      else
14744        case $host_cpu in
14745        hppa*64*)
14746          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14747          ;;
14748        ia64*)
14749          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14750          ;;
14751        *)
14752          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14753          ;;
14754        esac
14755      fi
14756      if test "$with_gnu_ld" = no; then
14757        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14758        hardcode_libdir_separator_F77=:
14759
14760        case $host_cpu in
14761        hppa*64*|ia64*)
14762          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14763          hardcode_direct_F77=no
14764          hardcode_shlibpath_var_F77=no
14765          ;;
14766        *)
14767          hardcode_direct_F77=yes
14768          export_dynamic_flag_spec_F77='${wl}-E'
14769
14770          # hardcode_minus_L: Not really in the search PATH,
14771          # but as the default location of the library.
14772          hardcode_minus_L_F77=yes
14773          ;;
14774        esac
14775      fi
14776      ;;
14777
14778    irix5* | irix6* | nonstopux*)
14779      if test "$GCC" = yes; then
14780        archive_cmds_F77='$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'
14781      else
14782        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14783        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14784      fi
14785      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14786      hardcode_libdir_separator_F77=:
14787      link_all_deplibs_F77=yes
14788      ;;
14789
14790    netbsd* | netbsdelf*-gnu)
14791      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14792        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14793      else
14794        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14795      fi
14796      hardcode_libdir_flag_spec_F77='-R$libdir'
14797      hardcode_direct_F77=yes
14798      hardcode_shlibpath_var_F77=no
14799      ;;
14800
14801    newsos6)
14802      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14803      hardcode_direct_F77=yes
14804      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14805      hardcode_libdir_separator_F77=:
14806      hardcode_shlibpath_var_F77=no
14807      ;;
14808
14809    openbsd*)
14810      hardcode_direct_F77=yes
14811      hardcode_shlibpath_var_F77=no
14812      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14813        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14814        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14815        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14816        export_dynamic_flag_spec_F77='${wl}-E'
14817      else
14818       case $host_os in
14819         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14820           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14821           hardcode_libdir_flag_spec_F77='-R$libdir'
14822           ;;
14823         *)
14824           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14825           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14826           ;;
14827       esac
14828      fi
14829      ;;
14830
14831    os2*)
14832      hardcode_libdir_flag_spec_F77='-L$libdir'
14833      hardcode_minus_L_F77=yes
14834      allow_undefined_flag_F77=unsupported
14835      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14836      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14837      ;;
14838
14839    osf3*)
14840      if test "$GCC" = yes; then
14841        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14842        archive_cmds_F77='$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'
14843      else
14844        allow_undefined_flag_F77=' -expect_unresolved \*'
14845        archive_cmds_F77='$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'
14846      fi
14847      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14848      hardcode_libdir_separator_F77=:
14849      ;;
14850
14851    osf4* | osf5*)      # as osf3* with the addition of -msym flag
14852      if test "$GCC" = yes; then
14853        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14854        archive_cmds_F77='$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'
14855        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14856      else
14857        allow_undefined_flag_F77=' -expect_unresolved \*'
14858        archive_cmds_F77='$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'
14859        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14860        $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'
14861
14862        # Both c and cxx compiler support -rpath directly
14863        hardcode_libdir_flag_spec_F77='-rpath $libdir'
14864      fi
14865      hardcode_libdir_separator_F77=:
14866      ;;
14867
14868    solaris*)
14869      no_undefined_flag_F77=' -z text'
14870      if test "$GCC" = yes; then
14871        wlarc='${wl}'
14872        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14873        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14874          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14875      else
14876        wlarc=''
14877        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14878        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14879        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14880      fi
14881      hardcode_libdir_flag_spec_F77='-R$libdir'
14882      hardcode_shlibpath_var_F77=no
14883      case $host_os in
14884      solaris2.[0-5] | solaris2.[0-5].*) ;;
14885      *)
14886        # The compiler driver will combine linker options so we
14887        # cannot just pass the convience library names through
14888        # without $wl, iff we do not link with $LD.
14889        # Luckily, gcc supports the same syntax we need for Sun Studio.
14890        # Supported since Solaris 2.6 (maybe 2.5.1?)
14891        case $wlarc in
14892        '')
14893          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14894        *)
14895          whole_archive_flag_spec_F77='${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' ;;
14896        esac ;;
14897      esac
14898      link_all_deplibs_F77=yes
14899      ;;
14900
14901    sunos4*)
14902      if test "x$host_vendor" = xsequent; then
14903        # Use $CC to link under sequent, because it throws in some extra .o
14904        # files that make .init and .fini sections work.
14905        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14906      else
14907        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14908      fi
14909      hardcode_libdir_flag_spec_F77='-L$libdir'
14910      hardcode_direct_F77=yes
14911      hardcode_minus_L_F77=yes
14912      hardcode_shlibpath_var_F77=no
14913      ;;
14914
14915    sysv4)
14916      case $host_vendor in
14917        sni)
14918          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14919          hardcode_direct_F77=yes # is this really true???
14920        ;;
14921        siemens)
14922          ## LD is ld it makes a PLAMLIB
14923          ## CC just makes a GrossModule.
14924          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14925          reload_cmds_F77='$CC -r -o $output$reload_objs'
14926          hardcode_direct_F77=no
14927        ;;
14928        motorola)
14929          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14930          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14931        ;;
14932      esac
14933      runpath_var='LD_RUN_PATH'
14934      hardcode_shlibpath_var_F77=no
14935      ;;
14936
14937    sysv4.3*)
14938      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14939      hardcode_shlibpath_var_F77=no
14940      export_dynamic_flag_spec_F77='-Bexport'
14941      ;;
14942
14943    sysv4*MP*)
14944      if test -d /usr/nec; then
14945        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14946        hardcode_shlibpath_var_F77=no
14947        runpath_var=LD_RUN_PATH
14948        hardcode_runpath_var=yes
14949        ld_shlibs_F77=yes
14950      fi
14951      ;;
14952
14953    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14954      no_undefined_flag_F77='${wl}-z,text'
14955      archive_cmds_need_lc_F77=no
14956      hardcode_shlibpath_var_F77=no
14957      runpath_var='LD_RUN_PATH'
14958
14959      if test "$GCC" = yes; then
14960        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14961        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14962      else
14963        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14964        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14965      fi
14966      ;;
14967
14968    sysv5* | sco3.2v5* | sco5v6*)
14969      # Note: We can NOT use -z defs as we might desire, because we do not
14970      # link with -lc, and that would cause any symbols used from libc to
14971      # always be unresolved, which means just about no library would
14972      # ever link correctly.  If we're not using GNU ld we use -z text
14973      # though, which does catch some bad symbols but isn't as heavy-handed
14974      # as -z defs.
14975      no_undefined_flag_F77='${wl}-z,text'
14976      allow_undefined_flag_F77='${wl}-z,nodefs'
14977      archive_cmds_need_lc_F77=no
14978      hardcode_shlibpath_var_F77=no
14979      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14980      hardcode_libdir_separator_F77=':'
14981      link_all_deplibs_F77=yes
14982      export_dynamic_flag_spec_F77='${wl}-Bexport'
14983      runpath_var='LD_RUN_PATH'
14984
14985      if test "$GCC" = yes; then
14986        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14987        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14988      else
14989        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14990        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14991      fi
14992      ;;
14993
14994    uts4*)
14995      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14996      hardcode_libdir_flag_spec_F77='-L$libdir'
14997      hardcode_shlibpath_var_F77=no
14998      ;;
14999
15000    *)
15001      ld_shlibs_F77=no
15002      ;;
15003    esac
15004  fi
15005
15006{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15007echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15008test "$ld_shlibs_F77" = no && can_build_shared=no
15009
15010#
15011# Do we need to explicitly link libc?
15012#
15013case "x$archive_cmds_need_lc_F77" in
15014x|xyes)
15015  # Assume -lc should be added
15016  archive_cmds_need_lc_F77=yes
15017
15018  if test "$enable_shared" = yes && test "$GCC" = yes; then
15019    case $archive_cmds_F77 in
15020    *'~'*)
15021      # FIXME: we may have to deal with multi-command sequences.
15022      ;;
15023    '$CC '*)
15024      # Test whether the compiler implicitly links with -lc since on some
15025      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15026      # to ld, don't add -lc before -lgcc.
15027      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15028echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15029      $rm conftest*
15030      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15031
15032      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15033  (eval $ac_compile) 2>&5
15034  ac_status=$?
15035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036  (exit $ac_status); } 2>conftest.err; then
15037        soname=conftest
15038        lib=conftest
15039        libobjs=conftest.$ac_objext
15040        deplibs=
15041        wl=$lt_prog_compiler_wl_F77
15042        pic_flag=$lt_prog_compiler_pic_F77
15043        compiler_flags=-v
15044        linker_flags=-v
15045        verstring=
15046        output_objdir=.
15047        libname=conftest
15048        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15049        allow_undefined_flag_F77=
15050        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15051  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15052  ac_status=$?
15053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054  (exit $ac_status); }
15055        then
15056          archive_cmds_need_lc_F77=no
15057        else
15058          archive_cmds_need_lc_F77=yes
15059        fi
15060        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15061      else
15062        cat conftest.err 1>&5
15063      fi
15064      $rm conftest*
15065      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15066echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15067      ;;
15068    esac
15069  fi
15070  ;;
15071esac
15072
15073{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15074echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15075library_names_spec=
15076libname_spec='lib$name'
15077soname_spec=
15078shrext_cmds=".so"
15079postinstall_cmds=
15080postuninstall_cmds=
15081finish_cmds=
15082finish_eval=
15083shlibpath_var=
15084shlibpath_overrides_runpath=unknown
15085version_type=none
15086dynamic_linker="$host_os ld.so"
15087sys_lib_dlsearch_path_spec="/lib /usr/lib"
15088if test "$GCC" = yes; then
15089  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15090  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15091    # if the path contains ";" then we assume it to be the separator
15092    # otherwise default to the standard path separator (i.e. ":") - it is
15093    # assumed that no part of a normal pathname contains ";" but that should
15094    # okay in the real world where ";" in dirpaths is itself problematic.
15095    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15096  else
15097    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15098  fi
15099else
15100  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15101fi
15102need_lib_prefix=unknown
15103hardcode_into_libs=no
15104
15105# when you set need_version to no, make sure it does not cause -set_version
15106# flags to be left without arguments
15107need_version=unknown
15108
15109case $host_os in
15110aix3*)
15111  version_type=linux
15112  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15113  shlibpath_var=LIBPATH
15114
15115  # AIX 3 has no versioning support, so we append a major version to the name.
15116  soname_spec='${libname}${release}${shared_ext}$major'
15117  ;;
15118
15119aix4* | aix5*)
15120  version_type=linux
15121  need_lib_prefix=no
15122  need_version=no
15123  hardcode_into_libs=yes
15124  if test "$host_cpu" = ia64; then
15125    # AIX 5 supports IA64
15126    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15127    shlibpath_var=LD_LIBRARY_PATH
15128  else
15129    # With GCC up to 2.95.x, collect2 would create an import file
15130    # for dependence libraries.  The import file would start with
15131    # the line `#! .'.  This would cause the generated library to
15132    # depend on `.', always an invalid library.  This was fixed in
15133    # development snapshots of GCC prior to 3.0.
15134    case $host_os in
15135      aix4 | aix4.[01] | aix4.[01].*)
15136      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15137           echo ' yes '
15138           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15139        :
15140      else
15141        can_build_shared=no
15142      fi
15143      ;;
15144    esac
15145    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15146    # soname into executable. Probably we can add versioning support to
15147    # collect2, so additional links can be useful in future.
15148    if test "$aix_use_runtimelinking" = yes; then
15149      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15150      # instead of lib<name>.a to let people know that these are not
15151      # typical AIX shared libraries.
15152      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15153    else
15154      # We preserve .a as extension for shared libraries through AIX4.2
15155      # and later when we are not doing run time linking.
15156      library_names_spec='${libname}${release}.a $libname.a'
15157      soname_spec='${libname}${release}${shared_ext}$major'
15158    fi
15159    shlibpath_var=LIBPATH
15160  fi
15161  ;;
15162
15163amigaos*)
15164  library_names_spec='$libname.ixlibrary $libname.a'
15165  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15166  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'
15167  ;;
15168
15169beos*)
15170  library_names_spec='${libname}${shared_ext}'
15171  dynamic_linker="$host_os ld.so"
15172  shlibpath_var=LIBRARY_PATH
15173  ;;
15174
15175bsdi[45]*)
15176  version_type=linux
15177  need_version=no
15178  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15179  soname_spec='${libname}${release}${shared_ext}$major'
15180  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15181  shlibpath_var=LD_LIBRARY_PATH
15182  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15183  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15184  # the default ld.so.conf also contains /usr/contrib/lib and
15185  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15186  # libtool to hard-code these into programs
15187  ;;
15188
15189cygwin* | mingw* | pw32*)
15190  version_type=windows
15191  shrext_cmds=".dll"
15192  need_version=no
15193  need_lib_prefix=no
15194
15195  case $GCC,$host_os in
15196  yes,cygwin* | yes,mingw* | yes,pw32*)
15197    library_names_spec='$libname.dll.a'
15198    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15199    postinstall_cmds='base_file=`basename \${file}`~
15200      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15201      dldir=$destdir/`dirname \$dlpath`~
15202      test -d \$dldir || mkdir -p \$dldir~
15203      $install_prog $dir/$dlname \$dldir/$dlname~
15204      chmod a+x \$dldir/$dlname'
15205    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15206      dlpath=$dir/\$dldll~
15207       $rm \$dlpath'
15208    shlibpath_overrides_runpath=yes
15209
15210    case $host_os in
15211    cygwin*)
15212      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15213      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15214      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15215      ;;
15216    mingw*)
15217      # MinGW DLLs use traditional 'lib' prefix
15218      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15219      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15220      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15221        # It is most probably a Windows format PATH printed by
15222        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15223        # path with ; separators, and with drive letters. We can handle the
15224        # drive letters (cygwin fileutils understands them), so leave them,
15225        # especially as we might pass files found there to a mingw objdump,
15226        # which wouldn't understand a cygwinified path. Ahh.
15227        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15228      else
15229        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15230      fi
15231      ;;
15232    pw32*)
15233      # pw32 DLLs use 'pw' prefix rather than 'lib'
15234      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15235      ;;
15236    esac
15237    ;;
15238
15239  *)
15240    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15241    ;;
15242  esac
15243  dynamic_linker='Win32 ld.exe'
15244  # FIXME: first we should search . and the directory the executable is in
15245  shlibpath_var=PATH
15246  ;;
15247
15248darwin* | rhapsody*)
15249  dynamic_linker="$host_os dyld"
15250  version_type=darwin
15251  need_lib_prefix=no
15252  need_version=no
15253  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15254  soname_spec='${libname}${release}${major}$shared_ext'
15255  shlibpath_overrides_runpath=yes
15256  shlibpath_var=DYLD_LIBRARY_PATH
15257  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15258  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15259  if test "$GCC" = yes; then
15260    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"`
15261  else
15262    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15263  fi
15264  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15265  ;;
15266
15267dgux*)
15268  version_type=linux
15269  need_lib_prefix=no
15270  need_version=no
15271  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15272  soname_spec='${libname}${release}${shared_ext}$major'
15273  shlibpath_var=LD_LIBRARY_PATH
15274  ;;
15275
15276freebsd1*)
15277  dynamic_linker=no
15278  ;;
15279
15280freebsd* | dragonfly*)
15281  # DragonFly does not have aout.  When/if they implement a new
15282  # versioning mechanism, adjust this.
15283  if test -x /usr/bin/objformat; then
15284    objformat=`/usr/bin/objformat`
15285  else
15286    case $host_os in
15287    freebsd[123]*) objformat=aout ;;
15288    *) objformat=elf ;;
15289    esac
15290  fi
15291  version_type=freebsd-$objformat
15292  case $version_type in
15293    freebsd-elf*)
15294      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15295      need_version=no
15296      need_lib_prefix=no
15297      ;;
15298    freebsd-*)
15299      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15300      need_version=yes
15301      ;;
15302  esac
15303  shlibpath_var=LD_LIBRARY_PATH
15304  case $host_os in
15305  freebsd2*)
15306    shlibpath_overrides_runpath=yes
15307    ;;
15308  freebsd3.[01]* | freebsdelf3.[01]*)
15309    shlibpath_overrides_runpath=yes
15310    hardcode_into_libs=yes
15311    ;;
15312  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15313  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15314    shlibpath_overrides_runpath=no
15315    hardcode_into_libs=yes
15316    ;;
15317  freebsd*) # from 4.6 on
15318    shlibpath_overrides_runpath=yes
15319    hardcode_into_libs=yes
15320    ;;
15321  esac
15322  ;;
15323
15324gnu*)
15325  version_type=linux
15326  need_lib_prefix=no
15327  need_version=no
15328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15329  soname_spec='${libname}${release}${shared_ext}$major'
15330  shlibpath_var=LD_LIBRARY_PATH
15331  hardcode_into_libs=yes
15332  ;;
15333
15334hpux9* | hpux10* | hpux11*)
15335  # Give a soname corresponding to the major version so that dld.sl refuses to
15336  # link against other versions.
15337  version_type=sunos
15338  need_lib_prefix=no
15339  need_version=no
15340  case $host_cpu in
15341  ia64*)
15342    shrext_cmds='.so'
15343    hardcode_into_libs=yes
15344    dynamic_linker="$host_os dld.so"
15345    shlibpath_var=LD_LIBRARY_PATH
15346    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15347    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15348    soname_spec='${libname}${release}${shared_ext}$major'
15349    if test "X$HPUX_IA64_MODE" = X32; then
15350      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15351    else
15352      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15353    fi
15354    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15355    ;;
15356   hppa*64*)
15357     shrext_cmds='.sl'
15358     hardcode_into_libs=yes
15359     dynamic_linker="$host_os dld.sl"
15360     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15361     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15362     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15363     soname_spec='${libname}${release}${shared_ext}$major'
15364     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15365     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15366     ;;
15367   *)
15368    shrext_cmds='.sl'
15369    dynamic_linker="$host_os dld.sl"
15370    shlibpath_var=SHLIB_PATH
15371    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15372    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15373    soname_spec='${libname}${release}${shared_ext}$major'
15374    ;;
15375  esac
15376  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15377  postinstall_cmds='chmod 555 $lib'
15378  ;;
15379
15380interix3*)
15381  version_type=linux
15382  need_lib_prefix=no
15383  need_version=no
15384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15385  soname_spec='${libname}${release}${shared_ext}$major'
15386  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15387  shlibpath_var=LD_LIBRARY_PATH
15388  shlibpath_overrides_runpath=no
15389  hardcode_into_libs=yes
15390  ;;
15391
15392irix5* | irix6* | nonstopux*)
15393  case $host_os in
15394    nonstopux*) version_type=nonstopux ;;
15395    *)
15396        if test "$lt_cv_prog_gnu_ld" = yes; then
15397                version_type=linux
15398        else
15399                version_type=irix
15400        fi ;;
15401  esac
15402  need_lib_prefix=no
15403  need_version=no
15404  soname_spec='${libname}${release}${shared_ext}$major'
15405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15406  case $host_os in
15407  irix5* | nonstopux*)
15408    libsuff= shlibsuff=
15409    ;;
15410  *)
15411    case $LD in # libtool.m4 will add one of these switches to LD
15412    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15413      libsuff= shlibsuff= libmagic=32-bit;;
15414    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15415      libsuff=32 shlibsuff=N32 libmagic=N32;;
15416    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15417      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15418    *) libsuff= shlibsuff= libmagic=never-match;;
15419    esac
15420    ;;
15421  esac
15422  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15423  shlibpath_overrides_runpath=no
15424  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15425  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15426  hardcode_into_libs=yes
15427  ;;
15428
15429# No shared lib support for Linux oldld, aout, or coff.
15430linux*oldld* | linux*aout* | linux*coff*)
15431  dynamic_linker=no
15432  ;;
15433
15434# This must be Linux ELF.
15435linux* | k*bsd*-gnu)
15436  version_type=linux
15437  need_lib_prefix=no
15438  need_version=no
15439  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15440  soname_spec='${libname}${release}${shared_ext}$major'
15441  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15442  shlibpath_var=LD_LIBRARY_PATH
15443  shlibpath_overrides_runpath=no
15444  # This implies no fast_install, which is unacceptable.
15445  # Some rework will be needed to allow for fast_install
15446  # before this can be enabled.
15447  hardcode_into_libs=yes
15448
15449  # Append ld.so.conf contents to the search path
15450  if test -f /etc/ld.so.conf; then
15451    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15452    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15453  fi
15454
15455  # We used to test for /lib/ld.so.1 and disable shared libraries on
15456  # powerpc, because MkLinux only supported shared libraries with the
15457  # GNU dynamic linker.  Since this was broken with cross compilers,
15458  # most powerpc-linux boxes support dynamic linking these days and
15459  # people can always --disable-shared, the test was removed, and we
15460  # assume the GNU/Linux dynamic linker is in use.
15461  dynamic_linker='GNU/Linux ld.so'
15462  ;;
15463
15464netbsdelf*-gnu)
15465  version_type=linux
15466  need_lib_prefix=no
15467  need_version=no
15468  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15469  soname_spec='${libname}${release}${shared_ext}$major'
15470  shlibpath_var=LD_LIBRARY_PATH
15471  shlibpath_overrides_runpath=no
15472  hardcode_into_libs=yes
15473  dynamic_linker='NetBSD ld.elf_so'
15474  ;;
15475
15476netbsd*)
15477  version_type=sunos
15478  need_lib_prefix=no
15479  need_version=no
15480  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15481    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15482    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15483    dynamic_linker='NetBSD (a.out) ld.so'
15484  else
15485    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15486    soname_spec='${libname}${release}${shared_ext}$major'
15487    dynamic_linker='NetBSD ld.elf_so'
15488  fi
15489  shlibpath_var=LD_LIBRARY_PATH
15490  shlibpath_overrides_runpath=yes
15491  hardcode_into_libs=yes
15492  ;;
15493
15494newsos6)
15495  version_type=linux
15496  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15497  shlibpath_var=LD_LIBRARY_PATH
15498  shlibpath_overrides_runpath=yes
15499  ;;
15500
15501nto-qnx*)
15502  version_type=linux
15503  need_lib_prefix=no
15504  need_version=no
15505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15506  soname_spec='${libname}${release}${shared_ext}$major'
15507  shlibpath_var=LD_LIBRARY_PATH
15508  shlibpath_overrides_runpath=yes
15509  ;;
15510
15511openbsd*)
15512  version_type=sunos
15513  sys_lib_dlsearch_path_spec="/usr/lib"
15514  need_lib_prefix=no
15515  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15516  case $host_os in
15517    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15518    *)                         need_version=no  ;;
15519  esac
15520  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15521  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15522  shlibpath_var=LD_LIBRARY_PATH
15523  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15524    case $host_os in
15525      openbsd2.[89] | openbsd2.[89].*)
15526        shlibpath_overrides_runpath=no
15527        ;;
15528      *)
15529        shlibpath_overrides_runpath=yes
15530        ;;
15531      esac
15532  else
15533    shlibpath_overrides_runpath=yes
15534  fi
15535  ;;
15536
15537os2*)
15538  libname_spec='$name'
15539  shrext_cmds=".dll"
15540  need_lib_prefix=no
15541  library_names_spec='$libname${shared_ext} $libname.a'
15542  dynamic_linker='OS/2 ld.exe'
15543  shlibpath_var=LIBPATH
15544  ;;
15545
15546osf3* | osf4* | osf5*)
15547  version_type=osf
15548  need_lib_prefix=no
15549  need_version=no
15550  soname_spec='${libname}${release}${shared_ext}$major'
15551  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15552  shlibpath_var=LD_LIBRARY_PATH
15553  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15554  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15555  ;;
15556
15557solaris*)
15558  version_type=linux
15559  need_lib_prefix=no
15560  need_version=no
15561  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15562  soname_spec='${libname}${release}${shared_ext}$major'
15563  shlibpath_var=LD_LIBRARY_PATH
15564  shlibpath_overrides_runpath=yes
15565  hardcode_into_libs=yes
15566  # ldd complains unless libraries are executable
15567  postinstall_cmds='chmod +x $lib'
15568  ;;
15569
15570sunos4*)
15571  version_type=sunos
15572  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15573  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15574  shlibpath_var=LD_LIBRARY_PATH
15575  shlibpath_overrides_runpath=yes
15576  if test "$with_gnu_ld" = yes; then
15577    need_lib_prefix=no
15578  fi
15579  need_version=yes
15580  ;;
15581
15582sysv4 | sysv4.3*)
15583  version_type=linux
15584  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15585  soname_spec='${libname}${release}${shared_ext}$major'
15586  shlibpath_var=LD_LIBRARY_PATH
15587  case $host_vendor in
15588    sni)
15589      shlibpath_overrides_runpath=no
15590      need_lib_prefix=no
15591      export_dynamic_flag_spec='${wl}-Blargedynsym'
15592      runpath_var=LD_RUN_PATH
15593      ;;
15594    siemens)
15595      need_lib_prefix=no
15596      ;;
15597    motorola)
15598      need_lib_prefix=no
15599      need_version=no
15600      shlibpath_overrides_runpath=no
15601      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15602      ;;
15603  esac
15604  ;;
15605
15606sysv4*MP*)
15607  if test -d /usr/nec ;then
15608    version_type=linux
15609    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15610    soname_spec='$libname${shared_ext}.$major'
15611    shlibpath_var=LD_LIBRARY_PATH
15612  fi
15613  ;;
15614
15615sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15616  version_type=freebsd-elf
15617  need_lib_prefix=no
15618  need_version=no
15619  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15620  soname_spec='${libname}${release}${shared_ext}$major'
15621  shlibpath_var=LD_LIBRARY_PATH
15622  hardcode_into_libs=yes
15623  if test "$with_gnu_ld" = yes; then
15624    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15625    shlibpath_overrides_runpath=no
15626  else
15627    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15628    shlibpath_overrides_runpath=yes
15629    case $host_os in
15630      sco3.2v5*)
15631        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15632        ;;
15633    esac
15634  fi
15635  sys_lib_dlsearch_path_spec='/usr/lib'
15636  ;;
15637
15638uts4*)
15639  version_type=linux
15640  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15641  soname_spec='${libname}${release}${shared_ext}$major'
15642  shlibpath_var=LD_LIBRARY_PATH
15643  ;;
15644
15645*)
15646  dynamic_linker=no
15647  ;;
15648esac
15649{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15650echo "${ECHO_T}$dynamic_linker" >&6; }
15651test "$dynamic_linker" = no && can_build_shared=no
15652
15653variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15654if test "$GCC" = yes; then
15655  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15656fi
15657
15658{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15659echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15660hardcode_action_F77=
15661if test -n "$hardcode_libdir_flag_spec_F77" || \
15662   test -n "$runpath_var_F77" || \
15663   test "X$hardcode_automatic_F77" = "Xyes" ; then
15664
15665  # We can hardcode non-existant directories.
15666  if test "$hardcode_direct_F77" != no &&
15667     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15668     # have to relink, otherwise we might link with an installed library
15669     # when we should be linking with a yet-to-be-installed one
15670     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15671     test "$hardcode_minus_L_F77" != no; then
15672    # Linking always hardcodes the temporary library directory.
15673    hardcode_action_F77=relink
15674  else
15675    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15676    hardcode_action_F77=immediate
15677  fi
15678else
15679  # We cannot hardcode anything, or else we can only hardcode existing
15680  # directories.
15681  hardcode_action_F77=unsupported
15682fi
15683{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15684echo "${ECHO_T}$hardcode_action_F77" >&6; }
15685
15686if test "$hardcode_action_F77" = relink; then
15687  # Fast installation is not supported
15688  enable_fast_install=no
15689elif test "$shlibpath_overrides_runpath" = yes ||
15690     test "$enable_shared" = no; then
15691  # Fast installation is not necessary
15692  enable_fast_install=needless
15693fi
15694
15695
15696# The else clause should only fire when bootstrapping the
15697# libtool distribution, otherwise you forgot to ship ltmain.sh
15698# with your package, and you will get complaints that there are
15699# no rules to generate ltmain.sh.
15700if test -f "$ltmain"; then
15701  # See if we are running on zsh, and set the options which allow our commands through
15702  # without removal of \ escapes.
15703  if test -n "${ZSH_VERSION+set}" ; then
15704    setopt NO_GLOB_SUBST
15705  fi
15706  # Now quote all the things that may contain metacharacters while being
15707  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15708  # variables and quote the copies for generation of the libtool script.
15709  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15710    SED SHELL STRIP \
15711    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15712    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15713    deplibs_check_method reload_flag reload_cmds need_locks \
15714    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15715    lt_cv_sys_global_symbol_to_c_name_address \
15716    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15717    old_postinstall_cmds old_postuninstall_cmds \
15718    compiler_F77 \
15719    CC_F77 \
15720    LD_F77 \
15721    lt_prog_compiler_wl_F77 \
15722    lt_prog_compiler_pic_F77 \
15723    lt_prog_compiler_static_F77 \
15724    lt_prog_compiler_no_builtin_flag_F77 \
15725    export_dynamic_flag_spec_F77 \
15726    thread_safe_flag_spec_F77 \
15727    whole_archive_flag_spec_F77 \
15728    enable_shared_with_static_runtimes_F77 \
15729    old_archive_cmds_F77 \
15730    old_archive_from_new_cmds_F77 \
15731    predep_objects_F77 \
15732    postdep_objects_F77 \
15733    predeps_F77 \
15734    postdeps_F77 \
15735    compiler_lib_search_path_F77 \
15736    archive_cmds_F77 \
15737    archive_expsym_cmds_F77 \
15738    postinstall_cmds_F77 \
15739    postuninstall_cmds_F77 \
15740    old_archive_from_expsyms_cmds_F77 \
15741    allow_undefined_flag_F77 \
15742    no_undefined_flag_F77 \
15743    export_symbols_cmds_F77 \
15744    hardcode_libdir_flag_spec_F77 \
15745    hardcode_libdir_flag_spec_ld_F77 \
15746    hardcode_libdir_separator_F77 \
15747    hardcode_automatic_F77 \
15748    module_cmds_F77 \
15749    module_expsym_cmds_F77 \
15750    lt_cv_prog_compiler_c_o_F77 \
15751    exclude_expsyms_F77 \
15752    include_expsyms_F77; do
15753
15754    case $var in
15755    old_archive_cmds_F77 | \
15756    old_archive_from_new_cmds_F77 | \
15757    archive_cmds_F77 | \
15758    archive_expsym_cmds_F77 | \
15759    module_cmds_F77 | \
15760    module_expsym_cmds_F77 | \
15761    old_archive_from_expsyms_cmds_F77 | \
15762    export_symbols_cmds_F77 | \
15763    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15764    postinstall_cmds | postuninstall_cmds | \
15765    old_postinstall_cmds | old_postuninstall_cmds | \
15766    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15767      # Double-quote double-evaled strings.
15768      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15769      ;;
15770    *)
15771      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15772      ;;
15773    esac
15774  done
15775
15776  case $lt_echo in
15777  *'\$0 --fallback-echo"')
15778    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15779    ;;
15780  esac
15781
15782cfgfile="$ofile"
15783
15784  cat <<__EOF__ >> "$cfgfile"
15785# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15786
15787# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15788
15789# Shell to use when invoking shell scripts.
15790SHELL=$lt_SHELL
15791
15792# Whether or not to build shared libraries.
15793build_libtool_libs=$enable_shared
15794
15795# Whether or not to build static libraries.
15796build_old_libs=$enable_static
15797
15798# Whether or not to add -lc for building shared libraries.
15799build_libtool_need_lc=$archive_cmds_need_lc_F77
15800
15801# Whether or not to disallow shared libs when runtime libs are static
15802allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15803
15804# Whether or not to optimize for fast installation.
15805fast_install=$enable_fast_install
15806
15807# The host system.
15808host_alias=$host_alias
15809host=$host
15810host_os=$host_os
15811
15812# The build system.
15813build_alias=$build_alias
15814build=$build
15815build_os=$build_os
15816
15817# An echo program that does not interpret backslashes.
15818echo=$lt_echo
15819
15820# The archiver.
15821AR=$lt_AR
15822AR_FLAGS=$lt_AR_FLAGS
15823
15824# A C compiler.
15825LTCC=$lt_LTCC
15826
15827# LTCC compiler flags.
15828LTCFLAGS=$lt_LTCFLAGS
15829
15830# A language-specific compiler.
15831CC=$lt_compiler_F77
15832
15833# Is the compiler the GNU C compiler?
15834with_gcc=$GCC_F77
15835
15836# An ERE matcher.
15837EGREP=$lt_EGREP
15838
15839# The linker used to build libraries.
15840LD=$lt_LD_F77
15841
15842# Whether we need hard or soft links.
15843LN_S=$lt_LN_S
15844
15845# A BSD-compatible nm program.
15846NM=$lt_NM
15847
15848# A symbol stripping program
15849STRIP=$lt_STRIP
15850
15851# Used to examine libraries when file_magic_cmd begins "file"
15852MAGIC_CMD=$MAGIC_CMD
15853
15854# Used on cygwin: DLL creation program.
15855DLLTOOL="$DLLTOOL"
15856
15857# Used on cygwin: object dumper.
15858OBJDUMP="$OBJDUMP"
15859
15860# Used on cygwin: assembler.
15861AS="$AS"
15862
15863# The name of the directory that contains temporary libtool files.
15864objdir=$objdir
15865
15866# How to create reloadable object files.
15867reload_flag=$lt_reload_flag
15868reload_cmds=$lt_reload_cmds
15869
15870# How to pass a linker flag through the compiler.
15871wl=$lt_lt_prog_compiler_wl_F77
15872
15873# Object file suffix (normally "o").
15874objext="$ac_objext"
15875
15876# Old archive suffix (normally "a").
15877libext="$libext"
15878
15879# Shared library suffix (normally ".so").
15880shrext_cmds='$shrext_cmds'
15881
15882# Executable file suffix (normally "").
15883exeext="$exeext"
15884
15885# Additional compiler flags for building library objects.
15886pic_flag=$lt_lt_prog_compiler_pic_F77
15887pic_mode=$pic_mode
15888
15889# What is the maximum length of a command?
15890max_cmd_len=$lt_cv_sys_max_cmd_len
15891
15892# Does compiler simultaneously support -c and -o options?
15893compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15894
15895# Must we lock files when doing compilation?
15896need_locks=$lt_need_locks
15897
15898# Do we need the lib prefix for modules?
15899need_lib_prefix=$need_lib_prefix
15900
15901# Do we need a version for libraries?
15902need_version=$need_version
15903
15904# Whether dlopen is supported.
15905dlopen_support=$enable_dlopen
15906
15907# Whether dlopen of programs is supported.
15908dlopen_self=$enable_dlopen_self
15909
15910# Whether dlopen of statically linked programs is supported.
15911dlopen_self_static=$enable_dlopen_self_static
15912
15913# Compiler flag to prevent dynamic linking.
15914link_static_flag=$lt_lt_prog_compiler_static_F77
15915
15916# Compiler flag to turn off builtin functions.
15917no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15918
15919# Compiler flag to allow reflexive dlopens.
15920export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15921
15922# Compiler flag to generate shared objects directly from archives.
15923whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15924
15925# Compiler flag to generate thread-safe objects.
15926thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15927
15928# Library versioning type.
15929version_type=$version_type
15930
15931# Format of library name prefix.
15932libname_spec=$lt_libname_spec
15933
15934# List of archive names.  First name is the real one, the rest are links.
15935# The last name is the one that the linker finds with -lNAME.
15936library_names_spec=$lt_library_names_spec
15937
15938# The coded name of the library, if different from the real name.
15939soname_spec=$lt_soname_spec
15940
15941# Commands used to build and install an old-style archive.
15942RANLIB=$lt_RANLIB
15943old_archive_cmds=$lt_old_archive_cmds_F77
15944old_postinstall_cmds=$lt_old_postinstall_cmds
15945old_postuninstall_cmds=$lt_old_postuninstall_cmds
15946
15947# Create an old-style archive from a shared archive.
15948old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15949
15950# Create a temporary old-style archive to link instead of a shared archive.
15951old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15952
15953# Commands used to build and install a shared archive.
15954archive_cmds=$lt_archive_cmds_F77
15955archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15956postinstall_cmds=$lt_postinstall_cmds
15957postuninstall_cmds=$lt_postuninstall_cmds
15958
15959# Commands used to build a loadable module (assumed same as above if empty)
15960module_cmds=$lt_module_cmds_F77
15961module_expsym_cmds=$lt_module_expsym_cmds_F77
15962
15963# Commands to strip libraries.
15964old_striplib=$lt_old_striplib
15965striplib=$lt_striplib
15966
15967# Dependencies to place before the objects being linked to create a
15968# shared library.
15969predep_objects=$lt_predep_objects_F77
15970
15971# Dependencies to place after the objects being linked to create a
15972# shared library.
15973postdep_objects=$lt_postdep_objects_F77
15974
15975# Dependencies to place before the objects being linked to create a
15976# shared library.
15977predeps=$lt_predeps_F77
15978
15979# Dependencies to place after the objects being linked to create a
15980# shared library.
15981postdeps=$lt_postdeps_F77
15982
15983# The library search path used internally by the compiler when linking
15984# a shared library.
15985compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15986
15987# Method to check whether dependent libraries are shared objects.
15988deplibs_check_method=$lt_deplibs_check_method
15989
15990# Command to use when deplibs_check_method == file_magic.
15991file_magic_cmd=$lt_file_magic_cmd
15992
15993# Flag that allows shared libraries with undefined symbols to be built.
15994allow_undefined_flag=$lt_allow_undefined_flag_F77
15995
15996# Flag that forces no undefined symbols.
15997no_undefined_flag=$lt_no_undefined_flag_F77
15998
15999# Commands used to finish a libtool library installation in a directory.
16000finish_cmds=$lt_finish_cmds
16001
16002# Same as above, but a single script fragment to be evaled but not shown.
16003finish_eval=$lt_finish_eval
16004
16005# Take the output of nm and produce a listing of raw symbols and C names.
16006global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16007
16008# Transform the output of nm in a proper C declaration
16009global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16010
16011# Transform the output of nm in a C name address pair
16012global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16013
16014# This is the shared library runtime path variable.
16015runpath_var=$runpath_var
16016
16017# This is the shared library path variable.
16018shlibpath_var=$shlibpath_var
16019
16020# Is shlibpath searched before the hard-coded library search path?
16021shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16022
16023# How to hardcode a shared library path into an executable.
16024hardcode_action=$hardcode_action_F77
16025
16026# Whether we should hardcode library paths into libraries.
16027hardcode_into_libs=$hardcode_into_libs
16028
16029# Flag to hardcode \$libdir into a binary during linking.
16030# This must work even if \$libdir does not exist.
16031hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16032
16033# If ld is used when linking, flag to hardcode \$libdir into
16034# a binary during linking. This must work even if \$libdir does
16035# not exist.
16036hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16037
16038# Whether we need a single -rpath flag with a separated argument.
16039hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16040
16041# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16042# resulting binary.
16043hardcode_direct=$hardcode_direct_F77
16044
16045# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16046# resulting binary.
16047hardcode_minus_L=$hardcode_minus_L_F77
16048
16049# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16050# the resulting binary.
16051hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16052
16053# Set to yes if building a shared library automatically hardcodes DIR into the library
16054# and all subsequent libraries and executables linked against it.
16055hardcode_automatic=$hardcode_automatic_F77
16056
16057# Variables whose values should be saved in libtool wrapper scripts and
16058# restored at relink time.
16059variables_saved_for_relink="$variables_saved_for_relink"
16060
16061# Whether libtool must link a program against all its dependency libraries.
16062link_all_deplibs=$link_all_deplibs_F77
16063
16064# Compile-time system search path for libraries
16065sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16066
16067# Run-time system search path for libraries
16068sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16069
16070# Fix the shell variable \$srcfile for the compiler.
16071fix_srcfile_path="$fix_srcfile_path_F77"
16072
16073# Set to yes if exported symbols are required.
16074always_export_symbols=$always_export_symbols_F77
16075
16076# The commands to list exported symbols.
16077export_symbols_cmds=$lt_export_symbols_cmds_F77
16078
16079# The commands to extract the exported symbol list from a shared archive.
16080extract_expsyms_cmds=$lt_extract_expsyms_cmds
16081
16082# Symbols that should not be listed in the preloaded symbols.
16083exclude_expsyms=$lt_exclude_expsyms_F77
16084
16085# Symbols that must always be exported.
16086include_expsyms=$lt_include_expsyms_F77
16087
16088# ### END LIBTOOL TAG CONFIG: $tagname
16089
16090__EOF__
16091
16092
16093else
16094  # If there is no Makefile yet, we rely on a make rule to execute
16095  # `config.status --recheck' to rerun these tests and create the
16096  # libtool script then.
16097  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16098  if test -f "$ltmain_in"; then
16099    test -f Makefile && make "$ltmain"
16100  fi
16101fi
16102
16103
16104ac_ext=c
16105ac_cpp='$CPP $CPPFLAGS'
16106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16108ac_compiler_gnu=$ac_cv_c_compiler_gnu
16109
16110CC="$lt_save_CC"
16111
16112        else
16113          tagname=""
16114        fi
16115        ;;
16116
16117      GCJ)
16118        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16119
16120
16121# Source file extension for Java test sources.
16122ac_ext=java
16123
16124# Object file extension for compiled Java test sources.
16125objext=o
16126objext_GCJ=$objext
16127
16128# Code to be used in simple compile tests
16129lt_simple_compile_test_code="class foo {}\n"
16130
16131# Code to be used in simple link tests
16132lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16133
16134# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16135
16136# If no C compiler was specified, use CC.
16137LTCC=${LTCC-"$CC"}
16138
16139# If no C compiler flags were specified, use CFLAGS.
16140LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16141
16142# Allow CC to be a program name with arguments.
16143compiler=$CC
16144
16145
16146# save warnings/boilerplate of simple test code
16147ac_outfile=conftest.$ac_objext
16148printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16149eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16150_lt_compiler_boilerplate=`cat conftest.err`
16151$rm conftest*
16152
16153ac_outfile=conftest.$ac_objext
16154printf "$lt_simple_link_test_code" >conftest.$ac_ext
16155eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16156_lt_linker_boilerplate=`cat conftest.err`
16157$rm conftest*
16158
16159
16160# Allow CC to be a program name with arguments.
16161lt_save_CC="$CC"
16162CC=${GCJ-"gcj"}
16163compiler=$CC
16164compiler_GCJ=$CC
16165for cc_temp in $compiler""; do
16166  case $cc_temp in
16167    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16168    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16169    \-*) ;;
16170    *) break;;
16171  esac
16172done
16173cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16174
16175
16176# GCJ did not exist at the time GCC didn't implicitly link libc in.
16177archive_cmds_need_lc_GCJ=no
16178
16179old_archive_cmds_GCJ=$old_archive_cmds
16180
16181
16182lt_prog_compiler_no_builtin_flag_GCJ=
16183
16184if test "$GCC" = yes; then
16185  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16186
16187
16188{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16189echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16190if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16191  echo $ECHO_N "(cached) $ECHO_C" >&6
16192else
16193  lt_cv_prog_compiler_rtti_exceptions=no
16194  ac_outfile=conftest.$ac_objext
16195   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16196   lt_compiler_flag="-fno-rtti -fno-exceptions"
16197   # Insert the option either (1) after the last *FLAGS variable, or
16198   # (2) before a word containing "conftest.", or (3) at the end.
16199   # Note that $ac_compile itself does not contain backslashes and begins
16200   # with a dollar sign (not a hyphen), so the echo should work correctly.
16201   # The option is referenced via a variable to avoid confusing sed.
16202   lt_compile=`echo "$ac_compile" | $SED \
16203   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16204   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16205   -e 's:$: $lt_compiler_flag:'`
16206   (eval echo "\"\$as_me:16206: $lt_compile\"" >&5)
16207   (eval "$lt_compile" 2>conftest.err)
16208   ac_status=$?
16209   cat conftest.err >&5
16210   echo "$as_me:16210: \$? = $ac_status" >&5
16211   if (exit $ac_status) && test -s "$ac_outfile"; then
16212     # The compiler can only warn and ignore the option if not recognized
16213     # So say no if there are warnings other than the usual output.
16214     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16215     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16216     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16217       lt_cv_prog_compiler_rtti_exceptions=yes
16218     fi
16219   fi
16220   $rm conftest*
16221
16222fi
16223{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16224echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16225
16226if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16227    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16228else
16229    :
16230fi
16231
16232fi
16233
16234lt_prog_compiler_wl_GCJ=
16235lt_prog_compiler_pic_GCJ=
16236lt_prog_compiler_static_GCJ=
16237
16238{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16239echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16240
16241  if test "$GCC" = yes; then
16242    lt_prog_compiler_wl_GCJ='-Wl,'
16243    lt_prog_compiler_static_GCJ='-static'
16244
16245    case $host_os in
16246      aix*)
16247      # All AIX code is PIC.
16248      if test "$host_cpu" = ia64; then
16249        # AIX 5 now supports IA64 processor
16250        lt_prog_compiler_static_GCJ='-Bstatic'
16251      fi
16252      ;;
16253
16254    amigaos*)
16255      # FIXME: we need at least 68020 code to build shared libraries, but
16256      # adding the `-m68020' flag to GCC prevents building anything better,
16257      # like `-m68040'.
16258      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16259      ;;
16260
16261    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16262      # PIC is the default for these OSes.
16263      ;;
16264
16265    mingw* | pw32* | os2*)
16266      # This hack is so that the source file can tell whether it is being
16267      # built for inclusion in a dll (and should export symbols for example).
16268      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16269      ;;
16270
16271    darwin* | rhapsody*)
16272      # PIC is the default on this platform
16273      # Common symbols not allowed in MH_DYLIB files
16274      lt_prog_compiler_pic_GCJ='-fno-common'
16275      ;;
16276
16277    interix3*)
16278      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16279      # Instead, we relocate shared libraries at runtime.
16280      ;;
16281
16282    msdosdjgpp*)
16283      # Just because we use GCC doesn't mean we suddenly get shared libraries
16284      # on systems that don't support them.
16285      lt_prog_compiler_can_build_shared_GCJ=no
16286      enable_shared=no
16287      ;;
16288
16289    sysv4*MP*)
16290      if test -d /usr/nec; then
16291        lt_prog_compiler_pic_GCJ=-Kconform_pic
16292      fi
16293      ;;
16294
16295    hpux*)
16296      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16297      # not for PA HP-UX.
16298      case $host_cpu in
16299      hppa*64*|ia64*)
16300        # +Z the default
16301        ;;
16302      *)
16303        lt_prog_compiler_pic_GCJ='-fPIC'
16304        ;;
16305      esac
16306      ;;
16307
16308    *)
16309      lt_prog_compiler_pic_GCJ='-fPIC'
16310      ;;
16311    esac
16312  else
16313    # PORTME Check for flag to pass linker flags through the system compiler.
16314    case $host_os in
16315    aix*)
16316      lt_prog_compiler_wl_GCJ='-Wl,'
16317      if test "$host_cpu" = ia64; then
16318        # AIX 5 now supports IA64 processor
16319        lt_prog_compiler_static_GCJ='-Bstatic'
16320      else
16321        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16322      fi
16323      ;;
16324      darwin*)
16325        # PIC is the default on this platform
16326        # Common symbols not allowed in MH_DYLIB files
16327       case $cc_basename in
16328         xlc*)
16329         lt_prog_compiler_pic_GCJ='-qnocommon'
16330         lt_prog_compiler_wl_GCJ='-Wl,'
16331         ;;
16332       esac
16333       ;;
16334
16335    mingw* | pw32* | os2*)
16336      # This hack is so that the source file can tell whether it is being
16337      # built for inclusion in a dll (and should export symbols for example).
16338      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16339      ;;
16340
16341    hpux9* | hpux10* | hpux11*)
16342      lt_prog_compiler_wl_GCJ='-Wl,'
16343      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16344      # not for PA HP-UX.
16345      case $host_cpu in
16346      hppa*64*|ia64*)
16347        # +Z the default
16348        ;;
16349      *)
16350        lt_prog_compiler_pic_GCJ='+Z'
16351        ;;
16352      esac
16353      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16354      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16355      ;;
16356
16357    irix5* | irix6* | nonstopux*)
16358      lt_prog_compiler_wl_GCJ='-Wl,'
16359      # PIC (with -KPIC) is the default.
16360      lt_prog_compiler_static_GCJ='-non_shared'
16361      ;;
16362
16363    newsos6)
16364      lt_prog_compiler_pic_GCJ='-KPIC'
16365      lt_prog_compiler_static_GCJ='-Bstatic'
16366      ;;
16367
16368    linux* | k*bsd*-gnu)
16369      case $cc_basename in
16370      icc* | ecc*)
16371        lt_prog_compiler_wl_GCJ='-Wl,'
16372        lt_prog_compiler_pic_GCJ='-KPIC'
16373        lt_prog_compiler_static_GCJ='-static'
16374        ;;
16375      pgcc* | pgf77* | pgf90* | pgf95*)
16376        # Portland Group compilers (*not* the Pentium gcc compiler,
16377        # which looks to be a dead project)
16378        lt_prog_compiler_wl_GCJ='-Wl,'
16379        lt_prog_compiler_pic_GCJ='-fpic'
16380        lt_prog_compiler_static_GCJ='-Bstatic'
16381        ;;
16382      ccc*)
16383        lt_prog_compiler_wl_GCJ='-Wl,'
16384        # All Alpha code is PIC.
16385        lt_prog_compiler_static_GCJ='-non_shared'
16386        ;;
16387      esac
16388      ;;
16389
16390    osf3* | osf4* | osf5*)
16391      lt_prog_compiler_wl_GCJ='-Wl,'
16392      # All OSF/1 code is PIC.
16393      lt_prog_compiler_static_GCJ='-non_shared'
16394      ;;
16395
16396    solaris*)
16397      lt_prog_compiler_pic_GCJ='-KPIC'
16398      lt_prog_compiler_static_GCJ='-Bstatic'
16399      case $cc_basename in
16400      f77* | f90* | f95*)
16401        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16402      *)
16403        lt_prog_compiler_wl_GCJ='-Wl,';;
16404      esac
16405      ;;
16406
16407    sunos4*)
16408      lt_prog_compiler_wl_GCJ='-Qoption ld '
16409      lt_prog_compiler_pic_GCJ='-PIC'
16410      lt_prog_compiler_static_GCJ='-Bstatic'
16411      ;;
16412
16413    sysv4 | sysv4.2uw2* | sysv4.3*)
16414      lt_prog_compiler_wl_GCJ='-Wl,'
16415      lt_prog_compiler_pic_GCJ='-KPIC'
16416      lt_prog_compiler_static_GCJ='-Bstatic'
16417      ;;
16418
16419    sysv4*MP*)
16420      if test -d /usr/nec ;then
16421        lt_prog_compiler_pic_GCJ='-Kconform_pic'
16422        lt_prog_compiler_static_GCJ='-Bstatic'
16423      fi
16424      ;;
16425
16426    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16427      lt_prog_compiler_wl_GCJ='-Wl,'
16428      lt_prog_compiler_pic_GCJ='-KPIC'
16429      lt_prog_compiler_static_GCJ='-Bstatic'
16430      ;;
16431
16432    unicos*)
16433      lt_prog_compiler_wl_GCJ='-Wl,'
16434      lt_prog_compiler_can_build_shared_GCJ=no
16435      ;;
16436
16437    uts4*)
16438      lt_prog_compiler_pic_GCJ='-pic'
16439      lt_prog_compiler_static_GCJ='-Bstatic'
16440      ;;
16441
16442    *)
16443      lt_prog_compiler_can_build_shared_GCJ=no
16444      ;;
16445    esac
16446  fi
16447
16448{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16449echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16450
16451#
16452# Check to make sure the PIC flag actually works.
16453#
16454if test -n "$lt_prog_compiler_pic_GCJ"; then
16455
16456{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16457echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16458if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16459  echo $ECHO_N "(cached) $ECHO_C" >&6
16460else
16461  lt_prog_compiler_pic_works_GCJ=no
16462  ac_outfile=conftest.$ac_objext
16463   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16464   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16465   # Insert the option either (1) after the last *FLAGS variable, or
16466   # (2) before a word containing "conftest.", or (3) at the end.
16467   # Note that $ac_compile itself does not contain backslashes and begins
16468   # with a dollar sign (not a hyphen), so the echo should work correctly.
16469   # The option is referenced via a variable to avoid confusing sed.
16470   lt_compile=`echo "$ac_compile" | $SED \
16471   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16472   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16473   -e 's:$: $lt_compiler_flag:'`
16474   (eval echo "\"\$as_me:16474: $lt_compile\"" >&5)
16475   (eval "$lt_compile" 2>conftest.err)
16476   ac_status=$?
16477   cat conftest.err >&5
16478   echo "$as_me:16478: \$? = $ac_status" >&5
16479   if (exit $ac_status) && test -s "$ac_outfile"; then
16480     # The compiler can only warn and ignore the option if not recognized
16481     # So say no if there are warnings other than the usual output.
16482     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16483     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16484     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16485       lt_prog_compiler_pic_works_GCJ=yes
16486     fi
16487   fi
16488   $rm conftest*
16489
16490fi
16491{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16492echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16493
16494if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16495    case $lt_prog_compiler_pic_GCJ in
16496     "" | " "*) ;;
16497     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16498     esac
16499else
16500    lt_prog_compiler_pic_GCJ=
16501     lt_prog_compiler_can_build_shared_GCJ=no
16502fi
16503
16504fi
16505case $host_os in
16506  # For platforms which do not support PIC, -DPIC is meaningless:
16507  *djgpp*)
16508    lt_prog_compiler_pic_GCJ=
16509    ;;
16510  *)
16511    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16512    ;;
16513esac
16514
16515#
16516# Check to make sure the static flag actually works.
16517#
16518wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16519{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16520echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16521if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16522  echo $ECHO_N "(cached) $ECHO_C" >&6
16523else
16524  lt_prog_compiler_static_works_GCJ=no
16525   save_LDFLAGS="$LDFLAGS"
16526   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16527   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16528   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16529     # The linker can only warn and ignore the option if not recognized
16530     # So say no if there are warnings
16531     if test -s conftest.err; then
16532       # Append any errors to the config.log.
16533       cat conftest.err 1>&5
16534       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16535       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16536       if diff conftest.exp conftest.er2 >/dev/null; then
16537         lt_prog_compiler_static_works_GCJ=yes
16538       fi
16539     else
16540       lt_prog_compiler_static_works_GCJ=yes
16541     fi
16542   fi
16543   $rm conftest*
16544   LDFLAGS="$save_LDFLAGS"
16545
16546fi
16547{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16548echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16549
16550if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16551    :
16552else
16553    lt_prog_compiler_static_GCJ=
16554fi
16555
16556
16557{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16558echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16559if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16560  echo $ECHO_N "(cached) $ECHO_C" >&6
16561else
16562  lt_cv_prog_compiler_c_o_GCJ=no
16563   $rm -r conftest 2>/dev/null
16564   mkdir conftest
16565   cd conftest
16566   mkdir out
16567   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16568
16569   lt_compiler_flag="-o out/conftest2.$ac_objext"
16570   # Insert the option either (1) after the last *FLAGS variable, or
16571   # (2) before a word containing "conftest.", or (3) at the end.
16572   # Note that $ac_compile itself does not contain backslashes and begins
16573   # with a dollar sign (not a hyphen), so the echo should work correctly.
16574   lt_compile=`echo "$ac_compile" | $SED \
16575   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16576   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16577   -e 's:$: $lt_compiler_flag:'`
16578   (eval echo "\"\$as_me:16578: $lt_compile\"" >&5)
16579   (eval "$lt_compile" 2>out/conftest.err)
16580   ac_status=$?
16581   cat out/conftest.err >&5
16582   echo "$as_me:16582: \$? = $ac_status" >&5
16583   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16584   then
16585     # The compiler can only warn and ignore the option if not recognized
16586     # So say no if there are warnings
16587     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16588     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16589     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16590       lt_cv_prog_compiler_c_o_GCJ=yes
16591     fi
16592   fi
16593   chmod u+w . 2>&5
16594   $rm conftest*
16595   # SGI C++ compiler will create directory out/ii_files/ for
16596   # template instantiation
16597   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16598   $rm out/* && rmdir out
16599   cd ..
16600   rmdir conftest
16601   $rm conftest*
16602
16603fi
16604{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16605echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16606
16607
16608hard_links="nottested"
16609if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16610  # do not overwrite the value of need_locks provided by the user
16611  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16612echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16613  hard_links=yes
16614  $rm conftest*
16615  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16616  touch conftest.a
16617  ln conftest.a conftest.b 2>&5 || hard_links=no
16618  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16619  { echo "$as_me:$LINENO: result: $hard_links" >&5
16620echo "${ECHO_T}$hard_links" >&6; }
16621  if test "$hard_links" = no; then
16622    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16623echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16624    need_locks=warn
16625  fi
16626else
16627  need_locks=no
16628fi
16629
16630{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16631echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16632
16633  runpath_var=
16634  allow_undefined_flag_GCJ=
16635  enable_shared_with_static_runtimes_GCJ=no
16636  archive_cmds_GCJ=
16637  archive_expsym_cmds_GCJ=
16638  old_archive_From_new_cmds_GCJ=
16639  old_archive_from_expsyms_cmds_GCJ=
16640  export_dynamic_flag_spec_GCJ=
16641  whole_archive_flag_spec_GCJ=
16642  thread_safe_flag_spec_GCJ=
16643  hardcode_libdir_flag_spec_GCJ=
16644  hardcode_libdir_flag_spec_ld_GCJ=
16645  hardcode_libdir_separator_GCJ=
16646  hardcode_direct_GCJ=no
16647  hardcode_minus_L_GCJ=no
16648  hardcode_shlibpath_var_GCJ=unsupported
16649  link_all_deplibs_GCJ=unknown
16650  hardcode_automatic_GCJ=no
16651  module_cmds_GCJ=
16652  module_expsym_cmds_GCJ=
16653  always_export_symbols_GCJ=no
16654  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16655  # include_expsyms should be a list of space-separated symbols to be *always*
16656  # included in the symbol list
16657  include_expsyms_GCJ=
16658  # exclude_expsyms can be an extended regexp of symbols to exclude
16659  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16660  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16661  # as well as any symbol that contains `d'.
16662  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16663  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16664  # platforms (ab)use it in PIC code, but their linkers get confused if
16665  # the symbol is explicitly referenced.  Since portable code cannot
16666  # rely on this symbol name, it's probably fine to never include it in
16667  # preloaded symbol tables.
16668  extract_expsyms_cmds=
16669  # Just being paranoid about ensuring that cc_basename is set.
16670  for cc_temp in $compiler""; do
16671  case $cc_temp in
16672    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16673    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16674    \-*) ;;
16675    *) break;;
16676  esac
16677done
16678cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16679
16680  case $host_os in
16681  cygwin* | mingw* | pw32*)
16682    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16683    # When not using gcc, we currently assume that we are using
16684    # Microsoft Visual C++.
16685    if test "$GCC" != yes; then
16686      with_gnu_ld=no
16687    fi
16688    ;;
16689  interix*)
16690    # we just hope/assume this is gcc and not c89 (= MSVC++)
16691    with_gnu_ld=yes
16692    ;;
16693  openbsd*)
16694    with_gnu_ld=no
16695    ;;
16696  esac
16697
16698  ld_shlibs_GCJ=yes
16699  if test "$with_gnu_ld" = yes; then
16700    # If archive_cmds runs LD, not CC, wlarc should be empty
16701    wlarc='${wl}'
16702
16703    # Set some defaults for GNU ld with shared library support. These
16704    # are reset later if shared libraries are not supported. Putting them
16705    # here allows them to be overridden if necessary.
16706    runpath_var=LD_RUN_PATH
16707    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16708    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16709    # ancient GNU ld didn't support --whole-archive et. al.
16710    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16711        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16712      else
16713        whole_archive_flag_spec_GCJ=
16714    fi
16715    supports_anon_versioning=no
16716    case `$LD -v 2>/dev/null` in
16717      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16718      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16719      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16720      *\ 2.11.*) ;; # other 2.11 versions
16721      *) supports_anon_versioning=yes ;;
16722    esac
16723
16724    # See if GNU ld supports shared libraries.
16725    case $host_os in
16726    aix3* | aix4* | aix5*)
16727      # On AIX/PPC, the GNU linker is very broken
16728      if test "$host_cpu" != ia64; then
16729        ld_shlibs_GCJ=no
16730        cat <<EOF 1>&2
16731
16732*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16733*** to be unable to reliably create shared libraries on AIX.
16734*** Therefore, libtool is disabling shared libraries support.  If you
16735*** really care for shared libraries, you may want to modify your PATH
16736*** so that a non-GNU linker is found, and then restart.
16737
16738EOF
16739      fi
16740      ;;
16741
16742    amigaos*)
16743      archive_cmds_GCJ='$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)'
16744      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16745      hardcode_minus_L_GCJ=yes
16746
16747      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16748      # that the semantics of dynamic libraries on AmigaOS, at least up
16749      # to version 4, is to share data among multiple programs linked
16750      # with the same dynamic library.  Since this doesn't match the
16751      # behavior of shared libraries on other platforms, we can't use
16752      # them.
16753      ld_shlibs_GCJ=no
16754      ;;
16755
16756    beos*)
16757      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16758        allow_undefined_flag_GCJ=unsupported
16759        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16760        # support --undefined.  This deserves some investigation.  FIXME
16761        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16762      else
16763        ld_shlibs_GCJ=no
16764      fi
16765      ;;
16766
16767    cygwin* | mingw* | pw32*)
16768      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16769      # as there is no search path for DLLs.
16770      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16771      allow_undefined_flag_GCJ=unsupported
16772      always_export_symbols_GCJ=no
16773      enable_shared_with_static_runtimes_GCJ=yes
16774      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16775
16776      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16777        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16778        # If the export-symbols file already is a .def file (1st line
16779        # is EXPORTS), use it as is; otherwise, prepend...
16780        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16781          cp $export_symbols $output_objdir/$soname.def;
16782        else
16783          echo EXPORTS > $output_objdir/$soname.def;
16784          cat $export_symbols >> $output_objdir/$soname.def;
16785        fi~
16786        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16787      else
16788        ld_shlibs_GCJ=no
16789      fi
16790      ;;
16791
16792    interix3*)
16793      hardcode_direct_GCJ=no
16794      hardcode_shlibpath_var_GCJ=no
16795      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16796      export_dynamic_flag_spec_GCJ='${wl}-E'
16797      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16798      # Instead, shared libraries are loaded at an image base (0x10000000 by
16799      # default) and relocated if they conflict, which is a slow very memory
16800      # consuming and fragmenting process.  To avoid this, we pick a random,
16801      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16802      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16803      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16804      archive_expsym_cmds_GCJ='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'
16805      ;;
16806
16807    linux* | k*bsd*-gnu)
16808      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16809        tmp_addflag=
16810        case $cc_basename,$host_cpu in
16811        pgcc*)                          # Portland Group C compiler
16812          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16813          tmp_addflag=' $pic_flag'
16814          ;;
16815        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16816          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16817          tmp_addflag=' $pic_flag -Mnomain' ;;
16818        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16819          tmp_addflag=' -i_dynamic' ;;
16820        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16821          tmp_addflag=' -i_dynamic -nofor_main' ;;
16822        ifc* | ifort*)                  # Intel Fortran compiler
16823          tmp_addflag=' -nofor_main' ;;
16824        esac
16825        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16826
16827        if test $supports_anon_versioning = yes; then
16828          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16829  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16830  $echo "local: *; };" >> $output_objdir/$libname.ver~
16831          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16832        fi
16833        link_all_deplibs_GCJ=no
16834      else
16835        ld_shlibs_GCJ=no
16836      fi
16837      ;;
16838
16839    netbsd* | netbsdelf*-gnu)
16840      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16841        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16842        wlarc=
16843      else
16844        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16845        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16846      fi
16847      ;;
16848
16849    solaris*)
16850      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16851        ld_shlibs_GCJ=no
16852        cat <<EOF 1>&2
16853
16854*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16855*** create shared libraries on Solaris systems.  Therefore, libtool
16856*** is disabling shared libraries support.  We urge you to upgrade GNU
16857*** binutils to release 2.9.1 or newer.  Another option is to modify
16858*** your PATH or compiler configuration so that the native linker is
16859*** used, and then restart.
16860
16861EOF
16862      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16863        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16864        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16865      else
16866        ld_shlibs_GCJ=no
16867      fi
16868      ;;
16869
16870    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16871      case `$LD -v 2>&1` in
16872        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16873        ld_shlibs_GCJ=no
16874        cat <<_LT_EOF 1>&2
16875
16876*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16877*** reliably create shared libraries on SCO systems.  Therefore, libtool
16878*** is disabling shared libraries support.  We urge you to upgrade GNU
16879*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16880*** your PATH or compiler configuration so that the native linker is
16881*** used, and then restart.
16882
16883_LT_EOF
16884        ;;
16885        *)
16886          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16887            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16888            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16889            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16890          else
16891            ld_shlibs_GCJ=no
16892          fi
16893        ;;
16894      esac
16895      ;;
16896
16897    sunos4*)
16898      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16899      wlarc=
16900      hardcode_direct_GCJ=yes
16901      hardcode_shlibpath_var_GCJ=no
16902      ;;
16903
16904    *)
16905      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16906        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16907        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16908      else
16909        ld_shlibs_GCJ=no
16910      fi
16911      ;;
16912    esac
16913
16914    if test "$ld_shlibs_GCJ" = no; then
16915      runpath_var=
16916      hardcode_libdir_flag_spec_GCJ=
16917      export_dynamic_flag_spec_GCJ=
16918      whole_archive_flag_spec_GCJ=
16919    fi
16920  else
16921    # PORTME fill in a description of your system's linker (not GNU ld)
16922    case $host_os in
16923    aix3*)
16924      allow_undefined_flag_GCJ=unsupported
16925      always_export_symbols_GCJ=yes
16926      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16927      # Note: this linker hardcodes the directories in LIBPATH if there
16928      # are no directories specified by -L.
16929      hardcode_minus_L_GCJ=yes
16930      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16931        # Neither direct hardcoding nor static linking is supported with a
16932        # broken collect2.
16933        hardcode_direct_GCJ=unsupported
16934      fi
16935      ;;
16936
16937    aix4* | aix5*)
16938      if test "$host_cpu" = ia64; then
16939        # On IA64, the linker does run time linking by default, so we don't
16940        # have to do anything special.
16941        aix_use_runtimelinking=no
16942        exp_sym_flag='-Bexport'
16943        no_entry_flag=""
16944      else
16945        # If we're using GNU nm, then we don't want the "-C" option.
16946        # -C means demangle to AIX nm, but means don't demangle with GNU nm
16947        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16948          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16949        else
16950          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16951        fi
16952        aix_use_runtimelinking=no
16953
16954        # Test if we are trying to use run time linking or normal
16955        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16956        # need to do runtime linking.
16957        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16958          for ld_flag in $LDFLAGS; do
16959          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16960            aix_use_runtimelinking=yes
16961            break
16962          fi
16963          done
16964          ;;
16965        esac
16966
16967        exp_sym_flag='-bexport'
16968        no_entry_flag='-bnoentry'
16969      fi
16970
16971      # When large executables or shared objects are built, AIX ld can
16972      # have problems creating the table of contents.  If linking a library
16973      # or program results in "error TOC overflow" add -mminimal-toc to
16974      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16975      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16976
16977      archive_cmds_GCJ=''
16978      hardcode_direct_GCJ=yes
16979      hardcode_libdir_separator_GCJ=':'
16980      link_all_deplibs_GCJ=yes
16981
16982      if test "$GCC" = yes; then
16983        case $host_os in aix4.[012]|aix4.[012].*)
16984        # We only want to do this on AIX 4.2 and lower, the check
16985        # below for broken collect2 doesn't work under 4.3+
16986          collect2name=`${CC} -print-prog-name=collect2`
16987          if test -f "$collect2name" && \
16988           strings "$collect2name" | grep resolve_lib_name >/dev/null
16989          then
16990          # We have reworked collect2
16991          hardcode_direct_GCJ=yes
16992          else
16993          # We have old collect2
16994          hardcode_direct_GCJ=unsupported
16995          # It fails to find uninstalled libraries when the uninstalled
16996          # path is not listed in the libpath.  Setting hardcode_minus_L
16997          # to unsupported forces relinking
16998          hardcode_minus_L_GCJ=yes
16999          hardcode_libdir_flag_spec_GCJ='-L$libdir'
17000          hardcode_libdir_separator_GCJ=
17001          fi
17002          ;;
17003        esac
17004        shared_flag='-shared'
17005        if test "$aix_use_runtimelinking" = yes; then
17006          shared_flag="$shared_flag "'${wl}-G'
17007        fi
17008      else
17009        # not using gcc
17010        if test "$host_cpu" = ia64; then
17011        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17012        # chokes on -Wl,-G. The following line is correct:
17013          shared_flag='-G'
17014        else
17015          if test "$aix_use_runtimelinking" = yes; then
17016            shared_flag='${wl}-G'
17017          else
17018            shared_flag='${wl}-bM:SRE'
17019          fi
17020        fi
17021      fi
17022
17023      # It seems that -bexpall does not export symbols beginning with
17024      # underscore (_), so it is better to generate a list of symbols to export.
17025      always_export_symbols_GCJ=yes
17026      if test "$aix_use_runtimelinking" = yes; then
17027        # Warning - without using the other runtime loading flags (-brtl),
17028        # -berok will link without error, but may produce a broken library.
17029        allow_undefined_flag_GCJ='-berok'
17030       # Determine the default libpath from the value encoded in an empty executable.
17031       cat >conftest.$ac_ext <<_ACEOF
17032/* confdefs.h.  */
17033_ACEOF
17034cat confdefs.h >>conftest.$ac_ext
17035cat >>conftest.$ac_ext <<_ACEOF
17036/* end confdefs.h.  */
17037
17038int
17039main ()
17040{
17041
17042  ;
17043  return 0;
17044}
17045_ACEOF
17046rm -f conftest.$ac_objext conftest$ac_exeext
17047if { (ac_try="$ac_link"
17048case "(($ac_try" in
17049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17050  *) ac_try_echo=$ac_try;;
17051esac
17052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17053  (eval "$ac_link") 2>conftest.er1
17054  ac_status=$?
17055  grep -v '^ *+' conftest.er1 >conftest.err
17056  rm -f conftest.er1
17057  cat conftest.err >&5
17058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059  (exit $ac_status); } && {
17060         test -z "$ac_c_werror_flag" ||
17061         test ! -s conftest.err
17062       } && test -s conftest$ac_exeext &&
17063       $as_test_x conftest$ac_exeext; then
17064
17065aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17066}'`
17067# Check for a 64-bit object if we didn't find anything.
17068if 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; }
17069}'`; fi
17070else
17071  echo "$as_me: failed program was:" >&5
17072sed 's/^/| /' conftest.$ac_ext >&5
17073
17074
17075fi
17076
17077rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17078      conftest$ac_exeext conftest.$ac_ext
17079if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17080
17081       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17082        archive_expsym_cmds_GCJ="\$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"
17083       else
17084        if test "$host_cpu" = ia64; then
17085          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17086          allow_undefined_flag_GCJ="-z nodefs"
17087          archive_expsym_cmds_GCJ="\$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"
17088        else
17089         # Determine the default libpath from the value encoded in an empty executable.
17090         cat >conftest.$ac_ext <<_ACEOF
17091/* confdefs.h.  */
17092_ACEOF
17093cat confdefs.h >>conftest.$ac_ext
17094cat >>conftest.$ac_ext <<_ACEOF
17095/* end confdefs.h.  */
17096
17097int
17098main ()
17099{
17100
17101  ;
17102  return 0;
17103}
17104_ACEOF
17105rm -f conftest.$ac_objext conftest$ac_exeext
17106if { (ac_try="$ac_link"
17107case "(($ac_try" in
17108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109  *) ac_try_echo=$ac_try;;
17110esac
17111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112  (eval "$ac_link") 2>conftest.er1
17113  ac_status=$?
17114  grep -v '^ *+' conftest.er1 >conftest.err
17115  rm -f conftest.er1
17116  cat conftest.err >&5
17117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118  (exit $ac_status); } && {
17119         test -z "$ac_c_werror_flag" ||
17120         test ! -s conftest.err
17121       } && test -s conftest$ac_exeext &&
17122       $as_test_x conftest$ac_exeext; then
17123
17124aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17125}'`
17126# Check for a 64-bit object if we didn't find anything.
17127if 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; }
17128}'`; fi
17129else
17130  echo "$as_me: failed program was:" >&5
17131sed 's/^/| /' conftest.$ac_ext >&5
17132
17133
17134fi
17135
17136rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17137      conftest$ac_exeext conftest.$ac_ext
17138if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17139
17140         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17141          # Warning - without using the other run time loading flags,
17142          # -berok will link without error, but may produce a broken library.
17143          no_undefined_flag_GCJ=' ${wl}-bernotok'
17144          allow_undefined_flag_GCJ=' ${wl}-berok'
17145          # Exported symbols can be pulled into shared objects from archives
17146          whole_archive_flag_spec_GCJ='$convenience'
17147          archive_cmds_need_lc_GCJ=yes
17148          # This is similar to how AIX traditionally builds its shared libraries.
17149          archive_expsym_cmds_GCJ="\$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'
17150        fi
17151      fi
17152      ;;
17153
17154    amigaos*)
17155      archive_cmds_GCJ='$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)'
17156      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17157      hardcode_minus_L_GCJ=yes
17158      # see comment about different semantics on the GNU ld section
17159      ld_shlibs_GCJ=no
17160      ;;
17161
17162    bsdi[45]*)
17163      export_dynamic_flag_spec_GCJ=-rdynamic
17164      ;;
17165
17166    cygwin* | mingw* | pw32*)
17167      # When not using gcc, we currently assume that we are using
17168      # Microsoft Visual C++.
17169      # hardcode_libdir_flag_spec is actually meaningless, as there is
17170      # no search path for DLLs.
17171      hardcode_libdir_flag_spec_GCJ=' '
17172      allow_undefined_flag_GCJ=unsupported
17173      # Tell ltmain to make .lib files, not .a files.
17174      libext=lib
17175      # Tell ltmain to make .dll files, not .so files.
17176      shrext_cmds=".dll"
17177      # FIXME: Setting linknames here is a bad hack.
17178      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17179      # The linker will automatically build a .lib file if we build a DLL.
17180      old_archive_From_new_cmds_GCJ='true'
17181      # FIXME: Should let the user specify the lib program.
17182      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17183      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17184      enable_shared_with_static_runtimes_GCJ=yes
17185      ;;
17186
17187    darwin* | rhapsody*)
17188      case $host_os in
17189        rhapsody* | darwin1.[012])
17190         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17191         ;;
17192       *) # Darwin 1.3 on
17193         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17194           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17195         else
17196           case ${MACOSX_DEPLOYMENT_TARGET} in
17197             10.[012])
17198               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17199               ;;
17200             10.*)
17201               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17202               ;;
17203           esac
17204         fi
17205         ;;
17206      esac
17207      archive_cmds_need_lc_GCJ=no
17208      hardcode_direct_GCJ=no
17209      hardcode_automatic_GCJ=yes
17210      hardcode_shlibpath_var_GCJ=unsupported
17211      whole_archive_flag_spec_GCJ=''
17212      link_all_deplibs_GCJ=yes
17213    if test "$GCC" = yes ; then
17214        output_verbose_link_cmd='echo'
17215        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17216      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17217      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17218      archive_expsym_cmds_GCJ='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}'
17219      module_expsym_cmds_GCJ='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}'
17220    else
17221      case $cc_basename in
17222        xlc*)
17223         output_verbose_link_cmd='echo'
17224         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17225         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17226          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17227         archive_expsym_cmds_GCJ='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}'
17228          module_expsym_cmds_GCJ='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}'
17229          ;;
17230       *)
17231         ld_shlibs_GCJ=no
17232          ;;
17233      esac
17234    fi
17235      ;;
17236
17237    dgux*)
17238      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17239      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17240      hardcode_shlibpath_var_GCJ=no
17241      ;;
17242
17243    freebsd1*)
17244      ld_shlibs_GCJ=no
17245      ;;
17246
17247    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17248    # support.  Future versions do this automatically, but an explicit c++rt0.o
17249    # does not break anything, and helps significantly (at the cost of a little
17250    # extra space).
17251    freebsd2.2*)
17252      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17253      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17254      hardcode_direct_GCJ=yes
17255      hardcode_shlibpath_var_GCJ=no
17256      ;;
17257
17258    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17259    freebsd2*)
17260      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17261      hardcode_direct_GCJ=yes
17262      hardcode_minus_L_GCJ=yes
17263      hardcode_shlibpath_var_GCJ=no
17264      ;;
17265
17266    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17267    freebsd* | dragonfly*)
17268      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17269      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17270      hardcode_direct_GCJ=yes
17271      hardcode_shlibpath_var_GCJ=no
17272      ;;
17273
17274    hpux9*)
17275      if test "$GCC" = yes; then
17276        archive_cmds_GCJ='$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'
17277      else
17278        archive_cmds_GCJ='$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'
17279      fi
17280      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17281      hardcode_libdir_separator_GCJ=:
17282      hardcode_direct_GCJ=yes
17283
17284      # hardcode_minus_L: Not really in the search PATH,
17285      # but as the default location of the library.
17286      hardcode_minus_L_GCJ=yes
17287      export_dynamic_flag_spec_GCJ='${wl}-E'
17288      ;;
17289
17290    hpux10*)
17291      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17292        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17293      else
17294        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17295      fi
17296      if test "$with_gnu_ld" = no; then
17297        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17298        hardcode_libdir_separator_GCJ=:
17299
17300        hardcode_direct_GCJ=yes
17301        export_dynamic_flag_spec_GCJ='${wl}-E'
17302
17303        # hardcode_minus_L: Not really in the search PATH,
17304        # but as the default location of the library.
17305        hardcode_minus_L_GCJ=yes
17306      fi
17307      ;;
17308
17309    hpux11*)
17310      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17311        case $host_cpu in
17312        hppa*64*)
17313          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17314          ;;
17315        ia64*)
17316          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17317          ;;
17318        *)
17319          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17320          ;;
17321        esac
17322      else
17323        case $host_cpu in
17324        hppa*64*)
17325          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17326          ;;
17327        ia64*)
17328          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17329          ;;
17330        *)
17331          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17332          ;;
17333        esac
17334      fi
17335      if test "$with_gnu_ld" = no; then
17336        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17337        hardcode_libdir_separator_GCJ=:
17338
17339        case $host_cpu in
17340        hppa*64*|ia64*)
17341          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17342          hardcode_direct_GCJ=no
17343          hardcode_shlibpath_var_GCJ=no
17344          ;;
17345        *)
17346          hardcode_direct_GCJ=yes
17347          export_dynamic_flag_spec_GCJ='${wl}-E'
17348
17349          # hardcode_minus_L: Not really in the search PATH,
17350          # but as the default location of the library.
17351          hardcode_minus_L_GCJ=yes
17352          ;;
17353        esac
17354      fi
17355      ;;
17356
17357    irix5* | irix6* | nonstopux*)
17358      if test "$GCC" = yes; then
17359        archive_cmds_GCJ='$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'
17360      else
17361        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17362        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17363      fi
17364      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17365      hardcode_libdir_separator_GCJ=:
17366      link_all_deplibs_GCJ=yes
17367      ;;
17368
17369    netbsd* | netbsdelf*-gnu)
17370      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17371        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17372      else
17373        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17374      fi
17375      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17376      hardcode_direct_GCJ=yes
17377      hardcode_shlibpath_var_GCJ=no
17378      ;;
17379
17380    newsos6)
17381      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17382      hardcode_direct_GCJ=yes
17383      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17384      hardcode_libdir_separator_GCJ=:
17385      hardcode_shlibpath_var_GCJ=no
17386      ;;
17387
17388    openbsd*)
17389      hardcode_direct_GCJ=yes
17390      hardcode_shlibpath_var_GCJ=no
17391      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17392        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17393        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17394        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17395        export_dynamic_flag_spec_GCJ='${wl}-E'
17396      else
17397       case $host_os in
17398         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17399           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17400           hardcode_libdir_flag_spec_GCJ='-R$libdir'
17401           ;;
17402         *)
17403           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17404           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17405           ;;
17406       esac
17407      fi
17408      ;;
17409
17410    os2*)
17411      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17412      hardcode_minus_L_GCJ=yes
17413      allow_undefined_flag_GCJ=unsupported
17414      archive_cmds_GCJ='$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'
17415      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17416      ;;
17417
17418    osf3*)
17419      if test "$GCC" = yes; then
17420        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17421        archive_cmds_GCJ='$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'
17422      else
17423        allow_undefined_flag_GCJ=' -expect_unresolved \*'
17424        archive_cmds_GCJ='$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'
17425      fi
17426      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17427      hardcode_libdir_separator_GCJ=:
17428      ;;
17429
17430    osf4* | osf5*)      # as osf3* with the addition of -msym flag
17431      if test "$GCC" = yes; then
17432        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17433        archive_cmds_GCJ='$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'
17434        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17435      else
17436        allow_undefined_flag_GCJ=' -expect_unresolved \*'
17437        archive_cmds_GCJ='$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'
17438        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17439        $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'
17440
17441        # Both c and cxx compiler support -rpath directly
17442        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17443      fi
17444      hardcode_libdir_separator_GCJ=:
17445      ;;
17446
17447    solaris*)
17448      no_undefined_flag_GCJ=' -z text'
17449      if test "$GCC" = yes; then
17450        wlarc='${wl}'
17451        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17452        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17453          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17454      else
17455        wlarc=''
17456        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17457        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17458        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17459      fi
17460      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17461      hardcode_shlibpath_var_GCJ=no
17462      case $host_os in
17463      solaris2.[0-5] | solaris2.[0-5].*) ;;
17464      *)
17465        # The compiler driver will combine linker options so we
17466        # cannot just pass the convience library names through
17467        # without $wl, iff we do not link with $LD.
17468        # Luckily, gcc supports the same syntax we need for Sun Studio.
17469        # Supported since Solaris 2.6 (maybe 2.5.1?)
17470        case $wlarc in
17471        '')
17472          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17473        *)
17474          whole_archive_flag_spec_GCJ='${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' ;;
17475        esac ;;
17476      esac
17477      link_all_deplibs_GCJ=yes
17478      ;;
17479
17480    sunos4*)
17481      if test "x$host_vendor" = xsequent; then
17482        # Use $CC to link under sequent, because it throws in some extra .o
17483        # files that make .init and .fini sections work.
17484        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17485      else
17486        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17487      fi
17488      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17489      hardcode_direct_GCJ=yes
17490      hardcode_minus_L_GCJ=yes
17491      hardcode_shlibpath_var_GCJ=no
17492      ;;
17493
17494    sysv4)
17495      case $host_vendor in
17496        sni)
17497          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17498          hardcode_direct_GCJ=yes # is this really true???
17499        ;;
17500        siemens)
17501          ## LD is ld it makes a PLAMLIB
17502          ## CC just makes a GrossModule.
17503          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17504          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17505          hardcode_direct_GCJ=no
17506        ;;
17507        motorola)
17508          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17509          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17510        ;;
17511      esac
17512      runpath_var='LD_RUN_PATH'
17513      hardcode_shlibpath_var_GCJ=no
17514      ;;
17515
17516    sysv4.3*)
17517      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17518      hardcode_shlibpath_var_GCJ=no
17519      export_dynamic_flag_spec_GCJ='-Bexport'
17520      ;;
17521
17522    sysv4*MP*)
17523      if test -d /usr/nec; then
17524        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17525        hardcode_shlibpath_var_GCJ=no
17526        runpath_var=LD_RUN_PATH
17527        hardcode_runpath_var=yes
17528        ld_shlibs_GCJ=yes
17529      fi
17530      ;;
17531
17532    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17533      no_undefined_flag_GCJ='${wl}-z,text'
17534      archive_cmds_need_lc_GCJ=no
17535      hardcode_shlibpath_var_GCJ=no
17536      runpath_var='LD_RUN_PATH'
17537
17538      if test "$GCC" = yes; then
17539        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17540        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17541      else
17542        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17543        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17544      fi
17545      ;;
17546
17547    sysv5* | sco3.2v5* | sco5v6*)
17548      # Note: We can NOT use -z defs as we might desire, because we do not
17549      # link with -lc, and that would cause any symbols used from libc to
17550      # always be unresolved, which means just about no library would
17551      # ever link correctly.  If we're not using GNU ld we use -z text
17552      # though, which does catch some bad symbols but isn't as heavy-handed
17553      # as -z defs.
17554      no_undefined_flag_GCJ='${wl}-z,text'
17555      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17556      archive_cmds_need_lc_GCJ=no
17557      hardcode_shlibpath_var_GCJ=no
17558      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17559      hardcode_libdir_separator_GCJ=':'
17560      link_all_deplibs_GCJ=yes
17561      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17562      runpath_var='LD_RUN_PATH'
17563
17564      if test "$GCC" = yes; then
17565        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17566        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17567      else
17568        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17569        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17570      fi
17571      ;;
17572
17573    uts4*)
17574      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17575      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17576      hardcode_shlibpath_var_GCJ=no
17577      ;;
17578
17579    *)
17580      ld_shlibs_GCJ=no
17581      ;;
17582    esac
17583  fi
17584
17585{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17586echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17587test "$ld_shlibs_GCJ" = no && can_build_shared=no
17588
17589#
17590# Do we need to explicitly link libc?
17591#
17592case "x$archive_cmds_need_lc_GCJ" in
17593x|xyes)
17594  # Assume -lc should be added
17595  archive_cmds_need_lc_GCJ=yes
17596
17597  if test "$enable_shared" = yes && test "$GCC" = yes; then
17598    case $archive_cmds_GCJ in
17599    *'~'*)
17600      # FIXME: we may have to deal with multi-command sequences.
17601      ;;
17602    '$CC '*)
17603      # Test whether the compiler implicitly links with -lc since on some
17604      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17605      # to ld, don't add -lc before -lgcc.
17606      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17607echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17608      $rm conftest*
17609      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17610
17611      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17612  (eval $ac_compile) 2>&5
17613  ac_status=$?
17614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615  (exit $ac_status); } 2>conftest.err; then
17616        soname=conftest
17617        lib=conftest
17618        libobjs=conftest.$ac_objext
17619        deplibs=
17620        wl=$lt_prog_compiler_wl_GCJ
17621        pic_flag=$lt_prog_compiler_pic_GCJ
17622        compiler_flags=-v
17623        linker_flags=-v
17624        verstring=
17625        output_objdir=.
17626        libname=conftest
17627        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17628        allow_undefined_flag_GCJ=
17629        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17630  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17631  ac_status=$?
17632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633  (exit $ac_status); }
17634        then
17635          archive_cmds_need_lc_GCJ=no
17636        else
17637          archive_cmds_need_lc_GCJ=yes
17638        fi
17639        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17640      else
17641        cat conftest.err 1>&5
17642      fi
17643      $rm conftest*
17644      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17645echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17646      ;;
17647    esac
17648  fi
17649  ;;
17650esac
17651
17652{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17653echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17654library_names_spec=
17655libname_spec='lib$name'
17656soname_spec=
17657shrext_cmds=".so"
17658postinstall_cmds=
17659postuninstall_cmds=
17660finish_cmds=
17661finish_eval=
17662shlibpath_var=
17663shlibpath_overrides_runpath=unknown
17664version_type=none
17665dynamic_linker="$host_os ld.so"
17666sys_lib_dlsearch_path_spec="/lib /usr/lib"
17667if test "$GCC" = yes; then
17668  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17669  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17670    # if the path contains ";" then we assume it to be the separator
17671    # otherwise default to the standard path separator (i.e. ":") - it is
17672    # assumed that no part of a normal pathname contains ";" but that should
17673    # okay in the real world where ";" in dirpaths is itself problematic.
17674    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17675  else
17676    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17677  fi
17678else
17679  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17680fi
17681need_lib_prefix=unknown
17682hardcode_into_libs=no
17683
17684# when you set need_version to no, make sure it does not cause -set_version
17685# flags to be left without arguments
17686need_version=unknown
17687
17688case $host_os in
17689aix3*)
17690  version_type=linux
17691  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17692  shlibpath_var=LIBPATH
17693
17694  # AIX 3 has no versioning support, so we append a major version to the name.
17695  soname_spec='${libname}${release}${shared_ext}$major'
17696  ;;
17697
17698aix4* | aix5*)
17699  version_type=linux
17700  need_lib_prefix=no
17701  need_version=no
17702  hardcode_into_libs=yes
17703  if test "$host_cpu" = ia64; then
17704    # AIX 5 supports IA64
17705    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17706    shlibpath_var=LD_LIBRARY_PATH
17707  else
17708    # With GCC up to 2.95.x, collect2 would create an import file
17709    # for dependence libraries.  The import file would start with
17710    # the line `#! .'.  This would cause the generated library to
17711    # depend on `.', always an invalid library.  This was fixed in
17712    # development snapshots of GCC prior to 3.0.
17713    case $host_os in
17714      aix4 | aix4.[01] | aix4.[01].*)
17715      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17716           echo ' yes '
17717           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17718        :
17719      else
17720        can_build_shared=no
17721      fi
17722      ;;
17723    esac
17724    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17725    # soname into executable. Probably we can add versioning support to
17726    # collect2, so additional links can be useful in future.
17727    if test "$aix_use_runtimelinking" = yes; then
17728      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17729      # instead of lib<name>.a to let people know that these are not
17730      # typical AIX shared libraries.
17731      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17732    else
17733      # We preserve .a as extension for shared libraries through AIX4.2
17734      # and later when we are not doing run time linking.
17735      library_names_spec='${libname}${release}.a $libname.a'
17736      soname_spec='${libname}${release}${shared_ext}$major'
17737    fi
17738    shlibpath_var=LIBPATH
17739  fi
17740  ;;
17741
17742amigaos*)
17743  library_names_spec='$libname.ixlibrary $libname.a'
17744  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17745  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'
17746  ;;
17747
17748beos*)
17749  library_names_spec='${libname}${shared_ext}'
17750  dynamic_linker="$host_os ld.so"
17751  shlibpath_var=LIBRARY_PATH
17752  ;;
17753
17754bsdi[45]*)
17755  version_type=linux
17756  need_version=no
17757  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17758  soname_spec='${libname}${release}${shared_ext}$major'
17759  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17760  shlibpath_var=LD_LIBRARY_PATH
17761  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17762  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17763  # the default ld.so.conf also contains /usr/contrib/lib and
17764  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17765  # libtool to hard-code these into programs
17766  ;;
17767
17768cygwin* | mingw* | pw32*)
17769  version_type=windows
17770  shrext_cmds=".dll"
17771  need_version=no
17772  need_lib_prefix=no
17773
17774  case $GCC,$host_os in
17775  yes,cygwin* | yes,mingw* | yes,pw32*)
17776    library_names_spec='$libname.dll.a'
17777    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17778    postinstall_cmds='base_file=`basename \${file}`~
17779      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17780      dldir=$destdir/`dirname \$dlpath`~
17781      test -d \$dldir || mkdir -p \$dldir~
17782      $install_prog $dir/$dlname \$dldir/$dlname~
17783      chmod a+x \$dldir/$dlname'
17784    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17785      dlpath=$dir/\$dldll~
17786       $rm \$dlpath'
17787    shlibpath_overrides_runpath=yes
17788
17789    case $host_os in
17790    cygwin*)
17791      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17792      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17793      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17794      ;;
17795    mingw*)
17796      # MinGW DLLs use traditional 'lib' prefix
17797      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17798      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17799      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17800        # It is most probably a Windows format PATH printed by
17801        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17802        # path with ; separators, and with drive letters. We can handle the
17803        # drive letters (cygwin fileutils understands them), so leave them,
17804        # especially as we might pass files found there to a mingw objdump,
17805        # which wouldn't understand a cygwinified path. Ahh.
17806        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17807      else
17808        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17809      fi
17810      ;;
17811    pw32*)
17812      # pw32 DLLs use 'pw' prefix rather than 'lib'
17813      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17814      ;;
17815    esac
17816    ;;
17817
17818  *)
17819    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17820    ;;
17821  esac
17822  dynamic_linker='Win32 ld.exe'
17823  # FIXME: first we should search . and the directory the executable is in
17824  shlibpath_var=PATH
17825  ;;
17826
17827darwin* | rhapsody*)
17828  dynamic_linker="$host_os dyld"
17829  version_type=darwin
17830  need_lib_prefix=no
17831  need_version=no
17832  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17833  soname_spec='${libname}${release}${major}$shared_ext'
17834  shlibpath_overrides_runpath=yes
17835  shlibpath_var=DYLD_LIBRARY_PATH
17836  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17837  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17838  if test "$GCC" = yes; then
17839    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"`
17840  else
17841    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17842  fi
17843  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17844  ;;
17845
17846dgux*)
17847  version_type=linux
17848  need_lib_prefix=no
17849  need_version=no
17850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17851  soname_spec='${libname}${release}${shared_ext}$major'
17852  shlibpath_var=LD_LIBRARY_PATH
17853  ;;
17854
17855freebsd1*)
17856  dynamic_linker=no
17857  ;;
17858
17859freebsd* | dragonfly*)
17860  # DragonFly does not have aout.  When/if they implement a new
17861  # versioning mechanism, adjust this.
17862  if test -x /usr/bin/objformat; then
17863    objformat=`/usr/bin/objformat`
17864  else
17865    case $host_os in
17866    freebsd[123]*) objformat=aout ;;
17867    *) objformat=elf ;;
17868    esac
17869  fi
17870  version_type=freebsd-$objformat
17871  case $version_type in
17872    freebsd-elf*)
17873      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17874      need_version=no
17875      need_lib_prefix=no
17876      ;;
17877    freebsd-*)
17878      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17879      need_version=yes
17880      ;;
17881  esac
17882  shlibpath_var=LD_LIBRARY_PATH
17883  case $host_os in
17884  freebsd2*)
17885    shlibpath_overrides_runpath=yes
17886    ;;
17887  freebsd3.[01]* | freebsdelf3.[01]*)
17888    shlibpath_overrides_runpath=yes
17889    hardcode_into_libs=yes
17890    ;;
17891  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17892  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17893    shlibpath_overrides_runpath=no
17894    hardcode_into_libs=yes
17895    ;;
17896  freebsd*) # from 4.6 on
17897    shlibpath_overrides_runpath=yes
17898    hardcode_into_libs=yes
17899    ;;
17900  esac
17901  ;;
17902
17903gnu*)
17904  version_type=linux
17905  need_lib_prefix=no
17906  need_version=no
17907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17908  soname_spec='${libname}${release}${shared_ext}$major'
17909  shlibpath_var=LD_LIBRARY_PATH
17910  hardcode_into_libs=yes
17911  ;;
17912
17913hpux9* | hpux10* | hpux11*)
17914  # Give a soname corresponding to the major version so that dld.sl refuses to
17915  # link against other versions.
17916  version_type=sunos
17917  need_lib_prefix=no
17918  need_version=no
17919  case $host_cpu in
17920  ia64*)
17921    shrext_cmds='.so'
17922    hardcode_into_libs=yes
17923    dynamic_linker="$host_os dld.so"
17924    shlibpath_var=LD_LIBRARY_PATH
17925    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17926    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17927    soname_spec='${libname}${release}${shared_ext}$major'
17928    if test "X$HPUX_IA64_MODE" = X32; then
17929      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17930    else
17931      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17932    fi
17933    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17934    ;;
17935   hppa*64*)
17936     shrext_cmds='.sl'
17937     hardcode_into_libs=yes
17938     dynamic_linker="$host_os dld.sl"
17939     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17940     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17941     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17942     soname_spec='${libname}${release}${shared_ext}$major'
17943     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17944     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17945     ;;
17946   *)
17947    shrext_cmds='.sl'
17948    dynamic_linker="$host_os dld.sl"
17949    shlibpath_var=SHLIB_PATH
17950    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17951    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17952    soname_spec='${libname}${release}${shared_ext}$major'
17953    ;;
17954  esac
17955  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17956  postinstall_cmds='chmod 555 $lib'
17957  ;;
17958
17959interix3*)
17960  version_type=linux
17961  need_lib_prefix=no
17962  need_version=no
17963  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17964  soname_spec='${libname}${release}${shared_ext}$major'
17965  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17966  shlibpath_var=LD_LIBRARY_PATH
17967  shlibpath_overrides_runpath=no
17968  hardcode_into_libs=yes
17969  ;;
17970
17971irix5* | irix6* | nonstopux*)
17972  case $host_os in
17973    nonstopux*) version_type=nonstopux ;;
17974    *)
17975        if test "$lt_cv_prog_gnu_ld" = yes; then
17976                version_type=linux
17977        else
17978                version_type=irix
17979        fi ;;
17980  esac
17981  need_lib_prefix=no
17982  need_version=no
17983  soname_spec='${libname}${release}${shared_ext}$major'
17984  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17985  case $host_os in
17986  irix5* | nonstopux*)
17987    libsuff= shlibsuff=
17988    ;;
17989  *)
17990    case $LD in # libtool.m4 will add one of these switches to LD
17991    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17992      libsuff= shlibsuff= libmagic=32-bit;;
17993    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17994      libsuff=32 shlibsuff=N32 libmagic=N32;;
17995    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17996      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17997    *) libsuff= shlibsuff= libmagic=never-match;;
17998    esac
17999    ;;
18000  esac
18001  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18002  shlibpath_overrides_runpath=no
18003  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18004  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18005  hardcode_into_libs=yes
18006  ;;
18007
18008# No shared lib support for Linux oldld, aout, or coff.
18009linux*oldld* | linux*aout* | linux*coff*)
18010  dynamic_linker=no
18011  ;;
18012
18013# This must be Linux ELF.
18014linux* | k*bsd*-gnu)
18015  version_type=linux
18016  need_lib_prefix=no
18017  need_version=no
18018  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18019  soname_spec='${libname}${release}${shared_ext}$major'
18020  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18021  shlibpath_var=LD_LIBRARY_PATH
18022  shlibpath_overrides_runpath=no
18023  # This implies no fast_install, which is unacceptable.
18024  # Some rework will be needed to allow for fast_install
18025  # before this can be enabled.
18026  hardcode_into_libs=yes
18027
18028  # Append ld.so.conf contents to the search path
18029  if test -f /etc/ld.so.conf; then
18030    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18031    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18032  fi
18033
18034  # We used to test for /lib/ld.so.1 and disable shared libraries on
18035  # powerpc, because MkLinux only supported shared libraries with the
18036  # GNU dynamic linker.  Since this was broken with cross compilers,
18037  # most powerpc-linux boxes support dynamic linking these days and
18038  # people can always --disable-shared, the test was removed, and we
18039  # assume the GNU/Linux dynamic linker is in use.
18040  dynamic_linker='GNU/Linux ld.so'
18041  ;;
18042
18043netbsdelf*-gnu)
18044  version_type=linux
18045  need_lib_prefix=no
18046  need_version=no
18047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18048  soname_spec='${libname}${release}${shared_ext}$major'
18049  shlibpath_var=LD_LIBRARY_PATH
18050  shlibpath_overrides_runpath=no
18051  hardcode_into_libs=yes
18052  dynamic_linker='NetBSD ld.elf_so'
18053  ;;
18054
18055netbsd*)
18056  version_type=sunos
18057  need_lib_prefix=no
18058  need_version=no
18059  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18060    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18061    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18062    dynamic_linker='NetBSD (a.out) ld.so'
18063  else
18064    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18065    soname_spec='${libname}${release}${shared_ext}$major'
18066    dynamic_linker='NetBSD ld.elf_so'
18067  fi
18068  shlibpath_var=LD_LIBRARY_PATH
18069  shlibpath_overrides_runpath=yes
18070  hardcode_into_libs=yes
18071  ;;
18072
18073newsos6)
18074  version_type=linux
18075  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18076  shlibpath_var=LD_LIBRARY_PATH
18077  shlibpath_overrides_runpath=yes
18078  ;;
18079
18080nto-qnx*)
18081  version_type=linux
18082  need_lib_prefix=no
18083  need_version=no
18084  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18085  soname_spec='${libname}${release}${shared_ext}$major'
18086  shlibpath_var=LD_LIBRARY_PATH
18087  shlibpath_overrides_runpath=yes
18088  ;;
18089
18090openbsd*)
18091  version_type=sunos
18092  sys_lib_dlsearch_path_spec="/usr/lib"
18093  need_lib_prefix=no
18094  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18095  case $host_os in
18096    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18097    *)                         need_version=no  ;;
18098  esac
18099  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18100  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18101  shlibpath_var=LD_LIBRARY_PATH
18102  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18103    case $host_os in
18104      openbsd2.[89] | openbsd2.[89].*)
18105        shlibpath_overrides_runpath=no
18106        ;;
18107      *)
18108        shlibpath_overrides_runpath=yes
18109        ;;
18110      esac
18111  else
18112    shlibpath_overrides_runpath=yes
18113  fi
18114  ;;
18115
18116os2*)
18117  libname_spec='$name'
18118  shrext_cmds=".dll"
18119  need_lib_prefix=no
18120  library_names_spec='$libname${shared_ext} $libname.a'
18121  dynamic_linker='OS/2 ld.exe'
18122  shlibpath_var=LIBPATH
18123  ;;
18124
18125osf3* | osf4* | osf5*)
18126  version_type=osf
18127  need_lib_prefix=no
18128  need_version=no
18129  soname_spec='${libname}${release}${shared_ext}$major'
18130  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18131  shlibpath_var=LD_LIBRARY_PATH
18132  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18133  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18134  ;;
18135
18136solaris*)
18137  version_type=linux
18138  need_lib_prefix=no
18139  need_version=no
18140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18141  soname_spec='${libname}${release}${shared_ext}$major'
18142  shlibpath_var=LD_LIBRARY_PATH
18143  shlibpath_overrides_runpath=yes
18144  hardcode_into_libs=yes
18145  # ldd complains unless libraries are executable
18146  postinstall_cmds='chmod +x $lib'
18147  ;;
18148
18149sunos4*)
18150  version_type=sunos
18151  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18152  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18153  shlibpath_var=LD_LIBRARY_PATH
18154  shlibpath_overrides_runpath=yes
18155  if test "$with_gnu_ld" = yes; then
18156    need_lib_prefix=no
18157  fi
18158  need_version=yes
18159  ;;
18160
18161sysv4 | sysv4.3*)
18162  version_type=linux
18163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18164  soname_spec='${libname}${release}${shared_ext}$major'
18165  shlibpath_var=LD_LIBRARY_PATH
18166  case $host_vendor in
18167    sni)
18168      shlibpath_overrides_runpath=no
18169      need_lib_prefix=no
18170      export_dynamic_flag_spec='${wl}-Blargedynsym'
18171      runpath_var=LD_RUN_PATH
18172      ;;
18173    siemens)
18174      need_lib_prefix=no
18175      ;;
18176    motorola)
18177      need_lib_prefix=no
18178      need_version=no
18179      shlibpath_overrides_runpath=no
18180      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18181      ;;
18182  esac
18183  ;;
18184
18185sysv4*MP*)
18186  if test -d /usr/nec ;then
18187    version_type=linux
18188    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18189    soname_spec='$libname${shared_ext}.$major'
18190    shlibpath_var=LD_LIBRARY_PATH
18191  fi
18192  ;;
18193
18194sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18195  version_type=freebsd-elf
18196  need_lib_prefix=no
18197  need_version=no
18198  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18199  soname_spec='${libname}${release}${shared_ext}$major'
18200  shlibpath_var=LD_LIBRARY_PATH
18201  hardcode_into_libs=yes
18202  if test "$with_gnu_ld" = yes; then
18203    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18204    shlibpath_overrides_runpath=no
18205  else
18206    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18207    shlibpath_overrides_runpath=yes
18208    case $host_os in
18209      sco3.2v5*)
18210        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18211        ;;
18212    esac
18213  fi
18214  sys_lib_dlsearch_path_spec='/usr/lib'
18215  ;;
18216
18217uts4*)
18218  version_type=linux
18219  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18220  soname_spec='${libname}${release}${shared_ext}$major'
18221  shlibpath_var=LD_LIBRARY_PATH
18222  ;;
18223
18224*)
18225  dynamic_linker=no
18226  ;;
18227esac
18228{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18229echo "${ECHO_T}$dynamic_linker" >&6; }
18230test "$dynamic_linker" = no && can_build_shared=no
18231
18232variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18233if test "$GCC" = yes; then
18234  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18235fi
18236
18237{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18238echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18239hardcode_action_GCJ=
18240if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18241   test -n "$runpath_var_GCJ" || \
18242   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18243
18244  # We can hardcode non-existant directories.
18245  if test "$hardcode_direct_GCJ" != no &&
18246     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18247     # have to relink, otherwise we might link with an installed library
18248     # when we should be linking with a yet-to-be-installed one
18249     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18250     test "$hardcode_minus_L_GCJ" != no; then
18251    # Linking always hardcodes the temporary library directory.
18252    hardcode_action_GCJ=relink
18253  else
18254    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18255    hardcode_action_GCJ=immediate
18256  fi
18257else
18258  # We cannot hardcode anything, or else we can only hardcode existing
18259  # directories.
18260  hardcode_action_GCJ=unsupported
18261fi
18262{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18263echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18264
18265if test "$hardcode_action_GCJ" = relink; then
18266  # Fast installation is not supported
18267  enable_fast_install=no
18268elif test "$shlibpath_overrides_runpath" = yes ||
18269     test "$enable_shared" = no; then
18270  # Fast installation is not necessary
18271  enable_fast_install=needless
18272fi
18273
18274
18275# The else clause should only fire when bootstrapping the
18276# libtool distribution, otherwise you forgot to ship ltmain.sh
18277# with your package, and you will get complaints that there are
18278# no rules to generate ltmain.sh.
18279if test -f "$ltmain"; then
18280  # See if we are running on zsh, and set the options which allow our commands through
18281  # without removal of \ escapes.
18282  if test -n "${ZSH_VERSION+set}" ; then
18283    setopt NO_GLOB_SUBST
18284  fi
18285  # Now quote all the things that may contain metacharacters while being
18286  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18287  # variables and quote the copies for generation of the libtool script.
18288  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18289    SED SHELL STRIP \
18290    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18291    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18292    deplibs_check_method reload_flag reload_cmds need_locks \
18293    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18294    lt_cv_sys_global_symbol_to_c_name_address \
18295    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18296    old_postinstall_cmds old_postuninstall_cmds \
18297    compiler_GCJ \
18298    CC_GCJ \
18299    LD_GCJ \
18300    lt_prog_compiler_wl_GCJ \
18301    lt_prog_compiler_pic_GCJ \
18302    lt_prog_compiler_static_GCJ \
18303    lt_prog_compiler_no_builtin_flag_GCJ \
18304    export_dynamic_flag_spec_GCJ \
18305    thread_safe_flag_spec_GCJ \
18306    whole_archive_flag_spec_GCJ \
18307    enable_shared_with_static_runtimes_GCJ \
18308    old_archive_cmds_GCJ \
18309    old_archive_from_new_cmds_GCJ \
18310    predep_objects_GCJ \
18311    postdep_objects_GCJ \
18312    predeps_GCJ \
18313    postdeps_GCJ \
18314    compiler_lib_search_path_GCJ \
18315    archive_cmds_GCJ \
18316    archive_expsym_cmds_GCJ \
18317    postinstall_cmds_GCJ \
18318    postuninstall_cmds_GCJ \
18319    old_archive_from_expsyms_cmds_GCJ \
18320    allow_undefined_flag_GCJ \
18321    no_undefined_flag_GCJ \
18322    export_symbols_cmds_GCJ \
18323    hardcode_libdir_flag_spec_GCJ \
18324    hardcode_libdir_flag_spec_ld_GCJ \
18325    hardcode_libdir_separator_GCJ \
18326    hardcode_automatic_GCJ \
18327    module_cmds_GCJ \
18328    module_expsym_cmds_GCJ \
18329    lt_cv_prog_compiler_c_o_GCJ \
18330    exclude_expsyms_GCJ \
18331    include_expsyms_GCJ; do
18332
18333    case $var in
18334    old_archive_cmds_GCJ | \
18335    old_archive_from_new_cmds_GCJ | \
18336    archive_cmds_GCJ | \
18337    archive_expsym_cmds_GCJ | \
18338    module_cmds_GCJ | \
18339    module_expsym_cmds_GCJ | \
18340    old_archive_from_expsyms_cmds_GCJ | \
18341    export_symbols_cmds_GCJ | \
18342    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18343    postinstall_cmds | postuninstall_cmds | \
18344    old_postinstall_cmds | old_postuninstall_cmds | \
18345    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18346      # Double-quote double-evaled strings.
18347      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18348      ;;
18349    *)
18350      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18351      ;;
18352    esac
18353  done
18354
18355  case $lt_echo in
18356  *'\$0 --fallback-echo"')
18357    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18358    ;;
18359  esac
18360
18361cfgfile="$ofile"
18362
18363  cat <<__EOF__ >> "$cfgfile"
18364# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18365
18366# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18367
18368# Shell to use when invoking shell scripts.
18369SHELL=$lt_SHELL
18370
18371# Whether or not to build shared libraries.
18372build_libtool_libs=$enable_shared
18373
18374# Whether or not to build static libraries.
18375build_old_libs=$enable_static
18376
18377# Whether or not to add -lc for building shared libraries.
18378build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18379
18380# Whether or not to disallow shared libs when runtime libs are static
18381allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18382
18383# Whether or not to optimize for fast installation.
18384fast_install=$enable_fast_install
18385
18386# The host system.
18387host_alias=$host_alias
18388host=$host
18389host_os=$host_os
18390
18391# The build system.
18392build_alias=$build_alias
18393build=$build
18394build_os=$build_os
18395
18396# An echo program that does not interpret backslashes.
18397echo=$lt_echo
18398
18399# The archiver.
18400AR=$lt_AR
18401AR_FLAGS=$lt_AR_FLAGS
18402
18403# A C compiler.
18404LTCC=$lt_LTCC
18405
18406# LTCC compiler flags.
18407LTCFLAGS=$lt_LTCFLAGS
18408
18409# A language-specific compiler.
18410CC=$lt_compiler_GCJ
18411
18412# Is the compiler the GNU C compiler?
18413with_gcc=$GCC_GCJ
18414
18415# An ERE matcher.
18416EGREP=$lt_EGREP
18417
18418# The linker used to build libraries.
18419LD=$lt_LD_GCJ
18420
18421# Whether we need hard or soft links.
18422LN_S=$lt_LN_S
18423
18424# A BSD-compatible nm program.
18425NM=$lt_NM
18426
18427# A symbol stripping program
18428STRIP=$lt_STRIP
18429
18430# Used to examine libraries when file_magic_cmd begins "file"
18431MAGIC_CMD=$MAGIC_CMD
18432
18433# Used on cygwin: DLL creation program.
18434DLLTOOL="$DLLTOOL"
18435
18436# Used on cygwin: object dumper.
18437OBJDUMP="$OBJDUMP"
18438
18439# Used on cygwin: assembler.
18440AS="$AS"
18441
18442# The name of the directory that contains temporary libtool files.
18443objdir=$objdir
18444
18445# How to create reloadable object files.
18446reload_flag=$lt_reload_flag
18447reload_cmds=$lt_reload_cmds
18448
18449# How to pass a linker flag through the compiler.
18450wl=$lt_lt_prog_compiler_wl_GCJ
18451
18452# Object file suffix (normally "o").
18453objext="$ac_objext"
18454
18455# Old archive suffix (normally "a").
18456libext="$libext"
18457
18458# Shared library suffix (normally ".so").
18459shrext_cmds='$shrext_cmds'
18460
18461# Executable file suffix (normally "").
18462exeext="$exeext"
18463
18464# Additional compiler flags for building library objects.
18465pic_flag=$lt_lt_prog_compiler_pic_GCJ
18466pic_mode=$pic_mode
18467
18468# What is the maximum length of a command?
18469max_cmd_len=$lt_cv_sys_max_cmd_len
18470
18471# Does compiler simultaneously support -c and -o options?
18472compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18473
18474# Must we lock files when doing compilation?
18475need_locks=$lt_need_locks
18476
18477# Do we need the lib prefix for modules?
18478need_lib_prefix=$need_lib_prefix
18479
18480# Do we need a version for libraries?
18481need_version=$need_version
18482
18483# Whether dlopen is supported.
18484dlopen_support=$enable_dlopen
18485
18486# Whether dlopen of programs is supported.
18487dlopen_self=$enable_dlopen_self
18488
18489# Whether dlopen of statically linked programs is supported.
18490dlopen_self_static=$enable_dlopen_self_static
18491
18492# Compiler flag to prevent dynamic linking.
18493link_static_flag=$lt_lt_prog_compiler_static_GCJ
18494
18495# Compiler flag to turn off builtin functions.
18496no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18497
18498# Compiler flag to allow reflexive dlopens.
18499export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18500
18501# Compiler flag to generate shared objects directly from archives.
18502whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18503
18504# Compiler flag to generate thread-safe objects.
18505thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18506
18507# Library versioning type.
18508version_type=$version_type
18509
18510# Format of library name prefix.
18511libname_spec=$lt_libname_spec
18512
18513# List of archive names.  First name is the real one, the rest are links.
18514# The last name is the one that the linker finds with -lNAME.
18515library_names_spec=$lt_library_names_spec
18516
18517# The coded name of the library, if different from the real name.
18518soname_spec=$lt_soname_spec
18519
18520# Commands used to build and install an old-style archive.
18521RANLIB=$lt_RANLIB
18522old_archive_cmds=$lt_old_archive_cmds_GCJ
18523old_postinstall_cmds=$lt_old_postinstall_cmds
18524old_postuninstall_cmds=$lt_old_postuninstall_cmds
18525
18526# Create an old-style archive from a shared archive.
18527old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18528
18529# Create a temporary old-style archive to link instead of a shared archive.
18530old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18531
18532# Commands used to build and install a shared archive.
18533archive_cmds=$lt_archive_cmds_GCJ
18534archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18535postinstall_cmds=$lt_postinstall_cmds
18536postuninstall_cmds=$lt_postuninstall_cmds
18537
18538# Commands used to build a loadable module (assumed same as above if empty)
18539module_cmds=$lt_module_cmds_GCJ
18540module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18541
18542# Commands to strip libraries.
18543old_striplib=$lt_old_striplib
18544striplib=$lt_striplib
18545
18546# Dependencies to place before the objects being linked to create a
18547# shared library.
18548predep_objects=$lt_predep_objects_GCJ
18549
18550# Dependencies to place after the objects being linked to create a
18551# shared library.
18552postdep_objects=$lt_postdep_objects_GCJ
18553
18554# Dependencies to place before the objects being linked to create a
18555# shared library.
18556predeps=$lt_predeps_GCJ
18557
18558# Dependencies to place after the objects being linked to create a
18559# shared library.
18560postdeps=$lt_postdeps_GCJ
18561
18562# The library search path used internally by the compiler when linking
18563# a shared library.
18564compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18565
18566# Method to check whether dependent libraries are shared objects.
18567deplibs_check_method=$lt_deplibs_check_method
18568
18569# Command to use when deplibs_check_method == file_magic.
18570file_magic_cmd=$lt_file_magic_cmd
18571
18572# Flag that allows shared libraries with undefined symbols to be built.
18573allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18574
18575# Flag that forces no undefined symbols.
18576no_undefined_flag=$lt_no_undefined_flag_GCJ
18577
18578# Commands used to finish a libtool library installation in a directory.
18579finish_cmds=$lt_finish_cmds
18580
18581# Same as above, but a single script fragment to be evaled but not shown.
18582finish_eval=$lt_finish_eval
18583
18584# Take the output of nm and produce a listing of raw symbols and C names.
18585global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18586
18587# Transform the output of nm in a proper C declaration
18588global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18589
18590# Transform the output of nm in a C name address pair
18591global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18592
18593# This is the shared library runtime path variable.
18594runpath_var=$runpath_var
18595
18596# This is the shared library path variable.
18597shlibpath_var=$shlibpath_var
18598
18599# Is shlibpath searched before the hard-coded library search path?
18600shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18601
18602# How to hardcode a shared library path into an executable.
18603hardcode_action=$hardcode_action_GCJ
18604
18605# Whether we should hardcode library paths into libraries.
18606hardcode_into_libs=$hardcode_into_libs
18607
18608# Flag to hardcode \$libdir into a binary during linking.
18609# This must work even if \$libdir does not exist.
18610hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18611
18612# If ld is used when linking, flag to hardcode \$libdir into
18613# a binary during linking. This must work even if \$libdir does
18614# not exist.
18615hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18616
18617# Whether we need a single -rpath flag with a separated argument.
18618hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18619
18620# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18621# resulting binary.
18622hardcode_direct=$hardcode_direct_GCJ
18623
18624# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18625# resulting binary.
18626hardcode_minus_L=$hardcode_minus_L_GCJ
18627
18628# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18629# the resulting binary.
18630hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18631
18632# Set to yes if building a shared library automatically hardcodes DIR into the library
18633# and all subsequent libraries and executables linked against it.
18634hardcode_automatic=$hardcode_automatic_GCJ
18635
18636# Variables whose values should be saved in libtool wrapper scripts and
18637# restored at relink time.
18638variables_saved_for_relink="$variables_saved_for_relink"
18639
18640# Whether libtool must link a program against all its dependency libraries.
18641link_all_deplibs=$link_all_deplibs_GCJ
18642
18643# Compile-time system search path for libraries
18644sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18645
18646# Run-time system search path for libraries
18647sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18648
18649# Fix the shell variable \$srcfile for the compiler.
18650fix_srcfile_path="$fix_srcfile_path_GCJ"
18651
18652# Set to yes if exported symbols are required.
18653always_export_symbols=$always_export_symbols_GCJ
18654
18655# The commands to list exported symbols.
18656export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18657
18658# The commands to extract the exported symbol list from a shared archive.
18659extract_expsyms_cmds=$lt_extract_expsyms_cmds
18660
18661# Symbols that should not be listed in the preloaded symbols.
18662exclude_expsyms=$lt_exclude_expsyms_GCJ
18663
18664# Symbols that must always be exported.
18665include_expsyms=$lt_include_expsyms_GCJ
18666
18667# ### END LIBTOOL TAG CONFIG: $tagname
18668
18669__EOF__
18670
18671
18672else
18673  # If there is no Makefile yet, we rely on a make rule to execute
18674  # `config.status --recheck' to rerun these tests and create the
18675  # libtool script then.
18676  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18677  if test -f "$ltmain_in"; then
18678    test -f Makefile && make "$ltmain"
18679  fi
18680fi
18681
18682
18683ac_ext=c
18684ac_cpp='$CPP $CPPFLAGS'
18685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18687ac_compiler_gnu=$ac_cv_c_compiler_gnu
18688
18689CC="$lt_save_CC"
18690
18691        else
18692          tagname=""
18693        fi
18694        ;;
18695
18696      RC)
18697
18698
18699# Source file extension for RC test sources.
18700ac_ext=rc
18701
18702# Object file extension for compiled RC test sources.
18703objext=o
18704objext_RC=$objext
18705
18706# Code to be used in simple compile tests
18707lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18708
18709# Code to be used in simple link tests
18710lt_simple_link_test_code="$lt_simple_compile_test_code"
18711
18712# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18713
18714# If no C compiler was specified, use CC.
18715LTCC=${LTCC-"$CC"}
18716
18717# If no C compiler flags were specified, use CFLAGS.
18718LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18719
18720# Allow CC to be a program name with arguments.
18721compiler=$CC
18722
18723
18724# save warnings/boilerplate of simple test code
18725ac_outfile=conftest.$ac_objext
18726printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18727eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18728_lt_compiler_boilerplate=`cat conftest.err`
18729$rm conftest*
18730
18731ac_outfile=conftest.$ac_objext
18732printf "$lt_simple_link_test_code" >conftest.$ac_ext
18733eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18734_lt_linker_boilerplate=`cat conftest.err`
18735$rm conftest*
18736
18737
18738# Allow CC to be a program name with arguments.
18739lt_save_CC="$CC"
18740CC=${RC-"windres"}
18741compiler=$CC
18742compiler_RC=$CC
18743for cc_temp in $compiler""; do
18744  case $cc_temp in
18745    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18746    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18747    \-*) ;;
18748    *) break;;
18749  esac
18750done
18751cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18752
18753lt_cv_prog_compiler_c_o_RC=yes
18754
18755# The else clause should only fire when bootstrapping the
18756# libtool distribution, otherwise you forgot to ship ltmain.sh
18757# with your package, and you will get complaints that there are
18758# no rules to generate ltmain.sh.
18759if test -f "$ltmain"; then
18760  # See if we are running on zsh, and set the options which allow our commands through
18761  # without removal of \ escapes.
18762  if test -n "${ZSH_VERSION+set}" ; then
18763    setopt NO_GLOB_SUBST
18764  fi
18765  # Now quote all the things that may contain metacharacters while being
18766  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18767  # variables and quote the copies for generation of the libtool script.
18768  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18769    SED SHELL STRIP \
18770    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18771    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18772    deplibs_check_method reload_flag reload_cmds need_locks \
18773    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18774    lt_cv_sys_global_symbol_to_c_name_address \
18775    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18776    old_postinstall_cmds old_postuninstall_cmds \
18777    compiler_RC \
18778    CC_RC \
18779    LD_RC \
18780    lt_prog_compiler_wl_RC \
18781    lt_prog_compiler_pic_RC \
18782    lt_prog_compiler_static_RC \
18783    lt_prog_compiler_no_builtin_flag_RC \
18784    export_dynamic_flag_spec_RC \
18785    thread_safe_flag_spec_RC \
18786    whole_archive_flag_spec_RC \
18787    enable_shared_with_static_runtimes_RC \
18788    old_archive_cmds_RC \
18789    old_archive_from_new_cmds_RC \
18790    predep_objects_RC \
18791    postdep_objects_RC \
18792    predeps_RC \
18793    postdeps_RC \
18794    compiler_lib_search_path_RC \
18795    archive_cmds_RC \
18796    archive_expsym_cmds_RC \
18797    postinstall_cmds_RC \
18798    postuninstall_cmds_RC \
18799    old_archive_from_expsyms_cmds_RC \
18800    allow_undefined_flag_RC \
18801    no_undefined_flag_RC \
18802    export_symbols_cmds_RC \
18803    hardcode_libdir_flag_spec_RC \
18804    hardcode_libdir_flag_spec_ld_RC \
18805    hardcode_libdir_separator_RC \
18806    hardcode_automatic_RC \
18807    module_cmds_RC \
18808    module_expsym_cmds_RC \
18809    lt_cv_prog_compiler_c_o_RC \
18810    exclude_expsyms_RC \
18811    include_expsyms_RC; do
18812
18813    case $var in
18814    old_archive_cmds_RC | \
18815    old_archive_from_new_cmds_RC | \
18816    archive_cmds_RC | \
18817    archive_expsym_cmds_RC | \
18818    module_cmds_RC | \
18819    module_expsym_cmds_RC | \
18820    old_archive_from_expsyms_cmds_RC | \
18821    export_symbols_cmds_RC | \
18822    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18823    postinstall_cmds | postuninstall_cmds | \
18824    old_postinstall_cmds | old_postuninstall_cmds | \
18825    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18826      # Double-quote double-evaled strings.
18827      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18828      ;;
18829    *)
18830      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18831      ;;
18832    esac
18833  done
18834
18835  case $lt_echo in
18836  *'\$0 --fallback-echo"')
18837    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18838    ;;
18839  esac
18840
18841cfgfile="$ofile"
18842
18843  cat <<__EOF__ >> "$cfgfile"
18844# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18845
18846# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18847
18848# Shell to use when invoking shell scripts.
18849SHELL=$lt_SHELL
18850
18851# Whether or not to build shared libraries.
18852build_libtool_libs=$enable_shared
18853
18854# Whether or not to build static libraries.
18855build_old_libs=$enable_static
18856
18857# Whether or not to add -lc for building shared libraries.
18858build_libtool_need_lc=$archive_cmds_need_lc_RC
18859
18860# Whether or not to disallow shared libs when runtime libs are static
18861allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18862
18863# Whether or not to optimize for fast installation.
18864fast_install=$enable_fast_install
18865
18866# The host system.
18867host_alias=$host_alias
18868host=$host
18869host_os=$host_os
18870
18871# The build system.
18872build_alias=$build_alias
18873build=$build
18874build_os=$build_os
18875
18876# An echo program that does not interpret backslashes.
18877echo=$lt_echo
18878
18879# The archiver.
18880AR=$lt_AR
18881AR_FLAGS=$lt_AR_FLAGS
18882
18883# A C compiler.
18884LTCC=$lt_LTCC
18885
18886# LTCC compiler flags.
18887LTCFLAGS=$lt_LTCFLAGS
18888
18889# A language-specific compiler.
18890CC=$lt_compiler_RC
18891
18892# Is the compiler the GNU C compiler?
18893with_gcc=$GCC_RC
18894
18895# An ERE matcher.
18896EGREP=$lt_EGREP
18897
18898# The linker used to build libraries.
18899LD=$lt_LD_RC
18900
18901# Whether we need hard or soft links.
18902LN_S=$lt_LN_S
18903
18904# A BSD-compatible nm program.
18905NM=$lt_NM
18906
18907# A symbol stripping program
18908STRIP=$lt_STRIP
18909
18910# Used to examine libraries when file_magic_cmd begins "file"
18911MAGIC_CMD=$MAGIC_CMD
18912
18913# Used on cygwin: DLL creation program.
18914DLLTOOL="$DLLTOOL"
18915
18916# Used on cygwin: object dumper.
18917OBJDUMP="$OBJDUMP"
18918
18919# Used on cygwin: assembler.
18920AS="$AS"
18921
18922# The name of the directory that contains temporary libtool files.
18923objdir=$objdir
18924
18925# How to create reloadable object files.
18926reload_flag=$lt_reload_flag
18927reload_cmds=$lt_reload_cmds
18928
18929# How to pass a linker flag through the compiler.
18930wl=$lt_lt_prog_compiler_wl_RC
18931
18932# Object file suffix (normally "o").
18933objext="$ac_objext"
18934
18935# Old archive suffix (normally "a").
18936libext="$libext"
18937
18938# Shared library suffix (normally ".so").
18939shrext_cmds='$shrext_cmds'
18940
18941# Executable file suffix (normally "").
18942exeext="$exeext"
18943
18944# Additional compiler flags for building library objects.
18945pic_flag=$lt_lt_prog_compiler_pic_RC
18946pic_mode=$pic_mode
18947
18948# What is the maximum length of a command?
18949max_cmd_len=$lt_cv_sys_max_cmd_len
18950
18951# Does compiler simultaneously support -c and -o options?
18952compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18953
18954# Must we lock files when doing compilation?
18955need_locks=$lt_need_locks
18956
18957# Do we need the lib prefix for modules?
18958need_lib_prefix=$need_lib_prefix
18959
18960# Do we need a version for libraries?
18961need_version=$need_version
18962
18963# Whether dlopen is supported.
18964dlopen_support=$enable_dlopen
18965
18966# Whether dlopen of programs is supported.
18967dlopen_self=$enable_dlopen_self
18968
18969# Whether dlopen of statically linked programs is supported.
18970dlopen_self_static=$enable_dlopen_self_static
18971
18972# Compiler flag to prevent dynamic linking.
18973link_static_flag=$lt_lt_prog_compiler_static_RC
18974
18975# Compiler flag to turn off builtin functions.
18976no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18977
18978# Compiler flag to allow reflexive dlopens.
18979export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18980
18981# Compiler flag to generate shared objects directly from archives.
18982whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18983
18984# Compiler flag to generate thread-safe objects.
18985thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18986
18987# Library versioning type.
18988version_type=$version_type
18989
18990# Format of library name prefix.
18991libname_spec=$lt_libname_spec
18992
18993# List of archive names.  First name is the real one, the rest are links.
18994# The last name is the one that the linker finds with -lNAME.
18995library_names_spec=$lt_library_names_spec
18996
18997# The coded name of the library, if different from the real name.
18998soname_spec=$lt_soname_spec
18999
19000# Commands used to build and install an old-style archive.
19001RANLIB=$lt_RANLIB
19002old_archive_cmds=$lt_old_archive_cmds_RC
19003old_postinstall_cmds=$lt_old_postinstall_cmds
19004old_postuninstall_cmds=$lt_old_postuninstall_cmds
19005
19006# Create an old-style archive from a shared archive.
19007old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19008
19009# Create a temporary old-style archive to link instead of a shared archive.
19010old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19011
19012# Commands used to build and install a shared archive.
19013archive_cmds=$lt_archive_cmds_RC
19014archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19015postinstall_cmds=$lt_postinstall_cmds
19016postuninstall_cmds=$lt_postuninstall_cmds
19017
19018# Commands used to build a loadable module (assumed same as above if empty)
19019module_cmds=$lt_module_cmds_RC
19020module_expsym_cmds=$lt_module_expsym_cmds_RC
19021
19022# Commands to strip libraries.
19023old_striplib=$lt_old_striplib
19024striplib=$lt_striplib
19025
19026# Dependencies to place before the objects being linked to create a
19027# shared library.
19028predep_objects=$lt_predep_objects_RC
19029
19030# Dependencies to place after the objects being linked to create a
19031# shared library.
19032postdep_objects=$lt_postdep_objects_RC
19033
19034# Dependencies to place before the objects being linked to create a
19035# shared library.
19036predeps=$lt_predeps_RC
19037
19038# Dependencies to place after the objects being linked to create a
19039# shared library.
19040postdeps=$lt_postdeps_RC
19041
19042# The library search path used internally by the compiler when linking
19043# a shared library.
19044compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19045
19046# Method to check whether dependent libraries are shared objects.
19047deplibs_check_method=$lt_deplibs_check_method
19048
19049# Command to use when deplibs_check_method == file_magic.
19050file_magic_cmd=$lt_file_magic_cmd
19051
19052# Flag that allows shared libraries with undefined symbols to be built.
19053allow_undefined_flag=$lt_allow_undefined_flag_RC
19054
19055# Flag that forces no undefined symbols.
19056no_undefined_flag=$lt_no_undefined_flag_RC
19057
19058# Commands used to finish a libtool library installation in a directory.
19059finish_cmds=$lt_finish_cmds
19060
19061# Same as above, but a single script fragment to be evaled but not shown.
19062finish_eval=$lt_finish_eval
19063
19064# Take the output of nm and produce a listing of raw symbols and C names.
19065global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19066
19067# Transform the output of nm in a proper C declaration
19068global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19069
19070# Transform the output of nm in a C name address pair
19071global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19072
19073# This is the shared library runtime path variable.
19074runpath_var=$runpath_var
19075
19076# This is the shared library path variable.
19077shlibpath_var=$shlibpath_var
19078
19079# Is shlibpath searched before the hard-coded library search path?
19080shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19081
19082# How to hardcode a shared library path into an executable.
19083hardcode_action=$hardcode_action_RC
19084
19085# Whether we should hardcode library paths into libraries.
19086hardcode_into_libs=$hardcode_into_libs
19087
19088# Flag to hardcode \$libdir into a binary during linking.
19089# This must work even if \$libdir does not exist.
19090hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19091
19092# If ld is used when linking, flag to hardcode \$libdir into
19093# a binary during linking. This must work even if \$libdir does
19094# not exist.
19095hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19096
19097# Whether we need a single -rpath flag with a separated argument.
19098hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19099
19100# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19101# resulting binary.
19102hardcode_direct=$hardcode_direct_RC
19103
19104# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19105# resulting binary.
19106hardcode_minus_L=$hardcode_minus_L_RC
19107
19108# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19109# the resulting binary.
19110hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19111
19112# Set to yes if building a shared library automatically hardcodes DIR into the library
19113# and all subsequent libraries and executables linked against it.
19114hardcode_automatic=$hardcode_automatic_RC
19115
19116# Variables whose values should be saved in libtool wrapper scripts and
19117# restored at relink time.
19118variables_saved_for_relink="$variables_saved_for_relink"
19119
19120# Whether libtool must link a program against all its dependency libraries.
19121link_all_deplibs=$link_all_deplibs_RC
19122
19123# Compile-time system search path for libraries
19124sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19125
19126# Run-time system search path for libraries
19127sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19128
19129# Fix the shell variable \$srcfile for the compiler.
19130fix_srcfile_path="$fix_srcfile_path_RC"
19131
19132# Set to yes if exported symbols are required.
19133always_export_symbols=$always_export_symbols_RC
19134
19135# The commands to list exported symbols.
19136export_symbols_cmds=$lt_export_symbols_cmds_RC
19137
19138# The commands to extract the exported symbol list from a shared archive.
19139extract_expsyms_cmds=$lt_extract_expsyms_cmds
19140
19141# Symbols that should not be listed in the preloaded symbols.
19142exclude_expsyms=$lt_exclude_expsyms_RC
19143
19144# Symbols that must always be exported.
19145include_expsyms=$lt_include_expsyms_RC
19146
19147# ### END LIBTOOL TAG CONFIG: $tagname
19148
19149__EOF__
19150
19151
19152else
19153  # If there is no Makefile yet, we rely on a make rule to execute
19154  # `config.status --recheck' to rerun these tests and create the
19155  # libtool script then.
19156  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19157  if test -f "$ltmain_in"; then
19158    test -f Makefile && make "$ltmain"
19159  fi
19160fi
19161
19162
19163ac_ext=c
19164ac_cpp='$CPP $CPPFLAGS'
19165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19167ac_compiler_gnu=$ac_cv_c_compiler_gnu
19168
19169CC="$lt_save_CC"
19170
19171        ;;
19172
19173      *)
19174        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19175echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19176   { (exit 1); exit 1; }; }
19177        ;;
19178      esac
19179
19180      # Append the new tag name to the list of available tags.
19181      if test -n "$tagname" ; then
19182      available_tags="$available_tags $tagname"
19183    fi
19184    fi
19185  done
19186  IFS="$lt_save_ifs"
19187
19188  # Now substitute the updated list of available tags.
19189  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19190    mv "${ofile}T" "$ofile"
19191    chmod +x "$ofile"
19192  else
19193    rm -f "${ofile}T"
19194    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19195echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19196   { (exit 1); exit 1; }; }
19197  fi
19198fi
19199
19200
19201
19202# This can be used to rebuild libtool when needed
19203LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19204
19205# Always use our own libtool.
19206LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19207
19208# Prevent multiple expansion
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230# Check whether --enable-docs was given.
19231if test "${enable_docs+set}" = set; then
19232  enableval=$enable_docs; case "${enableval}" in
19233    yes) build_docs=true;;
19234    no)  build_docs=false;;
19235    *)   { { echo "$as_me:$LINENO: error: unknown value ${enableval} for --enable-docs" >&5
19236echo "$as_me: error: unknown value ${enableval} for --enable-docs" >&2;}
19237   { (exit 1); exit 1; }; };;
19238  esac
19239else
19240  build_docs=false
19241fi
19242
19243
19244if test x$build_docs = xtrue; then
19245  for ac_prog in xsltproc
19246do
19247  # Extract the first word of "$ac_prog", so it can be a program name with args.
19248set dummy $ac_prog; ac_word=$2
19249{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19251if test "${ac_cv_prog_XSLTPROC+set}" = set; then
19252  echo $ECHO_N "(cached) $ECHO_C" >&6
19253else
19254  if test -n "$XSLTPROC"; then
19255  ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
19256else
19257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19258for as_dir in $PATH
19259do
19260  IFS=$as_save_IFS
19261  test -z "$as_dir" && as_dir=.
19262  for ac_exec_ext in '' $ac_executable_extensions; do
19263  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19264    ac_cv_prog_XSLTPROC="$ac_prog"
19265    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19266    break 2
19267  fi
19268done
19269done
19270IFS=$as_save_IFS
19271
19272fi
19273fi
19274XSLTPROC=$ac_cv_prog_XSLTPROC
19275if test -n "$XSLTPROC"; then
19276  { echo "$as_me:$LINENO: result: $XSLTPROC" >&5
19277echo "${ECHO_T}$XSLTPROC" >&6; }
19278else
19279  { echo "$as_me:$LINENO: result: no" >&5
19280echo "${ECHO_T}no" >&6; }
19281fi
19282
19283
19284  test -n "$XSLTPROC" && break
19285done
19286test -n "$XSLTPROC" || XSLTPROC="/bin/false"
19287
19288  for ac_prog in pdfxmltex
19289do
19290  # Extract the first word of "$ac_prog", so it can be a program name with args.
19291set dummy $ac_prog; ac_word=$2
19292{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19294if test "${ac_cv_prog_PDFXMLTEX+set}" = set; then
19295  echo $ECHO_N "(cached) $ECHO_C" >&6
19296else
19297  if test -n "$PDFXMLTEX"; then
19298  ac_cv_prog_PDFXMLTEX="$PDFXMLTEX" # Let the user override the test.
19299else
19300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19301for as_dir in $PATH
19302do
19303  IFS=$as_save_IFS
19304  test -z "$as_dir" && as_dir=.
19305  for ac_exec_ext in '' $ac_executable_extensions; do
19306  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19307    ac_cv_prog_PDFXMLTEX="$ac_prog"
19308    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19309    break 2
19310  fi
19311done
19312done
19313IFS=$as_save_IFS
19314
19315fi
19316fi
19317PDFXMLTEX=$ac_cv_prog_PDFXMLTEX
19318if test -n "$PDFXMLTEX"; then
19319  { echo "$as_me:$LINENO: result: $PDFXMLTEX" >&5
19320echo "${ECHO_T}$PDFXMLTEX" >&6; }
19321else
19322  { echo "$as_me:$LINENO: result: no" >&5
19323echo "${ECHO_T}no" >&6; }
19324fi
19325
19326
19327  test -n "$PDFXMLTEX" && break
19328done
19329test -n "$PDFXMLTEX" || PDFXMLTEX="/bin/false"
19330
19331  if test "x$XSLTPROC" = "x/bin/false" || test "x$PDFXMLTEX" = "x/bin/false"; then
19332    build_docs=false
19333    { echo "$as_me:$LINENO: WARNING: Documentation will not be built!" >&5
19334echo "$as_me: WARNING: Documentation will not be built!" >&2;}
19335  fi
19336fi
19337
19338 if test x$build_docs = xtrue; then
19339  BUILD_DOCS_TRUE=
19340  BUILD_DOCS_FALSE='#'
19341else
19342  BUILD_DOCS_TRUE='#'
19343  BUILD_DOCS_FALSE=
19344fi
19345
19346
19347
19348
19349cflags_save="$CFLAGS"
19350if test -z "$GCC"; then
19351        case $host in
19352        *-*-irix*)
19353                                                if test -z "$CC"; then
19354                        CC=cc
19355                fi
19356                DEBUG="-g -signed"
19357                CFLAGS="-O2 -w -signed"
19358                PROFILE="-p -g3 -O2 -signed" ;;
19359        sparc-sun-solaris*)
19360                DEBUG="-v -g"
19361                CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
19362                PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc" ;;
19363        *)
19364                DEBUG="-g"
19365                CFLAGS="-O"
19366                PROFILE="-g -p" ;;
19367        esac
19368else
19369
19370        { echo "$as_me:$LINENO: checking GCC version" >&5
19371echo $ECHO_N "checking GCC version... $ECHO_C" >&6; }
19372        GCC_VERSION=`$CC -dumpversion`
19373        { echo "$as_me:$LINENO: result: $GCC_VERSION" >&5
19374echo "${ECHO_T}$GCC_VERSION" >&6; }
19375        case $host in
19376        *86-*-linux*)
19377                DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
19378                CFLAGS="-O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char"
19379#               PROFILE="-Wall -W -pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char -fno-inline -static"
19380                PROFILE="-Wall -W -pg -g -O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char -fno-inline"
19381
19382                # glibc < 2.1.3 has a serious FP bug in the math inline header
19383                # that will cripple Vorbis.  Look to see if the magic FP stack
19384                # clobber is missing in the mathinline header, thus indicating
19385                # the buggy version
19386
19387                cat >conftest.$ac_ext <<_ACEOF
19388/* confdefs.h.  */
19389_ACEOF
19390cat confdefs.h >>conftest.$ac_ext
19391cat >>conftest.$ac_ext <<_ACEOF
19392/* end confdefs.h.  */
19393
19394                                #define __LIBC_INTERNAL_MATH_INLINES 1
19395                                #define __OPTIMIZE__
19396                                #include <math.h>
19397
19398_ACEOF
19399if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19400  $EGREP "log10.*fldlg2.*fxch" >/dev/null 2>&1; then
19401  bad=maybe
19402else
19403  bad=no
19404fi
19405rm -f conftest*
19406
19407                if test ${bad} = "maybe" ;then
19408                      cat >conftest.$ac_ext <<_ACEOF
19409/* confdefs.h.  */
19410_ACEOF
19411cat confdefs.h >>conftest.$ac_ext
19412cat >>conftest.$ac_ext <<_ACEOF
19413/* end confdefs.h.  */
19414
19415                                        #define __LIBC_INTERNAL_MATH_INLINES 1
19416                                        #define __OPTIMIZE__
19417                                        #include <math.h>
19418
19419_ACEOF
19420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19421  $EGREP "log10.*fldlg2.*fxch.*st\([0123456789]*\)" >/dev/null 2>&1; then
19422  bad=no
19423else
19424  bad=yes
19425fi
19426rm -f conftest*
19427
19428                fi
19429                if test ${bad} = "yes" ;then
19430 { echo "$as_me:$LINENO: WARNING:                                                         " >&5
19431echo "$as_me: WARNING:                                                         " >&2;}
19432 { echo "$as_me:$LINENO: WARNING: ********************************************************" >&5
19433echo "$as_me: WARNING: ********************************************************" >&2;}
19434 { echo "$as_me:$LINENO: WARNING: * The glibc headers on this machine have a serious bug *" >&5
19435echo "$as_me: WARNING: * The glibc headers on this machine have a serious bug *" >&2;}
19436 { echo "$as_me:$LINENO: WARNING: * in /usr/include/bits/mathinline.h  This bug affects  *" >&5
19437echo "$as_me: WARNING: * in /usr/include/bits/mathinline.h  This bug affects  *" >&2;}
19438 { echo "$as_me:$LINENO: WARNING: * all floating point code, not just Ogg, built on this *" >&5
19439echo "$as_me: WARNING: * all floating point code, not just Ogg, built on this *" >&2;}
19440 { echo "$as_me:$LINENO: WARNING: * machine.  Upgrading to glibc 2.1.3 is strongly urged *" >&5
19441echo "$as_me: WARNING: * machine.  Upgrading to glibc 2.1.3 is strongly urged *" >&2;}
19442 { echo "$as_me:$LINENO: WARNING: * to correct the problem.  Note that upgrading glibc   *" >&5
19443echo "$as_me: WARNING: * to correct the problem.  Note that upgrading glibc   *" >&2;}
19444 { echo "$as_me:$LINENO: WARNING: * will not fix any previously built programs; this is  *" >&5
19445echo "$as_me: WARNING: * will not fix any previously built programs; this is  *" >&2;}
19446 { echo "$as_me:$LINENO: WARNING: * a compile-time time bug.                             *" >&5
19447echo "$as_me: WARNING: * a compile-time time bug.                             *" >&2;}
19448 { echo "$as_me:$LINENO: WARNING: * To work around the problem for this build of Ogg,    *" >&5
19449echo "$as_me: WARNING: * To work around the problem for this build of Ogg,    *" >&2;}
19450 { echo "$as_me:$LINENO: WARNING: * autoconf is disabling all math inlining.  This will  *" >&5
19451echo "$as_me: WARNING: * autoconf is disabling all math inlining.  This will  *" >&2;}
19452 { echo "$as_me:$LINENO: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&5
19453echo "$as_me: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&2;}
19454 { echo "$as_me:$LINENO: WARNING: * will actually work.  Once glibc is upgraded, rerun   *" >&5
19455echo "$as_me: WARNING: * will actually work.  Once glibc is upgraded, rerun   *" >&2;}
19456 { echo "$as_me:$LINENO: WARNING: * configure and make to build with inlining.           *" >&5
19457echo "$as_me: WARNING: * configure and make to build with inlining.           *" >&2;}
19458 { echo "$as_me:$LINENO: WARNING: ********************************************************" >&5
19459echo "$as_me: WARNING: ********************************************************" >&2;}
19460 { echo "$as_me:$LINENO: WARNING:                                                         " >&5
19461echo "$as_me: WARNING:                                                         " >&2;}
19462
19463                CFLAGS=${OPT}" -D__NO_MATH_INLINES"
19464                PROFILE=${PROFILE}" -D__NO_MATH_INLINES"
19465                fi;;
19466        powerpc-*-linux*)
19467                DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES"
19468                CFLAGS="-O3 -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT"
19469                PROFILE="-pg -g -O3 -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT";;
19470        *-*-linux*)
19471                DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
19472                CFLAGS="-O20 -ffast-math -D_REENTRANT -fsigned-char"
19473                PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";;
19474        sparc-sun-*)
19475                DEBUG="-g -Wall -W -D__NO_MATH_INLINES -fsigned-char -mv8"
19476                CFLAGS="-O20 -ffast-math -D__NO_MATH_INLINES -fsigned-char -mv8"
19477                PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char -mv8" ;;
19478        *-*-darwin*)
19479                DEBUG="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O0 -fsigned-char"
19480                CFLAGS="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O4 -ffast-math -fsigned-char"
19481                PROFILE="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -pg -O4 -ffast-math -fsigned-char";;
19482        *)
19483                DEBUG="-g -Wall -W -D__NO_MATH_INLINES -fsigned-char"
19484                CFLAGS="-O20 -D__NO_MATH_INLINES -fsigned-char"
19485                PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;;
19486        esac
19487fi
19488CFLAGS="$CFLAGS $cflags_save"
19489
19490
19491if test "${ac_cv_header_memory_h+set}" = set; then
19492  { echo "$as_me:$LINENO: checking for memory.h" >&5
19493echo $ECHO_N "checking for memory.h... $ECHO_C" >&6; }
19494if test "${ac_cv_header_memory_h+set}" = set; then
19495  echo $ECHO_N "(cached) $ECHO_C" >&6
19496fi
19497{ echo "$as_me:$LINENO: result: $ac_cv_header_memory_h" >&5
19498echo "${ECHO_T}$ac_cv_header_memory_h" >&6; }
19499else
19500  # Is the header compilable?
19501{ echo "$as_me:$LINENO: checking memory.h usability" >&5
19502echo $ECHO_N "checking memory.h usability... $ECHO_C" >&6; }
19503cat >conftest.$ac_ext <<_ACEOF
19504/* confdefs.h.  */
19505_ACEOF
19506cat confdefs.h >>conftest.$ac_ext
19507cat >>conftest.$ac_ext <<_ACEOF
19508/* end confdefs.h.  */
19509$ac_includes_default
19510#include <memory.h>
19511_ACEOF
19512rm -f conftest.$ac_objext
19513if { (ac_try="$ac_compile"
19514case "(($ac_try" in
19515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516  *) ac_try_echo=$ac_try;;
19517esac
19518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19519  (eval "$ac_compile") 2>conftest.er1
19520  ac_status=$?
19521  grep -v '^ *+' conftest.er1 >conftest.err
19522  rm -f conftest.er1
19523  cat conftest.err >&5
19524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525  (exit $ac_status); } && {
19526         test -z "$ac_c_werror_flag" ||
19527         test ! -s conftest.err
19528       } && test -s conftest.$ac_objext; then
19529  ac_header_compiler=yes
19530else
19531  echo "$as_me: failed program was:" >&5
19532sed 's/^/| /' conftest.$ac_ext >&5
19533
19534        ac_header_compiler=no
19535fi
19536
19537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19538{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19539echo "${ECHO_T}$ac_header_compiler" >&6; }
19540
19541# Is the header present?
19542{ echo "$as_me:$LINENO: checking memory.h presence" >&5
19543echo $ECHO_N "checking memory.h presence... $ECHO_C" >&6; }
19544cat >conftest.$ac_ext <<_ACEOF
19545/* confdefs.h.  */
19546_ACEOF
19547cat confdefs.h >>conftest.$ac_ext
19548cat >>conftest.$ac_ext <<_ACEOF
19549/* end confdefs.h.  */
19550#include <memory.h>
19551_ACEOF
19552if { (ac_try="$ac_cpp conftest.$ac_ext"
19553case "(($ac_try" in
19554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555  *) ac_try_echo=$ac_try;;
19556esac
19557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19558  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19559  ac_status=$?
19560  grep -v '^ *+' conftest.er1 >conftest.err
19561  rm -f conftest.er1
19562  cat conftest.err >&5
19563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564  (exit $ac_status); } >/dev/null && {
19565         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19566         test ! -s conftest.err
19567       }; then
19568  ac_header_preproc=yes
19569else
19570  echo "$as_me: failed program was:" >&5
19571sed 's/^/| /' conftest.$ac_ext >&5
19572
19573  ac_header_preproc=no
19574fi
19575
19576rm -f conftest.err conftest.$ac_ext
19577{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19578echo "${ECHO_T}$ac_header_preproc" >&6; }
19579
19580# So?  What about this header?
19581case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19582  yes:no: )
19583    { echo "$as_me:$LINENO: WARNING: memory.h: accepted by the compiler, rejected by the preprocessor!" >&5
19584echo "$as_me: WARNING: memory.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19585    { echo "$as_me:$LINENO: WARNING: memory.h: proceeding with the compiler's result" >&5
19586echo "$as_me: WARNING: memory.h: proceeding with the compiler's result" >&2;}
19587    ac_header_preproc=yes
19588    ;;
19589  no:yes:* )
19590    { echo "$as_me:$LINENO: WARNING: memory.h: present but cannot be compiled" >&5
19591echo "$as_me: WARNING: memory.h: present but cannot be compiled" >&2;}
19592    { echo "$as_me:$LINENO: WARNING: memory.h:     check for missing prerequisite headers?" >&5
19593echo "$as_me: WARNING: memory.h:     check for missing prerequisite headers?" >&2;}
19594    { echo "$as_me:$LINENO: WARNING: memory.h: see the Autoconf documentation" >&5
19595echo "$as_me: WARNING: memory.h: see the Autoconf documentation" >&2;}
19596    { echo "$as_me:$LINENO: WARNING: memory.h:     section \"Present But Cannot Be Compiled\"" >&5
19597echo "$as_me: WARNING: memory.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19598    { echo "$as_me:$LINENO: WARNING: memory.h: proceeding with the preprocessor's result" >&5
19599echo "$as_me: WARNING: memory.h: proceeding with the preprocessor's result" >&2;}
19600    { echo "$as_me:$LINENO: WARNING: memory.h: in the future, the compiler will take precedence" >&5
19601echo "$as_me: WARNING: memory.h: in the future, the compiler will take precedence" >&2;}
19602
19603    ;;
19604esac
19605{ echo "$as_me:$LINENO: checking for memory.h" >&5
19606echo $ECHO_N "checking for memory.h... $ECHO_C" >&6; }
19607if test "${ac_cv_header_memory_h+set}" = set; then
19608  echo $ECHO_N "(cached) $ECHO_C" >&6
19609else
19610  ac_cv_header_memory_h=$ac_header_preproc
19611fi
19612{ echo "$as_me:$LINENO: result: $ac_cv_header_memory_h" >&5
19613echo "${ECHO_T}$ac_cv_header_memory_h" >&6; }
19614
19615fi
19616if test $ac_cv_header_memory_h = yes; then
19617  CFLAGS="$CFLAGS -DUSE_MEMORY_H"
19618else
19619  :
19620fi
19621
19622
19623
19624
19625
19626
19627{ echo "$as_me:$LINENO: checking for cos in -lm" >&5
19628echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6; }
19629if test "${ac_cv_lib_m_cos+set}" = set; then
19630  echo $ECHO_N "(cached) $ECHO_C" >&6
19631else
19632  ac_check_lib_save_LIBS=$LIBS
19633LIBS="-lm  $LIBS"
19634cat >conftest.$ac_ext <<_ACEOF
19635/* confdefs.h.  */
19636_ACEOF
19637cat confdefs.h >>conftest.$ac_ext
19638cat >>conftest.$ac_ext <<_ACEOF
19639/* end confdefs.h.  */
19640
19641/* Override any GCC internal prototype to avoid an error.
19642   Use char because int might match the return type of a GCC
19643   builtin and then its argument prototype would still apply.  */
19644#ifdef __cplusplus
19645extern "C"
19646#endif
19647char cos ();
19648int
19649main ()
19650{
19651return cos ();
19652  ;
19653  return 0;
19654}
19655_ACEOF
19656rm -f conftest.$ac_objext conftest$ac_exeext
19657if { (ac_try="$ac_link"
19658case "(($ac_try" in
19659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19660  *) ac_try_echo=$ac_try;;
19661esac
19662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19663  (eval "$ac_link") 2>conftest.er1
19664  ac_status=$?
19665  grep -v '^ *+' conftest.er1 >conftest.err
19666  rm -f conftest.er1
19667  cat conftest.err >&5
19668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669  (exit $ac_status); } && {
19670         test -z "$ac_c_werror_flag" ||
19671         test ! -s conftest.err
19672       } && test -s conftest$ac_exeext &&
19673       $as_test_x conftest$ac_exeext; then
19674  ac_cv_lib_m_cos=yes
19675else
19676  echo "$as_me: failed program was:" >&5
19677sed 's/^/| /' conftest.$ac_ext >&5
19678
19679        ac_cv_lib_m_cos=no
19680fi
19681
19682rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19683      conftest$ac_exeext conftest.$ac_ext
19684LIBS=$ac_check_lib_save_LIBS
19685fi
19686{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
19687echo "${ECHO_T}$ac_cv_lib_m_cos" >&6; }
19688if test $ac_cv_lib_m_cos = yes; then
19689  VORBIS_LIBS="-lm"
19690else
19691  VORBIS_LIBS=""
19692fi
19693
19694{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19695echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
19696if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19697  echo $ECHO_N "(cached) $ECHO_C" >&6
19698else
19699  ac_check_lib_save_LIBS=$LIBS
19700LIBS="-lpthread  $LIBS"
19701cat >conftest.$ac_ext <<_ACEOF
19702/* confdefs.h.  */
19703_ACEOF
19704cat confdefs.h >>conftest.$ac_ext
19705cat >>conftest.$ac_ext <<_ACEOF
19706/* end confdefs.h.  */
19707
19708/* Override any GCC internal prototype to avoid an error.
19709   Use char because int might match the return type of a GCC
19710   builtin and then its argument prototype would still apply.  */
19711#ifdef __cplusplus
19712extern "C"
19713#endif
19714char pthread_create ();
19715int
19716main ()
19717{
19718return pthread_create ();
19719  ;
19720  return 0;
19721}
19722_ACEOF
19723rm -f conftest.$ac_objext conftest$ac_exeext
19724if { (ac_try="$ac_link"
19725case "(($ac_try" in
19726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19727  *) ac_try_echo=$ac_try;;
19728esac
19729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19730  (eval "$ac_link") 2>conftest.er1
19731  ac_status=$?
19732  grep -v '^ *+' conftest.er1 >conftest.err
19733  rm -f conftest.er1
19734  cat conftest.err >&5
19735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736  (exit $ac_status); } && {
19737         test -z "$ac_c_werror_flag" ||
19738         test ! -s conftest.err
19739       } && test -s conftest$ac_exeext &&
19740       $as_test_x conftest$ac_exeext; then
19741  ac_cv_lib_pthread_pthread_create=yes
19742else
19743  echo "$as_me: failed program was:" >&5
19744sed 's/^/| /' conftest.$ac_ext >&5
19745
19746        ac_cv_lib_pthread_pthread_create=no
19747fi
19748
19749rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19750      conftest$ac_exeext conftest.$ac_ext
19751LIBS=$ac_check_lib_save_LIBS
19752fi
19753{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19754echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
19755if test $ac_cv_lib_pthread_pthread_create = yes; then
19756  pthread_lib="-lpthread"
19757else
19758  :
19759fi
19760
19761
19762HAVE_OGG=no
19763# Extract the first word of "pkg-config", so it can be a program name with args.
19764set dummy pkg-config; ac_word=$2
19765{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19767if test "${ac_cv_prog_HAVE_PKG_CONFIG+set}" = set; then
19768  echo $ECHO_N "(cached) $ECHO_C" >&6
19769else
19770  if test -n "$HAVE_PKG_CONFIG"; then
19771  ac_cv_prog_HAVE_PKG_CONFIG="$HAVE_PKG_CONFIG" # Let the user override the test.
19772else
19773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19774for as_dir in $PATH
19775do
19776  IFS=$as_save_IFS
19777  test -z "$as_dir" && as_dir=.
19778  for ac_exec_ext in '' $ac_executable_extensions; do
19779  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19780    ac_cv_prog_HAVE_PKG_CONFIG="yes"
19781    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19782    break 2
19783  fi
19784done
19785done
19786IFS=$as_save_IFS
19787
19788fi
19789fi
19790HAVE_PKG_CONFIG=$ac_cv_prog_HAVE_PKG_CONFIG
19791if test -n "$HAVE_PKG_CONFIG"; then
19792  { echo "$as_me:$LINENO: result: $HAVE_PKG_CONFIG" >&5
19793echo "${ECHO_T}$HAVE_PKG_CONFIG" >&6; }
19794else
19795  { echo "$as_me:$LINENO: result: no" >&5
19796echo "${ECHO_T}no" >&6; }
19797fi
19798
19799
19800if test "x$HAVE_PKG_CONFIG" = "xyes"
19801then
19802
19803  succeeded=no
19804
19805  if test -z "$PKG_CONFIG"; then
19806    # Extract the first word of "pkg-config", so it can be a program name with args.
19807set dummy pkg-config; ac_word=$2
19808{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19810if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19811  echo $ECHO_N "(cached) $ECHO_C" >&6
19812else
19813  case $PKG_CONFIG in
19814  [\\/]* | ?:[\\/]*)
19815  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19816  ;;
19817  *)
19818  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19819for as_dir in $PATH
19820do
19821  IFS=$as_save_IFS
19822  test -z "$as_dir" && as_dir=.
19823  for ac_exec_ext in '' $ac_executable_extensions; do
19824  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19825    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19826    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19827    break 2
19828  fi
19829done
19830done
19831IFS=$as_save_IFS
19832
19833  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19834  ;;
19835esac
19836fi
19837PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19838if test -n "$PKG_CONFIG"; then
19839  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19840echo "${ECHO_T}$PKG_CONFIG" >&6; }
19841else
19842  { echo "$as_me:$LINENO: result: no" >&5
19843echo "${ECHO_T}no" >&6; }
19844fi
19845
19846
19847  fi
19848
19849  if test "$PKG_CONFIG" = "no" ; then
19850     echo "*** The pkg-config script could not be found. Make sure it is"
19851     echo "*** in your path, or set the PKG_CONFIG environment variable"
19852     echo "*** to the full path to pkg-config."
19853     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19854  else
19855     PKG_CONFIG_MIN_VERSION=0.9.0
19856     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19857        { echo "$as_me:$LINENO: checking for ogg >= 1.0" >&5
19858echo $ECHO_N "checking for ogg >= 1.0... $ECHO_C" >&6; }
19859
19860        if $PKG_CONFIG --exists "ogg >= 1.0" ; then
19861            { echo "$as_me:$LINENO: result: yes" >&5
19862echo "${ECHO_T}yes" >&6; }
19863            succeeded=yes
19864
19865            { echo "$as_me:$LINENO: checking OGG_CFLAGS" >&5
19866echo $ECHO_N "checking OGG_CFLAGS... $ECHO_C" >&6; }
19867            OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.0"`
19868            { echo "$as_me:$LINENO: result: $OGG_CFLAGS" >&5
19869echo "${ECHO_T}$OGG_CFLAGS" >&6; }
19870
19871            { echo "$as_me:$LINENO: checking OGG_LIBS" >&5
19872echo $ECHO_N "checking OGG_LIBS... $ECHO_C" >&6; }
19873            OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.0"`
19874            { echo "$as_me:$LINENO: result: $OGG_LIBS" >&5
19875echo "${ECHO_T}$OGG_LIBS" >&6; }
19876        else
19877            OGG_CFLAGS=""
19878            OGG_LIBS=""
19879            ## If we have a custom action on failure, don't print errors, but
19880            ## do set a variable so people can do so.
19881            OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.0"`
19882
19883        fi
19884
19885
19886
19887     else
19888        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19889        echo "*** See http://www.freedesktop.org/software/pkgconfig"
19890     fi
19891  fi
19892
19893  if test $succeeded = yes; then
19894     HAVE_OGG=yes
19895  else
19896     HAVE_OGG=no
19897  fi
19898
19899fi
19900if test "x$HAVE_OGG" = "xno"
19901then
19902
19903# Check whether --with-ogg was given.
19904if test "${with_ogg+set}" = set; then
19905  withval=$with_ogg; ogg_prefix="$withval"
19906else
19907  ogg_prefix=""
19908fi
19909
19910
19911# Check whether --with-ogg-libraries was given.
19912if test "${with_ogg_libraries+set}" = set; then
19913  withval=$with_ogg_libraries; ogg_libraries="$withval"
19914else
19915  ogg_libraries=""
19916fi
19917
19918
19919# Check whether --with-ogg-includes was given.
19920if test "${with_ogg_includes+set}" = set; then
19921  withval=$with_ogg_includes; ogg_includes="$withval"
19922else
19923  ogg_includes=""
19924fi
19925
19926# Check whether --enable-oggtest was given.
19927if test "${enable_oggtest+set}" = set; then
19928  enableval=$enable_oggtest;
19929else
19930  enable_oggtest=yes
19931fi
19932
19933
19934  if test "x$ogg_libraries" != "x" ; then
19935    OGG_LIBS="-L$ogg_libraries"
19936  elif test "x$ogg_prefix" != "x" ; then
19937    OGG_LIBS="-L$ogg_prefix/lib"
19938  elif test "x$prefix" != "xNONE" ; then
19939    OGG_LIBS="-L$prefix/lib"
19940  fi
19941
19942  OGG_LIBS="$OGG_LIBS -logg"
19943
19944  if test "x$ogg_includes" != "x" ; then
19945    OGG_CFLAGS="-I$ogg_includes"
19946  elif test "x$ogg_prefix" != "x" ; then
19947    OGG_CFLAGS="-I$ogg_prefix/include"
19948  elif test "x$prefix" != "xNONE"; then
19949    OGG_CFLAGS="-I$prefix/include"
19950  fi
19951
19952  { echo "$as_me:$LINENO: checking for Ogg" >&5
19953echo $ECHO_N "checking for Ogg... $ECHO_C" >&6; }
19954  no_ogg=""
19955
19956
19957  if test "x$enable_oggtest" = "xyes" ; then
19958    ac_save_CFLAGS="$CFLAGS"
19959    ac_save_LIBS="$LIBS"
19960    CFLAGS="$CFLAGS $OGG_CFLAGS"
19961    LIBS="$LIBS $OGG_LIBS"
19962      rm -f conf.oggtest
19963      if test "$cross_compiling" = yes; then
19964  echo $ac_n "cross compiling; assumed OK... $ac_c"
19965else
19966  cat >conftest.$ac_ext <<_ACEOF
19967/* confdefs.h.  */
19968_ACEOF
19969cat confdefs.h >>conftest.$ac_ext
19970cat >>conftest.$ac_ext <<_ACEOF
19971/* end confdefs.h.  */
19972
19973#include <stdio.h>
19974#include <stdlib.h>
19975#include <string.h>
19976#include <ogg/ogg.h>
19977
19978int main ()
19979{
19980  system("touch conf.oggtest");
19981  return 0;
19982}
19983
19984
19985_ACEOF
19986rm -f conftest$ac_exeext
19987if { (ac_try="$ac_link"
19988case "(($ac_try" in
19989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990  *) ac_try_echo=$ac_try;;
19991esac
19992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993  (eval "$ac_link") 2>&5
19994  ac_status=$?
19995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19997  { (case "(($ac_try" in
19998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19999  *) ac_try_echo=$ac_try;;
20000esac
20001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20002  (eval "$ac_try") 2>&5
20003  ac_status=$?
20004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005  (exit $ac_status); }; }; then
20006  :
20007else
20008  echo "$as_me: program exited with status $ac_status" >&5
20009echo "$as_me: failed program was:" >&5
20010sed 's/^/| /' conftest.$ac_ext >&5
20011
20012( exit $ac_status )
20013no_ogg=yes
20014fi
20015rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20016fi
20017
20018
20019       CFLAGS="$ac_save_CFLAGS"
20020       LIBS="$ac_save_LIBS"
20021  fi
20022
20023  if test "x$no_ogg" = "x" ; then
20024     { echo "$as_me:$LINENO: result: yes" >&5
20025echo "${ECHO_T}yes" >&6; }
20026     :
20027  else
20028     { echo "$as_me:$LINENO: result: no" >&5
20029echo "${ECHO_T}no" >&6; }
20030     if test -f conf.oggtest ; then
20031       :
20032     else
20033       echo "*** Could not run Ogg test program, checking why..."
20034       CFLAGS="$CFLAGS $OGG_CFLAGS"
20035       LIBS="$LIBS $OGG_LIBS"
20036       cat >conftest.$ac_ext <<_ACEOF
20037/* confdefs.h.  */
20038_ACEOF
20039cat confdefs.h >>conftest.$ac_ext
20040cat >>conftest.$ac_ext <<_ACEOF
20041/* end confdefs.h.  */
20042
20043#include <stdio.h>
20044#include <ogg/ogg.h>
20045
20046int
20047main ()
20048{
20049 return 0;
20050  ;
20051  return 0;
20052}
20053_ACEOF
20054rm -f conftest.$ac_objext conftest$ac_exeext
20055if { (ac_try="$ac_link"
20056case "(($ac_try" in
20057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058  *) ac_try_echo=$ac_try;;
20059esac
20060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061  (eval "$ac_link") 2>conftest.er1
20062  ac_status=$?
20063  grep -v '^ *+' conftest.er1 >conftest.err
20064  rm -f conftest.er1
20065  cat conftest.err >&5
20066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067  (exit $ac_status); } && {
20068         test -z "$ac_c_werror_flag" ||
20069         test ! -s conftest.err
20070       } && test -s conftest$ac_exeext &&
20071       $as_test_x conftest$ac_exeext; then
20072   echo "*** The test program compiled, but did not run. This usually means"
20073       echo "*** that the run-time linker is not finding Ogg or finding the wrong"
20074       echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
20075       echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20076       echo "*** to the installed location  Also, make sure you have run ldconfig if that"
20077       echo "*** is required on your system"
20078       echo "***"
20079       echo "*** If you have an old version installed, it is best to remove it, although"
20080       echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20081else
20082  echo "$as_me: failed program was:" >&5
20083sed 's/^/| /' conftest.$ac_ext >&5
20084
20085         echo "*** The test program failed to compile or link. See the file config.log for the"
20086       echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
20087       echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
20088       echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
20089fi
20090
20091rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20092      conftest$ac_exeext conftest.$ac_ext
20093       CFLAGS="$ac_save_CFLAGS"
20094       LIBS="$ac_save_LIBS"
20095     fi
20096     OGG_CFLAGS=""
20097     OGG_LIBS=""
20098     { { echo "$as_me:$LINENO: error: must have Ogg installed!" >&5
20099echo "$as_me: error: must have Ogg installed!" >&2;}
20100   { (exit 1); exit 1; }; }
20101  fi
20102
20103
20104  rm -f conf.oggtest
20105
20106  libs_save=$LIBS
20107  LIBS="$OGG_LIBS $VORBIS_LIBS"
20108  { echo "$as_me:$LINENO: checking for oggpack_writealign" >&5
20109echo $ECHO_N "checking for oggpack_writealign... $ECHO_C" >&6; }
20110if test "${ac_cv_func_oggpack_writealign+set}" = set; then
20111  echo $ECHO_N "(cached) $ECHO_C" >&6
20112else
20113  cat >conftest.$ac_ext <<_ACEOF
20114/* confdefs.h.  */
20115_ACEOF
20116cat confdefs.h >>conftest.$ac_ext
20117cat >>conftest.$ac_ext <<_ACEOF
20118/* end confdefs.h.  */
20119/* Define oggpack_writealign to an innocuous variant, in case <limits.h> declares oggpack_writealign.
20120   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20121#define oggpack_writealign innocuous_oggpack_writealign
20122
20123/* System header to define __stub macros and hopefully few prototypes,
20124    which can conflict with char oggpack_writealign (); below.
20125    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20126    <limits.h> exists even on freestanding compilers.  */
20127
20128#ifdef __STDC__
20129# include <limits.h>
20130#else
20131# include <assert.h>
20132#endif
20133
20134#undef oggpack_writealign
20135
20136/* Override any GCC internal prototype to avoid an error.
20137   Use char because int might match the return type of a GCC
20138   builtin and then its argument prototype would still apply.  */
20139#ifdef __cplusplus
20140extern "C"
20141#endif
20142char oggpack_writealign ();
20143/* The GNU C library defines this for functions which it implements
20144    to always fail with ENOSYS.  Some functions are actually named
20145    something starting with __ and the normal name is an alias.  */
20146#if defined __stub_oggpack_writealign || defined __stub___oggpack_writealign
20147choke me
20148#endif
20149
20150int
20151main ()
20152{
20153return oggpack_writealign ();
20154  ;
20155  return 0;
20156}
20157_ACEOF
20158rm -f conftest.$ac_objext conftest$ac_exeext
20159if { (ac_try="$ac_link"
20160case "(($ac_try" in
20161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162  *) ac_try_echo=$ac_try;;
20163esac
20164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20165  (eval "$ac_link") 2>conftest.er1
20166  ac_status=$?
20167  grep -v '^ *+' conftest.er1 >conftest.err
20168  rm -f conftest.er1
20169  cat conftest.err >&5
20170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171  (exit $ac_status); } && {
20172         test -z "$ac_c_werror_flag" ||
20173         test ! -s conftest.err
20174       } && test -s conftest$ac_exeext &&
20175       $as_test_x conftest$ac_exeext; then
20176  ac_cv_func_oggpack_writealign=yes
20177else
20178  echo "$as_me: failed program was:" >&5
20179sed 's/^/| /' conftest.$ac_ext >&5
20180
20181        ac_cv_func_oggpack_writealign=no
20182fi
20183
20184rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20185      conftest$ac_exeext conftest.$ac_ext
20186fi
20187{ echo "$as_me:$LINENO: result: $ac_cv_func_oggpack_writealign" >&5
20188echo "${ECHO_T}$ac_cv_func_oggpack_writealign" >&6; }
20189if test $ac_cv_func_oggpack_writealign = yes; then
20190  :
20191else
20192  { { echo "$as_me:$LINENO: error: Ogg >= 1.0 required !" >&5
20193echo "$as_me: error: Ogg >= 1.0 required !" >&2;}
20194   { (exit 1); exit 1; }; }
20195fi
20196
20197  LIBS=$libs_save
20198fi
20199
20200
20201# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20202# for constant arguments.  Useless!
20203{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
20204echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
20205if test "${ac_cv_working_alloca_h+set}" = set; then
20206  echo $ECHO_N "(cached) $ECHO_C" >&6
20207else
20208  cat >conftest.$ac_ext <<_ACEOF
20209/* confdefs.h.  */
20210_ACEOF
20211cat confdefs.h >>conftest.$ac_ext
20212cat >>conftest.$ac_ext <<_ACEOF
20213/* end confdefs.h.  */
20214#include <alloca.h>
20215int
20216main ()
20217{
20218char *p = (char *) alloca (2 * sizeof (int));
20219                          if (p) return 0;
20220  ;
20221  return 0;
20222}
20223_ACEOF
20224rm -f conftest.$ac_objext conftest$ac_exeext
20225if { (ac_try="$ac_link"
20226case "(($ac_try" in
20227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20228  *) ac_try_echo=$ac_try;;
20229esac
20230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20231  (eval "$ac_link") 2>conftest.er1
20232  ac_status=$?
20233  grep -v '^ *+' conftest.er1 >conftest.err
20234  rm -f conftest.er1
20235  cat conftest.err >&5
20236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237  (exit $ac_status); } && {
20238         test -z "$ac_c_werror_flag" ||
20239         test ! -s conftest.err
20240       } && test -s conftest$ac_exeext &&
20241       $as_test_x conftest$ac_exeext; then
20242  ac_cv_working_alloca_h=yes
20243else
20244  echo "$as_me: failed program was:" >&5
20245sed 's/^/| /' conftest.$ac_ext >&5
20246
20247        ac_cv_working_alloca_h=no
20248fi
20249
20250rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20251      conftest$ac_exeext conftest.$ac_ext
20252fi
20253{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20254echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
20255if test $ac_cv_working_alloca_h = yes; then
20256
20257cat >>confdefs.h <<\_ACEOF
20258#define HAVE_ALLOCA_H 1
20259_ACEOF
20260
20261fi
20262
20263{ echo "$as_me:$LINENO: checking for alloca" >&5
20264echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
20265if test "${ac_cv_func_alloca_works+set}" = set; then
20266  echo $ECHO_N "(cached) $ECHO_C" >&6
20267else
20268  cat >conftest.$ac_ext <<_ACEOF
20269/* confdefs.h.  */
20270_ACEOF
20271cat confdefs.h >>conftest.$ac_ext
20272cat >>conftest.$ac_ext <<_ACEOF
20273/* end confdefs.h.  */
20274#ifdef __GNUC__
20275# define alloca __builtin_alloca
20276#else
20277# ifdef _MSC_VER
20278#  include <malloc.h>
20279#  define alloca _alloca
20280# else
20281#  ifdef HAVE_ALLOCA_H
20282#   include <alloca.h>
20283#  else
20284#   ifdef _AIX
20285 #pragma alloca
20286#   else
20287#    ifndef alloca /* predefined by HP cc +Olibcalls */
20288char *alloca ();
20289#    endif
20290#   endif
20291#  endif
20292# endif
20293#endif
20294
20295int
20296main ()
20297{
20298char *p = (char *) alloca (1);
20299                                    if (p) return 0;
20300  ;
20301  return 0;
20302}
20303_ACEOF
20304rm -f conftest.$ac_objext conftest$ac_exeext
20305if { (ac_try="$ac_link"
20306case "(($ac_try" in
20307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20308  *) ac_try_echo=$ac_try;;
20309esac
20310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20311  (eval "$ac_link") 2>conftest.er1
20312  ac_status=$?
20313  grep -v '^ *+' conftest.er1 >conftest.err
20314  rm -f conftest.er1
20315  cat conftest.err >&5
20316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317  (exit $ac_status); } && {
20318         test -z "$ac_c_werror_flag" ||
20319         test ! -s conftest.err
20320       } && test -s conftest$ac_exeext &&
20321       $as_test_x conftest$ac_exeext; then
20322  ac_cv_func_alloca_works=yes
20323else
20324  echo "$as_me: failed program was:" >&5
20325sed 's/^/| /' conftest.$ac_ext >&5
20326
20327        ac_cv_func_alloca_works=no
20328fi
20329
20330rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20331      conftest$ac_exeext conftest.$ac_ext
20332fi
20333{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20334echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
20335
20336if test $ac_cv_func_alloca_works = yes; then
20337
20338cat >>confdefs.h <<\_ACEOF
20339#define HAVE_ALLOCA 1
20340_ACEOF
20341
20342else
20343  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20344# that cause trouble.  Some versions do not even contain alloca or
20345# contain a buggy version.  If you still want to use their alloca,
20346# use ar to extract alloca.o from them instead of compiling alloca.c.
20347
20348ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20349
20350cat >>confdefs.h <<\_ACEOF
20351#define C_ALLOCA 1
20352_ACEOF
20353
20354
20355{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20356echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
20357if test "${ac_cv_os_cray+set}" = set; then
20358  echo $ECHO_N "(cached) $ECHO_C" >&6
20359else
20360  cat >conftest.$ac_ext <<_ACEOF
20361/* confdefs.h.  */
20362_ACEOF
20363cat confdefs.h >>conftest.$ac_ext
20364cat >>conftest.$ac_ext <<_ACEOF
20365/* end confdefs.h.  */
20366#if defined CRAY && ! defined CRAY2
20367webecray
20368#else
20369wenotbecray
20370#endif
20371
20372_ACEOF
20373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20374  $EGREP "webecray" >/dev/null 2>&1; then
20375  ac_cv_os_cray=yes
20376else
20377  ac_cv_os_cray=no
20378fi
20379rm -f conftest*
20380
20381fi
20382{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20383echo "${ECHO_T}$ac_cv_os_cray" >&6; }
20384if test $ac_cv_os_cray = yes; then
20385  for ac_func in _getb67 GETB67 getb67; do
20386    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20387{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20388echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20389if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20390  echo $ECHO_N "(cached) $ECHO_C" >&6
20391else
20392  cat >conftest.$ac_ext <<_ACEOF
20393/* confdefs.h.  */
20394_ACEOF
20395cat confdefs.h >>conftest.$ac_ext
20396cat >>conftest.$ac_ext <<_ACEOF
20397/* end confdefs.h.  */
20398/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20399   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20400#define $ac_func innocuous_$ac_func
20401
20402/* System header to define __stub macros and hopefully few prototypes,
20403    which can conflict with char $ac_func (); below.
20404    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20405    <limits.h> exists even on freestanding compilers.  */
20406
20407#ifdef __STDC__
20408# include <limits.h>
20409#else
20410# include <assert.h>
20411#endif
20412
20413#undef $ac_func
20414
20415/* Override any GCC internal prototype to avoid an error.
20416   Use char because int might match the return type of a GCC
20417   builtin and then its argument prototype would still apply.  */
20418#ifdef __cplusplus
20419extern "C"
20420#endif
20421char $ac_func ();
20422/* The GNU C library defines this for functions which it implements
20423    to always fail with ENOSYS.  Some functions are actually named
20424    something starting with __ and the normal name is an alias.  */
20425#if defined __stub_$ac_func || defined __stub___$ac_func
20426choke me
20427#endif
20428
20429int
20430main ()
20431{
20432return $ac_func ();
20433  ;
20434  return 0;
20435}
20436_ACEOF
20437rm -f conftest.$ac_objext conftest$ac_exeext
20438if { (ac_try="$ac_link"
20439case "(($ac_try" in
20440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20441  *) ac_try_echo=$ac_try;;
20442esac
20443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20444  (eval "$ac_link") 2>conftest.er1
20445  ac_status=$?
20446  grep -v '^ *+' conftest.er1 >conftest.err
20447  rm -f conftest.er1
20448  cat conftest.err >&5
20449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450  (exit $ac_status); } && {
20451         test -z "$ac_c_werror_flag" ||
20452         test ! -s conftest.err
20453       } && test -s conftest$ac_exeext &&
20454       $as_test_x conftest$ac_exeext; then
20455  eval "$as_ac_var=yes"
20456else
20457  echo "$as_me: failed program was:" >&5
20458sed 's/^/| /' conftest.$ac_ext >&5
20459
20460        eval "$as_ac_var=no"
20461fi
20462
20463rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20464      conftest$ac_exeext conftest.$ac_ext
20465fi
20466ac_res=`eval echo '${'$as_ac_var'}'`
20467               { echo "$as_me:$LINENO: result: $ac_res" >&5
20468echo "${ECHO_T}$ac_res" >&6; }
20469if test `eval echo '${'$as_ac_var'}'` = yes; then
20470
20471cat >>confdefs.h <<_ACEOF
20472#define CRAY_STACKSEG_END $ac_func
20473_ACEOF
20474
20475    break
20476fi
20477
20478  done
20479fi
20480
20481{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20482echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
20483if test "${ac_cv_c_stack_direction+set}" = set; then
20484  echo $ECHO_N "(cached) $ECHO_C" >&6
20485else
20486  if test "$cross_compiling" = yes; then
20487  ac_cv_c_stack_direction=0
20488else
20489  cat >conftest.$ac_ext <<_ACEOF
20490/* confdefs.h.  */
20491_ACEOF
20492cat confdefs.h >>conftest.$ac_ext
20493cat >>conftest.$ac_ext <<_ACEOF
20494/* end confdefs.h.  */
20495$ac_includes_default
20496int
20497find_stack_direction ()
20498{
20499  static char *addr = 0;
20500  auto char dummy;
20501  if (addr == 0)
20502    {
20503      addr = &dummy;
20504      return find_stack_direction ();
20505    }
20506  else
20507    return (&dummy > addr) ? 1 : -1;
20508}
20509
20510int
20511main ()
20512{
20513  return find_stack_direction () < 0;
20514}
20515_ACEOF
20516rm -f conftest$ac_exeext
20517if { (ac_try="$ac_link"
20518case "(($ac_try" in
20519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20520  *) ac_try_echo=$ac_try;;
20521esac
20522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20523  (eval "$ac_link") 2>&5
20524  ac_status=$?
20525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20527  { (case "(($ac_try" in
20528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529  *) ac_try_echo=$ac_try;;
20530esac
20531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20532  (eval "$ac_try") 2>&5
20533  ac_status=$?
20534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535  (exit $ac_status); }; }; then
20536  ac_cv_c_stack_direction=1
20537else
20538  echo "$as_me: program exited with status $ac_status" >&5
20539echo "$as_me: failed program was:" >&5
20540sed 's/^/| /' conftest.$ac_ext >&5
20541
20542( exit $ac_status )
20543ac_cv_c_stack_direction=-1
20544fi
20545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20546fi
20547
20548
20549fi
20550{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20551echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
20552
20553cat >>confdefs.h <<_ACEOF
20554#define STACK_DIRECTION $ac_cv_c_stack_direction
20555_ACEOF
20556
20557
20558fi
20559
20560{ echo "$as_me:$LINENO: checking for working memcmp" >&5
20561echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
20562if test "${ac_cv_func_memcmp_working+set}" = set; then
20563  echo $ECHO_N "(cached) $ECHO_C" >&6
20564else
20565  if test "$cross_compiling" = yes; then
20566  ac_cv_func_memcmp_working=no
20567else
20568  cat >conftest.$ac_ext <<_ACEOF
20569/* confdefs.h.  */
20570_ACEOF
20571cat confdefs.h >>conftest.$ac_ext
20572cat >>conftest.$ac_ext <<_ACEOF
20573/* end confdefs.h.  */
20574$ac_includes_default
20575int
20576main ()
20577{
20578
20579  /* Some versions of memcmp are not 8-bit clean.  */
20580  char c0 = '\100', c1 = '\200', c2 = '\201';
20581  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20582    return 1;
20583
20584  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20585     or more and with at least one buffer not starting on a 4-byte boundary.
20586     William Lewis provided this test program.   */
20587  {
20588    char foo[21];
20589    char bar[21];
20590    int i;
20591    for (i = 0; i < 4; i++)
20592      {
20593        char *a = foo + i;
20594        char *b = bar + i;
20595        strcpy (a, "--------01111111");
20596        strcpy (b, "--------10000000");
20597        if (memcmp (a, b, 16) >= 0)
20598          return 1;
20599      }
20600    return 0;
20601  }
20602
20603  ;
20604  return 0;
20605}
20606_ACEOF
20607rm -f conftest$ac_exeext
20608if { (ac_try="$ac_link"
20609case "(($ac_try" in
20610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20611  *) ac_try_echo=$ac_try;;
20612esac
20613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20614  (eval "$ac_link") 2>&5
20615  ac_status=$?
20616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20618  { (case "(($ac_try" in
20619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20620  *) ac_try_echo=$ac_try;;
20621esac
20622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20623  (eval "$ac_try") 2>&5
20624  ac_status=$?
20625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626  (exit $ac_status); }; }; then
20627  ac_cv_func_memcmp_working=yes
20628else
20629  echo "$as_me: program exited with status $ac_status" >&5
20630echo "$as_me: failed program was:" >&5
20631sed 's/^/| /' conftest.$ac_ext >&5
20632
20633( exit $ac_status )
20634ac_cv_func_memcmp_working=no
20635fi
20636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20637fi
20638
20639
20640fi
20641{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
20642echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
20643test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
20644  *" memcmp.$ac_objext "* ) ;;
20645  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
20646 ;;
20647esac
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657ac_config_files="$ac_config_files Makefile lib/Makefile lib/modes/Makefile lib/books/Makefile lib/books/coupled/Makefile lib/books/uncoupled/Makefile lib/books/floor/Makefile doc/Makefile doc/vorbisfile/Makefile doc/vorbisenc/Makefile include/Makefile include/vorbis/Makefile examples/Makefile vq/Makefile libvorbis.spec vorbis.pc vorbisenc.pc vorbisfile.pc vorbis-uninstalled.pc vorbisenc-uninstalled.pc vorbisfile-uninstalled.pc"
20658
20659cat >confcache <<\_ACEOF
20660# This file is a shell script that caches the results of configure
20661# tests run on this system so they can be shared between configure
20662# scripts and configure runs, see configure's option --config-cache.
20663# It is not useful on other systems.  If it contains results you don't
20664# want to keep, you may remove or edit it.
20665#
20666# config.status only pays attention to the cache file if you give it
20667# the --recheck option to rerun configure.
20668#
20669# `ac_cv_env_foo' variables (set or unset) will be overridden when
20670# loading this file, other *unset* `ac_cv_foo' will be assigned the
20671# following values.
20672
20673_ACEOF
20674
20675# The following way of writing the cache mishandles newlines in values,
20676# but we know of no workaround that is simple, portable, and efficient.
20677# So, we kill variables containing newlines.
20678# Ultrix sh set writes to stderr and can't be redirected directly,
20679# and sets the high bit in the cache file unless we assign to the vars.
20680(
20681  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20682    eval ac_val=\$$ac_var
20683    case $ac_val in #(
20684    *${as_nl}*)
20685      case $ac_var in #(
20686      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20687echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20688      esac
20689      case $ac_var in #(
20690      _ | IFS | as_nl) ;; #(
20691      *) $as_unset $ac_var ;;
20692      esac ;;
20693    esac
20694  done
20695
20696  (set) 2>&1 |
20697    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20698    *${as_nl}ac_space=\ *)
20699      # `set' does not quote correctly, so add quotes (double-quote
20700      # substitution turns \\\\ into \\, and sed turns \\ into \).
20701      sed -n \
20702        "s/'/'\\\\''/g;
20703          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20704      ;; #(
20705    *)
20706      # `set' quotes correctly as required by POSIX, so do not add quotes.
20707      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20708      ;;
20709    esac |
20710    sort
20711) |
20712  sed '
20713     /^ac_cv_env_/b end
20714     t clear
20715     :clear
20716     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20717     t end
20718     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20719     :end' >>confcache
20720if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20721  if test -w "$cache_file"; then
20722    test "x$cache_file" != "x/dev/null" &&
20723      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20724echo "$as_me: updating cache $cache_file" >&6;}
20725    cat confcache >$cache_file
20726  else
20727    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20728echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20729  fi
20730fi
20731rm -f confcache
20732
20733test "x$prefix" = xNONE && prefix=$ac_default_prefix
20734# Let make expand exec_prefix.
20735test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20736
20737DEFS=-DHAVE_CONFIG_H
20738
20739ac_libobjs=
20740ac_ltlibobjs=
20741for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20742  # 1. Remove the extension, and $U if already installed.
20743  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20744  ac_i=`echo "$ac_i" | sed "$ac_script"`
20745  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20746  #    will be set to the directory where LIBOBJS objects are built.
20747  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20748  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20749done
20750LIBOBJS=$ac_libobjs
20751
20752LTLIBOBJS=$ac_ltlibobjs
20753
20754
20755if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20756  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20757Usually this means the macro was only invoked conditionally." >&5
20758echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20759Usually this means the macro was only invoked conditionally." >&2;}
20760   { (exit 1); exit 1; }; }
20761fi
20762if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20763  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20764Usually this means the macro was only invoked conditionally." >&5
20765echo "$as_me: error: conditional \"AMDEP\" was never defined.
20766Usually this means the macro was only invoked conditionally." >&2;}
20767   { (exit 1); exit 1; }; }
20768fi
20769if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20770  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20771Usually this means the macro was only invoked conditionally." >&5
20772echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20773Usually this means the macro was only invoked conditionally." >&2;}
20774   { (exit 1); exit 1; }; }
20775fi
20776if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20777  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20778Usually this means the macro was only invoked conditionally." >&5
20779echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20780Usually this means the macro was only invoked conditionally." >&2;}
20781   { (exit 1); exit 1; }; }
20782fi
20783if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
20784  { { echo "$as_me:$LINENO: error: conditional \"BUILD_DOCS\" was never defined.
20785Usually this means the macro was only invoked conditionally." >&5
20786echo "$as_me: error: conditional \"BUILD_DOCS\" was never defined.
20787Usually this means the macro was only invoked conditionally." >&2;}
20788   { (exit 1); exit 1; }; }
20789fi
20790
20791: ${CONFIG_STATUS=./config.status}
20792ac_clean_files_save=$ac_clean_files
20793ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20794{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20795echo "$as_me: creating $CONFIG_STATUS" >&6;}
20796cat >$CONFIG_STATUS <<_ACEOF
20797#! $SHELL
20798# Generated by $as_me.
20799# Run this file to recreate the current configuration.
20800# Compiler output produced by configure, useful for debugging
20801# configure, is in config.log if it exists.
20802
20803debug=false
20804ac_cs_recheck=false
20805ac_cs_silent=false
20806SHELL=\${CONFIG_SHELL-$SHELL}
20807_ACEOF
20808
20809cat >>$CONFIG_STATUS <<\_ACEOF
20810## --------------------- ##
20811## M4sh Initialization.  ##
20812## --------------------- ##
20813
20814# Be more Bourne compatible
20815DUALCASE=1; export DUALCASE # for MKS sh
20816if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20817  emulate sh
20818  NULLCMD=:
20819  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20820  # is contrary to our usage.  Disable this feature.
20821  alias -g '${1+"$@"}'='"$@"'
20822  setopt NO_GLOB_SUBST
20823else
20824  case `(set -o) 2>/dev/null` in
20825  *posix*) set -o posix ;;
20826esac
20827
20828fi
20829
20830
20831
20832
20833# PATH needs CR
20834# Avoid depending upon Character Ranges.
20835as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20836as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20837as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20838as_cr_digits='0123456789'
20839as_cr_alnum=$as_cr_Letters$as_cr_digits
20840
20841# The user is always right.
20842if test "${PATH_SEPARATOR+set}" != set; then
20843  echo "#! /bin/sh" >conf$$.sh
20844  echo  "exit 0"   >>conf$$.sh
20845  chmod +x conf$$.sh
20846  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20847    PATH_SEPARATOR=';'
20848  else
20849    PATH_SEPARATOR=:
20850  fi
20851  rm -f conf$$.sh
20852fi
20853
20854# Support unset when possible.
20855if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20856  as_unset=unset
20857else
20858  as_unset=false
20859fi
20860
20861
20862# IFS
20863# We need space, tab and new line, in precisely that order.  Quoting is
20864# there to prevent editors from complaining about space-tab.
20865# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20866# splitting by setting IFS to empty value.)
20867as_nl='
20868'
20869IFS=" ""        $as_nl"
20870
20871# Find who we are.  Look in the path if we contain no directory separator.
20872case $0 in
20873  *[\\/]* ) as_myself=$0 ;;
20874  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20875for as_dir in $PATH
20876do
20877  IFS=$as_save_IFS
20878  test -z "$as_dir" && as_dir=.
20879  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20880done
20881IFS=$as_save_IFS
20882
20883     ;;
20884esac
20885# We did not find ourselves, most probably we were run as `sh COMMAND'
20886# in which case we are not to be found in the path.
20887if test "x$as_myself" = x; then
20888  as_myself=$0
20889fi
20890if test ! -f "$as_myself"; then
20891  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20892  { (exit 1); exit 1; }
20893fi
20894
20895# Work around bugs in pre-3.0 UWIN ksh.
20896for as_var in ENV MAIL MAILPATH
20897do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20898done
20899PS1='$ '
20900PS2='> '
20901PS4='+ '
20902
20903# NLS nuisances.
20904for as_var in \
20905  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20906  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20907  LC_TELEPHONE LC_TIME
20908do
20909  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20910    eval $as_var=C; export $as_var
20911  else
20912    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20913  fi
20914done
20915
20916# Required to use basename.
20917if expr a : '\(a\)' >/dev/null 2>&1 &&
20918   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20919  as_expr=expr
20920else
20921  as_expr=false
20922fi
20923
20924if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20925  as_basename=basename
20926else
20927  as_basename=false
20928fi
20929
20930
20931# Name of the executable.
20932as_me=`$as_basename -- "$0" ||
20933$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20934         X"$0" : 'X\(//\)$' \| \
20935         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20936echo X/"$0" |
20937    sed '/^.*\/\([^/][^/]*\)\/*$/{
20938            s//\1/
20939            q
20940          }
20941          /^X\/\(\/\/\)$/{
20942            s//\1/
20943            q
20944          }
20945          /^X\/\(\/\).*/{
20946            s//\1/
20947            q
20948          }
20949          s/.*/./; q'`
20950
20951# CDPATH.
20952$as_unset CDPATH
20953
20954
20955
20956  as_lineno_1=$LINENO
20957  as_lineno_2=$LINENO
20958  test "x$as_lineno_1" != "x$as_lineno_2" &&
20959  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20960
20961  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20962  # uniformly replaced by the line number.  The first 'sed' inserts a
20963  # line-number line after each line using $LINENO; the second 'sed'
20964  # does the real work.  The second script uses 'N' to pair each
20965  # line-number line with the line containing $LINENO, and appends
20966  # trailing '-' during substitution so that $LINENO is not a special
20967  # case at line end.
20968  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20969  # scripts with optimization help from Paolo Bonzini.  Blame Lee
20970  # E. McMahon (1931-1989) for sed's syntax.  :-)
20971  sed -n '
20972    p
20973    /[$]LINENO/=
20974  ' <$as_myself |
20975    sed '
20976      s/[$]LINENO.*/&-/
20977      t lineno
20978      b
20979      :lineno
20980      N
20981      :loop
20982      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20983      t loop
20984      s/-\n.*//
20985    ' >$as_me.lineno &&
20986  chmod +x "$as_me.lineno" ||
20987    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20988   { (exit 1); exit 1; }; }
20989
20990  # Don't try to exec as it changes $[0], causing all sort of problems
20991  # (the dirname of $[0] is not the place where we might find the
20992  # original and so on.  Autoconf is especially sensitive to this).
20993  . "./$as_me.lineno"
20994  # Exit status is that of the last command.
20995  exit
20996}
20997
20998
20999if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21000  as_dirname=dirname
21001else
21002  as_dirname=false
21003fi
21004
21005ECHO_C= ECHO_N= ECHO_T=
21006case `echo -n x` in
21007-n*)
21008  case `echo 'x\c'` in
21009  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21010  *)   ECHO_C='\c';;
21011  esac;;
21012*)
21013  ECHO_N='-n';;
21014esac
21015
21016if expr a : '\(a\)' >/dev/null 2>&1 &&
21017   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21018  as_expr=expr
21019else
21020  as_expr=false
21021fi
21022
21023rm -f conf$$ conf$$.exe conf$$.file
21024if test -d conf$$.dir; then
21025  rm -f conf$$.dir/conf$$.file
21026else
21027  rm -f conf$$.dir
21028  mkdir conf$$.dir
21029fi
21030echo >conf$$.file
21031if ln -s conf$$.file conf$$ 2>/dev/null; then
21032  as_ln_s='ln -s'
21033  # ... but there are two gotchas:
21034  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21035  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21036  # In both cases, we have to default to `cp -p'.
21037  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21038    as_ln_s='cp -p'
21039elif ln conf$$.file conf$$ 2>/dev/null; then
21040  as_ln_s=ln
21041else
21042  as_ln_s='cp -p'
21043fi
21044rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21045rmdir conf$$.dir 2>/dev/null
21046
21047if mkdir -p . 2>/dev/null; then
21048  as_mkdir_p=:
21049else
21050  test -d ./-p && rmdir ./-p
21051  as_mkdir_p=false
21052fi
21053
21054if test -x / >/dev/null 2>&1; then
21055  as_test_x='test -x'
21056else
21057  if ls -dL / >/dev/null 2>&1; then
21058    as_ls_L_option=L
21059  else
21060    as_ls_L_option=
21061  fi
21062  as_test_x='
21063    eval sh -c '\''
21064      if test -d "$1"; then
21065        test -d "$1/.";
21066      else
21067        case $1 in
21068        -*)set "./$1";;
21069        esac;
21070        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21071        ???[sx]*):;;*)false;;esac;fi
21072    '\'' sh
21073  '
21074fi
21075as_executable_p=$as_test_x
21076
21077# Sed expression to map a string onto a valid CPP name.
21078as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21079
21080# Sed expression to map a string onto a valid variable name.
21081as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21082
21083
21084exec 6>&1
21085
21086# Save the log message, to keep $[0] and so on meaningful, and to
21087# report actual input values of CONFIG_FILES etc. instead of their
21088# values after options handling.
21089ac_log="
21090This file was extended by $as_me, which was
21091generated by GNU Autoconf 2.61.  Invocation command line was
21092
21093  CONFIG_FILES    = $CONFIG_FILES
21094  CONFIG_HEADERS  = $CONFIG_HEADERS
21095  CONFIG_LINKS    = $CONFIG_LINKS
21096  CONFIG_COMMANDS = $CONFIG_COMMANDS
21097  $ $0 $@
21098
21099on `(hostname || uname -n) 2>/dev/null | sed 1q`
21100"
21101
21102_ACEOF
21103
21104cat >>$CONFIG_STATUS <<_ACEOF
21105# Files that config.status was made for.
21106config_files="$ac_config_files"
21107config_headers="$ac_config_headers"
21108config_commands="$ac_config_commands"
21109
21110_ACEOF
21111
21112cat >>$CONFIG_STATUS <<\_ACEOF
21113ac_cs_usage="\
21114\`$as_me' instantiates files from templates according to the
21115current configuration.
21116
21117Usage: $0 [OPTIONS] [FILE]...
21118
21119  -h, --help       print this help, then exit
21120  -V, --version    print version number and configuration settings, then exit
21121  -q, --quiet      do not print progress messages
21122  -d, --debug      don't remove temporary files
21123      --recheck    update $as_me by reconfiguring in the same conditions
21124  --file=FILE[:TEMPLATE]
21125                   instantiate the configuration file FILE
21126  --header=FILE[:TEMPLATE]
21127                   instantiate the configuration header FILE
21128
21129Configuration files:
21130$config_files
21131
21132Configuration headers:
21133$config_headers
21134
21135Configuration commands:
21136$config_commands
21137
21138Report bugs to <bug-autoconf@gnu.org>."
21139
21140_ACEOF
21141cat >>$CONFIG_STATUS <<_ACEOF
21142ac_cs_version="\\
21143config.status
21144configured by $0, generated by GNU Autoconf 2.61,
21145  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21146
21147Copyright (C) 2006 Free Software Foundation, Inc.
21148This config.status script is free software; the Free Software Foundation
21149gives unlimited permission to copy, distribute and modify it."
21150
21151ac_pwd='$ac_pwd'
21152srcdir='$srcdir'
21153INSTALL='$INSTALL'
21154MKDIR_P='$MKDIR_P'
21155_ACEOF
21156
21157cat >>$CONFIG_STATUS <<\_ACEOF
21158# If no file are specified by the user, then we need to provide default
21159# value.  By we need to know if files were specified by the user.
21160ac_need_defaults=:
21161while test $# != 0
21162do
21163  case $1 in
21164  --*=*)
21165    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21166    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21167    ac_shift=:
21168    ;;
21169  *)
21170    ac_option=$1
21171    ac_optarg=$2
21172    ac_shift=shift
21173    ;;
21174  esac
21175
21176  case $ac_option in
21177  # Handling of the options.
21178  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21179    ac_cs_recheck=: ;;
21180  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21181    echo "$ac_cs_version"; exit ;;
21182  --debug | --debu | --deb | --de | --d | -d )
21183    debug=: ;;
21184  --file | --fil | --fi | --f )
21185    $ac_shift
21186    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21187    ac_need_defaults=false;;
21188  --header | --heade | --head | --hea )
21189    $ac_shift
21190    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21191    ac_need_defaults=false;;
21192  --he | --h)
21193    # Conflict between --help and --header
21194    { echo "$as_me: error: ambiguous option: $1
21195Try \`$0 --help' for more information." >&2
21196   { (exit 1); exit 1; }; };;
21197  --help | --hel | -h )
21198    echo "$ac_cs_usage"; exit ;;
21199  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21200  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21201    ac_cs_silent=: ;;
21202
21203  # This is an error.
21204  -*) { echo "$as_me: error: unrecognized option: $1
21205Try \`$0 --help' for more information." >&2
21206   { (exit 1); exit 1; }; } ;;
21207
21208  *) ac_config_targets="$ac_config_targets $1"
21209     ac_need_defaults=false ;;
21210
21211  esac
21212  shift
21213done
21214
21215ac_configure_extra_args=
21216
21217if $ac_cs_silent; then
21218  exec 6>/dev/null
21219  ac_configure_extra_args="$ac_configure_extra_args --silent"
21220fi
21221
21222_ACEOF
21223cat >>$CONFIG_STATUS <<_ACEOF
21224if \$ac_cs_recheck; then
21225  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21226  CONFIG_SHELL=$SHELL
21227  export CONFIG_SHELL
21228  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21229fi
21230
21231_ACEOF
21232cat >>$CONFIG_STATUS <<\_ACEOF
21233exec 5>>config.log
21234{
21235  echo
21236  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21237## Running $as_me. ##
21238_ASBOX
21239  echo "$ac_log"
21240} >&5
21241
21242_ACEOF
21243cat >>$CONFIG_STATUS <<_ACEOF
21244#
21245# INIT-COMMANDS
21246#
21247AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21248
21249_ACEOF
21250
21251cat >>$CONFIG_STATUS <<\_ACEOF
21252
21253# Handling of arguments.
21254for ac_config_target in $ac_config_targets
21255do
21256  case $ac_config_target in
21257    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21258    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21259    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21260    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21261    "lib/modes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/modes/Makefile" ;;
21262    "lib/books/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/Makefile" ;;
21263    "lib/books/coupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/coupled/Makefile" ;;
21264    "lib/books/uncoupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/uncoupled/Makefile" ;;
21265    "lib/books/floor/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/floor/Makefile" ;;
21266    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21267    "doc/vorbisfile/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisfile/Makefile" ;;
21268    "doc/vorbisenc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisenc/Makefile" ;;
21269    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21270    "include/vorbis/Makefile") CONFIG_FILES="$CONFIG_FILES include/vorbis/Makefile" ;;
21271    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
21272    "vq/Makefile") CONFIG_FILES="$CONFIG_FILES vq/Makefile" ;;
21273    "libvorbis.spec") CONFIG_FILES="$CONFIG_FILES libvorbis.spec" ;;
21274    "vorbis.pc") CONFIG_FILES="$CONFIG_FILES vorbis.pc" ;;
21275    "vorbisenc.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc.pc" ;;
21276    "vorbisfile.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile.pc" ;;
21277    "vorbis-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbis-uninstalled.pc" ;;
21278    "vorbisenc-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc-uninstalled.pc" ;;
21279    "vorbisfile-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile-uninstalled.pc" ;;
21280
21281  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21282echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21283   { (exit 1); exit 1; }; };;
21284  esac
21285done
21286
21287
21288# If the user did not use the arguments to specify the items to instantiate,
21289# then the envvar interface is used.  Set only those that are not.
21290# We use the long form for the default assignment because of an extremely
21291# bizarre bug on SunOS 4.1.3.
21292if $ac_need_defaults; then
21293  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21294  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21295  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21296fi
21297
21298# Have a temporary directory for convenience.  Make it in the build tree
21299# simply because there is no reason against having it here, and in addition,
21300# creating and moving files from /tmp can sometimes cause problems.
21301# Hook for its removal unless debugging.
21302# Note that there is a small window in which the directory will not be cleaned:
21303# after its creation but before its name has been assigned to `$tmp'.
21304$debug ||
21305{
21306  tmp=
21307  trap 'exit_status=$?
21308  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21309' 0
21310  trap '{ (exit 1); exit 1; }' 1 2 13 15
21311}
21312# Create a (secure) tmp directory for tmp files.
21313
21314{
21315  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21316  test -n "$tmp" && test -d "$tmp"
21317}  ||
21318{
21319  tmp=./conf$$-$RANDOM
21320  (umask 077 && mkdir "$tmp")
21321} ||
21322{
21323   echo "$me: cannot create a temporary directory in ." >&2
21324   { (exit 1); exit 1; }
21325}
21326
21327#
21328# Set up the sed scripts for CONFIG_FILES section.
21329#
21330
21331# No need to generate the scripts if there are no CONFIG_FILES.
21332# This happens for instance when ./config.status config.h
21333if test -n "$CONFIG_FILES"; then
21334
21335_ACEOF
21336
21337
21338
21339ac_delim='%!_!# '
21340for ac_last_try in false false false false false :; do
21341  cat >conf$$subs.sed <<_ACEOF
21342SHELL!$SHELL$ac_delim
21343PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21344PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21345PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21346PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21347PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21348PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21349exec_prefix!$exec_prefix$ac_delim
21350prefix!$prefix$ac_delim
21351program_transform_name!$program_transform_name$ac_delim
21352bindir!$bindir$ac_delim
21353sbindir!$sbindir$ac_delim
21354libexecdir!$libexecdir$ac_delim
21355datarootdir!$datarootdir$ac_delim
21356datadir!$datadir$ac_delim
21357sysconfdir!$sysconfdir$ac_delim
21358sharedstatedir!$sharedstatedir$ac_delim
21359localstatedir!$localstatedir$ac_delim
21360includedir!$includedir$ac_delim
21361oldincludedir!$oldincludedir$ac_delim
21362docdir!$docdir$ac_delim
21363infodir!$infodir$ac_delim
21364htmldir!$htmldir$ac_delim
21365dvidir!$dvidir$ac_delim
21366pdfdir!$pdfdir$ac_delim
21367psdir!$psdir$ac_delim
21368libdir!$libdir$ac_delim
21369localedir!$localedir$ac_delim
21370mandir!$mandir$ac_delim
21371DEFS!$DEFS$ac_delim
21372ECHO_C!$ECHO_C$ac_delim
21373ECHO_N!$ECHO_N$ac_delim
21374ECHO_T!$ECHO_T$ac_delim
21375LIBS!$LIBS$ac_delim
21376build_alias!$build_alias$ac_delim
21377host_alias!$host_alias$ac_delim
21378target_alias!$target_alias$ac_delim
21379build!$build$ac_delim
21380build_cpu!$build_cpu$ac_delim
21381build_vendor!$build_vendor$ac_delim
21382build_os!$build_os$ac_delim
21383host!$host$ac_delim
21384host_cpu!$host_cpu$ac_delim
21385host_vendor!$host_vendor$ac_delim
21386host_os!$host_os$ac_delim
21387target!$target$ac_delim
21388target_cpu!$target_cpu$ac_delim
21389target_vendor!$target_vendor$ac_delim
21390target_os!$target_os$ac_delim
21391INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21392INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21393INSTALL_DATA!$INSTALL_DATA$ac_delim
21394am__isrc!$am__isrc$ac_delim
21395CYGPATH_W!$CYGPATH_W$ac_delim
21396PACKAGE!$PACKAGE$ac_delim
21397VERSION!$VERSION$ac_delim
21398ACLOCAL!$ACLOCAL$ac_delim
21399AUTOCONF!$AUTOCONF$ac_delim
21400AUTOMAKE!$AUTOMAKE$ac_delim
21401AUTOHEADER!$AUTOHEADER$ac_delim
21402MAKEINFO!$MAKEINFO$ac_delim
21403install_sh!$install_sh$ac_delim
21404STRIP!$STRIP$ac_delim
21405INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21406mkdir_p!$mkdir_p$ac_delim
21407AWK!$AWK$ac_delim
21408SET_MAKE!$SET_MAKE$ac_delim
21409am__leading_dot!$am__leading_dot$ac_delim
21410AMTAR!$AMTAR$ac_delim
21411am__tar!$am__tar$ac_delim
21412am__untar!$am__untar$ac_delim
21413MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
21414MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
21415MAINT!$MAINT$ac_delim
21416V_LIB_CURRENT!$V_LIB_CURRENT$ac_delim
21417V_LIB_REVISION!$V_LIB_REVISION$ac_delim
21418V_LIB_AGE!$V_LIB_AGE$ac_delim
21419VF_LIB_CURRENT!$VF_LIB_CURRENT$ac_delim
21420VF_LIB_REVISION!$VF_LIB_REVISION$ac_delim
21421VF_LIB_AGE!$VF_LIB_AGE$ac_delim
21422VE_LIB_CURRENT!$VE_LIB_CURRENT$ac_delim
21423VE_LIB_REVISION!$VE_LIB_REVISION$ac_delim
21424VE_LIB_AGE!$VE_LIB_AGE$ac_delim
21425CC!$CC$ac_delim
21426CFLAGS!$CFLAGS$ac_delim
21427LDFLAGS!$LDFLAGS$ac_delim
21428CPPFLAGS!$CPPFLAGS$ac_delim
21429ac_ct_CC!$ac_ct_CC$ac_delim
21430EXEEXT!$EXEEXT$ac_delim
21431OBJEXT!$OBJEXT$ac_delim
21432DEPDIR!$DEPDIR$ac_delim
21433am__include!$am__include$ac_delim
21434am__quote!$am__quote$ac_delim
21435AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21436AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21437AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21438CCDEPMODE!$CCDEPMODE$ac_delim
21439_ACEOF
21440
21441  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21442    break
21443  elif $ac_last_try; then
21444    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21445echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21446   { (exit 1); exit 1; }; }
21447  else
21448    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21449  fi
21450done
21451
21452ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21453if test -n "$ac_eof"; then
21454  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21455  ac_eof=`expr $ac_eof + 1`
21456fi
21457
21458cat >>$CONFIG_STATUS <<_ACEOF
21459cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21460/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21461_ACEOF
21462sed '
21463s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21464s/^/s,@/; s/!/@,|#_!!_#|/
21465:n
21466t n
21467s/'"$ac_delim"'$/,g/; t
21468s/$/\\/; p
21469N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21470' >>$CONFIG_STATUS <conf$$subs.sed
21471rm -f conf$$subs.sed
21472cat >>$CONFIG_STATUS <<_ACEOF
21473CEOF$ac_eof
21474_ACEOF
21475
21476
21477ac_delim='%!_!# '
21478for ac_last_try in false false false false false :; do
21479  cat >conf$$subs.sed <<_ACEOF
21480am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21481am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21482CPP!$CPP$ac_delim
21483GREP!$GREP$ac_delim
21484EGREP!$EGREP$ac_delim
21485LN_S!$LN_S$ac_delim
21486ECHO!$ECHO$ac_delim
21487AR!$AR$ac_delim
21488RANLIB!$RANLIB$ac_delim
21489CXX!$CXX$ac_delim
21490CXXFLAGS!$CXXFLAGS$ac_delim
21491ac_ct_CXX!$ac_ct_CXX$ac_delim
21492CXXDEPMODE!$CXXDEPMODE$ac_delim
21493am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21494am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21495CXXCPP!$CXXCPP$ac_delim
21496F77!$F77$ac_delim
21497FFLAGS!$FFLAGS$ac_delim
21498ac_ct_F77!$ac_ct_F77$ac_delim
21499LIBTOOL!$LIBTOOL$ac_delim
21500XSLTPROC!$XSLTPROC$ac_delim
21501PDFXMLTEX!$PDFXMLTEX$ac_delim
21502BUILD_DOCS_TRUE!$BUILD_DOCS_TRUE$ac_delim
21503BUILD_DOCS_FALSE!$BUILD_DOCS_FALSE$ac_delim
21504HAVE_PKG_CONFIG!$HAVE_PKG_CONFIG$ac_delim
21505PKG_CONFIG!$PKG_CONFIG$ac_delim
21506OGG_CFLAGS!$OGG_CFLAGS$ac_delim
21507OGG_LIBS!$OGG_LIBS$ac_delim
21508ALLOCA!$ALLOCA$ac_delim
21509LIBOBJS!$LIBOBJS$ac_delim
21510VORBIS_LIBS!$VORBIS_LIBS$ac_delim
21511DEBUG!$DEBUG$ac_delim
21512PROFILE!$PROFILE$ac_delim
21513pthread_lib!$pthread_lib$ac_delim
21514LTLIBOBJS!$LTLIBOBJS$ac_delim
21515_ACEOF
21516
21517  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then
21518    break
21519  elif $ac_last_try; then
21520    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21521echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21522   { (exit 1); exit 1; }; }
21523  else
21524    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21525  fi
21526done
21527
21528ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21529if test -n "$ac_eof"; then
21530  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21531  ac_eof=`expr $ac_eof + 1`
21532fi
21533
21534cat >>$CONFIG_STATUS <<_ACEOF
21535cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21536/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21537_ACEOF
21538sed '
21539s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21540s/^/s,@/; s/!/@,|#_!!_#|/
21541:n
21542t n
21543s/'"$ac_delim"'$/,g/; t
21544s/$/\\/; p
21545N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21546' >>$CONFIG_STATUS <conf$$subs.sed
21547rm -f conf$$subs.sed
21548cat >>$CONFIG_STATUS <<_ACEOF
21549:end
21550s/|#_!!_#|//g
21551CEOF$ac_eof
21552_ACEOF
21553
21554
21555# VPATH may cause trouble with some makes, so we remove $(srcdir),
21556# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21557# trailing colons and then remove the whole line if VPATH becomes empty
21558# (actually we leave an empty line to preserve line numbers).
21559if test "x$srcdir" = x.; then
21560  ac_vpsub='/^[  ]*VPATH[        ]*=/{
21561s/:*\$(srcdir):*/:/
21562s/:*\${srcdir}:*/:/
21563s/:*@srcdir@:*/:/
21564s/^\([^=]*=[     ]*\):*/\1/
21565s/:*$//
21566s/^[^=]*=[       ]*$//
21567}'
21568fi
21569
21570cat >>$CONFIG_STATUS <<\_ACEOF
21571fi # test -n "$CONFIG_FILES"
21572
21573
21574for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21575do
21576  case $ac_tag in
21577  :[FHLC]) ac_mode=$ac_tag; continue;;
21578  esac
21579  case $ac_mode$ac_tag in
21580  :[FHL]*:*);;
21581  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21582echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21583   { (exit 1); exit 1; }; };;
21584  :[FH]-) ac_tag=-:-;;
21585  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21586  esac
21587  ac_save_IFS=$IFS
21588  IFS=:
21589  set x $ac_tag
21590  IFS=$ac_save_IFS
21591  shift
21592  ac_file=$1
21593  shift
21594
21595  case $ac_mode in
21596  :L) ac_source=$1;;
21597  :[FH])
21598    ac_file_inputs=
21599    for ac_f
21600    do
21601      case $ac_f in
21602      -) ac_f="$tmp/stdin";;
21603      *) # Look for the file first in the build tree, then in the source tree
21604         # (if the path is not absolute).  The absolute path cannot be DOS-style,
21605         # because $ac_f cannot contain `:'.
21606         test -f "$ac_f" ||
21607           case $ac_f in
21608           [\\/$]*) false;;
21609           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21610           esac ||
21611           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21612echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21613   { (exit 1); exit 1; }; };;
21614      esac
21615      ac_file_inputs="$ac_file_inputs $ac_f"
21616    done
21617
21618    # Let's still pretend it is `configure' which instantiates (i.e., don't
21619    # use $as_me), people would be surprised to read:
21620    #    /* config.h.  Generated by config.status.  */
21621    configure_input="Generated from "`IFS=:
21622          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21623    if test x"$ac_file" != x-; then
21624      configure_input="$ac_file.  $configure_input"
21625      { echo "$as_me:$LINENO: creating $ac_file" >&5
21626echo "$as_me: creating $ac_file" >&6;}
21627    fi
21628
21629    case $ac_tag in
21630    *:-:* | *:-) cat >"$tmp/stdin";;
21631    esac
21632    ;;
21633  esac
21634
21635  ac_dir=`$as_dirname -- "$ac_file" ||
21636$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21637         X"$ac_file" : 'X\(//\)[^/]' \| \
21638         X"$ac_file" : 'X\(//\)$' \| \
21639         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21640echo X"$ac_file" |
21641    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21642            s//\1/
21643            q
21644          }
21645          /^X\(\/\/\)[^/].*/{
21646            s//\1/
21647            q
21648          }
21649          /^X\(\/\/\)$/{
21650            s//\1/
21651            q
21652          }
21653          /^X\(\/\).*/{
21654            s//\1/
21655            q
21656          }
21657          s/.*/./; q'`
21658  { as_dir="$ac_dir"
21659  case $as_dir in #(
21660  -*) as_dir=./$as_dir;;
21661  esac
21662  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21663    as_dirs=
21664    while :; do
21665      case $as_dir in #(
21666      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21667      *) as_qdir=$as_dir;;
21668      esac
21669      as_dirs="'$as_qdir' $as_dirs"
21670      as_dir=`$as_dirname -- "$as_dir" ||
21671$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21672         X"$as_dir" : 'X\(//\)[^/]' \| \
21673         X"$as_dir" : 'X\(//\)$' \| \
21674         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21675echo X"$as_dir" |
21676    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21677            s//\1/
21678            q
21679          }
21680          /^X\(\/\/\)[^/].*/{
21681            s//\1/
21682            q
21683          }
21684          /^X\(\/\/\)$/{
21685            s//\1/
21686            q
21687          }
21688          /^X\(\/\).*/{
21689            s//\1/
21690            q
21691          }
21692          s/.*/./; q'`
21693      test -d "$as_dir" && break
21694    done
21695    test -z "$as_dirs" || eval "mkdir $as_dirs"
21696  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21697echo "$as_me: error: cannot create directory $as_dir" >&2;}
21698   { (exit 1); exit 1; }; }; }
21699  ac_builddir=.
21700
21701case "$ac_dir" in
21702.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21703*)
21704  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21705  # A ".." for each directory in $ac_dir_suffix.
21706  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21707  case $ac_top_builddir_sub in
21708  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21709  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21710  esac ;;
21711esac
21712ac_abs_top_builddir=$ac_pwd
21713ac_abs_builddir=$ac_pwd$ac_dir_suffix
21714# for backward compatibility:
21715ac_top_builddir=$ac_top_build_prefix
21716
21717case $srcdir in
21718  .)  # We are building in place.
21719    ac_srcdir=.
21720    ac_top_srcdir=$ac_top_builddir_sub
21721    ac_abs_top_srcdir=$ac_pwd ;;
21722  [\\/]* | ?:[\\/]* )  # Absolute name.
21723    ac_srcdir=$srcdir$ac_dir_suffix;
21724    ac_top_srcdir=$srcdir
21725    ac_abs_top_srcdir=$srcdir ;;
21726  *) # Relative name.
21727    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21728    ac_top_srcdir=$ac_top_build_prefix$srcdir
21729    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21730esac
21731ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21732
21733
21734  case $ac_mode in
21735  :F)
21736  #
21737  # CONFIG_FILE
21738  #
21739
21740  case $INSTALL in
21741  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21742  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21743  esac
21744  ac_MKDIR_P=$MKDIR_P
21745  case $MKDIR_P in
21746  [\\/$]* | ?:[\\/]* ) ;;
21747  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21748  esac
21749_ACEOF
21750
21751cat >>$CONFIG_STATUS <<\_ACEOF
21752# If the template does not know about datarootdir, expand it.
21753# FIXME: This hack should be removed a few years after 2.60.
21754ac_datarootdir_hack=; ac_datarootdir_seen=
21755
21756case `sed -n '/datarootdir/ {
21757  p
21758  q
21759}
21760/@datadir@/p
21761/@docdir@/p
21762/@infodir@/p
21763/@localedir@/p
21764/@mandir@/p
21765' $ac_file_inputs` in
21766*datarootdir*) ac_datarootdir_seen=yes;;
21767*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21768  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21769echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21770_ACEOF
21771cat >>$CONFIG_STATUS <<_ACEOF
21772  ac_datarootdir_hack='
21773  s&@datadir@&$datadir&g
21774  s&@docdir@&$docdir&g
21775  s&@infodir@&$infodir&g
21776  s&@localedir@&$localedir&g
21777  s&@mandir@&$mandir&g
21778    s&\\\${datarootdir}&$datarootdir&g' ;;
21779esac
21780_ACEOF
21781
21782# Neutralize VPATH when `$srcdir' = `.'.
21783# Shell code in configure.ac might set extrasub.
21784# FIXME: do we really want to maintain this feature?
21785cat >>$CONFIG_STATUS <<_ACEOF
21786  sed "$ac_vpsub
21787$extrasub
21788_ACEOF
21789cat >>$CONFIG_STATUS <<\_ACEOF
21790:t
21791/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21792s&@configure_input@&$configure_input&;t t
21793s&@top_builddir@&$ac_top_builddir_sub&;t t
21794s&@srcdir@&$ac_srcdir&;t t
21795s&@abs_srcdir@&$ac_abs_srcdir&;t t
21796s&@top_srcdir@&$ac_top_srcdir&;t t
21797s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21798s&@builddir@&$ac_builddir&;t t
21799s&@abs_builddir@&$ac_abs_builddir&;t t
21800s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21801s&@INSTALL@&$ac_INSTALL&;t t
21802s&@MKDIR_P@&$ac_MKDIR_P&;t t
21803$ac_datarootdir_hack
21804" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21805
21806test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21807  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21808  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21809  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21810which seems to be undefined.  Please make sure it is defined." >&5
21811echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21812which seems to be undefined.  Please make sure it is defined." >&2;}
21813
21814  rm -f "$tmp/stdin"
21815  case $ac_file in
21816  -) cat "$tmp/out"; rm -f "$tmp/out";;
21817  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21818  esac
21819 ;;
21820  :H)
21821  #
21822  # CONFIG_HEADER
21823  #
21824_ACEOF
21825
21826# Transform confdefs.h into a sed script `conftest.defines', that
21827# substitutes the proper values into config.h.in to produce config.h.
21828rm -f conftest.defines conftest.tail
21829# First, append a space to every undef/define line, to ease matching.
21830echo 's/$/ /' >conftest.defines
21831# Then, protect against being on the right side of a sed subst, or in
21832# an unquoted here document, in config.status.  If some macros were
21833# called several times there might be several #defines for the same
21834# symbol, which is useless.  But do not sort them, since the last
21835# AC_DEFINE must be honored.
21836ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21837# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21838# NAME is the cpp macro being defined, VALUE is the value it is being given.
21839# PARAMS is the parameter list in the macro definition--in most cases, it's
21840# just an empty string.
21841ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
21842ac_dB='\\)[      (].*,\\1define\\2'
21843ac_dC=' '
21844ac_dD=' ,'
21845
21846uniq confdefs.h |
21847  sed -n '
21848        t rset
21849        :rset
21850        s/^[     ]*#[    ]*define[       ][      ]*//
21851        t ok
21852        d
21853        :ok
21854        s/[\\&,]/\\&/g
21855        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21856        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21857  ' >>conftest.defines
21858
21859# Remove the space that was appended to ease matching.
21860# Then replace #undef with comments.  This is necessary, for
21861# example, in the case of _POSIX_SOURCE, which is predefined and required
21862# on some systems where configure will not decide to define it.
21863# (The regexp can be short, since the line contains either #define or #undef.)
21864echo 's/ $//
21865s,^[     #]*u.*,/* & */,' >>conftest.defines
21866
21867# Break up conftest.defines:
21868ac_max_sed_lines=50
21869
21870# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21871# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21872# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21873# et cetera.
21874ac_in='$ac_file_inputs'
21875ac_out='"$tmp/out1"'
21876ac_nxt='"$tmp/out2"'
21877
21878while :
21879do
21880  # Write a here document:
21881    cat >>$CONFIG_STATUS <<_ACEOF
21882    # First, check the format of the line:
21883    cat >"\$tmp/defines.sed" <<\\CEOF
21884/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
21885/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
21886b
21887:def
21888_ACEOF
21889  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21890  echo 'CEOF
21891    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21892  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21893  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21894  grep . conftest.tail >/dev/null || break
21895  rm -f conftest.defines
21896  mv conftest.tail conftest.defines
21897done
21898rm -f conftest.defines conftest.tail
21899
21900echo "ac_result=$ac_in" >>$CONFIG_STATUS
21901cat >>$CONFIG_STATUS <<\_ACEOF
21902  if test x"$ac_file" != x-; then
21903    echo "/* $configure_input  */" >"$tmp/config.h"
21904    cat "$ac_result" >>"$tmp/config.h"
21905    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21906      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21907echo "$as_me: $ac_file is unchanged" >&6;}
21908    else
21909      rm -f $ac_file
21910      mv "$tmp/config.h" $ac_file
21911    fi
21912  else
21913    echo "/* $configure_input  */"
21914    cat "$ac_result"
21915  fi
21916  rm -f "$tmp/out12"
21917# Compute $ac_file's index in $config_headers.
21918_am_stamp_count=1
21919for _am_header in $config_headers :; do
21920  case $_am_header in
21921    $ac_file | $ac_file:* )
21922      break ;;
21923    * )
21924      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21925  esac
21926done
21927echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21928$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21929         X$ac_file : 'X\(//\)[^/]' \| \
21930         X$ac_file : 'X\(//\)$' \| \
21931         X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21932echo X$ac_file |
21933    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21934            s//\1/
21935            q
21936          }
21937          /^X\(\/\/\)[^/].*/{
21938            s//\1/
21939            q
21940          }
21941          /^X\(\/\/\)$/{
21942            s//\1/
21943            q
21944          }
21945          /^X\(\/\).*/{
21946            s//\1/
21947            q
21948          }
21949          s/.*/./; q'`/stamp-h$_am_stamp_count
21950 ;;
21951
21952  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21953echo "$as_me: executing $ac_file commands" >&6;}
21954 ;;
21955  esac
21956
21957
21958  case $ac_file$ac_mode in
21959    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21960  # Strip MF so we end up with the name of the file.
21961  mf=`echo "$mf" | sed -e 's/:.*$//'`
21962  # Check whether this is an Automake generated Makefile or not.
21963  # We used to match only the files named `Makefile.in', but
21964  # some people rename them; so instead we look at the file content.
21965  # Grep'ing the first line is not enough: some people post-process
21966  # each Makefile.in and add a new line on top of each file to say so.
21967  # Grep'ing the whole file is not good either: AIX grep has a line
21968  # limit of 2048, but all sed's we know have understand at least 4000.
21969  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
21970    dirpart=`$as_dirname -- "$mf" ||
21971$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21972         X"$mf" : 'X\(//\)[^/]' \| \
21973         X"$mf" : 'X\(//\)$' \| \
21974         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21975echo X"$mf" |
21976    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21977            s//\1/
21978            q
21979          }
21980          /^X\(\/\/\)[^/].*/{
21981            s//\1/
21982            q
21983          }
21984          /^X\(\/\/\)$/{
21985            s//\1/
21986            q
21987          }
21988          /^X\(\/\).*/{
21989            s//\1/
21990            q
21991          }
21992          s/.*/./; q'`
21993  else
21994    continue
21995  fi
21996  # Extract the definition of DEPDIR, am__include, and am__quote
21997  # from the Makefile without running `make'.
21998  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21999  test -z "$DEPDIR" && continue
22000  am__include=`sed -n 's/^am__include = //p' < "$mf"`
22001  test -z "am__include" && continue
22002  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22003  # When using ansi2knr, U may be empty or an underscore; expand it
22004  U=`sed -n 's/^U = //p' < "$mf"`
22005  # Find all dependency output files, they are included files with
22006  # $(DEPDIR) in their names.  We invoke sed twice because it is the
22007  # simplest approach to changing $(DEPDIR) to its actual value in the
22008  # expansion.
22009  for file in `sed -n "
22010    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22011       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22012    # Make sure the directory exists.
22013    test -f "$dirpart/$file" && continue
22014    fdir=`$as_dirname -- "$file" ||
22015$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22016         X"$file" : 'X\(//\)[^/]' \| \
22017         X"$file" : 'X\(//\)$' \| \
22018         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22019echo X"$file" |
22020    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22021            s//\1/
22022            q
22023          }
22024          /^X\(\/\/\)[^/].*/{
22025            s//\1/
22026            q
22027          }
22028          /^X\(\/\/\)$/{
22029            s//\1/
22030            q
22031          }
22032          /^X\(\/\).*/{
22033            s//\1/
22034            q
22035          }
22036          s/.*/./; q'`
22037    { as_dir=$dirpart/$fdir
22038  case $as_dir in #(
22039  -*) as_dir=./$as_dir;;
22040  esac
22041  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22042    as_dirs=
22043    while :; do
22044      case $as_dir in #(
22045      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22046      *) as_qdir=$as_dir;;
22047      esac
22048      as_dirs="'$as_qdir' $as_dirs"
22049      as_dir=`$as_dirname -- "$as_dir" ||
22050$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22051         X"$as_dir" : 'X\(//\)[^/]' \| \
22052         X"$as_dir" : 'X\(//\)$' \| \
22053         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22054echo X"$as_dir" |
22055    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22056            s//\1/
22057            q
22058          }
22059          /^X\(\/\/\)[^/].*/{
22060            s//\1/
22061            q
22062          }
22063          /^X\(\/\/\)$/{
22064            s//\1/
22065            q
22066          }
22067          /^X\(\/\).*/{
22068            s//\1/
22069            q
22070          }
22071          s/.*/./; q'`
22072      test -d "$as_dir" && break
22073    done
22074    test -z "$as_dirs" || eval "mkdir $as_dirs"
22075  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22076echo "$as_me: error: cannot create directory $as_dir" >&2;}
22077   { (exit 1); exit 1; }; }; }
22078    # echo "creating $dirpart/$file"
22079    echo '# dummy' > "$dirpart/$file"
22080  done
22081done
22082 ;;
22083
22084  esac
22085done # for ac_tag
22086
22087
22088{ (exit 0); exit 0; }
22089_ACEOF
22090chmod +x $CONFIG_STATUS
22091ac_clean_files=$ac_clean_files_save
22092
22093
22094# configure is writing to config.log, and then calls config.status.
22095# config.status does its own redirection, appending to config.log.
22096# Unfortunately, on DOS this fails, as config.log is still kept open
22097# by configure, so config.status won't be able to write to it; its
22098# output is simply discarded.  So we exec the FD to /dev/null,
22099# effectively closing config.log, so it can be properly (re)opened and
22100# appended to by config.status.  When coming back to configure, we
22101# need to make the FD available again.
22102if test "$no_create" != yes; then
22103  ac_cs_success=:
22104  ac_config_status_args=
22105  test "$silent" = yes &&
22106    ac_config_status_args="$ac_config_status_args --quiet"
22107  exec 5>/dev/null
22108  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22109  exec 5>>config.log
22110  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22111  # would make configure fail if this is the last instruction.
22112  $ac_cs_success || { (exit 1); exit 1; }
22113fi
22114
Note: See TracBrowser for help on using the repository browser.