configure revision 98af18c5
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for libXvMC 1.0.5.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85  as_unset=unset
86else
87  as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139  as_expr=expr
140else
141  as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145  as_basename=basename
146else
147  as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154	 X"$0" : 'X\(//\)$' \| \
155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157    sed '/^.*\/\([^/][^/]*\)\/*$/{
158	    s//\1/
159	    q
160	  }
161	  /^X\/\(\/\/\)$/{
162	    s//\1/
163	    q
164	  }
165	  /^X\/\(\/\).*/{
166	    s//\1/
167	    q
168	  }
169	  s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176  if (eval ":") 2>/dev/null; then
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181
182  if test $as_have_required = yes &&	 (eval ":
183(as_func_return () {
184  (exit \$1)
185}
186as_func_success () {
187  as_func_return 0
188}
189as_func_failure () {
190  as_func_return 1
191}
192as_func_ret_success () {
193  return 0
194}
195as_func_ret_failure () {
196  return 1
197}
198
199exitcode=0
200if as_func_success; then
201  :
202else
203  exitcode=1
204  echo as_func_success failed.
205fi
206
207if as_func_failure; then
208  exitcode=1
209  echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213  :
214else
215  exitcode=1
216  echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220  exitcode=1
221  echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225  :
226else
227  exitcode=1
228  echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234  as_lineno_1=\$LINENO
235  as_lineno_2=\$LINENO
236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239  :
240else
241  as_candidate_shells=
242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245  IFS=$as_save_IFS
246  test -z "$as_dir" && as_dir=.
247  case $as_dir in
248	 /*)
249	   for as_base in sh bash ksh sh5; do
250	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251	   done;;
252       esac
253done
254IFS=$as_save_IFS
255
256
257      for as_shell in $as_candidate_shells $SHELL; do
258	 # Try only shells that exist, to save several forks.
259	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260		{ ("$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  # Pre-4.2 versions of Zsh do 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_ASEOF
278}; then
279  CONFIG_SHELL=$as_shell
280	       as_have_required=yes
281	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283  emulate sh
284  NULLCMD=:
285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286  # is contrary to our usage.  Disable this feature.
287  alias -g '${1+"$@"}'='"$@"'
288  setopt NO_GLOB_SUBST
289else
290  case `(set -o) 2>/dev/null` in
291  *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299  (exit $1)
300}
301as_func_success () {
302  as_func_return 0
303}
304as_func_failure () {
305  as_func_return 1
306}
307as_func_ret_success () {
308  return 0
309}
310as_func_ret_failure () {
311  return 1
312}
313
314exitcode=0
315if as_func_success; then
316  :
317else
318  exitcode=1
319  echo as_func_success failed.
320fi
321
322if as_func_failure; then
323  exitcode=1
324  echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328  :
329else
330  exitcode=1
331  echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335  exitcode=1
336  echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340  :
341else
342  exitcode=1
343  echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349  as_lineno_1=$LINENO
350  as_lineno_2=$LINENO
351  test "x$as_lineno_1" != "x$as_lineno_2" &&
352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356  break
357fi
358
359fi
360
361      done
362
363      if test "x$CONFIG_SHELL" != x; then
364  for as_var in BASH_ENV ENV
365	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366	done
367	export CONFIG_SHELL
368	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372    if test $as_have_required = no; then
373  echo This script requires a shell more modern than all the
374      echo shells that I found on your system.  Please install a
375      echo modern shell, or manually run the script under such a
376      echo shell if you do have one.
377      { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388  (exit \$1)
389}
390as_func_success () {
391  as_func_return 0
392}
393as_func_failure () {
394  as_func_return 1
395}
396as_func_ret_success () {
397  return 0
398}
399as_func_ret_failure () {
400  return 1
401}
402
403exitcode=0
404if as_func_success; then
405  :
406else
407  exitcode=1
408  echo as_func_success failed.
409fi
410
411if as_func_failure; then
412  exitcode=1
413  echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417  :
418else
419  exitcode=1
420  echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424  exitcode=1
425  echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429  :
430else
431  exitcode=1
432  echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436  echo No shell found that supports shell functions.
437  echo Please tell bug-autoconf@gnu.org about your system,
438  echo including any error possibly output before this message.
439  echo This can help us improve future autoconf versions.
440  echo Configuration will now proceed without shell functions.
441}
442
443
444
445  as_lineno_1=$LINENO
446  as_lineno_2=$LINENO
447  test "x$as_lineno_1" != "x$as_lineno_2" &&
448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451  # uniformly replaced by the line number.  The first 'sed' inserts a
452  # line-number line after each line using $LINENO; the second 'sed'
453  # does the real work.  The second script uses 'N' to pair each
454  # line-number line with the line containing $LINENO, and appends
455  # trailing '-' during substitution so that $LINENO is not a special
456  # case at line end.
457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459  # E. McMahon (1931-1989) for sed's syntax.  :-)
460  sed -n '
461    p
462    /[$]LINENO/=
463  ' <$as_myself |
464    sed '
465      s/[$]LINENO.*/&-/
466      t lineno
467      b
468      :lineno
469      N
470      :loop
471      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472      t loop
473      s/-\n.*//
474    ' >$as_me.lineno &&
475  chmod +x "$as_me.lineno" ||
476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477   { (exit 1); exit 1; }; }
478
479  # Don't try to exec as it changes $[0], causing all sort of problems
480  # (the dirname of $[0] is not the place where we might find the
481  # original and so on.  Autoconf is especially sensitive to this).
482  . "./$as_me.lineno"
483  # Exit status is that of the last command.
484  exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489  as_dirname=dirname
490else
491  as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497  case `echo 'x\c'` in
498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499  *)   ECHO_C='\c';;
500  esac;;
501*)
502  ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506  as_expr=expr
507else
508  as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513  rm -f conf$$.dir/conf$$.file
514else
515  rm -f conf$$.dir
516  mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519  if ln -s conf$$.file conf$$ 2>/dev/null; then
520    as_ln_s='ln -s'
521    # ... but there are two gotchas:
522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524    # In both cases, we have to default to `cp -p'.
525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526      as_ln_s='cp -p'
527  elif ln conf$$.file conf$$ 2>/dev/null; then
528    as_ln_s=ln
529  else
530    as_ln_s='cp -p'
531  fi
532else
533  as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539  as_mkdir_p=:
540else
541  test -d ./-p && rmdir ./-p
542  as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546  as_test_x='test -x'
547else
548  if ls -dL / >/dev/null 2>&1; then
549    as_ls_L_option=L
550  else
551    as_ls_L_option=
552  fi
553  as_test_x='
554    eval sh -c '\''
555      if test -d "$1"; then
556	test -d "$1/.";
557      else
558	case $1 in
559	-*)set "./$1";;
560	esac;
561	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562	???[sx]*):;;*)false;;esac;fi
563    '\'' sh
564  '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$ECHO in
581X*--fallback-echo)
582  # Remove one level of quotation (which was required for Make).
583  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584  ;;
585esac
586
587echo=${ECHO-echo}
588if test "X$1" = X--no-reexec; then
589  # Discard the --no-reexec flag, and continue.
590  shift
591elif test "X$1" = X--fallback-echo; then
592  # Avoid inline document here, it may be left over
593  :
594elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595  # Yippee, $echo works!
596  :
597else
598  # Restart under the correct shell.
599  exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603  # used as fallback echo
604  shift
605  cat <<EOF
606$*
607EOF
608  exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$ECHO"; then
616if test "X${echo_test_string+set}" != Xset; then
617# find a string as large as possible, as long as the shell can cope with it
618  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621       echo_test_string=`eval $cmd` &&
622       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623    then
624      break
625    fi
626  done
627fi
628
629if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631   test "X$echo_testing_string" = "X$echo_test_string"; then
632  :
633else
634  # The Solaris, AIX, and Digital Unix default echo programs unquote
635  # backslashes.  This makes it impossible to quote backslashes using
636  #   echo "$something" | sed 's/\\/\\\\/g'
637  #
638  # So, first we look for a working echo in the user's PATH.
639
640  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641  for dir in $PATH /usr/ucb; do
642    IFS="$lt_save_ifs"
643    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646       test "X$echo_testing_string" = "X$echo_test_string"; then
647      echo="$dir/echo"
648      break
649    fi
650  done
651  IFS="$lt_save_ifs"
652
653  if test "X$echo" = Xecho; then
654    # We didn't find a better echo, so look for alternatives.
655    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657       test "X$echo_testing_string" = "X$echo_test_string"; then
658      # This shell has a builtin print -r that does the trick.
659      echo='print -r'
660    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661	 test "X$CONFIG_SHELL" != X/bin/ksh; then
662      # If we have ksh, try running configure again with it.
663      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664      export ORIGINAL_CONFIG_SHELL
665      CONFIG_SHELL=/bin/ksh
666      export CONFIG_SHELL
667      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668    else
669      # Try using printf.
670      echo='printf %s\n'
671      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673	 test "X$echo_testing_string" = "X$echo_test_string"; then
674	# Cool, printf works
675	:
676      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677	   test "X$echo_testing_string" = 'X\t' &&
678	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679	   test "X$echo_testing_string" = "X$echo_test_string"; then
680	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681	export CONFIG_SHELL
682	SHELL="$CONFIG_SHELL"
683	export SHELL
684	echo="$CONFIG_SHELL $0 --fallback-echo"
685      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686	   test "X$echo_testing_string" = 'X\t' &&
687	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688	   test "X$echo_testing_string" = "X$echo_test_string"; then
689	echo="$CONFIG_SHELL $0 --fallback-echo"
690      else
691	# maybe with a smaller string...
692	prev=:
693
694	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696	  then
697	    break
698	  fi
699	  prev="$cmd"
700	done
701
702	if test "$prev" != 'sed 50q "$0"'; then
703	  echo_test_string=`eval $prev`
704	  export echo_test_string
705	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706	else
707	  # Oops.  We lost completely, so just stick with echo.
708	  echo=echo
709	fi
710      fi
711    fi
712  fi
713fi
714fi
715
716# Copy echo and quote the copy suitably for passing to libtool from
717# the Makefile, instead of quoting the original, which is used later.
718ECHO=$echo
719if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721fi
722
723
724
725
726tagnames=${tagnames+${tagnames},}CXX
727
728tagnames=${tagnames+${tagnames},}F77
729
730exec 7<&0 </dev/null 6>&1
731
732# Name of the host.
733# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734# so uname gets run too.
735ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737#
738# Initializations.
739#
740ac_default_prefix=/usr/local
741ac_clean_files=
742ac_config_libobj_dir=.
743LIBOBJS=
744cross_compiling=no
745subdirs=
746MFLAGS=
747MAKEFLAGS=
748SHELL=${CONFIG_SHELL-/bin/sh}
749
750# Identity of this package.
751PACKAGE_NAME='libXvMC'
752PACKAGE_TARNAME='libXvMC'
753PACKAGE_VERSION='1.0.5'
754PACKAGE_STRING='libXvMC 1.0.5'
755PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
756
757# Factoring default headers for most tests.
758ac_includes_default="\
759#include <stdio.h>
760#ifdef HAVE_SYS_TYPES_H
761# include <sys/types.h>
762#endif
763#ifdef HAVE_SYS_STAT_H
764# include <sys/stat.h>
765#endif
766#ifdef STDC_HEADERS
767# include <stdlib.h>
768# include <stddef.h>
769#else
770# ifdef HAVE_STDLIB_H
771#  include <stdlib.h>
772# endif
773#endif
774#ifdef HAVE_STRING_H
775# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
776#  include <memory.h>
777# endif
778# include <string.h>
779#endif
780#ifdef HAVE_STRINGS_H
781# include <strings.h>
782#endif
783#ifdef HAVE_INTTYPES_H
784# include <inttypes.h>
785#endif
786#ifdef HAVE_STDINT_H
787# include <stdint.h>
788#endif
789#ifdef HAVE_UNISTD_H
790# include <unistd.h>
791#endif"
792
793ac_subst_vars='am__EXEEXT_FALSE
794am__EXEEXT_TRUE
795LTLIBOBJS
796LIBOBJS
797LINT_FALSE
798LINT_TRUE
799LINT_FLAGS
800LINT
801XTMALLOC_ZERO_CFLAGS
802XMALLOC_ZERO_CFLAGS
803MALLOC_ZERO_CFLAGS
804XVMC_LIBS
805XVMC_CFLAGS
806PKG_CONFIG
807ADMIN_MAN_DIR
808DRIVER_MAN_DIR
809MISC_MAN_DIR
810FILE_MAN_DIR
811LIB_MAN_DIR
812APP_MAN_DIR
813ADMIN_MAN_SUFFIX
814DRIVER_MAN_SUFFIX
815MISC_MAN_SUFFIX
816FILE_MAN_SUFFIX
817LIB_MAN_SUFFIX
818APP_MAN_SUFFIX
819distcleancheck_listfiles
820CHANGELOG_CMD
821AM_BACKSLASH
822AM_DEFAULT_VERBOSITY
823CWARNFLAGS
824LIBTOOL
825ac_ct_F77
826FFLAGS
827F77
828CXXCPP
829am__fastdepCXX_FALSE
830am__fastdepCXX_TRUE
831CXXDEPMODE
832ac_ct_CXX
833CXXFLAGS
834CXX
835CPP
836NMEDIT
837DSYMUTIL
838RANLIB
839AR
840ECHO
841LN_S
842EGREP
843GREP
844SED
845host_os
846host_vendor
847host_cpu
848host
849build_os
850build_vendor
851build_cpu
852build
853am__fastdepCC_FALSE
854am__fastdepCC_TRUE
855CCDEPMODE
856AMDEPBACKSLASH
857AMDEP_FALSE
858AMDEP_TRUE
859am__quote
860am__include
861DEPDIR
862OBJEXT
863EXEEXT
864ac_ct_CC
865CPPFLAGS
866LDFLAGS
867CFLAGS
868CC
869MAINT
870MAINTAINER_MODE_FALSE
871MAINTAINER_MODE_TRUE
872am__untar
873am__tar
874AMTAR
875am__leading_dot
876SET_MAKE
877AWK
878mkdir_p
879MKDIR_P
880INSTALL_STRIP_PROGRAM
881STRIP
882install_sh
883MAKEINFO
884AUTOHEADER
885AUTOMAKE
886AUTOCONF
887ACLOCAL
888VERSION
889PACKAGE
890CYGPATH_W
891am__isrc
892INSTALL_DATA
893INSTALL_SCRIPT
894INSTALL_PROGRAM
895target_alias
896host_alias
897build_alias
898LIBS
899ECHO_T
900ECHO_N
901ECHO_C
902DEFS
903mandir
904localedir
905libdir
906psdir
907pdfdir
908dvidir
909htmldir
910infodir
911docdir
912oldincludedir
913includedir
914localstatedir
915sharedstatedir
916sysconfdir
917datadir
918datarootdir
919libexecdir
920sbindir
921bindir
922program_transform_name
923prefix
924exec_prefix
925PACKAGE_BUGREPORT
926PACKAGE_STRING
927PACKAGE_VERSION
928PACKAGE_TARNAME
929PACKAGE_NAME
930PATH_SEPARATOR
931SHELL'
932ac_subst_files=''
933ac_user_opts='
934enable_option_checking
935enable_maintainer_mode
936enable_dependency_tracking
937enable_shared
938enable_static
939enable_fast_install
940with_gnu_ld
941enable_libtool_lock
942with_pic
943with_tags
944enable_silent_rules
945enable_strict_compilation
946with_release_version
947enable_malloc0returnsnull
948with_lint
949'
950      ac_precious_vars='build_alias
951host_alias
952target_alias
953CC
954CFLAGS
955LDFLAGS
956LIBS
957CPPFLAGS
958CPP
959CXX
960CXXFLAGS
961CCC
962CXXCPP
963F77
964FFLAGS
965PKG_CONFIG
966XVMC_CFLAGS
967XVMC_LIBS'
968
969
970# Initialize some variables set by options.
971ac_init_help=
972ac_init_version=false
973ac_unrecognized_opts=
974ac_unrecognized_sep=
975# The variables have the same names as the options, with
976# dashes changed to underlines.
977cache_file=/dev/null
978exec_prefix=NONE
979no_create=
980no_recursion=
981prefix=NONE
982program_prefix=NONE
983program_suffix=NONE
984program_transform_name=s,x,x,
985silent=
986site=
987srcdir=
988verbose=
989x_includes=NONE
990x_libraries=NONE
991
992# Installation directory options.
993# These are left unexpanded so users can "make install exec_prefix=/foo"
994# and all the variables that are supposed to be based on exec_prefix
995# by default will actually change.
996# Use braces instead of parens because sh, perl, etc. also accept them.
997# (The list follows the same order as the GNU Coding Standards.)
998bindir='${exec_prefix}/bin'
999sbindir='${exec_prefix}/sbin'
1000libexecdir='${exec_prefix}/libexec'
1001datarootdir='${prefix}/share'
1002datadir='${datarootdir}'
1003sysconfdir='${prefix}/etc'
1004sharedstatedir='${prefix}/com'
1005localstatedir='${prefix}/var'
1006includedir='${prefix}/include'
1007oldincludedir='/usr/include'
1008docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1009infodir='${datarootdir}/info'
1010htmldir='${docdir}'
1011dvidir='${docdir}'
1012pdfdir='${docdir}'
1013psdir='${docdir}'
1014libdir='${exec_prefix}/lib'
1015localedir='${datarootdir}/locale'
1016mandir='${datarootdir}/man'
1017
1018ac_prev=
1019ac_dashdash=
1020for ac_option
1021do
1022  # If the previous option needs an argument, assign it.
1023  if test -n "$ac_prev"; then
1024    eval $ac_prev=\$ac_option
1025    ac_prev=
1026    continue
1027  fi
1028
1029  case $ac_option in
1030  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1031  *)	ac_optarg=yes ;;
1032  esac
1033
1034  # Accept the important Cygnus configure options, so we can diagnose typos.
1035
1036  case $ac_dashdash$ac_option in
1037  --)
1038    ac_dashdash=yes ;;
1039
1040  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1041    ac_prev=bindir ;;
1042  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1043    bindir=$ac_optarg ;;
1044
1045  -build | --build | --buil | --bui | --bu)
1046    ac_prev=build_alias ;;
1047  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1048    build_alias=$ac_optarg ;;
1049
1050  -cache-file | --cache-file | --cache-fil | --cache-fi \
1051  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1052    ac_prev=cache_file ;;
1053  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1054  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1055    cache_file=$ac_optarg ;;
1056
1057  --config-cache | -C)
1058    cache_file=config.cache ;;
1059
1060  -datadir | --datadir | --datadi | --datad)
1061    ac_prev=datadir ;;
1062  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1063    datadir=$ac_optarg ;;
1064
1065  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1066  | --dataroo | --dataro | --datar)
1067    ac_prev=datarootdir ;;
1068  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1069  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1070    datarootdir=$ac_optarg ;;
1071
1072  -disable-* | --disable-*)
1073    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1074    # Reject names that are not valid shell variable names.
1075    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1077   { (exit 1); exit 1; }; }
1078    ac_useropt_orig=$ac_useropt
1079    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080    case $ac_user_opts in
1081      *"
1082"enable_$ac_useropt"
1083"*) ;;
1084      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1085	 ac_unrecognized_sep=', ';;
1086    esac
1087    eval enable_$ac_useropt=no ;;
1088
1089  -docdir | --docdir | --docdi | --doc | --do)
1090    ac_prev=docdir ;;
1091  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1092    docdir=$ac_optarg ;;
1093
1094  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1095    ac_prev=dvidir ;;
1096  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1097    dvidir=$ac_optarg ;;
1098
1099  -enable-* | --enable-*)
1100    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1101    # Reject names that are not valid shell variable names.
1102    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1104   { (exit 1); exit 1; }; }
1105    ac_useropt_orig=$ac_useropt
1106    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107    case $ac_user_opts in
1108      *"
1109"enable_$ac_useropt"
1110"*) ;;
1111      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1112	 ac_unrecognized_sep=', ';;
1113    esac
1114    eval enable_$ac_useropt=\$ac_optarg ;;
1115
1116  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1117  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1118  | --exec | --exe | --ex)
1119    ac_prev=exec_prefix ;;
1120  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1121  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1122  | --exec=* | --exe=* | --ex=*)
1123    exec_prefix=$ac_optarg ;;
1124
1125  -gas | --gas | --ga | --g)
1126    # Obsolete; use --with-gas.
1127    with_gas=yes ;;
1128
1129  -help | --help | --hel | --he | -h)
1130    ac_init_help=long ;;
1131  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1132    ac_init_help=recursive ;;
1133  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1134    ac_init_help=short ;;
1135
1136  -host | --host | --hos | --ho)
1137    ac_prev=host_alias ;;
1138  -host=* | --host=* | --hos=* | --ho=*)
1139    host_alias=$ac_optarg ;;
1140
1141  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1142    ac_prev=htmldir ;;
1143  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1144  | --ht=*)
1145    htmldir=$ac_optarg ;;
1146
1147  -includedir | --includedir | --includedi | --included | --include \
1148  | --includ | --inclu | --incl | --inc)
1149    ac_prev=includedir ;;
1150  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1151  | --includ=* | --inclu=* | --incl=* | --inc=*)
1152    includedir=$ac_optarg ;;
1153
1154  -infodir | --infodir | --infodi | --infod | --info | --inf)
1155    ac_prev=infodir ;;
1156  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1157    infodir=$ac_optarg ;;
1158
1159  -libdir | --libdir | --libdi | --libd)
1160    ac_prev=libdir ;;
1161  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1162    libdir=$ac_optarg ;;
1163
1164  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1165  | --libexe | --libex | --libe)
1166    ac_prev=libexecdir ;;
1167  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1168  | --libexe=* | --libex=* | --libe=*)
1169    libexecdir=$ac_optarg ;;
1170
1171  -localedir | --localedir | --localedi | --localed | --locale)
1172    ac_prev=localedir ;;
1173  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1174    localedir=$ac_optarg ;;
1175
1176  -localstatedir | --localstatedir | --localstatedi | --localstated \
1177  | --localstate | --localstat | --localsta | --localst | --locals)
1178    ac_prev=localstatedir ;;
1179  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1180  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1181    localstatedir=$ac_optarg ;;
1182
1183  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1184    ac_prev=mandir ;;
1185  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1186    mandir=$ac_optarg ;;
1187
1188  -nfp | --nfp | --nf)
1189    # Obsolete; use --without-fp.
1190    with_fp=no ;;
1191
1192  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1193  | --no-cr | --no-c | -n)
1194    no_create=yes ;;
1195
1196  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1197  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1198    no_recursion=yes ;;
1199
1200  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1201  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1202  | --oldin | --oldi | --old | --ol | --o)
1203    ac_prev=oldincludedir ;;
1204  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1205  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1206  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1207    oldincludedir=$ac_optarg ;;
1208
1209  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1210    ac_prev=prefix ;;
1211  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1212    prefix=$ac_optarg ;;
1213
1214  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1215  | --program-pre | --program-pr | --program-p)
1216    ac_prev=program_prefix ;;
1217  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1218  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1219    program_prefix=$ac_optarg ;;
1220
1221  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1222  | --program-suf | --program-su | --program-s)
1223    ac_prev=program_suffix ;;
1224  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1225  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1226    program_suffix=$ac_optarg ;;
1227
1228  -program-transform-name | --program-transform-name \
1229  | --program-transform-nam | --program-transform-na \
1230  | --program-transform-n | --program-transform- \
1231  | --program-transform | --program-transfor \
1232  | --program-transfo | --program-transf \
1233  | --program-trans | --program-tran \
1234  | --progr-tra | --program-tr | --program-t)
1235    ac_prev=program_transform_name ;;
1236  -program-transform-name=* | --program-transform-name=* \
1237  | --program-transform-nam=* | --program-transform-na=* \
1238  | --program-transform-n=* | --program-transform-=* \
1239  | --program-transform=* | --program-transfor=* \
1240  | --program-transfo=* | --program-transf=* \
1241  | --program-trans=* | --program-tran=* \
1242  | --progr-tra=* | --program-tr=* | --program-t=*)
1243    program_transform_name=$ac_optarg ;;
1244
1245  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1246    ac_prev=pdfdir ;;
1247  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1248    pdfdir=$ac_optarg ;;
1249
1250  -psdir | --psdir | --psdi | --psd | --ps)
1251    ac_prev=psdir ;;
1252  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1253    psdir=$ac_optarg ;;
1254
1255  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256  | -silent | --silent | --silen | --sile | --sil)
1257    silent=yes ;;
1258
1259  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1260    ac_prev=sbindir ;;
1261  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1262  | --sbi=* | --sb=*)
1263    sbindir=$ac_optarg ;;
1264
1265  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1266  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1267  | --sharedst | --shareds | --shared | --share | --shar \
1268  | --sha | --sh)
1269    ac_prev=sharedstatedir ;;
1270  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1271  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1272  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1273  | --sha=* | --sh=*)
1274    sharedstatedir=$ac_optarg ;;
1275
1276  -site | --site | --sit)
1277    ac_prev=site ;;
1278  -site=* | --site=* | --sit=*)
1279    site=$ac_optarg ;;
1280
1281  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1282    ac_prev=srcdir ;;
1283  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1284    srcdir=$ac_optarg ;;
1285
1286  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1287  | --syscon | --sysco | --sysc | --sys | --sy)
1288    ac_prev=sysconfdir ;;
1289  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1290  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1291    sysconfdir=$ac_optarg ;;
1292
1293  -target | --target | --targe | --targ | --tar | --ta | --t)
1294    ac_prev=target_alias ;;
1295  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1296    target_alias=$ac_optarg ;;
1297
1298  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1299    verbose=yes ;;
1300
1301  -version | --version | --versio | --versi | --vers | -V)
1302    ac_init_version=: ;;
1303
1304  -with-* | --with-*)
1305    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1306    # Reject names that are not valid shell variable names.
1307    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1308      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1309   { (exit 1); exit 1; }; }
1310    ac_useropt_orig=$ac_useropt
1311    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312    case $ac_user_opts in
1313      *"
1314"with_$ac_useropt"
1315"*) ;;
1316      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1317	 ac_unrecognized_sep=', ';;
1318    esac
1319    eval with_$ac_useropt=\$ac_optarg ;;
1320
1321  -without-* | --without-*)
1322    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1323    # Reject names that are not valid shell variable names.
1324    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1325      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1326   { (exit 1); exit 1; }; }
1327    ac_useropt_orig=$ac_useropt
1328    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329    case $ac_user_opts in
1330      *"
1331"with_$ac_useropt"
1332"*) ;;
1333      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1334	 ac_unrecognized_sep=', ';;
1335    esac
1336    eval with_$ac_useropt=no ;;
1337
1338  --x)
1339    # Obsolete; use --with-x.
1340    with_x=yes ;;
1341
1342  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1343  | --x-incl | --x-inc | --x-in | --x-i)
1344    ac_prev=x_includes ;;
1345  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1346  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1347    x_includes=$ac_optarg ;;
1348
1349  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1350  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1351    ac_prev=x_libraries ;;
1352  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1353  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1354    x_libraries=$ac_optarg ;;
1355
1356  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1357Try \`$0 --help' for more information." >&2
1358   { (exit 1); exit 1; }; }
1359    ;;
1360
1361  *=*)
1362    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1363    # Reject names that are not valid shell variable names.
1364    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1365      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1366   { (exit 1); exit 1; }; }
1367    eval $ac_envvar=\$ac_optarg
1368    export $ac_envvar ;;
1369
1370  *)
1371    # FIXME: should be removed in autoconf 3.0.
1372    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1373    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1374      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1375    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1376    ;;
1377
1378  esac
1379done
1380
1381if test -n "$ac_prev"; then
1382  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1383  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1384   { (exit 1); exit 1; }; }
1385fi
1386
1387if test -n "$ac_unrecognized_opts"; then
1388  case $enable_option_checking in
1389    no) ;;
1390    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1391   { (exit 1); exit 1; }; } ;;
1392    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1393  esac
1394fi
1395
1396# Check all directory arguments for consistency.
1397for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1398		datadir sysconfdir sharedstatedir localstatedir includedir \
1399		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1400		libdir localedir mandir
1401do
1402  eval ac_val=\$$ac_var
1403  # Remove trailing slashes.
1404  case $ac_val in
1405    */ )
1406      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1407      eval $ac_var=\$ac_val;;
1408  esac
1409  # Be sure to have absolute directory names.
1410  case $ac_val in
1411    [\\/$]* | ?:[\\/]* )  continue;;
1412    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1413  esac
1414  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1415   { (exit 1); exit 1; }; }
1416done
1417
1418# There might be people who depend on the old broken behavior: `$host'
1419# used to hold the argument of --host etc.
1420# FIXME: To remove some day.
1421build=$build_alias
1422host=$host_alias
1423target=$target_alias
1424
1425# FIXME: To remove some day.
1426if test "x$host_alias" != x; then
1427  if test "x$build_alias" = x; then
1428    cross_compiling=maybe
1429    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1430    If a cross compiler is detected then cross compile mode will be used." >&2
1431  elif test "x$build_alias" != "x$host_alias"; then
1432    cross_compiling=yes
1433  fi
1434fi
1435
1436ac_tool_prefix=
1437test -n "$host_alias" && ac_tool_prefix=$host_alias-
1438
1439test "$silent" = yes && exec 6>/dev/null
1440
1441
1442ac_pwd=`pwd` && test -n "$ac_pwd" &&
1443ac_ls_di=`ls -di .` &&
1444ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1445  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1446   { (exit 1); exit 1; }; }
1447test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1448  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1449   { (exit 1); exit 1; }; }
1450
1451
1452# Find the source files, if location was not specified.
1453if test -z "$srcdir"; then
1454  ac_srcdir_defaulted=yes
1455  # Try the directory containing this script, then the parent directory.
1456  ac_confdir=`$as_dirname -- "$as_myself" ||
1457$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1458	 X"$as_myself" : 'X\(//\)[^/]' \| \
1459	 X"$as_myself" : 'X\(//\)$' \| \
1460	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1461$as_echo X"$as_myself" |
1462    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1463	    s//\1/
1464	    q
1465	  }
1466	  /^X\(\/\/\)[^/].*/{
1467	    s//\1/
1468	    q
1469	  }
1470	  /^X\(\/\/\)$/{
1471	    s//\1/
1472	    q
1473	  }
1474	  /^X\(\/\).*/{
1475	    s//\1/
1476	    q
1477	  }
1478	  s/.*/./; q'`
1479  srcdir=$ac_confdir
1480  if test ! -r "$srcdir/$ac_unique_file"; then
1481    srcdir=..
1482  fi
1483else
1484  ac_srcdir_defaulted=no
1485fi
1486if test ! -r "$srcdir/$ac_unique_file"; then
1487  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1488  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1489   { (exit 1); exit 1; }; }
1490fi
1491ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1492ac_abs_confdir=`(
1493	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1494   { (exit 1); exit 1; }; }
1495	pwd)`
1496# When building in place, set srcdir=.
1497if test "$ac_abs_confdir" = "$ac_pwd"; then
1498  srcdir=.
1499fi
1500# Remove unnecessary trailing slashes from srcdir.
1501# Double slashes in file names in object file debugging info
1502# mess up M-x gdb in Emacs.
1503case $srcdir in
1504*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1505esac
1506for ac_var in $ac_precious_vars; do
1507  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1508  eval ac_env_${ac_var}_value=\$${ac_var}
1509  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1510  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1511done
1512
1513#
1514# Report the --help message.
1515#
1516if test "$ac_init_help" = "long"; then
1517  # Omit some internal or obsolete options to make the list less imposing.
1518  # This message is too long to be a string in the A/UX 3.1 sh.
1519  cat <<_ACEOF
1520\`configure' configures libXvMC 1.0.5 to adapt to many kinds of systems.
1521
1522Usage: $0 [OPTION]... [VAR=VALUE]...
1523
1524To assign environment variables (e.g., CC, CFLAGS...), specify them as
1525VAR=VALUE.  See below for descriptions of some of the useful variables.
1526
1527Defaults for the options are specified in brackets.
1528
1529Configuration:
1530  -h, --help              display this help and exit
1531      --help=short        display options specific to this package
1532      --help=recursive    display the short help of all the included packages
1533  -V, --version           display version information and exit
1534  -q, --quiet, --silent   do not print \`checking...' messages
1535      --cache-file=FILE   cache test results in FILE [disabled]
1536  -C, --config-cache      alias for \`--cache-file=config.cache'
1537  -n, --no-create         do not create output files
1538      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1539
1540Installation directories:
1541  --prefix=PREFIX         install architecture-independent files in PREFIX
1542                          [$ac_default_prefix]
1543  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1544                          [PREFIX]
1545
1546By default, \`make install' will install all the files in
1547\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1548an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1549for instance \`--prefix=\$HOME'.
1550
1551For better control, use the options below.
1552
1553Fine tuning of the installation directories:
1554  --bindir=DIR            user executables [EPREFIX/bin]
1555  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1556  --libexecdir=DIR        program executables [EPREFIX/libexec]
1557  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1558  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1559  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1560  --libdir=DIR            object code libraries [EPREFIX/lib]
1561  --includedir=DIR        C header files [PREFIX/include]
1562  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1563  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1564  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1565  --infodir=DIR           info documentation [DATAROOTDIR/info]
1566  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1567  --mandir=DIR            man documentation [DATAROOTDIR/man]
1568  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXvMC]
1569  --htmldir=DIR           html documentation [DOCDIR]
1570  --dvidir=DIR            dvi documentation [DOCDIR]
1571  --pdfdir=DIR            pdf documentation [DOCDIR]
1572  --psdir=DIR             ps documentation [DOCDIR]
1573_ACEOF
1574
1575  cat <<\_ACEOF
1576
1577Program names:
1578  --program-prefix=PREFIX            prepend PREFIX to installed program names
1579  --program-suffix=SUFFIX            append SUFFIX to installed program names
1580  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1581
1582System types:
1583  --build=BUILD     configure for building on BUILD [guessed]
1584  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1585_ACEOF
1586fi
1587
1588if test -n "$ac_init_help"; then
1589  case $ac_init_help in
1590     short | recursive ) echo "Configuration of libXvMC 1.0.5:";;
1591   esac
1592  cat <<\_ACEOF
1593
1594Optional Features:
1595  --disable-option-checking  ignore unrecognized --enable/--with options
1596  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1597  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1598  --enable-maintainer-mode  enable make rules and dependencies not useful
1599			  (and sometimes confusing) to the casual installer
1600  --disable-dependency-tracking  speeds up one-time build
1601  --enable-dependency-tracking   do not reject slow dependency extractors
1602  --enable-shared[=PKGS]  build shared libraries [default=yes]
1603  --enable-static[=PKGS]  build static libraries [default=yes]
1604  --enable-fast-install[=PKGS]
1605                          optimize for fast installation [default=yes]
1606  --disable-libtool-lock  avoid locking (might break parallel builds)
1607  --enable-silent-rules          less verbose build output (undo: `make V=1')
1608  --disable-silent-rules         verbose build output (undo: `make V=0')
1609  --enable-strict-compilation
1610                          Enable all warnings from compiler and make them
1611                          errors (default: disabled)
1612  --enable-malloc0returnsnull
1613                          malloc(0) returns NULL (default: auto)
1614
1615Optional Packages:
1616  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1617  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1618  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1619  --with-pic              try to use only PIC/non-PIC objects [default=use
1620                          both]
1621  --with-tags[=TAGS]      include additional configurations [automatic]
1622  --with-release-version=STRING
1623                          Use release version string in package name
1624  --with-lint             Use a lint-style source code checker (default:
1625                          disabled)
1626
1627Some influential environment variables:
1628  CC          C compiler command
1629  CFLAGS      C compiler flags
1630  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1631              nonstandard directory <lib dir>
1632  LIBS        libraries to pass to the linker, e.g. -l<library>
1633  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1634              you have headers in a nonstandard directory <include dir>
1635  CPP         C preprocessor
1636  CXX         C++ compiler command
1637  CXXFLAGS    C++ compiler flags
1638  CXXCPP      C++ preprocessor
1639  F77         Fortran 77 compiler command
1640  FFLAGS      Fortran 77 compiler flags
1641  PKG_CONFIG  path to pkg-config utility
1642  XVMC_CFLAGS C compiler flags for XVMC, overriding pkg-config
1643  XVMC_LIBS   linker flags for XVMC, overriding pkg-config
1644
1645Use these variables to override the choices made by `configure' or to help
1646it to find libraries and programs with nonstandard names/locations.
1647
1648Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1649_ACEOF
1650ac_status=$?
1651fi
1652
1653if test "$ac_init_help" = "recursive"; then
1654  # If there are subdirs, report their specific --help.
1655  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1656    test -d "$ac_dir" ||
1657      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1658      continue
1659    ac_builddir=.
1660
1661case "$ac_dir" in
1662.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663*)
1664  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1665  # A ".." for each directory in $ac_dir_suffix.
1666  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1667  case $ac_top_builddir_sub in
1668  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1670  esac ;;
1671esac
1672ac_abs_top_builddir=$ac_pwd
1673ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674# for backward compatibility:
1675ac_top_builddir=$ac_top_build_prefix
1676
1677case $srcdir in
1678  .)  # We are building in place.
1679    ac_srcdir=.
1680    ac_top_srcdir=$ac_top_builddir_sub
1681    ac_abs_top_srcdir=$ac_pwd ;;
1682  [\\/]* | ?:[\\/]* )  # Absolute name.
1683    ac_srcdir=$srcdir$ac_dir_suffix;
1684    ac_top_srcdir=$srcdir
1685    ac_abs_top_srcdir=$srcdir ;;
1686  *) # Relative name.
1687    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688    ac_top_srcdir=$ac_top_build_prefix$srcdir
1689    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1690esac
1691ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1692
1693    cd "$ac_dir" || { ac_status=$?; continue; }
1694    # Check for guested configure.
1695    if test -f "$ac_srcdir/configure.gnu"; then
1696      echo &&
1697      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1698    elif test -f "$ac_srcdir/configure"; then
1699      echo &&
1700      $SHELL "$ac_srcdir/configure" --help=recursive
1701    else
1702      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1703    fi || ac_status=$?
1704    cd "$ac_pwd" || { ac_status=$?; break; }
1705  done
1706fi
1707
1708test -n "$ac_init_help" && exit $ac_status
1709if $ac_init_version; then
1710  cat <<\_ACEOF
1711libXvMC configure 1.0.5
1712generated by GNU Autoconf 2.63
1713
1714Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17152002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1716This configure script is free software; the Free Software Foundation
1717gives unlimited permission to copy, distribute and modify it.
1718_ACEOF
1719  exit
1720fi
1721cat >config.log <<_ACEOF
1722This file contains any messages produced by compilers while
1723running configure, to aid debugging if configure makes a mistake.
1724
1725It was created by libXvMC $as_me 1.0.5, which was
1726generated by GNU Autoconf 2.63.  Invocation command line was
1727
1728  $ $0 $@
1729
1730_ACEOF
1731exec 5>>config.log
1732{
1733cat <<_ASUNAME
1734## --------- ##
1735## Platform. ##
1736## --------- ##
1737
1738hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1739uname -m = `(uname -m) 2>/dev/null || echo unknown`
1740uname -r = `(uname -r) 2>/dev/null || echo unknown`
1741uname -s = `(uname -s) 2>/dev/null || echo unknown`
1742uname -v = `(uname -v) 2>/dev/null || echo unknown`
1743
1744/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1745/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1746
1747/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1748/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1749/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1750/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1751/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1752/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1753/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1754
1755_ASUNAME
1756
1757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758for as_dir in $PATH
1759do
1760  IFS=$as_save_IFS
1761  test -z "$as_dir" && as_dir=.
1762  $as_echo "PATH: $as_dir"
1763done
1764IFS=$as_save_IFS
1765
1766} >&5
1767
1768cat >&5 <<_ACEOF
1769
1770
1771## ----------- ##
1772## Core tests. ##
1773## ----------- ##
1774
1775_ACEOF
1776
1777
1778# Keep a trace of the command line.
1779# Strip out --no-create and --no-recursion so they do not pile up.
1780# Strip out --silent because we don't want to record it for future runs.
1781# Also quote any args containing shell meta-characters.
1782# Make two passes to allow for proper duplicate-argument suppression.
1783ac_configure_args=
1784ac_configure_args0=
1785ac_configure_args1=
1786ac_must_keep_next=false
1787for ac_pass in 1 2
1788do
1789  for ac_arg
1790  do
1791    case $ac_arg in
1792    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1793    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1794    | -silent | --silent | --silen | --sile | --sil)
1795      continue ;;
1796    *\'*)
1797      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1798    esac
1799    case $ac_pass in
1800    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1801    2)
1802      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1803      if test $ac_must_keep_next = true; then
1804	ac_must_keep_next=false # Got value, back to normal.
1805      else
1806	case $ac_arg in
1807	  *=* | --config-cache | -C | -disable-* | --disable-* \
1808	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1809	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1810	  | -with-* | --with-* | -without-* | --without-* | --x)
1811	    case "$ac_configure_args0 " in
1812	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1813	    esac
1814	    ;;
1815	  -* ) ac_must_keep_next=true ;;
1816	esac
1817      fi
1818      ac_configure_args="$ac_configure_args '$ac_arg'"
1819      ;;
1820    esac
1821  done
1822done
1823$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1824$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1825
1826# When interrupted or exit'd, cleanup temporary files, and complete
1827# config.log.  We remove comments because anyway the quotes in there
1828# would cause problems or look ugly.
1829# WARNING: Use '\'' to represent an apostrophe within the trap.
1830# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1831trap 'exit_status=$?
1832  # Save into config.log some information that might help in debugging.
1833  {
1834    echo
1835
1836    cat <<\_ASBOX
1837## ---------------- ##
1838## Cache variables. ##
1839## ---------------- ##
1840_ASBOX
1841    echo
1842    # The following way of writing the cache mishandles newlines in values,
1843(
1844  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1845    eval ac_val=\$$ac_var
1846    case $ac_val in #(
1847    *${as_nl}*)
1848      case $ac_var in #(
1849      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1850$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1851      esac
1852      case $ac_var in #(
1853      _ | IFS | as_nl) ;; #(
1854      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1855      *) $as_unset $ac_var ;;
1856      esac ;;
1857    esac
1858  done
1859  (set) 2>&1 |
1860    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1861    *${as_nl}ac_space=\ *)
1862      sed -n \
1863	"s/'\''/'\''\\\\'\'''\''/g;
1864	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1865      ;; #(
1866    *)
1867      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1868      ;;
1869    esac |
1870    sort
1871)
1872    echo
1873
1874    cat <<\_ASBOX
1875## ----------------- ##
1876## Output variables. ##
1877## ----------------- ##
1878_ASBOX
1879    echo
1880    for ac_var in $ac_subst_vars
1881    do
1882      eval ac_val=\$$ac_var
1883      case $ac_val in
1884      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1885      esac
1886      $as_echo "$ac_var='\''$ac_val'\''"
1887    done | sort
1888    echo
1889
1890    if test -n "$ac_subst_files"; then
1891      cat <<\_ASBOX
1892## ------------------- ##
1893## File substitutions. ##
1894## ------------------- ##
1895_ASBOX
1896      echo
1897      for ac_var in $ac_subst_files
1898      do
1899	eval ac_val=\$$ac_var
1900	case $ac_val in
1901	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1902	esac
1903	$as_echo "$ac_var='\''$ac_val'\''"
1904      done | sort
1905      echo
1906    fi
1907
1908    if test -s confdefs.h; then
1909      cat <<\_ASBOX
1910## ----------- ##
1911## confdefs.h. ##
1912## ----------- ##
1913_ASBOX
1914      echo
1915      cat confdefs.h
1916      echo
1917    fi
1918    test "$ac_signal" != 0 &&
1919      $as_echo "$as_me: caught signal $ac_signal"
1920    $as_echo "$as_me: exit $exit_status"
1921  } >&5
1922  rm -f core *.core core.conftest.* &&
1923    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1924    exit $exit_status
1925' 0
1926for ac_signal in 1 2 13 15; do
1927  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1928done
1929ac_signal=0
1930
1931# confdefs.h avoids OS command line length limits that DEFS can exceed.
1932rm -f -r conftest* confdefs.h
1933
1934# Predefined preprocessor variables.
1935
1936cat >>confdefs.h <<_ACEOF
1937#define PACKAGE_NAME "$PACKAGE_NAME"
1938_ACEOF
1939
1940
1941cat >>confdefs.h <<_ACEOF
1942#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1943_ACEOF
1944
1945
1946cat >>confdefs.h <<_ACEOF
1947#define PACKAGE_VERSION "$PACKAGE_VERSION"
1948_ACEOF
1949
1950
1951cat >>confdefs.h <<_ACEOF
1952#define PACKAGE_STRING "$PACKAGE_STRING"
1953_ACEOF
1954
1955
1956cat >>confdefs.h <<_ACEOF
1957#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1958_ACEOF
1959
1960
1961# Let the site file select an alternate cache file if it wants to.
1962# Prefer an explicitly selected file to automatically selected ones.
1963ac_site_file1=NONE
1964ac_site_file2=NONE
1965if test -n "$CONFIG_SITE"; then
1966  ac_site_file1=$CONFIG_SITE
1967elif test "x$prefix" != xNONE; then
1968  ac_site_file1=$prefix/share/config.site
1969  ac_site_file2=$prefix/etc/config.site
1970else
1971  ac_site_file1=$ac_default_prefix/share/config.site
1972  ac_site_file2=$ac_default_prefix/etc/config.site
1973fi
1974for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1975do
1976  test "x$ac_site_file" = xNONE && continue
1977  if test -r "$ac_site_file"; then
1978    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1979$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1980    sed 's/^/| /' "$ac_site_file" >&5
1981    . "$ac_site_file"
1982  fi
1983done
1984
1985if test -r "$cache_file"; then
1986  # Some versions of bash will fail to source /dev/null (special
1987  # files actually), so we avoid doing that.
1988  if test -f "$cache_file"; then
1989    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1990$as_echo "$as_me: loading cache $cache_file" >&6;}
1991    case $cache_file in
1992      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1993      *)                      . "./$cache_file";;
1994    esac
1995  fi
1996else
1997  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1998$as_echo "$as_me: creating cache $cache_file" >&6;}
1999  >$cache_file
2000fi
2001
2002# Check that the precious variables saved in the cache have kept the same
2003# value.
2004ac_cache_corrupted=false
2005for ac_var in $ac_precious_vars; do
2006  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2007  eval ac_new_set=\$ac_env_${ac_var}_set
2008  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2009  eval ac_new_val=\$ac_env_${ac_var}_value
2010  case $ac_old_set,$ac_new_set in
2011    set,)
2012      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2013$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2014      ac_cache_corrupted=: ;;
2015    ,set)
2016      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2017$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2018      ac_cache_corrupted=: ;;
2019    ,);;
2020    *)
2021      if test "x$ac_old_val" != "x$ac_new_val"; then
2022	# differences in whitespace do not lead to failure.
2023	ac_old_val_w=`echo x $ac_old_val`
2024	ac_new_val_w=`echo x $ac_new_val`
2025	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2026	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2027$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2028	  ac_cache_corrupted=:
2029	else
2030	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2031$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2032	  eval $ac_var=\$ac_old_val
2033	fi
2034	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2035$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2036	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2037$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2038      fi;;
2039  esac
2040  # Pass precious variables to config.status.
2041  if test "$ac_new_set" = set; then
2042    case $ac_new_val in
2043    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2044    *) ac_arg=$ac_var=$ac_new_val ;;
2045    esac
2046    case " $ac_configure_args " in
2047      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2048      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2049    esac
2050  fi
2051done
2052if $ac_cache_corrupted; then
2053  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2055  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2056$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2057  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2058$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2059   { (exit 1); exit 1; }; }
2060fi
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086ac_ext=c
2087ac_cpp='$CPP $CPPFLAGS'
2088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2090ac_compiler_gnu=$ac_cv_c_compiler_gnu
2091
2092
2093am__api_version='1.11'
2094
2095ac_aux_dir=
2096for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2097  if test -f "$ac_dir/install-sh"; then
2098    ac_aux_dir=$ac_dir
2099    ac_install_sh="$ac_aux_dir/install-sh -c"
2100    break
2101  elif test -f "$ac_dir/install.sh"; then
2102    ac_aux_dir=$ac_dir
2103    ac_install_sh="$ac_aux_dir/install.sh -c"
2104    break
2105  elif test -f "$ac_dir/shtool"; then
2106    ac_aux_dir=$ac_dir
2107    ac_install_sh="$ac_aux_dir/shtool install -c"
2108    break
2109  fi
2110done
2111if test -z "$ac_aux_dir"; then
2112  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2113$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2114   { (exit 1); exit 1; }; }
2115fi
2116
2117# These three variables are undocumented and unsupported,
2118# and are intended to be withdrawn in a future Autoconf release.
2119# They can cause serious problems if a builder's source tree is in a directory
2120# whose full name contains unusual characters.
2121ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2122ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2123ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2124
2125
2126# Find a good install program.  We prefer a C program (faster),
2127# so one script is as good as another.  But avoid the broken or
2128# incompatible versions:
2129# SysV /etc/install, /usr/sbin/install
2130# SunOS /usr/etc/install
2131# IRIX /sbin/install
2132# AIX /bin/install
2133# AmigaOS /C/install, which installs bootblocks on floppy discs
2134# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2135# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2136# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2137# OS/2's system install, which has a completely different semantic
2138# ./install, which can be erroneously created by make from ./install.sh.
2139# Reject install programs that cannot install multiple files.
2140{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2141$as_echo_n "checking for a BSD-compatible install... " >&6; }
2142if test -z "$INSTALL"; then
2143if test "${ac_cv_path_install+set}" = set; then
2144  $as_echo_n "(cached) " >&6
2145else
2146  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147for as_dir in $PATH
2148do
2149  IFS=$as_save_IFS
2150  test -z "$as_dir" && as_dir=.
2151  # Account for people who put trailing slashes in PATH elements.
2152case $as_dir/ in
2153  ./ | .// | /cC/* | \
2154  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2155  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2156  /usr/ucb/* ) ;;
2157  *)
2158    # OSF1 and SCO ODT 3.0 have their own names for install.
2159    # Don't use installbsd from OSF since it installs stuff as root
2160    # by default.
2161    for ac_prog in ginstall scoinst install; do
2162      for ac_exec_ext in '' $ac_executable_extensions; do
2163	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2164	  if test $ac_prog = install &&
2165	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2166	    # AIX install.  It has an incompatible calling convention.
2167	    :
2168	  elif test $ac_prog = install &&
2169	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2170	    # program-specific install script used by HP pwplus--don't use.
2171	    :
2172	  else
2173	    rm -rf conftest.one conftest.two conftest.dir
2174	    echo one > conftest.one
2175	    echo two > conftest.two
2176	    mkdir conftest.dir
2177	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2178	      test -s conftest.one && test -s conftest.two &&
2179	      test -s conftest.dir/conftest.one &&
2180	      test -s conftest.dir/conftest.two
2181	    then
2182	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2183	      break 3
2184	    fi
2185	  fi
2186	fi
2187      done
2188    done
2189    ;;
2190esac
2191
2192done
2193IFS=$as_save_IFS
2194
2195rm -rf conftest.one conftest.two conftest.dir
2196
2197fi
2198  if test "${ac_cv_path_install+set}" = set; then
2199    INSTALL=$ac_cv_path_install
2200  else
2201    # As a last resort, use the slow shell script.  Don't cache a
2202    # value for INSTALL within a source directory, because that will
2203    # break other packages using the cache if that directory is
2204    # removed, or if the value is a relative name.
2205    INSTALL=$ac_install_sh
2206  fi
2207fi
2208{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2209$as_echo "$INSTALL" >&6; }
2210
2211# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2212# It thinks the first close brace ends the variable substitution.
2213test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2214
2215test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2216
2217test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2218
2219{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2220$as_echo_n "checking whether build environment is sane... " >&6; }
2221# Just in case
2222sleep 1
2223echo timestamp > conftest.file
2224# Reject unsafe characters in $srcdir or the absolute working directory
2225# name.  Accept space and tab only in the latter.
2226am_lf='
2227'
2228case `pwd` in
2229  *[\\\"\#\$\&\'\`$am_lf]*)
2230    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2231$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2232   { (exit 1); exit 1; }; };;
2233esac
2234case $srcdir in
2235  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2236    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2237$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2238   { (exit 1); exit 1; }; };;
2239esac
2240
2241# Do `set' in a subshell so we don't clobber the current shell's
2242# arguments.  Must try -L first in case configure is actually a
2243# symlink; some systems play weird games with the mod time of symlinks
2244# (eg FreeBSD returns the mod time of the symlink's containing
2245# directory).
2246if (
2247   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2248   if test "$*" = "X"; then
2249      # -L didn't work.
2250      set X `ls -t "$srcdir/configure" conftest.file`
2251   fi
2252   rm -f conftest.file
2253   if test "$*" != "X $srcdir/configure conftest.file" \
2254      && test "$*" != "X conftest.file $srcdir/configure"; then
2255
2256      # If neither matched, then we have a broken ls.  This can happen
2257      # if, for instance, CONFIG_SHELL is bash and it inherits a
2258      # broken ls alias from the environment.  This has actually
2259      # happened.  Such a system could not be considered "sane".
2260      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2261alias in your environment" >&5
2262$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2263alias in your environment" >&2;}
2264   { (exit 1); exit 1; }; }
2265   fi
2266
2267   test "$2" = conftest.file
2268   )
2269then
2270   # Ok.
2271   :
2272else
2273   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2274Check your system clock" >&5
2275$as_echo "$as_me: error: newly created file is older than distributed files!
2276Check your system clock" >&2;}
2277   { (exit 1); exit 1; }; }
2278fi
2279{ $as_echo "$as_me:$LINENO: result: yes" >&5
2280$as_echo "yes" >&6; }
2281test "$program_prefix" != NONE &&
2282  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2283# Use a double $ so make ignores it.
2284test "$program_suffix" != NONE &&
2285  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2286# Double any \ or $.
2287# By default was `s,x,x', remove it if useless.
2288ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2289program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2290
2291# expand $ac_aux_dir to an absolute path
2292am_aux_dir=`cd $ac_aux_dir && pwd`
2293
2294if test x"${MISSING+set}" != xset; then
2295  case $am_aux_dir in
2296  *\ * | *\	*)
2297    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2298  *)
2299    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2300  esac
2301fi
2302# Use eval to expand $SHELL
2303if eval "$MISSING --run true"; then
2304  am_missing_run="$MISSING --run "
2305else
2306  am_missing_run=
2307  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2308$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2309fi
2310
2311if test x"${install_sh}" != xset; then
2312  case $am_aux_dir in
2313  *\ * | *\	*)
2314    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2315  *)
2316    install_sh="\${SHELL} $am_aux_dir/install-sh"
2317  esac
2318fi
2319
2320# Installed binaries are usually stripped using `strip' when the user
2321# run `make install-strip'.  However `strip' might not be the right
2322# tool to use in cross-compilation environments, therefore Automake
2323# will honor the `STRIP' environment variable to overrule this program.
2324if test "$cross_compiling" != no; then
2325  if test -n "$ac_tool_prefix"; then
2326  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2327set dummy ${ac_tool_prefix}strip; ac_word=$2
2328{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2329$as_echo_n "checking for $ac_word... " >&6; }
2330if test "${ac_cv_prog_STRIP+set}" = set; then
2331  $as_echo_n "(cached) " >&6
2332else
2333  if test -n "$STRIP"; then
2334  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2335else
2336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337for as_dir in $PATH
2338do
2339  IFS=$as_save_IFS
2340  test -z "$as_dir" && as_dir=.
2341  for ac_exec_ext in '' $ac_executable_extensions; do
2342  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2343    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2344    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2345    break 2
2346  fi
2347done
2348done
2349IFS=$as_save_IFS
2350
2351fi
2352fi
2353STRIP=$ac_cv_prog_STRIP
2354if test -n "$STRIP"; then
2355  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2356$as_echo "$STRIP" >&6; }
2357else
2358  { $as_echo "$as_me:$LINENO: result: no" >&5
2359$as_echo "no" >&6; }
2360fi
2361
2362
2363fi
2364if test -z "$ac_cv_prog_STRIP"; then
2365  ac_ct_STRIP=$STRIP
2366  # Extract the first word of "strip", so it can be a program name with args.
2367set dummy strip; ac_word=$2
2368{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2369$as_echo_n "checking for $ac_word... " >&6; }
2370if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2371  $as_echo_n "(cached) " >&6
2372else
2373  if test -n "$ac_ct_STRIP"; then
2374  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2375else
2376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377for as_dir in $PATH
2378do
2379  IFS=$as_save_IFS
2380  test -z "$as_dir" && as_dir=.
2381  for ac_exec_ext in '' $ac_executable_extensions; do
2382  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2383    ac_cv_prog_ac_ct_STRIP="strip"
2384    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385    break 2
2386  fi
2387done
2388done
2389IFS=$as_save_IFS
2390
2391fi
2392fi
2393ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2394if test -n "$ac_ct_STRIP"; then
2395  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2396$as_echo "$ac_ct_STRIP" >&6; }
2397else
2398  { $as_echo "$as_me:$LINENO: result: no" >&5
2399$as_echo "no" >&6; }
2400fi
2401
2402  if test "x$ac_ct_STRIP" = x; then
2403    STRIP=":"
2404  else
2405    case $cross_compiling:$ac_tool_warned in
2406yes:)
2407{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2409ac_tool_warned=yes ;;
2410esac
2411    STRIP=$ac_ct_STRIP
2412  fi
2413else
2414  STRIP="$ac_cv_prog_STRIP"
2415fi
2416
2417fi
2418INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2419
2420{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2421$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2422if test -z "$MKDIR_P"; then
2423  if test "${ac_cv_path_mkdir+set}" = set; then
2424  $as_echo_n "(cached) " >&6
2425else
2426  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2428do
2429  IFS=$as_save_IFS
2430  test -z "$as_dir" && as_dir=.
2431  for ac_prog in mkdir gmkdir; do
2432	 for ac_exec_ext in '' $ac_executable_extensions; do
2433	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2434	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2435	     'mkdir (GNU coreutils) '* | \
2436	     'mkdir (coreutils) '* | \
2437	     'mkdir (fileutils) '4.1*)
2438	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2439	       break 3;;
2440	   esac
2441	 done
2442       done
2443done
2444IFS=$as_save_IFS
2445
2446fi
2447
2448  if test "${ac_cv_path_mkdir+set}" = set; then
2449    MKDIR_P="$ac_cv_path_mkdir -p"
2450  else
2451    # As a last resort, use the slow shell script.  Don't cache a
2452    # value for MKDIR_P within a source directory, because that will
2453    # break other packages using the cache if that directory is
2454    # removed, or if the value is a relative name.
2455    test -d ./--version && rmdir ./--version
2456    MKDIR_P="$ac_install_sh -d"
2457  fi
2458fi
2459{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2460$as_echo "$MKDIR_P" >&6; }
2461
2462mkdir_p="$MKDIR_P"
2463case $mkdir_p in
2464  [\\/$]* | ?:[\\/]*) ;;
2465  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2466esac
2467
2468for ac_prog in gawk mawk nawk awk
2469do
2470  # Extract the first word of "$ac_prog", so it can be a program name with args.
2471set dummy $ac_prog; ac_word=$2
2472{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2473$as_echo_n "checking for $ac_word... " >&6; }
2474if test "${ac_cv_prog_AWK+set}" = set; then
2475  $as_echo_n "(cached) " >&6
2476else
2477  if test -n "$AWK"; then
2478  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2479else
2480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481for as_dir in $PATH
2482do
2483  IFS=$as_save_IFS
2484  test -z "$as_dir" && as_dir=.
2485  for ac_exec_ext in '' $ac_executable_extensions; do
2486  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2487    ac_cv_prog_AWK="$ac_prog"
2488    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489    break 2
2490  fi
2491done
2492done
2493IFS=$as_save_IFS
2494
2495fi
2496fi
2497AWK=$ac_cv_prog_AWK
2498if test -n "$AWK"; then
2499  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2500$as_echo "$AWK" >&6; }
2501else
2502  { $as_echo "$as_me:$LINENO: result: no" >&5
2503$as_echo "no" >&6; }
2504fi
2505
2506
2507  test -n "$AWK" && break
2508done
2509
2510{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2511$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2512set x ${MAKE-make}
2513ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2514if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2515  $as_echo_n "(cached) " >&6
2516else
2517  cat >conftest.make <<\_ACEOF
2518SHELL = /bin/sh
2519all:
2520	@echo '@@@%%%=$(MAKE)=@@@%%%'
2521_ACEOF
2522# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2523case `${MAKE-make} -f conftest.make 2>/dev/null` in
2524  *@@@%%%=?*=@@@%%%*)
2525    eval ac_cv_prog_make_${ac_make}_set=yes;;
2526  *)
2527    eval ac_cv_prog_make_${ac_make}_set=no;;
2528esac
2529rm -f conftest.make
2530fi
2531if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2532  { $as_echo "$as_me:$LINENO: result: yes" >&5
2533$as_echo "yes" >&6; }
2534  SET_MAKE=
2535else
2536  { $as_echo "$as_me:$LINENO: result: no" >&5
2537$as_echo "no" >&6; }
2538  SET_MAKE="MAKE=${MAKE-make}"
2539fi
2540
2541rm -rf .tst 2>/dev/null
2542mkdir .tst 2>/dev/null
2543if test -d .tst; then
2544  am__leading_dot=.
2545else
2546  am__leading_dot=_
2547fi
2548rmdir .tst 2>/dev/null
2549
2550if test "`cd $srcdir && pwd`" != "`pwd`"; then
2551  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2552  # is not polluted with repeated "-I."
2553  am__isrc=' -I$(srcdir)'
2554  # test to see if srcdir already configured
2555  if test -f $srcdir/config.status; then
2556    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2557$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2558   { (exit 1); exit 1; }; }
2559  fi
2560fi
2561
2562# test whether we have cygpath
2563if test -z "$CYGPATH_W"; then
2564  if (cygpath --version) >/dev/null 2>/dev/null; then
2565    CYGPATH_W='cygpath -w'
2566  else
2567    CYGPATH_W=echo
2568  fi
2569fi
2570
2571
2572# Define the identity of the package.
2573 PACKAGE='libXvMC'
2574 VERSION='1.0.5'
2575
2576
2577cat >>confdefs.h <<_ACEOF
2578#define PACKAGE "$PACKAGE"
2579_ACEOF
2580
2581
2582cat >>confdefs.h <<_ACEOF
2583#define VERSION "$VERSION"
2584_ACEOF
2585
2586# Some tools Automake needs.
2587
2588ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2589
2590
2591AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2592
2593
2594AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2595
2596
2597AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2598
2599
2600MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2601
2602# We need awk for the "check" target.  The system "awk" is bad on
2603# some platforms.
2604# Always define AMTAR for backward compatibility.
2605
2606AMTAR=${AMTAR-"${am_missing_run}tar"}
2607
2608am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2609
2610
2611
2612
2613
2614
2615{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2616$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2617    # Check whether --enable-maintainer-mode was given.
2618if test "${enable_maintainer_mode+set}" = set; then
2619  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2620else
2621  USE_MAINTAINER_MODE=no
2622fi
2623
2624  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2625$as_echo "$USE_MAINTAINER_MODE" >&6; }
2626   if test $USE_MAINTAINER_MODE = yes; then
2627  MAINTAINER_MODE_TRUE=
2628  MAINTAINER_MODE_FALSE='#'
2629else
2630  MAINTAINER_MODE_TRUE='#'
2631  MAINTAINER_MODE_FALSE=
2632fi
2633
2634  MAINT=$MAINTAINER_MODE_TRUE
2635
2636
2637
2638# Require xorg-macros: XORG_DEFAULT_OPTIONS, XORG_WITH_LINT
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650ac_config_headers="$ac_config_headers config.h"
2651
2652
2653# Check for progs
2654ac_ext=c
2655ac_cpp='$CPP $CPPFLAGS'
2656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659if test -n "$ac_tool_prefix"; then
2660  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2661set dummy ${ac_tool_prefix}gcc; ac_word=$2
2662{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2663$as_echo_n "checking for $ac_word... " >&6; }
2664if test "${ac_cv_prog_CC+set}" = set; then
2665  $as_echo_n "(cached) " >&6
2666else
2667  if test -n "$CC"; then
2668  ac_cv_prog_CC="$CC" # Let the user override the test.
2669else
2670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671for as_dir in $PATH
2672do
2673  IFS=$as_save_IFS
2674  test -z "$as_dir" && as_dir=.
2675  for ac_exec_ext in '' $ac_executable_extensions; do
2676  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2677    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2678    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2679    break 2
2680  fi
2681done
2682done
2683IFS=$as_save_IFS
2684
2685fi
2686fi
2687CC=$ac_cv_prog_CC
2688if test -n "$CC"; then
2689  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2690$as_echo "$CC" >&6; }
2691else
2692  { $as_echo "$as_me:$LINENO: result: no" >&5
2693$as_echo "no" >&6; }
2694fi
2695
2696
2697fi
2698if test -z "$ac_cv_prog_CC"; then
2699  ac_ct_CC=$CC
2700  # Extract the first word of "gcc", so it can be a program name with args.
2701set dummy gcc; ac_word=$2
2702{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2703$as_echo_n "checking for $ac_word... " >&6; }
2704if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2705  $as_echo_n "(cached) " >&6
2706else
2707  if test -n "$ac_ct_CC"; then
2708  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2709else
2710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711for as_dir in $PATH
2712do
2713  IFS=$as_save_IFS
2714  test -z "$as_dir" && as_dir=.
2715  for ac_exec_ext in '' $ac_executable_extensions; do
2716  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2717    ac_cv_prog_ac_ct_CC="gcc"
2718    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719    break 2
2720  fi
2721done
2722done
2723IFS=$as_save_IFS
2724
2725fi
2726fi
2727ac_ct_CC=$ac_cv_prog_ac_ct_CC
2728if test -n "$ac_ct_CC"; then
2729  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2730$as_echo "$ac_ct_CC" >&6; }
2731else
2732  { $as_echo "$as_me:$LINENO: result: no" >&5
2733$as_echo "no" >&6; }
2734fi
2735
2736  if test "x$ac_ct_CC" = x; then
2737    CC=""
2738  else
2739    case $cross_compiling:$ac_tool_warned in
2740yes:)
2741{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2743ac_tool_warned=yes ;;
2744esac
2745    CC=$ac_ct_CC
2746  fi
2747else
2748  CC="$ac_cv_prog_CC"
2749fi
2750
2751if test -z "$CC"; then
2752          if test -n "$ac_tool_prefix"; then
2753    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2754set dummy ${ac_tool_prefix}cc; ac_word=$2
2755{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2756$as_echo_n "checking for $ac_word... " >&6; }
2757if test "${ac_cv_prog_CC+set}" = set; then
2758  $as_echo_n "(cached) " >&6
2759else
2760  if test -n "$CC"; then
2761  ac_cv_prog_CC="$CC" # Let the user override the test.
2762else
2763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764for as_dir in $PATH
2765do
2766  IFS=$as_save_IFS
2767  test -z "$as_dir" && as_dir=.
2768  for ac_exec_ext in '' $ac_executable_extensions; do
2769  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2770    ac_cv_prog_CC="${ac_tool_prefix}cc"
2771    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2772    break 2
2773  fi
2774done
2775done
2776IFS=$as_save_IFS
2777
2778fi
2779fi
2780CC=$ac_cv_prog_CC
2781if test -n "$CC"; then
2782  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2783$as_echo "$CC" >&6; }
2784else
2785  { $as_echo "$as_me:$LINENO: result: no" >&5
2786$as_echo "no" >&6; }
2787fi
2788
2789
2790  fi
2791fi
2792if test -z "$CC"; then
2793  # Extract the first word of "cc", so it can be a program name with args.
2794set dummy cc; ac_word=$2
2795{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2796$as_echo_n "checking for $ac_word... " >&6; }
2797if test "${ac_cv_prog_CC+set}" = set; then
2798  $as_echo_n "(cached) " >&6
2799else
2800  if test -n "$CC"; then
2801  ac_cv_prog_CC="$CC" # Let the user override the test.
2802else
2803  ac_prog_rejected=no
2804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805for as_dir in $PATH
2806do
2807  IFS=$as_save_IFS
2808  test -z "$as_dir" && as_dir=.
2809  for ac_exec_ext in '' $ac_executable_extensions; do
2810  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2811    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2812       ac_prog_rejected=yes
2813       continue
2814     fi
2815    ac_cv_prog_CC="cc"
2816    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2817    break 2
2818  fi
2819done
2820done
2821IFS=$as_save_IFS
2822
2823if test $ac_prog_rejected = yes; then
2824  # We found a bogon in the path, so make sure we never use it.
2825  set dummy $ac_cv_prog_CC
2826  shift
2827  if test $# != 0; then
2828    # We chose a different compiler from the bogus one.
2829    # However, it has the same basename, so the bogon will be chosen
2830    # first if we set CC to just the basename; use the full file name.
2831    shift
2832    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2833  fi
2834fi
2835fi
2836fi
2837CC=$ac_cv_prog_CC
2838if test -n "$CC"; then
2839  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2840$as_echo "$CC" >&6; }
2841else
2842  { $as_echo "$as_me:$LINENO: result: no" >&5
2843$as_echo "no" >&6; }
2844fi
2845
2846
2847fi
2848if test -z "$CC"; then
2849  if test -n "$ac_tool_prefix"; then
2850  for ac_prog in cl.exe
2851  do
2852    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2853set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2854{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2855$as_echo_n "checking for $ac_word... " >&6; }
2856if test "${ac_cv_prog_CC+set}" = set; then
2857  $as_echo_n "(cached) " >&6
2858else
2859  if test -n "$CC"; then
2860  ac_cv_prog_CC="$CC" # Let the user override the test.
2861else
2862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863for as_dir in $PATH
2864do
2865  IFS=$as_save_IFS
2866  test -z "$as_dir" && as_dir=.
2867  for ac_exec_ext in '' $ac_executable_extensions; do
2868  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2869    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2870    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2871    break 2
2872  fi
2873done
2874done
2875IFS=$as_save_IFS
2876
2877fi
2878fi
2879CC=$ac_cv_prog_CC
2880if test -n "$CC"; then
2881  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2882$as_echo "$CC" >&6; }
2883else
2884  { $as_echo "$as_me:$LINENO: result: no" >&5
2885$as_echo "no" >&6; }
2886fi
2887
2888
2889    test -n "$CC" && break
2890  done
2891fi
2892if test -z "$CC"; then
2893  ac_ct_CC=$CC
2894  for ac_prog in cl.exe
2895do
2896  # Extract the first word of "$ac_prog", so it can be a program name with args.
2897set dummy $ac_prog; ac_word=$2
2898{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2899$as_echo_n "checking for $ac_word... " >&6; }
2900if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2901  $as_echo_n "(cached) " >&6
2902else
2903  if test -n "$ac_ct_CC"; then
2904  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2905else
2906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907for as_dir in $PATH
2908do
2909  IFS=$as_save_IFS
2910  test -z "$as_dir" && as_dir=.
2911  for ac_exec_ext in '' $ac_executable_extensions; do
2912  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913    ac_cv_prog_ac_ct_CC="$ac_prog"
2914    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915    break 2
2916  fi
2917done
2918done
2919IFS=$as_save_IFS
2920
2921fi
2922fi
2923ac_ct_CC=$ac_cv_prog_ac_ct_CC
2924if test -n "$ac_ct_CC"; then
2925  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2926$as_echo "$ac_ct_CC" >&6; }
2927else
2928  { $as_echo "$as_me:$LINENO: result: no" >&5
2929$as_echo "no" >&6; }
2930fi
2931
2932
2933  test -n "$ac_ct_CC" && break
2934done
2935
2936  if test "x$ac_ct_CC" = x; then
2937    CC=""
2938  else
2939    case $cross_compiling:$ac_tool_warned in
2940yes:)
2941{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2943ac_tool_warned=yes ;;
2944esac
2945    CC=$ac_ct_CC
2946  fi
2947fi
2948
2949fi
2950
2951
2952test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2954{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2955See \`config.log' for more details." >&5
2956$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2957See \`config.log' for more details." >&2;}
2958   { (exit 1); exit 1; }; }; }
2959
2960# Provide some information about the compiler.
2961$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2962set X $ac_compile
2963ac_compiler=$2
2964{ (ac_try="$ac_compiler --version >&5"
2965case "(($ac_try" in
2966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967  *) ac_try_echo=$ac_try;;
2968esac
2969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2970$as_echo "$ac_try_echo") >&5
2971  (eval "$ac_compiler --version >&5") 2>&5
2972  ac_status=$?
2973  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974  (exit $ac_status); }
2975{ (ac_try="$ac_compiler -v >&5"
2976case "(($ac_try" in
2977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978  *) ac_try_echo=$ac_try;;
2979esac
2980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2981$as_echo "$ac_try_echo") >&5
2982  (eval "$ac_compiler -v >&5") 2>&5
2983  ac_status=$?
2984  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985  (exit $ac_status); }
2986{ (ac_try="$ac_compiler -V >&5"
2987case "(($ac_try" in
2988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989  *) ac_try_echo=$ac_try;;
2990esac
2991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2992$as_echo "$ac_try_echo") >&5
2993  (eval "$ac_compiler -V >&5") 2>&5
2994  ac_status=$?
2995  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996  (exit $ac_status); }
2997
2998cat >conftest.$ac_ext <<_ACEOF
2999/* confdefs.h.  */
3000_ACEOF
3001cat confdefs.h >>conftest.$ac_ext
3002cat >>conftest.$ac_ext <<_ACEOF
3003/* end confdefs.h.  */
3004
3005int
3006main ()
3007{
3008
3009  ;
3010  return 0;
3011}
3012_ACEOF
3013ac_clean_files_save=$ac_clean_files
3014ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3015# Try to create an executable without -o first, disregard a.out.
3016# It will help us diagnose broken compilers, and finding out an intuition
3017# of exeext.
3018{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3019$as_echo_n "checking for C compiler default output file name... " >&6; }
3020ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3021
3022# The possible output files:
3023ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3024
3025ac_rmfiles=
3026for ac_file in $ac_files
3027do
3028  case $ac_file in
3029    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3030    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3031  esac
3032done
3033rm -f $ac_rmfiles
3034
3035if { (ac_try="$ac_link_default"
3036case "(($ac_try" in
3037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038  *) ac_try_echo=$ac_try;;
3039esac
3040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3041$as_echo "$ac_try_echo") >&5
3042  (eval "$ac_link_default") 2>&5
3043  ac_status=$?
3044  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045  (exit $ac_status); }; then
3046  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3047# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3048# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3049# so that the user can short-circuit this test for compilers unknown to
3050# Autoconf.
3051for ac_file in $ac_files ''
3052do
3053  test -f "$ac_file" || continue
3054  case $ac_file in
3055    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3056	;;
3057    [ab].out )
3058	# We found the default executable, but exeext='' is most
3059	# certainly right.
3060	break;;
3061    *.* )
3062        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3063	then :; else
3064	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3065	fi
3066	# We set ac_cv_exeext here because the later test for it is not
3067	# safe: cross compilers may not add the suffix if given an `-o'
3068	# argument, so we may need to know it at that point already.
3069	# Even if this section looks crufty: it has the advantage of
3070	# actually working.
3071	break;;
3072    * )
3073	break;;
3074  esac
3075done
3076test "$ac_cv_exeext" = no && ac_cv_exeext=
3077
3078else
3079  ac_file=''
3080fi
3081
3082{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3083$as_echo "$ac_file" >&6; }
3084if test -z "$ac_file"; then
3085  $as_echo "$as_me: failed program was:" >&5
3086sed 's/^/| /' conftest.$ac_ext >&5
3087
3088{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3090{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3091See \`config.log' for more details." >&5
3092$as_echo "$as_me: error: C compiler cannot create executables
3093See \`config.log' for more details." >&2;}
3094   { (exit 77); exit 77; }; }; }
3095fi
3096
3097ac_exeext=$ac_cv_exeext
3098
3099# Check that the compiler produces executables we can run.  If not, either
3100# the compiler is broken, or we cross compile.
3101{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3102$as_echo_n "checking whether the C compiler works... " >&6; }
3103# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3104# If not cross compiling, check that we can run a simple program.
3105if test "$cross_compiling" != yes; then
3106  if { ac_try='./$ac_file'
3107  { (case "(($ac_try" in
3108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109  *) ac_try_echo=$ac_try;;
3110esac
3111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3112$as_echo "$ac_try_echo") >&5
3113  (eval "$ac_try") 2>&5
3114  ac_status=$?
3115  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116  (exit $ac_status); }; }; then
3117    cross_compiling=no
3118  else
3119    if test "$cross_compiling" = maybe; then
3120	cross_compiling=yes
3121    else
3122	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3124{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3125If you meant to cross compile, use \`--host'.
3126See \`config.log' for more details." >&5
3127$as_echo "$as_me: error: cannot run C compiled programs.
3128If you meant to cross compile, use \`--host'.
3129See \`config.log' for more details." >&2;}
3130   { (exit 1); exit 1; }; }; }
3131    fi
3132  fi
3133fi
3134{ $as_echo "$as_me:$LINENO: result: yes" >&5
3135$as_echo "yes" >&6; }
3136
3137rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3138ac_clean_files=$ac_clean_files_save
3139# Check that the compiler produces executables we can run.  If not, either
3140# the compiler is broken, or we cross compile.
3141{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3142$as_echo_n "checking whether we are cross compiling... " >&6; }
3143{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3144$as_echo "$cross_compiling" >&6; }
3145
3146{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3147$as_echo_n "checking for suffix of executables... " >&6; }
3148if { (ac_try="$ac_link"
3149case "(($ac_try" in
3150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151  *) ac_try_echo=$ac_try;;
3152esac
3153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3154$as_echo "$ac_try_echo") >&5
3155  (eval "$ac_link") 2>&5
3156  ac_status=$?
3157  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158  (exit $ac_status); }; then
3159  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3160# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3161# work properly (i.e., refer to `conftest.exe'), while it won't with
3162# `rm'.
3163for ac_file in conftest.exe conftest conftest.*; do
3164  test -f "$ac_file" || continue
3165  case $ac_file in
3166    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3167    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3168	  break;;
3169    * ) break;;
3170  esac
3171done
3172else
3173  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3175{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3176See \`config.log' for more details." >&5
3177$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3178See \`config.log' for more details." >&2;}
3179   { (exit 1); exit 1; }; }; }
3180fi
3181
3182rm -f conftest$ac_cv_exeext
3183{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3184$as_echo "$ac_cv_exeext" >&6; }
3185
3186rm -f conftest.$ac_ext
3187EXEEXT=$ac_cv_exeext
3188ac_exeext=$EXEEXT
3189{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3190$as_echo_n "checking for suffix of object files... " >&6; }
3191if test "${ac_cv_objext+set}" = set; then
3192  $as_echo_n "(cached) " >&6
3193else
3194  cat >conftest.$ac_ext <<_ACEOF
3195/* confdefs.h.  */
3196_ACEOF
3197cat confdefs.h >>conftest.$ac_ext
3198cat >>conftest.$ac_ext <<_ACEOF
3199/* end confdefs.h.  */
3200
3201int
3202main ()
3203{
3204
3205  ;
3206  return 0;
3207}
3208_ACEOF
3209rm -f conftest.o conftest.obj
3210if { (ac_try="$ac_compile"
3211case "(($ac_try" in
3212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213  *) ac_try_echo=$ac_try;;
3214esac
3215eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3216$as_echo "$ac_try_echo") >&5
3217  (eval "$ac_compile") 2>&5
3218  ac_status=$?
3219  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220  (exit $ac_status); }; then
3221  for ac_file in conftest.o conftest.obj conftest.*; do
3222  test -f "$ac_file" || continue;
3223  case $ac_file in
3224    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3225    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3226       break;;
3227  esac
3228done
3229else
3230  $as_echo "$as_me: failed program was:" >&5
3231sed 's/^/| /' conftest.$ac_ext >&5
3232
3233{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3236See \`config.log' for more details." >&5
3237$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3238See \`config.log' for more details." >&2;}
3239   { (exit 1); exit 1; }; }; }
3240fi
3241
3242rm -f conftest.$ac_cv_objext conftest.$ac_ext
3243fi
3244{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3245$as_echo "$ac_cv_objext" >&6; }
3246OBJEXT=$ac_cv_objext
3247ac_objext=$OBJEXT
3248{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3249$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3250if test "${ac_cv_c_compiler_gnu+set}" = set; then
3251  $as_echo_n "(cached) " >&6
3252else
3253  cat >conftest.$ac_ext <<_ACEOF
3254/* confdefs.h.  */
3255_ACEOF
3256cat confdefs.h >>conftest.$ac_ext
3257cat >>conftest.$ac_ext <<_ACEOF
3258/* end confdefs.h.  */
3259
3260int
3261main ()
3262{
3263#ifndef __GNUC__
3264       choke me
3265#endif
3266
3267  ;
3268  return 0;
3269}
3270_ACEOF
3271rm -f conftest.$ac_objext
3272if { (ac_try="$ac_compile"
3273case "(($ac_try" in
3274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275  *) ac_try_echo=$ac_try;;
3276esac
3277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3278$as_echo "$ac_try_echo") >&5
3279  (eval "$ac_compile") 2>conftest.er1
3280  ac_status=$?
3281  grep -v '^ *+' conftest.er1 >conftest.err
3282  rm -f conftest.er1
3283  cat conftest.err >&5
3284  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285  (exit $ac_status); } && {
3286	 test -z "$ac_c_werror_flag" ||
3287	 test ! -s conftest.err
3288       } && test -s conftest.$ac_objext; then
3289  ac_compiler_gnu=yes
3290else
3291  $as_echo "$as_me: failed program was:" >&5
3292sed 's/^/| /' conftest.$ac_ext >&5
3293
3294	ac_compiler_gnu=no
3295fi
3296
3297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3298ac_cv_c_compiler_gnu=$ac_compiler_gnu
3299
3300fi
3301{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3302$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3303if test $ac_compiler_gnu = yes; then
3304  GCC=yes
3305else
3306  GCC=
3307fi
3308ac_test_CFLAGS=${CFLAGS+set}
3309ac_save_CFLAGS=$CFLAGS
3310{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3311$as_echo_n "checking whether $CC accepts -g... " >&6; }
3312if test "${ac_cv_prog_cc_g+set}" = set; then
3313  $as_echo_n "(cached) " >&6
3314else
3315  ac_save_c_werror_flag=$ac_c_werror_flag
3316   ac_c_werror_flag=yes
3317   ac_cv_prog_cc_g=no
3318   CFLAGS="-g"
3319   cat >conftest.$ac_ext <<_ACEOF
3320/* confdefs.h.  */
3321_ACEOF
3322cat confdefs.h >>conftest.$ac_ext
3323cat >>conftest.$ac_ext <<_ACEOF
3324/* end confdefs.h.  */
3325
3326int
3327main ()
3328{
3329
3330  ;
3331  return 0;
3332}
3333_ACEOF
3334rm -f conftest.$ac_objext
3335if { (ac_try="$ac_compile"
3336case "(($ac_try" in
3337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338  *) ac_try_echo=$ac_try;;
3339esac
3340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3341$as_echo "$ac_try_echo") >&5
3342  (eval "$ac_compile") 2>conftest.er1
3343  ac_status=$?
3344  grep -v '^ *+' conftest.er1 >conftest.err
3345  rm -f conftest.er1
3346  cat conftest.err >&5
3347  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348  (exit $ac_status); } && {
3349	 test -z "$ac_c_werror_flag" ||
3350	 test ! -s conftest.err
3351       } && test -s conftest.$ac_objext; then
3352  ac_cv_prog_cc_g=yes
3353else
3354  $as_echo "$as_me: failed program was:" >&5
3355sed 's/^/| /' conftest.$ac_ext >&5
3356
3357	CFLAGS=""
3358      cat >conftest.$ac_ext <<_ACEOF
3359/* confdefs.h.  */
3360_ACEOF
3361cat confdefs.h >>conftest.$ac_ext
3362cat >>conftest.$ac_ext <<_ACEOF
3363/* end confdefs.h.  */
3364
3365int
3366main ()
3367{
3368
3369  ;
3370  return 0;
3371}
3372_ACEOF
3373rm -f conftest.$ac_objext
3374if { (ac_try="$ac_compile"
3375case "(($ac_try" in
3376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377  *) ac_try_echo=$ac_try;;
3378esac
3379eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3380$as_echo "$ac_try_echo") >&5
3381  (eval "$ac_compile") 2>conftest.er1
3382  ac_status=$?
3383  grep -v '^ *+' conftest.er1 >conftest.err
3384  rm -f conftest.er1
3385  cat conftest.err >&5
3386  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387  (exit $ac_status); } && {
3388	 test -z "$ac_c_werror_flag" ||
3389	 test ! -s conftest.err
3390       } && test -s conftest.$ac_objext; then
3391  :
3392else
3393  $as_echo "$as_me: failed program was:" >&5
3394sed 's/^/| /' conftest.$ac_ext >&5
3395
3396	ac_c_werror_flag=$ac_save_c_werror_flag
3397	 CFLAGS="-g"
3398	 cat >conftest.$ac_ext <<_ACEOF
3399/* confdefs.h.  */
3400_ACEOF
3401cat confdefs.h >>conftest.$ac_ext
3402cat >>conftest.$ac_ext <<_ACEOF
3403/* end confdefs.h.  */
3404
3405int
3406main ()
3407{
3408
3409  ;
3410  return 0;
3411}
3412_ACEOF
3413rm -f conftest.$ac_objext
3414if { (ac_try="$ac_compile"
3415case "(($ac_try" in
3416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417  *) ac_try_echo=$ac_try;;
3418esac
3419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3420$as_echo "$ac_try_echo") >&5
3421  (eval "$ac_compile") 2>conftest.er1
3422  ac_status=$?
3423  grep -v '^ *+' conftest.er1 >conftest.err
3424  rm -f conftest.er1
3425  cat conftest.err >&5
3426  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427  (exit $ac_status); } && {
3428	 test -z "$ac_c_werror_flag" ||
3429	 test ! -s conftest.err
3430       } && test -s conftest.$ac_objext; then
3431  ac_cv_prog_cc_g=yes
3432else
3433  $as_echo "$as_me: failed program was:" >&5
3434sed 's/^/| /' conftest.$ac_ext >&5
3435
3436
3437fi
3438
3439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3440fi
3441
3442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3443fi
3444
3445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446   ac_c_werror_flag=$ac_save_c_werror_flag
3447fi
3448{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3449$as_echo "$ac_cv_prog_cc_g" >&6; }
3450if test "$ac_test_CFLAGS" = set; then
3451  CFLAGS=$ac_save_CFLAGS
3452elif test $ac_cv_prog_cc_g = yes; then
3453  if test "$GCC" = yes; then
3454    CFLAGS="-g -O2"
3455  else
3456    CFLAGS="-g"
3457  fi
3458else
3459  if test "$GCC" = yes; then
3460    CFLAGS="-O2"
3461  else
3462    CFLAGS=
3463  fi
3464fi
3465{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3466$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3467if test "${ac_cv_prog_cc_c89+set}" = set; then
3468  $as_echo_n "(cached) " >&6
3469else
3470  ac_cv_prog_cc_c89=no
3471ac_save_CC=$CC
3472cat >conftest.$ac_ext <<_ACEOF
3473/* confdefs.h.  */
3474_ACEOF
3475cat confdefs.h >>conftest.$ac_ext
3476cat >>conftest.$ac_ext <<_ACEOF
3477/* end confdefs.h.  */
3478#include <stdarg.h>
3479#include <stdio.h>
3480#include <sys/types.h>
3481#include <sys/stat.h>
3482/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3483struct buf { int x; };
3484FILE * (*rcsopen) (struct buf *, struct stat *, int);
3485static char *e (p, i)
3486     char **p;
3487     int i;
3488{
3489  return p[i];
3490}
3491static char *f (char * (*g) (char **, int), char **p, ...)
3492{
3493  char *s;
3494  va_list v;
3495  va_start (v,p);
3496  s = g (p, va_arg (v,int));
3497  va_end (v);
3498  return s;
3499}
3500
3501/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3502   function prototypes and stuff, but not '\xHH' hex character constants.
3503   These don't provoke an error unfortunately, instead are silently treated
3504   as 'x'.  The following induces an error, until -std is added to get
3505   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3506   array size at least.  It's necessary to write '\x00'==0 to get something
3507   that's true only with -std.  */
3508int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3509
3510/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3511   inside strings and character constants.  */
3512#define FOO(x) 'x'
3513int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3514
3515int test (int i, double x);
3516struct s1 {int (*f) (int a);};
3517struct s2 {int (*f) (double a);};
3518int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3519int argc;
3520char **argv;
3521int
3522main ()
3523{
3524return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3525  ;
3526  return 0;
3527}
3528_ACEOF
3529for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3530	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3531do
3532  CC="$ac_save_CC $ac_arg"
3533  rm -f conftest.$ac_objext
3534if { (ac_try="$ac_compile"
3535case "(($ac_try" in
3536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537  *) ac_try_echo=$ac_try;;
3538esac
3539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3540$as_echo "$ac_try_echo") >&5
3541  (eval "$ac_compile") 2>conftest.er1
3542  ac_status=$?
3543  grep -v '^ *+' conftest.er1 >conftest.err
3544  rm -f conftest.er1
3545  cat conftest.err >&5
3546  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547  (exit $ac_status); } && {
3548	 test -z "$ac_c_werror_flag" ||
3549	 test ! -s conftest.err
3550       } && test -s conftest.$ac_objext; then
3551  ac_cv_prog_cc_c89=$ac_arg
3552else
3553  $as_echo "$as_me: failed program was:" >&5
3554sed 's/^/| /' conftest.$ac_ext >&5
3555
3556
3557fi
3558
3559rm -f core conftest.err conftest.$ac_objext
3560  test "x$ac_cv_prog_cc_c89" != "xno" && break
3561done
3562rm -f conftest.$ac_ext
3563CC=$ac_save_CC
3564
3565fi
3566# AC_CACHE_VAL
3567case "x$ac_cv_prog_cc_c89" in
3568  x)
3569    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3570$as_echo "none needed" >&6; } ;;
3571  xno)
3572    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3573$as_echo "unsupported" >&6; } ;;
3574  *)
3575    CC="$CC $ac_cv_prog_cc_c89"
3576    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3577$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3578esac
3579
3580
3581ac_ext=c
3582ac_cpp='$CPP $CPPFLAGS'
3583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586DEPDIR="${am__leading_dot}deps"
3587
3588ac_config_commands="$ac_config_commands depfiles"
3589
3590
3591am_make=${MAKE-make}
3592cat > confinc << 'END'
3593am__doit:
3594	@echo this is the am__doit target
3595.PHONY: am__doit
3596END
3597# If we don't find an include directive, just comment out the code.
3598{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3599$as_echo_n "checking for style of include used by $am_make... " >&6; }
3600am__include="#"
3601am__quote=
3602_am_result=none
3603# First try GNU make style include.
3604echo "include confinc" > confmf
3605# Ignore all kinds of additional output from `make'.
3606case `$am_make -s -f confmf 2> /dev/null` in #(
3607*the\ am__doit\ target*)
3608  am__include=include
3609  am__quote=
3610  _am_result=GNU
3611  ;;
3612esac
3613# Now try BSD make style include.
3614if test "$am__include" = "#"; then
3615   echo '.include "confinc"' > confmf
3616   case `$am_make -s -f confmf 2> /dev/null` in #(
3617   *the\ am__doit\ target*)
3618     am__include=.include
3619     am__quote="\""
3620     _am_result=BSD
3621     ;;
3622   esac
3623fi
3624
3625
3626{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3627$as_echo "$_am_result" >&6; }
3628rm -f confinc confmf
3629
3630# Check whether --enable-dependency-tracking was given.
3631if test "${enable_dependency_tracking+set}" = set; then
3632  enableval=$enable_dependency_tracking;
3633fi
3634
3635if test "x$enable_dependency_tracking" != xno; then
3636  am_depcomp="$ac_aux_dir/depcomp"
3637  AMDEPBACKSLASH='\'
3638fi
3639 if test "x$enable_dependency_tracking" != xno; then
3640  AMDEP_TRUE=
3641  AMDEP_FALSE='#'
3642else
3643  AMDEP_TRUE='#'
3644  AMDEP_FALSE=
3645fi
3646
3647
3648
3649depcc="$CC"   am_compiler_list=
3650
3651{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3652$as_echo_n "checking dependency style of $depcc... " >&6; }
3653if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3654  $as_echo_n "(cached) " >&6
3655else
3656  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3657  # We make a subdir and do the tests there.  Otherwise we can end up
3658  # making bogus files that we don't know about and never remove.  For
3659  # instance it was reported that on HP-UX the gcc test will end up
3660  # making a dummy file named `D' -- because `-MD' means `put the output
3661  # in D'.
3662  mkdir conftest.dir
3663  # Copy depcomp to subdir because otherwise we won't find it if we're
3664  # using a relative directory.
3665  cp "$am_depcomp" conftest.dir
3666  cd conftest.dir
3667  # We will build objects and dependencies in a subdirectory because
3668  # it helps to detect inapplicable dependency modes.  For instance
3669  # both Tru64's cc and ICC support -MD to output dependencies as a
3670  # side effect of compilation, but ICC will put the dependencies in
3671  # the current directory while Tru64 will put them in the object
3672  # directory.
3673  mkdir sub
3674
3675  am_cv_CC_dependencies_compiler_type=none
3676  if test "$am_compiler_list" = ""; then
3677     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3678  fi
3679  am__universal=false
3680  case " $depcc " in #(
3681     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3682     esac
3683
3684  for depmode in $am_compiler_list; do
3685    # Setup a source with many dependencies, because some compilers
3686    # like to wrap large dependency lists on column 80 (with \), and
3687    # we should not choose a depcomp mode which is confused by this.
3688    #
3689    # We need to recreate these files for each test, as the compiler may
3690    # overwrite some of them when testing with obscure command lines.
3691    # This happens at least with the AIX C compiler.
3692    : > sub/conftest.c
3693    for i in 1 2 3 4 5 6; do
3694      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3695      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3696      # Solaris 8's {/usr,}/bin/sh.
3697      touch sub/conftst$i.h
3698    done
3699    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3700
3701    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3702    # mode.  It turns out that the SunPro C++ compiler does not properly
3703    # handle `-M -o', and we need to detect this.  Also, some Intel
3704    # versions had trouble with output in subdirs
3705    am__obj=sub/conftest.${OBJEXT-o}
3706    am__minus_obj="-o $am__obj"
3707    case $depmode in
3708    gcc)
3709      # This depmode causes a compiler race in universal mode.
3710      test "$am__universal" = false || continue
3711      ;;
3712    nosideeffect)
3713      # after this tag, mechanisms are not by side-effect, so they'll
3714      # only be used when explicitly requested
3715      if test "x$enable_dependency_tracking" = xyes; then
3716	continue
3717      else
3718	break
3719      fi
3720      ;;
3721    msvisualcpp | msvcmsys)
3722      # This compiler won't grok `-c -o', but also, the minuso test has
3723      # not run yet.  These depmodes are late enough in the game, and
3724      # so weak that their functioning should not be impacted.
3725      am__obj=conftest.${OBJEXT-o}
3726      am__minus_obj=
3727      ;;
3728    none) break ;;
3729    esac
3730    if depmode=$depmode \
3731       source=sub/conftest.c object=$am__obj \
3732       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3733       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3734         >/dev/null 2>conftest.err &&
3735       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3736       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3737       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3738       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3739      # icc doesn't choke on unknown options, it will just issue warnings
3740      # or remarks (even with -Werror).  So we grep stderr for any message
3741      # that says an option was ignored or not supported.
3742      # When given -MP, icc 7.0 and 7.1 complain thusly:
3743      #   icc: Command line warning: ignoring option '-M'; no argument required
3744      # The diagnosis changed in icc 8.0:
3745      #   icc: Command line remark: option '-MP' not supported
3746      if (grep 'ignoring option' conftest.err ||
3747          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3748        am_cv_CC_dependencies_compiler_type=$depmode
3749        break
3750      fi
3751    fi
3752  done
3753
3754  cd ..
3755  rm -rf conftest.dir
3756else
3757  am_cv_CC_dependencies_compiler_type=none
3758fi
3759
3760fi
3761{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3762$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3763CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3764
3765 if
3766  test "x$enable_dependency_tracking" != xno \
3767  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3768  am__fastdepCC_TRUE=
3769  am__fastdepCC_FALSE='#'
3770else
3771  am__fastdepCC_TRUE='#'
3772  am__fastdepCC_FALSE=
3773fi
3774
3775
3776# Check whether --enable-shared was given.
3777if test "${enable_shared+set}" = set; then
3778  enableval=$enable_shared; p=${PACKAGE-default}
3779    case $enableval in
3780    yes) enable_shared=yes ;;
3781    no) enable_shared=no ;;
3782    *)
3783      enable_shared=no
3784      # Look at the argument we got.  We use all the common list separators.
3785      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3786      for pkg in $enableval; do
3787	IFS="$lt_save_ifs"
3788	if test "X$pkg" = "X$p"; then
3789	  enable_shared=yes
3790	fi
3791      done
3792      IFS="$lt_save_ifs"
3793      ;;
3794    esac
3795else
3796  enable_shared=yes
3797fi
3798
3799
3800# Check whether --enable-static was given.
3801if test "${enable_static+set}" = set; then
3802  enableval=$enable_static; p=${PACKAGE-default}
3803    case $enableval in
3804    yes) enable_static=yes ;;
3805    no) enable_static=no ;;
3806    *)
3807     enable_static=no
3808      # Look at the argument we got.  We use all the common list separators.
3809      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3810      for pkg in $enableval; do
3811	IFS="$lt_save_ifs"
3812	if test "X$pkg" = "X$p"; then
3813	  enable_static=yes
3814	fi
3815      done
3816      IFS="$lt_save_ifs"
3817      ;;
3818    esac
3819else
3820  enable_static=yes
3821fi
3822
3823
3824# Check whether --enable-fast-install was given.
3825if test "${enable_fast_install+set}" = set; then
3826  enableval=$enable_fast_install; p=${PACKAGE-default}
3827    case $enableval in
3828    yes) enable_fast_install=yes ;;
3829    no) enable_fast_install=no ;;
3830    *)
3831      enable_fast_install=no
3832      # Look at the argument we got.  We use all the common list separators.
3833      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3834      for pkg in $enableval; do
3835	IFS="$lt_save_ifs"
3836	if test "X$pkg" = "X$p"; then
3837	  enable_fast_install=yes
3838	fi
3839      done
3840      IFS="$lt_save_ifs"
3841      ;;
3842    esac
3843else
3844  enable_fast_install=yes
3845fi
3846
3847
3848# Make sure we can run config.sub.
3849$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3850  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3851$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3852   { (exit 1); exit 1; }; }
3853
3854{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3855$as_echo_n "checking build system type... " >&6; }
3856if test "${ac_cv_build+set}" = set; then
3857  $as_echo_n "(cached) " >&6
3858else
3859  ac_build_alias=$build_alias
3860test "x$ac_build_alias" = x &&
3861  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3862test "x$ac_build_alias" = x &&
3863  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3864$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3865   { (exit 1); exit 1; }; }
3866ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3867  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3868$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3869   { (exit 1); exit 1; }; }
3870
3871fi
3872{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3873$as_echo "$ac_cv_build" >&6; }
3874case $ac_cv_build in
3875*-*-*) ;;
3876*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3877$as_echo "$as_me: error: invalid value of canonical build" >&2;}
3878   { (exit 1); exit 1; }; };;
3879esac
3880build=$ac_cv_build
3881ac_save_IFS=$IFS; IFS='-'
3882set x $ac_cv_build
3883shift
3884build_cpu=$1
3885build_vendor=$2
3886shift; shift
3887# Remember, the first character of IFS is used to create $*,
3888# except with old shells:
3889build_os=$*
3890IFS=$ac_save_IFS
3891case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3892
3893
3894{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3895$as_echo_n "checking host system type... " >&6; }
3896if test "${ac_cv_host+set}" = set; then
3897  $as_echo_n "(cached) " >&6
3898else
3899  if test "x$host_alias" = x; then
3900  ac_cv_host=$ac_cv_build
3901else
3902  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3903    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3904$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3905   { (exit 1); exit 1; }; }
3906fi
3907
3908fi
3909{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3910$as_echo "$ac_cv_host" >&6; }
3911case $ac_cv_host in
3912*-*-*) ;;
3913*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3914$as_echo "$as_me: error: invalid value of canonical host" >&2;}
3915   { (exit 1); exit 1; }; };;
3916esac
3917host=$ac_cv_host
3918ac_save_IFS=$IFS; IFS='-'
3919set x $ac_cv_host
3920shift
3921host_cpu=$1
3922host_vendor=$2
3923shift; shift
3924# Remember, the first character of IFS is used to create $*,
3925# except with old shells:
3926host_os=$*
3927IFS=$ac_save_IFS
3928case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3929
3930
3931{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3932$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3933if test "${lt_cv_path_SED+set}" = set; then
3934  $as_echo_n "(cached) " >&6
3935else
3936  # Loop through the user's path and test for sed and gsed.
3937# Then use that list of sed's as ones to test for truncation.
3938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939for as_dir in $PATH
3940do
3941  IFS=$as_save_IFS
3942  test -z "$as_dir" && as_dir=.
3943  for lt_ac_prog in sed gsed; do
3944    for ac_exec_ext in '' $ac_executable_extensions; do
3945      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3946        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3947      fi
3948    done
3949  done
3950done
3951IFS=$as_save_IFS
3952lt_ac_max=0
3953lt_ac_count=0
3954# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3955# along with /bin/sed that truncates output.
3956for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3957  test ! -f $lt_ac_sed && continue
3958  cat /dev/null > conftest.in
3959  lt_ac_count=0
3960  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3961  # Check for GNU sed and select it if it is found.
3962  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3963    lt_cv_path_SED=$lt_ac_sed
3964    break
3965  fi
3966  while true; do
3967    cat conftest.in conftest.in >conftest.tmp
3968    mv conftest.tmp conftest.in
3969    cp conftest.in conftest.nl
3970    echo >>conftest.nl
3971    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3972    cmp -s conftest.out conftest.nl || break
3973    # 10000 chars as input seems more than enough
3974    test $lt_ac_count -gt 10 && break
3975    lt_ac_count=`expr $lt_ac_count + 1`
3976    if test $lt_ac_count -gt $lt_ac_max; then
3977      lt_ac_max=$lt_ac_count
3978      lt_cv_path_SED=$lt_ac_sed
3979    fi
3980  done
3981done
3982
3983fi
3984
3985SED=$lt_cv_path_SED
3986
3987{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3988$as_echo "$SED" >&6; }
3989
3990{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3991$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3992if test "${ac_cv_path_GREP+set}" = set; then
3993  $as_echo_n "(cached) " >&6
3994else
3995  if test -z "$GREP"; then
3996  ac_path_GREP_found=false
3997  # Loop through the user's path and test for each of PROGNAME-LIST
3998  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4000do
4001  IFS=$as_save_IFS
4002  test -z "$as_dir" && as_dir=.
4003  for ac_prog in grep ggrep; do
4004    for ac_exec_ext in '' $ac_executable_extensions; do
4005      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4006      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4007# Check for GNU ac_path_GREP and select it if it is found.
4008  # Check for GNU $ac_path_GREP
4009case `"$ac_path_GREP" --version 2>&1` in
4010*GNU*)
4011  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4012*)
4013  ac_count=0
4014  $as_echo_n 0123456789 >"conftest.in"
4015  while :
4016  do
4017    cat "conftest.in" "conftest.in" >"conftest.tmp"
4018    mv "conftest.tmp" "conftest.in"
4019    cp "conftest.in" "conftest.nl"
4020    $as_echo 'GREP' >> "conftest.nl"
4021    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4022    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4023    ac_count=`expr $ac_count + 1`
4024    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4025      # Best one so far, save it but keep looking for a better one
4026      ac_cv_path_GREP="$ac_path_GREP"
4027      ac_path_GREP_max=$ac_count
4028    fi
4029    # 10*(2^10) chars as input seems more than enough
4030    test $ac_count -gt 10 && break
4031  done
4032  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4033esac
4034
4035      $ac_path_GREP_found && break 3
4036    done
4037  done
4038done
4039IFS=$as_save_IFS
4040  if test -z "$ac_cv_path_GREP"; then
4041    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4042$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4043   { (exit 1); exit 1; }; }
4044  fi
4045else
4046  ac_cv_path_GREP=$GREP
4047fi
4048
4049fi
4050{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4051$as_echo "$ac_cv_path_GREP" >&6; }
4052 GREP="$ac_cv_path_GREP"
4053
4054
4055{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4056$as_echo_n "checking for egrep... " >&6; }
4057if test "${ac_cv_path_EGREP+set}" = set; then
4058  $as_echo_n "(cached) " >&6
4059else
4060  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4061   then ac_cv_path_EGREP="$GREP -E"
4062   else
4063     if test -z "$EGREP"; then
4064  ac_path_EGREP_found=false
4065  # Loop through the user's path and test for each of PROGNAME-LIST
4066  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4068do
4069  IFS=$as_save_IFS
4070  test -z "$as_dir" && as_dir=.
4071  for ac_prog in egrep; do
4072    for ac_exec_ext in '' $ac_executable_extensions; do
4073      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4074      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4075# Check for GNU ac_path_EGREP and select it if it is found.
4076  # Check for GNU $ac_path_EGREP
4077case `"$ac_path_EGREP" --version 2>&1` in
4078*GNU*)
4079  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4080*)
4081  ac_count=0
4082  $as_echo_n 0123456789 >"conftest.in"
4083  while :
4084  do
4085    cat "conftest.in" "conftest.in" >"conftest.tmp"
4086    mv "conftest.tmp" "conftest.in"
4087    cp "conftest.in" "conftest.nl"
4088    $as_echo 'EGREP' >> "conftest.nl"
4089    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4090    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4091    ac_count=`expr $ac_count + 1`
4092    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4093      # Best one so far, save it but keep looking for a better one
4094      ac_cv_path_EGREP="$ac_path_EGREP"
4095      ac_path_EGREP_max=$ac_count
4096    fi
4097    # 10*(2^10) chars as input seems more than enough
4098    test $ac_count -gt 10 && break
4099  done
4100  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4101esac
4102
4103      $ac_path_EGREP_found && break 3
4104    done
4105  done
4106done
4107IFS=$as_save_IFS
4108  if test -z "$ac_cv_path_EGREP"; then
4109    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4110$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4111   { (exit 1); exit 1; }; }
4112  fi
4113else
4114  ac_cv_path_EGREP=$EGREP
4115fi
4116
4117   fi
4118fi
4119{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4120$as_echo "$ac_cv_path_EGREP" >&6; }
4121 EGREP="$ac_cv_path_EGREP"
4122
4123
4124
4125# Check whether --with-gnu-ld was given.
4126if test "${with_gnu_ld+set}" = set; then
4127  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4128else
4129  with_gnu_ld=no
4130fi
4131
4132ac_prog=ld
4133if test "$GCC" = yes; then
4134  # Check if gcc -print-prog-name=ld gives a path.
4135  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4136$as_echo_n "checking for ld used by $CC... " >&6; }
4137  case $host in
4138  *-*-mingw*)
4139    # gcc leaves a trailing carriage return which upsets mingw
4140    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4141  *)
4142    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4143  esac
4144  case $ac_prog in
4145    # Accept absolute paths.
4146    [\\/]* | ?:[\\/]*)
4147      re_direlt='/[^/][^/]*/\.\./'
4148      # Canonicalize the pathname of ld
4149      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4150      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4151	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4152      done
4153      test -z "$LD" && LD="$ac_prog"
4154      ;;
4155  "")
4156    # If it fails, then pretend we aren't using GCC.
4157    ac_prog=ld
4158    ;;
4159  *)
4160    # If it is relative, then search for the first ld in PATH.
4161    with_gnu_ld=unknown
4162    ;;
4163  esac
4164elif test "$with_gnu_ld" = yes; then
4165  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4166$as_echo_n "checking for GNU ld... " >&6; }
4167else
4168  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4169$as_echo_n "checking for non-GNU ld... " >&6; }
4170fi
4171if test "${lt_cv_path_LD+set}" = set; then
4172  $as_echo_n "(cached) " >&6
4173else
4174  if test -z "$LD"; then
4175  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4176  for ac_dir in $PATH; do
4177    IFS="$lt_save_ifs"
4178    test -z "$ac_dir" && ac_dir=.
4179    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4180      lt_cv_path_LD="$ac_dir/$ac_prog"
4181      # Check to see if the program is GNU ld.  I'd rather use --version,
4182      # but apparently some variants of GNU ld only accept -v.
4183      # Break only if it was the GNU/non-GNU ld that we prefer.
4184      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4185      *GNU* | *'with BFD'*)
4186	test "$with_gnu_ld" != no && break
4187	;;
4188      *)
4189	test "$with_gnu_ld" != yes && break
4190	;;
4191      esac
4192    fi
4193  done
4194  IFS="$lt_save_ifs"
4195else
4196  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4197fi
4198fi
4199
4200LD="$lt_cv_path_LD"
4201if test -n "$LD"; then
4202  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4203$as_echo "$LD" >&6; }
4204else
4205  { $as_echo "$as_me:$LINENO: result: no" >&5
4206$as_echo "no" >&6; }
4207fi
4208test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4209$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4210   { (exit 1); exit 1; }; }
4211{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4212$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4213if test "${lt_cv_prog_gnu_ld+set}" = set; then
4214  $as_echo_n "(cached) " >&6
4215else
4216  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4217case `$LD -v 2>&1 </dev/null` in
4218*GNU* | *'with BFD'*)
4219  lt_cv_prog_gnu_ld=yes
4220  ;;
4221*)
4222  lt_cv_prog_gnu_ld=no
4223  ;;
4224esac
4225fi
4226{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4227$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4228with_gnu_ld=$lt_cv_prog_gnu_ld
4229
4230
4231{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4232$as_echo_n "checking for $LD option to reload object files... " >&6; }
4233if test "${lt_cv_ld_reload_flag+set}" = set; then
4234  $as_echo_n "(cached) " >&6
4235else
4236  lt_cv_ld_reload_flag='-r'
4237fi
4238{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4239$as_echo "$lt_cv_ld_reload_flag" >&6; }
4240reload_flag=$lt_cv_ld_reload_flag
4241case $reload_flag in
4242"" | " "*) ;;
4243*) reload_flag=" $reload_flag" ;;
4244esac
4245reload_cmds='$LD$reload_flag -o $output$reload_objs'
4246case $host_os in
4247  darwin*)
4248    if test "$GCC" = yes; then
4249      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4250    else
4251      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4252    fi
4253    ;;
4254esac
4255
4256{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4257$as_echo_n "checking for BSD-compatible nm... " >&6; }
4258if test "${lt_cv_path_NM+set}" = set; then
4259  $as_echo_n "(cached) " >&6
4260else
4261  if test -n "$NM"; then
4262  # Let the user override the test.
4263  lt_cv_path_NM="$NM"
4264else
4265  lt_nm_to_check="${ac_tool_prefix}nm"
4266  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4267    lt_nm_to_check="$lt_nm_to_check nm"
4268  fi
4269  for lt_tmp_nm in $lt_nm_to_check; do
4270    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4271    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4272      IFS="$lt_save_ifs"
4273      test -z "$ac_dir" && ac_dir=.
4274      tmp_nm="$ac_dir/$lt_tmp_nm"
4275      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4276	# Check to see if the nm accepts a BSD-compat flag.
4277	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4278	#   nm: unknown option "B" ignored
4279	# Tru64's nm complains that /dev/null is an invalid object file
4280	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4281	*/dev/null* | *'Invalid file or object type'*)
4282	  lt_cv_path_NM="$tmp_nm -B"
4283	  break
4284	  ;;
4285	*)
4286	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4287	  */dev/null*)
4288	    lt_cv_path_NM="$tmp_nm -p"
4289	    break
4290	    ;;
4291	  *)
4292	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4293	    continue # so that we can try to find one that supports BSD flags
4294	    ;;
4295	  esac
4296	  ;;
4297	esac
4298      fi
4299    done
4300    IFS="$lt_save_ifs"
4301  done
4302  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4303fi
4304fi
4305{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4306$as_echo "$lt_cv_path_NM" >&6; }
4307NM="$lt_cv_path_NM"
4308
4309{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4310$as_echo_n "checking whether ln -s works... " >&6; }
4311LN_S=$as_ln_s
4312if test "$LN_S" = "ln -s"; then
4313  { $as_echo "$as_me:$LINENO: result: yes" >&5
4314$as_echo "yes" >&6; }
4315else
4316  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4317$as_echo "no, using $LN_S" >&6; }
4318fi
4319
4320{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4321$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4322if test "${lt_cv_deplibs_check_method+set}" = set; then
4323  $as_echo_n "(cached) " >&6
4324else
4325  lt_cv_file_magic_cmd='$MAGIC_CMD'
4326lt_cv_file_magic_test_file=
4327lt_cv_deplibs_check_method='unknown'
4328# Need to set the preceding variable on all platforms that support
4329# interlibrary dependencies.
4330# 'none' -- dependencies not supported.
4331# `unknown' -- same as none, but documents that we really don't know.
4332# 'pass_all' -- all dependencies passed with no checks.
4333# 'test_compile' -- check by making test program.
4334# 'file_magic [[regex]]' -- check by looking for files in library path
4335# which responds to the $file_magic_cmd with a given extended regex.
4336# If you have `file' or equivalent on your system and you're not sure
4337# whether `pass_all' will *always* work, you probably want this one.
4338
4339case $host_os in
4340aix[4-9]*)
4341  lt_cv_deplibs_check_method=pass_all
4342  ;;
4343
4344beos*)
4345  lt_cv_deplibs_check_method=pass_all
4346  ;;
4347
4348bsdi[45]*)
4349  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4350  lt_cv_file_magic_cmd='/usr/bin/file -L'
4351  lt_cv_file_magic_test_file=/shlib/libc.so
4352  ;;
4353
4354cygwin*)
4355  # func_win32_libid is a shell function defined in ltmain.sh
4356  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4357  lt_cv_file_magic_cmd='func_win32_libid'
4358  ;;
4359
4360mingw* | pw32*)
4361  # Base MSYS/MinGW do not provide the 'file' command needed by
4362  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4363  # unless we find 'file', for example because we are cross-compiling.
4364  if ( file / ) >/dev/null 2>&1; then
4365    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4366    lt_cv_file_magic_cmd='func_win32_libid'
4367  else
4368    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4369    lt_cv_file_magic_cmd='$OBJDUMP -f'
4370  fi
4371  ;;
4372
4373darwin* | rhapsody*)
4374  lt_cv_deplibs_check_method=pass_all
4375  ;;
4376
4377freebsd* | dragonfly*)
4378  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4379    case $host_cpu in
4380    i*86 )
4381      # Not sure whether the presence of OpenBSD here was a mistake.
4382      # Let's accept both of them until this is cleared up.
4383      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4384      lt_cv_file_magic_cmd=/usr/bin/file
4385      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4386      ;;
4387    esac
4388  else
4389    lt_cv_deplibs_check_method=pass_all
4390  fi
4391  ;;
4392
4393gnu*)
4394  lt_cv_deplibs_check_method=pass_all
4395  ;;
4396
4397hpux10.20* | hpux11*)
4398  lt_cv_file_magic_cmd=/usr/bin/file
4399  case $host_cpu in
4400  ia64*)
4401    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4402    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4403    ;;
4404  hppa*64*)
4405    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]'
4406    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4407    ;;
4408  *)
4409    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4410    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4411    ;;
4412  esac
4413  ;;
4414
4415interix[3-9]*)
4416  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4417  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4418  ;;
4419
4420irix5* | irix6* | nonstopux*)
4421  case $LD in
4422  *-32|*"-32 ") libmagic=32-bit;;
4423  *-n32|*"-n32 ") libmagic=N32;;
4424  *-64|*"-64 ") libmagic=64-bit;;
4425  *) libmagic=never-match;;
4426  esac
4427  lt_cv_deplibs_check_method=pass_all
4428  ;;
4429
4430# This must be Linux ELF.
4431linux* | k*bsd*-gnu)
4432  lt_cv_deplibs_check_method=pass_all
4433  ;;
4434
4435netbsd*)
4436  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4437    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4438  else
4439    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4440  fi
4441  ;;
4442
4443newos6*)
4444  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4445  lt_cv_file_magic_cmd=/usr/bin/file
4446  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4447  ;;
4448
4449nto-qnx*)
4450  lt_cv_deplibs_check_method=unknown
4451  ;;
4452
4453openbsd*)
4454  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4455    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4456  else
4457    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4458  fi
4459  ;;
4460
4461osf3* | osf4* | osf5*)
4462  lt_cv_deplibs_check_method=pass_all
4463  ;;
4464
4465rdos*)
4466  lt_cv_deplibs_check_method=pass_all
4467  ;;
4468
4469solaris*)
4470  lt_cv_deplibs_check_method=pass_all
4471  ;;
4472
4473sysv4 | sysv4.3*)
4474  case $host_vendor in
4475  motorola)
4476    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]'
4477    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4478    ;;
4479  ncr)
4480    lt_cv_deplibs_check_method=pass_all
4481    ;;
4482  sequent)
4483    lt_cv_file_magic_cmd='/bin/file'
4484    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4485    ;;
4486  sni)
4487    lt_cv_file_magic_cmd='/bin/file'
4488    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4489    lt_cv_file_magic_test_file=/lib/libc.so
4490    ;;
4491  siemens)
4492    lt_cv_deplibs_check_method=pass_all
4493    ;;
4494  pc)
4495    lt_cv_deplibs_check_method=pass_all
4496    ;;
4497  esac
4498  ;;
4499
4500sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4501  lt_cv_deplibs_check_method=pass_all
4502  ;;
4503esac
4504
4505fi
4506{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4507$as_echo "$lt_cv_deplibs_check_method" >&6; }
4508file_magic_cmd=$lt_cv_file_magic_cmd
4509deplibs_check_method=$lt_cv_deplibs_check_method
4510test -z "$deplibs_check_method" && deplibs_check_method=unknown
4511
4512
4513
4514
4515# If no C compiler was specified, use CC.
4516LTCC=${LTCC-"$CC"}
4517
4518# If no C compiler flags were specified, use CFLAGS.
4519LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4520
4521# Allow CC to be a program name with arguments.
4522compiler=$CC
4523
4524
4525# Check whether --enable-libtool-lock was given.
4526if test "${enable_libtool_lock+set}" = set; then
4527  enableval=$enable_libtool_lock;
4528fi
4529
4530test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4531
4532# Some flags need to be propagated to the compiler or linker for good
4533# libtool support.
4534case $host in
4535ia64-*-hpux*)
4536  # Find out which ABI we are using.
4537  echo 'int i;' > conftest.$ac_ext
4538  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539  (eval $ac_compile) 2>&5
4540  ac_status=$?
4541  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542  (exit $ac_status); }; then
4543    case `/usr/bin/file conftest.$ac_objext` in
4544    *ELF-32*)
4545      HPUX_IA64_MODE="32"
4546      ;;
4547    *ELF-64*)
4548      HPUX_IA64_MODE="64"
4549      ;;
4550    esac
4551  fi
4552  rm -rf conftest*
4553  ;;
4554*-*-irix6*)
4555  # Find out which ABI we are using.
4556  echo '#line 4556 "configure"' > conftest.$ac_ext
4557  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4558  (eval $ac_compile) 2>&5
4559  ac_status=$?
4560  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561  (exit $ac_status); }; then
4562   if test "$lt_cv_prog_gnu_ld" = yes; then
4563    case `/usr/bin/file conftest.$ac_objext` in
4564    *32-bit*)
4565      LD="${LD-ld} -melf32bsmip"
4566      ;;
4567    *N32*)
4568      LD="${LD-ld} -melf32bmipn32"
4569      ;;
4570    *64-bit*)
4571      LD="${LD-ld} -melf64bmip"
4572      ;;
4573    esac
4574   else
4575    case `/usr/bin/file conftest.$ac_objext` in
4576    *32-bit*)
4577      LD="${LD-ld} -32"
4578      ;;
4579    *N32*)
4580      LD="${LD-ld} -n32"
4581      ;;
4582    *64-bit*)
4583      LD="${LD-ld} -64"
4584      ;;
4585    esac
4586   fi
4587  fi
4588  rm -rf conftest*
4589  ;;
4590
4591x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4592s390*-*linux*|sparc*-*linux*)
4593  # Find out which ABI we are using.
4594  echo 'int i;' > conftest.$ac_ext
4595  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4596  (eval $ac_compile) 2>&5
4597  ac_status=$?
4598  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599  (exit $ac_status); }; then
4600    case `/usr/bin/file conftest.o` in
4601    *32-bit*)
4602      case $host in
4603        x86_64-*kfreebsd*-gnu)
4604          LD="${LD-ld} -m elf_i386_fbsd"
4605          ;;
4606        x86_64-*linux*)
4607          LD="${LD-ld} -m elf_i386"
4608          ;;
4609        ppc64-*linux*|powerpc64-*linux*)
4610          LD="${LD-ld} -m elf32ppclinux"
4611          ;;
4612        s390x-*linux*)
4613          LD="${LD-ld} -m elf_s390"
4614          ;;
4615        sparc64-*linux*)
4616          LD="${LD-ld} -m elf32_sparc"
4617          ;;
4618      esac
4619      ;;
4620    *64-bit*)
4621      case $host in
4622        x86_64-*kfreebsd*-gnu)
4623          LD="${LD-ld} -m elf_x86_64_fbsd"
4624          ;;
4625        x86_64-*linux*)
4626          LD="${LD-ld} -m elf_x86_64"
4627          ;;
4628        ppc*-*linux*|powerpc*-*linux*)
4629          LD="${LD-ld} -m elf64ppc"
4630          ;;
4631        s390*-*linux*)
4632          LD="${LD-ld} -m elf64_s390"
4633          ;;
4634        sparc*-*linux*)
4635          LD="${LD-ld} -m elf64_sparc"
4636          ;;
4637      esac
4638      ;;
4639    esac
4640  fi
4641  rm -rf conftest*
4642  ;;
4643
4644*-*-sco3.2v5*)
4645  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4646  SAVE_CFLAGS="$CFLAGS"
4647  CFLAGS="$CFLAGS -belf"
4648  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4649$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4650if test "${lt_cv_cc_needs_belf+set}" = set; then
4651  $as_echo_n "(cached) " >&6
4652else
4653  ac_ext=c
4654ac_cpp='$CPP $CPPFLAGS'
4655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657ac_compiler_gnu=$ac_cv_c_compiler_gnu
4658
4659     cat >conftest.$ac_ext <<_ACEOF
4660/* confdefs.h.  */
4661_ACEOF
4662cat confdefs.h >>conftest.$ac_ext
4663cat >>conftest.$ac_ext <<_ACEOF
4664/* end confdefs.h.  */
4665
4666int
4667main ()
4668{
4669
4670  ;
4671  return 0;
4672}
4673_ACEOF
4674rm -f conftest.$ac_objext conftest$ac_exeext
4675if { (ac_try="$ac_link"
4676case "(($ac_try" in
4677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678  *) ac_try_echo=$ac_try;;
4679esac
4680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4681$as_echo "$ac_try_echo") >&5
4682  (eval "$ac_link") 2>conftest.er1
4683  ac_status=$?
4684  grep -v '^ *+' conftest.er1 >conftest.err
4685  rm -f conftest.er1
4686  cat conftest.err >&5
4687  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688  (exit $ac_status); } && {
4689	 test -z "$ac_c_werror_flag" ||
4690	 test ! -s conftest.err
4691       } && test -s conftest$ac_exeext && {
4692	 test "$cross_compiling" = yes ||
4693	 $as_test_x conftest$ac_exeext
4694       }; then
4695  lt_cv_cc_needs_belf=yes
4696else
4697  $as_echo "$as_me: failed program was:" >&5
4698sed 's/^/| /' conftest.$ac_ext >&5
4699
4700	lt_cv_cc_needs_belf=no
4701fi
4702
4703rm -rf conftest.dSYM
4704rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4705      conftest$ac_exeext conftest.$ac_ext
4706     ac_ext=c
4707ac_cpp='$CPP $CPPFLAGS'
4708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4710ac_compiler_gnu=$ac_cv_c_compiler_gnu
4711
4712fi
4713{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4714$as_echo "$lt_cv_cc_needs_belf" >&6; }
4715  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4716    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4717    CFLAGS="$SAVE_CFLAGS"
4718  fi
4719  ;;
4720sparc*-*solaris*)
4721  # Find out which ABI we are using.
4722  echo 'int i;' > conftest.$ac_ext
4723  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4724  (eval $ac_compile) 2>&5
4725  ac_status=$?
4726  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727  (exit $ac_status); }; then
4728    case `/usr/bin/file conftest.o` in
4729    *64-bit*)
4730      case $lt_cv_prog_gnu_ld in
4731      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4732      *)
4733        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4734	  LD="${LD-ld} -64"
4735	fi
4736	;;
4737      esac
4738      ;;
4739    esac
4740  fi
4741  rm -rf conftest*
4742  ;;
4743
4744
4745esac
4746
4747need_locks="$enable_libtool_lock"
4748
4749
4750ac_ext=c
4751ac_cpp='$CPP $CPPFLAGS'
4752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4754ac_compiler_gnu=$ac_cv_c_compiler_gnu
4755{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4756$as_echo_n "checking how to run the C preprocessor... " >&6; }
4757# On Suns, sometimes $CPP names a directory.
4758if test -n "$CPP" && test -d "$CPP"; then
4759  CPP=
4760fi
4761if test -z "$CPP"; then
4762  if test "${ac_cv_prog_CPP+set}" = set; then
4763  $as_echo_n "(cached) " >&6
4764else
4765      # Double quotes because CPP needs to be expanded
4766    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4767    do
4768      ac_preproc_ok=false
4769for ac_c_preproc_warn_flag in '' yes
4770do
4771  # Use a header file that comes with gcc, so configuring glibc
4772  # with a fresh cross-compiler works.
4773  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4774  # <limits.h> exists even on freestanding compilers.
4775  # On the NeXT, cc -E runs the code through the compiler's parser,
4776  # not just through cpp. "Syntax error" is here to catch this case.
4777  cat >conftest.$ac_ext <<_ACEOF
4778/* confdefs.h.  */
4779_ACEOF
4780cat confdefs.h >>conftest.$ac_ext
4781cat >>conftest.$ac_ext <<_ACEOF
4782/* end confdefs.h.  */
4783#ifdef __STDC__
4784# include <limits.h>
4785#else
4786# include <assert.h>
4787#endif
4788		     Syntax error
4789_ACEOF
4790if { (ac_try="$ac_cpp conftest.$ac_ext"
4791case "(($ac_try" in
4792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793  *) ac_try_echo=$ac_try;;
4794esac
4795eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4796$as_echo "$ac_try_echo") >&5
4797  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4798  ac_status=$?
4799  grep -v '^ *+' conftest.er1 >conftest.err
4800  rm -f conftest.er1
4801  cat conftest.err >&5
4802  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803  (exit $ac_status); } >/dev/null && {
4804	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4805	 test ! -s conftest.err
4806       }; then
4807  :
4808else
4809  $as_echo "$as_me: failed program was:" >&5
4810sed 's/^/| /' conftest.$ac_ext >&5
4811
4812  # Broken: fails on valid input.
4813continue
4814fi
4815
4816rm -f conftest.err conftest.$ac_ext
4817
4818  # OK, works on sane cases.  Now check whether nonexistent headers
4819  # can be detected and how.
4820  cat >conftest.$ac_ext <<_ACEOF
4821/* confdefs.h.  */
4822_ACEOF
4823cat confdefs.h >>conftest.$ac_ext
4824cat >>conftest.$ac_ext <<_ACEOF
4825/* end confdefs.h.  */
4826#include <ac_nonexistent.h>
4827_ACEOF
4828if { (ac_try="$ac_cpp conftest.$ac_ext"
4829case "(($ac_try" in
4830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831  *) ac_try_echo=$ac_try;;
4832esac
4833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4834$as_echo "$ac_try_echo") >&5
4835  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4836  ac_status=$?
4837  grep -v '^ *+' conftest.er1 >conftest.err
4838  rm -f conftest.er1
4839  cat conftest.err >&5
4840  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841  (exit $ac_status); } >/dev/null && {
4842	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4843	 test ! -s conftest.err
4844       }; then
4845  # Broken: success on invalid input.
4846continue
4847else
4848  $as_echo "$as_me: failed program was:" >&5
4849sed 's/^/| /' conftest.$ac_ext >&5
4850
4851  # Passes both tests.
4852ac_preproc_ok=:
4853break
4854fi
4855
4856rm -f conftest.err conftest.$ac_ext
4857
4858done
4859# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4860rm -f conftest.err conftest.$ac_ext
4861if $ac_preproc_ok; then
4862  break
4863fi
4864
4865    done
4866    ac_cv_prog_CPP=$CPP
4867
4868fi
4869  CPP=$ac_cv_prog_CPP
4870else
4871  ac_cv_prog_CPP=$CPP
4872fi
4873{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4874$as_echo "$CPP" >&6; }
4875ac_preproc_ok=false
4876for ac_c_preproc_warn_flag in '' yes
4877do
4878  # Use a header file that comes with gcc, so configuring glibc
4879  # with a fresh cross-compiler works.
4880  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4881  # <limits.h> exists even on freestanding compilers.
4882  # On the NeXT, cc -E runs the code through the compiler's parser,
4883  # not just through cpp. "Syntax error" is here to catch this case.
4884  cat >conftest.$ac_ext <<_ACEOF
4885/* confdefs.h.  */
4886_ACEOF
4887cat confdefs.h >>conftest.$ac_ext
4888cat >>conftest.$ac_ext <<_ACEOF
4889/* end confdefs.h.  */
4890#ifdef __STDC__
4891# include <limits.h>
4892#else
4893# include <assert.h>
4894#endif
4895		     Syntax error
4896_ACEOF
4897if { (ac_try="$ac_cpp conftest.$ac_ext"
4898case "(($ac_try" in
4899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900  *) ac_try_echo=$ac_try;;
4901esac
4902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4903$as_echo "$ac_try_echo") >&5
4904  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4905  ac_status=$?
4906  grep -v '^ *+' conftest.er1 >conftest.err
4907  rm -f conftest.er1
4908  cat conftest.err >&5
4909  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910  (exit $ac_status); } >/dev/null && {
4911	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4912	 test ! -s conftest.err
4913       }; then
4914  :
4915else
4916  $as_echo "$as_me: failed program was:" >&5
4917sed 's/^/| /' conftest.$ac_ext >&5
4918
4919  # Broken: fails on valid input.
4920continue
4921fi
4922
4923rm -f conftest.err conftest.$ac_ext
4924
4925  # OK, works on sane cases.  Now check whether nonexistent headers
4926  # can be detected and how.
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 <ac_nonexistent.h>
4934_ACEOF
4935if { (ac_try="$ac_cpp conftest.$ac_ext"
4936case "(($ac_try" in
4937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938  *) ac_try_echo=$ac_try;;
4939esac
4940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4941$as_echo "$ac_try_echo") >&5
4942  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4943  ac_status=$?
4944  grep -v '^ *+' conftest.er1 >conftest.err
4945  rm -f conftest.er1
4946  cat conftest.err >&5
4947  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948  (exit $ac_status); } >/dev/null && {
4949	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4950	 test ! -s conftest.err
4951       }; then
4952  # Broken: success on invalid input.
4953continue
4954else
4955  $as_echo "$as_me: failed program was:" >&5
4956sed 's/^/| /' conftest.$ac_ext >&5
4957
4958  # Passes both tests.
4959ac_preproc_ok=:
4960break
4961fi
4962
4963rm -f conftest.err conftest.$ac_ext
4964
4965done
4966# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4967rm -f conftest.err conftest.$ac_ext
4968if $ac_preproc_ok; then
4969  :
4970else
4971  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4972$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4973{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4974See \`config.log' for more details." >&5
4975$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4976See \`config.log' for more details." >&2;}
4977   { (exit 1); exit 1; }; }; }
4978fi
4979
4980ac_ext=c
4981ac_cpp='$CPP $CPPFLAGS'
4982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4984ac_compiler_gnu=$ac_cv_c_compiler_gnu
4985
4986
4987{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4988$as_echo_n "checking for ANSI C header files... " >&6; }
4989if test "${ac_cv_header_stdc+set}" = set; then
4990  $as_echo_n "(cached) " >&6
4991else
4992  cat >conftest.$ac_ext <<_ACEOF
4993/* confdefs.h.  */
4994_ACEOF
4995cat confdefs.h >>conftest.$ac_ext
4996cat >>conftest.$ac_ext <<_ACEOF
4997/* end confdefs.h.  */
4998#include <stdlib.h>
4999#include <stdarg.h>
5000#include <string.h>
5001#include <float.h>
5002
5003int
5004main ()
5005{
5006
5007  ;
5008  return 0;
5009}
5010_ACEOF
5011rm -f conftest.$ac_objext
5012if { (ac_try="$ac_compile"
5013case "(($ac_try" in
5014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5015  *) ac_try_echo=$ac_try;;
5016esac
5017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5018$as_echo "$ac_try_echo") >&5
5019  (eval "$ac_compile") 2>conftest.er1
5020  ac_status=$?
5021  grep -v '^ *+' conftest.er1 >conftest.err
5022  rm -f conftest.er1
5023  cat conftest.err >&5
5024  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025  (exit $ac_status); } && {
5026	 test -z "$ac_c_werror_flag" ||
5027	 test ! -s conftest.err
5028       } && test -s conftest.$ac_objext; then
5029  ac_cv_header_stdc=yes
5030else
5031  $as_echo "$as_me: failed program was:" >&5
5032sed 's/^/| /' conftest.$ac_ext >&5
5033
5034	ac_cv_header_stdc=no
5035fi
5036
5037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5038
5039if test $ac_cv_header_stdc = yes; then
5040  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5041  cat >conftest.$ac_ext <<_ACEOF
5042/* confdefs.h.  */
5043_ACEOF
5044cat confdefs.h >>conftest.$ac_ext
5045cat >>conftest.$ac_ext <<_ACEOF
5046/* end confdefs.h.  */
5047#include <string.h>
5048
5049_ACEOF
5050if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5051  $EGREP "memchr" >/dev/null 2>&1; then
5052  :
5053else
5054  ac_cv_header_stdc=no
5055fi
5056rm -f conftest*
5057
5058fi
5059
5060if test $ac_cv_header_stdc = yes; then
5061  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5062  cat >conftest.$ac_ext <<_ACEOF
5063/* confdefs.h.  */
5064_ACEOF
5065cat confdefs.h >>conftest.$ac_ext
5066cat >>conftest.$ac_ext <<_ACEOF
5067/* end confdefs.h.  */
5068#include <stdlib.h>
5069
5070_ACEOF
5071if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5072  $EGREP "free" >/dev/null 2>&1; then
5073  :
5074else
5075  ac_cv_header_stdc=no
5076fi
5077rm -f conftest*
5078
5079fi
5080
5081if test $ac_cv_header_stdc = yes; then
5082  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5083  if test "$cross_compiling" = yes; then
5084  :
5085else
5086  cat >conftest.$ac_ext <<_ACEOF
5087/* confdefs.h.  */
5088_ACEOF
5089cat confdefs.h >>conftest.$ac_ext
5090cat >>conftest.$ac_ext <<_ACEOF
5091/* end confdefs.h.  */
5092#include <ctype.h>
5093#include <stdlib.h>
5094#if ((' ' & 0x0FF) == 0x020)
5095# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5096# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5097#else
5098# define ISLOWER(c) \
5099		   (('a' <= (c) && (c) <= 'i') \
5100		     || ('j' <= (c) && (c) <= 'r') \
5101		     || ('s' <= (c) && (c) <= 'z'))
5102# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5103#endif
5104
5105#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5106int
5107main ()
5108{
5109  int i;
5110  for (i = 0; i < 256; i++)
5111    if (XOR (islower (i), ISLOWER (i))
5112	|| toupper (i) != TOUPPER (i))
5113      return 2;
5114  return 0;
5115}
5116_ACEOF
5117rm -f conftest$ac_exeext
5118if { (ac_try="$ac_link"
5119case "(($ac_try" in
5120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5121  *) ac_try_echo=$ac_try;;
5122esac
5123eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5124$as_echo "$ac_try_echo") >&5
5125  (eval "$ac_link") 2>&5
5126  ac_status=$?
5127  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5129  { (case "(($ac_try" in
5130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131  *) ac_try_echo=$ac_try;;
5132esac
5133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5134$as_echo "$ac_try_echo") >&5
5135  (eval "$ac_try") 2>&5
5136  ac_status=$?
5137  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138  (exit $ac_status); }; }; then
5139  :
5140else
5141  $as_echo "$as_me: program exited with status $ac_status" >&5
5142$as_echo "$as_me: failed program was:" >&5
5143sed 's/^/| /' conftest.$ac_ext >&5
5144
5145( exit $ac_status )
5146ac_cv_header_stdc=no
5147fi
5148rm -rf conftest.dSYM
5149rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5150fi
5151
5152
5153fi
5154fi
5155{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5156$as_echo "$ac_cv_header_stdc" >&6; }
5157if test $ac_cv_header_stdc = yes; then
5158
5159cat >>confdefs.h <<\_ACEOF
5160#define STDC_HEADERS 1
5161_ACEOF
5162
5163fi
5164
5165# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5176		  inttypes.h stdint.h unistd.h
5177do
5178as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5179{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5180$as_echo_n "checking for $ac_header... " >&6; }
5181if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5182  $as_echo_n "(cached) " >&6
5183else
5184  cat >conftest.$ac_ext <<_ACEOF
5185/* confdefs.h.  */
5186_ACEOF
5187cat confdefs.h >>conftest.$ac_ext
5188cat >>conftest.$ac_ext <<_ACEOF
5189/* end confdefs.h.  */
5190$ac_includes_default
5191
5192#include <$ac_header>
5193_ACEOF
5194rm -f conftest.$ac_objext
5195if { (ac_try="$ac_compile"
5196case "(($ac_try" in
5197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5198  *) ac_try_echo=$ac_try;;
5199esac
5200eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5201$as_echo "$ac_try_echo") >&5
5202  (eval "$ac_compile") 2>conftest.er1
5203  ac_status=$?
5204  grep -v '^ *+' conftest.er1 >conftest.err
5205  rm -f conftest.er1
5206  cat conftest.err >&5
5207  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208  (exit $ac_status); } && {
5209	 test -z "$ac_c_werror_flag" ||
5210	 test ! -s conftest.err
5211       } && test -s conftest.$ac_objext; then
5212  eval "$as_ac_Header=yes"
5213else
5214  $as_echo "$as_me: failed program was:" >&5
5215sed 's/^/| /' conftest.$ac_ext >&5
5216
5217	eval "$as_ac_Header=no"
5218fi
5219
5220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5221fi
5222ac_res=`eval 'as_val=${'$as_ac_Header'}
5223		 $as_echo "$as_val"'`
5224	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5225$as_echo "$ac_res" >&6; }
5226as_val=`eval 'as_val=${'$as_ac_Header'}
5227		 $as_echo "$as_val"'`
5228   if test "x$as_val" = x""yes; then
5229  cat >>confdefs.h <<_ACEOF
5230#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5231_ACEOF
5232
5233fi
5234
5235done
5236
5237
5238
5239for ac_header in dlfcn.h
5240do
5241as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5243  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5244$as_echo_n "checking for $ac_header... " >&6; }
5245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5246  $as_echo_n "(cached) " >&6
5247fi
5248ac_res=`eval 'as_val=${'$as_ac_Header'}
5249		 $as_echo "$as_val"'`
5250	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5251$as_echo "$ac_res" >&6; }
5252else
5253  # Is the header compilable?
5254{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5255$as_echo_n "checking $ac_header usability... " >&6; }
5256cat >conftest.$ac_ext <<_ACEOF
5257/* confdefs.h.  */
5258_ACEOF
5259cat confdefs.h >>conftest.$ac_ext
5260cat >>conftest.$ac_ext <<_ACEOF
5261/* end confdefs.h.  */
5262$ac_includes_default
5263#include <$ac_header>
5264_ACEOF
5265rm -f conftest.$ac_objext
5266if { (ac_try="$ac_compile"
5267case "(($ac_try" in
5268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269  *) ac_try_echo=$ac_try;;
5270esac
5271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5272$as_echo "$ac_try_echo") >&5
5273  (eval "$ac_compile") 2>conftest.er1
5274  ac_status=$?
5275  grep -v '^ *+' conftest.er1 >conftest.err
5276  rm -f conftest.er1
5277  cat conftest.err >&5
5278  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279  (exit $ac_status); } && {
5280	 test -z "$ac_c_werror_flag" ||
5281	 test ! -s conftest.err
5282       } && test -s conftest.$ac_objext; then
5283  ac_header_compiler=yes
5284else
5285  $as_echo "$as_me: failed program was:" >&5
5286sed 's/^/| /' conftest.$ac_ext >&5
5287
5288	ac_header_compiler=no
5289fi
5290
5291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5293$as_echo "$ac_header_compiler" >&6; }
5294
5295# Is the header present?
5296{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5297$as_echo_n "checking $ac_header presence... " >&6; }
5298cat >conftest.$ac_ext <<_ACEOF
5299/* confdefs.h.  */
5300_ACEOF
5301cat confdefs.h >>conftest.$ac_ext
5302cat >>conftest.$ac_ext <<_ACEOF
5303/* end confdefs.h.  */
5304#include <$ac_header>
5305_ACEOF
5306if { (ac_try="$ac_cpp conftest.$ac_ext"
5307case "(($ac_try" in
5308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309  *) ac_try_echo=$ac_try;;
5310esac
5311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5312$as_echo "$ac_try_echo") >&5
5313  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5314  ac_status=$?
5315  grep -v '^ *+' conftest.er1 >conftest.err
5316  rm -f conftest.er1
5317  cat conftest.err >&5
5318  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319  (exit $ac_status); } >/dev/null && {
5320	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5321	 test ! -s conftest.err
5322       }; then
5323  ac_header_preproc=yes
5324else
5325  $as_echo "$as_me: failed program was:" >&5
5326sed 's/^/| /' conftest.$ac_ext >&5
5327
5328  ac_header_preproc=no
5329fi
5330
5331rm -f conftest.err conftest.$ac_ext
5332{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5333$as_echo "$ac_header_preproc" >&6; }
5334
5335# So?  What about this header?
5336case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5337  yes:no: )
5338    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5339$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5340    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5341$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5342    ac_header_preproc=yes
5343    ;;
5344  no:yes:* )
5345    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5346$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5347    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5348$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5349    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5350$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5351    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5352$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5353    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5354$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5355    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5356$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5357    ( cat <<\_ASBOX
5358## ---------------------------------------------------------------------- ##
5359## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5360## ---------------------------------------------------------------------- ##
5361_ASBOX
5362     ) | sed "s/^/$as_me: WARNING:     /" >&2
5363    ;;
5364esac
5365{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5366$as_echo_n "checking for $ac_header... " >&6; }
5367if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5368  $as_echo_n "(cached) " >&6
5369else
5370  eval "$as_ac_Header=\$ac_header_preproc"
5371fi
5372ac_res=`eval 'as_val=${'$as_ac_Header'}
5373		 $as_echo "$as_val"'`
5374	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5375$as_echo "$ac_res" >&6; }
5376
5377fi
5378as_val=`eval 'as_val=${'$as_ac_Header'}
5379		 $as_echo "$as_val"'`
5380   if test "x$as_val" = x""yes; then
5381  cat >>confdefs.h <<_ACEOF
5382#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5383_ACEOF
5384
5385fi
5386
5387done
5388
5389ac_ext=cpp
5390ac_cpp='$CXXCPP $CPPFLAGS'
5391ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5392ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5393ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5394if test -z "$CXX"; then
5395  if test -n "$CCC"; then
5396    CXX=$CCC
5397  else
5398    if test -n "$ac_tool_prefix"; then
5399  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5400  do
5401    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5402set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5403{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5404$as_echo_n "checking for $ac_word... " >&6; }
5405if test "${ac_cv_prog_CXX+set}" = set; then
5406  $as_echo_n "(cached) " >&6
5407else
5408  if test -n "$CXX"; then
5409  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5410else
5411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412for as_dir in $PATH
5413do
5414  IFS=$as_save_IFS
5415  test -z "$as_dir" && as_dir=.
5416  for ac_exec_ext in '' $ac_executable_extensions; do
5417  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5419    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5420    break 2
5421  fi
5422done
5423done
5424IFS=$as_save_IFS
5425
5426fi
5427fi
5428CXX=$ac_cv_prog_CXX
5429if test -n "$CXX"; then
5430  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5431$as_echo "$CXX" >&6; }
5432else
5433  { $as_echo "$as_me:$LINENO: result: no" >&5
5434$as_echo "no" >&6; }
5435fi
5436
5437
5438    test -n "$CXX" && break
5439  done
5440fi
5441if test -z "$CXX"; then
5442  ac_ct_CXX=$CXX
5443  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5444do
5445  # Extract the first word of "$ac_prog", so it can be a program name with args.
5446set dummy $ac_prog; ac_word=$2
5447{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5448$as_echo_n "checking for $ac_word... " >&6; }
5449if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5450  $as_echo_n "(cached) " >&6
5451else
5452  if test -n "$ac_ct_CXX"; then
5453  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5454else
5455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456for as_dir in $PATH
5457do
5458  IFS=$as_save_IFS
5459  test -z "$as_dir" && as_dir=.
5460  for ac_exec_ext in '' $ac_executable_extensions; do
5461  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5462    ac_cv_prog_ac_ct_CXX="$ac_prog"
5463    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5464    break 2
5465  fi
5466done
5467done
5468IFS=$as_save_IFS
5469
5470fi
5471fi
5472ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5473if test -n "$ac_ct_CXX"; then
5474  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5475$as_echo "$ac_ct_CXX" >&6; }
5476else
5477  { $as_echo "$as_me:$LINENO: result: no" >&5
5478$as_echo "no" >&6; }
5479fi
5480
5481
5482  test -n "$ac_ct_CXX" && break
5483done
5484
5485  if test "x$ac_ct_CXX" = x; then
5486    CXX="g++"
5487  else
5488    case $cross_compiling:$ac_tool_warned in
5489yes:)
5490{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5492ac_tool_warned=yes ;;
5493esac
5494    CXX=$ac_ct_CXX
5495  fi
5496fi
5497
5498  fi
5499fi
5500# Provide some information about the compiler.
5501$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5502set X $ac_compile
5503ac_compiler=$2
5504{ (ac_try="$ac_compiler --version >&5"
5505case "(($ac_try" in
5506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5507  *) ac_try_echo=$ac_try;;
5508esac
5509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5510$as_echo "$ac_try_echo") >&5
5511  (eval "$ac_compiler --version >&5") 2>&5
5512  ac_status=$?
5513  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514  (exit $ac_status); }
5515{ (ac_try="$ac_compiler -v >&5"
5516case "(($ac_try" in
5517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518  *) ac_try_echo=$ac_try;;
5519esac
5520eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5521$as_echo "$ac_try_echo") >&5
5522  (eval "$ac_compiler -v >&5") 2>&5
5523  ac_status=$?
5524  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525  (exit $ac_status); }
5526{ (ac_try="$ac_compiler -V >&5"
5527case "(($ac_try" in
5528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529  *) ac_try_echo=$ac_try;;
5530esac
5531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5532$as_echo "$ac_try_echo") >&5
5533  (eval "$ac_compiler -V >&5") 2>&5
5534  ac_status=$?
5535  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536  (exit $ac_status); }
5537
5538{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5539$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5540if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5541  $as_echo_n "(cached) " >&6
5542else
5543  cat >conftest.$ac_ext <<_ACEOF
5544/* confdefs.h.  */
5545_ACEOF
5546cat confdefs.h >>conftest.$ac_ext
5547cat >>conftest.$ac_ext <<_ACEOF
5548/* end confdefs.h.  */
5549
5550int
5551main ()
5552{
5553#ifndef __GNUC__
5554       choke me
5555#endif
5556
5557  ;
5558  return 0;
5559}
5560_ACEOF
5561rm -f conftest.$ac_objext
5562if { (ac_try="$ac_compile"
5563case "(($ac_try" in
5564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565  *) ac_try_echo=$ac_try;;
5566esac
5567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5568$as_echo "$ac_try_echo") >&5
5569  (eval "$ac_compile") 2>conftest.er1
5570  ac_status=$?
5571  grep -v '^ *+' conftest.er1 >conftest.err
5572  rm -f conftest.er1
5573  cat conftest.err >&5
5574  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575  (exit $ac_status); } && {
5576	 test -z "$ac_cxx_werror_flag" ||
5577	 test ! -s conftest.err
5578       } && test -s conftest.$ac_objext; then
5579  ac_compiler_gnu=yes
5580else
5581  $as_echo "$as_me: failed program was:" >&5
5582sed 's/^/| /' conftest.$ac_ext >&5
5583
5584	ac_compiler_gnu=no
5585fi
5586
5587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5589
5590fi
5591{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5592$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5593if test $ac_compiler_gnu = yes; then
5594  GXX=yes
5595else
5596  GXX=
5597fi
5598ac_test_CXXFLAGS=${CXXFLAGS+set}
5599ac_save_CXXFLAGS=$CXXFLAGS
5600{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5601$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5602if test "${ac_cv_prog_cxx_g+set}" = set; then
5603  $as_echo_n "(cached) " >&6
5604else
5605  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5606   ac_cxx_werror_flag=yes
5607   ac_cv_prog_cxx_g=no
5608   CXXFLAGS="-g"
5609   cat >conftest.$ac_ext <<_ACEOF
5610/* confdefs.h.  */
5611_ACEOF
5612cat confdefs.h >>conftest.$ac_ext
5613cat >>conftest.$ac_ext <<_ACEOF
5614/* end confdefs.h.  */
5615
5616int
5617main ()
5618{
5619
5620  ;
5621  return 0;
5622}
5623_ACEOF
5624rm -f conftest.$ac_objext
5625if { (ac_try="$ac_compile"
5626case "(($ac_try" in
5627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628  *) ac_try_echo=$ac_try;;
5629esac
5630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5631$as_echo "$ac_try_echo") >&5
5632  (eval "$ac_compile") 2>conftest.er1
5633  ac_status=$?
5634  grep -v '^ *+' conftest.er1 >conftest.err
5635  rm -f conftest.er1
5636  cat conftest.err >&5
5637  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638  (exit $ac_status); } && {
5639	 test -z "$ac_cxx_werror_flag" ||
5640	 test ! -s conftest.err
5641       } && test -s conftest.$ac_objext; then
5642  ac_cv_prog_cxx_g=yes
5643else
5644  $as_echo "$as_me: failed program was:" >&5
5645sed 's/^/| /' conftest.$ac_ext >&5
5646
5647	CXXFLAGS=""
5648      cat >conftest.$ac_ext <<_ACEOF
5649/* confdefs.h.  */
5650_ACEOF
5651cat confdefs.h >>conftest.$ac_ext
5652cat >>conftest.$ac_ext <<_ACEOF
5653/* end confdefs.h.  */
5654
5655int
5656main ()
5657{
5658
5659  ;
5660  return 0;
5661}
5662_ACEOF
5663rm -f conftest.$ac_objext
5664if { (ac_try="$ac_compile"
5665case "(($ac_try" in
5666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667  *) ac_try_echo=$ac_try;;
5668esac
5669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5670$as_echo "$ac_try_echo") >&5
5671  (eval "$ac_compile") 2>conftest.er1
5672  ac_status=$?
5673  grep -v '^ *+' conftest.er1 >conftest.err
5674  rm -f conftest.er1
5675  cat conftest.err >&5
5676  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677  (exit $ac_status); } && {
5678	 test -z "$ac_cxx_werror_flag" ||
5679	 test ! -s conftest.err
5680       } && test -s conftest.$ac_objext; then
5681  :
5682else
5683  $as_echo "$as_me: failed program was:" >&5
5684sed 's/^/| /' conftest.$ac_ext >&5
5685
5686	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5687	 CXXFLAGS="-g"
5688	 cat >conftest.$ac_ext <<_ACEOF
5689/* confdefs.h.  */
5690_ACEOF
5691cat confdefs.h >>conftest.$ac_ext
5692cat >>conftest.$ac_ext <<_ACEOF
5693/* end confdefs.h.  */
5694
5695int
5696main ()
5697{
5698
5699  ;
5700  return 0;
5701}
5702_ACEOF
5703rm -f conftest.$ac_objext
5704if { (ac_try="$ac_compile"
5705case "(($ac_try" in
5706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5707  *) ac_try_echo=$ac_try;;
5708esac
5709eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5710$as_echo "$ac_try_echo") >&5
5711  (eval "$ac_compile") 2>conftest.er1
5712  ac_status=$?
5713  grep -v '^ *+' conftest.er1 >conftest.err
5714  rm -f conftest.er1
5715  cat conftest.err >&5
5716  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717  (exit $ac_status); } && {
5718	 test -z "$ac_cxx_werror_flag" ||
5719	 test ! -s conftest.err
5720       } && test -s conftest.$ac_objext; then
5721  ac_cv_prog_cxx_g=yes
5722else
5723  $as_echo "$as_me: failed program was:" >&5
5724sed 's/^/| /' conftest.$ac_ext >&5
5725
5726
5727fi
5728
5729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5730fi
5731
5732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5733fi
5734
5735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5736   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5737fi
5738{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5739$as_echo "$ac_cv_prog_cxx_g" >&6; }
5740if test "$ac_test_CXXFLAGS" = set; then
5741  CXXFLAGS=$ac_save_CXXFLAGS
5742elif test $ac_cv_prog_cxx_g = yes; then
5743  if test "$GXX" = yes; then
5744    CXXFLAGS="-g -O2"
5745  else
5746    CXXFLAGS="-g"
5747  fi
5748else
5749  if test "$GXX" = yes; then
5750    CXXFLAGS="-O2"
5751  else
5752    CXXFLAGS=
5753  fi
5754fi
5755ac_ext=cpp
5756ac_cpp='$CXXCPP $CPPFLAGS'
5757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5760
5761depcc="$CXX"  am_compiler_list=
5762
5763{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5764$as_echo_n "checking dependency style of $depcc... " >&6; }
5765if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5766  $as_echo_n "(cached) " >&6
5767else
5768  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5769  # We make a subdir and do the tests there.  Otherwise we can end up
5770  # making bogus files that we don't know about and never remove.  For
5771  # instance it was reported that on HP-UX the gcc test will end up
5772  # making a dummy file named `D' -- because `-MD' means `put the output
5773  # in D'.
5774  mkdir conftest.dir
5775  # Copy depcomp to subdir because otherwise we won't find it if we're
5776  # using a relative directory.
5777  cp "$am_depcomp" conftest.dir
5778  cd conftest.dir
5779  # We will build objects and dependencies in a subdirectory because
5780  # it helps to detect inapplicable dependency modes.  For instance
5781  # both Tru64's cc and ICC support -MD to output dependencies as a
5782  # side effect of compilation, but ICC will put the dependencies in
5783  # the current directory while Tru64 will put them in the object
5784  # directory.
5785  mkdir sub
5786
5787  am_cv_CXX_dependencies_compiler_type=none
5788  if test "$am_compiler_list" = ""; then
5789     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5790  fi
5791  am__universal=false
5792  case " $depcc " in #(
5793     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5794     esac
5795
5796  for depmode in $am_compiler_list; do
5797    # Setup a source with many dependencies, because some compilers
5798    # like to wrap large dependency lists on column 80 (with \), and
5799    # we should not choose a depcomp mode which is confused by this.
5800    #
5801    # We need to recreate these files for each test, as the compiler may
5802    # overwrite some of them when testing with obscure command lines.
5803    # This happens at least with the AIX C compiler.
5804    : > sub/conftest.c
5805    for i in 1 2 3 4 5 6; do
5806      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5807      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5808      # Solaris 8's {/usr,}/bin/sh.
5809      touch sub/conftst$i.h
5810    done
5811    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5812
5813    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5814    # mode.  It turns out that the SunPro C++ compiler does not properly
5815    # handle `-M -o', and we need to detect this.  Also, some Intel
5816    # versions had trouble with output in subdirs
5817    am__obj=sub/conftest.${OBJEXT-o}
5818    am__minus_obj="-o $am__obj"
5819    case $depmode in
5820    gcc)
5821      # This depmode causes a compiler race in universal mode.
5822      test "$am__universal" = false || continue
5823      ;;
5824    nosideeffect)
5825      # after this tag, mechanisms are not by side-effect, so they'll
5826      # only be used when explicitly requested
5827      if test "x$enable_dependency_tracking" = xyes; then
5828	continue
5829      else
5830	break
5831      fi
5832      ;;
5833    msvisualcpp | msvcmsys)
5834      # This compiler won't grok `-c -o', but also, the minuso test has
5835      # not run yet.  These depmodes are late enough in the game, and
5836      # so weak that their functioning should not be impacted.
5837      am__obj=conftest.${OBJEXT-o}
5838      am__minus_obj=
5839      ;;
5840    none) break ;;
5841    esac
5842    if depmode=$depmode \
5843       source=sub/conftest.c object=$am__obj \
5844       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5845       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5846         >/dev/null 2>conftest.err &&
5847       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5848       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5849       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5850       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5851      # icc doesn't choke on unknown options, it will just issue warnings
5852      # or remarks (even with -Werror).  So we grep stderr for any message
5853      # that says an option was ignored or not supported.
5854      # When given -MP, icc 7.0 and 7.1 complain thusly:
5855      #   icc: Command line warning: ignoring option '-M'; no argument required
5856      # The diagnosis changed in icc 8.0:
5857      #   icc: Command line remark: option '-MP' not supported
5858      if (grep 'ignoring option' conftest.err ||
5859          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5860        am_cv_CXX_dependencies_compiler_type=$depmode
5861        break
5862      fi
5863    fi
5864  done
5865
5866  cd ..
5867  rm -rf conftest.dir
5868else
5869  am_cv_CXX_dependencies_compiler_type=none
5870fi
5871
5872fi
5873{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5874$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5875CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5876
5877 if
5878  test "x$enable_dependency_tracking" != xno \
5879  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5880  am__fastdepCXX_TRUE=
5881  am__fastdepCXX_FALSE='#'
5882else
5883  am__fastdepCXX_TRUE='#'
5884  am__fastdepCXX_FALSE=
5885fi
5886
5887
5888
5889
5890if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5891    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5892    (test "X$CXX" != "Xg++"))) ; then
5893  ac_ext=cpp
5894ac_cpp='$CXXCPP $CPPFLAGS'
5895ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5896ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5897ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5898{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5899$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5900if test -z "$CXXCPP"; then
5901  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5902  $as_echo_n "(cached) " >&6
5903else
5904      # Double quotes because CXXCPP needs to be expanded
5905    for CXXCPP in "$CXX -E" "/lib/cpp"
5906    do
5907      ac_preproc_ok=false
5908for ac_cxx_preproc_warn_flag in '' yes
5909do
5910  # Use a header file that comes with gcc, so configuring glibc
5911  # with a fresh cross-compiler works.
5912  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5913  # <limits.h> exists even on freestanding compilers.
5914  # On the NeXT, cc -E runs the code through the compiler's parser,
5915  # not just through cpp. "Syntax error" is here to catch this case.
5916  cat >conftest.$ac_ext <<_ACEOF
5917/* confdefs.h.  */
5918_ACEOF
5919cat confdefs.h >>conftest.$ac_ext
5920cat >>conftest.$ac_ext <<_ACEOF
5921/* end confdefs.h.  */
5922#ifdef __STDC__
5923# include <limits.h>
5924#else
5925# include <assert.h>
5926#endif
5927		     Syntax error
5928_ACEOF
5929if { (ac_try="$ac_cpp conftest.$ac_ext"
5930case "(($ac_try" in
5931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932  *) ac_try_echo=$ac_try;;
5933esac
5934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5935$as_echo "$ac_try_echo") >&5
5936  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5937  ac_status=$?
5938  grep -v '^ *+' conftest.er1 >conftest.err
5939  rm -f conftest.er1
5940  cat conftest.err >&5
5941  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942  (exit $ac_status); } >/dev/null && {
5943	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5944	 test ! -s conftest.err
5945       }; then
5946  :
5947else
5948  $as_echo "$as_me: failed program was:" >&5
5949sed 's/^/| /' conftest.$ac_ext >&5
5950
5951  # Broken: fails on valid input.
5952continue
5953fi
5954
5955rm -f conftest.err conftest.$ac_ext
5956
5957  # OK, works on sane cases.  Now check whether nonexistent headers
5958  # can be detected and how.
5959  cat >conftest.$ac_ext <<_ACEOF
5960/* confdefs.h.  */
5961_ACEOF
5962cat confdefs.h >>conftest.$ac_ext
5963cat >>conftest.$ac_ext <<_ACEOF
5964/* end confdefs.h.  */
5965#include <ac_nonexistent.h>
5966_ACEOF
5967if { (ac_try="$ac_cpp conftest.$ac_ext"
5968case "(($ac_try" in
5969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5970  *) ac_try_echo=$ac_try;;
5971esac
5972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5973$as_echo "$ac_try_echo") >&5
5974  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5975  ac_status=$?
5976  grep -v '^ *+' conftest.er1 >conftest.err
5977  rm -f conftest.er1
5978  cat conftest.err >&5
5979  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980  (exit $ac_status); } >/dev/null && {
5981	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5982	 test ! -s conftest.err
5983       }; then
5984  # Broken: success on invalid input.
5985continue
5986else
5987  $as_echo "$as_me: failed program was:" >&5
5988sed 's/^/| /' conftest.$ac_ext >&5
5989
5990  # Passes both tests.
5991ac_preproc_ok=:
5992break
5993fi
5994
5995rm -f conftest.err conftest.$ac_ext
5996
5997done
5998# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5999rm -f conftest.err conftest.$ac_ext
6000if $ac_preproc_ok; then
6001  break
6002fi
6003
6004    done
6005    ac_cv_prog_CXXCPP=$CXXCPP
6006
6007fi
6008  CXXCPP=$ac_cv_prog_CXXCPP
6009else
6010  ac_cv_prog_CXXCPP=$CXXCPP
6011fi
6012{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6013$as_echo "$CXXCPP" >&6; }
6014ac_preproc_ok=false
6015for ac_cxx_preproc_warn_flag in '' yes
6016do
6017  # Use a header file that comes with gcc, so configuring glibc
6018  # with a fresh cross-compiler works.
6019  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6020  # <limits.h> exists even on freestanding compilers.
6021  # On the NeXT, cc -E runs the code through the compiler's parser,
6022  # not just through cpp. "Syntax error" is here to catch this case.
6023  cat >conftest.$ac_ext <<_ACEOF
6024/* confdefs.h.  */
6025_ACEOF
6026cat confdefs.h >>conftest.$ac_ext
6027cat >>conftest.$ac_ext <<_ACEOF
6028/* end confdefs.h.  */
6029#ifdef __STDC__
6030# include <limits.h>
6031#else
6032# include <assert.h>
6033#endif
6034		     Syntax error
6035_ACEOF
6036if { (ac_try="$ac_cpp conftest.$ac_ext"
6037case "(($ac_try" in
6038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6039  *) ac_try_echo=$ac_try;;
6040esac
6041eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6042$as_echo "$ac_try_echo") >&5
6043  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6044  ac_status=$?
6045  grep -v '^ *+' conftest.er1 >conftest.err
6046  rm -f conftest.er1
6047  cat conftest.err >&5
6048  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049  (exit $ac_status); } >/dev/null && {
6050	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6051	 test ! -s conftest.err
6052       }; then
6053  :
6054else
6055  $as_echo "$as_me: failed program was:" >&5
6056sed 's/^/| /' conftest.$ac_ext >&5
6057
6058  # Broken: fails on valid input.
6059continue
6060fi
6061
6062rm -f conftest.err conftest.$ac_ext
6063
6064  # OK, works on sane cases.  Now check whether nonexistent headers
6065  # can be detected and how.
6066  cat >conftest.$ac_ext <<_ACEOF
6067/* confdefs.h.  */
6068_ACEOF
6069cat confdefs.h >>conftest.$ac_ext
6070cat >>conftest.$ac_ext <<_ACEOF
6071/* end confdefs.h.  */
6072#include <ac_nonexistent.h>
6073_ACEOF
6074if { (ac_try="$ac_cpp conftest.$ac_ext"
6075case "(($ac_try" in
6076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077  *) ac_try_echo=$ac_try;;
6078esac
6079eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6080$as_echo "$ac_try_echo") >&5
6081  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6082  ac_status=$?
6083  grep -v '^ *+' conftest.er1 >conftest.err
6084  rm -f conftest.er1
6085  cat conftest.err >&5
6086  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087  (exit $ac_status); } >/dev/null && {
6088	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6089	 test ! -s conftest.err
6090       }; then
6091  # Broken: success on invalid input.
6092continue
6093else
6094  $as_echo "$as_me: failed program was:" >&5
6095sed 's/^/| /' conftest.$ac_ext >&5
6096
6097  # Passes both tests.
6098ac_preproc_ok=:
6099break
6100fi
6101
6102rm -f conftest.err conftest.$ac_ext
6103
6104done
6105# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6106rm -f conftest.err conftest.$ac_ext
6107if $ac_preproc_ok; then
6108  :
6109else
6110  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6111$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6112{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6113See \`config.log' for more details." >&5
6114$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6115See \`config.log' for more details." >&2;}
6116   { (exit 1); exit 1; }; }; }
6117fi
6118
6119ac_ext=cpp
6120ac_cpp='$CXXCPP $CPPFLAGS'
6121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6124
6125fi
6126
6127
6128ac_ext=f
6129ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6130ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6131ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6132if test -n "$ac_tool_prefix"; then
6133  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
6134  do
6135    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6136set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6137{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6138$as_echo_n "checking for $ac_word... " >&6; }
6139if test "${ac_cv_prog_F77+set}" = set; then
6140  $as_echo_n "(cached) " >&6
6141else
6142  if test -n "$F77"; then
6143  ac_cv_prog_F77="$F77" # Let the user override the test.
6144else
6145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146for as_dir in $PATH
6147do
6148  IFS=$as_save_IFS
6149  test -z "$as_dir" && as_dir=.
6150  for ac_exec_ext in '' $ac_executable_extensions; do
6151  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6152    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6153    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6154    break 2
6155  fi
6156done
6157done
6158IFS=$as_save_IFS
6159
6160fi
6161fi
6162F77=$ac_cv_prog_F77
6163if test -n "$F77"; then
6164  { $as_echo "$as_me:$LINENO: result: $F77" >&5
6165$as_echo "$F77" >&6; }
6166else
6167  { $as_echo "$as_me:$LINENO: result: no" >&5
6168$as_echo "no" >&6; }
6169fi
6170
6171
6172    test -n "$F77" && break
6173  done
6174fi
6175if test -z "$F77"; then
6176  ac_ct_F77=$F77
6177  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
6178do
6179  # Extract the first word of "$ac_prog", so it can be a program name with args.
6180set dummy $ac_prog; ac_word=$2
6181{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6182$as_echo_n "checking for $ac_word... " >&6; }
6183if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6184  $as_echo_n "(cached) " >&6
6185else
6186  if test -n "$ac_ct_F77"; then
6187  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6188else
6189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190for as_dir in $PATH
6191do
6192  IFS=$as_save_IFS
6193  test -z "$as_dir" && as_dir=.
6194  for ac_exec_ext in '' $ac_executable_extensions; do
6195  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6196    ac_cv_prog_ac_ct_F77="$ac_prog"
6197    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6198    break 2
6199  fi
6200done
6201done
6202IFS=$as_save_IFS
6203
6204fi
6205fi
6206ac_ct_F77=$ac_cv_prog_ac_ct_F77
6207if test -n "$ac_ct_F77"; then
6208  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6209$as_echo "$ac_ct_F77" >&6; }
6210else
6211  { $as_echo "$as_me:$LINENO: result: no" >&5
6212$as_echo "no" >&6; }
6213fi
6214
6215
6216  test -n "$ac_ct_F77" && break
6217done
6218
6219  if test "x$ac_ct_F77" = x; then
6220    F77=""
6221  else
6222    case $cross_compiling:$ac_tool_warned in
6223yes:)
6224{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6226ac_tool_warned=yes ;;
6227esac
6228    F77=$ac_ct_F77
6229  fi
6230fi
6231
6232
6233# Provide some information about the compiler.
6234$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6235set X $ac_compile
6236ac_compiler=$2
6237{ (ac_try="$ac_compiler --version >&5"
6238case "(($ac_try" in
6239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240  *) ac_try_echo=$ac_try;;
6241esac
6242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6243$as_echo "$ac_try_echo") >&5
6244  (eval "$ac_compiler --version >&5") 2>&5
6245  ac_status=$?
6246  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247  (exit $ac_status); }
6248{ (ac_try="$ac_compiler -v >&5"
6249case "(($ac_try" in
6250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251  *) ac_try_echo=$ac_try;;
6252esac
6253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6254$as_echo "$ac_try_echo") >&5
6255  (eval "$ac_compiler -v >&5") 2>&5
6256  ac_status=$?
6257  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258  (exit $ac_status); }
6259{ (ac_try="$ac_compiler -V >&5"
6260case "(($ac_try" in
6261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262  *) ac_try_echo=$ac_try;;
6263esac
6264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6265$as_echo "$ac_try_echo") >&5
6266  (eval "$ac_compiler -V >&5") 2>&5
6267  ac_status=$?
6268  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269  (exit $ac_status); }
6270rm -f a.out
6271
6272# If we don't use `.F' as extension, the preprocessor is not run on the
6273# input file.  (Note that this only needs to work for GNU compilers.)
6274ac_save_ext=$ac_ext
6275ac_ext=F
6276{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6277$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6278if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6279  $as_echo_n "(cached) " >&6
6280else
6281  cat >conftest.$ac_ext <<_ACEOF
6282      program main
6283#ifndef __GNUC__
6284       choke me
6285#endif
6286
6287      end
6288_ACEOF
6289rm -f conftest.$ac_objext
6290if { (ac_try="$ac_compile"
6291case "(($ac_try" in
6292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6293  *) ac_try_echo=$ac_try;;
6294esac
6295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6296$as_echo "$ac_try_echo") >&5
6297  (eval "$ac_compile") 2>conftest.er1
6298  ac_status=$?
6299  grep -v '^ *+' conftest.er1 >conftest.err
6300  rm -f conftest.er1
6301  cat conftest.err >&5
6302  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303  (exit $ac_status); } && {
6304	 test -z "$ac_f77_werror_flag" ||
6305	 test ! -s conftest.err
6306       } && test -s conftest.$ac_objext; then
6307  ac_compiler_gnu=yes
6308else
6309  $as_echo "$as_me: failed program was:" >&5
6310sed 's/^/| /' conftest.$ac_ext >&5
6311
6312	ac_compiler_gnu=no
6313fi
6314
6315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6316ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6317
6318fi
6319{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6320$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6321ac_ext=$ac_save_ext
6322ac_test_FFLAGS=${FFLAGS+set}
6323ac_save_FFLAGS=$FFLAGS
6324FFLAGS=
6325{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6326$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6327if test "${ac_cv_prog_f77_g+set}" = set; then
6328  $as_echo_n "(cached) " >&6
6329else
6330  FFLAGS=-g
6331cat >conftest.$ac_ext <<_ACEOF
6332      program main
6333
6334      end
6335_ACEOF
6336rm -f conftest.$ac_objext
6337if { (ac_try="$ac_compile"
6338case "(($ac_try" in
6339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340  *) ac_try_echo=$ac_try;;
6341esac
6342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6343$as_echo "$ac_try_echo") >&5
6344  (eval "$ac_compile") 2>conftest.er1
6345  ac_status=$?
6346  grep -v '^ *+' conftest.er1 >conftest.err
6347  rm -f conftest.er1
6348  cat conftest.err >&5
6349  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350  (exit $ac_status); } && {
6351	 test -z "$ac_f77_werror_flag" ||
6352	 test ! -s conftest.err
6353       } && test -s conftest.$ac_objext; then
6354  ac_cv_prog_f77_g=yes
6355else
6356  $as_echo "$as_me: failed program was:" >&5
6357sed 's/^/| /' conftest.$ac_ext >&5
6358
6359	ac_cv_prog_f77_g=no
6360fi
6361
6362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363
6364fi
6365{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6366$as_echo "$ac_cv_prog_f77_g" >&6; }
6367if test "$ac_test_FFLAGS" = set; then
6368  FFLAGS=$ac_save_FFLAGS
6369elif test $ac_cv_prog_f77_g = yes; then
6370  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6371    FFLAGS="-g -O2"
6372  else
6373    FFLAGS="-g"
6374  fi
6375else
6376  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6377    FFLAGS="-O2"
6378  else
6379    FFLAGS=
6380  fi
6381fi
6382
6383if test $ac_compiler_gnu = yes; then
6384  G77=yes
6385else
6386  G77=
6387fi
6388ac_ext=c
6389ac_cpp='$CPP $CPPFLAGS'
6390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6392ac_compiler_gnu=$ac_cv_c_compiler_gnu
6393
6394
6395
6396# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6397# find the maximum length of command line arguments
6398{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6399$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6400if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6401  $as_echo_n "(cached) " >&6
6402else
6403    i=0
6404  teststring="ABCD"
6405
6406  case $build_os in
6407  msdosdjgpp*)
6408    # On DJGPP, this test can blow up pretty badly due to problems in libc
6409    # (any single argument exceeding 2000 bytes causes a buffer overrun
6410    # during glob expansion).  Even if it were fixed, the result of this
6411    # check would be larger than it should be.
6412    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6413    ;;
6414
6415  gnu*)
6416    # Under GNU Hurd, this test is not required because there is
6417    # no limit to the length of command line arguments.
6418    # Libtool will interpret -1 as no limit whatsoever
6419    lt_cv_sys_max_cmd_len=-1;
6420    ;;
6421
6422  cygwin* | mingw*)
6423    # On Win9x/ME, this test blows up -- it succeeds, but takes
6424    # about 5 minutes as the teststring grows exponentially.
6425    # Worse, since 9x/ME are not pre-emptively multitasking,
6426    # you end up with a "frozen" computer, even though with patience
6427    # the test eventually succeeds (with a max line length of 256k).
6428    # Instead, let's just punt: use the minimum linelength reported by
6429    # all of the supported platforms: 8192 (on NT/2K/XP).
6430    lt_cv_sys_max_cmd_len=8192;
6431    ;;
6432
6433  amigaos*)
6434    # On AmigaOS with pdksh, this test takes hours, literally.
6435    # So we just punt and use a minimum line length of 8192.
6436    lt_cv_sys_max_cmd_len=8192;
6437    ;;
6438
6439  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6440    # This has been around since 386BSD, at least.  Likely further.
6441    if test -x /sbin/sysctl; then
6442      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6443    elif test -x /usr/sbin/sysctl; then
6444      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6445    else
6446      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6447    fi
6448    # And add a safety zone
6449    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6450    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6451    ;;
6452
6453  interix*)
6454    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6455    lt_cv_sys_max_cmd_len=196608
6456    ;;
6457
6458  osf*)
6459    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6460    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6461    # nice to cause kernel panics so lets avoid the loop below.
6462    # First set a reasonable default.
6463    lt_cv_sys_max_cmd_len=16384
6464    #
6465    if test -x /sbin/sysconfig; then
6466      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6467        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6468      esac
6469    fi
6470    ;;
6471  sco3.2v5*)
6472    lt_cv_sys_max_cmd_len=102400
6473    ;;
6474  sysv5* | sco5v6* | sysv4.2uw2*)
6475    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6476    if test -n "$kargmax"; then
6477      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6478    else
6479      lt_cv_sys_max_cmd_len=32768
6480    fi
6481    ;;
6482  *)
6483    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6484    if test -n "$lt_cv_sys_max_cmd_len"; then
6485      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6486      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6487    else
6488      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6489      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6490	       = "XX$teststring") >/dev/null 2>&1 &&
6491	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6492	      lt_cv_sys_max_cmd_len=$new_result &&
6493	      test $i != 17 # 1/2 MB should be enough
6494      do
6495        i=`expr $i + 1`
6496        teststring=$teststring$teststring
6497      done
6498      teststring=
6499      # Add a significant safety factor because C++ compilers can tack on massive
6500      # amounts of additional arguments before passing them to the linker.
6501      # It appears as though 1/2 is a usable value.
6502      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6503    fi
6504    ;;
6505  esac
6506
6507fi
6508
6509if test -n $lt_cv_sys_max_cmd_len ; then
6510  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6511$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6512else
6513  { $as_echo "$as_me:$LINENO: result: none" >&5
6514$as_echo "none" >&6; }
6515fi
6516
6517
6518
6519
6520
6521# Check for command to grab the raw symbol name followed by C symbol from nm.
6522{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6523$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6524if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6525  $as_echo_n "(cached) " >&6
6526else
6527
6528# These are sane defaults that work on at least a few old systems.
6529# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6530
6531# Character class describing NM global symbol codes.
6532symcode='[BCDEGRST]'
6533
6534# Regexp to match symbols that can be accessed directly from C.
6535sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6536
6537# Transform an extracted symbol line into a proper C declaration
6538lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6539
6540# Transform an extracted symbol line into symbol name and symbol address
6541lt_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'"
6542
6543# Define system-specific variables.
6544case $host_os in
6545aix*)
6546  symcode='[BCDT]'
6547  ;;
6548cygwin* | mingw* | pw32*)
6549  symcode='[ABCDGISTW]'
6550  ;;
6551hpux*) # Its linker distinguishes data from code symbols
6552  if test "$host_cpu" = ia64; then
6553    symcode='[ABCDEGRST]'
6554  fi
6555  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6556  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'"
6557  ;;
6558linux* | k*bsd*-gnu)
6559  if test "$host_cpu" = ia64; then
6560    symcode='[ABCDGIRSTW]'
6561    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6562    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'"
6563  fi
6564  ;;
6565irix* | nonstopux*)
6566  symcode='[BCDEGRST]'
6567  ;;
6568osf*)
6569  symcode='[BCDEGQRST]'
6570  ;;
6571solaris*)
6572  symcode='[BDRT]'
6573  ;;
6574sco3.2v5*)
6575  symcode='[DT]'
6576  ;;
6577sysv4.2uw2*)
6578  symcode='[DT]'
6579  ;;
6580sysv5* | sco5v6* | unixware* | OpenUNIX*)
6581  symcode='[ABDT]'
6582  ;;
6583sysv4)
6584  symcode='[DFNSTU]'
6585  ;;
6586esac
6587
6588# Handle CRLF in mingw tool chain
6589opt_cr=
6590case $build_os in
6591mingw*)
6592  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6593  ;;
6594esac
6595
6596# If we're using GNU nm, then use its standard symbol codes.
6597case `$NM -V 2>&1` in
6598*GNU* | *'with BFD'*)
6599  symcode='[ABCDGIRSTW]' ;;
6600esac
6601
6602# Try without a prefix undercore, then with it.
6603for ac_symprfx in "" "_"; do
6604
6605  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6606  symxfrm="\\1 $ac_symprfx\\2 \\2"
6607
6608  # Write the raw and C identifiers.
6609  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6610
6611  # Check to see that the pipe works correctly.
6612  pipe_works=no
6613
6614  rm -f conftest*
6615  cat > conftest.$ac_ext <<EOF
6616#ifdef __cplusplus
6617extern "C" {
6618#endif
6619char nm_test_var;
6620void nm_test_func(){}
6621#ifdef __cplusplus
6622}
6623#endif
6624int main(){nm_test_var='a';nm_test_func();return(0);}
6625EOF
6626
6627  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6628  (eval $ac_compile) 2>&5
6629  ac_status=$?
6630  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631  (exit $ac_status); }; then
6632    # Now try to grab the symbols.
6633    nlist=conftest.nm
6634    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6635  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6636  ac_status=$?
6637  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638  (exit $ac_status); } && test -s "$nlist"; then
6639      # Try sorting and uniquifying the output.
6640      if sort "$nlist" | uniq > "$nlist"T; then
6641	mv -f "$nlist"T "$nlist"
6642      else
6643	rm -f "$nlist"T
6644      fi
6645
6646      # Make sure that we snagged all the symbols we need.
6647      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6648	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6649	  cat <<EOF > conftest.$ac_ext
6650#ifdef __cplusplus
6651extern "C" {
6652#endif
6653
6654EOF
6655	  # Now generate the symbol file.
6656	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6657
6658	  cat <<EOF >> conftest.$ac_ext
6659#if defined (__STDC__) && __STDC__
6660# define lt_ptr_t void *
6661#else
6662# define lt_ptr_t char *
6663# define const
6664#endif
6665
6666/* The mapping between symbol names and symbols. */
6667const struct {
6668  const char *name;
6669  lt_ptr_t address;
6670}
6671lt_preloaded_symbols[] =
6672{
6673EOF
6674	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6675	  cat <<\EOF >> conftest.$ac_ext
6676  {0, (lt_ptr_t) 0}
6677};
6678
6679#ifdef __cplusplus
6680}
6681#endif
6682EOF
6683	  # Now try linking the two files.
6684	  mv conftest.$ac_objext conftstm.$ac_objext
6685	  lt_save_LIBS="$LIBS"
6686	  lt_save_CFLAGS="$CFLAGS"
6687	  LIBS="conftstm.$ac_objext"
6688	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6689	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6690  (eval $ac_link) 2>&5
6691  ac_status=$?
6692  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6694	    pipe_works=yes
6695	  fi
6696	  LIBS="$lt_save_LIBS"
6697	  CFLAGS="$lt_save_CFLAGS"
6698	else
6699	  echo "cannot find nm_test_func in $nlist" >&5
6700	fi
6701      else
6702	echo "cannot find nm_test_var in $nlist" >&5
6703      fi
6704    else
6705      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6706    fi
6707  else
6708    echo "$progname: failed program was:" >&5
6709    cat conftest.$ac_ext >&5
6710  fi
6711  rm -rf conftest* conftst*
6712
6713  # Do not use the global_symbol_pipe unless it works.
6714  if test "$pipe_works" = yes; then
6715    break
6716  else
6717    lt_cv_sys_global_symbol_pipe=
6718  fi
6719done
6720
6721fi
6722
6723if test -z "$lt_cv_sys_global_symbol_pipe"; then
6724  lt_cv_sys_global_symbol_to_cdecl=
6725fi
6726if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6727  { $as_echo "$as_me:$LINENO: result: failed" >&5
6728$as_echo "failed" >&6; }
6729else
6730  { $as_echo "$as_me:$LINENO: result: ok" >&5
6731$as_echo "ok" >&6; }
6732fi
6733
6734{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6735$as_echo_n "checking for objdir... " >&6; }
6736if test "${lt_cv_objdir+set}" = set; then
6737  $as_echo_n "(cached) " >&6
6738else
6739  rm -f .libs 2>/dev/null
6740mkdir .libs 2>/dev/null
6741if test -d .libs; then
6742  lt_cv_objdir=.libs
6743else
6744  # MS-DOS does not allow filenames that begin with a dot.
6745  lt_cv_objdir=_libs
6746fi
6747rmdir .libs 2>/dev/null
6748fi
6749{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6750$as_echo "$lt_cv_objdir" >&6; }
6751objdir=$lt_cv_objdir
6752
6753
6754
6755
6756
6757case $host_os in
6758aix3*)
6759  # AIX sometimes has problems with the GCC collect2 program.  For some
6760  # reason, if we set the COLLECT_NAMES environment variable, the problems
6761  # vanish in a puff of smoke.
6762  if test "X${COLLECT_NAMES+set}" != Xset; then
6763    COLLECT_NAMES=
6764    export COLLECT_NAMES
6765  fi
6766  ;;
6767esac
6768
6769# Sed substitution that helps us do robust quoting.  It backslashifies
6770# metacharacters that are still active within double-quoted strings.
6771Xsed='sed -e 1s/^X//'
6772sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6773
6774# Same as above, but do not quote variable references.
6775double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6776
6777# Sed substitution to delay expansion of an escaped shell variable in a
6778# double_quote_subst'ed string.
6779delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6780
6781# Sed substitution to avoid accidental globbing in evaled expressions
6782no_glob_subst='s/\*/\\\*/g'
6783
6784# Constants:
6785rm="rm -f"
6786
6787# Global variables:
6788default_ofile=libtool
6789can_build_shared=yes
6790
6791# All known linkers require a `.a' archive for static linking (except MSVC,
6792# which needs '.lib').
6793libext=a
6794ltmain="$ac_aux_dir/ltmain.sh"
6795ofile="$default_ofile"
6796with_gnu_ld="$lt_cv_prog_gnu_ld"
6797
6798if test -n "$ac_tool_prefix"; then
6799  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6800set dummy ${ac_tool_prefix}ar; ac_word=$2
6801{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6802$as_echo_n "checking for $ac_word... " >&6; }
6803if test "${ac_cv_prog_AR+set}" = set; then
6804  $as_echo_n "(cached) " >&6
6805else
6806  if test -n "$AR"; then
6807  ac_cv_prog_AR="$AR" # Let the user override the test.
6808else
6809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810for as_dir in $PATH
6811do
6812  IFS=$as_save_IFS
6813  test -z "$as_dir" && as_dir=.
6814  for ac_exec_ext in '' $ac_executable_extensions; do
6815  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6816    ac_cv_prog_AR="${ac_tool_prefix}ar"
6817    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6818    break 2
6819  fi
6820done
6821done
6822IFS=$as_save_IFS
6823
6824fi
6825fi
6826AR=$ac_cv_prog_AR
6827if test -n "$AR"; then
6828  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6829$as_echo "$AR" >&6; }
6830else
6831  { $as_echo "$as_me:$LINENO: result: no" >&5
6832$as_echo "no" >&6; }
6833fi
6834
6835
6836fi
6837if test -z "$ac_cv_prog_AR"; then
6838  ac_ct_AR=$AR
6839  # Extract the first word of "ar", so it can be a program name with args.
6840set dummy ar; ac_word=$2
6841{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6842$as_echo_n "checking for $ac_word... " >&6; }
6843if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6844  $as_echo_n "(cached) " >&6
6845else
6846  if test -n "$ac_ct_AR"; then
6847  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6848else
6849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850for as_dir in $PATH
6851do
6852  IFS=$as_save_IFS
6853  test -z "$as_dir" && as_dir=.
6854  for ac_exec_ext in '' $ac_executable_extensions; do
6855  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6856    ac_cv_prog_ac_ct_AR="ar"
6857    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6858    break 2
6859  fi
6860done
6861done
6862IFS=$as_save_IFS
6863
6864fi
6865fi
6866ac_ct_AR=$ac_cv_prog_ac_ct_AR
6867if test -n "$ac_ct_AR"; then
6868  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6869$as_echo "$ac_ct_AR" >&6; }
6870else
6871  { $as_echo "$as_me:$LINENO: result: no" >&5
6872$as_echo "no" >&6; }
6873fi
6874
6875  if test "x$ac_ct_AR" = x; then
6876    AR="false"
6877  else
6878    case $cross_compiling:$ac_tool_warned in
6879yes:)
6880{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6882ac_tool_warned=yes ;;
6883esac
6884    AR=$ac_ct_AR
6885  fi
6886else
6887  AR="$ac_cv_prog_AR"
6888fi
6889
6890if test -n "$ac_tool_prefix"; then
6891  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6892set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6893{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6894$as_echo_n "checking for $ac_word... " >&6; }
6895if test "${ac_cv_prog_RANLIB+set}" = set; then
6896  $as_echo_n "(cached) " >&6
6897else
6898  if test -n "$RANLIB"; then
6899  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6900else
6901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902for as_dir in $PATH
6903do
6904  IFS=$as_save_IFS
6905  test -z "$as_dir" && as_dir=.
6906  for ac_exec_ext in '' $ac_executable_extensions; do
6907  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6908    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6909    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910    break 2
6911  fi
6912done
6913done
6914IFS=$as_save_IFS
6915
6916fi
6917fi
6918RANLIB=$ac_cv_prog_RANLIB
6919if test -n "$RANLIB"; then
6920  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6921$as_echo "$RANLIB" >&6; }
6922else
6923  { $as_echo "$as_me:$LINENO: result: no" >&5
6924$as_echo "no" >&6; }
6925fi
6926
6927
6928fi
6929if test -z "$ac_cv_prog_RANLIB"; then
6930  ac_ct_RANLIB=$RANLIB
6931  # Extract the first word of "ranlib", so it can be a program name with args.
6932set dummy ranlib; ac_word=$2
6933{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6934$as_echo_n "checking for $ac_word... " >&6; }
6935if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6936  $as_echo_n "(cached) " >&6
6937else
6938  if test -n "$ac_ct_RANLIB"; then
6939  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6940else
6941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942for as_dir in $PATH
6943do
6944  IFS=$as_save_IFS
6945  test -z "$as_dir" && as_dir=.
6946  for ac_exec_ext in '' $ac_executable_extensions; do
6947  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6948    ac_cv_prog_ac_ct_RANLIB="ranlib"
6949    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6950    break 2
6951  fi
6952done
6953done
6954IFS=$as_save_IFS
6955
6956fi
6957fi
6958ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6959if test -n "$ac_ct_RANLIB"; then
6960  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6961$as_echo "$ac_ct_RANLIB" >&6; }
6962else
6963  { $as_echo "$as_me:$LINENO: result: no" >&5
6964$as_echo "no" >&6; }
6965fi
6966
6967  if test "x$ac_ct_RANLIB" = x; then
6968    RANLIB=":"
6969  else
6970    case $cross_compiling:$ac_tool_warned in
6971yes:)
6972{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6974ac_tool_warned=yes ;;
6975esac
6976    RANLIB=$ac_ct_RANLIB
6977  fi
6978else
6979  RANLIB="$ac_cv_prog_RANLIB"
6980fi
6981
6982if test -n "$ac_tool_prefix"; then
6983  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6984set dummy ${ac_tool_prefix}strip; ac_word=$2
6985{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6986$as_echo_n "checking for $ac_word... " >&6; }
6987if test "${ac_cv_prog_STRIP+set}" = set; then
6988  $as_echo_n "(cached) " >&6
6989else
6990  if test -n "$STRIP"; then
6991  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6992else
6993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994for as_dir in $PATH
6995do
6996  IFS=$as_save_IFS
6997  test -z "$as_dir" && as_dir=.
6998  for ac_exec_ext in '' $ac_executable_extensions; do
6999  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7000    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7001    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7002    break 2
7003  fi
7004done
7005done
7006IFS=$as_save_IFS
7007
7008fi
7009fi
7010STRIP=$ac_cv_prog_STRIP
7011if test -n "$STRIP"; then
7012  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7013$as_echo "$STRIP" >&6; }
7014else
7015  { $as_echo "$as_me:$LINENO: result: no" >&5
7016$as_echo "no" >&6; }
7017fi
7018
7019
7020fi
7021if test -z "$ac_cv_prog_STRIP"; then
7022  ac_ct_STRIP=$STRIP
7023  # Extract the first word of "strip", so it can be a program name with args.
7024set dummy strip; ac_word=$2
7025{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7026$as_echo_n "checking for $ac_word... " >&6; }
7027if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7028  $as_echo_n "(cached) " >&6
7029else
7030  if test -n "$ac_ct_STRIP"; then
7031  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7032else
7033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034for as_dir in $PATH
7035do
7036  IFS=$as_save_IFS
7037  test -z "$as_dir" && as_dir=.
7038  for ac_exec_ext in '' $ac_executable_extensions; do
7039  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7040    ac_cv_prog_ac_ct_STRIP="strip"
7041    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7042    break 2
7043  fi
7044done
7045done
7046IFS=$as_save_IFS
7047
7048fi
7049fi
7050ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7051if test -n "$ac_ct_STRIP"; then
7052  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7053$as_echo "$ac_ct_STRIP" >&6; }
7054else
7055  { $as_echo "$as_me:$LINENO: result: no" >&5
7056$as_echo "no" >&6; }
7057fi
7058
7059  if test "x$ac_ct_STRIP" = x; then
7060    STRIP=":"
7061  else
7062    case $cross_compiling:$ac_tool_warned in
7063yes:)
7064{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7066ac_tool_warned=yes ;;
7067esac
7068    STRIP=$ac_ct_STRIP
7069  fi
7070else
7071  STRIP="$ac_cv_prog_STRIP"
7072fi
7073
7074
7075old_CC="$CC"
7076old_CFLAGS="$CFLAGS"
7077
7078# Set sane defaults for various variables
7079test -z "$AR" && AR=ar
7080test -z "$AR_FLAGS" && AR_FLAGS=cru
7081test -z "$AS" && AS=as
7082test -z "$CC" && CC=cc
7083test -z "$LTCC" && LTCC=$CC
7084test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7085test -z "$DLLTOOL" && DLLTOOL=dlltool
7086test -z "$LD" && LD=ld
7087test -z "$LN_S" && LN_S="ln -s"
7088test -z "$MAGIC_CMD" && MAGIC_CMD=file
7089test -z "$NM" && NM=nm
7090test -z "$SED" && SED=sed
7091test -z "$OBJDUMP" && OBJDUMP=objdump
7092test -z "$RANLIB" && RANLIB=:
7093test -z "$STRIP" && STRIP=:
7094test -z "$ac_objext" && ac_objext=o
7095
7096# Determine commands to create old-style static archives.
7097old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7098old_postinstall_cmds='chmod 644 $oldlib'
7099old_postuninstall_cmds=
7100
7101if test -n "$RANLIB"; then
7102  case $host_os in
7103  openbsd*)
7104    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7105    ;;
7106  *)
7107    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7108    ;;
7109  esac
7110  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7111fi
7112
7113for cc_temp in $compiler""; do
7114  case $cc_temp in
7115    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7116    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7117    \-*) ;;
7118    *) break;;
7119  esac
7120done
7121cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7122
7123
7124# Only perform the check for file, if the check method requires it
7125case $deplibs_check_method in
7126file_magic*)
7127  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7128    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7129$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7130if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7131  $as_echo_n "(cached) " >&6
7132else
7133  case $MAGIC_CMD in
7134[\\/*] |  ?:[\\/]*)
7135  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7136  ;;
7137*)
7138  lt_save_MAGIC_CMD="$MAGIC_CMD"
7139  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7140  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7141  for ac_dir in $ac_dummy; do
7142    IFS="$lt_save_ifs"
7143    test -z "$ac_dir" && ac_dir=.
7144    if test -f $ac_dir/${ac_tool_prefix}file; then
7145      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7146      if test -n "$file_magic_test_file"; then
7147	case $deplibs_check_method in
7148	"file_magic "*)
7149	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7150	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7151	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7152	    $EGREP "$file_magic_regex" > /dev/null; then
7153	    :
7154	  else
7155	    cat <<EOF 1>&2
7156
7157*** Warning: the command libtool uses to detect shared libraries,
7158*** $file_magic_cmd, produces output that libtool cannot recognize.
7159*** The result is that libtool may fail to recognize shared libraries
7160*** as such.  This will affect the creation of libtool libraries that
7161*** depend on shared libraries, but programs linked with such libtool
7162*** libraries will work regardless of this problem.  Nevertheless, you
7163*** may want to report the problem to your system manager and/or to
7164*** bug-libtool@gnu.org
7165
7166EOF
7167	  fi ;;
7168	esac
7169      fi
7170      break
7171    fi
7172  done
7173  IFS="$lt_save_ifs"
7174  MAGIC_CMD="$lt_save_MAGIC_CMD"
7175  ;;
7176esac
7177fi
7178
7179MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7180if test -n "$MAGIC_CMD"; then
7181  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7182$as_echo "$MAGIC_CMD" >&6; }
7183else
7184  { $as_echo "$as_me:$LINENO: result: no" >&5
7185$as_echo "no" >&6; }
7186fi
7187
7188if test -z "$lt_cv_path_MAGIC_CMD"; then
7189  if test -n "$ac_tool_prefix"; then
7190    { $as_echo "$as_me:$LINENO: checking for file" >&5
7191$as_echo_n "checking for file... " >&6; }
7192if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7193  $as_echo_n "(cached) " >&6
7194else
7195  case $MAGIC_CMD in
7196[\\/*] |  ?:[\\/]*)
7197  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7198  ;;
7199*)
7200  lt_save_MAGIC_CMD="$MAGIC_CMD"
7201  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7202  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7203  for ac_dir in $ac_dummy; do
7204    IFS="$lt_save_ifs"
7205    test -z "$ac_dir" && ac_dir=.
7206    if test -f $ac_dir/file; then
7207      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7208      if test -n "$file_magic_test_file"; then
7209	case $deplibs_check_method in
7210	"file_magic "*)
7211	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7212	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7213	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7214	    $EGREP "$file_magic_regex" > /dev/null; then
7215	    :
7216	  else
7217	    cat <<EOF 1>&2
7218
7219*** Warning: the command libtool uses to detect shared libraries,
7220*** $file_magic_cmd, produces output that libtool cannot recognize.
7221*** The result is that libtool may fail to recognize shared libraries
7222*** as such.  This will affect the creation of libtool libraries that
7223*** depend on shared libraries, but programs linked with such libtool
7224*** libraries will work regardless of this problem.  Nevertheless, you
7225*** may want to report the problem to your system manager and/or to
7226*** bug-libtool@gnu.org
7227
7228EOF
7229	  fi ;;
7230	esac
7231      fi
7232      break
7233    fi
7234  done
7235  IFS="$lt_save_ifs"
7236  MAGIC_CMD="$lt_save_MAGIC_CMD"
7237  ;;
7238esac
7239fi
7240
7241MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7242if test -n "$MAGIC_CMD"; then
7243  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7244$as_echo "$MAGIC_CMD" >&6; }
7245else
7246  { $as_echo "$as_me:$LINENO: result: no" >&5
7247$as_echo "no" >&6; }
7248fi
7249
7250  else
7251    MAGIC_CMD=:
7252  fi
7253fi
7254
7255  fi
7256  ;;
7257esac
7258
7259
7260  case $host_os in
7261    rhapsody* | darwin*)
7262    if test -n "$ac_tool_prefix"; then
7263  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7264set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7265{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7266$as_echo_n "checking for $ac_word... " >&6; }
7267if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7268  $as_echo_n "(cached) " >&6
7269else
7270  if test -n "$DSYMUTIL"; then
7271  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7272else
7273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274for as_dir in $PATH
7275do
7276  IFS=$as_save_IFS
7277  test -z "$as_dir" && as_dir=.
7278  for ac_exec_ext in '' $ac_executable_extensions; do
7279  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7280    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7281    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282    break 2
7283  fi
7284done
7285done
7286IFS=$as_save_IFS
7287
7288fi
7289fi
7290DSYMUTIL=$ac_cv_prog_DSYMUTIL
7291if test -n "$DSYMUTIL"; then
7292  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7293$as_echo "$DSYMUTIL" >&6; }
7294else
7295  { $as_echo "$as_me:$LINENO: result: no" >&5
7296$as_echo "no" >&6; }
7297fi
7298
7299
7300fi
7301if test -z "$ac_cv_prog_DSYMUTIL"; then
7302  ac_ct_DSYMUTIL=$DSYMUTIL
7303  # Extract the first word of "dsymutil", so it can be a program name with args.
7304set dummy dsymutil; ac_word=$2
7305{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7306$as_echo_n "checking for $ac_word... " >&6; }
7307if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7308  $as_echo_n "(cached) " >&6
7309else
7310  if test -n "$ac_ct_DSYMUTIL"; then
7311  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7312else
7313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314for as_dir in $PATH
7315do
7316  IFS=$as_save_IFS
7317  test -z "$as_dir" && as_dir=.
7318  for ac_exec_ext in '' $ac_executable_extensions; do
7319  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7320    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7321    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322    break 2
7323  fi
7324done
7325done
7326IFS=$as_save_IFS
7327
7328fi
7329fi
7330ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7331if test -n "$ac_ct_DSYMUTIL"; then
7332  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7333$as_echo "$ac_ct_DSYMUTIL" >&6; }
7334else
7335  { $as_echo "$as_me:$LINENO: result: no" >&5
7336$as_echo "no" >&6; }
7337fi
7338
7339  if test "x$ac_ct_DSYMUTIL" = x; then
7340    DSYMUTIL=":"
7341  else
7342    case $cross_compiling:$ac_tool_warned in
7343yes:)
7344{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7346ac_tool_warned=yes ;;
7347esac
7348    DSYMUTIL=$ac_ct_DSYMUTIL
7349  fi
7350else
7351  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7352fi
7353
7354    if test -n "$ac_tool_prefix"; then
7355  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7356set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7357{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7358$as_echo_n "checking for $ac_word... " >&6; }
7359if test "${ac_cv_prog_NMEDIT+set}" = set; then
7360  $as_echo_n "(cached) " >&6
7361else
7362  if test -n "$NMEDIT"; then
7363  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7364else
7365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366for as_dir in $PATH
7367do
7368  IFS=$as_save_IFS
7369  test -z "$as_dir" && as_dir=.
7370  for ac_exec_ext in '' $ac_executable_extensions; do
7371  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7372    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7373    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7374    break 2
7375  fi
7376done
7377done
7378IFS=$as_save_IFS
7379
7380fi
7381fi
7382NMEDIT=$ac_cv_prog_NMEDIT
7383if test -n "$NMEDIT"; then
7384  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7385$as_echo "$NMEDIT" >&6; }
7386else
7387  { $as_echo "$as_me:$LINENO: result: no" >&5
7388$as_echo "no" >&6; }
7389fi
7390
7391
7392fi
7393if test -z "$ac_cv_prog_NMEDIT"; then
7394  ac_ct_NMEDIT=$NMEDIT
7395  # Extract the first word of "nmedit", so it can be a program name with args.
7396set dummy nmedit; ac_word=$2
7397{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7398$as_echo_n "checking for $ac_word... " >&6; }
7399if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7400  $as_echo_n "(cached) " >&6
7401else
7402  if test -n "$ac_ct_NMEDIT"; then
7403  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7404else
7405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406for as_dir in $PATH
7407do
7408  IFS=$as_save_IFS
7409  test -z "$as_dir" && as_dir=.
7410  for ac_exec_ext in '' $ac_executable_extensions; do
7411  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7412    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7413    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7414    break 2
7415  fi
7416done
7417done
7418IFS=$as_save_IFS
7419
7420fi
7421fi
7422ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7423if test -n "$ac_ct_NMEDIT"; then
7424  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7425$as_echo "$ac_ct_NMEDIT" >&6; }
7426else
7427  { $as_echo "$as_me:$LINENO: result: no" >&5
7428$as_echo "no" >&6; }
7429fi
7430
7431  if test "x$ac_ct_NMEDIT" = x; then
7432    NMEDIT=":"
7433  else
7434    case $cross_compiling:$ac_tool_warned in
7435yes:)
7436{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7438ac_tool_warned=yes ;;
7439esac
7440    NMEDIT=$ac_ct_NMEDIT
7441  fi
7442else
7443  NMEDIT="$ac_cv_prog_NMEDIT"
7444fi
7445
7446
7447    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7448$as_echo_n "checking for -single_module linker flag... " >&6; }
7449if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7450  $as_echo_n "(cached) " >&6
7451else
7452  lt_cv_apple_cc_single_mod=no
7453      if test -z "${LT_MULTI_MODULE}"; then
7454   # By default we will add the -single_module flag. You can override
7455   # by either setting the environment variable LT_MULTI_MODULE
7456   # non-empty at configure time, or by adding -multi_module to the
7457   # link flags.
7458   echo "int foo(void){return 1;}" > conftest.c
7459   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7460     -dynamiclib ${wl}-single_module conftest.c
7461   if test -f libconftest.dylib; then
7462     lt_cv_apple_cc_single_mod=yes
7463     rm -rf libconftest.dylib*
7464   fi
7465   rm conftest.c
7466      fi
7467fi
7468{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7469$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7470    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7471$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7472if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7473  $as_echo_n "(cached) " >&6
7474else
7475  lt_cv_ld_exported_symbols_list=no
7476      save_LDFLAGS=$LDFLAGS
7477      echo "_main" > conftest.sym
7478      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7479      cat >conftest.$ac_ext <<_ACEOF
7480/* confdefs.h.  */
7481_ACEOF
7482cat confdefs.h >>conftest.$ac_ext
7483cat >>conftest.$ac_ext <<_ACEOF
7484/* end confdefs.h.  */
7485
7486int
7487main ()
7488{
7489
7490  ;
7491  return 0;
7492}
7493_ACEOF
7494rm -f conftest.$ac_objext conftest$ac_exeext
7495if { (ac_try="$ac_link"
7496case "(($ac_try" in
7497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7498  *) ac_try_echo=$ac_try;;
7499esac
7500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7501$as_echo "$ac_try_echo") >&5
7502  (eval "$ac_link") 2>conftest.er1
7503  ac_status=$?
7504  grep -v '^ *+' conftest.er1 >conftest.err
7505  rm -f conftest.er1
7506  cat conftest.err >&5
7507  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508  (exit $ac_status); } && {
7509	 test -z "$ac_c_werror_flag" ||
7510	 test ! -s conftest.err
7511       } && test -s conftest$ac_exeext && {
7512	 test "$cross_compiling" = yes ||
7513	 $as_test_x conftest$ac_exeext
7514       }; then
7515  lt_cv_ld_exported_symbols_list=yes
7516else
7517  $as_echo "$as_me: failed program was:" >&5
7518sed 's/^/| /' conftest.$ac_ext >&5
7519
7520	lt_cv_ld_exported_symbols_list=no
7521fi
7522
7523rm -rf conftest.dSYM
7524rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7525      conftest$ac_exeext conftest.$ac_ext
7526   LDFLAGS="$save_LDFLAGS"
7527
7528fi
7529{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7530$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7531    case $host_os in
7532    rhapsody* | darwin1.[0123])
7533      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7534    darwin1.*)
7535     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7536    darwin*)
7537      # if running on 10.5 or later, the deployment target defaults
7538      # to the OS version, if on x86, and 10.4, the deployment
7539      # target defaults to 10.4. Don't you love it?
7540      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7541   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7542     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7543   10.[012]*)
7544     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7545   10.*)
7546     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7547      esac
7548    ;;
7549  esac
7550    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7551      _lt_dar_single_mod='$single_module'
7552    fi
7553    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7554      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7555    else
7556      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7557    fi
7558    if test "$DSYMUTIL" != ":"; then
7559      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7560    else
7561      _lt_dsymutil=
7562    fi
7563    ;;
7564  esac
7565
7566
7567enable_dlopen=no
7568enable_win32_dll=no
7569
7570# Check whether --enable-libtool-lock was given.
7571if test "${enable_libtool_lock+set}" = set; then
7572  enableval=$enable_libtool_lock;
7573fi
7574
7575test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7576
7577
7578# Check whether --with-pic was given.
7579if test "${with_pic+set}" = set; then
7580  withval=$with_pic; pic_mode="$withval"
7581else
7582  pic_mode=default
7583fi
7584
7585test -z "$pic_mode" && pic_mode=default
7586
7587# Use C for the default configuration in the libtool script
7588tagname=
7589lt_save_CC="$CC"
7590ac_ext=c
7591ac_cpp='$CPP $CPPFLAGS'
7592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7594ac_compiler_gnu=$ac_cv_c_compiler_gnu
7595
7596
7597# Source file extension for C test sources.
7598ac_ext=c
7599
7600# Object file extension for compiled C test sources.
7601objext=o
7602objext=$objext
7603
7604# Code to be used in simple compile tests
7605lt_simple_compile_test_code="int some_variable = 0;"
7606
7607# Code to be used in simple link tests
7608lt_simple_link_test_code='int main(){return(0);}'
7609
7610
7611# If no C compiler was specified, use CC.
7612LTCC=${LTCC-"$CC"}
7613
7614# If no C compiler flags were specified, use CFLAGS.
7615LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7616
7617# Allow CC to be a program name with arguments.
7618compiler=$CC
7619
7620
7621# save warnings/boilerplate of simple test code
7622ac_outfile=conftest.$ac_objext
7623echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7624eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7625_lt_compiler_boilerplate=`cat conftest.err`
7626$rm conftest*
7627
7628ac_outfile=conftest.$ac_objext
7629echo "$lt_simple_link_test_code" >conftest.$ac_ext
7630eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7631_lt_linker_boilerplate=`cat conftest.err`
7632$rm -r conftest*
7633
7634
7635
7636lt_prog_compiler_no_builtin_flag=
7637
7638if test "$GCC" = yes; then
7639  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7640
7641
7642{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7643$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7644if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7645  $as_echo_n "(cached) " >&6
7646else
7647  lt_cv_prog_compiler_rtti_exceptions=no
7648  ac_outfile=conftest.$ac_objext
7649   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7650   lt_compiler_flag="-fno-rtti -fno-exceptions"
7651   # Insert the option either (1) after the last *FLAGS variable, or
7652   # (2) before a word containing "conftest.", or (3) at the end.
7653   # Note that $ac_compile itself does not contain backslashes and begins
7654   # with a dollar sign (not a hyphen), so the echo should work correctly.
7655   # The option is referenced via a variable to avoid confusing sed.
7656   lt_compile=`echo "$ac_compile" | $SED \
7657   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7658   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7659   -e 's:$: $lt_compiler_flag:'`
7660   (eval echo "\"\$as_me:7660: $lt_compile\"" >&5)
7661   (eval "$lt_compile" 2>conftest.err)
7662   ac_status=$?
7663   cat conftest.err >&5
7664   echo "$as_me:7664: \$? = $ac_status" >&5
7665   if (exit $ac_status) && test -s "$ac_outfile"; then
7666     # The compiler can only warn and ignore the option if not recognized
7667     # So say no if there are warnings other than the usual output.
7668     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7669     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7670     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7671       lt_cv_prog_compiler_rtti_exceptions=yes
7672     fi
7673   fi
7674   $rm conftest*
7675
7676fi
7677{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7678$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7679
7680if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7681    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7682else
7683    :
7684fi
7685
7686fi
7687
7688lt_prog_compiler_wl=
7689lt_prog_compiler_pic=
7690lt_prog_compiler_static=
7691
7692{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7693$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7694
7695  if test "$GCC" = yes; then
7696    lt_prog_compiler_wl='-Wl,'
7697    lt_prog_compiler_static='-static'
7698
7699    case $host_os in
7700      aix*)
7701      # All AIX code is PIC.
7702      if test "$host_cpu" = ia64; then
7703	# AIX 5 now supports IA64 processor
7704	lt_prog_compiler_static='-Bstatic'
7705      fi
7706      ;;
7707
7708    amigaos*)
7709      # FIXME: we need at least 68020 code to build shared libraries, but
7710      # adding the `-m68020' flag to GCC prevents building anything better,
7711      # like `-m68040'.
7712      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7713      ;;
7714
7715    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7716      # PIC is the default for these OSes.
7717      ;;
7718
7719    mingw* | cygwin* | pw32* | os2*)
7720      # This hack is so that the source file can tell whether it is being
7721      # built for inclusion in a dll (and should export symbols for example).
7722      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7723      # (--disable-auto-import) libraries
7724      lt_prog_compiler_pic='-DDLL_EXPORT'
7725      ;;
7726
7727    darwin* | rhapsody*)
7728      # PIC is the default on this platform
7729      # Common symbols not allowed in MH_DYLIB files
7730      lt_prog_compiler_pic='-fno-common'
7731      ;;
7732
7733    interix[3-9]*)
7734      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7735      # Instead, we relocate shared libraries at runtime.
7736      ;;
7737
7738    msdosdjgpp*)
7739      # Just because we use GCC doesn't mean we suddenly get shared libraries
7740      # on systems that don't support them.
7741      lt_prog_compiler_can_build_shared=no
7742      enable_shared=no
7743      ;;
7744
7745    sysv4*MP*)
7746      if test -d /usr/nec; then
7747	lt_prog_compiler_pic=-Kconform_pic
7748      fi
7749      ;;
7750
7751    hpux*)
7752      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7753      # not for PA HP-UX.
7754      case $host_cpu in
7755      hppa*64*|ia64*)
7756	# +Z the default
7757	;;
7758      *)
7759	lt_prog_compiler_pic='-fPIC'
7760	;;
7761      esac
7762      ;;
7763
7764    *)
7765      lt_prog_compiler_pic='-fPIC'
7766      ;;
7767    esac
7768  else
7769    # PORTME Check for flag to pass linker flags through the system compiler.
7770    case $host_os in
7771    aix*)
7772      lt_prog_compiler_wl='-Wl,'
7773      if test "$host_cpu" = ia64; then
7774	# AIX 5 now supports IA64 processor
7775	lt_prog_compiler_static='-Bstatic'
7776      else
7777	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7778      fi
7779      ;;
7780      darwin*)
7781        # PIC is the default on this platform
7782        # Common symbols not allowed in MH_DYLIB files
7783       case $cc_basename in
7784         xlc*)
7785         lt_prog_compiler_pic='-qnocommon'
7786         lt_prog_compiler_wl='-Wl,'
7787         ;;
7788       esac
7789       ;;
7790
7791    mingw* | cygwin* | pw32* | os2*)
7792      # This hack is so that the source file can tell whether it is being
7793      # built for inclusion in a dll (and should export symbols for example).
7794      lt_prog_compiler_pic='-DDLL_EXPORT'
7795      ;;
7796
7797    hpux9* | hpux10* | hpux11*)
7798      lt_prog_compiler_wl='-Wl,'
7799      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7800      # not for PA HP-UX.
7801      case $host_cpu in
7802      hppa*64*|ia64*)
7803	# +Z the default
7804	;;
7805      *)
7806	lt_prog_compiler_pic='+Z'
7807	;;
7808      esac
7809      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7810      lt_prog_compiler_static='${wl}-a ${wl}archive'
7811      ;;
7812
7813    irix5* | irix6* | nonstopux*)
7814      lt_prog_compiler_wl='-Wl,'
7815      # PIC (with -KPIC) is the default.
7816      lt_prog_compiler_static='-non_shared'
7817      ;;
7818
7819    newsos6)
7820      lt_prog_compiler_pic='-KPIC'
7821      lt_prog_compiler_static='-Bstatic'
7822      ;;
7823
7824    linux* | k*bsd*-gnu)
7825      case $cc_basename in
7826      icc* | ecc*)
7827	lt_prog_compiler_wl='-Wl,'
7828	lt_prog_compiler_pic='-KPIC'
7829	lt_prog_compiler_static='-static'
7830        ;;
7831      pgcc* | pgf77* | pgf90* | pgf95*)
7832        # Portland Group compilers (*not* the Pentium gcc compiler,
7833	# which looks to be a dead project)
7834	lt_prog_compiler_wl='-Wl,'
7835	lt_prog_compiler_pic='-fpic'
7836	lt_prog_compiler_static='-Bstatic'
7837        ;;
7838      ccc*)
7839        lt_prog_compiler_wl='-Wl,'
7840        # All Alpha code is PIC.
7841        lt_prog_compiler_static='-non_shared'
7842        ;;
7843      *)
7844        case `$CC -V 2>&1 | sed 5q` in
7845	*Sun\ C*)
7846	  # Sun C 5.9
7847	  lt_prog_compiler_pic='-KPIC'
7848	  lt_prog_compiler_static='-Bstatic'
7849	  lt_prog_compiler_wl='-Wl,'
7850	  ;;
7851	*Sun\ F*)
7852	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7853	  lt_prog_compiler_pic='-KPIC'
7854	  lt_prog_compiler_static='-Bstatic'
7855	  lt_prog_compiler_wl=''
7856	  ;;
7857	esac
7858	;;
7859      esac
7860      ;;
7861
7862    osf3* | osf4* | osf5*)
7863      lt_prog_compiler_wl='-Wl,'
7864      # All OSF/1 code is PIC.
7865      lt_prog_compiler_static='-non_shared'
7866      ;;
7867
7868    rdos*)
7869      lt_prog_compiler_static='-non_shared'
7870      ;;
7871
7872    solaris*)
7873      lt_prog_compiler_pic='-KPIC'
7874      lt_prog_compiler_static='-Bstatic'
7875      case $cc_basename in
7876      f77* | f90* | f95*)
7877	lt_prog_compiler_wl='-Qoption ld ';;
7878      *)
7879	lt_prog_compiler_wl='-Wl,';;
7880      esac
7881      ;;
7882
7883    sunos4*)
7884      lt_prog_compiler_wl='-Qoption ld '
7885      lt_prog_compiler_pic='-PIC'
7886      lt_prog_compiler_static='-Bstatic'
7887      ;;
7888
7889    sysv4 | sysv4.2uw2* | sysv4.3*)
7890      lt_prog_compiler_wl='-Wl,'
7891      lt_prog_compiler_pic='-KPIC'
7892      lt_prog_compiler_static='-Bstatic'
7893      ;;
7894
7895    sysv4*MP*)
7896      if test -d /usr/nec ;then
7897	lt_prog_compiler_pic='-Kconform_pic'
7898	lt_prog_compiler_static='-Bstatic'
7899      fi
7900      ;;
7901
7902    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7903      lt_prog_compiler_wl='-Wl,'
7904      lt_prog_compiler_pic='-KPIC'
7905      lt_prog_compiler_static='-Bstatic'
7906      ;;
7907
7908    unicos*)
7909      lt_prog_compiler_wl='-Wl,'
7910      lt_prog_compiler_can_build_shared=no
7911      ;;
7912
7913    uts4*)
7914      lt_prog_compiler_pic='-pic'
7915      lt_prog_compiler_static='-Bstatic'
7916      ;;
7917
7918    *)
7919      lt_prog_compiler_can_build_shared=no
7920      ;;
7921    esac
7922  fi
7923
7924{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7925$as_echo "$lt_prog_compiler_pic" >&6; }
7926
7927#
7928# Check to make sure the PIC flag actually works.
7929#
7930if test -n "$lt_prog_compiler_pic"; then
7931
7932{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7933$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7934if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7935  $as_echo_n "(cached) " >&6
7936else
7937  lt_cv_prog_compiler_pic_works=no
7938  ac_outfile=conftest.$ac_objext
7939   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7940   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7941   # Insert the option either (1) after the last *FLAGS variable, or
7942   # (2) before a word containing "conftest.", or (3) at the end.
7943   # Note that $ac_compile itself does not contain backslashes and begins
7944   # with a dollar sign (not a hyphen), so the echo should work correctly.
7945   # The option is referenced via a variable to avoid confusing sed.
7946   lt_compile=`echo "$ac_compile" | $SED \
7947   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7948   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7949   -e 's:$: $lt_compiler_flag:'`
7950   (eval echo "\"\$as_me:7950: $lt_compile\"" >&5)
7951   (eval "$lt_compile" 2>conftest.err)
7952   ac_status=$?
7953   cat conftest.err >&5
7954   echo "$as_me:7954: \$? = $ac_status" >&5
7955   if (exit $ac_status) && test -s "$ac_outfile"; then
7956     # The compiler can only warn and ignore the option if not recognized
7957     # So say no if there are warnings other than the usual output.
7958     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7959     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7960     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7961       lt_cv_prog_compiler_pic_works=yes
7962     fi
7963   fi
7964   $rm conftest*
7965
7966fi
7967{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7968$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7969
7970if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7971    case $lt_prog_compiler_pic in
7972     "" | " "*) ;;
7973     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7974     esac
7975else
7976    lt_prog_compiler_pic=
7977     lt_prog_compiler_can_build_shared=no
7978fi
7979
7980fi
7981case $host_os in
7982  # For platforms which do not support PIC, -DPIC is meaningless:
7983  *djgpp*)
7984    lt_prog_compiler_pic=
7985    ;;
7986  *)
7987    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7988    ;;
7989esac
7990
7991#
7992# Check to make sure the static flag actually works.
7993#
7994wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7995{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7996$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7997if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7998  $as_echo_n "(cached) " >&6
7999else
8000  lt_cv_prog_compiler_static_works=no
8001   save_LDFLAGS="$LDFLAGS"
8002   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8003   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8004   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8005     # The linker can only warn and ignore the option if not recognized
8006     # So say no if there are warnings
8007     if test -s conftest.err; then
8008       # Append any errors to the config.log.
8009       cat conftest.err 1>&5
8010       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8011       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8012       if diff conftest.exp conftest.er2 >/dev/null; then
8013         lt_cv_prog_compiler_static_works=yes
8014       fi
8015     else
8016       lt_cv_prog_compiler_static_works=yes
8017     fi
8018   fi
8019   $rm -r conftest*
8020   LDFLAGS="$save_LDFLAGS"
8021
8022fi
8023{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8024$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8025
8026if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8027    :
8028else
8029    lt_prog_compiler_static=
8030fi
8031
8032
8033{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8034$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8035if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8036  $as_echo_n "(cached) " >&6
8037else
8038  lt_cv_prog_compiler_c_o=no
8039   $rm -r conftest 2>/dev/null
8040   mkdir conftest
8041   cd conftest
8042   mkdir out
8043   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8044
8045   lt_compiler_flag="-o out/conftest2.$ac_objext"
8046   # Insert the option either (1) after the last *FLAGS variable, or
8047   # (2) before a word containing "conftest.", or (3) at the end.
8048   # Note that $ac_compile itself does not contain backslashes and begins
8049   # with a dollar sign (not a hyphen), so the echo should work correctly.
8050   lt_compile=`echo "$ac_compile" | $SED \
8051   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8052   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8053   -e 's:$: $lt_compiler_flag:'`
8054   (eval echo "\"\$as_me:8054: $lt_compile\"" >&5)
8055   (eval "$lt_compile" 2>out/conftest.err)
8056   ac_status=$?
8057   cat out/conftest.err >&5
8058   echo "$as_me:8058: \$? = $ac_status" >&5
8059   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8060   then
8061     # The compiler can only warn and ignore the option if not recognized
8062     # So say no if there are warnings
8063     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8064     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8065     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8066       lt_cv_prog_compiler_c_o=yes
8067     fi
8068   fi
8069   chmod u+w . 2>&5
8070   $rm conftest*
8071   # SGI C++ compiler will create directory out/ii_files/ for
8072   # template instantiation
8073   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8074   $rm out/* && rmdir out
8075   cd ..
8076   rmdir conftest
8077   $rm conftest*
8078
8079fi
8080{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8081$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8082
8083
8084hard_links="nottested"
8085if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8086  # do not overwrite the value of need_locks provided by the user
8087  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8088$as_echo_n "checking if we can lock with hard links... " >&6; }
8089  hard_links=yes
8090  $rm conftest*
8091  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8092  touch conftest.a
8093  ln conftest.a conftest.b 2>&5 || hard_links=no
8094  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8095  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8096$as_echo "$hard_links" >&6; }
8097  if test "$hard_links" = no; then
8098    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8099$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8100    need_locks=warn
8101  fi
8102else
8103  need_locks=no
8104fi
8105
8106{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8107$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8108
8109  runpath_var=
8110  allow_undefined_flag=
8111  enable_shared_with_static_runtimes=no
8112  archive_cmds=
8113  archive_expsym_cmds=
8114  old_archive_From_new_cmds=
8115  old_archive_from_expsyms_cmds=
8116  export_dynamic_flag_spec=
8117  whole_archive_flag_spec=
8118  thread_safe_flag_spec=
8119  hardcode_libdir_flag_spec=
8120  hardcode_libdir_flag_spec_ld=
8121  hardcode_libdir_separator=
8122  hardcode_direct=no
8123  hardcode_minus_L=no
8124  hardcode_shlibpath_var=unsupported
8125  link_all_deplibs=unknown
8126  hardcode_automatic=no
8127  module_cmds=
8128  module_expsym_cmds=
8129  always_export_symbols=no
8130  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8131  # include_expsyms should be a list of space-separated symbols to be *always*
8132  # included in the symbol list
8133  include_expsyms=
8134  # exclude_expsyms can be an extended regexp of symbols to exclude
8135  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8136  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8137  # as well as any symbol that contains `d'.
8138  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8139  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8140  # platforms (ab)use it in PIC code, but their linkers get confused if
8141  # the symbol is explicitly referenced.  Since portable code cannot
8142  # rely on this symbol name, it's probably fine to never include it in
8143  # preloaded symbol tables.
8144  # Exclude shared library initialization/finalization symbols.
8145  extract_expsyms_cmds=
8146  # Just being paranoid about ensuring that cc_basename is set.
8147  for cc_temp in $compiler""; do
8148  case $cc_temp in
8149    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8150    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8151    \-*) ;;
8152    *) break;;
8153  esac
8154done
8155cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8156
8157  case $host_os in
8158  cygwin* | mingw* | pw32*)
8159    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8160    # When not using gcc, we currently assume that we are using
8161    # Microsoft Visual C++.
8162    if test "$GCC" != yes; then
8163      with_gnu_ld=no
8164    fi
8165    ;;
8166  interix*)
8167    # we just hope/assume this is gcc and not c89 (= MSVC++)
8168    with_gnu_ld=yes
8169    ;;
8170  openbsd*)
8171    with_gnu_ld=no
8172    ;;
8173  esac
8174
8175  ld_shlibs=yes
8176  if test "$with_gnu_ld" = yes; then
8177    # If archive_cmds runs LD, not CC, wlarc should be empty
8178    wlarc='${wl}'
8179
8180    # Set some defaults for GNU ld with shared library support. These
8181    # are reset later if shared libraries are not supported. Putting them
8182    # here allows them to be overridden if necessary.
8183    runpath_var=LD_RUN_PATH
8184    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8185    export_dynamic_flag_spec='${wl}--export-dynamic'
8186    # ancient GNU ld didn't support --whole-archive et. al.
8187    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8188	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8189      else
8190  	whole_archive_flag_spec=
8191    fi
8192    supports_anon_versioning=no
8193    case `$LD -v 2>/dev/null` in
8194      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8195      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8196      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8197      *\ 2.11.*) ;; # other 2.11 versions
8198      *) supports_anon_versioning=yes ;;
8199    esac
8200
8201    # See if GNU ld supports shared libraries.
8202    case $host_os in
8203    aix[3-9]*)
8204      # On AIX/PPC, the GNU linker is very broken
8205      if test "$host_cpu" != ia64; then
8206	ld_shlibs=no
8207	cat <<EOF 1>&2
8208
8209*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8210*** to be unable to reliably create shared libraries on AIX.
8211*** Therefore, libtool is disabling shared libraries support.  If you
8212*** really care for shared libraries, you may want to modify your PATH
8213*** so that a non-GNU linker is found, and then restart.
8214
8215EOF
8216      fi
8217      ;;
8218
8219    amigaos*)
8220      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)'
8221      hardcode_libdir_flag_spec='-L$libdir'
8222      hardcode_minus_L=yes
8223
8224      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8225      # that the semantics of dynamic libraries on AmigaOS, at least up
8226      # to version 4, is to share data among multiple programs linked
8227      # with the same dynamic library.  Since this doesn't match the
8228      # behavior of shared libraries on other platforms, we can't use
8229      # them.
8230      ld_shlibs=no
8231      ;;
8232
8233    beos*)
8234      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8235	allow_undefined_flag=unsupported
8236	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8237	# support --undefined.  This deserves some investigation.  FIXME
8238	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8239      else
8240	ld_shlibs=no
8241      fi
8242      ;;
8243
8244    cygwin* | mingw* | pw32*)
8245      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8246      # as there is no search path for DLLs.
8247      hardcode_libdir_flag_spec='-L$libdir'
8248      allow_undefined_flag=unsupported
8249      always_export_symbols=no
8250      enable_shared_with_static_runtimes=yes
8251      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8252
8253      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8254        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8255	# If the export-symbols file already is a .def file (1st line
8256	# is EXPORTS), use it as is; otherwise, prepend...
8257	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8258	  cp $export_symbols $output_objdir/$soname.def;
8259	else
8260	  echo EXPORTS > $output_objdir/$soname.def;
8261	  cat $export_symbols >> $output_objdir/$soname.def;
8262	fi~
8263	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8264      else
8265	ld_shlibs=no
8266      fi
8267      ;;
8268
8269    interix[3-9]*)
8270      hardcode_direct=no
8271      hardcode_shlibpath_var=no
8272      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8273      export_dynamic_flag_spec='${wl}-E'
8274      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8275      # Instead, shared libraries are loaded at an image base (0x10000000 by
8276      # default) and relocated if they conflict, which is a slow very memory
8277      # consuming and fragmenting process.  To avoid this, we pick a random,
8278      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8279      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8280      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8281      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'
8282      ;;
8283
8284    gnu* | linux* | k*bsd*-gnu)
8285      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8286	tmp_addflag=
8287	case $cc_basename,$host_cpu in
8288	pgcc*)				# Portland Group C compiler
8289	  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'
8290	  tmp_addflag=' $pic_flag'
8291	  ;;
8292	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8293	  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'
8294	  tmp_addflag=' $pic_flag -Mnomain' ;;
8295	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8296	  tmp_addflag=' -i_dynamic' ;;
8297	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8298	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8299	ifc* | ifort*)			# Intel Fortran compiler
8300	  tmp_addflag=' -nofor_main' ;;
8301	esac
8302	case `$CC -V 2>&1 | sed 5q` in
8303	*Sun\ C*)			# Sun C 5.9
8304	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8305	  tmp_sharedflag='-G' ;;
8306	*Sun\ F*)			# Sun Fortran 8.3
8307	  tmp_sharedflag='-G' ;;
8308	*)
8309	  tmp_sharedflag='-shared' ;;
8310	esac
8311	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8312
8313	if test $supports_anon_versioning = yes; then
8314	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8315  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8316  $echo "local: *; };" >> $output_objdir/$libname.ver~
8317	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8318	fi
8319      else
8320	ld_shlibs=no
8321      fi
8322      ;;
8323
8324    netbsd*)
8325      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8326	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8327	wlarc=
8328      else
8329	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8330	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8331      fi
8332      ;;
8333
8334    solaris*)
8335      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8336	ld_shlibs=no
8337	cat <<EOF 1>&2
8338
8339*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8340*** create shared libraries on Solaris systems.  Therefore, libtool
8341*** is disabling shared libraries support.  We urge you to upgrade GNU
8342*** binutils to release 2.9.1 or newer.  Another option is to modify
8343*** your PATH or compiler configuration so that the native linker is
8344*** used, and then restart.
8345
8346EOF
8347      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8348	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8349	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8350      else
8351	ld_shlibs=no
8352      fi
8353      ;;
8354
8355    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8356      case `$LD -v 2>&1` in
8357        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8358	ld_shlibs=no
8359	cat <<_LT_EOF 1>&2
8360
8361*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8362*** reliably create shared libraries on SCO systems.  Therefore, libtool
8363*** is disabling shared libraries support.  We urge you to upgrade GNU
8364*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8365*** your PATH or compiler configuration so that the native linker is
8366*** used, and then restart.
8367
8368_LT_EOF
8369	;;
8370	*)
8371	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8372	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8373	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8374	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8375	  else
8376	    ld_shlibs=no
8377	  fi
8378	;;
8379      esac
8380      ;;
8381
8382    sunos4*)
8383      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8384      wlarc=
8385      hardcode_direct=yes
8386      hardcode_shlibpath_var=no
8387      ;;
8388
8389    *)
8390      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8391	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8392	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8393      else
8394	ld_shlibs=no
8395      fi
8396      ;;
8397    esac
8398
8399    if test "$ld_shlibs" = no; then
8400      runpath_var=
8401      hardcode_libdir_flag_spec=
8402      export_dynamic_flag_spec=
8403      whole_archive_flag_spec=
8404    fi
8405  else
8406    # PORTME fill in a description of your system's linker (not GNU ld)
8407    case $host_os in
8408    aix3*)
8409      allow_undefined_flag=unsupported
8410      always_export_symbols=yes
8411      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'
8412      # Note: this linker hardcodes the directories in LIBPATH if there
8413      # are no directories specified by -L.
8414      hardcode_minus_L=yes
8415      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8416	# Neither direct hardcoding nor static linking is supported with a
8417	# broken collect2.
8418	hardcode_direct=unsupported
8419      fi
8420      ;;
8421
8422    aix[4-9]*)
8423      if test "$host_cpu" = ia64; then
8424	# On IA64, the linker does run time linking by default, so we don't
8425	# have to do anything special.
8426	aix_use_runtimelinking=no
8427	exp_sym_flag='-Bexport'
8428	no_entry_flag=""
8429      else
8430	# If we're using GNU nm, then we don't want the "-C" option.
8431	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8432	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8433	  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'
8434	else
8435	  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'
8436	fi
8437	aix_use_runtimelinking=no
8438
8439	# Test if we are trying to use run time linking or normal
8440	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8441	# need to do runtime linking.
8442	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8443	  for ld_flag in $LDFLAGS; do
8444  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8445  	    aix_use_runtimelinking=yes
8446  	    break
8447  	  fi
8448	  done
8449	  ;;
8450	esac
8451
8452	exp_sym_flag='-bexport'
8453	no_entry_flag='-bnoentry'
8454      fi
8455
8456      # When large executables or shared objects are built, AIX ld can
8457      # have problems creating the table of contents.  If linking a library
8458      # or program results in "error TOC overflow" add -mminimal-toc to
8459      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8460      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8461
8462      archive_cmds=''
8463      hardcode_direct=yes
8464      hardcode_libdir_separator=':'
8465      link_all_deplibs=yes
8466
8467      if test "$GCC" = yes; then
8468	case $host_os in aix4.[012]|aix4.[012].*)
8469	# We only want to do this on AIX 4.2 and lower, the check
8470	# below for broken collect2 doesn't work under 4.3+
8471	  collect2name=`${CC} -print-prog-name=collect2`
8472	  if test -f "$collect2name" && \
8473  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8474	  then
8475  	  # We have reworked collect2
8476  	  :
8477	  else
8478  	  # We have old collect2
8479  	  hardcode_direct=unsupported
8480  	  # It fails to find uninstalled libraries when the uninstalled
8481  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8482  	  # to unsupported forces relinking
8483  	  hardcode_minus_L=yes
8484  	  hardcode_libdir_flag_spec='-L$libdir'
8485  	  hardcode_libdir_separator=
8486	  fi
8487	  ;;
8488	esac
8489	shared_flag='-shared'
8490	if test "$aix_use_runtimelinking" = yes; then
8491	  shared_flag="$shared_flag "'${wl}-G'
8492	fi
8493      else
8494	# not using gcc
8495	if test "$host_cpu" = ia64; then
8496  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8497  	# chokes on -Wl,-G. The following line is correct:
8498	  shared_flag='-G'
8499	else
8500	  if test "$aix_use_runtimelinking" = yes; then
8501	    shared_flag='${wl}-G'
8502	  else
8503	    shared_flag='${wl}-bM:SRE'
8504	  fi
8505	fi
8506      fi
8507
8508      # It seems that -bexpall does not export symbols beginning with
8509      # underscore (_), so it is better to generate a list of symbols to export.
8510      always_export_symbols=yes
8511      if test "$aix_use_runtimelinking" = yes; then
8512	# Warning - without using the other runtime loading flags (-brtl),
8513	# -berok will link without error, but may produce a broken library.
8514	allow_undefined_flag='-berok'
8515       # Determine the default libpath from the value encoded in an empty executable.
8516       cat >conftest.$ac_ext <<_ACEOF
8517/* confdefs.h.  */
8518_ACEOF
8519cat confdefs.h >>conftest.$ac_ext
8520cat >>conftest.$ac_ext <<_ACEOF
8521/* end confdefs.h.  */
8522
8523int
8524main ()
8525{
8526
8527  ;
8528  return 0;
8529}
8530_ACEOF
8531rm -f conftest.$ac_objext conftest$ac_exeext
8532if { (ac_try="$ac_link"
8533case "(($ac_try" in
8534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8535  *) ac_try_echo=$ac_try;;
8536esac
8537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8538$as_echo "$ac_try_echo") >&5
8539  (eval "$ac_link") 2>conftest.er1
8540  ac_status=$?
8541  grep -v '^ *+' conftest.er1 >conftest.err
8542  rm -f conftest.er1
8543  cat conftest.err >&5
8544  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545  (exit $ac_status); } && {
8546	 test -z "$ac_c_werror_flag" ||
8547	 test ! -s conftest.err
8548       } && test -s conftest$ac_exeext && {
8549	 test "$cross_compiling" = yes ||
8550	 $as_test_x conftest$ac_exeext
8551       }; then
8552
8553lt_aix_libpath_sed='
8554    /Import File Strings/,/^$/ {
8555	/^0/ {
8556	    s/^0  *\(.*\)$/\1/
8557	    p
8558	}
8559    }'
8560aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8561# Check for a 64-bit object if we didn't find anything.
8562if test -z "$aix_libpath"; then
8563  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8564fi
8565else
8566  $as_echo "$as_me: failed program was:" >&5
8567sed 's/^/| /' conftest.$ac_ext >&5
8568
8569
8570fi
8571
8572rm -rf conftest.dSYM
8573rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8574      conftest$ac_exeext conftest.$ac_ext
8575if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8576
8577       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8578	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"
8579       else
8580	if test "$host_cpu" = ia64; then
8581	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8582	  allow_undefined_flag="-z nodefs"
8583	  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"
8584	else
8585	 # Determine the default libpath from the value encoded in an empty executable.
8586	 cat >conftest.$ac_ext <<_ACEOF
8587/* confdefs.h.  */
8588_ACEOF
8589cat confdefs.h >>conftest.$ac_ext
8590cat >>conftest.$ac_ext <<_ACEOF
8591/* end confdefs.h.  */
8592
8593int
8594main ()
8595{
8596
8597  ;
8598  return 0;
8599}
8600_ACEOF
8601rm -f conftest.$ac_objext conftest$ac_exeext
8602if { (ac_try="$ac_link"
8603case "(($ac_try" in
8604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605  *) ac_try_echo=$ac_try;;
8606esac
8607eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8608$as_echo "$ac_try_echo") >&5
8609  (eval "$ac_link") 2>conftest.er1
8610  ac_status=$?
8611  grep -v '^ *+' conftest.er1 >conftest.err
8612  rm -f conftest.er1
8613  cat conftest.err >&5
8614  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615  (exit $ac_status); } && {
8616	 test -z "$ac_c_werror_flag" ||
8617	 test ! -s conftest.err
8618       } && test -s conftest$ac_exeext && {
8619	 test "$cross_compiling" = yes ||
8620	 $as_test_x conftest$ac_exeext
8621       }; then
8622
8623lt_aix_libpath_sed='
8624    /Import File Strings/,/^$/ {
8625	/^0/ {
8626	    s/^0  *\(.*\)$/\1/
8627	    p
8628	}
8629    }'
8630aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8631# Check for a 64-bit object if we didn't find anything.
8632if test -z "$aix_libpath"; then
8633  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8634fi
8635else
8636  $as_echo "$as_me: failed program was:" >&5
8637sed 's/^/| /' conftest.$ac_ext >&5
8638
8639
8640fi
8641
8642rm -rf conftest.dSYM
8643rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8644      conftest$ac_exeext conftest.$ac_ext
8645if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8646
8647	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8648	  # Warning - without using the other run time loading flags,
8649	  # -berok will link without error, but may produce a broken library.
8650	  no_undefined_flag=' ${wl}-bernotok'
8651	  allow_undefined_flag=' ${wl}-berok'
8652	  # Exported symbols can be pulled into shared objects from archives
8653	  whole_archive_flag_spec='$convenience'
8654	  archive_cmds_need_lc=yes
8655	  # This is similar to how AIX traditionally builds its shared libraries.
8656	  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'
8657	fi
8658      fi
8659      ;;
8660
8661    amigaos*)
8662      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)'
8663      hardcode_libdir_flag_spec='-L$libdir'
8664      hardcode_minus_L=yes
8665      # see comment about different semantics on the GNU ld section
8666      ld_shlibs=no
8667      ;;
8668
8669    bsdi[45]*)
8670      export_dynamic_flag_spec=-rdynamic
8671      ;;
8672
8673    cygwin* | mingw* | pw32*)
8674      # When not using gcc, we currently assume that we are using
8675      # Microsoft Visual C++.
8676      # hardcode_libdir_flag_spec is actually meaningless, as there is
8677      # no search path for DLLs.
8678      hardcode_libdir_flag_spec=' '
8679      allow_undefined_flag=unsupported
8680      # Tell ltmain to make .lib files, not .a files.
8681      libext=lib
8682      # Tell ltmain to make .dll files, not .so files.
8683      shrext_cmds=".dll"
8684      # FIXME: Setting linknames here is a bad hack.
8685      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8686      # The linker will automatically build a .lib file if we build a DLL.
8687      old_archive_From_new_cmds='true'
8688      # FIXME: Should let the user specify the lib program.
8689      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8690      fix_srcfile_path='`cygpath -w "$srcfile"`'
8691      enable_shared_with_static_runtimes=yes
8692      ;;
8693
8694    darwin* | rhapsody*)
8695      case $host_os in
8696        rhapsody* | darwin1.[012])
8697         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8698         ;;
8699       *) # Darwin 1.3 on
8700         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8701           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8702         else
8703           case ${MACOSX_DEPLOYMENT_TARGET} in
8704             10.[012])
8705               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8706               ;;
8707             10.*)
8708               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8709               ;;
8710           esac
8711         fi
8712         ;;
8713      esac
8714      archive_cmds_need_lc=no
8715      hardcode_direct=no
8716      hardcode_automatic=yes
8717      hardcode_shlibpath_var=unsupported
8718      whole_archive_flag_spec=''
8719      link_all_deplibs=yes
8720    if test "$GCC" = yes ; then
8721    	output_verbose_link_cmd='echo'
8722        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8723        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8724        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8725        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8726    else
8727      case $cc_basename in
8728        xlc*)
8729         output_verbose_link_cmd='echo'
8730         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8731         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8732          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8733         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8734          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}'
8735          ;;
8736       *)
8737         ld_shlibs=no
8738          ;;
8739      esac
8740    fi
8741      ;;
8742
8743    dgux*)
8744      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8745      hardcode_libdir_flag_spec='-L$libdir'
8746      hardcode_shlibpath_var=no
8747      ;;
8748
8749    freebsd1*)
8750      ld_shlibs=no
8751      ;;
8752
8753    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8754    # support.  Future versions do this automatically, but an explicit c++rt0.o
8755    # does not break anything, and helps significantly (at the cost of a little
8756    # extra space).
8757    freebsd2.2*)
8758      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8759      hardcode_libdir_flag_spec='-R$libdir'
8760      hardcode_direct=yes
8761      hardcode_shlibpath_var=no
8762      ;;
8763
8764    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8765    freebsd2*)
8766      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8767      hardcode_direct=yes
8768      hardcode_minus_L=yes
8769      hardcode_shlibpath_var=no
8770      ;;
8771
8772    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8773    freebsd* | dragonfly*)
8774      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8775      hardcode_libdir_flag_spec='-R$libdir'
8776      hardcode_direct=yes
8777      hardcode_shlibpath_var=no
8778      ;;
8779
8780    hpux9*)
8781      if test "$GCC" = yes; then
8782	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'
8783      else
8784	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'
8785      fi
8786      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8787      hardcode_libdir_separator=:
8788      hardcode_direct=yes
8789
8790      # hardcode_minus_L: Not really in the search PATH,
8791      # but as the default location of the library.
8792      hardcode_minus_L=yes
8793      export_dynamic_flag_spec='${wl}-E'
8794      ;;
8795
8796    hpux10*)
8797      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8798	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8799      else
8800	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8801      fi
8802      if test "$with_gnu_ld" = no; then
8803	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8804	hardcode_libdir_separator=:
8805
8806	hardcode_direct=yes
8807	export_dynamic_flag_spec='${wl}-E'
8808
8809	# hardcode_minus_L: Not really in the search PATH,
8810	# but as the default location of the library.
8811	hardcode_minus_L=yes
8812      fi
8813      ;;
8814
8815    hpux11*)
8816      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8817	case $host_cpu in
8818	hppa*64*)
8819	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8820	  ;;
8821	ia64*)
8822	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8823	  ;;
8824	*)
8825	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8826	  ;;
8827	esac
8828      else
8829	case $host_cpu in
8830	hppa*64*)
8831	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8832	  ;;
8833	ia64*)
8834	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8835	  ;;
8836	*)
8837	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8838	  ;;
8839	esac
8840      fi
8841      if test "$with_gnu_ld" = no; then
8842	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8843	hardcode_libdir_separator=:
8844
8845	case $host_cpu in
8846	hppa*64*|ia64*)
8847	  hardcode_libdir_flag_spec_ld='+b $libdir'
8848	  hardcode_direct=no
8849	  hardcode_shlibpath_var=no
8850	  ;;
8851	*)
8852	  hardcode_direct=yes
8853	  export_dynamic_flag_spec='${wl}-E'
8854
8855	  # hardcode_minus_L: Not really in the search PATH,
8856	  # but as the default location of the library.
8857	  hardcode_minus_L=yes
8858	  ;;
8859	esac
8860      fi
8861      ;;
8862
8863    irix5* | irix6* | nonstopux*)
8864      if test "$GCC" = yes; then
8865	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'
8866      else
8867	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'
8868	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8869      fi
8870      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8871      hardcode_libdir_separator=:
8872      link_all_deplibs=yes
8873      ;;
8874
8875    netbsd*)
8876      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8877	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8878      else
8879	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8880      fi
8881      hardcode_libdir_flag_spec='-R$libdir'
8882      hardcode_direct=yes
8883      hardcode_shlibpath_var=no
8884      ;;
8885
8886    newsos6)
8887      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8888      hardcode_direct=yes
8889      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8890      hardcode_libdir_separator=:
8891      hardcode_shlibpath_var=no
8892      ;;
8893
8894    openbsd*)
8895      if test -f /usr/libexec/ld.so; then
8896	hardcode_direct=yes
8897	hardcode_shlibpath_var=no
8898	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8899	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8900	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8901	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8902	  export_dynamic_flag_spec='${wl}-E'
8903	else
8904	  case $host_os in
8905	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8906	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8907	     hardcode_libdir_flag_spec='-R$libdir'
8908	     ;;
8909	   *)
8910	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8911	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8912	     ;;
8913	  esac
8914        fi
8915      else
8916	ld_shlibs=no
8917      fi
8918      ;;
8919
8920    os2*)
8921      hardcode_libdir_flag_spec='-L$libdir'
8922      hardcode_minus_L=yes
8923      allow_undefined_flag=unsupported
8924      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'
8925      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8926      ;;
8927
8928    osf3*)
8929      if test "$GCC" = yes; then
8930	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8931	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'
8932      else
8933	allow_undefined_flag=' -expect_unresolved \*'
8934	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'
8935      fi
8936      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8937      hardcode_libdir_separator=:
8938      ;;
8939
8940    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8941      if test "$GCC" = yes; then
8942	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8943	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'
8944	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8945      else
8946	allow_undefined_flag=' -expect_unresolved \*'
8947	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'
8948	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8949	$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'
8950
8951	# Both c and cxx compiler support -rpath directly
8952	hardcode_libdir_flag_spec='-rpath $libdir'
8953      fi
8954      hardcode_libdir_separator=:
8955      ;;
8956
8957    solaris*)
8958      no_undefined_flag=' -z text'
8959      if test "$GCC" = yes; then
8960	wlarc='${wl}'
8961	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8962	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8963	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8964      else
8965	wlarc=''
8966	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8967	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8968  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8969      fi
8970      hardcode_libdir_flag_spec='-R$libdir'
8971      hardcode_shlibpath_var=no
8972      case $host_os in
8973      solaris2.[0-5] | solaris2.[0-5].*) ;;
8974      *)
8975	# The compiler driver will combine and reorder linker options,
8976	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8977	# but is careful enough not to reorder.
8978 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8979	if test "$GCC" = yes; then
8980	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8981	else
8982	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8983	fi
8984	;;
8985      esac
8986      link_all_deplibs=yes
8987      ;;
8988
8989    sunos4*)
8990      if test "x$host_vendor" = xsequent; then
8991	# Use $CC to link under sequent, because it throws in some extra .o
8992	# files that make .init and .fini sections work.
8993	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8994      else
8995	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8996      fi
8997      hardcode_libdir_flag_spec='-L$libdir'
8998      hardcode_direct=yes
8999      hardcode_minus_L=yes
9000      hardcode_shlibpath_var=no
9001      ;;
9002
9003    sysv4)
9004      case $host_vendor in
9005	sni)
9006	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9007	  hardcode_direct=yes # is this really true???
9008	;;
9009	siemens)
9010	  ## LD is ld it makes a PLAMLIB
9011	  ## CC just makes a GrossModule.
9012	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9013	  reload_cmds='$CC -r -o $output$reload_objs'
9014	  hardcode_direct=no
9015        ;;
9016	motorola)
9017	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9018	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9019	;;
9020      esac
9021      runpath_var='LD_RUN_PATH'
9022      hardcode_shlibpath_var=no
9023      ;;
9024
9025    sysv4.3*)
9026      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9027      hardcode_shlibpath_var=no
9028      export_dynamic_flag_spec='-Bexport'
9029      ;;
9030
9031    sysv4*MP*)
9032      if test -d /usr/nec; then
9033	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9034	hardcode_shlibpath_var=no
9035	runpath_var=LD_RUN_PATH
9036	hardcode_runpath_var=yes
9037	ld_shlibs=yes
9038      fi
9039      ;;
9040
9041    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9042      no_undefined_flag='${wl}-z,text'
9043      archive_cmds_need_lc=no
9044      hardcode_shlibpath_var=no
9045      runpath_var='LD_RUN_PATH'
9046
9047      if test "$GCC" = yes; then
9048	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9049	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9050      else
9051	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9052	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9053      fi
9054      ;;
9055
9056    sysv5* | sco3.2v5* | sco5v6*)
9057      # Note: We can NOT use -z defs as we might desire, because we do not
9058      # link with -lc, and that would cause any symbols used from libc to
9059      # always be unresolved, which means just about no library would
9060      # ever link correctly.  If we're not using GNU ld we use -z text
9061      # though, which does catch some bad symbols but isn't as heavy-handed
9062      # as -z defs.
9063      no_undefined_flag='${wl}-z,text'
9064      allow_undefined_flag='${wl}-z,nodefs'
9065      archive_cmds_need_lc=no
9066      hardcode_shlibpath_var=no
9067      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9068      hardcode_libdir_separator=':'
9069      link_all_deplibs=yes
9070      export_dynamic_flag_spec='${wl}-Bexport'
9071      runpath_var='LD_RUN_PATH'
9072
9073      if test "$GCC" = yes; then
9074	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9075	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9076      else
9077	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9078	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9079      fi
9080      ;;
9081
9082    uts4*)
9083      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9084      hardcode_libdir_flag_spec='-L$libdir'
9085      hardcode_shlibpath_var=no
9086      ;;
9087
9088    *)
9089      ld_shlibs=no
9090      ;;
9091    esac
9092  fi
9093
9094{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9095$as_echo "$ld_shlibs" >&6; }
9096test "$ld_shlibs" = no && can_build_shared=no
9097
9098#
9099# Do we need to explicitly link libc?
9100#
9101case "x$archive_cmds_need_lc" in
9102x|xyes)
9103  # Assume -lc should be added
9104  archive_cmds_need_lc=yes
9105
9106  if test "$enable_shared" = yes && test "$GCC" = yes; then
9107    case $archive_cmds in
9108    *'~'*)
9109      # FIXME: we may have to deal with multi-command sequences.
9110      ;;
9111    '$CC '*)
9112      # Test whether the compiler implicitly links with -lc since on some
9113      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9114      # to ld, don't add -lc before -lgcc.
9115      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9116$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9117      $rm conftest*
9118      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9119
9120      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9121  (eval $ac_compile) 2>&5
9122  ac_status=$?
9123  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124  (exit $ac_status); } 2>conftest.err; then
9125        soname=conftest
9126        lib=conftest
9127        libobjs=conftest.$ac_objext
9128        deplibs=
9129        wl=$lt_prog_compiler_wl
9130	pic_flag=$lt_prog_compiler_pic
9131        compiler_flags=-v
9132        linker_flags=-v
9133        verstring=
9134        output_objdir=.
9135        libname=conftest
9136        lt_save_allow_undefined_flag=$allow_undefined_flag
9137        allow_undefined_flag=
9138        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9139  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9140  ac_status=$?
9141  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142  (exit $ac_status); }
9143        then
9144	  archive_cmds_need_lc=no
9145        else
9146	  archive_cmds_need_lc=yes
9147        fi
9148        allow_undefined_flag=$lt_save_allow_undefined_flag
9149      else
9150        cat conftest.err 1>&5
9151      fi
9152      $rm conftest*
9153      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9154$as_echo "$archive_cmds_need_lc" >&6; }
9155      ;;
9156    esac
9157  fi
9158  ;;
9159esac
9160
9161{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9162$as_echo_n "checking dynamic linker characteristics... " >&6; }
9163library_names_spec=
9164libname_spec='lib$name'
9165soname_spec=
9166shrext_cmds=".so"
9167postinstall_cmds=
9168postuninstall_cmds=
9169finish_cmds=
9170finish_eval=
9171shlibpath_var=
9172shlibpath_overrides_runpath=unknown
9173version_type=none
9174dynamic_linker="$host_os ld.so"
9175sys_lib_dlsearch_path_spec="/lib /usr/lib"
9176
9177if test "$GCC" = yes; then
9178  case $host_os in
9179    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9180    *) lt_awk_arg="/^libraries:/" ;;
9181  esac
9182  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9183  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9184    # if the path contains ";" then we assume it to be the separator
9185    # otherwise default to the standard path separator (i.e. ":") - it is
9186    # assumed that no part of a normal pathname contains ";" but that should
9187    # okay in the real world where ";" in dirpaths is itself problematic.
9188    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9189  else
9190    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9191  fi
9192  # Ok, now we have the path, separated by spaces, we can step through it
9193  # and add multilib dir if necessary.
9194  lt_tmp_lt_search_path_spec=
9195  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9196  for lt_sys_path in $lt_search_path_spec; do
9197    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9198      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9199    else
9200      test -d "$lt_sys_path" && \
9201	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9202    fi
9203  done
9204  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9205BEGIN {RS=" "; FS="/|\n";} {
9206  lt_foo="";
9207  lt_count=0;
9208  for (lt_i = NF; lt_i > 0; lt_i--) {
9209    if ($lt_i != "" && $lt_i != ".") {
9210      if ($lt_i == "..") {
9211        lt_count++;
9212      } else {
9213        if (lt_count == 0) {
9214          lt_foo="/" $lt_i lt_foo;
9215        } else {
9216          lt_count--;
9217        }
9218      }
9219    }
9220  }
9221  if (lt_foo != "") { lt_freq[lt_foo]++; }
9222  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9223}'`
9224  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9225else
9226  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9227fi
9228need_lib_prefix=unknown
9229hardcode_into_libs=no
9230
9231# when you set need_version to no, make sure it does not cause -set_version
9232# flags to be left without arguments
9233need_version=unknown
9234
9235case $host_os in
9236aix3*)
9237  version_type=linux
9238  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9239  shlibpath_var=LIBPATH
9240
9241  # AIX 3 has no versioning support, so we append a major version to the name.
9242  soname_spec='${libname}${release}${shared_ext}$major'
9243  ;;
9244
9245aix[4-9]*)
9246  version_type=linux
9247  need_lib_prefix=no
9248  need_version=no
9249  hardcode_into_libs=yes
9250  if test "$host_cpu" = ia64; then
9251    # AIX 5 supports IA64
9252    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9253    shlibpath_var=LD_LIBRARY_PATH
9254  else
9255    # With GCC up to 2.95.x, collect2 would create an import file
9256    # for dependence libraries.  The import file would start with
9257    # the line `#! .'.  This would cause the generated library to
9258    # depend on `.', always an invalid library.  This was fixed in
9259    # development snapshots of GCC prior to 3.0.
9260    case $host_os in
9261      aix4 | aix4.[01] | aix4.[01].*)
9262      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9263	   echo ' yes '
9264	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9265	:
9266      else
9267	can_build_shared=no
9268      fi
9269      ;;
9270    esac
9271    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9272    # soname into executable. Probably we can add versioning support to
9273    # collect2, so additional links can be useful in future.
9274    if test "$aix_use_runtimelinking" = yes; then
9275      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9276      # instead of lib<name>.a to let people know that these are not
9277      # typical AIX shared libraries.
9278      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9279    else
9280      # We preserve .a as extension for shared libraries through AIX4.2
9281      # and later when we are not doing run time linking.
9282      library_names_spec='${libname}${release}.a $libname.a'
9283      soname_spec='${libname}${release}${shared_ext}$major'
9284    fi
9285    shlibpath_var=LIBPATH
9286  fi
9287  ;;
9288
9289amigaos*)
9290  library_names_spec='$libname.ixlibrary $libname.a'
9291  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9292  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'
9293  ;;
9294
9295beos*)
9296  library_names_spec='${libname}${shared_ext}'
9297  dynamic_linker="$host_os ld.so"
9298  shlibpath_var=LIBRARY_PATH
9299  ;;
9300
9301bsdi[45]*)
9302  version_type=linux
9303  need_version=no
9304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9305  soname_spec='${libname}${release}${shared_ext}$major'
9306  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9307  shlibpath_var=LD_LIBRARY_PATH
9308  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9309  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9310  # the default ld.so.conf also contains /usr/contrib/lib and
9311  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9312  # libtool to hard-code these into programs
9313  ;;
9314
9315cygwin* | mingw* | pw32*)
9316  version_type=windows
9317  shrext_cmds=".dll"
9318  need_version=no
9319  need_lib_prefix=no
9320
9321  case $GCC,$host_os in
9322  yes,cygwin* | yes,mingw* | yes,pw32*)
9323    library_names_spec='$libname.dll.a'
9324    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9325    postinstall_cmds='base_file=`basename \${file}`~
9326      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9327      dldir=$destdir/`dirname \$dlpath`~
9328      test -d \$dldir || mkdir -p \$dldir~
9329      $install_prog $dir/$dlname \$dldir/$dlname~
9330      chmod a+x \$dldir/$dlname'
9331    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9332      dlpath=$dir/\$dldll~
9333       $rm \$dlpath'
9334    shlibpath_overrides_runpath=yes
9335
9336    case $host_os in
9337    cygwin*)
9338      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9339      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9340      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9341      ;;
9342    mingw*)
9343      # MinGW DLLs use traditional 'lib' prefix
9344      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9345      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9346      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9347        # It is most probably a Windows format PATH printed by
9348        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9349        # path with ; separators, and with drive letters. We can handle the
9350        # drive letters (cygwin fileutils understands them), so leave them,
9351        # especially as we might pass files found there to a mingw objdump,
9352        # which wouldn't understand a cygwinified path. Ahh.
9353        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9354      else
9355        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9356      fi
9357      ;;
9358    pw32*)
9359      # pw32 DLLs use 'pw' prefix rather than 'lib'
9360      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9361      ;;
9362    esac
9363    ;;
9364
9365  *)
9366    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9367    ;;
9368  esac
9369  dynamic_linker='Win32 ld.exe'
9370  # FIXME: first we should search . and the directory the executable is in
9371  shlibpath_var=PATH
9372  ;;
9373
9374darwin* | rhapsody*)
9375  dynamic_linker="$host_os dyld"
9376  version_type=darwin
9377  need_lib_prefix=no
9378  need_version=no
9379  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9380  soname_spec='${libname}${release}${major}$shared_ext'
9381  shlibpath_overrides_runpath=yes
9382  shlibpath_var=DYLD_LIBRARY_PATH
9383  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9384
9385  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9386  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9387  ;;
9388
9389dgux*)
9390  version_type=linux
9391  need_lib_prefix=no
9392  need_version=no
9393  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9394  soname_spec='${libname}${release}${shared_ext}$major'
9395  shlibpath_var=LD_LIBRARY_PATH
9396  ;;
9397
9398freebsd1*)
9399  dynamic_linker=no
9400  ;;
9401
9402freebsd* | dragonfly*)
9403  # DragonFly does not have aout.  When/if they implement a new
9404  # versioning mechanism, adjust this.
9405  if test -x /usr/bin/objformat; then
9406    objformat=`/usr/bin/objformat`
9407  else
9408    case $host_os in
9409    freebsd[123]*) objformat=aout ;;
9410    *) objformat=elf ;;
9411    esac
9412  fi
9413  version_type=freebsd-$objformat
9414  case $version_type in
9415    freebsd-elf*)
9416      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9417      need_version=no
9418      need_lib_prefix=no
9419      ;;
9420    freebsd-*)
9421      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9422      need_version=yes
9423      ;;
9424  esac
9425  shlibpath_var=LD_LIBRARY_PATH
9426  case $host_os in
9427  freebsd2*)
9428    shlibpath_overrides_runpath=yes
9429    ;;
9430  freebsd3.[01]* | freebsdelf3.[01]*)
9431    shlibpath_overrides_runpath=yes
9432    hardcode_into_libs=yes
9433    ;;
9434  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9435  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9436    shlibpath_overrides_runpath=no
9437    hardcode_into_libs=yes
9438    ;;
9439  *) # from 4.6 on, and DragonFly
9440    shlibpath_overrides_runpath=yes
9441    hardcode_into_libs=yes
9442    ;;
9443  esac
9444  ;;
9445
9446gnu*)
9447  version_type=linux
9448  need_lib_prefix=no
9449  need_version=no
9450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9451  soname_spec='${libname}${release}${shared_ext}$major'
9452  shlibpath_var=LD_LIBRARY_PATH
9453  hardcode_into_libs=yes
9454  ;;
9455
9456hpux9* | hpux10* | hpux11*)
9457  # Give a soname corresponding to the major version so that dld.sl refuses to
9458  # link against other versions.
9459  version_type=sunos
9460  need_lib_prefix=no
9461  need_version=no
9462  case $host_cpu in
9463  ia64*)
9464    shrext_cmds='.so'
9465    hardcode_into_libs=yes
9466    dynamic_linker="$host_os dld.so"
9467    shlibpath_var=LD_LIBRARY_PATH
9468    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9469    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9470    soname_spec='${libname}${release}${shared_ext}$major'
9471    if test "X$HPUX_IA64_MODE" = X32; then
9472      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9473    else
9474      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9475    fi
9476    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9477    ;;
9478   hppa*64*)
9479     shrext_cmds='.sl'
9480     hardcode_into_libs=yes
9481     dynamic_linker="$host_os dld.sl"
9482     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9483     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9484     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485     soname_spec='${libname}${release}${shared_ext}$major'
9486     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9487     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9488     ;;
9489   *)
9490    shrext_cmds='.sl'
9491    dynamic_linker="$host_os dld.sl"
9492    shlibpath_var=SHLIB_PATH
9493    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9494    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9495    soname_spec='${libname}${release}${shared_ext}$major'
9496    ;;
9497  esac
9498  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9499  postinstall_cmds='chmod 555 $lib'
9500  ;;
9501
9502interix[3-9]*)
9503  version_type=linux
9504  need_lib_prefix=no
9505  need_version=no
9506  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9507  soname_spec='${libname}${release}${shared_ext}$major'
9508  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9509  shlibpath_var=LD_LIBRARY_PATH
9510  shlibpath_overrides_runpath=no
9511  hardcode_into_libs=yes
9512  ;;
9513
9514irix5* | irix6* | nonstopux*)
9515  case $host_os in
9516    nonstopux*) version_type=nonstopux ;;
9517    *)
9518	if test "$lt_cv_prog_gnu_ld" = yes; then
9519		version_type=linux
9520	else
9521		version_type=irix
9522	fi ;;
9523  esac
9524  need_lib_prefix=no
9525  need_version=no
9526  soname_spec='${libname}${release}${shared_ext}$major'
9527  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9528  case $host_os in
9529  irix5* | nonstopux*)
9530    libsuff= shlibsuff=
9531    ;;
9532  *)
9533    case $LD in # libtool.m4 will add one of these switches to LD
9534    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9535      libsuff= shlibsuff= libmagic=32-bit;;
9536    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9537      libsuff=32 shlibsuff=N32 libmagic=N32;;
9538    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9539      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9540    *) libsuff= shlibsuff= libmagic=never-match;;
9541    esac
9542    ;;
9543  esac
9544  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9545  shlibpath_overrides_runpath=no
9546  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9547  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9548  hardcode_into_libs=yes
9549  ;;
9550
9551# No shared lib support for Linux oldld, aout, or coff.
9552linux*oldld* | linux*aout* | linux*coff*)
9553  dynamic_linker=no
9554  ;;
9555
9556# This must be Linux ELF.
9557linux* | k*bsd*-gnu)
9558  version_type=linux
9559  need_lib_prefix=no
9560  need_version=no
9561  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9562  soname_spec='${libname}${release}${shared_ext}$major'
9563  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9564  shlibpath_var=LD_LIBRARY_PATH
9565  shlibpath_overrides_runpath=no
9566  # This implies no fast_install, which is unacceptable.
9567  # Some rework will be needed to allow for fast_install
9568  # before this can be enabled.
9569  hardcode_into_libs=yes
9570
9571  # Append ld.so.conf contents to the search path
9572  if test -f /etc/ld.so.conf; then
9573    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9574    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9575  fi
9576
9577  # We used to test for /lib/ld.so.1 and disable shared libraries on
9578  # powerpc, because MkLinux only supported shared libraries with the
9579  # GNU dynamic linker.  Since this was broken with cross compilers,
9580  # most powerpc-linux boxes support dynamic linking these days and
9581  # people can always --disable-shared, the test was removed, and we
9582  # assume the GNU/Linux dynamic linker is in use.
9583  dynamic_linker='GNU/Linux ld.so'
9584  ;;
9585
9586netbsd*)
9587  version_type=sunos
9588  need_lib_prefix=no
9589  need_version=no
9590  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9591    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9592    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9593    dynamic_linker='NetBSD (a.out) ld.so'
9594  else
9595    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9596    soname_spec='${libname}${release}${shared_ext}$major'
9597    dynamic_linker='NetBSD ld.elf_so'
9598  fi
9599  shlibpath_var=LD_LIBRARY_PATH
9600  shlibpath_overrides_runpath=yes
9601  hardcode_into_libs=yes
9602  ;;
9603
9604newsos6)
9605  version_type=linux
9606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9607  shlibpath_var=LD_LIBRARY_PATH
9608  shlibpath_overrides_runpath=yes
9609  ;;
9610
9611nto-qnx*)
9612  version_type=linux
9613  need_lib_prefix=no
9614  need_version=no
9615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9616  soname_spec='${libname}${release}${shared_ext}$major'
9617  shlibpath_var=LD_LIBRARY_PATH
9618  shlibpath_overrides_runpath=yes
9619  ;;
9620
9621openbsd*)
9622  version_type=sunos
9623  sys_lib_dlsearch_path_spec="/usr/lib"
9624  need_lib_prefix=no
9625  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9626  case $host_os in
9627    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9628    *)                         need_version=no  ;;
9629  esac
9630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9631  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9632  shlibpath_var=LD_LIBRARY_PATH
9633  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9634    case $host_os in
9635      openbsd2.[89] | openbsd2.[89].*)
9636	shlibpath_overrides_runpath=no
9637	;;
9638      *)
9639	shlibpath_overrides_runpath=yes
9640	;;
9641      esac
9642  else
9643    shlibpath_overrides_runpath=yes
9644  fi
9645  ;;
9646
9647os2*)
9648  libname_spec='$name'
9649  shrext_cmds=".dll"
9650  need_lib_prefix=no
9651  library_names_spec='$libname${shared_ext} $libname.a'
9652  dynamic_linker='OS/2 ld.exe'
9653  shlibpath_var=LIBPATH
9654  ;;
9655
9656osf3* | osf4* | osf5*)
9657  version_type=osf
9658  need_lib_prefix=no
9659  need_version=no
9660  soname_spec='${libname}${release}${shared_ext}$major'
9661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662  shlibpath_var=LD_LIBRARY_PATH
9663  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9664  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9665  ;;
9666
9667rdos*)
9668  dynamic_linker=no
9669  ;;
9670
9671solaris*)
9672  version_type=linux
9673  need_lib_prefix=no
9674  need_version=no
9675  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9676  soname_spec='${libname}${release}${shared_ext}$major'
9677  shlibpath_var=LD_LIBRARY_PATH
9678  shlibpath_overrides_runpath=yes
9679  hardcode_into_libs=yes
9680  # ldd complains unless libraries are executable
9681  postinstall_cmds='chmod +x $lib'
9682  ;;
9683
9684sunos4*)
9685  version_type=sunos
9686  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9687  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9688  shlibpath_var=LD_LIBRARY_PATH
9689  shlibpath_overrides_runpath=yes
9690  if test "$with_gnu_ld" = yes; then
9691    need_lib_prefix=no
9692  fi
9693  need_version=yes
9694  ;;
9695
9696sysv4 | sysv4.3*)
9697  version_type=linux
9698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9699  soname_spec='${libname}${release}${shared_ext}$major'
9700  shlibpath_var=LD_LIBRARY_PATH
9701  case $host_vendor in
9702    sni)
9703      shlibpath_overrides_runpath=no
9704      need_lib_prefix=no
9705      export_dynamic_flag_spec='${wl}-Blargedynsym'
9706      runpath_var=LD_RUN_PATH
9707      ;;
9708    siemens)
9709      need_lib_prefix=no
9710      ;;
9711    motorola)
9712      need_lib_prefix=no
9713      need_version=no
9714      shlibpath_overrides_runpath=no
9715      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9716      ;;
9717  esac
9718  ;;
9719
9720sysv4*MP*)
9721  if test -d /usr/nec ;then
9722    version_type=linux
9723    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9724    soname_spec='$libname${shared_ext}.$major'
9725    shlibpath_var=LD_LIBRARY_PATH
9726  fi
9727  ;;
9728
9729sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9730  version_type=freebsd-elf
9731  need_lib_prefix=no
9732  need_version=no
9733  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9734  soname_spec='${libname}${release}${shared_ext}$major'
9735  shlibpath_var=LD_LIBRARY_PATH
9736  hardcode_into_libs=yes
9737  if test "$with_gnu_ld" = yes; then
9738    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9739    shlibpath_overrides_runpath=no
9740  else
9741    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9742    shlibpath_overrides_runpath=yes
9743    case $host_os in
9744      sco3.2v5*)
9745        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9746	;;
9747    esac
9748  fi
9749  sys_lib_dlsearch_path_spec='/usr/lib'
9750  ;;
9751
9752uts4*)
9753  version_type=linux
9754  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9755  soname_spec='${libname}${release}${shared_ext}$major'
9756  shlibpath_var=LD_LIBRARY_PATH
9757  ;;
9758
9759*)
9760  dynamic_linker=no
9761  ;;
9762esac
9763{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9764$as_echo "$dynamic_linker" >&6; }
9765test "$dynamic_linker" = no && can_build_shared=no
9766
9767if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9768  $as_echo_n "(cached) " >&6
9769else
9770  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9771fi
9772
9773sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9774if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9775  $as_echo_n "(cached) " >&6
9776else
9777  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9778fi
9779
9780sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9781
9782variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9783if test "$GCC" = yes; then
9784  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9785fi
9786
9787{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9788$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9789hardcode_action=
9790if test -n "$hardcode_libdir_flag_spec" || \
9791   test -n "$runpath_var" || \
9792   test "X$hardcode_automatic" = "Xyes" ; then
9793
9794  # We can hardcode non-existant directories.
9795  if test "$hardcode_direct" != no &&
9796     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9797     # have to relink, otherwise we might link with an installed library
9798     # when we should be linking with a yet-to-be-installed one
9799     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9800     test "$hardcode_minus_L" != no; then
9801    # Linking always hardcodes the temporary library directory.
9802    hardcode_action=relink
9803  else
9804    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9805    hardcode_action=immediate
9806  fi
9807else
9808  # We cannot hardcode anything, or else we can only hardcode existing
9809  # directories.
9810  hardcode_action=unsupported
9811fi
9812{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9813$as_echo "$hardcode_action" >&6; }
9814
9815if test "$hardcode_action" = relink; then
9816  # Fast installation is not supported
9817  enable_fast_install=no
9818elif test "$shlibpath_overrides_runpath" = yes ||
9819     test "$enable_shared" = no; then
9820  # Fast installation is not necessary
9821  enable_fast_install=needless
9822fi
9823
9824striplib=
9825old_striplib=
9826{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9827$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9828if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9829  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9830  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9831  { $as_echo "$as_me:$LINENO: result: yes" >&5
9832$as_echo "yes" >&6; }
9833else
9834# FIXME - insert some real tests, host_os isn't really good enough
9835  case $host_os in
9836   darwin*)
9837       if test -n "$STRIP" ; then
9838         striplib="$STRIP -x"
9839         old_striplib="$STRIP -S"
9840         { $as_echo "$as_me:$LINENO: result: yes" >&5
9841$as_echo "yes" >&6; }
9842       else
9843  { $as_echo "$as_me:$LINENO: result: no" >&5
9844$as_echo "no" >&6; }
9845fi
9846       ;;
9847   *)
9848  { $as_echo "$as_me:$LINENO: result: no" >&5
9849$as_echo "no" >&6; }
9850    ;;
9851  esac
9852fi
9853
9854if test "x$enable_dlopen" != xyes; then
9855  enable_dlopen=unknown
9856  enable_dlopen_self=unknown
9857  enable_dlopen_self_static=unknown
9858else
9859  lt_cv_dlopen=no
9860  lt_cv_dlopen_libs=
9861
9862  case $host_os in
9863  beos*)
9864    lt_cv_dlopen="load_add_on"
9865    lt_cv_dlopen_libs=
9866    lt_cv_dlopen_self=yes
9867    ;;
9868
9869  mingw* | pw32*)
9870    lt_cv_dlopen="LoadLibrary"
9871    lt_cv_dlopen_libs=
9872   ;;
9873
9874  cygwin*)
9875    lt_cv_dlopen="dlopen"
9876    lt_cv_dlopen_libs=
9877   ;;
9878
9879  darwin*)
9880  # if libdl is installed we need to link against it
9881    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9882$as_echo_n "checking for dlopen in -ldl... " >&6; }
9883if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9884  $as_echo_n "(cached) " >&6
9885else
9886  ac_check_lib_save_LIBS=$LIBS
9887LIBS="-ldl  $LIBS"
9888cat >conftest.$ac_ext <<_ACEOF
9889/* confdefs.h.  */
9890_ACEOF
9891cat confdefs.h >>conftest.$ac_ext
9892cat >>conftest.$ac_ext <<_ACEOF
9893/* end confdefs.h.  */
9894
9895/* Override any GCC internal prototype to avoid an error.
9896   Use char because int might match the return type of a GCC
9897   builtin and then its argument prototype would still apply.  */
9898#ifdef __cplusplus
9899extern "C"
9900#endif
9901char dlopen ();
9902int
9903main ()
9904{
9905return dlopen ();
9906  ;
9907  return 0;
9908}
9909_ACEOF
9910rm -f conftest.$ac_objext conftest$ac_exeext
9911if { (ac_try="$ac_link"
9912case "(($ac_try" in
9913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914  *) ac_try_echo=$ac_try;;
9915esac
9916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9917$as_echo "$ac_try_echo") >&5
9918  (eval "$ac_link") 2>conftest.er1
9919  ac_status=$?
9920  grep -v '^ *+' conftest.er1 >conftest.err
9921  rm -f conftest.er1
9922  cat conftest.err >&5
9923  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924  (exit $ac_status); } && {
9925	 test -z "$ac_c_werror_flag" ||
9926	 test ! -s conftest.err
9927       } && test -s conftest$ac_exeext && {
9928	 test "$cross_compiling" = yes ||
9929	 $as_test_x conftest$ac_exeext
9930       }; then
9931  ac_cv_lib_dl_dlopen=yes
9932else
9933  $as_echo "$as_me: failed program was:" >&5
9934sed 's/^/| /' conftest.$ac_ext >&5
9935
9936	ac_cv_lib_dl_dlopen=no
9937fi
9938
9939rm -rf conftest.dSYM
9940rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9941      conftest$ac_exeext conftest.$ac_ext
9942LIBS=$ac_check_lib_save_LIBS
9943fi
9944{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9945$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9946if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9947  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9948else
9949
9950    lt_cv_dlopen="dyld"
9951    lt_cv_dlopen_libs=
9952    lt_cv_dlopen_self=yes
9953
9954fi
9955
9956   ;;
9957
9958  *)
9959    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9960$as_echo_n "checking for shl_load... " >&6; }
9961if test "${ac_cv_func_shl_load+set}" = set; then
9962  $as_echo_n "(cached) " >&6
9963else
9964  cat >conftest.$ac_ext <<_ACEOF
9965/* confdefs.h.  */
9966_ACEOF
9967cat confdefs.h >>conftest.$ac_ext
9968cat >>conftest.$ac_ext <<_ACEOF
9969/* end confdefs.h.  */
9970/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9971   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9972#define shl_load innocuous_shl_load
9973
9974/* System header to define __stub macros and hopefully few prototypes,
9975    which can conflict with char shl_load (); below.
9976    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9977    <limits.h> exists even on freestanding compilers.  */
9978
9979#ifdef __STDC__
9980# include <limits.h>
9981#else
9982# include <assert.h>
9983#endif
9984
9985#undef shl_load
9986
9987/* Override any GCC internal prototype to avoid an error.
9988   Use char because int might match the return type of a GCC
9989   builtin and then its argument prototype would still apply.  */
9990#ifdef __cplusplus
9991extern "C"
9992#endif
9993char shl_load ();
9994/* The GNU C library defines this for functions which it implements
9995    to always fail with ENOSYS.  Some functions are actually named
9996    something starting with __ and the normal name is an alias.  */
9997#if defined __stub_shl_load || defined __stub___shl_load
9998choke me
9999#endif
10000
10001int
10002main ()
10003{
10004return shl_load ();
10005  ;
10006  return 0;
10007}
10008_ACEOF
10009rm -f conftest.$ac_objext conftest$ac_exeext
10010if { (ac_try="$ac_link"
10011case "(($ac_try" in
10012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013  *) ac_try_echo=$ac_try;;
10014esac
10015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10016$as_echo "$ac_try_echo") >&5
10017  (eval "$ac_link") 2>conftest.er1
10018  ac_status=$?
10019  grep -v '^ *+' conftest.er1 >conftest.err
10020  rm -f conftest.er1
10021  cat conftest.err >&5
10022  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023  (exit $ac_status); } && {
10024	 test -z "$ac_c_werror_flag" ||
10025	 test ! -s conftest.err
10026       } && test -s conftest$ac_exeext && {
10027	 test "$cross_compiling" = yes ||
10028	 $as_test_x conftest$ac_exeext
10029       }; then
10030  ac_cv_func_shl_load=yes
10031else
10032  $as_echo "$as_me: failed program was:" >&5
10033sed 's/^/| /' conftest.$ac_ext >&5
10034
10035	ac_cv_func_shl_load=no
10036fi
10037
10038rm -rf conftest.dSYM
10039rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10040      conftest$ac_exeext conftest.$ac_ext
10041fi
10042{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10043$as_echo "$ac_cv_func_shl_load" >&6; }
10044if test "x$ac_cv_func_shl_load" = x""yes; then
10045  lt_cv_dlopen="shl_load"
10046else
10047  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10048$as_echo_n "checking for shl_load in -ldld... " >&6; }
10049if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10050  $as_echo_n "(cached) " >&6
10051else
10052  ac_check_lib_save_LIBS=$LIBS
10053LIBS="-ldld  $LIBS"
10054cat >conftest.$ac_ext <<_ACEOF
10055/* confdefs.h.  */
10056_ACEOF
10057cat confdefs.h >>conftest.$ac_ext
10058cat >>conftest.$ac_ext <<_ACEOF
10059/* end confdefs.h.  */
10060
10061/* Override any GCC internal prototype to avoid an error.
10062   Use char because int might match the return type of a GCC
10063   builtin and then its argument prototype would still apply.  */
10064#ifdef __cplusplus
10065extern "C"
10066#endif
10067char shl_load ();
10068int
10069main ()
10070{
10071return shl_load ();
10072  ;
10073  return 0;
10074}
10075_ACEOF
10076rm -f conftest.$ac_objext conftest$ac_exeext
10077if { (ac_try="$ac_link"
10078case "(($ac_try" in
10079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080  *) ac_try_echo=$ac_try;;
10081esac
10082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10083$as_echo "$ac_try_echo") >&5
10084  (eval "$ac_link") 2>conftest.er1
10085  ac_status=$?
10086  grep -v '^ *+' conftest.er1 >conftest.err
10087  rm -f conftest.er1
10088  cat conftest.err >&5
10089  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090  (exit $ac_status); } && {
10091	 test -z "$ac_c_werror_flag" ||
10092	 test ! -s conftest.err
10093       } && test -s conftest$ac_exeext && {
10094	 test "$cross_compiling" = yes ||
10095	 $as_test_x conftest$ac_exeext
10096       }; then
10097  ac_cv_lib_dld_shl_load=yes
10098else
10099  $as_echo "$as_me: failed program was:" >&5
10100sed 's/^/| /' conftest.$ac_ext >&5
10101
10102	ac_cv_lib_dld_shl_load=no
10103fi
10104
10105rm -rf conftest.dSYM
10106rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10107      conftest$ac_exeext conftest.$ac_ext
10108LIBS=$ac_check_lib_save_LIBS
10109fi
10110{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10111$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10112if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10113  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10114else
10115  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10116$as_echo_n "checking for dlopen... " >&6; }
10117if test "${ac_cv_func_dlopen+set}" = set; then
10118  $as_echo_n "(cached) " >&6
10119else
10120  cat >conftest.$ac_ext <<_ACEOF
10121/* confdefs.h.  */
10122_ACEOF
10123cat confdefs.h >>conftest.$ac_ext
10124cat >>conftest.$ac_ext <<_ACEOF
10125/* end confdefs.h.  */
10126/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10127   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10128#define dlopen innocuous_dlopen
10129
10130/* System header to define __stub macros and hopefully few prototypes,
10131    which can conflict with char dlopen (); below.
10132    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10133    <limits.h> exists even on freestanding compilers.  */
10134
10135#ifdef __STDC__
10136# include <limits.h>
10137#else
10138# include <assert.h>
10139#endif
10140
10141#undef dlopen
10142
10143/* Override any GCC internal prototype to avoid an error.
10144   Use char because int might match the return type of a GCC
10145   builtin and then its argument prototype would still apply.  */
10146#ifdef __cplusplus
10147extern "C"
10148#endif
10149char dlopen ();
10150/* The GNU C library defines this for functions which it implements
10151    to always fail with ENOSYS.  Some functions are actually named
10152    something starting with __ and the normal name is an alias.  */
10153#if defined __stub_dlopen || defined __stub___dlopen
10154choke me
10155#endif
10156
10157int
10158main ()
10159{
10160return dlopen ();
10161  ;
10162  return 0;
10163}
10164_ACEOF
10165rm -f conftest.$ac_objext conftest$ac_exeext
10166if { (ac_try="$ac_link"
10167case "(($ac_try" in
10168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169  *) ac_try_echo=$ac_try;;
10170esac
10171eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10172$as_echo "$ac_try_echo") >&5
10173  (eval "$ac_link") 2>conftest.er1
10174  ac_status=$?
10175  grep -v '^ *+' conftest.er1 >conftest.err
10176  rm -f conftest.er1
10177  cat conftest.err >&5
10178  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179  (exit $ac_status); } && {
10180	 test -z "$ac_c_werror_flag" ||
10181	 test ! -s conftest.err
10182       } && test -s conftest$ac_exeext && {
10183	 test "$cross_compiling" = yes ||
10184	 $as_test_x conftest$ac_exeext
10185       }; then
10186  ac_cv_func_dlopen=yes
10187else
10188  $as_echo "$as_me: failed program was:" >&5
10189sed 's/^/| /' conftest.$ac_ext >&5
10190
10191	ac_cv_func_dlopen=no
10192fi
10193
10194rm -rf conftest.dSYM
10195rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10196      conftest$ac_exeext conftest.$ac_ext
10197fi
10198{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10199$as_echo "$ac_cv_func_dlopen" >&6; }
10200if test "x$ac_cv_func_dlopen" = x""yes; then
10201  lt_cv_dlopen="dlopen"
10202else
10203  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10204$as_echo_n "checking for dlopen in -ldl... " >&6; }
10205if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10206  $as_echo_n "(cached) " >&6
10207else
10208  ac_check_lib_save_LIBS=$LIBS
10209LIBS="-ldl  $LIBS"
10210cat >conftest.$ac_ext <<_ACEOF
10211/* confdefs.h.  */
10212_ACEOF
10213cat confdefs.h >>conftest.$ac_ext
10214cat >>conftest.$ac_ext <<_ACEOF
10215/* end confdefs.h.  */
10216
10217/* Override any GCC internal prototype to avoid an error.
10218   Use char because int might match the return type of a GCC
10219   builtin and then its argument prototype would still apply.  */
10220#ifdef __cplusplus
10221extern "C"
10222#endif
10223char dlopen ();
10224int
10225main ()
10226{
10227return dlopen ();
10228  ;
10229  return 0;
10230}
10231_ACEOF
10232rm -f conftest.$ac_objext conftest$ac_exeext
10233if { (ac_try="$ac_link"
10234case "(($ac_try" in
10235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236  *) ac_try_echo=$ac_try;;
10237esac
10238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10239$as_echo "$ac_try_echo") >&5
10240  (eval "$ac_link") 2>conftest.er1
10241  ac_status=$?
10242  grep -v '^ *+' conftest.er1 >conftest.err
10243  rm -f conftest.er1
10244  cat conftest.err >&5
10245  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246  (exit $ac_status); } && {
10247	 test -z "$ac_c_werror_flag" ||
10248	 test ! -s conftest.err
10249       } && test -s conftest$ac_exeext && {
10250	 test "$cross_compiling" = yes ||
10251	 $as_test_x conftest$ac_exeext
10252       }; then
10253  ac_cv_lib_dl_dlopen=yes
10254else
10255  $as_echo "$as_me: failed program was:" >&5
10256sed 's/^/| /' conftest.$ac_ext >&5
10257
10258	ac_cv_lib_dl_dlopen=no
10259fi
10260
10261rm -rf conftest.dSYM
10262rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10263      conftest$ac_exeext conftest.$ac_ext
10264LIBS=$ac_check_lib_save_LIBS
10265fi
10266{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10267$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10268if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10269  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10270else
10271  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10272$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10273if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10274  $as_echo_n "(cached) " >&6
10275else
10276  ac_check_lib_save_LIBS=$LIBS
10277LIBS="-lsvld  $LIBS"
10278cat >conftest.$ac_ext <<_ACEOF
10279/* confdefs.h.  */
10280_ACEOF
10281cat confdefs.h >>conftest.$ac_ext
10282cat >>conftest.$ac_ext <<_ACEOF
10283/* end confdefs.h.  */
10284
10285/* Override any GCC internal prototype to avoid an error.
10286   Use char because int might match the return type of a GCC
10287   builtin and then its argument prototype would still apply.  */
10288#ifdef __cplusplus
10289extern "C"
10290#endif
10291char dlopen ();
10292int
10293main ()
10294{
10295return dlopen ();
10296  ;
10297  return 0;
10298}
10299_ACEOF
10300rm -f conftest.$ac_objext conftest$ac_exeext
10301if { (ac_try="$ac_link"
10302case "(($ac_try" in
10303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304  *) ac_try_echo=$ac_try;;
10305esac
10306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10307$as_echo "$ac_try_echo") >&5
10308  (eval "$ac_link") 2>conftest.er1
10309  ac_status=$?
10310  grep -v '^ *+' conftest.er1 >conftest.err
10311  rm -f conftest.er1
10312  cat conftest.err >&5
10313  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314  (exit $ac_status); } && {
10315	 test -z "$ac_c_werror_flag" ||
10316	 test ! -s conftest.err
10317       } && test -s conftest$ac_exeext && {
10318	 test "$cross_compiling" = yes ||
10319	 $as_test_x conftest$ac_exeext
10320       }; then
10321  ac_cv_lib_svld_dlopen=yes
10322else
10323  $as_echo "$as_me: failed program was:" >&5
10324sed 's/^/| /' conftest.$ac_ext >&5
10325
10326	ac_cv_lib_svld_dlopen=no
10327fi
10328
10329rm -rf conftest.dSYM
10330rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10331      conftest$ac_exeext conftest.$ac_ext
10332LIBS=$ac_check_lib_save_LIBS
10333fi
10334{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10335$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10336if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10337  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10338else
10339  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10340$as_echo_n "checking for dld_link in -ldld... " >&6; }
10341if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10342  $as_echo_n "(cached) " >&6
10343else
10344  ac_check_lib_save_LIBS=$LIBS
10345LIBS="-ldld  $LIBS"
10346cat >conftest.$ac_ext <<_ACEOF
10347/* confdefs.h.  */
10348_ACEOF
10349cat confdefs.h >>conftest.$ac_ext
10350cat >>conftest.$ac_ext <<_ACEOF
10351/* end confdefs.h.  */
10352
10353/* Override any GCC internal prototype to avoid an error.
10354   Use char because int might match the return type of a GCC
10355   builtin and then its argument prototype would still apply.  */
10356#ifdef __cplusplus
10357extern "C"
10358#endif
10359char dld_link ();
10360int
10361main ()
10362{
10363return dld_link ();
10364  ;
10365  return 0;
10366}
10367_ACEOF
10368rm -f conftest.$ac_objext conftest$ac_exeext
10369if { (ac_try="$ac_link"
10370case "(($ac_try" in
10371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10372  *) ac_try_echo=$ac_try;;
10373esac
10374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10375$as_echo "$ac_try_echo") >&5
10376  (eval "$ac_link") 2>conftest.er1
10377  ac_status=$?
10378  grep -v '^ *+' conftest.er1 >conftest.err
10379  rm -f conftest.er1
10380  cat conftest.err >&5
10381  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382  (exit $ac_status); } && {
10383	 test -z "$ac_c_werror_flag" ||
10384	 test ! -s conftest.err
10385       } && test -s conftest$ac_exeext && {
10386	 test "$cross_compiling" = yes ||
10387	 $as_test_x conftest$ac_exeext
10388       }; then
10389  ac_cv_lib_dld_dld_link=yes
10390else
10391  $as_echo "$as_me: failed program was:" >&5
10392sed 's/^/| /' conftest.$ac_ext >&5
10393
10394	ac_cv_lib_dld_dld_link=no
10395fi
10396
10397rm -rf conftest.dSYM
10398rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10399      conftest$ac_exeext conftest.$ac_ext
10400LIBS=$ac_check_lib_save_LIBS
10401fi
10402{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10403$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10404if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10405  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10406fi
10407
10408
10409fi
10410
10411
10412fi
10413
10414
10415fi
10416
10417
10418fi
10419
10420
10421fi
10422
10423    ;;
10424  esac
10425
10426  if test "x$lt_cv_dlopen" != xno; then
10427    enable_dlopen=yes
10428  else
10429    enable_dlopen=no
10430  fi
10431
10432  case $lt_cv_dlopen in
10433  dlopen)
10434    save_CPPFLAGS="$CPPFLAGS"
10435    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10436
10437    save_LDFLAGS="$LDFLAGS"
10438    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10439
10440    save_LIBS="$LIBS"
10441    LIBS="$lt_cv_dlopen_libs $LIBS"
10442
10443    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10444$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10445if test "${lt_cv_dlopen_self+set}" = set; then
10446  $as_echo_n "(cached) " >&6
10447else
10448  	  if test "$cross_compiling" = yes; then :
10449  lt_cv_dlopen_self=cross
10450else
10451  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10452  lt_status=$lt_dlunknown
10453  cat > conftest.$ac_ext <<EOF
10454#line 10454 "configure"
10455#include "confdefs.h"
10456
10457#if HAVE_DLFCN_H
10458#include <dlfcn.h>
10459#endif
10460
10461#include <stdio.h>
10462
10463#ifdef RTLD_GLOBAL
10464#  define LT_DLGLOBAL		RTLD_GLOBAL
10465#else
10466#  ifdef DL_GLOBAL
10467#    define LT_DLGLOBAL		DL_GLOBAL
10468#  else
10469#    define LT_DLGLOBAL		0
10470#  endif
10471#endif
10472
10473/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10474   find out it does not work in some platform. */
10475#ifndef LT_DLLAZY_OR_NOW
10476#  ifdef RTLD_LAZY
10477#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10478#  else
10479#    ifdef DL_LAZY
10480#      define LT_DLLAZY_OR_NOW		DL_LAZY
10481#    else
10482#      ifdef RTLD_NOW
10483#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10484#      else
10485#        ifdef DL_NOW
10486#          define LT_DLLAZY_OR_NOW	DL_NOW
10487#        else
10488#          define LT_DLLAZY_OR_NOW	0
10489#        endif
10490#      endif
10491#    endif
10492#  endif
10493#endif
10494
10495#ifdef __cplusplus
10496extern "C" void exit (int);
10497#endif
10498
10499void fnord() { int i=42;}
10500int main ()
10501{
10502  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10503  int status = $lt_dlunknown;
10504
10505  if (self)
10506    {
10507      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10508      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10509      /* dlclose (self); */
10510    }
10511  else
10512    puts (dlerror ());
10513
10514    exit (status);
10515}
10516EOF
10517  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10518  (eval $ac_link) 2>&5
10519  ac_status=$?
10520  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10522    (./conftest; exit; ) >&5 2>/dev/null
10523    lt_status=$?
10524    case x$lt_status in
10525      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10526      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10527      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10528    esac
10529  else :
10530    # compilation failed
10531    lt_cv_dlopen_self=no
10532  fi
10533fi
10534rm -fr conftest*
10535
10536
10537fi
10538{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10539$as_echo "$lt_cv_dlopen_self" >&6; }
10540
10541    if test "x$lt_cv_dlopen_self" = xyes; then
10542      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10543      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10544$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10545if test "${lt_cv_dlopen_self_static+set}" = set; then
10546  $as_echo_n "(cached) " >&6
10547else
10548  	  if test "$cross_compiling" = yes; then :
10549  lt_cv_dlopen_self_static=cross
10550else
10551  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10552  lt_status=$lt_dlunknown
10553  cat > conftest.$ac_ext <<EOF
10554#line 10554 "configure"
10555#include "confdefs.h"
10556
10557#if HAVE_DLFCN_H
10558#include <dlfcn.h>
10559#endif
10560
10561#include <stdio.h>
10562
10563#ifdef RTLD_GLOBAL
10564#  define LT_DLGLOBAL		RTLD_GLOBAL
10565#else
10566#  ifdef DL_GLOBAL
10567#    define LT_DLGLOBAL		DL_GLOBAL
10568#  else
10569#    define LT_DLGLOBAL		0
10570#  endif
10571#endif
10572
10573/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10574   find out it does not work in some platform. */
10575#ifndef LT_DLLAZY_OR_NOW
10576#  ifdef RTLD_LAZY
10577#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10578#  else
10579#    ifdef DL_LAZY
10580#      define LT_DLLAZY_OR_NOW		DL_LAZY
10581#    else
10582#      ifdef RTLD_NOW
10583#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10584#      else
10585#        ifdef DL_NOW
10586#          define LT_DLLAZY_OR_NOW	DL_NOW
10587#        else
10588#          define LT_DLLAZY_OR_NOW	0
10589#        endif
10590#      endif
10591#    endif
10592#  endif
10593#endif
10594
10595#ifdef __cplusplus
10596extern "C" void exit (int);
10597#endif
10598
10599void fnord() { int i=42;}
10600int main ()
10601{
10602  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10603  int status = $lt_dlunknown;
10604
10605  if (self)
10606    {
10607      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10608      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10609      /* dlclose (self); */
10610    }
10611  else
10612    puts (dlerror ());
10613
10614    exit (status);
10615}
10616EOF
10617  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10618  (eval $ac_link) 2>&5
10619  ac_status=$?
10620  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10622    (./conftest; exit; ) >&5 2>/dev/null
10623    lt_status=$?
10624    case x$lt_status in
10625      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10626      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10627      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10628    esac
10629  else :
10630    # compilation failed
10631    lt_cv_dlopen_self_static=no
10632  fi
10633fi
10634rm -fr conftest*
10635
10636
10637fi
10638{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10639$as_echo "$lt_cv_dlopen_self_static" >&6; }
10640    fi
10641
10642    CPPFLAGS="$save_CPPFLAGS"
10643    LDFLAGS="$save_LDFLAGS"
10644    LIBS="$save_LIBS"
10645    ;;
10646  esac
10647
10648  case $lt_cv_dlopen_self in
10649  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10650  *) enable_dlopen_self=unknown ;;
10651  esac
10652
10653  case $lt_cv_dlopen_self_static in
10654  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10655  *) enable_dlopen_self_static=unknown ;;
10656  esac
10657fi
10658
10659
10660# Report which library types will actually be built
10661{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10662$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10663{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10664$as_echo "$can_build_shared" >&6; }
10665
10666{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10667$as_echo_n "checking whether to build shared libraries... " >&6; }
10668test "$can_build_shared" = "no" && enable_shared=no
10669
10670# On AIX, shared libraries and static libraries use the same namespace, and
10671# are all built from PIC.
10672case $host_os in
10673aix3*)
10674  test "$enable_shared" = yes && enable_static=no
10675  if test -n "$RANLIB"; then
10676    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10677    postinstall_cmds='$RANLIB $lib'
10678  fi
10679  ;;
10680
10681aix[4-9]*)
10682  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10683    test "$enable_shared" = yes && enable_static=no
10684  fi
10685    ;;
10686esac
10687{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10688$as_echo "$enable_shared" >&6; }
10689
10690{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10691$as_echo_n "checking whether to build static libraries... " >&6; }
10692# Make sure either enable_shared or enable_static is yes.
10693test "$enable_shared" = yes || enable_static=yes
10694{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10695$as_echo "$enable_static" >&6; }
10696
10697# The else clause should only fire when bootstrapping the
10698# libtool distribution, otherwise you forgot to ship ltmain.sh
10699# with your package, and you will get complaints that there are
10700# no rules to generate ltmain.sh.
10701if test -f "$ltmain"; then
10702  # See if we are running on zsh, and set the options which allow our commands through
10703  # without removal of \ escapes.
10704  if test -n "${ZSH_VERSION+set}" ; then
10705    setopt NO_GLOB_SUBST
10706  fi
10707  # Now quote all the things that may contain metacharacters while being
10708  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10709  # variables and quote the copies for generation of the libtool script.
10710  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10711    SED SHELL STRIP \
10712    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10713    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10714    deplibs_check_method reload_flag reload_cmds need_locks \
10715    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10716    lt_cv_sys_global_symbol_to_c_name_address \
10717    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10718    old_postinstall_cmds old_postuninstall_cmds \
10719    compiler \
10720    CC \
10721    LD \
10722    lt_prog_compiler_wl \
10723    lt_prog_compiler_pic \
10724    lt_prog_compiler_static \
10725    lt_prog_compiler_no_builtin_flag \
10726    export_dynamic_flag_spec \
10727    thread_safe_flag_spec \
10728    whole_archive_flag_spec \
10729    enable_shared_with_static_runtimes \
10730    old_archive_cmds \
10731    old_archive_from_new_cmds \
10732    predep_objects \
10733    postdep_objects \
10734    predeps \
10735    postdeps \
10736    compiler_lib_search_path \
10737    compiler_lib_search_dirs \
10738    archive_cmds \
10739    archive_expsym_cmds \
10740    postinstall_cmds \
10741    postuninstall_cmds \
10742    old_archive_from_expsyms_cmds \
10743    allow_undefined_flag \
10744    no_undefined_flag \
10745    export_symbols_cmds \
10746    hardcode_libdir_flag_spec \
10747    hardcode_libdir_flag_spec_ld \
10748    hardcode_libdir_separator \
10749    hardcode_automatic \
10750    module_cmds \
10751    module_expsym_cmds \
10752    lt_cv_prog_compiler_c_o \
10753    fix_srcfile_path \
10754    exclude_expsyms \
10755    include_expsyms; do
10756
10757    case $var in
10758    old_archive_cmds | \
10759    old_archive_from_new_cmds | \
10760    archive_cmds | \
10761    archive_expsym_cmds | \
10762    module_cmds | \
10763    module_expsym_cmds | \
10764    old_archive_from_expsyms_cmds | \
10765    export_symbols_cmds | \
10766    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10767    postinstall_cmds | postuninstall_cmds | \
10768    old_postinstall_cmds | old_postuninstall_cmds | \
10769    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10770      # Double-quote double-evaled strings.
10771      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10772      ;;
10773    *)
10774      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10775      ;;
10776    esac
10777  done
10778
10779  case $lt_echo in
10780  *'\$0 --fallback-echo"')
10781    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10782    ;;
10783  esac
10784
10785cfgfile="${ofile}T"
10786  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10787  $rm -f "$cfgfile"
10788  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10789$as_echo "$as_me: creating $ofile" >&6;}
10790
10791  cat <<__EOF__ >> "$cfgfile"
10792#! $SHELL
10793
10794# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10795# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10796# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10797#
10798# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10799# Free Software Foundation, Inc.
10800#
10801# This file is part of GNU Libtool:
10802# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10803#
10804# This program is free software; you can redistribute it and/or modify
10805# it under the terms of the GNU General Public License as published by
10806# the Free Software Foundation; either version 2 of the License, or
10807# (at your option) any later version.
10808#
10809# This program is distributed in the hope that it will be useful, but
10810# WITHOUT ANY WARRANTY; without even the implied warranty of
10811# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10812# General Public License for more details.
10813#
10814# You should have received a copy of the GNU General Public License
10815# along with this program; if not, write to the Free Software
10816# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10817#
10818# As a special exception to the GNU General Public License, if you
10819# distribute this file as part of a program that contains a
10820# configuration script generated by Autoconf, you may include it under
10821# the same distribution terms that you use for the rest of that program.
10822
10823# A sed program that does not truncate output.
10824SED=$lt_SED
10825
10826# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10827Xsed="$SED -e 1s/^X//"
10828
10829# The HP-UX ksh and POSIX shell print the target directory to stdout
10830# if CDPATH is set.
10831(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10832
10833# The names of the tagged configurations supported by this script.
10834available_tags=
10835
10836# ### BEGIN LIBTOOL CONFIG
10837
10838# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10839
10840# Shell to use when invoking shell scripts.
10841SHELL=$lt_SHELL
10842
10843# Whether or not to build shared libraries.
10844build_libtool_libs=$enable_shared
10845
10846# Whether or not to build static libraries.
10847build_old_libs=$enable_static
10848
10849# Whether or not to add -lc for building shared libraries.
10850build_libtool_need_lc=$archive_cmds_need_lc
10851
10852# Whether or not to disallow shared libs when runtime libs are static
10853allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10854
10855# Whether or not to optimize for fast installation.
10856fast_install=$enable_fast_install
10857
10858# The host system.
10859host_alias=$host_alias
10860host=$host
10861host_os=$host_os
10862
10863# The build system.
10864build_alias=$build_alias
10865build=$build
10866build_os=$build_os
10867
10868# An echo program that does not interpret backslashes.
10869echo=$lt_echo
10870
10871# The archiver.
10872AR=$lt_AR
10873AR_FLAGS=$lt_AR_FLAGS
10874
10875# A C compiler.
10876LTCC=$lt_LTCC
10877
10878# LTCC compiler flags.
10879LTCFLAGS=$lt_LTCFLAGS
10880
10881# A language-specific compiler.
10882CC=$lt_compiler
10883
10884# Is the compiler the GNU C compiler?
10885with_gcc=$GCC
10886
10887# An ERE matcher.
10888EGREP=$lt_EGREP
10889
10890# The linker used to build libraries.
10891LD=$lt_LD
10892
10893# Whether we need hard or soft links.
10894LN_S=$lt_LN_S
10895
10896# A BSD-compatible nm program.
10897NM=$lt_NM
10898
10899# A symbol stripping program
10900STRIP=$lt_STRIP
10901
10902# Used to examine libraries when file_magic_cmd begins "file"
10903MAGIC_CMD=$MAGIC_CMD
10904
10905# Used on cygwin: DLL creation program.
10906DLLTOOL="$DLLTOOL"
10907
10908# Used on cygwin: object dumper.
10909OBJDUMP="$OBJDUMP"
10910
10911# Used on cygwin: assembler.
10912AS="$AS"
10913
10914# The name of the directory that contains temporary libtool files.
10915objdir=$objdir
10916
10917# How to create reloadable object files.
10918reload_flag=$lt_reload_flag
10919reload_cmds=$lt_reload_cmds
10920
10921# How to pass a linker flag through the compiler.
10922wl=$lt_lt_prog_compiler_wl
10923
10924# Object file suffix (normally "o").
10925objext="$ac_objext"
10926
10927# Old archive suffix (normally "a").
10928libext="$libext"
10929
10930# Shared library suffix (normally ".so").
10931shrext_cmds='$shrext_cmds'
10932
10933# Executable file suffix (normally "").
10934exeext="$exeext"
10935
10936# Additional compiler flags for building library objects.
10937pic_flag=$lt_lt_prog_compiler_pic
10938pic_mode=$pic_mode
10939
10940# What is the maximum length of a command?
10941max_cmd_len=$lt_cv_sys_max_cmd_len
10942
10943# Does compiler simultaneously support -c and -o options?
10944compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10945
10946# Must we lock files when doing compilation?
10947need_locks=$lt_need_locks
10948
10949# Do we need the lib prefix for modules?
10950need_lib_prefix=$need_lib_prefix
10951
10952# Do we need a version for libraries?
10953need_version=$need_version
10954
10955# Whether dlopen is supported.
10956dlopen_support=$enable_dlopen
10957
10958# Whether dlopen of programs is supported.
10959dlopen_self=$enable_dlopen_self
10960
10961# Whether dlopen of statically linked programs is supported.
10962dlopen_self_static=$enable_dlopen_self_static
10963
10964# Compiler flag to prevent dynamic linking.
10965link_static_flag=$lt_lt_prog_compiler_static
10966
10967# Compiler flag to turn off builtin functions.
10968no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10969
10970# Compiler flag to allow reflexive dlopens.
10971export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10972
10973# Compiler flag to generate shared objects directly from archives.
10974whole_archive_flag_spec=$lt_whole_archive_flag_spec
10975
10976# Compiler flag to generate thread-safe objects.
10977thread_safe_flag_spec=$lt_thread_safe_flag_spec
10978
10979# Library versioning type.
10980version_type=$version_type
10981
10982# Format of library name prefix.
10983libname_spec=$lt_libname_spec
10984
10985# List of archive names.  First name is the real one, the rest are links.
10986# The last name is the one that the linker finds with -lNAME.
10987library_names_spec=$lt_library_names_spec
10988
10989# The coded name of the library, if different from the real name.
10990soname_spec=$lt_soname_spec
10991
10992# Commands used to build and install an old-style archive.
10993RANLIB=$lt_RANLIB
10994old_archive_cmds=$lt_old_archive_cmds
10995old_postinstall_cmds=$lt_old_postinstall_cmds
10996old_postuninstall_cmds=$lt_old_postuninstall_cmds
10997
10998# Create an old-style archive from a shared archive.
10999old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11000
11001# Create a temporary old-style archive to link instead of a shared archive.
11002old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11003
11004# Commands used to build and install a shared archive.
11005archive_cmds=$lt_archive_cmds
11006archive_expsym_cmds=$lt_archive_expsym_cmds
11007postinstall_cmds=$lt_postinstall_cmds
11008postuninstall_cmds=$lt_postuninstall_cmds
11009
11010# Commands used to build a loadable module (assumed same as above if empty)
11011module_cmds=$lt_module_cmds
11012module_expsym_cmds=$lt_module_expsym_cmds
11013
11014# Commands to strip libraries.
11015old_striplib=$lt_old_striplib
11016striplib=$lt_striplib
11017
11018# Dependencies to place before the objects being linked to create a
11019# shared library.
11020predep_objects=$lt_predep_objects
11021
11022# Dependencies to place after the objects being linked to create a
11023# shared library.
11024postdep_objects=$lt_postdep_objects
11025
11026# Dependencies to place before the objects being linked to create a
11027# shared library.
11028predeps=$lt_predeps
11029
11030# Dependencies to place after the objects being linked to create a
11031# shared library.
11032postdeps=$lt_postdeps
11033
11034# The directories searched by this compiler when creating a shared
11035# library
11036compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11037
11038# The library search path used internally by the compiler when linking
11039# a shared library.
11040compiler_lib_search_path=$lt_compiler_lib_search_path
11041
11042# Method to check whether dependent libraries are shared objects.
11043deplibs_check_method=$lt_deplibs_check_method
11044
11045# Command to use when deplibs_check_method == file_magic.
11046file_magic_cmd=$lt_file_magic_cmd
11047
11048# Flag that allows shared libraries with undefined symbols to be built.
11049allow_undefined_flag=$lt_allow_undefined_flag
11050
11051# Flag that forces no undefined symbols.
11052no_undefined_flag=$lt_no_undefined_flag
11053
11054# Commands used to finish a libtool library installation in a directory.
11055finish_cmds=$lt_finish_cmds
11056
11057# Same as above, but a single script fragment to be evaled but not shown.
11058finish_eval=$lt_finish_eval
11059
11060# Take the output of nm and produce a listing of raw symbols and C names.
11061global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11062
11063# Transform the output of nm in a proper C declaration
11064global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11065
11066# Transform the output of nm in a C name address pair
11067global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11068
11069# This is the shared library runtime path variable.
11070runpath_var=$runpath_var
11071
11072# This is the shared library path variable.
11073shlibpath_var=$shlibpath_var
11074
11075# Is shlibpath searched before the hard-coded library search path?
11076shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11077
11078# How to hardcode a shared library path into an executable.
11079hardcode_action=$hardcode_action
11080
11081# Whether we should hardcode library paths into libraries.
11082hardcode_into_libs=$hardcode_into_libs
11083
11084# Flag to hardcode \$libdir into a binary during linking.
11085# This must work even if \$libdir does not exist.
11086hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11087
11088# If ld is used when linking, flag to hardcode \$libdir into
11089# a binary during linking. This must work even if \$libdir does
11090# not exist.
11091hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11092
11093# Whether we need a single -rpath flag with a separated argument.
11094hardcode_libdir_separator=$lt_hardcode_libdir_separator
11095
11096# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11097# resulting binary.
11098hardcode_direct=$hardcode_direct
11099
11100# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11101# resulting binary.
11102hardcode_minus_L=$hardcode_minus_L
11103
11104# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11105# the resulting binary.
11106hardcode_shlibpath_var=$hardcode_shlibpath_var
11107
11108# Set to yes if building a shared library automatically hardcodes DIR into the library
11109# and all subsequent libraries and executables linked against it.
11110hardcode_automatic=$hardcode_automatic
11111
11112# Variables whose values should be saved in libtool wrapper scripts and
11113# restored at relink time.
11114variables_saved_for_relink="$variables_saved_for_relink"
11115
11116# Whether libtool must link a program against all its dependency libraries.
11117link_all_deplibs=$link_all_deplibs
11118
11119# Compile-time system search path for libraries
11120sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11121
11122# Run-time system search path for libraries
11123sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11124
11125# Fix the shell variable \$srcfile for the compiler.
11126fix_srcfile_path=$lt_fix_srcfile_path
11127
11128# Set to yes if exported symbols are required.
11129always_export_symbols=$always_export_symbols
11130
11131# The commands to list exported symbols.
11132export_symbols_cmds=$lt_export_symbols_cmds
11133
11134# The commands to extract the exported symbol list from a shared archive.
11135extract_expsyms_cmds=$lt_extract_expsyms_cmds
11136
11137# Symbols that should not be listed in the preloaded symbols.
11138exclude_expsyms=$lt_exclude_expsyms
11139
11140# Symbols that must always be exported.
11141include_expsyms=$lt_include_expsyms
11142
11143# ### END LIBTOOL CONFIG
11144
11145__EOF__
11146
11147
11148  case $host_os in
11149  aix3*)
11150    cat <<\EOF >> "$cfgfile"
11151
11152# AIX sometimes has problems with the GCC collect2 program.  For some
11153# reason, if we set the COLLECT_NAMES environment variable, the problems
11154# vanish in a puff of smoke.
11155if test "X${COLLECT_NAMES+set}" != Xset; then
11156  COLLECT_NAMES=
11157  export COLLECT_NAMES
11158fi
11159EOF
11160    ;;
11161  esac
11162
11163  # We use sed instead of cat because bash on DJGPP gets confused if
11164  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11165  # text mode, it properly converts lines to CR/LF.  This bash problem
11166  # is reportedly fixed, but why not run on old versions too?
11167  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11168
11169  mv -f "$cfgfile" "$ofile" || \
11170    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11171  chmod +x "$ofile"
11172
11173else
11174  # If there is no Makefile yet, we rely on a make rule to execute
11175  # `config.status --recheck' to rerun these tests and create the
11176  # libtool script then.
11177  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11178  if test -f "$ltmain_in"; then
11179    test -f Makefile && make "$ltmain"
11180  fi
11181fi
11182
11183
11184ac_ext=c
11185ac_cpp='$CPP $CPPFLAGS'
11186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11188ac_compiler_gnu=$ac_cv_c_compiler_gnu
11189
11190CC="$lt_save_CC"
11191
11192
11193# Check whether --with-tags was given.
11194if test "${with_tags+set}" = set; then
11195  withval=$with_tags; tagnames="$withval"
11196fi
11197
11198
11199if test -f "$ltmain" && test -n "$tagnames"; then
11200  if test ! -f "${ofile}"; then
11201    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11202$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11203  fi
11204
11205  if test -z "$LTCC"; then
11206    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11207    if test -z "$LTCC"; then
11208      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11209$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11210    else
11211      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11212$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11213    fi
11214  fi
11215  if test -z "$LTCFLAGS"; then
11216    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11217  fi
11218
11219  # Extract list of available tagged configurations in $ofile.
11220  # Note that this assumes the entire list is on one line.
11221  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11222
11223  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11224  for tagname in $tagnames; do
11225    IFS="$lt_save_ifs"
11226    # Check whether tagname contains only valid characters
11227    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11228    "") ;;
11229    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11230$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11231   { (exit 1); exit 1; }; }
11232	;;
11233    esac
11234
11235    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11236    then
11237      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11238$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11239   { (exit 1); exit 1; }; }
11240    fi
11241
11242    # Update the list of available tags.
11243    if test -n "$tagname"; then
11244      echo appending configuration tag \"$tagname\" to $ofile
11245
11246      case $tagname in
11247      CXX)
11248	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11249	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11250	    (test "X$CXX" != "Xg++"))) ; then
11251	  ac_ext=cpp
11252ac_cpp='$CXXCPP $CPPFLAGS'
11253ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11254ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11255ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11256
11257
11258
11259
11260archive_cmds_need_lc_CXX=no
11261allow_undefined_flag_CXX=
11262always_export_symbols_CXX=no
11263archive_expsym_cmds_CXX=
11264export_dynamic_flag_spec_CXX=
11265hardcode_direct_CXX=no
11266hardcode_libdir_flag_spec_CXX=
11267hardcode_libdir_flag_spec_ld_CXX=
11268hardcode_libdir_separator_CXX=
11269hardcode_minus_L_CXX=no
11270hardcode_shlibpath_var_CXX=unsupported
11271hardcode_automatic_CXX=no
11272module_cmds_CXX=
11273module_expsym_cmds_CXX=
11274link_all_deplibs_CXX=unknown
11275old_archive_cmds_CXX=$old_archive_cmds
11276no_undefined_flag_CXX=
11277whole_archive_flag_spec_CXX=
11278enable_shared_with_static_runtimes_CXX=no
11279
11280# Dependencies to place before and after the object being linked:
11281predep_objects_CXX=
11282postdep_objects_CXX=
11283predeps_CXX=
11284postdeps_CXX=
11285compiler_lib_search_path_CXX=
11286compiler_lib_search_dirs_CXX=
11287
11288# Source file extension for C++ test sources.
11289ac_ext=cpp
11290
11291# Object file extension for compiled C++ test sources.
11292objext=o
11293objext_CXX=$objext
11294
11295# Code to be used in simple compile tests
11296lt_simple_compile_test_code="int some_variable = 0;"
11297
11298# Code to be used in simple link tests
11299lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11300
11301# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11302
11303# If no C compiler was specified, use CC.
11304LTCC=${LTCC-"$CC"}
11305
11306# If no C compiler flags were specified, use CFLAGS.
11307LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11308
11309# Allow CC to be a program name with arguments.
11310compiler=$CC
11311
11312
11313# save warnings/boilerplate of simple test code
11314ac_outfile=conftest.$ac_objext
11315echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11316eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11317_lt_compiler_boilerplate=`cat conftest.err`
11318$rm conftest*
11319
11320ac_outfile=conftest.$ac_objext
11321echo "$lt_simple_link_test_code" >conftest.$ac_ext
11322eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11323_lt_linker_boilerplate=`cat conftest.err`
11324$rm -r conftest*
11325
11326
11327# Allow CC to be a program name with arguments.
11328lt_save_CC=$CC
11329lt_save_LD=$LD
11330lt_save_GCC=$GCC
11331GCC=$GXX
11332lt_save_with_gnu_ld=$with_gnu_ld
11333lt_save_path_LD=$lt_cv_path_LD
11334if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11335  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11336else
11337  $as_unset lt_cv_prog_gnu_ld
11338fi
11339if test -n "${lt_cv_path_LDCXX+set}"; then
11340  lt_cv_path_LD=$lt_cv_path_LDCXX
11341else
11342  $as_unset lt_cv_path_LD
11343fi
11344test -z "${LDCXX+set}" || LD=$LDCXX
11345CC=${CXX-"c++"}
11346compiler=$CC
11347compiler_CXX=$CC
11348for cc_temp in $compiler""; do
11349  case $cc_temp in
11350    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11351    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11352    \-*) ;;
11353    *) break;;
11354  esac
11355done
11356cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11357
11358
11359# We don't want -fno-exception wen compiling C++ code, so set the
11360# no_builtin_flag separately
11361if test "$GXX" = yes; then
11362  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11363else
11364  lt_prog_compiler_no_builtin_flag_CXX=
11365fi
11366
11367if test "$GXX" = yes; then
11368  # Set up default GNU C++ configuration
11369
11370
11371# Check whether --with-gnu-ld was given.
11372if test "${with_gnu_ld+set}" = set; then
11373  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11374else
11375  with_gnu_ld=no
11376fi
11377
11378ac_prog=ld
11379if test "$GCC" = yes; then
11380  # Check if gcc -print-prog-name=ld gives a path.
11381  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11382$as_echo_n "checking for ld used by $CC... " >&6; }
11383  case $host in
11384  *-*-mingw*)
11385    # gcc leaves a trailing carriage return which upsets mingw
11386    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11387  *)
11388    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11389  esac
11390  case $ac_prog in
11391    # Accept absolute paths.
11392    [\\/]* | ?:[\\/]*)
11393      re_direlt='/[^/][^/]*/\.\./'
11394      # Canonicalize the pathname of ld
11395      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11396      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11397	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11398      done
11399      test -z "$LD" && LD="$ac_prog"
11400      ;;
11401  "")
11402    # If it fails, then pretend we aren't using GCC.
11403    ac_prog=ld
11404    ;;
11405  *)
11406    # If it is relative, then search for the first ld in PATH.
11407    with_gnu_ld=unknown
11408    ;;
11409  esac
11410elif test "$with_gnu_ld" = yes; then
11411  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11412$as_echo_n "checking for GNU ld... " >&6; }
11413else
11414  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11415$as_echo_n "checking for non-GNU ld... " >&6; }
11416fi
11417if test "${lt_cv_path_LD+set}" = set; then
11418  $as_echo_n "(cached) " >&6
11419else
11420  if test -z "$LD"; then
11421  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11422  for ac_dir in $PATH; do
11423    IFS="$lt_save_ifs"
11424    test -z "$ac_dir" && ac_dir=.
11425    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11426      lt_cv_path_LD="$ac_dir/$ac_prog"
11427      # Check to see if the program is GNU ld.  I'd rather use --version,
11428      # but apparently some variants of GNU ld only accept -v.
11429      # Break only if it was the GNU/non-GNU ld that we prefer.
11430      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11431      *GNU* | *'with BFD'*)
11432	test "$with_gnu_ld" != no && break
11433	;;
11434      *)
11435	test "$with_gnu_ld" != yes && break
11436	;;
11437      esac
11438    fi
11439  done
11440  IFS="$lt_save_ifs"
11441else
11442  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11443fi
11444fi
11445
11446LD="$lt_cv_path_LD"
11447if test -n "$LD"; then
11448  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11449$as_echo "$LD" >&6; }
11450else
11451  { $as_echo "$as_me:$LINENO: result: no" >&5
11452$as_echo "no" >&6; }
11453fi
11454test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11455$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11456   { (exit 1); exit 1; }; }
11457{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11458$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11459if test "${lt_cv_prog_gnu_ld+set}" = set; then
11460  $as_echo_n "(cached) " >&6
11461else
11462  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11463case `$LD -v 2>&1 </dev/null` in
11464*GNU* | *'with BFD'*)
11465  lt_cv_prog_gnu_ld=yes
11466  ;;
11467*)
11468  lt_cv_prog_gnu_ld=no
11469  ;;
11470esac
11471fi
11472{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11473$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11474with_gnu_ld=$lt_cv_prog_gnu_ld
11475
11476
11477
11478  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11479  # archiving commands below assume that GNU ld is being used.
11480  if test "$with_gnu_ld" = yes; then
11481    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11482    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'
11483
11484    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11485    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11486
11487    # If archive_cmds runs LD, not CC, wlarc should be empty
11488    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11489    #     investigate it a little bit more. (MM)
11490    wlarc='${wl}'
11491
11492    # ancient GNU ld didn't support --whole-archive et. al.
11493    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11494	grep 'no-whole-archive' > /dev/null; then
11495      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11496    else
11497      whole_archive_flag_spec_CXX=
11498    fi
11499  else
11500    with_gnu_ld=no
11501    wlarc=
11502
11503    # A generic and very simple default shared library creation
11504    # command for GNU C++ for the case where it uses the native
11505    # linker, instead of GNU ld.  If possible, this setting should
11506    # overridden to take advantage of the native linker features on
11507    # the platform it is being used on.
11508    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11509  fi
11510
11511  # Commands to make compiler produce verbose output that lists
11512  # what "hidden" libraries, object files and flags are used when
11513  # linking a shared library.
11514  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11515
11516else
11517  GXX=no
11518  with_gnu_ld=no
11519  wlarc=
11520fi
11521
11522# PORTME: fill in a description of your system's C++ link characteristics
11523{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11524$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11525ld_shlibs_CXX=yes
11526case $host_os in
11527  aix3*)
11528    # FIXME: insert proper C++ library support
11529    ld_shlibs_CXX=no
11530    ;;
11531  aix[4-9]*)
11532    if test "$host_cpu" = ia64; then
11533      # On IA64, the linker does run time linking by default, so we don't
11534      # have to do anything special.
11535      aix_use_runtimelinking=no
11536      exp_sym_flag='-Bexport'
11537      no_entry_flag=""
11538    else
11539      aix_use_runtimelinking=no
11540
11541      # Test if we are trying to use run time linking or normal
11542      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11543      # need to do runtime linking.
11544      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11545	for ld_flag in $LDFLAGS; do
11546	  case $ld_flag in
11547	  *-brtl*)
11548	    aix_use_runtimelinking=yes
11549	    break
11550	    ;;
11551	  esac
11552	done
11553	;;
11554      esac
11555
11556      exp_sym_flag='-bexport'
11557      no_entry_flag='-bnoentry'
11558    fi
11559
11560    # When large executables or shared objects are built, AIX ld can
11561    # have problems creating the table of contents.  If linking a library
11562    # or program results in "error TOC overflow" add -mminimal-toc to
11563    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11564    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11565
11566    archive_cmds_CXX=''
11567    hardcode_direct_CXX=yes
11568    hardcode_libdir_separator_CXX=':'
11569    link_all_deplibs_CXX=yes
11570
11571    if test "$GXX" = yes; then
11572      case $host_os in aix4.[012]|aix4.[012].*)
11573      # We only want to do this on AIX 4.2 and lower, the check
11574      # below for broken collect2 doesn't work under 4.3+
11575	collect2name=`${CC} -print-prog-name=collect2`
11576	if test -f "$collect2name" && \
11577	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11578	then
11579	  # We have reworked collect2
11580	  :
11581	else
11582	  # We have old collect2
11583	  hardcode_direct_CXX=unsupported
11584	  # It fails to find uninstalled libraries when the uninstalled
11585	  # path is not listed in the libpath.  Setting hardcode_minus_L
11586	  # to unsupported forces relinking
11587	  hardcode_minus_L_CXX=yes
11588	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11589	  hardcode_libdir_separator_CXX=
11590	fi
11591	;;
11592      esac
11593      shared_flag='-shared'
11594      if test "$aix_use_runtimelinking" = yes; then
11595	shared_flag="$shared_flag "'${wl}-G'
11596      fi
11597    else
11598      # not using gcc
11599      if test "$host_cpu" = ia64; then
11600	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11601	# chokes on -Wl,-G. The following line is correct:
11602	shared_flag='-G'
11603      else
11604	if test "$aix_use_runtimelinking" = yes; then
11605	  shared_flag='${wl}-G'
11606	else
11607	  shared_flag='${wl}-bM:SRE'
11608	fi
11609      fi
11610    fi
11611
11612    # It seems that -bexpall does not export symbols beginning with
11613    # underscore (_), so it is better to generate a list of symbols to export.
11614    always_export_symbols_CXX=yes
11615    if test "$aix_use_runtimelinking" = yes; then
11616      # Warning - without using the other runtime loading flags (-brtl),
11617      # -berok will link without error, but may produce a broken library.
11618      allow_undefined_flag_CXX='-berok'
11619      # Determine the default libpath from the value encoded in an empty executable.
11620      cat >conftest.$ac_ext <<_ACEOF
11621/* confdefs.h.  */
11622_ACEOF
11623cat confdefs.h >>conftest.$ac_ext
11624cat >>conftest.$ac_ext <<_ACEOF
11625/* end confdefs.h.  */
11626
11627int
11628main ()
11629{
11630
11631  ;
11632  return 0;
11633}
11634_ACEOF
11635rm -f conftest.$ac_objext conftest$ac_exeext
11636if { (ac_try="$ac_link"
11637case "(($ac_try" in
11638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11639  *) ac_try_echo=$ac_try;;
11640esac
11641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11642$as_echo "$ac_try_echo") >&5
11643  (eval "$ac_link") 2>conftest.er1
11644  ac_status=$?
11645  grep -v '^ *+' conftest.er1 >conftest.err
11646  rm -f conftest.er1
11647  cat conftest.err >&5
11648  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649  (exit $ac_status); } && {
11650	 test -z "$ac_cxx_werror_flag" ||
11651	 test ! -s conftest.err
11652       } && test -s conftest$ac_exeext && {
11653	 test "$cross_compiling" = yes ||
11654	 $as_test_x conftest$ac_exeext
11655       }; then
11656
11657lt_aix_libpath_sed='
11658    /Import File Strings/,/^$/ {
11659	/^0/ {
11660	    s/^0  *\(.*\)$/\1/
11661	    p
11662	}
11663    }'
11664aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11665# Check for a 64-bit object if we didn't find anything.
11666if test -z "$aix_libpath"; then
11667  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11668fi
11669else
11670  $as_echo "$as_me: failed program was:" >&5
11671sed 's/^/| /' conftest.$ac_ext >&5
11672
11673
11674fi
11675
11676rm -rf conftest.dSYM
11677rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11678      conftest$ac_exeext conftest.$ac_ext
11679if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11680
11681      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11682
11683      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"
11684     else
11685      if test "$host_cpu" = ia64; then
11686	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11687	allow_undefined_flag_CXX="-z nodefs"
11688	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"
11689      else
11690	# Determine the default libpath from the value encoded in an empty executable.
11691	cat >conftest.$ac_ext <<_ACEOF
11692/* confdefs.h.  */
11693_ACEOF
11694cat confdefs.h >>conftest.$ac_ext
11695cat >>conftest.$ac_ext <<_ACEOF
11696/* end confdefs.h.  */
11697
11698int
11699main ()
11700{
11701
11702  ;
11703  return 0;
11704}
11705_ACEOF
11706rm -f conftest.$ac_objext conftest$ac_exeext
11707if { (ac_try="$ac_link"
11708case "(($ac_try" in
11709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710  *) ac_try_echo=$ac_try;;
11711esac
11712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11713$as_echo "$ac_try_echo") >&5
11714  (eval "$ac_link") 2>conftest.er1
11715  ac_status=$?
11716  grep -v '^ *+' conftest.er1 >conftest.err
11717  rm -f conftest.er1
11718  cat conftest.err >&5
11719  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720  (exit $ac_status); } && {
11721	 test -z "$ac_cxx_werror_flag" ||
11722	 test ! -s conftest.err
11723       } && test -s conftest$ac_exeext && {
11724	 test "$cross_compiling" = yes ||
11725	 $as_test_x conftest$ac_exeext
11726       }; then
11727
11728lt_aix_libpath_sed='
11729    /Import File Strings/,/^$/ {
11730	/^0/ {
11731	    s/^0  *\(.*\)$/\1/
11732	    p
11733	}
11734    }'
11735aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11736# Check for a 64-bit object if we didn't find anything.
11737if test -z "$aix_libpath"; then
11738  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11739fi
11740else
11741  $as_echo "$as_me: failed program was:" >&5
11742sed 's/^/| /' conftest.$ac_ext >&5
11743
11744
11745fi
11746
11747rm -rf conftest.dSYM
11748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11749      conftest$ac_exeext conftest.$ac_ext
11750if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11751
11752	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11753	# Warning - without using the other run time loading flags,
11754	# -berok will link without error, but may produce a broken library.
11755	no_undefined_flag_CXX=' ${wl}-bernotok'
11756	allow_undefined_flag_CXX=' ${wl}-berok'
11757	# Exported symbols can be pulled into shared objects from archives
11758	whole_archive_flag_spec_CXX='$convenience'
11759	archive_cmds_need_lc_CXX=yes
11760	# This is similar to how AIX traditionally builds its shared libraries.
11761	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'
11762      fi
11763    fi
11764    ;;
11765
11766  beos*)
11767    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11768      allow_undefined_flag_CXX=unsupported
11769      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11770      # support --undefined.  This deserves some investigation.  FIXME
11771      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11772    else
11773      ld_shlibs_CXX=no
11774    fi
11775    ;;
11776
11777  chorus*)
11778    case $cc_basename in
11779      *)
11780	# FIXME: insert proper C++ library support
11781	ld_shlibs_CXX=no
11782	;;
11783    esac
11784    ;;
11785
11786  cygwin* | mingw* | pw32*)
11787    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11788    # as there is no search path for DLLs.
11789    hardcode_libdir_flag_spec_CXX='-L$libdir'
11790    allow_undefined_flag_CXX=unsupported
11791    always_export_symbols_CXX=no
11792    enable_shared_with_static_runtimes_CXX=yes
11793
11794    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11795      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'
11796      # If the export-symbols file already is a .def file (1st line
11797      # is EXPORTS), use it as is; otherwise, prepend...
11798      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11799	cp $export_symbols $output_objdir/$soname.def;
11800      else
11801	echo EXPORTS > $output_objdir/$soname.def;
11802	cat $export_symbols >> $output_objdir/$soname.def;
11803      fi~
11804      $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'
11805    else
11806      ld_shlibs_CXX=no
11807    fi
11808  ;;
11809      darwin* | rhapsody*)
11810      archive_cmds_need_lc_CXX=no
11811      hardcode_direct_CXX=no
11812      hardcode_automatic_CXX=yes
11813      hardcode_shlibpath_var_CXX=unsupported
11814      whole_archive_flag_spec_CXX=''
11815      link_all_deplibs_CXX=yes
11816      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11817      if test "$GXX" = yes ; then
11818      output_verbose_link_cmd='echo'
11819      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11820      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11821      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11822      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11823      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11824        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11825        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11826      fi
11827      else
11828      case $cc_basename in
11829        xlc*)
11830         output_verbose_link_cmd='echo'
11831          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11832          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11833          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11834          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11835          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}'
11836          ;;
11837       *)
11838         ld_shlibs_CXX=no
11839          ;;
11840      esac
11841      fi
11842        ;;
11843
11844  dgux*)
11845    case $cc_basename in
11846      ec++*)
11847	# FIXME: insert proper C++ library support
11848	ld_shlibs_CXX=no
11849	;;
11850      ghcx*)
11851	# Green Hills C++ Compiler
11852	# FIXME: insert proper C++ library support
11853	ld_shlibs_CXX=no
11854	;;
11855      *)
11856	# FIXME: insert proper C++ library support
11857	ld_shlibs_CXX=no
11858	;;
11859    esac
11860    ;;
11861  freebsd[12]*)
11862    # C++ shared libraries reported to be fairly broken before switch to ELF
11863    ld_shlibs_CXX=no
11864    ;;
11865  freebsd-elf*)
11866    archive_cmds_need_lc_CXX=no
11867    ;;
11868  freebsd* | dragonfly*)
11869    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11870    # conventions
11871    ld_shlibs_CXX=yes
11872    ;;
11873  gnu*)
11874    ;;
11875  hpux9*)
11876    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11877    hardcode_libdir_separator_CXX=:
11878    export_dynamic_flag_spec_CXX='${wl}-E'
11879    hardcode_direct_CXX=yes
11880    hardcode_minus_L_CXX=yes # Not in the search PATH,
11881				# but as the default
11882				# location of the library.
11883
11884    case $cc_basename in
11885    CC*)
11886      # FIXME: insert proper C++ library support
11887      ld_shlibs_CXX=no
11888      ;;
11889    aCC*)
11890      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'
11891      # Commands to make compiler produce verbose output that lists
11892      # what "hidden" libraries, object files and flags are used when
11893      # linking a shared library.
11894      #
11895      # There doesn't appear to be a way to prevent this compiler from
11896      # explicitly linking system object files so we need to strip them
11897      # from the output so that they don't get included in the library
11898      # dependencies.
11899      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'
11900      ;;
11901    *)
11902      if test "$GXX" = yes; then
11903        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'
11904      else
11905        # FIXME: insert proper C++ library support
11906        ld_shlibs_CXX=no
11907      fi
11908      ;;
11909    esac
11910    ;;
11911  hpux10*|hpux11*)
11912    if test $with_gnu_ld = no; then
11913      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11914      hardcode_libdir_separator_CXX=:
11915
11916      case $host_cpu in
11917      hppa*64*|ia64*) ;;
11918      *)
11919	export_dynamic_flag_spec_CXX='${wl}-E'
11920        ;;
11921      esac
11922    fi
11923    case $host_cpu in
11924    hppa*64*|ia64*)
11925      hardcode_direct_CXX=no
11926      hardcode_shlibpath_var_CXX=no
11927      ;;
11928    *)
11929      hardcode_direct_CXX=yes
11930      hardcode_minus_L_CXX=yes # Not in the search PATH,
11931					      # but as the default
11932					      # location of the library.
11933      ;;
11934    esac
11935
11936    case $cc_basename in
11937      CC*)
11938	# FIXME: insert proper C++ library support
11939	ld_shlibs_CXX=no
11940	;;
11941      aCC*)
11942	case $host_cpu in
11943	hppa*64*)
11944	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11945	  ;;
11946	ia64*)
11947	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11948	  ;;
11949	*)
11950	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11951	  ;;
11952	esac
11953	# Commands to make compiler produce verbose output that lists
11954	# what "hidden" libraries, object files and flags are used when
11955	# linking a shared library.
11956	#
11957	# There doesn't appear to be a way to prevent this compiler from
11958	# explicitly linking system object files so we need to strip them
11959	# from the output so that they don't get included in the library
11960	# dependencies.
11961	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'
11962	;;
11963      *)
11964	if test "$GXX" = yes; then
11965	  if test $with_gnu_ld = no; then
11966	    case $host_cpu in
11967	    hppa*64*)
11968	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11969	      ;;
11970	    ia64*)
11971	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11972	      ;;
11973	    *)
11974	      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'
11975	      ;;
11976	    esac
11977	  fi
11978	else
11979	  # FIXME: insert proper C++ library support
11980	  ld_shlibs_CXX=no
11981	fi
11982	;;
11983    esac
11984    ;;
11985  interix[3-9]*)
11986    hardcode_direct_CXX=no
11987    hardcode_shlibpath_var_CXX=no
11988    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11989    export_dynamic_flag_spec_CXX='${wl}-E'
11990    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11991    # Instead, shared libraries are loaded at an image base (0x10000000 by
11992    # default) and relocated if they conflict, which is a slow very memory
11993    # consuming and fragmenting process.  To avoid this, we pick a random,
11994    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11995    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11996    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'
11997    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'
11998    ;;
11999  irix5* | irix6*)
12000    case $cc_basename in
12001      CC*)
12002	# SGI C++
12003	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'
12004
12005	# Archives containing C++ object files must be created using
12006	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12007	# necessary to make sure instantiated templates are included
12008	# in the archive.
12009	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12010	;;
12011      *)
12012	if test "$GXX" = yes; then
12013	  if test "$with_gnu_ld" = no; then
12014	    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'
12015	  else
12016	    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'
12017	  fi
12018	fi
12019	link_all_deplibs_CXX=yes
12020	;;
12021    esac
12022    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12023    hardcode_libdir_separator_CXX=:
12024    ;;
12025  linux* | k*bsd*-gnu)
12026    case $cc_basename in
12027      KCC*)
12028	# Kuck and Associates, Inc. (KAI) C++ Compiler
12029
12030	# KCC will only create a shared library if the output file
12031	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12032	# to its proper name (with version) after linking.
12033	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'
12034	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'
12035	# Commands to make compiler produce verbose output that lists
12036	# what "hidden" libraries, object files and flags are used when
12037	# linking a shared library.
12038	#
12039	# There doesn't appear to be a way to prevent this compiler from
12040	# explicitly linking system object files so we need to strip them
12041	# from the output so that they don't get included in the library
12042	# dependencies.
12043	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'
12044
12045	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12046	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12047
12048	# Archives containing C++ object files must be created using
12049	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12050	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12051	;;
12052      icpc*)
12053	# Intel C++
12054	with_gnu_ld=yes
12055	# version 8.0 and above of icpc choke on multiply defined symbols
12056	# if we add $predep_objects and $postdep_objects, however 7.1 and
12057	# earlier do not add the objects themselves.
12058	case `$CC -V 2>&1` in
12059	*"Version 7."*)
12060  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12061  	  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'
12062	  ;;
12063	*)  # Version 8.0 or newer
12064	  tmp_idyn=
12065	  case $host_cpu in
12066	    ia64*) tmp_idyn=' -i_dynamic';;
12067	  esac
12068  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12069	  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'
12070	  ;;
12071	esac
12072	archive_cmds_need_lc_CXX=no
12073	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12074	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12075	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12076	;;
12077      pgCC* | pgcpp*)
12078        # Portland Group C++ compiler
12079	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12080  	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'
12081
12082	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12083	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12084	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'
12085        ;;
12086      cxx*)
12087	# Compaq C++
12088	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12089	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'
12090
12091	runpath_var=LD_RUN_PATH
12092	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12093	hardcode_libdir_separator_CXX=:
12094
12095	# Commands to make compiler produce verbose output that lists
12096	# what "hidden" libraries, object files and flags are used when
12097	# linking a shared library.
12098	#
12099	# There doesn't appear to be a way to prevent this compiler from
12100	# explicitly linking system object files so we need to strip them
12101	# from the output so that they don't get included in the library
12102	# dependencies.
12103	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'
12104	;;
12105      *)
12106	case `$CC -V 2>&1 | sed 5q` in
12107	*Sun\ C*)
12108	  # Sun C++ 5.9
12109	  no_undefined_flag_CXX=' -zdefs'
12110	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12111	  archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12112	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12113	  whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12114
12115	  # Not sure whether something based on
12116	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12117	  # would be better.
12118	  output_verbose_link_cmd='echo'
12119
12120	  # Archives containing C++ object files must be created using
12121	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12122	  # necessary to make sure instantiated templates are included
12123	  # in the archive.
12124	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12125	  ;;
12126	esac
12127	;;
12128    esac
12129    ;;
12130  lynxos*)
12131    # FIXME: insert proper C++ library support
12132    ld_shlibs_CXX=no
12133    ;;
12134  m88k*)
12135    # FIXME: insert proper C++ library support
12136    ld_shlibs_CXX=no
12137    ;;
12138  mvs*)
12139    case $cc_basename in
12140      cxx*)
12141	# FIXME: insert proper C++ library support
12142	ld_shlibs_CXX=no
12143	;;
12144      *)
12145	# FIXME: insert proper C++ library support
12146	ld_shlibs_CXX=no
12147	;;
12148    esac
12149    ;;
12150  netbsd*)
12151    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12152      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12153      wlarc=
12154      hardcode_libdir_flag_spec_CXX='-R$libdir'
12155      hardcode_direct_CXX=yes
12156      hardcode_shlibpath_var_CXX=no
12157    fi
12158    # Workaround some broken pre-1.5 toolchains
12159    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12160    ;;
12161  openbsd2*)
12162    # C++ shared libraries are fairly broken
12163    ld_shlibs_CXX=no
12164    ;;
12165  openbsd*)
12166    if test -f /usr/libexec/ld.so; then
12167      hardcode_direct_CXX=yes
12168      hardcode_shlibpath_var_CXX=no
12169      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12170      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12171      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12172	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12173	export_dynamic_flag_spec_CXX='${wl}-E'
12174	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12175      fi
12176      output_verbose_link_cmd='echo'
12177    else
12178      ld_shlibs_CXX=no
12179    fi
12180    ;;
12181  osf3*)
12182    case $cc_basename in
12183      KCC*)
12184	# Kuck and Associates, Inc. (KAI) C++ Compiler
12185
12186	# KCC will only create a shared library if the output file
12187	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12188	# to its proper name (with version) after linking.
12189	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'
12190
12191	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12192	hardcode_libdir_separator_CXX=:
12193
12194	# Archives containing C++ object files must be created using
12195	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12196	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12197
12198	;;
12199      RCC*)
12200	# Rational C++ 2.4.1
12201	# FIXME: insert proper C++ library support
12202	ld_shlibs_CXX=no
12203	;;
12204      cxx*)
12205	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12206	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'
12207
12208	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12209	hardcode_libdir_separator_CXX=:
12210
12211	# Commands to make compiler produce verbose output that lists
12212	# what "hidden" libraries, object files and flags are used when
12213	# linking a shared library.
12214	#
12215	# There doesn't appear to be a way to prevent this compiler from
12216	# explicitly linking system object files so we need to strip them
12217	# from the output so that they don't get included in the library
12218	# dependencies.
12219	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'
12220	;;
12221      *)
12222	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12223	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12224	  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'
12225
12226	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12227	  hardcode_libdir_separator_CXX=:
12228
12229	  # Commands to make compiler produce verbose output that lists
12230	  # what "hidden" libraries, object files and flags are used when
12231	  # linking a shared library.
12232	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12233
12234	else
12235	  # FIXME: insert proper C++ library support
12236	  ld_shlibs_CXX=no
12237	fi
12238	;;
12239    esac
12240    ;;
12241  osf4* | osf5*)
12242    case $cc_basename in
12243      KCC*)
12244	# Kuck and Associates, Inc. (KAI) C++ Compiler
12245
12246	# KCC will only create a shared library if the output file
12247	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12248	# to its proper name (with version) after linking.
12249	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'
12250
12251	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12252	hardcode_libdir_separator_CXX=:
12253
12254	# Archives containing C++ object files must be created using
12255	# the KAI C++ compiler.
12256	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12257	;;
12258      RCC*)
12259	# Rational C++ 2.4.1
12260	# FIXME: insert proper C++ library support
12261	ld_shlibs_CXX=no
12262	;;
12263      cxx*)
12264	allow_undefined_flag_CXX=' -expect_unresolved \*'
12265	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'
12266	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12267	  echo "-hidden">> $lib.exp~
12268	  $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~
12269	  $rm $lib.exp'
12270
12271	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12272	hardcode_libdir_separator_CXX=:
12273
12274	# Commands to make compiler produce verbose output that lists
12275	# what "hidden" libraries, object files and flags are used when
12276	# linking a shared library.
12277	#
12278	# There doesn't appear to be a way to prevent this compiler from
12279	# explicitly linking system object files so we need to strip them
12280	# from the output so that they don't get included in the library
12281	# dependencies.
12282	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'
12283	;;
12284      *)
12285	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12286	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12287	 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'
12288
12289	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12290	  hardcode_libdir_separator_CXX=:
12291
12292	  # Commands to make compiler produce verbose output that lists
12293	  # what "hidden" libraries, object files and flags are used when
12294	  # linking a shared library.
12295	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12296
12297	else
12298	  # FIXME: insert proper C++ library support
12299	  ld_shlibs_CXX=no
12300	fi
12301	;;
12302    esac
12303    ;;
12304  psos*)
12305    # FIXME: insert proper C++ library support
12306    ld_shlibs_CXX=no
12307    ;;
12308  sunos4*)
12309    case $cc_basename in
12310      CC*)
12311	# Sun C++ 4.x
12312	# FIXME: insert proper C++ library support
12313	ld_shlibs_CXX=no
12314	;;
12315      lcc*)
12316	# Lucid
12317	# FIXME: insert proper C++ library support
12318	ld_shlibs_CXX=no
12319	;;
12320      *)
12321	# FIXME: insert proper C++ library support
12322	ld_shlibs_CXX=no
12323	;;
12324    esac
12325    ;;
12326  solaris*)
12327    case $cc_basename in
12328      CC*)
12329	# Sun C++ 4.2, 5.x and Centerline C++
12330        archive_cmds_need_lc_CXX=yes
12331	no_undefined_flag_CXX=' -zdefs'
12332	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12333	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12334	$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'
12335
12336	hardcode_libdir_flag_spec_CXX='-R$libdir'
12337	hardcode_shlibpath_var_CXX=no
12338	case $host_os in
12339	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12340	  *)
12341	    # The compiler driver will combine and reorder linker options,
12342	    # but understands `-z linker_flag'.
12343	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12344	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12345	    ;;
12346	esac
12347	link_all_deplibs_CXX=yes
12348
12349	output_verbose_link_cmd='echo'
12350
12351	# Archives containing C++ object files must be created using
12352	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12353	# necessary to make sure instantiated templates are included
12354	# in the archive.
12355	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12356	;;
12357      gcx*)
12358	# Green Hills C++ Compiler
12359	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12360
12361	# The C++ compiler must be used to create the archive.
12362	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12363	;;
12364      *)
12365	# GNU C++ compiler with Solaris linker
12366	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12367	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12368	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12369	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12370	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12371		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12372
12373	    # Commands to make compiler produce verbose output that lists
12374	    # what "hidden" libraries, object files and flags are used when
12375	    # linking a shared library.
12376	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12377	  else
12378	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12379	    # platform.
12380	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12381	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12382		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12383
12384	    # Commands to make compiler produce verbose output that lists
12385	    # what "hidden" libraries, object files and flags are used when
12386	    # linking a shared library.
12387	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12388	  fi
12389
12390	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12391	  case $host_os in
12392	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12393	  *)
12394	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12395	    ;;
12396	  esac
12397	fi
12398	;;
12399    esac
12400    ;;
12401  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12402    no_undefined_flag_CXX='${wl}-z,text'
12403    archive_cmds_need_lc_CXX=no
12404    hardcode_shlibpath_var_CXX=no
12405    runpath_var='LD_RUN_PATH'
12406
12407    case $cc_basename in
12408      CC*)
12409	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12410	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12411	;;
12412      *)
12413	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12414	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12415	;;
12416    esac
12417    ;;
12418  sysv5* | sco3.2v5* | sco5v6*)
12419    # Note: We can NOT use -z defs as we might desire, because we do not
12420    # link with -lc, and that would cause any symbols used from libc to
12421    # always be unresolved, which means just about no library would
12422    # ever link correctly.  If we're not using GNU ld we use -z text
12423    # though, which does catch some bad symbols but isn't as heavy-handed
12424    # as -z defs.
12425    # For security reasons, it is highly recommended that you always
12426    # use absolute paths for naming shared libraries, and exclude the
12427    # DT_RUNPATH tag from executables and libraries.  But doing so
12428    # requires that you compile everything twice, which is a pain.
12429    # So that behaviour is only enabled if SCOABSPATH is set to a
12430    # non-empty value in the environment.  Most likely only useful for
12431    # creating official distributions of packages.
12432    # This is a hack until libtool officially supports absolute path
12433    # names for shared libraries.
12434    no_undefined_flag_CXX='${wl}-z,text'
12435    allow_undefined_flag_CXX='${wl}-z,nodefs'
12436    archive_cmds_need_lc_CXX=no
12437    hardcode_shlibpath_var_CXX=no
12438    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12439    hardcode_libdir_separator_CXX=':'
12440    link_all_deplibs_CXX=yes
12441    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12442    runpath_var='LD_RUN_PATH'
12443
12444    case $cc_basename in
12445      CC*)
12446	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12447	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12448	;;
12449      *)
12450	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12451	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12452	;;
12453    esac
12454    ;;
12455  tandem*)
12456    case $cc_basename in
12457      NCC*)
12458	# NonStop-UX NCC 3.20
12459	# FIXME: insert proper C++ library support
12460	ld_shlibs_CXX=no
12461	;;
12462      *)
12463	# FIXME: insert proper C++ library support
12464	ld_shlibs_CXX=no
12465	;;
12466    esac
12467    ;;
12468  vxworks*)
12469    # FIXME: insert proper C++ library support
12470    ld_shlibs_CXX=no
12471    ;;
12472  *)
12473    # FIXME: insert proper C++ library support
12474    ld_shlibs_CXX=no
12475    ;;
12476esac
12477{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12478$as_echo "$ld_shlibs_CXX" >&6; }
12479test "$ld_shlibs_CXX" = no && can_build_shared=no
12480
12481GCC_CXX="$GXX"
12482LD_CXX="$LD"
12483
12484cat > conftest.$ac_ext <<EOF
12485class Foo
12486{
12487public:
12488  Foo (void) { a = 0; }
12489private:
12490  int a;
12491};
12492EOF
12493
12494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12495  (eval $ac_compile) 2>&5
12496  ac_status=$?
12497  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498  (exit $ac_status); }; then
12499  # Parse the compiler output and extract the necessary
12500  # objects, libraries and library flags.
12501
12502  # Sentinel used to keep track of whether or not we are before
12503  # the conftest object file.
12504  pre_test_object_deps_done=no
12505
12506  # The `*' in the case matches for architectures that use `case' in
12507  # $output_verbose_cmd can trigger glob expansion during the loop
12508  # eval without this substitution.
12509  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12510
12511  for p in `eval $output_verbose_link_cmd`; do
12512    case $p in
12513
12514    -L* | -R* | -l*)
12515       # Some compilers place space between "-{L,R}" and the path.
12516       # Remove the space.
12517       if test $p = "-L" \
12518	  || test $p = "-R"; then
12519	 prev=$p
12520	 continue
12521       else
12522	 prev=
12523       fi
12524
12525       if test "$pre_test_object_deps_done" = no; then
12526	 case $p in
12527	 -L* | -R*)
12528	   # Internal compiler library paths should come after those
12529	   # provided the user.  The postdeps already come after the
12530	   # user supplied libs so there is no need to process them.
12531	   if test -z "$compiler_lib_search_path_CXX"; then
12532	     compiler_lib_search_path_CXX="${prev}${p}"
12533	   else
12534	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12535	   fi
12536	   ;;
12537	 # The "-l" case would never come before the object being
12538	 # linked, so don't bother handling this case.
12539	 esac
12540       else
12541	 if test -z "$postdeps_CXX"; then
12542	   postdeps_CXX="${prev}${p}"
12543	 else
12544	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12545	 fi
12546       fi
12547       ;;
12548
12549    *.$objext)
12550       # This assumes that the test object file only shows up
12551       # once in the compiler output.
12552       if test "$p" = "conftest.$objext"; then
12553	 pre_test_object_deps_done=yes
12554	 continue
12555       fi
12556
12557       if test "$pre_test_object_deps_done" = no; then
12558	 if test -z "$predep_objects_CXX"; then
12559	   predep_objects_CXX="$p"
12560	 else
12561	   predep_objects_CXX="$predep_objects_CXX $p"
12562	 fi
12563       else
12564	 if test -z "$postdep_objects_CXX"; then
12565	   postdep_objects_CXX="$p"
12566	 else
12567	   postdep_objects_CXX="$postdep_objects_CXX $p"
12568	 fi
12569       fi
12570       ;;
12571
12572    *) ;; # Ignore the rest.
12573
12574    esac
12575  done
12576
12577  # Clean up.
12578  rm -f a.out a.exe
12579else
12580  echo "libtool.m4: error: problem compiling CXX test program"
12581fi
12582
12583$rm -f confest.$objext
12584
12585compiler_lib_search_dirs_CXX=
12586if test -n "$compiler_lib_search_path_CXX"; then
12587  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12588fi
12589
12590# PORTME: override above test on systems where it is broken
12591case $host_os in
12592interix[3-9]*)
12593  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12594  # hack all around it, let's just trust "g++" to DTRT.
12595  predep_objects_CXX=
12596  postdep_objects_CXX=
12597  postdeps_CXX=
12598  ;;
12599
12600linux*)
12601  case `$CC -V 2>&1 | sed 5q` in
12602  *Sun\ C*)
12603    # Sun C++ 5.9
12604    #
12605    # The more standards-conforming stlport4 library is
12606    # incompatible with the Cstd library. Avoid specifying
12607    # it if it's in CXXFLAGS. Ignore libCrun as
12608    # -library=stlport4 depends on it.
12609    case " $CXX $CXXFLAGS " in
12610    *" -library=stlport4 "*)
12611      solaris_use_stlport4=yes
12612      ;;
12613    esac
12614    if test "$solaris_use_stlport4" != yes; then
12615      postdeps_CXX='-library=Cstd -library=Crun'
12616    fi
12617    ;;
12618  esac
12619  ;;
12620
12621solaris*)
12622  case $cc_basename in
12623  CC*)
12624    # The more standards-conforming stlport4 library is
12625    # incompatible with the Cstd library. Avoid specifying
12626    # it if it's in CXXFLAGS. Ignore libCrun as
12627    # -library=stlport4 depends on it.
12628    case " $CXX $CXXFLAGS " in
12629    *" -library=stlport4 "*)
12630      solaris_use_stlport4=yes
12631      ;;
12632    esac
12633
12634    # Adding this requires a known-good setup of shared libraries for
12635    # Sun compiler versions before 5.6, else PIC objects from an old
12636    # archive will be linked into the output, leading to subtle bugs.
12637    if test "$solaris_use_stlport4" != yes; then
12638      postdeps_CXX='-library=Cstd -library=Crun'
12639    fi
12640    ;;
12641  esac
12642  ;;
12643esac
12644
12645case " $postdeps_CXX " in
12646*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12647esac
12648
12649lt_prog_compiler_wl_CXX=
12650lt_prog_compiler_pic_CXX=
12651lt_prog_compiler_static_CXX=
12652
12653{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12654$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12655
12656  # C++ specific cases for pic, static, wl, etc.
12657  if test "$GXX" = yes; then
12658    lt_prog_compiler_wl_CXX='-Wl,'
12659    lt_prog_compiler_static_CXX='-static'
12660
12661    case $host_os in
12662    aix*)
12663      # All AIX code is PIC.
12664      if test "$host_cpu" = ia64; then
12665	# AIX 5 now supports IA64 processor
12666	lt_prog_compiler_static_CXX='-Bstatic'
12667      fi
12668      ;;
12669    amigaos*)
12670      # FIXME: we need at least 68020 code to build shared libraries, but
12671      # adding the `-m68020' flag to GCC prevents building anything better,
12672      # like `-m68040'.
12673      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12674      ;;
12675    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12676      # PIC is the default for these OSes.
12677      ;;
12678    mingw* | cygwin* | os2* | pw32*)
12679      # This hack is so that the source file can tell whether it is being
12680      # built for inclusion in a dll (and should export symbols for example).
12681      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12682      # (--disable-auto-import) libraries
12683      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12684      ;;
12685    darwin* | rhapsody*)
12686      # PIC is the default on this platform
12687      # Common symbols not allowed in MH_DYLIB files
12688      lt_prog_compiler_pic_CXX='-fno-common'
12689      ;;
12690    *djgpp*)
12691      # DJGPP does not support shared libraries at all
12692      lt_prog_compiler_pic_CXX=
12693      ;;
12694    interix[3-9]*)
12695      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12696      # Instead, we relocate shared libraries at runtime.
12697      ;;
12698    sysv4*MP*)
12699      if test -d /usr/nec; then
12700	lt_prog_compiler_pic_CXX=-Kconform_pic
12701      fi
12702      ;;
12703    hpux*)
12704      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12705      # not for PA HP-UX.
12706      case $host_cpu in
12707      hppa*64*|ia64*)
12708	;;
12709      *)
12710	lt_prog_compiler_pic_CXX='-fPIC'
12711	;;
12712      esac
12713      ;;
12714    *)
12715      lt_prog_compiler_pic_CXX='-fPIC'
12716      ;;
12717    esac
12718  else
12719    case $host_os in
12720      aix[4-9]*)
12721	# All AIX code is PIC.
12722	if test "$host_cpu" = ia64; then
12723	  # AIX 5 now supports IA64 processor
12724	  lt_prog_compiler_static_CXX='-Bstatic'
12725	else
12726	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12727	fi
12728	;;
12729      chorus*)
12730	case $cc_basename in
12731	cxch68*)
12732	  # Green Hills C++ Compiler
12733	  # _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"
12734	  ;;
12735	esac
12736	;;
12737       darwin*)
12738         # PIC is the default on this platform
12739         # Common symbols not allowed in MH_DYLIB files
12740         case $cc_basename in
12741           xlc*)
12742           lt_prog_compiler_pic_CXX='-qnocommon'
12743           lt_prog_compiler_wl_CXX='-Wl,'
12744           ;;
12745         esac
12746       ;;
12747      dgux*)
12748	case $cc_basename in
12749	  ec++*)
12750	    lt_prog_compiler_pic_CXX='-KPIC'
12751	    ;;
12752	  ghcx*)
12753	    # Green Hills C++ Compiler
12754	    lt_prog_compiler_pic_CXX='-pic'
12755	    ;;
12756	  *)
12757	    ;;
12758	esac
12759	;;
12760      freebsd* | dragonfly*)
12761	# FreeBSD uses GNU C++
12762	;;
12763      hpux9* | hpux10* | hpux11*)
12764	case $cc_basename in
12765	  CC*)
12766	    lt_prog_compiler_wl_CXX='-Wl,'
12767	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12768	    if test "$host_cpu" != ia64; then
12769	      lt_prog_compiler_pic_CXX='+Z'
12770	    fi
12771	    ;;
12772	  aCC*)
12773	    lt_prog_compiler_wl_CXX='-Wl,'
12774	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12775	    case $host_cpu in
12776	    hppa*64*|ia64*)
12777	      # +Z the default
12778	      ;;
12779	    *)
12780	      lt_prog_compiler_pic_CXX='+Z'
12781	      ;;
12782	    esac
12783	    ;;
12784	  *)
12785	    ;;
12786	esac
12787	;;
12788      interix*)
12789	# This is c89, which is MS Visual C++ (no shared libs)
12790	# Anyone wants to do a port?
12791	;;
12792      irix5* | irix6* | nonstopux*)
12793	case $cc_basename in
12794	  CC*)
12795	    lt_prog_compiler_wl_CXX='-Wl,'
12796	    lt_prog_compiler_static_CXX='-non_shared'
12797	    # CC pic flag -KPIC is the default.
12798	    ;;
12799	  *)
12800	    ;;
12801	esac
12802	;;
12803      linux* | k*bsd*-gnu)
12804	case $cc_basename in
12805	  KCC*)
12806	    # KAI C++ Compiler
12807	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12808	    lt_prog_compiler_pic_CXX='-fPIC'
12809	    ;;
12810	  icpc* | ecpc*)
12811	    # Intel C++
12812	    lt_prog_compiler_wl_CXX='-Wl,'
12813	    lt_prog_compiler_pic_CXX='-KPIC'
12814	    lt_prog_compiler_static_CXX='-static'
12815	    ;;
12816	  pgCC* | pgcpp*)
12817	    # Portland Group C++ compiler.
12818	    lt_prog_compiler_wl_CXX='-Wl,'
12819	    lt_prog_compiler_pic_CXX='-fpic'
12820	    lt_prog_compiler_static_CXX='-Bstatic'
12821	    ;;
12822	  cxx*)
12823	    # Compaq C++
12824	    # Make sure the PIC flag is empty.  It appears that all Alpha
12825	    # Linux and Compaq Tru64 Unix objects are PIC.
12826	    lt_prog_compiler_pic_CXX=
12827	    lt_prog_compiler_static_CXX='-non_shared'
12828	    ;;
12829	  *)
12830	    case `$CC -V 2>&1 | sed 5q` in
12831	    *Sun\ C*)
12832	      # Sun C++ 5.9
12833	      lt_prog_compiler_pic_CXX='-KPIC'
12834	      lt_prog_compiler_static_CXX='-Bstatic'
12835	      lt_prog_compiler_wl_CXX='-Qoption ld '
12836	      ;;
12837	    esac
12838	    ;;
12839	esac
12840	;;
12841      lynxos*)
12842	;;
12843      m88k*)
12844	;;
12845      mvs*)
12846	case $cc_basename in
12847	  cxx*)
12848	    lt_prog_compiler_pic_CXX='-W c,exportall'
12849	    ;;
12850	  *)
12851	    ;;
12852	esac
12853	;;
12854      netbsd*)
12855	;;
12856      osf3* | osf4* | osf5*)
12857	case $cc_basename in
12858	  KCC*)
12859	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12860	    ;;
12861	  RCC*)
12862	    # Rational C++ 2.4.1
12863	    lt_prog_compiler_pic_CXX='-pic'
12864	    ;;
12865	  cxx*)
12866	    # Digital/Compaq C++
12867	    lt_prog_compiler_wl_CXX='-Wl,'
12868	    # Make sure the PIC flag is empty.  It appears that all Alpha
12869	    # Linux and Compaq Tru64 Unix objects are PIC.
12870	    lt_prog_compiler_pic_CXX=
12871	    lt_prog_compiler_static_CXX='-non_shared'
12872	    ;;
12873	  *)
12874	    ;;
12875	esac
12876	;;
12877      psos*)
12878	;;
12879      solaris*)
12880	case $cc_basename in
12881	  CC*)
12882	    # Sun C++ 4.2, 5.x and Centerline C++
12883	    lt_prog_compiler_pic_CXX='-KPIC'
12884	    lt_prog_compiler_static_CXX='-Bstatic'
12885	    lt_prog_compiler_wl_CXX='-Qoption ld '
12886	    ;;
12887	  gcx*)
12888	    # Green Hills C++ Compiler
12889	    lt_prog_compiler_pic_CXX='-PIC'
12890	    ;;
12891	  *)
12892	    ;;
12893	esac
12894	;;
12895      sunos4*)
12896	case $cc_basename in
12897	  CC*)
12898	    # Sun C++ 4.x
12899	    lt_prog_compiler_pic_CXX='-pic'
12900	    lt_prog_compiler_static_CXX='-Bstatic'
12901	    ;;
12902	  lcc*)
12903	    # Lucid
12904	    lt_prog_compiler_pic_CXX='-pic'
12905	    ;;
12906	  *)
12907	    ;;
12908	esac
12909	;;
12910      tandem*)
12911	case $cc_basename in
12912	  NCC*)
12913	    # NonStop-UX NCC 3.20
12914	    lt_prog_compiler_pic_CXX='-KPIC'
12915	    ;;
12916	  *)
12917	    ;;
12918	esac
12919	;;
12920      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12921	case $cc_basename in
12922	  CC*)
12923	    lt_prog_compiler_wl_CXX='-Wl,'
12924	    lt_prog_compiler_pic_CXX='-KPIC'
12925	    lt_prog_compiler_static_CXX='-Bstatic'
12926	    ;;
12927	esac
12928	;;
12929      vxworks*)
12930	;;
12931      *)
12932	lt_prog_compiler_can_build_shared_CXX=no
12933	;;
12934    esac
12935  fi
12936
12937{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12938$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12939
12940#
12941# Check to make sure the PIC flag actually works.
12942#
12943if test -n "$lt_prog_compiler_pic_CXX"; then
12944
12945{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12946$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12947if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12948  $as_echo_n "(cached) " >&6
12949else
12950  lt_cv_prog_compiler_pic_works_CXX=no
12951  ac_outfile=conftest.$ac_objext
12952   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12953   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12954   # Insert the option either (1) after the last *FLAGS variable, or
12955   # (2) before a word containing "conftest.", or (3) at the end.
12956   # Note that $ac_compile itself does not contain backslashes and begins
12957   # with a dollar sign (not a hyphen), so the echo should work correctly.
12958   # The option is referenced via a variable to avoid confusing sed.
12959   lt_compile=`echo "$ac_compile" | $SED \
12960   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12961   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12962   -e 's:$: $lt_compiler_flag:'`
12963   (eval echo "\"\$as_me:12963: $lt_compile\"" >&5)
12964   (eval "$lt_compile" 2>conftest.err)
12965   ac_status=$?
12966   cat conftest.err >&5
12967   echo "$as_me:12967: \$? = $ac_status" >&5
12968   if (exit $ac_status) && test -s "$ac_outfile"; then
12969     # The compiler can only warn and ignore the option if not recognized
12970     # So say no if there are warnings other than the usual output.
12971     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12972     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12973     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12974       lt_cv_prog_compiler_pic_works_CXX=yes
12975     fi
12976   fi
12977   $rm conftest*
12978
12979fi
12980{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12981$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12982
12983if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12984    case $lt_prog_compiler_pic_CXX in
12985     "" | " "*) ;;
12986     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12987     esac
12988else
12989    lt_prog_compiler_pic_CXX=
12990     lt_prog_compiler_can_build_shared_CXX=no
12991fi
12992
12993fi
12994case $host_os in
12995  # For platforms which do not support PIC, -DPIC is meaningless:
12996  *djgpp*)
12997    lt_prog_compiler_pic_CXX=
12998    ;;
12999  *)
13000    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13001    ;;
13002esac
13003
13004#
13005# Check to make sure the static flag actually works.
13006#
13007wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13008{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13009$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13010if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13011  $as_echo_n "(cached) " >&6
13012else
13013  lt_cv_prog_compiler_static_works_CXX=no
13014   save_LDFLAGS="$LDFLAGS"
13015   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13016   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13017   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13018     # The linker can only warn and ignore the option if not recognized
13019     # So say no if there are warnings
13020     if test -s conftest.err; then
13021       # Append any errors to the config.log.
13022       cat conftest.err 1>&5
13023       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13024       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13025       if diff conftest.exp conftest.er2 >/dev/null; then
13026         lt_cv_prog_compiler_static_works_CXX=yes
13027       fi
13028     else
13029       lt_cv_prog_compiler_static_works_CXX=yes
13030     fi
13031   fi
13032   $rm -r conftest*
13033   LDFLAGS="$save_LDFLAGS"
13034
13035fi
13036{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13037$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13038
13039if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13040    :
13041else
13042    lt_prog_compiler_static_CXX=
13043fi
13044
13045
13046{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13047$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13048if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13049  $as_echo_n "(cached) " >&6
13050else
13051  lt_cv_prog_compiler_c_o_CXX=no
13052   $rm -r conftest 2>/dev/null
13053   mkdir conftest
13054   cd conftest
13055   mkdir out
13056   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13057
13058   lt_compiler_flag="-o out/conftest2.$ac_objext"
13059   # Insert the option either (1) after the last *FLAGS variable, or
13060   # (2) before a word containing "conftest.", or (3) at the end.
13061   # Note that $ac_compile itself does not contain backslashes and begins
13062   # with a dollar sign (not a hyphen), so the echo should work correctly.
13063   lt_compile=`echo "$ac_compile" | $SED \
13064   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13065   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13066   -e 's:$: $lt_compiler_flag:'`
13067   (eval echo "\"\$as_me:13067: $lt_compile\"" >&5)
13068   (eval "$lt_compile" 2>out/conftest.err)
13069   ac_status=$?
13070   cat out/conftest.err >&5
13071   echo "$as_me:13071: \$? = $ac_status" >&5
13072   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13073   then
13074     # The compiler can only warn and ignore the option if not recognized
13075     # So say no if there are warnings
13076     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13077     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13078     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13079       lt_cv_prog_compiler_c_o_CXX=yes
13080     fi
13081   fi
13082   chmod u+w . 2>&5
13083   $rm conftest*
13084   # SGI C++ compiler will create directory out/ii_files/ for
13085   # template instantiation
13086   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13087   $rm out/* && rmdir out
13088   cd ..
13089   rmdir conftest
13090   $rm conftest*
13091
13092fi
13093{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13094$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13095
13096
13097hard_links="nottested"
13098if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13099  # do not overwrite the value of need_locks provided by the user
13100  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13101$as_echo_n "checking if we can lock with hard links... " >&6; }
13102  hard_links=yes
13103  $rm conftest*
13104  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13105  touch conftest.a
13106  ln conftest.a conftest.b 2>&5 || hard_links=no
13107  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13108  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13109$as_echo "$hard_links" >&6; }
13110  if test "$hard_links" = no; then
13111    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13112$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13113    need_locks=warn
13114  fi
13115else
13116  need_locks=no
13117fi
13118
13119{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13120$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13121
13122  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13123  case $host_os in
13124  aix[4-9]*)
13125    # If we're using GNU nm, then we don't want the "-C" option.
13126    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13127    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13128      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'
13129    else
13130      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'
13131    fi
13132    ;;
13133  pw32*)
13134    export_symbols_cmds_CXX="$ltdll_cmds"
13135  ;;
13136  cygwin* | mingw*)
13137    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'
13138  ;;
13139  *)
13140    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13141  ;;
13142  esac
13143  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13144
13145{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13146$as_echo "$ld_shlibs_CXX" >&6; }
13147test "$ld_shlibs_CXX" = no && can_build_shared=no
13148
13149#
13150# Do we need to explicitly link libc?
13151#
13152case "x$archive_cmds_need_lc_CXX" in
13153x|xyes)
13154  # Assume -lc should be added
13155  archive_cmds_need_lc_CXX=yes
13156
13157  if test "$enable_shared" = yes && test "$GCC" = yes; then
13158    case $archive_cmds_CXX in
13159    *'~'*)
13160      # FIXME: we may have to deal with multi-command sequences.
13161      ;;
13162    '$CC '*)
13163      # Test whether the compiler implicitly links with -lc since on some
13164      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13165      # to ld, don't add -lc before -lgcc.
13166      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13167$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13168      $rm conftest*
13169      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13170
13171      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13172  (eval $ac_compile) 2>&5
13173  ac_status=$?
13174  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175  (exit $ac_status); } 2>conftest.err; then
13176        soname=conftest
13177        lib=conftest
13178        libobjs=conftest.$ac_objext
13179        deplibs=
13180        wl=$lt_prog_compiler_wl_CXX
13181	pic_flag=$lt_prog_compiler_pic_CXX
13182        compiler_flags=-v
13183        linker_flags=-v
13184        verstring=
13185        output_objdir=.
13186        libname=conftest
13187        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13188        allow_undefined_flag_CXX=
13189        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13190  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13191  ac_status=$?
13192  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193  (exit $ac_status); }
13194        then
13195	  archive_cmds_need_lc_CXX=no
13196        else
13197	  archive_cmds_need_lc_CXX=yes
13198        fi
13199        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13200      else
13201        cat conftest.err 1>&5
13202      fi
13203      $rm conftest*
13204      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13205$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13206      ;;
13207    esac
13208  fi
13209  ;;
13210esac
13211
13212{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13213$as_echo_n "checking dynamic linker characteristics... " >&6; }
13214library_names_spec=
13215libname_spec='lib$name'
13216soname_spec=
13217shrext_cmds=".so"
13218postinstall_cmds=
13219postuninstall_cmds=
13220finish_cmds=
13221finish_eval=
13222shlibpath_var=
13223shlibpath_overrides_runpath=unknown
13224version_type=none
13225dynamic_linker="$host_os ld.so"
13226sys_lib_dlsearch_path_spec="/lib /usr/lib"
13227
13228need_lib_prefix=unknown
13229hardcode_into_libs=no
13230
13231# when you set need_version to no, make sure it does not cause -set_version
13232# flags to be left without arguments
13233need_version=unknown
13234
13235case $host_os in
13236aix3*)
13237  version_type=linux
13238  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13239  shlibpath_var=LIBPATH
13240
13241  # AIX 3 has no versioning support, so we append a major version to the name.
13242  soname_spec='${libname}${release}${shared_ext}$major'
13243  ;;
13244
13245aix[4-9]*)
13246  version_type=linux
13247  need_lib_prefix=no
13248  need_version=no
13249  hardcode_into_libs=yes
13250  if test "$host_cpu" = ia64; then
13251    # AIX 5 supports IA64
13252    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13253    shlibpath_var=LD_LIBRARY_PATH
13254  else
13255    # With GCC up to 2.95.x, collect2 would create an import file
13256    # for dependence libraries.  The import file would start with
13257    # the line `#! .'.  This would cause the generated library to
13258    # depend on `.', always an invalid library.  This was fixed in
13259    # development snapshots of GCC prior to 3.0.
13260    case $host_os in
13261      aix4 | aix4.[01] | aix4.[01].*)
13262      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13263	   echo ' yes '
13264	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13265	:
13266      else
13267	can_build_shared=no
13268      fi
13269      ;;
13270    esac
13271    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13272    # soname into executable. Probably we can add versioning support to
13273    # collect2, so additional links can be useful in future.
13274    if test "$aix_use_runtimelinking" = yes; then
13275      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13276      # instead of lib<name>.a to let people know that these are not
13277      # typical AIX shared libraries.
13278      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13279    else
13280      # We preserve .a as extension for shared libraries through AIX4.2
13281      # and later when we are not doing run time linking.
13282      library_names_spec='${libname}${release}.a $libname.a'
13283      soname_spec='${libname}${release}${shared_ext}$major'
13284    fi
13285    shlibpath_var=LIBPATH
13286  fi
13287  ;;
13288
13289amigaos*)
13290  library_names_spec='$libname.ixlibrary $libname.a'
13291  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13292  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'
13293  ;;
13294
13295beos*)
13296  library_names_spec='${libname}${shared_ext}'
13297  dynamic_linker="$host_os ld.so"
13298  shlibpath_var=LIBRARY_PATH
13299  ;;
13300
13301bsdi[45]*)
13302  version_type=linux
13303  need_version=no
13304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13305  soname_spec='${libname}${release}${shared_ext}$major'
13306  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13307  shlibpath_var=LD_LIBRARY_PATH
13308  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13309  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13310  # the default ld.so.conf also contains /usr/contrib/lib and
13311  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13312  # libtool to hard-code these into programs
13313  ;;
13314
13315cygwin* | mingw* | pw32*)
13316  version_type=windows
13317  shrext_cmds=".dll"
13318  need_version=no
13319  need_lib_prefix=no
13320
13321  case $GCC,$host_os in
13322  yes,cygwin* | yes,mingw* | yes,pw32*)
13323    library_names_spec='$libname.dll.a'
13324    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13325    postinstall_cmds='base_file=`basename \${file}`~
13326      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13327      dldir=$destdir/`dirname \$dlpath`~
13328      test -d \$dldir || mkdir -p \$dldir~
13329      $install_prog $dir/$dlname \$dldir/$dlname~
13330      chmod a+x \$dldir/$dlname'
13331    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13332      dlpath=$dir/\$dldll~
13333       $rm \$dlpath'
13334    shlibpath_overrides_runpath=yes
13335
13336    case $host_os in
13337    cygwin*)
13338      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13339      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13340      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13341      ;;
13342    mingw*)
13343      # MinGW DLLs use traditional 'lib' prefix
13344      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13345      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13346      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13347        # It is most probably a Windows format PATH printed by
13348        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13349        # path with ; separators, and with drive letters. We can handle the
13350        # drive letters (cygwin fileutils understands them), so leave them,
13351        # especially as we might pass files found there to a mingw objdump,
13352        # which wouldn't understand a cygwinified path. Ahh.
13353        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13354      else
13355        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13356      fi
13357      ;;
13358    pw32*)
13359      # pw32 DLLs use 'pw' prefix rather than 'lib'
13360      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13361      ;;
13362    esac
13363    ;;
13364
13365  *)
13366    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13367    ;;
13368  esac
13369  dynamic_linker='Win32 ld.exe'
13370  # FIXME: first we should search . and the directory the executable is in
13371  shlibpath_var=PATH
13372  ;;
13373
13374darwin* | rhapsody*)
13375  dynamic_linker="$host_os dyld"
13376  version_type=darwin
13377  need_lib_prefix=no
13378  need_version=no
13379  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13380  soname_spec='${libname}${release}${major}$shared_ext'
13381  shlibpath_overrides_runpath=yes
13382  shlibpath_var=DYLD_LIBRARY_PATH
13383  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13384
13385  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13386  ;;
13387
13388dgux*)
13389  version_type=linux
13390  need_lib_prefix=no
13391  need_version=no
13392  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13393  soname_spec='${libname}${release}${shared_ext}$major'
13394  shlibpath_var=LD_LIBRARY_PATH
13395  ;;
13396
13397freebsd1*)
13398  dynamic_linker=no
13399  ;;
13400
13401freebsd* | dragonfly*)
13402  # DragonFly does not have aout.  When/if they implement a new
13403  # versioning mechanism, adjust this.
13404  if test -x /usr/bin/objformat; then
13405    objformat=`/usr/bin/objformat`
13406  else
13407    case $host_os in
13408    freebsd[123]*) objformat=aout ;;
13409    *) objformat=elf ;;
13410    esac
13411  fi
13412  version_type=freebsd-$objformat
13413  case $version_type in
13414    freebsd-elf*)
13415      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13416      need_version=no
13417      need_lib_prefix=no
13418      ;;
13419    freebsd-*)
13420      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13421      need_version=yes
13422      ;;
13423  esac
13424  shlibpath_var=LD_LIBRARY_PATH
13425  case $host_os in
13426  freebsd2*)
13427    shlibpath_overrides_runpath=yes
13428    ;;
13429  freebsd3.[01]* | freebsdelf3.[01]*)
13430    shlibpath_overrides_runpath=yes
13431    hardcode_into_libs=yes
13432    ;;
13433  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13434  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13435    shlibpath_overrides_runpath=no
13436    hardcode_into_libs=yes
13437    ;;
13438  *) # from 4.6 on, and DragonFly
13439    shlibpath_overrides_runpath=yes
13440    hardcode_into_libs=yes
13441    ;;
13442  esac
13443  ;;
13444
13445gnu*)
13446  version_type=linux
13447  need_lib_prefix=no
13448  need_version=no
13449  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13450  soname_spec='${libname}${release}${shared_ext}$major'
13451  shlibpath_var=LD_LIBRARY_PATH
13452  hardcode_into_libs=yes
13453  ;;
13454
13455hpux9* | hpux10* | hpux11*)
13456  # Give a soname corresponding to the major version so that dld.sl refuses to
13457  # link against other versions.
13458  version_type=sunos
13459  need_lib_prefix=no
13460  need_version=no
13461  case $host_cpu in
13462  ia64*)
13463    shrext_cmds='.so'
13464    hardcode_into_libs=yes
13465    dynamic_linker="$host_os dld.so"
13466    shlibpath_var=LD_LIBRARY_PATH
13467    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13468    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13469    soname_spec='${libname}${release}${shared_ext}$major'
13470    if test "X$HPUX_IA64_MODE" = X32; then
13471      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13472    else
13473      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13474    fi
13475    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13476    ;;
13477   hppa*64*)
13478     shrext_cmds='.sl'
13479     hardcode_into_libs=yes
13480     dynamic_linker="$host_os dld.sl"
13481     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13482     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13483     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13484     soname_spec='${libname}${release}${shared_ext}$major'
13485     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13486     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13487     ;;
13488   *)
13489    shrext_cmds='.sl'
13490    dynamic_linker="$host_os dld.sl"
13491    shlibpath_var=SHLIB_PATH
13492    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13493    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13494    soname_spec='${libname}${release}${shared_ext}$major'
13495    ;;
13496  esac
13497  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13498  postinstall_cmds='chmod 555 $lib'
13499  ;;
13500
13501interix[3-9]*)
13502  version_type=linux
13503  need_lib_prefix=no
13504  need_version=no
13505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13506  soname_spec='${libname}${release}${shared_ext}$major'
13507  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13508  shlibpath_var=LD_LIBRARY_PATH
13509  shlibpath_overrides_runpath=no
13510  hardcode_into_libs=yes
13511  ;;
13512
13513irix5* | irix6* | nonstopux*)
13514  case $host_os in
13515    nonstopux*) version_type=nonstopux ;;
13516    *)
13517	if test "$lt_cv_prog_gnu_ld" = yes; then
13518		version_type=linux
13519	else
13520		version_type=irix
13521	fi ;;
13522  esac
13523  need_lib_prefix=no
13524  need_version=no
13525  soname_spec='${libname}${release}${shared_ext}$major'
13526  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13527  case $host_os in
13528  irix5* | nonstopux*)
13529    libsuff= shlibsuff=
13530    ;;
13531  *)
13532    case $LD in # libtool.m4 will add one of these switches to LD
13533    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13534      libsuff= shlibsuff= libmagic=32-bit;;
13535    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13536      libsuff=32 shlibsuff=N32 libmagic=N32;;
13537    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13538      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13539    *) libsuff= shlibsuff= libmagic=never-match;;
13540    esac
13541    ;;
13542  esac
13543  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13544  shlibpath_overrides_runpath=no
13545  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13546  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13547  hardcode_into_libs=yes
13548  ;;
13549
13550# No shared lib support for Linux oldld, aout, or coff.
13551linux*oldld* | linux*aout* | linux*coff*)
13552  dynamic_linker=no
13553  ;;
13554
13555# This must be Linux ELF.
13556linux* | k*bsd*-gnu)
13557  version_type=linux
13558  need_lib_prefix=no
13559  need_version=no
13560  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13561  soname_spec='${libname}${release}${shared_ext}$major'
13562  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13563  shlibpath_var=LD_LIBRARY_PATH
13564  shlibpath_overrides_runpath=no
13565  # This implies no fast_install, which is unacceptable.
13566  # Some rework will be needed to allow for fast_install
13567  # before this can be enabled.
13568  hardcode_into_libs=yes
13569
13570  # Append ld.so.conf contents to the search path
13571  if test -f /etc/ld.so.conf; then
13572    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13573    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13574  fi
13575
13576  # We used to test for /lib/ld.so.1 and disable shared libraries on
13577  # powerpc, because MkLinux only supported shared libraries with the
13578  # GNU dynamic linker.  Since this was broken with cross compilers,
13579  # most powerpc-linux boxes support dynamic linking these days and
13580  # people can always --disable-shared, the test was removed, and we
13581  # assume the GNU/Linux dynamic linker is in use.
13582  dynamic_linker='GNU/Linux ld.so'
13583  ;;
13584
13585netbsd*)
13586  version_type=sunos
13587  need_lib_prefix=no
13588  need_version=no
13589  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13590    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13591    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13592    dynamic_linker='NetBSD (a.out) ld.so'
13593  else
13594    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13595    soname_spec='${libname}${release}${shared_ext}$major'
13596    dynamic_linker='NetBSD ld.elf_so'
13597  fi
13598  shlibpath_var=LD_LIBRARY_PATH
13599  shlibpath_overrides_runpath=yes
13600  hardcode_into_libs=yes
13601  ;;
13602
13603newsos6)
13604  version_type=linux
13605  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13606  shlibpath_var=LD_LIBRARY_PATH
13607  shlibpath_overrides_runpath=yes
13608  ;;
13609
13610nto-qnx*)
13611  version_type=linux
13612  need_lib_prefix=no
13613  need_version=no
13614  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13615  soname_spec='${libname}${release}${shared_ext}$major'
13616  shlibpath_var=LD_LIBRARY_PATH
13617  shlibpath_overrides_runpath=yes
13618  ;;
13619
13620openbsd*)
13621  version_type=sunos
13622  sys_lib_dlsearch_path_spec="/usr/lib"
13623  need_lib_prefix=no
13624  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13625  case $host_os in
13626    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13627    *)                         need_version=no  ;;
13628  esac
13629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13630  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13631  shlibpath_var=LD_LIBRARY_PATH
13632  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13633    case $host_os in
13634      openbsd2.[89] | openbsd2.[89].*)
13635	shlibpath_overrides_runpath=no
13636	;;
13637      *)
13638	shlibpath_overrides_runpath=yes
13639	;;
13640      esac
13641  else
13642    shlibpath_overrides_runpath=yes
13643  fi
13644  ;;
13645
13646os2*)
13647  libname_spec='$name'
13648  shrext_cmds=".dll"
13649  need_lib_prefix=no
13650  library_names_spec='$libname${shared_ext} $libname.a'
13651  dynamic_linker='OS/2 ld.exe'
13652  shlibpath_var=LIBPATH
13653  ;;
13654
13655osf3* | osf4* | osf5*)
13656  version_type=osf
13657  need_lib_prefix=no
13658  need_version=no
13659  soname_spec='${libname}${release}${shared_ext}$major'
13660  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13661  shlibpath_var=LD_LIBRARY_PATH
13662  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13663  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13664  ;;
13665
13666rdos*)
13667  dynamic_linker=no
13668  ;;
13669
13670solaris*)
13671  version_type=linux
13672  need_lib_prefix=no
13673  need_version=no
13674  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13675  soname_spec='${libname}${release}${shared_ext}$major'
13676  shlibpath_var=LD_LIBRARY_PATH
13677  shlibpath_overrides_runpath=yes
13678  hardcode_into_libs=yes
13679  # ldd complains unless libraries are executable
13680  postinstall_cmds='chmod +x $lib'
13681  ;;
13682
13683sunos4*)
13684  version_type=sunos
13685  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13686  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13687  shlibpath_var=LD_LIBRARY_PATH
13688  shlibpath_overrides_runpath=yes
13689  if test "$with_gnu_ld" = yes; then
13690    need_lib_prefix=no
13691  fi
13692  need_version=yes
13693  ;;
13694
13695sysv4 | sysv4.3*)
13696  version_type=linux
13697  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13698  soname_spec='${libname}${release}${shared_ext}$major'
13699  shlibpath_var=LD_LIBRARY_PATH
13700  case $host_vendor in
13701    sni)
13702      shlibpath_overrides_runpath=no
13703      need_lib_prefix=no
13704      export_dynamic_flag_spec='${wl}-Blargedynsym'
13705      runpath_var=LD_RUN_PATH
13706      ;;
13707    siemens)
13708      need_lib_prefix=no
13709      ;;
13710    motorola)
13711      need_lib_prefix=no
13712      need_version=no
13713      shlibpath_overrides_runpath=no
13714      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13715      ;;
13716  esac
13717  ;;
13718
13719sysv4*MP*)
13720  if test -d /usr/nec ;then
13721    version_type=linux
13722    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13723    soname_spec='$libname${shared_ext}.$major'
13724    shlibpath_var=LD_LIBRARY_PATH
13725  fi
13726  ;;
13727
13728sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13729  version_type=freebsd-elf
13730  need_lib_prefix=no
13731  need_version=no
13732  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13733  soname_spec='${libname}${release}${shared_ext}$major'
13734  shlibpath_var=LD_LIBRARY_PATH
13735  hardcode_into_libs=yes
13736  if test "$with_gnu_ld" = yes; then
13737    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13738    shlibpath_overrides_runpath=no
13739  else
13740    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13741    shlibpath_overrides_runpath=yes
13742    case $host_os in
13743      sco3.2v5*)
13744        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13745	;;
13746    esac
13747  fi
13748  sys_lib_dlsearch_path_spec='/usr/lib'
13749  ;;
13750
13751uts4*)
13752  version_type=linux
13753  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13754  soname_spec='${libname}${release}${shared_ext}$major'
13755  shlibpath_var=LD_LIBRARY_PATH
13756  ;;
13757
13758*)
13759  dynamic_linker=no
13760  ;;
13761esac
13762{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13763$as_echo "$dynamic_linker" >&6; }
13764test "$dynamic_linker" = no && can_build_shared=no
13765
13766if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13767  $as_echo_n "(cached) " >&6
13768else
13769  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13770fi
13771
13772sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13773if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13774  $as_echo_n "(cached) " >&6
13775else
13776  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13777fi
13778
13779sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13780
13781variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13782if test "$GCC" = yes; then
13783  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13784fi
13785
13786{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13787$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13788hardcode_action_CXX=
13789if test -n "$hardcode_libdir_flag_spec_CXX" || \
13790   test -n "$runpath_var_CXX" || \
13791   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13792
13793  # We can hardcode non-existant directories.
13794  if test "$hardcode_direct_CXX" != no &&
13795     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13796     # have to relink, otherwise we might link with an installed library
13797     # when we should be linking with a yet-to-be-installed one
13798     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13799     test "$hardcode_minus_L_CXX" != no; then
13800    # Linking always hardcodes the temporary library directory.
13801    hardcode_action_CXX=relink
13802  else
13803    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13804    hardcode_action_CXX=immediate
13805  fi
13806else
13807  # We cannot hardcode anything, or else we can only hardcode existing
13808  # directories.
13809  hardcode_action_CXX=unsupported
13810fi
13811{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13812$as_echo "$hardcode_action_CXX" >&6; }
13813
13814if test "$hardcode_action_CXX" = relink; then
13815  # Fast installation is not supported
13816  enable_fast_install=no
13817elif test "$shlibpath_overrides_runpath" = yes ||
13818     test "$enable_shared" = no; then
13819  # Fast installation is not necessary
13820  enable_fast_install=needless
13821fi
13822
13823
13824# The else clause should only fire when bootstrapping the
13825# libtool distribution, otherwise you forgot to ship ltmain.sh
13826# with your package, and you will get complaints that there are
13827# no rules to generate ltmain.sh.
13828if test -f "$ltmain"; then
13829  # See if we are running on zsh, and set the options which allow our commands through
13830  # without removal of \ escapes.
13831  if test -n "${ZSH_VERSION+set}" ; then
13832    setopt NO_GLOB_SUBST
13833  fi
13834  # Now quote all the things that may contain metacharacters while being
13835  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13836  # variables and quote the copies for generation of the libtool script.
13837  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13838    SED SHELL STRIP \
13839    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13840    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13841    deplibs_check_method reload_flag reload_cmds need_locks \
13842    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13843    lt_cv_sys_global_symbol_to_c_name_address \
13844    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13845    old_postinstall_cmds old_postuninstall_cmds \
13846    compiler_CXX \
13847    CC_CXX \
13848    LD_CXX \
13849    lt_prog_compiler_wl_CXX \
13850    lt_prog_compiler_pic_CXX \
13851    lt_prog_compiler_static_CXX \
13852    lt_prog_compiler_no_builtin_flag_CXX \
13853    export_dynamic_flag_spec_CXX \
13854    thread_safe_flag_spec_CXX \
13855    whole_archive_flag_spec_CXX \
13856    enable_shared_with_static_runtimes_CXX \
13857    old_archive_cmds_CXX \
13858    old_archive_from_new_cmds_CXX \
13859    predep_objects_CXX \
13860    postdep_objects_CXX \
13861    predeps_CXX \
13862    postdeps_CXX \
13863    compiler_lib_search_path_CXX \
13864    compiler_lib_search_dirs_CXX \
13865    archive_cmds_CXX \
13866    archive_expsym_cmds_CXX \
13867    postinstall_cmds_CXX \
13868    postuninstall_cmds_CXX \
13869    old_archive_from_expsyms_cmds_CXX \
13870    allow_undefined_flag_CXX \
13871    no_undefined_flag_CXX \
13872    export_symbols_cmds_CXX \
13873    hardcode_libdir_flag_spec_CXX \
13874    hardcode_libdir_flag_spec_ld_CXX \
13875    hardcode_libdir_separator_CXX \
13876    hardcode_automatic_CXX \
13877    module_cmds_CXX \
13878    module_expsym_cmds_CXX \
13879    lt_cv_prog_compiler_c_o_CXX \
13880    fix_srcfile_path_CXX \
13881    exclude_expsyms_CXX \
13882    include_expsyms_CXX; do
13883
13884    case $var in
13885    old_archive_cmds_CXX | \
13886    old_archive_from_new_cmds_CXX | \
13887    archive_cmds_CXX | \
13888    archive_expsym_cmds_CXX | \
13889    module_cmds_CXX | \
13890    module_expsym_cmds_CXX | \
13891    old_archive_from_expsyms_cmds_CXX | \
13892    export_symbols_cmds_CXX | \
13893    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13894    postinstall_cmds | postuninstall_cmds | \
13895    old_postinstall_cmds | old_postuninstall_cmds | \
13896    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13897      # Double-quote double-evaled strings.
13898      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13899      ;;
13900    *)
13901      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13902      ;;
13903    esac
13904  done
13905
13906  case $lt_echo in
13907  *'\$0 --fallback-echo"')
13908    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13909    ;;
13910  esac
13911
13912cfgfile="$ofile"
13913
13914  cat <<__EOF__ >> "$cfgfile"
13915# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13916
13917# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13918
13919# Shell to use when invoking shell scripts.
13920SHELL=$lt_SHELL
13921
13922# Whether or not to build shared libraries.
13923build_libtool_libs=$enable_shared
13924
13925# Whether or not to build static libraries.
13926build_old_libs=$enable_static
13927
13928# Whether or not to add -lc for building shared libraries.
13929build_libtool_need_lc=$archive_cmds_need_lc_CXX
13930
13931# Whether or not to disallow shared libs when runtime libs are static
13932allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13933
13934# Whether or not to optimize for fast installation.
13935fast_install=$enable_fast_install
13936
13937# The host system.
13938host_alias=$host_alias
13939host=$host
13940host_os=$host_os
13941
13942# The build system.
13943build_alias=$build_alias
13944build=$build
13945build_os=$build_os
13946
13947# An echo program that does not interpret backslashes.
13948echo=$lt_echo
13949
13950# The archiver.
13951AR=$lt_AR
13952AR_FLAGS=$lt_AR_FLAGS
13953
13954# A C compiler.
13955LTCC=$lt_LTCC
13956
13957# LTCC compiler flags.
13958LTCFLAGS=$lt_LTCFLAGS
13959
13960# A language-specific compiler.
13961CC=$lt_compiler_CXX
13962
13963# Is the compiler the GNU C compiler?
13964with_gcc=$GCC_CXX
13965
13966# An ERE matcher.
13967EGREP=$lt_EGREP
13968
13969# The linker used to build libraries.
13970LD=$lt_LD_CXX
13971
13972# Whether we need hard or soft links.
13973LN_S=$lt_LN_S
13974
13975# A BSD-compatible nm program.
13976NM=$lt_NM
13977
13978# A symbol stripping program
13979STRIP=$lt_STRIP
13980
13981# Used to examine libraries when file_magic_cmd begins "file"
13982MAGIC_CMD=$MAGIC_CMD
13983
13984# Used on cygwin: DLL creation program.
13985DLLTOOL="$DLLTOOL"
13986
13987# Used on cygwin: object dumper.
13988OBJDUMP="$OBJDUMP"
13989
13990# Used on cygwin: assembler.
13991AS="$AS"
13992
13993# The name of the directory that contains temporary libtool files.
13994objdir=$objdir
13995
13996# How to create reloadable object files.
13997reload_flag=$lt_reload_flag
13998reload_cmds=$lt_reload_cmds
13999
14000# How to pass a linker flag through the compiler.
14001wl=$lt_lt_prog_compiler_wl_CXX
14002
14003# Object file suffix (normally "o").
14004objext="$ac_objext"
14005
14006# Old archive suffix (normally "a").
14007libext="$libext"
14008
14009# Shared library suffix (normally ".so").
14010shrext_cmds='$shrext_cmds'
14011
14012# Executable file suffix (normally "").
14013exeext="$exeext"
14014
14015# Additional compiler flags for building library objects.
14016pic_flag=$lt_lt_prog_compiler_pic_CXX
14017pic_mode=$pic_mode
14018
14019# What is the maximum length of a command?
14020max_cmd_len=$lt_cv_sys_max_cmd_len
14021
14022# Does compiler simultaneously support -c and -o options?
14023compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14024
14025# Must we lock files when doing compilation?
14026need_locks=$lt_need_locks
14027
14028# Do we need the lib prefix for modules?
14029need_lib_prefix=$need_lib_prefix
14030
14031# Do we need a version for libraries?
14032need_version=$need_version
14033
14034# Whether dlopen is supported.
14035dlopen_support=$enable_dlopen
14036
14037# Whether dlopen of programs is supported.
14038dlopen_self=$enable_dlopen_self
14039
14040# Whether dlopen of statically linked programs is supported.
14041dlopen_self_static=$enable_dlopen_self_static
14042
14043# Compiler flag to prevent dynamic linking.
14044link_static_flag=$lt_lt_prog_compiler_static_CXX
14045
14046# Compiler flag to turn off builtin functions.
14047no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14048
14049# Compiler flag to allow reflexive dlopens.
14050export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14051
14052# Compiler flag to generate shared objects directly from archives.
14053whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14054
14055# Compiler flag to generate thread-safe objects.
14056thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14057
14058# Library versioning type.
14059version_type=$version_type
14060
14061# Format of library name prefix.
14062libname_spec=$lt_libname_spec
14063
14064# List of archive names.  First name is the real one, the rest are links.
14065# The last name is the one that the linker finds with -lNAME.
14066library_names_spec=$lt_library_names_spec
14067
14068# The coded name of the library, if different from the real name.
14069soname_spec=$lt_soname_spec
14070
14071# Commands used to build and install an old-style archive.
14072RANLIB=$lt_RANLIB
14073old_archive_cmds=$lt_old_archive_cmds_CXX
14074old_postinstall_cmds=$lt_old_postinstall_cmds
14075old_postuninstall_cmds=$lt_old_postuninstall_cmds
14076
14077# Create an old-style archive from a shared archive.
14078old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14079
14080# Create a temporary old-style archive to link instead of a shared archive.
14081old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14082
14083# Commands used to build and install a shared archive.
14084archive_cmds=$lt_archive_cmds_CXX
14085archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14086postinstall_cmds=$lt_postinstall_cmds
14087postuninstall_cmds=$lt_postuninstall_cmds
14088
14089# Commands used to build a loadable module (assumed same as above if empty)
14090module_cmds=$lt_module_cmds_CXX
14091module_expsym_cmds=$lt_module_expsym_cmds_CXX
14092
14093# Commands to strip libraries.
14094old_striplib=$lt_old_striplib
14095striplib=$lt_striplib
14096
14097# Dependencies to place before the objects being linked to create a
14098# shared library.
14099predep_objects=$lt_predep_objects_CXX
14100
14101# Dependencies to place after the objects being linked to create a
14102# shared library.
14103postdep_objects=$lt_postdep_objects_CXX
14104
14105# Dependencies to place before the objects being linked to create a
14106# shared library.
14107predeps=$lt_predeps_CXX
14108
14109# Dependencies to place after the objects being linked to create a
14110# shared library.
14111postdeps=$lt_postdeps_CXX
14112
14113# The directories searched by this compiler when creating a shared
14114# library
14115compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14116
14117# The library search path used internally by the compiler when linking
14118# a shared library.
14119compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14120
14121# Method to check whether dependent libraries are shared objects.
14122deplibs_check_method=$lt_deplibs_check_method
14123
14124# Command to use when deplibs_check_method == file_magic.
14125file_magic_cmd=$lt_file_magic_cmd
14126
14127# Flag that allows shared libraries with undefined symbols to be built.
14128allow_undefined_flag=$lt_allow_undefined_flag_CXX
14129
14130# Flag that forces no undefined symbols.
14131no_undefined_flag=$lt_no_undefined_flag_CXX
14132
14133# Commands used to finish a libtool library installation in a directory.
14134finish_cmds=$lt_finish_cmds
14135
14136# Same as above, but a single script fragment to be evaled but not shown.
14137finish_eval=$lt_finish_eval
14138
14139# Take the output of nm and produce a listing of raw symbols and C names.
14140global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14141
14142# Transform the output of nm in a proper C declaration
14143global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14144
14145# Transform the output of nm in a C name address pair
14146global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14147
14148# This is the shared library runtime path variable.
14149runpath_var=$runpath_var
14150
14151# This is the shared library path variable.
14152shlibpath_var=$shlibpath_var
14153
14154# Is shlibpath searched before the hard-coded library search path?
14155shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14156
14157# How to hardcode a shared library path into an executable.
14158hardcode_action=$hardcode_action_CXX
14159
14160# Whether we should hardcode library paths into libraries.
14161hardcode_into_libs=$hardcode_into_libs
14162
14163# Flag to hardcode \$libdir into a binary during linking.
14164# This must work even if \$libdir does not exist.
14165hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14166
14167# If ld is used when linking, flag to hardcode \$libdir into
14168# a binary during linking. This must work even if \$libdir does
14169# not exist.
14170hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14171
14172# Whether we need a single -rpath flag with a separated argument.
14173hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14174
14175# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14176# resulting binary.
14177hardcode_direct=$hardcode_direct_CXX
14178
14179# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14180# resulting binary.
14181hardcode_minus_L=$hardcode_minus_L_CXX
14182
14183# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14184# the resulting binary.
14185hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14186
14187# Set to yes if building a shared library automatically hardcodes DIR into the library
14188# and all subsequent libraries and executables linked against it.
14189hardcode_automatic=$hardcode_automatic_CXX
14190
14191# Variables whose values should be saved in libtool wrapper scripts and
14192# restored at relink time.
14193variables_saved_for_relink="$variables_saved_for_relink"
14194
14195# Whether libtool must link a program against all its dependency libraries.
14196link_all_deplibs=$link_all_deplibs_CXX
14197
14198# Compile-time system search path for libraries
14199sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14200
14201# Run-time system search path for libraries
14202sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14203
14204# Fix the shell variable \$srcfile for the compiler.
14205fix_srcfile_path=$lt_fix_srcfile_path
14206
14207# Set to yes if exported symbols are required.
14208always_export_symbols=$always_export_symbols_CXX
14209
14210# The commands to list exported symbols.
14211export_symbols_cmds=$lt_export_symbols_cmds_CXX
14212
14213# The commands to extract the exported symbol list from a shared archive.
14214extract_expsyms_cmds=$lt_extract_expsyms_cmds
14215
14216# Symbols that should not be listed in the preloaded symbols.
14217exclude_expsyms=$lt_exclude_expsyms_CXX
14218
14219# Symbols that must always be exported.
14220include_expsyms=$lt_include_expsyms_CXX
14221
14222# ### END LIBTOOL TAG CONFIG: $tagname
14223
14224__EOF__
14225
14226
14227else
14228  # If there is no Makefile yet, we rely on a make rule to execute
14229  # `config.status --recheck' to rerun these tests and create the
14230  # libtool script then.
14231  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14232  if test -f "$ltmain_in"; then
14233    test -f Makefile && make "$ltmain"
14234  fi
14235fi
14236
14237
14238ac_ext=c
14239ac_cpp='$CPP $CPPFLAGS'
14240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14242ac_compiler_gnu=$ac_cv_c_compiler_gnu
14243
14244CC=$lt_save_CC
14245LDCXX=$LD
14246LD=$lt_save_LD
14247GCC=$lt_save_GCC
14248with_gnu_ldcxx=$with_gnu_ld
14249with_gnu_ld=$lt_save_with_gnu_ld
14250lt_cv_path_LDCXX=$lt_cv_path_LD
14251lt_cv_path_LD=$lt_save_path_LD
14252lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14253lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14254
14255	else
14256	  tagname=""
14257	fi
14258	;;
14259
14260      F77)
14261	if test -n "$F77" && test "X$F77" != "Xno"; then
14262
14263ac_ext=f
14264ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14265ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14266ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14267
14268
14269archive_cmds_need_lc_F77=no
14270allow_undefined_flag_F77=
14271always_export_symbols_F77=no
14272archive_expsym_cmds_F77=
14273export_dynamic_flag_spec_F77=
14274hardcode_direct_F77=no
14275hardcode_libdir_flag_spec_F77=
14276hardcode_libdir_flag_spec_ld_F77=
14277hardcode_libdir_separator_F77=
14278hardcode_minus_L_F77=no
14279hardcode_automatic_F77=no
14280module_cmds_F77=
14281module_expsym_cmds_F77=
14282link_all_deplibs_F77=unknown
14283old_archive_cmds_F77=$old_archive_cmds
14284no_undefined_flag_F77=
14285whole_archive_flag_spec_F77=
14286enable_shared_with_static_runtimes_F77=no
14287
14288# Source file extension for f77 test sources.
14289ac_ext=f
14290
14291# Object file extension for compiled f77 test sources.
14292objext=o
14293objext_F77=$objext
14294
14295# Code to be used in simple compile tests
14296lt_simple_compile_test_code="\
14297      subroutine t
14298      return
14299      end
14300"
14301
14302# Code to be used in simple link tests
14303lt_simple_link_test_code="\
14304      program t
14305      end
14306"
14307
14308# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14309
14310# If no C compiler was specified, use CC.
14311LTCC=${LTCC-"$CC"}
14312
14313# If no C compiler flags were specified, use CFLAGS.
14314LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14315
14316# Allow CC to be a program name with arguments.
14317compiler=$CC
14318
14319
14320# save warnings/boilerplate of simple test code
14321ac_outfile=conftest.$ac_objext
14322echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14323eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14324_lt_compiler_boilerplate=`cat conftest.err`
14325$rm conftest*
14326
14327ac_outfile=conftest.$ac_objext
14328echo "$lt_simple_link_test_code" >conftest.$ac_ext
14329eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14330_lt_linker_boilerplate=`cat conftest.err`
14331$rm -r conftest*
14332
14333
14334# Allow CC to be a program name with arguments.
14335lt_save_CC="$CC"
14336CC=${F77-"f77"}
14337compiler=$CC
14338compiler_F77=$CC
14339for cc_temp in $compiler""; do
14340  case $cc_temp in
14341    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14342    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14343    \-*) ;;
14344    *) break;;
14345  esac
14346done
14347cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14348
14349
14350{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14351$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14352{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14353$as_echo "$can_build_shared" >&6; }
14354
14355{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14356$as_echo_n "checking whether to build shared libraries... " >&6; }
14357test "$can_build_shared" = "no" && enable_shared=no
14358
14359# On AIX, shared libraries and static libraries use the same namespace, and
14360# are all built from PIC.
14361case $host_os in
14362aix3*)
14363  test "$enable_shared" = yes && enable_static=no
14364  if test -n "$RANLIB"; then
14365    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14366    postinstall_cmds='$RANLIB $lib'
14367  fi
14368  ;;
14369aix[4-9]*)
14370  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14371    test "$enable_shared" = yes && enable_static=no
14372  fi
14373  ;;
14374esac
14375{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14376$as_echo "$enable_shared" >&6; }
14377
14378{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14379$as_echo_n "checking whether to build static libraries... " >&6; }
14380# Make sure either enable_shared or enable_static is yes.
14381test "$enable_shared" = yes || enable_static=yes
14382{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14383$as_echo "$enable_static" >&6; }
14384
14385GCC_F77="$G77"
14386LD_F77="$LD"
14387
14388lt_prog_compiler_wl_F77=
14389lt_prog_compiler_pic_F77=
14390lt_prog_compiler_static_F77=
14391
14392{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14393$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14394
14395  if test "$GCC" = yes; then
14396    lt_prog_compiler_wl_F77='-Wl,'
14397    lt_prog_compiler_static_F77='-static'
14398
14399    case $host_os in
14400      aix*)
14401      # All AIX code is PIC.
14402      if test "$host_cpu" = ia64; then
14403	# AIX 5 now supports IA64 processor
14404	lt_prog_compiler_static_F77='-Bstatic'
14405      fi
14406      ;;
14407
14408    amigaos*)
14409      # FIXME: we need at least 68020 code to build shared libraries, but
14410      # adding the `-m68020' flag to GCC prevents building anything better,
14411      # like `-m68040'.
14412      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14413      ;;
14414
14415    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14416      # PIC is the default for these OSes.
14417      ;;
14418
14419    mingw* | cygwin* | pw32* | os2*)
14420      # This hack is so that the source file can tell whether it is being
14421      # built for inclusion in a dll (and should export symbols for example).
14422      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14423      # (--disable-auto-import) libraries
14424      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14425      ;;
14426
14427    darwin* | rhapsody*)
14428      # PIC is the default on this platform
14429      # Common symbols not allowed in MH_DYLIB files
14430      lt_prog_compiler_pic_F77='-fno-common'
14431      ;;
14432
14433    interix[3-9]*)
14434      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14435      # Instead, we relocate shared libraries at runtime.
14436      ;;
14437
14438    msdosdjgpp*)
14439      # Just because we use GCC doesn't mean we suddenly get shared libraries
14440      # on systems that don't support them.
14441      lt_prog_compiler_can_build_shared_F77=no
14442      enable_shared=no
14443      ;;
14444
14445    sysv4*MP*)
14446      if test -d /usr/nec; then
14447	lt_prog_compiler_pic_F77=-Kconform_pic
14448      fi
14449      ;;
14450
14451    hpux*)
14452      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14453      # not for PA HP-UX.
14454      case $host_cpu in
14455      hppa*64*|ia64*)
14456	# +Z the default
14457	;;
14458      *)
14459	lt_prog_compiler_pic_F77='-fPIC'
14460	;;
14461      esac
14462      ;;
14463
14464    *)
14465      lt_prog_compiler_pic_F77='-fPIC'
14466      ;;
14467    esac
14468  else
14469    # PORTME Check for flag to pass linker flags through the system compiler.
14470    case $host_os in
14471    aix*)
14472      lt_prog_compiler_wl_F77='-Wl,'
14473      if test "$host_cpu" = ia64; then
14474	# AIX 5 now supports IA64 processor
14475	lt_prog_compiler_static_F77='-Bstatic'
14476      else
14477	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14478      fi
14479      ;;
14480      darwin*)
14481        # PIC is the default on this platform
14482        # Common symbols not allowed in MH_DYLIB files
14483       case $cc_basename in
14484         xlc*)
14485         lt_prog_compiler_pic_F77='-qnocommon'
14486         lt_prog_compiler_wl_F77='-Wl,'
14487         ;;
14488       esac
14489       ;;
14490
14491    mingw* | cygwin* | pw32* | os2*)
14492      # This hack is so that the source file can tell whether it is being
14493      # built for inclusion in a dll (and should export symbols for example).
14494      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14495      ;;
14496
14497    hpux9* | hpux10* | hpux11*)
14498      lt_prog_compiler_wl_F77='-Wl,'
14499      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14500      # not for PA HP-UX.
14501      case $host_cpu in
14502      hppa*64*|ia64*)
14503	# +Z the default
14504	;;
14505      *)
14506	lt_prog_compiler_pic_F77='+Z'
14507	;;
14508      esac
14509      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14510      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14511      ;;
14512
14513    irix5* | irix6* | nonstopux*)
14514      lt_prog_compiler_wl_F77='-Wl,'
14515      # PIC (with -KPIC) is the default.
14516      lt_prog_compiler_static_F77='-non_shared'
14517      ;;
14518
14519    newsos6)
14520      lt_prog_compiler_pic_F77='-KPIC'
14521      lt_prog_compiler_static_F77='-Bstatic'
14522      ;;
14523
14524    linux* | k*bsd*-gnu)
14525      case $cc_basename in
14526      icc* | ecc*)
14527	lt_prog_compiler_wl_F77='-Wl,'
14528	lt_prog_compiler_pic_F77='-KPIC'
14529	lt_prog_compiler_static_F77='-static'
14530        ;;
14531      pgcc* | pgf77* | pgf90* | pgf95*)
14532        # Portland Group compilers (*not* the Pentium gcc compiler,
14533	# which looks to be a dead project)
14534	lt_prog_compiler_wl_F77='-Wl,'
14535	lt_prog_compiler_pic_F77='-fpic'
14536	lt_prog_compiler_static_F77='-Bstatic'
14537        ;;
14538      ccc*)
14539        lt_prog_compiler_wl_F77='-Wl,'
14540        # All Alpha code is PIC.
14541        lt_prog_compiler_static_F77='-non_shared'
14542        ;;
14543      *)
14544        case `$CC -V 2>&1 | sed 5q` in
14545	*Sun\ C*)
14546	  # Sun C 5.9
14547	  lt_prog_compiler_pic_F77='-KPIC'
14548	  lt_prog_compiler_static_F77='-Bstatic'
14549	  lt_prog_compiler_wl_F77='-Wl,'
14550	  ;;
14551	*Sun\ F*)
14552	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14553	  lt_prog_compiler_pic_F77='-KPIC'
14554	  lt_prog_compiler_static_F77='-Bstatic'
14555	  lt_prog_compiler_wl_F77=''
14556	  ;;
14557	esac
14558	;;
14559      esac
14560      ;;
14561
14562    osf3* | osf4* | osf5*)
14563      lt_prog_compiler_wl_F77='-Wl,'
14564      # All OSF/1 code is PIC.
14565      lt_prog_compiler_static_F77='-non_shared'
14566      ;;
14567
14568    rdos*)
14569      lt_prog_compiler_static_F77='-non_shared'
14570      ;;
14571
14572    solaris*)
14573      lt_prog_compiler_pic_F77='-KPIC'
14574      lt_prog_compiler_static_F77='-Bstatic'
14575      case $cc_basename in
14576      f77* | f90* | f95*)
14577	lt_prog_compiler_wl_F77='-Qoption ld ';;
14578      *)
14579	lt_prog_compiler_wl_F77='-Wl,';;
14580      esac
14581      ;;
14582
14583    sunos4*)
14584      lt_prog_compiler_wl_F77='-Qoption ld '
14585      lt_prog_compiler_pic_F77='-PIC'
14586      lt_prog_compiler_static_F77='-Bstatic'
14587      ;;
14588
14589    sysv4 | sysv4.2uw2* | sysv4.3*)
14590      lt_prog_compiler_wl_F77='-Wl,'
14591      lt_prog_compiler_pic_F77='-KPIC'
14592      lt_prog_compiler_static_F77='-Bstatic'
14593      ;;
14594
14595    sysv4*MP*)
14596      if test -d /usr/nec ;then
14597	lt_prog_compiler_pic_F77='-Kconform_pic'
14598	lt_prog_compiler_static_F77='-Bstatic'
14599      fi
14600      ;;
14601
14602    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14603      lt_prog_compiler_wl_F77='-Wl,'
14604      lt_prog_compiler_pic_F77='-KPIC'
14605      lt_prog_compiler_static_F77='-Bstatic'
14606      ;;
14607
14608    unicos*)
14609      lt_prog_compiler_wl_F77='-Wl,'
14610      lt_prog_compiler_can_build_shared_F77=no
14611      ;;
14612
14613    uts4*)
14614      lt_prog_compiler_pic_F77='-pic'
14615      lt_prog_compiler_static_F77='-Bstatic'
14616      ;;
14617
14618    *)
14619      lt_prog_compiler_can_build_shared_F77=no
14620      ;;
14621    esac
14622  fi
14623
14624{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14625$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14626
14627#
14628# Check to make sure the PIC flag actually works.
14629#
14630if test -n "$lt_prog_compiler_pic_F77"; then
14631
14632{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14633$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14634if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14635  $as_echo_n "(cached) " >&6
14636else
14637  lt_cv_prog_compiler_pic_works_F77=no
14638  ac_outfile=conftest.$ac_objext
14639   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14640   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14641   # Insert the option either (1) after the last *FLAGS variable, or
14642   # (2) before a word containing "conftest.", or (3) at the end.
14643   # Note that $ac_compile itself does not contain backslashes and begins
14644   # with a dollar sign (not a hyphen), so the echo should work correctly.
14645   # The option is referenced via a variable to avoid confusing sed.
14646   lt_compile=`echo "$ac_compile" | $SED \
14647   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14648   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14649   -e 's:$: $lt_compiler_flag:'`
14650   (eval echo "\"\$as_me:14650: $lt_compile\"" >&5)
14651   (eval "$lt_compile" 2>conftest.err)
14652   ac_status=$?
14653   cat conftest.err >&5
14654   echo "$as_me:14654: \$? = $ac_status" >&5
14655   if (exit $ac_status) && test -s "$ac_outfile"; then
14656     # The compiler can only warn and ignore the option if not recognized
14657     # So say no if there are warnings other than the usual output.
14658     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14659     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14660     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14661       lt_cv_prog_compiler_pic_works_F77=yes
14662     fi
14663   fi
14664   $rm conftest*
14665
14666fi
14667{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14668$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14669
14670if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14671    case $lt_prog_compiler_pic_F77 in
14672     "" | " "*) ;;
14673     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14674     esac
14675else
14676    lt_prog_compiler_pic_F77=
14677     lt_prog_compiler_can_build_shared_F77=no
14678fi
14679
14680fi
14681case $host_os in
14682  # For platforms which do not support PIC, -DPIC is meaningless:
14683  *djgpp*)
14684    lt_prog_compiler_pic_F77=
14685    ;;
14686  *)
14687    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14688    ;;
14689esac
14690
14691#
14692# Check to make sure the static flag actually works.
14693#
14694wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14695{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14696$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14697if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14698  $as_echo_n "(cached) " >&6
14699else
14700  lt_cv_prog_compiler_static_works_F77=no
14701   save_LDFLAGS="$LDFLAGS"
14702   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14703   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14704   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14705     # The linker can only warn and ignore the option if not recognized
14706     # So say no if there are warnings
14707     if test -s conftest.err; then
14708       # Append any errors to the config.log.
14709       cat conftest.err 1>&5
14710       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14711       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14712       if diff conftest.exp conftest.er2 >/dev/null; then
14713         lt_cv_prog_compiler_static_works_F77=yes
14714       fi
14715     else
14716       lt_cv_prog_compiler_static_works_F77=yes
14717     fi
14718   fi
14719   $rm -r conftest*
14720   LDFLAGS="$save_LDFLAGS"
14721
14722fi
14723{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14724$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14725
14726if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14727    :
14728else
14729    lt_prog_compiler_static_F77=
14730fi
14731
14732
14733{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14734$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14735if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14736  $as_echo_n "(cached) " >&6
14737else
14738  lt_cv_prog_compiler_c_o_F77=no
14739   $rm -r conftest 2>/dev/null
14740   mkdir conftest
14741   cd conftest
14742   mkdir out
14743   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14744
14745   lt_compiler_flag="-o out/conftest2.$ac_objext"
14746   # Insert the option either (1) after the last *FLAGS variable, or
14747   # (2) before a word containing "conftest.", or (3) at the end.
14748   # Note that $ac_compile itself does not contain backslashes and begins
14749   # with a dollar sign (not a hyphen), so the echo should work correctly.
14750   lt_compile=`echo "$ac_compile" | $SED \
14751   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14752   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14753   -e 's:$: $lt_compiler_flag:'`
14754   (eval echo "\"\$as_me:14754: $lt_compile\"" >&5)
14755   (eval "$lt_compile" 2>out/conftest.err)
14756   ac_status=$?
14757   cat out/conftest.err >&5
14758   echo "$as_me:14758: \$? = $ac_status" >&5
14759   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14760   then
14761     # The compiler can only warn and ignore the option if not recognized
14762     # So say no if there are warnings
14763     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14764     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14765     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14766       lt_cv_prog_compiler_c_o_F77=yes
14767     fi
14768   fi
14769   chmod u+w . 2>&5
14770   $rm conftest*
14771   # SGI C++ compiler will create directory out/ii_files/ for
14772   # template instantiation
14773   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14774   $rm out/* && rmdir out
14775   cd ..
14776   rmdir conftest
14777   $rm conftest*
14778
14779fi
14780{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14781$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14782
14783
14784hard_links="nottested"
14785if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14786  # do not overwrite the value of need_locks provided by the user
14787  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14788$as_echo_n "checking if we can lock with hard links... " >&6; }
14789  hard_links=yes
14790  $rm conftest*
14791  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14792  touch conftest.a
14793  ln conftest.a conftest.b 2>&5 || hard_links=no
14794  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14795  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14796$as_echo "$hard_links" >&6; }
14797  if test "$hard_links" = no; then
14798    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14799$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14800    need_locks=warn
14801  fi
14802else
14803  need_locks=no
14804fi
14805
14806{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14807$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14808
14809  runpath_var=
14810  allow_undefined_flag_F77=
14811  enable_shared_with_static_runtimes_F77=no
14812  archive_cmds_F77=
14813  archive_expsym_cmds_F77=
14814  old_archive_From_new_cmds_F77=
14815  old_archive_from_expsyms_cmds_F77=
14816  export_dynamic_flag_spec_F77=
14817  whole_archive_flag_spec_F77=
14818  thread_safe_flag_spec_F77=
14819  hardcode_libdir_flag_spec_F77=
14820  hardcode_libdir_flag_spec_ld_F77=
14821  hardcode_libdir_separator_F77=
14822  hardcode_direct_F77=no
14823  hardcode_minus_L_F77=no
14824  hardcode_shlibpath_var_F77=unsupported
14825  link_all_deplibs_F77=unknown
14826  hardcode_automatic_F77=no
14827  module_cmds_F77=
14828  module_expsym_cmds_F77=
14829  always_export_symbols_F77=no
14830  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14831  # include_expsyms should be a list of space-separated symbols to be *always*
14832  # included in the symbol list
14833  include_expsyms_F77=
14834  # exclude_expsyms can be an extended regexp of symbols to exclude
14835  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14836  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14837  # as well as any symbol that contains `d'.
14838  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14839  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14840  # platforms (ab)use it in PIC code, but their linkers get confused if
14841  # the symbol is explicitly referenced.  Since portable code cannot
14842  # rely on this symbol name, it's probably fine to never include it in
14843  # preloaded symbol tables.
14844  # Exclude shared library initialization/finalization symbols.
14845  extract_expsyms_cmds=
14846  # Just being paranoid about ensuring that cc_basename is set.
14847  for cc_temp in $compiler""; do
14848  case $cc_temp in
14849    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14850    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14851    \-*) ;;
14852    *) break;;
14853  esac
14854done
14855cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14856
14857  case $host_os in
14858  cygwin* | mingw* | pw32*)
14859    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14860    # When not using gcc, we currently assume that we are using
14861    # Microsoft Visual C++.
14862    if test "$GCC" != yes; then
14863      with_gnu_ld=no
14864    fi
14865    ;;
14866  interix*)
14867    # we just hope/assume this is gcc and not c89 (= MSVC++)
14868    with_gnu_ld=yes
14869    ;;
14870  openbsd*)
14871    with_gnu_ld=no
14872    ;;
14873  esac
14874
14875  ld_shlibs_F77=yes
14876  if test "$with_gnu_ld" = yes; then
14877    # If archive_cmds runs LD, not CC, wlarc should be empty
14878    wlarc='${wl}'
14879
14880    # Set some defaults for GNU ld with shared library support. These
14881    # are reset later if shared libraries are not supported. Putting them
14882    # here allows them to be overridden if necessary.
14883    runpath_var=LD_RUN_PATH
14884    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14885    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14886    # ancient GNU ld didn't support --whole-archive et. al.
14887    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14888	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14889      else
14890  	whole_archive_flag_spec_F77=
14891    fi
14892    supports_anon_versioning=no
14893    case `$LD -v 2>/dev/null` in
14894      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14895      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14896      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14897      *\ 2.11.*) ;; # other 2.11 versions
14898      *) supports_anon_versioning=yes ;;
14899    esac
14900
14901    # See if GNU ld supports shared libraries.
14902    case $host_os in
14903    aix[3-9]*)
14904      # On AIX/PPC, the GNU linker is very broken
14905      if test "$host_cpu" != ia64; then
14906	ld_shlibs_F77=no
14907	cat <<EOF 1>&2
14908
14909*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14910*** to be unable to reliably create shared libraries on AIX.
14911*** Therefore, libtool is disabling shared libraries support.  If you
14912*** really care for shared libraries, you may want to modify your PATH
14913*** so that a non-GNU linker is found, and then restart.
14914
14915EOF
14916      fi
14917      ;;
14918
14919    amigaos*)
14920      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)'
14921      hardcode_libdir_flag_spec_F77='-L$libdir'
14922      hardcode_minus_L_F77=yes
14923
14924      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14925      # that the semantics of dynamic libraries on AmigaOS, at least up
14926      # to version 4, is to share data among multiple programs linked
14927      # with the same dynamic library.  Since this doesn't match the
14928      # behavior of shared libraries on other platforms, we can't use
14929      # them.
14930      ld_shlibs_F77=no
14931      ;;
14932
14933    beos*)
14934      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14935	allow_undefined_flag_F77=unsupported
14936	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14937	# support --undefined.  This deserves some investigation.  FIXME
14938	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14939      else
14940	ld_shlibs_F77=no
14941      fi
14942      ;;
14943
14944    cygwin* | mingw* | pw32*)
14945      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14946      # as there is no search path for DLLs.
14947      hardcode_libdir_flag_spec_F77='-L$libdir'
14948      allow_undefined_flag_F77=unsupported
14949      always_export_symbols_F77=no
14950      enable_shared_with_static_runtimes_F77=yes
14951      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14952
14953      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14954        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14955	# If the export-symbols file already is a .def file (1st line
14956	# is EXPORTS), use it as is; otherwise, prepend...
14957	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14958	  cp $export_symbols $output_objdir/$soname.def;
14959	else
14960	  echo EXPORTS > $output_objdir/$soname.def;
14961	  cat $export_symbols >> $output_objdir/$soname.def;
14962	fi~
14963	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14964      else
14965	ld_shlibs_F77=no
14966      fi
14967      ;;
14968
14969    interix[3-9]*)
14970      hardcode_direct_F77=no
14971      hardcode_shlibpath_var_F77=no
14972      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14973      export_dynamic_flag_spec_F77='${wl}-E'
14974      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14975      # Instead, shared libraries are loaded at an image base (0x10000000 by
14976      # default) and relocated if they conflict, which is a slow very memory
14977      # consuming and fragmenting process.  To avoid this, we pick a random,
14978      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14979      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14980      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'
14981      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'
14982      ;;
14983
14984    gnu* | linux* | k*bsd*-gnu)
14985      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14986	tmp_addflag=
14987	case $cc_basename,$host_cpu in
14988	pgcc*)				# Portland Group C compiler
14989	  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'
14990	  tmp_addflag=' $pic_flag'
14991	  ;;
14992	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14993	  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'
14994	  tmp_addflag=' $pic_flag -Mnomain' ;;
14995	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14996	  tmp_addflag=' -i_dynamic' ;;
14997	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14998	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14999	ifc* | ifort*)			# Intel Fortran compiler
15000	  tmp_addflag=' -nofor_main' ;;
15001	esac
15002	case `$CC -V 2>&1 | sed 5q` in
15003	*Sun\ C*)			# Sun C 5.9
15004	  whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15005	  tmp_sharedflag='-G' ;;
15006	*Sun\ F*)			# Sun Fortran 8.3
15007	  tmp_sharedflag='-G' ;;
15008	*)
15009	  tmp_sharedflag='-shared' ;;
15010	esac
15011	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15012
15013	if test $supports_anon_versioning = yes; then
15014	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15015  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15016  $echo "local: *; };" >> $output_objdir/$libname.ver~
15017	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15018	fi
15019      else
15020	ld_shlibs_F77=no
15021      fi
15022      ;;
15023
15024    netbsd*)
15025      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15026	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15027	wlarc=
15028      else
15029	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15030	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15031      fi
15032      ;;
15033
15034    solaris*)
15035      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15036	ld_shlibs_F77=no
15037	cat <<EOF 1>&2
15038
15039*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15040*** create shared libraries on Solaris systems.  Therefore, libtool
15041*** is disabling shared libraries support.  We urge you to upgrade GNU
15042*** binutils to release 2.9.1 or newer.  Another option is to modify
15043*** your PATH or compiler configuration so that the native linker is
15044*** used, and then restart.
15045
15046EOF
15047      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15048	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15049	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15050      else
15051	ld_shlibs_F77=no
15052      fi
15053      ;;
15054
15055    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15056      case `$LD -v 2>&1` in
15057        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15058	ld_shlibs_F77=no
15059	cat <<_LT_EOF 1>&2
15060
15061*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15062*** reliably create shared libraries on SCO systems.  Therefore, libtool
15063*** is disabling shared libraries support.  We urge you to upgrade GNU
15064*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15065*** your PATH or compiler configuration so that the native linker is
15066*** used, and then restart.
15067
15068_LT_EOF
15069	;;
15070	*)
15071	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15072	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15073	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15074	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15075	  else
15076	    ld_shlibs_F77=no
15077	  fi
15078	;;
15079      esac
15080      ;;
15081
15082    sunos4*)
15083      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15084      wlarc=
15085      hardcode_direct_F77=yes
15086      hardcode_shlibpath_var_F77=no
15087      ;;
15088
15089    *)
15090      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15091	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15092	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15093      else
15094	ld_shlibs_F77=no
15095      fi
15096      ;;
15097    esac
15098
15099    if test "$ld_shlibs_F77" = no; then
15100      runpath_var=
15101      hardcode_libdir_flag_spec_F77=
15102      export_dynamic_flag_spec_F77=
15103      whole_archive_flag_spec_F77=
15104    fi
15105  else
15106    # PORTME fill in a description of your system's linker (not GNU ld)
15107    case $host_os in
15108    aix3*)
15109      allow_undefined_flag_F77=unsupported
15110      always_export_symbols_F77=yes
15111      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'
15112      # Note: this linker hardcodes the directories in LIBPATH if there
15113      # are no directories specified by -L.
15114      hardcode_minus_L_F77=yes
15115      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15116	# Neither direct hardcoding nor static linking is supported with a
15117	# broken collect2.
15118	hardcode_direct_F77=unsupported
15119      fi
15120      ;;
15121
15122    aix[4-9]*)
15123      if test "$host_cpu" = ia64; then
15124	# On IA64, the linker does run time linking by default, so we don't
15125	# have to do anything special.
15126	aix_use_runtimelinking=no
15127	exp_sym_flag='-Bexport'
15128	no_entry_flag=""
15129      else
15130	# If we're using GNU nm, then we don't want the "-C" option.
15131	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15132	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15133	  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'
15134	else
15135	  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'
15136	fi
15137	aix_use_runtimelinking=no
15138
15139	# Test if we are trying to use run time linking or normal
15140	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15141	# need to do runtime linking.
15142	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15143	  for ld_flag in $LDFLAGS; do
15144  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15145  	    aix_use_runtimelinking=yes
15146  	    break
15147  	  fi
15148	  done
15149	  ;;
15150	esac
15151
15152	exp_sym_flag='-bexport'
15153	no_entry_flag='-bnoentry'
15154      fi
15155
15156      # When large executables or shared objects are built, AIX ld can
15157      # have problems creating the table of contents.  If linking a library
15158      # or program results in "error TOC overflow" add -mminimal-toc to
15159      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15160      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15161
15162      archive_cmds_F77=''
15163      hardcode_direct_F77=yes
15164      hardcode_libdir_separator_F77=':'
15165      link_all_deplibs_F77=yes
15166
15167      if test "$GCC" = yes; then
15168	case $host_os in aix4.[012]|aix4.[012].*)
15169	# We only want to do this on AIX 4.2 and lower, the check
15170	# below for broken collect2 doesn't work under 4.3+
15171	  collect2name=`${CC} -print-prog-name=collect2`
15172	  if test -f "$collect2name" && \
15173  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15174	  then
15175  	  # We have reworked collect2
15176  	  :
15177	  else
15178  	  # We have old collect2
15179  	  hardcode_direct_F77=unsupported
15180  	  # It fails to find uninstalled libraries when the uninstalled
15181  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15182  	  # to unsupported forces relinking
15183  	  hardcode_minus_L_F77=yes
15184  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15185  	  hardcode_libdir_separator_F77=
15186	  fi
15187	  ;;
15188	esac
15189	shared_flag='-shared'
15190	if test "$aix_use_runtimelinking" = yes; then
15191	  shared_flag="$shared_flag "'${wl}-G'
15192	fi
15193      else
15194	# not using gcc
15195	if test "$host_cpu" = ia64; then
15196  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15197  	# chokes on -Wl,-G. The following line is correct:
15198	  shared_flag='-G'
15199	else
15200	  if test "$aix_use_runtimelinking" = yes; then
15201	    shared_flag='${wl}-G'
15202	  else
15203	    shared_flag='${wl}-bM:SRE'
15204	  fi
15205	fi
15206      fi
15207
15208      # It seems that -bexpall does not export symbols beginning with
15209      # underscore (_), so it is better to generate a list of symbols to export.
15210      always_export_symbols_F77=yes
15211      if test "$aix_use_runtimelinking" = yes; then
15212	# Warning - without using the other runtime loading flags (-brtl),
15213	# -berok will link without error, but may produce a broken library.
15214	allow_undefined_flag_F77='-berok'
15215       # Determine the default libpath from the value encoded in an empty executable.
15216       cat >conftest.$ac_ext <<_ACEOF
15217      program main
15218
15219      end
15220_ACEOF
15221rm -f conftest.$ac_objext conftest$ac_exeext
15222if { (ac_try="$ac_link"
15223case "(($ac_try" in
15224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15225  *) ac_try_echo=$ac_try;;
15226esac
15227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15228$as_echo "$ac_try_echo") >&5
15229  (eval "$ac_link") 2>conftest.er1
15230  ac_status=$?
15231  grep -v '^ *+' conftest.er1 >conftest.err
15232  rm -f conftest.er1
15233  cat conftest.err >&5
15234  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235  (exit $ac_status); } && {
15236	 test -z "$ac_f77_werror_flag" ||
15237	 test ! -s conftest.err
15238       } && test -s conftest$ac_exeext && {
15239	 test "$cross_compiling" = yes ||
15240	 $as_test_x conftest$ac_exeext
15241       }; then
15242
15243lt_aix_libpath_sed='
15244    /Import File Strings/,/^$/ {
15245	/^0/ {
15246	    s/^0  *\(.*\)$/\1/
15247	    p
15248	}
15249    }'
15250aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15251# Check for a 64-bit object if we didn't find anything.
15252if test -z "$aix_libpath"; then
15253  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15254fi
15255else
15256  $as_echo "$as_me: failed program was:" >&5
15257sed 's/^/| /' conftest.$ac_ext >&5
15258
15259
15260fi
15261
15262rm -rf conftest.dSYM
15263rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15264      conftest$ac_exeext conftest.$ac_ext
15265if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15266
15267       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15268	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"
15269       else
15270	if test "$host_cpu" = ia64; then
15271	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15272	  allow_undefined_flag_F77="-z nodefs"
15273	  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"
15274	else
15275	 # Determine the default libpath from the value encoded in an empty executable.
15276	 cat >conftest.$ac_ext <<_ACEOF
15277      program main
15278
15279      end
15280_ACEOF
15281rm -f conftest.$ac_objext conftest$ac_exeext
15282if { (ac_try="$ac_link"
15283case "(($ac_try" in
15284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15285  *) ac_try_echo=$ac_try;;
15286esac
15287eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15288$as_echo "$ac_try_echo") >&5
15289  (eval "$ac_link") 2>conftest.er1
15290  ac_status=$?
15291  grep -v '^ *+' conftest.er1 >conftest.err
15292  rm -f conftest.er1
15293  cat conftest.err >&5
15294  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295  (exit $ac_status); } && {
15296	 test -z "$ac_f77_werror_flag" ||
15297	 test ! -s conftest.err
15298       } && test -s conftest$ac_exeext && {
15299	 test "$cross_compiling" = yes ||
15300	 $as_test_x conftest$ac_exeext
15301       }; then
15302
15303lt_aix_libpath_sed='
15304    /Import File Strings/,/^$/ {
15305	/^0/ {
15306	    s/^0  *\(.*\)$/\1/
15307	    p
15308	}
15309    }'
15310aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15311# Check for a 64-bit object if we didn't find anything.
15312if test -z "$aix_libpath"; then
15313  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15314fi
15315else
15316  $as_echo "$as_me: failed program was:" >&5
15317sed 's/^/| /' conftest.$ac_ext >&5
15318
15319
15320fi
15321
15322rm -rf conftest.dSYM
15323rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15324      conftest$ac_exeext conftest.$ac_ext
15325if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15326
15327	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15328	  # Warning - without using the other run time loading flags,
15329	  # -berok will link without error, but may produce a broken library.
15330	  no_undefined_flag_F77=' ${wl}-bernotok'
15331	  allow_undefined_flag_F77=' ${wl}-berok'
15332	  # Exported symbols can be pulled into shared objects from archives
15333	  whole_archive_flag_spec_F77='$convenience'
15334	  archive_cmds_need_lc_F77=yes
15335	  # This is similar to how AIX traditionally builds its shared libraries.
15336	  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'
15337	fi
15338      fi
15339      ;;
15340
15341    amigaos*)
15342      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)'
15343      hardcode_libdir_flag_spec_F77='-L$libdir'
15344      hardcode_minus_L_F77=yes
15345      # see comment about different semantics on the GNU ld section
15346      ld_shlibs_F77=no
15347      ;;
15348
15349    bsdi[45]*)
15350      export_dynamic_flag_spec_F77=-rdynamic
15351      ;;
15352
15353    cygwin* | mingw* | pw32*)
15354      # When not using gcc, we currently assume that we are using
15355      # Microsoft Visual C++.
15356      # hardcode_libdir_flag_spec is actually meaningless, as there is
15357      # no search path for DLLs.
15358      hardcode_libdir_flag_spec_F77=' '
15359      allow_undefined_flag_F77=unsupported
15360      # Tell ltmain to make .lib files, not .a files.
15361      libext=lib
15362      # Tell ltmain to make .dll files, not .so files.
15363      shrext_cmds=".dll"
15364      # FIXME: Setting linknames here is a bad hack.
15365      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15366      # The linker will automatically build a .lib file if we build a DLL.
15367      old_archive_From_new_cmds_F77='true'
15368      # FIXME: Should let the user specify the lib program.
15369      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15370      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15371      enable_shared_with_static_runtimes_F77=yes
15372      ;;
15373
15374    darwin* | rhapsody*)
15375      case $host_os in
15376        rhapsody* | darwin1.[012])
15377         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15378         ;;
15379       *) # Darwin 1.3 on
15380         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15381           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15382         else
15383           case ${MACOSX_DEPLOYMENT_TARGET} in
15384             10.[012])
15385               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15386               ;;
15387             10.*)
15388               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15389               ;;
15390           esac
15391         fi
15392         ;;
15393      esac
15394      archive_cmds_need_lc_F77=no
15395      hardcode_direct_F77=no
15396      hardcode_automatic_F77=yes
15397      hardcode_shlibpath_var_F77=unsupported
15398      whole_archive_flag_spec_F77=''
15399      link_all_deplibs_F77=yes
15400    if test "$GCC" = yes ; then
15401    	output_verbose_link_cmd='echo'
15402        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15403        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15404        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15405        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15406    else
15407      case $cc_basename in
15408        xlc*)
15409         output_verbose_link_cmd='echo'
15410         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15411         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15412          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15413         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15414          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}'
15415          ;;
15416       *)
15417         ld_shlibs_F77=no
15418          ;;
15419      esac
15420    fi
15421      ;;
15422
15423    dgux*)
15424      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15425      hardcode_libdir_flag_spec_F77='-L$libdir'
15426      hardcode_shlibpath_var_F77=no
15427      ;;
15428
15429    freebsd1*)
15430      ld_shlibs_F77=no
15431      ;;
15432
15433    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15434    # support.  Future versions do this automatically, but an explicit c++rt0.o
15435    # does not break anything, and helps significantly (at the cost of a little
15436    # extra space).
15437    freebsd2.2*)
15438      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15439      hardcode_libdir_flag_spec_F77='-R$libdir'
15440      hardcode_direct_F77=yes
15441      hardcode_shlibpath_var_F77=no
15442      ;;
15443
15444    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15445    freebsd2*)
15446      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15447      hardcode_direct_F77=yes
15448      hardcode_minus_L_F77=yes
15449      hardcode_shlibpath_var_F77=no
15450      ;;
15451
15452    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15453    freebsd* | dragonfly*)
15454      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15455      hardcode_libdir_flag_spec_F77='-R$libdir'
15456      hardcode_direct_F77=yes
15457      hardcode_shlibpath_var_F77=no
15458      ;;
15459
15460    hpux9*)
15461      if test "$GCC" = yes; then
15462	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'
15463      else
15464	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'
15465      fi
15466      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15467      hardcode_libdir_separator_F77=:
15468      hardcode_direct_F77=yes
15469
15470      # hardcode_minus_L: Not really in the search PATH,
15471      # but as the default location of the library.
15472      hardcode_minus_L_F77=yes
15473      export_dynamic_flag_spec_F77='${wl}-E'
15474      ;;
15475
15476    hpux10*)
15477      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15478	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15479      else
15480	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15481      fi
15482      if test "$with_gnu_ld" = no; then
15483	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15484	hardcode_libdir_separator_F77=:
15485
15486	hardcode_direct_F77=yes
15487	export_dynamic_flag_spec_F77='${wl}-E'
15488
15489	# hardcode_minus_L: Not really in the search PATH,
15490	# but as the default location of the library.
15491	hardcode_minus_L_F77=yes
15492      fi
15493      ;;
15494
15495    hpux11*)
15496      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15497	case $host_cpu in
15498	hppa*64*)
15499	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15500	  ;;
15501	ia64*)
15502	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15503	  ;;
15504	*)
15505	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15506	  ;;
15507	esac
15508      else
15509	case $host_cpu in
15510	hppa*64*)
15511	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15512	  ;;
15513	ia64*)
15514	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15515	  ;;
15516	*)
15517	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15518	  ;;
15519	esac
15520      fi
15521      if test "$with_gnu_ld" = no; then
15522	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15523	hardcode_libdir_separator_F77=:
15524
15525	case $host_cpu in
15526	hppa*64*|ia64*)
15527	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15528	  hardcode_direct_F77=no
15529	  hardcode_shlibpath_var_F77=no
15530	  ;;
15531	*)
15532	  hardcode_direct_F77=yes
15533	  export_dynamic_flag_spec_F77='${wl}-E'
15534
15535	  # hardcode_minus_L: Not really in the search PATH,
15536	  # but as the default location of the library.
15537	  hardcode_minus_L_F77=yes
15538	  ;;
15539	esac
15540      fi
15541      ;;
15542
15543    irix5* | irix6* | nonstopux*)
15544      if test "$GCC" = yes; then
15545	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'
15546      else
15547	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'
15548	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15549      fi
15550      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15551      hardcode_libdir_separator_F77=:
15552      link_all_deplibs_F77=yes
15553      ;;
15554
15555    netbsd*)
15556      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15557	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15558      else
15559	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15560      fi
15561      hardcode_libdir_flag_spec_F77='-R$libdir'
15562      hardcode_direct_F77=yes
15563      hardcode_shlibpath_var_F77=no
15564      ;;
15565
15566    newsos6)
15567      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15568      hardcode_direct_F77=yes
15569      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15570      hardcode_libdir_separator_F77=:
15571      hardcode_shlibpath_var_F77=no
15572      ;;
15573
15574    openbsd*)
15575      if test -f /usr/libexec/ld.so; then
15576	hardcode_direct_F77=yes
15577	hardcode_shlibpath_var_F77=no
15578	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15579	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15580	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15581	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15582	  export_dynamic_flag_spec_F77='${wl}-E'
15583	else
15584	  case $host_os in
15585	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15586	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15587	     hardcode_libdir_flag_spec_F77='-R$libdir'
15588	     ;;
15589	   *)
15590	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15591	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15592	     ;;
15593	  esac
15594        fi
15595      else
15596	ld_shlibs_F77=no
15597      fi
15598      ;;
15599
15600    os2*)
15601      hardcode_libdir_flag_spec_F77='-L$libdir'
15602      hardcode_minus_L_F77=yes
15603      allow_undefined_flag_F77=unsupported
15604      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'
15605      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15606      ;;
15607
15608    osf3*)
15609      if test "$GCC" = yes; then
15610	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15611	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'
15612      else
15613	allow_undefined_flag_F77=' -expect_unresolved \*'
15614	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'
15615      fi
15616      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15617      hardcode_libdir_separator_F77=:
15618      ;;
15619
15620    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15621      if test "$GCC" = yes; then
15622	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15623	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'
15624	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15625      else
15626	allow_undefined_flag_F77=' -expect_unresolved \*'
15627	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'
15628	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~
15629	$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'
15630
15631	# Both c and cxx compiler support -rpath directly
15632	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15633      fi
15634      hardcode_libdir_separator_F77=:
15635      ;;
15636
15637    solaris*)
15638      no_undefined_flag_F77=' -z text'
15639      if test "$GCC" = yes; then
15640	wlarc='${wl}'
15641	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15642	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15643	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15644      else
15645	wlarc=''
15646	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15647	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15648  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15649      fi
15650      hardcode_libdir_flag_spec_F77='-R$libdir'
15651      hardcode_shlibpath_var_F77=no
15652      case $host_os in
15653      solaris2.[0-5] | solaris2.[0-5].*) ;;
15654      *)
15655	# The compiler driver will combine and reorder linker options,
15656	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15657	# but is careful enough not to reorder.
15658 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15659	if test "$GCC" = yes; then
15660	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15661	else
15662	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15663	fi
15664	;;
15665      esac
15666      link_all_deplibs_F77=yes
15667      ;;
15668
15669    sunos4*)
15670      if test "x$host_vendor" = xsequent; then
15671	# Use $CC to link under sequent, because it throws in some extra .o
15672	# files that make .init and .fini sections work.
15673	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15674      else
15675	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15676      fi
15677      hardcode_libdir_flag_spec_F77='-L$libdir'
15678      hardcode_direct_F77=yes
15679      hardcode_minus_L_F77=yes
15680      hardcode_shlibpath_var_F77=no
15681      ;;
15682
15683    sysv4)
15684      case $host_vendor in
15685	sni)
15686	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15687	  hardcode_direct_F77=yes # is this really true???
15688	;;
15689	siemens)
15690	  ## LD is ld it makes a PLAMLIB
15691	  ## CC just makes a GrossModule.
15692	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15693	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15694	  hardcode_direct_F77=no
15695        ;;
15696	motorola)
15697	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15698	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15699	;;
15700      esac
15701      runpath_var='LD_RUN_PATH'
15702      hardcode_shlibpath_var_F77=no
15703      ;;
15704
15705    sysv4.3*)
15706      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15707      hardcode_shlibpath_var_F77=no
15708      export_dynamic_flag_spec_F77='-Bexport'
15709      ;;
15710
15711    sysv4*MP*)
15712      if test -d /usr/nec; then
15713	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15714	hardcode_shlibpath_var_F77=no
15715	runpath_var=LD_RUN_PATH
15716	hardcode_runpath_var=yes
15717	ld_shlibs_F77=yes
15718      fi
15719      ;;
15720
15721    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15722      no_undefined_flag_F77='${wl}-z,text'
15723      archive_cmds_need_lc_F77=no
15724      hardcode_shlibpath_var_F77=no
15725      runpath_var='LD_RUN_PATH'
15726
15727      if test "$GCC" = yes; then
15728	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15729	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15730      else
15731	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15732	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15733      fi
15734      ;;
15735
15736    sysv5* | sco3.2v5* | sco5v6*)
15737      # Note: We can NOT use -z defs as we might desire, because we do not
15738      # link with -lc, and that would cause any symbols used from libc to
15739      # always be unresolved, which means just about no library would
15740      # ever link correctly.  If we're not using GNU ld we use -z text
15741      # though, which does catch some bad symbols but isn't as heavy-handed
15742      # as -z defs.
15743      no_undefined_flag_F77='${wl}-z,text'
15744      allow_undefined_flag_F77='${wl}-z,nodefs'
15745      archive_cmds_need_lc_F77=no
15746      hardcode_shlibpath_var_F77=no
15747      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15748      hardcode_libdir_separator_F77=':'
15749      link_all_deplibs_F77=yes
15750      export_dynamic_flag_spec_F77='${wl}-Bexport'
15751      runpath_var='LD_RUN_PATH'
15752
15753      if test "$GCC" = yes; then
15754	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15755	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15756      else
15757	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15758	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15759      fi
15760      ;;
15761
15762    uts4*)
15763      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15764      hardcode_libdir_flag_spec_F77='-L$libdir'
15765      hardcode_shlibpath_var_F77=no
15766      ;;
15767
15768    *)
15769      ld_shlibs_F77=no
15770      ;;
15771    esac
15772  fi
15773
15774{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15775$as_echo "$ld_shlibs_F77" >&6; }
15776test "$ld_shlibs_F77" = no && can_build_shared=no
15777
15778#
15779# Do we need to explicitly link libc?
15780#
15781case "x$archive_cmds_need_lc_F77" in
15782x|xyes)
15783  # Assume -lc should be added
15784  archive_cmds_need_lc_F77=yes
15785
15786  if test "$enable_shared" = yes && test "$GCC" = yes; then
15787    case $archive_cmds_F77 in
15788    *'~'*)
15789      # FIXME: we may have to deal with multi-command sequences.
15790      ;;
15791    '$CC '*)
15792      # Test whether the compiler implicitly links with -lc since on some
15793      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15794      # to ld, don't add -lc before -lgcc.
15795      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15796$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15797      $rm conftest*
15798      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15799
15800      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15801  (eval $ac_compile) 2>&5
15802  ac_status=$?
15803  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804  (exit $ac_status); } 2>conftest.err; then
15805        soname=conftest
15806        lib=conftest
15807        libobjs=conftest.$ac_objext
15808        deplibs=
15809        wl=$lt_prog_compiler_wl_F77
15810	pic_flag=$lt_prog_compiler_pic_F77
15811        compiler_flags=-v
15812        linker_flags=-v
15813        verstring=
15814        output_objdir=.
15815        libname=conftest
15816        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15817        allow_undefined_flag_F77=
15818        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15819  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15820  ac_status=$?
15821  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822  (exit $ac_status); }
15823        then
15824	  archive_cmds_need_lc_F77=no
15825        else
15826	  archive_cmds_need_lc_F77=yes
15827        fi
15828        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15829      else
15830        cat conftest.err 1>&5
15831      fi
15832      $rm conftest*
15833      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15834$as_echo "$archive_cmds_need_lc_F77" >&6; }
15835      ;;
15836    esac
15837  fi
15838  ;;
15839esac
15840
15841{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15842$as_echo_n "checking dynamic linker characteristics... " >&6; }
15843library_names_spec=
15844libname_spec='lib$name'
15845soname_spec=
15846shrext_cmds=".so"
15847postinstall_cmds=
15848postuninstall_cmds=
15849finish_cmds=
15850finish_eval=
15851shlibpath_var=
15852shlibpath_overrides_runpath=unknown
15853version_type=none
15854dynamic_linker="$host_os ld.so"
15855sys_lib_dlsearch_path_spec="/lib /usr/lib"
15856
15857need_lib_prefix=unknown
15858hardcode_into_libs=no
15859
15860# when you set need_version to no, make sure it does not cause -set_version
15861# flags to be left without arguments
15862need_version=unknown
15863
15864case $host_os in
15865aix3*)
15866  version_type=linux
15867  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15868  shlibpath_var=LIBPATH
15869
15870  # AIX 3 has no versioning support, so we append a major version to the name.
15871  soname_spec='${libname}${release}${shared_ext}$major'
15872  ;;
15873
15874aix[4-9]*)
15875  version_type=linux
15876  need_lib_prefix=no
15877  need_version=no
15878  hardcode_into_libs=yes
15879  if test "$host_cpu" = ia64; then
15880    # AIX 5 supports IA64
15881    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15882    shlibpath_var=LD_LIBRARY_PATH
15883  else
15884    # With GCC up to 2.95.x, collect2 would create an import file
15885    # for dependence libraries.  The import file would start with
15886    # the line `#! .'.  This would cause the generated library to
15887    # depend on `.', always an invalid library.  This was fixed in
15888    # development snapshots of GCC prior to 3.0.
15889    case $host_os in
15890      aix4 | aix4.[01] | aix4.[01].*)
15891      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15892	   echo ' yes '
15893	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15894	:
15895      else
15896	can_build_shared=no
15897      fi
15898      ;;
15899    esac
15900    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15901    # soname into executable. Probably we can add versioning support to
15902    # collect2, so additional links can be useful in future.
15903    if test "$aix_use_runtimelinking" = yes; then
15904      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15905      # instead of lib<name>.a to let people know that these are not
15906      # typical AIX shared libraries.
15907      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15908    else
15909      # We preserve .a as extension for shared libraries through AIX4.2
15910      # and later when we are not doing run time linking.
15911      library_names_spec='${libname}${release}.a $libname.a'
15912      soname_spec='${libname}${release}${shared_ext}$major'
15913    fi
15914    shlibpath_var=LIBPATH
15915  fi
15916  ;;
15917
15918amigaos*)
15919  library_names_spec='$libname.ixlibrary $libname.a'
15920  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15921  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'
15922  ;;
15923
15924beos*)
15925  library_names_spec='${libname}${shared_ext}'
15926  dynamic_linker="$host_os ld.so"
15927  shlibpath_var=LIBRARY_PATH
15928  ;;
15929
15930bsdi[45]*)
15931  version_type=linux
15932  need_version=no
15933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15934  soname_spec='${libname}${release}${shared_ext}$major'
15935  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15936  shlibpath_var=LD_LIBRARY_PATH
15937  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15938  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15939  # the default ld.so.conf also contains /usr/contrib/lib and
15940  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15941  # libtool to hard-code these into programs
15942  ;;
15943
15944cygwin* | mingw* | pw32*)
15945  version_type=windows
15946  shrext_cmds=".dll"
15947  need_version=no
15948  need_lib_prefix=no
15949
15950  case $GCC,$host_os in
15951  yes,cygwin* | yes,mingw* | yes,pw32*)
15952    library_names_spec='$libname.dll.a'
15953    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15954    postinstall_cmds='base_file=`basename \${file}`~
15955      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15956      dldir=$destdir/`dirname \$dlpath`~
15957      test -d \$dldir || mkdir -p \$dldir~
15958      $install_prog $dir/$dlname \$dldir/$dlname~
15959      chmod a+x \$dldir/$dlname'
15960    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15961      dlpath=$dir/\$dldll~
15962       $rm \$dlpath'
15963    shlibpath_overrides_runpath=yes
15964
15965    case $host_os in
15966    cygwin*)
15967      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15968      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15969      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15970      ;;
15971    mingw*)
15972      # MinGW DLLs use traditional 'lib' prefix
15973      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15974      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15975      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15976        # It is most probably a Windows format PATH printed by
15977        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15978        # path with ; separators, and with drive letters. We can handle the
15979        # drive letters (cygwin fileutils understands them), so leave them,
15980        # especially as we might pass files found there to a mingw objdump,
15981        # which wouldn't understand a cygwinified path. Ahh.
15982        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15983      else
15984        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15985      fi
15986      ;;
15987    pw32*)
15988      # pw32 DLLs use 'pw' prefix rather than 'lib'
15989      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15990      ;;
15991    esac
15992    ;;
15993
15994  *)
15995    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15996    ;;
15997  esac
15998  dynamic_linker='Win32 ld.exe'
15999  # FIXME: first we should search . and the directory the executable is in
16000  shlibpath_var=PATH
16001  ;;
16002
16003darwin* | rhapsody*)
16004  dynamic_linker="$host_os dyld"
16005  version_type=darwin
16006  need_lib_prefix=no
16007  need_version=no
16008  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16009  soname_spec='${libname}${release}${major}$shared_ext'
16010  shlibpath_overrides_runpath=yes
16011  shlibpath_var=DYLD_LIBRARY_PATH
16012  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16013
16014  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16015  ;;
16016
16017dgux*)
16018  version_type=linux
16019  need_lib_prefix=no
16020  need_version=no
16021  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16022  soname_spec='${libname}${release}${shared_ext}$major'
16023  shlibpath_var=LD_LIBRARY_PATH
16024  ;;
16025
16026freebsd1*)
16027  dynamic_linker=no
16028  ;;
16029
16030freebsd* | dragonfly*)
16031  # DragonFly does not have aout.  When/if they implement a new
16032  # versioning mechanism, adjust this.
16033  if test -x /usr/bin/objformat; then
16034    objformat=`/usr/bin/objformat`
16035  else
16036    case $host_os in
16037    freebsd[123]*) objformat=aout ;;
16038    *) objformat=elf ;;
16039    esac
16040  fi
16041  version_type=freebsd-$objformat
16042  case $version_type in
16043    freebsd-elf*)
16044      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16045      need_version=no
16046      need_lib_prefix=no
16047      ;;
16048    freebsd-*)
16049      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16050      need_version=yes
16051      ;;
16052  esac
16053  shlibpath_var=LD_LIBRARY_PATH
16054  case $host_os in
16055  freebsd2*)
16056    shlibpath_overrides_runpath=yes
16057    ;;
16058  freebsd3.[01]* | freebsdelf3.[01]*)
16059    shlibpath_overrides_runpath=yes
16060    hardcode_into_libs=yes
16061    ;;
16062  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16063  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16064    shlibpath_overrides_runpath=no
16065    hardcode_into_libs=yes
16066    ;;
16067  *) # from 4.6 on, and DragonFly
16068    shlibpath_overrides_runpath=yes
16069    hardcode_into_libs=yes
16070    ;;
16071  esac
16072  ;;
16073
16074gnu*)
16075  version_type=linux
16076  need_lib_prefix=no
16077  need_version=no
16078  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16079  soname_spec='${libname}${release}${shared_ext}$major'
16080  shlibpath_var=LD_LIBRARY_PATH
16081  hardcode_into_libs=yes
16082  ;;
16083
16084hpux9* | hpux10* | hpux11*)
16085  # Give a soname corresponding to the major version so that dld.sl refuses to
16086  # link against other versions.
16087  version_type=sunos
16088  need_lib_prefix=no
16089  need_version=no
16090  case $host_cpu in
16091  ia64*)
16092    shrext_cmds='.so'
16093    hardcode_into_libs=yes
16094    dynamic_linker="$host_os dld.so"
16095    shlibpath_var=LD_LIBRARY_PATH
16096    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16097    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16098    soname_spec='${libname}${release}${shared_ext}$major'
16099    if test "X$HPUX_IA64_MODE" = X32; then
16100      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16101    else
16102      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16103    fi
16104    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16105    ;;
16106   hppa*64*)
16107     shrext_cmds='.sl'
16108     hardcode_into_libs=yes
16109     dynamic_linker="$host_os dld.sl"
16110     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16111     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16112     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16113     soname_spec='${libname}${release}${shared_ext}$major'
16114     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16115     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16116     ;;
16117   *)
16118    shrext_cmds='.sl'
16119    dynamic_linker="$host_os dld.sl"
16120    shlibpath_var=SHLIB_PATH
16121    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16122    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16123    soname_spec='${libname}${release}${shared_ext}$major'
16124    ;;
16125  esac
16126  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16127  postinstall_cmds='chmod 555 $lib'
16128  ;;
16129
16130interix[3-9]*)
16131  version_type=linux
16132  need_lib_prefix=no
16133  need_version=no
16134  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16135  soname_spec='${libname}${release}${shared_ext}$major'
16136  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16137  shlibpath_var=LD_LIBRARY_PATH
16138  shlibpath_overrides_runpath=no
16139  hardcode_into_libs=yes
16140  ;;
16141
16142irix5* | irix6* | nonstopux*)
16143  case $host_os in
16144    nonstopux*) version_type=nonstopux ;;
16145    *)
16146	if test "$lt_cv_prog_gnu_ld" = yes; then
16147		version_type=linux
16148	else
16149		version_type=irix
16150	fi ;;
16151  esac
16152  need_lib_prefix=no
16153  need_version=no
16154  soname_spec='${libname}${release}${shared_ext}$major'
16155  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16156  case $host_os in
16157  irix5* | nonstopux*)
16158    libsuff= shlibsuff=
16159    ;;
16160  *)
16161    case $LD in # libtool.m4 will add one of these switches to LD
16162    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16163      libsuff= shlibsuff= libmagic=32-bit;;
16164    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16165      libsuff=32 shlibsuff=N32 libmagic=N32;;
16166    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16167      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16168    *) libsuff= shlibsuff= libmagic=never-match;;
16169    esac
16170    ;;
16171  esac
16172  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16173  shlibpath_overrides_runpath=no
16174  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16175  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16176  hardcode_into_libs=yes
16177  ;;
16178
16179# No shared lib support for Linux oldld, aout, or coff.
16180linux*oldld* | linux*aout* | linux*coff*)
16181  dynamic_linker=no
16182  ;;
16183
16184# This must be Linux ELF.
16185linux* | k*bsd*-gnu)
16186  version_type=linux
16187  need_lib_prefix=no
16188  need_version=no
16189  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16190  soname_spec='${libname}${release}${shared_ext}$major'
16191  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16192  shlibpath_var=LD_LIBRARY_PATH
16193  shlibpath_overrides_runpath=no
16194  # This implies no fast_install, which is unacceptable.
16195  # Some rework will be needed to allow for fast_install
16196  # before this can be enabled.
16197  hardcode_into_libs=yes
16198
16199  # Append ld.so.conf contents to the search path
16200  if test -f /etc/ld.so.conf; then
16201    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16202    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16203  fi
16204
16205  # We used to test for /lib/ld.so.1 and disable shared libraries on
16206  # powerpc, because MkLinux only supported shared libraries with the
16207  # GNU dynamic linker.  Since this was broken with cross compilers,
16208  # most powerpc-linux boxes support dynamic linking these days and
16209  # people can always --disable-shared, the test was removed, and we
16210  # assume the GNU/Linux dynamic linker is in use.
16211  dynamic_linker='GNU/Linux ld.so'
16212  ;;
16213
16214netbsd*)
16215  version_type=sunos
16216  need_lib_prefix=no
16217  need_version=no
16218  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16219    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16220    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16221    dynamic_linker='NetBSD (a.out) ld.so'
16222  else
16223    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16224    soname_spec='${libname}${release}${shared_ext}$major'
16225    dynamic_linker='NetBSD ld.elf_so'
16226  fi
16227  shlibpath_var=LD_LIBRARY_PATH
16228  shlibpath_overrides_runpath=yes
16229  hardcode_into_libs=yes
16230  ;;
16231
16232newsos6)
16233  version_type=linux
16234  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16235  shlibpath_var=LD_LIBRARY_PATH
16236  shlibpath_overrides_runpath=yes
16237  ;;
16238
16239nto-qnx*)
16240  version_type=linux
16241  need_lib_prefix=no
16242  need_version=no
16243  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16244  soname_spec='${libname}${release}${shared_ext}$major'
16245  shlibpath_var=LD_LIBRARY_PATH
16246  shlibpath_overrides_runpath=yes
16247  ;;
16248
16249openbsd*)
16250  version_type=sunos
16251  sys_lib_dlsearch_path_spec="/usr/lib"
16252  need_lib_prefix=no
16253  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16254  case $host_os in
16255    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16256    *)                         need_version=no  ;;
16257  esac
16258  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16259  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16260  shlibpath_var=LD_LIBRARY_PATH
16261  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16262    case $host_os in
16263      openbsd2.[89] | openbsd2.[89].*)
16264	shlibpath_overrides_runpath=no
16265	;;
16266      *)
16267	shlibpath_overrides_runpath=yes
16268	;;
16269      esac
16270  else
16271    shlibpath_overrides_runpath=yes
16272  fi
16273  ;;
16274
16275os2*)
16276  libname_spec='$name'
16277  shrext_cmds=".dll"
16278  need_lib_prefix=no
16279  library_names_spec='$libname${shared_ext} $libname.a'
16280  dynamic_linker='OS/2 ld.exe'
16281  shlibpath_var=LIBPATH
16282  ;;
16283
16284osf3* | osf4* | osf5*)
16285  version_type=osf
16286  need_lib_prefix=no
16287  need_version=no
16288  soname_spec='${libname}${release}${shared_ext}$major'
16289  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16290  shlibpath_var=LD_LIBRARY_PATH
16291  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16292  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16293  ;;
16294
16295rdos*)
16296  dynamic_linker=no
16297  ;;
16298
16299solaris*)
16300  version_type=linux
16301  need_lib_prefix=no
16302  need_version=no
16303  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16304  soname_spec='${libname}${release}${shared_ext}$major'
16305  shlibpath_var=LD_LIBRARY_PATH
16306  shlibpath_overrides_runpath=yes
16307  hardcode_into_libs=yes
16308  # ldd complains unless libraries are executable
16309  postinstall_cmds='chmod +x $lib'
16310  ;;
16311
16312sunos4*)
16313  version_type=sunos
16314  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16315  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16316  shlibpath_var=LD_LIBRARY_PATH
16317  shlibpath_overrides_runpath=yes
16318  if test "$with_gnu_ld" = yes; then
16319    need_lib_prefix=no
16320  fi
16321  need_version=yes
16322  ;;
16323
16324sysv4 | sysv4.3*)
16325  version_type=linux
16326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16327  soname_spec='${libname}${release}${shared_ext}$major'
16328  shlibpath_var=LD_LIBRARY_PATH
16329  case $host_vendor in
16330    sni)
16331      shlibpath_overrides_runpath=no
16332      need_lib_prefix=no
16333      export_dynamic_flag_spec='${wl}-Blargedynsym'
16334      runpath_var=LD_RUN_PATH
16335      ;;
16336    siemens)
16337      need_lib_prefix=no
16338      ;;
16339    motorola)
16340      need_lib_prefix=no
16341      need_version=no
16342      shlibpath_overrides_runpath=no
16343      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16344      ;;
16345  esac
16346  ;;
16347
16348sysv4*MP*)
16349  if test -d /usr/nec ;then
16350    version_type=linux
16351    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16352    soname_spec='$libname${shared_ext}.$major'
16353    shlibpath_var=LD_LIBRARY_PATH
16354  fi
16355  ;;
16356
16357sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16358  version_type=freebsd-elf
16359  need_lib_prefix=no
16360  need_version=no
16361  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16362  soname_spec='${libname}${release}${shared_ext}$major'
16363  shlibpath_var=LD_LIBRARY_PATH
16364  hardcode_into_libs=yes
16365  if test "$with_gnu_ld" = yes; then
16366    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16367    shlibpath_overrides_runpath=no
16368  else
16369    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16370    shlibpath_overrides_runpath=yes
16371    case $host_os in
16372      sco3.2v5*)
16373        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16374	;;
16375    esac
16376  fi
16377  sys_lib_dlsearch_path_spec='/usr/lib'
16378  ;;
16379
16380uts4*)
16381  version_type=linux
16382  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16383  soname_spec='${libname}${release}${shared_ext}$major'
16384  shlibpath_var=LD_LIBRARY_PATH
16385  ;;
16386
16387*)
16388  dynamic_linker=no
16389  ;;
16390esac
16391{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16392$as_echo "$dynamic_linker" >&6; }
16393test "$dynamic_linker" = no && can_build_shared=no
16394
16395if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16396  $as_echo_n "(cached) " >&6
16397else
16398  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16399fi
16400
16401sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16402if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16403  $as_echo_n "(cached) " >&6
16404else
16405  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16406fi
16407
16408sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16409
16410variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16411if test "$GCC" = yes; then
16412  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16413fi
16414
16415{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16416$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16417hardcode_action_F77=
16418if test -n "$hardcode_libdir_flag_spec_F77" || \
16419   test -n "$runpath_var_F77" || \
16420   test "X$hardcode_automatic_F77" = "Xyes" ; then
16421
16422  # We can hardcode non-existant directories.
16423  if test "$hardcode_direct_F77" != no &&
16424     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16425     # have to relink, otherwise we might link with an installed library
16426     # when we should be linking with a yet-to-be-installed one
16427     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16428     test "$hardcode_minus_L_F77" != no; then
16429    # Linking always hardcodes the temporary library directory.
16430    hardcode_action_F77=relink
16431  else
16432    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16433    hardcode_action_F77=immediate
16434  fi
16435else
16436  # We cannot hardcode anything, or else we can only hardcode existing
16437  # directories.
16438  hardcode_action_F77=unsupported
16439fi
16440{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16441$as_echo "$hardcode_action_F77" >&6; }
16442
16443if test "$hardcode_action_F77" = relink; then
16444  # Fast installation is not supported
16445  enable_fast_install=no
16446elif test "$shlibpath_overrides_runpath" = yes ||
16447     test "$enable_shared" = no; then
16448  # Fast installation is not necessary
16449  enable_fast_install=needless
16450fi
16451
16452
16453# The else clause should only fire when bootstrapping the
16454# libtool distribution, otherwise you forgot to ship ltmain.sh
16455# with your package, and you will get complaints that there are
16456# no rules to generate ltmain.sh.
16457if test -f "$ltmain"; then
16458  # See if we are running on zsh, and set the options which allow our commands through
16459  # without removal of \ escapes.
16460  if test -n "${ZSH_VERSION+set}" ; then
16461    setopt NO_GLOB_SUBST
16462  fi
16463  # Now quote all the things that may contain metacharacters while being
16464  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16465  # variables and quote the copies for generation of the libtool script.
16466  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16467    SED SHELL STRIP \
16468    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16469    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16470    deplibs_check_method reload_flag reload_cmds need_locks \
16471    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16472    lt_cv_sys_global_symbol_to_c_name_address \
16473    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16474    old_postinstall_cmds old_postuninstall_cmds \
16475    compiler_F77 \
16476    CC_F77 \
16477    LD_F77 \
16478    lt_prog_compiler_wl_F77 \
16479    lt_prog_compiler_pic_F77 \
16480    lt_prog_compiler_static_F77 \
16481    lt_prog_compiler_no_builtin_flag_F77 \
16482    export_dynamic_flag_spec_F77 \
16483    thread_safe_flag_spec_F77 \
16484    whole_archive_flag_spec_F77 \
16485    enable_shared_with_static_runtimes_F77 \
16486    old_archive_cmds_F77 \
16487    old_archive_from_new_cmds_F77 \
16488    predep_objects_F77 \
16489    postdep_objects_F77 \
16490    predeps_F77 \
16491    postdeps_F77 \
16492    compiler_lib_search_path_F77 \
16493    compiler_lib_search_dirs_F77 \
16494    archive_cmds_F77 \
16495    archive_expsym_cmds_F77 \
16496    postinstall_cmds_F77 \
16497    postuninstall_cmds_F77 \
16498    old_archive_from_expsyms_cmds_F77 \
16499    allow_undefined_flag_F77 \
16500    no_undefined_flag_F77 \
16501    export_symbols_cmds_F77 \
16502    hardcode_libdir_flag_spec_F77 \
16503    hardcode_libdir_flag_spec_ld_F77 \
16504    hardcode_libdir_separator_F77 \
16505    hardcode_automatic_F77 \
16506    module_cmds_F77 \
16507    module_expsym_cmds_F77 \
16508    lt_cv_prog_compiler_c_o_F77 \
16509    fix_srcfile_path_F77 \
16510    exclude_expsyms_F77 \
16511    include_expsyms_F77; do
16512
16513    case $var in
16514    old_archive_cmds_F77 | \
16515    old_archive_from_new_cmds_F77 | \
16516    archive_cmds_F77 | \
16517    archive_expsym_cmds_F77 | \
16518    module_cmds_F77 | \
16519    module_expsym_cmds_F77 | \
16520    old_archive_from_expsyms_cmds_F77 | \
16521    export_symbols_cmds_F77 | \
16522    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16523    postinstall_cmds | postuninstall_cmds | \
16524    old_postinstall_cmds | old_postuninstall_cmds | \
16525    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16526      # Double-quote double-evaled strings.
16527      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16528      ;;
16529    *)
16530      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16531      ;;
16532    esac
16533  done
16534
16535  case $lt_echo in
16536  *'\$0 --fallback-echo"')
16537    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16538    ;;
16539  esac
16540
16541cfgfile="$ofile"
16542
16543  cat <<__EOF__ >> "$cfgfile"
16544# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16545
16546# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16547
16548# Shell to use when invoking shell scripts.
16549SHELL=$lt_SHELL
16550
16551# Whether or not to build shared libraries.
16552build_libtool_libs=$enable_shared
16553
16554# Whether or not to build static libraries.
16555build_old_libs=$enable_static
16556
16557# Whether or not to add -lc for building shared libraries.
16558build_libtool_need_lc=$archive_cmds_need_lc_F77
16559
16560# Whether or not to disallow shared libs when runtime libs are static
16561allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16562
16563# Whether or not to optimize for fast installation.
16564fast_install=$enable_fast_install
16565
16566# The host system.
16567host_alias=$host_alias
16568host=$host
16569host_os=$host_os
16570
16571# The build system.
16572build_alias=$build_alias
16573build=$build
16574build_os=$build_os
16575
16576# An echo program that does not interpret backslashes.
16577echo=$lt_echo
16578
16579# The archiver.
16580AR=$lt_AR
16581AR_FLAGS=$lt_AR_FLAGS
16582
16583# A C compiler.
16584LTCC=$lt_LTCC
16585
16586# LTCC compiler flags.
16587LTCFLAGS=$lt_LTCFLAGS
16588
16589# A language-specific compiler.
16590CC=$lt_compiler_F77
16591
16592# Is the compiler the GNU C compiler?
16593with_gcc=$GCC_F77
16594
16595# An ERE matcher.
16596EGREP=$lt_EGREP
16597
16598# The linker used to build libraries.
16599LD=$lt_LD_F77
16600
16601# Whether we need hard or soft links.
16602LN_S=$lt_LN_S
16603
16604# A BSD-compatible nm program.
16605NM=$lt_NM
16606
16607# A symbol stripping program
16608STRIP=$lt_STRIP
16609
16610# Used to examine libraries when file_magic_cmd begins "file"
16611MAGIC_CMD=$MAGIC_CMD
16612
16613# Used on cygwin: DLL creation program.
16614DLLTOOL="$DLLTOOL"
16615
16616# Used on cygwin: object dumper.
16617OBJDUMP="$OBJDUMP"
16618
16619# Used on cygwin: assembler.
16620AS="$AS"
16621
16622# The name of the directory that contains temporary libtool files.
16623objdir=$objdir
16624
16625# How to create reloadable object files.
16626reload_flag=$lt_reload_flag
16627reload_cmds=$lt_reload_cmds
16628
16629# How to pass a linker flag through the compiler.
16630wl=$lt_lt_prog_compiler_wl_F77
16631
16632# Object file suffix (normally "o").
16633objext="$ac_objext"
16634
16635# Old archive suffix (normally "a").
16636libext="$libext"
16637
16638# Shared library suffix (normally ".so").
16639shrext_cmds='$shrext_cmds'
16640
16641# Executable file suffix (normally "").
16642exeext="$exeext"
16643
16644# Additional compiler flags for building library objects.
16645pic_flag=$lt_lt_prog_compiler_pic_F77
16646pic_mode=$pic_mode
16647
16648# What is the maximum length of a command?
16649max_cmd_len=$lt_cv_sys_max_cmd_len
16650
16651# Does compiler simultaneously support -c and -o options?
16652compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16653
16654# Must we lock files when doing compilation?
16655need_locks=$lt_need_locks
16656
16657# Do we need the lib prefix for modules?
16658need_lib_prefix=$need_lib_prefix
16659
16660# Do we need a version for libraries?
16661need_version=$need_version
16662
16663# Whether dlopen is supported.
16664dlopen_support=$enable_dlopen
16665
16666# Whether dlopen of programs is supported.
16667dlopen_self=$enable_dlopen_self
16668
16669# Whether dlopen of statically linked programs is supported.
16670dlopen_self_static=$enable_dlopen_self_static
16671
16672# Compiler flag to prevent dynamic linking.
16673link_static_flag=$lt_lt_prog_compiler_static_F77
16674
16675# Compiler flag to turn off builtin functions.
16676no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16677
16678# Compiler flag to allow reflexive dlopens.
16679export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16680
16681# Compiler flag to generate shared objects directly from archives.
16682whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16683
16684# Compiler flag to generate thread-safe objects.
16685thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16686
16687# Library versioning type.
16688version_type=$version_type
16689
16690# Format of library name prefix.
16691libname_spec=$lt_libname_spec
16692
16693# List of archive names.  First name is the real one, the rest are links.
16694# The last name is the one that the linker finds with -lNAME.
16695library_names_spec=$lt_library_names_spec
16696
16697# The coded name of the library, if different from the real name.
16698soname_spec=$lt_soname_spec
16699
16700# Commands used to build and install an old-style archive.
16701RANLIB=$lt_RANLIB
16702old_archive_cmds=$lt_old_archive_cmds_F77
16703old_postinstall_cmds=$lt_old_postinstall_cmds
16704old_postuninstall_cmds=$lt_old_postuninstall_cmds
16705
16706# Create an old-style archive from a shared archive.
16707old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16708
16709# Create a temporary old-style archive to link instead of a shared archive.
16710old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16711
16712# Commands used to build and install a shared archive.
16713archive_cmds=$lt_archive_cmds_F77
16714archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16715postinstall_cmds=$lt_postinstall_cmds
16716postuninstall_cmds=$lt_postuninstall_cmds
16717
16718# Commands used to build a loadable module (assumed same as above if empty)
16719module_cmds=$lt_module_cmds_F77
16720module_expsym_cmds=$lt_module_expsym_cmds_F77
16721
16722# Commands to strip libraries.
16723old_striplib=$lt_old_striplib
16724striplib=$lt_striplib
16725
16726# Dependencies to place before the objects being linked to create a
16727# shared library.
16728predep_objects=$lt_predep_objects_F77
16729
16730# Dependencies to place after the objects being linked to create a
16731# shared library.
16732postdep_objects=$lt_postdep_objects_F77
16733
16734# Dependencies to place before the objects being linked to create a
16735# shared library.
16736predeps=$lt_predeps_F77
16737
16738# Dependencies to place after the objects being linked to create a
16739# shared library.
16740postdeps=$lt_postdeps_F77
16741
16742# The directories searched by this compiler when creating a shared
16743# library
16744compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16745
16746# The library search path used internally by the compiler when linking
16747# a shared library.
16748compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16749
16750# Method to check whether dependent libraries are shared objects.
16751deplibs_check_method=$lt_deplibs_check_method
16752
16753# Command to use when deplibs_check_method == file_magic.
16754file_magic_cmd=$lt_file_magic_cmd
16755
16756# Flag that allows shared libraries with undefined symbols to be built.
16757allow_undefined_flag=$lt_allow_undefined_flag_F77
16758
16759# Flag that forces no undefined symbols.
16760no_undefined_flag=$lt_no_undefined_flag_F77
16761
16762# Commands used to finish a libtool library installation in a directory.
16763finish_cmds=$lt_finish_cmds
16764
16765# Same as above, but a single script fragment to be evaled but not shown.
16766finish_eval=$lt_finish_eval
16767
16768# Take the output of nm and produce a listing of raw symbols and C names.
16769global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16770
16771# Transform the output of nm in a proper C declaration
16772global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16773
16774# Transform the output of nm in a C name address pair
16775global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16776
16777# This is the shared library runtime path variable.
16778runpath_var=$runpath_var
16779
16780# This is the shared library path variable.
16781shlibpath_var=$shlibpath_var
16782
16783# Is shlibpath searched before the hard-coded library search path?
16784shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16785
16786# How to hardcode a shared library path into an executable.
16787hardcode_action=$hardcode_action_F77
16788
16789# Whether we should hardcode library paths into libraries.
16790hardcode_into_libs=$hardcode_into_libs
16791
16792# Flag to hardcode \$libdir into a binary during linking.
16793# This must work even if \$libdir does not exist.
16794hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16795
16796# If ld is used when linking, flag to hardcode \$libdir into
16797# a binary during linking. This must work even if \$libdir does
16798# not exist.
16799hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16800
16801# Whether we need a single -rpath flag with a separated argument.
16802hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16803
16804# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16805# resulting binary.
16806hardcode_direct=$hardcode_direct_F77
16807
16808# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16809# resulting binary.
16810hardcode_minus_L=$hardcode_minus_L_F77
16811
16812# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16813# the resulting binary.
16814hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16815
16816# Set to yes if building a shared library automatically hardcodes DIR into the library
16817# and all subsequent libraries and executables linked against it.
16818hardcode_automatic=$hardcode_automatic_F77
16819
16820# Variables whose values should be saved in libtool wrapper scripts and
16821# restored at relink time.
16822variables_saved_for_relink="$variables_saved_for_relink"
16823
16824# Whether libtool must link a program against all its dependency libraries.
16825link_all_deplibs=$link_all_deplibs_F77
16826
16827# Compile-time system search path for libraries
16828sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16829
16830# Run-time system search path for libraries
16831sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16832
16833# Fix the shell variable \$srcfile for the compiler.
16834fix_srcfile_path=$lt_fix_srcfile_path
16835
16836# Set to yes if exported symbols are required.
16837always_export_symbols=$always_export_symbols_F77
16838
16839# The commands to list exported symbols.
16840export_symbols_cmds=$lt_export_symbols_cmds_F77
16841
16842# The commands to extract the exported symbol list from a shared archive.
16843extract_expsyms_cmds=$lt_extract_expsyms_cmds
16844
16845# Symbols that should not be listed in the preloaded symbols.
16846exclude_expsyms=$lt_exclude_expsyms_F77
16847
16848# Symbols that must always be exported.
16849include_expsyms=$lt_include_expsyms_F77
16850
16851# ### END LIBTOOL TAG CONFIG: $tagname
16852
16853__EOF__
16854
16855
16856else
16857  # If there is no Makefile yet, we rely on a make rule to execute
16858  # `config.status --recheck' to rerun these tests and create the
16859  # libtool script then.
16860  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16861  if test -f "$ltmain_in"; then
16862    test -f Makefile && make "$ltmain"
16863  fi
16864fi
16865
16866
16867ac_ext=c
16868ac_cpp='$CPP $CPPFLAGS'
16869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16871ac_compiler_gnu=$ac_cv_c_compiler_gnu
16872
16873CC="$lt_save_CC"
16874
16875	else
16876	  tagname=""
16877	fi
16878	;;
16879
16880      GCJ)
16881	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16882
16883
16884# Source file extension for Java test sources.
16885ac_ext=java
16886
16887# Object file extension for compiled Java test sources.
16888objext=o
16889objext_GCJ=$objext
16890
16891# Code to be used in simple compile tests
16892lt_simple_compile_test_code="class foo {}"
16893
16894# Code to be used in simple link tests
16895lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16896
16897# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16898
16899# If no C compiler was specified, use CC.
16900LTCC=${LTCC-"$CC"}
16901
16902# If no C compiler flags were specified, use CFLAGS.
16903LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16904
16905# Allow CC to be a program name with arguments.
16906compiler=$CC
16907
16908
16909# save warnings/boilerplate of simple test code
16910ac_outfile=conftest.$ac_objext
16911echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16912eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16913_lt_compiler_boilerplate=`cat conftest.err`
16914$rm conftest*
16915
16916ac_outfile=conftest.$ac_objext
16917echo "$lt_simple_link_test_code" >conftest.$ac_ext
16918eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16919_lt_linker_boilerplate=`cat conftest.err`
16920$rm -r conftest*
16921
16922
16923# Allow CC to be a program name with arguments.
16924lt_save_CC="$CC"
16925CC=${GCJ-"gcj"}
16926compiler=$CC
16927compiler_GCJ=$CC
16928for cc_temp in $compiler""; do
16929  case $cc_temp in
16930    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16931    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16932    \-*) ;;
16933    *) break;;
16934  esac
16935done
16936cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16937
16938
16939# GCJ did not exist at the time GCC didn't implicitly link libc in.
16940archive_cmds_need_lc_GCJ=no
16941
16942old_archive_cmds_GCJ=$old_archive_cmds
16943
16944
16945lt_prog_compiler_no_builtin_flag_GCJ=
16946
16947if test "$GCC" = yes; then
16948  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16949
16950
16951{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16952$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16953if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16954  $as_echo_n "(cached) " >&6
16955else
16956  lt_cv_prog_compiler_rtti_exceptions=no
16957  ac_outfile=conftest.$ac_objext
16958   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16959   lt_compiler_flag="-fno-rtti -fno-exceptions"
16960   # Insert the option either (1) after the last *FLAGS variable, or
16961   # (2) before a word containing "conftest.", or (3) at the end.
16962   # Note that $ac_compile itself does not contain backslashes and begins
16963   # with a dollar sign (not a hyphen), so the echo should work correctly.
16964   # The option is referenced via a variable to avoid confusing sed.
16965   lt_compile=`echo "$ac_compile" | $SED \
16966   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16967   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16968   -e 's:$: $lt_compiler_flag:'`
16969   (eval echo "\"\$as_me:16969: $lt_compile\"" >&5)
16970   (eval "$lt_compile" 2>conftest.err)
16971   ac_status=$?
16972   cat conftest.err >&5
16973   echo "$as_me:16973: \$? = $ac_status" >&5
16974   if (exit $ac_status) && test -s "$ac_outfile"; then
16975     # The compiler can only warn and ignore the option if not recognized
16976     # So say no if there are warnings other than the usual output.
16977     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16978     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16979     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16980       lt_cv_prog_compiler_rtti_exceptions=yes
16981     fi
16982   fi
16983   $rm conftest*
16984
16985fi
16986{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16987$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16988
16989if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16990    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16991else
16992    :
16993fi
16994
16995fi
16996
16997lt_prog_compiler_wl_GCJ=
16998lt_prog_compiler_pic_GCJ=
16999lt_prog_compiler_static_GCJ=
17000
17001{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17002$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17003
17004  if test "$GCC" = yes; then
17005    lt_prog_compiler_wl_GCJ='-Wl,'
17006    lt_prog_compiler_static_GCJ='-static'
17007
17008    case $host_os in
17009      aix*)
17010      # All AIX code is PIC.
17011      if test "$host_cpu" = ia64; then
17012	# AIX 5 now supports IA64 processor
17013	lt_prog_compiler_static_GCJ='-Bstatic'
17014      fi
17015      ;;
17016
17017    amigaos*)
17018      # FIXME: we need at least 68020 code to build shared libraries, but
17019      # adding the `-m68020' flag to GCC prevents building anything better,
17020      # like `-m68040'.
17021      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17022      ;;
17023
17024    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17025      # PIC is the default for these OSes.
17026      ;;
17027
17028    mingw* | cygwin* | pw32* | os2*)
17029      # This hack is so that the source file can tell whether it is being
17030      # built for inclusion in a dll (and should export symbols for example).
17031      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17032      # (--disable-auto-import) libraries
17033
17034      ;;
17035
17036    darwin* | rhapsody*)
17037      # PIC is the default on this platform
17038      # Common symbols not allowed in MH_DYLIB files
17039      lt_prog_compiler_pic_GCJ='-fno-common'
17040      ;;
17041
17042    interix[3-9]*)
17043      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17044      # Instead, we relocate shared libraries at runtime.
17045      ;;
17046
17047    msdosdjgpp*)
17048      # Just because we use GCC doesn't mean we suddenly get shared libraries
17049      # on systems that don't support them.
17050      lt_prog_compiler_can_build_shared_GCJ=no
17051      enable_shared=no
17052      ;;
17053
17054    sysv4*MP*)
17055      if test -d /usr/nec; then
17056	lt_prog_compiler_pic_GCJ=-Kconform_pic
17057      fi
17058      ;;
17059
17060    hpux*)
17061      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17062      # not for PA HP-UX.
17063      case $host_cpu in
17064      hppa*64*|ia64*)
17065	# +Z the default
17066	;;
17067      *)
17068	lt_prog_compiler_pic_GCJ='-fPIC'
17069	;;
17070      esac
17071      ;;
17072
17073    *)
17074      lt_prog_compiler_pic_GCJ='-fPIC'
17075      ;;
17076    esac
17077  else
17078    # PORTME Check for flag to pass linker flags through the system compiler.
17079    case $host_os in
17080    aix*)
17081      lt_prog_compiler_wl_GCJ='-Wl,'
17082      if test "$host_cpu" = ia64; then
17083	# AIX 5 now supports IA64 processor
17084	lt_prog_compiler_static_GCJ='-Bstatic'
17085      else
17086	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17087      fi
17088      ;;
17089      darwin*)
17090        # PIC is the default on this platform
17091        # Common symbols not allowed in MH_DYLIB files
17092       case $cc_basename in
17093         xlc*)
17094         lt_prog_compiler_pic_GCJ='-qnocommon'
17095         lt_prog_compiler_wl_GCJ='-Wl,'
17096         ;;
17097       esac
17098       ;;
17099
17100    mingw* | cygwin* | pw32* | os2*)
17101      # This hack is so that the source file can tell whether it is being
17102      # built for inclusion in a dll (and should export symbols for example).
17103
17104      ;;
17105
17106    hpux9* | hpux10* | hpux11*)
17107      lt_prog_compiler_wl_GCJ='-Wl,'
17108      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17109      # not for PA HP-UX.
17110      case $host_cpu in
17111      hppa*64*|ia64*)
17112	# +Z the default
17113	;;
17114      *)
17115	lt_prog_compiler_pic_GCJ='+Z'
17116	;;
17117      esac
17118      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17119      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17120      ;;
17121
17122    irix5* | irix6* | nonstopux*)
17123      lt_prog_compiler_wl_GCJ='-Wl,'
17124      # PIC (with -KPIC) is the default.
17125      lt_prog_compiler_static_GCJ='-non_shared'
17126      ;;
17127
17128    newsos6)
17129      lt_prog_compiler_pic_GCJ='-KPIC'
17130      lt_prog_compiler_static_GCJ='-Bstatic'
17131      ;;
17132
17133    linux* | k*bsd*-gnu)
17134      case $cc_basename in
17135      icc* | ecc*)
17136	lt_prog_compiler_wl_GCJ='-Wl,'
17137	lt_prog_compiler_pic_GCJ='-KPIC'
17138	lt_prog_compiler_static_GCJ='-static'
17139        ;;
17140      pgcc* | pgf77* | pgf90* | pgf95*)
17141        # Portland Group compilers (*not* the Pentium gcc compiler,
17142	# which looks to be a dead project)
17143	lt_prog_compiler_wl_GCJ='-Wl,'
17144	lt_prog_compiler_pic_GCJ='-fpic'
17145	lt_prog_compiler_static_GCJ='-Bstatic'
17146        ;;
17147      ccc*)
17148        lt_prog_compiler_wl_GCJ='-Wl,'
17149        # All Alpha code is PIC.
17150        lt_prog_compiler_static_GCJ='-non_shared'
17151        ;;
17152      *)
17153        case `$CC -V 2>&1 | sed 5q` in
17154	*Sun\ C*)
17155	  # Sun C 5.9
17156	  lt_prog_compiler_pic_GCJ='-KPIC'
17157	  lt_prog_compiler_static_GCJ='-Bstatic'
17158	  lt_prog_compiler_wl_GCJ='-Wl,'
17159	  ;;
17160	*Sun\ F*)
17161	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17162	  lt_prog_compiler_pic_GCJ='-KPIC'
17163	  lt_prog_compiler_static_GCJ='-Bstatic'
17164	  lt_prog_compiler_wl_GCJ=''
17165	  ;;
17166	esac
17167	;;
17168      esac
17169      ;;
17170
17171    osf3* | osf4* | osf5*)
17172      lt_prog_compiler_wl_GCJ='-Wl,'
17173      # All OSF/1 code is PIC.
17174      lt_prog_compiler_static_GCJ='-non_shared'
17175      ;;
17176
17177    rdos*)
17178      lt_prog_compiler_static_GCJ='-non_shared'
17179      ;;
17180
17181    solaris*)
17182      lt_prog_compiler_pic_GCJ='-KPIC'
17183      lt_prog_compiler_static_GCJ='-Bstatic'
17184      case $cc_basename in
17185      f77* | f90* | f95*)
17186	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17187      *)
17188	lt_prog_compiler_wl_GCJ='-Wl,';;
17189      esac
17190      ;;
17191
17192    sunos4*)
17193      lt_prog_compiler_wl_GCJ='-Qoption ld '
17194      lt_prog_compiler_pic_GCJ='-PIC'
17195      lt_prog_compiler_static_GCJ='-Bstatic'
17196      ;;
17197
17198    sysv4 | sysv4.2uw2* | sysv4.3*)
17199      lt_prog_compiler_wl_GCJ='-Wl,'
17200      lt_prog_compiler_pic_GCJ='-KPIC'
17201      lt_prog_compiler_static_GCJ='-Bstatic'
17202      ;;
17203
17204    sysv4*MP*)
17205      if test -d /usr/nec ;then
17206	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17207	lt_prog_compiler_static_GCJ='-Bstatic'
17208      fi
17209      ;;
17210
17211    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17212      lt_prog_compiler_wl_GCJ='-Wl,'
17213      lt_prog_compiler_pic_GCJ='-KPIC'
17214      lt_prog_compiler_static_GCJ='-Bstatic'
17215      ;;
17216
17217    unicos*)
17218      lt_prog_compiler_wl_GCJ='-Wl,'
17219      lt_prog_compiler_can_build_shared_GCJ=no
17220      ;;
17221
17222    uts4*)
17223      lt_prog_compiler_pic_GCJ='-pic'
17224      lt_prog_compiler_static_GCJ='-Bstatic'
17225      ;;
17226
17227    *)
17228      lt_prog_compiler_can_build_shared_GCJ=no
17229      ;;
17230    esac
17231  fi
17232
17233{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17234$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17235
17236#
17237# Check to make sure the PIC flag actually works.
17238#
17239if test -n "$lt_prog_compiler_pic_GCJ"; then
17240
17241{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17242$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17243if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17244  $as_echo_n "(cached) " >&6
17245else
17246  lt_cv_prog_compiler_pic_works_GCJ=no
17247  ac_outfile=conftest.$ac_objext
17248   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17249   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17250   # Insert the option either (1) after the last *FLAGS variable, or
17251   # (2) before a word containing "conftest.", or (3) at the end.
17252   # Note that $ac_compile itself does not contain backslashes and begins
17253   # with a dollar sign (not a hyphen), so the echo should work correctly.
17254   # The option is referenced via a variable to avoid confusing sed.
17255   lt_compile=`echo "$ac_compile" | $SED \
17256   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17257   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17258   -e 's:$: $lt_compiler_flag:'`
17259   (eval echo "\"\$as_me:17259: $lt_compile\"" >&5)
17260   (eval "$lt_compile" 2>conftest.err)
17261   ac_status=$?
17262   cat conftest.err >&5
17263   echo "$as_me:17263: \$? = $ac_status" >&5
17264   if (exit $ac_status) && test -s "$ac_outfile"; then
17265     # The compiler can only warn and ignore the option if not recognized
17266     # So say no if there are warnings other than the usual output.
17267     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17268     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17269     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17270       lt_cv_prog_compiler_pic_works_GCJ=yes
17271     fi
17272   fi
17273   $rm conftest*
17274
17275fi
17276{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17277$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17278
17279if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17280    case $lt_prog_compiler_pic_GCJ in
17281     "" | " "*) ;;
17282     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17283     esac
17284else
17285    lt_prog_compiler_pic_GCJ=
17286     lt_prog_compiler_can_build_shared_GCJ=no
17287fi
17288
17289fi
17290case $host_os in
17291  # For platforms which do not support PIC, -DPIC is meaningless:
17292  *djgpp*)
17293    lt_prog_compiler_pic_GCJ=
17294    ;;
17295  *)
17296    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17297    ;;
17298esac
17299
17300#
17301# Check to make sure the static flag actually works.
17302#
17303wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17304{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17305$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17306if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17307  $as_echo_n "(cached) " >&6
17308else
17309  lt_cv_prog_compiler_static_works_GCJ=no
17310   save_LDFLAGS="$LDFLAGS"
17311   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17312   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17313   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17314     # The linker can only warn and ignore the option if not recognized
17315     # So say no if there are warnings
17316     if test -s conftest.err; then
17317       # Append any errors to the config.log.
17318       cat conftest.err 1>&5
17319       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17320       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17321       if diff conftest.exp conftest.er2 >/dev/null; then
17322         lt_cv_prog_compiler_static_works_GCJ=yes
17323       fi
17324     else
17325       lt_cv_prog_compiler_static_works_GCJ=yes
17326     fi
17327   fi
17328   $rm -r conftest*
17329   LDFLAGS="$save_LDFLAGS"
17330
17331fi
17332{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17333$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17334
17335if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17336    :
17337else
17338    lt_prog_compiler_static_GCJ=
17339fi
17340
17341
17342{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17343$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17344if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17345  $as_echo_n "(cached) " >&6
17346else
17347  lt_cv_prog_compiler_c_o_GCJ=no
17348   $rm -r conftest 2>/dev/null
17349   mkdir conftest
17350   cd conftest
17351   mkdir out
17352   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17353
17354   lt_compiler_flag="-o out/conftest2.$ac_objext"
17355   # Insert the option either (1) after the last *FLAGS variable, or
17356   # (2) before a word containing "conftest.", or (3) at the end.
17357   # Note that $ac_compile itself does not contain backslashes and begins
17358   # with a dollar sign (not a hyphen), so the echo should work correctly.
17359   lt_compile=`echo "$ac_compile" | $SED \
17360   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17361   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17362   -e 's:$: $lt_compiler_flag:'`
17363   (eval echo "\"\$as_me:17363: $lt_compile\"" >&5)
17364   (eval "$lt_compile" 2>out/conftest.err)
17365   ac_status=$?
17366   cat out/conftest.err >&5
17367   echo "$as_me:17367: \$? = $ac_status" >&5
17368   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17369   then
17370     # The compiler can only warn and ignore the option if not recognized
17371     # So say no if there are warnings
17372     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17373     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17374     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17375       lt_cv_prog_compiler_c_o_GCJ=yes
17376     fi
17377   fi
17378   chmod u+w . 2>&5
17379   $rm conftest*
17380   # SGI C++ compiler will create directory out/ii_files/ for
17381   # template instantiation
17382   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17383   $rm out/* && rmdir out
17384   cd ..
17385   rmdir conftest
17386   $rm conftest*
17387
17388fi
17389{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17390$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17391
17392
17393hard_links="nottested"
17394if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17395  # do not overwrite the value of need_locks provided by the user
17396  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17397$as_echo_n "checking if we can lock with hard links... " >&6; }
17398  hard_links=yes
17399  $rm conftest*
17400  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17401  touch conftest.a
17402  ln conftest.a conftest.b 2>&5 || hard_links=no
17403  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17404  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17405$as_echo "$hard_links" >&6; }
17406  if test "$hard_links" = no; then
17407    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17408$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17409    need_locks=warn
17410  fi
17411else
17412  need_locks=no
17413fi
17414
17415{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17416$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17417
17418  runpath_var=
17419  allow_undefined_flag_GCJ=
17420  enable_shared_with_static_runtimes_GCJ=no
17421  archive_cmds_GCJ=
17422  archive_expsym_cmds_GCJ=
17423  old_archive_From_new_cmds_GCJ=
17424  old_archive_from_expsyms_cmds_GCJ=
17425  export_dynamic_flag_spec_GCJ=
17426  whole_archive_flag_spec_GCJ=
17427  thread_safe_flag_spec_GCJ=
17428  hardcode_libdir_flag_spec_GCJ=
17429  hardcode_libdir_flag_spec_ld_GCJ=
17430  hardcode_libdir_separator_GCJ=
17431  hardcode_direct_GCJ=no
17432  hardcode_minus_L_GCJ=no
17433  hardcode_shlibpath_var_GCJ=unsupported
17434  link_all_deplibs_GCJ=unknown
17435  hardcode_automatic_GCJ=no
17436  module_cmds_GCJ=
17437  module_expsym_cmds_GCJ=
17438  always_export_symbols_GCJ=no
17439  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17440  # include_expsyms should be a list of space-separated symbols to be *always*
17441  # included in the symbol list
17442  include_expsyms_GCJ=
17443  # exclude_expsyms can be an extended regexp of symbols to exclude
17444  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17445  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17446  # as well as any symbol that contains `d'.
17447  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17448  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17449  # platforms (ab)use it in PIC code, but their linkers get confused if
17450  # the symbol is explicitly referenced.  Since portable code cannot
17451  # rely on this symbol name, it's probably fine to never include it in
17452  # preloaded symbol tables.
17453  # Exclude shared library initialization/finalization symbols.
17454  extract_expsyms_cmds=
17455  # Just being paranoid about ensuring that cc_basename is set.
17456  for cc_temp in $compiler""; do
17457  case $cc_temp in
17458    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17459    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17460    \-*) ;;
17461    *) break;;
17462  esac
17463done
17464cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17465
17466  case $host_os in
17467  cygwin* | mingw* | pw32*)
17468    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17469    # When not using gcc, we currently assume that we are using
17470    # Microsoft Visual C++.
17471    if test "$GCC" != yes; then
17472      with_gnu_ld=no
17473    fi
17474    ;;
17475  interix*)
17476    # we just hope/assume this is gcc and not c89 (= MSVC++)
17477    with_gnu_ld=yes
17478    ;;
17479  openbsd*)
17480    with_gnu_ld=no
17481    ;;
17482  esac
17483
17484  ld_shlibs_GCJ=yes
17485  if test "$with_gnu_ld" = yes; then
17486    # If archive_cmds runs LD, not CC, wlarc should be empty
17487    wlarc='${wl}'
17488
17489    # Set some defaults for GNU ld with shared library support. These
17490    # are reset later if shared libraries are not supported. Putting them
17491    # here allows them to be overridden if necessary.
17492    runpath_var=LD_RUN_PATH
17493    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17494    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17495    # ancient GNU ld didn't support --whole-archive et. al.
17496    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17497	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17498      else
17499  	whole_archive_flag_spec_GCJ=
17500    fi
17501    supports_anon_versioning=no
17502    case `$LD -v 2>/dev/null` in
17503      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17504      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17505      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17506      *\ 2.11.*) ;; # other 2.11 versions
17507      *) supports_anon_versioning=yes ;;
17508    esac
17509
17510    # See if GNU ld supports shared libraries.
17511    case $host_os in
17512    aix[3-9]*)
17513      # On AIX/PPC, the GNU linker is very broken
17514      if test "$host_cpu" != ia64; then
17515	ld_shlibs_GCJ=no
17516	cat <<EOF 1>&2
17517
17518*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17519*** to be unable to reliably create shared libraries on AIX.
17520*** Therefore, libtool is disabling shared libraries support.  If you
17521*** really care for shared libraries, you may want to modify your PATH
17522*** so that a non-GNU linker is found, and then restart.
17523
17524EOF
17525      fi
17526      ;;
17527
17528    amigaos*)
17529      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)'
17530      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17531      hardcode_minus_L_GCJ=yes
17532
17533      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17534      # that the semantics of dynamic libraries on AmigaOS, at least up
17535      # to version 4, is to share data among multiple programs linked
17536      # with the same dynamic library.  Since this doesn't match the
17537      # behavior of shared libraries on other platforms, we can't use
17538      # them.
17539      ld_shlibs_GCJ=no
17540      ;;
17541
17542    beos*)
17543      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17544	allow_undefined_flag_GCJ=unsupported
17545	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17546	# support --undefined.  This deserves some investigation.  FIXME
17547	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17548      else
17549	ld_shlibs_GCJ=no
17550      fi
17551      ;;
17552
17553    cygwin* | mingw* | pw32*)
17554      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17555      # as there is no search path for DLLs.
17556      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17557      allow_undefined_flag_GCJ=unsupported
17558      always_export_symbols_GCJ=no
17559      enable_shared_with_static_runtimes_GCJ=yes
17560      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17561
17562      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17563        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17564	# If the export-symbols file already is a .def file (1st line
17565	# is EXPORTS), use it as is; otherwise, prepend...
17566	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17567	  cp $export_symbols $output_objdir/$soname.def;
17568	else
17569	  echo EXPORTS > $output_objdir/$soname.def;
17570	  cat $export_symbols >> $output_objdir/$soname.def;
17571	fi~
17572	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17573      else
17574	ld_shlibs_GCJ=no
17575      fi
17576      ;;
17577
17578    interix[3-9]*)
17579      hardcode_direct_GCJ=no
17580      hardcode_shlibpath_var_GCJ=no
17581      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17582      export_dynamic_flag_spec_GCJ='${wl}-E'
17583      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17584      # Instead, shared libraries are loaded at an image base (0x10000000 by
17585      # default) and relocated if they conflict, which is a slow very memory
17586      # consuming and fragmenting process.  To avoid this, we pick a random,
17587      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17588      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17589      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'
17590      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'
17591      ;;
17592
17593    gnu* | linux* | k*bsd*-gnu)
17594      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17595	tmp_addflag=
17596	case $cc_basename,$host_cpu in
17597	pgcc*)				# Portland Group C compiler
17598	  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'
17599	  tmp_addflag=' $pic_flag'
17600	  ;;
17601	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17602	  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'
17603	  tmp_addflag=' $pic_flag -Mnomain' ;;
17604	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17605	  tmp_addflag=' -i_dynamic' ;;
17606	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17607	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17608	ifc* | ifort*)			# Intel Fortran compiler
17609	  tmp_addflag=' -nofor_main' ;;
17610	esac
17611	case `$CC -V 2>&1 | sed 5q` in
17612	*Sun\ C*)			# Sun C 5.9
17613	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17614	  tmp_sharedflag='-G' ;;
17615	*Sun\ F*)			# Sun Fortran 8.3
17616	  tmp_sharedflag='-G' ;;
17617	*)
17618	  tmp_sharedflag='-shared' ;;
17619	esac
17620	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17621
17622	if test $supports_anon_versioning = yes; then
17623	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17624  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17625  $echo "local: *; };" >> $output_objdir/$libname.ver~
17626	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17627	fi
17628      else
17629	ld_shlibs_GCJ=no
17630      fi
17631      ;;
17632
17633    netbsd*)
17634      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17635	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17636	wlarc=
17637      else
17638	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17639	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17640      fi
17641      ;;
17642
17643    solaris*)
17644      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17645	ld_shlibs_GCJ=no
17646	cat <<EOF 1>&2
17647
17648*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17649*** create shared libraries on Solaris systems.  Therefore, libtool
17650*** is disabling shared libraries support.  We urge you to upgrade GNU
17651*** binutils to release 2.9.1 or newer.  Another option is to modify
17652*** your PATH or compiler configuration so that the native linker is
17653*** used, and then restart.
17654
17655EOF
17656      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17657	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17658	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17659      else
17660	ld_shlibs_GCJ=no
17661      fi
17662      ;;
17663
17664    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17665      case `$LD -v 2>&1` in
17666        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17667	ld_shlibs_GCJ=no
17668	cat <<_LT_EOF 1>&2
17669
17670*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17671*** reliably create shared libraries on SCO systems.  Therefore, libtool
17672*** is disabling shared libraries support.  We urge you to upgrade GNU
17673*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17674*** your PATH or compiler configuration so that the native linker is
17675*** used, and then restart.
17676
17677_LT_EOF
17678	;;
17679	*)
17680	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17681	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17682	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17683	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17684	  else
17685	    ld_shlibs_GCJ=no
17686	  fi
17687	;;
17688      esac
17689      ;;
17690
17691    sunos4*)
17692      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17693      wlarc=
17694      hardcode_direct_GCJ=yes
17695      hardcode_shlibpath_var_GCJ=no
17696      ;;
17697
17698    *)
17699      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17700	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17701	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17702      else
17703	ld_shlibs_GCJ=no
17704      fi
17705      ;;
17706    esac
17707
17708    if test "$ld_shlibs_GCJ" = no; then
17709      runpath_var=
17710      hardcode_libdir_flag_spec_GCJ=
17711      export_dynamic_flag_spec_GCJ=
17712      whole_archive_flag_spec_GCJ=
17713    fi
17714  else
17715    # PORTME fill in a description of your system's linker (not GNU ld)
17716    case $host_os in
17717    aix3*)
17718      allow_undefined_flag_GCJ=unsupported
17719      always_export_symbols_GCJ=yes
17720      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'
17721      # Note: this linker hardcodes the directories in LIBPATH if there
17722      # are no directories specified by -L.
17723      hardcode_minus_L_GCJ=yes
17724      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17725	# Neither direct hardcoding nor static linking is supported with a
17726	# broken collect2.
17727	hardcode_direct_GCJ=unsupported
17728      fi
17729      ;;
17730
17731    aix[4-9]*)
17732      if test "$host_cpu" = ia64; then
17733	# On IA64, the linker does run time linking by default, so we don't
17734	# have to do anything special.
17735	aix_use_runtimelinking=no
17736	exp_sym_flag='-Bexport'
17737	no_entry_flag=""
17738      else
17739	# If we're using GNU nm, then we don't want the "-C" option.
17740	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17741	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17742	  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'
17743	else
17744	  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'
17745	fi
17746	aix_use_runtimelinking=no
17747
17748	# Test if we are trying to use run time linking or normal
17749	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17750	# need to do runtime linking.
17751	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17752	  for ld_flag in $LDFLAGS; do
17753  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17754  	    aix_use_runtimelinking=yes
17755  	    break
17756  	  fi
17757	  done
17758	  ;;
17759	esac
17760
17761	exp_sym_flag='-bexport'
17762	no_entry_flag='-bnoentry'
17763      fi
17764
17765      # When large executables or shared objects are built, AIX ld can
17766      # have problems creating the table of contents.  If linking a library
17767      # or program results in "error TOC overflow" add -mminimal-toc to
17768      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17769      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17770
17771      archive_cmds_GCJ=''
17772      hardcode_direct_GCJ=yes
17773      hardcode_libdir_separator_GCJ=':'
17774      link_all_deplibs_GCJ=yes
17775
17776      if test "$GCC" = yes; then
17777	case $host_os in aix4.[012]|aix4.[012].*)
17778	# We only want to do this on AIX 4.2 and lower, the check
17779	# below for broken collect2 doesn't work under 4.3+
17780	  collect2name=`${CC} -print-prog-name=collect2`
17781	  if test -f "$collect2name" && \
17782  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17783	  then
17784  	  # We have reworked collect2
17785  	  :
17786	  else
17787  	  # We have old collect2
17788  	  hardcode_direct_GCJ=unsupported
17789  	  # It fails to find uninstalled libraries when the uninstalled
17790  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17791  	  # to unsupported forces relinking
17792  	  hardcode_minus_L_GCJ=yes
17793  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17794  	  hardcode_libdir_separator_GCJ=
17795	  fi
17796	  ;;
17797	esac
17798	shared_flag='-shared'
17799	if test "$aix_use_runtimelinking" = yes; then
17800	  shared_flag="$shared_flag "'${wl}-G'
17801	fi
17802      else
17803	# not using gcc
17804	if test "$host_cpu" = ia64; then
17805  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17806  	# chokes on -Wl,-G. The following line is correct:
17807	  shared_flag='-G'
17808	else
17809	  if test "$aix_use_runtimelinking" = yes; then
17810	    shared_flag='${wl}-G'
17811	  else
17812	    shared_flag='${wl}-bM:SRE'
17813	  fi
17814	fi
17815      fi
17816
17817      # It seems that -bexpall does not export symbols beginning with
17818      # underscore (_), so it is better to generate a list of symbols to export.
17819      always_export_symbols_GCJ=yes
17820      if test "$aix_use_runtimelinking" = yes; then
17821	# Warning - without using the other runtime loading flags (-brtl),
17822	# -berok will link without error, but may produce a broken library.
17823	allow_undefined_flag_GCJ='-berok'
17824       # Determine the default libpath from the value encoded in an empty executable.
17825       cat >conftest.$ac_ext <<_ACEOF
17826/* confdefs.h.  */
17827_ACEOF
17828cat confdefs.h >>conftest.$ac_ext
17829cat >>conftest.$ac_ext <<_ACEOF
17830/* end confdefs.h.  */
17831
17832int
17833main ()
17834{
17835
17836  ;
17837  return 0;
17838}
17839_ACEOF
17840rm -f conftest.$ac_objext conftest$ac_exeext
17841if { (ac_try="$ac_link"
17842case "(($ac_try" in
17843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17844  *) ac_try_echo=$ac_try;;
17845esac
17846eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17847$as_echo "$ac_try_echo") >&5
17848  (eval "$ac_link") 2>conftest.er1
17849  ac_status=$?
17850  grep -v '^ *+' conftest.er1 >conftest.err
17851  rm -f conftest.er1
17852  cat conftest.err >&5
17853  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854  (exit $ac_status); } && {
17855	 test -z "$ac_c_werror_flag" ||
17856	 test ! -s conftest.err
17857       } && test -s conftest$ac_exeext && {
17858	 test "$cross_compiling" = yes ||
17859	 $as_test_x conftest$ac_exeext
17860       }; then
17861
17862lt_aix_libpath_sed='
17863    /Import File Strings/,/^$/ {
17864	/^0/ {
17865	    s/^0  *\(.*\)$/\1/
17866	    p
17867	}
17868    }'
17869aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17870# Check for a 64-bit object if we didn't find anything.
17871if test -z "$aix_libpath"; then
17872  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17873fi
17874else
17875  $as_echo "$as_me: failed program was:" >&5
17876sed 's/^/| /' conftest.$ac_ext >&5
17877
17878
17879fi
17880
17881rm -rf conftest.dSYM
17882rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17883      conftest$ac_exeext conftest.$ac_ext
17884if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17885
17886       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17887	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"
17888       else
17889	if test "$host_cpu" = ia64; then
17890	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17891	  allow_undefined_flag_GCJ="-z nodefs"
17892	  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"
17893	else
17894	 # Determine the default libpath from the value encoded in an empty executable.
17895	 cat >conftest.$ac_ext <<_ACEOF
17896/* confdefs.h.  */
17897_ACEOF
17898cat confdefs.h >>conftest.$ac_ext
17899cat >>conftest.$ac_ext <<_ACEOF
17900/* end confdefs.h.  */
17901
17902int
17903main ()
17904{
17905
17906  ;
17907  return 0;
17908}
17909_ACEOF
17910rm -f conftest.$ac_objext conftest$ac_exeext
17911if { (ac_try="$ac_link"
17912case "(($ac_try" in
17913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17914  *) ac_try_echo=$ac_try;;
17915esac
17916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17917$as_echo "$ac_try_echo") >&5
17918  (eval "$ac_link") 2>conftest.er1
17919  ac_status=$?
17920  grep -v '^ *+' conftest.er1 >conftest.err
17921  rm -f conftest.er1
17922  cat conftest.err >&5
17923  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924  (exit $ac_status); } && {
17925	 test -z "$ac_c_werror_flag" ||
17926	 test ! -s conftest.err
17927       } && test -s conftest$ac_exeext && {
17928	 test "$cross_compiling" = yes ||
17929	 $as_test_x conftest$ac_exeext
17930       }; then
17931
17932lt_aix_libpath_sed='
17933    /Import File Strings/,/^$/ {
17934	/^0/ {
17935	    s/^0  *\(.*\)$/\1/
17936	    p
17937	}
17938    }'
17939aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17940# Check for a 64-bit object if we didn't find anything.
17941if test -z "$aix_libpath"; then
17942  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17943fi
17944else
17945  $as_echo "$as_me: failed program was:" >&5
17946sed 's/^/| /' conftest.$ac_ext >&5
17947
17948
17949fi
17950
17951rm -rf conftest.dSYM
17952rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17953      conftest$ac_exeext conftest.$ac_ext
17954if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17955
17956	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17957	  # Warning - without using the other run time loading flags,
17958	  # -berok will link without error, but may produce a broken library.
17959	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17960	  allow_undefined_flag_GCJ=' ${wl}-berok'
17961	  # Exported symbols can be pulled into shared objects from archives
17962	  whole_archive_flag_spec_GCJ='$convenience'
17963	  archive_cmds_need_lc_GCJ=yes
17964	  # This is similar to how AIX traditionally builds its shared libraries.
17965	  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'
17966	fi
17967      fi
17968      ;;
17969
17970    amigaos*)
17971      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)'
17972      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17973      hardcode_minus_L_GCJ=yes
17974      # see comment about different semantics on the GNU ld section
17975      ld_shlibs_GCJ=no
17976      ;;
17977
17978    bsdi[45]*)
17979      export_dynamic_flag_spec_GCJ=-rdynamic
17980      ;;
17981
17982    cygwin* | mingw* | pw32*)
17983      # When not using gcc, we currently assume that we are using
17984      # Microsoft Visual C++.
17985      # hardcode_libdir_flag_spec is actually meaningless, as there is
17986      # no search path for DLLs.
17987      hardcode_libdir_flag_spec_GCJ=' '
17988      allow_undefined_flag_GCJ=unsupported
17989      # Tell ltmain to make .lib files, not .a files.
17990      libext=lib
17991      # Tell ltmain to make .dll files, not .so files.
17992      shrext_cmds=".dll"
17993      # FIXME: Setting linknames here is a bad hack.
17994      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17995      # The linker will automatically build a .lib file if we build a DLL.
17996      old_archive_From_new_cmds_GCJ='true'
17997      # FIXME: Should let the user specify the lib program.
17998      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17999      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18000      enable_shared_with_static_runtimes_GCJ=yes
18001      ;;
18002
18003    darwin* | rhapsody*)
18004      case $host_os in
18005        rhapsody* | darwin1.[012])
18006         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18007         ;;
18008       *) # Darwin 1.3 on
18009         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18010           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18011         else
18012           case ${MACOSX_DEPLOYMENT_TARGET} in
18013             10.[012])
18014               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18015               ;;
18016             10.*)
18017               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18018               ;;
18019           esac
18020         fi
18021         ;;
18022      esac
18023      archive_cmds_need_lc_GCJ=no
18024      hardcode_direct_GCJ=no
18025      hardcode_automatic_GCJ=yes
18026      hardcode_shlibpath_var_GCJ=unsupported
18027      whole_archive_flag_spec_GCJ=''
18028      link_all_deplibs_GCJ=yes
18029    if test "$GCC" = yes ; then
18030    	output_verbose_link_cmd='echo'
18031        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18032        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18033        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18034        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18035    else
18036      case $cc_basename in
18037        xlc*)
18038         output_verbose_link_cmd='echo'
18039         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18040         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18041          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18042         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18043          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}'
18044          ;;
18045       *)
18046         ld_shlibs_GCJ=no
18047          ;;
18048      esac
18049    fi
18050      ;;
18051
18052    dgux*)
18053      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18054      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18055      hardcode_shlibpath_var_GCJ=no
18056      ;;
18057
18058    freebsd1*)
18059      ld_shlibs_GCJ=no
18060      ;;
18061
18062    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18063    # support.  Future versions do this automatically, but an explicit c++rt0.o
18064    # does not break anything, and helps significantly (at the cost of a little
18065    # extra space).
18066    freebsd2.2*)
18067      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18068      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18069      hardcode_direct_GCJ=yes
18070      hardcode_shlibpath_var_GCJ=no
18071      ;;
18072
18073    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18074    freebsd2*)
18075      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18076      hardcode_direct_GCJ=yes
18077      hardcode_minus_L_GCJ=yes
18078      hardcode_shlibpath_var_GCJ=no
18079      ;;
18080
18081    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18082    freebsd* | dragonfly*)
18083      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18084      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18085      hardcode_direct_GCJ=yes
18086      hardcode_shlibpath_var_GCJ=no
18087      ;;
18088
18089    hpux9*)
18090      if test "$GCC" = yes; then
18091	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'
18092      else
18093	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'
18094      fi
18095      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18096      hardcode_libdir_separator_GCJ=:
18097      hardcode_direct_GCJ=yes
18098
18099      # hardcode_minus_L: Not really in the search PATH,
18100      # but as the default location of the library.
18101      hardcode_minus_L_GCJ=yes
18102      export_dynamic_flag_spec_GCJ='${wl}-E'
18103      ;;
18104
18105    hpux10*)
18106      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18107	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18108      else
18109	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18110      fi
18111      if test "$with_gnu_ld" = no; then
18112	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18113	hardcode_libdir_separator_GCJ=:
18114
18115	hardcode_direct_GCJ=yes
18116	export_dynamic_flag_spec_GCJ='${wl}-E'
18117
18118	# hardcode_minus_L: Not really in the search PATH,
18119	# but as the default location of the library.
18120	hardcode_minus_L_GCJ=yes
18121      fi
18122      ;;
18123
18124    hpux11*)
18125      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18126	case $host_cpu in
18127	hppa*64*)
18128	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18129	  ;;
18130	ia64*)
18131	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18132	  ;;
18133	*)
18134	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18135	  ;;
18136	esac
18137      else
18138	case $host_cpu in
18139	hppa*64*)
18140	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18141	  ;;
18142	ia64*)
18143	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18144	  ;;
18145	*)
18146	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18147	  ;;
18148	esac
18149      fi
18150      if test "$with_gnu_ld" = no; then
18151	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18152	hardcode_libdir_separator_GCJ=:
18153
18154	case $host_cpu in
18155	hppa*64*|ia64*)
18156	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18157	  hardcode_direct_GCJ=no
18158	  hardcode_shlibpath_var_GCJ=no
18159	  ;;
18160	*)
18161	  hardcode_direct_GCJ=yes
18162	  export_dynamic_flag_spec_GCJ='${wl}-E'
18163
18164	  # hardcode_minus_L: Not really in the search PATH,
18165	  # but as the default location of the library.
18166	  hardcode_minus_L_GCJ=yes
18167	  ;;
18168	esac
18169      fi
18170      ;;
18171
18172    irix5* | irix6* | nonstopux*)
18173      if test "$GCC" = yes; then
18174	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'
18175      else
18176	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'
18177	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18178      fi
18179      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18180      hardcode_libdir_separator_GCJ=:
18181      link_all_deplibs_GCJ=yes
18182      ;;
18183
18184    netbsd*)
18185      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18186	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18187      else
18188	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18189      fi
18190      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18191      hardcode_direct_GCJ=yes
18192      hardcode_shlibpath_var_GCJ=no
18193      ;;
18194
18195    newsos6)
18196      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18197      hardcode_direct_GCJ=yes
18198      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18199      hardcode_libdir_separator_GCJ=:
18200      hardcode_shlibpath_var_GCJ=no
18201      ;;
18202
18203    openbsd*)
18204      if test -f /usr/libexec/ld.so; then
18205	hardcode_direct_GCJ=yes
18206	hardcode_shlibpath_var_GCJ=no
18207	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18208	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18209	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18210	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18211	  export_dynamic_flag_spec_GCJ='${wl}-E'
18212	else
18213	  case $host_os in
18214	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18215	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18216	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18217	     ;;
18218	   *)
18219	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18220	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18221	     ;;
18222	  esac
18223        fi
18224      else
18225	ld_shlibs_GCJ=no
18226      fi
18227      ;;
18228
18229    os2*)
18230      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18231      hardcode_minus_L_GCJ=yes
18232      allow_undefined_flag_GCJ=unsupported
18233      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'
18234      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18235      ;;
18236
18237    osf3*)
18238      if test "$GCC" = yes; then
18239	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18240	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'
18241      else
18242	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18243	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'
18244      fi
18245      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18246      hardcode_libdir_separator_GCJ=:
18247      ;;
18248
18249    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18250      if test "$GCC" = yes; then
18251	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18252	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'
18253	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18254      else
18255	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18256	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'
18257	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~
18258	$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'
18259
18260	# Both c and cxx compiler support -rpath directly
18261	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18262      fi
18263      hardcode_libdir_separator_GCJ=:
18264      ;;
18265
18266    solaris*)
18267      no_undefined_flag_GCJ=' -z text'
18268      if test "$GCC" = yes; then
18269	wlarc='${wl}'
18270	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18271	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18272	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18273      else
18274	wlarc=''
18275	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18276	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18277  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18278      fi
18279      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18280      hardcode_shlibpath_var_GCJ=no
18281      case $host_os in
18282      solaris2.[0-5] | solaris2.[0-5].*) ;;
18283      *)
18284	# The compiler driver will combine and reorder linker options,
18285	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18286	# but is careful enough not to reorder.
18287 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18288	if test "$GCC" = yes; then
18289	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18290	else
18291	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18292	fi
18293	;;
18294      esac
18295      link_all_deplibs_GCJ=yes
18296      ;;
18297
18298    sunos4*)
18299      if test "x$host_vendor" = xsequent; then
18300	# Use $CC to link under sequent, because it throws in some extra .o
18301	# files that make .init and .fini sections work.
18302	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18303      else
18304	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18305      fi
18306      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18307      hardcode_direct_GCJ=yes
18308      hardcode_minus_L_GCJ=yes
18309      hardcode_shlibpath_var_GCJ=no
18310      ;;
18311
18312    sysv4)
18313      case $host_vendor in
18314	sni)
18315	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18316	  hardcode_direct_GCJ=yes # is this really true???
18317	;;
18318	siemens)
18319	  ## LD is ld it makes a PLAMLIB
18320	  ## CC just makes a GrossModule.
18321	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18322	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18323	  hardcode_direct_GCJ=no
18324        ;;
18325	motorola)
18326	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18327	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18328	;;
18329      esac
18330      runpath_var='LD_RUN_PATH'
18331      hardcode_shlibpath_var_GCJ=no
18332      ;;
18333
18334    sysv4.3*)
18335      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18336      hardcode_shlibpath_var_GCJ=no
18337      export_dynamic_flag_spec_GCJ='-Bexport'
18338      ;;
18339
18340    sysv4*MP*)
18341      if test -d /usr/nec; then
18342	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18343	hardcode_shlibpath_var_GCJ=no
18344	runpath_var=LD_RUN_PATH
18345	hardcode_runpath_var=yes
18346	ld_shlibs_GCJ=yes
18347      fi
18348      ;;
18349
18350    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18351      no_undefined_flag_GCJ='${wl}-z,text'
18352      archive_cmds_need_lc_GCJ=no
18353      hardcode_shlibpath_var_GCJ=no
18354      runpath_var='LD_RUN_PATH'
18355
18356      if test "$GCC" = yes; then
18357	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18358	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18359      else
18360	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18361	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18362      fi
18363      ;;
18364
18365    sysv5* | sco3.2v5* | sco5v6*)
18366      # Note: We can NOT use -z defs as we might desire, because we do not
18367      # link with -lc, and that would cause any symbols used from libc to
18368      # always be unresolved, which means just about no library would
18369      # ever link correctly.  If we're not using GNU ld we use -z text
18370      # though, which does catch some bad symbols but isn't as heavy-handed
18371      # as -z defs.
18372      no_undefined_flag_GCJ='${wl}-z,text'
18373      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18374      archive_cmds_need_lc_GCJ=no
18375      hardcode_shlibpath_var_GCJ=no
18376      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18377      hardcode_libdir_separator_GCJ=':'
18378      link_all_deplibs_GCJ=yes
18379      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18380      runpath_var='LD_RUN_PATH'
18381
18382      if test "$GCC" = yes; then
18383	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18384	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18385      else
18386	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18387	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18388      fi
18389      ;;
18390
18391    uts4*)
18392      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18393      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18394      hardcode_shlibpath_var_GCJ=no
18395      ;;
18396
18397    *)
18398      ld_shlibs_GCJ=no
18399      ;;
18400    esac
18401  fi
18402
18403{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18404$as_echo "$ld_shlibs_GCJ" >&6; }
18405test "$ld_shlibs_GCJ" = no && can_build_shared=no
18406
18407#
18408# Do we need to explicitly link libc?
18409#
18410case "x$archive_cmds_need_lc_GCJ" in
18411x|xyes)
18412  # Assume -lc should be added
18413  archive_cmds_need_lc_GCJ=yes
18414
18415  if test "$enable_shared" = yes && test "$GCC" = yes; then
18416    case $archive_cmds_GCJ in
18417    *'~'*)
18418      # FIXME: we may have to deal with multi-command sequences.
18419      ;;
18420    '$CC '*)
18421      # Test whether the compiler implicitly links with -lc since on some
18422      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18423      # to ld, don't add -lc before -lgcc.
18424      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18425$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18426      $rm conftest*
18427      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18428
18429      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18430  (eval $ac_compile) 2>&5
18431  ac_status=$?
18432  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433  (exit $ac_status); } 2>conftest.err; then
18434        soname=conftest
18435        lib=conftest
18436        libobjs=conftest.$ac_objext
18437        deplibs=
18438        wl=$lt_prog_compiler_wl_GCJ
18439	pic_flag=$lt_prog_compiler_pic_GCJ
18440        compiler_flags=-v
18441        linker_flags=-v
18442        verstring=
18443        output_objdir=.
18444        libname=conftest
18445        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18446        allow_undefined_flag_GCJ=
18447        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18448  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18449  ac_status=$?
18450  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451  (exit $ac_status); }
18452        then
18453	  archive_cmds_need_lc_GCJ=no
18454        else
18455	  archive_cmds_need_lc_GCJ=yes
18456        fi
18457        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18458      else
18459        cat conftest.err 1>&5
18460      fi
18461      $rm conftest*
18462      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18463$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18464      ;;
18465    esac
18466  fi
18467  ;;
18468esac
18469
18470{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18471$as_echo_n "checking dynamic linker characteristics... " >&6; }
18472library_names_spec=
18473libname_spec='lib$name'
18474soname_spec=
18475shrext_cmds=".so"
18476postinstall_cmds=
18477postuninstall_cmds=
18478finish_cmds=
18479finish_eval=
18480shlibpath_var=
18481shlibpath_overrides_runpath=unknown
18482version_type=none
18483dynamic_linker="$host_os ld.so"
18484sys_lib_dlsearch_path_spec="/lib /usr/lib"
18485
18486need_lib_prefix=unknown
18487hardcode_into_libs=no
18488
18489# when you set need_version to no, make sure it does not cause -set_version
18490# flags to be left without arguments
18491need_version=unknown
18492
18493case $host_os in
18494aix3*)
18495  version_type=linux
18496  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18497  shlibpath_var=LIBPATH
18498
18499  # AIX 3 has no versioning support, so we append a major version to the name.
18500  soname_spec='${libname}${release}${shared_ext}$major'
18501  ;;
18502
18503aix[4-9]*)
18504  version_type=linux
18505  need_lib_prefix=no
18506  need_version=no
18507  hardcode_into_libs=yes
18508  if test "$host_cpu" = ia64; then
18509    # AIX 5 supports IA64
18510    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18511    shlibpath_var=LD_LIBRARY_PATH
18512  else
18513    # With GCC up to 2.95.x, collect2 would create an import file
18514    # for dependence libraries.  The import file would start with
18515    # the line `#! .'.  This would cause the generated library to
18516    # depend on `.', always an invalid library.  This was fixed in
18517    # development snapshots of GCC prior to 3.0.
18518    case $host_os in
18519      aix4 | aix4.[01] | aix4.[01].*)
18520      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18521	   echo ' yes '
18522	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18523	:
18524      else
18525	can_build_shared=no
18526      fi
18527      ;;
18528    esac
18529    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18530    # soname into executable. Probably we can add versioning support to
18531    # collect2, so additional links can be useful in future.
18532    if test "$aix_use_runtimelinking" = yes; then
18533      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18534      # instead of lib<name>.a to let people know that these are not
18535      # typical AIX shared libraries.
18536      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18537    else
18538      # We preserve .a as extension for shared libraries through AIX4.2
18539      # and later when we are not doing run time linking.
18540      library_names_spec='${libname}${release}.a $libname.a'
18541      soname_spec='${libname}${release}${shared_ext}$major'
18542    fi
18543    shlibpath_var=LIBPATH
18544  fi
18545  ;;
18546
18547amigaos*)
18548  library_names_spec='$libname.ixlibrary $libname.a'
18549  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18550  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'
18551  ;;
18552
18553beos*)
18554  library_names_spec='${libname}${shared_ext}'
18555  dynamic_linker="$host_os ld.so"
18556  shlibpath_var=LIBRARY_PATH
18557  ;;
18558
18559bsdi[45]*)
18560  version_type=linux
18561  need_version=no
18562  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18563  soname_spec='${libname}${release}${shared_ext}$major'
18564  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18565  shlibpath_var=LD_LIBRARY_PATH
18566  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18567  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18568  # the default ld.so.conf also contains /usr/contrib/lib and
18569  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18570  # libtool to hard-code these into programs
18571  ;;
18572
18573cygwin* | mingw* | pw32*)
18574  version_type=windows
18575  shrext_cmds=".dll"
18576  need_version=no
18577  need_lib_prefix=no
18578
18579  case $GCC,$host_os in
18580  yes,cygwin* | yes,mingw* | yes,pw32*)
18581    library_names_spec='$libname.dll.a'
18582    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18583    postinstall_cmds='base_file=`basename \${file}`~
18584      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18585      dldir=$destdir/`dirname \$dlpath`~
18586      test -d \$dldir || mkdir -p \$dldir~
18587      $install_prog $dir/$dlname \$dldir/$dlname~
18588      chmod a+x \$dldir/$dlname'
18589    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18590      dlpath=$dir/\$dldll~
18591       $rm \$dlpath'
18592    shlibpath_overrides_runpath=yes
18593
18594    case $host_os in
18595    cygwin*)
18596      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18597      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18598      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18599      ;;
18600    mingw*)
18601      # MinGW DLLs use traditional 'lib' prefix
18602      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18603      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18604      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18605        # It is most probably a Windows format PATH printed by
18606        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18607        # path with ; separators, and with drive letters. We can handle the
18608        # drive letters (cygwin fileutils understands them), so leave them,
18609        # especially as we might pass files found there to a mingw objdump,
18610        # which wouldn't understand a cygwinified path. Ahh.
18611        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18612      else
18613        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18614      fi
18615      ;;
18616    pw32*)
18617      # pw32 DLLs use 'pw' prefix rather than 'lib'
18618      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18619      ;;
18620    esac
18621    ;;
18622
18623  *)
18624    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18625    ;;
18626  esac
18627  dynamic_linker='Win32 ld.exe'
18628  # FIXME: first we should search . and the directory the executable is in
18629  shlibpath_var=PATH
18630  ;;
18631
18632darwin* | rhapsody*)
18633  dynamic_linker="$host_os dyld"
18634  version_type=darwin
18635  need_lib_prefix=no
18636  need_version=no
18637  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18638  soname_spec='${libname}${release}${major}$shared_ext'
18639  shlibpath_overrides_runpath=yes
18640  shlibpath_var=DYLD_LIBRARY_PATH
18641  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18642
18643  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18644  ;;
18645
18646dgux*)
18647  version_type=linux
18648  need_lib_prefix=no
18649  need_version=no
18650  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18651  soname_spec='${libname}${release}${shared_ext}$major'
18652  shlibpath_var=LD_LIBRARY_PATH
18653  ;;
18654
18655freebsd1*)
18656  dynamic_linker=no
18657  ;;
18658
18659freebsd* | dragonfly*)
18660  # DragonFly does not have aout.  When/if they implement a new
18661  # versioning mechanism, adjust this.
18662  if test -x /usr/bin/objformat; then
18663    objformat=`/usr/bin/objformat`
18664  else
18665    case $host_os in
18666    freebsd[123]*) objformat=aout ;;
18667    *) objformat=elf ;;
18668    esac
18669  fi
18670  version_type=freebsd-$objformat
18671  case $version_type in
18672    freebsd-elf*)
18673      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18674      need_version=no
18675      need_lib_prefix=no
18676      ;;
18677    freebsd-*)
18678      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18679      need_version=yes
18680      ;;
18681  esac
18682  shlibpath_var=LD_LIBRARY_PATH
18683  case $host_os in
18684  freebsd2*)
18685    shlibpath_overrides_runpath=yes
18686    ;;
18687  freebsd3.[01]* | freebsdelf3.[01]*)
18688    shlibpath_overrides_runpath=yes
18689    hardcode_into_libs=yes
18690    ;;
18691  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18692  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18693    shlibpath_overrides_runpath=no
18694    hardcode_into_libs=yes
18695    ;;
18696  *) # from 4.6 on, and DragonFly
18697    shlibpath_overrides_runpath=yes
18698    hardcode_into_libs=yes
18699    ;;
18700  esac
18701  ;;
18702
18703gnu*)
18704  version_type=linux
18705  need_lib_prefix=no
18706  need_version=no
18707  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18708  soname_spec='${libname}${release}${shared_ext}$major'
18709  shlibpath_var=LD_LIBRARY_PATH
18710  hardcode_into_libs=yes
18711  ;;
18712
18713hpux9* | hpux10* | hpux11*)
18714  # Give a soname corresponding to the major version so that dld.sl refuses to
18715  # link against other versions.
18716  version_type=sunos
18717  need_lib_prefix=no
18718  need_version=no
18719  case $host_cpu in
18720  ia64*)
18721    shrext_cmds='.so'
18722    hardcode_into_libs=yes
18723    dynamic_linker="$host_os dld.so"
18724    shlibpath_var=LD_LIBRARY_PATH
18725    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18726    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18727    soname_spec='${libname}${release}${shared_ext}$major'
18728    if test "X$HPUX_IA64_MODE" = X32; then
18729      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18730    else
18731      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18732    fi
18733    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18734    ;;
18735   hppa*64*)
18736     shrext_cmds='.sl'
18737     hardcode_into_libs=yes
18738     dynamic_linker="$host_os dld.sl"
18739     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18740     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18741     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18742     soname_spec='${libname}${release}${shared_ext}$major'
18743     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18744     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18745     ;;
18746   *)
18747    shrext_cmds='.sl'
18748    dynamic_linker="$host_os dld.sl"
18749    shlibpath_var=SHLIB_PATH
18750    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18751    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18752    soname_spec='${libname}${release}${shared_ext}$major'
18753    ;;
18754  esac
18755  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18756  postinstall_cmds='chmod 555 $lib'
18757  ;;
18758
18759interix[3-9]*)
18760  version_type=linux
18761  need_lib_prefix=no
18762  need_version=no
18763  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18764  soname_spec='${libname}${release}${shared_ext}$major'
18765  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18766  shlibpath_var=LD_LIBRARY_PATH
18767  shlibpath_overrides_runpath=no
18768  hardcode_into_libs=yes
18769  ;;
18770
18771irix5* | irix6* | nonstopux*)
18772  case $host_os in
18773    nonstopux*) version_type=nonstopux ;;
18774    *)
18775	if test "$lt_cv_prog_gnu_ld" = yes; then
18776		version_type=linux
18777	else
18778		version_type=irix
18779	fi ;;
18780  esac
18781  need_lib_prefix=no
18782  need_version=no
18783  soname_spec='${libname}${release}${shared_ext}$major'
18784  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18785  case $host_os in
18786  irix5* | nonstopux*)
18787    libsuff= shlibsuff=
18788    ;;
18789  *)
18790    case $LD in # libtool.m4 will add one of these switches to LD
18791    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18792      libsuff= shlibsuff= libmagic=32-bit;;
18793    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18794      libsuff=32 shlibsuff=N32 libmagic=N32;;
18795    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18796      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18797    *) libsuff= shlibsuff= libmagic=never-match;;
18798    esac
18799    ;;
18800  esac
18801  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18802  shlibpath_overrides_runpath=no
18803  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18804  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18805  hardcode_into_libs=yes
18806  ;;
18807
18808# No shared lib support for Linux oldld, aout, or coff.
18809linux*oldld* | linux*aout* | linux*coff*)
18810  dynamic_linker=no
18811  ;;
18812
18813# This must be Linux ELF.
18814linux* | k*bsd*-gnu)
18815  version_type=linux
18816  need_lib_prefix=no
18817  need_version=no
18818  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18819  soname_spec='${libname}${release}${shared_ext}$major'
18820  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18821  shlibpath_var=LD_LIBRARY_PATH
18822  shlibpath_overrides_runpath=no
18823  # This implies no fast_install, which is unacceptable.
18824  # Some rework will be needed to allow for fast_install
18825  # before this can be enabled.
18826  hardcode_into_libs=yes
18827
18828  # Append ld.so.conf contents to the search path
18829  if test -f /etc/ld.so.conf; then
18830    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18831    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18832  fi
18833
18834  # We used to test for /lib/ld.so.1 and disable shared libraries on
18835  # powerpc, because MkLinux only supported shared libraries with the
18836  # GNU dynamic linker.  Since this was broken with cross compilers,
18837  # most powerpc-linux boxes support dynamic linking these days and
18838  # people can always --disable-shared, the test was removed, and we
18839  # assume the GNU/Linux dynamic linker is in use.
18840  dynamic_linker='GNU/Linux ld.so'
18841  ;;
18842
18843netbsd*)
18844  version_type=sunos
18845  need_lib_prefix=no
18846  need_version=no
18847  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18848    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18849    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18850    dynamic_linker='NetBSD (a.out) ld.so'
18851  else
18852    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18853    soname_spec='${libname}${release}${shared_ext}$major'
18854    dynamic_linker='NetBSD ld.elf_so'
18855  fi
18856  shlibpath_var=LD_LIBRARY_PATH
18857  shlibpath_overrides_runpath=yes
18858  hardcode_into_libs=yes
18859  ;;
18860
18861newsos6)
18862  version_type=linux
18863  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18864  shlibpath_var=LD_LIBRARY_PATH
18865  shlibpath_overrides_runpath=yes
18866  ;;
18867
18868nto-qnx*)
18869  version_type=linux
18870  need_lib_prefix=no
18871  need_version=no
18872  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18873  soname_spec='${libname}${release}${shared_ext}$major'
18874  shlibpath_var=LD_LIBRARY_PATH
18875  shlibpath_overrides_runpath=yes
18876  ;;
18877
18878openbsd*)
18879  version_type=sunos
18880  sys_lib_dlsearch_path_spec="/usr/lib"
18881  need_lib_prefix=no
18882  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18883  case $host_os in
18884    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18885    *)                         need_version=no  ;;
18886  esac
18887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18888  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18889  shlibpath_var=LD_LIBRARY_PATH
18890  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18891    case $host_os in
18892      openbsd2.[89] | openbsd2.[89].*)
18893	shlibpath_overrides_runpath=no
18894	;;
18895      *)
18896	shlibpath_overrides_runpath=yes
18897	;;
18898      esac
18899  else
18900    shlibpath_overrides_runpath=yes
18901  fi
18902  ;;
18903
18904os2*)
18905  libname_spec='$name'
18906  shrext_cmds=".dll"
18907  need_lib_prefix=no
18908  library_names_spec='$libname${shared_ext} $libname.a'
18909  dynamic_linker='OS/2 ld.exe'
18910  shlibpath_var=LIBPATH
18911  ;;
18912
18913osf3* | osf4* | osf5*)
18914  version_type=osf
18915  need_lib_prefix=no
18916  need_version=no
18917  soname_spec='${libname}${release}${shared_ext}$major'
18918  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18919  shlibpath_var=LD_LIBRARY_PATH
18920  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18921  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18922  ;;
18923
18924rdos*)
18925  dynamic_linker=no
18926  ;;
18927
18928solaris*)
18929  version_type=linux
18930  need_lib_prefix=no
18931  need_version=no
18932  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18933  soname_spec='${libname}${release}${shared_ext}$major'
18934  shlibpath_var=LD_LIBRARY_PATH
18935  shlibpath_overrides_runpath=yes
18936  hardcode_into_libs=yes
18937  # ldd complains unless libraries are executable
18938  postinstall_cmds='chmod +x $lib'
18939  ;;
18940
18941sunos4*)
18942  version_type=sunos
18943  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18944  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18945  shlibpath_var=LD_LIBRARY_PATH
18946  shlibpath_overrides_runpath=yes
18947  if test "$with_gnu_ld" = yes; then
18948    need_lib_prefix=no
18949  fi
18950  need_version=yes
18951  ;;
18952
18953sysv4 | sysv4.3*)
18954  version_type=linux
18955  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18956  soname_spec='${libname}${release}${shared_ext}$major'
18957  shlibpath_var=LD_LIBRARY_PATH
18958  case $host_vendor in
18959    sni)
18960      shlibpath_overrides_runpath=no
18961      need_lib_prefix=no
18962      export_dynamic_flag_spec='${wl}-Blargedynsym'
18963      runpath_var=LD_RUN_PATH
18964      ;;
18965    siemens)
18966      need_lib_prefix=no
18967      ;;
18968    motorola)
18969      need_lib_prefix=no
18970      need_version=no
18971      shlibpath_overrides_runpath=no
18972      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18973      ;;
18974  esac
18975  ;;
18976
18977sysv4*MP*)
18978  if test -d /usr/nec ;then
18979    version_type=linux
18980    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18981    soname_spec='$libname${shared_ext}.$major'
18982    shlibpath_var=LD_LIBRARY_PATH
18983  fi
18984  ;;
18985
18986sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18987  version_type=freebsd-elf
18988  need_lib_prefix=no
18989  need_version=no
18990  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18991  soname_spec='${libname}${release}${shared_ext}$major'
18992  shlibpath_var=LD_LIBRARY_PATH
18993  hardcode_into_libs=yes
18994  if test "$with_gnu_ld" = yes; then
18995    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18996    shlibpath_overrides_runpath=no
18997  else
18998    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18999    shlibpath_overrides_runpath=yes
19000    case $host_os in
19001      sco3.2v5*)
19002        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19003	;;
19004    esac
19005  fi
19006  sys_lib_dlsearch_path_spec='/usr/lib'
19007  ;;
19008
19009uts4*)
19010  version_type=linux
19011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19012  soname_spec='${libname}${release}${shared_ext}$major'
19013  shlibpath_var=LD_LIBRARY_PATH
19014  ;;
19015
19016*)
19017  dynamic_linker=no
19018  ;;
19019esac
19020{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19021$as_echo "$dynamic_linker" >&6; }
19022test "$dynamic_linker" = no && can_build_shared=no
19023
19024if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19025  $as_echo_n "(cached) " >&6
19026else
19027  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19028fi
19029
19030sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19031if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19032  $as_echo_n "(cached) " >&6
19033else
19034  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19035fi
19036
19037sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19038
19039variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19040if test "$GCC" = yes; then
19041  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19042fi
19043
19044{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19045$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19046hardcode_action_GCJ=
19047if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19048   test -n "$runpath_var_GCJ" || \
19049   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19050
19051  # We can hardcode non-existant directories.
19052  if test "$hardcode_direct_GCJ" != no &&
19053     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19054     # have to relink, otherwise we might link with an installed library
19055     # when we should be linking with a yet-to-be-installed one
19056     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19057     test "$hardcode_minus_L_GCJ" != no; then
19058    # Linking always hardcodes the temporary library directory.
19059    hardcode_action_GCJ=relink
19060  else
19061    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19062    hardcode_action_GCJ=immediate
19063  fi
19064else
19065  # We cannot hardcode anything, or else we can only hardcode existing
19066  # directories.
19067  hardcode_action_GCJ=unsupported
19068fi
19069{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19070$as_echo "$hardcode_action_GCJ" >&6; }
19071
19072if test "$hardcode_action_GCJ" = relink; then
19073  # Fast installation is not supported
19074  enable_fast_install=no
19075elif test "$shlibpath_overrides_runpath" = yes ||
19076     test "$enable_shared" = no; then
19077  # Fast installation is not necessary
19078  enable_fast_install=needless
19079fi
19080
19081
19082# The else clause should only fire when bootstrapping the
19083# libtool distribution, otherwise you forgot to ship ltmain.sh
19084# with your package, and you will get complaints that there are
19085# no rules to generate ltmain.sh.
19086if test -f "$ltmain"; then
19087  # See if we are running on zsh, and set the options which allow our commands through
19088  # without removal of \ escapes.
19089  if test -n "${ZSH_VERSION+set}" ; then
19090    setopt NO_GLOB_SUBST
19091  fi
19092  # Now quote all the things that may contain metacharacters while being
19093  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19094  # variables and quote the copies for generation of the libtool script.
19095  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19096    SED SHELL STRIP \
19097    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19098    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19099    deplibs_check_method reload_flag reload_cmds need_locks \
19100    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19101    lt_cv_sys_global_symbol_to_c_name_address \
19102    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19103    old_postinstall_cmds old_postuninstall_cmds \
19104    compiler_GCJ \
19105    CC_GCJ \
19106    LD_GCJ \
19107    lt_prog_compiler_wl_GCJ \
19108    lt_prog_compiler_pic_GCJ \
19109    lt_prog_compiler_static_GCJ \
19110    lt_prog_compiler_no_builtin_flag_GCJ \
19111    export_dynamic_flag_spec_GCJ \
19112    thread_safe_flag_spec_GCJ \
19113    whole_archive_flag_spec_GCJ \
19114    enable_shared_with_static_runtimes_GCJ \
19115    old_archive_cmds_GCJ \
19116    old_archive_from_new_cmds_GCJ \
19117    predep_objects_GCJ \
19118    postdep_objects_GCJ \
19119    predeps_GCJ \
19120    postdeps_GCJ \
19121    compiler_lib_search_path_GCJ \
19122    compiler_lib_search_dirs_GCJ \
19123    archive_cmds_GCJ \
19124    archive_expsym_cmds_GCJ \
19125    postinstall_cmds_GCJ \
19126    postuninstall_cmds_GCJ \
19127    old_archive_from_expsyms_cmds_GCJ \
19128    allow_undefined_flag_GCJ \
19129    no_undefined_flag_GCJ \
19130    export_symbols_cmds_GCJ \
19131    hardcode_libdir_flag_spec_GCJ \
19132    hardcode_libdir_flag_spec_ld_GCJ \
19133    hardcode_libdir_separator_GCJ \
19134    hardcode_automatic_GCJ \
19135    module_cmds_GCJ \
19136    module_expsym_cmds_GCJ \
19137    lt_cv_prog_compiler_c_o_GCJ \
19138    fix_srcfile_path_GCJ \
19139    exclude_expsyms_GCJ \
19140    include_expsyms_GCJ; do
19141
19142    case $var in
19143    old_archive_cmds_GCJ | \
19144    old_archive_from_new_cmds_GCJ | \
19145    archive_cmds_GCJ | \
19146    archive_expsym_cmds_GCJ | \
19147    module_cmds_GCJ | \
19148    module_expsym_cmds_GCJ | \
19149    old_archive_from_expsyms_cmds_GCJ | \
19150    export_symbols_cmds_GCJ | \
19151    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19152    postinstall_cmds | postuninstall_cmds | \
19153    old_postinstall_cmds | old_postuninstall_cmds | \
19154    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19155      # Double-quote double-evaled strings.
19156      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19157      ;;
19158    *)
19159      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19160      ;;
19161    esac
19162  done
19163
19164  case $lt_echo in
19165  *'\$0 --fallback-echo"')
19166    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19167    ;;
19168  esac
19169
19170cfgfile="$ofile"
19171
19172  cat <<__EOF__ >> "$cfgfile"
19173# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19174
19175# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19176
19177# Shell to use when invoking shell scripts.
19178SHELL=$lt_SHELL
19179
19180# Whether or not to build shared libraries.
19181build_libtool_libs=$enable_shared
19182
19183# Whether or not to build static libraries.
19184build_old_libs=$enable_static
19185
19186# Whether or not to add -lc for building shared libraries.
19187build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19188
19189# Whether or not to disallow shared libs when runtime libs are static
19190allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19191
19192# Whether or not to optimize for fast installation.
19193fast_install=$enable_fast_install
19194
19195# The host system.
19196host_alias=$host_alias
19197host=$host
19198host_os=$host_os
19199
19200# The build system.
19201build_alias=$build_alias
19202build=$build
19203build_os=$build_os
19204
19205# An echo program that does not interpret backslashes.
19206echo=$lt_echo
19207
19208# The archiver.
19209AR=$lt_AR
19210AR_FLAGS=$lt_AR_FLAGS
19211
19212# A C compiler.
19213LTCC=$lt_LTCC
19214
19215# LTCC compiler flags.
19216LTCFLAGS=$lt_LTCFLAGS
19217
19218# A language-specific compiler.
19219CC=$lt_compiler_GCJ
19220
19221# Is the compiler the GNU C compiler?
19222with_gcc=$GCC_GCJ
19223
19224# An ERE matcher.
19225EGREP=$lt_EGREP
19226
19227# The linker used to build libraries.
19228LD=$lt_LD_GCJ
19229
19230# Whether we need hard or soft links.
19231LN_S=$lt_LN_S
19232
19233# A BSD-compatible nm program.
19234NM=$lt_NM
19235
19236# A symbol stripping program
19237STRIP=$lt_STRIP
19238
19239# Used to examine libraries when file_magic_cmd begins "file"
19240MAGIC_CMD=$MAGIC_CMD
19241
19242# Used on cygwin: DLL creation program.
19243DLLTOOL="$DLLTOOL"
19244
19245# Used on cygwin: object dumper.
19246OBJDUMP="$OBJDUMP"
19247
19248# Used on cygwin: assembler.
19249AS="$AS"
19250
19251# The name of the directory that contains temporary libtool files.
19252objdir=$objdir
19253
19254# How to create reloadable object files.
19255reload_flag=$lt_reload_flag
19256reload_cmds=$lt_reload_cmds
19257
19258# How to pass a linker flag through the compiler.
19259wl=$lt_lt_prog_compiler_wl_GCJ
19260
19261# Object file suffix (normally "o").
19262objext="$ac_objext"
19263
19264# Old archive suffix (normally "a").
19265libext="$libext"
19266
19267# Shared library suffix (normally ".so").
19268shrext_cmds='$shrext_cmds'
19269
19270# Executable file suffix (normally "").
19271exeext="$exeext"
19272
19273# Additional compiler flags for building library objects.
19274pic_flag=$lt_lt_prog_compiler_pic_GCJ
19275pic_mode=$pic_mode
19276
19277# What is the maximum length of a command?
19278max_cmd_len=$lt_cv_sys_max_cmd_len
19279
19280# Does compiler simultaneously support -c and -o options?
19281compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19282
19283# Must we lock files when doing compilation?
19284need_locks=$lt_need_locks
19285
19286# Do we need the lib prefix for modules?
19287need_lib_prefix=$need_lib_prefix
19288
19289# Do we need a version for libraries?
19290need_version=$need_version
19291
19292# Whether dlopen is supported.
19293dlopen_support=$enable_dlopen
19294
19295# Whether dlopen of programs is supported.
19296dlopen_self=$enable_dlopen_self
19297
19298# Whether dlopen of statically linked programs is supported.
19299dlopen_self_static=$enable_dlopen_self_static
19300
19301# Compiler flag to prevent dynamic linking.
19302link_static_flag=$lt_lt_prog_compiler_static_GCJ
19303
19304# Compiler flag to turn off builtin functions.
19305no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19306
19307# Compiler flag to allow reflexive dlopens.
19308export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19309
19310# Compiler flag to generate shared objects directly from archives.
19311whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19312
19313# Compiler flag to generate thread-safe objects.
19314thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19315
19316# Library versioning type.
19317version_type=$version_type
19318
19319# Format of library name prefix.
19320libname_spec=$lt_libname_spec
19321
19322# List of archive names.  First name is the real one, the rest are links.
19323# The last name is the one that the linker finds with -lNAME.
19324library_names_spec=$lt_library_names_spec
19325
19326# The coded name of the library, if different from the real name.
19327soname_spec=$lt_soname_spec
19328
19329# Commands used to build and install an old-style archive.
19330RANLIB=$lt_RANLIB
19331old_archive_cmds=$lt_old_archive_cmds_GCJ
19332old_postinstall_cmds=$lt_old_postinstall_cmds
19333old_postuninstall_cmds=$lt_old_postuninstall_cmds
19334
19335# Create an old-style archive from a shared archive.
19336old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19337
19338# Create a temporary old-style archive to link instead of a shared archive.
19339old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19340
19341# Commands used to build and install a shared archive.
19342archive_cmds=$lt_archive_cmds_GCJ
19343archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19344postinstall_cmds=$lt_postinstall_cmds
19345postuninstall_cmds=$lt_postuninstall_cmds
19346
19347# Commands used to build a loadable module (assumed same as above if empty)
19348module_cmds=$lt_module_cmds_GCJ
19349module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19350
19351# Commands to strip libraries.
19352old_striplib=$lt_old_striplib
19353striplib=$lt_striplib
19354
19355# Dependencies to place before the objects being linked to create a
19356# shared library.
19357predep_objects=$lt_predep_objects_GCJ
19358
19359# Dependencies to place after the objects being linked to create a
19360# shared library.
19361postdep_objects=$lt_postdep_objects_GCJ
19362
19363# Dependencies to place before the objects being linked to create a
19364# shared library.
19365predeps=$lt_predeps_GCJ
19366
19367# Dependencies to place after the objects being linked to create a
19368# shared library.
19369postdeps=$lt_postdeps_GCJ
19370
19371# The directories searched by this compiler when creating a shared
19372# library
19373compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19374
19375# The library search path used internally by the compiler when linking
19376# a shared library.
19377compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19378
19379# Method to check whether dependent libraries are shared objects.
19380deplibs_check_method=$lt_deplibs_check_method
19381
19382# Command to use when deplibs_check_method == file_magic.
19383file_magic_cmd=$lt_file_magic_cmd
19384
19385# Flag that allows shared libraries with undefined symbols to be built.
19386allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19387
19388# Flag that forces no undefined symbols.
19389no_undefined_flag=$lt_no_undefined_flag_GCJ
19390
19391# Commands used to finish a libtool library installation in a directory.
19392finish_cmds=$lt_finish_cmds
19393
19394# Same as above, but a single script fragment to be evaled but not shown.
19395finish_eval=$lt_finish_eval
19396
19397# Take the output of nm and produce a listing of raw symbols and C names.
19398global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19399
19400# Transform the output of nm in a proper C declaration
19401global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19402
19403# Transform the output of nm in a C name address pair
19404global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19405
19406# This is the shared library runtime path variable.
19407runpath_var=$runpath_var
19408
19409# This is the shared library path variable.
19410shlibpath_var=$shlibpath_var
19411
19412# Is shlibpath searched before the hard-coded library search path?
19413shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19414
19415# How to hardcode a shared library path into an executable.
19416hardcode_action=$hardcode_action_GCJ
19417
19418# Whether we should hardcode library paths into libraries.
19419hardcode_into_libs=$hardcode_into_libs
19420
19421# Flag to hardcode \$libdir into a binary during linking.
19422# This must work even if \$libdir does not exist.
19423hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19424
19425# If ld is used when linking, flag to hardcode \$libdir into
19426# a binary during linking. This must work even if \$libdir does
19427# not exist.
19428hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19429
19430# Whether we need a single -rpath flag with a separated argument.
19431hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19432
19433# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19434# resulting binary.
19435hardcode_direct=$hardcode_direct_GCJ
19436
19437# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19438# resulting binary.
19439hardcode_minus_L=$hardcode_minus_L_GCJ
19440
19441# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19442# the resulting binary.
19443hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19444
19445# Set to yes if building a shared library automatically hardcodes DIR into the library
19446# and all subsequent libraries and executables linked against it.
19447hardcode_automatic=$hardcode_automatic_GCJ
19448
19449# Variables whose values should be saved in libtool wrapper scripts and
19450# restored at relink time.
19451variables_saved_for_relink="$variables_saved_for_relink"
19452
19453# Whether libtool must link a program against all its dependency libraries.
19454link_all_deplibs=$link_all_deplibs_GCJ
19455
19456# Compile-time system search path for libraries
19457sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19458
19459# Run-time system search path for libraries
19460sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19461
19462# Fix the shell variable \$srcfile for the compiler.
19463fix_srcfile_path=$lt_fix_srcfile_path
19464
19465# Set to yes if exported symbols are required.
19466always_export_symbols=$always_export_symbols_GCJ
19467
19468# The commands to list exported symbols.
19469export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19470
19471# The commands to extract the exported symbol list from a shared archive.
19472extract_expsyms_cmds=$lt_extract_expsyms_cmds
19473
19474# Symbols that should not be listed in the preloaded symbols.
19475exclude_expsyms=$lt_exclude_expsyms_GCJ
19476
19477# Symbols that must always be exported.
19478include_expsyms=$lt_include_expsyms_GCJ
19479
19480# ### END LIBTOOL TAG CONFIG: $tagname
19481
19482__EOF__
19483
19484
19485else
19486  # If there is no Makefile yet, we rely on a make rule to execute
19487  # `config.status --recheck' to rerun these tests and create the
19488  # libtool script then.
19489  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19490  if test -f "$ltmain_in"; then
19491    test -f Makefile && make "$ltmain"
19492  fi
19493fi
19494
19495
19496ac_ext=c
19497ac_cpp='$CPP $CPPFLAGS'
19498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19500ac_compiler_gnu=$ac_cv_c_compiler_gnu
19501
19502CC="$lt_save_CC"
19503
19504	else
19505	  tagname=""
19506	fi
19507	;;
19508
19509      RC)
19510
19511
19512# Source file extension for RC test sources.
19513ac_ext=rc
19514
19515# Object file extension for compiled RC test sources.
19516objext=o
19517objext_RC=$objext
19518
19519# Code to be used in simple compile tests
19520lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19521
19522# Code to be used in simple link tests
19523lt_simple_link_test_code="$lt_simple_compile_test_code"
19524
19525# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19526
19527# If no C compiler was specified, use CC.
19528LTCC=${LTCC-"$CC"}
19529
19530# If no C compiler flags were specified, use CFLAGS.
19531LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19532
19533# Allow CC to be a program name with arguments.
19534compiler=$CC
19535
19536
19537# save warnings/boilerplate of simple test code
19538ac_outfile=conftest.$ac_objext
19539echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19540eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19541_lt_compiler_boilerplate=`cat conftest.err`
19542$rm conftest*
19543
19544ac_outfile=conftest.$ac_objext
19545echo "$lt_simple_link_test_code" >conftest.$ac_ext
19546eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19547_lt_linker_boilerplate=`cat conftest.err`
19548$rm -r conftest*
19549
19550
19551# Allow CC to be a program name with arguments.
19552lt_save_CC="$CC"
19553CC=${RC-"windres"}
19554compiler=$CC
19555compiler_RC=$CC
19556for cc_temp in $compiler""; do
19557  case $cc_temp in
19558    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19559    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19560    \-*) ;;
19561    *) break;;
19562  esac
19563done
19564cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19565
19566lt_cv_prog_compiler_c_o_RC=yes
19567
19568# The else clause should only fire when bootstrapping the
19569# libtool distribution, otherwise you forgot to ship ltmain.sh
19570# with your package, and you will get complaints that there are
19571# no rules to generate ltmain.sh.
19572if test -f "$ltmain"; then
19573  # See if we are running on zsh, and set the options which allow our commands through
19574  # without removal of \ escapes.
19575  if test -n "${ZSH_VERSION+set}" ; then
19576    setopt NO_GLOB_SUBST
19577  fi
19578  # Now quote all the things that may contain metacharacters while being
19579  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19580  # variables and quote the copies for generation of the libtool script.
19581  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19582    SED SHELL STRIP \
19583    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19584    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19585    deplibs_check_method reload_flag reload_cmds need_locks \
19586    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19587    lt_cv_sys_global_symbol_to_c_name_address \
19588    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19589    old_postinstall_cmds old_postuninstall_cmds \
19590    compiler_RC \
19591    CC_RC \
19592    LD_RC \
19593    lt_prog_compiler_wl_RC \
19594    lt_prog_compiler_pic_RC \
19595    lt_prog_compiler_static_RC \
19596    lt_prog_compiler_no_builtin_flag_RC \
19597    export_dynamic_flag_spec_RC \
19598    thread_safe_flag_spec_RC \
19599    whole_archive_flag_spec_RC \
19600    enable_shared_with_static_runtimes_RC \
19601    old_archive_cmds_RC \
19602    old_archive_from_new_cmds_RC \
19603    predep_objects_RC \
19604    postdep_objects_RC \
19605    predeps_RC \
19606    postdeps_RC \
19607    compiler_lib_search_path_RC \
19608    compiler_lib_search_dirs_RC \
19609    archive_cmds_RC \
19610    archive_expsym_cmds_RC \
19611    postinstall_cmds_RC \
19612    postuninstall_cmds_RC \
19613    old_archive_from_expsyms_cmds_RC \
19614    allow_undefined_flag_RC \
19615    no_undefined_flag_RC \
19616    export_symbols_cmds_RC \
19617    hardcode_libdir_flag_spec_RC \
19618    hardcode_libdir_flag_spec_ld_RC \
19619    hardcode_libdir_separator_RC \
19620    hardcode_automatic_RC \
19621    module_cmds_RC \
19622    module_expsym_cmds_RC \
19623    lt_cv_prog_compiler_c_o_RC \
19624    fix_srcfile_path_RC \
19625    exclude_expsyms_RC \
19626    include_expsyms_RC; do
19627
19628    case $var in
19629    old_archive_cmds_RC | \
19630    old_archive_from_new_cmds_RC | \
19631    archive_cmds_RC | \
19632    archive_expsym_cmds_RC | \
19633    module_cmds_RC | \
19634    module_expsym_cmds_RC | \
19635    old_archive_from_expsyms_cmds_RC | \
19636    export_symbols_cmds_RC | \
19637    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19638    postinstall_cmds | postuninstall_cmds | \
19639    old_postinstall_cmds | old_postuninstall_cmds | \
19640    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19641      # Double-quote double-evaled strings.
19642      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19643      ;;
19644    *)
19645      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19646      ;;
19647    esac
19648  done
19649
19650  case $lt_echo in
19651  *'\$0 --fallback-echo"')
19652    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19653    ;;
19654  esac
19655
19656cfgfile="$ofile"
19657
19658  cat <<__EOF__ >> "$cfgfile"
19659# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19660
19661# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19662
19663# Shell to use when invoking shell scripts.
19664SHELL=$lt_SHELL
19665
19666# Whether or not to build shared libraries.
19667build_libtool_libs=$enable_shared
19668
19669# Whether or not to build static libraries.
19670build_old_libs=$enable_static
19671
19672# Whether or not to add -lc for building shared libraries.
19673build_libtool_need_lc=$archive_cmds_need_lc_RC
19674
19675# Whether or not to disallow shared libs when runtime libs are static
19676allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19677
19678# Whether or not to optimize for fast installation.
19679fast_install=$enable_fast_install
19680
19681# The host system.
19682host_alias=$host_alias
19683host=$host
19684host_os=$host_os
19685
19686# The build system.
19687build_alias=$build_alias
19688build=$build
19689build_os=$build_os
19690
19691# An echo program that does not interpret backslashes.
19692echo=$lt_echo
19693
19694# The archiver.
19695AR=$lt_AR
19696AR_FLAGS=$lt_AR_FLAGS
19697
19698# A C compiler.
19699LTCC=$lt_LTCC
19700
19701# LTCC compiler flags.
19702LTCFLAGS=$lt_LTCFLAGS
19703
19704# A language-specific compiler.
19705CC=$lt_compiler_RC
19706
19707# Is the compiler the GNU C compiler?
19708with_gcc=$GCC_RC
19709
19710# An ERE matcher.
19711EGREP=$lt_EGREP
19712
19713# The linker used to build libraries.
19714LD=$lt_LD_RC
19715
19716# Whether we need hard or soft links.
19717LN_S=$lt_LN_S
19718
19719# A BSD-compatible nm program.
19720NM=$lt_NM
19721
19722# A symbol stripping program
19723STRIP=$lt_STRIP
19724
19725# Used to examine libraries when file_magic_cmd begins "file"
19726MAGIC_CMD=$MAGIC_CMD
19727
19728# Used on cygwin: DLL creation program.
19729DLLTOOL="$DLLTOOL"
19730
19731# Used on cygwin: object dumper.
19732OBJDUMP="$OBJDUMP"
19733
19734# Used on cygwin: assembler.
19735AS="$AS"
19736
19737# The name of the directory that contains temporary libtool files.
19738objdir=$objdir
19739
19740# How to create reloadable object files.
19741reload_flag=$lt_reload_flag
19742reload_cmds=$lt_reload_cmds
19743
19744# How to pass a linker flag through the compiler.
19745wl=$lt_lt_prog_compiler_wl_RC
19746
19747# Object file suffix (normally "o").
19748objext="$ac_objext"
19749
19750# Old archive suffix (normally "a").
19751libext="$libext"
19752
19753# Shared library suffix (normally ".so").
19754shrext_cmds='$shrext_cmds'
19755
19756# Executable file suffix (normally "").
19757exeext="$exeext"
19758
19759# Additional compiler flags for building library objects.
19760pic_flag=$lt_lt_prog_compiler_pic_RC
19761pic_mode=$pic_mode
19762
19763# What is the maximum length of a command?
19764max_cmd_len=$lt_cv_sys_max_cmd_len
19765
19766# Does compiler simultaneously support -c and -o options?
19767compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19768
19769# Must we lock files when doing compilation?
19770need_locks=$lt_need_locks
19771
19772# Do we need the lib prefix for modules?
19773need_lib_prefix=$need_lib_prefix
19774
19775# Do we need a version for libraries?
19776need_version=$need_version
19777
19778# Whether dlopen is supported.
19779dlopen_support=$enable_dlopen
19780
19781# Whether dlopen of programs is supported.
19782dlopen_self=$enable_dlopen_self
19783
19784# Whether dlopen of statically linked programs is supported.
19785dlopen_self_static=$enable_dlopen_self_static
19786
19787# Compiler flag to prevent dynamic linking.
19788link_static_flag=$lt_lt_prog_compiler_static_RC
19789
19790# Compiler flag to turn off builtin functions.
19791no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19792
19793# Compiler flag to allow reflexive dlopens.
19794export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19795
19796# Compiler flag to generate shared objects directly from archives.
19797whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19798
19799# Compiler flag to generate thread-safe objects.
19800thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19801
19802# Library versioning type.
19803version_type=$version_type
19804
19805# Format of library name prefix.
19806libname_spec=$lt_libname_spec
19807
19808# List of archive names.  First name is the real one, the rest are links.
19809# The last name is the one that the linker finds with -lNAME.
19810library_names_spec=$lt_library_names_spec
19811
19812# The coded name of the library, if different from the real name.
19813soname_spec=$lt_soname_spec
19814
19815# Commands used to build and install an old-style archive.
19816RANLIB=$lt_RANLIB
19817old_archive_cmds=$lt_old_archive_cmds_RC
19818old_postinstall_cmds=$lt_old_postinstall_cmds
19819old_postuninstall_cmds=$lt_old_postuninstall_cmds
19820
19821# Create an old-style archive from a shared archive.
19822old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19823
19824# Create a temporary old-style archive to link instead of a shared archive.
19825old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19826
19827# Commands used to build and install a shared archive.
19828archive_cmds=$lt_archive_cmds_RC
19829archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19830postinstall_cmds=$lt_postinstall_cmds
19831postuninstall_cmds=$lt_postuninstall_cmds
19832
19833# Commands used to build a loadable module (assumed same as above if empty)
19834module_cmds=$lt_module_cmds_RC
19835module_expsym_cmds=$lt_module_expsym_cmds_RC
19836
19837# Commands to strip libraries.
19838old_striplib=$lt_old_striplib
19839striplib=$lt_striplib
19840
19841# Dependencies to place before the objects being linked to create a
19842# shared library.
19843predep_objects=$lt_predep_objects_RC
19844
19845# Dependencies to place after the objects being linked to create a
19846# shared library.
19847postdep_objects=$lt_postdep_objects_RC
19848
19849# Dependencies to place before the objects being linked to create a
19850# shared library.
19851predeps=$lt_predeps_RC
19852
19853# Dependencies to place after the objects being linked to create a
19854# shared library.
19855postdeps=$lt_postdeps_RC
19856
19857# The directories searched by this compiler when creating a shared
19858# library
19859compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19860
19861# The library search path used internally by the compiler when linking
19862# a shared library.
19863compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19864
19865# Method to check whether dependent libraries are shared objects.
19866deplibs_check_method=$lt_deplibs_check_method
19867
19868# Command to use when deplibs_check_method == file_magic.
19869file_magic_cmd=$lt_file_magic_cmd
19870
19871# Flag that allows shared libraries with undefined symbols to be built.
19872allow_undefined_flag=$lt_allow_undefined_flag_RC
19873
19874# Flag that forces no undefined symbols.
19875no_undefined_flag=$lt_no_undefined_flag_RC
19876
19877# Commands used to finish a libtool library installation in a directory.
19878finish_cmds=$lt_finish_cmds
19879
19880# Same as above, but a single script fragment to be evaled but not shown.
19881finish_eval=$lt_finish_eval
19882
19883# Take the output of nm and produce a listing of raw symbols and C names.
19884global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19885
19886# Transform the output of nm in a proper C declaration
19887global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19888
19889# Transform the output of nm in a C name address pair
19890global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19891
19892# This is the shared library runtime path variable.
19893runpath_var=$runpath_var
19894
19895# This is the shared library path variable.
19896shlibpath_var=$shlibpath_var
19897
19898# Is shlibpath searched before the hard-coded library search path?
19899shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19900
19901# How to hardcode a shared library path into an executable.
19902hardcode_action=$hardcode_action_RC
19903
19904# Whether we should hardcode library paths into libraries.
19905hardcode_into_libs=$hardcode_into_libs
19906
19907# Flag to hardcode \$libdir into a binary during linking.
19908# This must work even if \$libdir does not exist.
19909hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19910
19911# If ld is used when linking, flag to hardcode \$libdir into
19912# a binary during linking. This must work even if \$libdir does
19913# not exist.
19914hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19915
19916# Whether we need a single -rpath flag with a separated argument.
19917hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19918
19919# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19920# resulting binary.
19921hardcode_direct=$hardcode_direct_RC
19922
19923# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19924# resulting binary.
19925hardcode_minus_L=$hardcode_minus_L_RC
19926
19927# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19928# the resulting binary.
19929hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19930
19931# Set to yes if building a shared library automatically hardcodes DIR into the library
19932# and all subsequent libraries and executables linked against it.
19933hardcode_automatic=$hardcode_automatic_RC
19934
19935# Variables whose values should be saved in libtool wrapper scripts and
19936# restored at relink time.
19937variables_saved_for_relink="$variables_saved_for_relink"
19938
19939# Whether libtool must link a program against all its dependency libraries.
19940link_all_deplibs=$link_all_deplibs_RC
19941
19942# Compile-time system search path for libraries
19943sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19944
19945# Run-time system search path for libraries
19946sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19947
19948# Fix the shell variable \$srcfile for the compiler.
19949fix_srcfile_path=$lt_fix_srcfile_path
19950
19951# Set to yes if exported symbols are required.
19952always_export_symbols=$always_export_symbols_RC
19953
19954# The commands to list exported symbols.
19955export_symbols_cmds=$lt_export_symbols_cmds_RC
19956
19957# The commands to extract the exported symbol list from a shared archive.
19958extract_expsyms_cmds=$lt_extract_expsyms_cmds
19959
19960# Symbols that should not be listed in the preloaded symbols.
19961exclude_expsyms=$lt_exclude_expsyms_RC
19962
19963# Symbols that must always be exported.
19964include_expsyms=$lt_include_expsyms_RC
19965
19966# ### END LIBTOOL TAG CONFIG: $tagname
19967
19968__EOF__
19969
19970
19971else
19972  # If there is no Makefile yet, we rely on a make rule to execute
19973  # `config.status --recheck' to rerun these tests and create the
19974  # libtool script then.
19975  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19976  if test -f "$ltmain_in"; then
19977    test -f Makefile && make "$ltmain"
19978  fi
19979fi
19980
19981
19982ac_ext=c
19983ac_cpp='$CPP $CPPFLAGS'
19984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19986ac_compiler_gnu=$ac_cv_c_compiler_gnu
19987
19988CC="$lt_save_CC"
19989
19990	;;
19991
19992      *)
19993	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19994$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19995   { (exit 1); exit 1; }; }
19996	;;
19997      esac
19998
19999      # Append the new tag name to the list of available tags.
20000      if test -n "$tagname" ; then
20001      available_tags="$available_tags $tagname"
20002    fi
20003    fi
20004  done
20005  IFS="$lt_save_ifs"
20006
20007  # Now substitute the updated list of available tags.
20008  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20009    mv "${ofile}T" "$ofile"
20010    chmod +x "$ofile"
20011  else
20012    rm -f "${ofile}T"
20013    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20014$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20015   { (exit 1); exit 1; }; }
20016  fi
20017fi
20018
20019
20020
20021# This can be used to rebuild libtool when needed
20022LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20023
20024# Always use our own libtool.
20025LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20026
20027# Prevent multiple expansion
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
20049$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
20050if test "${ac_cv_prog_cc_c99+set}" = set; then
20051  $as_echo_n "(cached) " >&6
20052else
20053  ac_cv_prog_cc_c99=no
20054ac_save_CC=$CC
20055cat >conftest.$ac_ext <<_ACEOF
20056/* confdefs.h.  */
20057_ACEOF
20058cat confdefs.h >>conftest.$ac_ext
20059cat >>conftest.$ac_ext <<_ACEOF
20060/* end confdefs.h.  */
20061#include <stdarg.h>
20062#include <stdbool.h>
20063#include <stdlib.h>
20064#include <wchar.h>
20065#include <stdio.h>
20066
20067// Check varargs macros.  These examples are taken from C99 6.10.3.5.
20068#define debug(...) fprintf (stderr, __VA_ARGS__)
20069#define showlist(...) puts (#__VA_ARGS__)
20070#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
20071static void
20072test_varargs_macros (void)
20073{
20074  int x = 1234;
20075  int y = 5678;
20076  debug ("Flag");
20077  debug ("X = %d\n", x);
20078  showlist (The first, second, and third items.);
20079  report (x>y, "x is %d but y is %d", x, y);
20080}
20081
20082// Check long long types.
20083#define BIG64 18446744073709551615ull
20084#define BIG32 4294967295ul
20085#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
20086#if !BIG_OK
20087  your preprocessor is broken;
20088#endif
20089#if BIG_OK
20090#else
20091  your preprocessor is broken;
20092#endif
20093static long long int bignum = -9223372036854775807LL;
20094static unsigned long long int ubignum = BIG64;
20095
20096struct incomplete_array
20097{
20098  int datasize;
20099  double data[];
20100};
20101
20102struct named_init {
20103  int number;
20104  const wchar_t *name;
20105  double average;
20106};
20107
20108typedef const char *ccp;
20109
20110static inline int
20111test_restrict (ccp restrict text)
20112{
20113  // See if C++-style comments work.
20114  // Iterate through items via the restricted pointer.
20115  // Also check for declarations in for loops.
20116  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
20117    continue;
20118  return 0;
20119}
20120
20121// Check varargs and va_copy.
20122static void
20123test_varargs (const char *format, ...)
20124{
20125  va_list args;
20126  va_start (args, format);
20127  va_list args_copy;
20128  va_copy (args_copy, args);
20129
20130  const char *str;
20131  int number;
20132  float fnumber;
20133
20134  while (*format)
20135    {
20136      switch (*format++)
20137	{
20138	case 's': // string
20139	  str = va_arg (args_copy, const char *);
20140	  break;
20141	case 'd': // int
20142	  number = va_arg (args_copy, int);
20143	  break;
20144	case 'f': // float
20145	  fnumber = va_arg (args_copy, double);
20146	  break;
20147	default:
20148	  break;
20149	}
20150    }
20151  va_end (args_copy);
20152  va_end (args);
20153}
20154
20155int
20156main ()
20157{
20158
20159  // Check bool.
20160  _Bool success = false;
20161
20162  // Check restrict.
20163  if (test_restrict ("String literal") == 0)
20164    success = true;
20165  char *restrict newvar = "Another string";
20166
20167  // Check varargs.
20168  test_varargs ("s, d' f .", "string", 65, 34.234);
20169  test_varargs_macros ();
20170
20171  // Check flexible array members.
20172  struct incomplete_array *ia =
20173    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
20174  ia->datasize = 10;
20175  for (int i = 0; i < ia->datasize; ++i)
20176    ia->data[i] = i * 1.234;
20177
20178  // Check named initializers.
20179  struct named_init ni = {
20180    .number = 34,
20181    .name = L"Test wide string",
20182    .average = 543.34343,
20183  };
20184
20185  ni.number = 58;
20186
20187  int dynamic_array[ni.number];
20188  dynamic_array[ni.number - 1] = 543;
20189
20190  // work around unused variable warnings
20191  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
20192	  || dynamic_array[ni.number - 1] != 543);
20193
20194  ;
20195  return 0;
20196}
20197_ACEOF
20198for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
20199do
20200  CC="$ac_save_CC $ac_arg"
20201  rm -f conftest.$ac_objext
20202if { (ac_try="$ac_compile"
20203case "(($ac_try" in
20204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20205  *) ac_try_echo=$ac_try;;
20206esac
20207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20208$as_echo "$ac_try_echo") >&5
20209  (eval "$ac_compile") 2>conftest.er1
20210  ac_status=$?
20211  grep -v '^ *+' conftest.er1 >conftest.err
20212  rm -f conftest.er1
20213  cat conftest.err >&5
20214  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215  (exit $ac_status); } && {
20216	 test -z "$ac_c_werror_flag" ||
20217	 test ! -s conftest.err
20218       } && test -s conftest.$ac_objext; then
20219  ac_cv_prog_cc_c99=$ac_arg
20220else
20221  $as_echo "$as_me: failed program was:" >&5
20222sed 's/^/| /' conftest.$ac_ext >&5
20223
20224
20225fi
20226
20227rm -f core conftest.err conftest.$ac_objext
20228  test "x$ac_cv_prog_cc_c99" != "xno" && break
20229done
20230rm -f conftest.$ac_ext
20231CC=$ac_save_CC
20232
20233fi
20234# AC_CACHE_VAL
20235case "x$ac_cv_prog_cc_c99" in
20236  x)
20237    { $as_echo "$as_me:$LINENO: result: none needed" >&5
20238$as_echo "none needed" >&6; } ;;
20239  xno)
20240    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20241$as_echo "unsupported" >&6; } ;;
20242  *)
20243    CC="$CC $ac_cv_prog_cc_c99"
20244    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
20245$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
20246esac
20247
20248
20249
20250
20251
20252
20253if  test "x$GCC" = xyes ; then
20254    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
20255-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
20256-Wbad-function-cast"
20257    case `$CC -dumpversion` in
20258    3.4.* | 4.*)
20259	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
20260	;;
20261    esac
20262else
20263    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
20264$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
20265if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
20266  $as_echo_n "(cached) " >&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$ac_includes_default
20275int
20276main ()
20277{
20278#ifndef __SUNPRO_C
20279  (void) __SUNPRO_C;
20280#endif
20281
20282  ;
20283  return 0;
20284}
20285_ACEOF
20286rm -f conftest.$ac_objext
20287if { (ac_try="$ac_compile"
20288case "(($ac_try" in
20289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290  *) ac_try_echo=$ac_try;;
20291esac
20292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20293$as_echo "$ac_try_echo") >&5
20294  (eval "$ac_compile") 2>conftest.er1
20295  ac_status=$?
20296  grep -v '^ *+' conftest.er1 >conftest.err
20297  rm -f conftest.er1
20298  cat conftest.err >&5
20299  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300  (exit $ac_status); } && {
20301	 test -z "$ac_c_werror_flag" ||
20302	 test ! -s conftest.err
20303       } && test -s conftest.$ac_objext; then
20304  ac_cv_have_decl___SUNPRO_C=yes
20305else
20306  $as_echo "$as_me: failed program was:" >&5
20307sed 's/^/| /' conftest.$ac_ext >&5
20308
20309	ac_cv_have_decl___SUNPRO_C=no
20310fi
20311
20312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20313fi
20314{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
20315$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
20316if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
20317  SUNCC="yes"
20318else
20319  SUNCC="no"
20320fi
20321
20322    if test "x$SUNCC" = "xyes"; then
20323	CWARNFLAGS="-v"
20324    fi
20325fi
20326
20327# Check whether --enable-silent-rules was given.
20328if test "${enable_silent_rules+set}" = set; then
20329  enableval=$enable_silent_rules;
20330fi
20331
20332case $enable_silent_rules in
20333yes) AM_DEFAULT_VERBOSITY=0;;
20334no)  AM_DEFAULT_VERBOSITY=1;;
20335*)   AM_DEFAULT_VERBOSITY=0;;
20336esac
20337AM_BACKSLASH='\'
20338
20339
20340
20341
20342
20343
20344
20345# Check whether --enable-strict-compilation was given.
20346if test "${enable_strict_compilation+set}" = set; then
20347  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
20348else
20349  STRICT_COMPILE=no
20350fi
20351
20352if test "x$STRICT_COMPILE" = "xyes"; then
20353	{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
20354$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
20355if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
20356  $as_echo_n "(cached) " >&6
20357else
20358  cat >conftest.$ac_ext <<_ACEOF
20359/* confdefs.h.  */
20360_ACEOF
20361cat confdefs.h >>conftest.$ac_ext
20362cat >>conftest.$ac_ext <<_ACEOF
20363/* end confdefs.h.  */
20364$ac_includes_default
20365int
20366main ()
20367{
20368#ifndef __SUNPRO_C
20369  (void) __SUNPRO_C;
20370#endif
20371
20372  ;
20373  return 0;
20374}
20375_ACEOF
20376rm -f conftest.$ac_objext
20377if { (ac_try="$ac_compile"
20378case "(($ac_try" in
20379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20380  *) ac_try_echo=$ac_try;;
20381esac
20382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20383$as_echo "$ac_try_echo") >&5
20384  (eval "$ac_compile") 2>conftest.er1
20385  ac_status=$?
20386  grep -v '^ *+' conftest.er1 >conftest.err
20387  rm -f conftest.er1
20388  cat conftest.err >&5
20389  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390  (exit $ac_status); } && {
20391	 test -z "$ac_c_werror_flag" ||
20392	 test ! -s conftest.err
20393       } && test -s conftest.$ac_objext; then
20394  ac_cv_have_decl___SUNPRO_C=yes
20395else
20396  $as_echo "$as_me: failed program was:" >&5
20397sed 's/^/| /' conftest.$ac_ext >&5
20398
20399	ac_cv_have_decl___SUNPRO_C=no
20400fi
20401
20402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20403fi
20404{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
20405$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
20406if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
20407  SUNCC="yes"
20408else
20409  SUNCC="no"
20410fi
20411
20412	{ $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
20413$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
20414if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
20415  $as_echo_n "(cached) " >&6
20416else
20417  cat >conftest.$ac_ext <<_ACEOF
20418/* confdefs.h.  */
20419_ACEOF
20420cat confdefs.h >>conftest.$ac_ext
20421cat >>conftest.$ac_ext <<_ACEOF
20422/* end confdefs.h.  */
20423$ac_includes_default
20424int
20425main ()
20426{
20427#ifndef __INTEL_COMPILER
20428  (void) __INTEL_COMPILER;
20429#endif
20430
20431  ;
20432  return 0;
20433}
20434_ACEOF
20435rm -f conftest.$ac_objext
20436if { (ac_try="$ac_compile"
20437case "(($ac_try" in
20438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20439  *) ac_try_echo=$ac_try;;
20440esac
20441eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20442$as_echo "$ac_try_echo") >&5
20443  (eval "$ac_compile") 2>conftest.er1
20444  ac_status=$?
20445  grep -v '^ *+' conftest.er1 >conftest.err
20446  rm -f conftest.er1
20447  cat conftest.err >&5
20448  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449  (exit $ac_status); } && {
20450	 test -z "$ac_c_werror_flag" ||
20451	 test ! -s conftest.err
20452       } && test -s conftest.$ac_objext; then
20453  ac_cv_have_decl___INTEL_COMPILER=yes
20454else
20455  $as_echo "$as_me: failed program was:" >&5
20456sed 's/^/| /' conftest.$ac_ext >&5
20457
20458	ac_cv_have_decl___INTEL_COMPILER=no
20459fi
20460
20461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20462fi
20463{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
20464$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
20465if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
20466  INTELCC="yes"
20467else
20468  INTELCC="no"
20469fi
20470
20471	if test "x$GCC" = xyes ; then
20472		STRICT_CFLAGS="-pedantic -Werror"
20473	elif test "x$SUNCC" = "xyes"; then
20474		STRICT_CFLAGS="-errwarn"
20475    elif test "x$INTELCC" = "xyes"; then
20476		STRICT_CFLAGS="-Werror"
20477	fi
20478fi
20479CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
20480
20481
20482
20483
20484# Check whether --with-release-version was given.
20485if test "${with_release_version+set}" = set; then
20486  withval=$with_release_version; RELEASE_VERSION="$withval"
20487else
20488  RELEASE_VERSION=""
20489fi
20490
20491	if test "x$RELEASE_VERSION" != "x"; then
20492		PACKAGE="$PACKAGE-$RELEASE_VERSION"
20493		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
20494		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
20495$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
20496	fi
20497
20498cat >>confdefs.h <<_ACEOF
20499#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20500_ACEOF
20501
20502	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20503	if test "x$PVM" = "x"; then
20504		PVM="0"
20505	fi
20506
20507cat >>confdefs.h <<_ACEOF
20508#define PACKAGE_VERSION_MINOR $PVM
20509_ACEOF
20510
20511	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20512	if test "x$PVP" = "x"; then
20513		PVP="0"
20514	fi
20515
20516cat >>confdefs.h <<_ACEOF
20517#define PACKAGE_VERSION_PATCHLEVEL $PVP
20518_ACEOF
20519
20520
20521
20522CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
20523mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
20524echo 'git directory not found: installing possibly empty changelog.' >&2)"
20525
20526distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
20527
20528
20529
20530
20531
20532if test x$APP_MAN_SUFFIX = x    ; then
20533    APP_MAN_SUFFIX=1
20534fi
20535if test x$APP_MAN_DIR = x    ; then
20536    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20537fi
20538
20539if test x$LIB_MAN_SUFFIX = x    ; then
20540    LIB_MAN_SUFFIX=3
20541fi
20542if test x$LIB_MAN_DIR = x    ; then
20543    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20544fi
20545
20546if test x$FILE_MAN_SUFFIX = x    ; then
20547    case $host_os in
20548	solaris*)	FILE_MAN_SUFFIX=4  ;;
20549	*)		FILE_MAN_SUFFIX=5  ;;
20550    esac
20551fi
20552if test x$FILE_MAN_DIR = x    ; then
20553    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20554fi
20555
20556if test x$MISC_MAN_SUFFIX = x    ; then
20557    case $host_os in
20558	solaris*)	MISC_MAN_SUFFIX=5  ;;
20559	*)		MISC_MAN_SUFFIX=7  ;;
20560    esac
20561fi
20562if test x$MISC_MAN_DIR = x    ; then
20563    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20564fi
20565
20566if test x$DRIVER_MAN_SUFFIX = x    ; then
20567    case $host_os in
20568	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
20569	*)		DRIVER_MAN_SUFFIX=4  ;;
20570    esac
20571fi
20572if test x$DRIVER_MAN_DIR = x    ; then
20573    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20574fi
20575
20576if test x$ADMIN_MAN_SUFFIX = x    ; then
20577    case $host_os in
20578	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
20579	*)		ADMIN_MAN_SUFFIX=8  ;;
20580    esac
20581fi
20582if test x$ADMIN_MAN_DIR = x    ; then
20583    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20584fi
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602# Check for dependencies
20603
20604
20605if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20606	if test -n "$ac_tool_prefix"; then
20607  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20608set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20609{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20610$as_echo_n "checking for $ac_word... " >&6; }
20611if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20612  $as_echo_n "(cached) " >&6
20613else
20614  case $PKG_CONFIG in
20615  [\\/]* | ?:[\\/]*)
20616  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20617  ;;
20618  *)
20619  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20620for as_dir in $PATH
20621do
20622  IFS=$as_save_IFS
20623  test -z "$as_dir" && as_dir=.
20624  for ac_exec_ext in '' $ac_executable_extensions; do
20625  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20626    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20627    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20628    break 2
20629  fi
20630done
20631done
20632IFS=$as_save_IFS
20633
20634  ;;
20635esac
20636fi
20637PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20638if test -n "$PKG_CONFIG"; then
20639  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20640$as_echo "$PKG_CONFIG" >&6; }
20641else
20642  { $as_echo "$as_me:$LINENO: result: no" >&5
20643$as_echo "no" >&6; }
20644fi
20645
20646
20647fi
20648if test -z "$ac_cv_path_PKG_CONFIG"; then
20649  ac_pt_PKG_CONFIG=$PKG_CONFIG
20650  # Extract the first word of "pkg-config", so it can be a program name with args.
20651set dummy pkg-config; ac_word=$2
20652{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20653$as_echo_n "checking for $ac_word... " >&6; }
20654if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20655  $as_echo_n "(cached) " >&6
20656else
20657  case $ac_pt_PKG_CONFIG in
20658  [\\/]* | ?:[\\/]*)
20659  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20660  ;;
20661  *)
20662  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20663for as_dir in $PATH
20664do
20665  IFS=$as_save_IFS
20666  test -z "$as_dir" && as_dir=.
20667  for ac_exec_ext in '' $ac_executable_extensions; do
20668  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20669    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20670    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20671    break 2
20672  fi
20673done
20674done
20675IFS=$as_save_IFS
20676
20677  ;;
20678esac
20679fi
20680ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20681if test -n "$ac_pt_PKG_CONFIG"; then
20682  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20683$as_echo "$ac_pt_PKG_CONFIG" >&6; }
20684else
20685  { $as_echo "$as_me:$LINENO: result: no" >&5
20686$as_echo "no" >&6; }
20687fi
20688
20689  if test "x$ac_pt_PKG_CONFIG" = x; then
20690    PKG_CONFIG=""
20691  else
20692    case $cross_compiling:$ac_tool_warned in
20693yes:)
20694{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20696ac_tool_warned=yes ;;
20697esac
20698    PKG_CONFIG=$ac_pt_PKG_CONFIG
20699  fi
20700else
20701  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20702fi
20703
20704fi
20705if test -n "$PKG_CONFIG"; then
20706	_pkg_min_version=0.9.0
20707	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20708$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20709	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20710		{ $as_echo "$as_me:$LINENO: result: yes" >&5
20711$as_echo "yes" >&6; }
20712	else
20713		{ $as_echo "$as_me:$LINENO: result: no" >&5
20714$as_echo "no" >&6; }
20715		PKG_CONFIG=""
20716	fi
20717
20718fi
20719
20720pkg_failed=no
20721{ $as_echo "$as_me:$LINENO: checking for XVMC" >&5
20722$as_echo_n "checking for XVMC... " >&6; }
20723
20724if test -n "$XVMC_CFLAGS"; then
20725    pkg_cv_XVMC_CFLAGS="$XVMC_CFLAGS"
20726 elif test -n "$PKG_CONFIG"; then
20727    if test -n "$PKG_CONFIG" && \
20728    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xv xextproto videoproto\"") >&5
20729  ($PKG_CONFIG --exists --print-errors "x11 xext xv xextproto videoproto") 2>&5
20730  ac_status=$?
20731  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732  (exit $ac_status); }; then
20733  pkg_cv_XVMC_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xv xextproto videoproto" 2>/dev/null`
20734else
20735  pkg_failed=yes
20736fi
20737 else
20738    pkg_failed=untried
20739fi
20740if test -n "$XVMC_LIBS"; then
20741    pkg_cv_XVMC_LIBS="$XVMC_LIBS"
20742 elif test -n "$PKG_CONFIG"; then
20743    if test -n "$PKG_CONFIG" && \
20744    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xv xextproto videoproto\"") >&5
20745  ($PKG_CONFIG --exists --print-errors "x11 xext xv xextproto videoproto") 2>&5
20746  ac_status=$?
20747  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748  (exit $ac_status); }; then
20749  pkg_cv_XVMC_LIBS=`$PKG_CONFIG --libs "x11 xext xv xextproto videoproto" 2>/dev/null`
20750else
20751  pkg_failed=yes
20752fi
20753 else
20754    pkg_failed=untried
20755fi
20756
20757
20758
20759if test $pkg_failed = yes; then
20760
20761if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20762        _pkg_short_errors_supported=yes
20763else
20764        _pkg_short_errors_supported=no
20765fi
20766        if test $_pkg_short_errors_supported = yes; then
20767	        XVMC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xv xextproto videoproto" 2>&1`
20768        else
20769	        XVMC_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xv xextproto videoproto" 2>&1`
20770        fi
20771	# Put the nasty error message in config.log where it belongs
20772	echo "$XVMC_PKG_ERRORS" >&5
20773
20774	{ { $as_echo "$as_me:$LINENO: error: Package requirements (x11 xext xv xextproto videoproto) were not met:
20775
20776$XVMC_PKG_ERRORS
20777
20778Consider adjusting the PKG_CONFIG_PATH environment variable if you
20779installed software in a non-standard prefix.
20780
20781Alternatively, you may set the environment variables XVMC_CFLAGS
20782and XVMC_LIBS to avoid the need to call pkg-config.
20783See the pkg-config man page for more details.
20784" >&5
20785$as_echo "$as_me: error: Package requirements (x11 xext xv xextproto videoproto) were not met:
20786
20787$XVMC_PKG_ERRORS
20788
20789Consider adjusting the PKG_CONFIG_PATH environment variable if you
20790installed software in a non-standard prefix.
20791
20792Alternatively, you may set the environment variables XVMC_CFLAGS
20793and XVMC_LIBS to avoid the need to call pkg-config.
20794See the pkg-config man page for more details.
20795" >&2;}
20796   { (exit 1); exit 1; }; }
20797elif test $pkg_failed = untried; then
20798	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20800{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20801is in your PATH or set the PKG_CONFIG environment variable to the full
20802path to pkg-config.
20803
20804Alternatively, you may set the environment variables XVMC_CFLAGS
20805and XVMC_LIBS to avoid the need to call pkg-config.
20806See the pkg-config man page for more details.
20807
20808To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20809See \`config.log' for more details." >&5
20810$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20811is in your PATH or set the PKG_CONFIG environment variable to the full
20812path to pkg-config.
20813
20814Alternatively, you may set the environment variables XVMC_CFLAGS
20815and XVMC_LIBS to avoid the need to call pkg-config.
20816See the pkg-config man page for more details.
20817
20818To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20819See \`config.log' for more details." >&2;}
20820   { (exit 1); exit 1; }; }; }
20821else
20822	XVMC_CFLAGS=$pkg_cv_XVMC_CFLAGS
20823	XVMC_LIBS=$pkg_cv_XVMC_LIBS
20824        { $as_echo "$as_me:$LINENO: result: yes" >&5
20825$as_echo "yes" >&6; }
20826	:
20827fi
20828
20829
20830
20831{ $as_echo "$as_me:$LINENO: checking for shmat" >&5
20832$as_echo_n "checking for shmat... " >&6; }
20833if test "${ac_cv_func_shmat+set}" = set; then
20834  $as_echo_n "(cached) " >&6
20835else
20836  cat >conftest.$ac_ext <<_ACEOF
20837/* confdefs.h.  */
20838_ACEOF
20839cat confdefs.h >>conftest.$ac_ext
20840cat >>conftest.$ac_ext <<_ACEOF
20841/* end confdefs.h.  */
20842/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20843   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20844#define shmat innocuous_shmat
20845
20846/* System header to define __stub macros and hopefully few prototypes,
20847    which can conflict with char shmat (); below.
20848    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20849    <limits.h> exists even on freestanding compilers.  */
20850
20851#ifdef __STDC__
20852# include <limits.h>
20853#else
20854# include <assert.h>
20855#endif
20856
20857#undef shmat
20858
20859/* Override any GCC internal prototype to avoid an error.
20860   Use char because int might match the return type of a GCC
20861   builtin and then its argument prototype would still apply.  */
20862#ifdef __cplusplus
20863extern "C"
20864#endif
20865char shmat ();
20866/* The GNU C library defines this for functions which it implements
20867    to always fail with ENOSYS.  Some functions are actually named
20868    something starting with __ and the normal name is an alias.  */
20869#if defined __stub_shmat || defined __stub___shmat
20870choke me
20871#endif
20872
20873int
20874main ()
20875{
20876return shmat ();
20877  ;
20878  return 0;
20879}
20880_ACEOF
20881rm -f conftest.$ac_objext conftest$ac_exeext
20882if { (ac_try="$ac_link"
20883case "(($ac_try" in
20884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20885  *) ac_try_echo=$ac_try;;
20886esac
20887eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20888$as_echo "$ac_try_echo") >&5
20889  (eval "$ac_link") 2>conftest.er1
20890  ac_status=$?
20891  grep -v '^ *+' conftest.er1 >conftest.err
20892  rm -f conftest.er1
20893  cat conftest.err >&5
20894  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895  (exit $ac_status); } && {
20896	 test -z "$ac_c_werror_flag" ||
20897	 test ! -s conftest.err
20898       } && test -s conftest$ac_exeext && {
20899	 test "$cross_compiling" = yes ||
20900	 $as_test_x conftest$ac_exeext
20901       }; then
20902  ac_cv_func_shmat=yes
20903else
20904  $as_echo "$as_me: failed program was:" >&5
20905sed 's/^/| /' conftest.$ac_ext >&5
20906
20907	ac_cv_func_shmat=no
20908fi
20909
20910rm -rf conftest.dSYM
20911rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20912      conftest$ac_exeext conftest.$ac_ext
20913fi
20914{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20915$as_echo "$ac_cv_func_shmat" >&6; }
20916if test "x$ac_cv_func_shmat" = x""yes; then
20917
20918cat >>confdefs.h <<\_ACEOF
20919#define HAS_SHM 1
20920_ACEOF
20921
20922fi
20923
20924
20925
20926# Check whether --enable-malloc0returnsnull was given.
20927if test "${enable_malloc0returnsnull+set}" = set; then
20928  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
20929else
20930  MALLOC_ZERO_RETURNS_NULL=auto
20931fi
20932
20933
20934{ $as_echo "$as_me:$LINENO: checking whether malloc(0) returns NULL" >&5
20935$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
20936if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
20937	if test "$cross_compiling" = yes; then
20938  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20940{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20941See \`config.log' for more details." >&5
20942$as_echo "$as_me: error: cannot run test program while cross compiling
20943See \`config.log' for more details." >&2;}
20944   { (exit 1); exit 1; }; }; }
20945else
20946  cat >conftest.$ac_ext <<_ACEOF
20947
20948char *malloc();
20949char *realloc();
20950char *calloc();
20951main() {
20952    char *m0, *r0, *c0, *p;
20953    m0 = malloc(0);
20954    p = malloc(10);
20955    r0 = realloc(p,0);
20956    c0 = calloc(0);
20957    exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
20958}
20959_ACEOF
20960rm -f conftest$ac_exeext
20961if { (ac_try="$ac_link"
20962case "(($ac_try" in
20963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20964  *) ac_try_echo=$ac_try;;
20965esac
20966eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20967$as_echo "$ac_try_echo") >&5
20968  (eval "$ac_link") 2>&5
20969  ac_status=$?
20970  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20972  { (case "(($ac_try" in
20973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974  *) ac_try_echo=$ac_try;;
20975esac
20976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20977$as_echo "$ac_try_echo") >&5
20978  (eval "$ac_try") 2>&5
20979  ac_status=$?
20980  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981  (exit $ac_status); }; }; then
20982  MALLOC_ZERO_RETURNS_NULL=yes
20983else
20984  $as_echo "$as_me: program exited with status $ac_status" >&5
20985$as_echo "$as_me: failed program was:" >&5
20986sed 's/^/| /' conftest.$ac_ext >&5
20987
20988( exit $ac_status )
20989MALLOC_ZERO_RETURNS_NULL=no
20990fi
20991rm -rf conftest.dSYM
20992rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20993fi
20994
20995
20996fi
20997{ $as_echo "$as_me:$LINENO: result: $MALLOC_ZERO_RETURNS_NULL" >&5
20998$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
20999
21000if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
21001	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
21002	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
21003	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
21004else
21005	MALLOC_ZERO_CFLAGS=""
21006	XMALLOC_ZERO_CFLAGS=""
21007	XTMALLOC_ZERO_CFLAGS=""
21008fi
21009
21010
21011
21012
21013
21014
21015
21016
21017# Allow checking code with lint, sparse, etc.
21018
21019# Check whether --with-lint was given.
21020if test "${with_lint+set}" = set; then
21021  withval=$with_lint; use_lint=$withval
21022else
21023  use_lint=no
21024fi
21025
21026if test "x$use_lint" = "xyes" ; then
21027	LINT="lint"
21028else
21029	LINT="$use_lint"
21030fi
21031if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
21032    case $LINT in
21033	lint|*/lint)
21034	    case $host_os in
21035		solaris*)
21036			LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
21037			;;
21038	    esac
21039	    ;;
21040    esac
21041fi
21042
21043
21044
21045 if test x$LINT != xno; then
21046  LINT_TRUE=
21047  LINT_FALSE='#'
21048else
21049  LINT_TRUE='#'
21050  LINT_FALSE=
21051fi
21052
21053
21054
21055LINT_FLAGS="${LINT_FLAGS} ${XVMC_CFLAGS}"
21056
21057
21058ac_config_files="$ac_config_files Makefile include/Makefile include/X11/Makefile include/X11/extensions/Makefile src/Makefile xvmc.pc"
21059
21060cat >confcache <<\_ACEOF
21061# This file is a shell script that caches the results of configure
21062# tests run on this system so they can be shared between configure
21063# scripts and configure runs, see configure's option --config-cache.
21064# It is not useful on other systems.  If it contains results you don't
21065# want to keep, you may remove or edit it.
21066#
21067# config.status only pays attention to the cache file if you give it
21068# the --recheck option to rerun configure.
21069#
21070# `ac_cv_env_foo' variables (set or unset) will be overridden when
21071# loading this file, other *unset* `ac_cv_foo' will be assigned the
21072# following values.
21073
21074_ACEOF
21075
21076# The following way of writing the cache mishandles newlines in values,
21077# but we know of no workaround that is simple, portable, and efficient.
21078# So, we kill variables containing newlines.
21079# Ultrix sh set writes to stderr and can't be redirected directly,
21080# and sets the high bit in the cache file unless we assign to the vars.
21081(
21082  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21083    eval ac_val=\$$ac_var
21084    case $ac_val in #(
21085    *${as_nl}*)
21086      case $ac_var in #(
21087      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21088$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21089      esac
21090      case $ac_var in #(
21091      _ | IFS | as_nl) ;; #(
21092      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21093      *) $as_unset $ac_var ;;
21094      esac ;;
21095    esac
21096  done
21097
21098  (set) 2>&1 |
21099    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21100    *${as_nl}ac_space=\ *)
21101      # `set' does not quote correctly, so add quotes (double-quote
21102      # substitution turns \\\\ into \\, and sed turns \\ into \).
21103      sed -n \
21104	"s/'/'\\\\''/g;
21105	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21106      ;; #(
21107    *)
21108      # `set' quotes correctly as required by POSIX, so do not add quotes.
21109      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21110      ;;
21111    esac |
21112    sort
21113) |
21114  sed '
21115     /^ac_cv_env_/b end
21116     t clear
21117     :clear
21118     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21119     t end
21120     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21121     :end' >>confcache
21122if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21123  if test -w "$cache_file"; then
21124    test "x$cache_file" != "x/dev/null" &&
21125      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21126$as_echo "$as_me: updating cache $cache_file" >&6;}
21127    cat confcache >$cache_file
21128  else
21129    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21130$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21131  fi
21132fi
21133rm -f confcache
21134
21135test "x$prefix" = xNONE && prefix=$ac_default_prefix
21136# Let make expand exec_prefix.
21137test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21138
21139DEFS=-DHAVE_CONFIG_H
21140
21141ac_libobjs=
21142ac_ltlibobjs=
21143for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21144  # 1. Remove the extension, and $U if already installed.
21145  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21146  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21147  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21148  #    will be set to the directory where LIBOBJS objects are built.
21149  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21150  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21151done
21152LIBOBJS=$ac_libobjs
21153
21154LTLIBOBJS=$ac_ltlibobjs
21155
21156
21157 if test -n "$EXEEXT"; then
21158  am__EXEEXT_TRUE=
21159  am__EXEEXT_FALSE='#'
21160else
21161  am__EXEEXT_TRUE='#'
21162  am__EXEEXT_FALSE=
21163fi
21164
21165if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21166  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21167Usually this means the macro was only invoked conditionally." >&5
21168$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21169Usually this means the macro was only invoked conditionally." >&2;}
21170   { (exit 1); exit 1; }; }
21171fi
21172if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21173  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21174Usually this means the macro was only invoked conditionally." >&5
21175$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21176Usually this means the macro was only invoked conditionally." >&2;}
21177   { (exit 1); exit 1; }; }
21178fi
21179if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21180  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21181Usually this means the macro was only invoked conditionally." >&5
21182$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21183Usually this means the macro was only invoked conditionally." >&2;}
21184   { (exit 1); exit 1; }; }
21185fi
21186if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21187  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21188Usually this means the macro was only invoked conditionally." >&5
21189$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21190Usually this means the macro was only invoked conditionally." >&2;}
21191   { (exit 1); exit 1; }; }
21192fi
21193if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
21194  { { $as_echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined.
21195Usually this means the macro was only invoked conditionally." >&5
21196$as_echo "$as_me: error: conditional \"LINT\" was never defined.
21197Usually this means the macro was only invoked conditionally." >&2;}
21198   { (exit 1); exit 1; }; }
21199fi
21200
21201: ${CONFIG_STATUS=./config.status}
21202ac_write_fail=0
21203ac_clean_files_save=$ac_clean_files
21204ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21205{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21206$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21207cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21208#! $SHELL
21209# Generated by $as_me.
21210# Run this file to recreate the current configuration.
21211# Compiler output produced by configure, useful for debugging
21212# configure, is in config.log if it exists.
21213
21214debug=false
21215ac_cs_recheck=false
21216ac_cs_silent=false
21217SHELL=\${CONFIG_SHELL-$SHELL}
21218_ACEOF
21219
21220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21221## --------------------- ##
21222## M4sh Initialization.  ##
21223## --------------------- ##
21224
21225# Be more Bourne compatible
21226DUALCASE=1; export DUALCASE # for MKS sh
21227if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21228  emulate sh
21229  NULLCMD=:
21230  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21231  # is contrary to our usage.  Disable this feature.
21232  alias -g '${1+"$@"}'='"$@"'
21233  setopt NO_GLOB_SUBST
21234else
21235  case `(set -o) 2>/dev/null` in
21236  *posix*) set -o posix ;;
21237esac
21238
21239fi
21240
21241
21242
21243
21244# PATH needs CR
21245# Avoid depending upon Character Ranges.
21246as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21247as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21248as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21249as_cr_digits='0123456789'
21250as_cr_alnum=$as_cr_Letters$as_cr_digits
21251
21252as_nl='
21253'
21254export as_nl
21255# Printing a long string crashes Solaris 7 /usr/bin/printf.
21256as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21257as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21258as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21259if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21260  as_echo='printf %s\n'
21261  as_echo_n='printf %s'
21262else
21263  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21264    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21265    as_echo_n='/usr/ucb/echo -n'
21266  else
21267    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21268    as_echo_n_body='eval
21269      arg=$1;
21270      case $arg in
21271      *"$as_nl"*)
21272	expr "X$arg" : "X\\(.*\\)$as_nl";
21273	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21274      esac;
21275      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21276    '
21277    export as_echo_n_body
21278    as_echo_n='sh -c $as_echo_n_body as_echo'
21279  fi
21280  export as_echo_body
21281  as_echo='sh -c $as_echo_body as_echo'
21282fi
21283
21284# The user is always right.
21285if test "${PATH_SEPARATOR+set}" != set; then
21286  PATH_SEPARATOR=:
21287  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21288    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21289      PATH_SEPARATOR=';'
21290  }
21291fi
21292
21293# Support unset when possible.
21294if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21295  as_unset=unset
21296else
21297  as_unset=false
21298fi
21299
21300
21301# IFS
21302# We need space, tab and new line, in precisely that order.  Quoting is
21303# there to prevent editors from complaining about space-tab.
21304# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21305# splitting by setting IFS to empty value.)
21306IFS=" ""	$as_nl"
21307
21308# Find who we are.  Look in the path if we contain no directory separator.
21309case $0 in
21310  *[\\/]* ) as_myself=$0 ;;
21311  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21312for as_dir in $PATH
21313do
21314  IFS=$as_save_IFS
21315  test -z "$as_dir" && as_dir=.
21316  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21317done
21318IFS=$as_save_IFS
21319
21320     ;;
21321esac
21322# We did not find ourselves, most probably we were run as `sh COMMAND'
21323# in which case we are not to be found in the path.
21324if test "x$as_myself" = x; then
21325  as_myself=$0
21326fi
21327if test ! -f "$as_myself"; then
21328  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21329  { (exit 1); exit 1; }
21330fi
21331
21332# Work around bugs in pre-3.0 UWIN ksh.
21333for as_var in ENV MAIL MAILPATH
21334do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21335done
21336PS1='$ '
21337PS2='> '
21338PS4='+ '
21339
21340# NLS nuisances.
21341LC_ALL=C
21342export LC_ALL
21343LANGUAGE=C
21344export LANGUAGE
21345
21346# Required to use basename.
21347if expr a : '\(a\)' >/dev/null 2>&1 &&
21348   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21349  as_expr=expr
21350else
21351  as_expr=false
21352fi
21353
21354if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21355  as_basename=basename
21356else
21357  as_basename=false
21358fi
21359
21360
21361# Name of the executable.
21362as_me=`$as_basename -- "$0" ||
21363$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21364	 X"$0" : 'X\(//\)$' \| \
21365	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21366$as_echo X/"$0" |
21367    sed '/^.*\/\([^/][^/]*\)\/*$/{
21368	    s//\1/
21369	    q
21370	  }
21371	  /^X\/\(\/\/\)$/{
21372	    s//\1/
21373	    q
21374	  }
21375	  /^X\/\(\/\).*/{
21376	    s//\1/
21377	    q
21378	  }
21379	  s/.*/./; q'`
21380
21381# CDPATH.
21382$as_unset CDPATH
21383
21384
21385
21386  as_lineno_1=$LINENO
21387  as_lineno_2=$LINENO
21388  test "x$as_lineno_1" != "x$as_lineno_2" &&
21389  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21390
21391  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21392  # uniformly replaced by the line number.  The first 'sed' inserts a
21393  # line-number line after each line using $LINENO; the second 'sed'
21394  # does the real work.  The second script uses 'N' to pair each
21395  # line-number line with the line containing $LINENO, and appends
21396  # trailing '-' during substitution so that $LINENO is not a special
21397  # case at line end.
21398  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21399  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21400  # E. McMahon (1931-1989) for sed's syntax.  :-)
21401  sed -n '
21402    p
21403    /[$]LINENO/=
21404  ' <$as_myself |
21405    sed '
21406      s/[$]LINENO.*/&-/
21407      t lineno
21408      b
21409      :lineno
21410      N
21411      :loop
21412      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21413      t loop
21414      s/-\n.*//
21415    ' >$as_me.lineno &&
21416  chmod +x "$as_me.lineno" ||
21417    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21418   { (exit 1); exit 1; }; }
21419
21420  # Don't try to exec as it changes $[0], causing all sort of problems
21421  # (the dirname of $[0] is not the place where we might find the
21422  # original and so on.  Autoconf is especially sensitive to this).
21423  . "./$as_me.lineno"
21424  # Exit status is that of the last command.
21425  exit
21426}
21427
21428
21429if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21430  as_dirname=dirname
21431else
21432  as_dirname=false
21433fi
21434
21435ECHO_C= ECHO_N= ECHO_T=
21436case `echo -n x` in
21437-n*)
21438  case `echo 'x\c'` in
21439  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21440  *)   ECHO_C='\c';;
21441  esac;;
21442*)
21443  ECHO_N='-n';;
21444esac
21445if expr a : '\(a\)' >/dev/null 2>&1 &&
21446   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21447  as_expr=expr
21448else
21449  as_expr=false
21450fi
21451
21452rm -f conf$$ conf$$.exe conf$$.file
21453if test -d conf$$.dir; then
21454  rm -f conf$$.dir/conf$$.file
21455else
21456  rm -f conf$$.dir
21457  mkdir conf$$.dir 2>/dev/null
21458fi
21459if (echo >conf$$.file) 2>/dev/null; then
21460  if ln -s conf$$.file conf$$ 2>/dev/null; then
21461    as_ln_s='ln -s'
21462    # ... but there are two gotchas:
21463    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21464    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21465    # In both cases, we have to default to `cp -p'.
21466    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21467      as_ln_s='cp -p'
21468  elif ln conf$$.file conf$$ 2>/dev/null; then
21469    as_ln_s=ln
21470  else
21471    as_ln_s='cp -p'
21472  fi
21473else
21474  as_ln_s='cp -p'
21475fi
21476rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21477rmdir conf$$.dir 2>/dev/null
21478
21479if mkdir -p . 2>/dev/null; then
21480  as_mkdir_p=:
21481else
21482  test -d ./-p && rmdir ./-p
21483  as_mkdir_p=false
21484fi
21485
21486if test -x / >/dev/null 2>&1; then
21487  as_test_x='test -x'
21488else
21489  if ls -dL / >/dev/null 2>&1; then
21490    as_ls_L_option=L
21491  else
21492    as_ls_L_option=
21493  fi
21494  as_test_x='
21495    eval sh -c '\''
21496      if test -d "$1"; then
21497	test -d "$1/.";
21498      else
21499	case $1 in
21500	-*)set "./$1";;
21501	esac;
21502	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21503	???[sx]*):;;*)false;;esac;fi
21504    '\'' sh
21505  '
21506fi
21507as_executable_p=$as_test_x
21508
21509# Sed expression to map a string onto a valid CPP name.
21510as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21511
21512# Sed expression to map a string onto a valid variable name.
21513as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21514
21515
21516exec 6>&1
21517
21518# Save the log message, to keep $[0] and so on meaningful, and to
21519# report actual input values of CONFIG_FILES etc. instead of their
21520# values after options handling.
21521ac_log="
21522This file was extended by libXvMC $as_me 1.0.5, which was
21523generated by GNU Autoconf 2.63.  Invocation command line was
21524
21525  CONFIG_FILES    = $CONFIG_FILES
21526  CONFIG_HEADERS  = $CONFIG_HEADERS
21527  CONFIG_LINKS    = $CONFIG_LINKS
21528  CONFIG_COMMANDS = $CONFIG_COMMANDS
21529  $ $0 $@
21530
21531on `(hostname || uname -n) 2>/dev/null | sed 1q`
21532"
21533
21534_ACEOF
21535
21536case $ac_config_files in *"
21537"*) set x $ac_config_files; shift; ac_config_files=$*;;
21538esac
21539
21540case $ac_config_headers in *"
21541"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21542esac
21543
21544
21545cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21546# Files that config.status was made for.
21547config_files="$ac_config_files"
21548config_headers="$ac_config_headers"
21549config_commands="$ac_config_commands"
21550
21551_ACEOF
21552
21553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21554ac_cs_usage="\
21555\`$as_me' instantiates files from templates according to the
21556current configuration.
21557
21558Usage: $0 [OPTION]... [FILE]...
21559
21560  -h, --help       print this help, then exit
21561  -V, --version    print version number and configuration settings, then exit
21562  -q, --quiet, --silent
21563                   do not print progress messages
21564  -d, --debug      don't remove temporary files
21565      --recheck    update $as_me by reconfiguring in the same conditions
21566      --file=FILE[:TEMPLATE]
21567                   instantiate the configuration file FILE
21568      --header=FILE[:TEMPLATE]
21569                   instantiate the configuration header FILE
21570
21571Configuration files:
21572$config_files
21573
21574Configuration headers:
21575$config_headers
21576
21577Configuration commands:
21578$config_commands
21579
21580Report bugs to <bug-autoconf@gnu.org>."
21581
21582_ACEOF
21583cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21584ac_cs_version="\\
21585libXvMC config.status 1.0.5
21586configured by $0, generated by GNU Autoconf 2.63,
21587  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21588
21589Copyright (C) 2008 Free Software Foundation, Inc.
21590This config.status script is free software; the Free Software Foundation
21591gives unlimited permission to copy, distribute and modify it."
21592
21593ac_pwd='$ac_pwd'
21594srcdir='$srcdir'
21595INSTALL='$INSTALL'
21596MKDIR_P='$MKDIR_P'
21597AWK='$AWK'
21598test -n "\$AWK" || AWK=awk
21599_ACEOF
21600
21601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21602# The default lists apply if the user does not specify any file.
21603ac_need_defaults=:
21604while test $# != 0
21605do
21606  case $1 in
21607  --*=*)
21608    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21609    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21610    ac_shift=:
21611    ;;
21612  *)
21613    ac_option=$1
21614    ac_optarg=$2
21615    ac_shift=shift
21616    ;;
21617  esac
21618
21619  case $ac_option in
21620  # Handling of the options.
21621  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21622    ac_cs_recheck=: ;;
21623  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21624    $as_echo "$ac_cs_version"; exit ;;
21625  --debug | --debu | --deb | --de | --d | -d )
21626    debug=: ;;
21627  --file | --fil | --fi | --f )
21628    $ac_shift
21629    case $ac_optarg in
21630    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21631    esac
21632    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
21633    ac_need_defaults=false;;
21634  --header | --heade | --head | --hea )
21635    $ac_shift
21636    case $ac_optarg in
21637    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21638    esac
21639    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
21640    ac_need_defaults=false;;
21641  --he | --h)
21642    # Conflict between --help and --header
21643    { $as_echo "$as_me: error: ambiguous option: $1
21644Try \`$0 --help' for more information." >&2
21645   { (exit 1); exit 1; }; };;
21646  --help | --hel | -h )
21647    $as_echo "$ac_cs_usage"; exit ;;
21648  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21649  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21650    ac_cs_silent=: ;;
21651
21652  # This is an error.
21653  -*) { $as_echo "$as_me: error: unrecognized option: $1
21654Try \`$0 --help' for more information." >&2
21655   { (exit 1); exit 1; }; } ;;
21656
21657  *) ac_config_targets="$ac_config_targets $1"
21658     ac_need_defaults=false ;;
21659
21660  esac
21661  shift
21662done
21663
21664ac_configure_extra_args=
21665
21666if $ac_cs_silent; then
21667  exec 6>/dev/null
21668  ac_configure_extra_args="$ac_configure_extra_args --silent"
21669fi
21670
21671_ACEOF
21672cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21673if \$ac_cs_recheck; then
21674  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21675  shift
21676  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21677  CONFIG_SHELL='$SHELL'
21678  export CONFIG_SHELL
21679  exec "\$@"
21680fi
21681
21682_ACEOF
21683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21684exec 5>>config.log
21685{
21686  echo
21687  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21688## Running $as_me. ##
21689_ASBOX
21690  $as_echo "$ac_log"
21691} >&5
21692
21693_ACEOF
21694cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21695#
21696# INIT-COMMANDS
21697#
21698AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21699
21700_ACEOF
21701
21702cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21703
21704# Handling of arguments.
21705for ac_config_target in $ac_config_targets
21706do
21707  case $ac_config_target in
21708    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21709    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21710    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21711    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21712    "include/X11/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/Makefile" ;;
21713    "include/X11/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/extensions/Makefile" ;;
21714    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21715    "xvmc.pc") CONFIG_FILES="$CONFIG_FILES xvmc.pc" ;;
21716
21717  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21718$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21719   { (exit 1); exit 1; }; };;
21720  esac
21721done
21722
21723
21724# If the user did not use the arguments to specify the items to instantiate,
21725# then the envvar interface is used.  Set only those that are not.
21726# We use the long form for the default assignment because of an extremely
21727# bizarre bug on SunOS 4.1.3.
21728if $ac_need_defaults; then
21729  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21730  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21731  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21732fi
21733
21734# Have a temporary directory for convenience.  Make it in the build tree
21735# simply because there is no reason against having it here, and in addition,
21736# creating and moving files from /tmp can sometimes cause problems.
21737# Hook for its removal unless debugging.
21738# Note that there is a small window in which the directory will not be cleaned:
21739# after its creation but before its name has been assigned to `$tmp'.
21740$debug ||
21741{
21742  tmp=
21743  trap 'exit_status=$?
21744  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21745' 0
21746  trap '{ (exit 1); exit 1; }' 1 2 13 15
21747}
21748# Create a (secure) tmp directory for tmp files.
21749
21750{
21751  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21752  test -n "$tmp" && test -d "$tmp"
21753}  ||
21754{
21755  tmp=./conf$$-$RANDOM
21756  (umask 077 && mkdir "$tmp")
21757} ||
21758{
21759   $as_echo "$as_me: cannot create a temporary directory in ." >&2
21760   { (exit 1); exit 1; }
21761}
21762
21763# Set up the scripts for CONFIG_FILES section.
21764# No need to generate them if there are no CONFIG_FILES.
21765# This happens for instance with `./config.status config.h'.
21766if test -n "$CONFIG_FILES"; then
21767
21768
21769ac_cr='
21770'
21771ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21772if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21773  ac_cs_awk_cr='\\r'
21774else
21775  ac_cs_awk_cr=$ac_cr
21776fi
21777
21778echo 'BEGIN {' >"$tmp/subs1.awk" &&
21779_ACEOF
21780
21781
21782{
21783  echo "cat >conf$$subs.awk <<_ACEOF" &&
21784  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21785  echo "_ACEOF"
21786} >conf$$subs.sh ||
21787  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21788$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21789   { (exit 1); exit 1; }; }
21790ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21791ac_delim='%!_!# '
21792for ac_last_try in false false false false false :; do
21793  . ./conf$$subs.sh ||
21794    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21795$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21796   { (exit 1); exit 1; }; }
21797
21798  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21799  if test $ac_delim_n = $ac_delim_num; then
21800    break
21801  elif $ac_last_try; then
21802    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21803$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21804   { (exit 1); exit 1; }; }
21805  else
21806    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21807  fi
21808done
21809rm -f conf$$subs.sh
21810
21811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21812cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21813_ACEOF
21814sed -n '
21815h
21816s/^/S["/; s/!.*/"]=/
21817p
21818g
21819s/^[^!]*!//
21820:repl
21821t repl
21822s/'"$ac_delim"'$//
21823t delim
21824:nl
21825h
21826s/\(.\{148\}\).*/\1/
21827t more1
21828s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21829p
21830n
21831b repl
21832:more1
21833s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21834p
21835g
21836s/.\{148\}//
21837t nl
21838:delim
21839h
21840s/\(.\{148\}\).*/\1/
21841t more2
21842s/["\\]/\\&/g; s/^/"/; s/$/"/
21843p
21844b
21845:more2
21846s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21847p
21848g
21849s/.\{148\}//
21850t delim
21851' <conf$$subs.awk | sed '
21852/^[^""]/{
21853  N
21854  s/\n//
21855}
21856' >>$CONFIG_STATUS || ac_write_fail=1
21857rm -f conf$$subs.awk
21858cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21859_ACAWK
21860cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21861  for (key in S) S_is_set[key] = 1
21862  FS = ""
21863
21864}
21865{
21866  line = $ 0
21867  nfields = split(line, field, "@")
21868  substed = 0
21869  len = length(field[1])
21870  for (i = 2; i < nfields; i++) {
21871    key = field[i]
21872    keylen = length(key)
21873    if (S_is_set[key]) {
21874      value = S[key]
21875      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21876      len += length(value) + length(field[++i])
21877      substed = 1
21878    } else
21879      len += 1 + keylen
21880  }
21881
21882  print line
21883}
21884
21885_ACAWK
21886_ACEOF
21887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21888if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21889  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21890else
21891  cat
21892fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21893  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21894$as_echo "$as_me: error: could not setup config files machinery" >&2;}
21895   { (exit 1); exit 1; }; }
21896_ACEOF
21897
21898# VPATH may cause trouble with some makes, so we remove $(srcdir),
21899# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21900# trailing colons and then remove the whole line if VPATH becomes empty
21901# (actually we leave an empty line to preserve line numbers).
21902if test "x$srcdir" = x.; then
21903  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21904s/:*\$(srcdir):*/:/
21905s/:*\${srcdir}:*/:/
21906s/:*@srcdir@:*/:/
21907s/^\([^=]*=[	 ]*\):*/\1/
21908s/:*$//
21909s/^[^=]*=[	 ]*$//
21910}'
21911fi
21912
21913cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21914fi # test -n "$CONFIG_FILES"
21915
21916# Set up the scripts for CONFIG_HEADERS section.
21917# No need to generate them if there are no CONFIG_HEADERS.
21918# This happens for instance with `./config.status Makefile'.
21919if test -n "$CONFIG_HEADERS"; then
21920cat >"$tmp/defines.awk" <<\_ACAWK ||
21921BEGIN {
21922_ACEOF
21923
21924# Transform confdefs.h into an awk script `defines.awk', embedded as
21925# here-document in config.status, that substitutes the proper values into
21926# config.h.in to produce config.h.
21927
21928# Create a delimiter string that does not exist in confdefs.h, to ease
21929# handling of long lines.
21930ac_delim='%!_!# '
21931for ac_last_try in false false :; do
21932  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21933  if test -z "$ac_t"; then
21934    break
21935  elif $ac_last_try; then
21936    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21937$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21938   { (exit 1); exit 1; }; }
21939  else
21940    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21941  fi
21942done
21943
21944# For the awk script, D is an array of macro values keyed by name,
21945# likewise P contains macro parameters if any.  Preserve backslash
21946# newline sequences.
21947
21948ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21949sed -n '
21950s/.\{148\}/&'"$ac_delim"'/g
21951t rset
21952:rset
21953s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21954t def
21955d
21956:def
21957s/\\$//
21958t bsnl
21959s/["\\]/\\&/g
21960s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21961D["\1"]=" \3"/p
21962s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21963d
21964:bsnl
21965s/["\\]/\\&/g
21966s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21967D["\1"]=" \3\\\\\\n"\\/p
21968t cont
21969s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21970t cont
21971d
21972:cont
21973n
21974s/.\{148\}/&'"$ac_delim"'/g
21975t clear
21976:clear
21977s/\\$//
21978t bsnlc
21979s/["\\]/\\&/g; s/^/"/; s/$/"/p
21980d
21981:bsnlc
21982s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21983b cont
21984' <confdefs.h | sed '
21985s/'"$ac_delim"'/"\\\
21986"/g' >>$CONFIG_STATUS || ac_write_fail=1
21987
21988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21989  for (key in D) D_is_set[key] = 1
21990  FS = ""
21991}
21992/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21993  line = \$ 0
21994  split(line, arg, " ")
21995  if (arg[1] == "#") {
21996    defundef = arg[2]
21997    mac1 = arg[3]
21998  } else {
21999    defundef = substr(arg[1], 2)
22000    mac1 = arg[2]
22001  }
22002  split(mac1, mac2, "(") #)
22003  macro = mac2[1]
22004  prefix = substr(line, 1, index(line, defundef) - 1)
22005  if (D_is_set[macro]) {
22006    # Preserve the white space surrounding the "#".
22007    print prefix "define", macro P[macro] D[macro]
22008    next
22009  } else {
22010    # Replace #undef with comments.  This is necessary, for example,
22011    # in the case of _POSIX_SOURCE, which is predefined and required
22012    # on some systems where configure will not decide to define it.
22013    if (defundef == "undef") {
22014      print "/*", prefix defundef, macro, "*/"
22015      next
22016    }
22017  }
22018}
22019{ print }
22020_ACAWK
22021_ACEOF
22022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22023  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22024$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22025   { (exit 1); exit 1; }; }
22026fi # test -n "$CONFIG_HEADERS"
22027
22028
22029eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22030shift
22031for ac_tag
22032do
22033  case $ac_tag in
22034  :[FHLC]) ac_mode=$ac_tag; continue;;
22035  esac
22036  case $ac_mode$ac_tag in
22037  :[FHL]*:*);;
22038  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22039$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22040   { (exit 1); exit 1; }; };;
22041  :[FH]-) ac_tag=-:-;;
22042  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22043  esac
22044  ac_save_IFS=$IFS
22045  IFS=:
22046  set x $ac_tag
22047  IFS=$ac_save_IFS
22048  shift
22049  ac_file=$1
22050  shift
22051
22052  case $ac_mode in
22053  :L) ac_source=$1;;
22054  :[FH])
22055    ac_file_inputs=
22056    for ac_f
22057    do
22058      case $ac_f in
22059      -) ac_f="$tmp/stdin";;
22060      *) # Look for the file first in the build tree, then in the source tree
22061	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22062	 # because $ac_f cannot contain `:'.
22063	 test -f "$ac_f" ||
22064	   case $ac_f in
22065	   [\\/$]*) false;;
22066	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22067	   esac ||
22068	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22069$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22070   { (exit 1); exit 1; }; };;
22071      esac
22072      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22073      ac_file_inputs="$ac_file_inputs '$ac_f'"
22074    done
22075
22076    # Let's still pretend it is `configure' which instantiates (i.e., don't
22077    # use $as_me), people would be surprised to read:
22078    #    /* config.h.  Generated by config.status.  */
22079    configure_input='Generated from '`
22080	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22081	`' by configure.'
22082    if test x"$ac_file" != x-; then
22083      configure_input="$ac_file.  $configure_input"
22084      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22085$as_echo "$as_me: creating $ac_file" >&6;}
22086    fi
22087    # Neutralize special characters interpreted by sed in replacement strings.
22088    case $configure_input in #(
22089    *\&* | *\|* | *\\* )
22090       ac_sed_conf_input=`$as_echo "$configure_input" |
22091       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22092    *) ac_sed_conf_input=$configure_input;;
22093    esac
22094
22095    case $ac_tag in
22096    *:-:* | *:-) cat >"$tmp/stdin" \
22097      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22098$as_echo "$as_me: error: could not create $ac_file" >&2;}
22099   { (exit 1); exit 1; }; } ;;
22100    esac
22101    ;;
22102  esac
22103
22104  ac_dir=`$as_dirname -- "$ac_file" ||
22105$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22106	 X"$ac_file" : 'X\(//\)[^/]' \| \
22107	 X"$ac_file" : 'X\(//\)$' \| \
22108	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22109$as_echo X"$ac_file" |
22110    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22111	    s//\1/
22112	    q
22113	  }
22114	  /^X\(\/\/\)[^/].*/{
22115	    s//\1/
22116	    q
22117	  }
22118	  /^X\(\/\/\)$/{
22119	    s//\1/
22120	    q
22121	  }
22122	  /^X\(\/\).*/{
22123	    s//\1/
22124	    q
22125	  }
22126	  s/.*/./; q'`
22127  { as_dir="$ac_dir"
22128  case $as_dir in #(
22129  -*) as_dir=./$as_dir;;
22130  esac
22131  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22132    as_dirs=
22133    while :; do
22134      case $as_dir in #(
22135      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22136      *) as_qdir=$as_dir;;
22137      esac
22138      as_dirs="'$as_qdir' $as_dirs"
22139      as_dir=`$as_dirname -- "$as_dir" ||
22140$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22141	 X"$as_dir" : 'X\(//\)[^/]' \| \
22142	 X"$as_dir" : 'X\(//\)$' \| \
22143	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22144$as_echo X"$as_dir" |
22145    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22146	    s//\1/
22147	    q
22148	  }
22149	  /^X\(\/\/\)[^/].*/{
22150	    s//\1/
22151	    q
22152	  }
22153	  /^X\(\/\/\)$/{
22154	    s//\1/
22155	    q
22156	  }
22157	  /^X\(\/\).*/{
22158	    s//\1/
22159	    q
22160	  }
22161	  s/.*/./; q'`
22162      test -d "$as_dir" && break
22163    done
22164    test -z "$as_dirs" || eval "mkdir $as_dirs"
22165  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22166$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22167   { (exit 1); exit 1; }; }; }
22168  ac_builddir=.
22169
22170case "$ac_dir" in
22171.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22172*)
22173  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22174  # A ".." for each directory in $ac_dir_suffix.
22175  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22176  case $ac_top_builddir_sub in
22177  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22178  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22179  esac ;;
22180esac
22181ac_abs_top_builddir=$ac_pwd
22182ac_abs_builddir=$ac_pwd$ac_dir_suffix
22183# for backward compatibility:
22184ac_top_builddir=$ac_top_build_prefix
22185
22186case $srcdir in
22187  .)  # We are building in place.
22188    ac_srcdir=.
22189    ac_top_srcdir=$ac_top_builddir_sub
22190    ac_abs_top_srcdir=$ac_pwd ;;
22191  [\\/]* | ?:[\\/]* )  # Absolute name.
22192    ac_srcdir=$srcdir$ac_dir_suffix;
22193    ac_top_srcdir=$srcdir
22194    ac_abs_top_srcdir=$srcdir ;;
22195  *) # Relative name.
22196    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22197    ac_top_srcdir=$ac_top_build_prefix$srcdir
22198    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22199esac
22200ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22201
22202
22203  case $ac_mode in
22204  :F)
22205  #
22206  # CONFIG_FILE
22207  #
22208
22209  case $INSTALL in
22210  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22211  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22212  esac
22213  ac_MKDIR_P=$MKDIR_P
22214  case $MKDIR_P in
22215  [\\/$]* | ?:[\\/]* ) ;;
22216  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22217  esac
22218_ACEOF
22219
22220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22221# If the template does not know about datarootdir, expand it.
22222# FIXME: This hack should be removed a few years after 2.60.
22223ac_datarootdir_hack=; ac_datarootdir_seen=
22224
22225ac_sed_dataroot='
22226/datarootdir/ {
22227  p
22228  q
22229}
22230/@datadir@/p
22231/@docdir@/p
22232/@infodir@/p
22233/@localedir@/p
22234/@mandir@/p
22235'
22236case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22237*datarootdir*) ac_datarootdir_seen=yes;;
22238*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22239  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22240$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22241_ACEOF
22242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22243  ac_datarootdir_hack='
22244  s&@datadir@&$datadir&g
22245  s&@docdir@&$docdir&g
22246  s&@infodir@&$infodir&g
22247  s&@localedir@&$localedir&g
22248  s&@mandir@&$mandir&g
22249    s&\\\${datarootdir}&$datarootdir&g' ;;
22250esac
22251_ACEOF
22252
22253# Neutralize VPATH when `$srcdir' = `.'.
22254# Shell code in configure.ac might set extrasub.
22255# FIXME: do we really want to maintain this feature?
22256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22257ac_sed_extra="$ac_vpsub
22258$extrasub
22259_ACEOF
22260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22261:t
22262/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22263s|@configure_input@|$ac_sed_conf_input|;t t
22264s&@top_builddir@&$ac_top_builddir_sub&;t t
22265s&@top_build_prefix@&$ac_top_build_prefix&;t t
22266s&@srcdir@&$ac_srcdir&;t t
22267s&@abs_srcdir@&$ac_abs_srcdir&;t t
22268s&@top_srcdir@&$ac_top_srcdir&;t t
22269s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22270s&@builddir@&$ac_builddir&;t t
22271s&@abs_builddir@&$ac_abs_builddir&;t t
22272s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22273s&@INSTALL@&$ac_INSTALL&;t t
22274s&@MKDIR_P@&$ac_MKDIR_P&;t t
22275$ac_datarootdir_hack
22276"
22277eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22278  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22279$as_echo "$as_me: error: could not create $ac_file" >&2;}
22280   { (exit 1); exit 1; }; }
22281
22282test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22283  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22284  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22285  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22286which seems to be undefined.  Please make sure it is defined." >&5
22287$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22288which seems to be undefined.  Please make sure it is defined." >&2;}
22289
22290  rm -f "$tmp/stdin"
22291  case $ac_file in
22292  -) cat "$tmp/out" && rm -f "$tmp/out";;
22293  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22294  esac \
22295  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22296$as_echo "$as_me: error: could not create $ac_file" >&2;}
22297   { (exit 1); exit 1; }; }
22298 ;;
22299  :H)
22300  #
22301  # CONFIG_HEADER
22302  #
22303  if test x"$ac_file" != x-; then
22304    {
22305      $as_echo "/* $configure_input  */" \
22306      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22307    } >"$tmp/config.h" \
22308      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22309$as_echo "$as_me: error: could not create $ac_file" >&2;}
22310   { (exit 1); exit 1; }; }
22311    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22312      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22313$as_echo "$as_me: $ac_file is unchanged" >&6;}
22314    else
22315      rm -f "$ac_file"
22316      mv "$tmp/config.h" "$ac_file" \
22317	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22318$as_echo "$as_me: error: could not create $ac_file" >&2;}
22319   { (exit 1); exit 1; }; }
22320    fi
22321  else
22322    $as_echo "/* $configure_input  */" \
22323      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22324      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22325$as_echo "$as_me: error: could not create -" >&2;}
22326   { (exit 1); exit 1; }; }
22327  fi
22328# Compute "$ac_file"'s index in $config_headers.
22329_am_arg="$ac_file"
22330_am_stamp_count=1
22331for _am_header in $config_headers :; do
22332  case $_am_header in
22333    $_am_arg | $_am_arg:* )
22334      break ;;
22335    * )
22336      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22337  esac
22338done
22339echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22340$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22341	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22342	 X"$_am_arg" : 'X\(//\)$' \| \
22343	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22344$as_echo X"$_am_arg" |
22345    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22346	    s//\1/
22347	    q
22348	  }
22349	  /^X\(\/\/\)[^/].*/{
22350	    s//\1/
22351	    q
22352	  }
22353	  /^X\(\/\/\)$/{
22354	    s//\1/
22355	    q
22356	  }
22357	  /^X\(\/\).*/{
22358	    s//\1/
22359	    q
22360	  }
22361	  s/.*/./; q'`/stamp-h$_am_stamp_count
22362 ;;
22363
22364  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22365$as_echo "$as_me: executing $ac_file commands" >&6;}
22366 ;;
22367  esac
22368
22369
22370  case $ac_file$ac_mode in
22371    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22372  # Autoconf 2.62 quotes --file arguments for eval, but not when files
22373  # are listed without --file.  Let's play safe and only enable the eval
22374  # if we detect the quoting.
22375  case $CONFIG_FILES in
22376  *\'*) eval set x "$CONFIG_FILES" ;;
22377  *)   set x $CONFIG_FILES ;;
22378  esac
22379  shift
22380  for mf
22381  do
22382    # Strip MF so we end up with the name of the file.
22383    mf=`echo "$mf" | sed -e 's/:.*$//'`
22384    # Check whether this is an Automake generated Makefile or not.
22385    # We used to match only the files named `Makefile.in', but
22386    # some people rename them; so instead we look at the file content.
22387    # Grep'ing the first line is not enough: some people post-process
22388    # each Makefile.in and add a new line on top of each file to say so.
22389    # Grep'ing the whole file is not good either: AIX grep has a line
22390    # limit of 2048, but all sed's we know have understand at least 4000.
22391    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22392      dirpart=`$as_dirname -- "$mf" ||
22393$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22394	 X"$mf" : 'X\(//\)[^/]' \| \
22395	 X"$mf" : 'X\(//\)$' \| \
22396	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22397$as_echo X"$mf" |
22398    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22399	    s//\1/
22400	    q
22401	  }
22402	  /^X\(\/\/\)[^/].*/{
22403	    s//\1/
22404	    q
22405	  }
22406	  /^X\(\/\/\)$/{
22407	    s//\1/
22408	    q
22409	  }
22410	  /^X\(\/\).*/{
22411	    s//\1/
22412	    q
22413	  }
22414	  s/.*/./; q'`
22415    else
22416      continue
22417    fi
22418    # Extract the definition of DEPDIR, am__include, and am__quote
22419    # from the Makefile without running `make'.
22420    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22421    test -z "$DEPDIR" && continue
22422    am__include=`sed -n 's/^am__include = //p' < "$mf"`
22423    test -z "am__include" && continue
22424    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22425    # When using ansi2knr, U may be empty or an underscore; expand it
22426    U=`sed -n 's/^U = //p' < "$mf"`
22427    # Find all dependency output files, they are included files with
22428    # $(DEPDIR) in their names.  We invoke sed twice because it is the
22429    # simplest approach to changing $(DEPDIR) to its actual value in the
22430    # expansion.
22431    for file in `sed -n "
22432      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22433	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22434      # Make sure the directory exists.
22435      test -f "$dirpart/$file" && continue
22436      fdir=`$as_dirname -- "$file" ||
22437$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22438	 X"$file" : 'X\(//\)[^/]' \| \
22439	 X"$file" : 'X\(//\)$' \| \
22440	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22441$as_echo X"$file" |
22442    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22443	    s//\1/
22444	    q
22445	  }
22446	  /^X\(\/\/\)[^/].*/{
22447	    s//\1/
22448	    q
22449	  }
22450	  /^X\(\/\/\)$/{
22451	    s//\1/
22452	    q
22453	  }
22454	  /^X\(\/\).*/{
22455	    s//\1/
22456	    q
22457	  }
22458	  s/.*/./; q'`
22459      { as_dir=$dirpart/$fdir
22460  case $as_dir in #(
22461  -*) as_dir=./$as_dir;;
22462  esac
22463  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22464    as_dirs=
22465    while :; do
22466      case $as_dir in #(
22467      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22468      *) as_qdir=$as_dir;;
22469      esac
22470      as_dirs="'$as_qdir' $as_dirs"
22471      as_dir=`$as_dirname -- "$as_dir" ||
22472$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22473	 X"$as_dir" : 'X\(//\)[^/]' \| \
22474	 X"$as_dir" : 'X\(//\)$' \| \
22475	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22476$as_echo X"$as_dir" |
22477    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22478	    s//\1/
22479	    q
22480	  }
22481	  /^X\(\/\/\)[^/].*/{
22482	    s//\1/
22483	    q
22484	  }
22485	  /^X\(\/\/\)$/{
22486	    s//\1/
22487	    q
22488	  }
22489	  /^X\(\/\).*/{
22490	    s//\1/
22491	    q
22492	  }
22493	  s/.*/./; q'`
22494      test -d "$as_dir" && break
22495    done
22496    test -z "$as_dirs" || eval "mkdir $as_dirs"
22497  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22498$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22499   { (exit 1); exit 1; }; }; }
22500      # echo "creating $dirpart/$file"
22501      echo '# dummy' > "$dirpart/$file"
22502    done
22503  done
22504}
22505 ;;
22506
22507  esac
22508done # for ac_tag
22509
22510
22511{ (exit 0); exit 0; }
22512_ACEOF
22513chmod +x $CONFIG_STATUS
22514ac_clean_files=$ac_clean_files_save
22515
22516test $ac_write_fail = 0 ||
22517  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22518$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22519   { (exit 1); exit 1; }; }
22520
22521
22522# configure is writing to config.log, and then calls config.status.
22523# config.status does its own redirection, appending to config.log.
22524# Unfortunately, on DOS this fails, as config.log is still kept open
22525# by configure, so config.status won't be able to write to it; its
22526# output is simply discarded.  So we exec the FD to /dev/null,
22527# effectively closing config.log, so it can be properly (re)opened and
22528# appended to by config.status.  When coming back to configure, we
22529# need to make the FD available again.
22530if test "$no_create" != yes; then
22531  ac_cs_success=:
22532  ac_config_status_args=
22533  test "$silent" = yes &&
22534    ac_config_status_args="$ac_config_status_args --quiet"
22535  exec 5>/dev/null
22536  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22537  exec 5>>config.log
22538  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22539  # would make configure fail if this is the last instruction.
22540  $ac_cs_success || { (exit 1); exit 1; }
22541fi
22542if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22543  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22544$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22545fi
22546
22547