configure revision 5d713044
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.62 for xf86-video-wsfb 0.3.0.
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='xf86-video-wsfb'
752PACKAGE_TARNAME='xf86-video-wsfb'
753PACKAGE_VERSION='0.3.0'
754PACKAGE_STRING='xf86-video-wsfb 0.3.0'
755PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
756
757ac_unique_file="Makefile.am"
758# Factoring default headers for most tests.
759ac_includes_default="\
760#include <stdio.h>
761#ifdef HAVE_SYS_TYPES_H
762# include <sys/types.h>
763#endif
764#ifdef HAVE_SYS_STAT_H
765# include <sys/stat.h>
766#endif
767#ifdef STDC_HEADERS
768# include <stdlib.h>
769# include <stddef.h>
770#else
771# ifdef HAVE_STDLIB_H
772#  include <stdlib.h>
773# endif
774#endif
775#ifdef HAVE_STRING_H
776# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777#  include <memory.h>
778# endif
779# include <string.h>
780#endif
781#ifdef HAVE_STRINGS_H
782# include <strings.h>
783#endif
784#ifdef HAVE_INTTYPES_H
785# include <inttypes.h>
786#endif
787#ifdef HAVE_STDINT_H
788# include <stdint.h>
789#endif
790#ifdef HAVE_UNISTD_H
791# include <unistd.h>
792#endif"
793
794ac_subst_vars='SHELL
795PATH_SEPARATOR
796PACKAGE_NAME
797PACKAGE_TARNAME
798PACKAGE_VERSION
799PACKAGE_STRING
800PACKAGE_BUGREPORT
801exec_prefix
802prefix
803program_transform_name
804bindir
805sbindir
806libexecdir
807datarootdir
808datadir
809sysconfdir
810sharedstatedir
811localstatedir
812includedir
813oldincludedir
814docdir
815infodir
816htmldir
817dvidir
818pdfdir
819psdir
820libdir
821localedir
822mandir
823DEFS
824ECHO_C
825ECHO_N
826ECHO_T
827LIBS
828build_alias
829host_alias
830target_alias
831INSTALL_PROGRAM
832INSTALL_SCRIPT
833INSTALL_DATA
834CYGPATH_W
835PACKAGE
836VERSION
837ACLOCAL
838AUTOCONF
839AUTOMAKE
840AUTOHEADER
841MAKEINFO
842install_sh
843STRIP
844INSTALL_STRIP_PROGRAM
845mkdir_p
846AWK
847SET_MAKE
848am__leading_dot
849AMTAR
850am__tar
851am__untar
852MAINTAINER_MODE_TRUE
853MAINTAINER_MODE_FALSE
854MAINT
855build
856build_cpu
857build_vendor
858build_os
859host
860host_cpu
861host_vendor
862host_os
863CC
864CFLAGS
865LDFLAGS
866CPPFLAGS
867ac_ct_CC
868EXEEXT
869OBJEXT
870DEPDIR
871am__include
872am__quote
873AMDEP_TRUE
874AMDEP_FALSE
875AMDEPBACKSLASH
876CCDEPMODE
877am__fastdepCC_TRUE
878am__fastdepCC_FALSE
879SED
880GREP
881EGREP
882LN_S
883ECHO
884AR
885RANLIB
886DSYMUTIL
887NMEDIT
888CPP
889CXX
890CXXFLAGS
891ac_ct_CXX
892CXXDEPMODE
893am__fastdepCXX_TRUE
894am__fastdepCXX_FALSE
895CXXCPP
896F77
897FFLAGS
898ac_ct_F77
899LIBTOOL
900PKG_CONFIG
901XORG_CFLAGS
902XORG_LIBS
903moduledir
904DRIVER_NAME
905APP_MAN_SUFFIX
906LIB_MAN_SUFFIX
907FILE_MAN_SUFFIX
908MISC_MAN_SUFFIX
909DRIVER_MAN_SUFFIX
910ADMIN_MAN_SUFFIX
911APP_MAN_DIR
912LIB_MAN_DIR
913FILE_MAN_DIR
914MISC_MAN_DIR
915DRIVER_MAN_DIR
916ADMIN_MAN_DIR
917CHANGELOG_CMD
918distcleancheck_listfiles
919LIBOBJS
920LTLIBOBJS'
921ac_subst_files=''
922ac_user_opts='
923enable_option_checking
924enable_maintainer_mode
925enable_static
926enable_shared
927enable_fast_install
928enable_dependency_tracking
929with_gnu_ld
930enable_libtool_lock
931with_pic
932with_tags
933with_xorg_module_dir
934with_release_version
935'
936      ac_precious_vars='build_alias
937host_alias
938target_alias
939CC
940CFLAGS
941LDFLAGS
942LIBS
943CPPFLAGS
944CPP
945CXX
946CXXFLAGS
947CCC
948CXXCPP
949F77
950FFLAGS
951PKG_CONFIG
952XORG_CFLAGS
953XORG_LIBS'
954
955
956# Initialize some variables set by options.
957ac_init_help=
958ac_init_version=false
959ac_unrecognized_opts=
960ac_unrecognized_sep=
961# The variables have the same names as the options, with
962# dashes changed to underlines.
963cache_file=/dev/null
964exec_prefix=NONE
965no_create=
966no_recursion=
967prefix=NONE
968program_prefix=NONE
969program_suffix=NONE
970program_transform_name=s,x,x,
971silent=
972site=
973srcdir=
974verbose=
975x_includes=NONE
976x_libraries=NONE
977
978# Installation directory options.
979# These are left unexpanded so users can "make install exec_prefix=/foo"
980# and all the variables that are supposed to be based on exec_prefix
981# by default will actually change.
982# Use braces instead of parens because sh, perl, etc. also accept them.
983# (The list follows the same order as the GNU Coding Standards.)
984bindir='${exec_prefix}/bin'
985sbindir='${exec_prefix}/sbin'
986libexecdir='${exec_prefix}/libexec'
987datarootdir='${prefix}/share'
988datadir='${datarootdir}'
989sysconfdir='${prefix}/etc'
990sharedstatedir='${prefix}/com'
991localstatedir='${prefix}/var'
992includedir='${prefix}/include'
993oldincludedir='/usr/include'
994docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
995infodir='${datarootdir}/info'
996htmldir='${docdir}'
997dvidir='${docdir}'
998pdfdir='${docdir}'
999psdir='${docdir}'
1000libdir='${exec_prefix}/lib'
1001localedir='${datarootdir}/locale'
1002mandir='${datarootdir}/man'
1003
1004ac_prev=
1005ac_dashdash=
1006for ac_option
1007do
1008  # If the previous option needs an argument, assign it.
1009  if test -n "$ac_prev"; then
1010    eval $ac_prev=\$ac_option
1011    ac_prev=
1012    continue
1013  fi
1014
1015  case $ac_option in
1016  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1017  *)	ac_optarg=yes ;;
1018  esac
1019
1020  # Accept the important Cygnus configure options, so we can diagnose typos.
1021
1022  case $ac_dashdash$ac_option in
1023  --)
1024    ac_dashdash=yes ;;
1025
1026  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1027    ac_prev=bindir ;;
1028  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1029    bindir=$ac_optarg ;;
1030
1031  -build | --build | --buil | --bui | --bu)
1032    ac_prev=build_alias ;;
1033  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1034    build_alias=$ac_optarg ;;
1035
1036  -cache-file | --cache-file | --cache-fil | --cache-fi \
1037  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1038    ac_prev=cache_file ;;
1039  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1040  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1041    cache_file=$ac_optarg ;;
1042
1043  --config-cache | -C)
1044    cache_file=config.cache ;;
1045
1046  -datadir | --datadir | --datadi | --datad)
1047    ac_prev=datadir ;;
1048  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1049    datadir=$ac_optarg ;;
1050
1051  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1052  | --dataroo | --dataro | --datar)
1053    ac_prev=datarootdir ;;
1054  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1055  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1056    datarootdir=$ac_optarg ;;
1057
1058  -disable-* | --disable-*)
1059    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1060    # Reject names that are not valid shell variable names.
1061    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1063   { (exit 1); exit 1; }; }
1064    ac_useropt_orig=$ac_useropt
1065    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066    case $ac_user_opts in
1067      *"
1068"enable_$ac_useropt"
1069"*) ;;
1070      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1071	 ac_unrecognized_sep=', ';;
1072    esac
1073    eval enable_$ac_useropt=no ;;
1074
1075  -docdir | --docdir | --docdi | --doc | --do)
1076    ac_prev=docdir ;;
1077  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1078    docdir=$ac_optarg ;;
1079
1080  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1081    ac_prev=dvidir ;;
1082  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1083    dvidir=$ac_optarg ;;
1084
1085  -enable-* | --enable-*)
1086    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1087    # Reject names that are not valid shell variable names.
1088    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1090   { (exit 1); exit 1; }; }
1091    ac_useropt_orig=$ac_useropt
1092    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093    case $ac_user_opts in
1094      *"
1095"enable_$ac_useropt"
1096"*) ;;
1097      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1098	 ac_unrecognized_sep=', ';;
1099    esac
1100    eval enable_$ac_useropt=\$ac_optarg ;;
1101
1102  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1103  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1104  | --exec | --exe | --ex)
1105    ac_prev=exec_prefix ;;
1106  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1107  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1108  | --exec=* | --exe=* | --ex=*)
1109    exec_prefix=$ac_optarg ;;
1110
1111  -gas | --gas | --ga | --g)
1112    # Obsolete; use --with-gas.
1113    with_gas=yes ;;
1114
1115  -help | --help | --hel | --he | -h)
1116    ac_init_help=long ;;
1117  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1118    ac_init_help=recursive ;;
1119  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1120    ac_init_help=short ;;
1121
1122  -host | --host | --hos | --ho)
1123    ac_prev=host_alias ;;
1124  -host=* | --host=* | --hos=* | --ho=*)
1125    host_alias=$ac_optarg ;;
1126
1127  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128    ac_prev=htmldir ;;
1129  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130  | --ht=*)
1131    htmldir=$ac_optarg ;;
1132
1133  -includedir | --includedir | --includedi | --included | --include \
1134  | --includ | --inclu | --incl | --inc)
1135    ac_prev=includedir ;;
1136  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1137  | --includ=* | --inclu=* | --incl=* | --inc=*)
1138    includedir=$ac_optarg ;;
1139
1140  -infodir | --infodir | --infodi | --infod | --info | --inf)
1141    ac_prev=infodir ;;
1142  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1143    infodir=$ac_optarg ;;
1144
1145  -libdir | --libdir | --libdi | --libd)
1146    ac_prev=libdir ;;
1147  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1148    libdir=$ac_optarg ;;
1149
1150  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1151  | --libexe | --libex | --libe)
1152    ac_prev=libexecdir ;;
1153  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1154  | --libexe=* | --libex=* | --libe=*)
1155    libexecdir=$ac_optarg ;;
1156
1157  -localedir | --localedir | --localedi | --localed | --locale)
1158    ac_prev=localedir ;;
1159  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1160    localedir=$ac_optarg ;;
1161
1162  -localstatedir | --localstatedir | --localstatedi | --localstated \
1163  | --localstate | --localstat | --localsta | --localst | --locals)
1164    ac_prev=localstatedir ;;
1165  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1166  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1167    localstatedir=$ac_optarg ;;
1168
1169  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170    ac_prev=mandir ;;
1171  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1172    mandir=$ac_optarg ;;
1173
1174  -nfp | --nfp | --nf)
1175    # Obsolete; use --without-fp.
1176    with_fp=no ;;
1177
1178  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1179  | --no-cr | --no-c | -n)
1180    no_create=yes ;;
1181
1182  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1183  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1184    no_recursion=yes ;;
1185
1186  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1187  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1188  | --oldin | --oldi | --old | --ol | --o)
1189    ac_prev=oldincludedir ;;
1190  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1191  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1192  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1193    oldincludedir=$ac_optarg ;;
1194
1195  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196    ac_prev=prefix ;;
1197  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1198    prefix=$ac_optarg ;;
1199
1200  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1201  | --program-pre | --program-pr | --program-p)
1202    ac_prev=program_prefix ;;
1203  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1204  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1205    program_prefix=$ac_optarg ;;
1206
1207  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1208  | --program-suf | --program-su | --program-s)
1209    ac_prev=program_suffix ;;
1210  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1211  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1212    program_suffix=$ac_optarg ;;
1213
1214  -program-transform-name | --program-transform-name \
1215  | --program-transform-nam | --program-transform-na \
1216  | --program-transform-n | --program-transform- \
1217  | --program-transform | --program-transfor \
1218  | --program-transfo | --program-transf \
1219  | --program-trans | --program-tran \
1220  | --progr-tra | --program-tr | --program-t)
1221    ac_prev=program_transform_name ;;
1222  -program-transform-name=* | --program-transform-name=* \
1223  | --program-transform-nam=* | --program-transform-na=* \
1224  | --program-transform-n=* | --program-transform-=* \
1225  | --program-transform=* | --program-transfor=* \
1226  | --program-transfo=* | --program-transf=* \
1227  | --program-trans=* | --program-tran=* \
1228  | --progr-tra=* | --program-tr=* | --program-t=*)
1229    program_transform_name=$ac_optarg ;;
1230
1231  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232    ac_prev=pdfdir ;;
1233  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1234    pdfdir=$ac_optarg ;;
1235
1236  -psdir | --psdir | --psdi | --psd | --ps)
1237    ac_prev=psdir ;;
1238  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1239    psdir=$ac_optarg ;;
1240
1241  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242  | -silent | --silent | --silen | --sile | --sil)
1243    silent=yes ;;
1244
1245  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246    ac_prev=sbindir ;;
1247  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248  | --sbi=* | --sb=*)
1249    sbindir=$ac_optarg ;;
1250
1251  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1252  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1253  | --sharedst | --shareds | --shared | --share | --shar \
1254  | --sha | --sh)
1255    ac_prev=sharedstatedir ;;
1256  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1257  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1258  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259  | --sha=* | --sh=*)
1260    sharedstatedir=$ac_optarg ;;
1261
1262  -site | --site | --sit)
1263    ac_prev=site ;;
1264  -site=* | --site=* | --sit=*)
1265    site=$ac_optarg ;;
1266
1267  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268    ac_prev=srcdir ;;
1269  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1270    srcdir=$ac_optarg ;;
1271
1272  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1273  | --syscon | --sysco | --sysc | --sys | --sy)
1274    ac_prev=sysconfdir ;;
1275  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1276  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1277    sysconfdir=$ac_optarg ;;
1278
1279  -target | --target | --targe | --targ | --tar | --ta | --t)
1280    ac_prev=target_alias ;;
1281  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1282    target_alias=$ac_optarg ;;
1283
1284  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1285    verbose=yes ;;
1286
1287  -version | --version | --versio | --versi | --vers | -V)
1288    ac_init_version=: ;;
1289
1290  -with-* | --with-*)
1291    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1292    # Reject names that are not valid shell variable names.
1293    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1295   { (exit 1); exit 1; }; }
1296    ac_useropt_orig=$ac_useropt
1297    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298    case $ac_user_opts in
1299      *"
1300"with_$ac_useropt"
1301"*) ;;
1302      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1303	 ac_unrecognized_sep=', ';;
1304    esac
1305    eval with_$ac_useropt=\$ac_optarg ;;
1306
1307  -without-* | --without-*)
1308    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309    # Reject names that are not valid shell variable names.
1310    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1312   { (exit 1); exit 1; }; }
1313    ac_useropt_orig=$ac_useropt
1314    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315    case $ac_user_opts in
1316      *"
1317"with_$ac_useropt"
1318"*) ;;
1319      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1320	 ac_unrecognized_sep=', ';;
1321    esac
1322    eval with_$ac_useropt=no ;;
1323
1324  --x)
1325    # Obsolete; use --with-x.
1326    with_x=yes ;;
1327
1328  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1329  | --x-incl | --x-inc | --x-in | --x-i)
1330    ac_prev=x_includes ;;
1331  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1332  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1333    x_includes=$ac_optarg ;;
1334
1335  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1336  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1337    ac_prev=x_libraries ;;
1338  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1339  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1340    x_libraries=$ac_optarg ;;
1341
1342  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1343Try \`$0 --help' for more information." >&2
1344   { (exit 1); exit 1; }; }
1345    ;;
1346
1347  *=*)
1348    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1349    # Reject names that are not valid shell variable names.
1350    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1351      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1352   { (exit 1); exit 1; }; }
1353    eval $ac_envvar=\$ac_optarg
1354    export $ac_envvar ;;
1355
1356  *)
1357    # FIXME: should be removed in autoconf 3.0.
1358    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1359    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1360      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1361    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1362    ;;
1363
1364  esac
1365done
1366
1367if test -n "$ac_prev"; then
1368  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1369  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1370   { (exit 1); exit 1; }; }
1371fi
1372
1373if test -n "$ac_unrecognized_opts"; then
1374  case $enable_option_checking in
1375    no) ;;
1376    fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1377   { (exit 1); exit 1; }; } ;;
1378    *)     $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1379  esac
1380fi
1381
1382# Check all directory arguments for consistency.
1383for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1384		datadir sysconfdir sharedstatedir localstatedir includedir \
1385		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1386		libdir localedir mandir
1387do
1388  eval ac_val=\$$ac_var
1389  # Remove trailing slashes.
1390  case $ac_val in
1391    */ )
1392      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1393      eval $ac_var=\$ac_val;;
1394  esac
1395  # Be sure to have absolute directory names.
1396  case $ac_val in
1397    [\\/$]* | ?:[\\/]* )  continue;;
1398    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1399  esac
1400  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1401   { (exit 1); exit 1; }; }
1402done
1403
1404# There might be people who depend on the old broken behavior: `$host'
1405# used to hold the argument of --host etc.
1406# FIXME: To remove some day.
1407build=$build_alias
1408host=$host_alias
1409target=$target_alias
1410
1411# FIXME: To remove some day.
1412if test "x$host_alias" != x; then
1413  if test "x$build_alias" = x; then
1414    cross_compiling=maybe
1415    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1416    If a cross compiler is detected then cross compile mode will be used." >&2
1417  elif test "x$build_alias" != "x$host_alias"; then
1418    cross_compiling=yes
1419  fi
1420fi
1421
1422ac_tool_prefix=
1423test -n "$host_alias" && ac_tool_prefix=$host_alias-
1424
1425test "$silent" = yes && exec 6>/dev/null
1426
1427
1428ac_pwd=`pwd` && test -n "$ac_pwd" &&
1429ac_ls_di=`ls -di .` &&
1430ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1431  { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1432   { (exit 1); exit 1; }; }
1433test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1434  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1435   { (exit 1); exit 1; }; }
1436
1437
1438# Find the source files, if location was not specified.
1439if test -z "$srcdir"; then
1440  ac_srcdir_defaulted=yes
1441  # Try the directory containing this script, then the parent directory.
1442  ac_confdir=`$as_dirname -- "$as_myself" ||
1443$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1444	 X"$as_myself" : 'X\(//\)[^/]' \| \
1445	 X"$as_myself" : 'X\(//\)$' \| \
1446	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1447$as_echo X"$as_myself" |
1448    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1449	    s//\1/
1450	    q
1451	  }
1452	  /^X\(\/\/\)[^/].*/{
1453	    s//\1/
1454	    q
1455	  }
1456	  /^X\(\/\/\)$/{
1457	    s//\1/
1458	    q
1459	  }
1460	  /^X\(\/\).*/{
1461	    s//\1/
1462	    q
1463	  }
1464	  s/.*/./; q'`
1465  srcdir=$ac_confdir
1466  if test ! -r "$srcdir/$ac_unique_file"; then
1467    srcdir=..
1468  fi
1469else
1470  ac_srcdir_defaulted=no
1471fi
1472if test ! -r "$srcdir/$ac_unique_file"; then
1473  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1474  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1475   { (exit 1); exit 1; }; }
1476fi
1477ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1478ac_abs_confdir=`(
1479	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1480   { (exit 1); exit 1; }; }
1481	pwd)`
1482# When building in place, set srcdir=.
1483if test "$ac_abs_confdir" = "$ac_pwd"; then
1484  srcdir=.
1485fi
1486# Remove unnecessary trailing slashes from srcdir.
1487# Double slashes in file names in object file debugging info
1488# mess up M-x gdb in Emacs.
1489case $srcdir in
1490*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1491esac
1492for ac_var in $ac_precious_vars; do
1493  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1494  eval ac_env_${ac_var}_value=\$${ac_var}
1495  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1496  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1497done
1498
1499#
1500# Report the --help message.
1501#
1502if test "$ac_init_help" = "long"; then
1503  # Omit some internal or obsolete options to make the list less imposing.
1504  # This message is too long to be a string in the A/UX 3.1 sh.
1505  cat <<_ACEOF
1506\`configure' configures xf86-video-wsfb 0.3.0 to adapt to many kinds of systems.
1507
1508Usage: $0 [OPTION]... [VAR=VALUE]...
1509
1510To assign environment variables (e.g., CC, CFLAGS...), specify them as
1511VAR=VALUE.  See below for descriptions of some of the useful variables.
1512
1513Defaults for the options are specified in brackets.
1514
1515Configuration:
1516  -h, --help              display this help and exit
1517      --help=short        display options specific to this package
1518      --help=recursive    display the short help of all the included packages
1519  -V, --version           display version information and exit
1520  -q, --quiet, --silent   do not print \`checking...' messages
1521      --cache-file=FILE   cache test results in FILE [disabled]
1522  -C, --config-cache      alias for \`--cache-file=config.cache'
1523  -n, --no-create         do not create output files
1524      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1525
1526Installation directories:
1527  --prefix=PREFIX         install architecture-independent files in PREFIX
1528                          [$ac_default_prefix]
1529  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1530                          [PREFIX]
1531
1532By default, \`make install' will install all the files in
1533\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1534an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1535for instance \`--prefix=\$HOME'.
1536
1537For better control, use the options below.
1538
1539Fine tuning of the installation directories:
1540  --bindir=DIR            user executables [EPREFIX/bin]
1541  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1542  --libexecdir=DIR        program executables [EPREFIX/libexec]
1543  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1544  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1545  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1546  --libdir=DIR            object code libraries [EPREFIX/lib]
1547  --includedir=DIR        C header files [PREFIX/include]
1548  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1549  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1550  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1551  --infodir=DIR           info documentation [DATAROOTDIR/info]
1552  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1553  --mandir=DIR            man documentation [DATAROOTDIR/man]
1554  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-wsfb]
1555  --htmldir=DIR           html documentation [DOCDIR]
1556  --dvidir=DIR            dvi documentation [DOCDIR]
1557  --pdfdir=DIR            pdf documentation [DOCDIR]
1558  --psdir=DIR             ps documentation [DOCDIR]
1559_ACEOF
1560
1561  cat <<\_ACEOF
1562
1563Program names:
1564  --program-prefix=PREFIX            prepend PREFIX to installed program names
1565  --program-suffix=SUFFIX            append SUFFIX to installed program names
1566  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1567
1568System types:
1569  --build=BUILD     configure for building on BUILD [guessed]
1570  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1571_ACEOF
1572fi
1573
1574if test -n "$ac_init_help"; then
1575  case $ac_init_help in
1576     short | recursive ) echo "Configuration of xf86-video-wsfb 0.3.0:";;
1577   esac
1578  cat <<\_ACEOF
1579
1580Optional Features:
1581  --disable-option-checking  ignore unrecognized --enable/--with options
1582  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1583  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1584  --enable-maintainer-mode  enable make rules and dependencies not useful
1585			  (and sometimes confusing) to the casual installer
1586  --enable-static[=PKGS]  build static libraries [default=no]
1587  --enable-shared[=PKGS]  build shared libraries [default=yes]
1588  --enable-fast-install[=PKGS]
1589                          optimize for fast installation [default=yes]
1590  --disable-dependency-tracking  speeds up one-time build
1591  --enable-dependency-tracking   do not reject slow dependency extractors
1592  --disable-libtool-lock  avoid locking (might break parallel builds)
1593
1594Optional Packages:
1595  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1596  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1597  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1598  --with-pic              try to use only PIC/non-PIC objects [default=use
1599                          both]
1600  --with-tags[=TAGS]      include additional configurations [automatic]
1601  --with-xorg-module-dir=DIR
1602                          Default xorg module directory
1603                          [default=$libdir/xorg/modules]
1604  --with-release-version=STRING
1605                          Use release version string in package name
1606
1607Some influential environment variables:
1608  CC          C compiler command
1609  CFLAGS      C compiler flags
1610  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1611              nonstandard directory <lib dir>
1612  LIBS        libraries to pass to the linker, e.g. -l<library>
1613  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1614              you have headers in a nonstandard directory <include dir>
1615  CPP         C preprocessor
1616  CXX         C++ compiler command
1617  CXXFLAGS    C++ compiler flags
1618  CXXCPP      C++ preprocessor
1619  F77         Fortran 77 compiler command
1620  FFLAGS      Fortran 77 compiler flags
1621  PKG_CONFIG  path to pkg-config utility
1622  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1623  XORG_LIBS   linker flags for XORG, overriding pkg-config
1624
1625Use these variables to override the choices made by `configure' or to help
1626it to find libraries and programs with nonstandard names/locations.
1627
1628Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1629_ACEOF
1630ac_status=$?
1631fi
1632
1633if test "$ac_init_help" = "recursive"; then
1634  # If there are subdirs, report their specific --help.
1635  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1636    test -d "$ac_dir" ||
1637      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1638      continue
1639    ac_builddir=.
1640
1641case "$ac_dir" in
1642.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643*)
1644  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1645  # A ".." for each directory in $ac_dir_suffix.
1646  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1647  case $ac_top_builddir_sub in
1648  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1650  esac ;;
1651esac
1652ac_abs_top_builddir=$ac_pwd
1653ac_abs_builddir=$ac_pwd$ac_dir_suffix
1654# for backward compatibility:
1655ac_top_builddir=$ac_top_build_prefix
1656
1657case $srcdir in
1658  .)  # We are building in place.
1659    ac_srcdir=.
1660    ac_top_srcdir=$ac_top_builddir_sub
1661    ac_abs_top_srcdir=$ac_pwd ;;
1662  [\\/]* | ?:[\\/]* )  # Absolute name.
1663    ac_srcdir=$srcdir$ac_dir_suffix;
1664    ac_top_srcdir=$srcdir
1665    ac_abs_top_srcdir=$srcdir ;;
1666  *) # Relative name.
1667    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1668    ac_top_srcdir=$ac_top_build_prefix$srcdir
1669    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1670esac
1671ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1672
1673    cd "$ac_dir" || { ac_status=$?; continue; }
1674    # Check for guested configure.
1675    if test -f "$ac_srcdir/configure.gnu"; then
1676      echo &&
1677      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1678    elif test -f "$ac_srcdir/configure"; then
1679      echo &&
1680      $SHELL "$ac_srcdir/configure" --help=recursive
1681    else
1682      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1683    fi || ac_status=$?
1684    cd "$ac_pwd" || { ac_status=$?; break; }
1685  done
1686fi
1687
1688test -n "$ac_init_help" && exit $ac_status
1689if $ac_init_version; then
1690  cat <<\_ACEOF
1691xf86-video-wsfb configure 0.3.0
1692generated by GNU Autoconf 2.62
1693
1694Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16952002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1696This configure script is free software; the Free Software Foundation
1697gives unlimited permission to copy, distribute and modify it.
1698_ACEOF
1699  exit
1700fi
1701cat >config.log <<_ACEOF
1702This file contains any messages produced by compilers while
1703running configure, to aid debugging if configure makes a mistake.
1704
1705It was created by xf86-video-wsfb $as_me 0.3.0, which was
1706generated by GNU Autoconf 2.62.  Invocation command line was
1707
1708  $ $0 $@
1709
1710_ACEOF
1711exec 5>>config.log
1712{
1713cat <<_ASUNAME
1714## --------- ##
1715## Platform. ##
1716## --------- ##
1717
1718hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1719uname -m = `(uname -m) 2>/dev/null || echo unknown`
1720uname -r = `(uname -r) 2>/dev/null || echo unknown`
1721uname -s = `(uname -s) 2>/dev/null || echo unknown`
1722uname -v = `(uname -v) 2>/dev/null || echo unknown`
1723
1724/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1725/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1726
1727/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1728/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1729/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1730/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1731/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1732/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1733/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1734
1735_ASUNAME
1736
1737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738for as_dir in $PATH
1739do
1740  IFS=$as_save_IFS
1741  test -z "$as_dir" && as_dir=.
1742  $as_echo "PATH: $as_dir"
1743done
1744IFS=$as_save_IFS
1745
1746} >&5
1747
1748cat >&5 <<_ACEOF
1749
1750
1751## ----------- ##
1752## Core tests. ##
1753## ----------- ##
1754
1755_ACEOF
1756
1757
1758# Keep a trace of the command line.
1759# Strip out --no-create and --no-recursion so they do not pile up.
1760# Strip out --silent because we don't want to record it for future runs.
1761# Also quote any args containing shell meta-characters.
1762# Make two passes to allow for proper duplicate-argument suppression.
1763ac_configure_args=
1764ac_configure_args0=
1765ac_configure_args1=
1766ac_must_keep_next=false
1767for ac_pass in 1 2
1768do
1769  for ac_arg
1770  do
1771    case $ac_arg in
1772    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1773    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1774    | -silent | --silent | --silen | --sile | --sil)
1775      continue ;;
1776    *\'*)
1777      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1778    esac
1779    case $ac_pass in
1780    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1781    2)
1782      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1783      if test $ac_must_keep_next = true; then
1784	ac_must_keep_next=false # Got value, back to normal.
1785      else
1786	case $ac_arg in
1787	  *=* | --config-cache | -C | -disable-* | --disable-* \
1788	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1789	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1790	  | -with-* | --with-* | -without-* | --without-* | --x)
1791	    case "$ac_configure_args0 " in
1792	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1793	    esac
1794	    ;;
1795	  -* ) ac_must_keep_next=true ;;
1796	esac
1797      fi
1798      ac_configure_args="$ac_configure_args '$ac_arg'"
1799      ;;
1800    esac
1801  done
1802done
1803$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1804$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1805
1806# When interrupted or exit'd, cleanup temporary files, and complete
1807# config.log.  We remove comments because anyway the quotes in there
1808# would cause problems or look ugly.
1809# WARNING: Use '\'' to represent an apostrophe within the trap.
1810# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1811trap 'exit_status=$?
1812  # Save into config.log some information that might help in debugging.
1813  {
1814    echo
1815
1816    cat <<\_ASBOX
1817## ---------------- ##
1818## Cache variables. ##
1819## ---------------- ##
1820_ASBOX
1821    echo
1822    # The following way of writing the cache mishandles newlines in values,
1823(
1824  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1825    eval ac_val=\$$ac_var
1826    case $ac_val in #(
1827    *${as_nl}*)
1828      case $ac_var in #(
1829      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1830$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1831      esac
1832      case $ac_var in #(
1833      _ | IFS | as_nl) ;; #(
1834      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1835      *) $as_unset $ac_var ;;
1836      esac ;;
1837    esac
1838  done
1839  (set) 2>&1 |
1840    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1841    *${as_nl}ac_space=\ *)
1842      sed -n \
1843	"s/'\''/'\''\\\\'\'''\''/g;
1844	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1845      ;; #(
1846    *)
1847      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1848      ;;
1849    esac |
1850    sort
1851)
1852    echo
1853
1854    cat <<\_ASBOX
1855## ----------------- ##
1856## Output variables. ##
1857## ----------------- ##
1858_ASBOX
1859    echo
1860    for ac_var in $ac_subst_vars
1861    do
1862      eval ac_val=\$$ac_var
1863      case $ac_val in
1864      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1865      esac
1866      $as_echo "$ac_var='\''$ac_val'\''"
1867    done | sort
1868    echo
1869
1870    if test -n "$ac_subst_files"; then
1871      cat <<\_ASBOX
1872## ------------------- ##
1873## File substitutions. ##
1874## ------------------- ##
1875_ASBOX
1876      echo
1877      for ac_var in $ac_subst_files
1878      do
1879	eval ac_val=\$$ac_var
1880	case $ac_val in
1881	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1882	esac
1883	$as_echo "$ac_var='\''$ac_val'\''"
1884      done | sort
1885      echo
1886    fi
1887
1888    if test -s confdefs.h; then
1889      cat <<\_ASBOX
1890## ----------- ##
1891## confdefs.h. ##
1892## ----------- ##
1893_ASBOX
1894      echo
1895      cat confdefs.h
1896      echo
1897    fi
1898    test "$ac_signal" != 0 &&
1899      $as_echo "$as_me: caught signal $ac_signal"
1900    $as_echo "$as_me: exit $exit_status"
1901  } >&5
1902  rm -f core *.core core.conftest.* &&
1903    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1904    exit $exit_status
1905' 0
1906for ac_signal in 1 2 13 15; do
1907  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1908done
1909ac_signal=0
1910
1911# confdefs.h avoids OS command line length limits that DEFS can exceed.
1912rm -f -r conftest* confdefs.h
1913
1914# Predefined preprocessor variables.
1915
1916cat >>confdefs.h <<_ACEOF
1917#define PACKAGE_NAME "$PACKAGE_NAME"
1918_ACEOF
1919
1920
1921cat >>confdefs.h <<_ACEOF
1922#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1923_ACEOF
1924
1925
1926cat >>confdefs.h <<_ACEOF
1927#define PACKAGE_VERSION "$PACKAGE_VERSION"
1928_ACEOF
1929
1930
1931cat >>confdefs.h <<_ACEOF
1932#define PACKAGE_STRING "$PACKAGE_STRING"
1933_ACEOF
1934
1935
1936cat >>confdefs.h <<_ACEOF
1937#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1938_ACEOF
1939
1940
1941# Let the site file select an alternate cache file if it wants to.
1942# Prefer an explicitly selected file to automatically selected ones.
1943ac_site_file1=NONE
1944ac_site_file2=NONE
1945if test -n "$CONFIG_SITE"; then
1946  ac_site_file1=$CONFIG_SITE
1947elif test "x$prefix" != xNONE; then
1948  ac_site_file1=$prefix/share/config.site
1949  ac_site_file2=$prefix/etc/config.site
1950else
1951  ac_site_file1=$ac_default_prefix/share/config.site
1952  ac_site_file2=$ac_default_prefix/etc/config.site
1953fi
1954for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1955do
1956  test "x$ac_site_file" = xNONE && continue
1957  if test -r "$ac_site_file"; then
1958    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1959$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1960    sed 's/^/| /' "$ac_site_file" >&5
1961    . "$ac_site_file"
1962  fi
1963done
1964
1965if test -r "$cache_file"; then
1966  # Some versions of bash will fail to source /dev/null (special
1967  # files actually), so we avoid doing that.
1968  if test -f "$cache_file"; then
1969    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1970$as_echo "$as_me: loading cache $cache_file" >&6;}
1971    case $cache_file in
1972      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1973      *)                      . "./$cache_file";;
1974    esac
1975  fi
1976else
1977  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1978$as_echo "$as_me: creating cache $cache_file" >&6;}
1979  >$cache_file
1980fi
1981
1982# Check that the precious variables saved in the cache have kept the same
1983# value.
1984ac_cache_corrupted=false
1985for ac_var in $ac_precious_vars; do
1986  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1987  eval ac_new_set=\$ac_env_${ac_var}_set
1988  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1989  eval ac_new_val=\$ac_env_${ac_var}_value
1990  case $ac_old_set,$ac_new_set in
1991    set,)
1992      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1993$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1994      ac_cache_corrupted=: ;;
1995    ,set)
1996      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1997$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1998      ac_cache_corrupted=: ;;
1999    ,);;
2000    *)
2001      if test "x$ac_old_val" != "x$ac_new_val"; then
2002	# differences in whitespace do not lead to failure.
2003	ac_old_val_w=`echo x $ac_old_val`
2004	ac_new_val_w=`echo x $ac_new_val`
2005	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2006	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2007$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2008	  ac_cache_corrupted=:
2009	else
2010	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2011$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2012	  eval $ac_var=\$ac_old_val
2013	fi
2014	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2015$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2016	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2017$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2018      fi;;
2019  esac
2020  # Pass precious variables to config.status.
2021  if test "$ac_new_set" = set; then
2022    case $ac_new_val in
2023    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2024    *) ac_arg=$ac_var=$ac_new_val ;;
2025    esac
2026    case " $ac_configure_args " in
2027      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2028      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2029    esac
2030  fi
2031done
2032if $ac_cache_corrupted; then
2033  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2034$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2035  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2036$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2037   { (exit 1); exit 1; }; }
2038fi
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064ac_ext=c
2065ac_cpp='$CPP $CPPFLAGS'
2066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2068ac_compiler_gnu=$ac_cv_c_compiler_gnu
2069
2070
2071
2072
2073ac_config_headers="$ac_config_headers config.h"
2074
2075
2076# Require xorg-macros: XORG_RELEASE_VERSION XORG_CHANGELOG
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089ac_aux_dir=
2090for ac_dir in . "$srcdir"/.; do
2091  if test -f "$ac_dir/install-sh"; then
2092    ac_aux_dir=$ac_dir
2093    ac_install_sh="$ac_aux_dir/install-sh -c"
2094    break
2095  elif test -f "$ac_dir/install.sh"; then
2096    ac_aux_dir=$ac_dir
2097    ac_install_sh="$ac_aux_dir/install.sh -c"
2098    break
2099  elif test -f "$ac_dir/shtool"; then
2100    ac_aux_dir=$ac_dir
2101    ac_install_sh="$ac_aux_dir/shtool install -c"
2102    break
2103  fi
2104done
2105if test -z "$ac_aux_dir"; then
2106  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2107$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2108   { (exit 1); exit 1; }; }
2109fi
2110
2111# These three variables are undocumented and unsupported,
2112# and are intended to be withdrawn in a future Autoconf release.
2113# They can cause serious problems if a builder's source tree is in a directory
2114# whose full name contains unusual characters.
2115ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2116ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2117ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2118
2119
2120
2121am__api_version="1.9"
2122# Find a good install program.  We prefer a C program (faster),
2123# so one script is as good as another.  But avoid the broken or
2124# incompatible versions:
2125# SysV /etc/install, /usr/sbin/install
2126# SunOS /usr/etc/install
2127# IRIX /sbin/install
2128# AIX /bin/install
2129# AmigaOS /C/install, which installs bootblocks on floppy discs
2130# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2131# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2132# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2133# OS/2's system install, which has a completely different semantic
2134# ./install, which can be erroneously created by make from ./install.sh.
2135# Reject install programs that cannot install multiple files.
2136{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2137$as_echo_n "checking for a BSD-compatible install... " >&6; }
2138if test -z "$INSTALL"; then
2139if test "${ac_cv_path_install+set}" = set; then
2140  $as_echo_n "(cached) " >&6
2141else
2142  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143for as_dir in $PATH
2144do
2145  IFS=$as_save_IFS
2146  test -z "$as_dir" && as_dir=.
2147  # Account for people who put trailing slashes in PATH elements.
2148case $as_dir/ in
2149  ./ | .// | /cC/* | \
2150  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2151  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2152  /usr/ucb/* ) ;;
2153  *)
2154    # OSF1 and SCO ODT 3.0 have their own names for install.
2155    # Don't use installbsd from OSF since it installs stuff as root
2156    # by default.
2157    for ac_prog in ginstall scoinst install; do
2158      for ac_exec_ext in '' $ac_executable_extensions; do
2159	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2160	  if test $ac_prog = install &&
2161	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2162	    # AIX install.  It has an incompatible calling convention.
2163	    :
2164	  elif test $ac_prog = install &&
2165	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2166	    # program-specific install script used by HP pwplus--don't use.
2167	    :
2168	  else
2169	    rm -rf conftest.one conftest.two conftest.dir
2170	    echo one > conftest.one
2171	    echo two > conftest.two
2172	    mkdir conftest.dir
2173	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2174	      test -s conftest.one && test -s conftest.two &&
2175	      test -s conftest.dir/conftest.one &&
2176	      test -s conftest.dir/conftest.two
2177	    then
2178	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2179	      break 3
2180	    fi
2181	  fi
2182	fi
2183      done
2184    done
2185    ;;
2186esac
2187
2188done
2189IFS=$as_save_IFS
2190
2191rm -rf conftest.one conftest.two conftest.dir
2192
2193fi
2194  if test "${ac_cv_path_install+set}" = set; then
2195    INSTALL=$ac_cv_path_install
2196  else
2197    # As a last resort, use the slow shell script.  Don't cache a
2198    # value for INSTALL within a source directory, because that will
2199    # break other packages using the cache if that directory is
2200    # removed, or if the value is a relative name.
2201    INSTALL=$ac_install_sh
2202  fi
2203fi
2204{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2205$as_echo "$INSTALL" >&6; }
2206
2207# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2208# It thinks the first close brace ends the variable substitution.
2209test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2210
2211test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2212
2213test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2214
2215test "$program_prefix" != NONE &&
2216  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2217# Use a double $ so make ignores it.
2218test "$program_suffix" != NONE &&
2219  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2220# Double any \ or $.
2221# By default was `s,x,x', remove it if useless.
2222ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2223program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2224
2225# expand $ac_aux_dir to an absolute path
2226am_aux_dir=`cd $ac_aux_dir && pwd`
2227
2228test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2229# Use eval to expand $SHELL
2230if eval "$MISSING --run true"; then
2231  am_missing_run="$MISSING --run "
2232else
2233  am_missing_run=
2234  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2235$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2236fi
2237
2238if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2239  # We used to keeping the `.' as first argument, in order to
2240  # allow $(mkdir_p) to be used without argument.  As in
2241  #   $(mkdir_p) $(somedir)
2242  # where $(somedir) is conditionally defined.  However this is wrong
2243  # for two reasons:
2244  #  1. if the package is installed by a user who cannot write `.'
2245  #     make install will fail,
2246  #  2. the above comment should most certainly read
2247  #     $(mkdir_p) $(DESTDIR)$(somedir)
2248  #     so it does not work when $(somedir) is undefined and
2249  #     $(DESTDIR) is not.
2250  #  To support the latter case, we have to write
2251  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2252  #  so the `.' trick is pointless.
2253  mkdir_p='mkdir -p --'
2254else
2255  # On NextStep and OpenStep, the `mkdir' command does not
2256  # recognize any option.  It will interpret all options as
2257  # directories to create, and then abort because `.' already
2258  # exists.
2259  for d in ./-p ./--version;
2260  do
2261    test -d $d && rmdir $d
2262  done
2263  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2264  if test -f "$ac_aux_dir/mkinstalldirs"; then
2265    mkdir_p='$(mkinstalldirs)'
2266  else
2267    mkdir_p='$(SHELL) $(install_sh) -d'
2268  fi
2269fi
2270
2271for ac_prog in gawk mawk nawk awk
2272do
2273  # Extract the first word of "$ac_prog", so it can be a program name with args.
2274set dummy $ac_prog; ac_word=$2
2275{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2276$as_echo_n "checking for $ac_word... " >&6; }
2277if test "${ac_cv_prog_AWK+set}" = set; then
2278  $as_echo_n "(cached) " >&6
2279else
2280  if test -n "$AWK"; then
2281  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2282else
2283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284for as_dir in $PATH
2285do
2286  IFS=$as_save_IFS
2287  test -z "$as_dir" && as_dir=.
2288  for ac_exec_ext in '' $ac_executable_extensions; do
2289  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2290    ac_cv_prog_AWK="$ac_prog"
2291    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292    break 2
2293  fi
2294done
2295done
2296IFS=$as_save_IFS
2297
2298fi
2299fi
2300AWK=$ac_cv_prog_AWK
2301if test -n "$AWK"; then
2302  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2303$as_echo "$AWK" >&6; }
2304else
2305  { $as_echo "$as_me:$LINENO: result: no" >&5
2306$as_echo "no" >&6; }
2307fi
2308
2309
2310  test -n "$AWK" && break
2311done
2312
2313{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2314$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2315set x ${MAKE-make}
2316ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2317if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2318  $as_echo_n "(cached) " >&6
2319else
2320  cat >conftest.make <<\_ACEOF
2321SHELL = /bin/sh
2322all:
2323	@echo '@@@%%%=$(MAKE)=@@@%%%'
2324_ACEOF
2325# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2326case `${MAKE-make} -f conftest.make 2>/dev/null` in
2327  *@@@%%%=?*=@@@%%%*)
2328    eval ac_cv_prog_make_${ac_make}_set=yes;;
2329  *)
2330    eval ac_cv_prog_make_${ac_make}_set=no;;
2331esac
2332rm -f conftest.make
2333fi
2334if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2335  { $as_echo "$as_me:$LINENO: result: yes" >&5
2336$as_echo "yes" >&6; }
2337  SET_MAKE=
2338else
2339  { $as_echo "$as_me:$LINENO: result: no" >&5
2340$as_echo "no" >&6; }
2341  SET_MAKE="MAKE=${MAKE-make}"
2342fi
2343
2344rm -rf .tst 2>/dev/null
2345mkdir .tst 2>/dev/null
2346if test -d .tst; then
2347  am__leading_dot=.
2348else
2349  am__leading_dot=_
2350fi
2351rmdir .tst 2>/dev/null
2352
2353# test to see if srcdir already configured
2354if test "`cd $srcdir && pwd`" != "`pwd`" &&
2355   test -f $srcdir/config.status; then
2356  { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2357$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2358   { (exit 1); exit 1; }; }
2359fi
2360
2361# test whether we have cygpath
2362if test -z "$CYGPATH_W"; then
2363  if (cygpath --version) >/dev/null 2>/dev/null; then
2364    CYGPATH_W='cygpath -w'
2365  else
2366    CYGPATH_W=echo
2367  fi
2368fi
2369
2370
2371# Define the identity of the package.
2372 PACKAGE='xf86-video-wsfb'
2373 VERSION='0.3.0'
2374
2375
2376cat >>confdefs.h <<_ACEOF
2377#define PACKAGE "$PACKAGE"
2378_ACEOF
2379
2380
2381cat >>confdefs.h <<_ACEOF
2382#define VERSION "$VERSION"
2383_ACEOF
2384
2385# Some tools Automake needs.
2386
2387ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2388
2389
2390AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2391
2392
2393AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2394
2395
2396AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2397
2398
2399MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2400
2401install_sh=${install_sh-"$am_aux_dir/install-sh"}
2402
2403# Installed binaries are usually stripped using `strip' when the user
2404# run `make install-strip'.  However `strip' might not be the right
2405# tool to use in cross-compilation environments, therefore Automake
2406# will honor the `STRIP' environment variable to overrule this program.
2407if test "$cross_compiling" != no; then
2408  if test -n "$ac_tool_prefix"; then
2409  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2410set dummy ${ac_tool_prefix}strip; ac_word=$2
2411{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2412$as_echo_n "checking for $ac_word... " >&6; }
2413if test "${ac_cv_prog_STRIP+set}" = set; then
2414  $as_echo_n "(cached) " >&6
2415else
2416  if test -n "$STRIP"; then
2417  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2418else
2419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420for as_dir in $PATH
2421do
2422  IFS=$as_save_IFS
2423  test -z "$as_dir" && as_dir=.
2424  for ac_exec_ext in '' $ac_executable_extensions; do
2425  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2426    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2427    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428    break 2
2429  fi
2430done
2431done
2432IFS=$as_save_IFS
2433
2434fi
2435fi
2436STRIP=$ac_cv_prog_STRIP
2437if test -n "$STRIP"; then
2438  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2439$as_echo "$STRIP" >&6; }
2440else
2441  { $as_echo "$as_me:$LINENO: result: no" >&5
2442$as_echo "no" >&6; }
2443fi
2444
2445
2446fi
2447if test -z "$ac_cv_prog_STRIP"; then
2448  ac_ct_STRIP=$STRIP
2449  # Extract the first word of "strip", so it can be a program name with args.
2450set dummy strip; ac_word=$2
2451{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2452$as_echo_n "checking for $ac_word... " >&6; }
2453if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2454  $as_echo_n "(cached) " >&6
2455else
2456  if test -n "$ac_ct_STRIP"; then
2457  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2458else
2459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460for as_dir in $PATH
2461do
2462  IFS=$as_save_IFS
2463  test -z "$as_dir" && as_dir=.
2464  for ac_exec_ext in '' $ac_executable_extensions; do
2465  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2466    ac_cv_prog_ac_ct_STRIP="strip"
2467    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2468    break 2
2469  fi
2470done
2471done
2472IFS=$as_save_IFS
2473
2474fi
2475fi
2476ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2477if test -n "$ac_ct_STRIP"; then
2478  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2479$as_echo "$ac_ct_STRIP" >&6; }
2480else
2481  { $as_echo "$as_me:$LINENO: result: no" >&5
2482$as_echo "no" >&6; }
2483fi
2484
2485  if test "x$ac_ct_STRIP" = x; then
2486    STRIP=":"
2487  else
2488    case $cross_compiling:$ac_tool_warned in
2489yes:)
2490{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2491whose name does not start with the host triplet.  If you think this
2492configuration is useful to you, please write to autoconf@gnu.org." >&5
2493$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2494whose name does not start with the host triplet.  If you think this
2495configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2496ac_tool_warned=yes ;;
2497esac
2498    STRIP=$ac_ct_STRIP
2499  fi
2500else
2501  STRIP="$ac_cv_prog_STRIP"
2502fi
2503
2504fi
2505INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2506
2507# We need awk for the "check" target.  The system "awk" is bad on
2508# some platforms.
2509# Always define AMTAR for backward compatibility.
2510
2511AMTAR=${AMTAR-"${am_missing_run}tar"}
2512
2513am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2514
2515
2516
2517
2518
2519
2520{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2521$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2522    # Check whether --enable-maintainer-mode was given.
2523if test "${enable_maintainer_mode+set}" = set; then
2524  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2525else
2526  USE_MAINTAINER_MODE=no
2527fi
2528
2529  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2530$as_echo "$USE_MAINTAINER_MODE" >&6; }
2531
2532
2533if test $USE_MAINTAINER_MODE = yes; then
2534  MAINTAINER_MODE_TRUE=
2535  MAINTAINER_MODE_FALSE='#'
2536else
2537  MAINTAINER_MODE_TRUE='#'
2538  MAINTAINER_MODE_FALSE=
2539fi
2540
2541  MAINT=$MAINTAINER_MODE_TRUE
2542
2543
2544
2545# Checks for programs.
2546# Check whether --enable-static was given.
2547if test "${enable_static+set}" = set; then
2548  enableval=$enable_static; p=${PACKAGE-default}
2549    case $enableval in
2550    yes) enable_static=yes ;;
2551    no) enable_static=no ;;
2552    *)
2553     enable_static=no
2554      # Look at the argument we got.  We use all the common list separators.
2555      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2556      for pkg in $enableval; do
2557	IFS="$lt_save_ifs"
2558	if test "X$pkg" = "X$p"; then
2559	  enable_static=yes
2560	fi
2561      done
2562      IFS="$lt_save_ifs"
2563      ;;
2564    esac
2565else
2566  enable_static=no
2567fi
2568
2569
2570
2571# Check whether --enable-shared was given.
2572if test "${enable_shared+set}" = set; then
2573  enableval=$enable_shared; p=${PACKAGE-default}
2574    case $enableval in
2575    yes) enable_shared=yes ;;
2576    no) enable_shared=no ;;
2577    *)
2578      enable_shared=no
2579      # Look at the argument we got.  We use all the common list separators.
2580      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2581      for pkg in $enableval; do
2582	IFS="$lt_save_ifs"
2583	if test "X$pkg" = "X$p"; then
2584	  enable_shared=yes
2585	fi
2586      done
2587      IFS="$lt_save_ifs"
2588      ;;
2589    esac
2590else
2591  enable_shared=yes
2592fi
2593
2594
2595# Check whether --enable-fast-install was given.
2596if test "${enable_fast_install+set}" = set; then
2597  enableval=$enable_fast_install; p=${PACKAGE-default}
2598    case $enableval in
2599    yes) enable_fast_install=yes ;;
2600    no) enable_fast_install=no ;;
2601    *)
2602      enable_fast_install=no
2603      # Look at the argument we got.  We use all the common list separators.
2604      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2605      for pkg in $enableval; do
2606	IFS="$lt_save_ifs"
2607	if test "X$pkg" = "X$p"; then
2608	  enable_fast_install=yes
2609	fi
2610      done
2611      IFS="$lt_save_ifs"
2612      ;;
2613    esac
2614else
2615  enable_fast_install=yes
2616fi
2617
2618
2619# Make sure we can run config.sub.
2620$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2621  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2622$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2623   { (exit 1); exit 1; }; }
2624
2625{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2626$as_echo_n "checking build system type... " >&6; }
2627if test "${ac_cv_build+set}" = set; then
2628  $as_echo_n "(cached) " >&6
2629else
2630  ac_build_alias=$build_alias
2631test "x$ac_build_alias" = x &&
2632  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2633test "x$ac_build_alias" = x &&
2634  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2635$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2636   { (exit 1); exit 1; }; }
2637ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2638  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2639$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2640   { (exit 1); exit 1; }; }
2641
2642fi
2643{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2644$as_echo "$ac_cv_build" >&6; }
2645case $ac_cv_build in
2646*-*-*) ;;
2647*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2648$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2649   { (exit 1); exit 1; }; };;
2650esac
2651build=$ac_cv_build
2652ac_save_IFS=$IFS; IFS='-'
2653set x $ac_cv_build
2654shift
2655build_cpu=$1
2656build_vendor=$2
2657shift; shift
2658# Remember, the first character of IFS is used to create $*,
2659# except with old shells:
2660build_os=$*
2661IFS=$ac_save_IFS
2662case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2663
2664
2665{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2666$as_echo_n "checking host system type... " >&6; }
2667if test "${ac_cv_host+set}" = set; then
2668  $as_echo_n "(cached) " >&6
2669else
2670  if test "x$host_alias" = x; then
2671  ac_cv_host=$ac_cv_build
2672else
2673  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2674    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2675$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2676   { (exit 1); exit 1; }; }
2677fi
2678
2679fi
2680{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2681$as_echo "$ac_cv_host" >&6; }
2682case $ac_cv_host in
2683*-*-*) ;;
2684*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2685$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2686   { (exit 1); exit 1; }; };;
2687esac
2688host=$ac_cv_host
2689ac_save_IFS=$IFS; IFS='-'
2690set x $ac_cv_host
2691shift
2692host_cpu=$1
2693host_vendor=$2
2694shift; shift
2695# Remember, the first character of IFS is used to create $*,
2696# except with old shells:
2697host_os=$*
2698IFS=$ac_save_IFS
2699case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2700
2701
2702DEPDIR="${am__leading_dot}deps"
2703
2704ac_config_commands="$ac_config_commands depfiles"
2705
2706
2707am_make=${MAKE-make}
2708cat > confinc << 'END'
2709am__doit:
2710	@echo done
2711.PHONY: am__doit
2712END
2713# If we don't find an include directive, just comment out the code.
2714{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2715$as_echo_n "checking for style of include used by $am_make... " >&6; }
2716am__include="#"
2717am__quote=
2718_am_result=none
2719# First try GNU make style include.
2720echo "include confinc" > confmf
2721# We grep out `Entering directory' and `Leaving directory'
2722# messages which can occur if `w' ends up in MAKEFLAGS.
2723# In particular we don't look at `^make:' because GNU make might
2724# be invoked under some other name (usually "gmake"), in which
2725# case it prints its new name instead of `make'.
2726if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2727   am__include=include
2728   am__quote=
2729   _am_result=GNU
2730fi
2731# Now try BSD make style include.
2732if test "$am__include" = "#"; then
2733   echo '.include "confinc"' > confmf
2734   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2735      am__include=.include
2736      am__quote="\""
2737      _am_result=BSD
2738   fi
2739fi
2740
2741
2742{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2743$as_echo "$_am_result" >&6; }
2744rm -f confinc confmf
2745
2746# Check whether --enable-dependency-tracking was given.
2747if test "${enable_dependency_tracking+set}" = set; then
2748  enableval=$enable_dependency_tracking;
2749fi
2750
2751if test "x$enable_dependency_tracking" != xno; then
2752  am_depcomp="$ac_aux_dir/depcomp"
2753  AMDEPBACKSLASH='\'
2754fi
2755
2756
2757if test "x$enable_dependency_tracking" != xno; then
2758  AMDEP_TRUE=
2759  AMDEP_FALSE='#'
2760else
2761  AMDEP_TRUE='#'
2762  AMDEP_FALSE=
2763fi
2764
2765
2766
2767ac_ext=c
2768ac_cpp='$CPP $CPPFLAGS'
2769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771ac_compiler_gnu=$ac_cv_c_compiler_gnu
2772if test -n "$ac_tool_prefix"; then
2773  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2774set dummy ${ac_tool_prefix}gcc; ac_word=$2
2775{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2776$as_echo_n "checking for $ac_word... " >&6; }
2777if test "${ac_cv_prog_CC+set}" = set; then
2778  $as_echo_n "(cached) " >&6
2779else
2780  if test -n "$CC"; then
2781  ac_cv_prog_CC="$CC" # Let the user override the test.
2782else
2783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784for as_dir in $PATH
2785do
2786  IFS=$as_save_IFS
2787  test -z "$as_dir" && as_dir=.
2788  for ac_exec_ext in '' $ac_executable_extensions; do
2789  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2790    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2791    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792    break 2
2793  fi
2794done
2795done
2796IFS=$as_save_IFS
2797
2798fi
2799fi
2800CC=$ac_cv_prog_CC
2801if test -n "$CC"; then
2802  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2803$as_echo "$CC" >&6; }
2804else
2805  { $as_echo "$as_me:$LINENO: result: no" >&5
2806$as_echo "no" >&6; }
2807fi
2808
2809
2810fi
2811if test -z "$ac_cv_prog_CC"; then
2812  ac_ct_CC=$CC
2813  # Extract the first word of "gcc", so it can be a program name with args.
2814set dummy gcc; ac_word=$2
2815{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2816$as_echo_n "checking for $ac_word... " >&6; }
2817if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2818  $as_echo_n "(cached) " >&6
2819else
2820  if test -n "$ac_ct_CC"; then
2821  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2822else
2823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824for as_dir in $PATH
2825do
2826  IFS=$as_save_IFS
2827  test -z "$as_dir" && as_dir=.
2828  for ac_exec_ext in '' $ac_executable_extensions; do
2829  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2830    ac_cv_prog_ac_ct_CC="gcc"
2831    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832    break 2
2833  fi
2834done
2835done
2836IFS=$as_save_IFS
2837
2838fi
2839fi
2840ac_ct_CC=$ac_cv_prog_ac_ct_CC
2841if test -n "$ac_ct_CC"; then
2842  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2843$as_echo "$ac_ct_CC" >&6; }
2844else
2845  { $as_echo "$as_me:$LINENO: result: no" >&5
2846$as_echo "no" >&6; }
2847fi
2848
2849  if test "x$ac_ct_CC" = x; then
2850    CC=""
2851  else
2852    case $cross_compiling:$ac_tool_warned in
2853yes:)
2854{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2855whose name does not start with the host triplet.  If you think this
2856configuration is useful to you, please write to autoconf@gnu.org." >&5
2857$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2858whose name does not start with the host triplet.  If you think this
2859configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2860ac_tool_warned=yes ;;
2861esac
2862    CC=$ac_ct_CC
2863  fi
2864else
2865  CC="$ac_cv_prog_CC"
2866fi
2867
2868if test -z "$CC"; then
2869          if test -n "$ac_tool_prefix"; then
2870    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2871set dummy ${ac_tool_prefix}cc; ac_word=$2
2872{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2873$as_echo_n "checking for $ac_word... " >&6; }
2874if test "${ac_cv_prog_CC+set}" = set; then
2875  $as_echo_n "(cached) " >&6
2876else
2877  if test -n "$CC"; then
2878  ac_cv_prog_CC="$CC" # Let the user override the test.
2879else
2880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881for as_dir in $PATH
2882do
2883  IFS=$as_save_IFS
2884  test -z "$as_dir" && as_dir=.
2885  for ac_exec_ext in '' $ac_executable_extensions; do
2886  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2887    ac_cv_prog_CC="${ac_tool_prefix}cc"
2888    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889    break 2
2890  fi
2891done
2892done
2893IFS=$as_save_IFS
2894
2895fi
2896fi
2897CC=$ac_cv_prog_CC
2898if test -n "$CC"; then
2899  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2900$as_echo "$CC" >&6; }
2901else
2902  { $as_echo "$as_me:$LINENO: result: no" >&5
2903$as_echo "no" >&6; }
2904fi
2905
2906
2907  fi
2908fi
2909if test -z "$CC"; then
2910  # Extract the first word of "cc", so it can be a program name with args.
2911set dummy cc; ac_word=$2
2912{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2913$as_echo_n "checking for $ac_word... " >&6; }
2914if test "${ac_cv_prog_CC+set}" = set; then
2915  $as_echo_n "(cached) " >&6
2916else
2917  if test -n "$CC"; then
2918  ac_cv_prog_CC="$CC" # Let the user override the test.
2919else
2920  ac_prog_rejected=no
2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH
2923do
2924  IFS=$as_save_IFS
2925  test -z "$as_dir" && as_dir=.
2926  for ac_exec_ext in '' $ac_executable_extensions; do
2927  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2929       ac_prog_rejected=yes
2930       continue
2931     fi
2932    ac_cv_prog_CC="cc"
2933    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2934    break 2
2935  fi
2936done
2937done
2938IFS=$as_save_IFS
2939
2940if test $ac_prog_rejected = yes; then
2941  # We found a bogon in the path, so make sure we never use it.
2942  set dummy $ac_cv_prog_CC
2943  shift
2944  if test $# != 0; then
2945    # We chose a different compiler from the bogus one.
2946    # However, it has the same basename, so the bogon will be chosen
2947    # first if we set CC to just the basename; use the full file name.
2948    shift
2949    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2950  fi
2951fi
2952fi
2953fi
2954CC=$ac_cv_prog_CC
2955if test -n "$CC"; then
2956  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2957$as_echo "$CC" >&6; }
2958else
2959  { $as_echo "$as_me:$LINENO: result: no" >&5
2960$as_echo "no" >&6; }
2961fi
2962
2963
2964fi
2965if test -z "$CC"; then
2966  if test -n "$ac_tool_prefix"; then
2967  for ac_prog in cl.exe
2968  do
2969    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2970set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2971{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2972$as_echo_n "checking for $ac_word... " >&6; }
2973if test "${ac_cv_prog_CC+set}" = set; then
2974  $as_echo_n "(cached) " >&6
2975else
2976  if test -n "$CC"; then
2977  ac_cv_prog_CC="$CC" # Let the user override the test.
2978else
2979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980for as_dir in $PATH
2981do
2982  IFS=$as_save_IFS
2983  test -z "$as_dir" && as_dir=.
2984  for ac_exec_ext in '' $ac_executable_extensions; do
2985  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2987    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2988    break 2
2989  fi
2990done
2991done
2992IFS=$as_save_IFS
2993
2994fi
2995fi
2996CC=$ac_cv_prog_CC
2997if test -n "$CC"; then
2998  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2999$as_echo "$CC" >&6; }
3000else
3001  { $as_echo "$as_me:$LINENO: result: no" >&5
3002$as_echo "no" >&6; }
3003fi
3004
3005
3006    test -n "$CC" && break
3007  done
3008fi
3009if test -z "$CC"; then
3010  ac_ct_CC=$CC
3011  for ac_prog in cl.exe
3012do
3013  # Extract the first word of "$ac_prog", so it can be a program name with args.
3014set dummy $ac_prog; ac_word=$2
3015{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3016$as_echo_n "checking for $ac_word... " >&6; }
3017if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3018  $as_echo_n "(cached) " >&6
3019else
3020  if test -n "$ac_ct_CC"; then
3021  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3022else
3023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024for as_dir in $PATH
3025do
3026  IFS=$as_save_IFS
3027  test -z "$as_dir" && as_dir=.
3028  for ac_exec_ext in '' $ac_executable_extensions; do
3029  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3030    ac_cv_prog_ac_ct_CC="$ac_prog"
3031    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3032    break 2
3033  fi
3034done
3035done
3036IFS=$as_save_IFS
3037
3038fi
3039fi
3040ac_ct_CC=$ac_cv_prog_ac_ct_CC
3041if test -n "$ac_ct_CC"; then
3042  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3043$as_echo "$ac_ct_CC" >&6; }
3044else
3045  { $as_echo "$as_me:$LINENO: result: no" >&5
3046$as_echo "no" >&6; }
3047fi
3048
3049
3050  test -n "$ac_ct_CC" && break
3051done
3052
3053  if test "x$ac_ct_CC" = x; then
3054    CC=""
3055  else
3056    case $cross_compiling:$ac_tool_warned in
3057yes:)
3058{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3059whose name does not start with the host triplet.  If you think this
3060configuration is useful to you, please write to autoconf@gnu.org." >&5
3061$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3062whose name does not start with the host triplet.  If you think this
3063configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3064ac_tool_warned=yes ;;
3065esac
3066    CC=$ac_ct_CC
3067  fi
3068fi
3069
3070fi
3071
3072
3073test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3074See \`config.log' for more details." >&5
3075$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3076See \`config.log' for more details." >&2;}
3077   { (exit 1); exit 1; }; }
3078
3079# Provide some information about the compiler.
3080$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3081set X $ac_compile
3082ac_compiler=$2
3083{ (ac_try="$ac_compiler --version >&5"
3084case "(($ac_try" in
3085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086  *) ac_try_echo=$ac_try;;
3087esac
3088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3089$as_echo "$ac_try_echo") >&5
3090  (eval "$ac_compiler --version >&5") 2>&5
3091  ac_status=$?
3092  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093  (exit $ac_status); }
3094{ (ac_try="$ac_compiler -v >&5"
3095case "(($ac_try" in
3096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097  *) ac_try_echo=$ac_try;;
3098esac
3099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3100$as_echo "$ac_try_echo") >&5
3101  (eval "$ac_compiler -v >&5") 2>&5
3102  ac_status=$?
3103  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104  (exit $ac_status); }
3105{ (ac_try="$ac_compiler -V >&5"
3106case "(($ac_try" in
3107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108  *) ac_try_echo=$ac_try;;
3109esac
3110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3111$as_echo "$ac_try_echo") >&5
3112  (eval "$ac_compiler -V >&5") 2>&5
3113  ac_status=$?
3114  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115  (exit $ac_status); }
3116
3117cat >conftest.$ac_ext <<_ACEOF
3118/* confdefs.h.  */
3119_ACEOF
3120cat confdefs.h >>conftest.$ac_ext
3121cat >>conftest.$ac_ext <<_ACEOF
3122/* end confdefs.h.  */
3123
3124int
3125main ()
3126{
3127
3128  ;
3129  return 0;
3130}
3131_ACEOF
3132ac_clean_files_save=$ac_clean_files
3133ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3134# Try to create an executable without -o first, disregard a.out.
3135# It will help us diagnose broken compilers, and finding out an intuition
3136# of exeext.
3137{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3138$as_echo_n "checking for C compiler default output file name... " >&6; }
3139ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3140
3141# The possible output files:
3142ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3143
3144ac_rmfiles=
3145for ac_file in $ac_files
3146do
3147  case $ac_file in
3148    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3149    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3150  esac
3151done
3152rm -f $ac_rmfiles
3153
3154if { (ac_try="$ac_link_default"
3155case "(($ac_try" in
3156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157  *) ac_try_echo=$ac_try;;
3158esac
3159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3160$as_echo "$ac_try_echo") >&5
3161  (eval "$ac_link_default") 2>&5
3162  ac_status=$?
3163  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164  (exit $ac_status); }; then
3165  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3166# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3167# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3168# so that the user can short-circuit this test for compilers unknown to
3169# Autoconf.
3170for ac_file in $ac_files ''
3171do
3172  test -f "$ac_file" || continue
3173  case $ac_file in
3174    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3175	;;
3176    [ab].out )
3177	# We found the default executable, but exeext='' is most
3178	# certainly right.
3179	break;;
3180    *.* )
3181        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3182	then :; else
3183	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3184	fi
3185	# We set ac_cv_exeext here because the later test for it is not
3186	# safe: cross compilers may not add the suffix if given an `-o'
3187	# argument, so we may need to know it at that point already.
3188	# Even if this section looks crufty: it has the advantage of
3189	# actually working.
3190	break;;
3191    * )
3192	break;;
3193  esac
3194done
3195test "$ac_cv_exeext" = no && ac_cv_exeext=
3196
3197else
3198  ac_file=''
3199fi
3200
3201{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3202$as_echo "$ac_file" >&6; }
3203if test -z "$ac_file"; then
3204  $as_echo "$as_me: failed program was:" >&5
3205sed 's/^/| /' conftest.$ac_ext >&5
3206
3207{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3208See \`config.log' for more details." >&5
3209$as_echo "$as_me: error: C compiler cannot create executables
3210See \`config.log' for more details." >&2;}
3211   { (exit 77); exit 77; }; }
3212fi
3213
3214ac_exeext=$ac_cv_exeext
3215
3216# Check that the compiler produces executables we can run.  If not, either
3217# the compiler is broken, or we cross compile.
3218{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3219$as_echo_n "checking whether the C compiler works... " >&6; }
3220# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3221# If not cross compiling, check that we can run a simple program.
3222if test "$cross_compiling" != yes; then
3223  if { ac_try='./$ac_file'
3224  { (case "(($ac_try" in
3225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226  *) ac_try_echo=$ac_try;;
3227esac
3228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3229$as_echo "$ac_try_echo") >&5
3230  (eval "$ac_try") 2>&5
3231  ac_status=$?
3232  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233  (exit $ac_status); }; }; then
3234    cross_compiling=no
3235  else
3236    if test "$cross_compiling" = maybe; then
3237	cross_compiling=yes
3238    else
3239	{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3240If you meant to cross compile, use \`--host'.
3241See \`config.log' for more details." >&5
3242$as_echo "$as_me: error: cannot run C compiled programs.
3243If you meant to cross compile, use \`--host'.
3244See \`config.log' for more details." >&2;}
3245   { (exit 1); exit 1; }; }
3246    fi
3247  fi
3248fi
3249{ $as_echo "$as_me:$LINENO: result: yes" >&5
3250$as_echo "yes" >&6; }
3251
3252rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3253ac_clean_files=$ac_clean_files_save
3254# Check that the compiler produces executables we can run.  If not, either
3255# the compiler is broken, or we cross compile.
3256{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3257$as_echo_n "checking whether we are cross compiling... " >&6; }
3258{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3259$as_echo "$cross_compiling" >&6; }
3260
3261{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3262$as_echo_n "checking for suffix of executables... " >&6; }
3263if { (ac_try="$ac_link"
3264case "(($ac_try" in
3265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266  *) ac_try_echo=$ac_try;;
3267esac
3268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3269$as_echo "$ac_try_echo") >&5
3270  (eval "$ac_link") 2>&5
3271  ac_status=$?
3272  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273  (exit $ac_status); }; then
3274  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3275# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3276# work properly (i.e., refer to `conftest.exe'), while it won't with
3277# `rm'.
3278for ac_file in conftest.exe conftest conftest.*; do
3279  test -f "$ac_file" || continue
3280  case $ac_file in
3281    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3282    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3283	  break;;
3284    * ) break;;
3285  esac
3286done
3287else
3288  { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3289See \`config.log' for more details." >&5
3290$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3291See \`config.log' for more details." >&2;}
3292   { (exit 1); exit 1; }; }
3293fi
3294
3295rm -f conftest$ac_cv_exeext
3296{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3297$as_echo "$ac_cv_exeext" >&6; }
3298
3299rm -f conftest.$ac_ext
3300EXEEXT=$ac_cv_exeext
3301ac_exeext=$EXEEXT
3302{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3303$as_echo_n "checking for suffix of object files... " >&6; }
3304if test "${ac_cv_objext+set}" = set; then
3305  $as_echo_n "(cached) " >&6
3306else
3307  cat >conftest.$ac_ext <<_ACEOF
3308/* confdefs.h.  */
3309_ACEOF
3310cat confdefs.h >>conftest.$ac_ext
3311cat >>conftest.$ac_ext <<_ACEOF
3312/* end confdefs.h.  */
3313
3314int
3315main ()
3316{
3317
3318  ;
3319  return 0;
3320}
3321_ACEOF
3322rm -f conftest.o conftest.obj
3323if { (ac_try="$ac_compile"
3324case "(($ac_try" in
3325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326  *) ac_try_echo=$ac_try;;
3327esac
3328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3329$as_echo "$ac_try_echo") >&5
3330  (eval "$ac_compile") 2>&5
3331  ac_status=$?
3332  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333  (exit $ac_status); }; then
3334  for ac_file in conftest.o conftest.obj conftest.*; do
3335  test -f "$ac_file" || continue;
3336  case $ac_file in
3337    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3338    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3339       break;;
3340  esac
3341done
3342else
3343  $as_echo "$as_me: failed program was:" >&5
3344sed 's/^/| /' conftest.$ac_ext >&5
3345
3346{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3347See \`config.log' for more details." >&5
3348$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3349See \`config.log' for more details." >&2;}
3350   { (exit 1); exit 1; }; }
3351fi
3352
3353rm -f conftest.$ac_cv_objext conftest.$ac_ext
3354fi
3355{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3356$as_echo "$ac_cv_objext" >&6; }
3357OBJEXT=$ac_cv_objext
3358ac_objext=$OBJEXT
3359{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3360$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3361if test "${ac_cv_c_compiler_gnu+set}" = set; then
3362  $as_echo_n "(cached) " >&6
3363else
3364  cat >conftest.$ac_ext <<_ACEOF
3365/* confdefs.h.  */
3366_ACEOF
3367cat confdefs.h >>conftest.$ac_ext
3368cat >>conftest.$ac_ext <<_ACEOF
3369/* end confdefs.h.  */
3370
3371int
3372main ()
3373{
3374#ifndef __GNUC__
3375       choke me
3376#endif
3377
3378  ;
3379  return 0;
3380}
3381_ACEOF
3382rm -f conftest.$ac_objext
3383if { (ac_try="$ac_compile"
3384case "(($ac_try" in
3385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386  *) ac_try_echo=$ac_try;;
3387esac
3388eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3389$as_echo "$ac_try_echo") >&5
3390  (eval "$ac_compile") 2>conftest.er1
3391  ac_status=$?
3392  grep -v '^ *+' conftest.er1 >conftest.err
3393  rm -f conftest.er1
3394  cat conftest.err >&5
3395  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396  (exit $ac_status); } && {
3397	 test -z "$ac_c_werror_flag" ||
3398	 test ! -s conftest.err
3399       } && test -s conftest.$ac_objext; then
3400  ac_compiler_gnu=yes
3401else
3402  $as_echo "$as_me: failed program was:" >&5
3403sed 's/^/| /' conftest.$ac_ext >&5
3404
3405	ac_compiler_gnu=no
3406fi
3407
3408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3409ac_cv_c_compiler_gnu=$ac_compiler_gnu
3410
3411fi
3412{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3413$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3414if test $ac_compiler_gnu = yes; then
3415  GCC=yes
3416else
3417  GCC=
3418fi
3419ac_test_CFLAGS=${CFLAGS+set}
3420ac_save_CFLAGS=$CFLAGS
3421{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3422$as_echo_n "checking whether $CC accepts -g... " >&6; }
3423if test "${ac_cv_prog_cc_g+set}" = set; then
3424  $as_echo_n "(cached) " >&6
3425else
3426  ac_save_c_werror_flag=$ac_c_werror_flag
3427   ac_c_werror_flag=yes
3428   ac_cv_prog_cc_g=no
3429   CFLAGS="-g"
3430   cat >conftest.$ac_ext <<_ACEOF
3431/* confdefs.h.  */
3432_ACEOF
3433cat confdefs.h >>conftest.$ac_ext
3434cat >>conftest.$ac_ext <<_ACEOF
3435/* end confdefs.h.  */
3436
3437int
3438main ()
3439{
3440
3441  ;
3442  return 0;
3443}
3444_ACEOF
3445rm -f conftest.$ac_objext
3446if { (ac_try="$ac_compile"
3447case "(($ac_try" in
3448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449  *) ac_try_echo=$ac_try;;
3450esac
3451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3452$as_echo "$ac_try_echo") >&5
3453  (eval "$ac_compile") 2>conftest.er1
3454  ac_status=$?
3455  grep -v '^ *+' conftest.er1 >conftest.err
3456  rm -f conftest.er1
3457  cat conftest.err >&5
3458  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459  (exit $ac_status); } && {
3460	 test -z "$ac_c_werror_flag" ||
3461	 test ! -s conftest.err
3462       } && test -s conftest.$ac_objext; then
3463  ac_cv_prog_cc_g=yes
3464else
3465  $as_echo "$as_me: failed program was:" >&5
3466sed 's/^/| /' conftest.$ac_ext >&5
3467
3468	CFLAGS=""
3469      cat >conftest.$ac_ext <<_ACEOF
3470/* confdefs.h.  */
3471_ACEOF
3472cat confdefs.h >>conftest.$ac_ext
3473cat >>conftest.$ac_ext <<_ACEOF
3474/* end confdefs.h.  */
3475
3476int
3477main ()
3478{
3479
3480  ;
3481  return 0;
3482}
3483_ACEOF
3484rm -f conftest.$ac_objext
3485if { (ac_try="$ac_compile"
3486case "(($ac_try" in
3487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488  *) ac_try_echo=$ac_try;;
3489esac
3490eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3491$as_echo "$ac_try_echo") >&5
3492  (eval "$ac_compile") 2>conftest.er1
3493  ac_status=$?
3494  grep -v '^ *+' conftest.er1 >conftest.err
3495  rm -f conftest.er1
3496  cat conftest.err >&5
3497  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498  (exit $ac_status); } && {
3499	 test -z "$ac_c_werror_flag" ||
3500	 test ! -s conftest.err
3501       } && test -s conftest.$ac_objext; then
3502  :
3503else
3504  $as_echo "$as_me: failed program was:" >&5
3505sed 's/^/| /' conftest.$ac_ext >&5
3506
3507	ac_c_werror_flag=$ac_save_c_werror_flag
3508	 CFLAGS="-g"
3509	 cat >conftest.$ac_ext <<_ACEOF
3510/* confdefs.h.  */
3511_ACEOF
3512cat confdefs.h >>conftest.$ac_ext
3513cat >>conftest.$ac_ext <<_ACEOF
3514/* end confdefs.h.  */
3515
3516int
3517main ()
3518{
3519
3520  ;
3521  return 0;
3522}
3523_ACEOF
3524rm -f conftest.$ac_objext
3525if { (ac_try="$ac_compile"
3526case "(($ac_try" in
3527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528  *) ac_try_echo=$ac_try;;
3529esac
3530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3531$as_echo "$ac_try_echo") >&5
3532  (eval "$ac_compile") 2>conftest.er1
3533  ac_status=$?
3534  grep -v '^ *+' conftest.er1 >conftest.err
3535  rm -f conftest.er1
3536  cat conftest.err >&5
3537  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538  (exit $ac_status); } && {
3539	 test -z "$ac_c_werror_flag" ||
3540	 test ! -s conftest.err
3541       } && test -s conftest.$ac_objext; then
3542  ac_cv_prog_cc_g=yes
3543else
3544  $as_echo "$as_me: failed program was:" >&5
3545sed 's/^/| /' conftest.$ac_ext >&5
3546
3547
3548fi
3549
3550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551fi
3552
3553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554fi
3555
3556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557   ac_c_werror_flag=$ac_save_c_werror_flag
3558fi
3559{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3560$as_echo "$ac_cv_prog_cc_g" >&6; }
3561if test "$ac_test_CFLAGS" = set; then
3562  CFLAGS=$ac_save_CFLAGS
3563elif test $ac_cv_prog_cc_g = yes; then
3564  if test "$GCC" = yes; then
3565    CFLAGS="-g -O2"
3566  else
3567    CFLAGS="-g"
3568  fi
3569else
3570  if test "$GCC" = yes; then
3571    CFLAGS="-O2"
3572  else
3573    CFLAGS=
3574  fi
3575fi
3576{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3577$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3578if test "${ac_cv_prog_cc_c89+set}" = set; then
3579  $as_echo_n "(cached) " >&6
3580else
3581  ac_cv_prog_cc_c89=no
3582ac_save_CC=$CC
3583cat >conftest.$ac_ext <<_ACEOF
3584/* confdefs.h.  */
3585_ACEOF
3586cat confdefs.h >>conftest.$ac_ext
3587cat >>conftest.$ac_ext <<_ACEOF
3588/* end confdefs.h.  */
3589#include <stdarg.h>
3590#include <stdio.h>
3591#include <sys/types.h>
3592#include <sys/stat.h>
3593/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3594struct buf { int x; };
3595FILE * (*rcsopen) (struct buf *, struct stat *, int);
3596static char *e (p, i)
3597     char **p;
3598     int i;
3599{
3600  return p[i];
3601}
3602static char *f (char * (*g) (char **, int), char **p, ...)
3603{
3604  char *s;
3605  va_list v;
3606  va_start (v,p);
3607  s = g (p, va_arg (v,int));
3608  va_end (v);
3609  return s;
3610}
3611
3612/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3613   function prototypes and stuff, but not '\xHH' hex character constants.
3614   These don't provoke an error unfortunately, instead are silently treated
3615   as 'x'.  The following induces an error, until -std is added to get
3616   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3617   array size at least.  It's necessary to write '\x00'==0 to get something
3618   that's true only with -std.  */
3619int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3620
3621/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3622   inside strings and character constants.  */
3623#define FOO(x) 'x'
3624int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3625
3626int test (int i, double x);
3627struct s1 {int (*f) (int a);};
3628struct s2 {int (*f) (double a);};
3629int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3630int argc;
3631char **argv;
3632int
3633main ()
3634{
3635return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3636  ;
3637  return 0;
3638}
3639_ACEOF
3640for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3641	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3642do
3643  CC="$ac_save_CC $ac_arg"
3644  rm -f conftest.$ac_objext
3645if { (ac_try="$ac_compile"
3646case "(($ac_try" in
3647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648  *) ac_try_echo=$ac_try;;
3649esac
3650eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3651$as_echo "$ac_try_echo") >&5
3652  (eval "$ac_compile") 2>conftest.er1
3653  ac_status=$?
3654  grep -v '^ *+' conftest.er1 >conftest.err
3655  rm -f conftest.er1
3656  cat conftest.err >&5
3657  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658  (exit $ac_status); } && {
3659	 test -z "$ac_c_werror_flag" ||
3660	 test ! -s conftest.err
3661       } && test -s conftest.$ac_objext; then
3662  ac_cv_prog_cc_c89=$ac_arg
3663else
3664  $as_echo "$as_me: failed program was:" >&5
3665sed 's/^/| /' conftest.$ac_ext >&5
3666
3667
3668fi
3669
3670rm -f core conftest.err conftest.$ac_objext
3671  test "x$ac_cv_prog_cc_c89" != "xno" && break
3672done
3673rm -f conftest.$ac_ext
3674CC=$ac_save_CC
3675
3676fi
3677# AC_CACHE_VAL
3678case "x$ac_cv_prog_cc_c89" in
3679  x)
3680    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3681$as_echo "none needed" >&6; } ;;
3682  xno)
3683    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3684$as_echo "unsupported" >&6; } ;;
3685  *)
3686    CC="$CC $ac_cv_prog_cc_c89"
3687    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3688$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3689esac
3690
3691
3692ac_ext=c
3693ac_cpp='$CPP $CPPFLAGS'
3694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3696ac_compiler_gnu=$ac_cv_c_compiler_gnu
3697
3698depcc="$CC"   am_compiler_list=
3699
3700{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3701$as_echo_n "checking dependency style of $depcc... " >&6; }
3702if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3703  $as_echo_n "(cached) " >&6
3704else
3705  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3706  # We make a subdir and do the tests there.  Otherwise we can end up
3707  # making bogus files that we don't know about and never remove.  For
3708  # instance it was reported that on HP-UX the gcc test will end up
3709  # making a dummy file named `D' -- because `-MD' means `put the output
3710  # in D'.
3711  mkdir conftest.dir
3712  # Copy depcomp to subdir because otherwise we won't find it if we're
3713  # using a relative directory.
3714  cp "$am_depcomp" conftest.dir
3715  cd conftest.dir
3716  # We will build objects and dependencies in a subdirectory because
3717  # it helps to detect inapplicable dependency modes.  For instance
3718  # both Tru64's cc and ICC support -MD to output dependencies as a
3719  # side effect of compilation, but ICC will put the dependencies in
3720  # the current directory while Tru64 will put them in the object
3721  # directory.
3722  mkdir sub
3723
3724  am_cv_CC_dependencies_compiler_type=none
3725  if test "$am_compiler_list" = ""; then
3726     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3727  fi
3728  for depmode in $am_compiler_list; do
3729    # Setup a source with many dependencies, because some compilers
3730    # like to wrap large dependency lists on column 80 (with \), and
3731    # we should not choose a depcomp mode which is confused by this.
3732    #
3733    # We need to recreate these files for each test, as the compiler may
3734    # overwrite some of them when testing with obscure command lines.
3735    # This happens at least with the AIX C compiler.
3736    : > sub/conftest.c
3737    for i in 1 2 3 4 5 6; do
3738      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3739      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3740      # Solaris 8's {/usr,}/bin/sh.
3741      touch sub/conftst$i.h
3742    done
3743    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3744
3745    case $depmode in
3746    nosideeffect)
3747      # after this tag, mechanisms are not by side-effect, so they'll
3748      # only be used when explicitly requested
3749      if test "x$enable_dependency_tracking" = xyes; then
3750	continue
3751      else
3752	break
3753      fi
3754      ;;
3755    none) break ;;
3756    esac
3757    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3758    # mode.  It turns out that the SunPro C++ compiler does not properly
3759    # handle `-M -o', and we need to detect this.
3760    if depmode=$depmode \
3761       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3762       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3763       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3764         >/dev/null 2>conftest.err &&
3765       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3766       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3767       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3768      # icc doesn't choke on unknown options, it will just issue warnings
3769      # or remarks (even with -Werror).  So we grep stderr for any message
3770      # that says an option was ignored or not supported.
3771      # When given -MP, icc 7.0 and 7.1 complain thusly:
3772      #   icc: Command line warning: ignoring option '-M'; no argument required
3773      # The diagnosis changed in icc 8.0:
3774      #   icc: Command line remark: option '-MP' not supported
3775      if (grep 'ignoring option' conftest.err ||
3776          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3777        am_cv_CC_dependencies_compiler_type=$depmode
3778        break
3779      fi
3780    fi
3781  done
3782
3783  cd ..
3784  rm -rf conftest.dir
3785else
3786  am_cv_CC_dependencies_compiler_type=none
3787fi
3788
3789fi
3790{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3791$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3792CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3793
3794
3795
3796if
3797  test "x$enable_dependency_tracking" != xno \
3798  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3799  am__fastdepCC_TRUE=
3800  am__fastdepCC_FALSE='#'
3801else
3802  am__fastdepCC_TRUE='#'
3803  am__fastdepCC_FALSE=
3804fi
3805
3806
3807{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3808$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3809if test "${lt_cv_path_SED+set}" = set; then
3810  $as_echo_n "(cached) " >&6
3811else
3812  # Loop through the user's path and test for sed and gsed.
3813# Then use that list of sed's as ones to test for truncation.
3814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815for as_dir in $PATH
3816do
3817  IFS=$as_save_IFS
3818  test -z "$as_dir" && as_dir=.
3819  for lt_ac_prog in sed gsed; do
3820    for ac_exec_ext in '' $ac_executable_extensions; do
3821      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3822        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3823      fi
3824    done
3825  done
3826done
3827IFS=$as_save_IFS
3828lt_ac_max=0
3829lt_ac_count=0
3830# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3831# along with /bin/sed that truncates output.
3832for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3833  test ! -f $lt_ac_sed && continue
3834  cat /dev/null > conftest.in
3835  lt_ac_count=0
3836  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3837  # Check for GNU sed and select it if it is found.
3838  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3839    lt_cv_path_SED=$lt_ac_sed
3840    break
3841  fi
3842  while true; do
3843    cat conftest.in conftest.in >conftest.tmp
3844    mv conftest.tmp conftest.in
3845    cp conftest.in conftest.nl
3846    echo >>conftest.nl
3847    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3848    cmp -s conftest.out conftest.nl || break
3849    # 10000 chars as input seems more than enough
3850    test $lt_ac_count -gt 10 && break
3851    lt_ac_count=`expr $lt_ac_count + 1`
3852    if test $lt_ac_count -gt $lt_ac_max; then
3853      lt_ac_max=$lt_ac_count
3854      lt_cv_path_SED=$lt_ac_sed
3855    fi
3856  done
3857done
3858
3859fi
3860
3861SED=$lt_cv_path_SED
3862
3863{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3864$as_echo "$SED" >&6; }
3865
3866{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3867$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3868if test "${ac_cv_path_GREP+set}" = set; then
3869  $as_echo_n "(cached) " >&6
3870else
3871  if test -z "$GREP"; then
3872  ac_path_GREP_found=false
3873  # Loop through the user's path and test for each of PROGNAME-LIST
3874  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3876do
3877  IFS=$as_save_IFS
3878  test -z "$as_dir" && as_dir=.
3879  for ac_prog in grep ggrep; do
3880    for ac_exec_ext in '' $ac_executable_extensions; do
3881      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3882      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3883# Check for GNU ac_path_GREP and select it if it is found.
3884  # Check for GNU $ac_path_GREP
3885case `"$ac_path_GREP" --version 2>&1` in
3886*GNU*)
3887  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3888*)
3889  ac_count=0
3890  $as_echo_n 0123456789 >"conftest.in"
3891  while :
3892  do
3893    cat "conftest.in" "conftest.in" >"conftest.tmp"
3894    mv "conftest.tmp" "conftest.in"
3895    cp "conftest.in" "conftest.nl"
3896    $as_echo 'GREP' >> "conftest.nl"
3897    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3898    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3899    ac_count=`expr $ac_count + 1`
3900    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3901      # Best one so far, save it but keep looking for a better one
3902      ac_cv_path_GREP="$ac_path_GREP"
3903      ac_path_GREP_max=$ac_count
3904    fi
3905    # 10*(2^10) chars as input seems more than enough
3906    test $ac_count -gt 10 && break
3907  done
3908  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3909esac
3910
3911      $ac_path_GREP_found && break 3
3912    done
3913  done
3914done
3915IFS=$as_save_IFS
3916  if test -z "$ac_cv_path_GREP"; then
3917    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3918$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3919   { (exit 1); exit 1; }; }
3920  fi
3921else
3922  ac_cv_path_GREP=$GREP
3923fi
3924
3925fi
3926{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3927$as_echo "$ac_cv_path_GREP" >&6; }
3928 GREP="$ac_cv_path_GREP"
3929
3930
3931{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3932$as_echo_n "checking for egrep... " >&6; }
3933if test "${ac_cv_path_EGREP+set}" = set; then
3934  $as_echo_n "(cached) " >&6
3935else
3936  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3937   then ac_cv_path_EGREP="$GREP -E"
3938   else
3939     if test -z "$EGREP"; then
3940  ac_path_EGREP_found=false
3941  # Loop through the user's path and test for each of PROGNAME-LIST
3942  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3944do
3945  IFS=$as_save_IFS
3946  test -z "$as_dir" && as_dir=.
3947  for ac_prog in egrep; do
3948    for ac_exec_ext in '' $ac_executable_extensions; do
3949      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3950      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3951# Check for GNU ac_path_EGREP and select it if it is found.
3952  # Check for GNU $ac_path_EGREP
3953case `"$ac_path_EGREP" --version 2>&1` in
3954*GNU*)
3955  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3956*)
3957  ac_count=0
3958  $as_echo_n 0123456789 >"conftest.in"
3959  while :
3960  do
3961    cat "conftest.in" "conftest.in" >"conftest.tmp"
3962    mv "conftest.tmp" "conftest.in"
3963    cp "conftest.in" "conftest.nl"
3964    $as_echo 'EGREP' >> "conftest.nl"
3965    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3966    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3967    ac_count=`expr $ac_count + 1`
3968    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3969      # Best one so far, save it but keep looking for a better one
3970      ac_cv_path_EGREP="$ac_path_EGREP"
3971      ac_path_EGREP_max=$ac_count
3972    fi
3973    # 10*(2^10) chars as input seems more than enough
3974    test $ac_count -gt 10 && break
3975  done
3976  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3977esac
3978
3979      $ac_path_EGREP_found && break 3
3980    done
3981  done
3982done
3983IFS=$as_save_IFS
3984  if test -z "$ac_cv_path_EGREP"; then
3985    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3986$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3987   { (exit 1); exit 1; }; }
3988  fi
3989else
3990  ac_cv_path_EGREP=$EGREP
3991fi
3992
3993   fi
3994fi
3995{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3996$as_echo "$ac_cv_path_EGREP" >&6; }
3997 EGREP="$ac_cv_path_EGREP"
3998
3999
4000
4001# Check whether --with-gnu-ld was given.
4002if test "${with_gnu_ld+set}" = set; then
4003  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4004else
4005  with_gnu_ld=no
4006fi
4007
4008ac_prog=ld
4009if test "$GCC" = yes; then
4010  # Check if gcc -print-prog-name=ld gives a path.
4011  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4012$as_echo_n "checking for ld used by $CC... " >&6; }
4013  case $host in
4014  *-*-mingw*)
4015    # gcc leaves a trailing carriage return which upsets mingw
4016    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4017  *)
4018    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4019  esac
4020  case $ac_prog in
4021    # Accept absolute paths.
4022    [\\/]* | ?:[\\/]*)
4023      re_direlt='/[^/][^/]*/\.\./'
4024      # Canonicalize the pathname of ld
4025      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4026      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4027	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4028      done
4029      test -z "$LD" && LD="$ac_prog"
4030      ;;
4031  "")
4032    # If it fails, then pretend we aren't using GCC.
4033    ac_prog=ld
4034    ;;
4035  *)
4036    # If it is relative, then search for the first ld in PATH.
4037    with_gnu_ld=unknown
4038    ;;
4039  esac
4040elif test "$with_gnu_ld" = yes; then
4041  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4042$as_echo_n "checking for GNU ld... " >&6; }
4043else
4044  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4045$as_echo_n "checking for non-GNU ld... " >&6; }
4046fi
4047if test "${lt_cv_path_LD+set}" = set; then
4048  $as_echo_n "(cached) " >&6
4049else
4050  if test -z "$LD"; then
4051  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4052  for ac_dir in $PATH; do
4053    IFS="$lt_save_ifs"
4054    test -z "$ac_dir" && ac_dir=.
4055    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4056      lt_cv_path_LD="$ac_dir/$ac_prog"
4057      # Check to see if the program is GNU ld.  I'd rather use --version,
4058      # but apparently some variants of GNU ld only accept -v.
4059      # Break only if it was the GNU/non-GNU ld that we prefer.
4060      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4061      *GNU* | *'with BFD'*)
4062	test "$with_gnu_ld" != no && break
4063	;;
4064      *)
4065	test "$with_gnu_ld" != yes && break
4066	;;
4067      esac
4068    fi
4069  done
4070  IFS="$lt_save_ifs"
4071else
4072  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4073fi
4074fi
4075
4076LD="$lt_cv_path_LD"
4077if test -n "$LD"; then
4078  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4079$as_echo "$LD" >&6; }
4080else
4081  { $as_echo "$as_me:$LINENO: result: no" >&5
4082$as_echo "no" >&6; }
4083fi
4084test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4085$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4086   { (exit 1); exit 1; }; }
4087{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4088$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4089if test "${lt_cv_prog_gnu_ld+set}" = set; then
4090  $as_echo_n "(cached) " >&6
4091else
4092  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4093case `$LD -v 2>&1 </dev/null` in
4094*GNU* | *'with BFD'*)
4095  lt_cv_prog_gnu_ld=yes
4096  ;;
4097*)
4098  lt_cv_prog_gnu_ld=no
4099  ;;
4100esac
4101fi
4102{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4103$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4104with_gnu_ld=$lt_cv_prog_gnu_ld
4105
4106
4107{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4108$as_echo_n "checking for $LD option to reload object files... " >&6; }
4109if test "${lt_cv_ld_reload_flag+set}" = set; then
4110  $as_echo_n "(cached) " >&6
4111else
4112  lt_cv_ld_reload_flag='-r'
4113fi
4114{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4115$as_echo "$lt_cv_ld_reload_flag" >&6; }
4116reload_flag=$lt_cv_ld_reload_flag
4117case $reload_flag in
4118"" | " "*) ;;
4119*) reload_flag=" $reload_flag" ;;
4120esac
4121reload_cmds='$LD$reload_flag -o $output$reload_objs'
4122case $host_os in
4123  darwin*)
4124    if test "$GCC" = yes; then
4125      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4126    else
4127      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4128    fi
4129    ;;
4130esac
4131
4132{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4133$as_echo_n "checking for BSD-compatible nm... " >&6; }
4134if test "${lt_cv_path_NM+set}" = set; then
4135  $as_echo_n "(cached) " >&6
4136else
4137  if test -n "$NM"; then
4138  # Let the user override the test.
4139  lt_cv_path_NM="$NM"
4140else
4141  lt_nm_to_check="${ac_tool_prefix}nm"
4142  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4143    lt_nm_to_check="$lt_nm_to_check nm"
4144  fi
4145  for lt_tmp_nm in $lt_nm_to_check; do
4146    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4147    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4148      IFS="$lt_save_ifs"
4149      test -z "$ac_dir" && ac_dir=.
4150      tmp_nm="$ac_dir/$lt_tmp_nm"
4151      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4152	# Check to see if the nm accepts a BSD-compat flag.
4153	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4154	#   nm: unknown option "B" ignored
4155	# Tru64's nm complains that /dev/null is an invalid object file
4156	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4157	*/dev/null* | *'Invalid file or object type'*)
4158	  lt_cv_path_NM="$tmp_nm -B"
4159	  break
4160	  ;;
4161	*)
4162	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4163	  */dev/null*)
4164	    lt_cv_path_NM="$tmp_nm -p"
4165	    break
4166	    ;;
4167	  *)
4168	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4169	    continue # so that we can try to find one that supports BSD flags
4170	    ;;
4171	  esac
4172	  ;;
4173	esac
4174      fi
4175    done
4176    IFS="$lt_save_ifs"
4177  done
4178  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4179fi
4180fi
4181{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4182$as_echo "$lt_cv_path_NM" >&6; }
4183NM="$lt_cv_path_NM"
4184
4185{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4186$as_echo_n "checking whether ln -s works... " >&6; }
4187LN_S=$as_ln_s
4188if test "$LN_S" = "ln -s"; then
4189  { $as_echo "$as_me:$LINENO: result: yes" >&5
4190$as_echo "yes" >&6; }
4191else
4192  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4193$as_echo "no, using $LN_S" >&6; }
4194fi
4195
4196{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4197$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4198if test "${lt_cv_deplibs_check_method+set}" = set; then
4199  $as_echo_n "(cached) " >&6
4200else
4201  lt_cv_file_magic_cmd='$MAGIC_CMD'
4202lt_cv_file_magic_test_file=
4203lt_cv_deplibs_check_method='unknown'
4204# Need to set the preceding variable on all platforms that support
4205# interlibrary dependencies.
4206# 'none' -- dependencies not supported.
4207# `unknown' -- same as none, but documents that we really don't know.
4208# 'pass_all' -- all dependencies passed with no checks.
4209# 'test_compile' -- check by making test program.
4210# 'file_magic [[regex]]' -- check by looking for files in library path
4211# which responds to the $file_magic_cmd with a given extended regex.
4212# If you have `file' or equivalent on your system and you're not sure
4213# whether `pass_all' will *always* work, you probably want this one.
4214
4215case $host_os in
4216aix[4-9]*)
4217  lt_cv_deplibs_check_method=pass_all
4218  ;;
4219
4220beos*)
4221  lt_cv_deplibs_check_method=pass_all
4222  ;;
4223
4224bsdi[45]*)
4225  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4226  lt_cv_file_magic_cmd='/usr/bin/file -L'
4227  lt_cv_file_magic_test_file=/shlib/libc.so
4228  ;;
4229
4230cygwin*)
4231  # func_win32_libid is a shell function defined in ltmain.sh
4232  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4233  lt_cv_file_magic_cmd='func_win32_libid'
4234  ;;
4235
4236mingw* | pw32*)
4237  # Base MSYS/MinGW do not provide the 'file' command needed by
4238  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4239  # unless we find 'file', for example because we are cross-compiling.
4240  if ( file / ) >/dev/null 2>&1; then
4241    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4242    lt_cv_file_magic_cmd='func_win32_libid'
4243  else
4244    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4245    lt_cv_file_magic_cmd='$OBJDUMP -f'
4246  fi
4247  ;;
4248
4249darwin* | rhapsody*)
4250  lt_cv_deplibs_check_method=pass_all
4251  ;;
4252
4253freebsd* | dragonfly*)
4254  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4255    case $host_cpu in
4256    i*86 )
4257      # Not sure whether the presence of OpenBSD here was a mistake.
4258      # Let's accept both of them until this is cleared up.
4259      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4260      lt_cv_file_magic_cmd=/usr/bin/file
4261      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4262      ;;
4263    esac
4264  else
4265    lt_cv_deplibs_check_method=pass_all
4266  fi
4267  ;;
4268
4269gnu*)
4270  lt_cv_deplibs_check_method=pass_all
4271  ;;
4272
4273hpux10.20* | hpux11*)
4274  lt_cv_file_magic_cmd=/usr/bin/file
4275  case $host_cpu in
4276  ia64*)
4277    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4278    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4279    ;;
4280  hppa*64*)
4281    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]'
4282    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4283    ;;
4284  *)
4285    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4286    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4287    ;;
4288  esac
4289  ;;
4290
4291interix[3-9]*)
4292  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4293  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4294  ;;
4295
4296irix5* | irix6* | nonstopux*)
4297  case $LD in
4298  *-32|*"-32 ") libmagic=32-bit;;
4299  *-n32|*"-n32 ") libmagic=N32;;
4300  *-64|*"-64 ") libmagic=64-bit;;
4301  *) libmagic=never-match;;
4302  esac
4303  lt_cv_deplibs_check_method=pass_all
4304  ;;
4305
4306# This must be Linux ELF.
4307linux* | k*bsd*-gnu)
4308  lt_cv_deplibs_check_method=pass_all
4309  ;;
4310
4311netbsd*)
4312  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4313    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4314  else
4315    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4316  fi
4317  ;;
4318
4319newos6*)
4320  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4321  lt_cv_file_magic_cmd=/usr/bin/file
4322  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4323  ;;
4324
4325nto-qnx*)
4326  lt_cv_deplibs_check_method=unknown
4327  ;;
4328
4329openbsd*)
4330  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4331    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4332  else
4333    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4334  fi
4335  ;;
4336
4337osf3* | osf4* | osf5*)
4338  lt_cv_deplibs_check_method=pass_all
4339  ;;
4340
4341rdos*)
4342  lt_cv_deplibs_check_method=pass_all
4343  ;;
4344
4345solaris*)
4346  lt_cv_deplibs_check_method=pass_all
4347  ;;
4348
4349sysv4 | sysv4.3*)
4350  case $host_vendor in
4351  motorola)
4352    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]'
4353    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4354    ;;
4355  ncr)
4356    lt_cv_deplibs_check_method=pass_all
4357    ;;
4358  sequent)
4359    lt_cv_file_magic_cmd='/bin/file'
4360    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4361    ;;
4362  sni)
4363    lt_cv_file_magic_cmd='/bin/file'
4364    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4365    lt_cv_file_magic_test_file=/lib/libc.so
4366    ;;
4367  siemens)
4368    lt_cv_deplibs_check_method=pass_all
4369    ;;
4370  pc)
4371    lt_cv_deplibs_check_method=pass_all
4372    ;;
4373  esac
4374  ;;
4375
4376sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4377  lt_cv_deplibs_check_method=pass_all
4378  ;;
4379esac
4380
4381fi
4382{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4383$as_echo "$lt_cv_deplibs_check_method" >&6; }
4384file_magic_cmd=$lt_cv_file_magic_cmd
4385deplibs_check_method=$lt_cv_deplibs_check_method
4386test -z "$deplibs_check_method" && deplibs_check_method=unknown
4387
4388
4389
4390
4391# If no C compiler was specified, use CC.
4392LTCC=${LTCC-"$CC"}
4393
4394# If no C compiler flags were specified, use CFLAGS.
4395LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4396
4397# Allow CC to be a program name with arguments.
4398compiler=$CC
4399
4400
4401# Check whether --enable-libtool-lock was given.
4402if test "${enable_libtool_lock+set}" = set; then
4403  enableval=$enable_libtool_lock;
4404fi
4405
4406test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4407
4408# Some flags need to be propagated to the compiler or linker for good
4409# libtool support.
4410case $host in
4411ia64-*-hpux*)
4412  # Find out which ABI we are using.
4413  echo 'int i;' > conftest.$ac_ext
4414  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4415  (eval $ac_compile) 2>&5
4416  ac_status=$?
4417  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418  (exit $ac_status); }; then
4419    case `/usr/bin/file conftest.$ac_objext` in
4420    *ELF-32*)
4421      HPUX_IA64_MODE="32"
4422      ;;
4423    *ELF-64*)
4424      HPUX_IA64_MODE="64"
4425      ;;
4426    esac
4427  fi
4428  rm -rf conftest*
4429  ;;
4430*-*-irix6*)
4431  # Find out which ABI we are using.
4432  echo '#line 4432 "configure"' > conftest.$ac_ext
4433  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4434  (eval $ac_compile) 2>&5
4435  ac_status=$?
4436  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437  (exit $ac_status); }; then
4438   if test "$lt_cv_prog_gnu_ld" = yes; then
4439    case `/usr/bin/file conftest.$ac_objext` in
4440    *32-bit*)
4441      LD="${LD-ld} -melf32bsmip"
4442      ;;
4443    *N32*)
4444      LD="${LD-ld} -melf32bmipn32"
4445      ;;
4446    *64-bit*)
4447      LD="${LD-ld} -melf64bmip"
4448      ;;
4449    esac
4450   else
4451    case `/usr/bin/file conftest.$ac_objext` in
4452    *32-bit*)
4453      LD="${LD-ld} -32"
4454      ;;
4455    *N32*)
4456      LD="${LD-ld} -n32"
4457      ;;
4458    *64-bit*)
4459      LD="${LD-ld} -64"
4460      ;;
4461    esac
4462   fi
4463  fi
4464  rm -rf conftest*
4465  ;;
4466
4467x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4468s390*-*linux*|sparc*-*linux*)
4469  # Find out which ABI we are using.
4470  echo 'int i;' > conftest.$ac_ext
4471  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4472  (eval $ac_compile) 2>&5
4473  ac_status=$?
4474  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475  (exit $ac_status); }; then
4476    case `/usr/bin/file conftest.o` in
4477    *32-bit*)
4478      case $host in
4479        x86_64-*kfreebsd*-gnu)
4480          LD="${LD-ld} -m elf_i386_fbsd"
4481          ;;
4482        x86_64-*linux*)
4483          LD="${LD-ld} -m elf_i386"
4484          ;;
4485        ppc64-*linux*|powerpc64-*linux*)
4486          LD="${LD-ld} -m elf32ppclinux"
4487          ;;
4488        s390x-*linux*)
4489          LD="${LD-ld} -m elf_s390"
4490          ;;
4491        sparc64-*linux*)
4492          LD="${LD-ld} -m elf32_sparc"
4493          ;;
4494      esac
4495      ;;
4496    *64-bit*)
4497      case $host in
4498        x86_64-*kfreebsd*-gnu)
4499          LD="${LD-ld} -m elf_x86_64_fbsd"
4500          ;;
4501        x86_64-*linux*)
4502          LD="${LD-ld} -m elf_x86_64"
4503          ;;
4504        ppc*-*linux*|powerpc*-*linux*)
4505          LD="${LD-ld} -m elf64ppc"
4506          ;;
4507        s390*-*linux*)
4508          LD="${LD-ld} -m elf64_s390"
4509          ;;
4510        sparc*-*linux*)
4511          LD="${LD-ld} -m elf64_sparc"
4512          ;;
4513      esac
4514      ;;
4515    esac
4516  fi
4517  rm -rf conftest*
4518  ;;
4519
4520*-*-sco3.2v5*)
4521  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4522  SAVE_CFLAGS="$CFLAGS"
4523  CFLAGS="$CFLAGS -belf"
4524  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4525$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4526if test "${lt_cv_cc_needs_belf+set}" = set; then
4527  $as_echo_n "(cached) " >&6
4528else
4529  ac_ext=c
4530ac_cpp='$CPP $CPPFLAGS'
4531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533ac_compiler_gnu=$ac_cv_c_compiler_gnu
4534
4535     cat >conftest.$ac_ext <<_ACEOF
4536/* confdefs.h.  */
4537_ACEOF
4538cat confdefs.h >>conftest.$ac_ext
4539cat >>conftest.$ac_ext <<_ACEOF
4540/* end confdefs.h.  */
4541
4542int
4543main ()
4544{
4545
4546  ;
4547  return 0;
4548}
4549_ACEOF
4550rm -f conftest.$ac_objext conftest$ac_exeext
4551if { (ac_try="$ac_link"
4552case "(($ac_try" in
4553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554  *) ac_try_echo=$ac_try;;
4555esac
4556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4557$as_echo "$ac_try_echo") >&5
4558  (eval "$ac_link") 2>conftest.er1
4559  ac_status=$?
4560  grep -v '^ *+' conftest.er1 >conftest.err
4561  rm -f conftest.er1
4562  cat conftest.err >&5
4563  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564  (exit $ac_status); } && {
4565	 test -z "$ac_c_werror_flag" ||
4566	 test ! -s conftest.err
4567       } && test -s conftest$ac_exeext && {
4568	 test "$cross_compiling" = yes ||
4569	 $as_test_x conftest$ac_exeext
4570       }; then
4571  lt_cv_cc_needs_belf=yes
4572else
4573  $as_echo "$as_me: failed program was:" >&5
4574sed 's/^/| /' conftest.$ac_ext >&5
4575
4576	lt_cv_cc_needs_belf=no
4577fi
4578
4579rm -rf conftest.dSYM
4580rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4581      conftest$ac_exeext conftest.$ac_ext
4582     ac_ext=c
4583ac_cpp='$CPP $CPPFLAGS'
4584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586ac_compiler_gnu=$ac_cv_c_compiler_gnu
4587
4588fi
4589{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4590$as_echo "$lt_cv_cc_needs_belf" >&6; }
4591  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4592    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4593    CFLAGS="$SAVE_CFLAGS"
4594  fi
4595  ;;
4596sparc*-*solaris*)
4597  # Find out which ABI we are using.
4598  echo 'int i;' > conftest.$ac_ext
4599  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4600  (eval $ac_compile) 2>&5
4601  ac_status=$?
4602  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603  (exit $ac_status); }; then
4604    case `/usr/bin/file conftest.o` in
4605    *64-bit*)
4606      case $lt_cv_prog_gnu_ld in
4607      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4608      *)
4609        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4610	  LD="${LD-ld} -64"
4611	fi
4612	;;
4613      esac
4614      ;;
4615    esac
4616  fi
4617  rm -rf conftest*
4618  ;;
4619
4620
4621esac
4622
4623need_locks="$enable_libtool_lock"
4624
4625
4626ac_ext=c
4627ac_cpp='$CPP $CPPFLAGS'
4628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630ac_compiler_gnu=$ac_cv_c_compiler_gnu
4631{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4632$as_echo_n "checking how to run the C preprocessor... " >&6; }
4633# On Suns, sometimes $CPP names a directory.
4634if test -n "$CPP" && test -d "$CPP"; then
4635  CPP=
4636fi
4637if test -z "$CPP"; then
4638  if test "${ac_cv_prog_CPP+set}" = set; then
4639  $as_echo_n "(cached) " >&6
4640else
4641      # Double quotes because CPP needs to be expanded
4642    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4643    do
4644      ac_preproc_ok=false
4645for ac_c_preproc_warn_flag in '' yes
4646do
4647  # Use a header file that comes with gcc, so configuring glibc
4648  # with a fresh cross-compiler works.
4649  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4650  # <limits.h> exists even on freestanding compilers.
4651  # On the NeXT, cc -E runs the code through the compiler's parser,
4652  # not just through cpp. "Syntax error" is here to catch this case.
4653  cat >conftest.$ac_ext <<_ACEOF
4654/* confdefs.h.  */
4655_ACEOF
4656cat confdefs.h >>conftest.$ac_ext
4657cat >>conftest.$ac_ext <<_ACEOF
4658/* end confdefs.h.  */
4659#ifdef __STDC__
4660# include <limits.h>
4661#else
4662# include <assert.h>
4663#endif
4664		     Syntax error
4665_ACEOF
4666if { (ac_try="$ac_cpp conftest.$ac_ext"
4667case "(($ac_try" in
4668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669  *) ac_try_echo=$ac_try;;
4670esac
4671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4672$as_echo "$ac_try_echo") >&5
4673  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4674  ac_status=$?
4675  grep -v '^ *+' conftest.er1 >conftest.err
4676  rm -f conftest.er1
4677  cat conftest.err >&5
4678  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679  (exit $ac_status); } >/dev/null && {
4680	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4681	 test ! -s conftest.err
4682       }; then
4683  :
4684else
4685  $as_echo "$as_me: failed program was:" >&5
4686sed 's/^/| /' conftest.$ac_ext >&5
4687
4688  # Broken: fails on valid input.
4689continue
4690fi
4691
4692rm -f conftest.err conftest.$ac_ext
4693
4694  # OK, works on sane cases.  Now check whether nonexistent headers
4695  # can be detected and how.
4696  cat >conftest.$ac_ext <<_ACEOF
4697/* confdefs.h.  */
4698_ACEOF
4699cat confdefs.h >>conftest.$ac_ext
4700cat >>conftest.$ac_ext <<_ACEOF
4701/* end confdefs.h.  */
4702#include <ac_nonexistent.h>
4703_ACEOF
4704if { (ac_try="$ac_cpp conftest.$ac_ext"
4705case "(($ac_try" in
4706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707  *) ac_try_echo=$ac_try;;
4708esac
4709eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4710$as_echo "$ac_try_echo") >&5
4711  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4712  ac_status=$?
4713  grep -v '^ *+' conftest.er1 >conftest.err
4714  rm -f conftest.er1
4715  cat conftest.err >&5
4716  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717  (exit $ac_status); } >/dev/null && {
4718	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4719	 test ! -s conftest.err
4720       }; then
4721  # Broken: success on invalid input.
4722continue
4723else
4724  $as_echo "$as_me: failed program was:" >&5
4725sed 's/^/| /' conftest.$ac_ext >&5
4726
4727  # Passes both tests.
4728ac_preproc_ok=:
4729break
4730fi
4731
4732rm -f conftest.err conftest.$ac_ext
4733
4734done
4735# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4736rm -f conftest.err conftest.$ac_ext
4737if $ac_preproc_ok; then
4738  break
4739fi
4740
4741    done
4742    ac_cv_prog_CPP=$CPP
4743
4744fi
4745  CPP=$ac_cv_prog_CPP
4746else
4747  ac_cv_prog_CPP=$CPP
4748fi
4749{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4750$as_echo "$CPP" >&6; }
4751ac_preproc_ok=false
4752for ac_c_preproc_warn_flag in '' yes
4753do
4754  # Use a header file that comes with gcc, so configuring glibc
4755  # with a fresh cross-compiler works.
4756  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4757  # <limits.h> exists even on freestanding compilers.
4758  # On the NeXT, cc -E runs the code through the compiler's parser,
4759  # not just through cpp. "Syntax error" is here to catch this case.
4760  cat >conftest.$ac_ext <<_ACEOF
4761/* confdefs.h.  */
4762_ACEOF
4763cat confdefs.h >>conftest.$ac_ext
4764cat >>conftest.$ac_ext <<_ACEOF
4765/* end confdefs.h.  */
4766#ifdef __STDC__
4767# include <limits.h>
4768#else
4769# include <assert.h>
4770#endif
4771		     Syntax error
4772_ACEOF
4773if { (ac_try="$ac_cpp conftest.$ac_ext"
4774case "(($ac_try" in
4775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776  *) ac_try_echo=$ac_try;;
4777esac
4778eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4779$as_echo "$ac_try_echo") >&5
4780  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4781  ac_status=$?
4782  grep -v '^ *+' conftest.er1 >conftest.err
4783  rm -f conftest.er1
4784  cat conftest.err >&5
4785  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786  (exit $ac_status); } >/dev/null && {
4787	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4788	 test ! -s conftest.err
4789       }; then
4790  :
4791else
4792  $as_echo "$as_me: failed program was:" >&5
4793sed 's/^/| /' conftest.$ac_ext >&5
4794
4795  # Broken: fails on valid input.
4796continue
4797fi
4798
4799rm -f conftest.err conftest.$ac_ext
4800
4801  # OK, works on sane cases.  Now check whether nonexistent headers
4802  # can be detected and how.
4803  cat >conftest.$ac_ext <<_ACEOF
4804/* confdefs.h.  */
4805_ACEOF
4806cat confdefs.h >>conftest.$ac_ext
4807cat >>conftest.$ac_ext <<_ACEOF
4808/* end confdefs.h.  */
4809#include <ac_nonexistent.h>
4810_ACEOF
4811if { (ac_try="$ac_cpp conftest.$ac_ext"
4812case "(($ac_try" in
4813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4814  *) ac_try_echo=$ac_try;;
4815esac
4816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4817$as_echo "$ac_try_echo") >&5
4818  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4819  ac_status=$?
4820  grep -v '^ *+' conftest.er1 >conftest.err
4821  rm -f conftest.er1
4822  cat conftest.err >&5
4823  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824  (exit $ac_status); } >/dev/null && {
4825	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4826	 test ! -s conftest.err
4827       }; then
4828  # Broken: success on invalid input.
4829continue
4830else
4831  $as_echo "$as_me: failed program was:" >&5
4832sed 's/^/| /' conftest.$ac_ext >&5
4833
4834  # Passes both tests.
4835ac_preproc_ok=:
4836break
4837fi
4838
4839rm -f conftest.err conftest.$ac_ext
4840
4841done
4842# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4843rm -f conftest.err conftest.$ac_ext
4844if $ac_preproc_ok; then
4845  :
4846else
4847  { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4848See \`config.log' for more details." >&5
4849$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4850See \`config.log' for more details." >&2;}
4851   { (exit 1); exit 1; }; }
4852fi
4853
4854ac_ext=c
4855ac_cpp='$CPP $CPPFLAGS'
4856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4858ac_compiler_gnu=$ac_cv_c_compiler_gnu
4859
4860
4861{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4862$as_echo_n "checking for ANSI C header files... " >&6; }
4863if test "${ac_cv_header_stdc+set}" = set; then
4864  $as_echo_n "(cached) " >&6
4865else
4866  cat >conftest.$ac_ext <<_ACEOF
4867/* confdefs.h.  */
4868_ACEOF
4869cat confdefs.h >>conftest.$ac_ext
4870cat >>conftest.$ac_ext <<_ACEOF
4871/* end confdefs.h.  */
4872#include <stdlib.h>
4873#include <stdarg.h>
4874#include <string.h>
4875#include <float.h>
4876
4877int
4878main ()
4879{
4880
4881  ;
4882  return 0;
4883}
4884_ACEOF
4885rm -f conftest.$ac_objext
4886if { (ac_try="$ac_compile"
4887case "(($ac_try" in
4888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889  *) ac_try_echo=$ac_try;;
4890esac
4891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4892$as_echo "$ac_try_echo") >&5
4893  (eval "$ac_compile") 2>conftest.er1
4894  ac_status=$?
4895  grep -v '^ *+' conftest.er1 >conftest.err
4896  rm -f conftest.er1
4897  cat conftest.err >&5
4898  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899  (exit $ac_status); } && {
4900	 test -z "$ac_c_werror_flag" ||
4901	 test ! -s conftest.err
4902       } && test -s conftest.$ac_objext; then
4903  ac_cv_header_stdc=yes
4904else
4905  $as_echo "$as_me: failed program was:" >&5
4906sed 's/^/| /' conftest.$ac_ext >&5
4907
4908	ac_cv_header_stdc=no
4909fi
4910
4911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4912
4913if test $ac_cv_header_stdc = yes; then
4914  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4915  cat >conftest.$ac_ext <<_ACEOF
4916/* confdefs.h.  */
4917_ACEOF
4918cat confdefs.h >>conftest.$ac_ext
4919cat >>conftest.$ac_ext <<_ACEOF
4920/* end confdefs.h.  */
4921#include <string.h>
4922
4923_ACEOF
4924if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4925  $EGREP "memchr" >/dev/null 2>&1; then
4926  :
4927else
4928  ac_cv_header_stdc=no
4929fi
4930rm -f conftest*
4931
4932fi
4933
4934if test $ac_cv_header_stdc = yes; then
4935  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4936  cat >conftest.$ac_ext <<_ACEOF
4937/* confdefs.h.  */
4938_ACEOF
4939cat confdefs.h >>conftest.$ac_ext
4940cat >>conftest.$ac_ext <<_ACEOF
4941/* end confdefs.h.  */
4942#include <stdlib.h>
4943
4944_ACEOF
4945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4946  $EGREP "free" >/dev/null 2>&1; then
4947  :
4948else
4949  ac_cv_header_stdc=no
4950fi
4951rm -f conftest*
4952
4953fi
4954
4955if test $ac_cv_header_stdc = yes; then
4956  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4957  if test "$cross_compiling" = yes; then
4958  :
4959else
4960  cat >conftest.$ac_ext <<_ACEOF
4961/* confdefs.h.  */
4962_ACEOF
4963cat confdefs.h >>conftest.$ac_ext
4964cat >>conftest.$ac_ext <<_ACEOF
4965/* end confdefs.h.  */
4966#include <ctype.h>
4967#include <stdlib.h>
4968#if ((' ' & 0x0FF) == 0x020)
4969# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4970# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4971#else
4972# define ISLOWER(c) \
4973		   (('a' <= (c) && (c) <= 'i') \
4974		     || ('j' <= (c) && (c) <= 'r') \
4975		     || ('s' <= (c) && (c) <= 'z'))
4976# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4977#endif
4978
4979#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4980int
4981main ()
4982{
4983  int i;
4984  for (i = 0; i < 256; i++)
4985    if (XOR (islower (i), ISLOWER (i))
4986	|| toupper (i) != TOUPPER (i))
4987      return 2;
4988  return 0;
4989}
4990_ACEOF
4991rm -f conftest$ac_exeext
4992if { (ac_try="$ac_link"
4993case "(($ac_try" in
4994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995  *) ac_try_echo=$ac_try;;
4996esac
4997eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4998$as_echo "$ac_try_echo") >&5
4999  (eval "$ac_link") 2>&5
5000  ac_status=$?
5001  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5003  { (case "(($ac_try" in
5004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5005  *) ac_try_echo=$ac_try;;
5006esac
5007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5008$as_echo "$ac_try_echo") >&5
5009  (eval "$ac_try") 2>&5
5010  ac_status=$?
5011  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012  (exit $ac_status); }; }; then
5013  :
5014else
5015  $as_echo "$as_me: program exited with status $ac_status" >&5
5016$as_echo "$as_me: failed program was:" >&5
5017sed 's/^/| /' conftest.$ac_ext >&5
5018
5019( exit $ac_status )
5020ac_cv_header_stdc=no
5021fi
5022rm -rf conftest.dSYM
5023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5024fi
5025
5026
5027fi
5028fi
5029{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5030$as_echo "$ac_cv_header_stdc" >&6; }
5031if test $ac_cv_header_stdc = yes; then
5032
5033cat >>confdefs.h <<\_ACEOF
5034#define STDC_HEADERS 1
5035_ACEOF
5036
5037fi
5038
5039# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5050		  inttypes.h stdint.h unistd.h
5051do
5052as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5053{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5054$as_echo_n "checking for $ac_header... " >&6; }
5055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5056  $as_echo_n "(cached) " >&6
5057else
5058  cat >conftest.$ac_ext <<_ACEOF
5059/* confdefs.h.  */
5060_ACEOF
5061cat confdefs.h >>conftest.$ac_ext
5062cat >>conftest.$ac_ext <<_ACEOF
5063/* end confdefs.h.  */
5064$ac_includes_default
5065
5066#include <$ac_header>
5067_ACEOF
5068rm -f conftest.$ac_objext
5069if { (ac_try="$ac_compile"
5070case "(($ac_try" in
5071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5072  *) ac_try_echo=$ac_try;;
5073esac
5074eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5075$as_echo "$ac_try_echo") >&5
5076  (eval "$ac_compile") 2>conftest.er1
5077  ac_status=$?
5078  grep -v '^ *+' conftest.er1 >conftest.err
5079  rm -f conftest.er1
5080  cat conftest.err >&5
5081  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082  (exit $ac_status); } && {
5083	 test -z "$ac_c_werror_flag" ||
5084	 test ! -s conftest.err
5085       } && test -s conftest.$ac_objext; then
5086  eval "$as_ac_Header=yes"
5087else
5088  $as_echo "$as_me: failed program was:" >&5
5089sed 's/^/| /' conftest.$ac_ext >&5
5090
5091	eval "$as_ac_Header=no"
5092fi
5093
5094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5095fi
5096ac_res=`eval 'as_val=${'$as_ac_Header'}
5097		 $as_echo "$as_val"'`
5098	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5099$as_echo "$ac_res" >&6; }
5100if test `eval 'as_val=${'$as_ac_Header'}
5101		 $as_echo "$as_val"'` = yes; then
5102  cat >>confdefs.h <<_ACEOF
5103#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5104_ACEOF
5105
5106fi
5107
5108done
5109
5110
5111
5112for ac_header in dlfcn.h
5113do
5114as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5115if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5116  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5117$as_echo_n "checking for $ac_header... " >&6; }
5118if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5119  $as_echo_n "(cached) " >&6
5120fi
5121ac_res=`eval 'as_val=${'$as_ac_Header'}
5122		 $as_echo "$as_val"'`
5123	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5124$as_echo "$ac_res" >&6; }
5125else
5126  # Is the header compilable?
5127{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5128$as_echo_n "checking $ac_header usability... " >&6; }
5129cat >conftest.$ac_ext <<_ACEOF
5130/* confdefs.h.  */
5131_ACEOF
5132cat confdefs.h >>conftest.$ac_ext
5133cat >>conftest.$ac_ext <<_ACEOF
5134/* end confdefs.h.  */
5135$ac_includes_default
5136#include <$ac_header>
5137_ACEOF
5138rm -f conftest.$ac_objext
5139if { (ac_try="$ac_compile"
5140case "(($ac_try" in
5141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142  *) ac_try_echo=$ac_try;;
5143esac
5144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5145$as_echo "$ac_try_echo") >&5
5146  (eval "$ac_compile") 2>conftest.er1
5147  ac_status=$?
5148  grep -v '^ *+' conftest.er1 >conftest.err
5149  rm -f conftest.er1
5150  cat conftest.err >&5
5151  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152  (exit $ac_status); } && {
5153	 test -z "$ac_c_werror_flag" ||
5154	 test ! -s conftest.err
5155       } && test -s conftest.$ac_objext; then
5156  ac_header_compiler=yes
5157else
5158  $as_echo "$as_me: failed program was:" >&5
5159sed 's/^/| /' conftest.$ac_ext >&5
5160
5161	ac_header_compiler=no
5162fi
5163
5164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5165{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5166$as_echo "$ac_header_compiler" >&6; }
5167
5168# Is the header present?
5169{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5170$as_echo_n "checking $ac_header presence... " >&6; }
5171cat >conftest.$ac_ext <<_ACEOF
5172/* confdefs.h.  */
5173_ACEOF
5174cat confdefs.h >>conftest.$ac_ext
5175cat >>conftest.$ac_ext <<_ACEOF
5176/* end confdefs.h.  */
5177#include <$ac_header>
5178_ACEOF
5179if { (ac_try="$ac_cpp conftest.$ac_ext"
5180case "(($ac_try" in
5181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182  *) ac_try_echo=$ac_try;;
5183esac
5184eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5185$as_echo "$ac_try_echo") >&5
5186  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5187  ac_status=$?
5188  grep -v '^ *+' conftest.er1 >conftest.err
5189  rm -f conftest.er1
5190  cat conftest.err >&5
5191  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192  (exit $ac_status); } >/dev/null && {
5193	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5194	 test ! -s conftest.err
5195       }; then
5196  ac_header_preproc=yes
5197else
5198  $as_echo "$as_me: failed program was:" >&5
5199sed 's/^/| /' conftest.$ac_ext >&5
5200
5201  ac_header_preproc=no
5202fi
5203
5204rm -f conftest.err conftest.$ac_ext
5205{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5206$as_echo "$ac_header_preproc" >&6; }
5207
5208# So?  What about this header?
5209case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5210  yes:no: )
5211    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5212$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5213    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5214$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5215    ac_header_preproc=yes
5216    ;;
5217  no:yes:* )
5218    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5219$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5220    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5221$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5222    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5223$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5224    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5225$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5226    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5227$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5228    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5229$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5230    ( cat <<\_ASBOX
5231## ---------------------------------------------------------------------- ##
5232## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5233## ---------------------------------------------------------------------- ##
5234_ASBOX
5235     ) | sed "s/^/$as_me: WARNING:     /" >&2
5236    ;;
5237esac
5238{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5239$as_echo_n "checking for $ac_header... " >&6; }
5240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5241  $as_echo_n "(cached) " >&6
5242else
5243  eval "$as_ac_Header=\$ac_header_preproc"
5244fi
5245ac_res=`eval 'as_val=${'$as_ac_Header'}
5246		 $as_echo "$as_val"'`
5247	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5248$as_echo "$ac_res" >&6; }
5249
5250fi
5251if test `eval 'as_val=${'$as_ac_Header'}
5252		 $as_echo "$as_val"'` = yes; then
5253  cat >>confdefs.h <<_ACEOF
5254#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5255_ACEOF
5256
5257fi
5258
5259done
5260
5261ac_ext=cpp
5262ac_cpp='$CXXCPP $CPPFLAGS'
5263ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5264ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5265ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5266if test -z "$CXX"; then
5267  if test -n "$CCC"; then
5268    CXX=$CCC
5269  else
5270    if test -n "$ac_tool_prefix"; then
5271  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5272  do
5273    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5274set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5275{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5276$as_echo_n "checking for $ac_word... " >&6; }
5277if test "${ac_cv_prog_CXX+set}" = set; then
5278  $as_echo_n "(cached) " >&6
5279else
5280  if test -n "$CXX"; then
5281  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5282else
5283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284for as_dir in $PATH
5285do
5286  IFS=$as_save_IFS
5287  test -z "$as_dir" && as_dir=.
5288  for ac_exec_ext in '' $ac_executable_extensions; do
5289  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5291    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5292    break 2
5293  fi
5294done
5295done
5296IFS=$as_save_IFS
5297
5298fi
5299fi
5300CXX=$ac_cv_prog_CXX
5301if test -n "$CXX"; then
5302  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5303$as_echo "$CXX" >&6; }
5304else
5305  { $as_echo "$as_me:$LINENO: result: no" >&5
5306$as_echo "no" >&6; }
5307fi
5308
5309
5310    test -n "$CXX" && break
5311  done
5312fi
5313if test -z "$CXX"; then
5314  ac_ct_CXX=$CXX
5315  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5316do
5317  # Extract the first word of "$ac_prog", so it can be a program name with args.
5318set dummy $ac_prog; ac_word=$2
5319{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5320$as_echo_n "checking for $ac_word... " >&6; }
5321if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5322  $as_echo_n "(cached) " >&6
5323else
5324  if test -n "$ac_ct_CXX"; then
5325  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5326else
5327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328for as_dir in $PATH
5329do
5330  IFS=$as_save_IFS
5331  test -z "$as_dir" && as_dir=.
5332  for ac_exec_ext in '' $ac_executable_extensions; do
5333  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5334    ac_cv_prog_ac_ct_CXX="$ac_prog"
5335    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5336    break 2
5337  fi
5338done
5339done
5340IFS=$as_save_IFS
5341
5342fi
5343fi
5344ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5345if test -n "$ac_ct_CXX"; then
5346  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5347$as_echo "$ac_ct_CXX" >&6; }
5348else
5349  { $as_echo "$as_me:$LINENO: result: no" >&5
5350$as_echo "no" >&6; }
5351fi
5352
5353
5354  test -n "$ac_ct_CXX" && break
5355done
5356
5357  if test "x$ac_ct_CXX" = x; then
5358    CXX="g++"
5359  else
5360    case $cross_compiling:$ac_tool_warned in
5361yes:)
5362{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5363whose name does not start with the host triplet.  If you think this
5364configuration is useful to you, please write to autoconf@gnu.org." >&5
5365$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5366whose name does not start with the host triplet.  If you think this
5367configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5368ac_tool_warned=yes ;;
5369esac
5370    CXX=$ac_ct_CXX
5371  fi
5372fi
5373
5374  fi
5375fi
5376# Provide some information about the compiler.
5377$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5378set X $ac_compile
5379ac_compiler=$2
5380{ (ac_try="$ac_compiler --version >&5"
5381case "(($ac_try" in
5382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383  *) ac_try_echo=$ac_try;;
5384esac
5385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5386$as_echo "$ac_try_echo") >&5
5387  (eval "$ac_compiler --version >&5") 2>&5
5388  ac_status=$?
5389  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390  (exit $ac_status); }
5391{ (ac_try="$ac_compiler -v >&5"
5392case "(($ac_try" in
5393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5394  *) ac_try_echo=$ac_try;;
5395esac
5396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5397$as_echo "$ac_try_echo") >&5
5398  (eval "$ac_compiler -v >&5") 2>&5
5399  ac_status=$?
5400  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401  (exit $ac_status); }
5402{ (ac_try="$ac_compiler -V >&5"
5403case "(($ac_try" in
5404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405  *) ac_try_echo=$ac_try;;
5406esac
5407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5408$as_echo "$ac_try_echo") >&5
5409  (eval "$ac_compiler -V >&5") 2>&5
5410  ac_status=$?
5411  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412  (exit $ac_status); }
5413
5414{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5415$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5416if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5417  $as_echo_n "(cached) " >&6
5418else
5419  cat >conftest.$ac_ext <<_ACEOF
5420/* confdefs.h.  */
5421_ACEOF
5422cat confdefs.h >>conftest.$ac_ext
5423cat >>conftest.$ac_ext <<_ACEOF
5424/* end confdefs.h.  */
5425
5426int
5427main ()
5428{
5429#ifndef __GNUC__
5430       choke me
5431#endif
5432
5433  ;
5434  return 0;
5435}
5436_ACEOF
5437rm -f conftest.$ac_objext
5438if { (ac_try="$ac_compile"
5439case "(($ac_try" in
5440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441  *) ac_try_echo=$ac_try;;
5442esac
5443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5444$as_echo "$ac_try_echo") >&5
5445  (eval "$ac_compile") 2>conftest.er1
5446  ac_status=$?
5447  grep -v '^ *+' conftest.er1 >conftest.err
5448  rm -f conftest.er1
5449  cat conftest.err >&5
5450  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451  (exit $ac_status); } && {
5452	 test -z "$ac_cxx_werror_flag" ||
5453	 test ! -s conftest.err
5454       } && test -s conftest.$ac_objext; then
5455  ac_compiler_gnu=yes
5456else
5457  $as_echo "$as_me: failed program was:" >&5
5458sed 's/^/| /' conftest.$ac_ext >&5
5459
5460	ac_compiler_gnu=no
5461fi
5462
5463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5465
5466fi
5467{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5468$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5469if test $ac_compiler_gnu = yes; then
5470  GXX=yes
5471else
5472  GXX=
5473fi
5474ac_test_CXXFLAGS=${CXXFLAGS+set}
5475ac_save_CXXFLAGS=$CXXFLAGS
5476{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5477$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5478if test "${ac_cv_prog_cxx_g+set}" = set; then
5479  $as_echo_n "(cached) " >&6
5480else
5481  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5482   ac_cxx_werror_flag=yes
5483   ac_cv_prog_cxx_g=no
5484   CXXFLAGS="-g"
5485   cat >conftest.$ac_ext <<_ACEOF
5486/* confdefs.h.  */
5487_ACEOF
5488cat confdefs.h >>conftest.$ac_ext
5489cat >>conftest.$ac_ext <<_ACEOF
5490/* end confdefs.h.  */
5491
5492int
5493main ()
5494{
5495
5496  ;
5497  return 0;
5498}
5499_ACEOF
5500rm -f conftest.$ac_objext
5501if { (ac_try="$ac_compile"
5502case "(($ac_try" in
5503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504  *) ac_try_echo=$ac_try;;
5505esac
5506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5507$as_echo "$ac_try_echo") >&5
5508  (eval "$ac_compile") 2>conftest.er1
5509  ac_status=$?
5510  grep -v '^ *+' conftest.er1 >conftest.err
5511  rm -f conftest.er1
5512  cat conftest.err >&5
5513  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514  (exit $ac_status); } && {
5515	 test -z "$ac_cxx_werror_flag" ||
5516	 test ! -s conftest.err
5517       } && test -s conftest.$ac_objext; then
5518  ac_cv_prog_cxx_g=yes
5519else
5520  $as_echo "$as_me: failed program was:" >&5
5521sed 's/^/| /' conftest.$ac_ext >&5
5522
5523	CXXFLAGS=""
5524      cat >conftest.$ac_ext <<_ACEOF
5525/* confdefs.h.  */
5526_ACEOF
5527cat confdefs.h >>conftest.$ac_ext
5528cat >>conftest.$ac_ext <<_ACEOF
5529/* end confdefs.h.  */
5530
5531int
5532main ()
5533{
5534
5535  ;
5536  return 0;
5537}
5538_ACEOF
5539rm -f conftest.$ac_objext
5540if { (ac_try="$ac_compile"
5541case "(($ac_try" in
5542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5543  *) ac_try_echo=$ac_try;;
5544esac
5545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5546$as_echo "$ac_try_echo") >&5
5547  (eval "$ac_compile") 2>conftest.er1
5548  ac_status=$?
5549  grep -v '^ *+' conftest.er1 >conftest.err
5550  rm -f conftest.er1
5551  cat conftest.err >&5
5552  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553  (exit $ac_status); } && {
5554	 test -z "$ac_cxx_werror_flag" ||
5555	 test ! -s conftest.err
5556       } && test -s conftest.$ac_objext; then
5557  :
5558else
5559  $as_echo "$as_me: failed program was:" >&5
5560sed 's/^/| /' conftest.$ac_ext >&5
5561
5562	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5563	 CXXFLAGS="-g"
5564	 cat >conftest.$ac_ext <<_ACEOF
5565/* confdefs.h.  */
5566_ACEOF
5567cat confdefs.h >>conftest.$ac_ext
5568cat >>conftest.$ac_ext <<_ACEOF
5569/* end confdefs.h.  */
5570
5571int
5572main ()
5573{
5574
5575  ;
5576  return 0;
5577}
5578_ACEOF
5579rm -f conftest.$ac_objext
5580if { (ac_try="$ac_compile"
5581case "(($ac_try" in
5582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583  *) ac_try_echo=$ac_try;;
5584esac
5585eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5586$as_echo "$ac_try_echo") >&5
5587  (eval "$ac_compile") 2>conftest.er1
5588  ac_status=$?
5589  grep -v '^ *+' conftest.er1 >conftest.err
5590  rm -f conftest.er1
5591  cat conftest.err >&5
5592  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593  (exit $ac_status); } && {
5594	 test -z "$ac_cxx_werror_flag" ||
5595	 test ! -s conftest.err
5596       } && test -s conftest.$ac_objext; then
5597  ac_cv_prog_cxx_g=yes
5598else
5599  $as_echo "$as_me: failed program was:" >&5
5600sed 's/^/| /' conftest.$ac_ext >&5
5601
5602
5603fi
5604
5605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606fi
5607
5608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609fi
5610
5611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5613fi
5614{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5615$as_echo "$ac_cv_prog_cxx_g" >&6; }
5616if test "$ac_test_CXXFLAGS" = set; then
5617  CXXFLAGS=$ac_save_CXXFLAGS
5618elif test $ac_cv_prog_cxx_g = yes; then
5619  if test "$GXX" = yes; then
5620    CXXFLAGS="-g -O2"
5621  else
5622    CXXFLAGS="-g"
5623  fi
5624else
5625  if test "$GXX" = yes; then
5626    CXXFLAGS="-O2"
5627  else
5628    CXXFLAGS=
5629  fi
5630fi
5631ac_ext=cpp
5632ac_cpp='$CXXCPP $CPPFLAGS'
5633ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5634ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5635ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5636
5637depcc="$CXX"  am_compiler_list=
5638
5639{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5640$as_echo_n "checking dependency style of $depcc... " >&6; }
5641if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5642  $as_echo_n "(cached) " >&6
5643else
5644  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5645  # We make a subdir and do the tests there.  Otherwise we can end up
5646  # making bogus files that we don't know about and never remove.  For
5647  # instance it was reported that on HP-UX the gcc test will end up
5648  # making a dummy file named `D' -- because `-MD' means `put the output
5649  # in D'.
5650  mkdir conftest.dir
5651  # Copy depcomp to subdir because otherwise we won't find it if we're
5652  # using a relative directory.
5653  cp "$am_depcomp" conftest.dir
5654  cd conftest.dir
5655  # We will build objects and dependencies in a subdirectory because
5656  # it helps to detect inapplicable dependency modes.  For instance
5657  # both Tru64's cc and ICC support -MD to output dependencies as a
5658  # side effect of compilation, but ICC will put the dependencies in
5659  # the current directory while Tru64 will put them in the object
5660  # directory.
5661  mkdir sub
5662
5663  am_cv_CXX_dependencies_compiler_type=none
5664  if test "$am_compiler_list" = ""; then
5665     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5666  fi
5667  for depmode in $am_compiler_list; do
5668    # Setup a source with many dependencies, because some compilers
5669    # like to wrap large dependency lists on column 80 (with \), and
5670    # we should not choose a depcomp mode which is confused by this.
5671    #
5672    # We need to recreate these files for each test, as the compiler may
5673    # overwrite some of them when testing with obscure command lines.
5674    # This happens at least with the AIX C compiler.
5675    : > sub/conftest.c
5676    for i in 1 2 3 4 5 6; do
5677      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5678      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5679      # Solaris 8's {/usr,}/bin/sh.
5680      touch sub/conftst$i.h
5681    done
5682    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5683
5684    case $depmode in
5685    nosideeffect)
5686      # after this tag, mechanisms are not by side-effect, so they'll
5687      # only be used when explicitly requested
5688      if test "x$enable_dependency_tracking" = xyes; then
5689	continue
5690      else
5691	break
5692      fi
5693      ;;
5694    none) break ;;
5695    esac
5696    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5697    # mode.  It turns out that the SunPro C++ compiler does not properly
5698    # handle `-M -o', and we need to detect this.
5699    if depmode=$depmode \
5700       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5701       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5702       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5703         >/dev/null 2>conftest.err &&
5704       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5705       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5706       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5707      # icc doesn't choke on unknown options, it will just issue warnings
5708      # or remarks (even with -Werror).  So we grep stderr for any message
5709      # that says an option was ignored or not supported.
5710      # When given -MP, icc 7.0 and 7.1 complain thusly:
5711      #   icc: Command line warning: ignoring option '-M'; no argument required
5712      # The diagnosis changed in icc 8.0:
5713      #   icc: Command line remark: option '-MP' not supported
5714      if (grep 'ignoring option' conftest.err ||
5715          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5716        am_cv_CXX_dependencies_compiler_type=$depmode
5717        break
5718      fi
5719    fi
5720  done
5721
5722  cd ..
5723  rm -rf conftest.dir
5724else
5725  am_cv_CXX_dependencies_compiler_type=none
5726fi
5727
5728fi
5729{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5730$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5731CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5732
5733
5734
5735if
5736  test "x$enable_dependency_tracking" != xno \
5737  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5738  am__fastdepCXX_TRUE=
5739  am__fastdepCXX_FALSE='#'
5740else
5741  am__fastdepCXX_TRUE='#'
5742  am__fastdepCXX_FALSE=
5743fi
5744
5745
5746
5747
5748if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5749    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5750    (test "X$CXX" != "Xg++"))) ; then
5751  ac_ext=cpp
5752ac_cpp='$CXXCPP $CPPFLAGS'
5753ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5754ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5755ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5756{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5757$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5758if test -z "$CXXCPP"; then
5759  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5760  $as_echo_n "(cached) " >&6
5761else
5762      # Double quotes because CXXCPP needs to be expanded
5763    for CXXCPP in "$CXX -E" "/lib/cpp"
5764    do
5765      ac_preproc_ok=false
5766for ac_cxx_preproc_warn_flag in '' yes
5767do
5768  # Use a header file that comes with gcc, so configuring glibc
5769  # with a fresh cross-compiler works.
5770  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5771  # <limits.h> exists even on freestanding compilers.
5772  # On the NeXT, cc -E runs the code through the compiler's parser,
5773  # not just through cpp. "Syntax error" is here to catch this case.
5774  cat >conftest.$ac_ext <<_ACEOF
5775/* confdefs.h.  */
5776_ACEOF
5777cat confdefs.h >>conftest.$ac_ext
5778cat >>conftest.$ac_ext <<_ACEOF
5779/* end confdefs.h.  */
5780#ifdef __STDC__
5781# include <limits.h>
5782#else
5783# include <assert.h>
5784#endif
5785		     Syntax error
5786_ACEOF
5787if { (ac_try="$ac_cpp conftest.$ac_ext"
5788case "(($ac_try" in
5789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790  *) ac_try_echo=$ac_try;;
5791esac
5792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5793$as_echo "$ac_try_echo") >&5
5794  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5795  ac_status=$?
5796  grep -v '^ *+' conftest.er1 >conftest.err
5797  rm -f conftest.er1
5798  cat conftest.err >&5
5799  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800  (exit $ac_status); } >/dev/null && {
5801	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5802	 test ! -s conftest.err
5803       }; then
5804  :
5805else
5806  $as_echo "$as_me: failed program was:" >&5
5807sed 's/^/| /' conftest.$ac_ext >&5
5808
5809  # Broken: fails on valid input.
5810continue
5811fi
5812
5813rm -f conftest.err conftest.$ac_ext
5814
5815  # OK, works on sane cases.  Now check whether nonexistent headers
5816  # can be detected and how.
5817  cat >conftest.$ac_ext <<_ACEOF
5818/* confdefs.h.  */
5819_ACEOF
5820cat confdefs.h >>conftest.$ac_ext
5821cat >>conftest.$ac_ext <<_ACEOF
5822/* end confdefs.h.  */
5823#include <ac_nonexistent.h>
5824_ACEOF
5825if { (ac_try="$ac_cpp conftest.$ac_ext"
5826case "(($ac_try" in
5827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828  *) ac_try_echo=$ac_try;;
5829esac
5830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5831$as_echo "$ac_try_echo") >&5
5832  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5833  ac_status=$?
5834  grep -v '^ *+' conftest.er1 >conftest.err
5835  rm -f conftest.er1
5836  cat conftest.err >&5
5837  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838  (exit $ac_status); } >/dev/null && {
5839	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5840	 test ! -s conftest.err
5841       }; then
5842  # Broken: success on invalid input.
5843continue
5844else
5845  $as_echo "$as_me: failed program was:" >&5
5846sed 's/^/| /' conftest.$ac_ext >&5
5847
5848  # Passes both tests.
5849ac_preproc_ok=:
5850break
5851fi
5852
5853rm -f conftest.err conftest.$ac_ext
5854
5855done
5856# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5857rm -f conftest.err conftest.$ac_ext
5858if $ac_preproc_ok; then
5859  break
5860fi
5861
5862    done
5863    ac_cv_prog_CXXCPP=$CXXCPP
5864
5865fi
5866  CXXCPP=$ac_cv_prog_CXXCPP
5867else
5868  ac_cv_prog_CXXCPP=$CXXCPP
5869fi
5870{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5871$as_echo "$CXXCPP" >&6; }
5872ac_preproc_ok=false
5873for ac_cxx_preproc_warn_flag in '' yes
5874do
5875  # Use a header file that comes with gcc, so configuring glibc
5876  # with a fresh cross-compiler works.
5877  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5878  # <limits.h> exists even on freestanding compilers.
5879  # On the NeXT, cc -E runs the code through the compiler's parser,
5880  # not just through cpp. "Syntax error" is here to catch this case.
5881  cat >conftest.$ac_ext <<_ACEOF
5882/* confdefs.h.  */
5883_ACEOF
5884cat confdefs.h >>conftest.$ac_ext
5885cat >>conftest.$ac_ext <<_ACEOF
5886/* end confdefs.h.  */
5887#ifdef __STDC__
5888# include <limits.h>
5889#else
5890# include <assert.h>
5891#endif
5892		     Syntax error
5893_ACEOF
5894if { (ac_try="$ac_cpp conftest.$ac_ext"
5895case "(($ac_try" in
5896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5897  *) ac_try_echo=$ac_try;;
5898esac
5899eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5900$as_echo "$ac_try_echo") >&5
5901  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5902  ac_status=$?
5903  grep -v '^ *+' conftest.er1 >conftest.err
5904  rm -f conftest.er1
5905  cat conftest.err >&5
5906  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907  (exit $ac_status); } >/dev/null && {
5908	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5909	 test ! -s conftest.err
5910       }; then
5911  :
5912else
5913  $as_echo "$as_me: failed program was:" >&5
5914sed 's/^/| /' conftest.$ac_ext >&5
5915
5916  # Broken: fails on valid input.
5917continue
5918fi
5919
5920rm -f conftest.err conftest.$ac_ext
5921
5922  # OK, works on sane cases.  Now check whether nonexistent headers
5923  # can be detected and how.
5924  cat >conftest.$ac_ext <<_ACEOF
5925/* confdefs.h.  */
5926_ACEOF
5927cat confdefs.h >>conftest.$ac_ext
5928cat >>conftest.$ac_ext <<_ACEOF
5929/* end confdefs.h.  */
5930#include <ac_nonexistent.h>
5931_ACEOF
5932if { (ac_try="$ac_cpp conftest.$ac_ext"
5933case "(($ac_try" in
5934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5935  *) ac_try_echo=$ac_try;;
5936esac
5937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5938$as_echo "$ac_try_echo") >&5
5939  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5940  ac_status=$?
5941  grep -v '^ *+' conftest.er1 >conftest.err
5942  rm -f conftest.er1
5943  cat conftest.err >&5
5944  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945  (exit $ac_status); } >/dev/null && {
5946	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5947	 test ! -s conftest.err
5948       }; then
5949  # Broken: success on invalid input.
5950continue
5951else
5952  $as_echo "$as_me: failed program was:" >&5
5953sed 's/^/| /' conftest.$ac_ext >&5
5954
5955  # Passes both tests.
5956ac_preproc_ok=:
5957break
5958fi
5959
5960rm -f conftest.err conftest.$ac_ext
5961
5962done
5963# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5964rm -f conftest.err conftest.$ac_ext
5965if $ac_preproc_ok; then
5966  :
5967else
5968  { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5969See \`config.log' for more details." >&5
5970$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5971See \`config.log' for more details." >&2;}
5972   { (exit 1); exit 1; }; }
5973fi
5974
5975ac_ext=cpp
5976ac_cpp='$CXXCPP $CPPFLAGS'
5977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5980
5981fi
5982
5983
5984ac_ext=f
5985ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5986ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5987ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5988if test -n "$ac_tool_prefix"; then
5989  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
5990  do
5991    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5992set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5993{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5994$as_echo_n "checking for $ac_word... " >&6; }
5995if test "${ac_cv_prog_F77+set}" = set; then
5996  $as_echo_n "(cached) " >&6
5997else
5998  if test -n "$F77"; then
5999  ac_cv_prog_F77="$F77" # Let the user override the test.
6000else
6001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002for as_dir in $PATH
6003do
6004  IFS=$as_save_IFS
6005  test -z "$as_dir" && as_dir=.
6006  for ac_exec_ext in '' $ac_executable_extensions; do
6007  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6008    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6009    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6010    break 2
6011  fi
6012done
6013done
6014IFS=$as_save_IFS
6015
6016fi
6017fi
6018F77=$ac_cv_prog_F77
6019if test -n "$F77"; then
6020  { $as_echo "$as_me:$LINENO: result: $F77" >&5
6021$as_echo "$F77" >&6; }
6022else
6023  { $as_echo "$as_me:$LINENO: result: no" >&5
6024$as_echo "no" >&6; }
6025fi
6026
6027
6028    test -n "$F77" && break
6029  done
6030fi
6031if test -z "$F77"; then
6032  ac_ct_F77=$F77
6033  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
6034do
6035  # Extract the first word of "$ac_prog", so it can be a program name with args.
6036set dummy $ac_prog; ac_word=$2
6037{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6038$as_echo_n "checking for $ac_word... " >&6; }
6039if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6040  $as_echo_n "(cached) " >&6
6041else
6042  if test -n "$ac_ct_F77"; then
6043  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6044else
6045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046for as_dir in $PATH
6047do
6048  IFS=$as_save_IFS
6049  test -z "$as_dir" && as_dir=.
6050  for ac_exec_ext in '' $ac_executable_extensions; do
6051  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6052    ac_cv_prog_ac_ct_F77="$ac_prog"
6053    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6054    break 2
6055  fi
6056done
6057done
6058IFS=$as_save_IFS
6059
6060fi
6061fi
6062ac_ct_F77=$ac_cv_prog_ac_ct_F77
6063if test -n "$ac_ct_F77"; then
6064  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6065$as_echo "$ac_ct_F77" >&6; }
6066else
6067  { $as_echo "$as_me:$LINENO: result: no" >&5
6068$as_echo "no" >&6; }
6069fi
6070
6071
6072  test -n "$ac_ct_F77" && break
6073done
6074
6075  if test "x$ac_ct_F77" = x; then
6076    F77=""
6077  else
6078    case $cross_compiling:$ac_tool_warned in
6079yes:)
6080{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6081whose name does not start with the host triplet.  If you think this
6082configuration is useful to you, please write to autoconf@gnu.org." >&5
6083$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6084whose name does not start with the host triplet.  If you think this
6085configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6086ac_tool_warned=yes ;;
6087esac
6088    F77=$ac_ct_F77
6089  fi
6090fi
6091
6092
6093# Provide some information about the compiler.
6094$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6095set X $ac_compile
6096ac_compiler=$2
6097{ (ac_try="$ac_compiler --version >&5"
6098case "(($ac_try" in
6099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100  *) ac_try_echo=$ac_try;;
6101esac
6102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6103$as_echo "$ac_try_echo") >&5
6104  (eval "$ac_compiler --version >&5") 2>&5
6105  ac_status=$?
6106  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107  (exit $ac_status); }
6108{ (ac_try="$ac_compiler -v >&5"
6109case "(($ac_try" in
6110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6111  *) ac_try_echo=$ac_try;;
6112esac
6113eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6114$as_echo "$ac_try_echo") >&5
6115  (eval "$ac_compiler -v >&5") 2>&5
6116  ac_status=$?
6117  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118  (exit $ac_status); }
6119{ (ac_try="$ac_compiler -V >&5"
6120case "(($ac_try" in
6121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122  *) ac_try_echo=$ac_try;;
6123esac
6124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6125$as_echo "$ac_try_echo") >&5
6126  (eval "$ac_compiler -V >&5") 2>&5
6127  ac_status=$?
6128  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129  (exit $ac_status); }
6130rm -f a.out
6131
6132# If we don't use `.F' as extension, the preprocessor is not run on the
6133# input file.  (Note that this only needs to work for GNU compilers.)
6134ac_save_ext=$ac_ext
6135ac_ext=F
6136{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6137$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6138if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6139  $as_echo_n "(cached) " >&6
6140else
6141  cat >conftest.$ac_ext <<_ACEOF
6142      program main
6143#ifndef __GNUC__
6144       choke me
6145#endif
6146
6147      end
6148_ACEOF
6149rm -f conftest.$ac_objext
6150if { (ac_try="$ac_compile"
6151case "(($ac_try" in
6152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153  *) ac_try_echo=$ac_try;;
6154esac
6155eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6156$as_echo "$ac_try_echo") >&5
6157  (eval "$ac_compile") 2>conftest.er1
6158  ac_status=$?
6159  grep -v '^ *+' conftest.er1 >conftest.err
6160  rm -f conftest.er1
6161  cat conftest.err >&5
6162  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163  (exit $ac_status); } && {
6164	 test -z "$ac_f77_werror_flag" ||
6165	 test ! -s conftest.err
6166       } && test -s conftest.$ac_objext; then
6167  ac_compiler_gnu=yes
6168else
6169  $as_echo "$as_me: failed program was:" >&5
6170sed 's/^/| /' conftest.$ac_ext >&5
6171
6172	ac_compiler_gnu=no
6173fi
6174
6175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6177
6178fi
6179{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6180$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6181ac_ext=$ac_save_ext
6182ac_test_FFLAGS=${FFLAGS+set}
6183ac_save_FFLAGS=$FFLAGS
6184FFLAGS=
6185{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6186$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6187if test "${ac_cv_prog_f77_g+set}" = set; then
6188  $as_echo_n "(cached) " >&6
6189else
6190  FFLAGS=-g
6191cat >conftest.$ac_ext <<_ACEOF
6192      program main
6193
6194      end
6195_ACEOF
6196rm -f conftest.$ac_objext
6197if { (ac_try="$ac_compile"
6198case "(($ac_try" in
6199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6200  *) ac_try_echo=$ac_try;;
6201esac
6202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6203$as_echo "$ac_try_echo") >&5
6204  (eval "$ac_compile") 2>conftest.er1
6205  ac_status=$?
6206  grep -v '^ *+' conftest.er1 >conftest.err
6207  rm -f conftest.er1
6208  cat conftest.err >&5
6209  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210  (exit $ac_status); } && {
6211	 test -z "$ac_f77_werror_flag" ||
6212	 test ! -s conftest.err
6213       } && test -s conftest.$ac_objext; then
6214  ac_cv_prog_f77_g=yes
6215else
6216  $as_echo "$as_me: failed program was:" >&5
6217sed 's/^/| /' conftest.$ac_ext >&5
6218
6219	ac_cv_prog_f77_g=no
6220fi
6221
6222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6223
6224fi
6225{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6226$as_echo "$ac_cv_prog_f77_g" >&6; }
6227if test "$ac_test_FFLAGS" = set; then
6228  FFLAGS=$ac_save_FFLAGS
6229elif test $ac_cv_prog_f77_g = yes; then
6230  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6231    FFLAGS="-g -O2"
6232  else
6233    FFLAGS="-g"
6234  fi
6235else
6236  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6237    FFLAGS="-O2"
6238  else
6239    FFLAGS=
6240  fi
6241fi
6242
6243if test $ac_compiler_gnu = yes; then
6244  G77=yes
6245else
6246  G77=
6247fi
6248ac_ext=c
6249ac_cpp='$CPP $CPPFLAGS'
6250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6252ac_compiler_gnu=$ac_cv_c_compiler_gnu
6253
6254
6255
6256# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6257# find the maximum length of command line arguments
6258{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6259$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6260if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6261  $as_echo_n "(cached) " >&6
6262else
6263    i=0
6264  teststring="ABCD"
6265
6266  case $build_os in
6267  msdosdjgpp*)
6268    # On DJGPP, this test can blow up pretty badly due to problems in libc
6269    # (any single argument exceeding 2000 bytes causes a buffer overrun
6270    # during glob expansion).  Even if it were fixed, the result of this
6271    # check would be larger than it should be.
6272    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6273    ;;
6274
6275  gnu*)
6276    # Under GNU Hurd, this test is not required because there is
6277    # no limit to the length of command line arguments.
6278    # Libtool will interpret -1 as no limit whatsoever
6279    lt_cv_sys_max_cmd_len=-1;
6280    ;;
6281
6282  cygwin* | mingw*)
6283    # On Win9x/ME, this test blows up -- it succeeds, but takes
6284    # about 5 minutes as the teststring grows exponentially.
6285    # Worse, since 9x/ME are not pre-emptively multitasking,
6286    # you end up with a "frozen" computer, even though with patience
6287    # the test eventually succeeds (with a max line length of 256k).
6288    # Instead, let's just punt: use the minimum linelength reported by
6289    # all of the supported platforms: 8192 (on NT/2K/XP).
6290    lt_cv_sys_max_cmd_len=8192;
6291    ;;
6292
6293  amigaos*)
6294    # On AmigaOS with pdksh, this test takes hours, literally.
6295    # So we just punt and use a minimum line length of 8192.
6296    lt_cv_sys_max_cmd_len=8192;
6297    ;;
6298
6299  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6300    # This has been around since 386BSD, at least.  Likely further.
6301    if test -x /sbin/sysctl; then
6302      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6303    elif test -x /usr/sbin/sysctl; then
6304      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6305    else
6306      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6307    fi
6308    # And add a safety zone
6309    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6310    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6311    ;;
6312
6313  interix*)
6314    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6315    lt_cv_sys_max_cmd_len=196608
6316    ;;
6317
6318  osf*)
6319    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6320    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6321    # nice to cause kernel panics so lets avoid the loop below.
6322    # First set a reasonable default.
6323    lt_cv_sys_max_cmd_len=16384
6324    #
6325    if test -x /sbin/sysconfig; then
6326      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6327        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6328      esac
6329    fi
6330    ;;
6331  sco3.2v5*)
6332    lt_cv_sys_max_cmd_len=102400
6333    ;;
6334  sysv5* | sco5v6* | sysv4.2uw2*)
6335    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6336    if test -n "$kargmax"; then
6337      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6338    else
6339      lt_cv_sys_max_cmd_len=32768
6340    fi
6341    ;;
6342  *)
6343    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6344    if test -n "$lt_cv_sys_max_cmd_len"; then
6345      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6346      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6347    else
6348      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6349      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6350	       = "XX$teststring") >/dev/null 2>&1 &&
6351	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6352	      lt_cv_sys_max_cmd_len=$new_result &&
6353	      test $i != 17 # 1/2 MB should be enough
6354      do
6355        i=`expr $i + 1`
6356        teststring=$teststring$teststring
6357      done
6358      teststring=
6359      # Add a significant safety factor because C++ compilers can tack on massive
6360      # amounts of additional arguments before passing them to the linker.
6361      # It appears as though 1/2 is a usable value.
6362      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6363    fi
6364    ;;
6365  esac
6366
6367fi
6368
6369if test -n $lt_cv_sys_max_cmd_len ; then
6370  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6371$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6372else
6373  { $as_echo "$as_me:$LINENO: result: none" >&5
6374$as_echo "none" >&6; }
6375fi
6376
6377
6378
6379
6380
6381# Check for command to grab the raw symbol name followed by C symbol from nm.
6382{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6383$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6384if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6385  $as_echo_n "(cached) " >&6
6386else
6387
6388# These are sane defaults that work on at least a few old systems.
6389# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6390
6391# Character class describing NM global symbol codes.
6392symcode='[BCDEGRST]'
6393
6394# Regexp to match symbols that can be accessed directly from C.
6395sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6396
6397# Transform an extracted symbol line into a proper C declaration
6398lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6399
6400# Transform an extracted symbol line into symbol name and symbol address
6401lt_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'"
6402
6403# Define system-specific variables.
6404case $host_os in
6405aix*)
6406  symcode='[BCDT]'
6407  ;;
6408cygwin* | mingw* | pw32*)
6409  symcode='[ABCDGISTW]'
6410  ;;
6411hpux*) # Its linker distinguishes data from code symbols
6412  if test "$host_cpu" = ia64; then
6413    symcode='[ABCDEGRST]'
6414  fi
6415  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6416  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'"
6417  ;;
6418linux* | k*bsd*-gnu)
6419  if test "$host_cpu" = ia64; then
6420    symcode='[ABCDGIRSTW]'
6421    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6422    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'"
6423  fi
6424  ;;
6425irix* | nonstopux*)
6426  symcode='[BCDEGRST]'
6427  ;;
6428osf*)
6429  symcode='[BCDEGQRST]'
6430  ;;
6431solaris*)
6432  symcode='[BDRT]'
6433  ;;
6434sco3.2v5*)
6435  symcode='[DT]'
6436  ;;
6437sysv4.2uw2*)
6438  symcode='[DT]'
6439  ;;
6440sysv5* | sco5v6* | unixware* | OpenUNIX*)
6441  symcode='[ABDT]'
6442  ;;
6443sysv4)
6444  symcode='[DFNSTU]'
6445  ;;
6446esac
6447
6448# Handle CRLF in mingw tool chain
6449opt_cr=
6450case $build_os in
6451mingw*)
6452  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6453  ;;
6454esac
6455
6456# If we're using GNU nm, then use its standard symbol codes.
6457case `$NM -V 2>&1` in
6458*GNU* | *'with BFD'*)
6459  symcode='[ABCDGIRSTW]' ;;
6460esac
6461
6462# Try without a prefix undercore, then with it.
6463for ac_symprfx in "" "_"; do
6464
6465  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6466  symxfrm="\\1 $ac_symprfx\\2 \\2"
6467
6468  # Write the raw and C identifiers.
6469  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6470
6471  # Check to see that the pipe works correctly.
6472  pipe_works=no
6473
6474  rm -f conftest*
6475  cat > conftest.$ac_ext <<EOF
6476#ifdef __cplusplus
6477extern "C" {
6478#endif
6479char nm_test_var;
6480void nm_test_func(){}
6481#ifdef __cplusplus
6482}
6483#endif
6484int main(){nm_test_var='a';nm_test_func();return(0);}
6485EOF
6486
6487  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6488  (eval $ac_compile) 2>&5
6489  ac_status=$?
6490  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491  (exit $ac_status); }; then
6492    # Now try to grab the symbols.
6493    nlist=conftest.nm
6494    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6495  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6496  ac_status=$?
6497  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498  (exit $ac_status); } && test -s "$nlist"; then
6499      # Try sorting and uniquifying the output.
6500      if sort "$nlist" | uniq > "$nlist"T; then
6501	mv -f "$nlist"T "$nlist"
6502      else
6503	rm -f "$nlist"T
6504      fi
6505
6506      # Make sure that we snagged all the symbols we need.
6507      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6508	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6509	  cat <<EOF > conftest.$ac_ext
6510#ifdef __cplusplus
6511extern "C" {
6512#endif
6513
6514EOF
6515	  # Now generate the symbol file.
6516	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6517
6518	  cat <<EOF >> conftest.$ac_ext
6519#if defined (__STDC__) && __STDC__
6520# define lt_ptr_t void *
6521#else
6522# define lt_ptr_t char *
6523# define const
6524#endif
6525
6526/* The mapping between symbol names and symbols. */
6527const struct {
6528  const char *name;
6529  lt_ptr_t address;
6530}
6531lt_preloaded_symbols[] =
6532{
6533EOF
6534	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6535	  cat <<\EOF >> conftest.$ac_ext
6536  {0, (lt_ptr_t) 0}
6537};
6538
6539#ifdef __cplusplus
6540}
6541#endif
6542EOF
6543	  # Now try linking the two files.
6544	  mv conftest.$ac_objext conftstm.$ac_objext
6545	  lt_save_LIBS="$LIBS"
6546	  lt_save_CFLAGS="$CFLAGS"
6547	  LIBS="conftstm.$ac_objext"
6548	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6549	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6550  (eval $ac_link) 2>&5
6551  ac_status=$?
6552  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6554	    pipe_works=yes
6555	  fi
6556	  LIBS="$lt_save_LIBS"
6557	  CFLAGS="$lt_save_CFLAGS"
6558	else
6559	  echo "cannot find nm_test_func in $nlist" >&5
6560	fi
6561      else
6562	echo "cannot find nm_test_var in $nlist" >&5
6563      fi
6564    else
6565      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6566    fi
6567  else
6568    echo "$progname: failed program was:" >&5
6569    cat conftest.$ac_ext >&5
6570  fi
6571  rm -rf conftest* conftst*
6572
6573  # Do not use the global_symbol_pipe unless it works.
6574  if test "$pipe_works" = yes; then
6575    break
6576  else
6577    lt_cv_sys_global_symbol_pipe=
6578  fi
6579done
6580
6581fi
6582
6583if test -z "$lt_cv_sys_global_symbol_pipe"; then
6584  lt_cv_sys_global_symbol_to_cdecl=
6585fi
6586if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6587  { $as_echo "$as_me:$LINENO: result: failed" >&5
6588$as_echo "failed" >&6; }
6589else
6590  { $as_echo "$as_me:$LINENO: result: ok" >&5
6591$as_echo "ok" >&6; }
6592fi
6593
6594{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6595$as_echo_n "checking for objdir... " >&6; }
6596if test "${lt_cv_objdir+set}" = set; then
6597  $as_echo_n "(cached) " >&6
6598else
6599  rm -f .libs 2>/dev/null
6600mkdir .libs 2>/dev/null
6601if test -d .libs; then
6602  lt_cv_objdir=.libs
6603else
6604  # MS-DOS does not allow filenames that begin with a dot.
6605  lt_cv_objdir=_libs
6606fi
6607rmdir .libs 2>/dev/null
6608fi
6609{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6610$as_echo "$lt_cv_objdir" >&6; }
6611objdir=$lt_cv_objdir
6612
6613
6614
6615
6616
6617case $host_os in
6618aix3*)
6619  # AIX sometimes has problems with the GCC collect2 program.  For some
6620  # reason, if we set the COLLECT_NAMES environment variable, the problems
6621  # vanish in a puff of smoke.
6622  if test "X${COLLECT_NAMES+set}" != Xset; then
6623    COLLECT_NAMES=
6624    export COLLECT_NAMES
6625  fi
6626  ;;
6627esac
6628
6629# Sed substitution that helps us do robust quoting.  It backslashifies
6630# metacharacters that are still active within double-quoted strings.
6631Xsed='sed -e 1s/^X//'
6632sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6633
6634# Same as above, but do not quote variable references.
6635double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6636
6637# Sed substitution to delay expansion of an escaped shell variable in a
6638# double_quote_subst'ed string.
6639delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6640
6641# Sed substitution to avoid accidental globbing in evaled expressions
6642no_glob_subst='s/\*/\\\*/g'
6643
6644# Constants:
6645rm="rm -f"
6646
6647# Global variables:
6648default_ofile=libtool
6649can_build_shared=yes
6650
6651# All known linkers require a `.a' archive for static linking (except MSVC,
6652# which needs '.lib').
6653libext=a
6654ltmain="$ac_aux_dir/ltmain.sh"
6655ofile="$default_ofile"
6656with_gnu_ld="$lt_cv_prog_gnu_ld"
6657
6658if test -n "$ac_tool_prefix"; then
6659  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6660set dummy ${ac_tool_prefix}ar; ac_word=$2
6661{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6662$as_echo_n "checking for $ac_word... " >&6; }
6663if test "${ac_cv_prog_AR+set}" = set; then
6664  $as_echo_n "(cached) " >&6
6665else
6666  if test -n "$AR"; then
6667  ac_cv_prog_AR="$AR" # Let the user override the test.
6668else
6669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670for as_dir in $PATH
6671do
6672  IFS=$as_save_IFS
6673  test -z "$as_dir" && as_dir=.
6674  for ac_exec_ext in '' $ac_executable_extensions; do
6675  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6676    ac_cv_prog_AR="${ac_tool_prefix}ar"
6677    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6678    break 2
6679  fi
6680done
6681done
6682IFS=$as_save_IFS
6683
6684fi
6685fi
6686AR=$ac_cv_prog_AR
6687if test -n "$AR"; then
6688  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6689$as_echo "$AR" >&6; }
6690else
6691  { $as_echo "$as_me:$LINENO: result: no" >&5
6692$as_echo "no" >&6; }
6693fi
6694
6695
6696fi
6697if test -z "$ac_cv_prog_AR"; then
6698  ac_ct_AR=$AR
6699  # Extract the first word of "ar", so it can be a program name with args.
6700set dummy ar; ac_word=$2
6701{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6702$as_echo_n "checking for $ac_word... " >&6; }
6703if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6704  $as_echo_n "(cached) " >&6
6705else
6706  if test -n "$ac_ct_AR"; then
6707  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6708else
6709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710for as_dir in $PATH
6711do
6712  IFS=$as_save_IFS
6713  test -z "$as_dir" && as_dir=.
6714  for ac_exec_ext in '' $ac_executable_extensions; do
6715  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6716    ac_cv_prog_ac_ct_AR="ar"
6717    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718    break 2
6719  fi
6720done
6721done
6722IFS=$as_save_IFS
6723
6724fi
6725fi
6726ac_ct_AR=$ac_cv_prog_ac_ct_AR
6727if test -n "$ac_ct_AR"; then
6728  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6729$as_echo "$ac_ct_AR" >&6; }
6730else
6731  { $as_echo "$as_me:$LINENO: result: no" >&5
6732$as_echo "no" >&6; }
6733fi
6734
6735  if test "x$ac_ct_AR" = x; then
6736    AR="false"
6737  else
6738    case $cross_compiling:$ac_tool_warned in
6739yes:)
6740{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6741whose name does not start with the host triplet.  If you think this
6742configuration is useful to you, please write to autoconf@gnu.org." >&5
6743$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6744whose name does not start with the host triplet.  If you think this
6745configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6746ac_tool_warned=yes ;;
6747esac
6748    AR=$ac_ct_AR
6749  fi
6750else
6751  AR="$ac_cv_prog_AR"
6752fi
6753
6754if test -n "$ac_tool_prefix"; then
6755  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6756set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6757{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6758$as_echo_n "checking for $ac_word... " >&6; }
6759if test "${ac_cv_prog_RANLIB+set}" = set; then
6760  $as_echo_n "(cached) " >&6
6761else
6762  if test -n "$RANLIB"; then
6763  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6764else
6765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766for as_dir in $PATH
6767do
6768  IFS=$as_save_IFS
6769  test -z "$as_dir" && as_dir=.
6770  for ac_exec_ext in '' $ac_executable_extensions; do
6771  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6772    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6773    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6774    break 2
6775  fi
6776done
6777done
6778IFS=$as_save_IFS
6779
6780fi
6781fi
6782RANLIB=$ac_cv_prog_RANLIB
6783if test -n "$RANLIB"; then
6784  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6785$as_echo "$RANLIB" >&6; }
6786else
6787  { $as_echo "$as_me:$LINENO: result: no" >&5
6788$as_echo "no" >&6; }
6789fi
6790
6791
6792fi
6793if test -z "$ac_cv_prog_RANLIB"; then
6794  ac_ct_RANLIB=$RANLIB
6795  # Extract the first word of "ranlib", so it can be a program name with args.
6796set dummy ranlib; ac_word=$2
6797{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6798$as_echo_n "checking for $ac_word... " >&6; }
6799if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6800  $as_echo_n "(cached) " >&6
6801else
6802  if test -n "$ac_ct_RANLIB"; then
6803  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6804else
6805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806for as_dir in $PATH
6807do
6808  IFS=$as_save_IFS
6809  test -z "$as_dir" && as_dir=.
6810  for ac_exec_ext in '' $ac_executable_extensions; do
6811  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6812    ac_cv_prog_ac_ct_RANLIB="ranlib"
6813    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814    break 2
6815  fi
6816done
6817done
6818IFS=$as_save_IFS
6819
6820fi
6821fi
6822ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6823if test -n "$ac_ct_RANLIB"; then
6824  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6825$as_echo "$ac_ct_RANLIB" >&6; }
6826else
6827  { $as_echo "$as_me:$LINENO: result: no" >&5
6828$as_echo "no" >&6; }
6829fi
6830
6831  if test "x$ac_ct_RANLIB" = x; then
6832    RANLIB=":"
6833  else
6834    case $cross_compiling:$ac_tool_warned in
6835yes:)
6836{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6837whose name does not start with the host triplet.  If you think this
6838configuration is useful to you, please write to autoconf@gnu.org." >&5
6839$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6840whose name does not start with the host triplet.  If you think this
6841configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6842ac_tool_warned=yes ;;
6843esac
6844    RANLIB=$ac_ct_RANLIB
6845  fi
6846else
6847  RANLIB="$ac_cv_prog_RANLIB"
6848fi
6849
6850if test -n "$ac_tool_prefix"; then
6851  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6852set dummy ${ac_tool_prefix}strip; ac_word=$2
6853{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6854$as_echo_n "checking for $ac_word... " >&6; }
6855if test "${ac_cv_prog_STRIP+set}" = set; then
6856  $as_echo_n "(cached) " >&6
6857else
6858  if test -n "$STRIP"; then
6859  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6860else
6861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862for as_dir in $PATH
6863do
6864  IFS=$as_save_IFS
6865  test -z "$as_dir" && as_dir=.
6866  for ac_exec_ext in '' $ac_executable_extensions; do
6867  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6868    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6869    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6870    break 2
6871  fi
6872done
6873done
6874IFS=$as_save_IFS
6875
6876fi
6877fi
6878STRIP=$ac_cv_prog_STRIP
6879if test -n "$STRIP"; then
6880  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6881$as_echo "$STRIP" >&6; }
6882else
6883  { $as_echo "$as_me:$LINENO: result: no" >&5
6884$as_echo "no" >&6; }
6885fi
6886
6887
6888fi
6889if test -z "$ac_cv_prog_STRIP"; then
6890  ac_ct_STRIP=$STRIP
6891  # Extract the first word of "strip", so it can be a program name with args.
6892set dummy strip; 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_ac_ct_STRIP+set}" = set; then
6896  $as_echo_n "(cached) " >&6
6897else
6898  if test -n "$ac_ct_STRIP"; then
6899  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_ac_ct_STRIP="strip"
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
6918ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6919if test -n "$ac_ct_STRIP"; then
6920  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6921$as_echo "$ac_ct_STRIP" >&6; }
6922else
6923  { $as_echo "$as_me:$LINENO: result: no" >&5
6924$as_echo "no" >&6; }
6925fi
6926
6927  if test "x$ac_ct_STRIP" = x; then
6928    STRIP=":"
6929  else
6930    case $cross_compiling:$ac_tool_warned in
6931yes:)
6932{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6933whose name does not start with the host triplet.  If you think this
6934configuration is useful to you, please write to autoconf@gnu.org." >&5
6935$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6936whose name does not start with the host triplet.  If you think this
6937configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6938ac_tool_warned=yes ;;
6939esac
6940    STRIP=$ac_ct_STRIP
6941  fi
6942else
6943  STRIP="$ac_cv_prog_STRIP"
6944fi
6945
6946
6947old_CC="$CC"
6948old_CFLAGS="$CFLAGS"
6949
6950# Set sane defaults for various variables
6951test -z "$AR" && AR=ar
6952test -z "$AR_FLAGS" && AR_FLAGS=cru
6953test -z "$AS" && AS=as
6954test -z "$CC" && CC=cc
6955test -z "$LTCC" && LTCC=$CC
6956test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6957test -z "$DLLTOOL" && DLLTOOL=dlltool
6958test -z "$LD" && LD=ld
6959test -z "$LN_S" && LN_S="ln -s"
6960test -z "$MAGIC_CMD" && MAGIC_CMD=file
6961test -z "$NM" && NM=nm
6962test -z "$SED" && SED=sed
6963test -z "$OBJDUMP" && OBJDUMP=objdump
6964test -z "$RANLIB" && RANLIB=:
6965test -z "$STRIP" && STRIP=:
6966test -z "$ac_objext" && ac_objext=o
6967
6968# Determine commands to create old-style static archives.
6969old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6970old_postinstall_cmds='chmod 644 $oldlib'
6971old_postuninstall_cmds=
6972
6973if test -n "$RANLIB"; then
6974  case $host_os in
6975  openbsd*)
6976    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6977    ;;
6978  *)
6979    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6980    ;;
6981  esac
6982  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6983fi
6984
6985for cc_temp in $compiler""; do
6986  case $cc_temp in
6987    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6988    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6989    \-*) ;;
6990    *) break;;
6991  esac
6992done
6993cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6994
6995
6996# Only perform the check for file, if the check method requires it
6997case $deplibs_check_method in
6998file_magic*)
6999  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7000    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7001$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7002if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7003  $as_echo_n "(cached) " >&6
7004else
7005  case $MAGIC_CMD in
7006[\\/*] |  ?:[\\/]*)
7007  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7008  ;;
7009*)
7010  lt_save_MAGIC_CMD="$MAGIC_CMD"
7011  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7012  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7013  for ac_dir in $ac_dummy; do
7014    IFS="$lt_save_ifs"
7015    test -z "$ac_dir" && ac_dir=.
7016    if test -f $ac_dir/${ac_tool_prefix}file; then
7017      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7018      if test -n "$file_magic_test_file"; then
7019	case $deplibs_check_method in
7020	"file_magic "*)
7021	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7022	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7023	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7024	    $EGREP "$file_magic_regex" > /dev/null; then
7025	    :
7026	  else
7027	    cat <<EOF 1>&2
7028
7029*** Warning: the command libtool uses to detect shared libraries,
7030*** $file_magic_cmd, produces output that libtool cannot recognize.
7031*** The result is that libtool may fail to recognize shared libraries
7032*** as such.  This will affect the creation of libtool libraries that
7033*** depend on shared libraries, but programs linked with such libtool
7034*** libraries will work regardless of this problem.  Nevertheless, you
7035*** may want to report the problem to your system manager and/or to
7036*** bug-libtool@gnu.org
7037
7038EOF
7039	  fi ;;
7040	esac
7041      fi
7042      break
7043    fi
7044  done
7045  IFS="$lt_save_ifs"
7046  MAGIC_CMD="$lt_save_MAGIC_CMD"
7047  ;;
7048esac
7049fi
7050
7051MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7052if test -n "$MAGIC_CMD"; then
7053  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7054$as_echo "$MAGIC_CMD" >&6; }
7055else
7056  { $as_echo "$as_me:$LINENO: result: no" >&5
7057$as_echo "no" >&6; }
7058fi
7059
7060if test -z "$lt_cv_path_MAGIC_CMD"; then
7061  if test -n "$ac_tool_prefix"; then
7062    { $as_echo "$as_me:$LINENO: checking for file" >&5
7063$as_echo_n "checking for file... " >&6; }
7064if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7065  $as_echo_n "(cached) " >&6
7066else
7067  case $MAGIC_CMD in
7068[\\/*] |  ?:[\\/]*)
7069  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7070  ;;
7071*)
7072  lt_save_MAGIC_CMD="$MAGIC_CMD"
7073  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7074  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7075  for ac_dir in $ac_dummy; do
7076    IFS="$lt_save_ifs"
7077    test -z "$ac_dir" && ac_dir=.
7078    if test -f $ac_dir/file; then
7079      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7080      if test -n "$file_magic_test_file"; then
7081	case $deplibs_check_method in
7082	"file_magic "*)
7083	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7084	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7085	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7086	    $EGREP "$file_magic_regex" > /dev/null; then
7087	    :
7088	  else
7089	    cat <<EOF 1>&2
7090
7091*** Warning: the command libtool uses to detect shared libraries,
7092*** $file_magic_cmd, produces output that libtool cannot recognize.
7093*** The result is that libtool may fail to recognize shared libraries
7094*** as such.  This will affect the creation of libtool libraries that
7095*** depend on shared libraries, but programs linked with such libtool
7096*** libraries will work regardless of this problem.  Nevertheless, you
7097*** may want to report the problem to your system manager and/or to
7098*** bug-libtool@gnu.org
7099
7100EOF
7101	  fi ;;
7102	esac
7103      fi
7104      break
7105    fi
7106  done
7107  IFS="$lt_save_ifs"
7108  MAGIC_CMD="$lt_save_MAGIC_CMD"
7109  ;;
7110esac
7111fi
7112
7113MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7114if test -n "$MAGIC_CMD"; then
7115  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7116$as_echo "$MAGIC_CMD" >&6; }
7117else
7118  { $as_echo "$as_me:$LINENO: result: no" >&5
7119$as_echo "no" >&6; }
7120fi
7121
7122  else
7123    MAGIC_CMD=:
7124  fi
7125fi
7126
7127  fi
7128  ;;
7129esac
7130
7131
7132  case $host_os in
7133    rhapsody* | darwin*)
7134    if test -n "$ac_tool_prefix"; then
7135  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7136set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7137{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7138$as_echo_n "checking for $ac_word... " >&6; }
7139if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7140  $as_echo_n "(cached) " >&6
7141else
7142  if test -n "$DSYMUTIL"; then
7143  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7144else
7145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146for as_dir in $PATH
7147do
7148  IFS=$as_save_IFS
7149  test -z "$as_dir" && as_dir=.
7150  for ac_exec_ext in '' $ac_executable_extensions; do
7151  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7152    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7153    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7154    break 2
7155  fi
7156done
7157done
7158IFS=$as_save_IFS
7159
7160fi
7161fi
7162DSYMUTIL=$ac_cv_prog_DSYMUTIL
7163if test -n "$DSYMUTIL"; then
7164  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7165$as_echo "$DSYMUTIL" >&6; }
7166else
7167  { $as_echo "$as_me:$LINENO: result: no" >&5
7168$as_echo "no" >&6; }
7169fi
7170
7171
7172fi
7173if test -z "$ac_cv_prog_DSYMUTIL"; then
7174  ac_ct_DSYMUTIL=$DSYMUTIL
7175  # Extract the first word of "dsymutil", so it can be a program name with args.
7176set dummy dsymutil; ac_word=$2
7177{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7178$as_echo_n "checking for $ac_word... " >&6; }
7179if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7180  $as_echo_n "(cached) " >&6
7181else
7182  if test -n "$ac_ct_DSYMUTIL"; then
7183  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7184else
7185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186for as_dir in $PATH
7187do
7188  IFS=$as_save_IFS
7189  test -z "$as_dir" && as_dir=.
7190  for ac_exec_ext in '' $ac_executable_extensions; do
7191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7192    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7193    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194    break 2
7195  fi
7196done
7197done
7198IFS=$as_save_IFS
7199
7200fi
7201fi
7202ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7203if test -n "$ac_ct_DSYMUTIL"; then
7204  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7205$as_echo "$ac_ct_DSYMUTIL" >&6; }
7206else
7207  { $as_echo "$as_me:$LINENO: result: no" >&5
7208$as_echo "no" >&6; }
7209fi
7210
7211  if test "x$ac_ct_DSYMUTIL" = x; then
7212    DSYMUTIL=":"
7213  else
7214    case $cross_compiling:$ac_tool_warned in
7215yes:)
7216{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7217whose name does not start with the host triplet.  If you think this
7218configuration is useful to you, please write to autoconf@gnu.org." >&5
7219$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7220whose name does not start with the host triplet.  If you think this
7221configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7222ac_tool_warned=yes ;;
7223esac
7224    DSYMUTIL=$ac_ct_DSYMUTIL
7225  fi
7226else
7227  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7228fi
7229
7230    if test -n "$ac_tool_prefix"; then
7231  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7232set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7233{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7234$as_echo_n "checking for $ac_word... " >&6; }
7235if test "${ac_cv_prog_NMEDIT+set}" = set; then
7236  $as_echo_n "(cached) " >&6
7237else
7238  if test -n "$NMEDIT"; then
7239  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7240else
7241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242for as_dir in $PATH
7243do
7244  IFS=$as_save_IFS
7245  test -z "$as_dir" && as_dir=.
7246  for ac_exec_ext in '' $ac_executable_extensions; do
7247  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7248    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7249    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7250    break 2
7251  fi
7252done
7253done
7254IFS=$as_save_IFS
7255
7256fi
7257fi
7258NMEDIT=$ac_cv_prog_NMEDIT
7259if test -n "$NMEDIT"; then
7260  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7261$as_echo "$NMEDIT" >&6; }
7262else
7263  { $as_echo "$as_me:$LINENO: result: no" >&5
7264$as_echo "no" >&6; }
7265fi
7266
7267
7268fi
7269if test -z "$ac_cv_prog_NMEDIT"; then
7270  ac_ct_NMEDIT=$NMEDIT
7271  # Extract the first word of "nmedit", so it can be a program name with args.
7272set dummy nmedit; ac_word=$2
7273{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7274$as_echo_n "checking for $ac_word... " >&6; }
7275if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7276  $as_echo_n "(cached) " >&6
7277else
7278  if test -n "$ac_ct_NMEDIT"; then
7279  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7280else
7281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282for as_dir in $PATH
7283do
7284  IFS=$as_save_IFS
7285  test -z "$as_dir" && as_dir=.
7286  for ac_exec_ext in '' $ac_executable_extensions; do
7287  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7288    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7289    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7290    break 2
7291  fi
7292done
7293done
7294IFS=$as_save_IFS
7295
7296fi
7297fi
7298ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7299if test -n "$ac_ct_NMEDIT"; then
7300  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7301$as_echo "$ac_ct_NMEDIT" >&6; }
7302else
7303  { $as_echo "$as_me:$LINENO: result: no" >&5
7304$as_echo "no" >&6; }
7305fi
7306
7307  if test "x$ac_ct_NMEDIT" = x; then
7308    NMEDIT=":"
7309  else
7310    case $cross_compiling:$ac_tool_warned in
7311yes:)
7312{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7313whose name does not start with the host triplet.  If you think this
7314configuration is useful to you, please write to autoconf@gnu.org." >&5
7315$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7316whose name does not start with the host triplet.  If you think this
7317configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7318ac_tool_warned=yes ;;
7319esac
7320    NMEDIT=$ac_ct_NMEDIT
7321  fi
7322else
7323  NMEDIT="$ac_cv_prog_NMEDIT"
7324fi
7325
7326
7327    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7328$as_echo_n "checking for -single_module linker flag... " >&6; }
7329if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7330  $as_echo_n "(cached) " >&6
7331else
7332  lt_cv_apple_cc_single_mod=no
7333      if test -z "${LT_MULTI_MODULE}"; then
7334   # By default we will add the -single_module flag. You can override
7335   # by either setting the environment variable LT_MULTI_MODULE
7336   # non-empty at configure time, or by adding -multi_module to the
7337   # link flags.
7338   echo "int foo(void){return 1;}" > conftest.c
7339   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7340     -dynamiclib ${wl}-single_module conftest.c
7341   if test -f libconftest.dylib; then
7342     lt_cv_apple_cc_single_mod=yes
7343     rm -rf libconftest.dylib*
7344   fi
7345   rm conftest.c
7346      fi
7347fi
7348{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7349$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7350    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7351$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7352if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7353  $as_echo_n "(cached) " >&6
7354else
7355  lt_cv_ld_exported_symbols_list=no
7356      save_LDFLAGS=$LDFLAGS
7357      echo "_main" > conftest.sym
7358      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7359      cat >conftest.$ac_ext <<_ACEOF
7360/* confdefs.h.  */
7361_ACEOF
7362cat confdefs.h >>conftest.$ac_ext
7363cat >>conftest.$ac_ext <<_ACEOF
7364/* end confdefs.h.  */
7365
7366int
7367main ()
7368{
7369
7370  ;
7371  return 0;
7372}
7373_ACEOF
7374rm -f conftest.$ac_objext conftest$ac_exeext
7375if { (ac_try="$ac_link"
7376case "(($ac_try" in
7377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7378  *) ac_try_echo=$ac_try;;
7379esac
7380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7381$as_echo "$ac_try_echo") >&5
7382  (eval "$ac_link") 2>conftest.er1
7383  ac_status=$?
7384  grep -v '^ *+' conftest.er1 >conftest.err
7385  rm -f conftest.er1
7386  cat conftest.err >&5
7387  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388  (exit $ac_status); } && {
7389	 test -z "$ac_c_werror_flag" ||
7390	 test ! -s conftest.err
7391       } && test -s conftest$ac_exeext && {
7392	 test "$cross_compiling" = yes ||
7393	 $as_test_x conftest$ac_exeext
7394       }; then
7395  lt_cv_ld_exported_symbols_list=yes
7396else
7397  $as_echo "$as_me: failed program was:" >&5
7398sed 's/^/| /' conftest.$ac_ext >&5
7399
7400	lt_cv_ld_exported_symbols_list=no
7401fi
7402
7403rm -rf conftest.dSYM
7404rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7405      conftest$ac_exeext conftest.$ac_ext
7406   LDFLAGS="$save_LDFLAGS"
7407
7408fi
7409{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7410$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7411    case $host_os in
7412    rhapsody* | darwin1.[0123])
7413      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7414    darwin1.*)
7415     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7416    darwin*)
7417      # if running on 10.5 or later, the deployment target defaults
7418      # to the OS version, if on x86, and 10.4, the deployment
7419      # target defaults to 10.4. Don't you love it?
7420      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7421   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7422     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7423   10.[012]*)
7424     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7425   10.*)
7426     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7427      esac
7428    ;;
7429  esac
7430    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7431      _lt_dar_single_mod='$single_module'
7432    fi
7433    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7434      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7435    else
7436      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7437    fi
7438    if test "$DSYMUTIL" != ":"; then
7439      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7440    else
7441      _lt_dsymutil=
7442    fi
7443    ;;
7444  esac
7445
7446
7447enable_dlopen=no
7448enable_win32_dll=no
7449
7450# Check whether --enable-libtool-lock was given.
7451if test "${enable_libtool_lock+set}" = set; then
7452  enableval=$enable_libtool_lock;
7453fi
7454
7455test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7456
7457
7458# Check whether --with-pic was given.
7459if test "${with_pic+set}" = set; then
7460  withval=$with_pic; pic_mode="$withval"
7461else
7462  pic_mode=default
7463fi
7464
7465test -z "$pic_mode" && pic_mode=default
7466
7467# Use C for the default configuration in the libtool script
7468tagname=
7469lt_save_CC="$CC"
7470ac_ext=c
7471ac_cpp='$CPP $CPPFLAGS'
7472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7474ac_compiler_gnu=$ac_cv_c_compiler_gnu
7475
7476
7477# Source file extension for C test sources.
7478ac_ext=c
7479
7480# Object file extension for compiled C test sources.
7481objext=o
7482objext=$objext
7483
7484# Code to be used in simple compile tests
7485lt_simple_compile_test_code="int some_variable = 0;"
7486
7487# Code to be used in simple link tests
7488lt_simple_link_test_code='int main(){return(0);}'
7489
7490
7491# If no C compiler was specified, use CC.
7492LTCC=${LTCC-"$CC"}
7493
7494# If no C compiler flags were specified, use CFLAGS.
7495LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7496
7497# Allow CC to be a program name with arguments.
7498compiler=$CC
7499
7500
7501# save warnings/boilerplate of simple test code
7502ac_outfile=conftest.$ac_objext
7503echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7504eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7505_lt_compiler_boilerplate=`cat conftest.err`
7506$rm conftest*
7507
7508ac_outfile=conftest.$ac_objext
7509echo "$lt_simple_link_test_code" >conftest.$ac_ext
7510eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7511_lt_linker_boilerplate=`cat conftest.err`
7512$rm -r conftest*
7513
7514
7515
7516lt_prog_compiler_no_builtin_flag=
7517
7518if test "$GCC" = yes; then
7519  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7520
7521
7522{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7523$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7524if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7525  $as_echo_n "(cached) " >&6
7526else
7527  lt_cv_prog_compiler_rtti_exceptions=no
7528  ac_outfile=conftest.$ac_objext
7529   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7530   lt_compiler_flag="-fno-rtti -fno-exceptions"
7531   # Insert the option either (1) after the last *FLAGS variable, or
7532   # (2) before a word containing "conftest.", or (3) at the end.
7533   # Note that $ac_compile itself does not contain backslashes and begins
7534   # with a dollar sign (not a hyphen), so the echo should work correctly.
7535   # The option is referenced via a variable to avoid confusing sed.
7536   lt_compile=`echo "$ac_compile" | $SED \
7537   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7538   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7539   -e 's:$: $lt_compiler_flag:'`
7540   (eval echo "\"\$as_me:7540: $lt_compile\"" >&5)
7541   (eval "$lt_compile" 2>conftest.err)
7542   ac_status=$?
7543   cat conftest.err >&5
7544   echo "$as_me:7544: \$? = $ac_status" >&5
7545   if (exit $ac_status) && test -s "$ac_outfile"; then
7546     # The compiler can only warn and ignore the option if not recognized
7547     # So say no if there are warnings other than the usual output.
7548     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7549     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7550     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7551       lt_cv_prog_compiler_rtti_exceptions=yes
7552     fi
7553   fi
7554   $rm conftest*
7555
7556fi
7557{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7558$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7559
7560if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7561    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7562else
7563    :
7564fi
7565
7566fi
7567
7568lt_prog_compiler_wl=
7569lt_prog_compiler_pic=
7570lt_prog_compiler_static=
7571
7572{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7573$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7574
7575  if test "$GCC" = yes; then
7576    lt_prog_compiler_wl='-Wl,'
7577    lt_prog_compiler_static='-static'
7578
7579    case $host_os in
7580      aix*)
7581      # All AIX code is PIC.
7582      if test "$host_cpu" = ia64; then
7583	# AIX 5 now supports IA64 processor
7584	lt_prog_compiler_static='-Bstatic'
7585      fi
7586      ;;
7587
7588    amigaos*)
7589      # FIXME: we need at least 68020 code to build shared libraries, but
7590      # adding the `-m68020' flag to GCC prevents building anything better,
7591      # like `-m68040'.
7592      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7593      ;;
7594
7595    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7596      # PIC is the default for these OSes.
7597      ;;
7598
7599    mingw* | cygwin* | pw32* | os2*)
7600      # This hack is so that the source file can tell whether it is being
7601      # built for inclusion in a dll (and should export symbols for example).
7602      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7603      # (--disable-auto-import) libraries
7604      lt_prog_compiler_pic='-DDLL_EXPORT'
7605      ;;
7606
7607    darwin* | rhapsody*)
7608      # PIC is the default on this platform
7609      # Common symbols not allowed in MH_DYLIB files
7610      lt_prog_compiler_pic='-fno-common'
7611      ;;
7612
7613    interix[3-9]*)
7614      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7615      # Instead, we relocate shared libraries at runtime.
7616      ;;
7617
7618    msdosdjgpp*)
7619      # Just because we use GCC doesn't mean we suddenly get shared libraries
7620      # on systems that don't support them.
7621      lt_prog_compiler_can_build_shared=no
7622      enable_shared=no
7623      ;;
7624
7625    sysv4*MP*)
7626      if test -d /usr/nec; then
7627	lt_prog_compiler_pic=-Kconform_pic
7628      fi
7629      ;;
7630
7631    hpux*)
7632      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7633      # not for PA HP-UX.
7634      case $host_cpu in
7635      hppa*64*|ia64*)
7636	# +Z the default
7637	;;
7638      *)
7639	lt_prog_compiler_pic='-fPIC'
7640	;;
7641      esac
7642      ;;
7643
7644    *)
7645      lt_prog_compiler_pic='-fPIC'
7646      ;;
7647    esac
7648  else
7649    # PORTME Check for flag to pass linker flags through the system compiler.
7650    case $host_os in
7651    aix*)
7652      lt_prog_compiler_wl='-Wl,'
7653      if test "$host_cpu" = ia64; then
7654	# AIX 5 now supports IA64 processor
7655	lt_prog_compiler_static='-Bstatic'
7656      else
7657	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7658      fi
7659      ;;
7660      darwin*)
7661        # PIC is the default on this platform
7662        # Common symbols not allowed in MH_DYLIB files
7663       case $cc_basename in
7664         xlc*)
7665         lt_prog_compiler_pic='-qnocommon'
7666         lt_prog_compiler_wl='-Wl,'
7667         ;;
7668       esac
7669       ;;
7670
7671    mingw* | cygwin* | pw32* | os2*)
7672      # This hack is so that the source file can tell whether it is being
7673      # built for inclusion in a dll (and should export symbols for example).
7674      lt_prog_compiler_pic='-DDLL_EXPORT'
7675      ;;
7676
7677    hpux9* | hpux10* | hpux11*)
7678      lt_prog_compiler_wl='-Wl,'
7679      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7680      # not for PA HP-UX.
7681      case $host_cpu in
7682      hppa*64*|ia64*)
7683	# +Z the default
7684	;;
7685      *)
7686	lt_prog_compiler_pic='+Z'
7687	;;
7688      esac
7689      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7690      lt_prog_compiler_static='${wl}-a ${wl}archive'
7691      ;;
7692
7693    irix5* | irix6* | nonstopux*)
7694      lt_prog_compiler_wl='-Wl,'
7695      # PIC (with -KPIC) is the default.
7696      lt_prog_compiler_static='-non_shared'
7697      ;;
7698
7699    newsos6)
7700      lt_prog_compiler_pic='-KPIC'
7701      lt_prog_compiler_static='-Bstatic'
7702      ;;
7703
7704    linux* | k*bsd*-gnu)
7705      case $cc_basename in
7706      icc* | ecc*)
7707	lt_prog_compiler_wl='-Wl,'
7708	lt_prog_compiler_pic='-KPIC'
7709	lt_prog_compiler_static='-static'
7710        ;;
7711      pgcc* | pgf77* | pgf90* | pgf95*)
7712        # Portland Group compilers (*not* the Pentium gcc compiler,
7713	# which looks to be a dead project)
7714	lt_prog_compiler_wl='-Wl,'
7715	lt_prog_compiler_pic='-fpic'
7716	lt_prog_compiler_static='-Bstatic'
7717        ;;
7718      ccc*)
7719        lt_prog_compiler_wl='-Wl,'
7720        # All Alpha code is PIC.
7721        lt_prog_compiler_static='-non_shared'
7722        ;;
7723      *)
7724        case `$CC -V 2>&1 | sed 5q` in
7725	*Sun\ C*)
7726	  # Sun C 5.9
7727	  lt_prog_compiler_pic='-KPIC'
7728	  lt_prog_compiler_static='-Bstatic'
7729	  lt_prog_compiler_wl='-Wl,'
7730	  ;;
7731	*Sun\ F*)
7732	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7733	  lt_prog_compiler_pic='-KPIC'
7734	  lt_prog_compiler_static='-Bstatic'
7735	  lt_prog_compiler_wl=''
7736	  ;;
7737	esac
7738	;;
7739      esac
7740      ;;
7741
7742    osf3* | osf4* | osf5*)
7743      lt_prog_compiler_wl='-Wl,'
7744      # All OSF/1 code is PIC.
7745      lt_prog_compiler_static='-non_shared'
7746      ;;
7747
7748    rdos*)
7749      lt_prog_compiler_static='-non_shared'
7750      ;;
7751
7752    solaris*)
7753      lt_prog_compiler_pic='-KPIC'
7754      lt_prog_compiler_static='-Bstatic'
7755      case $cc_basename in
7756      f77* | f90* | f95*)
7757	lt_prog_compiler_wl='-Qoption ld ';;
7758      *)
7759	lt_prog_compiler_wl='-Wl,';;
7760      esac
7761      ;;
7762
7763    sunos4*)
7764      lt_prog_compiler_wl='-Qoption ld '
7765      lt_prog_compiler_pic='-PIC'
7766      lt_prog_compiler_static='-Bstatic'
7767      ;;
7768
7769    sysv4 | sysv4.2uw2* | sysv4.3*)
7770      lt_prog_compiler_wl='-Wl,'
7771      lt_prog_compiler_pic='-KPIC'
7772      lt_prog_compiler_static='-Bstatic'
7773      ;;
7774
7775    sysv4*MP*)
7776      if test -d /usr/nec ;then
7777	lt_prog_compiler_pic='-Kconform_pic'
7778	lt_prog_compiler_static='-Bstatic'
7779      fi
7780      ;;
7781
7782    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7783      lt_prog_compiler_wl='-Wl,'
7784      lt_prog_compiler_pic='-KPIC'
7785      lt_prog_compiler_static='-Bstatic'
7786      ;;
7787
7788    unicos*)
7789      lt_prog_compiler_wl='-Wl,'
7790      lt_prog_compiler_can_build_shared=no
7791      ;;
7792
7793    uts4*)
7794      lt_prog_compiler_pic='-pic'
7795      lt_prog_compiler_static='-Bstatic'
7796      ;;
7797
7798    *)
7799      lt_prog_compiler_can_build_shared=no
7800      ;;
7801    esac
7802  fi
7803
7804{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7805$as_echo "$lt_prog_compiler_pic" >&6; }
7806
7807#
7808# Check to make sure the PIC flag actually works.
7809#
7810if test -n "$lt_prog_compiler_pic"; then
7811
7812{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7813$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7814if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7815  $as_echo_n "(cached) " >&6
7816else
7817  lt_cv_prog_compiler_pic_works=no
7818  ac_outfile=conftest.$ac_objext
7819   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7820   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7821   # Insert the option either (1) after the last *FLAGS variable, or
7822   # (2) before a word containing "conftest.", or (3) at the end.
7823   # Note that $ac_compile itself does not contain backslashes and begins
7824   # with a dollar sign (not a hyphen), so the echo should work correctly.
7825   # The option is referenced via a variable to avoid confusing sed.
7826   lt_compile=`echo "$ac_compile" | $SED \
7827   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7828   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7829   -e 's:$: $lt_compiler_flag:'`
7830   (eval echo "\"\$as_me:7830: $lt_compile\"" >&5)
7831   (eval "$lt_compile" 2>conftest.err)
7832   ac_status=$?
7833   cat conftest.err >&5
7834   echo "$as_me:7834: \$? = $ac_status" >&5
7835   if (exit $ac_status) && test -s "$ac_outfile"; then
7836     # The compiler can only warn and ignore the option if not recognized
7837     # So say no if there are warnings other than the usual output.
7838     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7839     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7840     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7841       lt_cv_prog_compiler_pic_works=yes
7842     fi
7843   fi
7844   $rm conftest*
7845
7846fi
7847{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7848$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7849
7850if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7851    case $lt_prog_compiler_pic in
7852     "" | " "*) ;;
7853     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7854     esac
7855else
7856    lt_prog_compiler_pic=
7857     lt_prog_compiler_can_build_shared=no
7858fi
7859
7860fi
7861case $host_os in
7862  # For platforms which do not support PIC, -DPIC is meaningless:
7863  *djgpp*)
7864    lt_prog_compiler_pic=
7865    ;;
7866  *)
7867    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7868    ;;
7869esac
7870
7871#
7872# Check to make sure the static flag actually works.
7873#
7874wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7875{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7876$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7877if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7878  $as_echo_n "(cached) " >&6
7879else
7880  lt_cv_prog_compiler_static_works=no
7881   save_LDFLAGS="$LDFLAGS"
7882   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7883   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7884   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7885     # The linker can only warn and ignore the option if not recognized
7886     # So say no if there are warnings
7887     if test -s conftest.err; then
7888       # Append any errors to the config.log.
7889       cat conftest.err 1>&5
7890       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7891       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7892       if diff conftest.exp conftest.er2 >/dev/null; then
7893         lt_cv_prog_compiler_static_works=yes
7894       fi
7895     else
7896       lt_cv_prog_compiler_static_works=yes
7897     fi
7898   fi
7899   $rm -r conftest*
7900   LDFLAGS="$save_LDFLAGS"
7901
7902fi
7903{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7904$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7905
7906if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7907    :
7908else
7909    lt_prog_compiler_static=
7910fi
7911
7912
7913{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7914$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7915if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7916  $as_echo_n "(cached) " >&6
7917else
7918  lt_cv_prog_compiler_c_o=no
7919   $rm -r conftest 2>/dev/null
7920   mkdir conftest
7921   cd conftest
7922   mkdir out
7923   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7924
7925   lt_compiler_flag="-o out/conftest2.$ac_objext"
7926   # Insert the option either (1) after the last *FLAGS variable, or
7927   # (2) before a word containing "conftest.", or (3) at the end.
7928   # Note that $ac_compile itself does not contain backslashes and begins
7929   # with a dollar sign (not a hyphen), so the echo should work correctly.
7930   lt_compile=`echo "$ac_compile" | $SED \
7931   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7932   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7933   -e 's:$: $lt_compiler_flag:'`
7934   (eval echo "\"\$as_me:7934: $lt_compile\"" >&5)
7935   (eval "$lt_compile" 2>out/conftest.err)
7936   ac_status=$?
7937   cat out/conftest.err >&5
7938   echo "$as_me:7938: \$? = $ac_status" >&5
7939   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7940   then
7941     # The compiler can only warn and ignore the option if not recognized
7942     # So say no if there are warnings
7943     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7944     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7945     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7946       lt_cv_prog_compiler_c_o=yes
7947     fi
7948   fi
7949   chmod u+w . 2>&5
7950   $rm conftest*
7951   # SGI C++ compiler will create directory out/ii_files/ for
7952   # template instantiation
7953   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7954   $rm out/* && rmdir out
7955   cd ..
7956   rmdir conftest
7957   $rm conftest*
7958
7959fi
7960{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7961$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7962
7963
7964hard_links="nottested"
7965if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7966  # do not overwrite the value of need_locks provided by the user
7967  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7968$as_echo_n "checking if we can lock with hard links... " >&6; }
7969  hard_links=yes
7970  $rm conftest*
7971  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7972  touch conftest.a
7973  ln conftest.a conftest.b 2>&5 || hard_links=no
7974  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7975  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7976$as_echo "$hard_links" >&6; }
7977  if test "$hard_links" = no; then
7978    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7979$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7980    need_locks=warn
7981  fi
7982else
7983  need_locks=no
7984fi
7985
7986{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7987$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7988
7989  runpath_var=
7990  allow_undefined_flag=
7991  enable_shared_with_static_runtimes=no
7992  archive_cmds=
7993  archive_expsym_cmds=
7994  old_archive_From_new_cmds=
7995  old_archive_from_expsyms_cmds=
7996  export_dynamic_flag_spec=
7997  whole_archive_flag_spec=
7998  thread_safe_flag_spec=
7999  hardcode_libdir_flag_spec=
8000  hardcode_libdir_flag_spec_ld=
8001  hardcode_libdir_separator=
8002  hardcode_direct=no
8003  hardcode_minus_L=no
8004  hardcode_shlibpath_var=unsupported
8005  link_all_deplibs=unknown
8006  hardcode_automatic=no
8007  module_cmds=
8008  module_expsym_cmds=
8009  always_export_symbols=no
8010  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8011  # include_expsyms should be a list of space-separated symbols to be *always*
8012  # included in the symbol list
8013  include_expsyms=
8014  # exclude_expsyms can be an extended regexp of symbols to exclude
8015  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8016  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8017  # as well as any symbol that contains `d'.
8018  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8019  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8020  # platforms (ab)use it in PIC code, but their linkers get confused if
8021  # the symbol is explicitly referenced.  Since portable code cannot
8022  # rely on this symbol name, it's probably fine to never include it in
8023  # preloaded symbol tables.
8024  # Exclude shared library initialization/finalization symbols.
8025  extract_expsyms_cmds=
8026  # Just being paranoid about ensuring that cc_basename is set.
8027  for cc_temp in $compiler""; do
8028  case $cc_temp in
8029    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8030    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8031    \-*) ;;
8032    *) break;;
8033  esac
8034done
8035cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8036
8037  case $host_os in
8038  cygwin* | mingw* | pw32*)
8039    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8040    # When not using gcc, we currently assume that we are using
8041    # Microsoft Visual C++.
8042    if test "$GCC" != yes; then
8043      with_gnu_ld=no
8044    fi
8045    ;;
8046  interix*)
8047    # we just hope/assume this is gcc and not c89 (= MSVC++)
8048    with_gnu_ld=yes
8049    ;;
8050  openbsd*)
8051    with_gnu_ld=no
8052    ;;
8053  esac
8054
8055  ld_shlibs=yes
8056  if test "$with_gnu_ld" = yes; then
8057    # If archive_cmds runs LD, not CC, wlarc should be empty
8058    wlarc='${wl}'
8059
8060    # Set some defaults for GNU ld with shared library support. These
8061    # are reset later if shared libraries are not supported. Putting them
8062    # here allows them to be overridden if necessary.
8063    runpath_var=LD_RUN_PATH
8064    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8065    export_dynamic_flag_spec='${wl}--export-dynamic'
8066    # ancient GNU ld didn't support --whole-archive et. al.
8067    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8068	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8069      else
8070  	whole_archive_flag_spec=
8071    fi
8072    supports_anon_versioning=no
8073    case `$LD -v 2>/dev/null` in
8074      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8075      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8076      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8077      *\ 2.11.*) ;; # other 2.11 versions
8078      *) supports_anon_versioning=yes ;;
8079    esac
8080
8081    # See if GNU ld supports shared libraries.
8082    case $host_os in
8083    aix[3-9]*)
8084      # On AIX/PPC, the GNU linker is very broken
8085      if test "$host_cpu" != ia64; then
8086	ld_shlibs=no
8087	cat <<EOF 1>&2
8088
8089*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8090*** to be unable to reliably create shared libraries on AIX.
8091*** Therefore, libtool is disabling shared libraries support.  If you
8092*** really care for shared libraries, you may want to modify your PATH
8093*** so that a non-GNU linker is found, and then restart.
8094
8095EOF
8096      fi
8097      ;;
8098
8099    amigaos*)
8100      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)'
8101      hardcode_libdir_flag_spec='-L$libdir'
8102      hardcode_minus_L=yes
8103
8104      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8105      # that the semantics of dynamic libraries on AmigaOS, at least up
8106      # to version 4, is to share data among multiple programs linked
8107      # with the same dynamic library.  Since this doesn't match the
8108      # behavior of shared libraries on other platforms, we can't use
8109      # them.
8110      ld_shlibs=no
8111      ;;
8112
8113    beos*)
8114      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8115	allow_undefined_flag=unsupported
8116	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8117	# support --undefined.  This deserves some investigation.  FIXME
8118	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8119      else
8120	ld_shlibs=no
8121      fi
8122      ;;
8123
8124    cygwin* | mingw* | pw32*)
8125      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8126      # as there is no search path for DLLs.
8127      hardcode_libdir_flag_spec='-L$libdir'
8128      allow_undefined_flag=unsupported
8129      always_export_symbols=no
8130      enable_shared_with_static_runtimes=yes
8131      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8132
8133      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8134        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8135	# If the export-symbols file already is a .def file (1st line
8136	# is EXPORTS), use it as is; otherwise, prepend...
8137	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8138	  cp $export_symbols $output_objdir/$soname.def;
8139	else
8140	  echo EXPORTS > $output_objdir/$soname.def;
8141	  cat $export_symbols >> $output_objdir/$soname.def;
8142	fi~
8143	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8144      else
8145	ld_shlibs=no
8146      fi
8147      ;;
8148
8149    interix[3-9]*)
8150      hardcode_direct=no
8151      hardcode_shlibpath_var=no
8152      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8153      export_dynamic_flag_spec='${wl}-E'
8154      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8155      # Instead, shared libraries are loaded at an image base (0x10000000 by
8156      # default) and relocated if they conflict, which is a slow very memory
8157      # consuming and fragmenting process.  To avoid this, we pick a random,
8158      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8159      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8160      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8161      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'
8162      ;;
8163
8164    gnu* | linux* | k*bsd*-gnu)
8165      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8166	tmp_addflag=
8167	case $cc_basename,$host_cpu in
8168	pgcc*)				# Portland Group C compiler
8169	  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'
8170	  tmp_addflag=' $pic_flag'
8171	  ;;
8172	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8173	  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'
8174	  tmp_addflag=' $pic_flag -Mnomain' ;;
8175	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8176	  tmp_addflag=' -i_dynamic' ;;
8177	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8178	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8179	ifc* | ifort*)			# Intel Fortran compiler
8180	  tmp_addflag=' -nofor_main' ;;
8181	esac
8182	case `$CC -V 2>&1 | sed 5q` in
8183	*Sun\ C*)			# Sun C 5.9
8184	  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'
8185	  tmp_sharedflag='-G' ;;
8186	*Sun\ F*)			# Sun Fortran 8.3
8187	  tmp_sharedflag='-G' ;;
8188	*)
8189	  tmp_sharedflag='-shared' ;;
8190	esac
8191	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8192
8193	if test $supports_anon_versioning = yes; then
8194	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8195  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8196  $echo "local: *; };" >> $output_objdir/$libname.ver~
8197	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8198	fi
8199      else
8200	ld_shlibs=no
8201      fi
8202      ;;
8203
8204    netbsd*)
8205      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8206	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8207	wlarc=
8208      else
8209	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8210	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8211      fi
8212      ;;
8213
8214    solaris*)
8215      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8216	ld_shlibs=no
8217	cat <<EOF 1>&2
8218
8219*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8220*** create shared libraries on Solaris systems.  Therefore, libtool
8221*** is disabling shared libraries support.  We urge you to upgrade GNU
8222*** binutils to release 2.9.1 or newer.  Another option is to modify
8223*** your PATH or compiler configuration so that the native linker is
8224*** used, and then restart.
8225
8226EOF
8227      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8228	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8229	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8230      else
8231	ld_shlibs=no
8232      fi
8233      ;;
8234
8235    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8236      case `$LD -v 2>&1` in
8237        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8238	ld_shlibs=no
8239	cat <<_LT_EOF 1>&2
8240
8241*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8242*** reliably create shared libraries on SCO systems.  Therefore, libtool
8243*** is disabling shared libraries support.  We urge you to upgrade GNU
8244*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8245*** your PATH or compiler configuration so that the native linker is
8246*** used, and then restart.
8247
8248_LT_EOF
8249	;;
8250	*)
8251	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8252	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8253	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8254	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8255	  else
8256	    ld_shlibs=no
8257	  fi
8258	;;
8259      esac
8260      ;;
8261
8262    sunos4*)
8263      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8264      wlarc=
8265      hardcode_direct=yes
8266      hardcode_shlibpath_var=no
8267      ;;
8268
8269    *)
8270      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8271	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8272	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8273      else
8274	ld_shlibs=no
8275      fi
8276      ;;
8277    esac
8278
8279    if test "$ld_shlibs" = no; then
8280      runpath_var=
8281      hardcode_libdir_flag_spec=
8282      export_dynamic_flag_spec=
8283      whole_archive_flag_spec=
8284    fi
8285  else
8286    # PORTME fill in a description of your system's linker (not GNU ld)
8287    case $host_os in
8288    aix3*)
8289      allow_undefined_flag=unsupported
8290      always_export_symbols=yes
8291      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'
8292      # Note: this linker hardcodes the directories in LIBPATH if there
8293      # are no directories specified by -L.
8294      hardcode_minus_L=yes
8295      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8296	# Neither direct hardcoding nor static linking is supported with a
8297	# broken collect2.
8298	hardcode_direct=unsupported
8299      fi
8300      ;;
8301
8302    aix[4-9]*)
8303      if test "$host_cpu" = ia64; then
8304	# On IA64, the linker does run time linking by default, so we don't
8305	# have to do anything special.
8306	aix_use_runtimelinking=no
8307	exp_sym_flag='-Bexport'
8308	no_entry_flag=""
8309      else
8310	# If we're using GNU nm, then we don't want the "-C" option.
8311	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8312	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8313	  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'
8314	else
8315	  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'
8316	fi
8317	aix_use_runtimelinking=no
8318
8319	# Test if we are trying to use run time linking or normal
8320	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8321	# need to do runtime linking.
8322	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8323	  for ld_flag in $LDFLAGS; do
8324  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8325  	    aix_use_runtimelinking=yes
8326  	    break
8327  	  fi
8328	  done
8329	  ;;
8330	esac
8331
8332	exp_sym_flag='-bexport'
8333	no_entry_flag='-bnoentry'
8334      fi
8335
8336      # When large executables or shared objects are built, AIX ld can
8337      # have problems creating the table of contents.  If linking a library
8338      # or program results in "error TOC overflow" add -mminimal-toc to
8339      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8340      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8341
8342      archive_cmds=''
8343      hardcode_direct=yes
8344      hardcode_libdir_separator=':'
8345      link_all_deplibs=yes
8346
8347      if test "$GCC" = yes; then
8348	case $host_os in aix4.[012]|aix4.[012].*)
8349	# We only want to do this on AIX 4.2 and lower, the check
8350	# below for broken collect2 doesn't work under 4.3+
8351	  collect2name=`${CC} -print-prog-name=collect2`
8352	  if test -f "$collect2name" && \
8353  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8354	  then
8355  	  # We have reworked collect2
8356  	  :
8357	  else
8358  	  # We have old collect2
8359  	  hardcode_direct=unsupported
8360  	  # It fails to find uninstalled libraries when the uninstalled
8361  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8362  	  # to unsupported forces relinking
8363  	  hardcode_minus_L=yes
8364  	  hardcode_libdir_flag_spec='-L$libdir'
8365  	  hardcode_libdir_separator=
8366	  fi
8367	  ;;
8368	esac
8369	shared_flag='-shared'
8370	if test "$aix_use_runtimelinking" = yes; then
8371	  shared_flag="$shared_flag "'${wl}-G'
8372	fi
8373      else
8374	# not using gcc
8375	if test "$host_cpu" = ia64; then
8376  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8377  	# chokes on -Wl,-G. The following line is correct:
8378	  shared_flag='-G'
8379	else
8380	  if test "$aix_use_runtimelinking" = yes; then
8381	    shared_flag='${wl}-G'
8382	  else
8383	    shared_flag='${wl}-bM:SRE'
8384	  fi
8385	fi
8386      fi
8387
8388      # It seems that -bexpall does not export symbols beginning with
8389      # underscore (_), so it is better to generate a list of symbols to export.
8390      always_export_symbols=yes
8391      if test "$aix_use_runtimelinking" = yes; then
8392	# Warning - without using the other runtime loading flags (-brtl),
8393	# -berok will link without error, but may produce a broken library.
8394	allow_undefined_flag='-berok'
8395       # Determine the default libpath from the value encoded in an empty executable.
8396       cat >conftest.$ac_ext <<_ACEOF
8397/* confdefs.h.  */
8398_ACEOF
8399cat confdefs.h >>conftest.$ac_ext
8400cat >>conftest.$ac_ext <<_ACEOF
8401/* end confdefs.h.  */
8402
8403int
8404main ()
8405{
8406
8407  ;
8408  return 0;
8409}
8410_ACEOF
8411rm -f conftest.$ac_objext conftest$ac_exeext
8412if { (ac_try="$ac_link"
8413case "(($ac_try" in
8414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415  *) ac_try_echo=$ac_try;;
8416esac
8417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8418$as_echo "$ac_try_echo") >&5
8419  (eval "$ac_link") 2>conftest.er1
8420  ac_status=$?
8421  grep -v '^ *+' conftest.er1 >conftest.err
8422  rm -f conftest.er1
8423  cat conftest.err >&5
8424  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425  (exit $ac_status); } && {
8426	 test -z "$ac_c_werror_flag" ||
8427	 test ! -s conftest.err
8428       } && test -s conftest$ac_exeext && {
8429	 test "$cross_compiling" = yes ||
8430	 $as_test_x conftest$ac_exeext
8431       }; then
8432
8433lt_aix_libpath_sed='
8434    /Import File Strings/,/^$/ {
8435	/^0/ {
8436	    s/^0  *\(.*\)$/\1/
8437	    p
8438	}
8439    }'
8440aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8441# Check for a 64-bit object if we didn't find anything.
8442if test -z "$aix_libpath"; then
8443  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8444fi
8445else
8446  $as_echo "$as_me: failed program was:" >&5
8447sed 's/^/| /' conftest.$ac_ext >&5
8448
8449
8450fi
8451
8452rm -rf conftest.dSYM
8453rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8454      conftest$ac_exeext conftest.$ac_ext
8455if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8456
8457       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8458	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"
8459       else
8460	if test "$host_cpu" = ia64; then
8461	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8462	  allow_undefined_flag="-z nodefs"
8463	  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"
8464	else
8465	 # Determine the default libpath from the value encoded in an empty executable.
8466	 cat >conftest.$ac_ext <<_ACEOF
8467/* confdefs.h.  */
8468_ACEOF
8469cat confdefs.h >>conftest.$ac_ext
8470cat >>conftest.$ac_ext <<_ACEOF
8471/* end confdefs.h.  */
8472
8473int
8474main ()
8475{
8476
8477  ;
8478  return 0;
8479}
8480_ACEOF
8481rm -f conftest.$ac_objext conftest$ac_exeext
8482if { (ac_try="$ac_link"
8483case "(($ac_try" in
8484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485  *) ac_try_echo=$ac_try;;
8486esac
8487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8488$as_echo "$ac_try_echo") >&5
8489  (eval "$ac_link") 2>conftest.er1
8490  ac_status=$?
8491  grep -v '^ *+' conftest.er1 >conftest.err
8492  rm -f conftest.er1
8493  cat conftest.err >&5
8494  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495  (exit $ac_status); } && {
8496	 test -z "$ac_c_werror_flag" ||
8497	 test ! -s conftest.err
8498       } && test -s conftest$ac_exeext && {
8499	 test "$cross_compiling" = yes ||
8500	 $as_test_x conftest$ac_exeext
8501       }; then
8502
8503lt_aix_libpath_sed='
8504    /Import File Strings/,/^$/ {
8505	/^0/ {
8506	    s/^0  *\(.*\)$/\1/
8507	    p
8508	}
8509    }'
8510aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8511# Check for a 64-bit object if we didn't find anything.
8512if test -z "$aix_libpath"; then
8513  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8514fi
8515else
8516  $as_echo "$as_me: failed program was:" >&5
8517sed 's/^/| /' conftest.$ac_ext >&5
8518
8519
8520fi
8521
8522rm -rf conftest.dSYM
8523rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8524      conftest$ac_exeext conftest.$ac_ext
8525if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8526
8527	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8528	  # Warning - without using the other run time loading flags,
8529	  # -berok will link without error, but may produce a broken library.
8530	  no_undefined_flag=' ${wl}-bernotok'
8531	  allow_undefined_flag=' ${wl}-berok'
8532	  # Exported symbols can be pulled into shared objects from archives
8533	  whole_archive_flag_spec='$convenience'
8534	  archive_cmds_need_lc=yes
8535	  # This is similar to how AIX traditionally builds its shared libraries.
8536	  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'
8537	fi
8538      fi
8539      ;;
8540
8541    amigaos*)
8542      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)'
8543      hardcode_libdir_flag_spec='-L$libdir'
8544      hardcode_minus_L=yes
8545      # see comment about different semantics on the GNU ld section
8546      ld_shlibs=no
8547      ;;
8548
8549    bsdi[45]*)
8550      export_dynamic_flag_spec=-rdynamic
8551      ;;
8552
8553    cygwin* | mingw* | pw32*)
8554      # When not using gcc, we currently assume that we are using
8555      # Microsoft Visual C++.
8556      # hardcode_libdir_flag_spec is actually meaningless, as there is
8557      # no search path for DLLs.
8558      hardcode_libdir_flag_spec=' '
8559      allow_undefined_flag=unsupported
8560      # Tell ltmain to make .lib files, not .a files.
8561      libext=lib
8562      # Tell ltmain to make .dll files, not .so files.
8563      shrext_cmds=".dll"
8564      # FIXME: Setting linknames here is a bad hack.
8565      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8566      # The linker will automatically build a .lib file if we build a DLL.
8567      old_archive_From_new_cmds='true'
8568      # FIXME: Should let the user specify the lib program.
8569      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8570      fix_srcfile_path='`cygpath -w "$srcfile"`'
8571      enable_shared_with_static_runtimes=yes
8572      ;;
8573
8574    darwin* | rhapsody*)
8575      case $host_os in
8576        rhapsody* | darwin1.[012])
8577         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8578         ;;
8579       *) # Darwin 1.3 on
8580         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8581           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8582         else
8583           case ${MACOSX_DEPLOYMENT_TARGET} in
8584             10.[012])
8585               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8586               ;;
8587             10.*)
8588               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8589               ;;
8590           esac
8591         fi
8592         ;;
8593      esac
8594      archive_cmds_need_lc=no
8595      hardcode_direct=no
8596      hardcode_automatic=yes
8597      hardcode_shlibpath_var=unsupported
8598      whole_archive_flag_spec=''
8599      link_all_deplibs=yes
8600    if test "$GCC" = yes ; then
8601    	output_verbose_link_cmd='echo'
8602        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8603        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8604        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}"
8605        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}"
8606    else
8607      case $cc_basename in
8608        xlc*)
8609         output_verbose_link_cmd='echo'
8610         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8611         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8612          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8613         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}'
8614          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}'
8615          ;;
8616       *)
8617         ld_shlibs=no
8618          ;;
8619      esac
8620    fi
8621      ;;
8622
8623    dgux*)
8624      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8625      hardcode_libdir_flag_spec='-L$libdir'
8626      hardcode_shlibpath_var=no
8627      ;;
8628
8629    freebsd1*)
8630      ld_shlibs=no
8631      ;;
8632
8633    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8634    # support.  Future versions do this automatically, but an explicit c++rt0.o
8635    # does not break anything, and helps significantly (at the cost of a little
8636    # extra space).
8637    freebsd2.2*)
8638      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8639      hardcode_libdir_flag_spec='-R$libdir'
8640      hardcode_direct=yes
8641      hardcode_shlibpath_var=no
8642      ;;
8643
8644    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8645    freebsd2*)
8646      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8647      hardcode_direct=yes
8648      hardcode_minus_L=yes
8649      hardcode_shlibpath_var=no
8650      ;;
8651
8652    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8653    freebsd* | dragonfly*)
8654      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8655      hardcode_libdir_flag_spec='-R$libdir'
8656      hardcode_direct=yes
8657      hardcode_shlibpath_var=no
8658      ;;
8659
8660    hpux9*)
8661      if test "$GCC" = yes; then
8662	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'
8663      else
8664	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'
8665      fi
8666      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8667      hardcode_libdir_separator=:
8668      hardcode_direct=yes
8669
8670      # hardcode_minus_L: Not really in the search PATH,
8671      # but as the default location of the library.
8672      hardcode_minus_L=yes
8673      export_dynamic_flag_spec='${wl}-E'
8674      ;;
8675
8676    hpux10*)
8677      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8678	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8679      else
8680	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8681      fi
8682      if test "$with_gnu_ld" = no; then
8683	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8684	hardcode_libdir_separator=:
8685
8686	hardcode_direct=yes
8687	export_dynamic_flag_spec='${wl}-E'
8688
8689	# hardcode_minus_L: Not really in the search PATH,
8690	# but as the default location of the library.
8691	hardcode_minus_L=yes
8692      fi
8693      ;;
8694
8695    hpux11*)
8696      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8697	case $host_cpu in
8698	hppa*64*)
8699	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8700	  ;;
8701	ia64*)
8702	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8703	  ;;
8704	*)
8705	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8706	  ;;
8707	esac
8708      else
8709	case $host_cpu in
8710	hppa*64*)
8711	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8712	  ;;
8713	ia64*)
8714	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8715	  ;;
8716	*)
8717	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8718	  ;;
8719	esac
8720      fi
8721      if test "$with_gnu_ld" = no; then
8722	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8723	hardcode_libdir_separator=:
8724
8725	case $host_cpu in
8726	hppa*64*|ia64*)
8727	  hardcode_libdir_flag_spec_ld='+b $libdir'
8728	  hardcode_direct=no
8729	  hardcode_shlibpath_var=no
8730	  ;;
8731	*)
8732	  hardcode_direct=yes
8733	  export_dynamic_flag_spec='${wl}-E'
8734
8735	  # hardcode_minus_L: Not really in the search PATH,
8736	  # but as the default location of the library.
8737	  hardcode_minus_L=yes
8738	  ;;
8739	esac
8740      fi
8741      ;;
8742
8743    irix5* | irix6* | nonstopux*)
8744      if test "$GCC" = yes; then
8745	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'
8746      else
8747	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'
8748	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8749      fi
8750      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8751      hardcode_libdir_separator=:
8752      link_all_deplibs=yes
8753      ;;
8754
8755    netbsd*)
8756      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8757	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8758      else
8759	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8760      fi
8761      hardcode_libdir_flag_spec='-R$libdir'
8762      hardcode_direct=yes
8763      hardcode_shlibpath_var=no
8764      ;;
8765
8766    newsos6)
8767      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8768      hardcode_direct=yes
8769      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8770      hardcode_libdir_separator=:
8771      hardcode_shlibpath_var=no
8772      ;;
8773
8774    openbsd*)
8775      if test -f /usr/libexec/ld.so; then
8776	hardcode_direct=yes
8777	hardcode_shlibpath_var=no
8778	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8779	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8780	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8781	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8782	  export_dynamic_flag_spec='${wl}-E'
8783	else
8784	  case $host_os in
8785	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8786	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8787	     hardcode_libdir_flag_spec='-R$libdir'
8788	     ;;
8789	   *)
8790	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8791	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8792	     ;;
8793	  esac
8794        fi
8795      else
8796	ld_shlibs=no
8797      fi
8798      ;;
8799
8800    os2*)
8801      hardcode_libdir_flag_spec='-L$libdir'
8802      hardcode_minus_L=yes
8803      allow_undefined_flag=unsupported
8804      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'
8805      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8806      ;;
8807
8808    osf3*)
8809      if test "$GCC" = yes; then
8810	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8811	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'
8812      else
8813	allow_undefined_flag=' -expect_unresolved \*'
8814	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'
8815      fi
8816      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8817      hardcode_libdir_separator=:
8818      ;;
8819
8820    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8821      if test "$GCC" = yes; then
8822	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8823	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'
8824	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8825      else
8826	allow_undefined_flag=' -expect_unresolved \*'
8827	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'
8828	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8829	$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'
8830
8831	# Both c and cxx compiler support -rpath directly
8832	hardcode_libdir_flag_spec='-rpath $libdir'
8833      fi
8834      hardcode_libdir_separator=:
8835      ;;
8836
8837    solaris*)
8838      no_undefined_flag=' -z text'
8839      if test "$GCC" = yes; then
8840	wlarc='${wl}'
8841	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8842	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8843	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8844      else
8845	wlarc=''
8846	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8847	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8848  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8849      fi
8850      hardcode_libdir_flag_spec='-R$libdir'
8851      hardcode_shlibpath_var=no
8852      case $host_os in
8853      solaris2.[0-5] | solaris2.[0-5].*) ;;
8854      *)
8855	# The compiler driver will combine and reorder linker options,
8856	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8857	# but is careful enough not to reorder.
8858 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8859	if test "$GCC" = yes; then
8860	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8861	else
8862	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8863	fi
8864	;;
8865      esac
8866      link_all_deplibs=yes
8867      ;;
8868
8869    sunos4*)
8870      if test "x$host_vendor" = xsequent; then
8871	# Use $CC to link under sequent, because it throws in some extra .o
8872	# files that make .init and .fini sections work.
8873	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8874      else
8875	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8876      fi
8877      hardcode_libdir_flag_spec='-L$libdir'
8878      hardcode_direct=yes
8879      hardcode_minus_L=yes
8880      hardcode_shlibpath_var=no
8881      ;;
8882
8883    sysv4)
8884      case $host_vendor in
8885	sni)
8886	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8887	  hardcode_direct=yes # is this really true???
8888	;;
8889	siemens)
8890	  ## LD is ld it makes a PLAMLIB
8891	  ## CC just makes a GrossModule.
8892	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8893	  reload_cmds='$CC -r -o $output$reload_objs'
8894	  hardcode_direct=no
8895        ;;
8896	motorola)
8897	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8898	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8899	;;
8900      esac
8901      runpath_var='LD_RUN_PATH'
8902      hardcode_shlibpath_var=no
8903      ;;
8904
8905    sysv4.3*)
8906      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8907      hardcode_shlibpath_var=no
8908      export_dynamic_flag_spec='-Bexport'
8909      ;;
8910
8911    sysv4*MP*)
8912      if test -d /usr/nec; then
8913	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8914	hardcode_shlibpath_var=no
8915	runpath_var=LD_RUN_PATH
8916	hardcode_runpath_var=yes
8917	ld_shlibs=yes
8918      fi
8919      ;;
8920
8921    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8922      no_undefined_flag='${wl}-z,text'
8923      archive_cmds_need_lc=no
8924      hardcode_shlibpath_var=no
8925      runpath_var='LD_RUN_PATH'
8926
8927      if test "$GCC" = yes; then
8928	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8929	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8930      else
8931	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8932	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8933      fi
8934      ;;
8935
8936    sysv5* | sco3.2v5* | sco5v6*)
8937      # Note: We can NOT use -z defs as we might desire, because we do not
8938      # link with -lc, and that would cause any symbols used from libc to
8939      # always be unresolved, which means just about no library would
8940      # ever link correctly.  If we're not using GNU ld we use -z text
8941      # though, which does catch some bad symbols but isn't as heavy-handed
8942      # as -z defs.
8943      no_undefined_flag='${wl}-z,text'
8944      allow_undefined_flag='${wl}-z,nodefs'
8945      archive_cmds_need_lc=no
8946      hardcode_shlibpath_var=no
8947      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8948      hardcode_libdir_separator=':'
8949      link_all_deplibs=yes
8950      export_dynamic_flag_spec='${wl}-Bexport'
8951      runpath_var='LD_RUN_PATH'
8952
8953      if test "$GCC" = yes; then
8954	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8955	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8956      else
8957	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8958	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8959      fi
8960      ;;
8961
8962    uts4*)
8963      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8964      hardcode_libdir_flag_spec='-L$libdir'
8965      hardcode_shlibpath_var=no
8966      ;;
8967
8968    *)
8969      ld_shlibs=no
8970      ;;
8971    esac
8972  fi
8973
8974{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8975$as_echo "$ld_shlibs" >&6; }
8976test "$ld_shlibs" = no && can_build_shared=no
8977
8978#
8979# Do we need to explicitly link libc?
8980#
8981case "x$archive_cmds_need_lc" in
8982x|xyes)
8983  # Assume -lc should be added
8984  archive_cmds_need_lc=yes
8985
8986  if test "$enable_shared" = yes && test "$GCC" = yes; then
8987    case $archive_cmds in
8988    *'~'*)
8989      # FIXME: we may have to deal with multi-command sequences.
8990      ;;
8991    '$CC '*)
8992      # Test whether the compiler implicitly links with -lc since on some
8993      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8994      # to ld, don't add -lc before -lgcc.
8995      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8996$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8997      $rm conftest*
8998      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8999
9000      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9001  (eval $ac_compile) 2>&5
9002  ac_status=$?
9003  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004  (exit $ac_status); } 2>conftest.err; then
9005        soname=conftest
9006        lib=conftest
9007        libobjs=conftest.$ac_objext
9008        deplibs=
9009        wl=$lt_prog_compiler_wl
9010	pic_flag=$lt_prog_compiler_pic
9011        compiler_flags=-v
9012        linker_flags=-v
9013        verstring=
9014        output_objdir=.
9015        libname=conftest
9016        lt_save_allow_undefined_flag=$allow_undefined_flag
9017        allow_undefined_flag=
9018        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9019  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9020  ac_status=$?
9021  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022  (exit $ac_status); }
9023        then
9024	  archive_cmds_need_lc=no
9025        else
9026	  archive_cmds_need_lc=yes
9027        fi
9028        allow_undefined_flag=$lt_save_allow_undefined_flag
9029      else
9030        cat conftest.err 1>&5
9031      fi
9032      $rm conftest*
9033      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9034$as_echo "$archive_cmds_need_lc" >&6; }
9035      ;;
9036    esac
9037  fi
9038  ;;
9039esac
9040
9041{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9042$as_echo_n "checking dynamic linker characteristics... " >&6; }
9043library_names_spec=
9044libname_spec='lib$name'
9045soname_spec=
9046shrext_cmds=".so"
9047postinstall_cmds=
9048postuninstall_cmds=
9049finish_cmds=
9050finish_eval=
9051shlibpath_var=
9052shlibpath_overrides_runpath=unknown
9053version_type=none
9054dynamic_linker="$host_os ld.so"
9055sys_lib_dlsearch_path_spec="/lib /usr/lib"
9056
9057if test "$GCC" = yes; then
9058  case $host_os in
9059    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9060    *) lt_awk_arg="/^libraries:/" ;;
9061  esac
9062  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9063  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9064    # if the path contains ";" then we assume it to be the separator
9065    # otherwise default to the standard path separator (i.e. ":") - it is
9066    # assumed that no part of a normal pathname contains ";" but that should
9067    # okay in the real world where ";" in dirpaths is itself problematic.
9068    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9069  else
9070    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9071  fi
9072  # Ok, now we have the path, separated by spaces, we can step through it
9073  # and add multilib dir if necessary.
9074  lt_tmp_lt_search_path_spec=
9075  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9076  for lt_sys_path in $lt_search_path_spec; do
9077    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9078      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9079    else
9080      test -d "$lt_sys_path" && \
9081	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9082    fi
9083  done
9084  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9085BEGIN {RS=" "; FS="/|\n";} {
9086  lt_foo="";
9087  lt_count=0;
9088  for (lt_i = NF; lt_i > 0; lt_i--) {
9089    if ($lt_i != "" && $lt_i != ".") {
9090      if ($lt_i == "..") {
9091        lt_count++;
9092      } else {
9093        if (lt_count == 0) {
9094          lt_foo="/" $lt_i lt_foo;
9095        } else {
9096          lt_count--;
9097        }
9098      }
9099    }
9100  }
9101  if (lt_foo != "") { lt_freq[lt_foo]++; }
9102  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9103}'`
9104  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9105else
9106  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9107fi
9108need_lib_prefix=unknown
9109hardcode_into_libs=no
9110
9111# when you set need_version to no, make sure it does not cause -set_version
9112# flags to be left without arguments
9113need_version=unknown
9114
9115case $host_os in
9116aix3*)
9117  version_type=linux
9118  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9119  shlibpath_var=LIBPATH
9120
9121  # AIX 3 has no versioning support, so we append a major version to the name.
9122  soname_spec='${libname}${release}${shared_ext}$major'
9123  ;;
9124
9125aix[4-9]*)
9126  version_type=linux
9127  need_lib_prefix=no
9128  need_version=no
9129  hardcode_into_libs=yes
9130  if test "$host_cpu" = ia64; then
9131    # AIX 5 supports IA64
9132    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9133    shlibpath_var=LD_LIBRARY_PATH
9134  else
9135    # With GCC up to 2.95.x, collect2 would create an import file
9136    # for dependence libraries.  The import file would start with
9137    # the line `#! .'.  This would cause the generated library to
9138    # depend on `.', always an invalid library.  This was fixed in
9139    # development snapshots of GCC prior to 3.0.
9140    case $host_os in
9141      aix4 | aix4.[01] | aix4.[01].*)
9142      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9143	   echo ' yes '
9144	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9145	:
9146      else
9147	can_build_shared=no
9148      fi
9149      ;;
9150    esac
9151    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9152    # soname into executable. Probably we can add versioning support to
9153    # collect2, so additional links can be useful in future.
9154    if test "$aix_use_runtimelinking" = yes; then
9155      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9156      # instead of lib<name>.a to let people know that these are not
9157      # typical AIX shared libraries.
9158      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9159    else
9160      # We preserve .a as extension for shared libraries through AIX4.2
9161      # and later when we are not doing run time linking.
9162      library_names_spec='${libname}${release}.a $libname.a'
9163      soname_spec='${libname}${release}${shared_ext}$major'
9164    fi
9165    shlibpath_var=LIBPATH
9166  fi
9167  ;;
9168
9169amigaos*)
9170  library_names_spec='$libname.ixlibrary $libname.a'
9171  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9172  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'
9173  ;;
9174
9175beos*)
9176  library_names_spec='${libname}${shared_ext}'
9177  dynamic_linker="$host_os ld.so"
9178  shlibpath_var=LIBRARY_PATH
9179  ;;
9180
9181bsdi[45]*)
9182  version_type=linux
9183  need_version=no
9184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9185  soname_spec='${libname}${release}${shared_ext}$major'
9186  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9187  shlibpath_var=LD_LIBRARY_PATH
9188  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9189  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9190  # the default ld.so.conf also contains /usr/contrib/lib and
9191  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9192  # libtool to hard-code these into programs
9193  ;;
9194
9195cygwin* | mingw* | pw32*)
9196  version_type=windows
9197  shrext_cmds=".dll"
9198  need_version=no
9199  need_lib_prefix=no
9200
9201  case $GCC,$host_os in
9202  yes,cygwin* | yes,mingw* | yes,pw32*)
9203    library_names_spec='$libname.dll.a'
9204    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9205    postinstall_cmds='base_file=`basename \${file}`~
9206      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9207      dldir=$destdir/`dirname \$dlpath`~
9208      test -d \$dldir || mkdir -p \$dldir~
9209      $install_prog $dir/$dlname \$dldir/$dlname~
9210      chmod a+x \$dldir/$dlname'
9211    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9212      dlpath=$dir/\$dldll~
9213       $rm \$dlpath'
9214    shlibpath_overrides_runpath=yes
9215
9216    case $host_os in
9217    cygwin*)
9218      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9219      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9220      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9221      ;;
9222    mingw*)
9223      # MinGW DLLs use traditional 'lib' prefix
9224      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9225      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9226      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9227        # It is most probably a Windows format PATH printed by
9228        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9229        # path with ; separators, and with drive letters. We can handle the
9230        # drive letters (cygwin fileutils understands them), so leave them,
9231        # especially as we might pass files found there to a mingw objdump,
9232        # which wouldn't understand a cygwinified path. Ahh.
9233        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9234      else
9235        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9236      fi
9237      ;;
9238    pw32*)
9239      # pw32 DLLs use 'pw' prefix rather than 'lib'
9240      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9241      ;;
9242    esac
9243    ;;
9244
9245  *)
9246    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9247    ;;
9248  esac
9249  dynamic_linker='Win32 ld.exe'
9250  # FIXME: first we should search . and the directory the executable is in
9251  shlibpath_var=PATH
9252  ;;
9253
9254darwin* | rhapsody*)
9255  dynamic_linker="$host_os dyld"
9256  version_type=darwin
9257  need_lib_prefix=no
9258  need_version=no
9259  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9260  soname_spec='${libname}${release}${major}$shared_ext'
9261  shlibpath_overrides_runpath=yes
9262  shlibpath_var=DYLD_LIBRARY_PATH
9263  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9264
9265  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9266  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9267  ;;
9268
9269dgux*)
9270  version_type=linux
9271  need_lib_prefix=no
9272  need_version=no
9273  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9274  soname_spec='${libname}${release}${shared_ext}$major'
9275  shlibpath_var=LD_LIBRARY_PATH
9276  ;;
9277
9278freebsd1*)
9279  dynamic_linker=no
9280  ;;
9281
9282freebsd* | dragonfly*)
9283  # DragonFly does not have aout.  When/if they implement a new
9284  # versioning mechanism, adjust this.
9285  if test -x /usr/bin/objformat; then
9286    objformat=`/usr/bin/objformat`
9287  else
9288    case $host_os in
9289    freebsd[123]*) objformat=aout ;;
9290    *) objformat=elf ;;
9291    esac
9292  fi
9293  version_type=freebsd-$objformat
9294  case $version_type in
9295    freebsd-elf*)
9296      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9297      need_version=no
9298      need_lib_prefix=no
9299      ;;
9300    freebsd-*)
9301      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9302      need_version=yes
9303      ;;
9304  esac
9305  shlibpath_var=LD_LIBRARY_PATH
9306  case $host_os in
9307  freebsd2*)
9308    shlibpath_overrides_runpath=yes
9309    ;;
9310  freebsd3.[01]* | freebsdelf3.[01]*)
9311    shlibpath_overrides_runpath=yes
9312    hardcode_into_libs=yes
9313    ;;
9314  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9315  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9316    shlibpath_overrides_runpath=no
9317    hardcode_into_libs=yes
9318    ;;
9319  *) # from 4.6 on, and DragonFly
9320    shlibpath_overrides_runpath=yes
9321    hardcode_into_libs=yes
9322    ;;
9323  esac
9324  ;;
9325
9326gnu*)
9327  version_type=linux
9328  need_lib_prefix=no
9329  need_version=no
9330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9331  soname_spec='${libname}${release}${shared_ext}$major'
9332  shlibpath_var=LD_LIBRARY_PATH
9333  hardcode_into_libs=yes
9334  ;;
9335
9336hpux9* | hpux10* | hpux11*)
9337  # Give a soname corresponding to the major version so that dld.sl refuses to
9338  # link against other versions.
9339  version_type=sunos
9340  need_lib_prefix=no
9341  need_version=no
9342  case $host_cpu in
9343  ia64*)
9344    shrext_cmds='.so'
9345    hardcode_into_libs=yes
9346    dynamic_linker="$host_os dld.so"
9347    shlibpath_var=LD_LIBRARY_PATH
9348    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9349    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9350    soname_spec='${libname}${release}${shared_ext}$major'
9351    if test "X$HPUX_IA64_MODE" = X32; then
9352      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9353    else
9354      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9355    fi
9356    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9357    ;;
9358   hppa*64*)
9359     shrext_cmds='.sl'
9360     hardcode_into_libs=yes
9361     dynamic_linker="$host_os dld.sl"
9362     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9363     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9364     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365     soname_spec='${libname}${release}${shared_ext}$major'
9366     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9367     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9368     ;;
9369   *)
9370    shrext_cmds='.sl'
9371    dynamic_linker="$host_os dld.sl"
9372    shlibpath_var=SHLIB_PATH
9373    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9374    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9375    soname_spec='${libname}${release}${shared_ext}$major'
9376    ;;
9377  esac
9378  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9379  postinstall_cmds='chmod 555 $lib'
9380  ;;
9381
9382interix[3-9]*)
9383  version_type=linux
9384  need_lib_prefix=no
9385  need_version=no
9386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9387  soname_spec='${libname}${release}${shared_ext}$major'
9388  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9389  shlibpath_var=LD_LIBRARY_PATH
9390  shlibpath_overrides_runpath=no
9391  hardcode_into_libs=yes
9392  ;;
9393
9394irix5* | irix6* | nonstopux*)
9395  case $host_os in
9396    nonstopux*) version_type=nonstopux ;;
9397    *)
9398	if test "$lt_cv_prog_gnu_ld" = yes; then
9399		version_type=linux
9400	else
9401		version_type=irix
9402	fi ;;
9403  esac
9404  need_lib_prefix=no
9405  need_version=no
9406  soname_spec='${libname}${release}${shared_ext}$major'
9407  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9408  case $host_os in
9409  irix5* | nonstopux*)
9410    libsuff= shlibsuff=
9411    ;;
9412  *)
9413    case $LD in # libtool.m4 will add one of these switches to LD
9414    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9415      libsuff= shlibsuff= libmagic=32-bit;;
9416    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9417      libsuff=32 shlibsuff=N32 libmagic=N32;;
9418    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9419      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9420    *) libsuff= shlibsuff= libmagic=never-match;;
9421    esac
9422    ;;
9423  esac
9424  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9425  shlibpath_overrides_runpath=no
9426  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9427  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9428  hardcode_into_libs=yes
9429  ;;
9430
9431# No shared lib support for Linux oldld, aout, or coff.
9432linux*oldld* | linux*aout* | linux*coff*)
9433  dynamic_linker=no
9434  ;;
9435
9436# This must be Linux ELF.
9437linux* | k*bsd*-gnu)
9438  version_type=linux
9439  need_lib_prefix=no
9440  need_version=no
9441  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9442  soname_spec='${libname}${release}${shared_ext}$major'
9443  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9444  shlibpath_var=LD_LIBRARY_PATH
9445  shlibpath_overrides_runpath=no
9446  # This implies no fast_install, which is unacceptable.
9447  # Some rework will be needed to allow for fast_install
9448  # before this can be enabled.
9449  hardcode_into_libs=yes
9450
9451  # Append ld.so.conf contents to the search path
9452  if test -f /etc/ld.so.conf; then
9453    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' ' '`
9454    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9455  fi
9456
9457  # We used to test for /lib/ld.so.1 and disable shared libraries on
9458  # powerpc, because MkLinux only supported shared libraries with the
9459  # GNU dynamic linker.  Since this was broken with cross compilers,
9460  # most powerpc-linux boxes support dynamic linking these days and
9461  # people can always --disable-shared, the test was removed, and we
9462  # assume the GNU/Linux dynamic linker is in use.
9463  dynamic_linker='GNU/Linux ld.so'
9464  ;;
9465
9466netbsd*)
9467  version_type=sunos
9468  need_lib_prefix=no
9469  need_version=no
9470  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9471    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9472    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9473    dynamic_linker='NetBSD (a.out) ld.so'
9474  else
9475    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9476    soname_spec='${libname}${release}${shared_ext}$major'
9477    dynamic_linker='NetBSD ld.elf_so'
9478  fi
9479  shlibpath_var=LD_LIBRARY_PATH
9480  shlibpath_overrides_runpath=yes
9481  hardcode_into_libs=yes
9482  ;;
9483
9484newsos6)
9485  version_type=linux
9486  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9487  shlibpath_var=LD_LIBRARY_PATH
9488  shlibpath_overrides_runpath=yes
9489  ;;
9490
9491nto-qnx*)
9492  version_type=linux
9493  need_lib_prefix=no
9494  need_version=no
9495  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9496  soname_spec='${libname}${release}${shared_ext}$major'
9497  shlibpath_var=LD_LIBRARY_PATH
9498  shlibpath_overrides_runpath=yes
9499  ;;
9500
9501openbsd*)
9502  version_type=sunos
9503  sys_lib_dlsearch_path_spec="/usr/lib"
9504  need_lib_prefix=no
9505  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9506  case $host_os in
9507    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9508    *)                         need_version=no  ;;
9509  esac
9510  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9511  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9512  shlibpath_var=LD_LIBRARY_PATH
9513  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9514    case $host_os in
9515      openbsd2.[89] | openbsd2.[89].*)
9516	shlibpath_overrides_runpath=no
9517	;;
9518      *)
9519	shlibpath_overrides_runpath=yes
9520	;;
9521      esac
9522  else
9523    shlibpath_overrides_runpath=yes
9524  fi
9525  ;;
9526
9527os2*)
9528  libname_spec='$name'
9529  shrext_cmds=".dll"
9530  need_lib_prefix=no
9531  library_names_spec='$libname${shared_ext} $libname.a'
9532  dynamic_linker='OS/2 ld.exe'
9533  shlibpath_var=LIBPATH
9534  ;;
9535
9536osf3* | osf4* | osf5*)
9537  version_type=osf
9538  need_lib_prefix=no
9539  need_version=no
9540  soname_spec='${libname}${release}${shared_ext}$major'
9541  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9542  shlibpath_var=LD_LIBRARY_PATH
9543  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9544  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9545  ;;
9546
9547rdos*)
9548  dynamic_linker=no
9549  ;;
9550
9551solaris*)
9552  version_type=linux
9553  need_lib_prefix=no
9554  need_version=no
9555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9556  soname_spec='${libname}${release}${shared_ext}$major'
9557  shlibpath_var=LD_LIBRARY_PATH
9558  shlibpath_overrides_runpath=yes
9559  hardcode_into_libs=yes
9560  # ldd complains unless libraries are executable
9561  postinstall_cmds='chmod +x $lib'
9562  ;;
9563
9564sunos4*)
9565  version_type=sunos
9566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9567  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9568  shlibpath_var=LD_LIBRARY_PATH
9569  shlibpath_overrides_runpath=yes
9570  if test "$with_gnu_ld" = yes; then
9571    need_lib_prefix=no
9572  fi
9573  need_version=yes
9574  ;;
9575
9576sysv4 | sysv4.3*)
9577  version_type=linux
9578  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9579  soname_spec='${libname}${release}${shared_ext}$major'
9580  shlibpath_var=LD_LIBRARY_PATH
9581  case $host_vendor in
9582    sni)
9583      shlibpath_overrides_runpath=no
9584      need_lib_prefix=no
9585      export_dynamic_flag_spec='${wl}-Blargedynsym'
9586      runpath_var=LD_RUN_PATH
9587      ;;
9588    siemens)
9589      need_lib_prefix=no
9590      ;;
9591    motorola)
9592      need_lib_prefix=no
9593      need_version=no
9594      shlibpath_overrides_runpath=no
9595      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9596      ;;
9597  esac
9598  ;;
9599
9600sysv4*MP*)
9601  if test -d /usr/nec ;then
9602    version_type=linux
9603    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9604    soname_spec='$libname${shared_ext}.$major'
9605    shlibpath_var=LD_LIBRARY_PATH
9606  fi
9607  ;;
9608
9609sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9610  version_type=freebsd-elf
9611  need_lib_prefix=no
9612  need_version=no
9613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9614  soname_spec='${libname}${release}${shared_ext}$major'
9615  shlibpath_var=LD_LIBRARY_PATH
9616  hardcode_into_libs=yes
9617  if test "$with_gnu_ld" = yes; then
9618    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9619    shlibpath_overrides_runpath=no
9620  else
9621    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9622    shlibpath_overrides_runpath=yes
9623    case $host_os in
9624      sco3.2v5*)
9625        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9626	;;
9627    esac
9628  fi
9629  sys_lib_dlsearch_path_spec='/usr/lib'
9630  ;;
9631
9632uts4*)
9633  version_type=linux
9634  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9635  soname_spec='${libname}${release}${shared_ext}$major'
9636  shlibpath_var=LD_LIBRARY_PATH
9637  ;;
9638
9639*)
9640  dynamic_linker=no
9641  ;;
9642esac
9643{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9644$as_echo "$dynamic_linker" >&6; }
9645test "$dynamic_linker" = no && can_build_shared=no
9646
9647if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9648  $as_echo_n "(cached) " >&6
9649else
9650  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9651fi
9652
9653sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9654if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9655  $as_echo_n "(cached) " >&6
9656else
9657  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9658fi
9659
9660sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9661
9662variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9663if test "$GCC" = yes; then
9664  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9665fi
9666
9667{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9668$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9669hardcode_action=
9670if test -n "$hardcode_libdir_flag_spec" || \
9671   test -n "$runpath_var" || \
9672   test "X$hardcode_automatic" = "Xyes" ; then
9673
9674  # We can hardcode non-existant directories.
9675  if test "$hardcode_direct" != no &&
9676     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9677     # have to relink, otherwise we might link with an installed library
9678     # when we should be linking with a yet-to-be-installed one
9679     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9680     test "$hardcode_minus_L" != no; then
9681    # Linking always hardcodes the temporary library directory.
9682    hardcode_action=relink
9683  else
9684    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9685    hardcode_action=immediate
9686  fi
9687else
9688  # We cannot hardcode anything, or else we can only hardcode existing
9689  # directories.
9690  hardcode_action=unsupported
9691fi
9692{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9693$as_echo "$hardcode_action" >&6; }
9694
9695if test "$hardcode_action" = relink; then
9696  # Fast installation is not supported
9697  enable_fast_install=no
9698elif test "$shlibpath_overrides_runpath" = yes ||
9699     test "$enable_shared" = no; then
9700  # Fast installation is not necessary
9701  enable_fast_install=needless
9702fi
9703
9704striplib=
9705old_striplib=
9706{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9707$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9708if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9709  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9710  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9711  { $as_echo "$as_me:$LINENO: result: yes" >&5
9712$as_echo "yes" >&6; }
9713else
9714# FIXME - insert some real tests, host_os isn't really good enough
9715  case $host_os in
9716   darwin*)
9717       if test -n "$STRIP" ; then
9718         striplib="$STRIP -x"
9719         old_striplib="$STRIP -S"
9720         { $as_echo "$as_me:$LINENO: result: yes" >&5
9721$as_echo "yes" >&6; }
9722       else
9723  { $as_echo "$as_me:$LINENO: result: no" >&5
9724$as_echo "no" >&6; }
9725fi
9726       ;;
9727   *)
9728  { $as_echo "$as_me:$LINENO: result: no" >&5
9729$as_echo "no" >&6; }
9730    ;;
9731  esac
9732fi
9733
9734if test "x$enable_dlopen" != xyes; then
9735  enable_dlopen=unknown
9736  enable_dlopen_self=unknown
9737  enable_dlopen_self_static=unknown
9738else
9739  lt_cv_dlopen=no
9740  lt_cv_dlopen_libs=
9741
9742  case $host_os in
9743  beos*)
9744    lt_cv_dlopen="load_add_on"
9745    lt_cv_dlopen_libs=
9746    lt_cv_dlopen_self=yes
9747    ;;
9748
9749  mingw* | pw32*)
9750    lt_cv_dlopen="LoadLibrary"
9751    lt_cv_dlopen_libs=
9752   ;;
9753
9754  cygwin*)
9755    lt_cv_dlopen="dlopen"
9756    lt_cv_dlopen_libs=
9757   ;;
9758
9759  darwin*)
9760  # if libdl is installed we need to link against it
9761    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9762$as_echo_n "checking for dlopen in -ldl... " >&6; }
9763if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9764  $as_echo_n "(cached) " >&6
9765else
9766  ac_check_lib_save_LIBS=$LIBS
9767LIBS="-ldl  $LIBS"
9768cat >conftest.$ac_ext <<_ACEOF
9769/* confdefs.h.  */
9770_ACEOF
9771cat confdefs.h >>conftest.$ac_ext
9772cat >>conftest.$ac_ext <<_ACEOF
9773/* end confdefs.h.  */
9774
9775/* Override any GCC internal prototype to avoid an error.
9776   Use char because int might match the return type of a GCC
9777   builtin and then its argument prototype would still apply.  */
9778#ifdef __cplusplus
9779extern "C"
9780#endif
9781char dlopen ();
9782int
9783main ()
9784{
9785return dlopen ();
9786  ;
9787  return 0;
9788}
9789_ACEOF
9790rm -f conftest.$ac_objext conftest$ac_exeext
9791if { (ac_try="$ac_link"
9792case "(($ac_try" in
9793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9794  *) ac_try_echo=$ac_try;;
9795esac
9796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9797$as_echo "$ac_try_echo") >&5
9798  (eval "$ac_link") 2>conftest.er1
9799  ac_status=$?
9800  grep -v '^ *+' conftest.er1 >conftest.err
9801  rm -f conftest.er1
9802  cat conftest.err >&5
9803  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804  (exit $ac_status); } && {
9805	 test -z "$ac_c_werror_flag" ||
9806	 test ! -s conftest.err
9807       } && test -s conftest$ac_exeext && {
9808	 test "$cross_compiling" = yes ||
9809	 $as_test_x conftest$ac_exeext
9810       }; then
9811  ac_cv_lib_dl_dlopen=yes
9812else
9813  $as_echo "$as_me: failed program was:" >&5
9814sed 's/^/| /' conftest.$ac_ext >&5
9815
9816	ac_cv_lib_dl_dlopen=no
9817fi
9818
9819rm -rf conftest.dSYM
9820rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9821      conftest$ac_exeext conftest.$ac_ext
9822LIBS=$ac_check_lib_save_LIBS
9823fi
9824{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9825$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9826if test $ac_cv_lib_dl_dlopen = yes; then
9827  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9828else
9829
9830    lt_cv_dlopen="dyld"
9831    lt_cv_dlopen_libs=
9832    lt_cv_dlopen_self=yes
9833
9834fi
9835
9836   ;;
9837
9838  *)
9839    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9840$as_echo_n "checking for shl_load... " >&6; }
9841if test "${ac_cv_func_shl_load+set}" = set; then
9842  $as_echo_n "(cached) " >&6
9843else
9844  cat >conftest.$ac_ext <<_ACEOF
9845/* confdefs.h.  */
9846_ACEOF
9847cat confdefs.h >>conftest.$ac_ext
9848cat >>conftest.$ac_ext <<_ACEOF
9849/* end confdefs.h.  */
9850/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9851   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9852#define shl_load innocuous_shl_load
9853
9854/* System header to define __stub macros and hopefully few prototypes,
9855    which can conflict with char shl_load (); below.
9856    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9857    <limits.h> exists even on freestanding compilers.  */
9858
9859#ifdef __STDC__
9860# include <limits.h>
9861#else
9862# include <assert.h>
9863#endif
9864
9865#undef shl_load
9866
9867/* Override any GCC internal prototype to avoid an error.
9868   Use char because int might match the return type of a GCC
9869   builtin and then its argument prototype would still apply.  */
9870#ifdef __cplusplus
9871extern "C"
9872#endif
9873char shl_load ();
9874/* The GNU C library defines this for functions which it implements
9875    to always fail with ENOSYS.  Some functions are actually named
9876    something starting with __ and the normal name is an alias.  */
9877#if defined __stub_shl_load || defined __stub___shl_load
9878choke me
9879#endif
9880
9881int
9882main ()
9883{
9884return shl_load ();
9885  ;
9886  return 0;
9887}
9888_ACEOF
9889rm -f conftest.$ac_objext conftest$ac_exeext
9890if { (ac_try="$ac_link"
9891case "(($ac_try" in
9892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893  *) ac_try_echo=$ac_try;;
9894esac
9895eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9896$as_echo "$ac_try_echo") >&5
9897  (eval "$ac_link") 2>conftest.er1
9898  ac_status=$?
9899  grep -v '^ *+' conftest.er1 >conftest.err
9900  rm -f conftest.er1
9901  cat conftest.err >&5
9902  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903  (exit $ac_status); } && {
9904	 test -z "$ac_c_werror_flag" ||
9905	 test ! -s conftest.err
9906       } && test -s conftest$ac_exeext && {
9907	 test "$cross_compiling" = yes ||
9908	 $as_test_x conftest$ac_exeext
9909       }; then
9910  ac_cv_func_shl_load=yes
9911else
9912  $as_echo "$as_me: failed program was:" >&5
9913sed 's/^/| /' conftest.$ac_ext >&5
9914
9915	ac_cv_func_shl_load=no
9916fi
9917
9918rm -rf conftest.dSYM
9919rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9920      conftest$ac_exeext conftest.$ac_ext
9921fi
9922{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9923$as_echo "$ac_cv_func_shl_load" >&6; }
9924if test $ac_cv_func_shl_load = yes; then
9925  lt_cv_dlopen="shl_load"
9926else
9927  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9928$as_echo_n "checking for shl_load in -ldld... " >&6; }
9929if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9930  $as_echo_n "(cached) " >&6
9931else
9932  ac_check_lib_save_LIBS=$LIBS
9933LIBS="-ldld  $LIBS"
9934cat >conftest.$ac_ext <<_ACEOF
9935/* confdefs.h.  */
9936_ACEOF
9937cat confdefs.h >>conftest.$ac_ext
9938cat >>conftest.$ac_ext <<_ACEOF
9939/* end confdefs.h.  */
9940
9941/* Override any GCC internal prototype to avoid an error.
9942   Use char because int might match the return type of a GCC
9943   builtin and then its argument prototype would still apply.  */
9944#ifdef __cplusplus
9945extern "C"
9946#endif
9947char shl_load ();
9948int
9949main ()
9950{
9951return shl_load ();
9952  ;
9953  return 0;
9954}
9955_ACEOF
9956rm -f conftest.$ac_objext conftest$ac_exeext
9957if { (ac_try="$ac_link"
9958case "(($ac_try" in
9959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9960  *) ac_try_echo=$ac_try;;
9961esac
9962eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9963$as_echo "$ac_try_echo") >&5
9964  (eval "$ac_link") 2>conftest.er1
9965  ac_status=$?
9966  grep -v '^ *+' conftest.er1 >conftest.err
9967  rm -f conftest.er1
9968  cat conftest.err >&5
9969  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970  (exit $ac_status); } && {
9971	 test -z "$ac_c_werror_flag" ||
9972	 test ! -s conftest.err
9973       } && test -s conftest$ac_exeext && {
9974	 test "$cross_compiling" = yes ||
9975	 $as_test_x conftest$ac_exeext
9976       }; then
9977  ac_cv_lib_dld_shl_load=yes
9978else
9979  $as_echo "$as_me: failed program was:" >&5
9980sed 's/^/| /' conftest.$ac_ext >&5
9981
9982	ac_cv_lib_dld_shl_load=no
9983fi
9984
9985rm -rf conftest.dSYM
9986rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9987      conftest$ac_exeext conftest.$ac_ext
9988LIBS=$ac_check_lib_save_LIBS
9989fi
9990{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9991$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9992if test $ac_cv_lib_dld_shl_load = yes; then
9993  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9994else
9995  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9996$as_echo_n "checking for dlopen... " >&6; }
9997if test "${ac_cv_func_dlopen+set}" = set; then
9998  $as_echo_n "(cached) " >&6
9999else
10000  cat >conftest.$ac_ext <<_ACEOF
10001/* confdefs.h.  */
10002_ACEOF
10003cat confdefs.h >>conftest.$ac_ext
10004cat >>conftest.$ac_ext <<_ACEOF
10005/* end confdefs.h.  */
10006/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10007   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10008#define dlopen innocuous_dlopen
10009
10010/* System header to define __stub macros and hopefully few prototypes,
10011    which can conflict with char dlopen (); below.
10012    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10013    <limits.h> exists even on freestanding compilers.  */
10014
10015#ifdef __STDC__
10016# include <limits.h>
10017#else
10018# include <assert.h>
10019#endif
10020
10021#undef dlopen
10022
10023/* Override any GCC internal prototype to avoid an error.
10024   Use char because int might match the return type of a GCC
10025   builtin and then its argument prototype would still apply.  */
10026#ifdef __cplusplus
10027extern "C"
10028#endif
10029char dlopen ();
10030/* The GNU C library defines this for functions which it implements
10031    to always fail with ENOSYS.  Some functions are actually named
10032    something starting with __ and the normal name is an alias.  */
10033#if defined __stub_dlopen || defined __stub___dlopen
10034choke me
10035#endif
10036
10037int
10038main ()
10039{
10040return dlopen ();
10041  ;
10042  return 0;
10043}
10044_ACEOF
10045rm -f conftest.$ac_objext conftest$ac_exeext
10046if { (ac_try="$ac_link"
10047case "(($ac_try" in
10048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049  *) ac_try_echo=$ac_try;;
10050esac
10051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10052$as_echo "$ac_try_echo") >&5
10053  (eval "$ac_link") 2>conftest.er1
10054  ac_status=$?
10055  grep -v '^ *+' conftest.er1 >conftest.err
10056  rm -f conftest.er1
10057  cat conftest.err >&5
10058  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059  (exit $ac_status); } && {
10060	 test -z "$ac_c_werror_flag" ||
10061	 test ! -s conftest.err
10062       } && test -s conftest$ac_exeext && {
10063	 test "$cross_compiling" = yes ||
10064	 $as_test_x conftest$ac_exeext
10065       }; then
10066  ac_cv_func_dlopen=yes
10067else
10068  $as_echo "$as_me: failed program was:" >&5
10069sed 's/^/| /' conftest.$ac_ext >&5
10070
10071	ac_cv_func_dlopen=no
10072fi
10073
10074rm -rf conftest.dSYM
10075rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10076      conftest$ac_exeext conftest.$ac_ext
10077fi
10078{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10079$as_echo "$ac_cv_func_dlopen" >&6; }
10080if test $ac_cv_func_dlopen = yes; then
10081  lt_cv_dlopen="dlopen"
10082else
10083  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10084$as_echo_n "checking for dlopen in -ldl... " >&6; }
10085if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10086  $as_echo_n "(cached) " >&6
10087else
10088  ac_check_lib_save_LIBS=$LIBS
10089LIBS="-ldl  $LIBS"
10090cat >conftest.$ac_ext <<_ACEOF
10091/* confdefs.h.  */
10092_ACEOF
10093cat confdefs.h >>conftest.$ac_ext
10094cat >>conftest.$ac_ext <<_ACEOF
10095/* end confdefs.h.  */
10096
10097/* Override any GCC internal prototype to avoid an error.
10098   Use char because int might match the return type of a GCC
10099   builtin and then its argument prototype would still apply.  */
10100#ifdef __cplusplus
10101extern "C"
10102#endif
10103char dlopen ();
10104int
10105main ()
10106{
10107return dlopen ();
10108  ;
10109  return 0;
10110}
10111_ACEOF
10112rm -f conftest.$ac_objext conftest$ac_exeext
10113if { (ac_try="$ac_link"
10114case "(($ac_try" in
10115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116  *) ac_try_echo=$ac_try;;
10117esac
10118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10119$as_echo "$ac_try_echo") >&5
10120  (eval "$ac_link") 2>conftest.er1
10121  ac_status=$?
10122  grep -v '^ *+' conftest.er1 >conftest.err
10123  rm -f conftest.er1
10124  cat conftest.err >&5
10125  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126  (exit $ac_status); } && {
10127	 test -z "$ac_c_werror_flag" ||
10128	 test ! -s conftest.err
10129       } && test -s conftest$ac_exeext && {
10130	 test "$cross_compiling" = yes ||
10131	 $as_test_x conftest$ac_exeext
10132       }; then
10133  ac_cv_lib_dl_dlopen=yes
10134else
10135  $as_echo "$as_me: failed program was:" >&5
10136sed 's/^/| /' conftest.$ac_ext >&5
10137
10138	ac_cv_lib_dl_dlopen=no
10139fi
10140
10141rm -rf conftest.dSYM
10142rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10143      conftest$ac_exeext conftest.$ac_ext
10144LIBS=$ac_check_lib_save_LIBS
10145fi
10146{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10147$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10148if test $ac_cv_lib_dl_dlopen = yes; then
10149  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10150else
10151  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10152$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10153if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10154  $as_echo_n "(cached) " >&6
10155else
10156  ac_check_lib_save_LIBS=$LIBS
10157LIBS="-lsvld  $LIBS"
10158cat >conftest.$ac_ext <<_ACEOF
10159/* confdefs.h.  */
10160_ACEOF
10161cat confdefs.h >>conftest.$ac_ext
10162cat >>conftest.$ac_ext <<_ACEOF
10163/* end confdefs.h.  */
10164
10165/* Override any GCC internal prototype to avoid an error.
10166   Use char because int might match the return type of a GCC
10167   builtin and then its argument prototype would still apply.  */
10168#ifdef __cplusplus
10169extern "C"
10170#endif
10171char dlopen ();
10172int
10173main ()
10174{
10175return dlopen ();
10176  ;
10177  return 0;
10178}
10179_ACEOF
10180rm -f conftest.$ac_objext conftest$ac_exeext
10181if { (ac_try="$ac_link"
10182case "(($ac_try" in
10183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10184  *) ac_try_echo=$ac_try;;
10185esac
10186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10187$as_echo "$ac_try_echo") >&5
10188  (eval "$ac_link") 2>conftest.er1
10189  ac_status=$?
10190  grep -v '^ *+' conftest.er1 >conftest.err
10191  rm -f conftest.er1
10192  cat conftest.err >&5
10193  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194  (exit $ac_status); } && {
10195	 test -z "$ac_c_werror_flag" ||
10196	 test ! -s conftest.err
10197       } && test -s conftest$ac_exeext && {
10198	 test "$cross_compiling" = yes ||
10199	 $as_test_x conftest$ac_exeext
10200       }; then
10201  ac_cv_lib_svld_dlopen=yes
10202else
10203  $as_echo "$as_me: failed program was:" >&5
10204sed 's/^/| /' conftest.$ac_ext >&5
10205
10206	ac_cv_lib_svld_dlopen=no
10207fi
10208
10209rm -rf conftest.dSYM
10210rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10211      conftest$ac_exeext conftest.$ac_ext
10212LIBS=$ac_check_lib_save_LIBS
10213fi
10214{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10215$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10216if test $ac_cv_lib_svld_dlopen = yes; then
10217  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10218else
10219  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10220$as_echo_n "checking for dld_link in -ldld... " >&6; }
10221if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10222  $as_echo_n "(cached) " >&6
10223else
10224  ac_check_lib_save_LIBS=$LIBS
10225LIBS="-ldld  $LIBS"
10226cat >conftest.$ac_ext <<_ACEOF
10227/* confdefs.h.  */
10228_ACEOF
10229cat confdefs.h >>conftest.$ac_ext
10230cat >>conftest.$ac_ext <<_ACEOF
10231/* end confdefs.h.  */
10232
10233/* Override any GCC internal prototype to avoid an error.
10234   Use char because int might match the return type of a GCC
10235   builtin and then its argument prototype would still apply.  */
10236#ifdef __cplusplus
10237extern "C"
10238#endif
10239char dld_link ();
10240int
10241main ()
10242{
10243return dld_link ();
10244  ;
10245  return 0;
10246}
10247_ACEOF
10248rm -f conftest.$ac_objext conftest$ac_exeext
10249if { (ac_try="$ac_link"
10250case "(($ac_try" in
10251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252  *) ac_try_echo=$ac_try;;
10253esac
10254eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10255$as_echo "$ac_try_echo") >&5
10256  (eval "$ac_link") 2>conftest.er1
10257  ac_status=$?
10258  grep -v '^ *+' conftest.er1 >conftest.err
10259  rm -f conftest.er1
10260  cat conftest.err >&5
10261  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262  (exit $ac_status); } && {
10263	 test -z "$ac_c_werror_flag" ||
10264	 test ! -s conftest.err
10265       } && test -s conftest$ac_exeext && {
10266	 test "$cross_compiling" = yes ||
10267	 $as_test_x conftest$ac_exeext
10268       }; then
10269  ac_cv_lib_dld_dld_link=yes
10270else
10271  $as_echo "$as_me: failed program was:" >&5
10272sed 's/^/| /' conftest.$ac_ext >&5
10273
10274	ac_cv_lib_dld_dld_link=no
10275fi
10276
10277rm -rf conftest.dSYM
10278rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10279      conftest$ac_exeext conftest.$ac_ext
10280LIBS=$ac_check_lib_save_LIBS
10281fi
10282{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10283$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10284if test $ac_cv_lib_dld_dld_link = yes; then
10285  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10286fi
10287
10288
10289fi
10290
10291
10292fi
10293
10294
10295fi
10296
10297
10298fi
10299
10300
10301fi
10302
10303    ;;
10304  esac
10305
10306  if test "x$lt_cv_dlopen" != xno; then
10307    enable_dlopen=yes
10308  else
10309    enable_dlopen=no
10310  fi
10311
10312  case $lt_cv_dlopen in
10313  dlopen)
10314    save_CPPFLAGS="$CPPFLAGS"
10315    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10316
10317    save_LDFLAGS="$LDFLAGS"
10318    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10319
10320    save_LIBS="$LIBS"
10321    LIBS="$lt_cv_dlopen_libs $LIBS"
10322
10323    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10324$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10325if test "${lt_cv_dlopen_self+set}" = set; then
10326  $as_echo_n "(cached) " >&6
10327else
10328  	  if test "$cross_compiling" = yes; then :
10329  lt_cv_dlopen_self=cross
10330else
10331  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10332  lt_status=$lt_dlunknown
10333  cat > conftest.$ac_ext <<EOF
10334#line 10334 "configure"
10335#include "confdefs.h"
10336
10337#if HAVE_DLFCN_H
10338#include <dlfcn.h>
10339#endif
10340
10341#include <stdio.h>
10342
10343#ifdef RTLD_GLOBAL
10344#  define LT_DLGLOBAL		RTLD_GLOBAL
10345#else
10346#  ifdef DL_GLOBAL
10347#    define LT_DLGLOBAL		DL_GLOBAL
10348#  else
10349#    define LT_DLGLOBAL		0
10350#  endif
10351#endif
10352
10353/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10354   find out it does not work in some platform. */
10355#ifndef LT_DLLAZY_OR_NOW
10356#  ifdef RTLD_LAZY
10357#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10358#  else
10359#    ifdef DL_LAZY
10360#      define LT_DLLAZY_OR_NOW		DL_LAZY
10361#    else
10362#      ifdef RTLD_NOW
10363#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10364#      else
10365#        ifdef DL_NOW
10366#          define LT_DLLAZY_OR_NOW	DL_NOW
10367#        else
10368#          define LT_DLLAZY_OR_NOW	0
10369#        endif
10370#      endif
10371#    endif
10372#  endif
10373#endif
10374
10375#ifdef __cplusplus
10376extern "C" void exit (int);
10377#endif
10378
10379void fnord() { int i=42;}
10380int main ()
10381{
10382  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10383  int status = $lt_dlunknown;
10384
10385  if (self)
10386    {
10387      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10388      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10389      /* dlclose (self); */
10390    }
10391  else
10392    puts (dlerror ());
10393
10394    exit (status);
10395}
10396EOF
10397  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10398  (eval $ac_link) 2>&5
10399  ac_status=$?
10400  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10402    (./conftest; exit; ) >&5 2>/dev/null
10403    lt_status=$?
10404    case x$lt_status in
10405      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10406      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10407      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10408    esac
10409  else :
10410    # compilation failed
10411    lt_cv_dlopen_self=no
10412  fi
10413fi
10414rm -fr conftest*
10415
10416
10417fi
10418{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10419$as_echo "$lt_cv_dlopen_self" >&6; }
10420
10421    if test "x$lt_cv_dlopen_self" = xyes; then
10422      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10423      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10424$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10425if test "${lt_cv_dlopen_self_static+set}" = set; then
10426  $as_echo_n "(cached) " >&6
10427else
10428  	  if test "$cross_compiling" = yes; then :
10429  lt_cv_dlopen_self_static=cross
10430else
10431  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10432  lt_status=$lt_dlunknown
10433  cat > conftest.$ac_ext <<EOF
10434#line 10434 "configure"
10435#include "confdefs.h"
10436
10437#if HAVE_DLFCN_H
10438#include <dlfcn.h>
10439#endif
10440
10441#include <stdio.h>
10442
10443#ifdef RTLD_GLOBAL
10444#  define LT_DLGLOBAL		RTLD_GLOBAL
10445#else
10446#  ifdef DL_GLOBAL
10447#    define LT_DLGLOBAL		DL_GLOBAL
10448#  else
10449#    define LT_DLGLOBAL		0
10450#  endif
10451#endif
10452
10453/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10454   find out it does not work in some platform. */
10455#ifndef LT_DLLAZY_OR_NOW
10456#  ifdef RTLD_LAZY
10457#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10458#  else
10459#    ifdef DL_LAZY
10460#      define LT_DLLAZY_OR_NOW		DL_LAZY
10461#    else
10462#      ifdef RTLD_NOW
10463#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10464#      else
10465#        ifdef DL_NOW
10466#          define LT_DLLAZY_OR_NOW	DL_NOW
10467#        else
10468#          define LT_DLLAZY_OR_NOW	0
10469#        endif
10470#      endif
10471#    endif
10472#  endif
10473#endif
10474
10475#ifdef __cplusplus
10476extern "C" void exit (int);
10477#endif
10478
10479void fnord() { int i=42;}
10480int main ()
10481{
10482  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10483  int status = $lt_dlunknown;
10484
10485  if (self)
10486    {
10487      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10488      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10489      /* dlclose (self); */
10490    }
10491  else
10492    puts (dlerror ());
10493
10494    exit (status);
10495}
10496EOF
10497  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10498  (eval $ac_link) 2>&5
10499  ac_status=$?
10500  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10502    (./conftest; exit; ) >&5 2>/dev/null
10503    lt_status=$?
10504    case x$lt_status in
10505      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10506      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10507      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10508    esac
10509  else :
10510    # compilation failed
10511    lt_cv_dlopen_self_static=no
10512  fi
10513fi
10514rm -fr conftest*
10515
10516
10517fi
10518{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10519$as_echo "$lt_cv_dlopen_self_static" >&6; }
10520    fi
10521
10522    CPPFLAGS="$save_CPPFLAGS"
10523    LDFLAGS="$save_LDFLAGS"
10524    LIBS="$save_LIBS"
10525    ;;
10526  esac
10527
10528  case $lt_cv_dlopen_self in
10529  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10530  *) enable_dlopen_self=unknown ;;
10531  esac
10532
10533  case $lt_cv_dlopen_self_static in
10534  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10535  *) enable_dlopen_self_static=unknown ;;
10536  esac
10537fi
10538
10539
10540# Report which library types will actually be built
10541{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10542$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10543{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10544$as_echo "$can_build_shared" >&6; }
10545
10546{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10547$as_echo_n "checking whether to build shared libraries... " >&6; }
10548test "$can_build_shared" = "no" && enable_shared=no
10549
10550# On AIX, shared libraries and static libraries use the same namespace, and
10551# are all built from PIC.
10552case $host_os in
10553aix3*)
10554  test "$enable_shared" = yes && enable_static=no
10555  if test -n "$RANLIB"; then
10556    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10557    postinstall_cmds='$RANLIB $lib'
10558  fi
10559  ;;
10560
10561aix[4-9]*)
10562  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10563    test "$enable_shared" = yes && enable_static=no
10564  fi
10565    ;;
10566esac
10567{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10568$as_echo "$enable_shared" >&6; }
10569
10570{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10571$as_echo_n "checking whether to build static libraries... " >&6; }
10572# Make sure either enable_shared or enable_static is yes.
10573test "$enable_shared" = yes || enable_static=yes
10574{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10575$as_echo "$enable_static" >&6; }
10576
10577# The else clause should only fire when bootstrapping the
10578# libtool distribution, otherwise you forgot to ship ltmain.sh
10579# with your package, and you will get complaints that there are
10580# no rules to generate ltmain.sh.
10581if test -f "$ltmain"; then
10582  # See if we are running on zsh, and set the options which allow our commands through
10583  # without removal of \ escapes.
10584  if test -n "${ZSH_VERSION+set}" ; then
10585    setopt NO_GLOB_SUBST
10586  fi
10587  # Now quote all the things that may contain metacharacters while being
10588  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10589  # variables and quote the copies for generation of the libtool script.
10590  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10591    SED SHELL STRIP \
10592    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10593    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10594    deplibs_check_method reload_flag reload_cmds need_locks \
10595    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10596    lt_cv_sys_global_symbol_to_c_name_address \
10597    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10598    old_postinstall_cmds old_postuninstall_cmds \
10599    compiler \
10600    CC \
10601    LD \
10602    lt_prog_compiler_wl \
10603    lt_prog_compiler_pic \
10604    lt_prog_compiler_static \
10605    lt_prog_compiler_no_builtin_flag \
10606    export_dynamic_flag_spec \
10607    thread_safe_flag_spec \
10608    whole_archive_flag_spec \
10609    enable_shared_with_static_runtimes \
10610    old_archive_cmds \
10611    old_archive_from_new_cmds \
10612    predep_objects \
10613    postdep_objects \
10614    predeps \
10615    postdeps \
10616    compiler_lib_search_path \
10617    compiler_lib_search_dirs \
10618    archive_cmds \
10619    archive_expsym_cmds \
10620    postinstall_cmds \
10621    postuninstall_cmds \
10622    old_archive_from_expsyms_cmds \
10623    allow_undefined_flag \
10624    no_undefined_flag \
10625    export_symbols_cmds \
10626    hardcode_libdir_flag_spec \
10627    hardcode_libdir_flag_spec_ld \
10628    hardcode_libdir_separator \
10629    hardcode_automatic \
10630    module_cmds \
10631    module_expsym_cmds \
10632    lt_cv_prog_compiler_c_o \
10633    fix_srcfile_path \
10634    exclude_expsyms \
10635    include_expsyms; do
10636
10637    case $var in
10638    old_archive_cmds | \
10639    old_archive_from_new_cmds | \
10640    archive_cmds | \
10641    archive_expsym_cmds | \
10642    module_cmds | \
10643    module_expsym_cmds | \
10644    old_archive_from_expsyms_cmds | \
10645    export_symbols_cmds | \
10646    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10647    postinstall_cmds | postuninstall_cmds | \
10648    old_postinstall_cmds | old_postuninstall_cmds | \
10649    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10650      # Double-quote double-evaled strings.
10651      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10652      ;;
10653    *)
10654      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10655      ;;
10656    esac
10657  done
10658
10659  case $lt_echo in
10660  *'\$0 --fallback-echo"')
10661    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10662    ;;
10663  esac
10664
10665cfgfile="${ofile}T"
10666  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10667  $rm -f "$cfgfile"
10668  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10669$as_echo "$as_me: creating $ofile" >&6;}
10670
10671  cat <<__EOF__ >> "$cfgfile"
10672#! $SHELL
10673
10674# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10675# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10676# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10677#
10678# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10679# Free Software Foundation, Inc.
10680#
10681# This file is part of GNU Libtool:
10682# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10683#
10684# This program is free software; you can redistribute it and/or modify
10685# it under the terms of the GNU General Public License as published by
10686# the Free Software Foundation; either version 2 of the License, or
10687# (at your option) any later version.
10688#
10689# This program is distributed in the hope that it will be useful, but
10690# WITHOUT ANY WARRANTY; without even the implied warranty of
10691# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10692# General Public License for more details.
10693#
10694# You should have received a copy of the GNU General Public License
10695# along with this program; if not, write to the Free Software
10696# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10697#
10698# As a special exception to the GNU General Public License, if you
10699# distribute this file as part of a program that contains a
10700# configuration script generated by Autoconf, you may include it under
10701# the same distribution terms that you use for the rest of that program.
10702
10703# A sed program that does not truncate output.
10704SED=$lt_SED
10705
10706# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10707Xsed="$SED -e 1s/^X//"
10708
10709# The HP-UX ksh and POSIX shell print the target directory to stdout
10710# if CDPATH is set.
10711(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10712
10713# The names of the tagged configurations supported by this script.
10714available_tags=
10715
10716# ### BEGIN LIBTOOL CONFIG
10717
10718# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10719
10720# Shell to use when invoking shell scripts.
10721SHELL=$lt_SHELL
10722
10723# Whether or not to build shared libraries.
10724build_libtool_libs=$enable_shared
10725
10726# Whether or not to build static libraries.
10727build_old_libs=$enable_static
10728
10729# Whether or not to add -lc for building shared libraries.
10730build_libtool_need_lc=$archive_cmds_need_lc
10731
10732# Whether or not to disallow shared libs when runtime libs are static
10733allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10734
10735# Whether or not to optimize for fast installation.
10736fast_install=$enable_fast_install
10737
10738# The host system.
10739host_alias=$host_alias
10740host=$host
10741host_os=$host_os
10742
10743# The build system.
10744build_alias=$build_alias
10745build=$build
10746build_os=$build_os
10747
10748# An echo program that does not interpret backslashes.
10749echo=$lt_echo
10750
10751# The archiver.
10752AR=$lt_AR
10753AR_FLAGS=$lt_AR_FLAGS
10754
10755# A C compiler.
10756LTCC=$lt_LTCC
10757
10758# LTCC compiler flags.
10759LTCFLAGS=$lt_LTCFLAGS
10760
10761# A language-specific compiler.
10762CC=$lt_compiler
10763
10764# Is the compiler the GNU C compiler?
10765with_gcc=$GCC
10766
10767# An ERE matcher.
10768EGREP=$lt_EGREP
10769
10770# The linker used to build libraries.
10771LD=$lt_LD
10772
10773# Whether we need hard or soft links.
10774LN_S=$lt_LN_S
10775
10776# A BSD-compatible nm program.
10777NM=$lt_NM
10778
10779# A symbol stripping program
10780STRIP=$lt_STRIP
10781
10782# Used to examine libraries when file_magic_cmd begins "file"
10783MAGIC_CMD=$MAGIC_CMD
10784
10785# Used on cygwin: DLL creation program.
10786DLLTOOL="$DLLTOOL"
10787
10788# Used on cygwin: object dumper.
10789OBJDUMP="$OBJDUMP"
10790
10791# Used on cygwin: assembler.
10792AS="$AS"
10793
10794# The name of the directory that contains temporary libtool files.
10795objdir=$objdir
10796
10797# How to create reloadable object files.
10798reload_flag=$lt_reload_flag
10799reload_cmds=$lt_reload_cmds
10800
10801# How to pass a linker flag through the compiler.
10802wl=$lt_lt_prog_compiler_wl
10803
10804# Object file suffix (normally "o").
10805objext="$ac_objext"
10806
10807# Old archive suffix (normally "a").
10808libext="$libext"
10809
10810# Shared library suffix (normally ".so").
10811shrext_cmds='$shrext_cmds'
10812
10813# Executable file suffix (normally "").
10814exeext="$exeext"
10815
10816# Additional compiler flags for building library objects.
10817pic_flag=$lt_lt_prog_compiler_pic
10818pic_mode=$pic_mode
10819
10820# What is the maximum length of a command?
10821max_cmd_len=$lt_cv_sys_max_cmd_len
10822
10823# Does compiler simultaneously support -c and -o options?
10824compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10825
10826# Must we lock files when doing compilation?
10827need_locks=$lt_need_locks
10828
10829# Do we need the lib prefix for modules?
10830need_lib_prefix=$need_lib_prefix
10831
10832# Do we need a version for libraries?
10833need_version=$need_version
10834
10835# Whether dlopen is supported.
10836dlopen_support=$enable_dlopen
10837
10838# Whether dlopen of programs is supported.
10839dlopen_self=$enable_dlopen_self
10840
10841# Whether dlopen of statically linked programs is supported.
10842dlopen_self_static=$enable_dlopen_self_static
10843
10844# Compiler flag to prevent dynamic linking.
10845link_static_flag=$lt_lt_prog_compiler_static
10846
10847# Compiler flag to turn off builtin functions.
10848no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10849
10850# Compiler flag to allow reflexive dlopens.
10851export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10852
10853# Compiler flag to generate shared objects directly from archives.
10854whole_archive_flag_spec=$lt_whole_archive_flag_spec
10855
10856# Compiler flag to generate thread-safe objects.
10857thread_safe_flag_spec=$lt_thread_safe_flag_spec
10858
10859# Library versioning type.
10860version_type=$version_type
10861
10862# Format of library name prefix.
10863libname_spec=$lt_libname_spec
10864
10865# List of archive names.  First name is the real one, the rest are links.
10866# The last name is the one that the linker finds with -lNAME.
10867library_names_spec=$lt_library_names_spec
10868
10869# The coded name of the library, if different from the real name.
10870soname_spec=$lt_soname_spec
10871
10872# Commands used to build and install an old-style archive.
10873RANLIB=$lt_RANLIB
10874old_archive_cmds=$lt_old_archive_cmds
10875old_postinstall_cmds=$lt_old_postinstall_cmds
10876old_postuninstall_cmds=$lt_old_postuninstall_cmds
10877
10878# Create an old-style archive from a shared archive.
10879old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10880
10881# Create a temporary old-style archive to link instead of a shared archive.
10882old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10883
10884# Commands used to build and install a shared archive.
10885archive_cmds=$lt_archive_cmds
10886archive_expsym_cmds=$lt_archive_expsym_cmds
10887postinstall_cmds=$lt_postinstall_cmds
10888postuninstall_cmds=$lt_postuninstall_cmds
10889
10890# Commands used to build a loadable module (assumed same as above if empty)
10891module_cmds=$lt_module_cmds
10892module_expsym_cmds=$lt_module_expsym_cmds
10893
10894# Commands to strip libraries.
10895old_striplib=$lt_old_striplib
10896striplib=$lt_striplib
10897
10898# Dependencies to place before the objects being linked to create a
10899# shared library.
10900predep_objects=$lt_predep_objects
10901
10902# Dependencies to place after the objects being linked to create a
10903# shared library.
10904postdep_objects=$lt_postdep_objects
10905
10906# Dependencies to place before the objects being linked to create a
10907# shared library.
10908predeps=$lt_predeps
10909
10910# Dependencies to place after the objects being linked to create a
10911# shared library.
10912postdeps=$lt_postdeps
10913
10914# The directories searched by this compiler when creating a shared
10915# library
10916compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10917
10918# The library search path used internally by the compiler when linking
10919# a shared library.
10920compiler_lib_search_path=$lt_compiler_lib_search_path
10921
10922# Method to check whether dependent libraries are shared objects.
10923deplibs_check_method=$lt_deplibs_check_method
10924
10925# Command to use when deplibs_check_method == file_magic.
10926file_magic_cmd=$lt_file_magic_cmd
10927
10928# Flag that allows shared libraries with undefined symbols to be built.
10929allow_undefined_flag=$lt_allow_undefined_flag
10930
10931# Flag that forces no undefined symbols.
10932no_undefined_flag=$lt_no_undefined_flag
10933
10934# Commands used to finish a libtool library installation in a directory.
10935finish_cmds=$lt_finish_cmds
10936
10937# Same as above, but a single script fragment to be evaled but not shown.
10938finish_eval=$lt_finish_eval
10939
10940# Take the output of nm and produce a listing of raw symbols and C names.
10941global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10942
10943# Transform the output of nm in a proper C declaration
10944global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10945
10946# Transform the output of nm in a C name address pair
10947global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10948
10949# This is the shared library runtime path variable.
10950runpath_var=$runpath_var
10951
10952# This is the shared library path variable.
10953shlibpath_var=$shlibpath_var
10954
10955# Is shlibpath searched before the hard-coded library search path?
10956shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10957
10958# How to hardcode a shared library path into an executable.
10959hardcode_action=$hardcode_action
10960
10961# Whether we should hardcode library paths into libraries.
10962hardcode_into_libs=$hardcode_into_libs
10963
10964# Flag to hardcode \$libdir into a binary during linking.
10965# This must work even if \$libdir does not exist.
10966hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10967
10968# If ld is used when linking, flag to hardcode \$libdir into
10969# a binary during linking. This must work even if \$libdir does
10970# not exist.
10971hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10972
10973# Whether we need a single -rpath flag with a separated argument.
10974hardcode_libdir_separator=$lt_hardcode_libdir_separator
10975
10976# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10977# resulting binary.
10978hardcode_direct=$hardcode_direct
10979
10980# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10981# resulting binary.
10982hardcode_minus_L=$hardcode_minus_L
10983
10984# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10985# the resulting binary.
10986hardcode_shlibpath_var=$hardcode_shlibpath_var
10987
10988# Set to yes if building a shared library automatically hardcodes DIR into the library
10989# and all subsequent libraries and executables linked against it.
10990hardcode_automatic=$hardcode_automatic
10991
10992# Variables whose values should be saved in libtool wrapper scripts and
10993# restored at relink time.
10994variables_saved_for_relink="$variables_saved_for_relink"
10995
10996# Whether libtool must link a program against all its dependency libraries.
10997link_all_deplibs=$link_all_deplibs
10998
10999# Compile-time system search path for libraries
11000sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11001
11002# Run-time system search path for libraries
11003sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11004
11005# Fix the shell variable \$srcfile for the compiler.
11006fix_srcfile_path=$lt_fix_srcfile_path
11007
11008# Set to yes if exported symbols are required.
11009always_export_symbols=$always_export_symbols
11010
11011# The commands to list exported symbols.
11012export_symbols_cmds=$lt_export_symbols_cmds
11013
11014# The commands to extract the exported symbol list from a shared archive.
11015extract_expsyms_cmds=$lt_extract_expsyms_cmds
11016
11017# Symbols that should not be listed in the preloaded symbols.
11018exclude_expsyms=$lt_exclude_expsyms
11019
11020# Symbols that must always be exported.
11021include_expsyms=$lt_include_expsyms
11022
11023# ### END LIBTOOL CONFIG
11024
11025__EOF__
11026
11027
11028  case $host_os in
11029  aix3*)
11030    cat <<\EOF >> "$cfgfile"
11031
11032# AIX sometimes has problems with the GCC collect2 program.  For some
11033# reason, if we set the COLLECT_NAMES environment variable, the problems
11034# vanish in a puff of smoke.
11035if test "X${COLLECT_NAMES+set}" != Xset; then
11036  COLLECT_NAMES=
11037  export COLLECT_NAMES
11038fi
11039EOF
11040    ;;
11041  esac
11042
11043  # We use sed instead of cat because bash on DJGPP gets confused if
11044  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11045  # text mode, it properly converts lines to CR/LF.  This bash problem
11046  # is reportedly fixed, but why not run on old versions too?
11047  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11048
11049  mv -f "$cfgfile" "$ofile" || \
11050    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11051  chmod +x "$ofile"
11052
11053else
11054  # If there is no Makefile yet, we rely on a make rule to execute
11055  # `config.status --recheck' to rerun these tests and create the
11056  # libtool script then.
11057  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11058  if test -f "$ltmain_in"; then
11059    test -f Makefile && make "$ltmain"
11060  fi
11061fi
11062
11063
11064ac_ext=c
11065ac_cpp='$CPP $CPPFLAGS'
11066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11068ac_compiler_gnu=$ac_cv_c_compiler_gnu
11069
11070CC="$lt_save_CC"
11071
11072
11073# Check whether --with-tags was given.
11074if test "${with_tags+set}" = set; then
11075  withval=$with_tags; tagnames="$withval"
11076fi
11077
11078
11079if test -f "$ltmain" && test -n "$tagnames"; then
11080  if test ! -f "${ofile}"; then
11081    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11082$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11083  fi
11084
11085  if test -z "$LTCC"; then
11086    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11087    if test -z "$LTCC"; then
11088      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11089$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11090    else
11091      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11092$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11093    fi
11094  fi
11095  if test -z "$LTCFLAGS"; then
11096    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11097  fi
11098
11099  # Extract list of available tagged configurations in $ofile.
11100  # Note that this assumes the entire list is on one line.
11101  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11102
11103  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11104  for tagname in $tagnames; do
11105    IFS="$lt_save_ifs"
11106    # Check whether tagname contains only valid characters
11107    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11108    "") ;;
11109    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11110$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11111   { (exit 1); exit 1; }; }
11112	;;
11113    esac
11114
11115    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11116    then
11117      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11118$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11119   { (exit 1); exit 1; }; }
11120    fi
11121
11122    # Update the list of available tags.
11123    if test -n "$tagname"; then
11124      echo appending configuration tag \"$tagname\" to $ofile
11125
11126      case $tagname in
11127      CXX)
11128	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11129	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11130	    (test "X$CXX" != "Xg++"))) ; then
11131	  ac_ext=cpp
11132ac_cpp='$CXXCPP $CPPFLAGS'
11133ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11134ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11135ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11136
11137
11138
11139
11140archive_cmds_need_lc_CXX=no
11141allow_undefined_flag_CXX=
11142always_export_symbols_CXX=no
11143archive_expsym_cmds_CXX=
11144export_dynamic_flag_spec_CXX=
11145hardcode_direct_CXX=no
11146hardcode_libdir_flag_spec_CXX=
11147hardcode_libdir_flag_spec_ld_CXX=
11148hardcode_libdir_separator_CXX=
11149hardcode_minus_L_CXX=no
11150hardcode_shlibpath_var_CXX=unsupported
11151hardcode_automatic_CXX=no
11152module_cmds_CXX=
11153module_expsym_cmds_CXX=
11154link_all_deplibs_CXX=unknown
11155old_archive_cmds_CXX=$old_archive_cmds
11156no_undefined_flag_CXX=
11157whole_archive_flag_spec_CXX=
11158enable_shared_with_static_runtimes_CXX=no
11159
11160# Dependencies to place before and after the object being linked:
11161predep_objects_CXX=
11162postdep_objects_CXX=
11163predeps_CXX=
11164postdeps_CXX=
11165compiler_lib_search_path_CXX=
11166compiler_lib_search_dirs_CXX=
11167
11168# Source file extension for C++ test sources.
11169ac_ext=cpp
11170
11171# Object file extension for compiled C++ test sources.
11172objext=o
11173objext_CXX=$objext
11174
11175# Code to be used in simple compile tests
11176lt_simple_compile_test_code="int some_variable = 0;"
11177
11178# Code to be used in simple link tests
11179lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11180
11181# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11182
11183# If no C compiler was specified, use CC.
11184LTCC=${LTCC-"$CC"}
11185
11186# If no C compiler flags were specified, use CFLAGS.
11187LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11188
11189# Allow CC to be a program name with arguments.
11190compiler=$CC
11191
11192
11193# save warnings/boilerplate of simple test code
11194ac_outfile=conftest.$ac_objext
11195echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11196eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11197_lt_compiler_boilerplate=`cat conftest.err`
11198$rm conftest*
11199
11200ac_outfile=conftest.$ac_objext
11201echo "$lt_simple_link_test_code" >conftest.$ac_ext
11202eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11203_lt_linker_boilerplate=`cat conftest.err`
11204$rm -r conftest*
11205
11206
11207# Allow CC to be a program name with arguments.
11208lt_save_CC=$CC
11209lt_save_LD=$LD
11210lt_save_GCC=$GCC
11211GCC=$GXX
11212lt_save_with_gnu_ld=$with_gnu_ld
11213lt_save_path_LD=$lt_cv_path_LD
11214if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11215  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11216else
11217  $as_unset lt_cv_prog_gnu_ld
11218fi
11219if test -n "${lt_cv_path_LDCXX+set}"; then
11220  lt_cv_path_LD=$lt_cv_path_LDCXX
11221else
11222  $as_unset lt_cv_path_LD
11223fi
11224test -z "${LDCXX+set}" || LD=$LDCXX
11225CC=${CXX-"c++"}
11226compiler=$CC
11227compiler_CXX=$CC
11228for cc_temp in $compiler""; do
11229  case $cc_temp in
11230    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11231    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11232    \-*) ;;
11233    *) break;;
11234  esac
11235done
11236cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11237
11238
11239# We don't want -fno-exception wen compiling C++ code, so set the
11240# no_builtin_flag separately
11241if test "$GXX" = yes; then
11242  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11243else
11244  lt_prog_compiler_no_builtin_flag_CXX=
11245fi
11246
11247if test "$GXX" = yes; then
11248  # Set up default GNU C++ configuration
11249
11250
11251# Check whether --with-gnu-ld was given.
11252if test "${with_gnu_ld+set}" = set; then
11253  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11254else
11255  with_gnu_ld=no
11256fi
11257
11258ac_prog=ld
11259if test "$GCC" = yes; then
11260  # Check if gcc -print-prog-name=ld gives a path.
11261  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11262$as_echo_n "checking for ld used by $CC... " >&6; }
11263  case $host in
11264  *-*-mingw*)
11265    # gcc leaves a trailing carriage return which upsets mingw
11266    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11267  *)
11268    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11269  esac
11270  case $ac_prog in
11271    # Accept absolute paths.
11272    [\\/]* | ?:[\\/]*)
11273      re_direlt='/[^/][^/]*/\.\./'
11274      # Canonicalize the pathname of ld
11275      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11276      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11277	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11278      done
11279      test -z "$LD" && LD="$ac_prog"
11280      ;;
11281  "")
11282    # If it fails, then pretend we aren't using GCC.
11283    ac_prog=ld
11284    ;;
11285  *)
11286    # If it is relative, then search for the first ld in PATH.
11287    with_gnu_ld=unknown
11288    ;;
11289  esac
11290elif test "$with_gnu_ld" = yes; then
11291  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11292$as_echo_n "checking for GNU ld... " >&6; }
11293else
11294  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11295$as_echo_n "checking for non-GNU ld... " >&6; }
11296fi
11297if test "${lt_cv_path_LD+set}" = set; then
11298  $as_echo_n "(cached) " >&6
11299else
11300  if test -z "$LD"; then
11301  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11302  for ac_dir in $PATH; do
11303    IFS="$lt_save_ifs"
11304    test -z "$ac_dir" && ac_dir=.
11305    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11306      lt_cv_path_LD="$ac_dir/$ac_prog"
11307      # Check to see if the program is GNU ld.  I'd rather use --version,
11308      # but apparently some variants of GNU ld only accept -v.
11309      # Break only if it was the GNU/non-GNU ld that we prefer.
11310      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11311      *GNU* | *'with BFD'*)
11312	test "$with_gnu_ld" != no && break
11313	;;
11314      *)
11315	test "$with_gnu_ld" != yes && break
11316	;;
11317      esac
11318    fi
11319  done
11320  IFS="$lt_save_ifs"
11321else
11322  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11323fi
11324fi
11325
11326LD="$lt_cv_path_LD"
11327if test -n "$LD"; then
11328  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11329$as_echo "$LD" >&6; }
11330else
11331  { $as_echo "$as_me:$LINENO: result: no" >&5
11332$as_echo "no" >&6; }
11333fi
11334test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11335$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11336   { (exit 1); exit 1; }; }
11337{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11338$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11339if test "${lt_cv_prog_gnu_ld+set}" = set; then
11340  $as_echo_n "(cached) " >&6
11341else
11342  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11343case `$LD -v 2>&1 </dev/null` in
11344*GNU* | *'with BFD'*)
11345  lt_cv_prog_gnu_ld=yes
11346  ;;
11347*)
11348  lt_cv_prog_gnu_ld=no
11349  ;;
11350esac
11351fi
11352{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11353$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11354with_gnu_ld=$lt_cv_prog_gnu_ld
11355
11356
11357
11358  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11359  # archiving commands below assume that GNU ld is being used.
11360  if test "$with_gnu_ld" = yes; then
11361    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11362    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'
11363
11364    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11365    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11366
11367    # If archive_cmds runs LD, not CC, wlarc should be empty
11368    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11369    #     investigate it a little bit more. (MM)
11370    wlarc='${wl}'
11371
11372    # ancient GNU ld didn't support --whole-archive et. al.
11373    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11374	grep 'no-whole-archive' > /dev/null; then
11375      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11376    else
11377      whole_archive_flag_spec_CXX=
11378    fi
11379  else
11380    with_gnu_ld=no
11381    wlarc=
11382
11383    # A generic and very simple default shared library creation
11384    # command for GNU C++ for the case where it uses the native
11385    # linker, instead of GNU ld.  If possible, this setting should
11386    # overridden to take advantage of the native linker features on
11387    # the platform it is being used on.
11388    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11389  fi
11390
11391  # Commands to make compiler produce verbose output that lists
11392  # what "hidden" libraries, object files and flags are used when
11393  # linking a shared library.
11394  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11395
11396else
11397  GXX=no
11398  with_gnu_ld=no
11399  wlarc=
11400fi
11401
11402# PORTME: fill in a description of your system's C++ link characteristics
11403{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11404$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11405ld_shlibs_CXX=yes
11406case $host_os in
11407  aix3*)
11408    # FIXME: insert proper C++ library support
11409    ld_shlibs_CXX=no
11410    ;;
11411  aix[4-9]*)
11412    if test "$host_cpu" = ia64; then
11413      # On IA64, the linker does run time linking by default, so we don't
11414      # have to do anything special.
11415      aix_use_runtimelinking=no
11416      exp_sym_flag='-Bexport'
11417      no_entry_flag=""
11418    else
11419      aix_use_runtimelinking=no
11420
11421      # Test if we are trying to use run time linking or normal
11422      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11423      # need to do runtime linking.
11424      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11425	for ld_flag in $LDFLAGS; do
11426	  case $ld_flag in
11427	  *-brtl*)
11428	    aix_use_runtimelinking=yes
11429	    break
11430	    ;;
11431	  esac
11432	done
11433	;;
11434      esac
11435
11436      exp_sym_flag='-bexport'
11437      no_entry_flag='-bnoentry'
11438    fi
11439
11440    # When large executables or shared objects are built, AIX ld can
11441    # have problems creating the table of contents.  If linking a library
11442    # or program results in "error TOC overflow" add -mminimal-toc to
11443    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11444    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11445
11446    archive_cmds_CXX=''
11447    hardcode_direct_CXX=yes
11448    hardcode_libdir_separator_CXX=':'
11449    link_all_deplibs_CXX=yes
11450
11451    if test "$GXX" = yes; then
11452      case $host_os in aix4.[012]|aix4.[012].*)
11453      # We only want to do this on AIX 4.2 and lower, the check
11454      # below for broken collect2 doesn't work under 4.3+
11455	collect2name=`${CC} -print-prog-name=collect2`
11456	if test -f "$collect2name" && \
11457	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11458	then
11459	  # We have reworked collect2
11460	  :
11461	else
11462	  # We have old collect2
11463	  hardcode_direct_CXX=unsupported
11464	  # It fails to find uninstalled libraries when the uninstalled
11465	  # path is not listed in the libpath.  Setting hardcode_minus_L
11466	  # to unsupported forces relinking
11467	  hardcode_minus_L_CXX=yes
11468	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11469	  hardcode_libdir_separator_CXX=
11470	fi
11471	;;
11472      esac
11473      shared_flag='-shared'
11474      if test "$aix_use_runtimelinking" = yes; then
11475	shared_flag="$shared_flag "'${wl}-G'
11476      fi
11477    else
11478      # not using gcc
11479      if test "$host_cpu" = ia64; then
11480	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11481	# chokes on -Wl,-G. The following line is correct:
11482	shared_flag='-G'
11483      else
11484	if test "$aix_use_runtimelinking" = yes; then
11485	  shared_flag='${wl}-G'
11486	else
11487	  shared_flag='${wl}-bM:SRE'
11488	fi
11489      fi
11490    fi
11491
11492    # It seems that -bexpall does not export symbols beginning with
11493    # underscore (_), so it is better to generate a list of symbols to export.
11494    always_export_symbols_CXX=yes
11495    if test "$aix_use_runtimelinking" = yes; then
11496      # Warning - without using the other runtime loading flags (-brtl),
11497      # -berok will link without error, but may produce a broken library.
11498      allow_undefined_flag_CXX='-berok'
11499      # Determine the default libpath from the value encoded in an empty executable.
11500      cat >conftest.$ac_ext <<_ACEOF
11501/* confdefs.h.  */
11502_ACEOF
11503cat confdefs.h >>conftest.$ac_ext
11504cat >>conftest.$ac_ext <<_ACEOF
11505/* end confdefs.h.  */
11506
11507int
11508main ()
11509{
11510
11511  ;
11512  return 0;
11513}
11514_ACEOF
11515rm -f conftest.$ac_objext conftest$ac_exeext
11516if { (ac_try="$ac_link"
11517case "(($ac_try" in
11518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519  *) ac_try_echo=$ac_try;;
11520esac
11521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11522$as_echo "$ac_try_echo") >&5
11523  (eval "$ac_link") 2>conftest.er1
11524  ac_status=$?
11525  grep -v '^ *+' conftest.er1 >conftest.err
11526  rm -f conftest.er1
11527  cat conftest.err >&5
11528  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529  (exit $ac_status); } && {
11530	 test -z "$ac_cxx_werror_flag" ||
11531	 test ! -s conftest.err
11532       } && test -s conftest$ac_exeext && {
11533	 test "$cross_compiling" = yes ||
11534	 $as_test_x conftest$ac_exeext
11535       }; then
11536
11537lt_aix_libpath_sed='
11538    /Import File Strings/,/^$/ {
11539	/^0/ {
11540	    s/^0  *\(.*\)$/\1/
11541	    p
11542	}
11543    }'
11544aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11545# Check for a 64-bit object if we didn't find anything.
11546if test -z "$aix_libpath"; then
11547  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11548fi
11549else
11550  $as_echo "$as_me: failed program was:" >&5
11551sed 's/^/| /' conftest.$ac_ext >&5
11552
11553
11554fi
11555
11556rm -rf conftest.dSYM
11557rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11558      conftest$ac_exeext conftest.$ac_ext
11559if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11560
11561      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11562
11563      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"
11564     else
11565      if test "$host_cpu" = ia64; then
11566	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11567	allow_undefined_flag_CXX="-z nodefs"
11568	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"
11569      else
11570	# Determine the default libpath from the value encoded in an empty executable.
11571	cat >conftest.$ac_ext <<_ACEOF
11572/* confdefs.h.  */
11573_ACEOF
11574cat confdefs.h >>conftest.$ac_ext
11575cat >>conftest.$ac_ext <<_ACEOF
11576/* end confdefs.h.  */
11577
11578int
11579main ()
11580{
11581
11582  ;
11583  return 0;
11584}
11585_ACEOF
11586rm -f conftest.$ac_objext conftest$ac_exeext
11587if { (ac_try="$ac_link"
11588case "(($ac_try" in
11589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11590  *) ac_try_echo=$ac_try;;
11591esac
11592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11593$as_echo "$ac_try_echo") >&5
11594  (eval "$ac_link") 2>conftest.er1
11595  ac_status=$?
11596  grep -v '^ *+' conftest.er1 >conftest.err
11597  rm -f conftest.er1
11598  cat conftest.err >&5
11599  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600  (exit $ac_status); } && {
11601	 test -z "$ac_cxx_werror_flag" ||
11602	 test ! -s conftest.err
11603       } && test -s conftest$ac_exeext && {
11604	 test "$cross_compiling" = yes ||
11605	 $as_test_x conftest$ac_exeext
11606       }; then
11607
11608lt_aix_libpath_sed='
11609    /Import File Strings/,/^$/ {
11610	/^0/ {
11611	    s/^0  *\(.*\)$/\1/
11612	    p
11613	}
11614    }'
11615aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11616# Check for a 64-bit object if we didn't find anything.
11617if test -z "$aix_libpath"; then
11618  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11619fi
11620else
11621  $as_echo "$as_me: failed program was:" >&5
11622sed 's/^/| /' conftest.$ac_ext >&5
11623
11624
11625fi
11626
11627rm -rf conftest.dSYM
11628rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11629      conftest$ac_exeext conftest.$ac_ext
11630if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11631
11632	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11633	# Warning - without using the other run time loading flags,
11634	# -berok will link without error, but may produce a broken library.
11635	no_undefined_flag_CXX=' ${wl}-bernotok'
11636	allow_undefined_flag_CXX=' ${wl}-berok'
11637	# Exported symbols can be pulled into shared objects from archives
11638	whole_archive_flag_spec_CXX='$convenience'
11639	archive_cmds_need_lc_CXX=yes
11640	# This is similar to how AIX traditionally builds its shared libraries.
11641	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'
11642      fi
11643    fi
11644    ;;
11645
11646  beos*)
11647    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11648      allow_undefined_flag_CXX=unsupported
11649      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11650      # support --undefined.  This deserves some investigation.  FIXME
11651      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11652    else
11653      ld_shlibs_CXX=no
11654    fi
11655    ;;
11656
11657  chorus*)
11658    case $cc_basename in
11659      *)
11660	# FIXME: insert proper C++ library support
11661	ld_shlibs_CXX=no
11662	;;
11663    esac
11664    ;;
11665
11666  cygwin* | mingw* | pw32*)
11667    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11668    # as there is no search path for DLLs.
11669    hardcode_libdir_flag_spec_CXX='-L$libdir'
11670    allow_undefined_flag_CXX=unsupported
11671    always_export_symbols_CXX=no
11672    enable_shared_with_static_runtimes_CXX=yes
11673
11674    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11675      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'
11676      # If the export-symbols file already is a .def file (1st line
11677      # is EXPORTS), use it as is; otherwise, prepend...
11678      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11679	cp $export_symbols $output_objdir/$soname.def;
11680      else
11681	echo EXPORTS > $output_objdir/$soname.def;
11682	cat $export_symbols >> $output_objdir/$soname.def;
11683      fi~
11684      $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'
11685    else
11686      ld_shlibs_CXX=no
11687    fi
11688  ;;
11689      darwin* | rhapsody*)
11690      archive_cmds_need_lc_CXX=no
11691      hardcode_direct_CXX=no
11692      hardcode_automatic_CXX=yes
11693      hardcode_shlibpath_var_CXX=unsupported
11694      whole_archive_flag_spec_CXX=''
11695      link_all_deplibs_CXX=yes
11696      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11697      if test "$GXX" = yes ; then
11698      output_verbose_link_cmd='echo'
11699      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}"
11700      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11701      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}"
11702      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}"
11703      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11704        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}"
11705        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}"
11706      fi
11707      else
11708      case $cc_basename in
11709        xlc*)
11710         output_verbose_link_cmd='echo'
11711          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'
11712          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11713          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11714          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}'
11715          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}'
11716          ;;
11717       *)
11718         ld_shlibs_CXX=no
11719          ;;
11720      esac
11721      fi
11722        ;;
11723
11724  dgux*)
11725    case $cc_basename in
11726      ec++*)
11727	# FIXME: insert proper C++ library support
11728	ld_shlibs_CXX=no
11729	;;
11730      ghcx*)
11731	# Green Hills C++ Compiler
11732	# FIXME: insert proper C++ library support
11733	ld_shlibs_CXX=no
11734	;;
11735      *)
11736	# FIXME: insert proper C++ library support
11737	ld_shlibs_CXX=no
11738	;;
11739    esac
11740    ;;
11741  freebsd[12]*)
11742    # C++ shared libraries reported to be fairly broken before switch to ELF
11743    ld_shlibs_CXX=no
11744    ;;
11745  freebsd-elf*)
11746    archive_cmds_need_lc_CXX=no
11747    ;;
11748  freebsd* | dragonfly*)
11749    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11750    # conventions
11751    ld_shlibs_CXX=yes
11752    ;;
11753  gnu*)
11754    ;;
11755  hpux9*)
11756    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11757    hardcode_libdir_separator_CXX=:
11758    export_dynamic_flag_spec_CXX='${wl}-E'
11759    hardcode_direct_CXX=yes
11760    hardcode_minus_L_CXX=yes # Not in the search PATH,
11761				# but as the default
11762				# location of the library.
11763
11764    case $cc_basename in
11765    CC*)
11766      # FIXME: insert proper C++ library support
11767      ld_shlibs_CXX=no
11768      ;;
11769    aCC*)
11770      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'
11771      # Commands to make compiler produce verbose output that lists
11772      # what "hidden" libraries, object files and flags are used when
11773      # linking a shared library.
11774      #
11775      # There doesn't appear to be a way to prevent this compiler from
11776      # explicitly linking system object files so we need to strip them
11777      # from the output so that they don't get included in the library
11778      # dependencies.
11779      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'
11780      ;;
11781    *)
11782      if test "$GXX" = yes; then
11783        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'
11784      else
11785        # FIXME: insert proper C++ library support
11786        ld_shlibs_CXX=no
11787      fi
11788      ;;
11789    esac
11790    ;;
11791  hpux10*|hpux11*)
11792    if test $with_gnu_ld = no; then
11793      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11794      hardcode_libdir_separator_CXX=:
11795
11796      case $host_cpu in
11797      hppa*64*|ia64*) ;;
11798      *)
11799	export_dynamic_flag_spec_CXX='${wl}-E'
11800        ;;
11801      esac
11802    fi
11803    case $host_cpu in
11804    hppa*64*|ia64*)
11805      hardcode_direct_CXX=no
11806      hardcode_shlibpath_var_CXX=no
11807      ;;
11808    *)
11809      hardcode_direct_CXX=yes
11810      hardcode_minus_L_CXX=yes # Not in the search PATH,
11811					      # but as the default
11812					      # location of the library.
11813      ;;
11814    esac
11815
11816    case $cc_basename in
11817      CC*)
11818	# FIXME: insert proper C++ library support
11819	ld_shlibs_CXX=no
11820	;;
11821      aCC*)
11822	case $host_cpu in
11823	hppa*64*)
11824	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11825	  ;;
11826	ia64*)
11827	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11828	  ;;
11829	*)
11830	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11831	  ;;
11832	esac
11833	# Commands to make compiler produce verbose output that lists
11834	# what "hidden" libraries, object files and flags are used when
11835	# linking a shared library.
11836	#
11837	# There doesn't appear to be a way to prevent this compiler from
11838	# explicitly linking system object files so we need to strip them
11839	# from the output so that they don't get included in the library
11840	# dependencies.
11841	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'
11842	;;
11843      *)
11844	if test "$GXX" = yes; then
11845	  if test $with_gnu_ld = no; then
11846	    case $host_cpu in
11847	    hppa*64*)
11848	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11849	      ;;
11850	    ia64*)
11851	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11852	      ;;
11853	    *)
11854	      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'
11855	      ;;
11856	    esac
11857	  fi
11858	else
11859	  # FIXME: insert proper C++ library support
11860	  ld_shlibs_CXX=no
11861	fi
11862	;;
11863    esac
11864    ;;
11865  interix[3-9]*)
11866    hardcode_direct_CXX=no
11867    hardcode_shlibpath_var_CXX=no
11868    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11869    export_dynamic_flag_spec_CXX='${wl}-E'
11870    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11871    # Instead, shared libraries are loaded at an image base (0x10000000 by
11872    # default) and relocated if they conflict, which is a slow very memory
11873    # consuming and fragmenting process.  To avoid this, we pick a random,
11874    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11875    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11876    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'
11877    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'
11878    ;;
11879  irix5* | irix6*)
11880    case $cc_basename in
11881      CC*)
11882	# SGI C++
11883	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'
11884
11885	# Archives containing C++ object files must be created using
11886	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11887	# necessary to make sure instantiated templates are included
11888	# in the archive.
11889	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11890	;;
11891      *)
11892	if test "$GXX" = yes; then
11893	  if test "$with_gnu_ld" = no; then
11894	    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'
11895	  else
11896	    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'
11897	  fi
11898	fi
11899	link_all_deplibs_CXX=yes
11900	;;
11901    esac
11902    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11903    hardcode_libdir_separator_CXX=:
11904    ;;
11905  linux* | k*bsd*-gnu)
11906    case $cc_basename in
11907      KCC*)
11908	# Kuck and Associates, Inc. (KAI) C++ Compiler
11909
11910	# KCC will only create a shared library if the output file
11911	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11912	# to its proper name (with version) after linking.
11913	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'
11914	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'
11915	# Commands to make compiler produce verbose output that lists
11916	# what "hidden" libraries, object files and flags are used when
11917	# linking a shared library.
11918	#
11919	# There doesn't appear to be a way to prevent this compiler from
11920	# explicitly linking system object files so we need to strip them
11921	# from the output so that they don't get included in the library
11922	# dependencies.
11923	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'
11924
11925	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11926	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11927
11928	# Archives containing C++ object files must be created using
11929	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11930	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11931	;;
11932      icpc*)
11933	# Intel C++
11934	with_gnu_ld=yes
11935	# version 8.0 and above of icpc choke on multiply defined symbols
11936	# if we add $predep_objects and $postdep_objects, however 7.1 and
11937	# earlier do not add the objects themselves.
11938	case `$CC -V 2>&1` in
11939	*"Version 7."*)
11940  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11941  	  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'
11942	  ;;
11943	*)  # Version 8.0 or newer
11944	  tmp_idyn=
11945	  case $host_cpu in
11946	    ia64*) tmp_idyn=' -i_dynamic';;
11947	  esac
11948  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11949	  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'
11950	  ;;
11951	esac
11952	archive_cmds_need_lc_CXX=no
11953	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11954	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11955	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11956	;;
11957      pgCC* | pgcpp*)
11958        # Portland Group C++ compiler
11959	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11960  	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'
11961
11962	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11963	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11964	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'
11965        ;;
11966      cxx*)
11967	# Compaq C++
11968	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11969	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'
11970
11971	runpath_var=LD_RUN_PATH
11972	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11973	hardcode_libdir_separator_CXX=:
11974
11975	# Commands to make compiler produce verbose output that lists
11976	# what "hidden" libraries, object files and flags are used when
11977	# linking a shared library.
11978	#
11979	# There doesn't appear to be a way to prevent this compiler from
11980	# explicitly linking system object files so we need to strip them
11981	# from the output so that they don't get included in the library
11982	# dependencies.
11983	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'
11984	;;
11985      *)
11986	case `$CC -V 2>&1 | sed 5q` in
11987	*Sun\ C*)
11988	  # Sun C++ 5.9
11989	  no_undefined_flag_CXX=' -zdefs'
11990	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11991	  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'
11992	  hardcode_libdir_flag_spec_CXX='-R$libdir'
11993	  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'
11994
11995	  # Not sure whether something based on
11996	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11997	  # would be better.
11998	  output_verbose_link_cmd='echo'
11999
12000	  # Archives containing C++ object files must be created using
12001	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12002	  # necessary to make sure instantiated templates are included
12003	  # in the archive.
12004	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12005	  ;;
12006	esac
12007	;;
12008    esac
12009    ;;
12010  lynxos*)
12011    # FIXME: insert proper C++ library support
12012    ld_shlibs_CXX=no
12013    ;;
12014  m88k*)
12015    # FIXME: insert proper C++ library support
12016    ld_shlibs_CXX=no
12017    ;;
12018  mvs*)
12019    case $cc_basename in
12020      cxx*)
12021	# FIXME: insert proper C++ library support
12022	ld_shlibs_CXX=no
12023	;;
12024      *)
12025	# FIXME: insert proper C++ library support
12026	ld_shlibs_CXX=no
12027	;;
12028    esac
12029    ;;
12030  netbsd*)
12031    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12032      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12033      wlarc=
12034      hardcode_libdir_flag_spec_CXX='-R$libdir'
12035      hardcode_direct_CXX=yes
12036      hardcode_shlibpath_var_CXX=no
12037    fi
12038    # Workaround some broken pre-1.5 toolchains
12039    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12040    ;;
12041  openbsd2*)
12042    # C++ shared libraries are fairly broken
12043    ld_shlibs_CXX=no
12044    ;;
12045  openbsd*)
12046    if test -f /usr/libexec/ld.so; then
12047      hardcode_direct_CXX=yes
12048      hardcode_shlibpath_var_CXX=no
12049      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12050      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12051      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12052	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12053	export_dynamic_flag_spec_CXX='${wl}-E'
12054	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12055      fi
12056      output_verbose_link_cmd='echo'
12057    else
12058      ld_shlibs_CXX=no
12059    fi
12060    ;;
12061  osf3*)
12062    case $cc_basename in
12063      KCC*)
12064	# Kuck and Associates, Inc. (KAI) C++ Compiler
12065
12066	# KCC will only create a shared library if the output file
12067	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12068	# to its proper name (with version) after linking.
12069	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'
12070
12071	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12072	hardcode_libdir_separator_CXX=:
12073
12074	# Archives containing C++ object files must be created using
12075	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12076	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12077
12078	;;
12079      RCC*)
12080	# Rational C++ 2.4.1
12081	# FIXME: insert proper C++ library support
12082	ld_shlibs_CXX=no
12083	;;
12084      cxx*)
12085	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12086	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'
12087
12088	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12089	hardcode_libdir_separator_CXX=:
12090
12091	# Commands to make compiler produce verbose output that lists
12092	# what "hidden" libraries, object files and flags are used when
12093	# linking a shared library.
12094	#
12095	# There doesn't appear to be a way to prevent this compiler from
12096	# explicitly linking system object files so we need to strip them
12097	# from the output so that they don't get included in the library
12098	# dependencies.
12099	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'
12100	;;
12101      *)
12102	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12103	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12104	  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'
12105
12106	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12107	  hardcode_libdir_separator_CXX=:
12108
12109	  # Commands to make compiler produce verbose output that lists
12110	  # what "hidden" libraries, object files and flags are used when
12111	  # linking a shared library.
12112	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12113
12114	else
12115	  # FIXME: insert proper C++ library support
12116	  ld_shlibs_CXX=no
12117	fi
12118	;;
12119    esac
12120    ;;
12121  osf4* | osf5*)
12122    case $cc_basename in
12123      KCC*)
12124	# Kuck and Associates, Inc. (KAI) C++ Compiler
12125
12126	# KCC will only create a shared library if the output file
12127	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12128	# to its proper name (with version) after linking.
12129	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'
12130
12131	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12132	hardcode_libdir_separator_CXX=:
12133
12134	# Archives containing C++ object files must be created using
12135	# the KAI C++ compiler.
12136	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12137	;;
12138      RCC*)
12139	# Rational C++ 2.4.1
12140	# FIXME: insert proper C++ library support
12141	ld_shlibs_CXX=no
12142	;;
12143      cxx*)
12144	allow_undefined_flag_CXX=' -expect_unresolved \*'
12145	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'
12146	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12147	  echo "-hidden">> $lib.exp~
12148	  $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~
12149	  $rm $lib.exp'
12150
12151	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12152	hardcode_libdir_separator_CXX=:
12153
12154	# Commands to make compiler produce verbose output that lists
12155	# what "hidden" libraries, object files and flags are used when
12156	# linking a shared library.
12157	#
12158	# There doesn't appear to be a way to prevent this compiler from
12159	# explicitly linking system object files so we need to strip them
12160	# from the output so that they don't get included in the library
12161	# dependencies.
12162	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'
12163	;;
12164      *)
12165	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12166	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12167	 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'
12168
12169	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12170	  hardcode_libdir_separator_CXX=:
12171
12172	  # Commands to make compiler produce verbose output that lists
12173	  # what "hidden" libraries, object files and flags are used when
12174	  # linking a shared library.
12175	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12176
12177	else
12178	  # FIXME: insert proper C++ library support
12179	  ld_shlibs_CXX=no
12180	fi
12181	;;
12182    esac
12183    ;;
12184  psos*)
12185    # FIXME: insert proper C++ library support
12186    ld_shlibs_CXX=no
12187    ;;
12188  sunos4*)
12189    case $cc_basename in
12190      CC*)
12191	# Sun C++ 4.x
12192	# FIXME: insert proper C++ library support
12193	ld_shlibs_CXX=no
12194	;;
12195      lcc*)
12196	# Lucid
12197	# FIXME: insert proper C++ library support
12198	ld_shlibs_CXX=no
12199	;;
12200      *)
12201	# FIXME: insert proper C++ library support
12202	ld_shlibs_CXX=no
12203	;;
12204    esac
12205    ;;
12206  solaris*)
12207    case $cc_basename in
12208      CC*)
12209	# Sun C++ 4.2, 5.x and Centerline C++
12210        archive_cmds_need_lc_CXX=yes
12211	no_undefined_flag_CXX=' -zdefs'
12212	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12213	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12214	$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'
12215
12216	hardcode_libdir_flag_spec_CXX='-R$libdir'
12217	hardcode_shlibpath_var_CXX=no
12218	case $host_os in
12219	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12220	  *)
12221	    # The compiler driver will combine and reorder linker options,
12222	    # but understands `-z linker_flag'.
12223	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12224	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12225	    ;;
12226	esac
12227	link_all_deplibs_CXX=yes
12228
12229	output_verbose_link_cmd='echo'
12230
12231	# Archives containing C++ object files must be created using
12232	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12233	# necessary to make sure instantiated templates are included
12234	# in the archive.
12235	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12236	;;
12237      gcx*)
12238	# Green Hills C++ Compiler
12239	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12240
12241	# The C++ compiler must be used to create the archive.
12242	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12243	;;
12244      *)
12245	# GNU C++ compiler with Solaris linker
12246	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12247	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12248	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12249	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12250	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12251		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12252
12253	    # Commands to make compiler produce verbose output that lists
12254	    # what "hidden" libraries, object files and flags are used when
12255	    # linking a shared library.
12256	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12257	  else
12258	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12259	    # platform.
12260	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12261	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12262		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12263
12264	    # Commands to make compiler produce verbose output that lists
12265	    # what "hidden" libraries, object files and flags are used when
12266	    # linking a shared library.
12267	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12268	  fi
12269
12270	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12271	  case $host_os in
12272	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12273	  *)
12274	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12275	    ;;
12276	  esac
12277	fi
12278	;;
12279    esac
12280    ;;
12281  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12282    no_undefined_flag_CXX='${wl}-z,text'
12283    archive_cmds_need_lc_CXX=no
12284    hardcode_shlibpath_var_CXX=no
12285    runpath_var='LD_RUN_PATH'
12286
12287    case $cc_basename in
12288      CC*)
12289	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12290	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12291	;;
12292      *)
12293	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12294	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12295	;;
12296    esac
12297    ;;
12298  sysv5* | sco3.2v5* | sco5v6*)
12299    # Note: We can NOT use -z defs as we might desire, because we do not
12300    # link with -lc, and that would cause any symbols used from libc to
12301    # always be unresolved, which means just about no library would
12302    # ever link correctly.  If we're not using GNU ld we use -z text
12303    # though, which does catch some bad symbols but isn't as heavy-handed
12304    # as -z defs.
12305    # For security reasons, it is highly recommended that you always
12306    # use absolute paths for naming shared libraries, and exclude the
12307    # DT_RUNPATH tag from executables and libraries.  But doing so
12308    # requires that you compile everything twice, which is a pain.
12309    # So that behaviour is only enabled if SCOABSPATH is set to a
12310    # non-empty value in the environment.  Most likely only useful for
12311    # creating official distributions of packages.
12312    # This is a hack until libtool officially supports absolute path
12313    # names for shared libraries.
12314    no_undefined_flag_CXX='${wl}-z,text'
12315    allow_undefined_flag_CXX='${wl}-z,nodefs'
12316    archive_cmds_need_lc_CXX=no
12317    hardcode_shlibpath_var_CXX=no
12318    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12319    hardcode_libdir_separator_CXX=':'
12320    link_all_deplibs_CXX=yes
12321    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12322    runpath_var='LD_RUN_PATH'
12323
12324    case $cc_basename in
12325      CC*)
12326	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12327	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12328	;;
12329      *)
12330	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12331	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12332	;;
12333    esac
12334    ;;
12335  tandem*)
12336    case $cc_basename in
12337      NCC*)
12338	# NonStop-UX NCC 3.20
12339	# FIXME: insert proper C++ library support
12340	ld_shlibs_CXX=no
12341	;;
12342      *)
12343	# FIXME: insert proper C++ library support
12344	ld_shlibs_CXX=no
12345	;;
12346    esac
12347    ;;
12348  vxworks*)
12349    # FIXME: insert proper C++ library support
12350    ld_shlibs_CXX=no
12351    ;;
12352  *)
12353    # FIXME: insert proper C++ library support
12354    ld_shlibs_CXX=no
12355    ;;
12356esac
12357{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12358$as_echo "$ld_shlibs_CXX" >&6; }
12359test "$ld_shlibs_CXX" = no && can_build_shared=no
12360
12361GCC_CXX="$GXX"
12362LD_CXX="$LD"
12363
12364cat > conftest.$ac_ext <<EOF
12365class Foo
12366{
12367public:
12368  Foo (void) { a = 0; }
12369private:
12370  int a;
12371};
12372EOF
12373
12374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12375  (eval $ac_compile) 2>&5
12376  ac_status=$?
12377  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378  (exit $ac_status); }; then
12379  # Parse the compiler output and extract the necessary
12380  # objects, libraries and library flags.
12381
12382  # Sentinel used to keep track of whether or not we are before
12383  # the conftest object file.
12384  pre_test_object_deps_done=no
12385
12386  # The `*' in the case matches for architectures that use `case' in
12387  # $output_verbose_cmd can trigger glob expansion during the loop
12388  # eval without this substitution.
12389  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12390
12391  for p in `eval $output_verbose_link_cmd`; do
12392    case $p in
12393
12394    -L* | -R* | -l*)
12395       # Some compilers place space between "-{L,R}" and the path.
12396       # Remove the space.
12397       if test $p = "-L" \
12398	  || test $p = "-R"; then
12399	 prev=$p
12400	 continue
12401       else
12402	 prev=
12403       fi
12404
12405       if test "$pre_test_object_deps_done" = no; then
12406	 case $p in
12407	 -L* | -R*)
12408	   # Internal compiler library paths should come after those
12409	   # provided the user.  The postdeps already come after the
12410	   # user supplied libs so there is no need to process them.
12411	   if test -z "$compiler_lib_search_path_CXX"; then
12412	     compiler_lib_search_path_CXX="${prev}${p}"
12413	   else
12414	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12415	   fi
12416	   ;;
12417	 # The "-l" case would never come before the object being
12418	 # linked, so don't bother handling this case.
12419	 esac
12420       else
12421	 if test -z "$postdeps_CXX"; then
12422	   postdeps_CXX="${prev}${p}"
12423	 else
12424	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12425	 fi
12426       fi
12427       ;;
12428
12429    *.$objext)
12430       # This assumes that the test object file only shows up
12431       # once in the compiler output.
12432       if test "$p" = "conftest.$objext"; then
12433	 pre_test_object_deps_done=yes
12434	 continue
12435       fi
12436
12437       if test "$pre_test_object_deps_done" = no; then
12438	 if test -z "$predep_objects_CXX"; then
12439	   predep_objects_CXX="$p"
12440	 else
12441	   predep_objects_CXX="$predep_objects_CXX $p"
12442	 fi
12443       else
12444	 if test -z "$postdep_objects_CXX"; then
12445	   postdep_objects_CXX="$p"
12446	 else
12447	   postdep_objects_CXX="$postdep_objects_CXX $p"
12448	 fi
12449       fi
12450       ;;
12451
12452    *) ;; # Ignore the rest.
12453
12454    esac
12455  done
12456
12457  # Clean up.
12458  rm -f a.out a.exe
12459else
12460  echo "libtool.m4: error: problem compiling CXX test program"
12461fi
12462
12463$rm -f confest.$objext
12464
12465compiler_lib_search_dirs_CXX=
12466if test -n "$compiler_lib_search_path_CXX"; then
12467  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12468fi
12469
12470# PORTME: override above test on systems where it is broken
12471case $host_os in
12472interix[3-9]*)
12473  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12474  # hack all around it, let's just trust "g++" to DTRT.
12475  predep_objects_CXX=
12476  postdep_objects_CXX=
12477  postdeps_CXX=
12478  ;;
12479
12480linux*)
12481  case `$CC -V 2>&1 | sed 5q` in
12482  *Sun\ C*)
12483    # Sun C++ 5.9
12484    #
12485    # The more standards-conforming stlport4 library is
12486    # incompatible with the Cstd library. Avoid specifying
12487    # it if it's in CXXFLAGS. Ignore libCrun as
12488    # -library=stlport4 depends on it.
12489    case " $CXX $CXXFLAGS " in
12490    *" -library=stlport4 "*)
12491      solaris_use_stlport4=yes
12492      ;;
12493    esac
12494    if test "$solaris_use_stlport4" != yes; then
12495      postdeps_CXX='-library=Cstd -library=Crun'
12496    fi
12497    ;;
12498  esac
12499  ;;
12500
12501solaris*)
12502  case $cc_basename in
12503  CC*)
12504    # The more standards-conforming stlport4 library is
12505    # incompatible with the Cstd library. Avoid specifying
12506    # it if it's in CXXFLAGS. Ignore libCrun as
12507    # -library=stlport4 depends on it.
12508    case " $CXX $CXXFLAGS " in
12509    *" -library=stlport4 "*)
12510      solaris_use_stlport4=yes
12511      ;;
12512    esac
12513
12514    # Adding this requires a known-good setup of shared libraries for
12515    # Sun compiler versions before 5.6, else PIC objects from an old
12516    # archive will be linked into the output, leading to subtle bugs.
12517    if test "$solaris_use_stlport4" != yes; then
12518      postdeps_CXX='-library=Cstd -library=Crun'
12519    fi
12520    ;;
12521  esac
12522  ;;
12523esac
12524
12525case " $postdeps_CXX " in
12526*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12527esac
12528
12529lt_prog_compiler_wl_CXX=
12530lt_prog_compiler_pic_CXX=
12531lt_prog_compiler_static_CXX=
12532
12533{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12534$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12535
12536  # C++ specific cases for pic, static, wl, etc.
12537  if test "$GXX" = yes; then
12538    lt_prog_compiler_wl_CXX='-Wl,'
12539    lt_prog_compiler_static_CXX='-static'
12540
12541    case $host_os in
12542    aix*)
12543      # All AIX code is PIC.
12544      if test "$host_cpu" = ia64; then
12545	# AIX 5 now supports IA64 processor
12546	lt_prog_compiler_static_CXX='-Bstatic'
12547      fi
12548      ;;
12549    amigaos*)
12550      # FIXME: we need at least 68020 code to build shared libraries, but
12551      # adding the `-m68020' flag to GCC prevents building anything better,
12552      # like `-m68040'.
12553      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12554      ;;
12555    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12556      # PIC is the default for these OSes.
12557      ;;
12558    mingw* | cygwin* | os2* | pw32*)
12559      # This hack is so that the source file can tell whether it is being
12560      # built for inclusion in a dll (and should export symbols for example).
12561      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12562      # (--disable-auto-import) libraries
12563      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12564      ;;
12565    darwin* | rhapsody*)
12566      # PIC is the default on this platform
12567      # Common symbols not allowed in MH_DYLIB files
12568      lt_prog_compiler_pic_CXX='-fno-common'
12569      ;;
12570    *djgpp*)
12571      # DJGPP does not support shared libraries at all
12572      lt_prog_compiler_pic_CXX=
12573      ;;
12574    interix[3-9]*)
12575      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12576      # Instead, we relocate shared libraries at runtime.
12577      ;;
12578    sysv4*MP*)
12579      if test -d /usr/nec; then
12580	lt_prog_compiler_pic_CXX=-Kconform_pic
12581      fi
12582      ;;
12583    hpux*)
12584      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12585      # not for PA HP-UX.
12586      case $host_cpu in
12587      hppa*64*|ia64*)
12588	;;
12589      *)
12590	lt_prog_compiler_pic_CXX='-fPIC'
12591	;;
12592      esac
12593      ;;
12594    *)
12595      lt_prog_compiler_pic_CXX='-fPIC'
12596      ;;
12597    esac
12598  else
12599    case $host_os in
12600      aix[4-9]*)
12601	# All AIX code is PIC.
12602	if test "$host_cpu" = ia64; then
12603	  # AIX 5 now supports IA64 processor
12604	  lt_prog_compiler_static_CXX='-Bstatic'
12605	else
12606	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12607	fi
12608	;;
12609      chorus*)
12610	case $cc_basename in
12611	cxch68*)
12612	  # Green Hills C++ Compiler
12613	  # _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"
12614	  ;;
12615	esac
12616	;;
12617       darwin*)
12618         # PIC is the default on this platform
12619         # Common symbols not allowed in MH_DYLIB files
12620         case $cc_basename in
12621           xlc*)
12622           lt_prog_compiler_pic_CXX='-qnocommon'
12623           lt_prog_compiler_wl_CXX='-Wl,'
12624           ;;
12625         esac
12626       ;;
12627      dgux*)
12628	case $cc_basename in
12629	  ec++*)
12630	    lt_prog_compiler_pic_CXX='-KPIC'
12631	    ;;
12632	  ghcx*)
12633	    # Green Hills C++ Compiler
12634	    lt_prog_compiler_pic_CXX='-pic'
12635	    ;;
12636	  *)
12637	    ;;
12638	esac
12639	;;
12640      freebsd* | dragonfly*)
12641	# FreeBSD uses GNU C++
12642	;;
12643      hpux9* | hpux10* | hpux11*)
12644	case $cc_basename in
12645	  CC*)
12646	    lt_prog_compiler_wl_CXX='-Wl,'
12647	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12648	    if test "$host_cpu" != ia64; then
12649	      lt_prog_compiler_pic_CXX='+Z'
12650	    fi
12651	    ;;
12652	  aCC*)
12653	    lt_prog_compiler_wl_CXX='-Wl,'
12654	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12655	    case $host_cpu in
12656	    hppa*64*|ia64*)
12657	      # +Z the default
12658	      ;;
12659	    *)
12660	      lt_prog_compiler_pic_CXX='+Z'
12661	      ;;
12662	    esac
12663	    ;;
12664	  *)
12665	    ;;
12666	esac
12667	;;
12668      interix*)
12669	# This is c89, which is MS Visual C++ (no shared libs)
12670	# Anyone wants to do a port?
12671	;;
12672      irix5* | irix6* | nonstopux*)
12673	case $cc_basename in
12674	  CC*)
12675	    lt_prog_compiler_wl_CXX='-Wl,'
12676	    lt_prog_compiler_static_CXX='-non_shared'
12677	    # CC pic flag -KPIC is the default.
12678	    ;;
12679	  *)
12680	    ;;
12681	esac
12682	;;
12683      linux* | k*bsd*-gnu)
12684	case $cc_basename in
12685	  KCC*)
12686	    # KAI C++ Compiler
12687	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12688	    lt_prog_compiler_pic_CXX='-fPIC'
12689	    ;;
12690	  icpc* | ecpc*)
12691	    # Intel C++
12692	    lt_prog_compiler_wl_CXX='-Wl,'
12693	    lt_prog_compiler_pic_CXX='-KPIC'
12694	    lt_prog_compiler_static_CXX='-static'
12695	    ;;
12696	  pgCC* | pgcpp*)
12697	    # Portland Group C++ compiler.
12698	    lt_prog_compiler_wl_CXX='-Wl,'
12699	    lt_prog_compiler_pic_CXX='-fpic'
12700	    lt_prog_compiler_static_CXX='-Bstatic'
12701	    ;;
12702	  cxx*)
12703	    # Compaq C++
12704	    # Make sure the PIC flag is empty.  It appears that all Alpha
12705	    # Linux and Compaq Tru64 Unix objects are PIC.
12706	    lt_prog_compiler_pic_CXX=
12707	    lt_prog_compiler_static_CXX='-non_shared'
12708	    ;;
12709	  *)
12710	    case `$CC -V 2>&1 | sed 5q` in
12711	    *Sun\ C*)
12712	      # Sun C++ 5.9
12713	      lt_prog_compiler_pic_CXX='-KPIC'
12714	      lt_prog_compiler_static_CXX='-Bstatic'
12715	      lt_prog_compiler_wl_CXX='-Qoption ld '
12716	      ;;
12717	    esac
12718	    ;;
12719	esac
12720	;;
12721      lynxos*)
12722	;;
12723      m88k*)
12724	;;
12725      mvs*)
12726	case $cc_basename in
12727	  cxx*)
12728	    lt_prog_compiler_pic_CXX='-W c,exportall'
12729	    ;;
12730	  *)
12731	    ;;
12732	esac
12733	;;
12734      netbsd*)
12735	;;
12736      osf3* | osf4* | osf5*)
12737	case $cc_basename in
12738	  KCC*)
12739	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12740	    ;;
12741	  RCC*)
12742	    # Rational C++ 2.4.1
12743	    lt_prog_compiler_pic_CXX='-pic'
12744	    ;;
12745	  cxx*)
12746	    # Digital/Compaq C++
12747	    lt_prog_compiler_wl_CXX='-Wl,'
12748	    # Make sure the PIC flag is empty.  It appears that all Alpha
12749	    # Linux and Compaq Tru64 Unix objects are PIC.
12750	    lt_prog_compiler_pic_CXX=
12751	    lt_prog_compiler_static_CXX='-non_shared'
12752	    ;;
12753	  *)
12754	    ;;
12755	esac
12756	;;
12757      psos*)
12758	;;
12759      solaris*)
12760	case $cc_basename in
12761	  CC*)
12762	    # Sun C++ 4.2, 5.x and Centerline C++
12763	    lt_prog_compiler_pic_CXX='-KPIC'
12764	    lt_prog_compiler_static_CXX='-Bstatic'
12765	    lt_prog_compiler_wl_CXX='-Qoption ld '
12766	    ;;
12767	  gcx*)
12768	    # Green Hills C++ Compiler
12769	    lt_prog_compiler_pic_CXX='-PIC'
12770	    ;;
12771	  *)
12772	    ;;
12773	esac
12774	;;
12775      sunos4*)
12776	case $cc_basename in
12777	  CC*)
12778	    # Sun C++ 4.x
12779	    lt_prog_compiler_pic_CXX='-pic'
12780	    lt_prog_compiler_static_CXX='-Bstatic'
12781	    ;;
12782	  lcc*)
12783	    # Lucid
12784	    lt_prog_compiler_pic_CXX='-pic'
12785	    ;;
12786	  *)
12787	    ;;
12788	esac
12789	;;
12790      tandem*)
12791	case $cc_basename in
12792	  NCC*)
12793	    # NonStop-UX NCC 3.20
12794	    lt_prog_compiler_pic_CXX='-KPIC'
12795	    ;;
12796	  *)
12797	    ;;
12798	esac
12799	;;
12800      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12801	case $cc_basename in
12802	  CC*)
12803	    lt_prog_compiler_wl_CXX='-Wl,'
12804	    lt_prog_compiler_pic_CXX='-KPIC'
12805	    lt_prog_compiler_static_CXX='-Bstatic'
12806	    ;;
12807	esac
12808	;;
12809      vxworks*)
12810	;;
12811      *)
12812	lt_prog_compiler_can_build_shared_CXX=no
12813	;;
12814    esac
12815  fi
12816
12817{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12818$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12819
12820#
12821# Check to make sure the PIC flag actually works.
12822#
12823if test -n "$lt_prog_compiler_pic_CXX"; then
12824
12825{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12826$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12827if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12828  $as_echo_n "(cached) " >&6
12829else
12830  lt_cv_prog_compiler_pic_works_CXX=no
12831  ac_outfile=conftest.$ac_objext
12832   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12833   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12834   # Insert the option either (1) after the last *FLAGS variable, or
12835   # (2) before a word containing "conftest.", or (3) at the end.
12836   # Note that $ac_compile itself does not contain backslashes and begins
12837   # with a dollar sign (not a hyphen), so the echo should work correctly.
12838   # The option is referenced via a variable to avoid confusing sed.
12839   lt_compile=`echo "$ac_compile" | $SED \
12840   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12841   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12842   -e 's:$: $lt_compiler_flag:'`
12843   (eval echo "\"\$as_me:12843: $lt_compile\"" >&5)
12844   (eval "$lt_compile" 2>conftest.err)
12845   ac_status=$?
12846   cat conftest.err >&5
12847   echo "$as_me:12847: \$? = $ac_status" >&5
12848   if (exit $ac_status) && test -s "$ac_outfile"; then
12849     # The compiler can only warn and ignore the option if not recognized
12850     # So say no if there are warnings other than the usual output.
12851     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12852     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12853     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12854       lt_cv_prog_compiler_pic_works_CXX=yes
12855     fi
12856   fi
12857   $rm conftest*
12858
12859fi
12860{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12861$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12862
12863if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12864    case $lt_prog_compiler_pic_CXX in
12865     "" | " "*) ;;
12866     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12867     esac
12868else
12869    lt_prog_compiler_pic_CXX=
12870     lt_prog_compiler_can_build_shared_CXX=no
12871fi
12872
12873fi
12874case $host_os in
12875  # For platforms which do not support PIC, -DPIC is meaningless:
12876  *djgpp*)
12877    lt_prog_compiler_pic_CXX=
12878    ;;
12879  *)
12880    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12881    ;;
12882esac
12883
12884#
12885# Check to make sure the static flag actually works.
12886#
12887wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12888{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12889$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12890if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12891  $as_echo_n "(cached) " >&6
12892else
12893  lt_cv_prog_compiler_static_works_CXX=no
12894   save_LDFLAGS="$LDFLAGS"
12895   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12896   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12897   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12898     # The linker can only warn and ignore the option if not recognized
12899     # So say no if there are warnings
12900     if test -s conftest.err; then
12901       # Append any errors to the config.log.
12902       cat conftest.err 1>&5
12903       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12904       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12905       if diff conftest.exp conftest.er2 >/dev/null; then
12906         lt_cv_prog_compiler_static_works_CXX=yes
12907       fi
12908     else
12909       lt_cv_prog_compiler_static_works_CXX=yes
12910     fi
12911   fi
12912   $rm -r conftest*
12913   LDFLAGS="$save_LDFLAGS"
12914
12915fi
12916{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12917$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12918
12919if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12920    :
12921else
12922    lt_prog_compiler_static_CXX=
12923fi
12924
12925
12926{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12927$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12928if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12929  $as_echo_n "(cached) " >&6
12930else
12931  lt_cv_prog_compiler_c_o_CXX=no
12932   $rm -r conftest 2>/dev/null
12933   mkdir conftest
12934   cd conftest
12935   mkdir out
12936   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12937
12938   lt_compiler_flag="-o out/conftest2.$ac_objext"
12939   # Insert the option either (1) after the last *FLAGS variable, or
12940   # (2) before a word containing "conftest.", or (3) at the end.
12941   # Note that $ac_compile itself does not contain backslashes and begins
12942   # with a dollar sign (not a hyphen), so the echo should work correctly.
12943   lt_compile=`echo "$ac_compile" | $SED \
12944   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12945   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12946   -e 's:$: $lt_compiler_flag:'`
12947   (eval echo "\"\$as_me:12947: $lt_compile\"" >&5)
12948   (eval "$lt_compile" 2>out/conftest.err)
12949   ac_status=$?
12950   cat out/conftest.err >&5
12951   echo "$as_me:12951: \$? = $ac_status" >&5
12952   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12953   then
12954     # The compiler can only warn and ignore the option if not recognized
12955     # So say no if there are warnings
12956     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12957     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12958     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12959       lt_cv_prog_compiler_c_o_CXX=yes
12960     fi
12961   fi
12962   chmod u+w . 2>&5
12963   $rm conftest*
12964   # SGI C++ compiler will create directory out/ii_files/ for
12965   # template instantiation
12966   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12967   $rm out/* && rmdir out
12968   cd ..
12969   rmdir conftest
12970   $rm conftest*
12971
12972fi
12973{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12974$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12975
12976
12977hard_links="nottested"
12978if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12979  # do not overwrite the value of need_locks provided by the user
12980  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12981$as_echo_n "checking if we can lock with hard links... " >&6; }
12982  hard_links=yes
12983  $rm conftest*
12984  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12985  touch conftest.a
12986  ln conftest.a conftest.b 2>&5 || hard_links=no
12987  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12988  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
12989$as_echo "$hard_links" >&6; }
12990  if test "$hard_links" = no; then
12991    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12992$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12993    need_locks=warn
12994  fi
12995else
12996  need_locks=no
12997fi
12998
12999{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13000$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13001
13002  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13003  case $host_os in
13004  aix[4-9]*)
13005    # If we're using GNU nm, then we don't want the "-C" option.
13006    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13007    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13008      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'
13009    else
13010      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'
13011    fi
13012    ;;
13013  pw32*)
13014    export_symbols_cmds_CXX="$ltdll_cmds"
13015  ;;
13016  cygwin* | mingw*)
13017    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'
13018  ;;
13019  *)
13020    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13021  ;;
13022  esac
13023  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13024
13025{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13026$as_echo "$ld_shlibs_CXX" >&6; }
13027test "$ld_shlibs_CXX" = no && can_build_shared=no
13028
13029#
13030# Do we need to explicitly link libc?
13031#
13032case "x$archive_cmds_need_lc_CXX" in
13033x|xyes)
13034  # Assume -lc should be added
13035  archive_cmds_need_lc_CXX=yes
13036
13037  if test "$enable_shared" = yes && test "$GCC" = yes; then
13038    case $archive_cmds_CXX in
13039    *'~'*)
13040      # FIXME: we may have to deal with multi-command sequences.
13041      ;;
13042    '$CC '*)
13043      # Test whether the compiler implicitly links with -lc since on some
13044      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13045      # to ld, don't add -lc before -lgcc.
13046      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13047$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13048      $rm conftest*
13049      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13050
13051      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13052  (eval $ac_compile) 2>&5
13053  ac_status=$?
13054  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055  (exit $ac_status); } 2>conftest.err; then
13056        soname=conftest
13057        lib=conftest
13058        libobjs=conftest.$ac_objext
13059        deplibs=
13060        wl=$lt_prog_compiler_wl_CXX
13061	pic_flag=$lt_prog_compiler_pic_CXX
13062        compiler_flags=-v
13063        linker_flags=-v
13064        verstring=
13065        output_objdir=.
13066        libname=conftest
13067        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13068        allow_undefined_flag_CXX=
13069        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13070  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13071  ac_status=$?
13072  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073  (exit $ac_status); }
13074        then
13075	  archive_cmds_need_lc_CXX=no
13076        else
13077	  archive_cmds_need_lc_CXX=yes
13078        fi
13079        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13080      else
13081        cat conftest.err 1>&5
13082      fi
13083      $rm conftest*
13084      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13085$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13086      ;;
13087    esac
13088  fi
13089  ;;
13090esac
13091
13092{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13093$as_echo_n "checking dynamic linker characteristics... " >&6; }
13094library_names_spec=
13095libname_spec='lib$name'
13096soname_spec=
13097shrext_cmds=".so"
13098postinstall_cmds=
13099postuninstall_cmds=
13100finish_cmds=
13101finish_eval=
13102shlibpath_var=
13103shlibpath_overrides_runpath=unknown
13104version_type=none
13105dynamic_linker="$host_os ld.so"
13106sys_lib_dlsearch_path_spec="/lib /usr/lib"
13107
13108need_lib_prefix=unknown
13109hardcode_into_libs=no
13110
13111# when you set need_version to no, make sure it does not cause -set_version
13112# flags to be left without arguments
13113need_version=unknown
13114
13115case $host_os in
13116aix3*)
13117  version_type=linux
13118  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13119  shlibpath_var=LIBPATH
13120
13121  # AIX 3 has no versioning support, so we append a major version to the name.
13122  soname_spec='${libname}${release}${shared_ext}$major'
13123  ;;
13124
13125aix[4-9]*)
13126  version_type=linux
13127  need_lib_prefix=no
13128  need_version=no
13129  hardcode_into_libs=yes
13130  if test "$host_cpu" = ia64; then
13131    # AIX 5 supports IA64
13132    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13133    shlibpath_var=LD_LIBRARY_PATH
13134  else
13135    # With GCC up to 2.95.x, collect2 would create an import file
13136    # for dependence libraries.  The import file would start with
13137    # the line `#! .'.  This would cause the generated library to
13138    # depend on `.', always an invalid library.  This was fixed in
13139    # development snapshots of GCC prior to 3.0.
13140    case $host_os in
13141      aix4 | aix4.[01] | aix4.[01].*)
13142      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13143	   echo ' yes '
13144	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13145	:
13146      else
13147	can_build_shared=no
13148      fi
13149      ;;
13150    esac
13151    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13152    # soname into executable. Probably we can add versioning support to
13153    # collect2, so additional links can be useful in future.
13154    if test "$aix_use_runtimelinking" = yes; then
13155      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13156      # instead of lib<name>.a to let people know that these are not
13157      # typical AIX shared libraries.
13158      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13159    else
13160      # We preserve .a as extension for shared libraries through AIX4.2
13161      # and later when we are not doing run time linking.
13162      library_names_spec='${libname}${release}.a $libname.a'
13163      soname_spec='${libname}${release}${shared_ext}$major'
13164    fi
13165    shlibpath_var=LIBPATH
13166  fi
13167  ;;
13168
13169amigaos*)
13170  library_names_spec='$libname.ixlibrary $libname.a'
13171  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13172  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'
13173  ;;
13174
13175beos*)
13176  library_names_spec='${libname}${shared_ext}'
13177  dynamic_linker="$host_os ld.so"
13178  shlibpath_var=LIBRARY_PATH
13179  ;;
13180
13181bsdi[45]*)
13182  version_type=linux
13183  need_version=no
13184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13185  soname_spec='${libname}${release}${shared_ext}$major'
13186  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13187  shlibpath_var=LD_LIBRARY_PATH
13188  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13189  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13190  # the default ld.so.conf also contains /usr/contrib/lib and
13191  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13192  # libtool to hard-code these into programs
13193  ;;
13194
13195cygwin* | mingw* | pw32*)
13196  version_type=windows
13197  shrext_cmds=".dll"
13198  need_version=no
13199  need_lib_prefix=no
13200
13201  case $GCC,$host_os in
13202  yes,cygwin* | yes,mingw* | yes,pw32*)
13203    library_names_spec='$libname.dll.a'
13204    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13205    postinstall_cmds='base_file=`basename \${file}`~
13206      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13207      dldir=$destdir/`dirname \$dlpath`~
13208      test -d \$dldir || mkdir -p \$dldir~
13209      $install_prog $dir/$dlname \$dldir/$dlname~
13210      chmod a+x \$dldir/$dlname'
13211    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13212      dlpath=$dir/\$dldll~
13213       $rm \$dlpath'
13214    shlibpath_overrides_runpath=yes
13215
13216    case $host_os in
13217    cygwin*)
13218      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13219      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13220      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13221      ;;
13222    mingw*)
13223      # MinGW DLLs use traditional 'lib' prefix
13224      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13225      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13226      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13227        # It is most probably a Windows format PATH printed by
13228        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13229        # path with ; separators, and with drive letters. We can handle the
13230        # drive letters (cygwin fileutils understands them), so leave them,
13231        # especially as we might pass files found there to a mingw objdump,
13232        # which wouldn't understand a cygwinified path. Ahh.
13233        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13234      else
13235        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13236      fi
13237      ;;
13238    pw32*)
13239      # pw32 DLLs use 'pw' prefix rather than 'lib'
13240      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13241      ;;
13242    esac
13243    ;;
13244
13245  *)
13246    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13247    ;;
13248  esac
13249  dynamic_linker='Win32 ld.exe'
13250  # FIXME: first we should search . and the directory the executable is in
13251  shlibpath_var=PATH
13252  ;;
13253
13254darwin* | rhapsody*)
13255  dynamic_linker="$host_os dyld"
13256  version_type=darwin
13257  need_lib_prefix=no
13258  need_version=no
13259  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13260  soname_spec='${libname}${release}${major}$shared_ext'
13261  shlibpath_overrides_runpath=yes
13262  shlibpath_var=DYLD_LIBRARY_PATH
13263  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13264
13265  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13266  ;;
13267
13268dgux*)
13269  version_type=linux
13270  need_lib_prefix=no
13271  need_version=no
13272  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13273  soname_spec='${libname}${release}${shared_ext}$major'
13274  shlibpath_var=LD_LIBRARY_PATH
13275  ;;
13276
13277freebsd1*)
13278  dynamic_linker=no
13279  ;;
13280
13281freebsd* | dragonfly*)
13282  # DragonFly does not have aout.  When/if they implement a new
13283  # versioning mechanism, adjust this.
13284  if test -x /usr/bin/objformat; then
13285    objformat=`/usr/bin/objformat`
13286  else
13287    case $host_os in
13288    freebsd[123]*) objformat=aout ;;
13289    *) objformat=elf ;;
13290    esac
13291  fi
13292  version_type=freebsd-$objformat
13293  case $version_type in
13294    freebsd-elf*)
13295      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13296      need_version=no
13297      need_lib_prefix=no
13298      ;;
13299    freebsd-*)
13300      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13301      need_version=yes
13302      ;;
13303  esac
13304  shlibpath_var=LD_LIBRARY_PATH
13305  case $host_os in
13306  freebsd2*)
13307    shlibpath_overrides_runpath=yes
13308    ;;
13309  freebsd3.[01]* | freebsdelf3.[01]*)
13310    shlibpath_overrides_runpath=yes
13311    hardcode_into_libs=yes
13312    ;;
13313  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13314  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13315    shlibpath_overrides_runpath=no
13316    hardcode_into_libs=yes
13317    ;;
13318  *) # from 4.6 on, and DragonFly
13319    shlibpath_overrides_runpath=yes
13320    hardcode_into_libs=yes
13321    ;;
13322  esac
13323  ;;
13324
13325gnu*)
13326  version_type=linux
13327  need_lib_prefix=no
13328  need_version=no
13329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13330  soname_spec='${libname}${release}${shared_ext}$major'
13331  shlibpath_var=LD_LIBRARY_PATH
13332  hardcode_into_libs=yes
13333  ;;
13334
13335hpux9* | hpux10* | hpux11*)
13336  # Give a soname corresponding to the major version so that dld.sl refuses to
13337  # link against other versions.
13338  version_type=sunos
13339  need_lib_prefix=no
13340  need_version=no
13341  case $host_cpu in
13342  ia64*)
13343    shrext_cmds='.so'
13344    hardcode_into_libs=yes
13345    dynamic_linker="$host_os dld.so"
13346    shlibpath_var=LD_LIBRARY_PATH
13347    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13348    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13349    soname_spec='${libname}${release}${shared_ext}$major'
13350    if test "X$HPUX_IA64_MODE" = X32; then
13351      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13352    else
13353      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13354    fi
13355    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13356    ;;
13357   hppa*64*)
13358     shrext_cmds='.sl'
13359     hardcode_into_libs=yes
13360     dynamic_linker="$host_os dld.sl"
13361     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13362     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13363     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13364     soname_spec='${libname}${release}${shared_ext}$major'
13365     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13366     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13367     ;;
13368   *)
13369    shrext_cmds='.sl'
13370    dynamic_linker="$host_os dld.sl"
13371    shlibpath_var=SHLIB_PATH
13372    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13373    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13374    soname_spec='${libname}${release}${shared_ext}$major'
13375    ;;
13376  esac
13377  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13378  postinstall_cmds='chmod 555 $lib'
13379  ;;
13380
13381interix[3-9]*)
13382  version_type=linux
13383  need_lib_prefix=no
13384  need_version=no
13385  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13386  soname_spec='${libname}${release}${shared_ext}$major'
13387  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13388  shlibpath_var=LD_LIBRARY_PATH
13389  shlibpath_overrides_runpath=no
13390  hardcode_into_libs=yes
13391  ;;
13392
13393irix5* | irix6* | nonstopux*)
13394  case $host_os in
13395    nonstopux*) version_type=nonstopux ;;
13396    *)
13397	if test "$lt_cv_prog_gnu_ld" = yes; then
13398		version_type=linux
13399	else
13400		version_type=irix
13401	fi ;;
13402  esac
13403  need_lib_prefix=no
13404  need_version=no
13405  soname_spec='${libname}${release}${shared_ext}$major'
13406  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13407  case $host_os in
13408  irix5* | nonstopux*)
13409    libsuff= shlibsuff=
13410    ;;
13411  *)
13412    case $LD in # libtool.m4 will add one of these switches to LD
13413    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13414      libsuff= shlibsuff= libmagic=32-bit;;
13415    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13416      libsuff=32 shlibsuff=N32 libmagic=N32;;
13417    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13418      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13419    *) libsuff= shlibsuff= libmagic=never-match;;
13420    esac
13421    ;;
13422  esac
13423  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13424  shlibpath_overrides_runpath=no
13425  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13426  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13427  hardcode_into_libs=yes
13428  ;;
13429
13430# No shared lib support for Linux oldld, aout, or coff.
13431linux*oldld* | linux*aout* | linux*coff*)
13432  dynamic_linker=no
13433  ;;
13434
13435# This must be Linux ELF.
13436linux* | k*bsd*-gnu)
13437  version_type=linux
13438  need_lib_prefix=no
13439  need_version=no
13440  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13441  soname_spec='${libname}${release}${shared_ext}$major'
13442  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13443  shlibpath_var=LD_LIBRARY_PATH
13444  shlibpath_overrides_runpath=no
13445  # This implies no fast_install, which is unacceptable.
13446  # Some rework will be needed to allow for fast_install
13447  # before this can be enabled.
13448  hardcode_into_libs=yes
13449
13450  # Append ld.so.conf contents to the search path
13451  if test -f /etc/ld.so.conf; then
13452    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' ' '`
13453    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13454  fi
13455
13456  # We used to test for /lib/ld.so.1 and disable shared libraries on
13457  # powerpc, because MkLinux only supported shared libraries with the
13458  # GNU dynamic linker.  Since this was broken with cross compilers,
13459  # most powerpc-linux boxes support dynamic linking these days and
13460  # people can always --disable-shared, the test was removed, and we
13461  # assume the GNU/Linux dynamic linker is in use.
13462  dynamic_linker='GNU/Linux ld.so'
13463  ;;
13464
13465netbsd*)
13466  version_type=sunos
13467  need_lib_prefix=no
13468  need_version=no
13469  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13470    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13471    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13472    dynamic_linker='NetBSD (a.out) ld.so'
13473  else
13474    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13475    soname_spec='${libname}${release}${shared_ext}$major'
13476    dynamic_linker='NetBSD ld.elf_so'
13477  fi
13478  shlibpath_var=LD_LIBRARY_PATH
13479  shlibpath_overrides_runpath=yes
13480  hardcode_into_libs=yes
13481  ;;
13482
13483newsos6)
13484  version_type=linux
13485  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13486  shlibpath_var=LD_LIBRARY_PATH
13487  shlibpath_overrides_runpath=yes
13488  ;;
13489
13490nto-qnx*)
13491  version_type=linux
13492  need_lib_prefix=no
13493  need_version=no
13494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13495  soname_spec='${libname}${release}${shared_ext}$major'
13496  shlibpath_var=LD_LIBRARY_PATH
13497  shlibpath_overrides_runpath=yes
13498  ;;
13499
13500openbsd*)
13501  version_type=sunos
13502  sys_lib_dlsearch_path_spec="/usr/lib"
13503  need_lib_prefix=no
13504  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13505  case $host_os in
13506    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13507    *)                         need_version=no  ;;
13508  esac
13509  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13510  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13511  shlibpath_var=LD_LIBRARY_PATH
13512  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13513    case $host_os in
13514      openbsd2.[89] | openbsd2.[89].*)
13515	shlibpath_overrides_runpath=no
13516	;;
13517      *)
13518	shlibpath_overrides_runpath=yes
13519	;;
13520      esac
13521  else
13522    shlibpath_overrides_runpath=yes
13523  fi
13524  ;;
13525
13526os2*)
13527  libname_spec='$name'
13528  shrext_cmds=".dll"
13529  need_lib_prefix=no
13530  library_names_spec='$libname${shared_ext} $libname.a'
13531  dynamic_linker='OS/2 ld.exe'
13532  shlibpath_var=LIBPATH
13533  ;;
13534
13535osf3* | osf4* | osf5*)
13536  version_type=osf
13537  need_lib_prefix=no
13538  need_version=no
13539  soname_spec='${libname}${release}${shared_ext}$major'
13540  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13541  shlibpath_var=LD_LIBRARY_PATH
13542  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13543  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13544  ;;
13545
13546rdos*)
13547  dynamic_linker=no
13548  ;;
13549
13550solaris*)
13551  version_type=linux
13552  need_lib_prefix=no
13553  need_version=no
13554  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13555  soname_spec='${libname}${release}${shared_ext}$major'
13556  shlibpath_var=LD_LIBRARY_PATH
13557  shlibpath_overrides_runpath=yes
13558  hardcode_into_libs=yes
13559  # ldd complains unless libraries are executable
13560  postinstall_cmds='chmod +x $lib'
13561  ;;
13562
13563sunos4*)
13564  version_type=sunos
13565  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13566  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13567  shlibpath_var=LD_LIBRARY_PATH
13568  shlibpath_overrides_runpath=yes
13569  if test "$with_gnu_ld" = yes; then
13570    need_lib_prefix=no
13571  fi
13572  need_version=yes
13573  ;;
13574
13575sysv4 | sysv4.3*)
13576  version_type=linux
13577  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13578  soname_spec='${libname}${release}${shared_ext}$major'
13579  shlibpath_var=LD_LIBRARY_PATH
13580  case $host_vendor in
13581    sni)
13582      shlibpath_overrides_runpath=no
13583      need_lib_prefix=no
13584      export_dynamic_flag_spec='${wl}-Blargedynsym'
13585      runpath_var=LD_RUN_PATH
13586      ;;
13587    siemens)
13588      need_lib_prefix=no
13589      ;;
13590    motorola)
13591      need_lib_prefix=no
13592      need_version=no
13593      shlibpath_overrides_runpath=no
13594      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13595      ;;
13596  esac
13597  ;;
13598
13599sysv4*MP*)
13600  if test -d /usr/nec ;then
13601    version_type=linux
13602    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13603    soname_spec='$libname${shared_ext}.$major'
13604    shlibpath_var=LD_LIBRARY_PATH
13605  fi
13606  ;;
13607
13608sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13609  version_type=freebsd-elf
13610  need_lib_prefix=no
13611  need_version=no
13612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13613  soname_spec='${libname}${release}${shared_ext}$major'
13614  shlibpath_var=LD_LIBRARY_PATH
13615  hardcode_into_libs=yes
13616  if test "$with_gnu_ld" = yes; then
13617    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13618    shlibpath_overrides_runpath=no
13619  else
13620    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13621    shlibpath_overrides_runpath=yes
13622    case $host_os in
13623      sco3.2v5*)
13624        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13625	;;
13626    esac
13627  fi
13628  sys_lib_dlsearch_path_spec='/usr/lib'
13629  ;;
13630
13631uts4*)
13632  version_type=linux
13633  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13634  soname_spec='${libname}${release}${shared_ext}$major'
13635  shlibpath_var=LD_LIBRARY_PATH
13636  ;;
13637
13638*)
13639  dynamic_linker=no
13640  ;;
13641esac
13642{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13643$as_echo "$dynamic_linker" >&6; }
13644test "$dynamic_linker" = no && can_build_shared=no
13645
13646if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13647  $as_echo_n "(cached) " >&6
13648else
13649  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13650fi
13651
13652sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13653if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13654  $as_echo_n "(cached) " >&6
13655else
13656  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13657fi
13658
13659sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13660
13661variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13662if test "$GCC" = yes; then
13663  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13664fi
13665
13666{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13667$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13668hardcode_action_CXX=
13669if test -n "$hardcode_libdir_flag_spec_CXX" || \
13670   test -n "$runpath_var_CXX" || \
13671   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13672
13673  # We can hardcode non-existant directories.
13674  if test "$hardcode_direct_CXX" != no &&
13675     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13676     # have to relink, otherwise we might link with an installed library
13677     # when we should be linking with a yet-to-be-installed one
13678     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13679     test "$hardcode_minus_L_CXX" != no; then
13680    # Linking always hardcodes the temporary library directory.
13681    hardcode_action_CXX=relink
13682  else
13683    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13684    hardcode_action_CXX=immediate
13685  fi
13686else
13687  # We cannot hardcode anything, or else we can only hardcode existing
13688  # directories.
13689  hardcode_action_CXX=unsupported
13690fi
13691{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13692$as_echo "$hardcode_action_CXX" >&6; }
13693
13694if test "$hardcode_action_CXX" = relink; then
13695  # Fast installation is not supported
13696  enable_fast_install=no
13697elif test "$shlibpath_overrides_runpath" = yes ||
13698     test "$enable_shared" = no; then
13699  # Fast installation is not necessary
13700  enable_fast_install=needless
13701fi
13702
13703
13704# The else clause should only fire when bootstrapping the
13705# libtool distribution, otherwise you forgot to ship ltmain.sh
13706# with your package, and you will get complaints that there are
13707# no rules to generate ltmain.sh.
13708if test -f "$ltmain"; then
13709  # See if we are running on zsh, and set the options which allow our commands through
13710  # without removal of \ escapes.
13711  if test -n "${ZSH_VERSION+set}" ; then
13712    setopt NO_GLOB_SUBST
13713  fi
13714  # Now quote all the things that may contain metacharacters while being
13715  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13716  # variables and quote the copies for generation of the libtool script.
13717  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13718    SED SHELL STRIP \
13719    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13720    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13721    deplibs_check_method reload_flag reload_cmds need_locks \
13722    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13723    lt_cv_sys_global_symbol_to_c_name_address \
13724    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13725    old_postinstall_cmds old_postuninstall_cmds \
13726    compiler_CXX \
13727    CC_CXX \
13728    LD_CXX \
13729    lt_prog_compiler_wl_CXX \
13730    lt_prog_compiler_pic_CXX \
13731    lt_prog_compiler_static_CXX \
13732    lt_prog_compiler_no_builtin_flag_CXX \
13733    export_dynamic_flag_spec_CXX \
13734    thread_safe_flag_spec_CXX \
13735    whole_archive_flag_spec_CXX \
13736    enable_shared_with_static_runtimes_CXX \
13737    old_archive_cmds_CXX \
13738    old_archive_from_new_cmds_CXX \
13739    predep_objects_CXX \
13740    postdep_objects_CXX \
13741    predeps_CXX \
13742    postdeps_CXX \
13743    compiler_lib_search_path_CXX \
13744    compiler_lib_search_dirs_CXX \
13745    archive_cmds_CXX \
13746    archive_expsym_cmds_CXX \
13747    postinstall_cmds_CXX \
13748    postuninstall_cmds_CXX \
13749    old_archive_from_expsyms_cmds_CXX \
13750    allow_undefined_flag_CXX \
13751    no_undefined_flag_CXX \
13752    export_symbols_cmds_CXX \
13753    hardcode_libdir_flag_spec_CXX \
13754    hardcode_libdir_flag_spec_ld_CXX \
13755    hardcode_libdir_separator_CXX \
13756    hardcode_automatic_CXX \
13757    module_cmds_CXX \
13758    module_expsym_cmds_CXX \
13759    lt_cv_prog_compiler_c_o_CXX \
13760    fix_srcfile_path_CXX \
13761    exclude_expsyms_CXX \
13762    include_expsyms_CXX; do
13763
13764    case $var in
13765    old_archive_cmds_CXX | \
13766    old_archive_from_new_cmds_CXX | \
13767    archive_cmds_CXX | \
13768    archive_expsym_cmds_CXX | \
13769    module_cmds_CXX | \
13770    module_expsym_cmds_CXX | \
13771    old_archive_from_expsyms_cmds_CXX | \
13772    export_symbols_cmds_CXX | \
13773    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13774    postinstall_cmds | postuninstall_cmds | \
13775    old_postinstall_cmds | old_postuninstall_cmds | \
13776    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13777      # Double-quote double-evaled strings.
13778      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13779      ;;
13780    *)
13781      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13782      ;;
13783    esac
13784  done
13785
13786  case $lt_echo in
13787  *'\$0 --fallback-echo"')
13788    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13789    ;;
13790  esac
13791
13792cfgfile="$ofile"
13793
13794  cat <<__EOF__ >> "$cfgfile"
13795# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13796
13797# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13798
13799# Shell to use when invoking shell scripts.
13800SHELL=$lt_SHELL
13801
13802# Whether or not to build shared libraries.
13803build_libtool_libs=$enable_shared
13804
13805# Whether or not to build static libraries.
13806build_old_libs=$enable_static
13807
13808# Whether or not to add -lc for building shared libraries.
13809build_libtool_need_lc=$archive_cmds_need_lc_CXX
13810
13811# Whether or not to disallow shared libs when runtime libs are static
13812allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13813
13814# Whether or not to optimize for fast installation.
13815fast_install=$enable_fast_install
13816
13817# The host system.
13818host_alias=$host_alias
13819host=$host
13820host_os=$host_os
13821
13822# The build system.
13823build_alias=$build_alias
13824build=$build
13825build_os=$build_os
13826
13827# An echo program that does not interpret backslashes.
13828echo=$lt_echo
13829
13830# The archiver.
13831AR=$lt_AR
13832AR_FLAGS=$lt_AR_FLAGS
13833
13834# A C compiler.
13835LTCC=$lt_LTCC
13836
13837# LTCC compiler flags.
13838LTCFLAGS=$lt_LTCFLAGS
13839
13840# A language-specific compiler.
13841CC=$lt_compiler_CXX
13842
13843# Is the compiler the GNU C compiler?
13844with_gcc=$GCC_CXX
13845
13846# An ERE matcher.
13847EGREP=$lt_EGREP
13848
13849# The linker used to build libraries.
13850LD=$lt_LD_CXX
13851
13852# Whether we need hard or soft links.
13853LN_S=$lt_LN_S
13854
13855# A BSD-compatible nm program.
13856NM=$lt_NM
13857
13858# A symbol stripping program
13859STRIP=$lt_STRIP
13860
13861# Used to examine libraries when file_magic_cmd begins "file"
13862MAGIC_CMD=$MAGIC_CMD
13863
13864# Used on cygwin: DLL creation program.
13865DLLTOOL="$DLLTOOL"
13866
13867# Used on cygwin: object dumper.
13868OBJDUMP="$OBJDUMP"
13869
13870# Used on cygwin: assembler.
13871AS="$AS"
13872
13873# The name of the directory that contains temporary libtool files.
13874objdir=$objdir
13875
13876# How to create reloadable object files.
13877reload_flag=$lt_reload_flag
13878reload_cmds=$lt_reload_cmds
13879
13880# How to pass a linker flag through the compiler.
13881wl=$lt_lt_prog_compiler_wl_CXX
13882
13883# Object file suffix (normally "o").
13884objext="$ac_objext"
13885
13886# Old archive suffix (normally "a").
13887libext="$libext"
13888
13889# Shared library suffix (normally ".so").
13890shrext_cmds='$shrext_cmds'
13891
13892# Executable file suffix (normally "").
13893exeext="$exeext"
13894
13895# Additional compiler flags for building library objects.
13896pic_flag=$lt_lt_prog_compiler_pic_CXX
13897pic_mode=$pic_mode
13898
13899# What is the maximum length of a command?
13900max_cmd_len=$lt_cv_sys_max_cmd_len
13901
13902# Does compiler simultaneously support -c and -o options?
13903compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13904
13905# Must we lock files when doing compilation?
13906need_locks=$lt_need_locks
13907
13908# Do we need the lib prefix for modules?
13909need_lib_prefix=$need_lib_prefix
13910
13911# Do we need a version for libraries?
13912need_version=$need_version
13913
13914# Whether dlopen is supported.
13915dlopen_support=$enable_dlopen
13916
13917# Whether dlopen of programs is supported.
13918dlopen_self=$enable_dlopen_self
13919
13920# Whether dlopen of statically linked programs is supported.
13921dlopen_self_static=$enable_dlopen_self_static
13922
13923# Compiler flag to prevent dynamic linking.
13924link_static_flag=$lt_lt_prog_compiler_static_CXX
13925
13926# Compiler flag to turn off builtin functions.
13927no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13928
13929# Compiler flag to allow reflexive dlopens.
13930export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13931
13932# Compiler flag to generate shared objects directly from archives.
13933whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13934
13935# Compiler flag to generate thread-safe objects.
13936thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13937
13938# Library versioning type.
13939version_type=$version_type
13940
13941# Format of library name prefix.
13942libname_spec=$lt_libname_spec
13943
13944# List of archive names.  First name is the real one, the rest are links.
13945# The last name is the one that the linker finds with -lNAME.
13946library_names_spec=$lt_library_names_spec
13947
13948# The coded name of the library, if different from the real name.
13949soname_spec=$lt_soname_spec
13950
13951# Commands used to build and install an old-style archive.
13952RANLIB=$lt_RANLIB
13953old_archive_cmds=$lt_old_archive_cmds_CXX
13954old_postinstall_cmds=$lt_old_postinstall_cmds
13955old_postuninstall_cmds=$lt_old_postuninstall_cmds
13956
13957# Create an old-style archive from a shared archive.
13958old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13959
13960# Create a temporary old-style archive to link instead of a shared archive.
13961old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13962
13963# Commands used to build and install a shared archive.
13964archive_cmds=$lt_archive_cmds_CXX
13965archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13966postinstall_cmds=$lt_postinstall_cmds
13967postuninstall_cmds=$lt_postuninstall_cmds
13968
13969# Commands used to build a loadable module (assumed same as above if empty)
13970module_cmds=$lt_module_cmds_CXX
13971module_expsym_cmds=$lt_module_expsym_cmds_CXX
13972
13973# Commands to strip libraries.
13974old_striplib=$lt_old_striplib
13975striplib=$lt_striplib
13976
13977# Dependencies to place before the objects being linked to create a
13978# shared library.
13979predep_objects=$lt_predep_objects_CXX
13980
13981# Dependencies to place after the objects being linked to create a
13982# shared library.
13983postdep_objects=$lt_postdep_objects_CXX
13984
13985# Dependencies to place before the objects being linked to create a
13986# shared library.
13987predeps=$lt_predeps_CXX
13988
13989# Dependencies to place after the objects being linked to create a
13990# shared library.
13991postdeps=$lt_postdeps_CXX
13992
13993# The directories searched by this compiler when creating a shared
13994# library
13995compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13996
13997# The library search path used internally by the compiler when linking
13998# a shared library.
13999compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14000
14001# Method to check whether dependent libraries are shared objects.
14002deplibs_check_method=$lt_deplibs_check_method
14003
14004# Command to use when deplibs_check_method == file_magic.
14005file_magic_cmd=$lt_file_magic_cmd
14006
14007# Flag that allows shared libraries with undefined symbols to be built.
14008allow_undefined_flag=$lt_allow_undefined_flag_CXX
14009
14010# Flag that forces no undefined symbols.
14011no_undefined_flag=$lt_no_undefined_flag_CXX
14012
14013# Commands used to finish a libtool library installation in a directory.
14014finish_cmds=$lt_finish_cmds
14015
14016# Same as above, but a single script fragment to be evaled but not shown.
14017finish_eval=$lt_finish_eval
14018
14019# Take the output of nm and produce a listing of raw symbols and C names.
14020global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14021
14022# Transform the output of nm in a proper C declaration
14023global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14024
14025# Transform the output of nm in a C name address pair
14026global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14027
14028# This is the shared library runtime path variable.
14029runpath_var=$runpath_var
14030
14031# This is the shared library path variable.
14032shlibpath_var=$shlibpath_var
14033
14034# Is shlibpath searched before the hard-coded library search path?
14035shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14036
14037# How to hardcode a shared library path into an executable.
14038hardcode_action=$hardcode_action_CXX
14039
14040# Whether we should hardcode library paths into libraries.
14041hardcode_into_libs=$hardcode_into_libs
14042
14043# Flag to hardcode \$libdir into a binary during linking.
14044# This must work even if \$libdir does not exist.
14045hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14046
14047# If ld is used when linking, flag to hardcode \$libdir into
14048# a binary during linking. This must work even if \$libdir does
14049# not exist.
14050hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14051
14052# Whether we need a single -rpath flag with a separated argument.
14053hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14054
14055# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14056# resulting binary.
14057hardcode_direct=$hardcode_direct_CXX
14058
14059# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14060# resulting binary.
14061hardcode_minus_L=$hardcode_minus_L_CXX
14062
14063# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14064# the resulting binary.
14065hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14066
14067# Set to yes if building a shared library automatically hardcodes DIR into the library
14068# and all subsequent libraries and executables linked against it.
14069hardcode_automatic=$hardcode_automatic_CXX
14070
14071# Variables whose values should be saved in libtool wrapper scripts and
14072# restored at relink time.
14073variables_saved_for_relink="$variables_saved_for_relink"
14074
14075# Whether libtool must link a program against all its dependency libraries.
14076link_all_deplibs=$link_all_deplibs_CXX
14077
14078# Compile-time system search path for libraries
14079sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14080
14081# Run-time system search path for libraries
14082sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14083
14084# Fix the shell variable \$srcfile for the compiler.
14085fix_srcfile_path=$lt_fix_srcfile_path
14086
14087# Set to yes if exported symbols are required.
14088always_export_symbols=$always_export_symbols_CXX
14089
14090# The commands to list exported symbols.
14091export_symbols_cmds=$lt_export_symbols_cmds_CXX
14092
14093# The commands to extract the exported symbol list from a shared archive.
14094extract_expsyms_cmds=$lt_extract_expsyms_cmds
14095
14096# Symbols that should not be listed in the preloaded symbols.
14097exclude_expsyms=$lt_exclude_expsyms_CXX
14098
14099# Symbols that must always be exported.
14100include_expsyms=$lt_include_expsyms_CXX
14101
14102# ### END LIBTOOL TAG CONFIG: $tagname
14103
14104__EOF__
14105
14106
14107else
14108  # If there is no Makefile yet, we rely on a make rule to execute
14109  # `config.status --recheck' to rerun these tests and create the
14110  # libtool script then.
14111  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14112  if test -f "$ltmain_in"; then
14113    test -f Makefile && make "$ltmain"
14114  fi
14115fi
14116
14117
14118ac_ext=c
14119ac_cpp='$CPP $CPPFLAGS'
14120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14122ac_compiler_gnu=$ac_cv_c_compiler_gnu
14123
14124CC=$lt_save_CC
14125LDCXX=$LD
14126LD=$lt_save_LD
14127GCC=$lt_save_GCC
14128with_gnu_ldcxx=$with_gnu_ld
14129with_gnu_ld=$lt_save_with_gnu_ld
14130lt_cv_path_LDCXX=$lt_cv_path_LD
14131lt_cv_path_LD=$lt_save_path_LD
14132lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14133lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14134
14135	else
14136	  tagname=""
14137	fi
14138	;;
14139
14140      F77)
14141	if test -n "$F77" && test "X$F77" != "Xno"; then
14142
14143ac_ext=f
14144ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14145ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14146ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14147
14148
14149archive_cmds_need_lc_F77=no
14150allow_undefined_flag_F77=
14151always_export_symbols_F77=no
14152archive_expsym_cmds_F77=
14153export_dynamic_flag_spec_F77=
14154hardcode_direct_F77=no
14155hardcode_libdir_flag_spec_F77=
14156hardcode_libdir_flag_spec_ld_F77=
14157hardcode_libdir_separator_F77=
14158hardcode_minus_L_F77=no
14159hardcode_automatic_F77=no
14160module_cmds_F77=
14161module_expsym_cmds_F77=
14162link_all_deplibs_F77=unknown
14163old_archive_cmds_F77=$old_archive_cmds
14164no_undefined_flag_F77=
14165whole_archive_flag_spec_F77=
14166enable_shared_with_static_runtimes_F77=no
14167
14168# Source file extension for f77 test sources.
14169ac_ext=f
14170
14171# Object file extension for compiled f77 test sources.
14172objext=o
14173objext_F77=$objext
14174
14175# Code to be used in simple compile tests
14176lt_simple_compile_test_code="\
14177      subroutine t
14178      return
14179      end
14180"
14181
14182# Code to be used in simple link tests
14183lt_simple_link_test_code="\
14184      program t
14185      end
14186"
14187
14188# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14189
14190# If no C compiler was specified, use CC.
14191LTCC=${LTCC-"$CC"}
14192
14193# If no C compiler flags were specified, use CFLAGS.
14194LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14195
14196# Allow CC to be a program name with arguments.
14197compiler=$CC
14198
14199
14200# save warnings/boilerplate of simple test code
14201ac_outfile=conftest.$ac_objext
14202echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14203eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14204_lt_compiler_boilerplate=`cat conftest.err`
14205$rm conftest*
14206
14207ac_outfile=conftest.$ac_objext
14208echo "$lt_simple_link_test_code" >conftest.$ac_ext
14209eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14210_lt_linker_boilerplate=`cat conftest.err`
14211$rm -r conftest*
14212
14213
14214# Allow CC to be a program name with arguments.
14215lt_save_CC="$CC"
14216CC=${F77-"f77"}
14217compiler=$CC
14218compiler_F77=$CC
14219for cc_temp in $compiler""; do
14220  case $cc_temp in
14221    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14222    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14223    \-*) ;;
14224    *) break;;
14225  esac
14226done
14227cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14228
14229
14230{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14231$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14232{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14233$as_echo "$can_build_shared" >&6; }
14234
14235{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14236$as_echo_n "checking whether to build shared libraries... " >&6; }
14237test "$can_build_shared" = "no" && enable_shared=no
14238
14239# On AIX, shared libraries and static libraries use the same namespace, and
14240# are all built from PIC.
14241case $host_os in
14242aix3*)
14243  test "$enable_shared" = yes && enable_static=no
14244  if test -n "$RANLIB"; then
14245    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14246    postinstall_cmds='$RANLIB $lib'
14247  fi
14248  ;;
14249aix[4-9]*)
14250  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14251    test "$enable_shared" = yes && enable_static=no
14252  fi
14253  ;;
14254esac
14255{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14256$as_echo "$enable_shared" >&6; }
14257
14258{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14259$as_echo_n "checking whether to build static libraries... " >&6; }
14260# Make sure either enable_shared or enable_static is yes.
14261test "$enable_shared" = yes || enable_static=yes
14262{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14263$as_echo "$enable_static" >&6; }
14264
14265GCC_F77="$G77"
14266LD_F77="$LD"
14267
14268lt_prog_compiler_wl_F77=
14269lt_prog_compiler_pic_F77=
14270lt_prog_compiler_static_F77=
14271
14272{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14273$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14274
14275  if test "$GCC" = yes; then
14276    lt_prog_compiler_wl_F77='-Wl,'
14277    lt_prog_compiler_static_F77='-static'
14278
14279    case $host_os in
14280      aix*)
14281      # All AIX code is PIC.
14282      if test "$host_cpu" = ia64; then
14283	# AIX 5 now supports IA64 processor
14284	lt_prog_compiler_static_F77='-Bstatic'
14285      fi
14286      ;;
14287
14288    amigaos*)
14289      # FIXME: we need at least 68020 code to build shared libraries, but
14290      # adding the `-m68020' flag to GCC prevents building anything better,
14291      # like `-m68040'.
14292      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14293      ;;
14294
14295    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14296      # PIC is the default for these OSes.
14297      ;;
14298
14299    mingw* | cygwin* | pw32* | os2*)
14300      # This hack is so that the source file can tell whether it is being
14301      # built for inclusion in a dll (and should export symbols for example).
14302      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14303      # (--disable-auto-import) libraries
14304      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14305      ;;
14306
14307    darwin* | rhapsody*)
14308      # PIC is the default on this platform
14309      # Common symbols not allowed in MH_DYLIB files
14310      lt_prog_compiler_pic_F77='-fno-common'
14311      ;;
14312
14313    interix[3-9]*)
14314      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14315      # Instead, we relocate shared libraries at runtime.
14316      ;;
14317
14318    msdosdjgpp*)
14319      # Just because we use GCC doesn't mean we suddenly get shared libraries
14320      # on systems that don't support them.
14321      lt_prog_compiler_can_build_shared_F77=no
14322      enable_shared=no
14323      ;;
14324
14325    sysv4*MP*)
14326      if test -d /usr/nec; then
14327	lt_prog_compiler_pic_F77=-Kconform_pic
14328      fi
14329      ;;
14330
14331    hpux*)
14332      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14333      # not for PA HP-UX.
14334      case $host_cpu in
14335      hppa*64*|ia64*)
14336	# +Z the default
14337	;;
14338      *)
14339	lt_prog_compiler_pic_F77='-fPIC'
14340	;;
14341      esac
14342      ;;
14343
14344    *)
14345      lt_prog_compiler_pic_F77='-fPIC'
14346      ;;
14347    esac
14348  else
14349    # PORTME Check for flag to pass linker flags through the system compiler.
14350    case $host_os in
14351    aix*)
14352      lt_prog_compiler_wl_F77='-Wl,'
14353      if test "$host_cpu" = ia64; then
14354	# AIX 5 now supports IA64 processor
14355	lt_prog_compiler_static_F77='-Bstatic'
14356      else
14357	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14358      fi
14359      ;;
14360      darwin*)
14361        # PIC is the default on this platform
14362        # Common symbols not allowed in MH_DYLIB files
14363       case $cc_basename in
14364         xlc*)
14365         lt_prog_compiler_pic_F77='-qnocommon'
14366         lt_prog_compiler_wl_F77='-Wl,'
14367         ;;
14368       esac
14369       ;;
14370
14371    mingw* | cygwin* | pw32* | os2*)
14372      # This hack is so that the source file can tell whether it is being
14373      # built for inclusion in a dll (and should export symbols for example).
14374      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14375      ;;
14376
14377    hpux9* | hpux10* | hpux11*)
14378      lt_prog_compiler_wl_F77='-Wl,'
14379      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14380      # not for PA HP-UX.
14381      case $host_cpu in
14382      hppa*64*|ia64*)
14383	# +Z the default
14384	;;
14385      *)
14386	lt_prog_compiler_pic_F77='+Z'
14387	;;
14388      esac
14389      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14390      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14391      ;;
14392
14393    irix5* | irix6* | nonstopux*)
14394      lt_prog_compiler_wl_F77='-Wl,'
14395      # PIC (with -KPIC) is the default.
14396      lt_prog_compiler_static_F77='-non_shared'
14397      ;;
14398
14399    newsos6)
14400      lt_prog_compiler_pic_F77='-KPIC'
14401      lt_prog_compiler_static_F77='-Bstatic'
14402      ;;
14403
14404    linux* | k*bsd*-gnu)
14405      case $cc_basename in
14406      icc* | ecc*)
14407	lt_prog_compiler_wl_F77='-Wl,'
14408	lt_prog_compiler_pic_F77='-KPIC'
14409	lt_prog_compiler_static_F77='-static'
14410        ;;
14411      pgcc* | pgf77* | pgf90* | pgf95*)
14412        # Portland Group compilers (*not* the Pentium gcc compiler,
14413	# which looks to be a dead project)
14414	lt_prog_compiler_wl_F77='-Wl,'
14415	lt_prog_compiler_pic_F77='-fpic'
14416	lt_prog_compiler_static_F77='-Bstatic'
14417        ;;
14418      ccc*)
14419        lt_prog_compiler_wl_F77='-Wl,'
14420        # All Alpha code is PIC.
14421        lt_prog_compiler_static_F77='-non_shared'
14422        ;;
14423      *)
14424        case `$CC -V 2>&1 | sed 5q` in
14425	*Sun\ C*)
14426	  # Sun C 5.9
14427	  lt_prog_compiler_pic_F77='-KPIC'
14428	  lt_prog_compiler_static_F77='-Bstatic'
14429	  lt_prog_compiler_wl_F77='-Wl,'
14430	  ;;
14431	*Sun\ F*)
14432	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14433	  lt_prog_compiler_pic_F77='-KPIC'
14434	  lt_prog_compiler_static_F77='-Bstatic'
14435	  lt_prog_compiler_wl_F77=''
14436	  ;;
14437	esac
14438	;;
14439      esac
14440      ;;
14441
14442    osf3* | osf4* | osf5*)
14443      lt_prog_compiler_wl_F77='-Wl,'
14444      # All OSF/1 code is PIC.
14445      lt_prog_compiler_static_F77='-non_shared'
14446      ;;
14447
14448    rdos*)
14449      lt_prog_compiler_static_F77='-non_shared'
14450      ;;
14451
14452    solaris*)
14453      lt_prog_compiler_pic_F77='-KPIC'
14454      lt_prog_compiler_static_F77='-Bstatic'
14455      case $cc_basename in
14456      f77* | f90* | f95*)
14457	lt_prog_compiler_wl_F77='-Qoption ld ';;
14458      *)
14459	lt_prog_compiler_wl_F77='-Wl,';;
14460      esac
14461      ;;
14462
14463    sunos4*)
14464      lt_prog_compiler_wl_F77='-Qoption ld '
14465      lt_prog_compiler_pic_F77='-PIC'
14466      lt_prog_compiler_static_F77='-Bstatic'
14467      ;;
14468
14469    sysv4 | sysv4.2uw2* | sysv4.3*)
14470      lt_prog_compiler_wl_F77='-Wl,'
14471      lt_prog_compiler_pic_F77='-KPIC'
14472      lt_prog_compiler_static_F77='-Bstatic'
14473      ;;
14474
14475    sysv4*MP*)
14476      if test -d /usr/nec ;then
14477	lt_prog_compiler_pic_F77='-Kconform_pic'
14478	lt_prog_compiler_static_F77='-Bstatic'
14479      fi
14480      ;;
14481
14482    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14483      lt_prog_compiler_wl_F77='-Wl,'
14484      lt_prog_compiler_pic_F77='-KPIC'
14485      lt_prog_compiler_static_F77='-Bstatic'
14486      ;;
14487
14488    unicos*)
14489      lt_prog_compiler_wl_F77='-Wl,'
14490      lt_prog_compiler_can_build_shared_F77=no
14491      ;;
14492
14493    uts4*)
14494      lt_prog_compiler_pic_F77='-pic'
14495      lt_prog_compiler_static_F77='-Bstatic'
14496      ;;
14497
14498    *)
14499      lt_prog_compiler_can_build_shared_F77=no
14500      ;;
14501    esac
14502  fi
14503
14504{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14505$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14506
14507#
14508# Check to make sure the PIC flag actually works.
14509#
14510if test -n "$lt_prog_compiler_pic_F77"; then
14511
14512{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14513$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14514if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14515  $as_echo_n "(cached) " >&6
14516else
14517  lt_cv_prog_compiler_pic_works_F77=no
14518  ac_outfile=conftest.$ac_objext
14519   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14520   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14521   # Insert the option either (1) after the last *FLAGS variable, or
14522   # (2) before a word containing "conftest.", or (3) at the end.
14523   # Note that $ac_compile itself does not contain backslashes and begins
14524   # with a dollar sign (not a hyphen), so the echo should work correctly.
14525   # The option is referenced via a variable to avoid confusing sed.
14526   lt_compile=`echo "$ac_compile" | $SED \
14527   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14528   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14529   -e 's:$: $lt_compiler_flag:'`
14530   (eval echo "\"\$as_me:14530: $lt_compile\"" >&5)
14531   (eval "$lt_compile" 2>conftest.err)
14532   ac_status=$?
14533   cat conftest.err >&5
14534   echo "$as_me:14534: \$? = $ac_status" >&5
14535   if (exit $ac_status) && test -s "$ac_outfile"; then
14536     # The compiler can only warn and ignore the option if not recognized
14537     # So say no if there are warnings other than the usual output.
14538     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14539     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14540     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14541       lt_cv_prog_compiler_pic_works_F77=yes
14542     fi
14543   fi
14544   $rm conftest*
14545
14546fi
14547{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14548$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14549
14550if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14551    case $lt_prog_compiler_pic_F77 in
14552     "" | " "*) ;;
14553     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14554     esac
14555else
14556    lt_prog_compiler_pic_F77=
14557     lt_prog_compiler_can_build_shared_F77=no
14558fi
14559
14560fi
14561case $host_os in
14562  # For platforms which do not support PIC, -DPIC is meaningless:
14563  *djgpp*)
14564    lt_prog_compiler_pic_F77=
14565    ;;
14566  *)
14567    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14568    ;;
14569esac
14570
14571#
14572# Check to make sure the static flag actually works.
14573#
14574wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14575{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14576$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14577if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14578  $as_echo_n "(cached) " >&6
14579else
14580  lt_cv_prog_compiler_static_works_F77=no
14581   save_LDFLAGS="$LDFLAGS"
14582   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14583   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14584   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14585     # The linker can only warn and ignore the option if not recognized
14586     # So say no if there are warnings
14587     if test -s conftest.err; then
14588       # Append any errors to the config.log.
14589       cat conftest.err 1>&5
14590       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14591       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14592       if diff conftest.exp conftest.er2 >/dev/null; then
14593         lt_cv_prog_compiler_static_works_F77=yes
14594       fi
14595     else
14596       lt_cv_prog_compiler_static_works_F77=yes
14597     fi
14598   fi
14599   $rm -r conftest*
14600   LDFLAGS="$save_LDFLAGS"
14601
14602fi
14603{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14604$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14605
14606if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14607    :
14608else
14609    lt_prog_compiler_static_F77=
14610fi
14611
14612
14613{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14614$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14615if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14616  $as_echo_n "(cached) " >&6
14617else
14618  lt_cv_prog_compiler_c_o_F77=no
14619   $rm -r conftest 2>/dev/null
14620   mkdir conftest
14621   cd conftest
14622   mkdir out
14623   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14624
14625   lt_compiler_flag="-o out/conftest2.$ac_objext"
14626   # Insert the option either (1) after the last *FLAGS variable, or
14627   # (2) before a word containing "conftest.", or (3) at the end.
14628   # Note that $ac_compile itself does not contain backslashes and begins
14629   # with a dollar sign (not a hyphen), so the echo should work correctly.
14630   lt_compile=`echo "$ac_compile" | $SED \
14631   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14632   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14633   -e 's:$: $lt_compiler_flag:'`
14634   (eval echo "\"\$as_me:14634: $lt_compile\"" >&5)
14635   (eval "$lt_compile" 2>out/conftest.err)
14636   ac_status=$?
14637   cat out/conftest.err >&5
14638   echo "$as_me:14638: \$? = $ac_status" >&5
14639   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14640   then
14641     # The compiler can only warn and ignore the option if not recognized
14642     # So say no if there are warnings
14643     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14644     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14645     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14646       lt_cv_prog_compiler_c_o_F77=yes
14647     fi
14648   fi
14649   chmod u+w . 2>&5
14650   $rm conftest*
14651   # SGI C++ compiler will create directory out/ii_files/ for
14652   # template instantiation
14653   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14654   $rm out/* && rmdir out
14655   cd ..
14656   rmdir conftest
14657   $rm conftest*
14658
14659fi
14660{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14661$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14662
14663
14664hard_links="nottested"
14665if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14666  # do not overwrite the value of need_locks provided by the user
14667  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14668$as_echo_n "checking if we can lock with hard links... " >&6; }
14669  hard_links=yes
14670  $rm conftest*
14671  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14672  touch conftest.a
14673  ln conftest.a conftest.b 2>&5 || hard_links=no
14674  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14675  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14676$as_echo "$hard_links" >&6; }
14677  if test "$hard_links" = no; then
14678    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14679$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14680    need_locks=warn
14681  fi
14682else
14683  need_locks=no
14684fi
14685
14686{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14687$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14688
14689  runpath_var=
14690  allow_undefined_flag_F77=
14691  enable_shared_with_static_runtimes_F77=no
14692  archive_cmds_F77=
14693  archive_expsym_cmds_F77=
14694  old_archive_From_new_cmds_F77=
14695  old_archive_from_expsyms_cmds_F77=
14696  export_dynamic_flag_spec_F77=
14697  whole_archive_flag_spec_F77=
14698  thread_safe_flag_spec_F77=
14699  hardcode_libdir_flag_spec_F77=
14700  hardcode_libdir_flag_spec_ld_F77=
14701  hardcode_libdir_separator_F77=
14702  hardcode_direct_F77=no
14703  hardcode_minus_L_F77=no
14704  hardcode_shlibpath_var_F77=unsupported
14705  link_all_deplibs_F77=unknown
14706  hardcode_automatic_F77=no
14707  module_cmds_F77=
14708  module_expsym_cmds_F77=
14709  always_export_symbols_F77=no
14710  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14711  # include_expsyms should be a list of space-separated symbols to be *always*
14712  # included in the symbol list
14713  include_expsyms_F77=
14714  # exclude_expsyms can be an extended regexp of symbols to exclude
14715  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14716  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14717  # as well as any symbol that contains `d'.
14718  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14719  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14720  # platforms (ab)use it in PIC code, but their linkers get confused if
14721  # the symbol is explicitly referenced.  Since portable code cannot
14722  # rely on this symbol name, it's probably fine to never include it in
14723  # preloaded symbol tables.
14724  # Exclude shared library initialization/finalization symbols.
14725  extract_expsyms_cmds=
14726  # Just being paranoid about ensuring that cc_basename is set.
14727  for cc_temp in $compiler""; do
14728  case $cc_temp in
14729    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14730    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14731    \-*) ;;
14732    *) break;;
14733  esac
14734done
14735cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14736
14737  case $host_os in
14738  cygwin* | mingw* | pw32*)
14739    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14740    # When not using gcc, we currently assume that we are using
14741    # Microsoft Visual C++.
14742    if test "$GCC" != yes; then
14743      with_gnu_ld=no
14744    fi
14745    ;;
14746  interix*)
14747    # we just hope/assume this is gcc and not c89 (= MSVC++)
14748    with_gnu_ld=yes
14749    ;;
14750  openbsd*)
14751    with_gnu_ld=no
14752    ;;
14753  esac
14754
14755  ld_shlibs_F77=yes
14756  if test "$with_gnu_ld" = yes; then
14757    # If archive_cmds runs LD, not CC, wlarc should be empty
14758    wlarc='${wl}'
14759
14760    # Set some defaults for GNU ld with shared library support. These
14761    # are reset later if shared libraries are not supported. Putting them
14762    # here allows them to be overridden if necessary.
14763    runpath_var=LD_RUN_PATH
14764    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14765    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14766    # ancient GNU ld didn't support --whole-archive et. al.
14767    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14768	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14769      else
14770  	whole_archive_flag_spec_F77=
14771    fi
14772    supports_anon_versioning=no
14773    case `$LD -v 2>/dev/null` in
14774      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14775      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14776      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14777      *\ 2.11.*) ;; # other 2.11 versions
14778      *) supports_anon_versioning=yes ;;
14779    esac
14780
14781    # See if GNU ld supports shared libraries.
14782    case $host_os in
14783    aix[3-9]*)
14784      # On AIX/PPC, the GNU linker is very broken
14785      if test "$host_cpu" != ia64; then
14786	ld_shlibs_F77=no
14787	cat <<EOF 1>&2
14788
14789*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14790*** to be unable to reliably create shared libraries on AIX.
14791*** Therefore, libtool is disabling shared libraries support.  If you
14792*** really care for shared libraries, you may want to modify your PATH
14793*** so that a non-GNU linker is found, and then restart.
14794
14795EOF
14796      fi
14797      ;;
14798
14799    amigaos*)
14800      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)'
14801      hardcode_libdir_flag_spec_F77='-L$libdir'
14802      hardcode_minus_L_F77=yes
14803
14804      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14805      # that the semantics of dynamic libraries on AmigaOS, at least up
14806      # to version 4, is to share data among multiple programs linked
14807      # with the same dynamic library.  Since this doesn't match the
14808      # behavior of shared libraries on other platforms, we can't use
14809      # them.
14810      ld_shlibs_F77=no
14811      ;;
14812
14813    beos*)
14814      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14815	allow_undefined_flag_F77=unsupported
14816	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14817	# support --undefined.  This deserves some investigation.  FIXME
14818	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14819      else
14820	ld_shlibs_F77=no
14821      fi
14822      ;;
14823
14824    cygwin* | mingw* | pw32*)
14825      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14826      # as there is no search path for DLLs.
14827      hardcode_libdir_flag_spec_F77='-L$libdir'
14828      allow_undefined_flag_F77=unsupported
14829      always_export_symbols_F77=no
14830      enable_shared_with_static_runtimes_F77=yes
14831      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14832
14833      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14834        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14835	# If the export-symbols file already is a .def file (1st line
14836	# is EXPORTS), use it as is; otherwise, prepend...
14837	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14838	  cp $export_symbols $output_objdir/$soname.def;
14839	else
14840	  echo EXPORTS > $output_objdir/$soname.def;
14841	  cat $export_symbols >> $output_objdir/$soname.def;
14842	fi~
14843	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14844      else
14845	ld_shlibs_F77=no
14846      fi
14847      ;;
14848
14849    interix[3-9]*)
14850      hardcode_direct_F77=no
14851      hardcode_shlibpath_var_F77=no
14852      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14853      export_dynamic_flag_spec_F77='${wl}-E'
14854      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14855      # Instead, shared libraries are loaded at an image base (0x10000000 by
14856      # default) and relocated if they conflict, which is a slow very memory
14857      # consuming and fragmenting process.  To avoid this, we pick a random,
14858      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14859      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14860      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'
14861      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'
14862      ;;
14863
14864    gnu* | linux* | k*bsd*-gnu)
14865      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14866	tmp_addflag=
14867	case $cc_basename,$host_cpu in
14868	pgcc*)				# Portland Group C compiler
14869	  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'
14870	  tmp_addflag=' $pic_flag'
14871	  ;;
14872	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14873	  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'
14874	  tmp_addflag=' $pic_flag -Mnomain' ;;
14875	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14876	  tmp_addflag=' -i_dynamic' ;;
14877	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14878	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14879	ifc* | ifort*)			# Intel Fortran compiler
14880	  tmp_addflag=' -nofor_main' ;;
14881	esac
14882	case `$CC -V 2>&1 | sed 5q` in
14883	*Sun\ C*)			# Sun C 5.9
14884	  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'
14885	  tmp_sharedflag='-G' ;;
14886	*Sun\ F*)			# Sun Fortran 8.3
14887	  tmp_sharedflag='-G' ;;
14888	*)
14889	  tmp_sharedflag='-shared' ;;
14890	esac
14891	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14892
14893	if test $supports_anon_versioning = yes; then
14894	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14895  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14896  $echo "local: *; };" >> $output_objdir/$libname.ver~
14897	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14898	fi
14899      else
14900	ld_shlibs_F77=no
14901      fi
14902      ;;
14903
14904    netbsd*)
14905      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14906	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14907	wlarc=
14908      else
14909	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14910	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14911      fi
14912      ;;
14913
14914    solaris*)
14915      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14916	ld_shlibs_F77=no
14917	cat <<EOF 1>&2
14918
14919*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14920*** create shared libraries on Solaris systems.  Therefore, libtool
14921*** is disabling shared libraries support.  We urge you to upgrade GNU
14922*** binutils to release 2.9.1 or newer.  Another option is to modify
14923*** your PATH or compiler configuration so that the native linker is
14924*** used, and then restart.
14925
14926EOF
14927      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14928	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14929	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14930      else
14931	ld_shlibs_F77=no
14932      fi
14933      ;;
14934
14935    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14936      case `$LD -v 2>&1` in
14937        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14938	ld_shlibs_F77=no
14939	cat <<_LT_EOF 1>&2
14940
14941*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14942*** reliably create shared libraries on SCO systems.  Therefore, libtool
14943*** is disabling shared libraries support.  We urge you to upgrade GNU
14944*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14945*** your PATH or compiler configuration so that the native linker is
14946*** used, and then restart.
14947
14948_LT_EOF
14949	;;
14950	*)
14951	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14952	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14953	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14954	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14955	  else
14956	    ld_shlibs_F77=no
14957	  fi
14958	;;
14959      esac
14960      ;;
14961
14962    sunos4*)
14963      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14964      wlarc=
14965      hardcode_direct_F77=yes
14966      hardcode_shlibpath_var_F77=no
14967      ;;
14968
14969    *)
14970      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14971	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14972	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14973      else
14974	ld_shlibs_F77=no
14975      fi
14976      ;;
14977    esac
14978
14979    if test "$ld_shlibs_F77" = no; then
14980      runpath_var=
14981      hardcode_libdir_flag_spec_F77=
14982      export_dynamic_flag_spec_F77=
14983      whole_archive_flag_spec_F77=
14984    fi
14985  else
14986    # PORTME fill in a description of your system's linker (not GNU ld)
14987    case $host_os in
14988    aix3*)
14989      allow_undefined_flag_F77=unsupported
14990      always_export_symbols_F77=yes
14991      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'
14992      # Note: this linker hardcodes the directories in LIBPATH if there
14993      # are no directories specified by -L.
14994      hardcode_minus_L_F77=yes
14995      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14996	# Neither direct hardcoding nor static linking is supported with a
14997	# broken collect2.
14998	hardcode_direct_F77=unsupported
14999      fi
15000      ;;
15001
15002    aix[4-9]*)
15003      if test "$host_cpu" = ia64; then
15004	# On IA64, the linker does run time linking by default, so we don't
15005	# have to do anything special.
15006	aix_use_runtimelinking=no
15007	exp_sym_flag='-Bexport'
15008	no_entry_flag=""
15009      else
15010	# If we're using GNU nm, then we don't want the "-C" option.
15011	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15012	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15013	  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'
15014	else
15015	  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'
15016	fi
15017	aix_use_runtimelinking=no
15018
15019	# Test if we are trying to use run time linking or normal
15020	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15021	# need to do runtime linking.
15022	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15023	  for ld_flag in $LDFLAGS; do
15024  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15025  	    aix_use_runtimelinking=yes
15026  	    break
15027  	  fi
15028	  done
15029	  ;;
15030	esac
15031
15032	exp_sym_flag='-bexport'
15033	no_entry_flag='-bnoentry'
15034      fi
15035
15036      # When large executables or shared objects are built, AIX ld can
15037      # have problems creating the table of contents.  If linking a library
15038      # or program results in "error TOC overflow" add -mminimal-toc to
15039      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15040      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15041
15042      archive_cmds_F77=''
15043      hardcode_direct_F77=yes
15044      hardcode_libdir_separator_F77=':'
15045      link_all_deplibs_F77=yes
15046
15047      if test "$GCC" = yes; then
15048	case $host_os in aix4.[012]|aix4.[012].*)
15049	# We only want to do this on AIX 4.2 and lower, the check
15050	# below for broken collect2 doesn't work under 4.3+
15051	  collect2name=`${CC} -print-prog-name=collect2`
15052	  if test -f "$collect2name" && \
15053  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15054	  then
15055  	  # We have reworked collect2
15056  	  :
15057	  else
15058  	  # We have old collect2
15059  	  hardcode_direct_F77=unsupported
15060  	  # It fails to find uninstalled libraries when the uninstalled
15061  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15062  	  # to unsupported forces relinking
15063  	  hardcode_minus_L_F77=yes
15064  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15065  	  hardcode_libdir_separator_F77=
15066	  fi
15067	  ;;
15068	esac
15069	shared_flag='-shared'
15070	if test "$aix_use_runtimelinking" = yes; then
15071	  shared_flag="$shared_flag "'${wl}-G'
15072	fi
15073      else
15074	# not using gcc
15075	if test "$host_cpu" = ia64; then
15076  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15077  	# chokes on -Wl,-G. The following line is correct:
15078	  shared_flag='-G'
15079	else
15080	  if test "$aix_use_runtimelinking" = yes; then
15081	    shared_flag='${wl}-G'
15082	  else
15083	    shared_flag='${wl}-bM:SRE'
15084	  fi
15085	fi
15086      fi
15087
15088      # It seems that -bexpall does not export symbols beginning with
15089      # underscore (_), so it is better to generate a list of symbols to export.
15090      always_export_symbols_F77=yes
15091      if test "$aix_use_runtimelinking" = yes; then
15092	# Warning - without using the other runtime loading flags (-brtl),
15093	# -berok will link without error, but may produce a broken library.
15094	allow_undefined_flag_F77='-berok'
15095       # Determine the default libpath from the value encoded in an empty executable.
15096       cat >conftest.$ac_ext <<_ACEOF
15097      program main
15098
15099      end
15100_ACEOF
15101rm -f conftest.$ac_objext conftest$ac_exeext
15102if { (ac_try="$ac_link"
15103case "(($ac_try" in
15104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105  *) ac_try_echo=$ac_try;;
15106esac
15107eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15108$as_echo "$ac_try_echo") >&5
15109  (eval "$ac_link") 2>conftest.er1
15110  ac_status=$?
15111  grep -v '^ *+' conftest.er1 >conftest.err
15112  rm -f conftest.er1
15113  cat conftest.err >&5
15114  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115  (exit $ac_status); } && {
15116	 test -z "$ac_f77_werror_flag" ||
15117	 test ! -s conftest.err
15118       } && test -s conftest$ac_exeext && {
15119	 test "$cross_compiling" = yes ||
15120	 $as_test_x conftest$ac_exeext
15121       }; then
15122
15123lt_aix_libpath_sed='
15124    /Import File Strings/,/^$/ {
15125	/^0/ {
15126	    s/^0  *\(.*\)$/\1/
15127	    p
15128	}
15129    }'
15130aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15131# Check for a 64-bit object if we didn't find anything.
15132if test -z "$aix_libpath"; then
15133  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15134fi
15135else
15136  $as_echo "$as_me: failed program was:" >&5
15137sed 's/^/| /' conftest.$ac_ext >&5
15138
15139
15140fi
15141
15142rm -rf conftest.dSYM
15143rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15144      conftest$ac_exeext conftest.$ac_ext
15145if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15146
15147       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15148	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"
15149       else
15150	if test "$host_cpu" = ia64; then
15151	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15152	  allow_undefined_flag_F77="-z nodefs"
15153	  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"
15154	else
15155	 # Determine the default libpath from the value encoded in an empty executable.
15156	 cat >conftest.$ac_ext <<_ACEOF
15157      program main
15158
15159      end
15160_ACEOF
15161rm -f conftest.$ac_objext conftest$ac_exeext
15162if { (ac_try="$ac_link"
15163case "(($ac_try" in
15164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15165  *) ac_try_echo=$ac_try;;
15166esac
15167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15168$as_echo "$ac_try_echo") >&5
15169  (eval "$ac_link") 2>conftest.er1
15170  ac_status=$?
15171  grep -v '^ *+' conftest.er1 >conftest.err
15172  rm -f conftest.er1
15173  cat conftest.err >&5
15174  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175  (exit $ac_status); } && {
15176	 test -z "$ac_f77_werror_flag" ||
15177	 test ! -s conftest.err
15178       } && test -s conftest$ac_exeext && {
15179	 test "$cross_compiling" = yes ||
15180	 $as_test_x conftest$ac_exeext
15181       }; then
15182
15183lt_aix_libpath_sed='
15184    /Import File Strings/,/^$/ {
15185	/^0/ {
15186	    s/^0  *\(.*\)$/\1/
15187	    p
15188	}
15189    }'
15190aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15191# Check for a 64-bit object if we didn't find anything.
15192if test -z "$aix_libpath"; then
15193  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15194fi
15195else
15196  $as_echo "$as_me: failed program was:" >&5
15197sed 's/^/| /' conftest.$ac_ext >&5
15198
15199
15200fi
15201
15202rm -rf conftest.dSYM
15203rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15204      conftest$ac_exeext conftest.$ac_ext
15205if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15206
15207	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15208	  # Warning - without using the other run time loading flags,
15209	  # -berok will link without error, but may produce a broken library.
15210	  no_undefined_flag_F77=' ${wl}-bernotok'
15211	  allow_undefined_flag_F77=' ${wl}-berok'
15212	  # Exported symbols can be pulled into shared objects from archives
15213	  whole_archive_flag_spec_F77='$convenience'
15214	  archive_cmds_need_lc_F77=yes
15215	  # This is similar to how AIX traditionally builds its shared libraries.
15216	  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'
15217	fi
15218      fi
15219      ;;
15220
15221    amigaos*)
15222      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)'
15223      hardcode_libdir_flag_spec_F77='-L$libdir'
15224      hardcode_minus_L_F77=yes
15225      # see comment about different semantics on the GNU ld section
15226      ld_shlibs_F77=no
15227      ;;
15228
15229    bsdi[45]*)
15230      export_dynamic_flag_spec_F77=-rdynamic
15231      ;;
15232
15233    cygwin* | mingw* | pw32*)
15234      # When not using gcc, we currently assume that we are using
15235      # Microsoft Visual C++.
15236      # hardcode_libdir_flag_spec is actually meaningless, as there is
15237      # no search path for DLLs.
15238      hardcode_libdir_flag_spec_F77=' '
15239      allow_undefined_flag_F77=unsupported
15240      # Tell ltmain to make .lib files, not .a files.
15241      libext=lib
15242      # Tell ltmain to make .dll files, not .so files.
15243      shrext_cmds=".dll"
15244      # FIXME: Setting linknames here is a bad hack.
15245      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15246      # The linker will automatically build a .lib file if we build a DLL.
15247      old_archive_From_new_cmds_F77='true'
15248      # FIXME: Should let the user specify the lib program.
15249      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15250      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15251      enable_shared_with_static_runtimes_F77=yes
15252      ;;
15253
15254    darwin* | rhapsody*)
15255      case $host_os in
15256        rhapsody* | darwin1.[012])
15257         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15258         ;;
15259       *) # Darwin 1.3 on
15260         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15261           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15262         else
15263           case ${MACOSX_DEPLOYMENT_TARGET} in
15264             10.[012])
15265               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15266               ;;
15267             10.*)
15268               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15269               ;;
15270           esac
15271         fi
15272         ;;
15273      esac
15274      archive_cmds_need_lc_F77=no
15275      hardcode_direct_F77=no
15276      hardcode_automatic_F77=yes
15277      hardcode_shlibpath_var_F77=unsupported
15278      whole_archive_flag_spec_F77=''
15279      link_all_deplibs_F77=yes
15280    if test "$GCC" = yes ; then
15281    	output_verbose_link_cmd='echo'
15282        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}"
15283        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15284        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}"
15285        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}"
15286    else
15287      case $cc_basename in
15288        xlc*)
15289         output_verbose_link_cmd='echo'
15290         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15291         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15292          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15293         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}'
15294          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}'
15295          ;;
15296       *)
15297         ld_shlibs_F77=no
15298          ;;
15299      esac
15300    fi
15301      ;;
15302
15303    dgux*)
15304      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15305      hardcode_libdir_flag_spec_F77='-L$libdir'
15306      hardcode_shlibpath_var_F77=no
15307      ;;
15308
15309    freebsd1*)
15310      ld_shlibs_F77=no
15311      ;;
15312
15313    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15314    # support.  Future versions do this automatically, but an explicit c++rt0.o
15315    # does not break anything, and helps significantly (at the cost of a little
15316    # extra space).
15317    freebsd2.2*)
15318      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15319      hardcode_libdir_flag_spec_F77='-R$libdir'
15320      hardcode_direct_F77=yes
15321      hardcode_shlibpath_var_F77=no
15322      ;;
15323
15324    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15325    freebsd2*)
15326      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15327      hardcode_direct_F77=yes
15328      hardcode_minus_L_F77=yes
15329      hardcode_shlibpath_var_F77=no
15330      ;;
15331
15332    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15333    freebsd* | dragonfly*)
15334      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15335      hardcode_libdir_flag_spec_F77='-R$libdir'
15336      hardcode_direct_F77=yes
15337      hardcode_shlibpath_var_F77=no
15338      ;;
15339
15340    hpux9*)
15341      if test "$GCC" = yes; then
15342	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'
15343      else
15344	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'
15345      fi
15346      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15347      hardcode_libdir_separator_F77=:
15348      hardcode_direct_F77=yes
15349
15350      # hardcode_minus_L: Not really in the search PATH,
15351      # but as the default location of the library.
15352      hardcode_minus_L_F77=yes
15353      export_dynamic_flag_spec_F77='${wl}-E'
15354      ;;
15355
15356    hpux10*)
15357      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15358	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15359      else
15360	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15361      fi
15362      if test "$with_gnu_ld" = no; then
15363	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15364	hardcode_libdir_separator_F77=:
15365
15366	hardcode_direct_F77=yes
15367	export_dynamic_flag_spec_F77='${wl}-E'
15368
15369	# hardcode_minus_L: Not really in the search PATH,
15370	# but as the default location of the library.
15371	hardcode_minus_L_F77=yes
15372      fi
15373      ;;
15374
15375    hpux11*)
15376      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15377	case $host_cpu in
15378	hppa*64*)
15379	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15380	  ;;
15381	ia64*)
15382	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15383	  ;;
15384	*)
15385	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15386	  ;;
15387	esac
15388      else
15389	case $host_cpu in
15390	hppa*64*)
15391	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15392	  ;;
15393	ia64*)
15394	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15395	  ;;
15396	*)
15397	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15398	  ;;
15399	esac
15400      fi
15401      if test "$with_gnu_ld" = no; then
15402	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15403	hardcode_libdir_separator_F77=:
15404
15405	case $host_cpu in
15406	hppa*64*|ia64*)
15407	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15408	  hardcode_direct_F77=no
15409	  hardcode_shlibpath_var_F77=no
15410	  ;;
15411	*)
15412	  hardcode_direct_F77=yes
15413	  export_dynamic_flag_spec_F77='${wl}-E'
15414
15415	  # hardcode_minus_L: Not really in the search PATH,
15416	  # but as the default location of the library.
15417	  hardcode_minus_L_F77=yes
15418	  ;;
15419	esac
15420      fi
15421      ;;
15422
15423    irix5* | irix6* | nonstopux*)
15424      if test "$GCC" = yes; then
15425	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'
15426      else
15427	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'
15428	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15429      fi
15430      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15431      hardcode_libdir_separator_F77=:
15432      link_all_deplibs_F77=yes
15433      ;;
15434
15435    netbsd*)
15436      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15437	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15438      else
15439	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15440      fi
15441      hardcode_libdir_flag_spec_F77='-R$libdir'
15442      hardcode_direct_F77=yes
15443      hardcode_shlibpath_var_F77=no
15444      ;;
15445
15446    newsos6)
15447      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15448      hardcode_direct_F77=yes
15449      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15450      hardcode_libdir_separator_F77=:
15451      hardcode_shlibpath_var_F77=no
15452      ;;
15453
15454    openbsd*)
15455      if test -f /usr/libexec/ld.so; then
15456	hardcode_direct_F77=yes
15457	hardcode_shlibpath_var_F77=no
15458	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15459	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15460	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15461	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15462	  export_dynamic_flag_spec_F77='${wl}-E'
15463	else
15464	  case $host_os in
15465	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15466	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15467	     hardcode_libdir_flag_spec_F77='-R$libdir'
15468	     ;;
15469	   *)
15470	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15471	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15472	     ;;
15473	  esac
15474        fi
15475      else
15476	ld_shlibs_F77=no
15477      fi
15478      ;;
15479
15480    os2*)
15481      hardcode_libdir_flag_spec_F77='-L$libdir'
15482      hardcode_minus_L_F77=yes
15483      allow_undefined_flag_F77=unsupported
15484      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'
15485      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15486      ;;
15487
15488    osf3*)
15489      if test "$GCC" = yes; then
15490	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15491	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'
15492      else
15493	allow_undefined_flag_F77=' -expect_unresolved \*'
15494	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'
15495      fi
15496      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15497      hardcode_libdir_separator_F77=:
15498      ;;
15499
15500    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15501      if test "$GCC" = yes; then
15502	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15503	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'
15504	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15505      else
15506	allow_undefined_flag_F77=' -expect_unresolved \*'
15507	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'
15508	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~
15509	$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'
15510
15511	# Both c and cxx compiler support -rpath directly
15512	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15513      fi
15514      hardcode_libdir_separator_F77=:
15515      ;;
15516
15517    solaris*)
15518      no_undefined_flag_F77=' -z text'
15519      if test "$GCC" = yes; then
15520	wlarc='${wl}'
15521	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15522	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15523	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15524      else
15525	wlarc=''
15526	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15527	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15528  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15529      fi
15530      hardcode_libdir_flag_spec_F77='-R$libdir'
15531      hardcode_shlibpath_var_F77=no
15532      case $host_os in
15533      solaris2.[0-5] | solaris2.[0-5].*) ;;
15534      *)
15535	# The compiler driver will combine and reorder linker options,
15536	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15537	# but is careful enough not to reorder.
15538 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15539	if test "$GCC" = yes; then
15540	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15541	else
15542	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15543	fi
15544	;;
15545      esac
15546      link_all_deplibs_F77=yes
15547      ;;
15548
15549    sunos4*)
15550      if test "x$host_vendor" = xsequent; then
15551	# Use $CC to link under sequent, because it throws in some extra .o
15552	# files that make .init and .fini sections work.
15553	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15554      else
15555	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15556      fi
15557      hardcode_libdir_flag_spec_F77='-L$libdir'
15558      hardcode_direct_F77=yes
15559      hardcode_minus_L_F77=yes
15560      hardcode_shlibpath_var_F77=no
15561      ;;
15562
15563    sysv4)
15564      case $host_vendor in
15565	sni)
15566	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15567	  hardcode_direct_F77=yes # is this really true???
15568	;;
15569	siemens)
15570	  ## LD is ld it makes a PLAMLIB
15571	  ## CC just makes a GrossModule.
15572	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15573	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15574	  hardcode_direct_F77=no
15575        ;;
15576	motorola)
15577	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15578	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15579	;;
15580      esac
15581      runpath_var='LD_RUN_PATH'
15582      hardcode_shlibpath_var_F77=no
15583      ;;
15584
15585    sysv4.3*)
15586      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15587      hardcode_shlibpath_var_F77=no
15588      export_dynamic_flag_spec_F77='-Bexport'
15589      ;;
15590
15591    sysv4*MP*)
15592      if test -d /usr/nec; then
15593	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15594	hardcode_shlibpath_var_F77=no
15595	runpath_var=LD_RUN_PATH
15596	hardcode_runpath_var=yes
15597	ld_shlibs_F77=yes
15598      fi
15599      ;;
15600
15601    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15602      no_undefined_flag_F77='${wl}-z,text'
15603      archive_cmds_need_lc_F77=no
15604      hardcode_shlibpath_var_F77=no
15605      runpath_var='LD_RUN_PATH'
15606
15607      if test "$GCC" = yes; then
15608	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15609	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15610      else
15611	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15612	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15613      fi
15614      ;;
15615
15616    sysv5* | sco3.2v5* | sco5v6*)
15617      # Note: We can NOT use -z defs as we might desire, because we do not
15618      # link with -lc, and that would cause any symbols used from libc to
15619      # always be unresolved, which means just about no library would
15620      # ever link correctly.  If we're not using GNU ld we use -z text
15621      # though, which does catch some bad symbols but isn't as heavy-handed
15622      # as -z defs.
15623      no_undefined_flag_F77='${wl}-z,text'
15624      allow_undefined_flag_F77='${wl}-z,nodefs'
15625      archive_cmds_need_lc_F77=no
15626      hardcode_shlibpath_var_F77=no
15627      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15628      hardcode_libdir_separator_F77=':'
15629      link_all_deplibs_F77=yes
15630      export_dynamic_flag_spec_F77='${wl}-Bexport'
15631      runpath_var='LD_RUN_PATH'
15632
15633      if test "$GCC" = yes; then
15634	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15635	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15636      else
15637	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15638	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15639      fi
15640      ;;
15641
15642    uts4*)
15643      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15644      hardcode_libdir_flag_spec_F77='-L$libdir'
15645      hardcode_shlibpath_var_F77=no
15646      ;;
15647
15648    *)
15649      ld_shlibs_F77=no
15650      ;;
15651    esac
15652  fi
15653
15654{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15655$as_echo "$ld_shlibs_F77" >&6; }
15656test "$ld_shlibs_F77" = no && can_build_shared=no
15657
15658#
15659# Do we need to explicitly link libc?
15660#
15661case "x$archive_cmds_need_lc_F77" in
15662x|xyes)
15663  # Assume -lc should be added
15664  archive_cmds_need_lc_F77=yes
15665
15666  if test "$enable_shared" = yes && test "$GCC" = yes; then
15667    case $archive_cmds_F77 in
15668    *'~'*)
15669      # FIXME: we may have to deal with multi-command sequences.
15670      ;;
15671    '$CC '*)
15672      # Test whether the compiler implicitly links with -lc since on some
15673      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15674      # to ld, don't add -lc before -lgcc.
15675      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15676$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15677      $rm conftest*
15678      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15679
15680      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15681  (eval $ac_compile) 2>&5
15682  ac_status=$?
15683  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684  (exit $ac_status); } 2>conftest.err; then
15685        soname=conftest
15686        lib=conftest
15687        libobjs=conftest.$ac_objext
15688        deplibs=
15689        wl=$lt_prog_compiler_wl_F77
15690	pic_flag=$lt_prog_compiler_pic_F77
15691        compiler_flags=-v
15692        linker_flags=-v
15693        verstring=
15694        output_objdir=.
15695        libname=conftest
15696        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15697        allow_undefined_flag_F77=
15698        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15699  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15700  ac_status=$?
15701  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702  (exit $ac_status); }
15703        then
15704	  archive_cmds_need_lc_F77=no
15705        else
15706	  archive_cmds_need_lc_F77=yes
15707        fi
15708        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15709      else
15710        cat conftest.err 1>&5
15711      fi
15712      $rm conftest*
15713      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15714$as_echo "$archive_cmds_need_lc_F77" >&6; }
15715      ;;
15716    esac
15717  fi
15718  ;;
15719esac
15720
15721{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15722$as_echo_n "checking dynamic linker characteristics... " >&6; }
15723library_names_spec=
15724libname_spec='lib$name'
15725soname_spec=
15726shrext_cmds=".so"
15727postinstall_cmds=
15728postuninstall_cmds=
15729finish_cmds=
15730finish_eval=
15731shlibpath_var=
15732shlibpath_overrides_runpath=unknown
15733version_type=none
15734dynamic_linker="$host_os ld.so"
15735sys_lib_dlsearch_path_spec="/lib /usr/lib"
15736
15737need_lib_prefix=unknown
15738hardcode_into_libs=no
15739
15740# when you set need_version to no, make sure it does not cause -set_version
15741# flags to be left without arguments
15742need_version=unknown
15743
15744case $host_os in
15745aix3*)
15746  version_type=linux
15747  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15748  shlibpath_var=LIBPATH
15749
15750  # AIX 3 has no versioning support, so we append a major version to the name.
15751  soname_spec='${libname}${release}${shared_ext}$major'
15752  ;;
15753
15754aix[4-9]*)
15755  version_type=linux
15756  need_lib_prefix=no
15757  need_version=no
15758  hardcode_into_libs=yes
15759  if test "$host_cpu" = ia64; then
15760    # AIX 5 supports IA64
15761    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15762    shlibpath_var=LD_LIBRARY_PATH
15763  else
15764    # With GCC up to 2.95.x, collect2 would create an import file
15765    # for dependence libraries.  The import file would start with
15766    # the line `#! .'.  This would cause the generated library to
15767    # depend on `.', always an invalid library.  This was fixed in
15768    # development snapshots of GCC prior to 3.0.
15769    case $host_os in
15770      aix4 | aix4.[01] | aix4.[01].*)
15771      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15772	   echo ' yes '
15773	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15774	:
15775      else
15776	can_build_shared=no
15777      fi
15778      ;;
15779    esac
15780    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15781    # soname into executable. Probably we can add versioning support to
15782    # collect2, so additional links can be useful in future.
15783    if test "$aix_use_runtimelinking" = yes; then
15784      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15785      # instead of lib<name>.a to let people know that these are not
15786      # typical AIX shared libraries.
15787      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15788    else
15789      # We preserve .a as extension for shared libraries through AIX4.2
15790      # and later when we are not doing run time linking.
15791      library_names_spec='${libname}${release}.a $libname.a'
15792      soname_spec='${libname}${release}${shared_ext}$major'
15793    fi
15794    shlibpath_var=LIBPATH
15795  fi
15796  ;;
15797
15798amigaos*)
15799  library_names_spec='$libname.ixlibrary $libname.a'
15800  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15801  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'
15802  ;;
15803
15804beos*)
15805  library_names_spec='${libname}${shared_ext}'
15806  dynamic_linker="$host_os ld.so"
15807  shlibpath_var=LIBRARY_PATH
15808  ;;
15809
15810bsdi[45]*)
15811  version_type=linux
15812  need_version=no
15813  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15814  soname_spec='${libname}${release}${shared_ext}$major'
15815  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15816  shlibpath_var=LD_LIBRARY_PATH
15817  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15818  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15819  # the default ld.so.conf also contains /usr/contrib/lib and
15820  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15821  # libtool to hard-code these into programs
15822  ;;
15823
15824cygwin* | mingw* | pw32*)
15825  version_type=windows
15826  shrext_cmds=".dll"
15827  need_version=no
15828  need_lib_prefix=no
15829
15830  case $GCC,$host_os in
15831  yes,cygwin* | yes,mingw* | yes,pw32*)
15832    library_names_spec='$libname.dll.a'
15833    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15834    postinstall_cmds='base_file=`basename \${file}`~
15835      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15836      dldir=$destdir/`dirname \$dlpath`~
15837      test -d \$dldir || mkdir -p \$dldir~
15838      $install_prog $dir/$dlname \$dldir/$dlname~
15839      chmod a+x \$dldir/$dlname'
15840    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15841      dlpath=$dir/\$dldll~
15842       $rm \$dlpath'
15843    shlibpath_overrides_runpath=yes
15844
15845    case $host_os in
15846    cygwin*)
15847      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15848      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15849      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15850      ;;
15851    mingw*)
15852      # MinGW DLLs use traditional 'lib' prefix
15853      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15854      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15855      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15856        # It is most probably a Windows format PATH printed by
15857        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15858        # path with ; separators, and with drive letters. We can handle the
15859        # drive letters (cygwin fileutils understands them), so leave them,
15860        # especially as we might pass files found there to a mingw objdump,
15861        # which wouldn't understand a cygwinified path. Ahh.
15862        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15863      else
15864        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15865      fi
15866      ;;
15867    pw32*)
15868      # pw32 DLLs use 'pw' prefix rather than 'lib'
15869      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15870      ;;
15871    esac
15872    ;;
15873
15874  *)
15875    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15876    ;;
15877  esac
15878  dynamic_linker='Win32 ld.exe'
15879  # FIXME: first we should search . and the directory the executable is in
15880  shlibpath_var=PATH
15881  ;;
15882
15883darwin* | rhapsody*)
15884  dynamic_linker="$host_os dyld"
15885  version_type=darwin
15886  need_lib_prefix=no
15887  need_version=no
15888  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15889  soname_spec='${libname}${release}${major}$shared_ext'
15890  shlibpath_overrides_runpath=yes
15891  shlibpath_var=DYLD_LIBRARY_PATH
15892  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15893
15894  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15895  ;;
15896
15897dgux*)
15898  version_type=linux
15899  need_lib_prefix=no
15900  need_version=no
15901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15902  soname_spec='${libname}${release}${shared_ext}$major'
15903  shlibpath_var=LD_LIBRARY_PATH
15904  ;;
15905
15906freebsd1*)
15907  dynamic_linker=no
15908  ;;
15909
15910freebsd* | dragonfly*)
15911  # DragonFly does not have aout.  When/if they implement a new
15912  # versioning mechanism, adjust this.
15913  if test -x /usr/bin/objformat; then
15914    objformat=`/usr/bin/objformat`
15915  else
15916    case $host_os in
15917    freebsd[123]*) objformat=aout ;;
15918    *) objformat=elf ;;
15919    esac
15920  fi
15921  version_type=freebsd-$objformat
15922  case $version_type in
15923    freebsd-elf*)
15924      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15925      need_version=no
15926      need_lib_prefix=no
15927      ;;
15928    freebsd-*)
15929      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15930      need_version=yes
15931      ;;
15932  esac
15933  shlibpath_var=LD_LIBRARY_PATH
15934  case $host_os in
15935  freebsd2*)
15936    shlibpath_overrides_runpath=yes
15937    ;;
15938  freebsd3.[01]* | freebsdelf3.[01]*)
15939    shlibpath_overrides_runpath=yes
15940    hardcode_into_libs=yes
15941    ;;
15942  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15943  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15944    shlibpath_overrides_runpath=no
15945    hardcode_into_libs=yes
15946    ;;
15947  *) # from 4.6 on, and DragonFly
15948    shlibpath_overrides_runpath=yes
15949    hardcode_into_libs=yes
15950    ;;
15951  esac
15952  ;;
15953
15954gnu*)
15955  version_type=linux
15956  need_lib_prefix=no
15957  need_version=no
15958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15959  soname_spec='${libname}${release}${shared_ext}$major'
15960  shlibpath_var=LD_LIBRARY_PATH
15961  hardcode_into_libs=yes
15962  ;;
15963
15964hpux9* | hpux10* | hpux11*)
15965  # Give a soname corresponding to the major version so that dld.sl refuses to
15966  # link against other versions.
15967  version_type=sunos
15968  need_lib_prefix=no
15969  need_version=no
15970  case $host_cpu in
15971  ia64*)
15972    shrext_cmds='.so'
15973    hardcode_into_libs=yes
15974    dynamic_linker="$host_os dld.so"
15975    shlibpath_var=LD_LIBRARY_PATH
15976    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15977    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15978    soname_spec='${libname}${release}${shared_ext}$major'
15979    if test "X$HPUX_IA64_MODE" = X32; then
15980      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15981    else
15982      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15983    fi
15984    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15985    ;;
15986   hppa*64*)
15987     shrext_cmds='.sl'
15988     hardcode_into_libs=yes
15989     dynamic_linker="$host_os dld.sl"
15990     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15991     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15992     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15993     soname_spec='${libname}${release}${shared_ext}$major'
15994     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15995     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15996     ;;
15997   *)
15998    shrext_cmds='.sl'
15999    dynamic_linker="$host_os dld.sl"
16000    shlibpath_var=SHLIB_PATH
16001    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16002    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16003    soname_spec='${libname}${release}${shared_ext}$major'
16004    ;;
16005  esac
16006  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16007  postinstall_cmds='chmod 555 $lib'
16008  ;;
16009
16010interix[3-9]*)
16011  version_type=linux
16012  need_lib_prefix=no
16013  need_version=no
16014  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16015  soname_spec='${libname}${release}${shared_ext}$major'
16016  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16017  shlibpath_var=LD_LIBRARY_PATH
16018  shlibpath_overrides_runpath=no
16019  hardcode_into_libs=yes
16020  ;;
16021
16022irix5* | irix6* | nonstopux*)
16023  case $host_os in
16024    nonstopux*) version_type=nonstopux ;;
16025    *)
16026	if test "$lt_cv_prog_gnu_ld" = yes; then
16027		version_type=linux
16028	else
16029		version_type=irix
16030	fi ;;
16031  esac
16032  need_lib_prefix=no
16033  need_version=no
16034  soname_spec='${libname}${release}${shared_ext}$major'
16035  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16036  case $host_os in
16037  irix5* | nonstopux*)
16038    libsuff= shlibsuff=
16039    ;;
16040  *)
16041    case $LD in # libtool.m4 will add one of these switches to LD
16042    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16043      libsuff= shlibsuff= libmagic=32-bit;;
16044    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16045      libsuff=32 shlibsuff=N32 libmagic=N32;;
16046    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16047      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16048    *) libsuff= shlibsuff= libmagic=never-match;;
16049    esac
16050    ;;
16051  esac
16052  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16053  shlibpath_overrides_runpath=no
16054  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16055  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16056  hardcode_into_libs=yes
16057  ;;
16058
16059# No shared lib support for Linux oldld, aout, or coff.
16060linux*oldld* | linux*aout* | linux*coff*)
16061  dynamic_linker=no
16062  ;;
16063
16064# This must be Linux ELF.
16065linux* | k*bsd*-gnu)
16066  version_type=linux
16067  need_lib_prefix=no
16068  need_version=no
16069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16070  soname_spec='${libname}${release}${shared_ext}$major'
16071  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16072  shlibpath_var=LD_LIBRARY_PATH
16073  shlibpath_overrides_runpath=no
16074  # This implies no fast_install, which is unacceptable.
16075  # Some rework will be needed to allow for fast_install
16076  # before this can be enabled.
16077  hardcode_into_libs=yes
16078
16079  # Append ld.so.conf contents to the search path
16080  if test -f /etc/ld.so.conf; then
16081    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' ' '`
16082    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16083  fi
16084
16085  # We used to test for /lib/ld.so.1 and disable shared libraries on
16086  # powerpc, because MkLinux only supported shared libraries with the
16087  # GNU dynamic linker.  Since this was broken with cross compilers,
16088  # most powerpc-linux boxes support dynamic linking these days and
16089  # people can always --disable-shared, the test was removed, and we
16090  # assume the GNU/Linux dynamic linker is in use.
16091  dynamic_linker='GNU/Linux ld.so'
16092  ;;
16093
16094netbsd*)
16095  version_type=sunos
16096  need_lib_prefix=no
16097  need_version=no
16098  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16099    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16100    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16101    dynamic_linker='NetBSD (a.out) ld.so'
16102  else
16103    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16104    soname_spec='${libname}${release}${shared_ext}$major'
16105    dynamic_linker='NetBSD ld.elf_so'
16106  fi
16107  shlibpath_var=LD_LIBRARY_PATH
16108  shlibpath_overrides_runpath=yes
16109  hardcode_into_libs=yes
16110  ;;
16111
16112newsos6)
16113  version_type=linux
16114  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16115  shlibpath_var=LD_LIBRARY_PATH
16116  shlibpath_overrides_runpath=yes
16117  ;;
16118
16119nto-qnx*)
16120  version_type=linux
16121  need_lib_prefix=no
16122  need_version=no
16123  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16124  soname_spec='${libname}${release}${shared_ext}$major'
16125  shlibpath_var=LD_LIBRARY_PATH
16126  shlibpath_overrides_runpath=yes
16127  ;;
16128
16129openbsd*)
16130  version_type=sunos
16131  sys_lib_dlsearch_path_spec="/usr/lib"
16132  need_lib_prefix=no
16133  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16134  case $host_os in
16135    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16136    *)                         need_version=no  ;;
16137  esac
16138  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16139  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16140  shlibpath_var=LD_LIBRARY_PATH
16141  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16142    case $host_os in
16143      openbsd2.[89] | openbsd2.[89].*)
16144	shlibpath_overrides_runpath=no
16145	;;
16146      *)
16147	shlibpath_overrides_runpath=yes
16148	;;
16149      esac
16150  else
16151    shlibpath_overrides_runpath=yes
16152  fi
16153  ;;
16154
16155os2*)
16156  libname_spec='$name'
16157  shrext_cmds=".dll"
16158  need_lib_prefix=no
16159  library_names_spec='$libname${shared_ext} $libname.a'
16160  dynamic_linker='OS/2 ld.exe'
16161  shlibpath_var=LIBPATH
16162  ;;
16163
16164osf3* | osf4* | osf5*)
16165  version_type=osf
16166  need_lib_prefix=no
16167  need_version=no
16168  soname_spec='${libname}${release}${shared_ext}$major'
16169  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16170  shlibpath_var=LD_LIBRARY_PATH
16171  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16172  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16173  ;;
16174
16175rdos*)
16176  dynamic_linker=no
16177  ;;
16178
16179solaris*)
16180  version_type=linux
16181  need_lib_prefix=no
16182  need_version=no
16183  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16184  soname_spec='${libname}${release}${shared_ext}$major'
16185  shlibpath_var=LD_LIBRARY_PATH
16186  shlibpath_overrides_runpath=yes
16187  hardcode_into_libs=yes
16188  # ldd complains unless libraries are executable
16189  postinstall_cmds='chmod +x $lib'
16190  ;;
16191
16192sunos4*)
16193  version_type=sunos
16194  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16195  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16196  shlibpath_var=LD_LIBRARY_PATH
16197  shlibpath_overrides_runpath=yes
16198  if test "$with_gnu_ld" = yes; then
16199    need_lib_prefix=no
16200  fi
16201  need_version=yes
16202  ;;
16203
16204sysv4 | sysv4.3*)
16205  version_type=linux
16206  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16207  soname_spec='${libname}${release}${shared_ext}$major'
16208  shlibpath_var=LD_LIBRARY_PATH
16209  case $host_vendor in
16210    sni)
16211      shlibpath_overrides_runpath=no
16212      need_lib_prefix=no
16213      export_dynamic_flag_spec='${wl}-Blargedynsym'
16214      runpath_var=LD_RUN_PATH
16215      ;;
16216    siemens)
16217      need_lib_prefix=no
16218      ;;
16219    motorola)
16220      need_lib_prefix=no
16221      need_version=no
16222      shlibpath_overrides_runpath=no
16223      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16224      ;;
16225  esac
16226  ;;
16227
16228sysv4*MP*)
16229  if test -d /usr/nec ;then
16230    version_type=linux
16231    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16232    soname_spec='$libname${shared_ext}.$major'
16233    shlibpath_var=LD_LIBRARY_PATH
16234  fi
16235  ;;
16236
16237sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16238  version_type=freebsd-elf
16239  need_lib_prefix=no
16240  need_version=no
16241  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16242  soname_spec='${libname}${release}${shared_ext}$major'
16243  shlibpath_var=LD_LIBRARY_PATH
16244  hardcode_into_libs=yes
16245  if test "$with_gnu_ld" = yes; then
16246    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16247    shlibpath_overrides_runpath=no
16248  else
16249    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16250    shlibpath_overrides_runpath=yes
16251    case $host_os in
16252      sco3.2v5*)
16253        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16254	;;
16255    esac
16256  fi
16257  sys_lib_dlsearch_path_spec='/usr/lib'
16258  ;;
16259
16260uts4*)
16261  version_type=linux
16262  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16263  soname_spec='${libname}${release}${shared_ext}$major'
16264  shlibpath_var=LD_LIBRARY_PATH
16265  ;;
16266
16267*)
16268  dynamic_linker=no
16269  ;;
16270esac
16271{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16272$as_echo "$dynamic_linker" >&6; }
16273test "$dynamic_linker" = no && can_build_shared=no
16274
16275if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16276  $as_echo_n "(cached) " >&6
16277else
16278  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16279fi
16280
16281sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16282if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16283  $as_echo_n "(cached) " >&6
16284else
16285  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16286fi
16287
16288sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16289
16290variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16291if test "$GCC" = yes; then
16292  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16293fi
16294
16295{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16296$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16297hardcode_action_F77=
16298if test -n "$hardcode_libdir_flag_spec_F77" || \
16299   test -n "$runpath_var_F77" || \
16300   test "X$hardcode_automatic_F77" = "Xyes" ; then
16301
16302  # We can hardcode non-existant directories.
16303  if test "$hardcode_direct_F77" != no &&
16304     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16305     # have to relink, otherwise we might link with an installed library
16306     # when we should be linking with a yet-to-be-installed one
16307     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16308     test "$hardcode_minus_L_F77" != no; then
16309    # Linking always hardcodes the temporary library directory.
16310    hardcode_action_F77=relink
16311  else
16312    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16313    hardcode_action_F77=immediate
16314  fi
16315else
16316  # We cannot hardcode anything, or else we can only hardcode existing
16317  # directories.
16318  hardcode_action_F77=unsupported
16319fi
16320{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16321$as_echo "$hardcode_action_F77" >&6; }
16322
16323if test "$hardcode_action_F77" = relink; then
16324  # Fast installation is not supported
16325  enable_fast_install=no
16326elif test "$shlibpath_overrides_runpath" = yes ||
16327     test "$enable_shared" = no; then
16328  # Fast installation is not necessary
16329  enable_fast_install=needless
16330fi
16331
16332
16333# The else clause should only fire when bootstrapping the
16334# libtool distribution, otherwise you forgot to ship ltmain.sh
16335# with your package, and you will get complaints that there are
16336# no rules to generate ltmain.sh.
16337if test -f "$ltmain"; then
16338  # See if we are running on zsh, and set the options which allow our commands through
16339  # without removal of \ escapes.
16340  if test -n "${ZSH_VERSION+set}" ; then
16341    setopt NO_GLOB_SUBST
16342  fi
16343  # Now quote all the things that may contain metacharacters while being
16344  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16345  # variables and quote the copies for generation of the libtool script.
16346  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16347    SED SHELL STRIP \
16348    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16349    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16350    deplibs_check_method reload_flag reload_cmds need_locks \
16351    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16352    lt_cv_sys_global_symbol_to_c_name_address \
16353    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16354    old_postinstall_cmds old_postuninstall_cmds \
16355    compiler_F77 \
16356    CC_F77 \
16357    LD_F77 \
16358    lt_prog_compiler_wl_F77 \
16359    lt_prog_compiler_pic_F77 \
16360    lt_prog_compiler_static_F77 \
16361    lt_prog_compiler_no_builtin_flag_F77 \
16362    export_dynamic_flag_spec_F77 \
16363    thread_safe_flag_spec_F77 \
16364    whole_archive_flag_spec_F77 \
16365    enable_shared_with_static_runtimes_F77 \
16366    old_archive_cmds_F77 \
16367    old_archive_from_new_cmds_F77 \
16368    predep_objects_F77 \
16369    postdep_objects_F77 \
16370    predeps_F77 \
16371    postdeps_F77 \
16372    compiler_lib_search_path_F77 \
16373    compiler_lib_search_dirs_F77 \
16374    archive_cmds_F77 \
16375    archive_expsym_cmds_F77 \
16376    postinstall_cmds_F77 \
16377    postuninstall_cmds_F77 \
16378    old_archive_from_expsyms_cmds_F77 \
16379    allow_undefined_flag_F77 \
16380    no_undefined_flag_F77 \
16381    export_symbols_cmds_F77 \
16382    hardcode_libdir_flag_spec_F77 \
16383    hardcode_libdir_flag_spec_ld_F77 \
16384    hardcode_libdir_separator_F77 \
16385    hardcode_automatic_F77 \
16386    module_cmds_F77 \
16387    module_expsym_cmds_F77 \
16388    lt_cv_prog_compiler_c_o_F77 \
16389    fix_srcfile_path_F77 \
16390    exclude_expsyms_F77 \
16391    include_expsyms_F77; do
16392
16393    case $var in
16394    old_archive_cmds_F77 | \
16395    old_archive_from_new_cmds_F77 | \
16396    archive_cmds_F77 | \
16397    archive_expsym_cmds_F77 | \
16398    module_cmds_F77 | \
16399    module_expsym_cmds_F77 | \
16400    old_archive_from_expsyms_cmds_F77 | \
16401    export_symbols_cmds_F77 | \
16402    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16403    postinstall_cmds | postuninstall_cmds | \
16404    old_postinstall_cmds | old_postuninstall_cmds | \
16405    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16406      # Double-quote double-evaled strings.
16407      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16408      ;;
16409    *)
16410      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16411      ;;
16412    esac
16413  done
16414
16415  case $lt_echo in
16416  *'\$0 --fallback-echo"')
16417    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16418    ;;
16419  esac
16420
16421cfgfile="$ofile"
16422
16423  cat <<__EOF__ >> "$cfgfile"
16424# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16425
16426# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16427
16428# Shell to use when invoking shell scripts.
16429SHELL=$lt_SHELL
16430
16431# Whether or not to build shared libraries.
16432build_libtool_libs=$enable_shared
16433
16434# Whether or not to build static libraries.
16435build_old_libs=$enable_static
16436
16437# Whether or not to add -lc for building shared libraries.
16438build_libtool_need_lc=$archive_cmds_need_lc_F77
16439
16440# Whether or not to disallow shared libs when runtime libs are static
16441allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16442
16443# Whether or not to optimize for fast installation.
16444fast_install=$enable_fast_install
16445
16446# The host system.
16447host_alias=$host_alias
16448host=$host
16449host_os=$host_os
16450
16451# The build system.
16452build_alias=$build_alias
16453build=$build
16454build_os=$build_os
16455
16456# An echo program that does not interpret backslashes.
16457echo=$lt_echo
16458
16459# The archiver.
16460AR=$lt_AR
16461AR_FLAGS=$lt_AR_FLAGS
16462
16463# A C compiler.
16464LTCC=$lt_LTCC
16465
16466# LTCC compiler flags.
16467LTCFLAGS=$lt_LTCFLAGS
16468
16469# A language-specific compiler.
16470CC=$lt_compiler_F77
16471
16472# Is the compiler the GNU C compiler?
16473with_gcc=$GCC_F77
16474
16475# An ERE matcher.
16476EGREP=$lt_EGREP
16477
16478# The linker used to build libraries.
16479LD=$lt_LD_F77
16480
16481# Whether we need hard or soft links.
16482LN_S=$lt_LN_S
16483
16484# A BSD-compatible nm program.
16485NM=$lt_NM
16486
16487# A symbol stripping program
16488STRIP=$lt_STRIP
16489
16490# Used to examine libraries when file_magic_cmd begins "file"
16491MAGIC_CMD=$MAGIC_CMD
16492
16493# Used on cygwin: DLL creation program.
16494DLLTOOL="$DLLTOOL"
16495
16496# Used on cygwin: object dumper.
16497OBJDUMP="$OBJDUMP"
16498
16499# Used on cygwin: assembler.
16500AS="$AS"
16501
16502# The name of the directory that contains temporary libtool files.
16503objdir=$objdir
16504
16505# How to create reloadable object files.
16506reload_flag=$lt_reload_flag
16507reload_cmds=$lt_reload_cmds
16508
16509# How to pass a linker flag through the compiler.
16510wl=$lt_lt_prog_compiler_wl_F77
16511
16512# Object file suffix (normally "o").
16513objext="$ac_objext"
16514
16515# Old archive suffix (normally "a").
16516libext="$libext"
16517
16518# Shared library suffix (normally ".so").
16519shrext_cmds='$shrext_cmds'
16520
16521# Executable file suffix (normally "").
16522exeext="$exeext"
16523
16524# Additional compiler flags for building library objects.
16525pic_flag=$lt_lt_prog_compiler_pic_F77
16526pic_mode=$pic_mode
16527
16528# What is the maximum length of a command?
16529max_cmd_len=$lt_cv_sys_max_cmd_len
16530
16531# Does compiler simultaneously support -c and -o options?
16532compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16533
16534# Must we lock files when doing compilation?
16535need_locks=$lt_need_locks
16536
16537# Do we need the lib prefix for modules?
16538need_lib_prefix=$need_lib_prefix
16539
16540# Do we need a version for libraries?
16541need_version=$need_version
16542
16543# Whether dlopen is supported.
16544dlopen_support=$enable_dlopen
16545
16546# Whether dlopen of programs is supported.
16547dlopen_self=$enable_dlopen_self
16548
16549# Whether dlopen of statically linked programs is supported.
16550dlopen_self_static=$enable_dlopen_self_static
16551
16552# Compiler flag to prevent dynamic linking.
16553link_static_flag=$lt_lt_prog_compiler_static_F77
16554
16555# Compiler flag to turn off builtin functions.
16556no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16557
16558# Compiler flag to allow reflexive dlopens.
16559export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16560
16561# Compiler flag to generate shared objects directly from archives.
16562whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16563
16564# Compiler flag to generate thread-safe objects.
16565thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16566
16567# Library versioning type.
16568version_type=$version_type
16569
16570# Format of library name prefix.
16571libname_spec=$lt_libname_spec
16572
16573# List of archive names.  First name is the real one, the rest are links.
16574# The last name is the one that the linker finds with -lNAME.
16575library_names_spec=$lt_library_names_spec
16576
16577# The coded name of the library, if different from the real name.
16578soname_spec=$lt_soname_spec
16579
16580# Commands used to build and install an old-style archive.
16581RANLIB=$lt_RANLIB
16582old_archive_cmds=$lt_old_archive_cmds_F77
16583old_postinstall_cmds=$lt_old_postinstall_cmds
16584old_postuninstall_cmds=$lt_old_postuninstall_cmds
16585
16586# Create an old-style archive from a shared archive.
16587old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16588
16589# Create a temporary old-style archive to link instead of a shared archive.
16590old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16591
16592# Commands used to build and install a shared archive.
16593archive_cmds=$lt_archive_cmds_F77
16594archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16595postinstall_cmds=$lt_postinstall_cmds
16596postuninstall_cmds=$lt_postuninstall_cmds
16597
16598# Commands used to build a loadable module (assumed same as above if empty)
16599module_cmds=$lt_module_cmds_F77
16600module_expsym_cmds=$lt_module_expsym_cmds_F77
16601
16602# Commands to strip libraries.
16603old_striplib=$lt_old_striplib
16604striplib=$lt_striplib
16605
16606# Dependencies to place before the objects being linked to create a
16607# shared library.
16608predep_objects=$lt_predep_objects_F77
16609
16610# Dependencies to place after the objects being linked to create a
16611# shared library.
16612postdep_objects=$lt_postdep_objects_F77
16613
16614# Dependencies to place before the objects being linked to create a
16615# shared library.
16616predeps=$lt_predeps_F77
16617
16618# Dependencies to place after the objects being linked to create a
16619# shared library.
16620postdeps=$lt_postdeps_F77
16621
16622# The directories searched by this compiler when creating a shared
16623# library
16624compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16625
16626# The library search path used internally by the compiler when linking
16627# a shared library.
16628compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16629
16630# Method to check whether dependent libraries are shared objects.
16631deplibs_check_method=$lt_deplibs_check_method
16632
16633# Command to use when deplibs_check_method == file_magic.
16634file_magic_cmd=$lt_file_magic_cmd
16635
16636# Flag that allows shared libraries with undefined symbols to be built.
16637allow_undefined_flag=$lt_allow_undefined_flag_F77
16638
16639# Flag that forces no undefined symbols.
16640no_undefined_flag=$lt_no_undefined_flag_F77
16641
16642# Commands used to finish a libtool library installation in a directory.
16643finish_cmds=$lt_finish_cmds
16644
16645# Same as above, but a single script fragment to be evaled but not shown.
16646finish_eval=$lt_finish_eval
16647
16648# Take the output of nm and produce a listing of raw symbols and C names.
16649global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16650
16651# Transform the output of nm in a proper C declaration
16652global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16653
16654# Transform the output of nm in a C name address pair
16655global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16656
16657# This is the shared library runtime path variable.
16658runpath_var=$runpath_var
16659
16660# This is the shared library path variable.
16661shlibpath_var=$shlibpath_var
16662
16663# Is shlibpath searched before the hard-coded library search path?
16664shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16665
16666# How to hardcode a shared library path into an executable.
16667hardcode_action=$hardcode_action_F77
16668
16669# Whether we should hardcode library paths into libraries.
16670hardcode_into_libs=$hardcode_into_libs
16671
16672# Flag to hardcode \$libdir into a binary during linking.
16673# This must work even if \$libdir does not exist.
16674hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16675
16676# If ld is used when linking, flag to hardcode \$libdir into
16677# a binary during linking. This must work even if \$libdir does
16678# not exist.
16679hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16680
16681# Whether we need a single -rpath flag with a separated argument.
16682hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16683
16684# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16685# resulting binary.
16686hardcode_direct=$hardcode_direct_F77
16687
16688# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16689# resulting binary.
16690hardcode_minus_L=$hardcode_minus_L_F77
16691
16692# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16693# the resulting binary.
16694hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16695
16696# Set to yes if building a shared library automatically hardcodes DIR into the library
16697# and all subsequent libraries and executables linked against it.
16698hardcode_automatic=$hardcode_automatic_F77
16699
16700# Variables whose values should be saved in libtool wrapper scripts and
16701# restored at relink time.
16702variables_saved_for_relink="$variables_saved_for_relink"
16703
16704# Whether libtool must link a program against all its dependency libraries.
16705link_all_deplibs=$link_all_deplibs_F77
16706
16707# Compile-time system search path for libraries
16708sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16709
16710# Run-time system search path for libraries
16711sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16712
16713# Fix the shell variable \$srcfile for the compiler.
16714fix_srcfile_path=$lt_fix_srcfile_path
16715
16716# Set to yes if exported symbols are required.
16717always_export_symbols=$always_export_symbols_F77
16718
16719# The commands to list exported symbols.
16720export_symbols_cmds=$lt_export_symbols_cmds_F77
16721
16722# The commands to extract the exported symbol list from a shared archive.
16723extract_expsyms_cmds=$lt_extract_expsyms_cmds
16724
16725# Symbols that should not be listed in the preloaded symbols.
16726exclude_expsyms=$lt_exclude_expsyms_F77
16727
16728# Symbols that must always be exported.
16729include_expsyms=$lt_include_expsyms_F77
16730
16731# ### END LIBTOOL TAG CONFIG: $tagname
16732
16733__EOF__
16734
16735
16736else
16737  # If there is no Makefile yet, we rely on a make rule to execute
16738  # `config.status --recheck' to rerun these tests and create the
16739  # libtool script then.
16740  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16741  if test -f "$ltmain_in"; then
16742    test -f Makefile && make "$ltmain"
16743  fi
16744fi
16745
16746
16747ac_ext=c
16748ac_cpp='$CPP $CPPFLAGS'
16749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16751ac_compiler_gnu=$ac_cv_c_compiler_gnu
16752
16753CC="$lt_save_CC"
16754
16755	else
16756	  tagname=""
16757	fi
16758	;;
16759
16760      GCJ)
16761	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16762
16763
16764# Source file extension for Java test sources.
16765ac_ext=java
16766
16767# Object file extension for compiled Java test sources.
16768objext=o
16769objext_GCJ=$objext
16770
16771# Code to be used in simple compile tests
16772lt_simple_compile_test_code="class foo {}"
16773
16774# Code to be used in simple link tests
16775lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16776
16777# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16778
16779# If no C compiler was specified, use CC.
16780LTCC=${LTCC-"$CC"}
16781
16782# If no C compiler flags were specified, use CFLAGS.
16783LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16784
16785# Allow CC to be a program name with arguments.
16786compiler=$CC
16787
16788
16789# save warnings/boilerplate of simple test code
16790ac_outfile=conftest.$ac_objext
16791echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16792eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16793_lt_compiler_boilerplate=`cat conftest.err`
16794$rm conftest*
16795
16796ac_outfile=conftest.$ac_objext
16797echo "$lt_simple_link_test_code" >conftest.$ac_ext
16798eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16799_lt_linker_boilerplate=`cat conftest.err`
16800$rm -r conftest*
16801
16802
16803# Allow CC to be a program name with arguments.
16804lt_save_CC="$CC"
16805CC=${GCJ-"gcj"}
16806compiler=$CC
16807compiler_GCJ=$CC
16808for cc_temp in $compiler""; do
16809  case $cc_temp in
16810    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16811    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16812    \-*) ;;
16813    *) break;;
16814  esac
16815done
16816cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16817
16818
16819# GCJ did not exist at the time GCC didn't implicitly link libc in.
16820archive_cmds_need_lc_GCJ=no
16821
16822old_archive_cmds_GCJ=$old_archive_cmds
16823
16824
16825lt_prog_compiler_no_builtin_flag_GCJ=
16826
16827if test "$GCC" = yes; then
16828  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16829
16830
16831{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16832$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16833if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16834  $as_echo_n "(cached) " >&6
16835else
16836  lt_cv_prog_compiler_rtti_exceptions=no
16837  ac_outfile=conftest.$ac_objext
16838   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16839   lt_compiler_flag="-fno-rtti -fno-exceptions"
16840   # Insert the option either (1) after the last *FLAGS variable, or
16841   # (2) before a word containing "conftest.", or (3) at the end.
16842   # Note that $ac_compile itself does not contain backslashes and begins
16843   # with a dollar sign (not a hyphen), so the echo should work correctly.
16844   # The option is referenced via a variable to avoid confusing sed.
16845   lt_compile=`echo "$ac_compile" | $SED \
16846   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16847   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16848   -e 's:$: $lt_compiler_flag:'`
16849   (eval echo "\"\$as_me:16849: $lt_compile\"" >&5)
16850   (eval "$lt_compile" 2>conftest.err)
16851   ac_status=$?
16852   cat conftest.err >&5
16853   echo "$as_me:16853: \$? = $ac_status" >&5
16854   if (exit $ac_status) && test -s "$ac_outfile"; then
16855     # The compiler can only warn and ignore the option if not recognized
16856     # So say no if there are warnings other than the usual output.
16857     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16858     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16859     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16860       lt_cv_prog_compiler_rtti_exceptions=yes
16861     fi
16862   fi
16863   $rm conftest*
16864
16865fi
16866{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16867$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16868
16869if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16870    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16871else
16872    :
16873fi
16874
16875fi
16876
16877lt_prog_compiler_wl_GCJ=
16878lt_prog_compiler_pic_GCJ=
16879lt_prog_compiler_static_GCJ=
16880
16881{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16882$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16883
16884  if test "$GCC" = yes; then
16885    lt_prog_compiler_wl_GCJ='-Wl,'
16886    lt_prog_compiler_static_GCJ='-static'
16887
16888    case $host_os in
16889      aix*)
16890      # All AIX code is PIC.
16891      if test "$host_cpu" = ia64; then
16892	# AIX 5 now supports IA64 processor
16893	lt_prog_compiler_static_GCJ='-Bstatic'
16894      fi
16895      ;;
16896
16897    amigaos*)
16898      # FIXME: we need at least 68020 code to build shared libraries, but
16899      # adding the `-m68020' flag to GCC prevents building anything better,
16900      # like `-m68040'.
16901      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16902      ;;
16903
16904    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16905      # PIC is the default for these OSes.
16906      ;;
16907
16908    mingw* | cygwin* | pw32* | os2*)
16909      # This hack is so that the source file can tell whether it is being
16910      # built for inclusion in a dll (and should export symbols for example).
16911      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16912      # (--disable-auto-import) libraries
16913
16914      ;;
16915
16916    darwin* | rhapsody*)
16917      # PIC is the default on this platform
16918      # Common symbols not allowed in MH_DYLIB files
16919      lt_prog_compiler_pic_GCJ='-fno-common'
16920      ;;
16921
16922    interix[3-9]*)
16923      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16924      # Instead, we relocate shared libraries at runtime.
16925      ;;
16926
16927    msdosdjgpp*)
16928      # Just because we use GCC doesn't mean we suddenly get shared libraries
16929      # on systems that don't support them.
16930      lt_prog_compiler_can_build_shared_GCJ=no
16931      enable_shared=no
16932      ;;
16933
16934    sysv4*MP*)
16935      if test -d /usr/nec; then
16936	lt_prog_compiler_pic_GCJ=-Kconform_pic
16937      fi
16938      ;;
16939
16940    hpux*)
16941      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16942      # not for PA HP-UX.
16943      case $host_cpu in
16944      hppa*64*|ia64*)
16945	# +Z the default
16946	;;
16947      *)
16948	lt_prog_compiler_pic_GCJ='-fPIC'
16949	;;
16950      esac
16951      ;;
16952
16953    *)
16954      lt_prog_compiler_pic_GCJ='-fPIC'
16955      ;;
16956    esac
16957  else
16958    # PORTME Check for flag to pass linker flags through the system compiler.
16959    case $host_os in
16960    aix*)
16961      lt_prog_compiler_wl_GCJ='-Wl,'
16962      if test "$host_cpu" = ia64; then
16963	# AIX 5 now supports IA64 processor
16964	lt_prog_compiler_static_GCJ='-Bstatic'
16965      else
16966	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16967      fi
16968      ;;
16969      darwin*)
16970        # PIC is the default on this platform
16971        # Common symbols not allowed in MH_DYLIB files
16972       case $cc_basename in
16973         xlc*)
16974         lt_prog_compiler_pic_GCJ='-qnocommon'
16975         lt_prog_compiler_wl_GCJ='-Wl,'
16976         ;;
16977       esac
16978       ;;
16979
16980    mingw* | cygwin* | pw32* | os2*)
16981      # This hack is so that the source file can tell whether it is being
16982      # built for inclusion in a dll (and should export symbols for example).
16983
16984      ;;
16985
16986    hpux9* | hpux10* | hpux11*)
16987      lt_prog_compiler_wl_GCJ='-Wl,'
16988      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16989      # not for PA HP-UX.
16990      case $host_cpu in
16991      hppa*64*|ia64*)
16992	# +Z the default
16993	;;
16994      *)
16995	lt_prog_compiler_pic_GCJ='+Z'
16996	;;
16997      esac
16998      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16999      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17000      ;;
17001
17002    irix5* | irix6* | nonstopux*)
17003      lt_prog_compiler_wl_GCJ='-Wl,'
17004      # PIC (with -KPIC) is the default.
17005      lt_prog_compiler_static_GCJ='-non_shared'
17006      ;;
17007
17008    newsos6)
17009      lt_prog_compiler_pic_GCJ='-KPIC'
17010      lt_prog_compiler_static_GCJ='-Bstatic'
17011      ;;
17012
17013    linux* | k*bsd*-gnu)
17014      case $cc_basename in
17015      icc* | ecc*)
17016	lt_prog_compiler_wl_GCJ='-Wl,'
17017	lt_prog_compiler_pic_GCJ='-KPIC'
17018	lt_prog_compiler_static_GCJ='-static'
17019        ;;
17020      pgcc* | pgf77* | pgf90* | pgf95*)
17021        # Portland Group compilers (*not* the Pentium gcc compiler,
17022	# which looks to be a dead project)
17023	lt_prog_compiler_wl_GCJ='-Wl,'
17024	lt_prog_compiler_pic_GCJ='-fpic'
17025	lt_prog_compiler_static_GCJ='-Bstatic'
17026        ;;
17027      ccc*)
17028        lt_prog_compiler_wl_GCJ='-Wl,'
17029        # All Alpha code is PIC.
17030        lt_prog_compiler_static_GCJ='-non_shared'
17031        ;;
17032      *)
17033        case `$CC -V 2>&1 | sed 5q` in
17034	*Sun\ C*)
17035	  # Sun C 5.9
17036	  lt_prog_compiler_pic_GCJ='-KPIC'
17037	  lt_prog_compiler_static_GCJ='-Bstatic'
17038	  lt_prog_compiler_wl_GCJ='-Wl,'
17039	  ;;
17040	*Sun\ F*)
17041	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17042	  lt_prog_compiler_pic_GCJ='-KPIC'
17043	  lt_prog_compiler_static_GCJ='-Bstatic'
17044	  lt_prog_compiler_wl_GCJ=''
17045	  ;;
17046	esac
17047	;;
17048      esac
17049      ;;
17050
17051    osf3* | osf4* | osf5*)
17052      lt_prog_compiler_wl_GCJ='-Wl,'
17053      # All OSF/1 code is PIC.
17054      lt_prog_compiler_static_GCJ='-non_shared'
17055      ;;
17056
17057    rdos*)
17058      lt_prog_compiler_static_GCJ='-non_shared'
17059      ;;
17060
17061    solaris*)
17062      lt_prog_compiler_pic_GCJ='-KPIC'
17063      lt_prog_compiler_static_GCJ='-Bstatic'
17064      case $cc_basename in
17065      f77* | f90* | f95*)
17066	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17067      *)
17068	lt_prog_compiler_wl_GCJ='-Wl,';;
17069      esac
17070      ;;
17071
17072    sunos4*)
17073      lt_prog_compiler_wl_GCJ='-Qoption ld '
17074      lt_prog_compiler_pic_GCJ='-PIC'
17075      lt_prog_compiler_static_GCJ='-Bstatic'
17076      ;;
17077
17078    sysv4 | sysv4.2uw2* | sysv4.3*)
17079      lt_prog_compiler_wl_GCJ='-Wl,'
17080      lt_prog_compiler_pic_GCJ='-KPIC'
17081      lt_prog_compiler_static_GCJ='-Bstatic'
17082      ;;
17083
17084    sysv4*MP*)
17085      if test -d /usr/nec ;then
17086	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17087	lt_prog_compiler_static_GCJ='-Bstatic'
17088      fi
17089      ;;
17090
17091    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17092      lt_prog_compiler_wl_GCJ='-Wl,'
17093      lt_prog_compiler_pic_GCJ='-KPIC'
17094      lt_prog_compiler_static_GCJ='-Bstatic'
17095      ;;
17096
17097    unicos*)
17098      lt_prog_compiler_wl_GCJ='-Wl,'
17099      lt_prog_compiler_can_build_shared_GCJ=no
17100      ;;
17101
17102    uts4*)
17103      lt_prog_compiler_pic_GCJ='-pic'
17104      lt_prog_compiler_static_GCJ='-Bstatic'
17105      ;;
17106
17107    *)
17108      lt_prog_compiler_can_build_shared_GCJ=no
17109      ;;
17110    esac
17111  fi
17112
17113{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17114$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17115
17116#
17117# Check to make sure the PIC flag actually works.
17118#
17119if test -n "$lt_prog_compiler_pic_GCJ"; then
17120
17121{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17122$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17123if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17124  $as_echo_n "(cached) " >&6
17125else
17126  lt_cv_prog_compiler_pic_works_GCJ=no
17127  ac_outfile=conftest.$ac_objext
17128   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17129   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17130   # Insert the option either (1) after the last *FLAGS variable, or
17131   # (2) before a word containing "conftest.", or (3) at the end.
17132   # Note that $ac_compile itself does not contain backslashes and begins
17133   # with a dollar sign (not a hyphen), so the echo should work correctly.
17134   # The option is referenced via a variable to avoid confusing sed.
17135   lt_compile=`echo "$ac_compile" | $SED \
17136   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17137   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17138   -e 's:$: $lt_compiler_flag:'`
17139   (eval echo "\"\$as_me:17139: $lt_compile\"" >&5)
17140   (eval "$lt_compile" 2>conftest.err)
17141   ac_status=$?
17142   cat conftest.err >&5
17143   echo "$as_me:17143: \$? = $ac_status" >&5
17144   if (exit $ac_status) && test -s "$ac_outfile"; then
17145     # The compiler can only warn and ignore the option if not recognized
17146     # So say no if there are warnings other than the usual output.
17147     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17148     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17149     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17150       lt_cv_prog_compiler_pic_works_GCJ=yes
17151     fi
17152   fi
17153   $rm conftest*
17154
17155fi
17156{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17157$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17158
17159if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17160    case $lt_prog_compiler_pic_GCJ in
17161     "" | " "*) ;;
17162     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17163     esac
17164else
17165    lt_prog_compiler_pic_GCJ=
17166     lt_prog_compiler_can_build_shared_GCJ=no
17167fi
17168
17169fi
17170case $host_os in
17171  # For platforms which do not support PIC, -DPIC is meaningless:
17172  *djgpp*)
17173    lt_prog_compiler_pic_GCJ=
17174    ;;
17175  *)
17176    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17177    ;;
17178esac
17179
17180#
17181# Check to make sure the static flag actually works.
17182#
17183wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17184{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17185$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17186if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17187  $as_echo_n "(cached) " >&6
17188else
17189  lt_cv_prog_compiler_static_works_GCJ=no
17190   save_LDFLAGS="$LDFLAGS"
17191   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17192   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17193   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17194     # The linker can only warn and ignore the option if not recognized
17195     # So say no if there are warnings
17196     if test -s conftest.err; then
17197       # Append any errors to the config.log.
17198       cat conftest.err 1>&5
17199       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17200       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17201       if diff conftest.exp conftest.er2 >/dev/null; then
17202         lt_cv_prog_compiler_static_works_GCJ=yes
17203       fi
17204     else
17205       lt_cv_prog_compiler_static_works_GCJ=yes
17206     fi
17207   fi
17208   $rm -r conftest*
17209   LDFLAGS="$save_LDFLAGS"
17210
17211fi
17212{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17213$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17214
17215if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17216    :
17217else
17218    lt_prog_compiler_static_GCJ=
17219fi
17220
17221
17222{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17223$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17224if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17225  $as_echo_n "(cached) " >&6
17226else
17227  lt_cv_prog_compiler_c_o_GCJ=no
17228   $rm -r conftest 2>/dev/null
17229   mkdir conftest
17230   cd conftest
17231   mkdir out
17232   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17233
17234   lt_compiler_flag="-o out/conftest2.$ac_objext"
17235   # Insert the option either (1) after the last *FLAGS variable, or
17236   # (2) before a word containing "conftest.", or (3) at the end.
17237   # Note that $ac_compile itself does not contain backslashes and begins
17238   # with a dollar sign (not a hyphen), so the echo should work correctly.
17239   lt_compile=`echo "$ac_compile" | $SED \
17240   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17241   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17242   -e 's:$: $lt_compiler_flag:'`
17243   (eval echo "\"\$as_me:17243: $lt_compile\"" >&5)
17244   (eval "$lt_compile" 2>out/conftest.err)
17245   ac_status=$?
17246   cat out/conftest.err >&5
17247   echo "$as_me:17247: \$? = $ac_status" >&5
17248   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17249   then
17250     # The compiler can only warn and ignore the option if not recognized
17251     # So say no if there are warnings
17252     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17253     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17254     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17255       lt_cv_prog_compiler_c_o_GCJ=yes
17256     fi
17257   fi
17258   chmod u+w . 2>&5
17259   $rm conftest*
17260   # SGI C++ compiler will create directory out/ii_files/ for
17261   # template instantiation
17262   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17263   $rm out/* && rmdir out
17264   cd ..
17265   rmdir conftest
17266   $rm conftest*
17267
17268fi
17269{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17270$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17271
17272
17273hard_links="nottested"
17274if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17275  # do not overwrite the value of need_locks provided by the user
17276  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17277$as_echo_n "checking if we can lock with hard links... " >&6; }
17278  hard_links=yes
17279  $rm conftest*
17280  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17281  touch conftest.a
17282  ln conftest.a conftest.b 2>&5 || hard_links=no
17283  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17284  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17285$as_echo "$hard_links" >&6; }
17286  if test "$hard_links" = no; then
17287    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17288$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17289    need_locks=warn
17290  fi
17291else
17292  need_locks=no
17293fi
17294
17295{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17296$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17297
17298  runpath_var=
17299  allow_undefined_flag_GCJ=
17300  enable_shared_with_static_runtimes_GCJ=no
17301  archive_cmds_GCJ=
17302  archive_expsym_cmds_GCJ=
17303  old_archive_From_new_cmds_GCJ=
17304  old_archive_from_expsyms_cmds_GCJ=
17305  export_dynamic_flag_spec_GCJ=
17306  whole_archive_flag_spec_GCJ=
17307  thread_safe_flag_spec_GCJ=
17308  hardcode_libdir_flag_spec_GCJ=
17309  hardcode_libdir_flag_spec_ld_GCJ=
17310  hardcode_libdir_separator_GCJ=
17311  hardcode_direct_GCJ=no
17312  hardcode_minus_L_GCJ=no
17313  hardcode_shlibpath_var_GCJ=unsupported
17314  link_all_deplibs_GCJ=unknown
17315  hardcode_automatic_GCJ=no
17316  module_cmds_GCJ=
17317  module_expsym_cmds_GCJ=
17318  always_export_symbols_GCJ=no
17319  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17320  # include_expsyms should be a list of space-separated symbols to be *always*
17321  # included in the symbol list
17322  include_expsyms_GCJ=
17323  # exclude_expsyms can be an extended regexp of symbols to exclude
17324  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17325  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17326  # as well as any symbol that contains `d'.
17327  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17328  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17329  # platforms (ab)use it in PIC code, but their linkers get confused if
17330  # the symbol is explicitly referenced.  Since portable code cannot
17331  # rely on this symbol name, it's probably fine to never include it in
17332  # preloaded symbol tables.
17333  # Exclude shared library initialization/finalization symbols.
17334  extract_expsyms_cmds=
17335  # Just being paranoid about ensuring that cc_basename is set.
17336  for cc_temp in $compiler""; do
17337  case $cc_temp in
17338    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17339    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17340    \-*) ;;
17341    *) break;;
17342  esac
17343done
17344cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17345
17346  case $host_os in
17347  cygwin* | mingw* | pw32*)
17348    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17349    # When not using gcc, we currently assume that we are using
17350    # Microsoft Visual C++.
17351    if test "$GCC" != yes; then
17352      with_gnu_ld=no
17353    fi
17354    ;;
17355  interix*)
17356    # we just hope/assume this is gcc and not c89 (= MSVC++)
17357    with_gnu_ld=yes
17358    ;;
17359  openbsd*)
17360    with_gnu_ld=no
17361    ;;
17362  esac
17363
17364  ld_shlibs_GCJ=yes
17365  if test "$with_gnu_ld" = yes; then
17366    # If archive_cmds runs LD, not CC, wlarc should be empty
17367    wlarc='${wl}'
17368
17369    # Set some defaults for GNU ld with shared library support. These
17370    # are reset later if shared libraries are not supported. Putting them
17371    # here allows them to be overridden if necessary.
17372    runpath_var=LD_RUN_PATH
17373    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17374    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17375    # ancient GNU ld didn't support --whole-archive et. al.
17376    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17377	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17378      else
17379  	whole_archive_flag_spec_GCJ=
17380    fi
17381    supports_anon_versioning=no
17382    case `$LD -v 2>/dev/null` in
17383      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17384      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17385      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17386      *\ 2.11.*) ;; # other 2.11 versions
17387      *) supports_anon_versioning=yes ;;
17388    esac
17389
17390    # See if GNU ld supports shared libraries.
17391    case $host_os in
17392    aix[3-9]*)
17393      # On AIX/PPC, the GNU linker is very broken
17394      if test "$host_cpu" != ia64; then
17395	ld_shlibs_GCJ=no
17396	cat <<EOF 1>&2
17397
17398*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17399*** to be unable to reliably create shared libraries on AIX.
17400*** Therefore, libtool is disabling shared libraries support.  If you
17401*** really care for shared libraries, you may want to modify your PATH
17402*** so that a non-GNU linker is found, and then restart.
17403
17404EOF
17405      fi
17406      ;;
17407
17408    amigaos*)
17409      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)'
17410      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17411      hardcode_minus_L_GCJ=yes
17412
17413      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17414      # that the semantics of dynamic libraries on AmigaOS, at least up
17415      # to version 4, is to share data among multiple programs linked
17416      # with the same dynamic library.  Since this doesn't match the
17417      # behavior of shared libraries on other platforms, we can't use
17418      # them.
17419      ld_shlibs_GCJ=no
17420      ;;
17421
17422    beos*)
17423      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17424	allow_undefined_flag_GCJ=unsupported
17425	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17426	# support --undefined.  This deserves some investigation.  FIXME
17427	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17428      else
17429	ld_shlibs_GCJ=no
17430      fi
17431      ;;
17432
17433    cygwin* | mingw* | pw32*)
17434      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17435      # as there is no search path for DLLs.
17436      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17437      allow_undefined_flag_GCJ=unsupported
17438      always_export_symbols_GCJ=no
17439      enable_shared_with_static_runtimes_GCJ=yes
17440      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17441
17442      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17443        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17444	# If the export-symbols file already is a .def file (1st line
17445	# is EXPORTS), use it as is; otherwise, prepend...
17446	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17447	  cp $export_symbols $output_objdir/$soname.def;
17448	else
17449	  echo EXPORTS > $output_objdir/$soname.def;
17450	  cat $export_symbols >> $output_objdir/$soname.def;
17451	fi~
17452	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17453      else
17454	ld_shlibs_GCJ=no
17455      fi
17456      ;;
17457
17458    interix[3-9]*)
17459      hardcode_direct_GCJ=no
17460      hardcode_shlibpath_var_GCJ=no
17461      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17462      export_dynamic_flag_spec_GCJ='${wl}-E'
17463      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17464      # Instead, shared libraries are loaded at an image base (0x10000000 by
17465      # default) and relocated if they conflict, which is a slow very memory
17466      # consuming and fragmenting process.  To avoid this, we pick a random,
17467      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17468      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17469      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'
17470      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'
17471      ;;
17472
17473    gnu* | linux* | k*bsd*-gnu)
17474      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17475	tmp_addflag=
17476	case $cc_basename,$host_cpu in
17477	pgcc*)				# Portland Group C compiler
17478	  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'
17479	  tmp_addflag=' $pic_flag'
17480	  ;;
17481	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17482	  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'
17483	  tmp_addflag=' $pic_flag -Mnomain' ;;
17484	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17485	  tmp_addflag=' -i_dynamic' ;;
17486	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17487	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17488	ifc* | ifort*)			# Intel Fortran compiler
17489	  tmp_addflag=' -nofor_main' ;;
17490	esac
17491	case `$CC -V 2>&1 | sed 5q` in
17492	*Sun\ C*)			# Sun C 5.9
17493	  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'
17494	  tmp_sharedflag='-G' ;;
17495	*Sun\ F*)			# Sun Fortran 8.3
17496	  tmp_sharedflag='-G' ;;
17497	*)
17498	  tmp_sharedflag='-shared' ;;
17499	esac
17500	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17501
17502	if test $supports_anon_versioning = yes; then
17503	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17504  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17505  $echo "local: *; };" >> $output_objdir/$libname.ver~
17506	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17507	fi
17508      else
17509	ld_shlibs_GCJ=no
17510      fi
17511      ;;
17512
17513    netbsd*)
17514      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17515	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17516	wlarc=
17517      else
17518	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17519	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17520      fi
17521      ;;
17522
17523    solaris*)
17524      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17525	ld_shlibs_GCJ=no
17526	cat <<EOF 1>&2
17527
17528*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17529*** create shared libraries on Solaris systems.  Therefore, libtool
17530*** is disabling shared libraries support.  We urge you to upgrade GNU
17531*** binutils to release 2.9.1 or newer.  Another option is to modify
17532*** your PATH or compiler configuration so that the native linker is
17533*** used, and then restart.
17534
17535EOF
17536      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17537	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17538	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17539      else
17540	ld_shlibs_GCJ=no
17541      fi
17542      ;;
17543
17544    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17545      case `$LD -v 2>&1` in
17546        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17547	ld_shlibs_GCJ=no
17548	cat <<_LT_EOF 1>&2
17549
17550*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17551*** reliably create shared libraries on SCO systems.  Therefore, libtool
17552*** is disabling shared libraries support.  We urge you to upgrade GNU
17553*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17554*** your PATH or compiler configuration so that the native linker is
17555*** used, and then restart.
17556
17557_LT_EOF
17558	;;
17559	*)
17560	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17561	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17562	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17563	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17564	  else
17565	    ld_shlibs_GCJ=no
17566	  fi
17567	;;
17568      esac
17569      ;;
17570
17571    sunos4*)
17572      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17573      wlarc=
17574      hardcode_direct_GCJ=yes
17575      hardcode_shlibpath_var_GCJ=no
17576      ;;
17577
17578    *)
17579      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17580	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17581	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17582      else
17583	ld_shlibs_GCJ=no
17584      fi
17585      ;;
17586    esac
17587
17588    if test "$ld_shlibs_GCJ" = no; then
17589      runpath_var=
17590      hardcode_libdir_flag_spec_GCJ=
17591      export_dynamic_flag_spec_GCJ=
17592      whole_archive_flag_spec_GCJ=
17593    fi
17594  else
17595    # PORTME fill in a description of your system's linker (not GNU ld)
17596    case $host_os in
17597    aix3*)
17598      allow_undefined_flag_GCJ=unsupported
17599      always_export_symbols_GCJ=yes
17600      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'
17601      # Note: this linker hardcodes the directories in LIBPATH if there
17602      # are no directories specified by -L.
17603      hardcode_minus_L_GCJ=yes
17604      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17605	# Neither direct hardcoding nor static linking is supported with a
17606	# broken collect2.
17607	hardcode_direct_GCJ=unsupported
17608      fi
17609      ;;
17610
17611    aix[4-9]*)
17612      if test "$host_cpu" = ia64; then
17613	# On IA64, the linker does run time linking by default, so we don't
17614	# have to do anything special.
17615	aix_use_runtimelinking=no
17616	exp_sym_flag='-Bexport'
17617	no_entry_flag=""
17618      else
17619	# If we're using GNU nm, then we don't want the "-C" option.
17620	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17621	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17622	  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'
17623	else
17624	  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'
17625	fi
17626	aix_use_runtimelinking=no
17627
17628	# Test if we are trying to use run time linking or normal
17629	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17630	# need to do runtime linking.
17631	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17632	  for ld_flag in $LDFLAGS; do
17633  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17634  	    aix_use_runtimelinking=yes
17635  	    break
17636  	  fi
17637	  done
17638	  ;;
17639	esac
17640
17641	exp_sym_flag='-bexport'
17642	no_entry_flag='-bnoentry'
17643      fi
17644
17645      # When large executables or shared objects are built, AIX ld can
17646      # have problems creating the table of contents.  If linking a library
17647      # or program results in "error TOC overflow" add -mminimal-toc to
17648      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17649      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17650
17651      archive_cmds_GCJ=''
17652      hardcode_direct_GCJ=yes
17653      hardcode_libdir_separator_GCJ=':'
17654      link_all_deplibs_GCJ=yes
17655
17656      if test "$GCC" = yes; then
17657	case $host_os in aix4.[012]|aix4.[012].*)
17658	# We only want to do this on AIX 4.2 and lower, the check
17659	# below for broken collect2 doesn't work under 4.3+
17660	  collect2name=`${CC} -print-prog-name=collect2`
17661	  if test -f "$collect2name" && \
17662  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17663	  then
17664  	  # We have reworked collect2
17665  	  :
17666	  else
17667  	  # We have old collect2
17668  	  hardcode_direct_GCJ=unsupported
17669  	  # It fails to find uninstalled libraries when the uninstalled
17670  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17671  	  # to unsupported forces relinking
17672  	  hardcode_minus_L_GCJ=yes
17673  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17674  	  hardcode_libdir_separator_GCJ=
17675	  fi
17676	  ;;
17677	esac
17678	shared_flag='-shared'
17679	if test "$aix_use_runtimelinking" = yes; then
17680	  shared_flag="$shared_flag "'${wl}-G'
17681	fi
17682      else
17683	# not using gcc
17684	if test "$host_cpu" = ia64; then
17685  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17686  	# chokes on -Wl,-G. The following line is correct:
17687	  shared_flag='-G'
17688	else
17689	  if test "$aix_use_runtimelinking" = yes; then
17690	    shared_flag='${wl}-G'
17691	  else
17692	    shared_flag='${wl}-bM:SRE'
17693	  fi
17694	fi
17695      fi
17696
17697      # It seems that -bexpall does not export symbols beginning with
17698      # underscore (_), so it is better to generate a list of symbols to export.
17699      always_export_symbols_GCJ=yes
17700      if test "$aix_use_runtimelinking" = yes; then
17701	# Warning - without using the other runtime loading flags (-brtl),
17702	# -berok will link without error, but may produce a broken library.
17703	allow_undefined_flag_GCJ='-berok'
17704       # Determine the default libpath from the value encoded in an empty executable.
17705       cat >conftest.$ac_ext <<_ACEOF
17706/* confdefs.h.  */
17707_ACEOF
17708cat confdefs.h >>conftest.$ac_ext
17709cat >>conftest.$ac_ext <<_ACEOF
17710/* end confdefs.h.  */
17711
17712int
17713main ()
17714{
17715
17716  ;
17717  return 0;
17718}
17719_ACEOF
17720rm -f conftest.$ac_objext conftest$ac_exeext
17721if { (ac_try="$ac_link"
17722case "(($ac_try" in
17723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724  *) ac_try_echo=$ac_try;;
17725esac
17726eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17727$as_echo "$ac_try_echo") >&5
17728  (eval "$ac_link") 2>conftest.er1
17729  ac_status=$?
17730  grep -v '^ *+' conftest.er1 >conftest.err
17731  rm -f conftest.er1
17732  cat conftest.err >&5
17733  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734  (exit $ac_status); } && {
17735	 test -z "$ac_c_werror_flag" ||
17736	 test ! -s conftest.err
17737       } && test -s conftest$ac_exeext && {
17738	 test "$cross_compiling" = yes ||
17739	 $as_test_x conftest$ac_exeext
17740       }; then
17741
17742lt_aix_libpath_sed='
17743    /Import File Strings/,/^$/ {
17744	/^0/ {
17745	    s/^0  *\(.*\)$/\1/
17746	    p
17747	}
17748    }'
17749aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17750# Check for a 64-bit object if we didn't find anything.
17751if test -z "$aix_libpath"; then
17752  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17753fi
17754else
17755  $as_echo "$as_me: failed program was:" >&5
17756sed 's/^/| /' conftest.$ac_ext >&5
17757
17758
17759fi
17760
17761rm -rf conftest.dSYM
17762rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17763      conftest$ac_exeext conftest.$ac_ext
17764if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17765
17766       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17767	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"
17768       else
17769	if test "$host_cpu" = ia64; then
17770	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17771	  allow_undefined_flag_GCJ="-z nodefs"
17772	  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"
17773	else
17774	 # Determine the default libpath from the value encoded in an empty executable.
17775	 cat >conftest.$ac_ext <<_ACEOF
17776/* confdefs.h.  */
17777_ACEOF
17778cat confdefs.h >>conftest.$ac_ext
17779cat >>conftest.$ac_ext <<_ACEOF
17780/* end confdefs.h.  */
17781
17782int
17783main ()
17784{
17785
17786  ;
17787  return 0;
17788}
17789_ACEOF
17790rm -f conftest.$ac_objext conftest$ac_exeext
17791if { (ac_try="$ac_link"
17792case "(($ac_try" in
17793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794  *) ac_try_echo=$ac_try;;
17795esac
17796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17797$as_echo "$ac_try_echo") >&5
17798  (eval "$ac_link") 2>conftest.er1
17799  ac_status=$?
17800  grep -v '^ *+' conftest.er1 >conftest.err
17801  rm -f conftest.er1
17802  cat conftest.err >&5
17803  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804  (exit $ac_status); } && {
17805	 test -z "$ac_c_werror_flag" ||
17806	 test ! -s conftest.err
17807       } && test -s conftest$ac_exeext && {
17808	 test "$cross_compiling" = yes ||
17809	 $as_test_x conftest$ac_exeext
17810       }; then
17811
17812lt_aix_libpath_sed='
17813    /Import File Strings/,/^$/ {
17814	/^0/ {
17815	    s/^0  *\(.*\)$/\1/
17816	    p
17817	}
17818    }'
17819aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17820# Check for a 64-bit object if we didn't find anything.
17821if test -z "$aix_libpath"; then
17822  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17823fi
17824else
17825  $as_echo "$as_me: failed program was:" >&5
17826sed 's/^/| /' conftest.$ac_ext >&5
17827
17828
17829fi
17830
17831rm -rf conftest.dSYM
17832rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17833      conftest$ac_exeext conftest.$ac_ext
17834if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17835
17836	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17837	  # Warning - without using the other run time loading flags,
17838	  # -berok will link without error, but may produce a broken library.
17839	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17840	  allow_undefined_flag_GCJ=' ${wl}-berok'
17841	  # Exported symbols can be pulled into shared objects from archives
17842	  whole_archive_flag_spec_GCJ='$convenience'
17843	  archive_cmds_need_lc_GCJ=yes
17844	  # This is similar to how AIX traditionally builds its shared libraries.
17845	  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'
17846	fi
17847      fi
17848      ;;
17849
17850    amigaos*)
17851      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)'
17852      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17853      hardcode_minus_L_GCJ=yes
17854      # see comment about different semantics on the GNU ld section
17855      ld_shlibs_GCJ=no
17856      ;;
17857
17858    bsdi[45]*)
17859      export_dynamic_flag_spec_GCJ=-rdynamic
17860      ;;
17861
17862    cygwin* | mingw* | pw32*)
17863      # When not using gcc, we currently assume that we are using
17864      # Microsoft Visual C++.
17865      # hardcode_libdir_flag_spec is actually meaningless, as there is
17866      # no search path for DLLs.
17867      hardcode_libdir_flag_spec_GCJ=' '
17868      allow_undefined_flag_GCJ=unsupported
17869      # Tell ltmain to make .lib files, not .a files.
17870      libext=lib
17871      # Tell ltmain to make .dll files, not .so files.
17872      shrext_cmds=".dll"
17873      # FIXME: Setting linknames here is a bad hack.
17874      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17875      # The linker will automatically build a .lib file if we build a DLL.
17876      old_archive_From_new_cmds_GCJ='true'
17877      # FIXME: Should let the user specify the lib program.
17878      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17879      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17880      enable_shared_with_static_runtimes_GCJ=yes
17881      ;;
17882
17883    darwin* | rhapsody*)
17884      case $host_os in
17885        rhapsody* | darwin1.[012])
17886         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17887         ;;
17888       *) # Darwin 1.3 on
17889         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17890           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17891         else
17892           case ${MACOSX_DEPLOYMENT_TARGET} in
17893             10.[012])
17894               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17895               ;;
17896             10.*)
17897               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17898               ;;
17899           esac
17900         fi
17901         ;;
17902      esac
17903      archive_cmds_need_lc_GCJ=no
17904      hardcode_direct_GCJ=no
17905      hardcode_automatic_GCJ=yes
17906      hardcode_shlibpath_var_GCJ=unsupported
17907      whole_archive_flag_spec_GCJ=''
17908      link_all_deplibs_GCJ=yes
17909    if test "$GCC" = yes ; then
17910    	output_verbose_link_cmd='echo'
17911        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}"
17912        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17913        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}"
17914        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}"
17915    else
17916      case $cc_basename in
17917        xlc*)
17918         output_verbose_link_cmd='echo'
17919         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17920         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17921          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17922         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}'
17923          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}'
17924          ;;
17925       *)
17926         ld_shlibs_GCJ=no
17927          ;;
17928      esac
17929    fi
17930      ;;
17931
17932    dgux*)
17933      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17934      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17935      hardcode_shlibpath_var_GCJ=no
17936      ;;
17937
17938    freebsd1*)
17939      ld_shlibs_GCJ=no
17940      ;;
17941
17942    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17943    # support.  Future versions do this automatically, but an explicit c++rt0.o
17944    # does not break anything, and helps significantly (at the cost of a little
17945    # extra space).
17946    freebsd2.2*)
17947      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17948      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17949      hardcode_direct_GCJ=yes
17950      hardcode_shlibpath_var_GCJ=no
17951      ;;
17952
17953    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17954    freebsd2*)
17955      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17956      hardcode_direct_GCJ=yes
17957      hardcode_minus_L_GCJ=yes
17958      hardcode_shlibpath_var_GCJ=no
17959      ;;
17960
17961    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17962    freebsd* | dragonfly*)
17963      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17964      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17965      hardcode_direct_GCJ=yes
17966      hardcode_shlibpath_var_GCJ=no
17967      ;;
17968
17969    hpux9*)
17970      if test "$GCC" = yes; then
17971	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'
17972      else
17973	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'
17974      fi
17975      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17976      hardcode_libdir_separator_GCJ=:
17977      hardcode_direct_GCJ=yes
17978
17979      # hardcode_minus_L: Not really in the search PATH,
17980      # but as the default location of the library.
17981      hardcode_minus_L_GCJ=yes
17982      export_dynamic_flag_spec_GCJ='${wl}-E'
17983      ;;
17984
17985    hpux10*)
17986      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17987	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17988      else
17989	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17990      fi
17991      if test "$with_gnu_ld" = no; then
17992	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17993	hardcode_libdir_separator_GCJ=:
17994
17995	hardcode_direct_GCJ=yes
17996	export_dynamic_flag_spec_GCJ='${wl}-E'
17997
17998	# hardcode_minus_L: Not really in the search PATH,
17999	# but as the default location of the library.
18000	hardcode_minus_L_GCJ=yes
18001      fi
18002      ;;
18003
18004    hpux11*)
18005      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18006	case $host_cpu in
18007	hppa*64*)
18008	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18009	  ;;
18010	ia64*)
18011	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18012	  ;;
18013	*)
18014	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18015	  ;;
18016	esac
18017      else
18018	case $host_cpu in
18019	hppa*64*)
18020	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18021	  ;;
18022	ia64*)
18023	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18024	  ;;
18025	*)
18026	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18027	  ;;
18028	esac
18029      fi
18030      if test "$with_gnu_ld" = no; then
18031	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18032	hardcode_libdir_separator_GCJ=:
18033
18034	case $host_cpu in
18035	hppa*64*|ia64*)
18036	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18037	  hardcode_direct_GCJ=no
18038	  hardcode_shlibpath_var_GCJ=no
18039	  ;;
18040	*)
18041	  hardcode_direct_GCJ=yes
18042	  export_dynamic_flag_spec_GCJ='${wl}-E'
18043
18044	  # hardcode_minus_L: Not really in the search PATH,
18045	  # but as the default location of the library.
18046	  hardcode_minus_L_GCJ=yes
18047	  ;;
18048	esac
18049      fi
18050      ;;
18051
18052    irix5* | irix6* | nonstopux*)
18053      if test "$GCC" = yes; then
18054	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'
18055      else
18056	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'
18057	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18058      fi
18059      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18060      hardcode_libdir_separator_GCJ=:
18061      link_all_deplibs_GCJ=yes
18062      ;;
18063
18064    netbsd*)
18065      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18066	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18067      else
18068	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18069      fi
18070      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18071      hardcode_direct_GCJ=yes
18072      hardcode_shlibpath_var_GCJ=no
18073      ;;
18074
18075    newsos6)
18076      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18077      hardcode_direct_GCJ=yes
18078      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18079      hardcode_libdir_separator_GCJ=:
18080      hardcode_shlibpath_var_GCJ=no
18081      ;;
18082
18083    openbsd*)
18084      if test -f /usr/libexec/ld.so; then
18085	hardcode_direct_GCJ=yes
18086	hardcode_shlibpath_var_GCJ=no
18087	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18088	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18089	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18090	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18091	  export_dynamic_flag_spec_GCJ='${wl}-E'
18092	else
18093	  case $host_os in
18094	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18095	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18096	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18097	     ;;
18098	   *)
18099	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18100	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18101	     ;;
18102	  esac
18103        fi
18104      else
18105	ld_shlibs_GCJ=no
18106      fi
18107      ;;
18108
18109    os2*)
18110      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18111      hardcode_minus_L_GCJ=yes
18112      allow_undefined_flag_GCJ=unsupported
18113      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'
18114      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18115      ;;
18116
18117    osf3*)
18118      if test "$GCC" = yes; then
18119	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18120	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'
18121      else
18122	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18123	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'
18124      fi
18125      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18126      hardcode_libdir_separator_GCJ=:
18127      ;;
18128
18129    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18130      if test "$GCC" = yes; then
18131	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18132	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'
18133	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18134      else
18135	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18136	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'
18137	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~
18138	$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'
18139
18140	# Both c and cxx compiler support -rpath directly
18141	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18142      fi
18143      hardcode_libdir_separator_GCJ=:
18144      ;;
18145
18146    solaris*)
18147      no_undefined_flag_GCJ=' -z text'
18148      if test "$GCC" = yes; then
18149	wlarc='${wl}'
18150	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18151	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18152	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18153      else
18154	wlarc=''
18155	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18156	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18157  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18158      fi
18159      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18160      hardcode_shlibpath_var_GCJ=no
18161      case $host_os in
18162      solaris2.[0-5] | solaris2.[0-5].*) ;;
18163      *)
18164	# The compiler driver will combine and reorder linker options,
18165	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18166	# but is careful enough not to reorder.
18167 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18168	if test "$GCC" = yes; then
18169	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18170	else
18171	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18172	fi
18173	;;
18174      esac
18175      link_all_deplibs_GCJ=yes
18176      ;;
18177
18178    sunos4*)
18179      if test "x$host_vendor" = xsequent; then
18180	# Use $CC to link under sequent, because it throws in some extra .o
18181	# files that make .init and .fini sections work.
18182	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18183      else
18184	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18185      fi
18186      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18187      hardcode_direct_GCJ=yes
18188      hardcode_minus_L_GCJ=yes
18189      hardcode_shlibpath_var_GCJ=no
18190      ;;
18191
18192    sysv4)
18193      case $host_vendor in
18194	sni)
18195	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18196	  hardcode_direct_GCJ=yes # is this really true???
18197	;;
18198	siemens)
18199	  ## LD is ld it makes a PLAMLIB
18200	  ## CC just makes a GrossModule.
18201	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18202	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18203	  hardcode_direct_GCJ=no
18204        ;;
18205	motorola)
18206	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18207	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18208	;;
18209      esac
18210      runpath_var='LD_RUN_PATH'
18211      hardcode_shlibpath_var_GCJ=no
18212      ;;
18213
18214    sysv4.3*)
18215      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18216      hardcode_shlibpath_var_GCJ=no
18217      export_dynamic_flag_spec_GCJ='-Bexport'
18218      ;;
18219
18220    sysv4*MP*)
18221      if test -d /usr/nec; then
18222	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18223	hardcode_shlibpath_var_GCJ=no
18224	runpath_var=LD_RUN_PATH
18225	hardcode_runpath_var=yes
18226	ld_shlibs_GCJ=yes
18227      fi
18228      ;;
18229
18230    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18231      no_undefined_flag_GCJ='${wl}-z,text'
18232      archive_cmds_need_lc_GCJ=no
18233      hardcode_shlibpath_var_GCJ=no
18234      runpath_var='LD_RUN_PATH'
18235
18236      if test "$GCC" = yes; then
18237	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18238	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18239      else
18240	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18241	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18242      fi
18243      ;;
18244
18245    sysv5* | sco3.2v5* | sco5v6*)
18246      # Note: We can NOT use -z defs as we might desire, because we do not
18247      # link with -lc, and that would cause any symbols used from libc to
18248      # always be unresolved, which means just about no library would
18249      # ever link correctly.  If we're not using GNU ld we use -z text
18250      # though, which does catch some bad symbols but isn't as heavy-handed
18251      # as -z defs.
18252      no_undefined_flag_GCJ='${wl}-z,text'
18253      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18254      archive_cmds_need_lc_GCJ=no
18255      hardcode_shlibpath_var_GCJ=no
18256      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18257      hardcode_libdir_separator_GCJ=':'
18258      link_all_deplibs_GCJ=yes
18259      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18260      runpath_var='LD_RUN_PATH'
18261
18262      if test "$GCC" = yes; then
18263	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18264	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18265      else
18266	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18267	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18268      fi
18269      ;;
18270
18271    uts4*)
18272      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18273      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18274      hardcode_shlibpath_var_GCJ=no
18275      ;;
18276
18277    *)
18278      ld_shlibs_GCJ=no
18279      ;;
18280    esac
18281  fi
18282
18283{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18284$as_echo "$ld_shlibs_GCJ" >&6; }
18285test "$ld_shlibs_GCJ" = no && can_build_shared=no
18286
18287#
18288# Do we need to explicitly link libc?
18289#
18290case "x$archive_cmds_need_lc_GCJ" in
18291x|xyes)
18292  # Assume -lc should be added
18293  archive_cmds_need_lc_GCJ=yes
18294
18295  if test "$enable_shared" = yes && test "$GCC" = yes; then
18296    case $archive_cmds_GCJ in
18297    *'~'*)
18298      # FIXME: we may have to deal with multi-command sequences.
18299      ;;
18300    '$CC '*)
18301      # Test whether the compiler implicitly links with -lc since on some
18302      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18303      # to ld, don't add -lc before -lgcc.
18304      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18305$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18306      $rm conftest*
18307      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18308
18309      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18310  (eval $ac_compile) 2>&5
18311  ac_status=$?
18312  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313  (exit $ac_status); } 2>conftest.err; then
18314        soname=conftest
18315        lib=conftest
18316        libobjs=conftest.$ac_objext
18317        deplibs=
18318        wl=$lt_prog_compiler_wl_GCJ
18319	pic_flag=$lt_prog_compiler_pic_GCJ
18320        compiler_flags=-v
18321        linker_flags=-v
18322        verstring=
18323        output_objdir=.
18324        libname=conftest
18325        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18326        allow_undefined_flag_GCJ=
18327        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18328  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18329  ac_status=$?
18330  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331  (exit $ac_status); }
18332        then
18333	  archive_cmds_need_lc_GCJ=no
18334        else
18335	  archive_cmds_need_lc_GCJ=yes
18336        fi
18337        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18338      else
18339        cat conftest.err 1>&5
18340      fi
18341      $rm conftest*
18342      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18343$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18344      ;;
18345    esac
18346  fi
18347  ;;
18348esac
18349
18350{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18351$as_echo_n "checking dynamic linker characteristics... " >&6; }
18352library_names_spec=
18353libname_spec='lib$name'
18354soname_spec=
18355shrext_cmds=".so"
18356postinstall_cmds=
18357postuninstall_cmds=
18358finish_cmds=
18359finish_eval=
18360shlibpath_var=
18361shlibpath_overrides_runpath=unknown
18362version_type=none
18363dynamic_linker="$host_os ld.so"
18364sys_lib_dlsearch_path_spec="/lib /usr/lib"
18365
18366need_lib_prefix=unknown
18367hardcode_into_libs=no
18368
18369# when you set need_version to no, make sure it does not cause -set_version
18370# flags to be left without arguments
18371need_version=unknown
18372
18373case $host_os in
18374aix3*)
18375  version_type=linux
18376  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18377  shlibpath_var=LIBPATH
18378
18379  # AIX 3 has no versioning support, so we append a major version to the name.
18380  soname_spec='${libname}${release}${shared_ext}$major'
18381  ;;
18382
18383aix[4-9]*)
18384  version_type=linux
18385  need_lib_prefix=no
18386  need_version=no
18387  hardcode_into_libs=yes
18388  if test "$host_cpu" = ia64; then
18389    # AIX 5 supports IA64
18390    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18391    shlibpath_var=LD_LIBRARY_PATH
18392  else
18393    # With GCC up to 2.95.x, collect2 would create an import file
18394    # for dependence libraries.  The import file would start with
18395    # the line `#! .'.  This would cause the generated library to
18396    # depend on `.', always an invalid library.  This was fixed in
18397    # development snapshots of GCC prior to 3.0.
18398    case $host_os in
18399      aix4 | aix4.[01] | aix4.[01].*)
18400      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18401	   echo ' yes '
18402	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18403	:
18404      else
18405	can_build_shared=no
18406      fi
18407      ;;
18408    esac
18409    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18410    # soname into executable. Probably we can add versioning support to
18411    # collect2, so additional links can be useful in future.
18412    if test "$aix_use_runtimelinking" = yes; then
18413      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18414      # instead of lib<name>.a to let people know that these are not
18415      # typical AIX shared libraries.
18416      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18417    else
18418      # We preserve .a as extension for shared libraries through AIX4.2
18419      # and later when we are not doing run time linking.
18420      library_names_spec='${libname}${release}.a $libname.a'
18421      soname_spec='${libname}${release}${shared_ext}$major'
18422    fi
18423    shlibpath_var=LIBPATH
18424  fi
18425  ;;
18426
18427amigaos*)
18428  library_names_spec='$libname.ixlibrary $libname.a'
18429  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18430  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'
18431  ;;
18432
18433beos*)
18434  library_names_spec='${libname}${shared_ext}'
18435  dynamic_linker="$host_os ld.so"
18436  shlibpath_var=LIBRARY_PATH
18437  ;;
18438
18439bsdi[45]*)
18440  version_type=linux
18441  need_version=no
18442  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18443  soname_spec='${libname}${release}${shared_ext}$major'
18444  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18445  shlibpath_var=LD_LIBRARY_PATH
18446  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18447  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18448  # the default ld.so.conf also contains /usr/contrib/lib and
18449  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18450  # libtool to hard-code these into programs
18451  ;;
18452
18453cygwin* | mingw* | pw32*)
18454  version_type=windows
18455  shrext_cmds=".dll"
18456  need_version=no
18457  need_lib_prefix=no
18458
18459  case $GCC,$host_os in
18460  yes,cygwin* | yes,mingw* | yes,pw32*)
18461    library_names_spec='$libname.dll.a'
18462    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18463    postinstall_cmds='base_file=`basename \${file}`~
18464      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18465      dldir=$destdir/`dirname \$dlpath`~
18466      test -d \$dldir || mkdir -p \$dldir~
18467      $install_prog $dir/$dlname \$dldir/$dlname~
18468      chmod a+x \$dldir/$dlname'
18469    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18470      dlpath=$dir/\$dldll~
18471       $rm \$dlpath'
18472    shlibpath_overrides_runpath=yes
18473
18474    case $host_os in
18475    cygwin*)
18476      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18477      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18478      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18479      ;;
18480    mingw*)
18481      # MinGW DLLs use traditional 'lib' prefix
18482      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18483      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18484      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18485        # It is most probably a Windows format PATH printed by
18486        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18487        # path with ; separators, and with drive letters. We can handle the
18488        # drive letters (cygwin fileutils understands them), so leave them,
18489        # especially as we might pass files found there to a mingw objdump,
18490        # which wouldn't understand a cygwinified path. Ahh.
18491        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18492      else
18493        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18494      fi
18495      ;;
18496    pw32*)
18497      # pw32 DLLs use 'pw' prefix rather than 'lib'
18498      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18499      ;;
18500    esac
18501    ;;
18502
18503  *)
18504    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18505    ;;
18506  esac
18507  dynamic_linker='Win32 ld.exe'
18508  # FIXME: first we should search . and the directory the executable is in
18509  shlibpath_var=PATH
18510  ;;
18511
18512darwin* | rhapsody*)
18513  dynamic_linker="$host_os dyld"
18514  version_type=darwin
18515  need_lib_prefix=no
18516  need_version=no
18517  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18518  soname_spec='${libname}${release}${major}$shared_ext'
18519  shlibpath_overrides_runpath=yes
18520  shlibpath_var=DYLD_LIBRARY_PATH
18521  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18522
18523  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18524  ;;
18525
18526dgux*)
18527  version_type=linux
18528  need_lib_prefix=no
18529  need_version=no
18530  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18531  soname_spec='${libname}${release}${shared_ext}$major'
18532  shlibpath_var=LD_LIBRARY_PATH
18533  ;;
18534
18535freebsd1*)
18536  dynamic_linker=no
18537  ;;
18538
18539freebsd* | dragonfly*)
18540  # DragonFly does not have aout.  When/if they implement a new
18541  # versioning mechanism, adjust this.
18542  if test -x /usr/bin/objformat; then
18543    objformat=`/usr/bin/objformat`
18544  else
18545    case $host_os in
18546    freebsd[123]*) objformat=aout ;;
18547    *) objformat=elf ;;
18548    esac
18549  fi
18550  version_type=freebsd-$objformat
18551  case $version_type in
18552    freebsd-elf*)
18553      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18554      need_version=no
18555      need_lib_prefix=no
18556      ;;
18557    freebsd-*)
18558      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18559      need_version=yes
18560      ;;
18561  esac
18562  shlibpath_var=LD_LIBRARY_PATH
18563  case $host_os in
18564  freebsd2*)
18565    shlibpath_overrides_runpath=yes
18566    ;;
18567  freebsd3.[01]* | freebsdelf3.[01]*)
18568    shlibpath_overrides_runpath=yes
18569    hardcode_into_libs=yes
18570    ;;
18571  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18572  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18573    shlibpath_overrides_runpath=no
18574    hardcode_into_libs=yes
18575    ;;
18576  *) # from 4.6 on, and DragonFly
18577    shlibpath_overrides_runpath=yes
18578    hardcode_into_libs=yes
18579    ;;
18580  esac
18581  ;;
18582
18583gnu*)
18584  version_type=linux
18585  need_lib_prefix=no
18586  need_version=no
18587  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18588  soname_spec='${libname}${release}${shared_ext}$major'
18589  shlibpath_var=LD_LIBRARY_PATH
18590  hardcode_into_libs=yes
18591  ;;
18592
18593hpux9* | hpux10* | hpux11*)
18594  # Give a soname corresponding to the major version so that dld.sl refuses to
18595  # link against other versions.
18596  version_type=sunos
18597  need_lib_prefix=no
18598  need_version=no
18599  case $host_cpu in
18600  ia64*)
18601    shrext_cmds='.so'
18602    hardcode_into_libs=yes
18603    dynamic_linker="$host_os dld.so"
18604    shlibpath_var=LD_LIBRARY_PATH
18605    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18606    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18607    soname_spec='${libname}${release}${shared_ext}$major'
18608    if test "X$HPUX_IA64_MODE" = X32; then
18609      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18610    else
18611      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18612    fi
18613    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18614    ;;
18615   hppa*64*)
18616     shrext_cmds='.sl'
18617     hardcode_into_libs=yes
18618     dynamic_linker="$host_os dld.sl"
18619     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18620     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18621     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18622     soname_spec='${libname}${release}${shared_ext}$major'
18623     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18624     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18625     ;;
18626   *)
18627    shrext_cmds='.sl'
18628    dynamic_linker="$host_os dld.sl"
18629    shlibpath_var=SHLIB_PATH
18630    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18631    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18632    soname_spec='${libname}${release}${shared_ext}$major'
18633    ;;
18634  esac
18635  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18636  postinstall_cmds='chmod 555 $lib'
18637  ;;
18638
18639interix[3-9]*)
18640  version_type=linux
18641  need_lib_prefix=no
18642  need_version=no
18643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18644  soname_spec='${libname}${release}${shared_ext}$major'
18645  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18646  shlibpath_var=LD_LIBRARY_PATH
18647  shlibpath_overrides_runpath=no
18648  hardcode_into_libs=yes
18649  ;;
18650
18651irix5* | irix6* | nonstopux*)
18652  case $host_os in
18653    nonstopux*) version_type=nonstopux ;;
18654    *)
18655	if test "$lt_cv_prog_gnu_ld" = yes; then
18656		version_type=linux
18657	else
18658		version_type=irix
18659	fi ;;
18660  esac
18661  need_lib_prefix=no
18662  need_version=no
18663  soname_spec='${libname}${release}${shared_ext}$major'
18664  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18665  case $host_os in
18666  irix5* | nonstopux*)
18667    libsuff= shlibsuff=
18668    ;;
18669  *)
18670    case $LD in # libtool.m4 will add one of these switches to LD
18671    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18672      libsuff= shlibsuff= libmagic=32-bit;;
18673    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18674      libsuff=32 shlibsuff=N32 libmagic=N32;;
18675    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18676      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18677    *) libsuff= shlibsuff= libmagic=never-match;;
18678    esac
18679    ;;
18680  esac
18681  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18682  shlibpath_overrides_runpath=no
18683  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18684  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18685  hardcode_into_libs=yes
18686  ;;
18687
18688# No shared lib support for Linux oldld, aout, or coff.
18689linux*oldld* | linux*aout* | linux*coff*)
18690  dynamic_linker=no
18691  ;;
18692
18693# This must be Linux ELF.
18694linux* | k*bsd*-gnu)
18695  version_type=linux
18696  need_lib_prefix=no
18697  need_version=no
18698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18699  soname_spec='${libname}${release}${shared_ext}$major'
18700  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18701  shlibpath_var=LD_LIBRARY_PATH
18702  shlibpath_overrides_runpath=no
18703  # This implies no fast_install, which is unacceptable.
18704  # Some rework will be needed to allow for fast_install
18705  # before this can be enabled.
18706  hardcode_into_libs=yes
18707
18708  # Append ld.so.conf contents to the search path
18709  if test -f /etc/ld.so.conf; then
18710    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' ' '`
18711    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18712  fi
18713
18714  # We used to test for /lib/ld.so.1 and disable shared libraries on
18715  # powerpc, because MkLinux only supported shared libraries with the
18716  # GNU dynamic linker.  Since this was broken with cross compilers,
18717  # most powerpc-linux boxes support dynamic linking these days and
18718  # people can always --disable-shared, the test was removed, and we
18719  # assume the GNU/Linux dynamic linker is in use.
18720  dynamic_linker='GNU/Linux ld.so'
18721  ;;
18722
18723netbsd*)
18724  version_type=sunos
18725  need_lib_prefix=no
18726  need_version=no
18727  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18728    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18729    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18730    dynamic_linker='NetBSD (a.out) ld.so'
18731  else
18732    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18733    soname_spec='${libname}${release}${shared_ext}$major'
18734    dynamic_linker='NetBSD ld.elf_so'
18735  fi
18736  shlibpath_var=LD_LIBRARY_PATH
18737  shlibpath_overrides_runpath=yes
18738  hardcode_into_libs=yes
18739  ;;
18740
18741newsos6)
18742  version_type=linux
18743  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18744  shlibpath_var=LD_LIBRARY_PATH
18745  shlibpath_overrides_runpath=yes
18746  ;;
18747
18748nto-qnx*)
18749  version_type=linux
18750  need_lib_prefix=no
18751  need_version=no
18752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18753  soname_spec='${libname}${release}${shared_ext}$major'
18754  shlibpath_var=LD_LIBRARY_PATH
18755  shlibpath_overrides_runpath=yes
18756  ;;
18757
18758openbsd*)
18759  version_type=sunos
18760  sys_lib_dlsearch_path_spec="/usr/lib"
18761  need_lib_prefix=no
18762  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18763  case $host_os in
18764    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18765    *)                         need_version=no  ;;
18766  esac
18767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18768  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18769  shlibpath_var=LD_LIBRARY_PATH
18770  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18771    case $host_os in
18772      openbsd2.[89] | openbsd2.[89].*)
18773	shlibpath_overrides_runpath=no
18774	;;
18775      *)
18776	shlibpath_overrides_runpath=yes
18777	;;
18778      esac
18779  else
18780    shlibpath_overrides_runpath=yes
18781  fi
18782  ;;
18783
18784os2*)
18785  libname_spec='$name'
18786  shrext_cmds=".dll"
18787  need_lib_prefix=no
18788  library_names_spec='$libname${shared_ext} $libname.a'
18789  dynamic_linker='OS/2 ld.exe'
18790  shlibpath_var=LIBPATH
18791  ;;
18792
18793osf3* | osf4* | osf5*)
18794  version_type=osf
18795  need_lib_prefix=no
18796  need_version=no
18797  soname_spec='${libname}${release}${shared_ext}$major'
18798  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18799  shlibpath_var=LD_LIBRARY_PATH
18800  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18801  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18802  ;;
18803
18804rdos*)
18805  dynamic_linker=no
18806  ;;
18807
18808solaris*)
18809  version_type=linux
18810  need_lib_prefix=no
18811  need_version=no
18812  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18813  soname_spec='${libname}${release}${shared_ext}$major'
18814  shlibpath_var=LD_LIBRARY_PATH
18815  shlibpath_overrides_runpath=yes
18816  hardcode_into_libs=yes
18817  # ldd complains unless libraries are executable
18818  postinstall_cmds='chmod +x $lib'
18819  ;;
18820
18821sunos4*)
18822  version_type=sunos
18823  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18824  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18825  shlibpath_var=LD_LIBRARY_PATH
18826  shlibpath_overrides_runpath=yes
18827  if test "$with_gnu_ld" = yes; then
18828    need_lib_prefix=no
18829  fi
18830  need_version=yes
18831  ;;
18832
18833sysv4 | sysv4.3*)
18834  version_type=linux
18835  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18836  soname_spec='${libname}${release}${shared_ext}$major'
18837  shlibpath_var=LD_LIBRARY_PATH
18838  case $host_vendor in
18839    sni)
18840      shlibpath_overrides_runpath=no
18841      need_lib_prefix=no
18842      export_dynamic_flag_spec='${wl}-Blargedynsym'
18843      runpath_var=LD_RUN_PATH
18844      ;;
18845    siemens)
18846      need_lib_prefix=no
18847      ;;
18848    motorola)
18849      need_lib_prefix=no
18850      need_version=no
18851      shlibpath_overrides_runpath=no
18852      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18853      ;;
18854  esac
18855  ;;
18856
18857sysv4*MP*)
18858  if test -d /usr/nec ;then
18859    version_type=linux
18860    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18861    soname_spec='$libname${shared_ext}.$major'
18862    shlibpath_var=LD_LIBRARY_PATH
18863  fi
18864  ;;
18865
18866sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18867  version_type=freebsd-elf
18868  need_lib_prefix=no
18869  need_version=no
18870  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18871  soname_spec='${libname}${release}${shared_ext}$major'
18872  shlibpath_var=LD_LIBRARY_PATH
18873  hardcode_into_libs=yes
18874  if test "$with_gnu_ld" = yes; then
18875    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18876    shlibpath_overrides_runpath=no
18877  else
18878    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18879    shlibpath_overrides_runpath=yes
18880    case $host_os in
18881      sco3.2v5*)
18882        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18883	;;
18884    esac
18885  fi
18886  sys_lib_dlsearch_path_spec='/usr/lib'
18887  ;;
18888
18889uts4*)
18890  version_type=linux
18891  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18892  soname_spec='${libname}${release}${shared_ext}$major'
18893  shlibpath_var=LD_LIBRARY_PATH
18894  ;;
18895
18896*)
18897  dynamic_linker=no
18898  ;;
18899esac
18900{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18901$as_echo "$dynamic_linker" >&6; }
18902test "$dynamic_linker" = no && can_build_shared=no
18903
18904if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18905  $as_echo_n "(cached) " >&6
18906else
18907  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18908fi
18909
18910sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18911if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18912  $as_echo_n "(cached) " >&6
18913else
18914  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18915fi
18916
18917sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18918
18919variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18920if test "$GCC" = yes; then
18921  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18922fi
18923
18924{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18925$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18926hardcode_action_GCJ=
18927if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18928   test -n "$runpath_var_GCJ" || \
18929   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18930
18931  # We can hardcode non-existant directories.
18932  if test "$hardcode_direct_GCJ" != no &&
18933     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18934     # have to relink, otherwise we might link with an installed library
18935     # when we should be linking with a yet-to-be-installed one
18936     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18937     test "$hardcode_minus_L_GCJ" != no; then
18938    # Linking always hardcodes the temporary library directory.
18939    hardcode_action_GCJ=relink
18940  else
18941    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18942    hardcode_action_GCJ=immediate
18943  fi
18944else
18945  # We cannot hardcode anything, or else we can only hardcode existing
18946  # directories.
18947  hardcode_action_GCJ=unsupported
18948fi
18949{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18950$as_echo "$hardcode_action_GCJ" >&6; }
18951
18952if test "$hardcode_action_GCJ" = relink; then
18953  # Fast installation is not supported
18954  enable_fast_install=no
18955elif test "$shlibpath_overrides_runpath" = yes ||
18956     test "$enable_shared" = no; then
18957  # Fast installation is not necessary
18958  enable_fast_install=needless
18959fi
18960
18961
18962# The else clause should only fire when bootstrapping the
18963# libtool distribution, otherwise you forgot to ship ltmain.sh
18964# with your package, and you will get complaints that there are
18965# no rules to generate ltmain.sh.
18966if test -f "$ltmain"; then
18967  # See if we are running on zsh, and set the options which allow our commands through
18968  # without removal of \ escapes.
18969  if test -n "${ZSH_VERSION+set}" ; then
18970    setopt NO_GLOB_SUBST
18971  fi
18972  # Now quote all the things that may contain metacharacters while being
18973  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18974  # variables and quote the copies for generation of the libtool script.
18975  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18976    SED SHELL STRIP \
18977    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18978    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18979    deplibs_check_method reload_flag reload_cmds need_locks \
18980    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18981    lt_cv_sys_global_symbol_to_c_name_address \
18982    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18983    old_postinstall_cmds old_postuninstall_cmds \
18984    compiler_GCJ \
18985    CC_GCJ \
18986    LD_GCJ \
18987    lt_prog_compiler_wl_GCJ \
18988    lt_prog_compiler_pic_GCJ \
18989    lt_prog_compiler_static_GCJ \
18990    lt_prog_compiler_no_builtin_flag_GCJ \
18991    export_dynamic_flag_spec_GCJ \
18992    thread_safe_flag_spec_GCJ \
18993    whole_archive_flag_spec_GCJ \
18994    enable_shared_with_static_runtimes_GCJ \
18995    old_archive_cmds_GCJ \
18996    old_archive_from_new_cmds_GCJ \
18997    predep_objects_GCJ \
18998    postdep_objects_GCJ \
18999    predeps_GCJ \
19000    postdeps_GCJ \
19001    compiler_lib_search_path_GCJ \
19002    compiler_lib_search_dirs_GCJ \
19003    archive_cmds_GCJ \
19004    archive_expsym_cmds_GCJ \
19005    postinstall_cmds_GCJ \
19006    postuninstall_cmds_GCJ \
19007    old_archive_from_expsyms_cmds_GCJ \
19008    allow_undefined_flag_GCJ \
19009    no_undefined_flag_GCJ \
19010    export_symbols_cmds_GCJ \
19011    hardcode_libdir_flag_spec_GCJ \
19012    hardcode_libdir_flag_spec_ld_GCJ \
19013    hardcode_libdir_separator_GCJ \
19014    hardcode_automatic_GCJ \
19015    module_cmds_GCJ \
19016    module_expsym_cmds_GCJ \
19017    lt_cv_prog_compiler_c_o_GCJ \
19018    fix_srcfile_path_GCJ \
19019    exclude_expsyms_GCJ \
19020    include_expsyms_GCJ; do
19021
19022    case $var in
19023    old_archive_cmds_GCJ | \
19024    old_archive_from_new_cmds_GCJ | \
19025    archive_cmds_GCJ | \
19026    archive_expsym_cmds_GCJ | \
19027    module_cmds_GCJ | \
19028    module_expsym_cmds_GCJ | \
19029    old_archive_from_expsyms_cmds_GCJ | \
19030    export_symbols_cmds_GCJ | \
19031    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19032    postinstall_cmds | postuninstall_cmds | \
19033    old_postinstall_cmds | old_postuninstall_cmds | \
19034    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19035      # Double-quote double-evaled strings.
19036      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19037      ;;
19038    *)
19039      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19040      ;;
19041    esac
19042  done
19043
19044  case $lt_echo in
19045  *'\$0 --fallback-echo"')
19046    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19047    ;;
19048  esac
19049
19050cfgfile="$ofile"
19051
19052  cat <<__EOF__ >> "$cfgfile"
19053# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19054
19055# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19056
19057# Shell to use when invoking shell scripts.
19058SHELL=$lt_SHELL
19059
19060# Whether or not to build shared libraries.
19061build_libtool_libs=$enable_shared
19062
19063# Whether or not to build static libraries.
19064build_old_libs=$enable_static
19065
19066# Whether or not to add -lc for building shared libraries.
19067build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19068
19069# Whether or not to disallow shared libs when runtime libs are static
19070allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19071
19072# Whether or not to optimize for fast installation.
19073fast_install=$enable_fast_install
19074
19075# The host system.
19076host_alias=$host_alias
19077host=$host
19078host_os=$host_os
19079
19080# The build system.
19081build_alias=$build_alias
19082build=$build
19083build_os=$build_os
19084
19085# An echo program that does not interpret backslashes.
19086echo=$lt_echo
19087
19088# The archiver.
19089AR=$lt_AR
19090AR_FLAGS=$lt_AR_FLAGS
19091
19092# A C compiler.
19093LTCC=$lt_LTCC
19094
19095# LTCC compiler flags.
19096LTCFLAGS=$lt_LTCFLAGS
19097
19098# A language-specific compiler.
19099CC=$lt_compiler_GCJ
19100
19101# Is the compiler the GNU C compiler?
19102with_gcc=$GCC_GCJ
19103
19104# An ERE matcher.
19105EGREP=$lt_EGREP
19106
19107# The linker used to build libraries.
19108LD=$lt_LD_GCJ
19109
19110# Whether we need hard or soft links.
19111LN_S=$lt_LN_S
19112
19113# A BSD-compatible nm program.
19114NM=$lt_NM
19115
19116# A symbol stripping program
19117STRIP=$lt_STRIP
19118
19119# Used to examine libraries when file_magic_cmd begins "file"
19120MAGIC_CMD=$MAGIC_CMD
19121
19122# Used on cygwin: DLL creation program.
19123DLLTOOL="$DLLTOOL"
19124
19125# Used on cygwin: object dumper.
19126OBJDUMP="$OBJDUMP"
19127
19128# Used on cygwin: assembler.
19129AS="$AS"
19130
19131# The name of the directory that contains temporary libtool files.
19132objdir=$objdir
19133
19134# How to create reloadable object files.
19135reload_flag=$lt_reload_flag
19136reload_cmds=$lt_reload_cmds
19137
19138# How to pass a linker flag through the compiler.
19139wl=$lt_lt_prog_compiler_wl_GCJ
19140
19141# Object file suffix (normally "o").
19142objext="$ac_objext"
19143
19144# Old archive suffix (normally "a").
19145libext="$libext"
19146
19147# Shared library suffix (normally ".so").
19148shrext_cmds='$shrext_cmds'
19149
19150# Executable file suffix (normally "").
19151exeext="$exeext"
19152
19153# Additional compiler flags for building library objects.
19154pic_flag=$lt_lt_prog_compiler_pic_GCJ
19155pic_mode=$pic_mode
19156
19157# What is the maximum length of a command?
19158max_cmd_len=$lt_cv_sys_max_cmd_len
19159
19160# Does compiler simultaneously support -c and -o options?
19161compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19162
19163# Must we lock files when doing compilation?
19164need_locks=$lt_need_locks
19165
19166# Do we need the lib prefix for modules?
19167need_lib_prefix=$need_lib_prefix
19168
19169# Do we need a version for libraries?
19170need_version=$need_version
19171
19172# Whether dlopen is supported.
19173dlopen_support=$enable_dlopen
19174
19175# Whether dlopen of programs is supported.
19176dlopen_self=$enable_dlopen_self
19177
19178# Whether dlopen of statically linked programs is supported.
19179dlopen_self_static=$enable_dlopen_self_static
19180
19181# Compiler flag to prevent dynamic linking.
19182link_static_flag=$lt_lt_prog_compiler_static_GCJ
19183
19184# Compiler flag to turn off builtin functions.
19185no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19186
19187# Compiler flag to allow reflexive dlopens.
19188export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19189
19190# Compiler flag to generate shared objects directly from archives.
19191whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19192
19193# Compiler flag to generate thread-safe objects.
19194thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19195
19196# Library versioning type.
19197version_type=$version_type
19198
19199# Format of library name prefix.
19200libname_spec=$lt_libname_spec
19201
19202# List of archive names.  First name is the real one, the rest are links.
19203# The last name is the one that the linker finds with -lNAME.
19204library_names_spec=$lt_library_names_spec
19205
19206# The coded name of the library, if different from the real name.
19207soname_spec=$lt_soname_spec
19208
19209# Commands used to build and install an old-style archive.
19210RANLIB=$lt_RANLIB
19211old_archive_cmds=$lt_old_archive_cmds_GCJ
19212old_postinstall_cmds=$lt_old_postinstall_cmds
19213old_postuninstall_cmds=$lt_old_postuninstall_cmds
19214
19215# Create an old-style archive from a shared archive.
19216old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19217
19218# Create a temporary old-style archive to link instead of a shared archive.
19219old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19220
19221# Commands used to build and install a shared archive.
19222archive_cmds=$lt_archive_cmds_GCJ
19223archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19224postinstall_cmds=$lt_postinstall_cmds
19225postuninstall_cmds=$lt_postuninstall_cmds
19226
19227# Commands used to build a loadable module (assumed same as above if empty)
19228module_cmds=$lt_module_cmds_GCJ
19229module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19230
19231# Commands to strip libraries.
19232old_striplib=$lt_old_striplib
19233striplib=$lt_striplib
19234
19235# Dependencies to place before the objects being linked to create a
19236# shared library.
19237predep_objects=$lt_predep_objects_GCJ
19238
19239# Dependencies to place after the objects being linked to create a
19240# shared library.
19241postdep_objects=$lt_postdep_objects_GCJ
19242
19243# Dependencies to place before the objects being linked to create a
19244# shared library.
19245predeps=$lt_predeps_GCJ
19246
19247# Dependencies to place after the objects being linked to create a
19248# shared library.
19249postdeps=$lt_postdeps_GCJ
19250
19251# The directories searched by this compiler when creating a shared
19252# library
19253compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19254
19255# The library search path used internally by the compiler when linking
19256# a shared library.
19257compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19258
19259# Method to check whether dependent libraries are shared objects.
19260deplibs_check_method=$lt_deplibs_check_method
19261
19262# Command to use when deplibs_check_method == file_magic.
19263file_magic_cmd=$lt_file_magic_cmd
19264
19265# Flag that allows shared libraries with undefined symbols to be built.
19266allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19267
19268# Flag that forces no undefined symbols.
19269no_undefined_flag=$lt_no_undefined_flag_GCJ
19270
19271# Commands used to finish a libtool library installation in a directory.
19272finish_cmds=$lt_finish_cmds
19273
19274# Same as above, but a single script fragment to be evaled but not shown.
19275finish_eval=$lt_finish_eval
19276
19277# Take the output of nm and produce a listing of raw symbols and C names.
19278global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19279
19280# Transform the output of nm in a proper C declaration
19281global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19282
19283# Transform the output of nm in a C name address pair
19284global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19285
19286# This is the shared library runtime path variable.
19287runpath_var=$runpath_var
19288
19289# This is the shared library path variable.
19290shlibpath_var=$shlibpath_var
19291
19292# Is shlibpath searched before the hard-coded library search path?
19293shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19294
19295# How to hardcode a shared library path into an executable.
19296hardcode_action=$hardcode_action_GCJ
19297
19298# Whether we should hardcode library paths into libraries.
19299hardcode_into_libs=$hardcode_into_libs
19300
19301# Flag to hardcode \$libdir into a binary during linking.
19302# This must work even if \$libdir does not exist.
19303hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19304
19305# If ld is used when linking, flag to hardcode \$libdir into
19306# a binary during linking. This must work even if \$libdir does
19307# not exist.
19308hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19309
19310# Whether we need a single -rpath flag with a separated argument.
19311hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19312
19313# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19314# resulting binary.
19315hardcode_direct=$hardcode_direct_GCJ
19316
19317# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19318# resulting binary.
19319hardcode_minus_L=$hardcode_minus_L_GCJ
19320
19321# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19322# the resulting binary.
19323hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19324
19325# Set to yes if building a shared library automatically hardcodes DIR into the library
19326# and all subsequent libraries and executables linked against it.
19327hardcode_automatic=$hardcode_automatic_GCJ
19328
19329# Variables whose values should be saved in libtool wrapper scripts and
19330# restored at relink time.
19331variables_saved_for_relink="$variables_saved_for_relink"
19332
19333# Whether libtool must link a program against all its dependency libraries.
19334link_all_deplibs=$link_all_deplibs_GCJ
19335
19336# Compile-time system search path for libraries
19337sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19338
19339# Run-time system search path for libraries
19340sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19341
19342# Fix the shell variable \$srcfile for the compiler.
19343fix_srcfile_path=$lt_fix_srcfile_path
19344
19345# Set to yes if exported symbols are required.
19346always_export_symbols=$always_export_symbols_GCJ
19347
19348# The commands to list exported symbols.
19349export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19350
19351# The commands to extract the exported symbol list from a shared archive.
19352extract_expsyms_cmds=$lt_extract_expsyms_cmds
19353
19354# Symbols that should not be listed in the preloaded symbols.
19355exclude_expsyms=$lt_exclude_expsyms_GCJ
19356
19357# Symbols that must always be exported.
19358include_expsyms=$lt_include_expsyms_GCJ
19359
19360# ### END LIBTOOL TAG CONFIG: $tagname
19361
19362__EOF__
19363
19364
19365else
19366  # If there is no Makefile yet, we rely on a make rule to execute
19367  # `config.status --recheck' to rerun these tests and create the
19368  # libtool script then.
19369  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19370  if test -f "$ltmain_in"; then
19371    test -f Makefile && make "$ltmain"
19372  fi
19373fi
19374
19375
19376ac_ext=c
19377ac_cpp='$CPP $CPPFLAGS'
19378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19380ac_compiler_gnu=$ac_cv_c_compiler_gnu
19381
19382CC="$lt_save_CC"
19383
19384	else
19385	  tagname=""
19386	fi
19387	;;
19388
19389      RC)
19390
19391
19392# Source file extension for RC test sources.
19393ac_ext=rc
19394
19395# Object file extension for compiled RC test sources.
19396objext=o
19397objext_RC=$objext
19398
19399# Code to be used in simple compile tests
19400lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19401
19402# Code to be used in simple link tests
19403lt_simple_link_test_code="$lt_simple_compile_test_code"
19404
19405# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19406
19407# If no C compiler was specified, use CC.
19408LTCC=${LTCC-"$CC"}
19409
19410# If no C compiler flags were specified, use CFLAGS.
19411LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19412
19413# Allow CC to be a program name with arguments.
19414compiler=$CC
19415
19416
19417# save warnings/boilerplate of simple test code
19418ac_outfile=conftest.$ac_objext
19419echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19420eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19421_lt_compiler_boilerplate=`cat conftest.err`
19422$rm conftest*
19423
19424ac_outfile=conftest.$ac_objext
19425echo "$lt_simple_link_test_code" >conftest.$ac_ext
19426eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19427_lt_linker_boilerplate=`cat conftest.err`
19428$rm -r conftest*
19429
19430
19431# Allow CC to be a program name with arguments.
19432lt_save_CC="$CC"
19433CC=${RC-"windres"}
19434compiler=$CC
19435compiler_RC=$CC
19436for cc_temp in $compiler""; do
19437  case $cc_temp in
19438    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19439    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19440    \-*) ;;
19441    *) break;;
19442  esac
19443done
19444cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19445
19446lt_cv_prog_compiler_c_o_RC=yes
19447
19448# The else clause should only fire when bootstrapping the
19449# libtool distribution, otherwise you forgot to ship ltmain.sh
19450# with your package, and you will get complaints that there are
19451# no rules to generate ltmain.sh.
19452if test -f "$ltmain"; then
19453  # See if we are running on zsh, and set the options which allow our commands through
19454  # without removal of \ escapes.
19455  if test -n "${ZSH_VERSION+set}" ; then
19456    setopt NO_GLOB_SUBST
19457  fi
19458  # Now quote all the things that may contain metacharacters while being
19459  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19460  # variables and quote the copies for generation of the libtool script.
19461  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19462    SED SHELL STRIP \
19463    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19464    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19465    deplibs_check_method reload_flag reload_cmds need_locks \
19466    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19467    lt_cv_sys_global_symbol_to_c_name_address \
19468    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19469    old_postinstall_cmds old_postuninstall_cmds \
19470    compiler_RC \
19471    CC_RC \
19472    LD_RC \
19473    lt_prog_compiler_wl_RC \
19474    lt_prog_compiler_pic_RC \
19475    lt_prog_compiler_static_RC \
19476    lt_prog_compiler_no_builtin_flag_RC \
19477    export_dynamic_flag_spec_RC \
19478    thread_safe_flag_spec_RC \
19479    whole_archive_flag_spec_RC \
19480    enable_shared_with_static_runtimes_RC \
19481    old_archive_cmds_RC \
19482    old_archive_from_new_cmds_RC \
19483    predep_objects_RC \
19484    postdep_objects_RC \
19485    predeps_RC \
19486    postdeps_RC \
19487    compiler_lib_search_path_RC \
19488    compiler_lib_search_dirs_RC \
19489    archive_cmds_RC \
19490    archive_expsym_cmds_RC \
19491    postinstall_cmds_RC \
19492    postuninstall_cmds_RC \
19493    old_archive_from_expsyms_cmds_RC \
19494    allow_undefined_flag_RC \
19495    no_undefined_flag_RC \
19496    export_symbols_cmds_RC \
19497    hardcode_libdir_flag_spec_RC \
19498    hardcode_libdir_flag_spec_ld_RC \
19499    hardcode_libdir_separator_RC \
19500    hardcode_automatic_RC \
19501    module_cmds_RC \
19502    module_expsym_cmds_RC \
19503    lt_cv_prog_compiler_c_o_RC \
19504    fix_srcfile_path_RC \
19505    exclude_expsyms_RC \
19506    include_expsyms_RC; do
19507
19508    case $var in
19509    old_archive_cmds_RC | \
19510    old_archive_from_new_cmds_RC | \
19511    archive_cmds_RC | \
19512    archive_expsym_cmds_RC | \
19513    module_cmds_RC | \
19514    module_expsym_cmds_RC | \
19515    old_archive_from_expsyms_cmds_RC | \
19516    export_symbols_cmds_RC | \
19517    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19518    postinstall_cmds | postuninstall_cmds | \
19519    old_postinstall_cmds | old_postuninstall_cmds | \
19520    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19521      # Double-quote double-evaled strings.
19522      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19523      ;;
19524    *)
19525      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19526      ;;
19527    esac
19528  done
19529
19530  case $lt_echo in
19531  *'\$0 --fallback-echo"')
19532    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19533    ;;
19534  esac
19535
19536cfgfile="$ofile"
19537
19538  cat <<__EOF__ >> "$cfgfile"
19539# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19540
19541# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19542
19543# Shell to use when invoking shell scripts.
19544SHELL=$lt_SHELL
19545
19546# Whether or not to build shared libraries.
19547build_libtool_libs=$enable_shared
19548
19549# Whether or not to build static libraries.
19550build_old_libs=$enable_static
19551
19552# Whether or not to add -lc for building shared libraries.
19553build_libtool_need_lc=$archive_cmds_need_lc_RC
19554
19555# Whether or not to disallow shared libs when runtime libs are static
19556allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19557
19558# Whether or not to optimize for fast installation.
19559fast_install=$enable_fast_install
19560
19561# The host system.
19562host_alias=$host_alias
19563host=$host
19564host_os=$host_os
19565
19566# The build system.
19567build_alias=$build_alias
19568build=$build
19569build_os=$build_os
19570
19571# An echo program that does not interpret backslashes.
19572echo=$lt_echo
19573
19574# The archiver.
19575AR=$lt_AR
19576AR_FLAGS=$lt_AR_FLAGS
19577
19578# A C compiler.
19579LTCC=$lt_LTCC
19580
19581# LTCC compiler flags.
19582LTCFLAGS=$lt_LTCFLAGS
19583
19584# A language-specific compiler.
19585CC=$lt_compiler_RC
19586
19587# Is the compiler the GNU C compiler?
19588with_gcc=$GCC_RC
19589
19590# An ERE matcher.
19591EGREP=$lt_EGREP
19592
19593# The linker used to build libraries.
19594LD=$lt_LD_RC
19595
19596# Whether we need hard or soft links.
19597LN_S=$lt_LN_S
19598
19599# A BSD-compatible nm program.
19600NM=$lt_NM
19601
19602# A symbol stripping program
19603STRIP=$lt_STRIP
19604
19605# Used to examine libraries when file_magic_cmd begins "file"
19606MAGIC_CMD=$MAGIC_CMD
19607
19608# Used on cygwin: DLL creation program.
19609DLLTOOL="$DLLTOOL"
19610
19611# Used on cygwin: object dumper.
19612OBJDUMP="$OBJDUMP"
19613
19614# Used on cygwin: assembler.
19615AS="$AS"
19616
19617# The name of the directory that contains temporary libtool files.
19618objdir=$objdir
19619
19620# How to create reloadable object files.
19621reload_flag=$lt_reload_flag
19622reload_cmds=$lt_reload_cmds
19623
19624# How to pass a linker flag through the compiler.
19625wl=$lt_lt_prog_compiler_wl_RC
19626
19627# Object file suffix (normally "o").
19628objext="$ac_objext"
19629
19630# Old archive suffix (normally "a").
19631libext="$libext"
19632
19633# Shared library suffix (normally ".so").
19634shrext_cmds='$shrext_cmds'
19635
19636# Executable file suffix (normally "").
19637exeext="$exeext"
19638
19639# Additional compiler flags for building library objects.
19640pic_flag=$lt_lt_prog_compiler_pic_RC
19641pic_mode=$pic_mode
19642
19643# What is the maximum length of a command?
19644max_cmd_len=$lt_cv_sys_max_cmd_len
19645
19646# Does compiler simultaneously support -c and -o options?
19647compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19648
19649# Must we lock files when doing compilation?
19650need_locks=$lt_need_locks
19651
19652# Do we need the lib prefix for modules?
19653need_lib_prefix=$need_lib_prefix
19654
19655# Do we need a version for libraries?
19656need_version=$need_version
19657
19658# Whether dlopen is supported.
19659dlopen_support=$enable_dlopen
19660
19661# Whether dlopen of programs is supported.
19662dlopen_self=$enable_dlopen_self
19663
19664# Whether dlopen of statically linked programs is supported.
19665dlopen_self_static=$enable_dlopen_self_static
19666
19667# Compiler flag to prevent dynamic linking.
19668link_static_flag=$lt_lt_prog_compiler_static_RC
19669
19670# Compiler flag to turn off builtin functions.
19671no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19672
19673# Compiler flag to allow reflexive dlopens.
19674export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19675
19676# Compiler flag to generate shared objects directly from archives.
19677whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19678
19679# Compiler flag to generate thread-safe objects.
19680thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19681
19682# Library versioning type.
19683version_type=$version_type
19684
19685# Format of library name prefix.
19686libname_spec=$lt_libname_spec
19687
19688# List of archive names.  First name is the real one, the rest are links.
19689# The last name is the one that the linker finds with -lNAME.
19690library_names_spec=$lt_library_names_spec
19691
19692# The coded name of the library, if different from the real name.
19693soname_spec=$lt_soname_spec
19694
19695# Commands used to build and install an old-style archive.
19696RANLIB=$lt_RANLIB
19697old_archive_cmds=$lt_old_archive_cmds_RC
19698old_postinstall_cmds=$lt_old_postinstall_cmds
19699old_postuninstall_cmds=$lt_old_postuninstall_cmds
19700
19701# Create an old-style archive from a shared archive.
19702old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19703
19704# Create a temporary old-style archive to link instead of a shared archive.
19705old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19706
19707# Commands used to build and install a shared archive.
19708archive_cmds=$lt_archive_cmds_RC
19709archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19710postinstall_cmds=$lt_postinstall_cmds
19711postuninstall_cmds=$lt_postuninstall_cmds
19712
19713# Commands used to build a loadable module (assumed same as above if empty)
19714module_cmds=$lt_module_cmds_RC
19715module_expsym_cmds=$lt_module_expsym_cmds_RC
19716
19717# Commands to strip libraries.
19718old_striplib=$lt_old_striplib
19719striplib=$lt_striplib
19720
19721# Dependencies to place before the objects being linked to create a
19722# shared library.
19723predep_objects=$lt_predep_objects_RC
19724
19725# Dependencies to place after the objects being linked to create a
19726# shared library.
19727postdep_objects=$lt_postdep_objects_RC
19728
19729# Dependencies to place before the objects being linked to create a
19730# shared library.
19731predeps=$lt_predeps_RC
19732
19733# Dependencies to place after the objects being linked to create a
19734# shared library.
19735postdeps=$lt_postdeps_RC
19736
19737# The directories searched by this compiler when creating a shared
19738# library
19739compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19740
19741# The library search path used internally by the compiler when linking
19742# a shared library.
19743compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19744
19745# Method to check whether dependent libraries are shared objects.
19746deplibs_check_method=$lt_deplibs_check_method
19747
19748# Command to use when deplibs_check_method == file_magic.
19749file_magic_cmd=$lt_file_magic_cmd
19750
19751# Flag that allows shared libraries with undefined symbols to be built.
19752allow_undefined_flag=$lt_allow_undefined_flag_RC
19753
19754# Flag that forces no undefined symbols.
19755no_undefined_flag=$lt_no_undefined_flag_RC
19756
19757# Commands used to finish a libtool library installation in a directory.
19758finish_cmds=$lt_finish_cmds
19759
19760# Same as above, but a single script fragment to be evaled but not shown.
19761finish_eval=$lt_finish_eval
19762
19763# Take the output of nm and produce a listing of raw symbols and C names.
19764global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19765
19766# Transform the output of nm in a proper C declaration
19767global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19768
19769# Transform the output of nm in a C name address pair
19770global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19771
19772# This is the shared library runtime path variable.
19773runpath_var=$runpath_var
19774
19775# This is the shared library path variable.
19776shlibpath_var=$shlibpath_var
19777
19778# Is shlibpath searched before the hard-coded library search path?
19779shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19780
19781# How to hardcode a shared library path into an executable.
19782hardcode_action=$hardcode_action_RC
19783
19784# Whether we should hardcode library paths into libraries.
19785hardcode_into_libs=$hardcode_into_libs
19786
19787# Flag to hardcode \$libdir into a binary during linking.
19788# This must work even if \$libdir does not exist.
19789hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19790
19791# If ld is used when linking, flag to hardcode \$libdir into
19792# a binary during linking. This must work even if \$libdir does
19793# not exist.
19794hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19795
19796# Whether we need a single -rpath flag with a separated argument.
19797hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19798
19799# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19800# resulting binary.
19801hardcode_direct=$hardcode_direct_RC
19802
19803# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19804# resulting binary.
19805hardcode_minus_L=$hardcode_minus_L_RC
19806
19807# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19808# the resulting binary.
19809hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19810
19811# Set to yes if building a shared library automatically hardcodes DIR into the library
19812# and all subsequent libraries and executables linked against it.
19813hardcode_automatic=$hardcode_automatic_RC
19814
19815# Variables whose values should be saved in libtool wrapper scripts and
19816# restored at relink time.
19817variables_saved_for_relink="$variables_saved_for_relink"
19818
19819# Whether libtool must link a program against all its dependency libraries.
19820link_all_deplibs=$link_all_deplibs_RC
19821
19822# Compile-time system search path for libraries
19823sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19824
19825# Run-time system search path for libraries
19826sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19827
19828# Fix the shell variable \$srcfile for the compiler.
19829fix_srcfile_path=$lt_fix_srcfile_path
19830
19831# Set to yes if exported symbols are required.
19832always_export_symbols=$always_export_symbols_RC
19833
19834# The commands to list exported symbols.
19835export_symbols_cmds=$lt_export_symbols_cmds_RC
19836
19837# The commands to extract the exported symbol list from a shared archive.
19838extract_expsyms_cmds=$lt_extract_expsyms_cmds
19839
19840# Symbols that should not be listed in the preloaded symbols.
19841exclude_expsyms=$lt_exclude_expsyms_RC
19842
19843# Symbols that must always be exported.
19844include_expsyms=$lt_include_expsyms_RC
19845
19846# ### END LIBTOOL TAG CONFIG: $tagname
19847
19848__EOF__
19849
19850
19851else
19852  # If there is no Makefile yet, we rely on a make rule to execute
19853  # `config.status --recheck' to rerun these tests and create the
19854  # libtool script then.
19855  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19856  if test -f "$ltmain_in"; then
19857    test -f Makefile && make "$ltmain"
19858  fi
19859fi
19860
19861
19862ac_ext=c
19863ac_cpp='$CPP $CPPFLAGS'
19864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19866ac_compiler_gnu=$ac_cv_c_compiler_gnu
19867
19868CC="$lt_save_CC"
19869
19870	;;
19871
19872      *)
19873	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19874$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19875   { (exit 1); exit 1; }; }
19876	;;
19877      esac
19878
19879      # Append the new tag name to the list of available tags.
19880      if test -n "$tagname" ; then
19881      available_tags="$available_tags $tagname"
19882    fi
19883    fi
19884  done
19885  IFS="$lt_save_ifs"
19886
19887  # Now substitute the updated list of available tags.
19888  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19889    mv "${ofile}T" "$ofile"
19890    chmod +x "$ofile"
19891  else
19892    rm -f "${ofile}T"
19893    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19894$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19895   { (exit 1); exit 1; }; }
19896  fi
19897fi
19898
19899
19900
19901# This can be used to rebuild libtool when needed
19902LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19903
19904# Always use our own libtool.
19905LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19906
19907# Prevent multiple expansion
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928ac_ext=c
19929ac_cpp='$CPP $CPPFLAGS'
19930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19932ac_compiler_gnu=$ac_cv_c_compiler_gnu
19933if test -n "$ac_tool_prefix"; then
19934  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19935set dummy ${ac_tool_prefix}gcc; ac_word=$2
19936{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19937$as_echo_n "checking for $ac_word... " >&6; }
19938if test "${ac_cv_prog_CC+set}" = set; then
19939  $as_echo_n "(cached) " >&6
19940else
19941  if test -n "$CC"; then
19942  ac_cv_prog_CC="$CC" # Let the user override the test.
19943else
19944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19945for as_dir in $PATH
19946do
19947  IFS=$as_save_IFS
19948  test -z "$as_dir" && as_dir=.
19949  for ac_exec_ext in '' $ac_executable_extensions; do
19950  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19951    ac_cv_prog_CC="${ac_tool_prefix}gcc"
19952    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19953    break 2
19954  fi
19955done
19956done
19957IFS=$as_save_IFS
19958
19959fi
19960fi
19961CC=$ac_cv_prog_CC
19962if test -n "$CC"; then
19963  { $as_echo "$as_me:$LINENO: result: $CC" >&5
19964$as_echo "$CC" >&6; }
19965else
19966  { $as_echo "$as_me:$LINENO: result: no" >&5
19967$as_echo "no" >&6; }
19968fi
19969
19970
19971fi
19972if test -z "$ac_cv_prog_CC"; then
19973  ac_ct_CC=$CC
19974  # Extract the first word of "gcc", so it can be a program name with args.
19975set dummy gcc; ac_word=$2
19976{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19977$as_echo_n "checking for $ac_word... " >&6; }
19978if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19979  $as_echo_n "(cached) " >&6
19980else
19981  if test -n "$ac_ct_CC"; then
19982  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19983else
19984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19985for as_dir in $PATH
19986do
19987  IFS=$as_save_IFS
19988  test -z "$as_dir" && as_dir=.
19989  for ac_exec_ext in '' $ac_executable_extensions; do
19990  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19991    ac_cv_prog_ac_ct_CC="gcc"
19992    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19993    break 2
19994  fi
19995done
19996done
19997IFS=$as_save_IFS
19998
19999fi
20000fi
20001ac_ct_CC=$ac_cv_prog_ac_ct_CC
20002if test -n "$ac_ct_CC"; then
20003  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20004$as_echo "$ac_ct_CC" >&6; }
20005else
20006  { $as_echo "$as_me:$LINENO: result: no" >&5
20007$as_echo "no" >&6; }
20008fi
20009
20010  if test "x$ac_ct_CC" = x; then
20011    CC=""
20012  else
20013    case $cross_compiling:$ac_tool_warned in
20014yes:)
20015{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20016whose name does not start with the host triplet.  If you think this
20017configuration is useful to you, please write to autoconf@gnu.org." >&5
20018$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20019whose name does not start with the host triplet.  If you think this
20020configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20021ac_tool_warned=yes ;;
20022esac
20023    CC=$ac_ct_CC
20024  fi
20025else
20026  CC="$ac_cv_prog_CC"
20027fi
20028
20029if test -z "$CC"; then
20030          if test -n "$ac_tool_prefix"; then
20031    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20032set dummy ${ac_tool_prefix}cc; ac_word=$2
20033{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20034$as_echo_n "checking for $ac_word... " >&6; }
20035if test "${ac_cv_prog_CC+set}" = set; then
20036  $as_echo_n "(cached) " >&6
20037else
20038  if test -n "$CC"; then
20039  ac_cv_prog_CC="$CC" # Let the user override the test.
20040else
20041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20042for as_dir in $PATH
20043do
20044  IFS=$as_save_IFS
20045  test -z "$as_dir" && as_dir=.
20046  for ac_exec_ext in '' $ac_executable_extensions; do
20047  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20048    ac_cv_prog_CC="${ac_tool_prefix}cc"
20049    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20050    break 2
20051  fi
20052done
20053done
20054IFS=$as_save_IFS
20055
20056fi
20057fi
20058CC=$ac_cv_prog_CC
20059if test -n "$CC"; then
20060  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20061$as_echo "$CC" >&6; }
20062else
20063  { $as_echo "$as_me:$LINENO: result: no" >&5
20064$as_echo "no" >&6; }
20065fi
20066
20067
20068  fi
20069fi
20070if test -z "$CC"; then
20071  # Extract the first word of "cc", so it can be a program name with args.
20072set dummy cc; ac_word=$2
20073{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20074$as_echo_n "checking for $ac_word... " >&6; }
20075if test "${ac_cv_prog_CC+set}" = set; then
20076  $as_echo_n "(cached) " >&6
20077else
20078  if test -n "$CC"; then
20079  ac_cv_prog_CC="$CC" # Let the user override the test.
20080else
20081  ac_prog_rejected=no
20082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20083for as_dir in $PATH
20084do
20085  IFS=$as_save_IFS
20086  test -z "$as_dir" && as_dir=.
20087  for ac_exec_ext in '' $ac_executable_extensions; do
20088  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20089    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20090       ac_prog_rejected=yes
20091       continue
20092     fi
20093    ac_cv_prog_CC="cc"
20094    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20095    break 2
20096  fi
20097done
20098done
20099IFS=$as_save_IFS
20100
20101if test $ac_prog_rejected = yes; then
20102  # We found a bogon in the path, so make sure we never use it.
20103  set dummy $ac_cv_prog_CC
20104  shift
20105  if test $# != 0; then
20106    # We chose a different compiler from the bogus one.
20107    # However, it has the same basename, so the bogon will be chosen
20108    # first if we set CC to just the basename; use the full file name.
20109    shift
20110    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20111  fi
20112fi
20113fi
20114fi
20115CC=$ac_cv_prog_CC
20116if test -n "$CC"; then
20117  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20118$as_echo "$CC" >&6; }
20119else
20120  { $as_echo "$as_me:$LINENO: result: no" >&5
20121$as_echo "no" >&6; }
20122fi
20123
20124
20125fi
20126if test -z "$CC"; then
20127  if test -n "$ac_tool_prefix"; then
20128  for ac_prog in cl.exe
20129  do
20130    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20131set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20132{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20133$as_echo_n "checking for $ac_word... " >&6; }
20134if test "${ac_cv_prog_CC+set}" = set; then
20135  $as_echo_n "(cached) " >&6
20136else
20137  if test -n "$CC"; then
20138  ac_cv_prog_CC="$CC" # Let the user override the test.
20139else
20140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20141for as_dir in $PATH
20142do
20143  IFS=$as_save_IFS
20144  test -z "$as_dir" && as_dir=.
20145  for ac_exec_ext in '' $ac_executable_extensions; do
20146  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20147    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20148    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20149    break 2
20150  fi
20151done
20152done
20153IFS=$as_save_IFS
20154
20155fi
20156fi
20157CC=$ac_cv_prog_CC
20158if test -n "$CC"; then
20159  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20160$as_echo "$CC" >&6; }
20161else
20162  { $as_echo "$as_me:$LINENO: result: no" >&5
20163$as_echo "no" >&6; }
20164fi
20165
20166
20167    test -n "$CC" && break
20168  done
20169fi
20170if test -z "$CC"; then
20171  ac_ct_CC=$CC
20172  for ac_prog in cl.exe
20173do
20174  # Extract the first word of "$ac_prog", so it can be a program name with args.
20175set dummy $ac_prog; ac_word=$2
20176{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20177$as_echo_n "checking for $ac_word... " >&6; }
20178if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20179  $as_echo_n "(cached) " >&6
20180else
20181  if test -n "$ac_ct_CC"; then
20182  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20183else
20184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20185for as_dir in $PATH
20186do
20187  IFS=$as_save_IFS
20188  test -z "$as_dir" && as_dir=.
20189  for ac_exec_ext in '' $ac_executable_extensions; do
20190  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20191    ac_cv_prog_ac_ct_CC="$ac_prog"
20192    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20193    break 2
20194  fi
20195done
20196done
20197IFS=$as_save_IFS
20198
20199fi
20200fi
20201ac_ct_CC=$ac_cv_prog_ac_ct_CC
20202if test -n "$ac_ct_CC"; then
20203  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20204$as_echo "$ac_ct_CC" >&6; }
20205else
20206  { $as_echo "$as_me:$LINENO: result: no" >&5
20207$as_echo "no" >&6; }
20208fi
20209
20210
20211  test -n "$ac_ct_CC" && break
20212done
20213
20214  if test "x$ac_ct_CC" = x; then
20215    CC=""
20216  else
20217    case $cross_compiling:$ac_tool_warned in
20218yes:)
20219{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20220whose name does not start with the host triplet.  If you think this
20221configuration is useful to you, please write to autoconf@gnu.org." >&5
20222$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20223whose name does not start with the host triplet.  If you think this
20224configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20225ac_tool_warned=yes ;;
20226esac
20227    CC=$ac_ct_CC
20228  fi
20229fi
20230
20231fi
20232
20233
20234test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20235See \`config.log' for more details." >&5
20236$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20237See \`config.log' for more details." >&2;}
20238   { (exit 1); exit 1; }; }
20239
20240# Provide some information about the compiler.
20241$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20242set X $ac_compile
20243ac_compiler=$2
20244{ (ac_try="$ac_compiler --version >&5"
20245case "(($ac_try" in
20246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20247  *) ac_try_echo=$ac_try;;
20248esac
20249eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20250$as_echo "$ac_try_echo") >&5
20251  (eval "$ac_compiler --version >&5") 2>&5
20252  ac_status=$?
20253  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254  (exit $ac_status); }
20255{ (ac_try="$ac_compiler -v >&5"
20256case "(($ac_try" in
20257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258  *) ac_try_echo=$ac_try;;
20259esac
20260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20261$as_echo "$ac_try_echo") >&5
20262  (eval "$ac_compiler -v >&5") 2>&5
20263  ac_status=$?
20264  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265  (exit $ac_status); }
20266{ (ac_try="$ac_compiler -V >&5"
20267case "(($ac_try" in
20268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20269  *) ac_try_echo=$ac_try;;
20270esac
20271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20272$as_echo "$ac_try_echo") >&5
20273  (eval "$ac_compiler -V >&5") 2>&5
20274  ac_status=$?
20275  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276  (exit $ac_status); }
20277
20278{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20279$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20280if test "${ac_cv_c_compiler_gnu+set}" = set; then
20281  $as_echo_n "(cached) " >&6
20282else
20283  cat >conftest.$ac_ext <<_ACEOF
20284/* confdefs.h.  */
20285_ACEOF
20286cat confdefs.h >>conftest.$ac_ext
20287cat >>conftest.$ac_ext <<_ACEOF
20288/* end confdefs.h.  */
20289
20290int
20291main ()
20292{
20293#ifndef __GNUC__
20294       choke me
20295#endif
20296
20297  ;
20298  return 0;
20299}
20300_ACEOF
20301rm -f conftest.$ac_objext
20302if { (ac_try="$ac_compile"
20303case "(($ac_try" in
20304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305  *) ac_try_echo=$ac_try;;
20306esac
20307eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20308$as_echo "$ac_try_echo") >&5
20309  (eval "$ac_compile") 2>conftest.er1
20310  ac_status=$?
20311  grep -v '^ *+' conftest.er1 >conftest.err
20312  rm -f conftest.er1
20313  cat conftest.err >&5
20314  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315  (exit $ac_status); } && {
20316	 test -z "$ac_c_werror_flag" ||
20317	 test ! -s conftest.err
20318       } && test -s conftest.$ac_objext; then
20319  ac_compiler_gnu=yes
20320else
20321  $as_echo "$as_me: failed program was:" >&5
20322sed 's/^/| /' conftest.$ac_ext >&5
20323
20324	ac_compiler_gnu=no
20325fi
20326
20327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20328ac_cv_c_compiler_gnu=$ac_compiler_gnu
20329
20330fi
20331{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20332$as_echo "$ac_cv_c_compiler_gnu" >&6; }
20333if test $ac_compiler_gnu = yes; then
20334  GCC=yes
20335else
20336  GCC=
20337fi
20338ac_test_CFLAGS=${CFLAGS+set}
20339ac_save_CFLAGS=$CFLAGS
20340{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20341$as_echo_n "checking whether $CC accepts -g... " >&6; }
20342if test "${ac_cv_prog_cc_g+set}" = set; then
20343  $as_echo_n "(cached) " >&6
20344else
20345  ac_save_c_werror_flag=$ac_c_werror_flag
20346   ac_c_werror_flag=yes
20347   ac_cv_prog_cc_g=no
20348   CFLAGS="-g"
20349   cat >conftest.$ac_ext <<_ACEOF
20350/* confdefs.h.  */
20351_ACEOF
20352cat confdefs.h >>conftest.$ac_ext
20353cat >>conftest.$ac_ext <<_ACEOF
20354/* end confdefs.h.  */
20355
20356int
20357main ()
20358{
20359
20360  ;
20361  return 0;
20362}
20363_ACEOF
20364rm -f conftest.$ac_objext
20365if { (ac_try="$ac_compile"
20366case "(($ac_try" in
20367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20368  *) ac_try_echo=$ac_try;;
20369esac
20370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20371$as_echo "$ac_try_echo") >&5
20372  (eval "$ac_compile") 2>conftest.er1
20373  ac_status=$?
20374  grep -v '^ *+' conftest.er1 >conftest.err
20375  rm -f conftest.er1
20376  cat conftest.err >&5
20377  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378  (exit $ac_status); } && {
20379	 test -z "$ac_c_werror_flag" ||
20380	 test ! -s conftest.err
20381       } && test -s conftest.$ac_objext; then
20382  ac_cv_prog_cc_g=yes
20383else
20384  $as_echo "$as_me: failed program was:" >&5
20385sed 's/^/| /' conftest.$ac_ext >&5
20386
20387	CFLAGS=""
20388      cat >conftest.$ac_ext <<_ACEOF
20389/* confdefs.h.  */
20390_ACEOF
20391cat confdefs.h >>conftest.$ac_ext
20392cat >>conftest.$ac_ext <<_ACEOF
20393/* end confdefs.h.  */
20394
20395int
20396main ()
20397{
20398
20399  ;
20400  return 0;
20401}
20402_ACEOF
20403rm -f conftest.$ac_objext
20404if { (ac_try="$ac_compile"
20405case "(($ac_try" in
20406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407  *) ac_try_echo=$ac_try;;
20408esac
20409eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20410$as_echo "$ac_try_echo") >&5
20411  (eval "$ac_compile") 2>conftest.er1
20412  ac_status=$?
20413  grep -v '^ *+' conftest.er1 >conftest.err
20414  rm -f conftest.er1
20415  cat conftest.err >&5
20416  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417  (exit $ac_status); } && {
20418	 test -z "$ac_c_werror_flag" ||
20419	 test ! -s conftest.err
20420       } && test -s conftest.$ac_objext; then
20421  :
20422else
20423  $as_echo "$as_me: failed program was:" >&5
20424sed 's/^/| /' conftest.$ac_ext >&5
20425
20426	ac_c_werror_flag=$ac_save_c_werror_flag
20427	 CFLAGS="-g"
20428	 cat >conftest.$ac_ext <<_ACEOF
20429/* confdefs.h.  */
20430_ACEOF
20431cat confdefs.h >>conftest.$ac_ext
20432cat >>conftest.$ac_ext <<_ACEOF
20433/* end confdefs.h.  */
20434
20435int
20436main ()
20437{
20438
20439  ;
20440  return 0;
20441}
20442_ACEOF
20443rm -f conftest.$ac_objext
20444if { (ac_try="$ac_compile"
20445case "(($ac_try" in
20446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20447  *) ac_try_echo=$ac_try;;
20448esac
20449eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20450$as_echo "$ac_try_echo") >&5
20451  (eval "$ac_compile") 2>conftest.er1
20452  ac_status=$?
20453  grep -v '^ *+' conftest.er1 >conftest.err
20454  rm -f conftest.er1
20455  cat conftest.err >&5
20456  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457  (exit $ac_status); } && {
20458	 test -z "$ac_c_werror_flag" ||
20459	 test ! -s conftest.err
20460       } && test -s conftest.$ac_objext; then
20461  ac_cv_prog_cc_g=yes
20462else
20463  $as_echo "$as_me: failed program was:" >&5
20464sed 's/^/| /' conftest.$ac_ext >&5
20465
20466
20467fi
20468
20469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20470fi
20471
20472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20473fi
20474
20475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20476   ac_c_werror_flag=$ac_save_c_werror_flag
20477fi
20478{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20479$as_echo "$ac_cv_prog_cc_g" >&6; }
20480if test "$ac_test_CFLAGS" = set; then
20481  CFLAGS=$ac_save_CFLAGS
20482elif test $ac_cv_prog_cc_g = yes; then
20483  if test "$GCC" = yes; then
20484    CFLAGS="-g -O2"
20485  else
20486    CFLAGS="-g"
20487  fi
20488else
20489  if test "$GCC" = yes; then
20490    CFLAGS="-O2"
20491  else
20492    CFLAGS=
20493  fi
20494fi
20495{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20496$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20497if test "${ac_cv_prog_cc_c89+set}" = set; then
20498  $as_echo_n "(cached) " >&6
20499else
20500  ac_cv_prog_cc_c89=no
20501ac_save_CC=$CC
20502cat >conftest.$ac_ext <<_ACEOF
20503/* confdefs.h.  */
20504_ACEOF
20505cat confdefs.h >>conftest.$ac_ext
20506cat >>conftest.$ac_ext <<_ACEOF
20507/* end confdefs.h.  */
20508#include <stdarg.h>
20509#include <stdio.h>
20510#include <sys/types.h>
20511#include <sys/stat.h>
20512/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20513struct buf { int x; };
20514FILE * (*rcsopen) (struct buf *, struct stat *, int);
20515static char *e (p, i)
20516     char **p;
20517     int i;
20518{
20519  return p[i];
20520}
20521static char *f (char * (*g) (char **, int), char **p, ...)
20522{
20523  char *s;
20524  va_list v;
20525  va_start (v,p);
20526  s = g (p, va_arg (v,int));
20527  va_end (v);
20528  return s;
20529}
20530
20531/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20532   function prototypes and stuff, but not '\xHH' hex character constants.
20533   These don't provoke an error unfortunately, instead are silently treated
20534   as 'x'.  The following induces an error, until -std is added to get
20535   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20536   array size at least.  It's necessary to write '\x00'==0 to get something
20537   that's true only with -std.  */
20538int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20539
20540/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20541   inside strings and character constants.  */
20542#define FOO(x) 'x'
20543int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20544
20545int test (int i, double x);
20546struct s1 {int (*f) (int a);};
20547struct s2 {int (*f) (double a);};
20548int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20549int argc;
20550char **argv;
20551int
20552main ()
20553{
20554return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20555  ;
20556  return 0;
20557}
20558_ACEOF
20559for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20560	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20561do
20562  CC="$ac_save_CC $ac_arg"
20563  rm -f conftest.$ac_objext
20564if { (ac_try="$ac_compile"
20565case "(($ac_try" in
20566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20567  *) ac_try_echo=$ac_try;;
20568esac
20569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20570$as_echo "$ac_try_echo") >&5
20571  (eval "$ac_compile") 2>conftest.er1
20572  ac_status=$?
20573  grep -v '^ *+' conftest.er1 >conftest.err
20574  rm -f conftest.er1
20575  cat conftest.err >&5
20576  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577  (exit $ac_status); } && {
20578	 test -z "$ac_c_werror_flag" ||
20579	 test ! -s conftest.err
20580       } && test -s conftest.$ac_objext; then
20581  ac_cv_prog_cc_c89=$ac_arg
20582else
20583  $as_echo "$as_me: failed program was:" >&5
20584sed 's/^/| /' conftest.$ac_ext >&5
20585
20586
20587fi
20588
20589rm -f core conftest.err conftest.$ac_objext
20590  test "x$ac_cv_prog_cc_c89" != "xno" && break
20591done
20592rm -f conftest.$ac_ext
20593CC=$ac_save_CC
20594
20595fi
20596# AC_CACHE_VAL
20597case "x$ac_cv_prog_cc_c89" in
20598  x)
20599    { $as_echo "$as_me:$LINENO: result: none needed" >&5
20600$as_echo "none needed" >&6; } ;;
20601  xno)
20602    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20603$as_echo "unsupported" >&6; } ;;
20604  *)
20605    CC="$CC $ac_cv_prog_cc_c89"
20606    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20607$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20608esac
20609
20610
20611ac_ext=c
20612ac_cpp='$CPP $CPPFLAGS'
20613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20615ac_compiler_gnu=$ac_cv_c_compiler_gnu
20616
20617depcc="$CC"   am_compiler_list=
20618
20619{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20620$as_echo_n "checking dependency style of $depcc... " >&6; }
20621if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20622  $as_echo_n "(cached) " >&6
20623else
20624  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20625  # We make a subdir and do the tests there.  Otherwise we can end up
20626  # making bogus files that we don't know about and never remove.  For
20627  # instance it was reported that on HP-UX the gcc test will end up
20628  # making a dummy file named `D' -- because `-MD' means `put the output
20629  # in D'.
20630  mkdir conftest.dir
20631  # Copy depcomp to subdir because otherwise we won't find it if we're
20632  # using a relative directory.
20633  cp "$am_depcomp" conftest.dir
20634  cd conftest.dir
20635  # We will build objects and dependencies in a subdirectory because
20636  # it helps to detect inapplicable dependency modes.  For instance
20637  # both Tru64's cc and ICC support -MD to output dependencies as a
20638  # side effect of compilation, but ICC will put the dependencies in
20639  # the current directory while Tru64 will put them in the object
20640  # directory.
20641  mkdir sub
20642
20643  am_cv_CC_dependencies_compiler_type=none
20644  if test "$am_compiler_list" = ""; then
20645     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20646  fi
20647  for depmode in $am_compiler_list; do
20648    # Setup a source with many dependencies, because some compilers
20649    # like to wrap large dependency lists on column 80 (with \), and
20650    # we should not choose a depcomp mode which is confused by this.
20651    #
20652    # We need to recreate these files for each test, as the compiler may
20653    # overwrite some of them when testing with obscure command lines.
20654    # This happens at least with the AIX C compiler.
20655    : > sub/conftest.c
20656    for i in 1 2 3 4 5 6; do
20657      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20658      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20659      # Solaris 8's {/usr,}/bin/sh.
20660      touch sub/conftst$i.h
20661    done
20662    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20663
20664    case $depmode in
20665    nosideeffect)
20666      # after this tag, mechanisms are not by side-effect, so they'll
20667      # only be used when explicitly requested
20668      if test "x$enable_dependency_tracking" = xyes; then
20669	continue
20670      else
20671	break
20672      fi
20673      ;;
20674    none) break ;;
20675    esac
20676    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20677    # mode.  It turns out that the SunPro C++ compiler does not properly
20678    # handle `-M -o', and we need to detect this.
20679    if depmode=$depmode \
20680       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20681       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20682       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20683         >/dev/null 2>conftest.err &&
20684       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20685       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20686       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20687      # icc doesn't choke on unknown options, it will just issue warnings
20688      # or remarks (even with -Werror).  So we grep stderr for any message
20689      # that says an option was ignored or not supported.
20690      # When given -MP, icc 7.0 and 7.1 complain thusly:
20691      #   icc: Command line warning: ignoring option '-M'; no argument required
20692      # The diagnosis changed in icc 8.0:
20693      #   icc: Command line remark: option '-MP' not supported
20694      if (grep 'ignoring option' conftest.err ||
20695          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20696        am_cv_CC_dependencies_compiler_type=$depmode
20697        break
20698      fi
20699    fi
20700  done
20701
20702  cd ..
20703  rm -rf conftest.dir
20704else
20705  am_cv_CC_dependencies_compiler_type=none
20706fi
20707
20708fi
20709{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20710$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20711CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20712
20713
20714
20715if
20716  test "x$enable_dependency_tracking" != xno \
20717  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20718  am__fastdepCC_TRUE=
20719  am__fastdepCC_FALSE='#'
20720else
20721  am__fastdepCC_TRUE='#'
20722  am__fastdepCC_FALSE=
20723fi
20724
20725
20726
20727
20728
20729
20730
20731# Check whether --with-xorg-module-dir was given.
20732if test "${with_xorg_module_dir+set}" = set; then
20733  withval=$with_xorg_module_dir; moduledir="$withval"
20734else
20735  moduledir="$libdir/xorg/modules"
20736fi
20737
20738
20739# Checks for extensions
20740#XORG_DRIVER_CHECK_EXT(RANDR, randrproto)
20741#XORG_DRIVER_CHECK_EXT(RENDER, renderproto)
20742#XORG_DRIVER_CHECK_EXT(XV, videoproto)
20743
20744# Checks for pkg-config packages
20745
20746
20747if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20748	if test -n "$ac_tool_prefix"; then
20749  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20750set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20751{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20752$as_echo_n "checking for $ac_word... " >&6; }
20753if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20754  $as_echo_n "(cached) " >&6
20755else
20756  case $PKG_CONFIG in
20757  [\\/]* | ?:[\\/]*)
20758  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20759  ;;
20760  *)
20761  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20762for as_dir in $PATH
20763do
20764  IFS=$as_save_IFS
20765  test -z "$as_dir" && as_dir=.
20766  for ac_exec_ext in '' $ac_executable_extensions; do
20767  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20768    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20769    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20770    break 2
20771  fi
20772done
20773done
20774IFS=$as_save_IFS
20775
20776  ;;
20777esac
20778fi
20779PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20780if test -n "$PKG_CONFIG"; then
20781  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20782$as_echo "$PKG_CONFIG" >&6; }
20783else
20784  { $as_echo "$as_me:$LINENO: result: no" >&5
20785$as_echo "no" >&6; }
20786fi
20787
20788
20789fi
20790if test -z "$ac_cv_path_PKG_CONFIG"; then
20791  ac_pt_PKG_CONFIG=$PKG_CONFIG
20792  # Extract the first word of "pkg-config", so it can be a program name with args.
20793set dummy pkg-config; ac_word=$2
20794{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20795$as_echo_n "checking for $ac_word... " >&6; }
20796if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20797  $as_echo_n "(cached) " >&6
20798else
20799  case $ac_pt_PKG_CONFIG in
20800  [\\/]* | ?:[\\/]*)
20801  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20802  ;;
20803  *)
20804  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20805for as_dir in $PATH
20806do
20807  IFS=$as_save_IFS
20808  test -z "$as_dir" && as_dir=.
20809  for ac_exec_ext in '' $ac_executable_extensions; do
20810  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20811    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20812    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20813    break 2
20814  fi
20815done
20816done
20817IFS=$as_save_IFS
20818
20819  ;;
20820esac
20821fi
20822ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20823if test -n "$ac_pt_PKG_CONFIG"; then
20824  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20825$as_echo "$ac_pt_PKG_CONFIG" >&6; }
20826else
20827  { $as_echo "$as_me:$LINENO: result: no" >&5
20828$as_echo "no" >&6; }
20829fi
20830
20831  if test "x$ac_pt_PKG_CONFIG" = x; then
20832    PKG_CONFIG=""
20833  else
20834    case $cross_compiling:$ac_tool_warned in
20835yes:)
20836{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20837whose name does not start with the host triplet.  If you think this
20838configuration is useful to you, please write to autoconf@gnu.org." >&5
20839$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20840whose name does not start with the host triplet.  If you think this
20841configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20842ac_tool_warned=yes ;;
20843esac
20844    PKG_CONFIG=$ac_pt_PKG_CONFIG
20845  fi
20846else
20847  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20848fi
20849
20850fi
20851if test -n "$PKG_CONFIG"; then
20852	_pkg_min_version=0.9.0
20853	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20854$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20855	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20856		{ $as_echo "$as_me:$LINENO: result: yes" >&5
20857$as_echo "yes" >&6; }
20858	else
20859		{ $as_echo "$as_me:$LINENO: result: no" >&5
20860$as_echo "no" >&6; }
20861		PKG_CONFIG=""
20862	fi
20863
20864fi
20865
20866pkg_failed=no
20867{ $as_echo "$as_me:$LINENO: checking for XORG" >&5
20868$as_echo_n "checking for XORG... " >&6; }
20869
20870if test -n "$PKG_CONFIG"; then
20871    if test -n "$XORG_CFLAGS"; then
20872        pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
20873    else
20874        if test -n "$PKG_CONFIG" && \
20875    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto \$REQUIRED_MODULES\"") >&5
20876  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES") 2>&5
20877  ac_status=$?
20878  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879  (exit $ac_status); }; then
20880  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>/dev/null`
20881else
20882  pkg_failed=yes
20883fi
20884    fi
20885else
20886	pkg_failed=untried
20887fi
20888if test -n "$PKG_CONFIG"; then
20889    if test -n "$XORG_LIBS"; then
20890        pkg_cv_XORG_LIBS="$XORG_LIBS"
20891    else
20892        if test -n "$PKG_CONFIG" && \
20893    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto \$REQUIRED_MODULES\"") >&5
20894  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES") 2>&5
20895  ac_status=$?
20896  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897  (exit $ac_status); }; then
20898  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>/dev/null`
20899else
20900  pkg_failed=yes
20901fi
20902    fi
20903else
20904	pkg_failed=untried
20905fi
20906
20907
20908
20909if test $pkg_failed = yes; then
20910
20911if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20912        _pkg_short_errors_supported=yes
20913else
20914        _pkg_short_errors_supported=no
20915fi
20916        if test $_pkg_short_errors_supported = yes; then
20917	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES"`
20918        else
20919	        XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES"`
20920        fi
20921	# Put the nasty error message in config.log where it belongs
20922	echo "$XORG_PKG_ERRORS" >&5
20923
20924	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES) were not met:
20925
20926$XORG_PKG_ERRORS
20927
20928Consider adjusting the PKG_CONFIG_PATH environment variable if you
20929installed software in a non-standard prefix.
20930
20931Alternatively, you may set the environment variables XORG_CFLAGS
20932and XORG_LIBS to avoid the need to call pkg-config.
20933See the pkg-config man page for more details.
20934" >&5
20935$as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES) were not met:
20936
20937$XORG_PKG_ERRORS
20938
20939Consider adjusting the PKG_CONFIG_PATH environment variable if you
20940installed software in a non-standard prefix.
20941
20942Alternatively, you may set the environment variables XORG_CFLAGS
20943and XORG_LIBS to avoid the need to call pkg-config.
20944See the pkg-config man page for more details.
20945" >&2;}
20946   { (exit 1); exit 1; }; }
20947elif test $pkg_failed = untried; then
20948	{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20949is in your PATH or set the PKG_CONFIG environment variable to the full
20950path to pkg-config.
20951
20952Alternatively, you may set the environment variables XORG_CFLAGS
20953and XORG_LIBS to avoid the need to call pkg-config.
20954See the pkg-config man page for more details.
20955
20956To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20957See \`config.log' for more details." >&5
20958$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20959is in your PATH or set the PKG_CONFIG environment variable to the full
20960path to pkg-config.
20961
20962Alternatively, you may set the environment variables XORG_CFLAGS
20963and XORG_LIBS to avoid the need to call pkg-config.
20964See the pkg-config man page for more details.
20965
20966To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20967See \`config.log' for more details." >&2;}
20968   { (exit 1); exit 1; }; }
20969else
20970	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
20971	XORG_LIBS=$pkg_cv_XORG_LIBS
20972        { $as_echo "$as_me:$LINENO: result: yes" >&5
20973$as_echo "yes" >&6; }
20974	:
20975fi
20976sdkdir=$(pkg-config --variable=sdkdir xorg-server)
20977
20978# Checks for libraries.
20979
20980# Checks for header files.
20981{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20982$as_echo_n "checking for ANSI C header files... " >&6; }
20983if test "${ac_cv_header_stdc+set}" = set; then
20984  $as_echo_n "(cached) " >&6
20985else
20986  cat >conftest.$ac_ext <<_ACEOF
20987/* confdefs.h.  */
20988_ACEOF
20989cat confdefs.h >>conftest.$ac_ext
20990cat >>conftest.$ac_ext <<_ACEOF
20991/* end confdefs.h.  */
20992#include <stdlib.h>
20993#include <stdarg.h>
20994#include <string.h>
20995#include <float.h>
20996
20997int
20998main ()
20999{
21000
21001  ;
21002  return 0;
21003}
21004_ACEOF
21005rm -f conftest.$ac_objext
21006if { (ac_try="$ac_compile"
21007case "(($ac_try" in
21008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009  *) ac_try_echo=$ac_try;;
21010esac
21011eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21012$as_echo "$ac_try_echo") >&5
21013  (eval "$ac_compile") 2>conftest.er1
21014  ac_status=$?
21015  grep -v '^ *+' conftest.er1 >conftest.err
21016  rm -f conftest.er1
21017  cat conftest.err >&5
21018  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019  (exit $ac_status); } && {
21020	 test -z "$ac_c_werror_flag" ||
21021	 test ! -s conftest.err
21022       } && test -s conftest.$ac_objext; then
21023  ac_cv_header_stdc=yes
21024else
21025  $as_echo "$as_me: failed program was:" >&5
21026sed 's/^/| /' conftest.$ac_ext >&5
21027
21028	ac_cv_header_stdc=no
21029fi
21030
21031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21032
21033if test $ac_cv_header_stdc = yes; then
21034  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21035  cat >conftest.$ac_ext <<_ACEOF
21036/* confdefs.h.  */
21037_ACEOF
21038cat confdefs.h >>conftest.$ac_ext
21039cat >>conftest.$ac_ext <<_ACEOF
21040/* end confdefs.h.  */
21041#include <string.h>
21042
21043_ACEOF
21044if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21045  $EGREP "memchr" >/dev/null 2>&1; then
21046  :
21047else
21048  ac_cv_header_stdc=no
21049fi
21050rm -f conftest*
21051
21052fi
21053
21054if test $ac_cv_header_stdc = yes; then
21055  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21056  cat >conftest.$ac_ext <<_ACEOF
21057/* confdefs.h.  */
21058_ACEOF
21059cat confdefs.h >>conftest.$ac_ext
21060cat >>conftest.$ac_ext <<_ACEOF
21061/* end confdefs.h.  */
21062#include <stdlib.h>
21063
21064_ACEOF
21065if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21066  $EGREP "free" >/dev/null 2>&1; then
21067  :
21068else
21069  ac_cv_header_stdc=no
21070fi
21071rm -f conftest*
21072
21073fi
21074
21075if test $ac_cv_header_stdc = yes; then
21076  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21077  if test "$cross_compiling" = yes; then
21078  :
21079else
21080  cat >conftest.$ac_ext <<_ACEOF
21081/* confdefs.h.  */
21082_ACEOF
21083cat confdefs.h >>conftest.$ac_ext
21084cat >>conftest.$ac_ext <<_ACEOF
21085/* end confdefs.h.  */
21086#include <ctype.h>
21087#include <stdlib.h>
21088#if ((' ' & 0x0FF) == 0x020)
21089# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21090# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21091#else
21092# define ISLOWER(c) \
21093		   (('a' <= (c) && (c) <= 'i') \
21094		     || ('j' <= (c) && (c) <= 'r') \
21095		     || ('s' <= (c) && (c) <= 'z'))
21096# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21097#endif
21098
21099#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21100int
21101main ()
21102{
21103  int i;
21104  for (i = 0; i < 256; i++)
21105    if (XOR (islower (i), ISLOWER (i))
21106	|| toupper (i) != TOUPPER (i))
21107      return 2;
21108  return 0;
21109}
21110_ACEOF
21111rm -f conftest$ac_exeext
21112if { (ac_try="$ac_link"
21113case "(($ac_try" in
21114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21115  *) ac_try_echo=$ac_try;;
21116esac
21117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21118$as_echo "$ac_try_echo") >&5
21119  (eval "$ac_link") 2>&5
21120  ac_status=$?
21121  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21123  { (case "(($ac_try" in
21124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125  *) ac_try_echo=$ac_try;;
21126esac
21127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21128$as_echo "$ac_try_echo") >&5
21129  (eval "$ac_try") 2>&5
21130  ac_status=$?
21131  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132  (exit $ac_status); }; }; then
21133  :
21134else
21135  $as_echo "$as_me: program exited with status $ac_status" >&5
21136$as_echo "$as_me: failed program was:" >&5
21137sed 's/^/| /' conftest.$ac_ext >&5
21138
21139( exit $ac_status )
21140ac_cv_header_stdc=no
21141fi
21142rm -rf conftest.dSYM
21143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21144fi
21145
21146
21147fi
21148fi
21149{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21150$as_echo "$ac_cv_header_stdc" >&6; }
21151if test $ac_cv_header_stdc = yes; then
21152
21153cat >>confdefs.h <<\_ACEOF
21154#define STDC_HEADERS 1
21155_ACEOF
21156
21157fi
21158
21159
21160# Check for xf1bpp & xf4bpp (removed in xorg-server 1.6 & later)
21161SAVE_CPPFLAGS="$CPPFLAGS"
21162CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
21163if test "${ac_cv_header_xf1bpp_h+set}" = set; then
21164  { $as_echo "$as_me:$LINENO: checking for xf1bpp.h" >&5
21165$as_echo_n "checking for xf1bpp.h... " >&6; }
21166if test "${ac_cv_header_xf1bpp_h+set}" = set; then
21167  $as_echo_n "(cached) " >&6
21168fi
21169{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5
21170$as_echo "$ac_cv_header_xf1bpp_h" >&6; }
21171else
21172  # Is the header compilable?
21173{ $as_echo "$as_me:$LINENO: checking xf1bpp.h usability" >&5
21174$as_echo_n "checking xf1bpp.h usability... " >&6; }
21175cat >conftest.$ac_ext <<_ACEOF
21176/* confdefs.h.  */
21177_ACEOF
21178cat confdefs.h >>conftest.$ac_ext
21179cat >>conftest.$ac_ext <<_ACEOF
21180/* end confdefs.h.  */
21181$ac_includes_default
21182#include <xf1bpp.h>
21183_ACEOF
21184rm -f conftest.$ac_objext
21185if { (ac_try="$ac_compile"
21186case "(($ac_try" in
21187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21188  *) ac_try_echo=$ac_try;;
21189esac
21190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21191$as_echo "$ac_try_echo") >&5
21192  (eval "$ac_compile") 2>conftest.er1
21193  ac_status=$?
21194  grep -v '^ *+' conftest.er1 >conftest.err
21195  rm -f conftest.er1
21196  cat conftest.err >&5
21197  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198  (exit $ac_status); } && {
21199	 test -z "$ac_c_werror_flag" ||
21200	 test ! -s conftest.err
21201       } && test -s conftest.$ac_objext; then
21202  ac_header_compiler=yes
21203else
21204  $as_echo "$as_me: failed program was:" >&5
21205sed 's/^/| /' conftest.$ac_ext >&5
21206
21207	ac_header_compiler=no
21208fi
21209
21210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21211{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21212$as_echo "$ac_header_compiler" >&6; }
21213
21214# Is the header present?
21215{ $as_echo "$as_me:$LINENO: checking xf1bpp.h presence" >&5
21216$as_echo_n "checking xf1bpp.h presence... " >&6; }
21217cat >conftest.$ac_ext <<_ACEOF
21218/* confdefs.h.  */
21219_ACEOF
21220cat confdefs.h >>conftest.$ac_ext
21221cat >>conftest.$ac_ext <<_ACEOF
21222/* end confdefs.h.  */
21223#include <xf1bpp.h>
21224_ACEOF
21225if { (ac_try="$ac_cpp conftest.$ac_ext"
21226case "(($ac_try" in
21227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21228  *) ac_try_echo=$ac_try;;
21229esac
21230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21231$as_echo "$ac_try_echo") >&5
21232  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21233  ac_status=$?
21234  grep -v '^ *+' conftest.er1 >conftest.err
21235  rm -f conftest.er1
21236  cat conftest.err >&5
21237  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238  (exit $ac_status); } >/dev/null && {
21239	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21240	 test ! -s conftest.err
21241       }; then
21242  ac_header_preproc=yes
21243else
21244  $as_echo "$as_me: failed program was:" >&5
21245sed 's/^/| /' conftest.$ac_ext >&5
21246
21247  ac_header_preproc=no
21248fi
21249
21250rm -f conftest.err conftest.$ac_ext
21251{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21252$as_echo "$ac_header_preproc" >&6; }
21253
21254# So?  What about this header?
21255case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21256  yes:no: )
21257    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21258$as_echo "$as_me: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21259    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the compiler's result" >&5
21260$as_echo "$as_me: WARNING: xf1bpp.h: proceeding with the compiler's result" >&2;}
21261    ac_header_preproc=yes
21262    ;;
21263  no:yes:* )
21264    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: present but cannot be compiled" >&5
21265$as_echo "$as_me: WARNING: xf1bpp.h: present but cannot be compiled" >&2;}
21266    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h:     check for missing prerequisite headers?" >&5
21267$as_echo "$as_me: WARNING: xf1bpp.h:     check for missing prerequisite headers?" >&2;}
21268    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: see the Autoconf documentation" >&5
21269$as_echo "$as_me: WARNING: xf1bpp.h: see the Autoconf documentation" >&2;}
21270    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h:     section \"Present But Cannot Be Compiled\"" >&5
21271$as_echo "$as_me: WARNING: xf1bpp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21272    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&5
21273$as_echo "$as_me: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&2;}
21274    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&5
21275$as_echo "$as_me: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&2;}
21276    ( cat <<\_ASBOX
21277## ---------------------------------------------------------------------- ##
21278## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
21279## ---------------------------------------------------------------------- ##
21280_ASBOX
21281     ) | sed "s/^/$as_me: WARNING:     /" >&2
21282    ;;
21283esac
21284{ $as_echo "$as_me:$LINENO: checking for xf1bpp.h" >&5
21285$as_echo_n "checking for xf1bpp.h... " >&6; }
21286if test "${ac_cv_header_xf1bpp_h+set}" = set; then
21287  $as_echo_n "(cached) " >&6
21288else
21289  ac_cv_header_xf1bpp_h=$ac_header_preproc
21290fi
21291{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5
21292$as_echo "$ac_cv_header_xf1bpp_h" >&6; }
21293
21294fi
21295if test $ac_cv_header_xf1bpp_h = yes; then
21296
21297cat >>confdefs.h <<\_ACEOF
21298#define HAVE_XF1BPP 1
21299_ACEOF
21300
21301fi
21302
21303
21304if test "${ac_cv_header_xf4bpp_h+set}" = set; then
21305  { $as_echo "$as_me:$LINENO: checking for xf4bpp.h" >&5
21306$as_echo_n "checking for xf4bpp.h... " >&6; }
21307if test "${ac_cv_header_xf4bpp_h+set}" = set; then
21308  $as_echo_n "(cached) " >&6
21309fi
21310{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5
21311$as_echo "$ac_cv_header_xf4bpp_h" >&6; }
21312else
21313  # Is the header compilable?
21314{ $as_echo "$as_me:$LINENO: checking xf4bpp.h usability" >&5
21315$as_echo_n "checking xf4bpp.h usability... " >&6; }
21316cat >conftest.$ac_ext <<_ACEOF
21317/* confdefs.h.  */
21318_ACEOF
21319cat confdefs.h >>conftest.$ac_ext
21320cat >>conftest.$ac_ext <<_ACEOF
21321/* end confdefs.h.  */
21322$ac_includes_default
21323#include <xf4bpp.h>
21324_ACEOF
21325rm -f conftest.$ac_objext
21326if { (ac_try="$ac_compile"
21327case "(($ac_try" in
21328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21329  *) ac_try_echo=$ac_try;;
21330esac
21331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21332$as_echo "$ac_try_echo") >&5
21333  (eval "$ac_compile") 2>conftest.er1
21334  ac_status=$?
21335  grep -v '^ *+' conftest.er1 >conftest.err
21336  rm -f conftest.er1
21337  cat conftest.err >&5
21338  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339  (exit $ac_status); } && {
21340	 test -z "$ac_c_werror_flag" ||
21341	 test ! -s conftest.err
21342       } && test -s conftest.$ac_objext; then
21343  ac_header_compiler=yes
21344else
21345  $as_echo "$as_me: failed program was:" >&5
21346sed 's/^/| /' conftest.$ac_ext >&5
21347
21348	ac_header_compiler=no
21349fi
21350
21351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21352{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21353$as_echo "$ac_header_compiler" >&6; }
21354
21355# Is the header present?
21356{ $as_echo "$as_me:$LINENO: checking xf4bpp.h presence" >&5
21357$as_echo_n "checking xf4bpp.h presence... " >&6; }
21358cat >conftest.$ac_ext <<_ACEOF
21359/* confdefs.h.  */
21360_ACEOF
21361cat confdefs.h >>conftest.$ac_ext
21362cat >>conftest.$ac_ext <<_ACEOF
21363/* end confdefs.h.  */
21364#include <xf4bpp.h>
21365_ACEOF
21366if { (ac_try="$ac_cpp conftest.$ac_ext"
21367case "(($ac_try" in
21368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21369  *) ac_try_echo=$ac_try;;
21370esac
21371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21372$as_echo "$ac_try_echo") >&5
21373  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21374  ac_status=$?
21375  grep -v '^ *+' conftest.er1 >conftest.err
21376  rm -f conftest.er1
21377  cat conftest.err >&5
21378  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379  (exit $ac_status); } >/dev/null && {
21380	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21381	 test ! -s conftest.err
21382       }; then
21383  ac_header_preproc=yes
21384else
21385  $as_echo "$as_me: failed program was:" >&5
21386sed 's/^/| /' conftest.$ac_ext >&5
21387
21388  ac_header_preproc=no
21389fi
21390
21391rm -f conftest.err conftest.$ac_ext
21392{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21393$as_echo "$ac_header_preproc" >&6; }
21394
21395# So?  What about this header?
21396case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21397  yes:no: )
21398    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21399$as_echo "$as_me: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21400    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the compiler's result" >&5
21401$as_echo "$as_me: WARNING: xf4bpp.h: proceeding with the compiler's result" >&2;}
21402    ac_header_preproc=yes
21403    ;;
21404  no:yes:* )
21405    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: present but cannot be compiled" >&5
21406$as_echo "$as_me: WARNING: xf4bpp.h: present but cannot be compiled" >&2;}
21407    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h:     check for missing prerequisite headers?" >&5
21408$as_echo "$as_me: WARNING: xf4bpp.h:     check for missing prerequisite headers?" >&2;}
21409    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: see the Autoconf documentation" >&5
21410$as_echo "$as_me: WARNING: xf4bpp.h: see the Autoconf documentation" >&2;}
21411    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h:     section \"Present But Cannot Be Compiled\"" >&5
21412$as_echo "$as_me: WARNING: xf4bpp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21413    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&5
21414$as_echo "$as_me: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&2;}
21415    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&5
21416$as_echo "$as_me: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&2;}
21417    ( cat <<\_ASBOX
21418## ---------------------------------------------------------------------- ##
21419## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
21420## ---------------------------------------------------------------------- ##
21421_ASBOX
21422     ) | sed "s/^/$as_me: WARNING:     /" >&2
21423    ;;
21424esac
21425{ $as_echo "$as_me:$LINENO: checking for xf4bpp.h" >&5
21426$as_echo_n "checking for xf4bpp.h... " >&6; }
21427if test "${ac_cv_header_xf4bpp_h+set}" = set; then
21428  $as_echo_n "(cached) " >&6
21429else
21430  ac_cv_header_xf4bpp_h=$ac_header_preproc
21431fi
21432{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5
21433$as_echo "$ac_cv_header_xf4bpp_h" >&6; }
21434
21435fi
21436if test $ac_cv_header_xf4bpp_h = yes; then
21437
21438cat >>confdefs.h <<\_ACEOF
21439#define HAVE_XF4BPP 1
21440_ACEOF
21441
21442fi
21443
21444
21445CPPFLAGS="$SAVE_CPPFLAGS"
21446
21447
21448
21449
21450DRIVER_NAME=wsfb
21451
21452
21453
21454
21455
21456if test x$APP_MAN_SUFFIX = x    ; then
21457    APP_MAN_SUFFIX=1
21458fi
21459if test x$APP_MAN_DIR = x    ; then
21460    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
21461fi
21462
21463if test x$LIB_MAN_SUFFIX = x    ; then
21464    LIB_MAN_SUFFIX=3
21465fi
21466if test x$LIB_MAN_DIR = x    ; then
21467    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
21468fi
21469
21470if test x$FILE_MAN_SUFFIX = x    ; then
21471    case $host_os in
21472	solaris*)	FILE_MAN_SUFFIX=4  ;;
21473	*)		FILE_MAN_SUFFIX=5  ;;
21474    esac
21475fi
21476if test x$FILE_MAN_DIR = x    ; then
21477    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
21478fi
21479
21480if test x$MISC_MAN_SUFFIX = x    ; then
21481    case $host_os in
21482	solaris*)	MISC_MAN_SUFFIX=5  ;;
21483	*)		MISC_MAN_SUFFIX=7  ;;
21484    esac
21485fi
21486if test x$MISC_MAN_DIR = x    ; then
21487    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
21488fi
21489
21490if test x$DRIVER_MAN_SUFFIX = x    ; then
21491    case $host_os in
21492	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
21493	*)		DRIVER_MAN_SUFFIX=4  ;;
21494    esac
21495fi
21496if test x$DRIVER_MAN_DIR = x    ; then
21497    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
21498fi
21499
21500if test x$ADMIN_MAN_SUFFIX = x    ; then
21501    case $host_os in
21502	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
21503	*)		ADMIN_MAN_SUFFIX=8  ;;
21504    esac
21505fi
21506if test x$ADMIN_MAN_DIR = x    ; then
21507    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
21508fi
21509
21510
21511
21512
21513
21514
21515
21516
21517
21518
21519
21520
21521
21522
21523
21524
21525
21526# Check whether --with-release-version was given.
21527if test "${with_release_version+set}" = set; then
21528  withval=$with_release_version; RELEASE_VERSION="$withval"
21529else
21530  RELEASE_VERSION=""
21531fi
21532
21533	if test "x$RELEASE_VERSION" != "x"; then
21534		PACKAGE="$PACKAGE-$RELEASE_VERSION"
21535		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
21536		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
21537$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
21538	fi
21539
21540cat >>confdefs.h <<_ACEOF
21541#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
21542_ACEOF
21543
21544	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
21545	if test "x$PVM" = "x"; then
21546		PVM="0"
21547	fi
21548
21549cat >>confdefs.h <<_ACEOF
21550#define PACKAGE_VERSION_MINOR $PVM
21551_ACEOF
21552
21553	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
21554	if test "x$PVP" = "x"; then
21555		PVP="0"
21556	fi
21557
21558cat >>confdefs.h <<_ACEOF
21559#define PACKAGE_VERSION_PATCHLEVEL $PVP
21560_ACEOF
21561
21562
21563
21564CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
21565mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
21566echo 'git directory not found: installing possibly empty changelog.' >&2)"
21567
21568distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
21569
21570
21571
21572ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
21573
21574cat >confcache <<\_ACEOF
21575# This file is a shell script that caches the results of configure
21576# tests run on this system so they can be shared between configure
21577# scripts and configure runs, see configure's option --config-cache.
21578# It is not useful on other systems.  If it contains results you don't
21579# want to keep, you may remove or edit it.
21580#
21581# config.status only pays attention to the cache file if you give it
21582# the --recheck option to rerun configure.
21583#
21584# `ac_cv_env_foo' variables (set or unset) will be overridden when
21585# loading this file, other *unset* `ac_cv_foo' will be assigned the
21586# following values.
21587
21588_ACEOF
21589
21590# The following way of writing the cache mishandles newlines in values,
21591# but we know of no workaround that is simple, portable, and efficient.
21592# So, we kill variables containing newlines.
21593# Ultrix sh set writes to stderr and can't be redirected directly,
21594# and sets the high bit in the cache file unless we assign to the vars.
21595(
21596  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21597    eval ac_val=\$$ac_var
21598    case $ac_val in #(
21599    *${as_nl}*)
21600      case $ac_var in #(
21601      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21602$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21603      esac
21604      case $ac_var in #(
21605      _ | IFS | as_nl) ;; #(
21606      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21607      *) $as_unset $ac_var ;;
21608      esac ;;
21609    esac
21610  done
21611
21612  (set) 2>&1 |
21613    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21614    *${as_nl}ac_space=\ *)
21615      # `set' does not quote correctly, so add quotes (double-quote
21616      # substitution turns \\\\ into \\, and sed turns \\ into \).
21617      sed -n \
21618	"s/'/'\\\\''/g;
21619	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21620      ;; #(
21621    *)
21622      # `set' quotes correctly as required by POSIX, so do not add quotes.
21623      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21624      ;;
21625    esac |
21626    sort
21627) |
21628  sed '
21629     /^ac_cv_env_/b end
21630     t clear
21631     :clear
21632     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21633     t end
21634     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21635     :end' >>confcache
21636if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21637  if test -w "$cache_file"; then
21638    test "x$cache_file" != "x/dev/null" &&
21639      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21640$as_echo "$as_me: updating cache $cache_file" >&6;}
21641    cat confcache >$cache_file
21642  else
21643    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21644$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21645  fi
21646fi
21647rm -f confcache
21648
21649test "x$prefix" = xNONE && prefix=$ac_default_prefix
21650# Let make expand exec_prefix.
21651test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21652
21653DEFS=-DHAVE_CONFIG_H
21654
21655ac_libobjs=
21656ac_ltlibobjs=
21657for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21658  # 1. Remove the extension, and $U if already installed.
21659  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21660  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21661  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21662  #    will be set to the directory where LIBOBJS objects are built.
21663  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21664  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21665done
21666LIBOBJS=$ac_libobjs
21667
21668LTLIBOBJS=$ac_ltlibobjs
21669
21670
21671if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21672  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21673Usually this means the macro was only invoked conditionally." >&5
21674$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21675Usually this means the macro was only invoked conditionally." >&2;}
21676   { (exit 1); exit 1; }; }
21677fi
21678if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21679  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21680Usually this means the macro was only invoked conditionally." >&5
21681$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21682Usually this means the macro was only invoked conditionally." >&2;}
21683   { (exit 1); exit 1; }; }
21684fi
21685if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21686  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21687Usually this means the macro was only invoked conditionally." >&5
21688$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21689Usually this means the macro was only invoked conditionally." >&2;}
21690   { (exit 1); exit 1; }; }
21691fi
21692if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21693  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21694Usually this means the macro was only invoked conditionally." >&5
21695$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21696Usually this means the macro was only invoked conditionally." >&2;}
21697   { (exit 1); exit 1; }; }
21698fi
21699if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21700  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21701Usually this means the macro was only invoked conditionally." >&5
21702$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21703Usually this means the macro was only invoked conditionally." >&2;}
21704   { (exit 1); exit 1; }; }
21705fi
21706
21707: ${CONFIG_STATUS=./config.status}
21708ac_write_fail=0
21709ac_clean_files_save=$ac_clean_files
21710ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21711{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21712$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21713cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21714#! $SHELL
21715# Generated by $as_me.
21716# Run this file to recreate the current configuration.
21717# Compiler output produced by configure, useful for debugging
21718# configure, is in config.log if it exists.
21719
21720debug=false
21721ac_cs_recheck=false
21722ac_cs_silent=false
21723SHELL=\${CONFIG_SHELL-$SHELL}
21724_ACEOF
21725
21726cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21727## --------------------- ##
21728## M4sh Initialization.  ##
21729## --------------------- ##
21730
21731# Be more Bourne compatible
21732DUALCASE=1; export DUALCASE # for MKS sh
21733if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21734  emulate sh
21735  NULLCMD=:
21736  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21737  # is contrary to our usage.  Disable this feature.
21738  alias -g '${1+"$@"}'='"$@"'
21739  setopt NO_GLOB_SUBST
21740else
21741  case `(set -o) 2>/dev/null` in
21742  *posix*) set -o posix ;;
21743esac
21744
21745fi
21746
21747
21748
21749
21750# PATH needs CR
21751# Avoid depending upon Character Ranges.
21752as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21753as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21754as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21755as_cr_digits='0123456789'
21756as_cr_alnum=$as_cr_Letters$as_cr_digits
21757
21758as_nl='
21759'
21760export as_nl
21761# Printing a long string crashes Solaris 7 /usr/bin/printf.
21762as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21763as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21764as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21765if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21766  as_echo='printf %s\n'
21767  as_echo_n='printf %s'
21768else
21769  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21770    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21771    as_echo_n='/usr/ucb/echo -n'
21772  else
21773    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21774    as_echo_n_body='eval
21775      arg=$1;
21776      case $arg in
21777      *"$as_nl"*)
21778	expr "X$arg" : "X\\(.*\\)$as_nl";
21779	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21780      esac;
21781      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21782    '
21783    export as_echo_n_body
21784    as_echo_n='sh -c $as_echo_n_body as_echo'
21785  fi
21786  export as_echo_body
21787  as_echo='sh -c $as_echo_body as_echo'
21788fi
21789
21790# The user is always right.
21791if test "${PATH_SEPARATOR+set}" != set; then
21792  PATH_SEPARATOR=:
21793  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21794    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21795      PATH_SEPARATOR=';'
21796  }
21797fi
21798
21799# Support unset when possible.
21800if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21801  as_unset=unset
21802else
21803  as_unset=false
21804fi
21805
21806
21807# IFS
21808# We need space, tab and new line, in precisely that order.  Quoting is
21809# there to prevent editors from complaining about space-tab.
21810# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21811# splitting by setting IFS to empty value.)
21812IFS=" ""	$as_nl"
21813
21814# Find who we are.  Look in the path if we contain no directory separator.
21815case $0 in
21816  *[\\/]* ) as_myself=$0 ;;
21817  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21818for as_dir in $PATH
21819do
21820  IFS=$as_save_IFS
21821  test -z "$as_dir" && as_dir=.
21822  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21823done
21824IFS=$as_save_IFS
21825
21826     ;;
21827esac
21828# We did not find ourselves, most probably we were run as `sh COMMAND'
21829# in which case we are not to be found in the path.
21830if test "x$as_myself" = x; then
21831  as_myself=$0
21832fi
21833if test ! -f "$as_myself"; then
21834  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21835  { (exit 1); exit 1; }
21836fi
21837
21838# Work around bugs in pre-3.0 UWIN ksh.
21839for as_var in ENV MAIL MAILPATH
21840do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21841done
21842PS1='$ '
21843PS2='> '
21844PS4='+ '
21845
21846# NLS nuisances.
21847LC_ALL=C
21848export LC_ALL
21849LANGUAGE=C
21850export LANGUAGE
21851
21852# Required to use basename.
21853if expr a : '\(a\)' >/dev/null 2>&1 &&
21854   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21855  as_expr=expr
21856else
21857  as_expr=false
21858fi
21859
21860if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21861  as_basename=basename
21862else
21863  as_basename=false
21864fi
21865
21866
21867# Name of the executable.
21868as_me=`$as_basename -- "$0" ||
21869$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21870	 X"$0" : 'X\(//\)$' \| \
21871	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21872$as_echo X/"$0" |
21873    sed '/^.*\/\([^/][^/]*\)\/*$/{
21874	    s//\1/
21875	    q
21876	  }
21877	  /^X\/\(\/\/\)$/{
21878	    s//\1/
21879	    q
21880	  }
21881	  /^X\/\(\/\).*/{
21882	    s//\1/
21883	    q
21884	  }
21885	  s/.*/./; q'`
21886
21887# CDPATH.
21888$as_unset CDPATH
21889
21890
21891
21892  as_lineno_1=$LINENO
21893  as_lineno_2=$LINENO
21894  test "x$as_lineno_1" != "x$as_lineno_2" &&
21895  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21896
21897  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21898  # uniformly replaced by the line number.  The first 'sed' inserts a
21899  # line-number line after each line using $LINENO; the second 'sed'
21900  # does the real work.  The second script uses 'N' to pair each
21901  # line-number line with the line containing $LINENO, and appends
21902  # trailing '-' during substitution so that $LINENO is not a special
21903  # case at line end.
21904  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21905  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21906  # E. McMahon (1931-1989) for sed's syntax.  :-)
21907  sed -n '
21908    p
21909    /[$]LINENO/=
21910  ' <$as_myself |
21911    sed '
21912      s/[$]LINENO.*/&-/
21913      t lineno
21914      b
21915      :lineno
21916      N
21917      :loop
21918      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21919      t loop
21920      s/-\n.*//
21921    ' >$as_me.lineno &&
21922  chmod +x "$as_me.lineno" ||
21923    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21924   { (exit 1); exit 1; }; }
21925
21926  # Don't try to exec as it changes $[0], causing all sort of problems
21927  # (the dirname of $[0] is not the place where we might find the
21928  # original and so on.  Autoconf is especially sensitive to this).
21929  . "./$as_me.lineno"
21930  # Exit status is that of the last command.
21931  exit
21932}
21933
21934
21935if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21936  as_dirname=dirname
21937else
21938  as_dirname=false
21939fi
21940
21941ECHO_C= ECHO_N= ECHO_T=
21942case `echo -n x` in
21943-n*)
21944  case `echo 'x\c'` in
21945  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21946  *)   ECHO_C='\c';;
21947  esac;;
21948*)
21949  ECHO_N='-n';;
21950esac
21951if expr a : '\(a\)' >/dev/null 2>&1 &&
21952   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21953  as_expr=expr
21954else
21955  as_expr=false
21956fi
21957
21958rm -f conf$$ conf$$.exe conf$$.file
21959if test -d conf$$.dir; then
21960  rm -f conf$$.dir/conf$$.file
21961else
21962  rm -f conf$$.dir
21963  mkdir conf$$.dir 2>/dev/null
21964fi
21965if (echo >conf$$.file) 2>/dev/null; then
21966  if ln -s conf$$.file conf$$ 2>/dev/null; then
21967    as_ln_s='ln -s'
21968    # ... but there are two gotchas:
21969    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21970    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21971    # In both cases, we have to default to `cp -p'.
21972    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21973      as_ln_s='cp -p'
21974  elif ln conf$$.file conf$$ 2>/dev/null; then
21975    as_ln_s=ln
21976  else
21977    as_ln_s='cp -p'
21978  fi
21979else
21980  as_ln_s='cp -p'
21981fi
21982rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21983rmdir conf$$.dir 2>/dev/null
21984
21985if mkdir -p . 2>/dev/null; then
21986  as_mkdir_p=:
21987else
21988  test -d ./-p && rmdir ./-p
21989  as_mkdir_p=false
21990fi
21991
21992if test -x / >/dev/null 2>&1; then
21993  as_test_x='test -x'
21994else
21995  if ls -dL / >/dev/null 2>&1; then
21996    as_ls_L_option=L
21997  else
21998    as_ls_L_option=
21999  fi
22000  as_test_x='
22001    eval sh -c '\''
22002      if test -d "$1"; then
22003	test -d "$1/.";
22004      else
22005	case $1 in
22006	-*)set "./$1";;
22007	esac;
22008	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22009	???[sx]*):;;*)false;;esac;fi
22010    '\'' sh
22011  '
22012fi
22013as_executable_p=$as_test_x
22014
22015# Sed expression to map a string onto a valid CPP name.
22016as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22017
22018# Sed expression to map a string onto a valid variable name.
22019as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22020
22021
22022exec 6>&1
22023
22024# Save the log message, to keep $[0] and so on meaningful, and to
22025# report actual input values of CONFIG_FILES etc. instead of their
22026# values after options handling.
22027ac_log="
22028This file was extended by xf86-video-wsfb $as_me 0.3.0, which was
22029generated by GNU Autoconf 2.62.  Invocation command line was
22030
22031  CONFIG_FILES    = $CONFIG_FILES
22032  CONFIG_HEADERS  = $CONFIG_HEADERS
22033  CONFIG_LINKS    = $CONFIG_LINKS
22034  CONFIG_COMMANDS = $CONFIG_COMMANDS
22035  $ $0 $@
22036
22037on `(hostname || uname -n) 2>/dev/null | sed 1q`
22038"
22039
22040_ACEOF
22041
22042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22043# Files that config.status was made for.
22044config_files="$ac_config_files"
22045config_headers="$ac_config_headers"
22046config_commands="$ac_config_commands"
22047
22048_ACEOF
22049
22050cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22051ac_cs_usage="\
22052\`$as_me' instantiates files from templates according to the
22053current configuration.
22054
22055Usage: $0 [OPTIONS] [FILE]...
22056
22057  -h, --help       print this help, then exit
22058  -V, --version    print version number and configuration settings, then exit
22059  -q, --quiet      do not print progress messages
22060  -d, --debug      don't remove temporary files
22061      --recheck    update $as_me by reconfiguring in the same conditions
22062  --file=FILE[:TEMPLATE]
22063                   instantiate the configuration file FILE
22064  --header=FILE[:TEMPLATE]
22065                   instantiate the configuration header FILE
22066
22067Configuration files:
22068$config_files
22069
22070Configuration headers:
22071$config_headers
22072
22073Configuration commands:
22074$config_commands
22075
22076Report bugs to <bug-autoconf@gnu.org>."
22077
22078_ACEOF
22079cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22080ac_cs_version="\\
22081xf86-video-wsfb config.status 0.3.0
22082configured by $0, generated by GNU Autoconf 2.62,
22083  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22084
22085Copyright (C) 2008 Free Software Foundation, Inc.
22086This config.status script is free software; the Free Software Foundation
22087gives unlimited permission to copy, distribute and modify it."
22088
22089ac_pwd='$ac_pwd'
22090srcdir='$srcdir'
22091INSTALL='$INSTALL'
22092AWK='$AWK'
22093test -n "\$AWK" || AWK=awk
22094_ACEOF
22095
22096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22097# The default lists apply if the user does not specify any file.
22098ac_need_defaults=:
22099while test $# != 0
22100do
22101  case $1 in
22102  --*=*)
22103    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22104    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22105    ac_shift=:
22106    ;;
22107  *)
22108    ac_option=$1
22109    ac_optarg=$2
22110    ac_shift=shift
22111    ;;
22112  esac
22113
22114  case $ac_option in
22115  # Handling of the options.
22116  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22117    ac_cs_recheck=: ;;
22118  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22119    $as_echo "$ac_cs_version"; exit ;;
22120  --debug | --debu | --deb | --de | --d | -d )
22121    debug=: ;;
22122  --file | --fil | --fi | --f )
22123    $ac_shift
22124    case $ac_optarg in
22125    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22126    esac
22127    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22128    ac_need_defaults=false;;
22129  --header | --heade | --head | --hea )
22130    $ac_shift
22131    case $ac_optarg in
22132    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22133    esac
22134    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22135    ac_need_defaults=false;;
22136  --he | --h)
22137    # Conflict between --help and --header
22138    { $as_echo "$as_me: error: ambiguous option: $1
22139Try \`$0 --help' for more information." >&2
22140   { (exit 1); exit 1; }; };;
22141  --help | --hel | -h )
22142    $as_echo "$ac_cs_usage"; exit ;;
22143  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22144  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22145    ac_cs_silent=: ;;
22146
22147  # This is an error.
22148  -*) { $as_echo "$as_me: error: unrecognized option: $1
22149Try \`$0 --help' for more information." >&2
22150   { (exit 1); exit 1; }; } ;;
22151
22152  *) ac_config_targets="$ac_config_targets $1"
22153     ac_need_defaults=false ;;
22154
22155  esac
22156  shift
22157done
22158
22159ac_configure_extra_args=
22160
22161if $ac_cs_silent; then
22162  exec 6>/dev/null
22163  ac_configure_extra_args="$ac_configure_extra_args --silent"
22164fi
22165
22166_ACEOF
22167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22168if \$ac_cs_recheck; then
22169  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22170  shift
22171  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22172  CONFIG_SHELL='$SHELL'
22173  export CONFIG_SHELL
22174  exec "\$@"
22175fi
22176
22177_ACEOF
22178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22179exec 5>>config.log
22180{
22181  echo
22182  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22183## Running $as_me. ##
22184_ASBOX
22185  $as_echo "$ac_log"
22186} >&5
22187
22188_ACEOF
22189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22190#
22191# INIT-COMMANDS
22192#
22193AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22194
22195_ACEOF
22196
22197cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22198
22199# Handling of arguments.
22200for ac_config_target in $ac_config_targets
22201do
22202  case $ac_config_target in
22203    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22204    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22205    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22206    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22207    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22208
22209  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22210$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22211   { (exit 1); exit 1; }; };;
22212  esac
22213done
22214
22215
22216# If the user did not use the arguments to specify the items to instantiate,
22217# then the envvar interface is used.  Set only those that are not.
22218# We use the long form for the default assignment because of an extremely
22219# bizarre bug on SunOS 4.1.3.
22220if $ac_need_defaults; then
22221  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22222  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22223  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22224fi
22225
22226# Have a temporary directory for convenience.  Make it in the build tree
22227# simply because there is no reason against having it here, and in addition,
22228# creating and moving files from /tmp can sometimes cause problems.
22229# Hook for its removal unless debugging.
22230# Note that there is a small window in which the directory will not be cleaned:
22231# after its creation but before its name has been assigned to `$tmp'.
22232$debug ||
22233{
22234  tmp=
22235  trap 'exit_status=$?
22236  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22237' 0
22238  trap '{ (exit 1); exit 1; }' 1 2 13 15
22239}
22240# Create a (secure) tmp directory for tmp files.
22241
22242{
22243  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22244  test -n "$tmp" && test -d "$tmp"
22245}  ||
22246{
22247  tmp=./conf$$-$RANDOM
22248  (umask 077 && mkdir "$tmp")
22249} ||
22250{
22251   $as_echo "$as_me: cannot create a temporary directory in ." >&2
22252   { (exit 1); exit 1; }
22253}
22254
22255# Set up the scripts for CONFIG_FILES section.
22256# No need to generate them if there are no CONFIG_FILES.
22257# This happens for instance with `./config.status config.h'.
22258if test -n "$CONFIG_FILES"; then
22259
22260
22261ac_cr='
22262'
22263ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22264if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22265  ac_cs_awk_cr='\\r'
22266else
22267  ac_cs_awk_cr=$ac_cr
22268fi
22269
22270echo 'BEGIN {' >"$tmp/subs1.awk" &&
22271_ACEOF
22272
22273
22274{
22275  echo "cat >conf$$subs.awk <<_ACEOF" &&
22276  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22277  echo "_ACEOF"
22278} >conf$$subs.sh ||
22279  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22280$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22281   { (exit 1); exit 1; }; }
22282ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22283ac_delim='%!_!# '
22284for ac_last_try in false false false false false :; do
22285  . ./conf$$subs.sh ||
22286    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22287$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22288   { (exit 1); exit 1; }; }
22289
22290  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
22291    break
22292  elif $ac_last_try; then
22293    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22294$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22295   { (exit 1); exit 1; }; }
22296  else
22297    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22298  fi
22299done
22300rm -f conf$$subs.sh
22301
22302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22303cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22304_ACEOF
22305sed -n '
22306h
22307s/^/S["/; s/!.*/"]=/
22308p
22309g
22310s/^[^!]*!//
22311:repl
22312t repl
22313s/'"$ac_delim"'$//
22314t delim
22315:nl
22316h
22317s/\(.\{148\}\).*/\1/
22318t more1
22319s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22320p
22321n
22322b repl
22323:more1
22324s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22325p
22326g
22327s/.\{148\}//
22328t nl
22329:delim
22330h
22331s/\(.\{148\}\).*/\1/
22332t more2
22333s/["\\]/\\&/g; s/^/"/; s/$/"/
22334p
22335b
22336:more2
22337s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22338p
22339g
22340s/.\{148\}//
22341t delim
22342' <conf$$subs.awk | sed '
22343/^[^""]/{
22344  N
22345  s/\n//
22346}
22347' >>$CONFIG_STATUS || ac_write_fail=1
22348rm -f conf$$subs.awk
22349cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22350_ACAWK
22351cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22352  for (key in S) S_is_set[key] = 1
22353  FS = ""
22354
22355}
22356{
22357  line = $ 0
22358  nfields = split(line, field, "@")
22359  substed = 0
22360  len = length(field[1])
22361  for (i = 2; i < nfields; i++) {
22362    key = field[i]
22363    keylen = length(key)
22364    if (S_is_set[key]) {
22365      value = S[key]
22366      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22367      len += length(value) + length(field[++i])
22368      substed = 1
22369    } else
22370      len += 1 + keylen
22371  }
22372
22373  print line
22374}
22375
22376_ACAWK
22377_ACEOF
22378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22379if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22380  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22381else
22382  cat
22383fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22384  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22385$as_echo "$as_me: error: could not setup config files machinery" >&2;}
22386   { (exit 1); exit 1; }; }
22387_ACEOF
22388
22389# VPATH may cause trouble with some makes, so we remove $(srcdir),
22390# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22391# trailing colons and then remove the whole line if VPATH becomes empty
22392# (actually we leave an empty line to preserve line numbers).
22393if test "x$srcdir" = x.; then
22394  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22395s/:*\$(srcdir):*/:/
22396s/:*\${srcdir}:*/:/
22397s/:*@srcdir@:*/:/
22398s/^\([^=]*=[	 ]*\):*/\1/
22399s/:*$//
22400s/^[^=]*=[	 ]*$//
22401}'
22402fi
22403
22404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22405fi # test -n "$CONFIG_FILES"
22406
22407# Set up the scripts for CONFIG_HEADERS section.
22408# No need to generate them if there are no CONFIG_HEADERS.
22409# This happens for instance with `./config.status Makefile'.
22410if test -n "$CONFIG_HEADERS"; then
22411cat >"$tmp/defines.awk" <<\_ACAWK ||
22412BEGIN {
22413_ACEOF
22414
22415# Transform confdefs.h into an awk script `defines.awk', embedded as
22416# here-document in config.status, that substitutes the proper values into
22417# config.h.in to produce config.h.
22418
22419# Create a delimiter string that does not exist in confdefs.h, to ease
22420# handling of long lines.
22421ac_delim='%!_!# '
22422for ac_last_try in false false :; do
22423  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22424  if test -z "$ac_t"; then
22425    break
22426  elif $ac_last_try; then
22427    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22428$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22429   { (exit 1); exit 1; }; }
22430  else
22431    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22432  fi
22433done
22434
22435# For the awk script, D is an array of macro values keyed by name,
22436# likewise P contains macro parameters if any.  Preserve backslash
22437# newline sequences.
22438
22439ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22440sed -n '
22441s/.\{148\}/&'"$ac_delim"'/g
22442t rset
22443:rset
22444s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22445t def
22446d
22447:def
22448s/\\$//
22449t bsnl
22450s/["\\]/\\&/g
22451s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22452D["\1"]=" \3"/p
22453s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22454d
22455:bsnl
22456s/["\\]/\\&/g
22457s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22458D["\1"]=" \3\\\\\\n"\\/p
22459t cont
22460s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22461t cont
22462d
22463:cont
22464n
22465s/.\{148\}/&'"$ac_delim"'/g
22466t clear
22467:clear
22468s/\\$//
22469t bsnlc
22470s/["\\]/\\&/g; s/^/"/; s/$/"/p
22471d
22472:bsnlc
22473s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22474b cont
22475' <confdefs.h | sed '
22476s/'"$ac_delim"'/"\\\
22477"/g' >>$CONFIG_STATUS || ac_write_fail=1
22478
22479cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22480  for (key in D) D_is_set[key] = 1
22481  FS = ""
22482}
22483/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22484  line = \$ 0
22485  split(line, arg, " ")
22486  if (arg[1] == "#") {
22487    defundef = arg[2]
22488    mac1 = arg[3]
22489  } else {
22490    defundef = substr(arg[1], 2)
22491    mac1 = arg[2]
22492  }
22493  split(mac1, mac2, "(") #)
22494  macro = mac2[1]
22495  if (D_is_set[macro]) {
22496    # Preserve the white space surrounding the "#".
22497    prefix = substr(line, 1, index(line, defundef) - 1)
22498    print prefix "define", macro P[macro] D[macro]
22499    next
22500  } else {
22501    # Replace #undef with comments.  This is necessary, for example,
22502    # in the case of _POSIX_SOURCE, which is predefined and required
22503    # on some systems where configure will not decide to define it.
22504    if (defundef == "undef") {
22505      print "/*", line, "*/"
22506      next
22507    }
22508  }
22509}
22510{ print }
22511_ACAWK
22512_ACEOF
22513cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22514  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22515$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22516   { (exit 1); exit 1; }; }
22517fi # test -n "$CONFIG_HEADERS"
22518
22519
22520eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22521shift
22522for ac_tag
22523do
22524  case $ac_tag in
22525  :[FHLC]) ac_mode=$ac_tag; continue;;
22526  esac
22527  case $ac_mode$ac_tag in
22528  :[FHL]*:*);;
22529  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22530$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22531   { (exit 1); exit 1; }; };;
22532  :[FH]-) ac_tag=-:-;;
22533  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22534  esac
22535  ac_save_IFS=$IFS
22536  IFS=:
22537  set x $ac_tag
22538  IFS=$ac_save_IFS
22539  shift
22540  ac_file=$1
22541  shift
22542
22543  case $ac_mode in
22544  :L) ac_source=$1;;
22545  :[FH])
22546    ac_file_inputs=
22547    for ac_f
22548    do
22549      case $ac_f in
22550      -) ac_f="$tmp/stdin";;
22551      *) # Look for the file first in the build tree, then in the source tree
22552	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22553	 # because $ac_f cannot contain `:'.
22554	 test -f "$ac_f" ||
22555	   case $ac_f in
22556	   [\\/$]*) false;;
22557	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22558	   esac ||
22559	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22560$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22561   { (exit 1); exit 1; }; };;
22562      esac
22563      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22564      ac_file_inputs="$ac_file_inputs '$ac_f'"
22565    done
22566
22567    # Let's still pretend it is `configure' which instantiates (i.e., don't
22568    # use $as_me), people would be surprised to read:
22569    #    /* config.h.  Generated by config.status.  */
22570    configure_input='Generated from '`
22571	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22572	`' by configure.'
22573    if test x"$ac_file" != x-; then
22574      configure_input="$ac_file.  $configure_input"
22575      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22576$as_echo "$as_me: creating $ac_file" >&6;}
22577    fi
22578    # Neutralize special characters interpreted by sed in replacement strings.
22579    case $configure_input in #(
22580    *\&* | *\|* | *\\* )
22581       ac_sed_conf_input=`$as_echo "$configure_input" |
22582       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22583    *) ac_sed_conf_input=$configure_input;;
22584    esac
22585
22586    case $ac_tag in
22587    *:-:* | *:-) cat >"$tmp/stdin" \
22588      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22589$as_echo "$as_me: error: could not create $ac_file" >&2;}
22590   { (exit 1); exit 1; }; } ;;
22591    esac
22592    ;;
22593  esac
22594
22595  ac_dir=`$as_dirname -- "$ac_file" ||
22596$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22597	 X"$ac_file" : 'X\(//\)[^/]' \| \
22598	 X"$ac_file" : 'X\(//\)$' \| \
22599	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22600$as_echo X"$ac_file" |
22601    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22602	    s//\1/
22603	    q
22604	  }
22605	  /^X\(\/\/\)[^/].*/{
22606	    s//\1/
22607	    q
22608	  }
22609	  /^X\(\/\/\)$/{
22610	    s//\1/
22611	    q
22612	  }
22613	  /^X\(\/\).*/{
22614	    s//\1/
22615	    q
22616	  }
22617	  s/.*/./; q'`
22618  { as_dir="$ac_dir"
22619  case $as_dir in #(
22620  -*) as_dir=./$as_dir;;
22621  esac
22622  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22623    as_dirs=
22624    while :; do
22625      case $as_dir in #(
22626      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22627      *) as_qdir=$as_dir;;
22628      esac
22629      as_dirs="'$as_qdir' $as_dirs"
22630      as_dir=`$as_dirname -- "$as_dir" ||
22631$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22632	 X"$as_dir" : 'X\(//\)[^/]' \| \
22633	 X"$as_dir" : 'X\(//\)$' \| \
22634	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22635$as_echo X"$as_dir" |
22636    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22637	    s//\1/
22638	    q
22639	  }
22640	  /^X\(\/\/\)[^/].*/{
22641	    s//\1/
22642	    q
22643	  }
22644	  /^X\(\/\/\)$/{
22645	    s//\1/
22646	    q
22647	  }
22648	  /^X\(\/\).*/{
22649	    s//\1/
22650	    q
22651	  }
22652	  s/.*/./; q'`
22653      test -d "$as_dir" && break
22654    done
22655    test -z "$as_dirs" || eval "mkdir $as_dirs"
22656  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22657$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22658   { (exit 1); exit 1; }; }; }
22659  ac_builddir=.
22660
22661case "$ac_dir" in
22662.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22663*)
22664  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22665  # A ".." for each directory in $ac_dir_suffix.
22666  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22667  case $ac_top_builddir_sub in
22668  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22669  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22670  esac ;;
22671esac
22672ac_abs_top_builddir=$ac_pwd
22673ac_abs_builddir=$ac_pwd$ac_dir_suffix
22674# for backward compatibility:
22675ac_top_builddir=$ac_top_build_prefix
22676
22677case $srcdir in
22678  .)  # We are building in place.
22679    ac_srcdir=.
22680    ac_top_srcdir=$ac_top_builddir_sub
22681    ac_abs_top_srcdir=$ac_pwd ;;
22682  [\\/]* | ?:[\\/]* )  # Absolute name.
22683    ac_srcdir=$srcdir$ac_dir_suffix;
22684    ac_top_srcdir=$srcdir
22685    ac_abs_top_srcdir=$srcdir ;;
22686  *) # Relative name.
22687    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22688    ac_top_srcdir=$ac_top_build_prefix$srcdir
22689    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22690esac
22691ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22692
22693
22694  case $ac_mode in
22695  :F)
22696  #
22697  # CONFIG_FILE
22698  #
22699
22700  case $INSTALL in
22701  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22702  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22703  esac
22704_ACEOF
22705
22706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22707# If the template does not know about datarootdir, expand it.
22708# FIXME: This hack should be removed a few years after 2.60.
22709ac_datarootdir_hack=; ac_datarootdir_seen=
22710
22711ac_sed_dataroot='
22712/datarootdir/ {
22713  p
22714  q
22715}
22716/@datadir@/p
22717/@docdir@/p
22718/@infodir@/p
22719/@localedir@/p
22720/@mandir@/p
22721'
22722case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22723*datarootdir*) ac_datarootdir_seen=yes;;
22724*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22725  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22726$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22727_ACEOF
22728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22729  ac_datarootdir_hack='
22730  s&@datadir@&$datadir&g
22731  s&@docdir@&$docdir&g
22732  s&@infodir@&$infodir&g
22733  s&@localedir@&$localedir&g
22734  s&@mandir@&$mandir&g
22735    s&\\\${datarootdir}&$datarootdir&g' ;;
22736esac
22737_ACEOF
22738
22739# Neutralize VPATH when `$srcdir' = `.'.
22740# Shell code in configure.ac might set extrasub.
22741# FIXME: do we really want to maintain this feature?
22742cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22743ac_sed_extra="$ac_vpsub
22744$extrasub
22745_ACEOF
22746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22747:t
22748/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22749s|@configure_input@|$ac_sed_conf_input|;t t
22750s&@top_builddir@&$ac_top_builddir_sub&;t t
22751s&@top_build_prefix@&$ac_top_build_prefix&;t t
22752s&@srcdir@&$ac_srcdir&;t t
22753s&@abs_srcdir@&$ac_abs_srcdir&;t t
22754s&@top_srcdir@&$ac_top_srcdir&;t t
22755s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22756s&@builddir@&$ac_builddir&;t t
22757s&@abs_builddir@&$ac_abs_builddir&;t t
22758s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22759s&@INSTALL@&$ac_INSTALL&;t t
22760$ac_datarootdir_hack
22761"
22762eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22763  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22764$as_echo "$as_me: error: could not create $ac_file" >&2;}
22765   { (exit 1); exit 1; }; }
22766
22767test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22768  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22769  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22770  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22771which seems to be undefined.  Please make sure it is defined." >&5
22772$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22773which seems to be undefined.  Please make sure it is defined." >&2;}
22774
22775  rm -f "$tmp/stdin"
22776  case $ac_file in
22777  -) cat "$tmp/out" && rm -f "$tmp/out";;
22778  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22779  esac \
22780  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22781$as_echo "$as_me: error: could not create $ac_file" >&2;}
22782   { (exit 1); exit 1; }; }
22783 ;;
22784  :H)
22785  #
22786  # CONFIG_HEADER
22787  #
22788  if test x"$ac_file" != x-; then
22789    {
22790      $as_echo "/* $configure_input  */" \
22791      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22792    } >"$tmp/config.h" \
22793      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22794$as_echo "$as_me: error: could not create $ac_file" >&2;}
22795   { (exit 1); exit 1; }; }
22796    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22797      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22798$as_echo "$as_me: $ac_file is unchanged" >&6;}
22799    else
22800      rm -f "$ac_file"
22801      mv "$tmp/config.h" "$ac_file" \
22802	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22803$as_echo "$as_me: error: could not create $ac_file" >&2;}
22804   { (exit 1); exit 1; }; }
22805    fi
22806  else
22807    $as_echo "/* $configure_input  */" \
22808      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22809      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22810$as_echo "$as_me: error: could not create -" >&2;}
22811   { (exit 1); exit 1; }; }
22812  fi
22813# Compute "$ac_file"'s index in $config_headers.
22814_am_stamp_count=1
22815for _am_header in $config_headers :; do
22816  case $_am_header in
22817    "$ac_file" | "$ac_file":* )
22818      break ;;
22819    * )
22820      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22821  esac
22822done
22823echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
22824$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22825	 X"$ac_file" : 'X\(//\)[^/]' \| \
22826	 X"$ac_file" : 'X\(//\)$' \| \
22827	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22828$as_echo X"$ac_file" |
22829    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22830	    s//\1/
22831	    q
22832	  }
22833	  /^X\(\/\/\)[^/].*/{
22834	    s//\1/
22835	    q
22836	  }
22837	  /^X\(\/\/\)$/{
22838	    s//\1/
22839	    q
22840	  }
22841	  /^X\(\/\).*/{
22842	    s//\1/
22843	    q
22844	  }
22845	  s/.*/./; q'`/stamp-h$_am_stamp_count
22846 ;;
22847
22848  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22849$as_echo "$as_me: executing $ac_file commands" >&6;}
22850 ;;
22851  esac
22852
22853
22854  case $ac_file$ac_mode in
22855    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22856  # Strip MF so we end up with the name of the file.
22857  mf=`echo "$mf" | sed -e 's/:.*$//'`
22858  # Check whether this is an Automake generated Makefile or not.
22859  # We used to match only the files named `Makefile.in', but
22860  # some people rename them; so instead we look at the file content.
22861  # Grep'ing the first line is not enough: some people post-process
22862  # each Makefile.in and add a new line on top of each file to say so.
22863  # So let's grep whole file.
22864  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22865    dirpart=`$as_dirname -- "$mf" ||
22866$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22867	 X"$mf" : 'X\(//\)[^/]' \| \
22868	 X"$mf" : 'X\(//\)$' \| \
22869	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22870$as_echo X"$mf" |
22871    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22872	    s//\1/
22873	    q
22874	  }
22875	  /^X\(\/\/\)[^/].*/{
22876	    s//\1/
22877	    q
22878	  }
22879	  /^X\(\/\/\)$/{
22880	    s//\1/
22881	    q
22882	  }
22883	  /^X\(\/\).*/{
22884	    s//\1/
22885	    q
22886	  }
22887	  s/.*/./; q'`
22888  else
22889    continue
22890  fi
22891  # Extract the definition of DEPDIR, am__include, and am__quote
22892  # from the Makefile without running `make'.
22893  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22894  test -z "$DEPDIR" && continue
22895  am__include=`sed -n 's/^am__include = //p' < "$mf"`
22896  test -z "am__include" && continue
22897  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22898  # When using ansi2knr, U may be empty or an underscore; expand it
22899  U=`sed -n 's/^U = //p' < "$mf"`
22900  # Find all dependency output files, they are included files with
22901  # $(DEPDIR) in their names.  We invoke sed twice because it is the
22902  # simplest approach to changing $(DEPDIR) to its actual value in the
22903  # expansion.
22904  for file in `sed -n "
22905    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22906       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22907    # Make sure the directory exists.
22908    test -f "$dirpart/$file" && continue
22909    fdir=`$as_dirname -- "$file" ||
22910$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22911	 X"$file" : 'X\(//\)[^/]' \| \
22912	 X"$file" : 'X\(//\)$' \| \
22913	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22914$as_echo X"$file" |
22915    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22916	    s//\1/
22917	    q
22918	  }
22919	  /^X\(\/\/\)[^/].*/{
22920	    s//\1/
22921	    q
22922	  }
22923	  /^X\(\/\/\)$/{
22924	    s//\1/
22925	    q
22926	  }
22927	  /^X\(\/\).*/{
22928	    s//\1/
22929	    q
22930	  }
22931	  s/.*/./; q'`
22932    { as_dir=$dirpart/$fdir
22933  case $as_dir in #(
22934  -*) as_dir=./$as_dir;;
22935  esac
22936  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22937    as_dirs=
22938    while :; do
22939      case $as_dir in #(
22940      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22941      *) as_qdir=$as_dir;;
22942      esac
22943      as_dirs="'$as_qdir' $as_dirs"
22944      as_dir=`$as_dirname -- "$as_dir" ||
22945$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22946	 X"$as_dir" : 'X\(//\)[^/]' \| \
22947	 X"$as_dir" : 'X\(//\)$' \| \
22948	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22949$as_echo X"$as_dir" |
22950    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22951	    s//\1/
22952	    q
22953	  }
22954	  /^X\(\/\/\)[^/].*/{
22955	    s//\1/
22956	    q
22957	  }
22958	  /^X\(\/\/\)$/{
22959	    s//\1/
22960	    q
22961	  }
22962	  /^X\(\/\).*/{
22963	    s//\1/
22964	    q
22965	  }
22966	  s/.*/./; q'`
22967      test -d "$as_dir" && break
22968    done
22969    test -z "$as_dirs" || eval "mkdir $as_dirs"
22970  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22971$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22972   { (exit 1); exit 1; }; }; }
22973    # echo "creating $dirpart/$file"
22974    echo '# dummy' > "$dirpart/$file"
22975  done
22976done
22977 ;;
22978
22979  esac
22980done # for ac_tag
22981
22982
22983{ (exit 0); exit 0; }
22984_ACEOF
22985chmod +x $CONFIG_STATUS
22986ac_clean_files=$ac_clean_files_save
22987
22988test $ac_write_fail = 0 ||
22989  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22990$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22991   { (exit 1); exit 1; }; }
22992
22993
22994# configure is writing to config.log, and then calls config.status.
22995# config.status does its own redirection, appending to config.log.
22996# Unfortunately, on DOS this fails, as config.log is still kept open
22997# by configure, so config.status won't be able to write to it; its
22998# output is simply discarded.  So we exec the FD to /dev/null,
22999# effectively closing config.log, so it can be properly (re)opened and
23000# appended to by config.status.  When coming back to configure, we
23001# need to make the FD available again.
23002if test "$no_create" != yes; then
23003  ac_cs_success=:
23004  ac_config_status_args=
23005  test "$silent" = yes &&
23006    ac_config_status_args="$ac_config_status_args --quiet"
23007  exec 5>/dev/null
23008  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23009  exec 5>>config.log
23010  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23011  # would make configure fail if this is the last instruction.
23012  $ac_cs_success || { (exit 1); exit 1; }
23013fi
23014if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23015  { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
23016$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
23017fi
23018
23019