configure revision 8e0ed500
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for xf86-video-apm 1.2.1.
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-apm'
752PACKAGE_TARNAME='xf86-video-apm'
753PACKAGE_VERSION='1.2.1'
754PACKAGE_STRING='xf86-video-apm 1.2.1'
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='LTLIBOBJS
795LIBOBJS
796MAKE_HTML
797MAKE_PDF
798MAKE_PS
799MAKE_TEXT
800BUILD_PDFDOC_FALSE
801BUILD_PDFDOC_TRUE
802BUILD_LINUXDOC_FALSE
803BUILD_LINUXDOC_TRUE
804PS2PDF
805LINUXDOC
806ADMIN_MAN_DIR
807DRIVER_MAN_DIR
808MISC_MAN_DIR
809FILE_MAN_DIR
810LIB_MAN_DIR
811APP_MAN_DIR
812ADMIN_MAN_SUFFIX
813DRIVER_MAN_SUFFIX
814MISC_MAN_SUFFIX
815FILE_MAN_SUFFIX
816LIB_MAN_SUFFIX
817APP_MAN_SUFFIX
818DRIVER_NAME
819PCIACCESS_LIBS
820PCIACCESS_CFLAGS
821INCLUDES
822XF86RUSH_FALSE
823XF86RUSH_TRUE
824XF86RUSH_LIBS
825XF86RUSH_CFLAGS
826XORG_LIBS
827XORG_CFLAGS
828PKG_CONFIG
829moduledir
830LIBTOOL
831ac_ct_F77
832FFLAGS
833F77
834CXXCPP
835am__fastdepCXX_FALSE
836am__fastdepCXX_TRUE
837CXXDEPMODE
838ac_ct_CXX
839CXXFLAGS
840CXX
841CPP
842NMEDIT
843DSYMUTIL
844RANLIB
845AR
846ECHO
847LN_S
848EGREP
849GREP
850SED
851am__fastdepCC_FALSE
852am__fastdepCC_TRUE
853CCDEPMODE
854AMDEPBACKSLASH
855AMDEP_FALSE
856AMDEP_TRUE
857am__quote
858am__include
859DEPDIR
860OBJEXT
861EXEEXT
862ac_ct_CC
863CPPFLAGS
864LDFLAGS
865CFLAGS
866CC
867host_os
868host_vendor
869host_cpu
870host
871build_os
872build_vendor
873build_cpu
874build
875MAINT
876MAINTAINER_MODE_FALSE
877MAINTAINER_MODE_TRUE
878am__untar
879am__tar
880AMTAR
881am__leading_dot
882SET_MAKE
883AWK
884mkdir_p
885MKDIR_P
886INSTALL_STRIP_PROGRAM
887STRIP
888install_sh
889MAKEINFO
890AUTOHEADER
891AUTOMAKE
892AUTOCONF
893ACLOCAL
894VERSION
895PACKAGE
896CYGPATH_W
897am__isrc
898INSTALL_DATA
899INSTALL_SCRIPT
900INSTALL_PROGRAM
901target_alias
902host_alias
903build_alias
904LIBS
905ECHO_T
906ECHO_N
907ECHO_C
908DEFS
909mandir
910localedir
911libdir
912psdir
913pdfdir
914dvidir
915htmldir
916infodir
917docdir
918oldincludedir
919includedir
920localstatedir
921sharedstatedir
922sysconfdir
923datadir
924datarootdir
925libexecdir
926sbindir
927bindir
928program_transform_name
929prefix
930exec_prefix
931PACKAGE_BUGREPORT
932PACKAGE_STRING
933PACKAGE_VERSION
934PACKAGE_TARNAME
935PACKAGE_NAME
936PATH_SEPARATOR
937SHELL'
938ac_subst_files=''
939ac_user_opts='
940enable_option_checking
941enable_maintainer_mode
942enable_static
943enable_shared
944enable_fast_install
945enable_dependency_tracking
946with_gnu_ld
947enable_libtool_lock
948with_pic
949with_tags
950with_xorg_module_dir
951with_release_version
952'
953      ac_precious_vars='build_alias
954host_alias
955target_alias
956CC
957CFLAGS
958LDFLAGS
959LIBS
960CPPFLAGS
961CPP
962CXX
963CXXFLAGS
964CCC
965CXXCPP
966F77
967FFLAGS
968PKG_CONFIG
969XORG_CFLAGS
970XORG_LIBS
971XF86RUSH_CFLAGS
972XF86RUSH_LIBS
973PCIACCESS_CFLAGS
974PCIACCESS_LIBS'
975
976
977# Initialize some variables set by options.
978ac_init_help=
979ac_init_version=false
980ac_unrecognized_opts=
981ac_unrecognized_sep=
982# The variables have the same names as the options, with
983# dashes changed to underlines.
984cache_file=/dev/null
985exec_prefix=NONE
986no_create=
987no_recursion=
988prefix=NONE
989program_prefix=NONE
990program_suffix=NONE
991program_transform_name=s,x,x,
992silent=
993site=
994srcdir=
995verbose=
996x_includes=NONE
997x_libraries=NONE
998
999# Installation directory options.
1000# These are left unexpanded so users can "make install exec_prefix=/foo"
1001# and all the variables that are supposed to be based on exec_prefix
1002# by default will actually change.
1003# Use braces instead of parens because sh, perl, etc. also accept them.
1004# (The list follows the same order as the GNU Coding Standards.)
1005bindir='${exec_prefix}/bin'
1006sbindir='${exec_prefix}/sbin'
1007libexecdir='${exec_prefix}/libexec'
1008datarootdir='${prefix}/share'
1009datadir='${datarootdir}'
1010sysconfdir='${prefix}/etc'
1011sharedstatedir='${prefix}/com'
1012localstatedir='${prefix}/var'
1013includedir='${prefix}/include'
1014oldincludedir='/usr/include'
1015docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1016infodir='${datarootdir}/info'
1017htmldir='${docdir}'
1018dvidir='${docdir}'
1019pdfdir='${docdir}'
1020psdir='${docdir}'
1021libdir='${exec_prefix}/lib'
1022localedir='${datarootdir}/locale'
1023mandir='${datarootdir}/man'
1024
1025ac_prev=
1026ac_dashdash=
1027for ac_option
1028do
1029  # If the previous option needs an argument, assign it.
1030  if test -n "$ac_prev"; then
1031    eval $ac_prev=\$ac_option
1032    ac_prev=
1033    continue
1034  fi
1035
1036  case $ac_option in
1037  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1038  *)	ac_optarg=yes ;;
1039  esac
1040
1041  # Accept the important Cygnus configure options, so we can diagnose typos.
1042
1043  case $ac_dashdash$ac_option in
1044  --)
1045    ac_dashdash=yes ;;
1046
1047  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1048    ac_prev=bindir ;;
1049  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1050    bindir=$ac_optarg ;;
1051
1052  -build | --build | --buil | --bui | --bu)
1053    ac_prev=build_alias ;;
1054  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1055    build_alias=$ac_optarg ;;
1056
1057  -cache-file | --cache-file | --cache-fil | --cache-fi \
1058  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1059    ac_prev=cache_file ;;
1060  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1061  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1062    cache_file=$ac_optarg ;;
1063
1064  --config-cache | -C)
1065    cache_file=config.cache ;;
1066
1067  -datadir | --datadir | --datadi | --datad)
1068    ac_prev=datadir ;;
1069  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1070    datadir=$ac_optarg ;;
1071
1072  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1073  | --dataroo | --dataro | --datar)
1074    ac_prev=datarootdir ;;
1075  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1076  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1077    datarootdir=$ac_optarg ;;
1078
1079  -disable-* | --disable-*)
1080    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1081    # Reject names that are not valid shell variable names.
1082    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1084   { (exit 1); exit 1; }; }
1085    ac_useropt_orig=$ac_useropt
1086    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087    case $ac_user_opts in
1088      *"
1089"enable_$ac_useropt"
1090"*) ;;
1091      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1092	 ac_unrecognized_sep=', ';;
1093    esac
1094    eval enable_$ac_useropt=no ;;
1095
1096  -docdir | --docdir | --docdi | --doc | --do)
1097    ac_prev=docdir ;;
1098  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1099    docdir=$ac_optarg ;;
1100
1101  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1102    ac_prev=dvidir ;;
1103  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1104    dvidir=$ac_optarg ;;
1105
1106  -enable-* | --enable-*)
1107    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1108    # Reject names that are not valid shell variable names.
1109    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1111   { (exit 1); exit 1; }; }
1112    ac_useropt_orig=$ac_useropt
1113    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114    case $ac_user_opts in
1115      *"
1116"enable_$ac_useropt"
1117"*) ;;
1118      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1119	 ac_unrecognized_sep=', ';;
1120    esac
1121    eval enable_$ac_useropt=\$ac_optarg ;;
1122
1123  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1124  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1125  | --exec | --exe | --ex)
1126    ac_prev=exec_prefix ;;
1127  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1128  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1129  | --exec=* | --exe=* | --ex=*)
1130    exec_prefix=$ac_optarg ;;
1131
1132  -gas | --gas | --ga | --g)
1133    # Obsolete; use --with-gas.
1134    with_gas=yes ;;
1135
1136  -help | --help | --hel | --he | -h)
1137    ac_init_help=long ;;
1138  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1139    ac_init_help=recursive ;;
1140  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1141    ac_init_help=short ;;
1142
1143  -host | --host | --hos | --ho)
1144    ac_prev=host_alias ;;
1145  -host=* | --host=* | --hos=* | --ho=*)
1146    host_alias=$ac_optarg ;;
1147
1148  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1149    ac_prev=htmldir ;;
1150  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1151  | --ht=*)
1152    htmldir=$ac_optarg ;;
1153
1154  -includedir | --includedir | --includedi | --included | --include \
1155  | --includ | --inclu | --incl | --inc)
1156    ac_prev=includedir ;;
1157  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1158  | --includ=* | --inclu=* | --incl=* | --inc=*)
1159    includedir=$ac_optarg ;;
1160
1161  -infodir | --infodir | --infodi | --infod | --info | --inf)
1162    ac_prev=infodir ;;
1163  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1164    infodir=$ac_optarg ;;
1165
1166  -libdir | --libdir | --libdi | --libd)
1167    ac_prev=libdir ;;
1168  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1169    libdir=$ac_optarg ;;
1170
1171  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1172  | --libexe | --libex | --libe)
1173    ac_prev=libexecdir ;;
1174  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1175  | --libexe=* | --libex=* | --libe=*)
1176    libexecdir=$ac_optarg ;;
1177
1178  -localedir | --localedir | --localedi | --localed | --locale)
1179    ac_prev=localedir ;;
1180  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1181    localedir=$ac_optarg ;;
1182
1183  -localstatedir | --localstatedir | --localstatedi | --localstated \
1184  | --localstate | --localstat | --localsta | --localst | --locals)
1185    ac_prev=localstatedir ;;
1186  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1187  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1188    localstatedir=$ac_optarg ;;
1189
1190  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1191    ac_prev=mandir ;;
1192  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1193    mandir=$ac_optarg ;;
1194
1195  -nfp | --nfp | --nf)
1196    # Obsolete; use --without-fp.
1197    with_fp=no ;;
1198
1199  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1200  | --no-cr | --no-c | -n)
1201    no_create=yes ;;
1202
1203  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1204  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1205    no_recursion=yes ;;
1206
1207  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1208  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1209  | --oldin | --oldi | --old | --ol | --o)
1210    ac_prev=oldincludedir ;;
1211  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1212  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1213  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1214    oldincludedir=$ac_optarg ;;
1215
1216  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1217    ac_prev=prefix ;;
1218  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1219    prefix=$ac_optarg ;;
1220
1221  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1222  | --program-pre | --program-pr | --program-p)
1223    ac_prev=program_prefix ;;
1224  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1225  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1226    program_prefix=$ac_optarg ;;
1227
1228  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1229  | --program-suf | --program-su | --program-s)
1230    ac_prev=program_suffix ;;
1231  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1232  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1233    program_suffix=$ac_optarg ;;
1234
1235  -program-transform-name | --program-transform-name \
1236  | --program-transform-nam | --program-transform-na \
1237  | --program-transform-n | --program-transform- \
1238  | --program-transform | --program-transfor \
1239  | --program-transfo | --program-transf \
1240  | --program-trans | --program-tran \
1241  | --progr-tra | --program-tr | --program-t)
1242    ac_prev=program_transform_name ;;
1243  -program-transform-name=* | --program-transform-name=* \
1244  | --program-transform-nam=* | --program-transform-na=* \
1245  | --program-transform-n=* | --program-transform-=* \
1246  | --program-transform=* | --program-transfor=* \
1247  | --program-transfo=* | --program-transf=* \
1248  | --program-trans=* | --program-tran=* \
1249  | --progr-tra=* | --program-tr=* | --program-t=*)
1250    program_transform_name=$ac_optarg ;;
1251
1252  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1253    ac_prev=pdfdir ;;
1254  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1255    pdfdir=$ac_optarg ;;
1256
1257  -psdir | --psdir | --psdi | --psd | --ps)
1258    ac_prev=psdir ;;
1259  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1260    psdir=$ac_optarg ;;
1261
1262  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263  | -silent | --silent | --silen | --sile | --sil)
1264    silent=yes ;;
1265
1266  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1267    ac_prev=sbindir ;;
1268  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1269  | --sbi=* | --sb=*)
1270    sbindir=$ac_optarg ;;
1271
1272  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1273  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1274  | --sharedst | --shareds | --shared | --share | --shar \
1275  | --sha | --sh)
1276    ac_prev=sharedstatedir ;;
1277  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1278  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1279  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1280  | --sha=* | --sh=*)
1281    sharedstatedir=$ac_optarg ;;
1282
1283  -site | --site | --sit)
1284    ac_prev=site ;;
1285  -site=* | --site=* | --sit=*)
1286    site=$ac_optarg ;;
1287
1288  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1289    ac_prev=srcdir ;;
1290  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1291    srcdir=$ac_optarg ;;
1292
1293  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1294  | --syscon | --sysco | --sysc | --sys | --sy)
1295    ac_prev=sysconfdir ;;
1296  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1297  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1298    sysconfdir=$ac_optarg ;;
1299
1300  -target | --target | --targe | --targ | --tar | --ta | --t)
1301    ac_prev=target_alias ;;
1302  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1303    target_alias=$ac_optarg ;;
1304
1305  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1306    verbose=yes ;;
1307
1308  -version | --version | --versio | --versi | --vers | -V)
1309    ac_init_version=: ;;
1310
1311  -with-* | --with-*)
1312    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1313    # Reject names that are not valid shell variable names.
1314    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1315      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1316   { (exit 1); exit 1; }; }
1317    ac_useropt_orig=$ac_useropt
1318    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1319    case $ac_user_opts in
1320      *"
1321"with_$ac_useropt"
1322"*) ;;
1323      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1324	 ac_unrecognized_sep=', ';;
1325    esac
1326    eval with_$ac_useropt=\$ac_optarg ;;
1327
1328  -without-* | --without-*)
1329    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1330    # Reject names that are not valid shell variable names.
1331    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1332      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1333   { (exit 1); exit 1; }; }
1334    ac_useropt_orig=$ac_useropt
1335    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1336    case $ac_user_opts in
1337      *"
1338"with_$ac_useropt"
1339"*) ;;
1340      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1341	 ac_unrecognized_sep=', ';;
1342    esac
1343    eval with_$ac_useropt=no ;;
1344
1345  --x)
1346    # Obsolete; use --with-x.
1347    with_x=yes ;;
1348
1349  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1350  | --x-incl | --x-inc | --x-in | --x-i)
1351    ac_prev=x_includes ;;
1352  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1353  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1354    x_includes=$ac_optarg ;;
1355
1356  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1357  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1358    ac_prev=x_libraries ;;
1359  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1360  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1361    x_libraries=$ac_optarg ;;
1362
1363  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1364Try \`$0 --help' for more information." >&2
1365   { (exit 1); exit 1; }; }
1366    ;;
1367
1368  *=*)
1369    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1370    # Reject names that are not valid shell variable names.
1371    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1372      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1373   { (exit 1); exit 1; }; }
1374    eval $ac_envvar=\$ac_optarg
1375    export $ac_envvar ;;
1376
1377  *)
1378    # FIXME: should be removed in autoconf 3.0.
1379    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1380    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1381      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1382    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1383    ;;
1384
1385  esac
1386done
1387
1388if test -n "$ac_prev"; then
1389  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1390  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1391   { (exit 1); exit 1; }; }
1392fi
1393
1394if test -n "$ac_unrecognized_opts"; then
1395  case $enable_option_checking in
1396    no) ;;
1397    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1398   { (exit 1); exit 1; }; } ;;
1399    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1400  esac
1401fi
1402
1403# Check all directory arguments for consistency.
1404for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1405		datadir sysconfdir sharedstatedir localstatedir includedir \
1406		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1407		libdir localedir mandir
1408do
1409  eval ac_val=\$$ac_var
1410  # Remove trailing slashes.
1411  case $ac_val in
1412    */ )
1413      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1414      eval $ac_var=\$ac_val;;
1415  esac
1416  # Be sure to have absolute directory names.
1417  case $ac_val in
1418    [\\/$]* | ?:[\\/]* )  continue;;
1419    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1420  esac
1421  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1422   { (exit 1); exit 1; }; }
1423done
1424
1425# There might be people who depend on the old broken behavior: `$host'
1426# used to hold the argument of --host etc.
1427# FIXME: To remove some day.
1428build=$build_alias
1429host=$host_alias
1430target=$target_alias
1431
1432# FIXME: To remove some day.
1433if test "x$host_alias" != x; then
1434  if test "x$build_alias" = x; then
1435    cross_compiling=maybe
1436    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1437    If a cross compiler is detected then cross compile mode will be used." >&2
1438  elif test "x$build_alias" != "x$host_alias"; then
1439    cross_compiling=yes
1440  fi
1441fi
1442
1443ac_tool_prefix=
1444test -n "$host_alias" && ac_tool_prefix=$host_alias-
1445
1446test "$silent" = yes && exec 6>/dev/null
1447
1448
1449ac_pwd=`pwd` && test -n "$ac_pwd" &&
1450ac_ls_di=`ls -di .` &&
1451ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1452  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1453   { (exit 1); exit 1; }; }
1454test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1455  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1456   { (exit 1); exit 1; }; }
1457
1458
1459# Find the source files, if location was not specified.
1460if test -z "$srcdir"; then
1461  ac_srcdir_defaulted=yes
1462  # Try the directory containing this script, then the parent directory.
1463  ac_confdir=`$as_dirname -- "$as_myself" ||
1464$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1465	 X"$as_myself" : 'X\(//\)[^/]' \| \
1466	 X"$as_myself" : 'X\(//\)$' \| \
1467	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1468$as_echo X"$as_myself" |
1469    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1470	    s//\1/
1471	    q
1472	  }
1473	  /^X\(\/\/\)[^/].*/{
1474	    s//\1/
1475	    q
1476	  }
1477	  /^X\(\/\/\)$/{
1478	    s//\1/
1479	    q
1480	  }
1481	  /^X\(\/\).*/{
1482	    s//\1/
1483	    q
1484	  }
1485	  s/.*/./; q'`
1486  srcdir=$ac_confdir
1487  if test ! -r "$srcdir/$ac_unique_file"; then
1488    srcdir=..
1489  fi
1490else
1491  ac_srcdir_defaulted=no
1492fi
1493if test ! -r "$srcdir/$ac_unique_file"; then
1494  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1495  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1496   { (exit 1); exit 1; }; }
1497fi
1498ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1499ac_abs_confdir=`(
1500	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1501   { (exit 1); exit 1; }; }
1502	pwd)`
1503# When building in place, set srcdir=.
1504if test "$ac_abs_confdir" = "$ac_pwd"; then
1505  srcdir=.
1506fi
1507# Remove unnecessary trailing slashes from srcdir.
1508# Double slashes in file names in object file debugging info
1509# mess up M-x gdb in Emacs.
1510case $srcdir in
1511*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1512esac
1513for ac_var in $ac_precious_vars; do
1514  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1515  eval ac_env_${ac_var}_value=\$${ac_var}
1516  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1517  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1518done
1519
1520#
1521# Report the --help message.
1522#
1523if test "$ac_init_help" = "long"; then
1524  # Omit some internal or obsolete options to make the list less imposing.
1525  # This message is too long to be a string in the A/UX 3.1 sh.
1526  cat <<_ACEOF
1527\`configure' configures xf86-video-apm 1.2.1 to adapt to many kinds of systems.
1528
1529Usage: $0 [OPTION]... [VAR=VALUE]...
1530
1531To assign environment variables (e.g., CC, CFLAGS...), specify them as
1532VAR=VALUE.  See below for descriptions of some of the useful variables.
1533
1534Defaults for the options are specified in brackets.
1535
1536Configuration:
1537  -h, --help              display this help and exit
1538      --help=short        display options specific to this package
1539      --help=recursive    display the short help of all the included packages
1540  -V, --version           display version information and exit
1541  -q, --quiet, --silent   do not print \`checking...' messages
1542      --cache-file=FILE   cache test results in FILE [disabled]
1543  -C, --config-cache      alias for \`--cache-file=config.cache'
1544  -n, --no-create         do not create output files
1545      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1546
1547Installation directories:
1548  --prefix=PREFIX         install architecture-independent files in PREFIX
1549                          [$ac_default_prefix]
1550  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1551                          [PREFIX]
1552
1553By default, \`make install' will install all the files in
1554\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1555an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1556for instance \`--prefix=\$HOME'.
1557
1558For better control, use the options below.
1559
1560Fine tuning of the installation directories:
1561  --bindir=DIR            user executables [EPREFIX/bin]
1562  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1563  --libexecdir=DIR        program executables [EPREFIX/libexec]
1564  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1565  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1566  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1567  --libdir=DIR            object code libraries [EPREFIX/lib]
1568  --includedir=DIR        C header files [PREFIX/include]
1569  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1570  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1571  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1572  --infodir=DIR           info documentation [DATAROOTDIR/info]
1573  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1574  --mandir=DIR            man documentation [DATAROOTDIR/man]
1575  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-apm]
1576  --htmldir=DIR           html documentation [DOCDIR]
1577  --dvidir=DIR            dvi documentation [DOCDIR]
1578  --pdfdir=DIR            pdf documentation [DOCDIR]
1579  --psdir=DIR             ps documentation [DOCDIR]
1580_ACEOF
1581
1582  cat <<\_ACEOF
1583
1584Program names:
1585  --program-prefix=PREFIX            prepend PREFIX to installed program names
1586  --program-suffix=SUFFIX            append SUFFIX to installed program names
1587  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1588
1589System types:
1590  --build=BUILD     configure for building on BUILD [guessed]
1591  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1592_ACEOF
1593fi
1594
1595if test -n "$ac_init_help"; then
1596  case $ac_init_help in
1597     short | recursive ) echo "Configuration of xf86-video-apm 1.2.1:";;
1598   esac
1599  cat <<\_ACEOF
1600
1601Optional Features:
1602  --disable-option-checking  ignore unrecognized --enable/--with options
1603  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1604  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1605  --enable-maintainer-mode  enable make rules and dependencies not useful
1606			  (and sometimes confusing) to the casual installer
1607  --enable-static[=PKGS]  build static libraries [default=no]
1608  --enable-shared[=PKGS]  build shared libraries [default=yes]
1609  --enable-fast-install[=PKGS]
1610                          optimize for fast installation [default=yes]
1611  --disable-dependency-tracking  speeds up one-time build
1612  --enable-dependency-tracking   do not reject slow dependency extractors
1613  --disable-libtool-lock  avoid locking (might break parallel builds)
1614
1615Optional Packages:
1616  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1617  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1618  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1619  --with-pic              try to use only PIC/non-PIC objects [default=use
1620                          both]
1621  --with-tags[=TAGS]      include additional configurations [automatic]
1622  --with-xorg-module-dir=DIR
1623  --with-release-version=STRING
1624                          Use release version string in package name
1625
1626Some influential environment variables:
1627  CC          C compiler command
1628  CFLAGS      C compiler flags
1629  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1630              nonstandard directory <lib dir>
1631  LIBS        libraries to pass to the linker, e.g. -l<library>
1632  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1633              you have headers in a nonstandard directory <include dir>
1634  CPP         C preprocessor
1635  CXX         C++ compiler command
1636  CXXFLAGS    C++ compiler flags
1637  CXXCPP      C++ preprocessor
1638  F77         Fortran 77 compiler command
1639  FFLAGS      Fortran 77 compiler flags
1640  PKG_CONFIG  path to pkg-config utility
1641  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1642  XORG_LIBS   linker flags for XORG, overriding pkg-config
1643  XF86RUSH_CFLAGS
1644              C compiler flags for XF86RUSH, overriding pkg-config
1645  XF86RUSH_LIBS
1646              linker flags for XF86RUSH, overriding pkg-config
1647  PCIACCESS_CFLAGS
1648              C compiler flags for PCIACCESS, overriding pkg-config
1649  PCIACCESS_LIBS
1650              linker flags for PCIACCESS, overriding pkg-config
1651
1652Use these variables to override the choices made by `configure' or to help
1653it to find libraries and programs with nonstandard names/locations.
1654
1655Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1656_ACEOF
1657ac_status=$?
1658fi
1659
1660if test "$ac_init_help" = "recursive"; then
1661  # If there are subdirs, report their specific --help.
1662  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1663    test -d "$ac_dir" ||
1664      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1665      continue
1666    ac_builddir=.
1667
1668case "$ac_dir" in
1669.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1670*)
1671  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1672  # A ".." for each directory in $ac_dir_suffix.
1673  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1674  case $ac_top_builddir_sub in
1675  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1676  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1677  esac ;;
1678esac
1679ac_abs_top_builddir=$ac_pwd
1680ac_abs_builddir=$ac_pwd$ac_dir_suffix
1681# for backward compatibility:
1682ac_top_builddir=$ac_top_build_prefix
1683
1684case $srcdir in
1685  .)  # We are building in place.
1686    ac_srcdir=.
1687    ac_top_srcdir=$ac_top_builddir_sub
1688    ac_abs_top_srcdir=$ac_pwd ;;
1689  [\\/]* | ?:[\\/]* )  # Absolute name.
1690    ac_srcdir=$srcdir$ac_dir_suffix;
1691    ac_top_srcdir=$srcdir
1692    ac_abs_top_srcdir=$srcdir ;;
1693  *) # Relative name.
1694    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1695    ac_top_srcdir=$ac_top_build_prefix$srcdir
1696    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1697esac
1698ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1699
1700    cd "$ac_dir" || { ac_status=$?; continue; }
1701    # Check for guested configure.
1702    if test -f "$ac_srcdir/configure.gnu"; then
1703      echo &&
1704      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1705    elif test -f "$ac_srcdir/configure"; then
1706      echo &&
1707      $SHELL "$ac_srcdir/configure" --help=recursive
1708    else
1709      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1710    fi || ac_status=$?
1711    cd "$ac_pwd" || { ac_status=$?; break; }
1712  done
1713fi
1714
1715test -n "$ac_init_help" && exit $ac_status
1716if $ac_init_version; then
1717  cat <<\_ACEOF
1718xf86-video-apm configure 1.2.1
1719generated by GNU Autoconf 2.63
1720
1721Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17222002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1723This configure script is free software; the Free Software Foundation
1724gives unlimited permission to copy, distribute and modify it.
1725_ACEOF
1726  exit
1727fi
1728cat >config.log <<_ACEOF
1729This file contains any messages produced by compilers while
1730running configure, to aid debugging if configure makes a mistake.
1731
1732It was created by xf86-video-apm $as_me 1.2.1, which was
1733generated by GNU Autoconf 2.63.  Invocation command line was
1734
1735  $ $0 $@
1736
1737_ACEOF
1738exec 5>>config.log
1739{
1740cat <<_ASUNAME
1741## --------- ##
1742## Platform. ##
1743## --------- ##
1744
1745hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1746uname -m = `(uname -m) 2>/dev/null || echo unknown`
1747uname -r = `(uname -r) 2>/dev/null || echo unknown`
1748uname -s = `(uname -s) 2>/dev/null || echo unknown`
1749uname -v = `(uname -v) 2>/dev/null || echo unknown`
1750
1751/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1752/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1753
1754/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1755/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1756/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1757/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1758/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1759/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1760/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1761
1762_ASUNAME
1763
1764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1765for as_dir in $PATH
1766do
1767  IFS=$as_save_IFS
1768  test -z "$as_dir" && as_dir=.
1769  $as_echo "PATH: $as_dir"
1770done
1771IFS=$as_save_IFS
1772
1773} >&5
1774
1775cat >&5 <<_ACEOF
1776
1777
1778## ----------- ##
1779## Core tests. ##
1780## ----------- ##
1781
1782_ACEOF
1783
1784
1785# Keep a trace of the command line.
1786# Strip out --no-create and --no-recursion so they do not pile up.
1787# Strip out --silent because we don't want to record it for future runs.
1788# Also quote any args containing shell meta-characters.
1789# Make two passes to allow for proper duplicate-argument suppression.
1790ac_configure_args=
1791ac_configure_args0=
1792ac_configure_args1=
1793ac_must_keep_next=false
1794for ac_pass in 1 2
1795do
1796  for ac_arg
1797  do
1798    case $ac_arg in
1799    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1800    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1801    | -silent | --silent | --silen | --sile | --sil)
1802      continue ;;
1803    *\'*)
1804      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1805    esac
1806    case $ac_pass in
1807    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1808    2)
1809      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1810      if test $ac_must_keep_next = true; then
1811	ac_must_keep_next=false # Got value, back to normal.
1812      else
1813	case $ac_arg in
1814	  *=* | --config-cache | -C | -disable-* | --disable-* \
1815	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1816	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1817	  | -with-* | --with-* | -without-* | --without-* | --x)
1818	    case "$ac_configure_args0 " in
1819	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1820	    esac
1821	    ;;
1822	  -* ) ac_must_keep_next=true ;;
1823	esac
1824      fi
1825      ac_configure_args="$ac_configure_args '$ac_arg'"
1826      ;;
1827    esac
1828  done
1829done
1830$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1831$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1832
1833# When interrupted or exit'd, cleanup temporary files, and complete
1834# config.log.  We remove comments because anyway the quotes in there
1835# would cause problems or look ugly.
1836# WARNING: Use '\'' to represent an apostrophe within the trap.
1837# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1838trap 'exit_status=$?
1839  # Save into config.log some information that might help in debugging.
1840  {
1841    echo
1842
1843    cat <<\_ASBOX
1844## ---------------- ##
1845## Cache variables. ##
1846## ---------------- ##
1847_ASBOX
1848    echo
1849    # The following way of writing the cache mishandles newlines in values,
1850(
1851  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1852    eval ac_val=\$$ac_var
1853    case $ac_val in #(
1854    *${as_nl}*)
1855      case $ac_var in #(
1856      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1857$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1858      esac
1859      case $ac_var in #(
1860      _ | IFS | as_nl) ;; #(
1861      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1862      *) $as_unset $ac_var ;;
1863      esac ;;
1864    esac
1865  done
1866  (set) 2>&1 |
1867    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1868    *${as_nl}ac_space=\ *)
1869      sed -n \
1870	"s/'\''/'\''\\\\'\'''\''/g;
1871	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1872      ;; #(
1873    *)
1874      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1875      ;;
1876    esac |
1877    sort
1878)
1879    echo
1880
1881    cat <<\_ASBOX
1882## ----------------- ##
1883## Output variables. ##
1884## ----------------- ##
1885_ASBOX
1886    echo
1887    for ac_var in $ac_subst_vars
1888    do
1889      eval ac_val=\$$ac_var
1890      case $ac_val in
1891      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1892      esac
1893      $as_echo "$ac_var='\''$ac_val'\''"
1894    done | sort
1895    echo
1896
1897    if test -n "$ac_subst_files"; then
1898      cat <<\_ASBOX
1899## ------------------- ##
1900## File substitutions. ##
1901## ------------------- ##
1902_ASBOX
1903      echo
1904      for ac_var in $ac_subst_files
1905      do
1906	eval ac_val=\$$ac_var
1907	case $ac_val in
1908	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1909	esac
1910	$as_echo "$ac_var='\''$ac_val'\''"
1911      done | sort
1912      echo
1913    fi
1914
1915    if test -s confdefs.h; then
1916      cat <<\_ASBOX
1917## ----------- ##
1918## confdefs.h. ##
1919## ----------- ##
1920_ASBOX
1921      echo
1922      cat confdefs.h
1923      echo
1924    fi
1925    test "$ac_signal" != 0 &&
1926      $as_echo "$as_me: caught signal $ac_signal"
1927    $as_echo "$as_me: exit $exit_status"
1928  } >&5
1929  rm -f core *.core core.conftest.* &&
1930    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1931    exit $exit_status
1932' 0
1933for ac_signal in 1 2 13 15; do
1934  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1935done
1936ac_signal=0
1937
1938# confdefs.h avoids OS command line length limits that DEFS can exceed.
1939rm -f -r conftest* confdefs.h
1940
1941# Predefined preprocessor variables.
1942
1943cat >>confdefs.h <<_ACEOF
1944#define PACKAGE_NAME "$PACKAGE_NAME"
1945_ACEOF
1946
1947
1948cat >>confdefs.h <<_ACEOF
1949#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1950_ACEOF
1951
1952
1953cat >>confdefs.h <<_ACEOF
1954#define PACKAGE_VERSION "$PACKAGE_VERSION"
1955_ACEOF
1956
1957
1958cat >>confdefs.h <<_ACEOF
1959#define PACKAGE_STRING "$PACKAGE_STRING"
1960_ACEOF
1961
1962
1963cat >>confdefs.h <<_ACEOF
1964#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1965_ACEOF
1966
1967
1968# Let the site file select an alternate cache file if it wants to.
1969# Prefer an explicitly selected file to automatically selected ones.
1970ac_site_file1=NONE
1971ac_site_file2=NONE
1972if test -n "$CONFIG_SITE"; then
1973  ac_site_file1=$CONFIG_SITE
1974elif test "x$prefix" != xNONE; then
1975  ac_site_file1=$prefix/share/config.site
1976  ac_site_file2=$prefix/etc/config.site
1977else
1978  ac_site_file1=$ac_default_prefix/share/config.site
1979  ac_site_file2=$ac_default_prefix/etc/config.site
1980fi
1981for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1982do
1983  test "x$ac_site_file" = xNONE && continue
1984  if test -r "$ac_site_file"; then
1985    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1986$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1987    sed 's/^/| /' "$ac_site_file" >&5
1988    . "$ac_site_file"
1989  fi
1990done
1991
1992if test -r "$cache_file"; then
1993  # Some versions of bash will fail to source /dev/null (special
1994  # files actually), so we avoid doing that.
1995  if test -f "$cache_file"; then
1996    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1997$as_echo "$as_me: loading cache $cache_file" >&6;}
1998    case $cache_file in
1999      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2000      *)                      . "./$cache_file";;
2001    esac
2002  fi
2003else
2004  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2005$as_echo "$as_me: creating cache $cache_file" >&6;}
2006  >$cache_file
2007fi
2008
2009# Check that the precious variables saved in the cache have kept the same
2010# value.
2011ac_cache_corrupted=false
2012for ac_var in $ac_precious_vars; do
2013  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2014  eval ac_new_set=\$ac_env_${ac_var}_set
2015  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2016  eval ac_new_val=\$ac_env_${ac_var}_value
2017  case $ac_old_set,$ac_new_set in
2018    set,)
2019      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2020$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2021      ac_cache_corrupted=: ;;
2022    ,set)
2023      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2024$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2025      ac_cache_corrupted=: ;;
2026    ,);;
2027    *)
2028      if test "x$ac_old_val" != "x$ac_new_val"; then
2029	# differences in whitespace do not lead to failure.
2030	ac_old_val_w=`echo x $ac_old_val`
2031	ac_new_val_w=`echo x $ac_new_val`
2032	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2033	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2034$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2035	  ac_cache_corrupted=:
2036	else
2037	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2038$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2039	  eval $ac_var=\$ac_old_val
2040	fi
2041	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2042$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2043	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2044$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2045      fi;;
2046  esac
2047  # Pass precious variables to config.status.
2048  if test "$ac_new_set" = set; then
2049    case $ac_new_val in
2050    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2051    *) ac_arg=$ac_var=$ac_new_val ;;
2052    esac
2053    case " $ac_configure_args " in
2054      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2055      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2056    esac
2057  fi
2058done
2059if $ac_cache_corrupted; then
2060  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2061$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2062  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2063$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2064  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2065$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2066   { (exit 1); exit 1; }; }
2067fi
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093ac_ext=c
2094ac_cpp='$CPP $CPPFLAGS'
2095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2097ac_compiler_gnu=$ac_cv_c_compiler_gnu
2098
2099
2100
2101
2102ac_config_headers="$ac_config_headers config.h"
2103
2104ac_aux_dir=
2105for ac_dir in . "$srcdir"/.; do
2106  if test -f "$ac_dir/install-sh"; then
2107    ac_aux_dir=$ac_dir
2108    ac_install_sh="$ac_aux_dir/install-sh -c"
2109    break
2110  elif test -f "$ac_dir/install.sh"; then
2111    ac_aux_dir=$ac_dir
2112    ac_install_sh="$ac_aux_dir/install.sh -c"
2113    break
2114  elif test -f "$ac_dir/shtool"; then
2115    ac_aux_dir=$ac_dir
2116    ac_install_sh="$ac_aux_dir/shtool install -c"
2117    break
2118  fi
2119done
2120if test -z "$ac_aux_dir"; then
2121  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2122$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2123   { (exit 1); exit 1; }; }
2124fi
2125
2126# These three variables are undocumented and unsupported,
2127# and are intended to be withdrawn in a future Autoconf release.
2128# They can cause serious problems if a builder's source tree is in a directory
2129# whose full name contains unusual characters.
2130ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2131ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2132ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2133
2134
2135
2136am__api_version='1.10'
2137
2138# Find a good install program.  We prefer a C program (faster),
2139# so one script is as good as another.  But avoid the broken or
2140# incompatible versions:
2141# SysV /etc/install, /usr/sbin/install
2142# SunOS /usr/etc/install
2143# IRIX /sbin/install
2144# AIX /bin/install
2145# AmigaOS /C/install, which installs bootblocks on floppy discs
2146# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2147# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2148# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2149# OS/2's system install, which has a completely different semantic
2150# ./install, which can be erroneously created by make from ./install.sh.
2151# Reject install programs that cannot install multiple files.
2152{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2153$as_echo_n "checking for a BSD-compatible install... " >&6; }
2154if test -z "$INSTALL"; then
2155if test "${ac_cv_path_install+set}" = set; then
2156  $as_echo_n "(cached) " >&6
2157else
2158  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159for as_dir in $PATH
2160do
2161  IFS=$as_save_IFS
2162  test -z "$as_dir" && as_dir=.
2163  # Account for people who put trailing slashes in PATH elements.
2164case $as_dir/ in
2165  ./ | .// | /cC/* | \
2166  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2167  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2168  /usr/ucb/* ) ;;
2169  *)
2170    # OSF1 and SCO ODT 3.0 have their own names for install.
2171    # Don't use installbsd from OSF since it installs stuff as root
2172    # by default.
2173    for ac_prog in ginstall scoinst install; do
2174      for ac_exec_ext in '' $ac_executable_extensions; do
2175	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2176	  if test $ac_prog = install &&
2177	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2178	    # AIX install.  It has an incompatible calling convention.
2179	    :
2180	  elif test $ac_prog = install &&
2181	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2182	    # program-specific install script used by HP pwplus--don't use.
2183	    :
2184	  else
2185	    rm -rf conftest.one conftest.two conftest.dir
2186	    echo one > conftest.one
2187	    echo two > conftest.two
2188	    mkdir conftest.dir
2189	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2190	      test -s conftest.one && test -s conftest.two &&
2191	      test -s conftest.dir/conftest.one &&
2192	      test -s conftest.dir/conftest.two
2193	    then
2194	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2195	      break 3
2196	    fi
2197	  fi
2198	fi
2199      done
2200    done
2201    ;;
2202esac
2203
2204done
2205IFS=$as_save_IFS
2206
2207rm -rf conftest.one conftest.two conftest.dir
2208
2209fi
2210  if test "${ac_cv_path_install+set}" = set; then
2211    INSTALL=$ac_cv_path_install
2212  else
2213    # As a last resort, use the slow shell script.  Don't cache a
2214    # value for INSTALL within a source directory, because that will
2215    # break other packages using the cache if that directory is
2216    # removed, or if the value is a relative name.
2217    INSTALL=$ac_install_sh
2218  fi
2219fi
2220{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2221$as_echo "$INSTALL" >&6; }
2222
2223# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2224# It thinks the first close brace ends the variable substitution.
2225test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2226
2227test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2228
2229test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2230
2231{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2232$as_echo_n "checking whether build environment is sane... " >&6; }
2233# Just in case
2234sleep 1
2235echo timestamp > conftest.file
2236# Do `set' in a subshell so we don't clobber the current shell's
2237# arguments.  Must try -L first in case configure is actually a
2238# symlink; some systems play weird games with the mod time of symlinks
2239# (eg FreeBSD returns the mod time of the symlink's containing
2240# directory).
2241if (
2242   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2243   if test "$*" = "X"; then
2244      # -L didn't work.
2245      set X `ls -t $srcdir/configure conftest.file`
2246   fi
2247   rm -f conftest.file
2248   if test "$*" != "X $srcdir/configure conftest.file" \
2249      && test "$*" != "X conftest.file $srcdir/configure"; then
2250
2251      # If neither matched, then we have a broken ls.  This can happen
2252      # if, for instance, CONFIG_SHELL is bash and it inherits a
2253      # broken ls alias from the environment.  This has actually
2254      # happened.  Such a system could not be considered "sane".
2255      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2256alias in your environment" >&5
2257$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2258alias in your environment" >&2;}
2259   { (exit 1); exit 1; }; }
2260   fi
2261
2262   test "$2" = conftest.file
2263   )
2264then
2265   # Ok.
2266   :
2267else
2268   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2269Check your system clock" >&5
2270$as_echo "$as_me: error: newly created file is older than distributed files!
2271Check your system clock" >&2;}
2272   { (exit 1); exit 1; }; }
2273fi
2274{ $as_echo "$as_me:$LINENO: result: yes" >&5
2275$as_echo "yes" >&6; }
2276test "$program_prefix" != NONE &&
2277  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2278# Use a double $ so make ignores it.
2279test "$program_suffix" != NONE &&
2280  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2281# Double any \ or $.
2282# By default was `s,x,x', remove it if useless.
2283ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2284program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2285
2286# expand $ac_aux_dir to an absolute path
2287am_aux_dir=`cd $ac_aux_dir && pwd`
2288
2289test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2290# Use eval to expand $SHELL
2291if eval "$MISSING --run true"; then
2292  am_missing_run="$MISSING --run "
2293else
2294  am_missing_run=
2295  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2296$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2297fi
2298
2299{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2300$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2301if test -z "$MKDIR_P"; then
2302  if test "${ac_cv_path_mkdir+set}" = set; then
2303  $as_echo_n "(cached) " >&6
2304else
2305  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2307do
2308  IFS=$as_save_IFS
2309  test -z "$as_dir" && as_dir=.
2310  for ac_prog in mkdir gmkdir; do
2311	 for ac_exec_ext in '' $ac_executable_extensions; do
2312	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2313	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2314	     'mkdir (GNU coreutils) '* | \
2315	     'mkdir (coreutils) '* | \
2316	     'mkdir (fileutils) '4.1*)
2317	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2318	       break 3;;
2319	   esac
2320	 done
2321       done
2322done
2323IFS=$as_save_IFS
2324
2325fi
2326
2327  if test "${ac_cv_path_mkdir+set}" = set; then
2328    MKDIR_P="$ac_cv_path_mkdir -p"
2329  else
2330    # As a last resort, use the slow shell script.  Don't cache a
2331    # value for MKDIR_P within a source directory, because that will
2332    # break other packages using the cache if that directory is
2333    # removed, or if the value is a relative name.
2334    test -d ./--version && rmdir ./--version
2335    MKDIR_P="$ac_install_sh -d"
2336  fi
2337fi
2338{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2339$as_echo "$MKDIR_P" >&6; }
2340
2341mkdir_p="$MKDIR_P"
2342case $mkdir_p in
2343  [\\/$]* | ?:[\\/]*) ;;
2344  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2345esac
2346
2347for ac_prog in gawk mawk nawk awk
2348do
2349  # Extract the first word of "$ac_prog", so it can be a program name with args.
2350set dummy $ac_prog; ac_word=$2
2351{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2352$as_echo_n "checking for $ac_word... " >&6; }
2353if test "${ac_cv_prog_AWK+set}" = set; then
2354  $as_echo_n "(cached) " >&6
2355else
2356  if test -n "$AWK"; then
2357  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2358else
2359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360for as_dir in $PATH
2361do
2362  IFS=$as_save_IFS
2363  test -z "$as_dir" && as_dir=.
2364  for ac_exec_ext in '' $ac_executable_extensions; do
2365  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2366    ac_cv_prog_AWK="$ac_prog"
2367    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2368    break 2
2369  fi
2370done
2371done
2372IFS=$as_save_IFS
2373
2374fi
2375fi
2376AWK=$ac_cv_prog_AWK
2377if test -n "$AWK"; then
2378  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2379$as_echo "$AWK" >&6; }
2380else
2381  { $as_echo "$as_me:$LINENO: result: no" >&5
2382$as_echo "no" >&6; }
2383fi
2384
2385
2386  test -n "$AWK" && break
2387done
2388
2389{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2390$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2391set x ${MAKE-make}
2392ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2393if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2394  $as_echo_n "(cached) " >&6
2395else
2396  cat >conftest.make <<\_ACEOF
2397SHELL = /bin/sh
2398all:
2399	@echo '@@@%%%=$(MAKE)=@@@%%%'
2400_ACEOF
2401# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2402case `${MAKE-make} -f conftest.make 2>/dev/null` in
2403  *@@@%%%=?*=@@@%%%*)
2404    eval ac_cv_prog_make_${ac_make}_set=yes;;
2405  *)
2406    eval ac_cv_prog_make_${ac_make}_set=no;;
2407esac
2408rm -f conftest.make
2409fi
2410if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2411  { $as_echo "$as_me:$LINENO: result: yes" >&5
2412$as_echo "yes" >&6; }
2413  SET_MAKE=
2414else
2415  { $as_echo "$as_me:$LINENO: result: no" >&5
2416$as_echo "no" >&6; }
2417  SET_MAKE="MAKE=${MAKE-make}"
2418fi
2419
2420rm -rf .tst 2>/dev/null
2421mkdir .tst 2>/dev/null
2422if test -d .tst; then
2423  am__leading_dot=.
2424else
2425  am__leading_dot=_
2426fi
2427rmdir .tst 2>/dev/null
2428
2429if test "`cd $srcdir && pwd`" != "`pwd`"; then
2430  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2431  # is not polluted with repeated "-I."
2432  am__isrc=' -I$(srcdir)'
2433  # test to see if srcdir already configured
2434  if test -f $srcdir/config.status; then
2435    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2436$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2437   { (exit 1); exit 1; }; }
2438  fi
2439fi
2440
2441# test whether we have cygpath
2442if test -z "$CYGPATH_W"; then
2443  if (cygpath --version) >/dev/null 2>/dev/null; then
2444    CYGPATH_W='cygpath -w'
2445  else
2446    CYGPATH_W=echo
2447  fi
2448fi
2449
2450
2451# Define the identity of the package.
2452 PACKAGE='xf86-video-apm'
2453 VERSION='1.2.1'
2454
2455
2456cat >>confdefs.h <<_ACEOF
2457#define PACKAGE "$PACKAGE"
2458_ACEOF
2459
2460
2461cat >>confdefs.h <<_ACEOF
2462#define VERSION "$VERSION"
2463_ACEOF
2464
2465# Some tools Automake needs.
2466
2467ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2468
2469
2470AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2471
2472
2473AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2474
2475
2476AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2477
2478
2479MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2480
2481install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2482
2483# Installed binaries are usually stripped using `strip' when the user
2484# run `make install-strip'.  However `strip' might not be the right
2485# tool to use in cross-compilation environments, therefore Automake
2486# will honor the `STRIP' environment variable to overrule this program.
2487if test "$cross_compiling" != no; then
2488  if test -n "$ac_tool_prefix"; then
2489  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2490set dummy ${ac_tool_prefix}strip; ac_word=$2
2491{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2492$as_echo_n "checking for $ac_word... " >&6; }
2493if test "${ac_cv_prog_STRIP+set}" = set; then
2494  $as_echo_n "(cached) " >&6
2495else
2496  if test -n "$STRIP"; then
2497  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2498else
2499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500for as_dir in $PATH
2501do
2502  IFS=$as_save_IFS
2503  test -z "$as_dir" && as_dir=.
2504  for ac_exec_ext in '' $ac_executable_extensions; do
2505  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2506    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2507    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508    break 2
2509  fi
2510done
2511done
2512IFS=$as_save_IFS
2513
2514fi
2515fi
2516STRIP=$ac_cv_prog_STRIP
2517if test -n "$STRIP"; then
2518  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2519$as_echo "$STRIP" >&6; }
2520else
2521  { $as_echo "$as_me:$LINENO: result: no" >&5
2522$as_echo "no" >&6; }
2523fi
2524
2525
2526fi
2527if test -z "$ac_cv_prog_STRIP"; then
2528  ac_ct_STRIP=$STRIP
2529  # Extract the first word of "strip", so it can be a program name with args.
2530set dummy strip; ac_word=$2
2531{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2532$as_echo_n "checking for $ac_word... " >&6; }
2533if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2534  $as_echo_n "(cached) " >&6
2535else
2536  if test -n "$ac_ct_STRIP"; then
2537  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2538else
2539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540for as_dir in $PATH
2541do
2542  IFS=$as_save_IFS
2543  test -z "$as_dir" && as_dir=.
2544  for ac_exec_ext in '' $ac_executable_extensions; do
2545  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2546    ac_cv_prog_ac_ct_STRIP="strip"
2547    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548    break 2
2549  fi
2550done
2551done
2552IFS=$as_save_IFS
2553
2554fi
2555fi
2556ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2557if test -n "$ac_ct_STRIP"; then
2558  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2559$as_echo "$ac_ct_STRIP" >&6; }
2560else
2561  { $as_echo "$as_me:$LINENO: result: no" >&5
2562$as_echo "no" >&6; }
2563fi
2564
2565  if test "x$ac_ct_STRIP" = x; then
2566    STRIP=":"
2567  else
2568    case $cross_compiling:$ac_tool_warned in
2569yes:)
2570{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2572ac_tool_warned=yes ;;
2573esac
2574    STRIP=$ac_ct_STRIP
2575  fi
2576else
2577  STRIP="$ac_cv_prog_STRIP"
2578fi
2579
2580fi
2581INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2582
2583# We need awk for the "check" target.  The system "awk" is bad on
2584# some platforms.
2585# Always define AMTAR for backward compatibility.
2586
2587AMTAR=${AMTAR-"${am_missing_run}tar"}
2588
2589am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2590
2591
2592
2593
2594
2595
2596{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2597$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2598    # Check whether --enable-maintainer-mode was given.
2599if test "${enable_maintainer_mode+set}" = set; then
2600  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2601else
2602  USE_MAINTAINER_MODE=no
2603fi
2604
2605  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2606$as_echo "$USE_MAINTAINER_MODE" >&6; }
2607   if test $USE_MAINTAINER_MODE = yes; then
2608  MAINTAINER_MODE_TRUE=
2609  MAINTAINER_MODE_FALSE='#'
2610else
2611  MAINTAINER_MODE_TRUE='#'
2612  MAINTAINER_MODE_FALSE=
2613fi
2614
2615  MAINT=$MAINTAINER_MODE_TRUE
2616
2617
2618
2619# Checks for programs.
2620# Check whether --enable-static was given.
2621if test "${enable_static+set}" = set; then
2622  enableval=$enable_static; p=${PACKAGE-default}
2623    case $enableval in
2624    yes) enable_static=yes ;;
2625    no) enable_static=no ;;
2626    *)
2627     enable_static=no
2628      # Look at the argument we got.  We use all the common list separators.
2629      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2630      for pkg in $enableval; do
2631	IFS="$lt_save_ifs"
2632	if test "X$pkg" = "X$p"; then
2633	  enable_static=yes
2634	fi
2635      done
2636      IFS="$lt_save_ifs"
2637      ;;
2638    esac
2639else
2640  enable_static=no
2641fi
2642
2643
2644
2645# Check whether --enable-shared was given.
2646if test "${enable_shared+set}" = set; then
2647  enableval=$enable_shared; p=${PACKAGE-default}
2648    case $enableval in
2649    yes) enable_shared=yes ;;
2650    no) enable_shared=no ;;
2651    *)
2652      enable_shared=no
2653      # Look at the argument we got.  We use all the common list separators.
2654      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2655      for pkg in $enableval; do
2656	IFS="$lt_save_ifs"
2657	if test "X$pkg" = "X$p"; then
2658	  enable_shared=yes
2659	fi
2660      done
2661      IFS="$lt_save_ifs"
2662      ;;
2663    esac
2664else
2665  enable_shared=yes
2666fi
2667
2668
2669# Check whether --enable-fast-install was given.
2670if test "${enable_fast_install+set}" = set; then
2671  enableval=$enable_fast_install; p=${PACKAGE-default}
2672    case $enableval in
2673    yes) enable_fast_install=yes ;;
2674    no) enable_fast_install=no ;;
2675    *)
2676      enable_fast_install=no
2677      # Look at the argument we got.  We use all the common list separators.
2678      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2679      for pkg in $enableval; do
2680	IFS="$lt_save_ifs"
2681	if test "X$pkg" = "X$p"; then
2682	  enable_fast_install=yes
2683	fi
2684      done
2685      IFS="$lt_save_ifs"
2686      ;;
2687    esac
2688else
2689  enable_fast_install=yes
2690fi
2691
2692
2693# Make sure we can run config.sub.
2694$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2695  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2696$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2697   { (exit 1); exit 1; }; }
2698
2699{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2700$as_echo_n "checking build system type... " >&6; }
2701if test "${ac_cv_build+set}" = set; then
2702  $as_echo_n "(cached) " >&6
2703else
2704  ac_build_alias=$build_alias
2705test "x$ac_build_alias" = x &&
2706  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2707test "x$ac_build_alias" = x &&
2708  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2709$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2710   { (exit 1); exit 1; }; }
2711ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2712  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2713$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2714   { (exit 1); exit 1; }; }
2715
2716fi
2717{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2718$as_echo "$ac_cv_build" >&6; }
2719case $ac_cv_build in
2720*-*-*) ;;
2721*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2722$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2723   { (exit 1); exit 1; }; };;
2724esac
2725build=$ac_cv_build
2726ac_save_IFS=$IFS; IFS='-'
2727set x $ac_cv_build
2728shift
2729build_cpu=$1
2730build_vendor=$2
2731shift; shift
2732# Remember, the first character of IFS is used to create $*,
2733# except with old shells:
2734build_os=$*
2735IFS=$ac_save_IFS
2736case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2737
2738
2739{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2740$as_echo_n "checking host system type... " >&6; }
2741if test "${ac_cv_host+set}" = set; then
2742  $as_echo_n "(cached) " >&6
2743else
2744  if test "x$host_alias" = x; then
2745  ac_cv_host=$ac_cv_build
2746else
2747  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2748    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2749$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2750   { (exit 1); exit 1; }; }
2751fi
2752
2753fi
2754{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2755$as_echo "$ac_cv_host" >&6; }
2756case $ac_cv_host in
2757*-*-*) ;;
2758*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2759$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2760   { (exit 1); exit 1; }; };;
2761esac
2762host=$ac_cv_host
2763ac_save_IFS=$IFS; IFS='-'
2764set x $ac_cv_host
2765shift
2766host_cpu=$1
2767host_vendor=$2
2768shift; shift
2769# Remember, the first character of IFS is used to create $*,
2770# except with old shells:
2771host_os=$*
2772IFS=$ac_save_IFS
2773case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2774
2775
2776DEPDIR="${am__leading_dot}deps"
2777
2778ac_config_commands="$ac_config_commands depfiles"
2779
2780
2781am_make=${MAKE-make}
2782cat > confinc << 'END'
2783am__doit:
2784	@echo done
2785.PHONY: am__doit
2786END
2787# If we don't find an include directive, just comment out the code.
2788{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2789$as_echo_n "checking for style of include used by $am_make... " >&6; }
2790am__include="#"
2791am__quote=
2792_am_result=none
2793# First try GNU make style include.
2794echo "include confinc" > confmf
2795# We grep out `Entering directory' and `Leaving directory'
2796# messages which can occur if `w' ends up in MAKEFLAGS.
2797# In particular we don't look at `^make:' because GNU make might
2798# be invoked under some other name (usually "gmake"), in which
2799# case it prints its new name instead of `make'.
2800if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2801   am__include=include
2802   am__quote=
2803   _am_result=GNU
2804fi
2805# Now try BSD make style include.
2806if test "$am__include" = "#"; then
2807   echo '.include "confinc"' > confmf
2808   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2809      am__include=.include
2810      am__quote="\""
2811      _am_result=BSD
2812   fi
2813fi
2814
2815
2816{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2817$as_echo "$_am_result" >&6; }
2818rm -f confinc confmf
2819
2820# Check whether --enable-dependency-tracking was given.
2821if test "${enable_dependency_tracking+set}" = set; then
2822  enableval=$enable_dependency_tracking;
2823fi
2824
2825if test "x$enable_dependency_tracking" != xno; then
2826  am_depcomp="$ac_aux_dir/depcomp"
2827  AMDEPBACKSLASH='\'
2828fi
2829 if test "x$enable_dependency_tracking" != xno; then
2830  AMDEP_TRUE=
2831  AMDEP_FALSE='#'
2832else
2833  AMDEP_TRUE='#'
2834  AMDEP_FALSE=
2835fi
2836
2837
2838ac_ext=c
2839ac_cpp='$CPP $CPPFLAGS'
2840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2842ac_compiler_gnu=$ac_cv_c_compiler_gnu
2843if test -n "$ac_tool_prefix"; then
2844  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2845set dummy ${ac_tool_prefix}gcc; ac_word=$2
2846{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2847$as_echo_n "checking for $ac_word... " >&6; }
2848if test "${ac_cv_prog_CC+set}" = set; then
2849  $as_echo_n "(cached) " >&6
2850else
2851  if test -n "$CC"; then
2852  ac_cv_prog_CC="$CC" # Let the user override the test.
2853else
2854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855for as_dir in $PATH
2856do
2857  IFS=$as_save_IFS
2858  test -z "$as_dir" && as_dir=.
2859  for ac_exec_ext in '' $ac_executable_extensions; do
2860  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2861    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2862    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863    break 2
2864  fi
2865done
2866done
2867IFS=$as_save_IFS
2868
2869fi
2870fi
2871CC=$ac_cv_prog_CC
2872if test -n "$CC"; then
2873  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2874$as_echo "$CC" >&6; }
2875else
2876  { $as_echo "$as_me:$LINENO: result: no" >&5
2877$as_echo "no" >&6; }
2878fi
2879
2880
2881fi
2882if test -z "$ac_cv_prog_CC"; then
2883  ac_ct_CC=$CC
2884  # Extract the first word of "gcc", so it can be a program name with args.
2885set dummy gcc; ac_word=$2
2886{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2887$as_echo_n "checking for $ac_word... " >&6; }
2888if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2889  $as_echo_n "(cached) " >&6
2890else
2891  if test -n "$ac_ct_CC"; then
2892  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2893else
2894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895for as_dir in $PATH
2896do
2897  IFS=$as_save_IFS
2898  test -z "$as_dir" && as_dir=.
2899  for ac_exec_ext in '' $ac_executable_extensions; do
2900  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2901    ac_cv_prog_ac_ct_CC="gcc"
2902    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903    break 2
2904  fi
2905done
2906done
2907IFS=$as_save_IFS
2908
2909fi
2910fi
2911ac_ct_CC=$ac_cv_prog_ac_ct_CC
2912if test -n "$ac_ct_CC"; then
2913  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2914$as_echo "$ac_ct_CC" >&6; }
2915else
2916  { $as_echo "$as_me:$LINENO: result: no" >&5
2917$as_echo "no" >&6; }
2918fi
2919
2920  if test "x$ac_ct_CC" = x; then
2921    CC=""
2922  else
2923    case $cross_compiling:$ac_tool_warned in
2924yes:)
2925{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2927ac_tool_warned=yes ;;
2928esac
2929    CC=$ac_ct_CC
2930  fi
2931else
2932  CC="$ac_cv_prog_CC"
2933fi
2934
2935if test -z "$CC"; then
2936          if test -n "$ac_tool_prefix"; then
2937    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2938set dummy ${ac_tool_prefix}cc; ac_word=$2
2939{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2940$as_echo_n "checking for $ac_word... " >&6; }
2941if test "${ac_cv_prog_CC+set}" = set; then
2942  $as_echo_n "(cached) " >&6
2943else
2944  if test -n "$CC"; then
2945  ac_cv_prog_CC="$CC" # Let the user override the test.
2946else
2947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948for as_dir in $PATH
2949do
2950  IFS=$as_save_IFS
2951  test -z "$as_dir" && as_dir=.
2952  for ac_exec_ext in '' $ac_executable_extensions; do
2953  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2954    ac_cv_prog_CC="${ac_tool_prefix}cc"
2955    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2956    break 2
2957  fi
2958done
2959done
2960IFS=$as_save_IFS
2961
2962fi
2963fi
2964CC=$ac_cv_prog_CC
2965if test -n "$CC"; then
2966  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2967$as_echo "$CC" >&6; }
2968else
2969  { $as_echo "$as_me:$LINENO: result: no" >&5
2970$as_echo "no" >&6; }
2971fi
2972
2973
2974  fi
2975fi
2976if test -z "$CC"; then
2977  # Extract the first word of "cc", so it can be a program name with args.
2978set dummy cc; ac_word=$2
2979{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2980$as_echo_n "checking for $ac_word... " >&6; }
2981if test "${ac_cv_prog_CC+set}" = set; then
2982  $as_echo_n "(cached) " >&6
2983else
2984  if test -n "$CC"; then
2985  ac_cv_prog_CC="$CC" # Let the user override the test.
2986else
2987  ac_prog_rejected=no
2988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989for as_dir in $PATH
2990do
2991  IFS=$as_save_IFS
2992  test -z "$as_dir" && as_dir=.
2993  for ac_exec_ext in '' $ac_executable_extensions; do
2994  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2995    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2996       ac_prog_rejected=yes
2997       continue
2998     fi
2999    ac_cv_prog_CC="cc"
3000    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3001    break 2
3002  fi
3003done
3004done
3005IFS=$as_save_IFS
3006
3007if test $ac_prog_rejected = yes; then
3008  # We found a bogon in the path, so make sure we never use it.
3009  set dummy $ac_cv_prog_CC
3010  shift
3011  if test $# != 0; then
3012    # We chose a different compiler from the bogus one.
3013    # However, it has the same basename, so the bogon will be chosen
3014    # first if we set CC to just the basename; use the full file name.
3015    shift
3016    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3017  fi
3018fi
3019fi
3020fi
3021CC=$ac_cv_prog_CC
3022if test -n "$CC"; then
3023  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3024$as_echo "$CC" >&6; }
3025else
3026  { $as_echo "$as_me:$LINENO: result: no" >&5
3027$as_echo "no" >&6; }
3028fi
3029
3030
3031fi
3032if test -z "$CC"; then
3033  if test -n "$ac_tool_prefix"; then
3034  for ac_prog in cl.exe
3035  do
3036    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3037set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3038{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3039$as_echo_n "checking for $ac_word... " >&6; }
3040if test "${ac_cv_prog_CC+set}" = set; then
3041  $as_echo_n "(cached) " >&6
3042else
3043  if test -n "$CC"; then
3044  ac_cv_prog_CC="$CC" # Let the user override the test.
3045else
3046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047for as_dir in $PATH
3048do
3049  IFS=$as_save_IFS
3050  test -z "$as_dir" && as_dir=.
3051  for ac_exec_ext in '' $ac_executable_extensions; do
3052  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3053    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3054    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3055    break 2
3056  fi
3057done
3058done
3059IFS=$as_save_IFS
3060
3061fi
3062fi
3063CC=$ac_cv_prog_CC
3064if test -n "$CC"; then
3065  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3066$as_echo "$CC" >&6; }
3067else
3068  { $as_echo "$as_me:$LINENO: result: no" >&5
3069$as_echo "no" >&6; }
3070fi
3071
3072
3073    test -n "$CC" && break
3074  done
3075fi
3076if test -z "$CC"; then
3077  ac_ct_CC=$CC
3078  for ac_prog in cl.exe
3079do
3080  # Extract the first word of "$ac_prog", so it can be a program name with args.
3081set dummy $ac_prog; ac_word=$2
3082{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3083$as_echo_n "checking for $ac_word... " >&6; }
3084if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3085  $as_echo_n "(cached) " >&6
3086else
3087  if test -n "$ac_ct_CC"; then
3088  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3089else
3090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091for as_dir in $PATH
3092do
3093  IFS=$as_save_IFS
3094  test -z "$as_dir" && as_dir=.
3095  for ac_exec_ext in '' $ac_executable_extensions; do
3096  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3097    ac_cv_prog_ac_ct_CC="$ac_prog"
3098    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3099    break 2
3100  fi
3101done
3102done
3103IFS=$as_save_IFS
3104
3105fi
3106fi
3107ac_ct_CC=$ac_cv_prog_ac_ct_CC
3108if test -n "$ac_ct_CC"; then
3109  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3110$as_echo "$ac_ct_CC" >&6; }
3111else
3112  { $as_echo "$as_me:$LINENO: result: no" >&5
3113$as_echo "no" >&6; }
3114fi
3115
3116
3117  test -n "$ac_ct_CC" && break
3118done
3119
3120  if test "x$ac_ct_CC" = x; then
3121    CC=""
3122  else
3123    case $cross_compiling:$ac_tool_warned in
3124yes:)
3125{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3127ac_tool_warned=yes ;;
3128esac
3129    CC=$ac_ct_CC
3130  fi
3131fi
3132
3133fi
3134
3135
3136test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3138{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3139See \`config.log' for more details." >&5
3140$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3141See \`config.log' for more details." >&2;}
3142   { (exit 1); exit 1; }; }; }
3143
3144# Provide some information about the compiler.
3145$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3146set X $ac_compile
3147ac_compiler=$2
3148{ (ac_try="$ac_compiler --version >&5"
3149case "(($ac_try" in
3150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151  *) ac_try_echo=$ac_try;;
3152esac
3153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3154$as_echo "$ac_try_echo") >&5
3155  (eval "$ac_compiler --version >&5") 2>&5
3156  ac_status=$?
3157  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158  (exit $ac_status); }
3159{ (ac_try="$ac_compiler -v >&5"
3160case "(($ac_try" in
3161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162  *) ac_try_echo=$ac_try;;
3163esac
3164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3165$as_echo "$ac_try_echo") >&5
3166  (eval "$ac_compiler -v >&5") 2>&5
3167  ac_status=$?
3168  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169  (exit $ac_status); }
3170{ (ac_try="$ac_compiler -V >&5"
3171case "(($ac_try" in
3172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173  *) ac_try_echo=$ac_try;;
3174esac
3175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3176$as_echo "$ac_try_echo") >&5
3177  (eval "$ac_compiler -V >&5") 2>&5
3178  ac_status=$?
3179  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180  (exit $ac_status); }
3181
3182cat >conftest.$ac_ext <<_ACEOF
3183/* confdefs.h.  */
3184_ACEOF
3185cat confdefs.h >>conftest.$ac_ext
3186cat >>conftest.$ac_ext <<_ACEOF
3187/* end confdefs.h.  */
3188
3189int
3190main ()
3191{
3192
3193  ;
3194  return 0;
3195}
3196_ACEOF
3197ac_clean_files_save=$ac_clean_files
3198ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3199# Try to create an executable without -o first, disregard a.out.
3200# It will help us diagnose broken compilers, and finding out an intuition
3201# of exeext.
3202{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3203$as_echo_n "checking for C compiler default output file name... " >&6; }
3204ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3205
3206# The possible output files:
3207ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3208
3209ac_rmfiles=
3210for ac_file in $ac_files
3211do
3212  case $ac_file in
3213    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3214    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3215  esac
3216done
3217rm -f $ac_rmfiles
3218
3219if { (ac_try="$ac_link_default"
3220case "(($ac_try" in
3221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222  *) ac_try_echo=$ac_try;;
3223esac
3224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3225$as_echo "$ac_try_echo") >&5
3226  (eval "$ac_link_default") 2>&5
3227  ac_status=$?
3228  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229  (exit $ac_status); }; then
3230  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3231# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3232# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3233# so that the user can short-circuit this test for compilers unknown to
3234# Autoconf.
3235for ac_file in $ac_files ''
3236do
3237  test -f "$ac_file" || continue
3238  case $ac_file in
3239    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3240	;;
3241    [ab].out )
3242	# We found the default executable, but exeext='' is most
3243	# certainly right.
3244	break;;
3245    *.* )
3246        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3247	then :; else
3248	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3249	fi
3250	# We set ac_cv_exeext here because the later test for it is not
3251	# safe: cross compilers may not add the suffix if given an `-o'
3252	# argument, so we may need to know it at that point already.
3253	# Even if this section looks crufty: it has the advantage of
3254	# actually working.
3255	break;;
3256    * )
3257	break;;
3258  esac
3259done
3260test "$ac_cv_exeext" = no && ac_cv_exeext=
3261
3262else
3263  ac_file=''
3264fi
3265
3266{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3267$as_echo "$ac_file" >&6; }
3268if test -z "$ac_file"; then
3269  $as_echo "$as_me: failed program was:" >&5
3270sed 's/^/| /' conftest.$ac_ext >&5
3271
3272{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3274{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3275See \`config.log' for more details." >&5
3276$as_echo "$as_me: error: C compiler cannot create executables
3277See \`config.log' for more details." >&2;}
3278   { (exit 77); exit 77; }; }; }
3279fi
3280
3281ac_exeext=$ac_cv_exeext
3282
3283# Check that the compiler produces executables we can run.  If not, either
3284# the compiler is broken, or we cross compile.
3285{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3286$as_echo_n "checking whether the C compiler works... " >&6; }
3287# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3288# If not cross compiling, check that we can run a simple program.
3289if test "$cross_compiling" != yes; then
3290  if { ac_try='./$ac_file'
3291  { (case "(($ac_try" in
3292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293  *) ac_try_echo=$ac_try;;
3294esac
3295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3296$as_echo "$ac_try_echo") >&5
3297  (eval "$ac_try") 2>&5
3298  ac_status=$?
3299  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300  (exit $ac_status); }; }; then
3301    cross_compiling=no
3302  else
3303    if test "$cross_compiling" = maybe; then
3304	cross_compiling=yes
3305    else
3306	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3308{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3309If you meant to cross compile, use \`--host'.
3310See \`config.log' for more details." >&5
3311$as_echo "$as_me: error: cannot run C compiled programs.
3312If you meant to cross compile, use \`--host'.
3313See \`config.log' for more details." >&2;}
3314   { (exit 1); exit 1; }; }; }
3315    fi
3316  fi
3317fi
3318{ $as_echo "$as_me:$LINENO: result: yes" >&5
3319$as_echo "yes" >&6; }
3320
3321rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3322ac_clean_files=$ac_clean_files_save
3323# Check that the compiler produces executables we can run.  If not, either
3324# the compiler is broken, or we cross compile.
3325{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3326$as_echo_n "checking whether we are cross compiling... " >&6; }
3327{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3328$as_echo "$cross_compiling" >&6; }
3329
3330{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3331$as_echo_n "checking for suffix of executables... " >&6; }
3332if { (ac_try="$ac_link"
3333case "(($ac_try" in
3334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335  *) ac_try_echo=$ac_try;;
3336esac
3337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3338$as_echo "$ac_try_echo") >&5
3339  (eval "$ac_link") 2>&5
3340  ac_status=$?
3341  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342  (exit $ac_status); }; then
3343  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3344# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3345# work properly (i.e., refer to `conftest.exe'), while it won't with
3346# `rm'.
3347for ac_file in conftest.exe conftest conftest.*; do
3348  test -f "$ac_file" || continue
3349  case $ac_file in
3350    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3351    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3352	  break;;
3353    * ) break;;
3354  esac
3355done
3356else
3357  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3360See \`config.log' for more details." >&5
3361$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3362See \`config.log' for more details." >&2;}
3363   { (exit 1); exit 1; }; }; }
3364fi
3365
3366rm -f conftest$ac_cv_exeext
3367{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3368$as_echo "$ac_cv_exeext" >&6; }
3369
3370rm -f conftest.$ac_ext
3371EXEEXT=$ac_cv_exeext
3372ac_exeext=$EXEEXT
3373{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3374$as_echo_n "checking for suffix of object files... " >&6; }
3375if test "${ac_cv_objext+set}" = set; then
3376  $as_echo_n "(cached) " >&6
3377else
3378  cat >conftest.$ac_ext <<_ACEOF
3379/* confdefs.h.  */
3380_ACEOF
3381cat confdefs.h >>conftest.$ac_ext
3382cat >>conftest.$ac_ext <<_ACEOF
3383/* end confdefs.h.  */
3384
3385int
3386main ()
3387{
3388
3389  ;
3390  return 0;
3391}
3392_ACEOF
3393rm -f conftest.o conftest.obj
3394if { (ac_try="$ac_compile"
3395case "(($ac_try" in
3396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397  *) ac_try_echo=$ac_try;;
3398esac
3399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3400$as_echo "$ac_try_echo") >&5
3401  (eval "$ac_compile") 2>&5
3402  ac_status=$?
3403  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404  (exit $ac_status); }; then
3405  for ac_file in conftest.o conftest.obj conftest.*; do
3406  test -f "$ac_file" || continue;
3407  case $ac_file in
3408    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3409    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3410       break;;
3411  esac
3412done
3413else
3414  $as_echo "$as_me: failed program was:" >&5
3415sed 's/^/| /' conftest.$ac_ext >&5
3416
3417{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3419{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3420See \`config.log' for more details." >&5
3421$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3422See \`config.log' for more details." >&2;}
3423   { (exit 1); exit 1; }; }; }
3424fi
3425
3426rm -f conftest.$ac_cv_objext conftest.$ac_ext
3427fi
3428{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3429$as_echo "$ac_cv_objext" >&6; }
3430OBJEXT=$ac_cv_objext
3431ac_objext=$OBJEXT
3432{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3433$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3434if test "${ac_cv_c_compiler_gnu+set}" = set; then
3435  $as_echo_n "(cached) " >&6
3436else
3437  cat >conftest.$ac_ext <<_ACEOF
3438/* confdefs.h.  */
3439_ACEOF
3440cat confdefs.h >>conftest.$ac_ext
3441cat >>conftest.$ac_ext <<_ACEOF
3442/* end confdefs.h.  */
3443
3444int
3445main ()
3446{
3447#ifndef __GNUC__
3448       choke me
3449#endif
3450
3451  ;
3452  return 0;
3453}
3454_ACEOF
3455rm -f conftest.$ac_objext
3456if { (ac_try="$ac_compile"
3457case "(($ac_try" in
3458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459  *) ac_try_echo=$ac_try;;
3460esac
3461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3462$as_echo "$ac_try_echo") >&5
3463  (eval "$ac_compile") 2>conftest.er1
3464  ac_status=$?
3465  grep -v '^ *+' conftest.er1 >conftest.err
3466  rm -f conftest.er1
3467  cat conftest.err >&5
3468  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469  (exit $ac_status); } && {
3470	 test -z "$ac_c_werror_flag" ||
3471	 test ! -s conftest.err
3472       } && test -s conftest.$ac_objext; then
3473  ac_compiler_gnu=yes
3474else
3475  $as_echo "$as_me: failed program was:" >&5
3476sed 's/^/| /' conftest.$ac_ext >&5
3477
3478	ac_compiler_gnu=no
3479fi
3480
3481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3482ac_cv_c_compiler_gnu=$ac_compiler_gnu
3483
3484fi
3485{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3486$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3487if test $ac_compiler_gnu = yes; then
3488  GCC=yes
3489else
3490  GCC=
3491fi
3492ac_test_CFLAGS=${CFLAGS+set}
3493ac_save_CFLAGS=$CFLAGS
3494{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3495$as_echo_n "checking whether $CC accepts -g... " >&6; }
3496if test "${ac_cv_prog_cc_g+set}" = set; then
3497  $as_echo_n "(cached) " >&6
3498else
3499  ac_save_c_werror_flag=$ac_c_werror_flag
3500   ac_c_werror_flag=yes
3501   ac_cv_prog_cc_g=no
3502   CFLAGS="-g"
3503   cat >conftest.$ac_ext <<_ACEOF
3504/* confdefs.h.  */
3505_ACEOF
3506cat confdefs.h >>conftest.$ac_ext
3507cat >>conftest.$ac_ext <<_ACEOF
3508/* end confdefs.h.  */
3509
3510int
3511main ()
3512{
3513
3514  ;
3515  return 0;
3516}
3517_ACEOF
3518rm -f conftest.$ac_objext
3519if { (ac_try="$ac_compile"
3520case "(($ac_try" in
3521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522  *) ac_try_echo=$ac_try;;
3523esac
3524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3525$as_echo "$ac_try_echo") >&5
3526  (eval "$ac_compile") 2>conftest.er1
3527  ac_status=$?
3528  grep -v '^ *+' conftest.er1 >conftest.err
3529  rm -f conftest.er1
3530  cat conftest.err >&5
3531  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532  (exit $ac_status); } && {
3533	 test -z "$ac_c_werror_flag" ||
3534	 test ! -s conftest.err
3535       } && test -s conftest.$ac_objext; then
3536  ac_cv_prog_cc_g=yes
3537else
3538  $as_echo "$as_me: failed program was:" >&5
3539sed 's/^/| /' conftest.$ac_ext >&5
3540
3541	CFLAGS=""
3542      cat >conftest.$ac_ext <<_ACEOF
3543/* confdefs.h.  */
3544_ACEOF
3545cat confdefs.h >>conftest.$ac_ext
3546cat >>conftest.$ac_ext <<_ACEOF
3547/* end confdefs.h.  */
3548
3549int
3550main ()
3551{
3552
3553  ;
3554  return 0;
3555}
3556_ACEOF
3557rm -f conftest.$ac_objext
3558if { (ac_try="$ac_compile"
3559case "(($ac_try" in
3560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561  *) ac_try_echo=$ac_try;;
3562esac
3563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3564$as_echo "$ac_try_echo") >&5
3565  (eval "$ac_compile") 2>conftest.er1
3566  ac_status=$?
3567  grep -v '^ *+' conftest.er1 >conftest.err
3568  rm -f conftest.er1
3569  cat conftest.err >&5
3570  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571  (exit $ac_status); } && {
3572	 test -z "$ac_c_werror_flag" ||
3573	 test ! -s conftest.err
3574       } && test -s conftest.$ac_objext; then
3575  :
3576else
3577  $as_echo "$as_me: failed program was:" >&5
3578sed 's/^/| /' conftest.$ac_ext >&5
3579
3580	ac_c_werror_flag=$ac_save_c_werror_flag
3581	 CFLAGS="-g"
3582	 cat >conftest.$ac_ext <<_ACEOF
3583/* confdefs.h.  */
3584_ACEOF
3585cat confdefs.h >>conftest.$ac_ext
3586cat >>conftest.$ac_ext <<_ACEOF
3587/* end confdefs.h.  */
3588
3589int
3590main ()
3591{
3592
3593  ;
3594  return 0;
3595}
3596_ACEOF
3597rm -f conftest.$ac_objext
3598if { (ac_try="$ac_compile"
3599case "(($ac_try" in
3600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601  *) ac_try_echo=$ac_try;;
3602esac
3603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3604$as_echo "$ac_try_echo") >&5
3605  (eval "$ac_compile") 2>conftest.er1
3606  ac_status=$?
3607  grep -v '^ *+' conftest.er1 >conftest.err
3608  rm -f conftest.er1
3609  cat conftest.err >&5
3610  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611  (exit $ac_status); } && {
3612	 test -z "$ac_c_werror_flag" ||
3613	 test ! -s conftest.err
3614       } && test -s conftest.$ac_objext; then
3615  ac_cv_prog_cc_g=yes
3616else
3617  $as_echo "$as_me: failed program was:" >&5
3618sed 's/^/| /' conftest.$ac_ext >&5
3619
3620
3621fi
3622
3623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624fi
3625
3626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627fi
3628
3629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630   ac_c_werror_flag=$ac_save_c_werror_flag
3631fi
3632{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3633$as_echo "$ac_cv_prog_cc_g" >&6; }
3634if test "$ac_test_CFLAGS" = set; then
3635  CFLAGS=$ac_save_CFLAGS
3636elif test $ac_cv_prog_cc_g = yes; then
3637  if test "$GCC" = yes; then
3638    CFLAGS="-g -O2"
3639  else
3640    CFLAGS="-g"
3641  fi
3642else
3643  if test "$GCC" = yes; then
3644    CFLAGS="-O2"
3645  else
3646    CFLAGS=
3647  fi
3648fi
3649{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3650$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3651if test "${ac_cv_prog_cc_c89+set}" = set; then
3652  $as_echo_n "(cached) " >&6
3653else
3654  ac_cv_prog_cc_c89=no
3655ac_save_CC=$CC
3656cat >conftest.$ac_ext <<_ACEOF
3657/* confdefs.h.  */
3658_ACEOF
3659cat confdefs.h >>conftest.$ac_ext
3660cat >>conftest.$ac_ext <<_ACEOF
3661/* end confdefs.h.  */
3662#include <stdarg.h>
3663#include <stdio.h>
3664#include <sys/types.h>
3665#include <sys/stat.h>
3666/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3667struct buf { int x; };
3668FILE * (*rcsopen) (struct buf *, struct stat *, int);
3669static char *e (p, i)
3670     char **p;
3671     int i;
3672{
3673  return p[i];
3674}
3675static char *f (char * (*g) (char **, int), char **p, ...)
3676{
3677  char *s;
3678  va_list v;
3679  va_start (v,p);
3680  s = g (p, va_arg (v,int));
3681  va_end (v);
3682  return s;
3683}
3684
3685/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3686   function prototypes and stuff, but not '\xHH' hex character constants.
3687   These don't provoke an error unfortunately, instead are silently treated
3688   as 'x'.  The following induces an error, until -std is added to get
3689   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3690   array size at least.  It's necessary to write '\x00'==0 to get something
3691   that's true only with -std.  */
3692int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3693
3694/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3695   inside strings and character constants.  */
3696#define FOO(x) 'x'
3697int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3698
3699int test (int i, double x);
3700struct s1 {int (*f) (int a);};
3701struct s2 {int (*f) (double a);};
3702int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3703int argc;
3704char **argv;
3705int
3706main ()
3707{
3708return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3709  ;
3710  return 0;
3711}
3712_ACEOF
3713for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3714	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3715do
3716  CC="$ac_save_CC $ac_arg"
3717  rm -f conftest.$ac_objext
3718if { (ac_try="$ac_compile"
3719case "(($ac_try" in
3720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721  *) ac_try_echo=$ac_try;;
3722esac
3723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3724$as_echo "$ac_try_echo") >&5
3725  (eval "$ac_compile") 2>conftest.er1
3726  ac_status=$?
3727  grep -v '^ *+' conftest.er1 >conftest.err
3728  rm -f conftest.er1
3729  cat conftest.err >&5
3730  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731  (exit $ac_status); } && {
3732	 test -z "$ac_c_werror_flag" ||
3733	 test ! -s conftest.err
3734       } && test -s conftest.$ac_objext; then
3735  ac_cv_prog_cc_c89=$ac_arg
3736else
3737  $as_echo "$as_me: failed program was:" >&5
3738sed 's/^/| /' conftest.$ac_ext >&5
3739
3740
3741fi
3742
3743rm -f core conftest.err conftest.$ac_objext
3744  test "x$ac_cv_prog_cc_c89" != "xno" && break
3745done
3746rm -f conftest.$ac_ext
3747CC=$ac_save_CC
3748
3749fi
3750# AC_CACHE_VAL
3751case "x$ac_cv_prog_cc_c89" in
3752  x)
3753    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3754$as_echo "none needed" >&6; } ;;
3755  xno)
3756    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3757$as_echo "unsupported" >&6; } ;;
3758  *)
3759    CC="$CC $ac_cv_prog_cc_c89"
3760    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3761$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3762esac
3763
3764
3765ac_ext=c
3766ac_cpp='$CPP $CPPFLAGS'
3767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3769ac_compiler_gnu=$ac_cv_c_compiler_gnu
3770
3771depcc="$CC"   am_compiler_list=
3772
3773{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3774$as_echo_n "checking dependency style of $depcc... " >&6; }
3775if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3776  $as_echo_n "(cached) " >&6
3777else
3778  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3779  # We make a subdir and do the tests there.  Otherwise we can end up
3780  # making bogus files that we don't know about and never remove.  For
3781  # instance it was reported that on HP-UX the gcc test will end up
3782  # making a dummy file named `D' -- because `-MD' means `put the output
3783  # in D'.
3784  mkdir conftest.dir
3785  # Copy depcomp to subdir because otherwise we won't find it if we're
3786  # using a relative directory.
3787  cp "$am_depcomp" conftest.dir
3788  cd conftest.dir
3789  # We will build objects and dependencies in a subdirectory because
3790  # it helps to detect inapplicable dependency modes.  For instance
3791  # both Tru64's cc and ICC support -MD to output dependencies as a
3792  # side effect of compilation, but ICC will put the dependencies in
3793  # the current directory while Tru64 will put them in the object
3794  # directory.
3795  mkdir sub
3796
3797  am_cv_CC_dependencies_compiler_type=none
3798  if test "$am_compiler_list" = ""; then
3799     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3800  fi
3801  for depmode in $am_compiler_list; do
3802    # Setup a source with many dependencies, because some compilers
3803    # like to wrap large dependency lists on column 80 (with \), and
3804    # we should not choose a depcomp mode which is confused by this.
3805    #
3806    # We need to recreate these files for each test, as the compiler may
3807    # overwrite some of them when testing with obscure command lines.
3808    # This happens at least with the AIX C compiler.
3809    : > sub/conftest.c
3810    for i in 1 2 3 4 5 6; do
3811      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3812      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3813      # Solaris 8's {/usr,}/bin/sh.
3814      touch sub/conftst$i.h
3815    done
3816    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3817
3818    case $depmode in
3819    nosideeffect)
3820      # after this tag, mechanisms are not by side-effect, so they'll
3821      # only be used when explicitly requested
3822      if test "x$enable_dependency_tracking" = xyes; then
3823	continue
3824      else
3825	break
3826      fi
3827      ;;
3828    none) break ;;
3829    esac
3830    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3831    # mode.  It turns out that the SunPro C++ compiler does not properly
3832    # handle `-M -o', and we need to detect this.
3833    if depmode=$depmode \
3834       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3835       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3836       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3837         >/dev/null 2>conftest.err &&
3838       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3839       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3840       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3841       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3842      # icc doesn't choke on unknown options, it will just issue warnings
3843      # or remarks (even with -Werror).  So we grep stderr for any message
3844      # that says an option was ignored or not supported.
3845      # When given -MP, icc 7.0 and 7.1 complain thusly:
3846      #   icc: Command line warning: ignoring option '-M'; no argument required
3847      # The diagnosis changed in icc 8.0:
3848      #   icc: Command line remark: option '-MP' not supported
3849      if (grep 'ignoring option' conftest.err ||
3850          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3851        am_cv_CC_dependencies_compiler_type=$depmode
3852        break
3853      fi
3854    fi
3855  done
3856
3857  cd ..
3858  rm -rf conftest.dir
3859else
3860  am_cv_CC_dependencies_compiler_type=none
3861fi
3862
3863fi
3864{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3865$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3866CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3867
3868 if
3869  test "x$enable_dependency_tracking" != xno \
3870  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3871  am__fastdepCC_TRUE=
3872  am__fastdepCC_FALSE='#'
3873else
3874  am__fastdepCC_TRUE='#'
3875  am__fastdepCC_FALSE=
3876fi
3877
3878
3879{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3880$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3881if test "${lt_cv_path_SED+set}" = set; then
3882  $as_echo_n "(cached) " >&6
3883else
3884  # Loop through the user's path and test for sed and gsed.
3885# Then use that list of sed's as ones to test for truncation.
3886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887for as_dir in $PATH
3888do
3889  IFS=$as_save_IFS
3890  test -z "$as_dir" && as_dir=.
3891  for lt_ac_prog in sed gsed; do
3892    for ac_exec_ext in '' $ac_executable_extensions; do
3893      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3894        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3895      fi
3896    done
3897  done
3898done
3899IFS=$as_save_IFS
3900lt_ac_max=0
3901lt_ac_count=0
3902# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3903# along with /bin/sed that truncates output.
3904for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3905  test ! -f $lt_ac_sed && continue
3906  cat /dev/null > conftest.in
3907  lt_ac_count=0
3908  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3909  # Check for GNU sed and select it if it is found.
3910  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3911    lt_cv_path_SED=$lt_ac_sed
3912    break
3913  fi
3914  while true; do
3915    cat conftest.in conftest.in >conftest.tmp
3916    mv conftest.tmp conftest.in
3917    cp conftest.in conftest.nl
3918    echo >>conftest.nl
3919    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3920    cmp -s conftest.out conftest.nl || break
3921    # 10000 chars as input seems more than enough
3922    test $lt_ac_count -gt 10 && break
3923    lt_ac_count=`expr $lt_ac_count + 1`
3924    if test $lt_ac_count -gt $lt_ac_max; then
3925      lt_ac_max=$lt_ac_count
3926      lt_cv_path_SED=$lt_ac_sed
3927    fi
3928  done
3929done
3930
3931fi
3932
3933SED=$lt_cv_path_SED
3934
3935{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3936$as_echo "$SED" >&6; }
3937
3938{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3939$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3940if test "${ac_cv_path_GREP+set}" = set; then
3941  $as_echo_n "(cached) " >&6
3942else
3943  if test -z "$GREP"; then
3944  ac_path_GREP_found=false
3945  # Loop through the user's path and test for each of PROGNAME-LIST
3946  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3948do
3949  IFS=$as_save_IFS
3950  test -z "$as_dir" && as_dir=.
3951  for ac_prog in grep ggrep; do
3952    for ac_exec_ext in '' $ac_executable_extensions; do
3953      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3954      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3955# Check for GNU ac_path_GREP and select it if it is found.
3956  # Check for GNU $ac_path_GREP
3957case `"$ac_path_GREP" --version 2>&1` in
3958*GNU*)
3959  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3960*)
3961  ac_count=0
3962  $as_echo_n 0123456789 >"conftest.in"
3963  while :
3964  do
3965    cat "conftest.in" "conftest.in" >"conftest.tmp"
3966    mv "conftest.tmp" "conftest.in"
3967    cp "conftest.in" "conftest.nl"
3968    $as_echo 'GREP' >> "conftest.nl"
3969    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3970    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3971    ac_count=`expr $ac_count + 1`
3972    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3973      # Best one so far, save it but keep looking for a better one
3974      ac_cv_path_GREP="$ac_path_GREP"
3975      ac_path_GREP_max=$ac_count
3976    fi
3977    # 10*(2^10) chars as input seems more than enough
3978    test $ac_count -gt 10 && break
3979  done
3980  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3981esac
3982
3983      $ac_path_GREP_found && break 3
3984    done
3985  done
3986done
3987IFS=$as_save_IFS
3988  if test -z "$ac_cv_path_GREP"; then
3989    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3990$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3991   { (exit 1); exit 1; }; }
3992  fi
3993else
3994  ac_cv_path_GREP=$GREP
3995fi
3996
3997fi
3998{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3999$as_echo "$ac_cv_path_GREP" >&6; }
4000 GREP="$ac_cv_path_GREP"
4001
4002
4003{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4004$as_echo_n "checking for egrep... " >&6; }
4005if test "${ac_cv_path_EGREP+set}" = set; then
4006  $as_echo_n "(cached) " >&6
4007else
4008  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4009   then ac_cv_path_EGREP="$GREP -E"
4010   else
4011     if test -z "$EGREP"; then
4012  ac_path_EGREP_found=false
4013  # Loop through the user's path and test for each of PROGNAME-LIST
4014  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4016do
4017  IFS=$as_save_IFS
4018  test -z "$as_dir" && as_dir=.
4019  for ac_prog in egrep; do
4020    for ac_exec_ext in '' $ac_executable_extensions; do
4021      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4022      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4023# Check for GNU ac_path_EGREP and select it if it is found.
4024  # Check for GNU $ac_path_EGREP
4025case `"$ac_path_EGREP" --version 2>&1` in
4026*GNU*)
4027  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4028*)
4029  ac_count=0
4030  $as_echo_n 0123456789 >"conftest.in"
4031  while :
4032  do
4033    cat "conftest.in" "conftest.in" >"conftest.tmp"
4034    mv "conftest.tmp" "conftest.in"
4035    cp "conftest.in" "conftest.nl"
4036    $as_echo 'EGREP' >> "conftest.nl"
4037    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4038    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4039    ac_count=`expr $ac_count + 1`
4040    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4041      # Best one so far, save it but keep looking for a better one
4042      ac_cv_path_EGREP="$ac_path_EGREP"
4043      ac_path_EGREP_max=$ac_count
4044    fi
4045    # 10*(2^10) chars as input seems more than enough
4046    test $ac_count -gt 10 && break
4047  done
4048  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4049esac
4050
4051      $ac_path_EGREP_found && break 3
4052    done
4053  done
4054done
4055IFS=$as_save_IFS
4056  if test -z "$ac_cv_path_EGREP"; then
4057    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4058$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4059   { (exit 1); exit 1; }; }
4060  fi
4061else
4062  ac_cv_path_EGREP=$EGREP
4063fi
4064
4065   fi
4066fi
4067{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4068$as_echo "$ac_cv_path_EGREP" >&6; }
4069 EGREP="$ac_cv_path_EGREP"
4070
4071
4072
4073# Check whether --with-gnu-ld was given.
4074if test "${with_gnu_ld+set}" = set; then
4075  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4076else
4077  with_gnu_ld=no
4078fi
4079
4080ac_prog=ld
4081if test "$GCC" = yes; then
4082  # Check if gcc -print-prog-name=ld gives a path.
4083  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4084$as_echo_n "checking for ld used by $CC... " >&6; }
4085  case $host in
4086  *-*-mingw*)
4087    # gcc leaves a trailing carriage return which upsets mingw
4088    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4089  *)
4090    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4091  esac
4092  case $ac_prog in
4093    # Accept absolute paths.
4094    [\\/]* | ?:[\\/]*)
4095      re_direlt='/[^/][^/]*/\.\./'
4096      # Canonicalize the pathname of ld
4097      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4098      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4099	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4100      done
4101      test -z "$LD" && LD="$ac_prog"
4102      ;;
4103  "")
4104    # If it fails, then pretend we aren't using GCC.
4105    ac_prog=ld
4106    ;;
4107  *)
4108    # If it is relative, then search for the first ld in PATH.
4109    with_gnu_ld=unknown
4110    ;;
4111  esac
4112elif test "$with_gnu_ld" = yes; then
4113  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4114$as_echo_n "checking for GNU ld... " >&6; }
4115else
4116  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4117$as_echo_n "checking for non-GNU ld... " >&6; }
4118fi
4119if test "${lt_cv_path_LD+set}" = set; then
4120  $as_echo_n "(cached) " >&6
4121else
4122  if test -z "$LD"; then
4123  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4124  for ac_dir in $PATH; do
4125    IFS="$lt_save_ifs"
4126    test -z "$ac_dir" && ac_dir=.
4127    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4128      lt_cv_path_LD="$ac_dir/$ac_prog"
4129      # Check to see if the program is GNU ld.  I'd rather use --version,
4130      # but apparently some variants of GNU ld only accept -v.
4131      # Break only if it was the GNU/non-GNU ld that we prefer.
4132      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4133      *GNU* | *'with BFD'*)
4134	test "$with_gnu_ld" != no && break
4135	;;
4136      *)
4137	test "$with_gnu_ld" != yes && break
4138	;;
4139      esac
4140    fi
4141  done
4142  IFS="$lt_save_ifs"
4143else
4144  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4145fi
4146fi
4147
4148LD="$lt_cv_path_LD"
4149if test -n "$LD"; then
4150  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4151$as_echo "$LD" >&6; }
4152else
4153  { $as_echo "$as_me:$LINENO: result: no" >&5
4154$as_echo "no" >&6; }
4155fi
4156test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4157$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4158   { (exit 1); exit 1; }; }
4159{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4160$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4161if test "${lt_cv_prog_gnu_ld+set}" = set; then
4162  $as_echo_n "(cached) " >&6
4163else
4164  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4165case `$LD -v 2>&1 </dev/null` in
4166*GNU* | *'with BFD'*)
4167  lt_cv_prog_gnu_ld=yes
4168  ;;
4169*)
4170  lt_cv_prog_gnu_ld=no
4171  ;;
4172esac
4173fi
4174{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4175$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4176with_gnu_ld=$lt_cv_prog_gnu_ld
4177
4178
4179{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4180$as_echo_n "checking for $LD option to reload object files... " >&6; }
4181if test "${lt_cv_ld_reload_flag+set}" = set; then
4182  $as_echo_n "(cached) " >&6
4183else
4184  lt_cv_ld_reload_flag='-r'
4185fi
4186{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4187$as_echo "$lt_cv_ld_reload_flag" >&6; }
4188reload_flag=$lt_cv_ld_reload_flag
4189case $reload_flag in
4190"" | " "*) ;;
4191*) reload_flag=" $reload_flag" ;;
4192esac
4193reload_cmds='$LD$reload_flag -o $output$reload_objs'
4194case $host_os in
4195  darwin*)
4196    if test "$GCC" = yes; then
4197      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4198    else
4199      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4200    fi
4201    ;;
4202esac
4203
4204{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4205$as_echo_n "checking for BSD-compatible nm... " >&6; }
4206if test "${lt_cv_path_NM+set}" = set; then
4207  $as_echo_n "(cached) " >&6
4208else
4209  if test -n "$NM"; then
4210  # Let the user override the test.
4211  lt_cv_path_NM="$NM"
4212else
4213  lt_nm_to_check="${ac_tool_prefix}nm"
4214  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4215    lt_nm_to_check="$lt_nm_to_check nm"
4216  fi
4217  for lt_tmp_nm in $lt_nm_to_check; do
4218    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4219    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4220      IFS="$lt_save_ifs"
4221      test -z "$ac_dir" && ac_dir=.
4222      tmp_nm="$ac_dir/$lt_tmp_nm"
4223      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4224	# Check to see if the nm accepts a BSD-compat flag.
4225	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4226	#   nm: unknown option "B" ignored
4227	# Tru64's nm complains that /dev/null is an invalid object file
4228	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4229	*/dev/null* | *'Invalid file or object type'*)
4230	  lt_cv_path_NM="$tmp_nm -B"
4231	  break
4232	  ;;
4233	*)
4234	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4235	  */dev/null*)
4236	    lt_cv_path_NM="$tmp_nm -p"
4237	    break
4238	    ;;
4239	  *)
4240	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4241	    continue # so that we can try to find one that supports BSD flags
4242	    ;;
4243	  esac
4244	  ;;
4245	esac
4246      fi
4247    done
4248    IFS="$lt_save_ifs"
4249  done
4250  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4251fi
4252fi
4253{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4254$as_echo "$lt_cv_path_NM" >&6; }
4255NM="$lt_cv_path_NM"
4256
4257{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4258$as_echo_n "checking whether ln -s works... " >&6; }
4259LN_S=$as_ln_s
4260if test "$LN_S" = "ln -s"; then
4261  { $as_echo "$as_me:$LINENO: result: yes" >&5
4262$as_echo "yes" >&6; }
4263else
4264  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4265$as_echo "no, using $LN_S" >&6; }
4266fi
4267
4268{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4269$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4270if test "${lt_cv_deplibs_check_method+set}" = set; then
4271  $as_echo_n "(cached) " >&6
4272else
4273  lt_cv_file_magic_cmd='$MAGIC_CMD'
4274lt_cv_file_magic_test_file=
4275lt_cv_deplibs_check_method='unknown'
4276# Need to set the preceding variable on all platforms that support
4277# interlibrary dependencies.
4278# 'none' -- dependencies not supported.
4279# `unknown' -- same as none, but documents that we really don't know.
4280# 'pass_all' -- all dependencies passed with no checks.
4281# 'test_compile' -- check by making test program.
4282# 'file_magic [[regex]]' -- check by looking for files in library path
4283# which responds to the $file_magic_cmd with a given extended regex.
4284# If you have `file' or equivalent on your system and you're not sure
4285# whether `pass_all' will *always* work, you probably want this one.
4286
4287case $host_os in
4288aix[4-9]*)
4289  lt_cv_deplibs_check_method=pass_all
4290  ;;
4291
4292beos*)
4293  lt_cv_deplibs_check_method=pass_all
4294  ;;
4295
4296bsdi[45]*)
4297  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4298  lt_cv_file_magic_cmd='/usr/bin/file -L'
4299  lt_cv_file_magic_test_file=/shlib/libc.so
4300  ;;
4301
4302cygwin*)
4303  # func_win32_libid is a shell function defined in ltmain.sh
4304  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4305  lt_cv_file_magic_cmd='func_win32_libid'
4306  ;;
4307
4308mingw* | pw32*)
4309  # Base MSYS/MinGW do not provide the 'file' command needed by
4310  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4311  # unless we find 'file', for example because we are cross-compiling.
4312  if ( file / ) >/dev/null 2>&1; then
4313    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4314    lt_cv_file_magic_cmd='func_win32_libid'
4315  else
4316    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4317    lt_cv_file_magic_cmd='$OBJDUMP -f'
4318  fi
4319  ;;
4320
4321darwin* | rhapsody*)
4322  lt_cv_deplibs_check_method=pass_all
4323  ;;
4324
4325freebsd* | dragonfly*)
4326  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4327    case $host_cpu in
4328    i*86 )
4329      # Not sure whether the presence of OpenBSD here was a mistake.
4330      # Let's accept both of them until this is cleared up.
4331      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4332      lt_cv_file_magic_cmd=/usr/bin/file
4333      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4334      ;;
4335    esac
4336  else
4337    lt_cv_deplibs_check_method=pass_all
4338  fi
4339  ;;
4340
4341gnu*)
4342  lt_cv_deplibs_check_method=pass_all
4343  ;;
4344
4345hpux10.20* | hpux11*)
4346  lt_cv_file_magic_cmd=/usr/bin/file
4347  case $host_cpu in
4348  ia64*)
4349    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4350    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4351    ;;
4352  hppa*64*)
4353    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]'
4354    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4355    ;;
4356  *)
4357    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4358    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4359    ;;
4360  esac
4361  ;;
4362
4363interix[3-9]*)
4364  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4365  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4366  ;;
4367
4368irix5* | irix6* | nonstopux*)
4369  case $LD in
4370  *-32|*"-32 ") libmagic=32-bit;;
4371  *-n32|*"-n32 ") libmagic=N32;;
4372  *-64|*"-64 ") libmagic=64-bit;;
4373  *) libmagic=never-match;;
4374  esac
4375  lt_cv_deplibs_check_method=pass_all
4376  ;;
4377
4378# This must be Linux ELF.
4379linux* | k*bsd*-gnu)
4380  lt_cv_deplibs_check_method=pass_all
4381  ;;
4382
4383netbsd*)
4384  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4385    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4386  else
4387    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4388  fi
4389  ;;
4390
4391newos6*)
4392  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4393  lt_cv_file_magic_cmd=/usr/bin/file
4394  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4395  ;;
4396
4397nto-qnx*)
4398  lt_cv_deplibs_check_method=unknown
4399  ;;
4400
4401openbsd*)
4402  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4403    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4404  else
4405    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4406  fi
4407  ;;
4408
4409osf3* | osf4* | osf5*)
4410  lt_cv_deplibs_check_method=pass_all
4411  ;;
4412
4413rdos*)
4414  lt_cv_deplibs_check_method=pass_all
4415  ;;
4416
4417solaris*)
4418  lt_cv_deplibs_check_method=pass_all
4419  ;;
4420
4421sysv4 | sysv4.3*)
4422  case $host_vendor in
4423  motorola)
4424    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]'
4425    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4426    ;;
4427  ncr)
4428    lt_cv_deplibs_check_method=pass_all
4429    ;;
4430  sequent)
4431    lt_cv_file_magic_cmd='/bin/file'
4432    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4433    ;;
4434  sni)
4435    lt_cv_file_magic_cmd='/bin/file'
4436    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4437    lt_cv_file_magic_test_file=/lib/libc.so
4438    ;;
4439  siemens)
4440    lt_cv_deplibs_check_method=pass_all
4441    ;;
4442  pc)
4443    lt_cv_deplibs_check_method=pass_all
4444    ;;
4445  esac
4446  ;;
4447
4448sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4449  lt_cv_deplibs_check_method=pass_all
4450  ;;
4451esac
4452
4453fi
4454{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4455$as_echo "$lt_cv_deplibs_check_method" >&6; }
4456file_magic_cmd=$lt_cv_file_magic_cmd
4457deplibs_check_method=$lt_cv_deplibs_check_method
4458test -z "$deplibs_check_method" && deplibs_check_method=unknown
4459
4460
4461
4462
4463# If no C compiler was specified, use CC.
4464LTCC=${LTCC-"$CC"}
4465
4466# If no C compiler flags were specified, use CFLAGS.
4467LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4468
4469# Allow CC to be a program name with arguments.
4470compiler=$CC
4471
4472
4473# Check whether --enable-libtool-lock was given.
4474if test "${enable_libtool_lock+set}" = set; then
4475  enableval=$enable_libtool_lock;
4476fi
4477
4478test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4479
4480# Some flags need to be propagated to the compiler or linker for good
4481# libtool support.
4482case $host in
4483ia64-*-hpux*)
4484  # Find out which ABI we are using.
4485  echo 'int i;' > conftest.$ac_ext
4486  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4487  (eval $ac_compile) 2>&5
4488  ac_status=$?
4489  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490  (exit $ac_status); }; then
4491    case `/usr/bin/file conftest.$ac_objext` in
4492    *ELF-32*)
4493      HPUX_IA64_MODE="32"
4494      ;;
4495    *ELF-64*)
4496      HPUX_IA64_MODE="64"
4497      ;;
4498    esac
4499  fi
4500  rm -rf conftest*
4501  ;;
4502*-*-irix6*)
4503  # Find out which ABI we are using.
4504  echo '#line 4504 "configure"' > conftest.$ac_ext
4505  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4506  (eval $ac_compile) 2>&5
4507  ac_status=$?
4508  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509  (exit $ac_status); }; then
4510   if test "$lt_cv_prog_gnu_ld" = yes; then
4511    case `/usr/bin/file conftest.$ac_objext` in
4512    *32-bit*)
4513      LD="${LD-ld} -melf32bsmip"
4514      ;;
4515    *N32*)
4516      LD="${LD-ld} -melf32bmipn32"
4517      ;;
4518    *64-bit*)
4519      LD="${LD-ld} -melf64bmip"
4520      ;;
4521    esac
4522   else
4523    case `/usr/bin/file conftest.$ac_objext` in
4524    *32-bit*)
4525      LD="${LD-ld} -32"
4526      ;;
4527    *N32*)
4528      LD="${LD-ld} -n32"
4529      ;;
4530    *64-bit*)
4531      LD="${LD-ld} -64"
4532      ;;
4533    esac
4534   fi
4535  fi
4536  rm -rf conftest*
4537  ;;
4538
4539x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4540s390*-*linux*|sparc*-*linux*)
4541  # Find out which ABI we are using.
4542  echo 'int i;' > conftest.$ac_ext
4543  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4544  (eval $ac_compile) 2>&5
4545  ac_status=$?
4546  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547  (exit $ac_status); }; then
4548    case `/usr/bin/file conftest.o` in
4549    *32-bit*)
4550      case $host in
4551        x86_64-*kfreebsd*-gnu)
4552          LD="${LD-ld} -m elf_i386_fbsd"
4553          ;;
4554        x86_64-*linux*)
4555          LD="${LD-ld} -m elf_i386"
4556          ;;
4557        ppc64-*linux*|powerpc64-*linux*)
4558          LD="${LD-ld} -m elf32ppclinux"
4559          ;;
4560        s390x-*linux*)
4561          LD="${LD-ld} -m elf_s390"
4562          ;;
4563        sparc64-*linux*)
4564          LD="${LD-ld} -m elf32_sparc"
4565          ;;
4566      esac
4567      ;;
4568    *64-bit*)
4569      libsuff=64
4570      case $host in
4571        x86_64-*kfreebsd*-gnu)
4572          LD="${LD-ld} -m elf_x86_64_fbsd"
4573          ;;
4574        x86_64-*linux*)
4575          LD="${LD-ld} -m elf_x86_64"
4576          ;;
4577        ppc*-*linux*|powerpc*-*linux*)
4578          LD="${LD-ld} -m elf64ppc"
4579          ;;
4580        s390*-*linux*)
4581          LD="${LD-ld} -m elf64_s390"
4582          ;;
4583        sparc*-*linux*)
4584          LD="${LD-ld} -m elf64_sparc"
4585          ;;
4586      esac
4587      ;;
4588    esac
4589  fi
4590  rm -rf conftest*
4591  ;;
4592
4593*-*-sco3.2v5*)
4594  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4595  SAVE_CFLAGS="$CFLAGS"
4596  CFLAGS="$CFLAGS -belf"
4597  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4598$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4599if test "${lt_cv_cc_needs_belf+set}" = set; then
4600  $as_echo_n "(cached) " >&6
4601else
4602  ac_ext=c
4603ac_cpp='$CPP $CPPFLAGS'
4604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4606ac_compiler_gnu=$ac_cv_c_compiler_gnu
4607
4608     cat >conftest.$ac_ext <<_ACEOF
4609/* confdefs.h.  */
4610_ACEOF
4611cat confdefs.h >>conftest.$ac_ext
4612cat >>conftest.$ac_ext <<_ACEOF
4613/* end confdefs.h.  */
4614
4615int
4616main ()
4617{
4618
4619  ;
4620  return 0;
4621}
4622_ACEOF
4623rm -f conftest.$ac_objext conftest$ac_exeext
4624if { (ac_try="$ac_link"
4625case "(($ac_try" in
4626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627  *) ac_try_echo=$ac_try;;
4628esac
4629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4630$as_echo "$ac_try_echo") >&5
4631  (eval "$ac_link") 2>conftest.er1
4632  ac_status=$?
4633  grep -v '^ *+' conftest.er1 >conftest.err
4634  rm -f conftest.er1
4635  cat conftest.err >&5
4636  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637  (exit $ac_status); } && {
4638	 test -z "$ac_c_werror_flag" ||
4639	 test ! -s conftest.err
4640       } && test -s conftest$ac_exeext && {
4641	 test "$cross_compiling" = yes ||
4642	 $as_test_x conftest$ac_exeext
4643       }; then
4644  lt_cv_cc_needs_belf=yes
4645else
4646  $as_echo "$as_me: failed program was:" >&5
4647sed 's/^/| /' conftest.$ac_ext >&5
4648
4649	lt_cv_cc_needs_belf=no
4650fi
4651
4652rm -rf conftest.dSYM
4653rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4654      conftest$ac_exeext conftest.$ac_ext
4655     ac_ext=c
4656ac_cpp='$CPP $CPPFLAGS'
4657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4659ac_compiler_gnu=$ac_cv_c_compiler_gnu
4660
4661fi
4662{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4663$as_echo "$lt_cv_cc_needs_belf" >&6; }
4664  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4665    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4666    CFLAGS="$SAVE_CFLAGS"
4667  fi
4668  ;;
4669sparc*-*solaris*)
4670  # Find out which ABI we are using.
4671  echo 'int i;' > conftest.$ac_ext
4672  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4673  (eval $ac_compile) 2>&5
4674  ac_status=$?
4675  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676  (exit $ac_status); }; then
4677    case `/usr/bin/file conftest.o` in
4678    *64-bit*)
4679      case $lt_cv_prog_gnu_ld in
4680      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4681      *)
4682        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4683	  LD="${LD-ld} -64"
4684	fi
4685	;;
4686      esac
4687      ;;
4688    esac
4689  fi
4690  rm -rf conftest*
4691  ;;
4692
4693
4694esac
4695
4696need_locks="$enable_libtool_lock"
4697
4698
4699ac_ext=c
4700ac_cpp='$CPP $CPPFLAGS'
4701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4703ac_compiler_gnu=$ac_cv_c_compiler_gnu
4704{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4705$as_echo_n "checking how to run the C preprocessor... " >&6; }
4706# On Suns, sometimes $CPP names a directory.
4707if test -n "$CPP" && test -d "$CPP"; then
4708  CPP=
4709fi
4710if test -z "$CPP"; then
4711  if test "${ac_cv_prog_CPP+set}" = set; then
4712  $as_echo_n "(cached) " >&6
4713else
4714      # Double quotes because CPP needs to be expanded
4715    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4716    do
4717      ac_preproc_ok=false
4718for ac_c_preproc_warn_flag in '' yes
4719do
4720  # Use a header file that comes with gcc, so configuring glibc
4721  # with a fresh cross-compiler works.
4722  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4723  # <limits.h> exists even on freestanding compilers.
4724  # On the NeXT, cc -E runs the code through the compiler's parser,
4725  # not just through cpp. "Syntax error" is here to catch this case.
4726  cat >conftest.$ac_ext <<_ACEOF
4727/* confdefs.h.  */
4728_ACEOF
4729cat confdefs.h >>conftest.$ac_ext
4730cat >>conftest.$ac_ext <<_ACEOF
4731/* end confdefs.h.  */
4732#ifdef __STDC__
4733# include <limits.h>
4734#else
4735# include <assert.h>
4736#endif
4737		     Syntax error
4738_ACEOF
4739if { (ac_try="$ac_cpp conftest.$ac_ext"
4740case "(($ac_try" in
4741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742  *) ac_try_echo=$ac_try;;
4743esac
4744eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4745$as_echo "$ac_try_echo") >&5
4746  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4747  ac_status=$?
4748  grep -v '^ *+' conftest.er1 >conftest.err
4749  rm -f conftest.er1
4750  cat conftest.err >&5
4751  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752  (exit $ac_status); } >/dev/null && {
4753	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4754	 test ! -s conftest.err
4755       }; then
4756  :
4757else
4758  $as_echo "$as_me: failed program was:" >&5
4759sed 's/^/| /' conftest.$ac_ext >&5
4760
4761  # Broken: fails on valid input.
4762continue
4763fi
4764
4765rm -f conftest.err conftest.$ac_ext
4766
4767  # OK, works on sane cases.  Now check whether nonexistent headers
4768  # can be detected and how.
4769  cat >conftest.$ac_ext <<_ACEOF
4770/* confdefs.h.  */
4771_ACEOF
4772cat confdefs.h >>conftest.$ac_ext
4773cat >>conftest.$ac_ext <<_ACEOF
4774/* end confdefs.h.  */
4775#include <ac_nonexistent.h>
4776_ACEOF
4777if { (ac_try="$ac_cpp conftest.$ac_ext"
4778case "(($ac_try" in
4779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780  *) ac_try_echo=$ac_try;;
4781esac
4782eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4783$as_echo "$ac_try_echo") >&5
4784  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4785  ac_status=$?
4786  grep -v '^ *+' conftest.er1 >conftest.err
4787  rm -f conftest.er1
4788  cat conftest.err >&5
4789  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790  (exit $ac_status); } >/dev/null && {
4791	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4792	 test ! -s conftest.err
4793       }; then
4794  # Broken: success on invalid input.
4795continue
4796else
4797  $as_echo "$as_me: failed program was:" >&5
4798sed 's/^/| /' conftest.$ac_ext >&5
4799
4800  # Passes both tests.
4801ac_preproc_ok=:
4802break
4803fi
4804
4805rm -f conftest.err conftest.$ac_ext
4806
4807done
4808# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4809rm -f conftest.err conftest.$ac_ext
4810if $ac_preproc_ok; then
4811  break
4812fi
4813
4814    done
4815    ac_cv_prog_CPP=$CPP
4816
4817fi
4818  CPP=$ac_cv_prog_CPP
4819else
4820  ac_cv_prog_CPP=$CPP
4821fi
4822{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4823$as_echo "$CPP" >&6; }
4824ac_preproc_ok=false
4825for ac_c_preproc_warn_flag in '' yes
4826do
4827  # Use a header file that comes with gcc, so configuring glibc
4828  # with a fresh cross-compiler works.
4829  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4830  # <limits.h> exists even on freestanding compilers.
4831  # On the NeXT, cc -E runs the code through the compiler's parser,
4832  # not just through cpp. "Syntax error" is here to catch this case.
4833  cat >conftest.$ac_ext <<_ACEOF
4834/* confdefs.h.  */
4835_ACEOF
4836cat confdefs.h >>conftest.$ac_ext
4837cat >>conftest.$ac_ext <<_ACEOF
4838/* end confdefs.h.  */
4839#ifdef __STDC__
4840# include <limits.h>
4841#else
4842# include <assert.h>
4843#endif
4844		     Syntax error
4845_ACEOF
4846if { (ac_try="$ac_cpp conftest.$ac_ext"
4847case "(($ac_try" in
4848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4849  *) ac_try_echo=$ac_try;;
4850esac
4851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4852$as_echo "$ac_try_echo") >&5
4853  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4854  ac_status=$?
4855  grep -v '^ *+' conftest.er1 >conftest.err
4856  rm -f conftest.er1
4857  cat conftest.err >&5
4858  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859  (exit $ac_status); } >/dev/null && {
4860	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4861	 test ! -s conftest.err
4862       }; then
4863  :
4864else
4865  $as_echo "$as_me: failed program was:" >&5
4866sed 's/^/| /' conftest.$ac_ext >&5
4867
4868  # Broken: fails on valid input.
4869continue
4870fi
4871
4872rm -f conftest.err conftest.$ac_ext
4873
4874  # OK, works on sane cases.  Now check whether nonexistent headers
4875  # can be detected and how.
4876  cat >conftest.$ac_ext <<_ACEOF
4877/* confdefs.h.  */
4878_ACEOF
4879cat confdefs.h >>conftest.$ac_ext
4880cat >>conftest.$ac_ext <<_ACEOF
4881/* end confdefs.h.  */
4882#include <ac_nonexistent.h>
4883_ACEOF
4884if { (ac_try="$ac_cpp conftest.$ac_ext"
4885case "(($ac_try" in
4886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4887  *) ac_try_echo=$ac_try;;
4888esac
4889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4890$as_echo "$ac_try_echo") >&5
4891  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4892  ac_status=$?
4893  grep -v '^ *+' conftest.er1 >conftest.err
4894  rm -f conftest.er1
4895  cat conftest.err >&5
4896  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897  (exit $ac_status); } >/dev/null && {
4898	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4899	 test ! -s conftest.err
4900       }; then
4901  # Broken: success on invalid input.
4902continue
4903else
4904  $as_echo "$as_me: failed program was:" >&5
4905sed 's/^/| /' conftest.$ac_ext >&5
4906
4907  # Passes both tests.
4908ac_preproc_ok=:
4909break
4910fi
4911
4912rm -f conftest.err conftest.$ac_ext
4913
4914done
4915# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4916rm -f conftest.err conftest.$ac_ext
4917if $ac_preproc_ok; then
4918  :
4919else
4920  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4921$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4922{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4923See \`config.log' for more details." >&5
4924$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4925See \`config.log' for more details." >&2;}
4926   { (exit 1); exit 1; }; }; }
4927fi
4928
4929ac_ext=c
4930ac_cpp='$CPP $CPPFLAGS'
4931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4933ac_compiler_gnu=$ac_cv_c_compiler_gnu
4934
4935
4936{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4937$as_echo_n "checking for ANSI C header files... " >&6; }
4938if test "${ac_cv_header_stdc+set}" = set; then
4939  $as_echo_n "(cached) " >&6
4940else
4941  cat >conftest.$ac_ext <<_ACEOF
4942/* confdefs.h.  */
4943_ACEOF
4944cat confdefs.h >>conftest.$ac_ext
4945cat >>conftest.$ac_ext <<_ACEOF
4946/* end confdefs.h.  */
4947#include <stdlib.h>
4948#include <stdarg.h>
4949#include <string.h>
4950#include <float.h>
4951
4952int
4953main ()
4954{
4955
4956  ;
4957  return 0;
4958}
4959_ACEOF
4960rm -f conftest.$ac_objext
4961if { (ac_try="$ac_compile"
4962case "(($ac_try" in
4963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964  *) ac_try_echo=$ac_try;;
4965esac
4966eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4967$as_echo "$ac_try_echo") >&5
4968  (eval "$ac_compile") 2>conftest.er1
4969  ac_status=$?
4970  grep -v '^ *+' conftest.er1 >conftest.err
4971  rm -f conftest.er1
4972  cat conftest.err >&5
4973  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974  (exit $ac_status); } && {
4975	 test -z "$ac_c_werror_flag" ||
4976	 test ! -s conftest.err
4977       } && test -s conftest.$ac_objext; then
4978  ac_cv_header_stdc=yes
4979else
4980  $as_echo "$as_me: failed program was:" >&5
4981sed 's/^/| /' conftest.$ac_ext >&5
4982
4983	ac_cv_header_stdc=no
4984fi
4985
4986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987
4988if test $ac_cv_header_stdc = yes; then
4989  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4990  cat >conftest.$ac_ext <<_ACEOF
4991/* confdefs.h.  */
4992_ACEOF
4993cat confdefs.h >>conftest.$ac_ext
4994cat >>conftest.$ac_ext <<_ACEOF
4995/* end confdefs.h.  */
4996#include <string.h>
4997
4998_ACEOF
4999if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5000  $EGREP "memchr" >/dev/null 2>&1; then
5001  :
5002else
5003  ac_cv_header_stdc=no
5004fi
5005rm -f conftest*
5006
5007fi
5008
5009if test $ac_cv_header_stdc = yes; then
5010  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5011  cat >conftest.$ac_ext <<_ACEOF
5012/* confdefs.h.  */
5013_ACEOF
5014cat confdefs.h >>conftest.$ac_ext
5015cat >>conftest.$ac_ext <<_ACEOF
5016/* end confdefs.h.  */
5017#include <stdlib.h>
5018
5019_ACEOF
5020if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5021  $EGREP "free" >/dev/null 2>&1; then
5022  :
5023else
5024  ac_cv_header_stdc=no
5025fi
5026rm -f conftest*
5027
5028fi
5029
5030if test $ac_cv_header_stdc = yes; then
5031  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5032  if test "$cross_compiling" = yes; then
5033  :
5034else
5035  cat >conftest.$ac_ext <<_ACEOF
5036/* confdefs.h.  */
5037_ACEOF
5038cat confdefs.h >>conftest.$ac_ext
5039cat >>conftest.$ac_ext <<_ACEOF
5040/* end confdefs.h.  */
5041#include <ctype.h>
5042#include <stdlib.h>
5043#if ((' ' & 0x0FF) == 0x020)
5044# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5045# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5046#else
5047# define ISLOWER(c) \
5048		   (('a' <= (c) && (c) <= 'i') \
5049		     || ('j' <= (c) && (c) <= 'r') \
5050		     || ('s' <= (c) && (c) <= 'z'))
5051# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5052#endif
5053
5054#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5055int
5056main ()
5057{
5058  int i;
5059  for (i = 0; i < 256; i++)
5060    if (XOR (islower (i), ISLOWER (i))
5061	|| toupper (i) != TOUPPER (i))
5062      return 2;
5063  return 0;
5064}
5065_ACEOF
5066rm -f conftest$ac_exeext
5067if { (ac_try="$ac_link"
5068case "(($ac_try" in
5069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5070  *) ac_try_echo=$ac_try;;
5071esac
5072eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5073$as_echo "$ac_try_echo") >&5
5074  (eval "$ac_link") 2>&5
5075  ac_status=$?
5076  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5078  { (case "(($ac_try" in
5079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5080  *) ac_try_echo=$ac_try;;
5081esac
5082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5083$as_echo "$ac_try_echo") >&5
5084  (eval "$ac_try") 2>&5
5085  ac_status=$?
5086  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087  (exit $ac_status); }; }; then
5088  :
5089else
5090  $as_echo "$as_me: program exited with status $ac_status" >&5
5091$as_echo "$as_me: failed program was:" >&5
5092sed 's/^/| /' conftest.$ac_ext >&5
5093
5094( exit $ac_status )
5095ac_cv_header_stdc=no
5096fi
5097rm -rf conftest.dSYM
5098rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5099fi
5100
5101
5102fi
5103fi
5104{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5105$as_echo "$ac_cv_header_stdc" >&6; }
5106if test $ac_cv_header_stdc = yes; then
5107
5108cat >>confdefs.h <<\_ACEOF
5109#define STDC_HEADERS 1
5110_ACEOF
5111
5112fi
5113
5114# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5125		  inttypes.h stdint.h unistd.h
5126do
5127as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5128{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5129$as_echo_n "checking for $ac_header... " >&6; }
5130if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5131  $as_echo_n "(cached) " >&6
5132else
5133  cat >conftest.$ac_ext <<_ACEOF
5134/* confdefs.h.  */
5135_ACEOF
5136cat confdefs.h >>conftest.$ac_ext
5137cat >>conftest.$ac_ext <<_ACEOF
5138/* end confdefs.h.  */
5139$ac_includes_default
5140
5141#include <$ac_header>
5142_ACEOF
5143rm -f conftest.$ac_objext
5144if { (ac_try="$ac_compile"
5145case "(($ac_try" in
5146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5147  *) ac_try_echo=$ac_try;;
5148esac
5149eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5150$as_echo "$ac_try_echo") >&5
5151  (eval "$ac_compile") 2>conftest.er1
5152  ac_status=$?
5153  grep -v '^ *+' conftest.er1 >conftest.err
5154  rm -f conftest.er1
5155  cat conftest.err >&5
5156  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157  (exit $ac_status); } && {
5158	 test -z "$ac_c_werror_flag" ||
5159	 test ! -s conftest.err
5160       } && test -s conftest.$ac_objext; then
5161  eval "$as_ac_Header=yes"
5162else
5163  $as_echo "$as_me: failed program was:" >&5
5164sed 's/^/| /' conftest.$ac_ext >&5
5165
5166	eval "$as_ac_Header=no"
5167fi
5168
5169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170fi
5171ac_res=`eval 'as_val=${'$as_ac_Header'}
5172		 $as_echo "$as_val"'`
5173	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5174$as_echo "$ac_res" >&6; }
5175as_val=`eval 'as_val=${'$as_ac_Header'}
5176		 $as_echo "$as_val"'`
5177   if test "x$as_val" = x""yes; then
5178  cat >>confdefs.h <<_ACEOF
5179#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5180_ACEOF
5181
5182fi
5183
5184done
5185
5186
5187
5188for ac_header in dlfcn.h
5189do
5190as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5191if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5192  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5193$as_echo_n "checking for $ac_header... " >&6; }
5194if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5195  $as_echo_n "(cached) " >&6
5196fi
5197ac_res=`eval 'as_val=${'$as_ac_Header'}
5198		 $as_echo "$as_val"'`
5199	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5200$as_echo "$ac_res" >&6; }
5201else
5202  # Is the header compilable?
5203{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5204$as_echo_n "checking $ac_header usability... " >&6; }
5205cat >conftest.$ac_ext <<_ACEOF
5206/* confdefs.h.  */
5207_ACEOF
5208cat confdefs.h >>conftest.$ac_ext
5209cat >>conftest.$ac_ext <<_ACEOF
5210/* end confdefs.h.  */
5211$ac_includes_default
5212#include <$ac_header>
5213_ACEOF
5214rm -f conftest.$ac_objext
5215if { (ac_try="$ac_compile"
5216case "(($ac_try" in
5217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218  *) ac_try_echo=$ac_try;;
5219esac
5220eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5221$as_echo "$ac_try_echo") >&5
5222  (eval "$ac_compile") 2>conftest.er1
5223  ac_status=$?
5224  grep -v '^ *+' conftest.er1 >conftest.err
5225  rm -f conftest.er1
5226  cat conftest.err >&5
5227  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228  (exit $ac_status); } && {
5229	 test -z "$ac_c_werror_flag" ||
5230	 test ! -s conftest.err
5231       } && test -s conftest.$ac_objext; then
5232  ac_header_compiler=yes
5233else
5234  $as_echo "$as_me: failed program was:" >&5
5235sed 's/^/| /' conftest.$ac_ext >&5
5236
5237	ac_header_compiler=no
5238fi
5239
5240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5241{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5242$as_echo "$ac_header_compiler" >&6; }
5243
5244# Is the header present?
5245{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5246$as_echo_n "checking $ac_header presence... " >&6; }
5247cat >conftest.$ac_ext <<_ACEOF
5248/* confdefs.h.  */
5249_ACEOF
5250cat confdefs.h >>conftest.$ac_ext
5251cat >>conftest.$ac_ext <<_ACEOF
5252/* end confdefs.h.  */
5253#include <$ac_header>
5254_ACEOF
5255if { (ac_try="$ac_cpp conftest.$ac_ext"
5256case "(($ac_try" in
5257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258  *) ac_try_echo=$ac_try;;
5259esac
5260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5261$as_echo "$ac_try_echo") >&5
5262  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5263  ac_status=$?
5264  grep -v '^ *+' conftest.er1 >conftest.err
5265  rm -f conftest.er1
5266  cat conftest.err >&5
5267  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268  (exit $ac_status); } >/dev/null && {
5269	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5270	 test ! -s conftest.err
5271       }; then
5272  ac_header_preproc=yes
5273else
5274  $as_echo "$as_me: failed program was:" >&5
5275sed 's/^/| /' conftest.$ac_ext >&5
5276
5277  ac_header_preproc=no
5278fi
5279
5280rm -f conftest.err conftest.$ac_ext
5281{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5282$as_echo "$ac_header_preproc" >&6; }
5283
5284# So?  What about this header?
5285case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5286  yes:no: )
5287    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5288$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5289    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5290$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5291    ac_header_preproc=yes
5292    ;;
5293  no:yes:* )
5294    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5295$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5296    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5297$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5298    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5299$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5300    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5301$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5302    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5303$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5304    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5305$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5306    ( cat <<\_ASBOX
5307## ---------------------------------------------------------------------- ##
5308## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5309## ---------------------------------------------------------------------- ##
5310_ASBOX
5311     ) | sed "s/^/$as_me: WARNING:     /" >&2
5312    ;;
5313esac
5314{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5315$as_echo_n "checking for $ac_header... " >&6; }
5316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5317  $as_echo_n "(cached) " >&6
5318else
5319  eval "$as_ac_Header=\$ac_header_preproc"
5320fi
5321ac_res=`eval 'as_val=${'$as_ac_Header'}
5322		 $as_echo "$as_val"'`
5323	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5324$as_echo "$ac_res" >&6; }
5325
5326fi
5327as_val=`eval 'as_val=${'$as_ac_Header'}
5328		 $as_echo "$as_val"'`
5329   if test "x$as_val" = x""yes; then
5330  cat >>confdefs.h <<_ACEOF
5331#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5332_ACEOF
5333
5334fi
5335
5336done
5337
5338ac_ext=cpp
5339ac_cpp='$CXXCPP $CPPFLAGS'
5340ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5341ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5342ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5343if test -z "$CXX"; then
5344  if test -n "$CCC"; then
5345    CXX=$CCC
5346  else
5347    if test -n "$ac_tool_prefix"; then
5348  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5349  do
5350    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5351set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5352{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5353$as_echo_n "checking for $ac_word... " >&6; }
5354if test "${ac_cv_prog_CXX+set}" = set; then
5355  $as_echo_n "(cached) " >&6
5356else
5357  if test -n "$CXX"; then
5358  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5359else
5360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361for as_dir in $PATH
5362do
5363  IFS=$as_save_IFS
5364  test -z "$as_dir" && as_dir=.
5365  for ac_exec_ext in '' $ac_executable_extensions; do
5366  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5367    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5368    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5369    break 2
5370  fi
5371done
5372done
5373IFS=$as_save_IFS
5374
5375fi
5376fi
5377CXX=$ac_cv_prog_CXX
5378if test -n "$CXX"; then
5379  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5380$as_echo "$CXX" >&6; }
5381else
5382  { $as_echo "$as_me:$LINENO: result: no" >&5
5383$as_echo "no" >&6; }
5384fi
5385
5386
5387    test -n "$CXX" && break
5388  done
5389fi
5390if test -z "$CXX"; then
5391  ac_ct_CXX=$CXX
5392  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5393do
5394  # Extract the first word of "$ac_prog", so it can be a program name with args.
5395set dummy $ac_prog; ac_word=$2
5396{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5397$as_echo_n "checking for $ac_word... " >&6; }
5398if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5399  $as_echo_n "(cached) " >&6
5400else
5401  if test -n "$ac_ct_CXX"; then
5402  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5403else
5404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405for as_dir in $PATH
5406do
5407  IFS=$as_save_IFS
5408  test -z "$as_dir" && as_dir=.
5409  for ac_exec_ext in '' $ac_executable_extensions; do
5410  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5411    ac_cv_prog_ac_ct_CXX="$ac_prog"
5412    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5413    break 2
5414  fi
5415done
5416done
5417IFS=$as_save_IFS
5418
5419fi
5420fi
5421ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5422if test -n "$ac_ct_CXX"; then
5423  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5424$as_echo "$ac_ct_CXX" >&6; }
5425else
5426  { $as_echo "$as_me:$LINENO: result: no" >&5
5427$as_echo "no" >&6; }
5428fi
5429
5430
5431  test -n "$ac_ct_CXX" && break
5432done
5433
5434  if test "x$ac_ct_CXX" = x; then
5435    CXX="g++"
5436  else
5437    case $cross_compiling:$ac_tool_warned in
5438yes:)
5439{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5440$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5441ac_tool_warned=yes ;;
5442esac
5443    CXX=$ac_ct_CXX
5444  fi
5445fi
5446
5447  fi
5448fi
5449# Provide some information about the compiler.
5450$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5451set X $ac_compile
5452ac_compiler=$2
5453{ (ac_try="$ac_compiler --version >&5"
5454case "(($ac_try" in
5455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456  *) ac_try_echo=$ac_try;;
5457esac
5458eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5459$as_echo "$ac_try_echo") >&5
5460  (eval "$ac_compiler --version >&5") 2>&5
5461  ac_status=$?
5462  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463  (exit $ac_status); }
5464{ (ac_try="$ac_compiler -v >&5"
5465case "(($ac_try" in
5466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467  *) ac_try_echo=$ac_try;;
5468esac
5469eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5470$as_echo "$ac_try_echo") >&5
5471  (eval "$ac_compiler -v >&5") 2>&5
5472  ac_status=$?
5473  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474  (exit $ac_status); }
5475{ (ac_try="$ac_compiler -V >&5"
5476case "(($ac_try" in
5477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5478  *) ac_try_echo=$ac_try;;
5479esac
5480eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5481$as_echo "$ac_try_echo") >&5
5482  (eval "$ac_compiler -V >&5") 2>&5
5483  ac_status=$?
5484  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485  (exit $ac_status); }
5486
5487{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5488$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5489if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5490  $as_echo_n "(cached) " >&6
5491else
5492  cat >conftest.$ac_ext <<_ACEOF
5493/* confdefs.h.  */
5494_ACEOF
5495cat confdefs.h >>conftest.$ac_ext
5496cat >>conftest.$ac_ext <<_ACEOF
5497/* end confdefs.h.  */
5498
5499int
5500main ()
5501{
5502#ifndef __GNUC__
5503       choke me
5504#endif
5505
5506  ;
5507  return 0;
5508}
5509_ACEOF
5510rm -f conftest.$ac_objext
5511if { (ac_try="$ac_compile"
5512case "(($ac_try" in
5513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514  *) ac_try_echo=$ac_try;;
5515esac
5516eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5517$as_echo "$ac_try_echo") >&5
5518  (eval "$ac_compile") 2>conftest.er1
5519  ac_status=$?
5520  grep -v '^ *+' conftest.er1 >conftest.err
5521  rm -f conftest.er1
5522  cat conftest.err >&5
5523  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524  (exit $ac_status); } && {
5525	 test -z "$ac_cxx_werror_flag" ||
5526	 test ! -s conftest.err
5527       } && test -s conftest.$ac_objext; then
5528  ac_compiler_gnu=yes
5529else
5530  $as_echo "$as_me: failed program was:" >&5
5531sed 's/^/| /' conftest.$ac_ext >&5
5532
5533	ac_compiler_gnu=no
5534fi
5535
5536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5538
5539fi
5540{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5541$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5542if test $ac_compiler_gnu = yes; then
5543  GXX=yes
5544else
5545  GXX=
5546fi
5547ac_test_CXXFLAGS=${CXXFLAGS+set}
5548ac_save_CXXFLAGS=$CXXFLAGS
5549{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5550$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5551if test "${ac_cv_prog_cxx_g+set}" = set; then
5552  $as_echo_n "(cached) " >&6
5553else
5554  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5555   ac_cxx_werror_flag=yes
5556   ac_cv_prog_cxx_g=no
5557   CXXFLAGS="-g"
5558   cat >conftest.$ac_ext <<_ACEOF
5559/* confdefs.h.  */
5560_ACEOF
5561cat confdefs.h >>conftest.$ac_ext
5562cat >>conftest.$ac_ext <<_ACEOF
5563/* end confdefs.h.  */
5564
5565int
5566main ()
5567{
5568
5569  ;
5570  return 0;
5571}
5572_ACEOF
5573rm -f conftest.$ac_objext
5574if { (ac_try="$ac_compile"
5575case "(($ac_try" in
5576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577  *) ac_try_echo=$ac_try;;
5578esac
5579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5580$as_echo "$ac_try_echo") >&5
5581  (eval "$ac_compile") 2>conftest.er1
5582  ac_status=$?
5583  grep -v '^ *+' conftest.er1 >conftest.err
5584  rm -f conftest.er1
5585  cat conftest.err >&5
5586  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587  (exit $ac_status); } && {
5588	 test -z "$ac_cxx_werror_flag" ||
5589	 test ! -s conftest.err
5590       } && test -s conftest.$ac_objext; then
5591  ac_cv_prog_cxx_g=yes
5592else
5593  $as_echo "$as_me: failed program was:" >&5
5594sed 's/^/| /' conftest.$ac_ext >&5
5595
5596	CXXFLAGS=""
5597      cat >conftest.$ac_ext <<_ACEOF
5598/* confdefs.h.  */
5599_ACEOF
5600cat confdefs.h >>conftest.$ac_ext
5601cat >>conftest.$ac_ext <<_ACEOF
5602/* end confdefs.h.  */
5603
5604int
5605main ()
5606{
5607
5608  ;
5609  return 0;
5610}
5611_ACEOF
5612rm -f conftest.$ac_objext
5613if { (ac_try="$ac_compile"
5614case "(($ac_try" in
5615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616  *) ac_try_echo=$ac_try;;
5617esac
5618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5619$as_echo "$ac_try_echo") >&5
5620  (eval "$ac_compile") 2>conftest.er1
5621  ac_status=$?
5622  grep -v '^ *+' conftest.er1 >conftest.err
5623  rm -f conftest.er1
5624  cat conftest.err >&5
5625  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626  (exit $ac_status); } && {
5627	 test -z "$ac_cxx_werror_flag" ||
5628	 test ! -s conftest.err
5629       } && test -s conftest.$ac_objext; then
5630  :
5631else
5632  $as_echo "$as_me: failed program was:" >&5
5633sed 's/^/| /' conftest.$ac_ext >&5
5634
5635	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5636	 CXXFLAGS="-g"
5637	 cat >conftest.$ac_ext <<_ACEOF
5638/* confdefs.h.  */
5639_ACEOF
5640cat confdefs.h >>conftest.$ac_ext
5641cat >>conftest.$ac_ext <<_ACEOF
5642/* end confdefs.h.  */
5643
5644int
5645main ()
5646{
5647
5648  ;
5649  return 0;
5650}
5651_ACEOF
5652rm -f conftest.$ac_objext
5653if { (ac_try="$ac_compile"
5654case "(($ac_try" in
5655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656  *) ac_try_echo=$ac_try;;
5657esac
5658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5659$as_echo "$ac_try_echo") >&5
5660  (eval "$ac_compile") 2>conftest.er1
5661  ac_status=$?
5662  grep -v '^ *+' conftest.er1 >conftest.err
5663  rm -f conftest.er1
5664  cat conftest.err >&5
5665  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666  (exit $ac_status); } && {
5667	 test -z "$ac_cxx_werror_flag" ||
5668	 test ! -s conftest.err
5669       } && test -s conftest.$ac_objext; then
5670  ac_cv_prog_cxx_g=yes
5671else
5672  $as_echo "$as_me: failed program was:" >&5
5673sed 's/^/| /' conftest.$ac_ext >&5
5674
5675
5676fi
5677
5678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679fi
5680
5681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682fi
5683
5684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5685   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5686fi
5687{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5688$as_echo "$ac_cv_prog_cxx_g" >&6; }
5689if test "$ac_test_CXXFLAGS" = set; then
5690  CXXFLAGS=$ac_save_CXXFLAGS
5691elif test $ac_cv_prog_cxx_g = yes; then
5692  if test "$GXX" = yes; then
5693    CXXFLAGS="-g -O2"
5694  else
5695    CXXFLAGS="-g"
5696  fi
5697else
5698  if test "$GXX" = yes; then
5699    CXXFLAGS="-O2"
5700  else
5701    CXXFLAGS=
5702  fi
5703fi
5704ac_ext=cpp
5705ac_cpp='$CXXCPP $CPPFLAGS'
5706ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5707ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5708ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5709
5710depcc="$CXX"  am_compiler_list=
5711
5712{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5713$as_echo_n "checking dependency style of $depcc... " >&6; }
5714if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5715  $as_echo_n "(cached) " >&6
5716else
5717  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5718  # We make a subdir and do the tests there.  Otherwise we can end up
5719  # making bogus files that we don't know about and never remove.  For
5720  # instance it was reported that on HP-UX the gcc test will end up
5721  # making a dummy file named `D' -- because `-MD' means `put the output
5722  # in D'.
5723  mkdir conftest.dir
5724  # Copy depcomp to subdir because otherwise we won't find it if we're
5725  # using a relative directory.
5726  cp "$am_depcomp" conftest.dir
5727  cd conftest.dir
5728  # We will build objects and dependencies in a subdirectory because
5729  # it helps to detect inapplicable dependency modes.  For instance
5730  # both Tru64's cc and ICC support -MD to output dependencies as a
5731  # side effect of compilation, but ICC will put the dependencies in
5732  # the current directory while Tru64 will put them in the object
5733  # directory.
5734  mkdir sub
5735
5736  am_cv_CXX_dependencies_compiler_type=none
5737  if test "$am_compiler_list" = ""; then
5738     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5739  fi
5740  for depmode in $am_compiler_list; do
5741    # Setup a source with many dependencies, because some compilers
5742    # like to wrap large dependency lists on column 80 (with \), and
5743    # we should not choose a depcomp mode which is confused by this.
5744    #
5745    # We need to recreate these files for each test, as the compiler may
5746    # overwrite some of them when testing with obscure command lines.
5747    # This happens at least with the AIX C compiler.
5748    : > sub/conftest.c
5749    for i in 1 2 3 4 5 6; do
5750      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5751      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5752      # Solaris 8's {/usr,}/bin/sh.
5753      touch sub/conftst$i.h
5754    done
5755    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5756
5757    case $depmode in
5758    nosideeffect)
5759      # after this tag, mechanisms are not by side-effect, so they'll
5760      # only be used when explicitly requested
5761      if test "x$enable_dependency_tracking" = xyes; then
5762	continue
5763      else
5764	break
5765      fi
5766      ;;
5767    none) break ;;
5768    esac
5769    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5770    # mode.  It turns out that the SunPro C++ compiler does not properly
5771    # handle `-M -o', and we need to detect this.
5772    if depmode=$depmode \
5773       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5774       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5775       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5776         >/dev/null 2>conftest.err &&
5777       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5778       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5779       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5780       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5781      # icc doesn't choke on unknown options, it will just issue warnings
5782      # or remarks (even with -Werror).  So we grep stderr for any message
5783      # that says an option was ignored or not supported.
5784      # When given -MP, icc 7.0 and 7.1 complain thusly:
5785      #   icc: Command line warning: ignoring option '-M'; no argument required
5786      # The diagnosis changed in icc 8.0:
5787      #   icc: Command line remark: option '-MP' not supported
5788      if (grep 'ignoring option' conftest.err ||
5789          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5790        am_cv_CXX_dependencies_compiler_type=$depmode
5791        break
5792      fi
5793    fi
5794  done
5795
5796  cd ..
5797  rm -rf conftest.dir
5798else
5799  am_cv_CXX_dependencies_compiler_type=none
5800fi
5801
5802fi
5803{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5804$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5805CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5806
5807 if
5808  test "x$enable_dependency_tracking" != xno \
5809  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5810  am__fastdepCXX_TRUE=
5811  am__fastdepCXX_FALSE='#'
5812else
5813  am__fastdepCXX_TRUE='#'
5814  am__fastdepCXX_FALSE=
5815fi
5816
5817
5818
5819
5820if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5821    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5822    (test "X$CXX" != "Xg++"))) ; then
5823  ac_ext=cpp
5824ac_cpp='$CXXCPP $CPPFLAGS'
5825ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5826ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5827ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5828{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5829$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5830if test -z "$CXXCPP"; then
5831  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5832  $as_echo_n "(cached) " >&6
5833else
5834      # Double quotes because CXXCPP needs to be expanded
5835    for CXXCPP in "$CXX -E" "/lib/cpp"
5836    do
5837      ac_preproc_ok=false
5838for ac_cxx_preproc_warn_flag in '' yes
5839do
5840  # Use a header file that comes with gcc, so configuring glibc
5841  # with a fresh cross-compiler works.
5842  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5843  # <limits.h> exists even on freestanding compilers.
5844  # On the NeXT, cc -E runs the code through the compiler's parser,
5845  # not just through cpp. "Syntax error" is here to catch this case.
5846  cat >conftest.$ac_ext <<_ACEOF
5847/* confdefs.h.  */
5848_ACEOF
5849cat confdefs.h >>conftest.$ac_ext
5850cat >>conftest.$ac_ext <<_ACEOF
5851/* end confdefs.h.  */
5852#ifdef __STDC__
5853# include <limits.h>
5854#else
5855# include <assert.h>
5856#endif
5857		     Syntax error
5858_ACEOF
5859if { (ac_try="$ac_cpp conftest.$ac_ext"
5860case "(($ac_try" in
5861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862  *) ac_try_echo=$ac_try;;
5863esac
5864eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5865$as_echo "$ac_try_echo") >&5
5866  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5867  ac_status=$?
5868  grep -v '^ *+' conftest.er1 >conftest.err
5869  rm -f conftest.er1
5870  cat conftest.err >&5
5871  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872  (exit $ac_status); } >/dev/null && {
5873	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5874	 test ! -s conftest.err
5875       }; then
5876  :
5877else
5878  $as_echo "$as_me: failed program was:" >&5
5879sed 's/^/| /' conftest.$ac_ext >&5
5880
5881  # Broken: fails on valid input.
5882continue
5883fi
5884
5885rm -f conftest.err conftest.$ac_ext
5886
5887  # OK, works on sane cases.  Now check whether nonexistent headers
5888  # can be detected and how.
5889  cat >conftest.$ac_ext <<_ACEOF
5890/* confdefs.h.  */
5891_ACEOF
5892cat confdefs.h >>conftest.$ac_ext
5893cat >>conftest.$ac_ext <<_ACEOF
5894/* end confdefs.h.  */
5895#include <ac_nonexistent.h>
5896_ACEOF
5897if { (ac_try="$ac_cpp conftest.$ac_ext"
5898case "(($ac_try" in
5899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5900  *) ac_try_echo=$ac_try;;
5901esac
5902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5903$as_echo "$ac_try_echo") >&5
5904  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5905  ac_status=$?
5906  grep -v '^ *+' conftest.er1 >conftest.err
5907  rm -f conftest.er1
5908  cat conftest.err >&5
5909  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910  (exit $ac_status); } >/dev/null && {
5911	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5912	 test ! -s conftest.err
5913       }; then
5914  # Broken: success on invalid input.
5915continue
5916else
5917  $as_echo "$as_me: failed program was:" >&5
5918sed 's/^/| /' conftest.$ac_ext >&5
5919
5920  # Passes both tests.
5921ac_preproc_ok=:
5922break
5923fi
5924
5925rm -f conftest.err conftest.$ac_ext
5926
5927done
5928# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5929rm -f conftest.err conftest.$ac_ext
5930if $ac_preproc_ok; then
5931  break
5932fi
5933
5934    done
5935    ac_cv_prog_CXXCPP=$CXXCPP
5936
5937fi
5938  CXXCPP=$ac_cv_prog_CXXCPP
5939else
5940  ac_cv_prog_CXXCPP=$CXXCPP
5941fi
5942{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5943$as_echo "$CXXCPP" >&6; }
5944ac_preproc_ok=false
5945for ac_cxx_preproc_warn_flag in '' yes
5946do
5947  # Use a header file that comes with gcc, so configuring glibc
5948  # with a fresh cross-compiler works.
5949  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5950  # <limits.h> exists even on freestanding compilers.
5951  # On the NeXT, cc -E runs the code through the compiler's parser,
5952  # not just through cpp. "Syntax error" is here to catch this case.
5953  cat >conftest.$ac_ext <<_ACEOF
5954/* confdefs.h.  */
5955_ACEOF
5956cat confdefs.h >>conftest.$ac_ext
5957cat >>conftest.$ac_ext <<_ACEOF
5958/* end confdefs.h.  */
5959#ifdef __STDC__
5960# include <limits.h>
5961#else
5962# include <assert.h>
5963#endif
5964		     Syntax error
5965_ACEOF
5966if { (ac_try="$ac_cpp conftest.$ac_ext"
5967case "(($ac_try" in
5968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969  *) ac_try_echo=$ac_try;;
5970esac
5971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5972$as_echo "$ac_try_echo") >&5
5973  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5974  ac_status=$?
5975  grep -v '^ *+' conftest.er1 >conftest.err
5976  rm -f conftest.er1
5977  cat conftest.err >&5
5978  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979  (exit $ac_status); } >/dev/null && {
5980	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5981	 test ! -s conftest.err
5982       }; then
5983  :
5984else
5985  $as_echo "$as_me: failed program was:" >&5
5986sed 's/^/| /' conftest.$ac_ext >&5
5987
5988  # Broken: fails on valid input.
5989continue
5990fi
5991
5992rm -f conftest.err conftest.$ac_ext
5993
5994  # OK, works on sane cases.  Now check whether nonexistent headers
5995  # can be detected and how.
5996  cat >conftest.$ac_ext <<_ACEOF
5997/* confdefs.h.  */
5998_ACEOF
5999cat confdefs.h >>conftest.$ac_ext
6000cat >>conftest.$ac_ext <<_ACEOF
6001/* end confdefs.h.  */
6002#include <ac_nonexistent.h>
6003_ACEOF
6004if { (ac_try="$ac_cpp conftest.$ac_ext"
6005case "(($ac_try" in
6006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007  *) ac_try_echo=$ac_try;;
6008esac
6009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6010$as_echo "$ac_try_echo") >&5
6011  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6012  ac_status=$?
6013  grep -v '^ *+' conftest.er1 >conftest.err
6014  rm -f conftest.er1
6015  cat conftest.err >&5
6016  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017  (exit $ac_status); } >/dev/null && {
6018	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6019	 test ! -s conftest.err
6020       }; then
6021  # Broken: success on invalid input.
6022continue
6023else
6024  $as_echo "$as_me: failed program was:" >&5
6025sed 's/^/| /' conftest.$ac_ext >&5
6026
6027  # Passes both tests.
6028ac_preproc_ok=:
6029break
6030fi
6031
6032rm -f conftest.err conftest.$ac_ext
6033
6034done
6035# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6036rm -f conftest.err conftest.$ac_ext
6037if $ac_preproc_ok; then
6038  :
6039else
6040  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6042{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6043See \`config.log' for more details." >&5
6044$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6045See \`config.log' for more details." >&2;}
6046   { (exit 1); exit 1; }; }; }
6047fi
6048
6049ac_ext=cpp
6050ac_cpp='$CXXCPP $CPPFLAGS'
6051ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6052ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6053ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6054
6055fi
6056
6057
6058ac_ext=f
6059ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6060ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6061ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6062if test -n "$ac_tool_prefix"; then
6063  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
6064  do
6065    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6066set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6067{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6068$as_echo_n "checking for $ac_word... " >&6; }
6069if test "${ac_cv_prog_F77+set}" = set; then
6070  $as_echo_n "(cached) " >&6
6071else
6072  if test -n "$F77"; then
6073  ac_cv_prog_F77="$F77" # Let the user override the test.
6074else
6075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076for as_dir in $PATH
6077do
6078  IFS=$as_save_IFS
6079  test -z "$as_dir" && as_dir=.
6080  for ac_exec_ext in '' $ac_executable_extensions; do
6081  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6082    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6083    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6084    break 2
6085  fi
6086done
6087done
6088IFS=$as_save_IFS
6089
6090fi
6091fi
6092F77=$ac_cv_prog_F77
6093if test -n "$F77"; then
6094  { $as_echo "$as_me:$LINENO: result: $F77" >&5
6095$as_echo "$F77" >&6; }
6096else
6097  { $as_echo "$as_me:$LINENO: result: no" >&5
6098$as_echo "no" >&6; }
6099fi
6100
6101
6102    test -n "$F77" && break
6103  done
6104fi
6105if test -z "$F77"; then
6106  ac_ct_F77=$F77
6107  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
6108do
6109  # Extract the first word of "$ac_prog", so it can be a program name with args.
6110set dummy $ac_prog; ac_word=$2
6111{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6112$as_echo_n "checking for $ac_word... " >&6; }
6113if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6114  $as_echo_n "(cached) " >&6
6115else
6116  if test -n "$ac_ct_F77"; then
6117  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6118else
6119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120for as_dir in $PATH
6121do
6122  IFS=$as_save_IFS
6123  test -z "$as_dir" && as_dir=.
6124  for ac_exec_ext in '' $ac_executable_extensions; do
6125  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6126    ac_cv_prog_ac_ct_F77="$ac_prog"
6127    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6128    break 2
6129  fi
6130done
6131done
6132IFS=$as_save_IFS
6133
6134fi
6135fi
6136ac_ct_F77=$ac_cv_prog_ac_ct_F77
6137if test -n "$ac_ct_F77"; then
6138  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6139$as_echo "$ac_ct_F77" >&6; }
6140else
6141  { $as_echo "$as_me:$LINENO: result: no" >&5
6142$as_echo "no" >&6; }
6143fi
6144
6145
6146  test -n "$ac_ct_F77" && break
6147done
6148
6149  if test "x$ac_ct_F77" = x; then
6150    F77=""
6151  else
6152    case $cross_compiling:$ac_tool_warned in
6153yes:)
6154{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6156ac_tool_warned=yes ;;
6157esac
6158    F77=$ac_ct_F77
6159  fi
6160fi
6161
6162
6163# Provide some information about the compiler.
6164$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6165set X $ac_compile
6166ac_compiler=$2
6167{ (ac_try="$ac_compiler --version >&5"
6168case "(($ac_try" in
6169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170  *) ac_try_echo=$ac_try;;
6171esac
6172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6173$as_echo "$ac_try_echo") >&5
6174  (eval "$ac_compiler --version >&5") 2>&5
6175  ac_status=$?
6176  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177  (exit $ac_status); }
6178{ (ac_try="$ac_compiler -v >&5"
6179case "(($ac_try" in
6180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6181  *) ac_try_echo=$ac_try;;
6182esac
6183eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6184$as_echo "$ac_try_echo") >&5
6185  (eval "$ac_compiler -v >&5") 2>&5
6186  ac_status=$?
6187  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188  (exit $ac_status); }
6189{ (ac_try="$ac_compiler -V >&5"
6190case "(($ac_try" in
6191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192  *) ac_try_echo=$ac_try;;
6193esac
6194eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6195$as_echo "$ac_try_echo") >&5
6196  (eval "$ac_compiler -V >&5") 2>&5
6197  ac_status=$?
6198  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199  (exit $ac_status); }
6200rm -f a.out
6201
6202# If we don't use `.F' as extension, the preprocessor is not run on the
6203# input file.  (Note that this only needs to work for GNU compilers.)
6204ac_save_ext=$ac_ext
6205ac_ext=F
6206{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6207$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6208if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6209  $as_echo_n "(cached) " >&6
6210else
6211  cat >conftest.$ac_ext <<_ACEOF
6212      program main
6213#ifndef __GNUC__
6214       choke me
6215#endif
6216
6217      end
6218_ACEOF
6219rm -f conftest.$ac_objext
6220if { (ac_try="$ac_compile"
6221case "(($ac_try" in
6222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6223  *) ac_try_echo=$ac_try;;
6224esac
6225eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6226$as_echo "$ac_try_echo") >&5
6227  (eval "$ac_compile") 2>conftest.er1
6228  ac_status=$?
6229  grep -v '^ *+' conftest.er1 >conftest.err
6230  rm -f conftest.er1
6231  cat conftest.err >&5
6232  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233  (exit $ac_status); } && {
6234	 test -z "$ac_f77_werror_flag" ||
6235	 test ! -s conftest.err
6236       } && test -s conftest.$ac_objext; then
6237  ac_compiler_gnu=yes
6238else
6239  $as_echo "$as_me: failed program was:" >&5
6240sed 's/^/| /' conftest.$ac_ext >&5
6241
6242	ac_compiler_gnu=no
6243fi
6244
6245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6246ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6247
6248fi
6249{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6250$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6251ac_ext=$ac_save_ext
6252ac_test_FFLAGS=${FFLAGS+set}
6253ac_save_FFLAGS=$FFLAGS
6254FFLAGS=
6255{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6256$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6257if test "${ac_cv_prog_f77_g+set}" = set; then
6258  $as_echo_n "(cached) " >&6
6259else
6260  FFLAGS=-g
6261cat >conftest.$ac_ext <<_ACEOF
6262      program main
6263
6264      end
6265_ACEOF
6266rm -f conftest.$ac_objext
6267if { (ac_try="$ac_compile"
6268case "(($ac_try" in
6269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270  *) ac_try_echo=$ac_try;;
6271esac
6272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6273$as_echo "$ac_try_echo") >&5
6274  (eval "$ac_compile") 2>conftest.er1
6275  ac_status=$?
6276  grep -v '^ *+' conftest.er1 >conftest.err
6277  rm -f conftest.er1
6278  cat conftest.err >&5
6279  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280  (exit $ac_status); } && {
6281	 test -z "$ac_f77_werror_flag" ||
6282	 test ! -s conftest.err
6283       } && test -s conftest.$ac_objext; then
6284  ac_cv_prog_f77_g=yes
6285else
6286  $as_echo "$as_me: failed program was:" >&5
6287sed 's/^/| /' conftest.$ac_ext >&5
6288
6289	ac_cv_prog_f77_g=no
6290fi
6291
6292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6293
6294fi
6295{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6296$as_echo "$ac_cv_prog_f77_g" >&6; }
6297if test "$ac_test_FFLAGS" = set; then
6298  FFLAGS=$ac_save_FFLAGS
6299elif test $ac_cv_prog_f77_g = yes; then
6300  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6301    FFLAGS="-g -O2"
6302  else
6303    FFLAGS="-g"
6304  fi
6305else
6306  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6307    FFLAGS="-O2"
6308  else
6309    FFLAGS=
6310  fi
6311fi
6312
6313if test $ac_compiler_gnu = yes; then
6314  G77=yes
6315else
6316  G77=
6317fi
6318ac_ext=c
6319ac_cpp='$CPP $CPPFLAGS'
6320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6322ac_compiler_gnu=$ac_cv_c_compiler_gnu
6323
6324
6325
6326# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6327# find the maximum length of command line arguments
6328{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6329$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6330if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6331  $as_echo_n "(cached) " >&6
6332else
6333    i=0
6334  teststring="ABCD"
6335
6336  case $build_os in
6337  msdosdjgpp*)
6338    # On DJGPP, this test can blow up pretty badly due to problems in libc
6339    # (any single argument exceeding 2000 bytes causes a buffer overrun
6340    # during glob expansion).  Even if it were fixed, the result of this
6341    # check would be larger than it should be.
6342    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6343    ;;
6344
6345  gnu*)
6346    # Under GNU Hurd, this test is not required because there is
6347    # no limit to the length of command line arguments.
6348    # Libtool will interpret -1 as no limit whatsoever
6349    lt_cv_sys_max_cmd_len=-1;
6350    ;;
6351
6352  cygwin* | mingw*)
6353    # On Win9x/ME, this test blows up -- it succeeds, but takes
6354    # about 5 minutes as the teststring grows exponentially.
6355    # Worse, since 9x/ME are not pre-emptively multitasking,
6356    # you end up with a "frozen" computer, even though with patience
6357    # the test eventually succeeds (with a max line length of 256k).
6358    # Instead, let's just punt: use the minimum linelength reported by
6359    # all of the supported platforms: 8192 (on NT/2K/XP).
6360    lt_cv_sys_max_cmd_len=8192;
6361    ;;
6362
6363  amigaos*)
6364    # On AmigaOS with pdksh, this test takes hours, literally.
6365    # So we just punt and use a minimum line length of 8192.
6366    lt_cv_sys_max_cmd_len=8192;
6367    ;;
6368
6369  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6370    # This has been around since 386BSD, at least.  Likely further.
6371    if test -x /sbin/sysctl; then
6372      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6373    elif test -x /usr/sbin/sysctl; then
6374      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6375    else
6376      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6377    fi
6378    # And add a safety zone
6379    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6380    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6381    ;;
6382
6383  interix*)
6384    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6385    lt_cv_sys_max_cmd_len=196608
6386    ;;
6387
6388  osf*)
6389    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6390    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6391    # nice to cause kernel panics so lets avoid the loop below.
6392    # First set a reasonable default.
6393    lt_cv_sys_max_cmd_len=16384
6394    #
6395    if test -x /sbin/sysconfig; then
6396      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6397        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6398      esac
6399    fi
6400    ;;
6401  sco3.2v5*)
6402    lt_cv_sys_max_cmd_len=102400
6403    ;;
6404  sysv5* | sco5v6* | sysv4.2uw2*)
6405    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6406    if test -n "$kargmax"; then
6407      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6408    else
6409      lt_cv_sys_max_cmd_len=32768
6410    fi
6411    ;;
6412  *)
6413    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6414    if test -n "$lt_cv_sys_max_cmd_len"; then
6415      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6416      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6417    else
6418      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6419      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6420	       = "XX$teststring") >/dev/null 2>&1 &&
6421	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6422	      lt_cv_sys_max_cmd_len=$new_result &&
6423	      test $i != 17 # 1/2 MB should be enough
6424      do
6425        i=`expr $i + 1`
6426        teststring=$teststring$teststring
6427      done
6428      teststring=
6429      # Add a significant safety factor because C++ compilers can tack on massive
6430      # amounts of additional arguments before passing them to the linker.
6431      # It appears as though 1/2 is a usable value.
6432      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6433    fi
6434    ;;
6435  esac
6436
6437fi
6438
6439if test -n $lt_cv_sys_max_cmd_len ; then
6440  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6441$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6442else
6443  { $as_echo "$as_me:$LINENO: result: none" >&5
6444$as_echo "none" >&6; }
6445fi
6446
6447
6448
6449
6450
6451# Check for command to grab the raw symbol name followed by C symbol from nm.
6452{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6453$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6454if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6455  $as_echo_n "(cached) " >&6
6456else
6457
6458# These are sane defaults that work on at least a few old systems.
6459# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6460
6461# Character class describing NM global symbol codes.
6462symcode='[BCDEGRST]'
6463
6464# Regexp to match symbols that can be accessed directly from C.
6465sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6466
6467# Transform an extracted symbol line into a proper C declaration
6468lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6469
6470# Transform an extracted symbol line into symbol name and symbol address
6471lt_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'"
6472
6473# Define system-specific variables.
6474case $host_os in
6475aix*)
6476  symcode='[BCDT]'
6477  ;;
6478cygwin* | mingw* | pw32*)
6479  symcode='[ABCDGISTW]'
6480  ;;
6481hpux*) # Its linker distinguishes data from code symbols
6482  if test "$host_cpu" = ia64; then
6483    symcode='[ABCDEGRST]'
6484  fi
6485  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6486  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'"
6487  ;;
6488linux* | k*bsd*-gnu)
6489  if test "$host_cpu" = ia64; then
6490    symcode='[ABCDGIRSTW]'
6491    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6492    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'"
6493  fi
6494  ;;
6495irix* | nonstopux*)
6496  symcode='[BCDEGRST]'
6497  ;;
6498osf*)
6499  symcode='[BCDEGQRST]'
6500  ;;
6501solaris*)
6502  symcode='[BDRT]'
6503  ;;
6504sco3.2v5*)
6505  symcode='[DT]'
6506  ;;
6507sysv4.2uw2*)
6508  symcode='[DT]'
6509  ;;
6510sysv5* | sco5v6* | unixware* | OpenUNIX*)
6511  symcode='[ABDT]'
6512  ;;
6513sysv4)
6514  symcode='[DFNSTU]'
6515  ;;
6516esac
6517
6518# Handle CRLF in mingw tool chain
6519opt_cr=
6520case $build_os in
6521mingw*)
6522  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6523  ;;
6524esac
6525
6526# If we're using GNU nm, then use its standard symbol codes.
6527case `$NM -V 2>&1` in
6528*GNU* | *'with BFD'*)
6529  symcode='[ABCDGIRSTW]' ;;
6530esac
6531
6532# Try without a prefix undercore, then with it.
6533for ac_symprfx in "" "_"; do
6534
6535  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6536  symxfrm="\\1 $ac_symprfx\\2 \\2"
6537
6538  # Write the raw and C identifiers.
6539  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6540
6541  # Check to see that the pipe works correctly.
6542  pipe_works=no
6543
6544  rm -f conftest*
6545  cat > conftest.$ac_ext <<EOF
6546#ifdef __cplusplus
6547extern "C" {
6548#endif
6549char nm_test_var;
6550void nm_test_func(){}
6551#ifdef __cplusplus
6552}
6553#endif
6554int main(){nm_test_var='a';nm_test_func();return(0);}
6555EOF
6556
6557  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6558  (eval $ac_compile) 2>&5
6559  ac_status=$?
6560  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561  (exit $ac_status); }; then
6562    # Now try to grab the symbols.
6563    nlist=conftest.nm
6564    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6565  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6566  ac_status=$?
6567  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568  (exit $ac_status); } && test -s "$nlist"; then
6569      # Try sorting and uniquifying the output.
6570      if sort "$nlist" | uniq > "$nlist"T; then
6571	mv -f "$nlist"T "$nlist"
6572      else
6573	rm -f "$nlist"T
6574      fi
6575
6576      # Make sure that we snagged all the symbols we need.
6577      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6578	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6579	  cat <<EOF > conftest.$ac_ext
6580#ifdef __cplusplus
6581extern "C" {
6582#endif
6583
6584EOF
6585	  # Now generate the symbol file.
6586	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6587
6588	  cat <<EOF >> conftest.$ac_ext
6589#if defined (__STDC__) && __STDC__
6590# define lt_ptr_t void *
6591#else
6592# define lt_ptr_t char *
6593# define const
6594#endif
6595
6596/* The mapping between symbol names and symbols. */
6597const struct {
6598  const char *name;
6599  lt_ptr_t address;
6600}
6601lt_preloaded_symbols[] =
6602{
6603EOF
6604	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6605	  cat <<\EOF >> conftest.$ac_ext
6606  {0, (lt_ptr_t) 0}
6607};
6608
6609#ifdef __cplusplus
6610}
6611#endif
6612EOF
6613	  # Now try linking the two files.
6614	  mv conftest.$ac_objext conftstm.$ac_objext
6615	  lt_save_LIBS="$LIBS"
6616	  lt_save_CFLAGS="$CFLAGS"
6617	  LIBS="conftstm.$ac_objext"
6618	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6619	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6620  (eval $ac_link) 2>&5
6621  ac_status=$?
6622  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6624	    pipe_works=yes
6625	  fi
6626	  LIBS="$lt_save_LIBS"
6627	  CFLAGS="$lt_save_CFLAGS"
6628	else
6629	  echo "cannot find nm_test_func in $nlist" >&5
6630	fi
6631      else
6632	echo "cannot find nm_test_var in $nlist" >&5
6633      fi
6634    else
6635      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6636    fi
6637  else
6638    echo "$progname: failed program was:" >&5
6639    cat conftest.$ac_ext >&5
6640  fi
6641  rm -rf conftest* conftst*
6642
6643  # Do not use the global_symbol_pipe unless it works.
6644  if test "$pipe_works" = yes; then
6645    break
6646  else
6647    lt_cv_sys_global_symbol_pipe=
6648  fi
6649done
6650
6651fi
6652
6653if test -z "$lt_cv_sys_global_symbol_pipe"; then
6654  lt_cv_sys_global_symbol_to_cdecl=
6655fi
6656if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6657  { $as_echo "$as_me:$LINENO: result: failed" >&5
6658$as_echo "failed" >&6; }
6659else
6660  { $as_echo "$as_me:$LINENO: result: ok" >&5
6661$as_echo "ok" >&6; }
6662fi
6663
6664{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6665$as_echo_n "checking for objdir... " >&6; }
6666if test "${lt_cv_objdir+set}" = set; then
6667  $as_echo_n "(cached) " >&6
6668else
6669  rm -f .libs 2>/dev/null
6670mkdir .libs 2>/dev/null
6671if test -d .libs; then
6672  lt_cv_objdir=.libs
6673else
6674  # MS-DOS does not allow filenames that begin with a dot.
6675  lt_cv_objdir=_libs
6676fi
6677rmdir .libs 2>/dev/null
6678fi
6679{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6680$as_echo "$lt_cv_objdir" >&6; }
6681objdir=$lt_cv_objdir
6682
6683
6684
6685
6686
6687case $host_os in
6688aix3*)
6689  # AIX sometimes has problems with the GCC collect2 program.  For some
6690  # reason, if we set the COLLECT_NAMES environment variable, the problems
6691  # vanish in a puff of smoke.
6692  if test "X${COLLECT_NAMES+set}" != Xset; then
6693    COLLECT_NAMES=
6694    export COLLECT_NAMES
6695  fi
6696  ;;
6697esac
6698
6699# Sed substitution that helps us do robust quoting.  It backslashifies
6700# metacharacters that are still active within double-quoted strings.
6701Xsed='sed -e 1s/^X//'
6702sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6703
6704# Same as above, but do not quote variable references.
6705double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6706
6707# Sed substitution to delay expansion of an escaped shell variable in a
6708# double_quote_subst'ed string.
6709delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6710
6711# Sed substitution to avoid accidental globbing in evaled expressions
6712no_glob_subst='s/\*/\\\*/g'
6713
6714# Constants:
6715rm="rm -f"
6716
6717# Global variables:
6718default_ofile=libtool
6719can_build_shared=yes
6720
6721# All known linkers require a `.a' archive for static linking (except MSVC,
6722# which needs '.lib').
6723libext=a
6724ltmain="$ac_aux_dir/ltmain.sh"
6725ofile="$default_ofile"
6726with_gnu_ld="$lt_cv_prog_gnu_ld"
6727
6728if test -n "$ac_tool_prefix"; then
6729  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6730set dummy ${ac_tool_prefix}ar; ac_word=$2
6731{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6732$as_echo_n "checking for $ac_word... " >&6; }
6733if test "${ac_cv_prog_AR+set}" = set; then
6734  $as_echo_n "(cached) " >&6
6735else
6736  if test -n "$AR"; then
6737  ac_cv_prog_AR="$AR" # Let the user override the test.
6738else
6739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740for as_dir in $PATH
6741do
6742  IFS=$as_save_IFS
6743  test -z "$as_dir" && as_dir=.
6744  for ac_exec_ext in '' $ac_executable_extensions; do
6745  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6746    ac_cv_prog_AR="${ac_tool_prefix}ar"
6747    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748    break 2
6749  fi
6750done
6751done
6752IFS=$as_save_IFS
6753
6754fi
6755fi
6756AR=$ac_cv_prog_AR
6757if test -n "$AR"; then
6758  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6759$as_echo "$AR" >&6; }
6760else
6761  { $as_echo "$as_me:$LINENO: result: no" >&5
6762$as_echo "no" >&6; }
6763fi
6764
6765
6766fi
6767if test -z "$ac_cv_prog_AR"; then
6768  ac_ct_AR=$AR
6769  # Extract the first word of "ar", so it can be a program name with args.
6770set dummy ar; ac_word=$2
6771{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6772$as_echo_n "checking for $ac_word... " >&6; }
6773if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6774  $as_echo_n "(cached) " >&6
6775else
6776  if test -n "$ac_ct_AR"; then
6777  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6778else
6779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780for as_dir in $PATH
6781do
6782  IFS=$as_save_IFS
6783  test -z "$as_dir" && as_dir=.
6784  for ac_exec_ext in '' $ac_executable_extensions; do
6785  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6786    ac_cv_prog_ac_ct_AR="ar"
6787    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788    break 2
6789  fi
6790done
6791done
6792IFS=$as_save_IFS
6793
6794fi
6795fi
6796ac_ct_AR=$ac_cv_prog_ac_ct_AR
6797if test -n "$ac_ct_AR"; then
6798  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6799$as_echo "$ac_ct_AR" >&6; }
6800else
6801  { $as_echo "$as_me:$LINENO: result: no" >&5
6802$as_echo "no" >&6; }
6803fi
6804
6805  if test "x$ac_ct_AR" = x; then
6806    AR="false"
6807  else
6808    case $cross_compiling:$ac_tool_warned in
6809yes:)
6810{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6812ac_tool_warned=yes ;;
6813esac
6814    AR=$ac_ct_AR
6815  fi
6816else
6817  AR="$ac_cv_prog_AR"
6818fi
6819
6820if test -n "$ac_tool_prefix"; then
6821  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6822set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6823{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6824$as_echo_n "checking for $ac_word... " >&6; }
6825if test "${ac_cv_prog_RANLIB+set}" = set; then
6826  $as_echo_n "(cached) " >&6
6827else
6828  if test -n "$RANLIB"; then
6829  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6830else
6831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832for as_dir in $PATH
6833do
6834  IFS=$as_save_IFS
6835  test -z "$as_dir" && as_dir=.
6836  for ac_exec_ext in '' $ac_executable_extensions; do
6837  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6838    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6839    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6840    break 2
6841  fi
6842done
6843done
6844IFS=$as_save_IFS
6845
6846fi
6847fi
6848RANLIB=$ac_cv_prog_RANLIB
6849if test -n "$RANLIB"; then
6850  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6851$as_echo "$RANLIB" >&6; }
6852else
6853  { $as_echo "$as_me:$LINENO: result: no" >&5
6854$as_echo "no" >&6; }
6855fi
6856
6857
6858fi
6859if test -z "$ac_cv_prog_RANLIB"; then
6860  ac_ct_RANLIB=$RANLIB
6861  # Extract the first word of "ranlib", so it can be a program name with args.
6862set dummy ranlib; ac_word=$2
6863{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6864$as_echo_n "checking for $ac_word... " >&6; }
6865if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6866  $as_echo_n "(cached) " >&6
6867else
6868  if test -n "$ac_ct_RANLIB"; then
6869  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6870else
6871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872for as_dir in $PATH
6873do
6874  IFS=$as_save_IFS
6875  test -z "$as_dir" && as_dir=.
6876  for ac_exec_ext in '' $ac_executable_extensions; do
6877  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6878    ac_cv_prog_ac_ct_RANLIB="ranlib"
6879    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880    break 2
6881  fi
6882done
6883done
6884IFS=$as_save_IFS
6885
6886fi
6887fi
6888ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6889if test -n "$ac_ct_RANLIB"; then
6890  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6891$as_echo "$ac_ct_RANLIB" >&6; }
6892else
6893  { $as_echo "$as_me:$LINENO: result: no" >&5
6894$as_echo "no" >&6; }
6895fi
6896
6897  if test "x$ac_ct_RANLIB" = x; then
6898    RANLIB=":"
6899  else
6900    case $cross_compiling:$ac_tool_warned in
6901yes:)
6902{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6904ac_tool_warned=yes ;;
6905esac
6906    RANLIB=$ac_ct_RANLIB
6907  fi
6908else
6909  RANLIB="$ac_cv_prog_RANLIB"
6910fi
6911
6912if test -n "$ac_tool_prefix"; then
6913  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6914set dummy ${ac_tool_prefix}strip; ac_word=$2
6915{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6916$as_echo_n "checking for $ac_word... " >&6; }
6917if test "${ac_cv_prog_STRIP+set}" = set; then
6918  $as_echo_n "(cached) " >&6
6919else
6920  if test -n "$STRIP"; then
6921  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6922else
6923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924for as_dir in $PATH
6925do
6926  IFS=$as_save_IFS
6927  test -z "$as_dir" && as_dir=.
6928  for ac_exec_ext in '' $ac_executable_extensions; do
6929  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6930    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6931    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932    break 2
6933  fi
6934done
6935done
6936IFS=$as_save_IFS
6937
6938fi
6939fi
6940STRIP=$ac_cv_prog_STRIP
6941if test -n "$STRIP"; then
6942  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6943$as_echo "$STRIP" >&6; }
6944else
6945  { $as_echo "$as_me:$LINENO: result: no" >&5
6946$as_echo "no" >&6; }
6947fi
6948
6949
6950fi
6951if test -z "$ac_cv_prog_STRIP"; then
6952  ac_ct_STRIP=$STRIP
6953  # Extract the first word of "strip", so it can be a program name with args.
6954set dummy strip; ac_word=$2
6955{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6956$as_echo_n "checking for $ac_word... " >&6; }
6957if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6958  $as_echo_n "(cached) " >&6
6959else
6960  if test -n "$ac_ct_STRIP"; then
6961  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6962else
6963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964for as_dir in $PATH
6965do
6966  IFS=$as_save_IFS
6967  test -z "$as_dir" && as_dir=.
6968  for ac_exec_ext in '' $ac_executable_extensions; do
6969  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6970    ac_cv_prog_ac_ct_STRIP="strip"
6971    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6972    break 2
6973  fi
6974done
6975done
6976IFS=$as_save_IFS
6977
6978fi
6979fi
6980ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6981if test -n "$ac_ct_STRIP"; then
6982  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6983$as_echo "$ac_ct_STRIP" >&6; }
6984else
6985  { $as_echo "$as_me:$LINENO: result: no" >&5
6986$as_echo "no" >&6; }
6987fi
6988
6989  if test "x$ac_ct_STRIP" = x; then
6990    STRIP=":"
6991  else
6992    case $cross_compiling:$ac_tool_warned in
6993yes:)
6994{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6996ac_tool_warned=yes ;;
6997esac
6998    STRIP=$ac_ct_STRIP
6999  fi
7000else
7001  STRIP="$ac_cv_prog_STRIP"
7002fi
7003
7004
7005old_CC="$CC"
7006old_CFLAGS="$CFLAGS"
7007
7008# Set sane defaults for various variables
7009test -z "$AR" && AR=ar
7010test -z "$AR_FLAGS" && AR_FLAGS=cru
7011test -z "$AS" && AS=as
7012test -z "$CC" && CC=cc
7013test -z "$LTCC" && LTCC=$CC
7014test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7015test -z "$DLLTOOL" && DLLTOOL=dlltool
7016test -z "$LD" && LD=ld
7017test -z "$LN_S" && LN_S="ln -s"
7018test -z "$MAGIC_CMD" && MAGIC_CMD=file
7019test -z "$NM" && NM=nm
7020test -z "$SED" && SED=sed
7021test -z "$OBJDUMP" && OBJDUMP=objdump
7022test -z "$RANLIB" && RANLIB=:
7023test -z "$STRIP" && STRIP=:
7024test -z "$ac_objext" && ac_objext=o
7025
7026# Determine commands to create old-style static archives.
7027old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7028old_postinstall_cmds='chmod 644 $oldlib'
7029old_postuninstall_cmds=
7030
7031if test -n "$RANLIB"; then
7032  case $host_os in
7033  openbsd*)
7034    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7035    ;;
7036  *)
7037    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7038    ;;
7039  esac
7040  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7041fi
7042
7043for cc_temp in $compiler""; do
7044  case $cc_temp in
7045    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7046    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7047    \-*) ;;
7048    *) break;;
7049  esac
7050done
7051cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7052
7053
7054# Only perform the check for file, if the check method requires it
7055case $deplibs_check_method in
7056file_magic*)
7057  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7058    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7059$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7060if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7061  $as_echo_n "(cached) " >&6
7062else
7063  case $MAGIC_CMD in
7064[\\/*] |  ?:[\\/]*)
7065  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7066  ;;
7067*)
7068  lt_save_MAGIC_CMD="$MAGIC_CMD"
7069  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7070  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7071  for ac_dir in $ac_dummy; do
7072    IFS="$lt_save_ifs"
7073    test -z "$ac_dir" && ac_dir=.
7074    if test -f $ac_dir/${ac_tool_prefix}file; then
7075      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7076      if test -n "$file_magic_test_file"; then
7077	case $deplibs_check_method in
7078	"file_magic "*)
7079	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7080	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7081	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7082	    $EGREP "$file_magic_regex" > /dev/null; then
7083	    :
7084	  else
7085	    cat <<EOF 1>&2
7086
7087*** Warning: the command libtool uses to detect shared libraries,
7088*** $file_magic_cmd, produces output that libtool cannot recognize.
7089*** The result is that libtool may fail to recognize shared libraries
7090*** as such.  This will affect the creation of libtool libraries that
7091*** depend on shared libraries, but programs linked with such libtool
7092*** libraries will work regardless of this problem.  Nevertheless, you
7093*** may want to report the problem to your system manager and/or to
7094*** bug-libtool@gnu.org
7095
7096EOF
7097	  fi ;;
7098	esac
7099      fi
7100      break
7101    fi
7102  done
7103  IFS="$lt_save_ifs"
7104  MAGIC_CMD="$lt_save_MAGIC_CMD"
7105  ;;
7106esac
7107fi
7108
7109MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7110if test -n "$MAGIC_CMD"; then
7111  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7112$as_echo "$MAGIC_CMD" >&6; }
7113else
7114  { $as_echo "$as_me:$LINENO: result: no" >&5
7115$as_echo "no" >&6; }
7116fi
7117
7118if test -z "$lt_cv_path_MAGIC_CMD"; then
7119  if test -n "$ac_tool_prefix"; then
7120    { $as_echo "$as_me:$LINENO: checking for file" >&5
7121$as_echo_n "checking for file... " >&6; }
7122if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7123  $as_echo_n "(cached) " >&6
7124else
7125  case $MAGIC_CMD in
7126[\\/*] |  ?:[\\/]*)
7127  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7128  ;;
7129*)
7130  lt_save_MAGIC_CMD="$MAGIC_CMD"
7131  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7132  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7133  for ac_dir in $ac_dummy; do
7134    IFS="$lt_save_ifs"
7135    test -z "$ac_dir" && ac_dir=.
7136    if test -f $ac_dir/file; then
7137      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7138      if test -n "$file_magic_test_file"; then
7139	case $deplibs_check_method in
7140	"file_magic "*)
7141	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7142	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7143	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7144	    $EGREP "$file_magic_regex" > /dev/null; then
7145	    :
7146	  else
7147	    cat <<EOF 1>&2
7148
7149*** Warning: the command libtool uses to detect shared libraries,
7150*** $file_magic_cmd, produces output that libtool cannot recognize.
7151*** The result is that libtool may fail to recognize shared libraries
7152*** as such.  This will affect the creation of libtool libraries that
7153*** depend on shared libraries, but programs linked with such libtool
7154*** libraries will work regardless of this problem.  Nevertheless, you
7155*** may want to report the problem to your system manager and/or to
7156*** bug-libtool@gnu.org
7157
7158EOF
7159	  fi ;;
7160	esac
7161      fi
7162      break
7163    fi
7164  done
7165  IFS="$lt_save_ifs"
7166  MAGIC_CMD="$lt_save_MAGIC_CMD"
7167  ;;
7168esac
7169fi
7170
7171MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7172if test -n "$MAGIC_CMD"; then
7173  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7174$as_echo "$MAGIC_CMD" >&6; }
7175else
7176  { $as_echo "$as_me:$LINENO: result: no" >&5
7177$as_echo "no" >&6; }
7178fi
7179
7180  else
7181    MAGIC_CMD=:
7182  fi
7183fi
7184
7185  fi
7186  ;;
7187esac
7188
7189
7190  case $host_os in
7191    rhapsody* | darwin*)
7192    if test -n "$ac_tool_prefix"; then
7193  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7194set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7195{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7196$as_echo_n "checking for $ac_word... " >&6; }
7197if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7198  $as_echo_n "(cached) " >&6
7199else
7200  if test -n "$DSYMUTIL"; then
7201  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7202else
7203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204for as_dir in $PATH
7205do
7206  IFS=$as_save_IFS
7207  test -z "$as_dir" && as_dir=.
7208  for ac_exec_ext in '' $ac_executable_extensions; do
7209  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7210    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7211    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7212    break 2
7213  fi
7214done
7215done
7216IFS=$as_save_IFS
7217
7218fi
7219fi
7220DSYMUTIL=$ac_cv_prog_DSYMUTIL
7221if test -n "$DSYMUTIL"; then
7222  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7223$as_echo "$DSYMUTIL" >&6; }
7224else
7225  { $as_echo "$as_me:$LINENO: result: no" >&5
7226$as_echo "no" >&6; }
7227fi
7228
7229
7230fi
7231if test -z "$ac_cv_prog_DSYMUTIL"; then
7232  ac_ct_DSYMUTIL=$DSYMUTIL
7233  # Extract the first word of "dsymutil", so it can be a program name with args.
7234set dummy dsymutil; ac_word=$2
7235{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7236$as_echo_n "checking for $ac_word... " >&6; }
7237if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7238  $as_echo_n "(cached) " >&6
7239else
7240  if test -n "$ac_ct_DSYMUTIL"; then
7241  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7242else
7243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244for as_dir in $PATH
7245do
7246  IFS=$as_save_IFS
7247  test -z "$as_dir" && as_dir=.
7248  for ac_exec_ext in '' $ac_executable_extensions; do
7249  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7250    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7251    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7252    break 2
7253  fi
7254done
7255done
7256IFS=$as_save_IFS
7257
7258fi
7259fi
7260ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7261if test -n "$ac_ct_DSYMUTIL"; then
7262  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7263$as_echo "$ac_ct_DSYMUTIL" >&6; }
7264else
7265  { $as_echo "$as_me:$LINENO: result: no" >&5
7266$as_echo "no" >&6; }
7267fi
7268
7269  if test "x$ac_ct_DSYMUTIL" = x; then
7270    DSYMUTIL=":"
7271  else
7272    case $cross_compiling:$ac_tool_warned in
7273yes:)
7274{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7276ac_tool_warned=yes ;;
7277esac
7278    DSYMUTIL=$ac_ct_DSYMUTIL
7279  fi
7280else
7281  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7282fi
7283
7284    if test -n "$ac_tool_prefix"; then
7285  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7286set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7287{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7288$as_echo_n "checking for $ac_word... " >&6; }
7289if test "${ac_cv_prog_NMEDIT+set}" = set; then
7290  $as_echo_n "(cached) " >&6
7291else
7292  if test -n "$NMEDIT"; then
7293  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7294else
7295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296for as_dir in $PATH
7297do
7298  IFS=$as_save_IFS
7299  test -z "$as_dir" && as_dir=.
7300  for ac_exec_ext in '' $ac_executable_extensions; do
7301  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7302    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7303    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7304    break 2
7305  fi
7306done
7307done
7308IFS=$as_save_IFS
7309
7310fi
7311fi
7312NMEDIT=$ac_cv_prog_NMEDIT
7313if test -n "$NMEDIT"; then
7314  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7315$as_echo "$NMEDIT" >&6; }
7316else
7317  { $as_echo "$as_me:$LINENO: result: no" >&5
7318$as_echo "no" >&6; }
7319fi
7320
7321
7322fi
7323if test -z "$ac_cv_prog_NMEDIT"; then
7324  ac_ct_NMEDIT=$NMEDIT
7325  # Extract the first word of "nmedit", so it can be a program name with args.
7326set dummy nmedit; ac_word=$2
7327{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7328$as_echo_n "checking for $ac_word... " >&6; }
7329if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7330  $as_echo_n "(cached) " >&6
7331else
7332  if test -n "$ac_ct_NMEDIT"; then
7333  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7334else
7335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336for as_dir in $PATH
7337do
7338  IFS=$as_save_IFS
7339  test -z "$as_dir" && as_dir=.
7340  for ac_exec_ext in '' $ac_executable_extensions; do
7341  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7342    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7343    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7344    break 2
7345  fi
7346done
7347done
7348IFS=$as_save_IFS
7349
7350fi
7351fi
7352ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7353if test -n "$ac_ct_NMEDIT"; then
7354  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7355$as_echo "$ac_ct_NMEDIT" >&6; }
7356else
7357  { $as_echo "$as_me:$LINENO: result: no" >&5
7358$as_echo "no" >&6; }
7359fi
7360
7361  if test "x$ac_ct_NMEDIT" = x; then
7362    NMEDIT=":"
7363  else
7364    case $cross_compiling:$ac_tool_warned in
7365yes:)
7366{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7368ac_tool_warned=yes ;;
7369esac
7370    NMEDIT=$ac_ct_NMEDIT
7371  fi
7372else
7373  NMEDIT="$ac_cv_prog_NMEDIT"
7374fi
7375
7376
7377    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7378$as_echo_n "checking for -single_module linker flag... " >&6; }
7379if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7380  $as_echo_n "(cached) " >&6
7381else
7382  lt_cv_apple_cc_single_mod=no
7383      if test -z "${LT_MULTI_MODULE}"; then
7384   # By default we will add the -single_module flag. You can override
7385   # by either setting the environment variable LT_MULTI_MODULE
7386   # non-empty at configure time, or by adding -multi_module to the
7387   # link flags.
7388   echo "int foo(void){return 1;}" > conftest.c
7389   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7390     -dynamiclib ${wl}-single_module conftest.c
7391   if test -f libconftest.dylib; then
7392     lt_cv_apple_cc_single_mod=yes
7393     rm -rf libconftest.dylib*
7394   fi
7395   rm conftest.c
7396      fi
7397fi
7398{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7399$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7400    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7401$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7402if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7403  $as_echo_n "(cached) " >&6
7404else
7405  lt_cv_ld_exported_symbols_list=no
7406      save_LDFLAGS=$LDFLAGS
7407      echo "_main" > conftest.sym
7408      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7409      cat >conftest.$ac_ext <<_ACEOF
7410/* confdefs.h.  */
7411_ACEOF
7412cat confdefs.h >>conftest.$ac_ext
7413cat >>conftest.$ac_ext <<_ACEOF
7414/* end confdefs.h.  */
7415
7416int
7417main ()
7418{
7419
7420  ;
7421  return 0;
7422}
7423_ACEOF
7424rm -f conftest.$ac_objext conftest$ac_exeext
7425if { (ac_try="$ac_link"
7426case "(($ac_try" in
7427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7428  *) ac_try_echo=$ac_try;;
7429esac
7430eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7431$as_echo "$ac_try_echo") >&5
7432  (eval "$ac_link") 2>conftest.er1
7433  ac_status=$?
7434  grep -v '^ *+' conftest.er1 >conftest.err
7435  rm -f conftest.er1
7436  cat conftest.err >&5
7437  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438  (exit $ac_status); } && {
7439	 test -z "$ac_c_werror_flag" ||
7440	 test ! -s conftest.err
7441       } && test -s conftest$ac_exeext && {
7442	 test "$cross_compiling" = yes ||
7443	 $as_test_x conftest$ac_exeext
7444       }; then
7445  lt_cv_ld_exported_symbols_list=yes
7446else
7447  $as_echo "$as_me: failed program was:" >&5
7448sed 's/^/| /' conftest.$ac_ext >&5
7449
7450	lt_cv_ld_exported_symbols_list=no
7451fi
7452
7453rm -rf conftest.dSYM
7454rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7455      conftest$ac_exeext conftest.$ac_ext
7456   LDFLAGS="$save_LDFLAGS"
7457
7458fi
7459{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7460$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7461    case $host_os in
7462    rhapsody* | darwin1.[0123])
7463      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7464    darwin1.*)
7465     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7466    darwin*)
7467      # if running on 10.5 or later, the deployment target defaults
7468      # to the OS version, if on x86, and 10.4, the deployment
7469      # target defaults to 10.4. Don't you love it?
7470      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7471   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7472     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7473   10.[012]*)
7474     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7475   10.*)
7476     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7477      esac
7478    ;;
7479  esac
7480    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7481      _lt_dar_single_mod='$single_module'
7482    fi
7483    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7484      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7485    else
7486      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7487    fi
7488    if test "$DSYMUTIL" != ":"; then
7489      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7490    else
7491      _lt_dsymutil=
7492    fi
7493    ;;
7494  esac
7495
7496
7497enable_dlopen=no
7498enable_win32_dll=no
7499
7500# Check whether --enable-libtool-lock was given.
7501if test "${enable_libtool_lock+set}" = set; then
7502  enableval=$enable_libtool_lock;
7503fi
7504
7505test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7506
7507
7508# Check whether --with-pic was given.
7509if test "${with_pic+set}" = set; then
7510  withval=$with_pic; pic_mode="$withval"
7511else
7512  pic_mode=default
7513fi
7514
7515test -z "$pic_mode" && pic_mode=default
7516
7517# Use C for the default configuration in the libtool script
7518tagname=
7519lt_save_CC="$CC"
7520ac_ext=c
7521ac_cpp='$CPP $CPPFLAGS'
7522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7524ac_compiler_gnu=$ac_cv_c_compiler_gnu
7525
7526
7527# Source file extension for C test sources.
7528ac_ext=c
7529
7530# Object file extension for compiled C test sources.
7531objext=o
7532objext=$objext
7533
7534# Code to be used in simple compile tests
7535lt_simple_compile_test_code="int some_variable = 0;"
7536
7537# Code to be used in simple link tests
7538lt_simple_link_test_code='int main(){return(0);}'
7539
7540
7541# If no C compiler was specified, use CC.
7542LTCC=${LTCC-"$CC"}
7543
7544# If no C compiler flags were specified, use CFLAGS.
7545LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7546
7547# Allow CC to be a program name with arguments.
7548compiler=$CC
7549
7550
7551# save warnings/boilerplate of simple test code
7552ac_outfile=conftest.$ac_objext
7553echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7554eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7555_lt_compiler_boilerplate=`cat conftest.err`
7556$rm conftest*
7557
7558ac_outfile=conftest.$ac_objext
7559echo "$lt_simple_link_test_code" >conftest.$ac_ext
7560eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7561_lt_linker_boilerplate=`cat conftest.err`
7562$rm -r conftest*
7563
7564
7565
7566lt_prog_compiler_no_builtin_flag=
7567
7568if test "$GCC" = yes; then
7569  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7570
7571
7572{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7573$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7574if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7575  $as_echo_n "(cached) " >&6
7576else
7577  lt_cv_prog_compiler_rtti_exceptions=no
7578  ac_outfile=conftest.$ac_objext
7579   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7580   lt_compiler_flag="-fno-rtti -fno-exceptions"
7581   # Insert the option either (1) after the last *FLAGS variable, or
7582   # (2) before a word containing "conftest.", or (3) at the end.
7583   # Note that $ac_compile itself does not contain backslashes and begins
7584   # with a dollar sign (not a hyphen), so the echo should work correctly.
7585   # The option is referenced via a variable to avoid confusing sed.
7586   lt_compile=`echo "$ac_compile" | $SED \
7587   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7588   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7589   -e 's:$: $lt_compiler_flag:'`
7590   (eval echo "\"\$as_me:7590: $lt_compile\"" >&5)
7591   (eval "$lt_compile" 2>conftest.err)
7592   ac_status=$?
7593   cat conftest.err >&5
7594   echo "$as_me:7594: \$? = $ac_status" >&5
7595   if (exit $ac_status) && test -s "$ac_outfile"; then
7596     # The compiler can only warn and ignore the option if not recognized
7597     # So say no if there are warnings other than the usual output.
7598     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7599     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7600     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7601       lt_cv_prog_compiler_rtti_exceptions=yes
7602     fi
7603   fi
7604   $rm conftest*
7605
7606fi
7607{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7608$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7609
7610if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7611    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7612else
7613    :
7614fi
7615
7616fi
7617
7618lt_prog_compiler_wl=
7619lt_prog_compiler_pic=
7620lt_prog_compiler_static=
7621
7622{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7623$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7624
7625  if test "$GCC" = yes; then
7626    lt_prog_compiler_wl='-Wl,'
7627    lt_prog_compiler_static='-static'
7628
7629    case $host_os in
7630      aix*)
7631      # All AIX code is PIC.
7632      if test "$host_cpu" = ia64; then
7633	# AIX 5 now supports IA64 processor
7634	lt_prog_compiler_static='-Bstatic'
7635      fi
7636      ;;
7637
7638    amigaos*)
7639      # FIXME: we need at least 68020 code to build shared libraries, but
7640      # adding the `-m68020' flag to GCC prevents building anything better,
7641      # like `-m68040'.
7642      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7643      ;;
7644
7645    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7646      # PIC is the default for these OSes.
7647      ;;
7648
7649    mingw* | cygwin* | pw32* | os2*)
7650      # This hack is so that the source file can tell whether it is being
7651      # built for inclusion in a dll (and should export symbols for example).
7652      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7653      # (--disable-auto-import) libraries
7654      lt_prog_compiler_pic='-DDLL_EXPORT'
7655      ;;
7656
7657    darwin* | rhapsody*)
7658      # PIC is the default on this platform
7659      # Common symbols not allowed in MH_DYLIB files
7660      lt_prog_compiler_pic='-fno-common'
7661      ;;
7662
7663    interix[3-9]*)
7664      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7665      # Instead, we relocate shared libraries at runtime.
7666      ;;
7667
7668    msdosdjgpp*)
7669      # Just because we use GCC doesn't mean we suddenly get shared libraries
7670      # on systems that don't support them.
7671      lt_prog_compiler_can_build_shared=no
7672      enable_shared=no
7673      ;;
7674
7675    sysv4*MP*)
7676      if test -d /usr/nec; then
7677	lt_prog_compiler_pic=-Kconform_pic
7678      fi
7679      ;;
7680
7681    hpux*)
7682      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7683      # not for PA HP-UX.
7684      case $host_cpu in
7685      hppa*64*|ia64*)
7686	# +Z the default
7687	;;
7688      *)
7689	lt_prog_compiler_pic='-fPIC'
7690	;;
7691      esac
7692      ;;
7693
7694    *)
7695      lt_prog_compiler_pic='-fPIC'
7696      ;;
7697    esac
7698  else
7699    # PORTME Check for flag to pass linker flags through the system compiler.
7700    case $host_os in
7701    aix*)
7702      lt_prog_compiler_wl='-Wl,'
7703      if test "$host_cpu" = ia64; then
7704	# AIX 5 now supports IA64 processor
7705	lt_prog_compiler_static='-Bstatic'
7706      else
7707	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7708      fi
7709      ;;
7710      darwin*)
7711        # PIC is the default on this platform
7712        # Common symbols not allowed in MH_DYLIB files
7713       case $cc_basename in
7714         xlc*)
7715         lt_prog_compiler_pic='-qnocommon'
7716         lt_prog_compiler_wl='-Wl,'
7717         ;;
7718       esac
7719       ;;
7720
7721    mingw* | cygwin* | pw32* | os2*)
7722      # This hack is so that the source file can tell whether it is being
7723      # built for inclusion in a dll (and should export symbols for example).
7724      lt_prog_compiler_pic='-DDLL_EXPORT'
7725      ;;
7726
7727    hpux9* | hpux10* | hpux11*)
7728      lt_prog_compiler_wl='-Wl,'
7729      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7730      # not for PA HP-UX.
7731      case $host_cpu in
7732      hppa*64*|ia64*)
7733	# +Z the default
7734	;;
7735      *)
7736	lt_prog_compiler_pic='+Z'
7737	;;
7738      esac
7739      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7740      lt_prog_compiler_static='${wl}-a ${wl}archive'
7741      ;;
7742
7743    irix5* | irix6* | nonstopux*)
7744      lt_prog_compiler_wl='-Wl,'
7745      # PIC (with -KPIC) is the default.
7746      lt_prog_compiler_static='-non_shared'
7747      ;;
7748
7749    newsos6)
7750      lt_prog_compiler_pic='-KPIC'
7751      lt_prog_compiler_static='-Bstatic'
7752      ;;
7753
7754    linux* | k*bsd*-gnu)
7755      case $cc_basename in
7756      icc* | ecc*)
7757	lt_prog_compiler_wl='-Wl,'
7758	lt_prog_compiler_pic='-KPIC'
7759	lt_prog_compiler_static='-static'
7760        ;;
7761      pgcc* | pgf77* | pgf90* | pgf95*)
7762        # Portland Group compilers (*not* the Pentium gcc compiler,
7763	# which looks to be a dead project)
7764	lt_prog_compiler_wl='-Wl,'
7765	lt_prog_compiler_pic='-fpic'
7766	lt_prog_compiler_static='-Bstatic'
7767        ;;
7768      ccc*)
7769        lt_prog_compiler_wl='-Wl,'
7770        # All Alpha code is PIC.
7771        lt_prog_compiler_static='-non_shared'
7772        ;;
7773      *)
7774        case `$CC -V 2>&1 | sed 5q` in
7775	*Sun\ C*)
7776	  # Sun C 5.9
7777	  lt_prog_compiler_pic='-KPIC'
7778	  lt_prog_compiler_static='-Bstatic'
7779	  lt_prog_compiler_wl='-Wl,'
7780	  ;;
7781	*Sun\ F*)
7782	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7783	  lt_prog_compiler_pic='-KPIC'
7784	  lt_prog_compiler_static='-Bstatic'
7785	  lt_prog_compiler_wl=''
7786	  ;;
7787	esac
7788	;;
7789      esac
7790      ;;
7791
7792    osf3* | osf4* | osf5*)
7793      lt_prog_compiler_wl='-Wl,'
7794      # All OSF/1 code is PIC.
7795      lt_prog_compiler_static='-non_shared'
7796      ;;
7797
7798    rdos*)
7799      lt_prog_compiler_static='-non_shared'
7800      ;;
7801
7802    solaris*)
7803      lt_prog_compiler_pic='-KPIC'
7804      lt_prog_compiler_static='-Bstatic'
7805      case $cc_basename in
7806      f77* | f90* | f95*)
7807	lt_prog_compiler_wl='-Qoption ld ';;
7808      *)
7809	lt_prog_compiler_wl='-Wl,';;
7810      esac
7811      ;;
7812
7813    sunos4*)
7814      lt_prog_compiler_wl='-Qoption ld '
7815      lt_prog_compiler_pic='-PIC'
7816      lt_prog_compiler_static='-Bstatic'
7817      ;;
7818
7819    sysv4 | sysv4.2uw2* | sysv4.3*)
7820      lt_prog_compiler_wl='-Wl,'
7821      lt_prog_compiler_pic='-KPIC'
7822      lt_prog_compiler_static='-Bstatic'
7823      ;;
7824
7825    sysv4*MP*)
7826      if test -d /usr/nec ;then
7827	lt_prog_compiler_pic='-Kconform_pic'
7828	lt_prog_compiler_static='-Bstatic'
7829      fi
7830      ;;
7831
7832    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7833      lt_prog_compiler_wl='-Wl,'
7834      lt_prog_compiler_pic='-KPIC'
7835      lt_prog_compiler_static='-Bstatic'
7836      ;;
7837
7838    unicos*)
7839      lt_prog_compiler_wl='-Wl,'
7840      lt_prog_compiler_can_build_shared=no
7841      ;;
7842
7843    uts4*)
7844      lt_prog_compiler_pic='-pic'
7845      lt_prog_compiler_static='-Bstatic'
7846      ;;
7847
7848    *)
7849      lt_prog_compiler_can_build_shared=no
7850      ;;
7851    esac
7852  fi
7853
7854{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7855$as_echo "$lt_prog_compiler_pic" >&6; }
7856
7857#
7858# Check to make sure the PIC flag actually works.
7859#
7860if test -n "$lt_prog_compiler_pic"; then
7861
7862{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7863$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7864if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7865  $as_echo_n "(cached) " >&6
7866else
7867  lt_cv_prog_compiler_pic_works=no
7868  ac_outfile=conftest.$ac_objext
7869   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7870   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7871   # Insert the option either (1) after the last *FLAGS variable, or
7872   # (2) before a word containing "conftest.", or (3) at the end.
7873   # Note that $ac_compile itself does not contain backslashes and begins
7874   # with a dollar sign (not a hyphen), so the echo should work correctly.
7875   # The option is referenced via a variable to avoid confusing sed.
7876   lt_compile=`echo "$ac_compile" | $SED \
7877   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7878   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7879   -e 's:$: $lt_compiler_flag:'`
7880   (eval echo "\"\$as_me:7880: $lt_compile\"" >&5)
7881   (eval "$lt_compile" 2>conftest.err)
7882   ac_status=$?
7883   cat conftest.err >&5
7884   echo "$as_me:7884: \$? = $ac_status" >&5
7885   if (exit $ac_status) && test -s "$ac_outfile"; then
7886     # The compiler can only warn and ignore the option if not recognized
7887     # So say no if there are warnings other than the usual output.
7888     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7889     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7890     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7891       lt_cv_prog_compiler_pic_works=yes
7892     fi
7893   fi
7894   $rm conftest*
7895
7896fi
7897{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7898$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7899
7900if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7901    case $lt_prog_compiler_pic in
7902     "" | " "*) ;;
7903     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7904     esac
7905else
7906    lt_prog_compiler_pic=
7907     lt_prog_compiler_can_build_shared=no
7908fi
7909
7910fi
7911case $host_os in
7912  # For platforms which do not support PIC, -DPIC is meaningless:
7913  *djgpp*)
7914    lt_prog_compiler_pic=
7915    ;;
7916  *)
7917    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7918    ;;
7919esac
7920
7921#
7922# Check to make sure the static flag actually works.
7923#
7924wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7925{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7926$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7927if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7928  $as_echo_n "(cached) " >&6
7929else
7930  lt_cv_prog_compiler_static_works=no
7931   save_LDFLAGS="$LDFLAGS"
7932   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7933   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7934   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7935     # The linker can only warn and ignore the option if not recognized
7936     # So say no if there are warnings
7937     if test -s conftest.err; then
7938       # Append any errors to the config.log.
7939       cat conftest.err 1>&5
7940       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7941       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7942       if diff conftest.exp conftest.er2 >/dev/null; then
7943         lt_cv_prog_compiler_static_works=yes
7944       fi
7945     else
7946       lt_cv_prog_compiler_static_works=yes
7947     fi
7948   fi
7949   $rm -r conftest*
7950   LDFLAGS="$save_LDFLAGS"
7951
7952fi
7953{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7954$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7955
7956if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7957    :
7958else
7959    lt_prog_compiler_static=
7960fi
7961
7962
7963{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7964$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7965if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7966  $as_echo_n "(cached) " >&6
7967else
7968  lt_cv_prog_compiler_c_o=no
7969   $rm -r conftest 2>/dev/null
7970   mkdir conftest
7971   cd conftest
7972   mkdir out
7973   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7974
7975   lt_compiler_flag="-o out/conftest2.$ac_objext"
7976   # Insert the option either (1) after the last *FLAGS variable, or
7977   # (2) before a word containing "conftest.", or (3) at the end.
7978   # Note that $ac_compile itself does not contain backslashes and begins
7979   # with a dollar sign (not a hyphen), so the echo should work correctly.
7980   lt_compile=`echo "$ac_compile" | $SED \
7981   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7982   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7983   -e 's:$: $lt_compiler_flag:'`
7984   (eval echo "\"\$as_me:7984: $lt_compile\"" >&5)
7985   (eval "$lt_compile" 2>out/conftest.err)
7986   ac_status=$?
7987   cat out/conftest.err >&5
7988   echo "$as_me:7988: \$? = $ac_status" >&5
7989   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7990   then
7991     # The compiler can only warn and ignore the option if not recognized
7992     # So say no if there are warnings
7993     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7994     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7995     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7996       lt_cv_prog_compiler_c_o=yes
7997     fi
7998   fi
7999   chmod u+w . 2>&5
8000   $rm conftest*
8001   # SGI C++ compiler will create directory out/ii_files/ for
8002   # template instantiation
8003   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8004   $rm out/* && rmdir out
8005   cd ..
8006   rmdir conftest
8007   $rm conftest*
8008
8009fi
8010{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8011$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8012
8013
8014hard_links="nottested"
8015if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8016  # do not overwrite the value of need_locks provided by the user
8017  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8018$as_echo_n "checking if we can lock with hard links... " >&6; }
8019  hard_links=yes
8020  $rm conftest*
8021  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8022  touch conftest.a
8023  ln conftest.a conftest.b 2>&5 || hard_links=no
8024  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8025  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8026$as_echo "$hard_links" >&6; }
8027  if test "$hard_links" = no; then
8028    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8029$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8030    need_locks=warn
8031  fi
8032else
8033  need_locks=no
8034fi
8035
8036{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8037$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8038
8039  runpath_var=
8040  allow_undefined_flag=
8041  enable_shared_with_static_runtimes=no
8042  archive_cmds=
8043  archive_expsym_cmds=
8044  old_archive_From_new_cmds=
8045  old_archive_from_expsyms_cmds=
8046  export_dynamic_flag_spec=
8047  whole_archive_flag_spec=
8048  thread_safe_flag_spec=
8049  hardcode_libdir_flag_spec=
8050  hardcode_libdir_flag_spec_ld=
8051  hardcode_libdir_separator=
8052  hardcode_direct=no
8053  hardcode_minus_L=no
8054  hardcode_shlibpath_var=unsupported
8055  link_all_deplibs=unknown
8056  hardcode_automatic=no
8057  module_cmds=
8058  module_expsym_cmds=
8059  always_export_symbols=no
8060  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8061  # include_expsyms should be a list of space-separated symbols to be *always*
8062  # included in the symbol list
8063  include_expsyms=
8064  # exclude_expsyms can be an extended regexp of symbols to exclude
8065  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8066  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8067  # as well as any symbol that contains `d'.
8068  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8069  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8070  # platforms (ab)use it in PIC code, but their linkers get confused if
8071  # the symbol is explicitly referenced.  Since portable code cannot
8072  # rely on this symbol name, it's probably fine to never include it in
8073  # preloaded symbol tables.
8074  # Exclude shared library initialization/finalization symbols.
8075  extract_expsyms_cmds=
8076  # Just being paranoid about ensuring that cc_basename is set.
8077  for cc_temp in $compiler""; do
8078  case $cc_temp in
8079    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8080    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8081    \-*) ;;
8082    *) break;;
8083  esac
8084done
8085cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8086
8087  case $host_os in
8088  cygwin* | mingw* | pw32*)
8089    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8090    # When not using gcc, we currently assume that we are using
8091    # Microsoft Visual C++.
8092    if test "$GCC" != yes; then
8093      with_gnu_ld=no
8094    fi
8095    ;;
8096  interix*)
8097    # we just hope/assume this is gcc and not c89 (= MSVC++)
8098    with_gnu_ld=yes
8099    ;;
8100  openbsd*)
8101    with_gnu_ld=no
8102    ;;
8103  esac
8104
8105  ld_shlibs=yes
8106  if test "$with_gnu_ld" = yes; then
8107    # If archive_cmds runs LD, not CC, wlarc should be empty
8108    wlarc='${wl}'
8109
8110    # Set some defaults for GNU ld with shared library support. These
8111    # are reset later if shared libraries are not supported. Putting them
8112    # here allows them to be overridden if necessary.
8113    runpath_var=LD_RUN_PATH
8114    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8115    export_dynamic_flag_spec='${wl}--export-dynamic'
8116    # ancient GNU ld didn't support --whole-archive et. al.
8117    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8118	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8119      else
8120  	whole_archive_flag_spec=
8121    fi
8122    supports_anon_versioning=no
8123    case `$LD -v 2>/dev/null` in
8124      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8125      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8126      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8127      *\ 2.11.*) ;; # other 2.11 versions
8128      *) supports_anon_versioning=yes ;;
8129    esac
8130
8131    # See if GNU ld supports shared libraries.
8132    case $host_os in
8133    aix[3-9]*)
8134      # On AIX/PPC, the GNU linker is very broken
8135      if test "$host_cpu" != ia64; then
8136	ld_shlibs=no
8137	cat <<EOF 1>&2
8138
8139*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8140*** to be unable to reliably create shared libraries on AIX.
8141*** Therefore, libtool is disabling shared libraries support.  If you
8142*** really care for shared libraries, you may want to modify your PATH
8143*** so that a non-GNU linker is found, and then restart.
8144
8145EOF
8146      fi
8147      ;;
8148
8149    amigaos*)
8150      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)'
8151      hardcode_libdir_flag_spec='-L$libdir'
8152      hardcode_minus_L=yes
8153
8154      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8155      # that the semantics of dynamic libraries on AmigaOS, at least up
8156      # to version 4, is to share data among multiple programs linked
8157      # with the same dynamic library.  Since this doesn't match the
8158      # behavior of shared libraries on other platforms, we can't use
8159      # them.
8160      ld_shlibs=no
8161      ;;
8162
8163    beos*)
8164      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8165	allow_undefined_flag=unsupported
8166	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8167	# support --undefined.  This deserves some investigation.  FIXME
8168	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8169      else
8170	ld_shlibs=no
8171      fi
8172      ;;
8173
8174    cygwin* | mingw* | pw32*)
8175      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8176      # as there is no search path for DLLs.
8177      hardcode_libdir_flag_spec='-L$libdir'
8178      allow_undefined_flag=unsupported
8179      always_export_symbols=no
8180      enable_shared_with_static_runtimes=yes
8181      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8182
8183      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8184        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8185	# If the export-symbols file already is a .def file (1st line
8186	# is EXPORTS), use it as is; otherwise, prepend...
8187	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8188	  cp $export_symbols $output_objdir/$soname.def;
8189	else
8190	  echo EXPORTS > $output_objdir/$soname.def;
8191	  cat $export_symbols >> $output_objdir/$soname.def;
8192	fi~
8193	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8194      else
8195	ld_shlibs=no
8196      fi
8197      ;;
8198
8199    interix[3-9]*)
8200      hardcode_direct=no
8201      hardcode_shlibpath_var=no
8202      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8203      export_dynamic_flag_spec='${wl}-E'
8204      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8205      # Instead, shared libraries are loaded at an image base (0x10000000 by
8206      # default) and relocated if they conflict, which is a slow very memory
8207      # consuming and fragmenting process.  To avoid this, we pick a random,
8208      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8209      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8210      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8211      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'
8212      ;;
8213
8214    gnu* | linux* | k*bsd*-gnu)
8215      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8216	tmp_addflag=
8217	case $cc_basename,$host_cpu in
8218	pgcc*)				# Portland Group C compiler
8219	  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'
8220	  tmp_addflag=' $pic_flag'
8221	  ;;
8222	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8223	  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'
8224	  tmp_addflag=' $pic_flag -Mnomain' ;;
8225	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8226	  tmp_addflag=' -i_dynamic' ;;
8227	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8228	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8229	ifc* | ifort*)			# Intel Fortran compiler
8230	  tmp_addflag=' -nofor_main' ;;
8231	esac
8232	case `$CC -V 2>&1 | sed 5q` in
8233	*Sun\ C*)			# Sun C 5.9
8234	  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'
8235	  tmp_sharedflag='-G' ;;
8236	*Sun\ F*)			# Sun Fortran 8.3
8237	  tmp_sharedflag='-G' ;;
8238	*)
8239	  tmp_sharedflag='-shared' ;;
8240	esac
8241	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8242
8243	if test $supports_anon_versioning = yes; then
8244	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8245  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8246  $echo "local: *; };" >> $output_objdir/$libname.ver~
8247	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8248	fi
8249      else
8250	ld_shlibs=no
8251      fi
8252      ;;
8253
8254    netbsd*)
8255      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8256	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8257	wlarc=
8258      else
8259	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8260	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8261      fi
8262      ;;
8263
8264    solaris*)
8265      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8266	ld_shlibs=no
8267	cat <<EOF 1>&2
8268
8269*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8270*** create shared libraries on Solaris systems.  Therefore, libtool
8271*** is disabling shared libraries support.  We urge you to upgrade GNU
8272*** binutils to release 2.9.1 or newer.  Another option is to modify
8273*** your PATH or compiler configuration so that the native linker is
8274*** used, and then restart.
8275
8276EOF
8277      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8278	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8279	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8280      else
8281	ld_shlibs=no
8282      fi
8283      ;;
8284
8285    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8286      case `$LD -v 2>&1` in
8287        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8288	ld_shlibs=no
8289	cat <<_LT_EOF 1>&2
8290
8291*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8292*** reliably create shared libraries on SCO systems.  Therefore, libtool
8293*** is disabling shared libraries support.  We urge you to upgrade GNU
8294*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8295*** your PATH or compiler configuration so that the native linker is
8296*** used, and then restart.
8297
8298_LT_EOF
8299	;;
8300	*)
8301	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8302	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8303	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8304	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8305	  else
8306	    ld_shlibs=no
8307	  fi
8308	;;
8309      esac
8310      ;;
8311
8312    sunos4*)
8313      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8314      wlarc=
8315      hardcode_direct=yes
8316      hardcode_shlibpath_var=no
8317      ;;
8318
8319    *)
8320      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8321	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8322	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8323      else
8324	ld_shlibs=no
8325      fi
8326      ;;
8327    esac
8328
8329    if test "$ld_shlibs" = no; then
8330      runpath_var=
8331      hardcode_libdir_flag_spec=
8332      export_dynamic_flag_spec=
8333      whole_archive_flag_spec=
8334    fi
8335  else
8336    # PORTME fill in a description of your system's linker (not GNU ld)
8337    case $host_os in
8338    aix3*)
8339      allow_undefined_flag=unsupported
8340      always_export_symbols=yes
8341      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'
8342      # Note: this linker hardcodes the directories in LIBPATH if there
8343      # are no directories specified by -L.
8344      hardcode_minus_L=yes
8345      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8346	# Neither direct hardcoding nor static linking is supported with a
8347	# broken collect2.
8348	hardcode_direct=unsupported
8349      fi
8350      ;;
8351
8352    aix[4-9]*)
8353      if test "$host_cpu" = ia64; then
8354	# On IA64, the linker does run time linking by default, so we don't
8355	# have to do anything special.
8356	aix_use_runtimelinking=no
8357	exp_sym_flag='-Bexport'
8358	no_entry_flag=""
8359      else
8360	# If we're using GNU nm, then we don't want the "-C" option.
8361	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8362	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8363	  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'
8364	else
8365	  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'
8366	fi
8367	aix_use_runtimelinking=no
8368
8369	# Test if we are trying to use run time linking or normal
8370	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8371	# need to do runtime linking.
8372	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8373	  for ld_flag in $LDFLAGS; do
8374  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8375  	    aix_use_runtimelinking=yes
8376  	    break
8377  	  fi
8378	  done
8379	  ;;
8380	esac
8381
8382	exp_sym_flag='-bexport'
8383	no_entry_flag='-bnoentry'
8384      fi
8385
8386      # When large executables or shared objects are built, AIX ld can
8387      # have problems creating the table of contents.  If linking a library
8388      # or program results in "error TOC overflow" add -mminimal-toc to
8389      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8390      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8391
8392      archive_cmds=''
8393      hardcode_direct=yes
8394      hardcode_libdir_separator=':'
8395      link_all_deplibs=yes
8396
8397      if test "$GCC" = yes; then
8398	case $host_os in aix4.[012]|aix4.[012].*)
8399	# We only want to do this on AIX 4.2 and lower, the check
8400	# below for broken collect2 doesn't work under 4.3+
8401	  collect2name=`${CC} -print-prog-name=collect2`
8402	  if test -f "$collect2name" && \
8403  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8404	  then
8405  	  # We have reworked collect2
8406  	  :
8407	  else
8408  	  # We have old collect2
8409  	  hardcode_direct=unsupported
8410  	  # It fails to find uninstalled libraries when the uninstalled
8411  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8412  	  # to unsupported forces relinking
8413  	  hardcode_minus_L=yes
8414  	  hardcode_libdir_flag_spec='-L$libdir'
8415  	  hardcode_libdir_separator=
8416	  fi
8417	  ;;
8418	esac
8419	shared_flag='-shared'
8420	if test "$aix_use_runtimelinking" = yes; then
8421	  shared_flag="$shared_flag "'${wl}-G'
8422	fi
8423      else
8424	# not using gcc
8425	if test "$host_cpu" = ia64; then
8426  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8427  	# chokes on -Wl,-G. The following line is correct:
8428	  shared_flag='-G'
8429	else
8430	  if test "$aix_use_runtimelinking" = yes; then
8431	    shared_flag='${wl}-G'
8432	  else
8433	    shared_flag='${wl}-bM:SRE'
8434	  fi
8435	fi
8436      fi
8437
8438      # It seems that -bexpall does not export symbols beginning with
8439      # underscore (_), so it is better to generate a list of symbols to export.
8440      always_export_symbols=yes
8441      if test "$aix_use_runtimelinking" = yes; then
8442	# Warning - without using the other runtime loading flags (-brtl),
8443	# -berok will link without error, but may produce a broken library.
8444	allow_undefined_flag='-berok'
8445       # Determine the default libpath from the value encoded in an empty executable.
8446       cat >conftest.$ac_ext <<_ACEOF
8447/* confdefs.h.  */
8448_ACEOF
8449cat confdefs.h >>conftest.$ac_ext
8450cat >>conftest.$ac_ext <<_ACEOF
8451/* end confdefs.h.  */
8452
8453int
8454main ()
8455{
8456
8457  ;
8458  return 0;
8459}
8460_ACEOF
8461rm -f conftest.$ac_objext conftest$ac_exeext
8462if { (ac_try="$ac_link"
8463case "(($ac_try" in
8464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465  *) ac_try_echo=$ac_try;;
8466esac
8467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8468$as_echo "$ac_try_echo") >&5
8469  (eval "$ac_link") 2>conftest.er1
8470  ac_status=$?
8471  grep -v '^ *+' conftest.er1 >conftest.err
8472  rm -f conftest.er1
8473  cat conftest.err >&5
8474  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475  (exit $ac_status); } && {
8476	 test -z "$ac_c_werror_flag" ||
8477	 test ! -s conftest.err
8478       } && test -s conftest$ac_exeext && {
8479	 test "$cross_compiling" = yes ||
8480	 $as_test_x conftest$ac_exeext
8481       }; then
8482
8483lt_aix_libpath_sed='
8484    /Import File Strings/,/^$/ {
8485	/^0/ {
8486	    s/^0  *\(.*\)$/\1/
8487	    p
8488	}
8489    }'
8490aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8491# Check for a 64-bit object if we didn't find anything.
8492if test -z "$aix_libpath"; then
8493  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8494fi
8495else
8496  $as_echo "$as_me: failed program was:" >&5
8497sed 's/^/| /' conftest.$ac_ext >&5
8498
8499
8500fi
8501
8502rm -rf conftest.dSYM
8503rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8504      conftest$ac_exeext conftest.$ac_ext
8505if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8506
8507       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8508	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"
8509       else
8510	if test "$host_cpu" = ia64; then
8511	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8512	  allow_undefined_flag="-z nodefs"
8513	  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"
8514	else
8515	 # Determine the default libpath from the value encoded in an empty executable.
8516	 cat >conftest.$ac_ext <<_ACEOF
8517/* confdefs.h.  */
8518_ACEOF
8519cat confdefs.h >>conftest.$ac_ext
8520cat >>conftest.$ac_ext <<_ACEOF
8521/* end confdefs.h.  */
8522
8523int
8524main ()
8525{
8526
8527  ;
8528  return 0;
8529}
8530_ACEOF
8531rm -f conftest.$ac_objext conftest$ac_exeext
8532if { (ac_try="$ac_link"
8533case "(($ac_try" in
8534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8535  *) ac_try_echo=$ac_try;;
8536esac
8537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8538$as_echo "$ac_try_echo") >&5
8539  (eval "$ac_link") 2>conftest.er1
8540  ac_status=$?
8541  grep -v '^ *+' conftest.er1 >conftest.err
8542  rm -f conftest.er1
8543  cat conftest.err >&5
8544  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545  (exit $ac_status); } && {
8546	 test -z "$ac_c_werror_flag" ||
8547	 test ! -s conftest.err
8548       } && test -s conftest$ac_exeext && {
8549	 test "$cross_compiling" = yes ||
8550	 $as_test_x conftest$ac_exeext
8551       }; then
8552
8553lt_aix_libpath_sed='
8554    /Import File Strings/,/^$/ {
8555	/^0/ {
8556	    s/^0  *\(.*\)$/\1/
8557	    p
8558	}
8559    }'
8560aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8561# Check for a 64-bit object if we didn't find anything.
8562if test -z "$aix_libpath"; then
8563  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8564fi
8565else
8566  $as_echo "$as_me: failed program was:" >&5
8567sed 's/^/| /' conftest.$ac_ext >&5
8568
8569
8570fi
8571
8572rm -rf conftest.dSYM
8573rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8574      conftest$ac_exeext conftest.$ac_ext
8575if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8576
8577	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8578	  # Warning - without using the other run time loading flags,
8579	  # -berok will link without error, but may produce a broken library.
8580	  no_undefined_flag=' ${wl}-bernotok'
8581	  allow_undefined_flag=' ${wl}-berok'
8582	  # Exported symbols can be pulled into shared objects from archives
8583	  whole_archive_flag_spec='$convenience'
8584	  archive_cmds_need_lc=yes
8585	  # This is similar to how AIX traditionally builds its shared libraries.
8586	  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'
8587	fi
8588      fi
8589      ;;
8590
8591    amigaos*)
8592      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)'
8593      hardcode_libdir_flag_spec='-L$libdir'
8594      hardcode_minus_L=yes
8595      # see comment about different semantics on the GNU ld section
8596      ld_shlibs=no
8597      ;;
8598
8599    bsdi[45]*)
8600      export_dynamic_flag_spec=-rdynamic
8601      ;;
8602
8603    cygwin* | mingw* | pw32*)
8604      # When not using gcc, we currently assume that we are using
8605      # Microsoft Visual C++.
8606      # hardcode_libdir_flag_spec is actually meaningless, as there is
8607      # no search path for DLLs.
8608      hardcode_libdir_flag_spec=' '
8609      allow_undefined_flag=unsupported
8610      # Tell ltmain to make .lib files, not .a files.
8611      libext=lib
8612      # Tell ltmain to make .dll files, not .so files.
8613      shrext_cmds=".dll"
8614      # FIXME: Setting linknames here is a bad hack.
8615      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8616      # The linker will automatically build a .lib file if we build a DLL.
8617      old_archive_From_new_cmds='true'
8618      # FIXME: Should let the user specify the lib program.
8619      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8620      fix_srcfile_path='`cygpath -w "$srcfile"`'
8621      enable_shared_with_static_runtimes=yes
8622      ;;
8623
8624    darwin* | rhapsody*)
8625      case $host_os in
8626        rhapsody* | darwin1.[012])
8627         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8628         ;;
8629       *) # Darwin 1.3 on
8630         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8631           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8632         else
8633           case ${MACOSX_DEPLOYMENT_TARGET} in
8634             10.[012])
8635               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8636               ;;
8637             10.*)
8638               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8639               ;;
8640           esac
8641         fi
8642         ;;
8643      esac
8644      archive_cmds_need_lc=no
8645      hardcode_direct=no
8646      hardcode_automatic=yes
8647      hardcode_shlibpath_var=unsupported
8648      whole_archive_flag_spec=''
8649      link_all_deplibs=yes
8650    if test "$GCC" = yes ; then
8651    	output_verbose_link_cmd='echo'
8652        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8653        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8654        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}"
8655        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}"
8656    else
8657      case $cc_basename in
8658        xlc*)
8659         output_verbose_link_cmd='echo'
8660         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8661         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8662          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8663         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}'
8664          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}'
8665          ;;
8666       *)
8667         ld_shlibs=no
8668          ;;
8669      esac
8670    fi
8671      ;;
8672
8673    dgux*)
8674      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8675      hardcode_libdir_flag_spec='-L$libdir'
8676      hardcode_shlibpath_var=no
8677      ;;
8678
8679    freebsd1*)
8680      ld_shlibs=no
8681      ;;
8682
8683    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8684    # support.  Future versions do this automatically, but an explicit c++rt0.o
8685    # does not break anything, and helps significantly (at the cost of a little
8686    # extra space).
8687    freebsd2.2*)
8688      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8689      hardcode_libdir_flag_spec='-R$libdir'
8690      hardcode_direct=yes
8691      hardcode_shlibpath_var=no
8692      ;;
8693
8694    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8695    freebsd2*)
8696      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8697      hardcode_direct=yes
8698      hardcode_minus_L=yes
8699      hardcode_shlibpath_var=no
8700      ;;
8701
8702    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8703    freebsd* | dragonfly*)
8704      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8705      hardcode_libdir_flag_spec='-R$libdir'
8706      hardcode_direct=yes
8707      hardcode_shlibpath_var=no
8708      ;;
8709
8710    hpux9*)
8711      if test "$GCC" = yes; then
8712	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'
8713      else
8714	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'
8715      fi
8716      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8717      hardcode_libdir_separator=:
8718      hardcode_direct=yes
8719
8720      # hardcode_minus_L: Not really in the search PATH,
8721      # but as the default location of the library.
8722      hardcode_minus_L=yes
8723      export_dynamic_flag_spec='${wl}-E'
8724      ;;
8725
8726    hpux10*)
8727      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8728	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8729      else
8730	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8731      fi
8732      if test "$with_gnu_ld" = no; then
8733	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8734	hardcode_libdir_separator=:
8735
8736	hardcode_direct=yes
8737	export_dynamic_flag_spec='${wl}-E'
8738
8739	# hardcode_minus_L: Not really in the search PATH,
8740	# but as the default location of the library.
8741	hardcode_minus_L=yes
8742      fi
8743      ;;
8744
8745    hpux11*)
8746      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8747	case $host_cpu in
8748	hppa*64*)
8749	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8750	  ;;
8751	ia64*)
8752	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8753	  ;;
8754	*)
8755	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8756	  ;;
8757	esac
8758      else
8759	case $host_cpu in
8760	hppa*64*)
8761	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8762	  ;;
8763	ia64*)
8764	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8765	  ;;
8766	*)
8767	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8768	  ;;
8769	esac
8770      fi
8771      if test "$with_gnu_ld" = no; then
8772	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8773	hardcode_libdir_separator=:
8774
8775	case $host_cpu in
8776	hppa*64*|ia64*)
8777	  hardcode_libdir_flag_spec_ld='+b $libdir'
8778	  hardcode_direct=no
8779	  hardcode_shlibpath_var=no
8780	  ;;
8781	*)
8782	  hardcode_direct=yes
8783	  export_dynamic_flag_spec='${wl}-E'
8784
8785	  # hardcode_minus_L: Not really in the search PATH,
8786	  # but as the default location of the library.
8787	  hardcode_minus_L=yes
8788	  ;;
8789	esac
8790      fi
8791      ;;
8792
8793    irix5* | irix6* | nonstopux*)
8794      if test "$GCC" = yes; then
8795	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'
8796      else
8797	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'
8798	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8799      fi
8800      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8801      hardcode_libdir_separator=:
8802      link_all_deplibs=yes
8803      ;;
8804
8805    netbsd*)
8806      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8807	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8808      else
8809	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8810      fi
8811      hardcode_libdir_flag_spec='-R$libdir'
8812      hardcode_direct=yes
8813      hardcode_shlibpath_var=no
8814      ;;
8815
8816    newsos6)
8817      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8818      hardcode_direct=yes
8819      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8820      hardcode_libdir_separator=:
8821      hardcode_shlibpath_var=no
8822      ;;
8823
8824    openbsd*)
8825      if test -f /usr/libexec/ld.so; then
8826	hardcode_direct=yes
8827	hardcode_shlibpath_var=no
8828	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8829	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8830	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8831	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8832	  export_dynamic_flag_spec='${wl}-E'
8833	else
8834	  case $host_os in
8835	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8836	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8837	     hardcode_libdir_flag_spec='-R$libdir'
8838	     ;;
8839	   *)
8840	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8841	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8842	     ;;
8843	  esac
8844        fi
8845      else
8846	ld_shlibs=no
8847      fi
8848      ;;
8849
8850    os2*)
8851      hardcode_libdir_flag_spec='-L$libdir'
8852      hardcode_minus_L=yes
8853      allow_undefined_flag=unsupported
8854      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'
8855      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8856      ;;
8857
8858    osf3*)
8859      if test "$GCC" = yes; then
8860	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8861	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'
8862      else
8863	allow_undefined_flag=' -expect_unresolved \*'
8864	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'
8865      fi
8866      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8867      hardcode_libdir_separator=:
8868      ;;
8869
8870    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8871      if test "$GCC" = yes; then
8872	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8873	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'
8874	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8875      else
8876	allow_undefined_flag=' -expect_unresolved \*'
8877	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'
8878	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8879	$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'
8880
8881	# Both c and cxx compiler support -rpath directly
8882	hardcode_libdir_flag_spec='-rpath $libdir'
8883      fi
8884      hardcode_libdir_separator=:
8885      ;;
8886
8887    solaris*)
8888      no_undefined_flag=' -z text'
8889      if test "$GCC" = yes; then
8890	wlarc='${wl}'
8891	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8892	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8893	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8894      else
8895	wlarc=''
8896	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8897	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8898  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8899      fi
8900      hardcode_libdir_flag_spec='-R$libdir'
8901      hardcode_shlibpath_var=no
8902      case $host_os in
8903      solaris2.[0-5] | solaris2.[0-5].*) ;;
8904      *)
8905	# The compiler driver will combine and reorder linker options,
8906	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8907	# but is careful enough not to reorder.
8908 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8909	if test "$GCC" = yes; then
8910	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8911	else
8912	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8913	fi
8914	;;
8915      esac
8916      link_all_deplibs=yes
8917      ;;
8918
8919    sunos4*)
8920      if test "x$host_vendor" = xsequent; then
8921	# Use $CC to link under sequent, because it throws in some extra .o
8922	# files that make .init and .fini sections work.
8923	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8924      else
8925	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8926      fi
8927      hardcode_libdir_flag_spec='-L$libdir'
8928      hardcode_direct=yes
8929      hardcode_minus_L=yes
8930      hardcode_shlibpath_var=no
8931      ;;
8932
8933    sysv4)
8934      case $host_vendor in
8935	sni)
8936	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8937	  hardcode_direct=yes # is this really true???
8938	;;
8939	siemens)
8940	  ## LD is ld it makes a PLAMLIB
8941	  ## CC just makes a GrossModule.
8942	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8943	  reload_cmds='$CC -r -o $output$reload_objs'
8944	  hardcode_direct=no
8945        ;;
8946	motorola)
8947	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8948	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8949	;;
8950      esac
8951      runpath_var='LD_RUN_PATH'
8952      hardcode_shlibpath_var=no
8953      ;;
8954
8955    sysv4.3*)
8956      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8957      hardcode_shlibpath_var=no
8958      export_dynamic_flag_spec='-Bexport'
8959      ;;
8960
8961    sysv4*MP*)
8962      if test -d /usr/nec; then
8963	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8964	hardcode_shlibpath_var=no
8965	runpath_var=LD_RUN_PATH
8966	hardcode_runpath_var=yes
8967	ld_shlibs=yes
8968      fi
8969      ;;
8970
8971    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8972      no_undefined_flag='${wl}-z,text'
8973      archive_cmds_need_lc=no
8974      hardcode_shlibpath_var=no
8975      runpath_var='LD_RUN_PATH'
8976
8977      if test "$GCC" = yes; then
8978	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8979	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8980      else
8981	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8982	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8983      fi
8984      ;;
8985
8986    sysv5* | sco3.2v5* | sco5v6*)
8987      # Note: We can NOT use -z defs as we might desire, because we do not
8988      # link with -lc, and that would cause any symbols used from libc to
8989      # always be unresolved, which means just about no library would
8990      # ever link correctly.  If we're not using GNU ld we use -z text
8991      # though, which does catch some bad symbols but isn't as heavy-handed
8992      # as -z defs.
8993      no_undefined_flag='${wl}-z,text'
8994      allow_undefined_flag='${wl}-z,nodefs'
8995      archive_cmds_need_lc=no
8996      hardcode_shlibpath_var=no
8997      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8998      hardcode_libdir_separator=':'
8999      link_all_deplibs=yes
9000      export_dynamic_flag_spec='${wl}-Bexport'
9001      runpath_var='LD_RUN_PATH'
9002
9003      if test "$GCC" = yes; then
9004	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9005	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9006      else
9007	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9008	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9009      fi
9010      ;;
9011
9012    uts4*)
9013      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9014      hardcode_libdir_flag_spec='-L$libdir'
9015      hardcode_shlibpath_var=no
9016      ;;
9017
9018    *)
9019      ld_shlibs=no
9020      ;;
9021    esac
9022  fi
9023
9024{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9025$as_echo "$ld_shlibs" >&6; }
9026test "$ld_shlibs" = no && can_build_shared=no
9027
9028#
9029# Do we need to explicitly link libc?
9030#
9031case "x$archive_cmds_need_lc" in
9032x|xyes)
9033  # Assume -lc should be added
9034  archive_cmds_need_lc=yes
9035
9036  if test "$enable_shared" = yes && test "$GCC" = yes; then
9037    case $archive_cmds in
9038    *'~'*)
9039      # FIXME: we may have to deal with multi-command sequences.
9040      ;;
9041    '$CC '*)
9042      # Test whether the compiler implicitly links with -lc since on some
9043      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9044      # to ld, don't add -lc before -lgcc.
9045      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9046$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9047      $rm conftest*
9048      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9049
9050      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9051  (eval $ac_compile) 2>&5
9052  ac_status=$?
9053  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054  (exit $ac_status); } 2>conftest.err; then
9055        soname=conftest
9056        lib=conftest
9057        libobjs=conftest.$ac_objext
9058        deplibs=
9059        wl=$lt_prog_compiler_wl
9060	pic_flag=$lt_prog_compiler_pic
9061        compiler_flags=-v
9062        linker_flags=-v
9063        verstring=
9064        output_objdir=.
9065        libname=conftest
9066        lt_save_allow_undefined_flag=$allow_undefined_flag
9067        allow_undefined_flag=
9068        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9069  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9070  ac_status=$?
9071  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072  (exit $ac_status); }
9073        then
9074	  archive_cmds_need_lc=no
9075        else
9076	  archive_cmds_need_lc=yes
9077        fi
9078        allow_undefined_flag=$lt_save_allow_undefined_flag
9079      else
9080        cat conftest.err 1>&5
9081      fi
9082      $rm conftest*
9083      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9084$as_echo "$archive_cmds_need_lc" >&6; }
9085      ;;
9086    esac
9087  fi
9088  ;;
9089esac
9090
9091{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9092$as_echo_n "checking dynamic linker characteristics... " >&6; }
9093library_names_spec=
9094libname_spec='lib$name'
9095soname_spec=
9096shrext_cmds=".so"
9097postinstall_cmds=
9098postuninstall_cmds=
9099finish_cmds=
9100finish_eval=
9101shlibpath_var=
9102shlibpath_overrides_runpath=unknown
9103version_type=none
9104dynamic_linker="$host_os ld.so"
9105sys_lib_dlsearch_path_spec="/lib /usr/lib"
9106
9107if test "$GCC" = yes; then
9108  case $host_os in
9109    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9110    *) lt_awk_arg="/^libraries:/" ;;
9111  esac
9112  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9113  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9114    # if the path contains ";" then we assume it to be the separator
9115    # otherwise default to the standard path separator (i.e. ":") - it is
9116    # assumed that no part of a normal pathname contains ";" but that should
9117    # okay in the real world where ";" in dirpaths is itself problematic.
9118    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9119  else
9120    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9121  fi
9122  # Ok, now we have the path, separated by spaces, we can step through it
9123  # and add multilib dir if necessary.
9124  lt_tmp_lt_search_path_spec=
9125  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9126  for lt_sys_path in $lt_search_path_spec; do
9127    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9128      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9129    else
9130      test -d "$lt_sys_path" && \
9131	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9132    fi
9133  done
9134  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9135BEGIN {RS=" "; FS="/|\n";} {
9136  lt_foo="";
9137  lt_count=0;
9138  for (lt_i = NF; lt_i > 0; lt_i--) {
9139    if ($lt_i != "" && $lt_i != ".") {
9140      if ($lt_i == "..") {
9141        lt_count++;
9142      } else {
9143        if (lt_count == 0) {
9144          lt_foo="/" $lt_i lt_foo;
9145        } else {
9146          lt_count--;
9147        }
9148      }
9149    }
9150  }
9151  if (lt_foo != "") { lt_freq[lt_foo]++; }
9152  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9153}'`
9154  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9155else
9156  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9157fi
9158need_lib_prefix=unknown
9159hardcode_into_libs=no
9160
9161# when you set need_version to no, make sure it does not cause -set_version
9162# flags to be left without arguments
9163need_version=unknown
9164
9165case $host_os in
9166aix3*)
9167  version_type=linux
9168  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9169  shlibpath_var=LIBPATH
9170
9171  # AIX 3 has no versioning support, so we append a major version to the name.
9172  soname_spec='${libname}${release}${shared_ext}$major'
9173  ;;
9174
9175aix[4-9]*)
9176  version_type=linux
9177  need_lib_prefix=no
9178  need_version=no
9179  hardcode_into_libs=yes
9180  if test "$host_cpu" = ia64; then
9181    # AIX 5 supports IA64
9182    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9183    shlibpath_var=LD_LIBRARY_PATH
9184  else
9185    # With GCC up to 2.95.x, collect2 would create an import file
9186    # for dependence libraries.  The import file would start with
9187    # the line `#! .'.  This would cause the generated library to
9188    # depend on `.', always an invalid library.  This was fixed in
9189    # development snapshots of GCC prior to 3.0.
9190    case $host_os in
9191      aix4 | aix4.[01] | aix4.[01].*)
9192      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9193	   echo ' yes '
9194	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9195	:
9196      else
9197	can_build_shared=no
9198      fi
9199      ;;
9200    esac
9201    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9202    # soname into executable. Probably we can add versioning support to
9203    # collect2, so additional links can be useful in future.
9204    if test "$aix_use_runtimelinking" = yes; then
9205      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9206      # instead of lib<name>.a to let people know that these are not
9207      # typical AIX shared libraries.
9208      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209    else
9210      # We preserve .a as extension for shared libraries through AIX4.2
9211      # and later when we are not doing run time linking.
9212      library_names_spec='${libname}${release}.a $libname.a'
9213      soname_spec='${libname}${release}${shared_ext}$major'
9214    fi
9215    shlibpath_var=LIBPATH
9216  fi
9217  ;;
9218
9219amigaos*)
9220  library_names_spec='$libname.ixlibrary $libname.a'
9221  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9222  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'
9223  ;;
9224
9225beos*)
9226  library_names_spec='${libname}${shared_ext}'
9227  dynamic_linker="$host_os ld.so"
9228  shlibpath_var=LIBRARY_PATH
9229  ;;
9230
9231bsdi[45]*)
9232  version_type=linux
9233  need_version=no
9234  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235  soname_spec='${libname}${release}${shared_ext}$major'
9236  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9237  shlibpath_var=LD_LIBRARY_PATH
9238  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9239  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9240  # the default ld.so.conf also contains /usr/contrib/lib and
9241  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9242  # libtool to hard-code these into programs
9243  ;;
9244
9245cygwin* | mingw* | pw32*)
9246  version_type=windows
9247  shrext_cmds=".dll"
9248  need_version=no
9249  need_lib_prefix=no
9250
9251  case $GCC,$host_os in
9252  yes,cygwin* | yes,mingw* | yes,pw32*)
9253    library_names_spec='$libname.dll.a'
9254    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9255    postinstall_cmds='base_file=`basename \${file}`~
9256      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9257      dldir=$destdir/`dirname \$dlpath`~
9258      test -d \$dldir || mkdir -p \$dldir~
9259      $install_prog $dir/$dlname \$dldir/$dlname~
9260      chmod a+x \$dldir/$dlname'
9261    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9262      dlpath=$dir/\$dldll~
9263       $rm \$dlpath'
9264    shlibpath_overrides_runpath=yes
9265
9266    case $host_os in
9267    cygwin*)
9268      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9269      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9270      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9271      ;;
9272    mingw*)
9273      # MinGW DLLs use traditional 'lib' prefix
9274      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9275      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9276      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9277        # It is most probably a Windows format PATH printed by
9278        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9279        # path with ; separators, and with drive letters. We can handle the
9280        # drive letters (cygwin fileutils understands them), so leave them,
9281        # especially as we might pass files found there to a mingw objdump,
9282        # which wouldn't understand a cygwinified path. Ahh.
9283        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9284      else
9285        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9286      fi
9287      ;;
9288    pw32*)
9289      # pw32 DLLs use 'pw' prefix rather than 'lib'
9290      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9291      ;;
9292    esac
9293    ;;
9294
9295  *)
9296    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9297    ;;
9298  esac
9299  dynamic_linker='Win32 ld.exe'
9300  # FIXME: first we should search . and the directory the executable is in
9301  shlibpath_var=PATH
9302  ;;
9303
9304darwin* | rhapsody*)
9305  dynamic_linker="$host_os dyld"
9306  version_type=darwin
9307  need_lib_prefix=no
9308  need_version=no
9309  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9310  soname_spec='${libname}${release}${major}$shared_ext'
9311  shlibpath_overrides_runpath=yes
9312  shlibpath_var=DYLD_LIBRARY_PATH
9313  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9314
9315  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9316  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9317  ;;
9318
9319dgux*)
9320  version_type=linux
9321  need_lib_prefix=no
9322  need_version=no
9323  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9324  soname_spec='${libname}${release}${shared_ext}$major'
9325  shlibpath_var=LD_LIBRARY_PATH
9326  ;;
9327
9328freebsd1*)
9329  dynamic_linker=no
9330  ;;
9331
9332freebsd* | dragonfly*)
9333  # DragonFly does not have aout.  When/if they implement a new
9334  # versioning mechanism, adjust this.
9335  if test -x /usr/bin/objformat; then
9336    objformat=`/usr/bin/objformat`
9337  else
9338    case $host_os in
9339    freebsd[123]*) objformat=aout ;;
9340    *) objformat=elf ;;
9341    esac
9342  fi
9343  version_type=freebsd-$objformat
9344  case $version_type in
9345    freebsd-elf*)
9346      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9347      need_version=no
9348      need_lib_prefix=no
9349      ;;
9350    freebsd-*)
9351      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9352      need_version=yes
9353      ;;
9354  esac
9355  shlibpath_var=LD_LIBRARY_PATH
9356  case $host_os in
9357  freebsd2*)
9358    shlibpath_overrides_runpath=yes
9359    ;;
9360  freebsd3.[01]* | freebsdelf3.[01]*)
9361    shlibpath_overrides_runpath=yes
9362    hardcode_into_libs=yes
9363    ;;
9364  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9365  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9366    shlibpath_overrides_runpath=no
9367    hardcode_into_libs=yes
9368    ;;
9369  *) # from 4.6 on, and DragonFly
9370    shlibpath_overrides_runpath=yes
9371    hardcode_into_libs=yes
9372    ;;
9373  esac
9374  ;;
9375
9376gnu*)
9377  version_type=linux
9378  need_lib_prefix=no
9379  need_version=no
9380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9381  soname_spec='${libname}${release}${shared_ext}$major'
9382  shlibpath_var=LD_LIBRARY_PATH
9383  hardcode_into_libs=yes
9384  ;;
9385
9386hpux9* | hpux10* | hpux11*)
9387  # Give a soname corresponding to the major version so that dld.sl refuses to
9388  # link against other versions.
9389  version_type=sunos
9390  need_lib_prefix=no
9391  need_version=no
9392  case $host_cpu in
9393  ia64*)
9394    shrext_cmds='.so'
9395    hardcode_into_libs=yes
9396    dynamic_linker="$host_os dld.so"
9397    shlibpath_var=LD_LIBRARY_PATH
9398    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9399    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9400    soname_spec='${libname}${release}${shared_ext}$major'
9401    if test "X$HPUX_IA64_MODE" = X32; then
9402      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9403    else
9404      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9405    fi
9406    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9407    ;;
9408   hppa*64*)
9409     shrext_cmds='.sl'
9410     hardcode_into_libs=yes
9411     dynamic_linker="$host_os dld.sl"
9412     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9413     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9414     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9415     soname_spec='${libname}${release}${shared_ext}$major'
9416     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9417     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9418     ;;
9419   *)
9420    shrext_cmds='.sl'
9421    dynamic_linker="$host_os dld.sl"
9422    shlibpath_var=SHLIB_PATH
9423    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9424    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9425    soname_spec='${libname}${release}${shared_ext}$major'
9426    ;;
9427  esac
9428  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9429  postinstall_cmds='chmod 555 $lib'
9430  ;;
9431
9432interix[3-9]*)
9433  version_type=linux
9434  need_lib_prefix=no
9435  need_version=no
9436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9437  soname_spec='${libname}${release}${shared_ext}$major'
9438  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9439  shlibpath_var=LD_LIBRARY_PATH
9440  shlibpath_overrides_runpath=no
9441  hardcode_into_libs=yes
9442  ;;
9443
9444irix5* | irix6* | nonstopux*)
9445  case $host_os in
9446    nonstopux*) version_type=nonstopux ;;
9447    *)
9448	if test "$lt_cv_prog_gnu_ld" = yes; then
9449		version_type=linux
9450	else
9451		version_type=irix
9452	fi ;;
9453  esac
9454  need_lib_prefix=no
9455  need_version=no
9456  soname_spec='${libname}${release}${shared_ext}$major'
9457  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9458  case $host_os in
9459  irix5* | nonstopux*)
9460    libsuff= shlibsuff=
9461    ;;
9462  *)
9463    case $LD in # libtool.m4 will add one of these switches to LD
9464    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9465      libsuff= shlibsuff= libmagic=32-bit;;
9466    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9467      libsuff=32 shlibsuff=N32 libmagic=N32;;
9468    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9469      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9470    *) libsuff= shlibsuff= libmagic=never-match;;
9471    esac
9472    ;;
9473  esac
9474  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9475  shlibpath_overrides_runpath=no
9476  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9477  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9478  hardcode_into_libs=yes
9479  ;;
9480
9481# No shared lib support for Linux oldld, aout, or coff.
9482linux*oldld* | linux*aout* | linux*coff*)
9483  dynamic_linker=no
9484  ;;
9485
9486# This must be Linux ELF.
9487linux* | k*bsd*-gnu)
9488  version_type=linux
9489  need_lib_prefix=no
9490  need_version=no
9491  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9492  soname_spec='${libname}${release}${shared_ext}$major'
9493  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9494  shlibpath_var=LD_LIBRARY_PATH
9495  shlibpath_overrides_runpath=no
9496  # This implies no fast_install, which is unacceptable.
9497  # Some rework will be needed to allow for fast_install
9498  # before this can be enabled.
9499  hardcode_into_libs=yes
9500  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9501  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9502
9503  # Append ld.so.conf contents to the search path
9504  if test -f /etc/ld.so.conf; then
9505    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' ' '`
9506    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9507  fi
9508
9509  # We used to test for /lib/ld.so.1 and disable shared libraries on
9510  # powerpc, because MkLinux only supported shared libraries with the
9511  # GNU dynamic linker.  Since this was broken with cross compilers,
9512  # most powerpc-linux boxes support dynamic linking these days and
9513  # people can always --disable-shared, the test was removed, and we
9514  # assume the GNU/Linux dynamic linker is in use.
9515  dynamic_linker='GNU/Linux ld.so'
9516  ;;
9517
9518netbsd*)
9519  version_type=sunos
9520  need_lib_prefix=no
9521  need_version=no
9522  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9523    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9524    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9525    dynamic_linker='NetBSD (a.out) ld.so'
9526  else
9527    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9528    soname_spec='${libname}${release}${shared_ext}$major'
9529    dynamic_linker='NetBSD ld.elf_so'
9530  fi
9531  shlibpath_var=LD_LIBRARY_PATH
9532  shlibpath_overrides_runpath=yes
9533  hardcode_into_libs=yes
9534  ;;
9535
9536newsos6)
9537  version_type=linux
9538  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9539  shlibpath_var=LD_LIBRARY_PATH
9540  shlibpath_overrides_runpath=yes
9541  ;;
9542
9543nto-qnx*)
9544  version_type=linux
9545  need_lib_prefix=no
9546  need_version=no
9547  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9548  soname_spec='${libname}${release}${shared_ext}$major'
9549  shlibpath_var=LD_LIBRARY_PATH
9550  shlibpath_overrides_runpath=yes
9551  ;;
9552
9553openbsd*)
9554  version_type=sunos
9555  sys_lib_dlsearch_path_spec="/usr/lib"
9556  need_lib_prefix=no
9557  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9558  case $host_os in
9559    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9560    *)                         need_version=no  ;;
9561  esac
9562  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9563  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9564  shlibpath_var=LD_LIBRARY_PATH
9565  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9566    case $host_os in
9567      openbsd2.[89] | openbsd2.[89].*)
9568	shlibpath_overrides_runpath=no
9569	;;
9570      *)
9571	shlibpath_overrides_runpath=yes
9572	;;
9573      esac
9574  else
9575    shlibpath_overrides_runpath=yes
9576  fi
9577  ;;
9578
9579os2*)
9580  libname_spec='$name'
9581  shrext_cmds=".dll"
9582  need_lib_prefix=no
9583  library_names_spec='$libname${shared_ext} $libname.a'
9584  dynamic_linker='OS/2 ld.exe'
9585  shlibpath_var=LIBPATH
9586  ;;
9587
9588osf3* | osf4* | osf5*)
9589  version_type=osf
9590  need_lib_prefix=no
9591  need_version=no
9592  soname_spec='${libname}${release}${shared_ext}$major'
9593  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9594  shlibpath_var=LD_LIBRARY_PATH
9595  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9596  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9597  ;;
9598
9599rdos*)
9600  dynamic_linker=no
9601  ;;
9602
9603solaris*)
9604  version_type=linux
9605  need_lib_prefix=no
9606  need_version=no
9607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9608  soname_spec='${libname}${release}${shared_ext}$major'
9609  shlibpath_var=LD_LIBRARY_PATH
9610  shlibpath_overrides_runpath=yes
9611  hardcode_into_libs=yes
9612  # ldd complains unless libraries are executable
9613  postinstall_cmds='chmod +x $lib'
9614  ;;
9615
9616sunos4*)
9617  version_type=sunos
9618  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9619  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9620  shlibpath_var=LD_LIBRARY_PATH
9621  shlibpath_overrides_runpath=yes
9622  if test "$with_gnu_ld" = yes; then
9623    need_lib_prefix=no
9624  fi
9625  need_version=yes
9626  ;;
9627
9628sysv4 | sysv4.3*)
9629  version_type=linux
9630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9631  soname_spec='${libname}${release}${shared_ext}$major'
9632  shlibpath_var=LD_LIBRARY_PATH
9633  case $host_vendor in
9634    sni)
9635      shlibpath_overrides_runpath=no
9636      need_lib_prefix=no
9637      export_dynamic_flag_spec='${wl}-Blargedynsym'
9638      runpath_var=LD_RUN_PATH
9639      ;;
9640    siemens)
9641      need_lib_prefix=no
9642      ;;
9643    motorola)
9644      need_lib_prefix=no
9645      need_version=no
9646      shlibpath_overrides_runpath=no
9647      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9648      ;;
9649  esac
9650  ;;
9651
9652sysv4*MP*)
9653  if test -d /usr/nec ;then
9654    version_type=linux
9655    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9656    soname_spec='$libname${shared_ext}.$major'
9657    shlibpath_var=LD_LIBRARY_PATH
9658  fi
9659  ;;
9660
9661sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9662  version_type=freebsd-elf
9663  need_lib_prefix=no
9664  need_version=no
9665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9666  soname_spec='${libname}${release}${shared_ext}$major'
9667  shlibpath_var=LD_LIBRARY_PATH
9668  hardcode_into_libs=yes
9669  if test "$with_gnu_ld" = yes; then
9670    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9671    shlibpath_overrides_runpath=no
9672  else
9673    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9674    shlibpath_overrides_runpath=yes
9675    case $host_os in
9676      sco3.2v5*)
9677        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9678	;;
9679    esac
9680  fi
9681  sys_lib_dlsearch_path_spec='/usr/lib'
9682  ;;
9683
9684uts4*)
9685  version_type=linux
9686  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9687  soname_spec='${libname}${release}${shared_ext}$major'
9688  shlibpath_var=LD_LIBRARY_PATH
9689  ;;
9690
9691*)
9692  dynamic_linker=no
9693  ;;
9694esac
9695{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9696$as_echo "$dynamic_linker" >&6; }
9697test "$dynamic_linker" = no && can_build_shared=no
9698
9699if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9700  $as_echo_n "(cached) " >&6
9701else
9702  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9703fi
9704
9705sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9706if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9707  $as_echo_n "(cached) " >&6
9708else
9709  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9710fi
9711
9712sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9713
9714variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9715if test "$GCC" = yes; then
9716  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9717fi
9718
9719{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9720$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9721hardcode_action=
9722if test -n "$hardcode_libdir_flag_spec" || \
9723   test -n "$runpath_var" || \
9724   test "X$hardcode_automatic" = "Xyes" ; then
9725
9726  # We can hardcode non-existant directories.
9727  if test "$hardcode_direct" != no &&
9728     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9729     # have to relink, otherwise we might link with an installed library
9730     # when we should be linking with a yet-to-be-installed one
9731     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9732     test "$hardcode_minus_L" != no; then
9733    # Linking always hardcodes the temporary library directory.
9734    hardcode_action=relink
9735  else
9736    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9737    hardcode_action=immediate
9738  fi
9739else
9740  # We cannot hardcode anything, or else we can only hardcode existing
9741  # directories.
9742  hardcode_action=unsupported
9743fi
9744{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9745$as_echo "$hardcode_action" >&6; }
9746
9747if test "$hardcode_action" = relink; then
9748  # Fast installation is not supported
9749  enable_fast_install=no
9750elif test "$shlibpath_overrides_runpath" = yes ||
9751     test "$enable_shared" = no; then
9752  # Fast installation is not necessary
9753  enable_fast_install=needless
9754fi
9755
9756striplib=
9757old_striplib=
9758{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9759$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9760if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9761  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9762  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9763  { $as_echo "$as_me:$LINENO: result: yes" >&5
9764$as_echo "yes" >&6; }
9765else
9766# FIXME - insert some real tests, host_os isn't really good enough
9767  case $host_os in
9768   darwin*)
9769       if test -n "$STRIP" ; then
9770         striplib="$STRIP -x"
9771         old_striplib="$STRIP -S"
9772         { $as_echo "$as_me:$LINENO: result: yes" >&5
9773$as_echo "yes" >&6; }
9774       else
9775  { $as_echo "$as_me:$LINENO: result: no" >&5
9776$as_echo "no" >&6; }
9777fi
9778       ;;
9779   *)
9780  { $as_echo "$as_me:$LINENO: result: no" >&5
9781$as_echo "no" >&6; }
9782    ;;
9783  esac
9784fi
9785
9786if test "x$enable_dlopen" != xyes; then
9787  enable_dlopen=unknown
9788  enable_dlopen_self=unknown
9789  enable_dlopen_self_static=unknown
9790else
9791  lt_cv_dlopen=no
9792  lt_cv_dlopen_libs=
9793
9794  case $host_os in
9795  beos*)
9796    lt_cv_dlopen="load_add_on"
9797    lt_cv_dlopen_libs=
9798    lt_cv_dlopen_self=yes
9799    ;;
9800
9801  mingw* | pw32*)
9802    lt_cv_dlopen="LoadLibrary"
9803    lt_cv_dlopen_libs=
9804   ;;
9805
9806  cygwin*)
9807    lt_cv_dlopen="dlopen"
9808    lt_cv_dlopen_libs=
9809   ;;
9810
9811  darwin*)
9812  # if libdl is installed we need to link against it
9813    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9814$as_echo_n "checking for dlopen in -ldl... " >&6; }
9815if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9816  $as_echo_n "(cached) " >&6
9817else
9818  ac_check_lib_save_LIBS=$LIBS
9819LIBS="-ldl  $LIBS"
9820cat >conftest.$ac_ext <<_ACEOF
9821/* confdefs.h.  */
9822_ACEOF
9823cat confdefs.h >>conftest.$ac_ext
9824cat >>conftest.$ac_ext <<_ACEOF
9825/* end confdefs.h.  */
9826
9827/* Override any GCC internal prototype to avoid an error.
9828   Use char because int might match the return type of a GCC
9829   builtin and then its argument prototype would still apply.  */
9830#ifdef __cplusplus
9831extern "C"
9832#endif
9833char dlopen ();
9834int
9835main ()
9836{
9837return dlopen ();
9838  ;
9839  return 0;
9840}
9841_ACEOF
9842rm -f conftest.$ac_objext conftest$ac_exeext
9843if { (ac_try="$ac_link"
9844case "(($ac_try" in
9845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846  *) ac_try_echo=$ac_try;;
9847esac
9848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9849$as_echo "$ac_try_echo") >&5
9850  (eval "$ac_link") 2>conftest.er1
9851  ac_status=$?
9852  grep -v '^ *+' conftest.er1 >conftest.err
9853  rm -f conftest.er1
9854  cat conftest.err >&5
9855  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856  (exit $ac_status); } && {
9857	 test -z "$ac_c_werror_flag" ||
9858	 test ! -s conftest.err
9859       } && test -s conftest$ac_exeext && {
9860	 test "$cross_compiling" = yes ||
9861	 $as_test_x conftest$ac_exeext
9862       }; then
9863  ac_cv_lib_dl_dlopen=yes
9864else
9865  $as_echo "$as_me: failed program was:" >&5
9866sed 's/^/| /' conftest.$ac_ext >&5
9867
9868	ac_cv_lib_dl_dlopen=no
9869fi
9870
9871rm -rf conftest.dSYM
9872rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9873      conftest$ac_exeext conftest.$ac_ext
9874LIBS=$ac_check_lib_save_LIBS
9875fi
9876{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9877$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9878if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9879  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9880else
9881
9882    lt_cv_dlopen="dyld"
9883    lt_cv_dlopen_libs=
9884    lt_cv_dlopen_self=yes
9885
9886fi
9887
9888   ;;
9889
9890  *)
9891    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9892$as_echo_n "checking for shl_load... " >&6; }
9893if test "${ac_cv_func_shl_load+set}" = set; then
9894  $as_echo_n "(cached) " >&6
9895else
9896  cat >conftest.$ac_ext <<_ACEOF
9897/* confdefs.h.  */
9898_ACEOF
9899cat confdefs.h >>conftest.$ac_ext
9900cat >>conftest.$ac_ext <<_ACEOF
9901/* end confdefs.h.  */
9902/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9903   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9904#define shl_load innocuous_shl_load
9905
9906/* System header to define __stub macros and hopefully few prototypes,
9907    which can conflict with char shl_load (); below.
9908    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9909    <limits.h> exists even on freestanding compilers.  */
9910
9911#ifdef __STDC__
9912# include <limits.h>
9913#else
9914# include <assert.h>
9915#endif
9916
9917#undef shl_load
9918
9919/* Override any GCC internal prototype to avoid an error.
9920   Use char because int might match the return type of a GCC
9921   builtin and then its argument prototype would still apply.  */
9922#ifdef __cplusplus
9923extern "C"
9924#endif
9925char shl_load ();
9926/* The GNU C library defines this for functions which it implements
9927    to always fail with ENOSYS.  Some functions are actually named
9928    something starting with __ and the normal name is an alias.  */
9929#if defined __stub_shl_load || defined __stub___shl_load
9930choke me
9931#endif
9932
9933int
9934main ()
9935{
9936return shl_load ();
9937  ;
9938  return 0;
9939}
9940_ACEOF
9941rm -f conftest.$ac_objext conftest$ac_exeext
9942if { (ac_try="$ac_link"
9943case "(($ac_try" in
9944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9945  *) ac_try_echo=$ac_try;;
9946esac
9947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9948$as_echo "$ac_try_echo") >&5
9949  (eval "$ac_link") 2>conftest.er1
9950  ac_status=$?
9951  grep -v '^ *+' conftest.er1 >conftest.err
9952  rm -f conftest.er1
9953  cat conftest.err >&5
9954  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955  (exit $ac_status); } && {
9956	 test -z "$ac_c_werror_flag" ||
9957	 test ! -s conftest.err
9958       } && test -s conftest$ac_exeext && {
9959	 test "$cross_compiling" = yes ||
9960	 $as_test_x conftest$ac_exeext
9961       }; then
9962  ac_cv_func_shl_load=yes
9963else
9964  $as_echo "$as_me: failed program was:" >&5
9965sed 's/^/| /' conftest.$ac_ext >&5
9966
9967	ac_cv_func_shl_load=no
9968fi
9969
9970rm -rf conftest.dSYM
9971rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9972      conftest$ac_exeext conftest.$ac_ext
9973fi
9974{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9975$as_echo "$ac_cv_func_shl_load" >&6; }
9976if test "x$ac_cv_func_shl_load" = x""yes; then
9977  lt_cv_dlopen="shl_load"
9978else
9979  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9980$as_echo_n "checking for shl_load in -ldld... " >&6; }
9981if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9982  $as_echo_n "(cached) " >&6
9983else
9984  ac_check_lib_save_LIBS=$LIBS
9985LIBS="-ldld  $LIBS"
9986cat >conftest.$ac_ext <<_ACEOF
9987/* confdefs.h.  */
9988_ACEOF
9989cat confdefs.h >>conftest.$ac_ext
9990cat >>conftest.$ac_ext <<_ACEOF
9991/* end confdefs.h.  */
9992
9993/* Override any GCC internal prototype to avoid an error.
9994   Use char because int might match the return type of a GCC
9995   builtin and then its argument prototype would still apply.  */
9996#ifdef __cplusplus
9997extern "C"
9998#endif
9999char shl_load ();
10000int
10001main ()
10002{
10003return shl_load ();
10004  ;
10005  return 0;
10006}
10007_ACEOF
10008rm -f conftest.$ac_objext conftest$ac_exeext
10009if { (ac_try="$ac_link"
10010case "(($ac_try" in
10011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10012  *) ac_try_echo=$ac_try;;
10013esac
10014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10015$as_echo "$ac_try_echo") >&5
10016  (eval "$ac_link") 2>conftest.er1
10017  ac_status=$?
10018  grep -v '^ *+' conftest.er1 >conftest.err
10019  rm -f conftest.er1
10020  cat conftest.err >&5
10021  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022  (exit $ac_status); } && {
10023	 test -z "$ac_c_werror_flag" ||
10024	 test ! -s conftest.err
10025       } && test -s conftest$ac_exeext && {
10026	 test "$cross_compiling" = yes ||
10027	 $as_test_x conftest$ac_exeext
10028       }; then
10029  ac_cv_lib_dld_shl_load=yes
10030else
10031  $as_echo "$as_me: failed program was:" >&5
10032sed 's/^/| /' conftest.$ac_ext >&5
10033
10034	ac_cv_lib_dld_shl_load=no
10035fi
10036
10037rm -rf conftest.dSYM
10038rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10039      conftest$ac_exeext conftest.$ac_ext
10040LIBS=$ac_check_lib_save_LIBS
10041fi
10042{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10043$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10044if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10045  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10046else
10047  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10048$as_echo_n "checking for dlopen... " >&6; }
10049if test "${ac_cv_func_dlopen+set}" = set; then
10050  $as_echo_n "(cached) " >&6
10051else
10052  cat >conftest.$ac_ext <<_ACEOF
10053/* confdefs.h.  */
10054_ACEOF
10055cat confdefs.h >>conftest.$ac_ext
10056cat >>conftest.$ac_ext <<_ACEOF
10057/* end confdefs.h.  */
10058/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10059   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10060#define dlopen innocuous_dlopen
10061
10062/* System header to define __stub macros and hopefully few prototypes,
10063    which can conflict with char dlopen (); below.
10064    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10065    <limits.h> exists even on freestanding compilers.  */
10066
10067#ifdef __STDC__
10068# include <limits.h>
10069#else
10070# include <assert.h>
10071#endif
10072
10073#undef dlopen
10074
10075/* Override any GCC internal prototype to avoid an error.
10076   Use char because int might match the return type of a GCC
10077   builtin and then its argument prototype would still apply.  */
10078#ifdef __cplusplus
10079extern "C"
10080#endif
10081char dlopen ();
10082/* The GNU C library defines this for functions which it implements
10083    to always fail with ENOSYS.  Some functions are actually named
10084    something starting with __ and the normal name is an alias.  */
10085#if defined __stub_dlopen || defined __stub___dlopen
10086choke me
10087#endif
10088
10089int
10090main ()
10091{
10092return dlopen ();
10093  ;
10094  return 0;
10095}
10096_ACEOF
10097rm -f conftest.$ac_objext conftest$ac_exeext
10098if { (ac_try="$ac_link"
10099case "(($ac_try" in
10100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10101  *) ac_try_echo=$ac_try;;
10102esac
10103eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10104$as_echo "$ac_try_echo") >&5
10105  (eval "$ac_link") 2>conftest.er1
10106  ac_status=$?
10107  grep -v '^ *+' conftest.er1 >conftest.err
10108  rm -f conftest.er1
10109  cat conftest.err >&5
10110  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111  (exit $ac_status); } && {
10112	 test -z "$ac_c_werror_flag" ||
10113	 test ! -s conftest.err
10114       } && test -s conftest$ac_exeext && {
10115	 test "$cross_compiling" = yes ||
10116	 $as_test_x conftest$ac_exeext
10117       }; then
10118  ac_cv_func_dlopen=yes
10119else
10120  $as_echo "$as_me: failed program was:" >&5
10121sed 's/^/| /' conftest.$ac_ext >&5
10122
10123	ac_cv_func_dlopen=no
10124fi
10125
10126rm -rf conftest.dSYM
10127rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10128      conftest$ac_exeext conftest.$ac_ext
10129fi
10130{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10131$as_echo "$ac_cv_func_dlopen" >&6; }
10132if test "x$ac_cv_func_dlopen" = x""yes; then
10133  lt_cv_dlopen="dlopen"
10134else
10135  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10136$as_echo_n "checking for dlopen in -ldl... " >&6; }
10137if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10138  $as_echo_n "(cached) " >&6
10139else
10140  ac_check_lib_save_LIBS=$LIBS
10141LIBS="-ldl  $LIBS"
10142cat >conftest.$ac_ext <<_ACEOF
10143/* confdefs.h.  */
10144_ACEOF
10145cat confdefs.h >>conftest.$ac_ext
10146cat >>conftest.$ac_ext <<_ACEOF
10147/* end confdefs.h.  */
10148
10149/* Override any GCC internal prototype to avoid an error.
10150   Use char because int might match the return type of a GCC
10151   builtin and then its argument prototype would still apply.  */
10152#ifdef __cplusplus
10153extern "C"
10154#endif
10155char dlopen ();
10156int
10157main ()
10158{
10159return dlopen ();
10160  ;
10161  return 0;
10162}
10163_ACEOF
10164rm -f conftest.$ac_objext conftest$ac_exeext
10165if { (ac_try="$ac_link"
10166case "(($ac_try" in
10167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168  *) ac_try_echo=$ac_try;;
10169esac
10170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10171$as_echo "$ac_try_echo") >&5
10172  (eval "$ac_link") 2>conftest.er1
10173  ac_status=$?
10174  grep -v '^ *+' conftest.er1 >conftest.err
10175  rm -f conftest.er1
10176  cat conftest.err >&5
10177  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178  (exit $ac_status); } && {
10179	 test -z "$ac_c_werror_flag" ||
10180	 test ! -s conftest.err
10181       } && test -s conftest$ac_exeext && {
10182	 test "$cross_compiling" = yes ||
10183	 $as_test_x conftest$ac_exeext
10184       }; then
10185  ac_cv_lib_dl_dlopen=yes
10186else
10187  $as_echo "$as_me: failed program was:" >&5
10188sed 's/^/| /' conftest.$ac_ext >&5
10189
10190	ac_cv_lib_dl_dlopen=no
10191fi
10192
10193rm -rf conftest.dSYM
10194rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10195      conftest$ac_exeext conftest.$ac_ext
10196LIBS=$ac_check_lib_save_LIBS
10197fi
10198{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10199$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10200if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10201  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10202else
10203  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10204$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10205if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10206  $as_echo_n "(cached) " >&6
10207else
10208  ac_check_lib_save_LIBS=$LIBS
10209LIBS="-lsvld  $LIBS"
10210cat >conftest.$ac_ext <<_ACEOF
10211/* confdefs.h.  */
10212_ACEOF
10213cat confdefs.h >>conftest.$ac_ext
10214cat >>conftest.$ac_ext <<_ACEOF
10215/* end confdefs.h.  */
10216
10217/* Override any GCC internal prototype to avoid an error.
10218   Use char because int might match the return type of a GCC
10219   builtin and then its argument prototype would still apply.  */
10220#ifdef __cplusplus
10221extern "C"
10222#endif
10223char dlopen ();
10224int
10225main ()
10226{
10227return dlopen ();
10228  ;
10229  return 0;
10230}
10231_ACEOF
10232rm -f conftest.$ac_objext conftest$ac_exeext
10233if { (ac_try="$ac_link"
10234case "(($ac_try" in
10235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236  *) ac_try_echo=$ac_try;;
10237esac
10238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10239$as_echo "$ac_try_echo") >&5
10240  (eval "$ac_link") 2>conftest.er1
10241  ac_status=$?
10242  grep -v '^ *+' conftest.er1 >conftest.err
10243  rm -f conftest.er1
10244  cat conftest.err >&5
10245  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246  (exit $ac_status); } && {
10247	 test -z "$ac_c_werror_flag" ||
10248	 test ! -s conftest.err
10249       } && test -s conftest$ac_exeext && {
10250	 test "$cross_compiling" = yes ||
10251	 $as_test_x conftest$ac_exeext
10252       }; then
10253  ac_cv_lib_svld_dlopen=yes
10254else
10255  $as_echo "$as_me: failed program was:" >&5
10256sed 's/^/| /' conftest.$ac_ext >&5
10257
10258	ac_cv_lib_svld_dlopen=no
10259fi
10260
10261rm -rf conftest.dSYM
10262rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10263      conftest$ac_exeext conftest.$ac_ext
10264LIBS=$ac_check_lib_save_LIBS
10265fi
10266{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10267$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10268if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10269  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10270else
10271  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10272$as_echo_n "checking for dld_link in -ldld... " >&6; }
10273if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10274  $as_echo_n "(cached) " >&6
10275else
10276  ac_check_lib_save_LIBS=$LIBS
10277LIBS="-ldld  $LIBS"
10278cat >conftest.$ac_ext <<_ACEOF
10279/* confdefs.h.  */
10280_ACEOF
10281cat confdefs.h >>conftest.$ac_ext
10282cat >>conftest.$ac_ext <<_ACEOF
10283/* end confdefs.h.  */
10284
10285/* Override any GCC internal prototype to avoid an error.
10286   Use char because int might match the return type of a GCC
10287   builtin and then its argument prototype would still apply.  */
10288#ifdef __cplusplus
10289extern "C"
10290#endif
10291char dld_link ();
10292int
10293main ()
10294{
10295return dld_link ();
10296  ;
10297  return 0;
10298}
10299_ACEOF
10300rm -f conftest.$ac_objext conftest$ac_exeext
10301if { (ac_try="$ac_link"
10302case "(($ac_try" in
10303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304  *) ac_try_echo=$ac_try;;
10305esac
10306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10307$as_echo "$ac_try_echo") >&5
10308  (eval "$ac_link") 2>conftest.er1
10309  ac_status=$?
10310  grep -v '^ *+' conftest.er1 >conftest.err
10311  rm -f conftest.er1
10312  cat conftest.err >&5
10313  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314  (exit $ac_status); } && {
10315	 test -z "$ac_c_werror_flag" ||
10316	 test ! -s conftest.err
10317       } && test -s conftest$ac_exeext && {
10318	 test "$cross_compiling" = yes ||
10319	 $as_test_x conftest$ac_exeext
10320       }; then
10321  ac_cv_lib_dld_dld_link=yes
10322else
10323  $as_echo "$as_me: failed program was:" >&5
10324sed 's/^/| /' conftest.$ac_ext >&5
10325
10326	ac_cv_lib_dld_dld_link=no
10327fi
10328
10329rm -rf conftest.dSYM
10330rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10331      conftest$ac_exeext conftest.$ac_ext
10332LIBS=$ac_check_lib_save_LIBS
10333fi
10334{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10335$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10336if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10337  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10338fi
10339
10340
10341fi
10342
10343
10344fi
10345
10346
10347fi
10348
10349
10350fi
10351
10352
10353fi
10354
10355    ;;
10356  esac
10357
10358  if test "x$lt_cv_dlopen" != xno; then
10359    enable_dlopen=yes
10360  else
10361    enable_dlopen=no
10362  fi
10363
10364  case $lt_cv_dlopen in
10365  dlopen)
10366    save_CPPFLAGS="$CPPFLAGS"
10367    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10368
10369    save_LDFLAGS="$LDFLAGS"
10370    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10371
10372    save_LIBS="$LIBS"
10373    LIBS="$lt_cv_dlopen_libs $LIBS"
10374
10375    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10376$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10377if test "${lt_cv_dlopen_self+set}" = set; then
10378  $as_echo_n "(cached) " >&6
10379else
10380  	  if test "$cross_compiling" = yes; then :
10381  lt_cv_dlopen_self=cross
10382else
10383  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10384  lt_status=$lt_dlunknown
10385  cat > conftest.$ac_ext <<EOF
10386#line 10386 "configure"
10387#include "confdefs.h"
10388
10389#if HAVE_DLFCN_H
10390#include <dlfcn.h>
10391#endif
10392
10393#include <stdio.h>
10394
10395#ifdef RTLD_GLOBAL
10396#  define LT_DLGLOBAL		RTLD_GLOBAL
10397#else
10398#  ifdef DL_GLOBAL
10399#    define LT_DLGLOBAL		DL_GLOBAL
10400#  else
10401#    define LT_DLGLOBAL		0
10402#  endif
10403#endif
10404
10405/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10406   find out it does not work in some platform. */
10407#ifndef LT_DLLAZY_OR_NOW
10408#  ifdef RTLD_LAZY
10409#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10410#  else
10411#    ifdef DL_LAZY
10412#      define LT_DLLAZY_OR_NOW		DL_LAZY
10413#    else
10414#      ifdef RTLD_NOW
10415#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10416#      else
10417#        ifdef DL_NOW
10418#          define LT_DLLAZY_OR_NOW	DL_NOW
10419#        else
10420#          define LT_DLLAZY_OR_NOW	0
10421#        endif
10422#      endif
10423#    endif
10424#  endif
10425#endif
10426
10427#ifdef __cplusplus
10428extern "C" void exit (int);
10429#endif
10430
10431void fnord() { int i=42;}
10432int main ()
10433{
10434  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10435  int status = $lt_dlunknown;
10436
10437  if (self)
10438    {
10439      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10440      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10441      /* dlclose (self); */
10442    }
10443  else
10444    puts (dlerror ());
10445
10446    exit (status);
10447}
10448EOF
10449  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10450  (eval $ac_link) 2>&5
10451  ac_status=$?
10452  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10454    (./conftest; exit; ) >&5 2>/dev/null
10455    lt_status=$?
10456    case x$lt_status in
10457      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10458      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10459      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10460    esac
10461  else :
10462    # compilation failed
10463    lt_cv_dlopen_self=no
10464  fi
10465fi
10466rm -fr conftest*
10467
10468
10469fi
10470{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10471$as_echo "$lt_cv_dlopen_self" >&6; }
10472
10473    if test "x$lt_cv_dlopen_self" = xyes; then
10474      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10475      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10476$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10477if test "${lt_cv_dlopen_self_static+set}" = set; then
10478  $as_echo_n "(cached) " >&6
10479else
10480  	  if test "$cross_compiling" = yes; then :
10481  lt_cv_dlopen_self_static=cross
10482else
10483  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10484  lt_status=$lt_dlunknown
10485  cat > conftest.$ac_ext <<EOF
10486#line 10486 "configure"
10487#include "confdefs.h"
10488
10489#if HAVE_DLFCN_H
10490#include <dlfcn.h>
10491#endif
10492
10493#include <stdio.h>
10494
10495#ifdef RTLD_GLOBAL
10496#  define LT_DLGLOBAL		RTLD_GLOBAL
10497#else
10498#  ifdef DL_GLOBAL
10499#    define LT_DLGLOBAL		DL_GLOBAL
10500#  else
10501#    define LT_DLGLOBAL		0
10502#  endif
10503#endif
10504
10505/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10506   find out it does not work in some platform. */
10507#ifndef LT_DLLAZY_OR_NOW
10508#  ifdef RTLD_LAZY
10509#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10510#  else
10511#    ifdef DL_LAZY
10512#      define LT_DLLAZY_OR_NOW		DL_LAZY
10513#    else
10514#      ifdef RTLD_NOW
10515#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10516#      else
10517#        ifdef DL_NOW
10518#          define LT_DLLAZY_OR_NOW	DL_NOW
10519#        else
10520#          define LT_DLLAZY_OR_NOW	0
10521#        endif
10522#      endif
10523#    endif
10524#  endif
10525#endif
10526
10527#ifdef __cplusplus
10528extern "C" void exit (int);
10529#endif
10530
10531void fnord() { int i=42;}
10532int main ()
10533{
10534  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10535  int status = $lt_dlunknown;
10536
10537  if (self)
10538    {
10539      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10540      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10541      /* dlclose (self); */
10542    }
10543  else
10544    puts (dlerror ());
10545
10546    exit (status);
10547}
10548EOF
10549  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10550  (eval $ac_link) 2>&5
10551  ac_status=$?
10552  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10554    (./conftest; exit; ) >&5 2>/dev/null
10555    lt_status=$?
10556    case x$lt_status in
10557      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10558      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10559      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10560    esac
10561  else :
10562    # compilation failed
10563    lt_cv_dlopen_self_static=no
10564  fi
10565fi
10566rm -fr conftest*
10567
10568
10569fi
10570{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10571$as_echo "$lt_cv_dlopen_self_static" >&6; }
10572    fi
10573
10574    CPPFLAGS="$save_CPPFLAGS"
10575    LDFLAGS="$save_LDFLAGS"
10576    LIBS="$save_LIBS"
10577    ;;
10578  esac
10579
10580  case $lt_cv_dlopen_self in
10581  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10582  *) enable_dlopen_self=unknown ;;
10583  esac
10584
10585  case $lt_cv_dlopen_self_static in
10586  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10587  *) enable_dlopen_self_static=unknown ;;
10588  esac
10589fi
10590
10591
10592# Report which library types will actually be built
10593{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10594$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10595{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10596$as_echo "$can_build_shared" >&6; }
10597
10598{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10599$as_echo_n "checking whether to build shared libraries... " >&6; }
10600test "$can_build_shared" = "no" && enable_shared=no
10601
10602# On AIX, shared libraries and static libraries use the same namespace, and
10603# are all built from PIC.
10604case $host_os in
10605aix3*)
10606  test "$enable_shared" = yes && enable_static=no
10607  if test -n "$RANLIB"; then
10608    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10609    postinstall_cmds='$RANLIB $lib'
10610  fi
10611  ;;
10612
10613aix[4-9]*)
10614  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10615    test "$enable_shared" = yes && enable_static=no
10616  fi
10617    ;;
10618esac
10619{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10620$as_echo "$enable_shared" >&6; }
10621
10622{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10623$as_echo_n "checking whether to build static libraries... " >&6; }
10624# Make sure either enable_shared or enable_static is yes.
10625test "$enable_shared" = yes || enable_static=yes
10626{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10627$as_echo "$enable_static" >&6; }
10628
10629# The else clause should only fire when bootstrapping the
10630# libtool distribution, otherwise you forgot to ship ltmain.sh
10631# with your package, and you will get complaints that there are
10632# no rules to generate ltmain.sh.
10633if test -f "$ltmain"; then
10634  # See if we are running on zsh, and set the options which allow our commands through
10635  # without removal of \ escapes.
10636  if test -n "${ZSH_VERSION+set}" ; then
10637    setopt NO_GLOB_SUBST
10638  fi
10639  # Now quote all the things that may contain metacharacters while being
10640  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10641  # variables and quote the copies for generation of the libtool script.
10642  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10643    SED SHELL STRIP \
10644    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10645    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10646    deplibs_check_method reload_flag reload_cmds need_locks \
10647    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10648    lt_cv_sys_global_symbol_to_c_name_address \
10649    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10650    old_postinstall_cmds old_postuninstall_cmds \
10651    compiler \
10652    CC \
10653    LD \
10654    lt_prog_compiler_wl \
10655    lt_prog_compiler_pic \
10656    lt_prog_compiler_static \
10657    lt_prog_compiler_no_builtin_flag \
10658    export_dynamic_flag_spec \
10659    thread_safe_flag_spec \
10660    whole_archive_flag_spec \
10661    enable_shared_with_static_runtimes \
10662    old_archive_cmds \
10663    old_archive_from_new_cmds \
10664    predep_objects \
10665    postdep_objects \
10666    predeps \
10667    postdeps \
10668    compiler_lib_search_path \
10669    compiler_lib_search_dirs \
10670    archive_cmds \
10671    archive_expsym_cmds \
10672    postinstall_cmds \
10673    postuninstall_cmds \
10674    old_archive_from_expsyms_cmds \
10675    allow_undefined_flag \
10676    no_undefined_flag \
10677    export_symbols_cmds \
10678    hardcode_libdir_flag_spec \
10679    hardcode_libdir_flag_spec_ld \
10680    hardcode_libdir_separator \
10681    hardcode_automatic \
10682    module_cmds \
10683    module_expsym_cmds \
10684    lt_cv_prog_compiler_c_o \
10685    fix_srcfile_path \
10686    exclude_expsyms \
10687    include_expsyms; do
10688
10689    case $var in
10690    old_archive_cmds | \
10691    old_archive_from_new_cmds | \
10692    archive_cmds | \
10693    archive_expsym_cmds | \
10694    module_cmds | \
10695    module_expsym_cmds | \
10696    old_archive_from_expsyms_cmds | \
10697    export_symbols_cmds | \
10698    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10699    postinstall_cmds | postuninstall_cmds | \
10700    old_postinstall_cmds | old_postuninstall_cmds | \
10701    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10702      # Double-quote double-evaled strings.
10703      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10704      ;;
10705    *)
10706      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10707      ;;
10708    esac
10709  done
10710
10711  case $lt_echo in
10712  *'\$0 --fallback-echo"')
10713    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10714    ;;
10715  esac
10716
10717cfgfile="${ofile}T"
10718  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10719  $rm -f "$cfgfile"
10720  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10721$as_echo "$as_me: creating $ofile" >&6;}
10722
10723  cat <<__EOF__ >> "$cfgfile"
10724#! $SHELL
10725
10726# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10727# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10728# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10729#
10730# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10731# Free Software Foundation, Inc.
10732#
10733# This file is part of GNU Libtool:
10734# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10735#
10736# This program is free software; you can redistribute it and/or modify
10737# it under the terms of the GNU General Public License as published by
10738# the Free Software Foundation; either version 2 of the License, or
10739# (at your option) any later version.
10740#
10741# This program is distributed in the hope that it will be useful, but
10742# WITHOUT ANY WARRANTY; without even the implied warranty of
10743# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10744# General Public License for more details.
10745#
10746# You should have received a copy of the GNU General Public License
10747# along with this program; if not, write to the Free Software
10748# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10749#
10750# As a special exception to the GNU General Public License, if you
10751# distribute this file as part of a program that contains a
10752# configuration script generated by Autoconf, you may include it under
10753# the same distribution terms that you use for the rest of that program.
10754
10755# A sed program that does not truncate output.
10756SED=$lt_SED
10757
10758# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10759Xsed="$SED -e 1s/^X//"
10760
10761# The HP-UX ksh and POSIX shell print the target directory to stdout
10762# if CDPATH is set.
10763(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10764
10765# The names of the tagged configurations supported by this script.
10766available_tags=
10767
10768# ### BEGIN LIBTOOL CONFIG
10769
10770# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10771
10772# Shell to use when invoking shell scripts.
10773SHELL=$lt_SHELL
10774
10775# Whether or not to build shared libraries.
10776build_libtool_libs=$enable_shared
10777
10778# Whether or not to build static libraries.
10779build_old_libs=$enable_static
10780
10781# Whether or not to add -lc for building shared libraries.
10782build_libtool_need_lc=$archive_cmds_need_lc
10783
10784# Whether or not to disallow shared libs when runtime libs are static
10785allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10786
10787# Whether or not to optimize for fast installation.
10788fast_install=$enable_fast_install
10789
10790# The host system.
10791host_alias=$host_alias
10792host=$host
10793host_os=$host_os
10794
10795# The build system.
10796build_alias=$build_alias
10797build=$build
10798build_os=$build_os
10799
10800# An echo program that does not interpret backslashes.
10801echo=$lt_echo
10802
10803# The archiver.
10804AR=$lt_AR
10805AR_FLAGS=$lt_AR_FLAGS
10806
10807# A C compiler.
10808LTCC=$lt_LTCC
10809
10810# LTCC compiler flags.
10811LTCFLAGS=$lt_LTCFLAGS
10812
10813# A language-specific compiler.
10814CC=$lt_compiler
10815
10816# Is the compiler the GNU C compiler?
10817with_gcc=$GCC
10818
10819# An ERE matcher.
10820EGREP=$lt_EGREP
10821
10822# The linker used to build libraries.
10823LD=$lt_LD
10824
10825# Whether we need hard or soft links.
10826LN_S=$lt_LN_S
10827
10828# A BSD-compatible nm program.
10829NM=$lt_NM
10830
10831# A symbol stripping program
10832STRIP=$lt_STRIP
10833
10834# Used to examine libraries when file_magic_cmd begins "file"
10835MAGIC_CMD=$MAGIC_CMD
10836
10837# Used on cygwin: DLL creation program.
10838DLLTOOL="$DLLTOOL"
10839
10840# Used on cygwin: object dumper.
10841OBJDUMP="$OBJDUMP"
10842
10843# Used on cygwin: assembler.
10844AS="$AS"
10845
10846# The name of the directory that contains temporary libtool files.
10847objdir=$objdir
10848
10849# How to create reloadable object files.
10850reload_flag=$lt_reload_flag
10851reload_cmds=$lt_reload_cmds
10852
10853# How to pass a linker flag through the compiler.
10854wl=$lt_lt_prog_compiler_wl
10855
10856# Object file suffix (normally "o").
10857objext="$ac_objext"
10858
10859# Old archive suffix (normally "a").
10860libext="$libext"
10861
10862# Shared library suffix (normally ".so").
10863shrext_cmds='$shrext_cmds'
10864
10865# Executable file suffix (normally "").
10866exeext="$exeext"
10867
10868# Additional compiler flags for building library objects.
10869pic_flag=$lt_lt_prog_compiler_pic
10870pic_mode=$pic_mode
10871
10872# What is the maximum length of a command?
10873max_cmd_len=$lt_cv_sys_max_cmd_len
10874
10875# Does compiler simultaneously support -c and -o options?
10876compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10877
10878# Must we lock files when doing compilation?
10879need_locks=$lt_need_locks
10880
10881# Do we need the lib prefix for modules?
10882need_lib_prefix=$need_lib_prefix
10883
10884# Do we need a version for libraries?
10885need_version=$need_version
10886
10887# Whether dlopen is supported.
10888dlopen_support=$enable_dlopen
10889
10890# Whether dlopen of programs is supported.
10891dlopen_self=$enable_dlopen_self
10892
10893# Whether dlopen of statically linked programs is supported.
10894dlopen_self_static=$enable_dlopen_self_static
10895
10896# Compiler flag to prevent dynamic linking.
10897link_static_flag=$lt_lt_prog_compiler_static
10898
10899# Compiler flag to turn off builtin functions.
10900no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10901
10902# Compiler flag to allow reflexive dlopens.
10903export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10904
10905# Compiler flag to generate shared objects directly from archives.
10906whole_archive_flag_spec=$lt_whole_archive_flag_spec
10907
10908# Compiler flag to generate thread-safe objects.
10909thread_safe_flag_spec=$lt_thread_safe_flag_spec
10910
10911# Library versioning type.
10912version_type=$version_type
10913
10914# Format of library name prefix.
10915libname_spec=$lt_libname_spec
10916
10917# List of archive names.  First name is the real one, the rest are links.
10918# The last name is the one that the linker finds with -lNAME.
10919library_names_spec=$lt_library_names_spec
10920
10921# The coded name of the library, if different from the real name.
10922soname_spec=$lt_soname_spec
10923
10924# Commands used to build and install an old-style archive.
10925RANLIB=$lt_RANLIB
10926old_archive_cmds=$lt_old_archive_cmds
10927old_postinstall_cmds=$lt_old_postinstall_cmds
10928old_postuninstall_cmds=$lt_old_postuninstall_cmds
10929
10930# Create an old-style archive from a shared archive.
10931old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10932
10933# Create a temporary old-style archive to link instead of a shared archive.
10934old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10935
10936# Commands used to build and install a shared archive.
10937archive_cmds=$lt_archive_cmds
10938archive_expsym_cmds=$lt_archive_expsym_cmds
10939postinstall_cmds=$lt_postinstall_cmds
10940postuninstall_cmds=$lt_postuninstall_cmds
10941
10942# Commands used to build a loadable module (assumed same as above if empty)
10943module_cmds=$lt_module_cmds
10944module_expsym_cmds=$lt_module_expsym_cmds
10945
10946# Commands to strip libraries.
10947old_striplib=$lt_old_striplib
10948striplib=$lt_striplib
10949
10950# Dependencies to place before the objects being linked to create a
10951# shared library.
10952predep_objects=$lt_predep_objects
10953
10954# Dependencies to place after the objects being linked to create a
10955# shared library.
10956postdep_objects=$lt_postdep_objects
10957
10958# Dependencies to place before the objects being linked to create a
10959# shared library.
10960predeps=$lt_predeps
10961
10962# Dependencies to place after the objects being linked to create a
10963# shared library.
10964postdeps=$lt_postdeps
10965
10966# The directories searched by this compiler when creating a shared
10967# library
10968compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10969
10970# The library search path used internally by the compiler when linking
10971# a shared library.
10972compiler_lib_search_path=$lt_compiler_lib_search_path
10973
10974# Method to check whether dependent libraries are shared objects.
10975deplibs_check_method=$lt_deplibs_check_method
10976
10977# Command to use when deplibs_check_method == file_magic.
10978file_magic_cmd=$lt_file_magic_cmd
10979
10980# Flag that allows shared libraries with undefined symbols to be built.
10981allow_undefined_flag=$lt_allow_undefined_flag
10982
10983# Flag that forces no undefined symbols.
10984no_undefined_flag=$lt_no_undefined_flag
10985
10986# Commands used to finish a libtool library installation in a directory.
10987finish_cmds=$lt_finish_cmds
10988
10989# Same as above, but a single script fragment to be evaled but not shown.
10990finish_eval=$lt_finish_eval
10991
10992# Take the output of nm and produce a listing of raw symbols and C names.
10993global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10994
10995# Transform the output of nm in a proper C declaration
10996global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10997
10998# Transform the output of nm in a C name address pair
10999global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11000
11001# This is the shared library runtime path variable.
11002runpath_var=$runpath_var
11003
11004# This is the shared library path variable.
11005shlibpath_var=$shlibpath_var
11006
11007# Is shlibpath searched before the hard-coded library search path?
11008shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11009
11010# How to hardcode a shared library path into an executable.
11011hardcode_action=$hardcode_action
11012
11013# Whether we should hardcode library paths into libraries.
11014hardcode_into_libs=$hardcode_into_libs
11015
11016# Flag to hardcode \$libdir into a binary during linking.
11017# This must work even if \$libdir does not exist.
11018hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11019
11020# If ld is used when linking, flag to hardcode \$libdir into
11021# a binary during linking. This must work even if \$libdir does
11022# not exist.
11023hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11024
11025# Whether we need a single -rpath flag with a separated argument.
11026hardcode_libdir_separator=$lt_hardcode_libdir_separator
11027
11028# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11029# resulting binary.
11030hardcode_direct=$hardcode_direct
11031
11032# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11033# resulting binary.
11034hardcode_minus_L=$hardcode_minus_L
11035
11036# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11037# the resulting binary.
11038hardcode_shlibpath_var=$hardcode_shlibpath_var
11039
11040# Set to yes if building a shared library automatically hardcodes DIR into the library
11041# and all subsequent libraries and executables linked against it.
11042hardcode_automatic=$hardcode_automatic
11043
11044# Variables whose values should be saved in libtool wrapper scripts and
11045# restored at relink time.
11046variables_saved_for_relink="$variables_saved_for_relink"
11047
11048# Whether libtool must link a program against all its dependency libraries.
11049link_all_deplibs=$link_all_deplibs
11050
11051# Compile-time system search path for libraries
11052sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11053
11054# Run-time system search path for libraries
11055sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11056
11057# Fix the shell variable \$srcfile for the compiler.
11058fix_srcfile_path=$lt_fix_srcfile_path
11059
11060# Set to yes if exported symbols are required.
11061always_export_symbols=$always_export_symbols
11062
11063# The commands to list exported symbols.
11064export_symbols_cmds=$lt_export_symbols_cmds
11065
11066# The commands to extract the exported symbol list from a shared archive.
11067extract_expsyms_cmds=$lt_extract_expsyms_cmds
11068
11069# Symbols that should not be listed in the preloaded symbols.
11070exclude_expsyms=$lt_exclude_expsyms
11071
11072# Symbols that must always be exported.
11073include_expsyms=$lt_include_expsyms
11074
11075# ### END LIBTOOL CONFIG
11076
11077__EOF__
11078
11079
11080  case $host_os in
11081  aix3*)
11082    cat <<\EOF >> "$cfgfile"
11083
11084# AIX sometimes has problems with the GCC collect2 program.  For some
11085# reason, if we set the COLLECT_NAMES environment variable, the problems
11086# vanish in a puff of smoke.
11087if test "X${COLLECT_NAMES+set}" != Xset; then
11088  COLLECT_NAMES=
11089  export COLLECT_NAMES
11090fi
11091EOF
11092    ;;
11093  esac
11094
11095  # We use sed instead of cat because bash on DJGPP gets confused if
11096  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11097  # text mode, it properly converts lines to CR/LF.  This bash problem
11098  # is reportedly fixed, but why not run on old versions too?
11099  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11100
11101  mv -f "$cfgfile" "$ofile" || \
11102    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11103  chmod +x "$ofile"
11104
11105else
11106  # If there is no Makefile yet, we rely on a make rule to execute
11107  # `config.status --recheck' to rerun these tests and create the
11108  # libtool script then.
11109  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11110  if test -f "$ltmain_in"; then
11111    test -f Makefile && make "$ltmain"
11112  fi
11113fi
11114
11115
11116ac_ext=c
11117ac_cpp='$CPP $CPPFLAGS'
11118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11120ac_compiler_gnu=$ac_cv_c_compiler_gnu
11121
11122CC="$lt_save_CC"
11123
11124
11125# Check whether --with-tags was given.
11126if test "${with_tags+set}" = set; then
11127  withval=$with_tags; tagnames="$withval"
11128fi
11129
11130
11131if test -f "$ltmain" && test -n "$tagnames"; then
11132  if test ! -f "${ofile}"; then
11133    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11134$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11135  fi
11136
11137  if test -z "$LTCC"; then
11138    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11139    if test -z "$LTCC"; then
11140      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11141$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11142    else
11143      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11144$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11145    fi
11146  fi
11147  if test -z "$LTCFLAGS"; then
11148    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11149  fi
11150
11151  # Extract list of available tagged configurations in $ofile.
11152  # Note that this assumes the entire list is on one line.
11153  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11154
11155  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11156  for tagname in $tagnames; do
11157    IFS="$lt_save_ifs"
11158    # Check whether tagname contains only valid characters
11159    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11160    "") ;;
11161    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11162$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11163   { (exit 1); exit 1; }; }
11164	;;
11165    esac
11166
11167    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11168    then
11169      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11170$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11171   { (exit 1); exit 1; }; }
11172    fi
11173
11174    # Update the list of available tags.
11175    if test -n "$tagname"; then
11176      echo appending configuration tag \"$tagname\" to $ofile
11177
11178      case $tagname in
11179      CXX)
11180	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11181	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11182	    (test "X$CXX" != "Xg++"))) ; then
11183	  ac_ext=cpp
11184ac_cpp='$CXXCPP $CPPFLAGS'
11185ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11186ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11187ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11188
11189
11190
11191
11192archive_cmds_need_lc_CXX=no
11193allow_undefined_flag_CXX=
11194always_export_symbols_CXX=no
11195archive_expsym_cmds_CXX=
11196export_dynamic_flag_spec_CXX=
11197hardcode_direct_CXX=no
11198hardcode_libdir_flag_spec_CXX=
11199hardcode_libdir_flag_spec_ld_CXX=
11200hardcode_libdir_separator_CXX=
11201hardcode_minus_L_CXX=no
11202hardcode_shlibpath_var_CXX=unsupported
11203hardcode_automatic_CXX=no
11204module_cmds_CXX=
11205module_expsym_cmds_CXX=
11206link_all_deplibs_CXX=unknown
11207old_archive_cmds_CXX=$old_archive_cmds
11208no_undefined_flag_CXX=
11209whole_archive_flag_spec_CXX=
11210enable_shared_with_static_runtimes_CXX=no
11211
11212# Dependencies to place before and after the object being linked:
11213predep_objects_CXX=
11214postdep_objects_CXX=
11215predeps_CXX=
11216postdeps_CXX=
11217compiler_lib_search_path_CXX=
11218compiler_lib_search_dirs_CXX=
11219
11220# Source file extension for C++ test sources.
11221ac_ext=cpp
11222
11223# Object file extension for compiled C++ test sources.
11224objext=o
11225objext_CXX=$objext
11226
11227# Code to be used in simple compile tests
11228lt_simple_compile_test_code="int some_variable = 0;"
11229
11230# Code to be used in simple link tests
11231lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11232
11233# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11234
11235# If no C compiler was specified, use CC.
11236LTCC=${LTCC-"$CC"}
11237
11238# If no C compiler flags were specified, use CFLAGS.
11239LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11240
11241# Allow CC to be a program name with arguments.
11242compiler=$CC
11243
11244
11245# save warnings/boilerplate of simple test code
11246ac_outfile=conftest.$ac_objext
11247echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11248eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11249_lt_compiler_boilerplate=`cat conftest.err`
11250$rm conftest*
11251
11252ac_outfile=conftest.$ac_objext
11253echo "$lt_simple_link_test_code" >conftest.$ac_ext
11254eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11255_lt_linker_boilerplate=`cat conftest.err`
11256$rm -r conftest*
11257
11258
11259# Allow CC to be a program name with arguments.
11260lt_save_CC=$CC
11261lt_save_LD=$LD
11262lt_save_GCC=$GCC
11263GCC=$GXX
11264lt_save_with_gnu_ld=$with_gnu_ld
11265lt_save_path_LD=$lt_cv_path_LD
11266if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11267  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11268else
11269  $as_unset lt_cv_prog_gnu_ld
11270fi
11271if test -n "${lt_cv_path_LDCXX+set}"; then
11272  lt_cv_path_LD=$lt_cv_path_LDCXX
11273else
11274  $as_unset lt_cv_path_LD
11275fi
11276test -z "${LDCXX+set}" || LD=$LDCXX
11277CC=${CXX-"c++"}
11278compiler=$CC
11279compiler_CXX=$CC
11280for cc_temp in $compiler""; do
11281  case $cc_temp in
11282    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11283    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11284    \-*) ;;
11285    *) break;;
11286  esac
11287done
11288cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11289
11290
11291# We don't want -fno-exception wen compiling C++ code, so set the
11292# no_builtin_flag separately
11293if test "$GXX" = yes; then
11294  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11295else
11296  lt_prog_compiler_no_builtin_flag_CXX=
11297fi
11298
11299if test "$GXX" = yes; then
11300  # Set up default GNU C++ configuration
11301
11302
11303# Check whether --with-gnu-ld was given.
11304if test "${with_gnu_ld+set}" = set; then
11305  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11306else
11307  with_gnu_ld=no
11308fi
11309
11310ac_prog=ld
11311if test "$GCC" = yes; then
11312  # Check if gcc -print-prog-name=ld gives a path.
11313  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11314$as_echo_n "checking for ld used by $CC... " >&6; }
11315  case $host in
11316  *-*-mingw*)
11317    # gcc leaves a trailing carriage return which upsets mingw
11318    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11319  *)
11320    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11321  esac
11322  case $ac_prog in
11323    # Accept absolute paths.
11324    [\\/]* | ?:[\\/]*)
11325      re_direlt='/[^/][^/]*/\.\./'
11326      # Canonicalize the pathname of ld
11327      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11328      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11329	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11330      done
11331      test -z "$LD" && LD="$ac_prog"
11332      ;;
11333  "")
11334    # If it fails, then pretend we aren't using GCC.
11335    ac_prog=ld
11336    ;;
11337  *)
11338    # If it is relative, then search for the first ld in PATH.
11339    with_gnu_ld=unknown
11340    ;;
11341  esac
11342elif test "$with_gnu_ld" = yes; then
11343  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11344$as_echo_n "checking for GNU ld... " >&6; }
11345else
11346  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11347$as_echo_n "checking for non-GNU ld... " >&6; }
11348fi
11349if test "${lt_cv_path_LD+set}" = set; then
11350  $as_echo_n "(cached) " >&6
11351else
11352  if test -z "$LD"; then
11353  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11354  for ac_dir in $PATH; do
11355    IFS="$lt_save_ifs"
11356    test -z "$ac_dir" && ac_dir=.
11357    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11358      lt_cv_path_LD="$ac_dir/$ac_prog"
11359      # Check to see if the program is GNU ld.  I'd rather use --version,
11360      # but apparently some variants of GNU ld only accept -v.
11361      # Break only if it was the GNU/non-GNU ld that we prefer.
11362      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11363      *GNU* | *'with BFD'*)
11364	test "$with_gnu_ld" != no && break
11365	;;
11366      *)
11367	test "$with_gnu_ld" != yes && break
11368	;;
11369      esac
11370    fi
11371  done
11372  IFS="$lt_save_ifs"
11373else
11374  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11375fi
11376fi
11377
11378LD="$lt_cv_path_LD"
11379if test -n "$LD"; then
11380  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11381$as_echo "$LD" >&6; }
11382else
11383  { $as_echo "$as_me:$LINENO: result: no" >&5
11384$as_echo "no" >&6; }
11385fi
11386test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11387$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11388   { (exit 1); exit 1; }; }
11389{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11390$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11391if test "${lt_cv_prog_gnu_ld+set}" = set; then
11392  $as_echo_n "(cached) " >&6
11393else
11394  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11395case `$LD -v 2>&1 </dev/null` in
11396*GNU* | *'with BFD'*)
11397  lt_cv_prog_gnu_ld=yes
11398  ;;
11399*)
11400  lt_cv_prog_gnu_ld=no
11401  ;;
11402esac
11403fi
11404{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11405$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11406with_gnu_ld=$lt_cv_prog_gnu_ld
11407
11408
11409
11410  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11411  # archiving commands below assume that GNU ld is being used.
11412  if test "$with_gnu_ld" = yes; then
11413    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11414    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'
11415
11416    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11417    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11418
11419    # If archive_cmds runs LD, not CC, wlarc should be empty
11420    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11421    #     investigate it a little bit more. (MM)
11422    wlarc='${wl}'
11423
11424    # ancient GNU ld didn't support --whole-archive et. al.
11425    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11426	grep 'no-whole-archive' > /dev/null; then
11427      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11428    else
11429      whole_archive_flag_spec_CXX=
11430    fi
11431  else
11432    with_gnu_ld=no
11433    wlarc=
11434
11435    # A generic and very simple default shared library creation
11436    # command for GNU C++ for the case where it uses the native
11437    # linker, instead of GNU ld.  If possible, this setting should
11438    # overridden to take advantage of the native linker features on
11439    # the platform it is being used on.
11440    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11441  fi
11442
11443  # Commands to make compiler produce verbose output that lists
11444  # what "hidden" libraries, object files and flags are used when
11445  # linking a shared library.
11446  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11447
11448else
11449  GXX=no
11450  with_gnu_ld=no
11451  wlarc=
11452fi
11453
11454# PORTME: fill in a description of your system's C++ link characteristics
11455{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11456$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11457ld_shlibs_CXX=yes
11458case $host_os in
11459  aix3*)
11460    # FIXME: insert proper C++ library support
11461    ld_shlibs_CXX=no
11462    ;;
11463  aix[4-9]*)
11464    if test "$host_cpu" = ia64; then
11465      # On IA64, the linker does run time linking by default, so we don't
11466      # have to do anything special.
11467      aix_use_runtimelinking=no
11468      exp_sym_flag='-Bexport'
11469      no_entry_flag=""
11470    else
11471      aix_use_runtimelinking=no
11472
11473      # Test if we are trying to use run time linking or normal
11474      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11475      # need to do runtime linking.
11476      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11477	for ld_flag in $LDFLAGS; do
11478	  case $ld_flag in
11479	  *-brtl*)
11480	    aix_use_runtimelinking=yes
11481	    break
11482	    ;;
11483	  esac
11484	done
11485	;;
11486      esac
11487
11488      exp_sym_flag='-bexport'
11489      no_entry_flag='-bnoentry'
11490    fi
11491
11492    # When large executables or shared objects are built, AIX ld can
11493    # have problems creating the table of contents.  If linking a library
11494    # or program results in "error TOC overflow" add -mminimal-toc to
11495    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11496    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11497
11498    archive_cmds_CXX=''
11499    hardcode_direct_CXX=yes
11500    hardcode_libdir_separator_CXX=':'
11501    link_all_deplibs_CXX=yes
11502
11503    if test "$GXX" = yes; then
11504      case $host_os in aix4.[012]|aix4.[012].*)
11505      # We only want to do this on AIX 4.2 and lower, the check
11506      # below for broken collect2 doesn't work under 4.3+
11507	collect2name=`${CC} -print-prog-name=collect2`
11508	if test -f "$collect2name" && \
11509	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11510	then
11511	  # We have reworked collect2
11512	  :
11513	else
11514	  # We have old collect2
11515	  hardcode_direct_CXX=unsupported
11516	  # It fails to find uninstalled libraries when the uninstalled
11517	  # path is not listed in the libpath.  Setting hardcode_minus_L
11518	  # to unsupported forces relinking
11519	  hardcode_minus_L_CXX=yes
11520	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11521	  hardcode_libdir_separator_CXX=
11522	fi
11523	;;
11524      esac
11525      shared_flag='-shared'
11526      if test "$aix_use_runtimelinking" = yes; then
11527	shared_flag="$shared_flag "'${wl}-G'
11528      fi
11529    else
11530      # not using gcc
11531      if test "$host_cpu" = ia64; then
11532	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11533	# chokes on -Wl,-G. The following line is correct:
11534	shared_flag='-G'
11535      else
11536	if test "$aix_use_runtimelinking" = yes; then
11537	  shared_flag='${wl}-G'
11538	else
11539	  shared_flag='${wl}-bM:SRE'
11540	fi
11541      fi
11542    fi
11543
11544    # It seems that -bexpall does not export symbols beginning with
11545    # underscore (_), so it is better to generate a list of symbols to export.
11546    always_export_symbols_CXX=yes
11547    if test "$aix_use_runtimelinking" = yes; then
11548      # Warning - without using the other runtime loading flags (-brtl),
11549      # -berok will link without error, but may produce a broken library.
11550      allow_undefined_flag_CXX='-berok'
11551      # Determine the default libpath from the value encoded in an empty executable.
11552      cat >conftest.$ac_ext <<_ACEOF
11553/* confdefs.h.  */
11554_ACEOF
11555cat confdefs.h >>conftest.$ac_ext
11556cat >>conftest.$ac_ext <<_ACEOF
11557/* end confdefs.h.  */
11558
11559int
11560main ()
11561{
11562
11563  ;
11564  return 0;
11565}
11566_ACEOF
11567rm -f conftest.$ac_objext conftest$ac_exeext
11568if { (ac_try="$ac_link"
11569case "(($ac_try" in
11570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11571  *) ac_try_echo=$ac_try;;
11572esac
11573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11574$as_echo "$ac_try_echo") >&5
11575  (eval "$ac_link") 2>conftest.er1
11576  ac_status=$?
11577  grep -v '^ *+' conftest.er1 >conftest.err
11578  rm -f conftest.er1
11579  cat conftest.err >&5
11580  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581  (exit $ac_status); } && {
11582	 test -z "$ac_cxx_werror_flag" ||
11583	 test ! -s conftest.err
11584       } && test -s conftest$ac_exeext && {
11585	 test "$cross_compiling" = yes ||
11586	 $as_test_x conftest$ac_exeext
11587       }; then
11588
11589lt_aix_libpath_sed='
11590    /Import File Strings/,/^$/ {
11591	/^0/ {
11592	    s/^0  *\(.*\)$/\1/
11593	    p
11594	}
11595    }'
11596aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11597# Check for a 64-bit object if we didn't find anything.
11598if test -z "$aix_libpath"; then
11599  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11600fi
11601else
11602  $as_echo "$as_me: failed program was:" >&5
11603sed 's/^/| /' conftest.$ac_ext >&5
11604
11605
11606fi
11607
11608rm -rf conftest.dSYM
11609rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11610      conftest$ac_exeext conftest.$ac_ext
11611if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11612
11613      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11614
11615      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"
11616     else
11617      if test "$host_cpu" = ia64; then
11618	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11619	allow_undefined_flag_CXX="-z nodefs"
11620	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"
11621      else
11622	# Determine the default libpath from the value encoded in an empty executable.
11623	cat >conftest.$ac_ext <<_ACEOF
11624/* confdefs.h.  */
11625_ACEOF
11626cat confdefs.h >>conftest.$ac_ext
11627cat >>conftest.$ac_ext <<_ACEOF
11628/* end confdefs.h.  */
11629
11630int
11631main ()
11632{
11633
11634  ;
11635  return 0;
11636}
11637_ACEOF
11638rm -f conftest.$ac_objext conftest$ac_exeext
11639if { (ac_try="$ac_link"
11640case "(($ac_try" in
11641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11642  *) ac_try_echo=$ac_try;;
11643esac
11644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11645$as_echo "$ac_try_echo") >&5
11646  (eval "$ac_link") 2>conftest.er1
11647  ac_status=$?
11648  grep -v '^ *+' conftest.er1 >conftest.err
11649  rm -f conftest.er1
11650  cat conftest.err >&5
11651  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652  (exit $ac_status); } && {
11653	 test -z "$ac_cxx_werror_flag" ||
11654	 test ! -s conftest.err
11655       } && test -s conftest$ac_exeext && {
11656	 test "$cross_compiling" = yes ||
11657	 $as_test_x conftest$ac_exeext
11658       }; then
11659
11660lt_aix_libpath_sed='
11661    /Import File Strings/,/^$/ {
11662	/^0/ {
11663	    s/^0  *\(.*\)$/\1/
11664	    p
11665	}
11666    }'
11667aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11668# Check for a 64-bit object if we didn't find anything.
11669if test -z "$aix_libpath"; then
11670  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11671fi
11672else
11673  $as_echo "$as_me: failed program was:" >&5
11674sed 's/^/| /' conftest.$ac_ext >&5
11675
11676
11677fi
11678
11679rm -rf conftest.dSYM
11680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11681      conftest$ac_exeext conftest.$ac_ext
11682if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11683
11684	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11685	# Warning - without using the other run time loading flags,
11686	# -berok will link without error, but may produce a broken library.
11687	no_undefined_flag_CXX=' ${wl}-bernotok'
11688	allow_undefined_flag_CXX=' ${wl}-berok'
11689	# Exported symbols can be pulled into shared objects from archives
11690	whole_archive_flag_spec_CXX='$convenience'
11691	archive_cmds_need_lc_CXX=yes
11692	# This is similar to how AIX traditionally builds its shared libraries.
11693	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'
11694      fi
11695    fi
11696    ;;
11697
11698  beos*)
11699    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11700      allow_undefined_flag_CXX=unsupported
11701      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11702      # support --undefined.  This deserves some investigation.  FIXME
11703      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11704    else
11705      ld_shlibs_CXX=no
11706    fi
11707    ;;
11708
11709  chorus*)
11710    case $cc_basename in
11711      *)
11712	# FIXME: insert proper C++ library support
11713	ld_shlibs_CXX=no
11714	;;
11715    esac
11716    ;;
11717
11718  cygwin* | mingw* | pw32*)
11719    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11720    # as there is no search path for DLLs.
11721    hardcode_libdir_flag_spec_CXX='-L$libdir'
11722    allow_undefined_flag_CXX=unsupported
11723    always_export_symbols_CXX=no
11724    enable_shared_with_static_runtimes_CXX=yes
11725
11726    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11727      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'
11728      # If the export-symbols file already is a .def file (1st line
11729      # is EXPORTS), use it as is; otherwise, prepend...
11730      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11731	cp $export_symbols $output_objdir/$soname.def;
11732      else
11733	echo EXPORTS > $output_objdir/$soname.def;
11734	cat $export_symbols >> $output_objdir/$soname.def;
11735      fi~
11736      $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'
11737    else
11738      ld_shlibs_CXX=no
11739    fi
11740  ;;
11741      darwin* | rhapsody*)
11742      archive_cmds_need_lc_CXX=no
11743      hardcode_direct_CXX=no
11744      hardcode_automatic_CXX=yes
11745      hardcode_shlibpath_var_CXX=unsupported
11746      whole_archive_flag_spec_CXX=''
11747      link_all_deplibs_CXX=yes
11748      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11749      if test "$GXX" = yes ; then
11750      output_verbose_link_cmd='echo'
11751      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}"
11752      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11753      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}"
11754      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}"
11755      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11756        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}"
11757        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}"
11758      fi
11759      else
11760      case $cc_basename in
11761        xlc*)
11762         output_verbose_link_cmd='echo'
11763          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'
11764          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11765          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11766          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}'
11767          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}'
11768          ;;
11769       *)
11770         ld_shlibs_CXX=no
11771          ;;
11772      esac
11773      fi
11774        ;;
11775
11776  dgux*)
11777    case $cc_basename in
11778      ec++*)
11779	# FIXME: insert proper C++ library support
11780	ld_shlibs_CXX=no
11781	;;
11782      ghcx*)
11783	# Green Hills C++ Compiler
11784	# FIXME: insert proper C++ library support
11785	ld_shlibs_CXX=no
11786	;;
11787      *)
11788	# FIXME: insert proper C++ library support
11789	ld_shlibs_CXX=no
11790	;;
11791    esac
11792    ;;
11793  freebsd[12]*)
11794    # C++ shared libraries reported to be fairly broken before switch to ELF
11795    ld_shlibs_CXX=no
11796    ;;
11797  freebsd-elf*)
11798    archive_cmds_need_lc_CXX=no
11799    ;;
11800  freebsd* | dragonfly*)
11801    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11802    # conventions
11803    ld_shlibs_CXX=yes
11804    ;;
11805  gnu*)
11806    ;;
11807  hpux9*)
11808    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11809    hardcode_libdir_separator_CXX=:
11810    export_dynamic_flag_spec_CXX='${wl}-E'
11811    hardcode_direct_CXX=yes
11812    hardcode_minus_L_CXX=yes # Not in the search PATH,
11813				# but as the default
11814				# location of the library.
11815
11816    case $cc_basename in
11817    CC*)
11818      # FIXME: insert proper C++ library support
11819      ld_shlibs_CXX=no
11820      ;;
11821    aCC*)
11822      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'
11823      # Commands to make compiler produce verbose output that lists
11824      # what "hidden" libraries, object files and flags are used when
11825      # linking a shared library.
11826      #
11827      # There doesn't appear to be a way to prevent this compiler from
11828      # explicitly linking system object files so we need to strip them
11829      # from the output so that they don't get included in the library
11830      # dependencies.
11831      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'
11832      ;;
11833    *)
11834      if test "$GXX" = yes; then
11835        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'
11836      else
11837        # FIXME: insert proper C++ library support
11838        ld_shlibs_CXX=no
11839      fi
11840      ;;
11841    esac
11842    ;;
11843  hpux10*|hpux11*)
11844    if test $with_gnu_ld = no; then
11845      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11846      hardcode_libdir_separator_CXX=:
11847
11848      case $host_cpu in
11849      hppa*64*|ia64*) ;;
11850      *)
11851	export_dynamic_flag_spec_CXX='${wl}-E'
11852        ;;
11853      esac
11854    fi
11855    case $host_cpu in
11856    hppa*64*|ia64*)
11857      hardcode_direct_CXX=no
11858      hardcode_shlibpath_var_CXX=no
11859      ;;
11860    *)
11861      hardcode_direct_CXX=yes
11862      hardcode_minus_L_CXX=yes # Not in the search PATH,
11863					      # but as the default
11864					      # location of the library.
11865      ;;
11866    esac
11867
11868    case $cc_basename in
11869      CC*)
11870	# FIXME: insert proper C++ library support
11871	ld_shlibs_CXX=no
11872	;;
11873      aCC*)
11874	case $host_cpu in
11875	hppa*64*)
11876	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11877	  ;;
11878	ia64*)
11879	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11880	  ;;
11881	*)
11882	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11883	  ;;
11884	esac
11885	# Commands to make compiler produce verbose output that lists
11886	# what "hidden" libraries, object files and flags are used when
11887	# linking a shared library.
11888	#
11889	# There doesn't appear to be a way to prevent this compiler from
11890	# explicitly linking system object files so we need to strip them
11891	# from the output so that they don't get included in the library
11892	# dependencies.
11893	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'
11894	;;
11895      *)
11896	if test "$GXX" = yes; then
11897	  if test $with_gnu_ld = no; then
11898	    case $host_cpu in
11899	    hppa*64*)
11900	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11901	      ;;
11902	    ia64*)
11903	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11904	      ;;
11905	    *)
11906	      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'
11907	      ;;
11908	    esac
11909	  fi
11910	else
11911	  # FIXME: insert proper C++ library support
11912	  ld_shlibs_CXX=no
11913	fi
11914	;;
11915    esac
11916    ;;
11917  interix[3-9]*)
11918    hardcode_direct_CXX=no
11919    hardcode_shlibpath_var_CXX=no
11920    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11921    export_dynamic_flag_spec_CXX='${wl}-E'
11922    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11923    # Instead, shared libraries are loaded at an image base (0x10000000 by
11924    # default) and relocated if they conflict, which is a slow very memory
11925    # consuming and fragmenting process.  To avoid this, we pick a random,
11926    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11927    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11928    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'
11929    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'
11930    ;;
11931  irix5* | irix6*)
11932    case $cc_basename in
11933      CC*)
11934	# SGI C++
11935	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'
11936
11937	# Archives containing C++ object files must be created using
11938	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11939	# necessary to make sure instantiated templates are included
11940	# in the archive.
11941	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11942	;;
11943      *)
11944	if test "$GXX" = yes; then
11945	  if test "$with_gnu_ld" = no; then
11946	    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'
11947	  else
11948	    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'
11949	  fi
11950	fi
11951	link_all_deplibs_CXX=yes
11952	;;
11953    esac
11954    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11955    hardcode_libdir_separator_CXX=:
11956    ;;
11957  linux* | k*bsd*-gnu)
11958    case $cc_basename in
11959      KCC*)
11960	# Kuck and Associates, Inc. (KAI) C++ Compiler
11961
11962	# KCC will only create a shared library if the output file
11963	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11964	# to its proper name (with version) after linking.
11965	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'
11966	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'
11967	# Commands to make compiler produce verbose output that lists
11968	# what "hidden" libraries, object files and flags are used when
11969	# linking a shared library.
11970	#
11971	# There doesn't appear to be a way to prevent this compiler from
11972	# explicitly linking system object files so we need to strip them
11973	# from the output so that they don't get included in the library
11974	# dependencies.
11975	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'
11976
11977	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11978	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11979
11980	# Archives containing C++ object files must be created using
11981	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11982	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11983	;;
11984      icpc*)
11985	# Intel C++
11986	with_gnu_ld=yes
11987	# version 8.0 and above of icpc choke on multiply defined symbols
11988	# if we add $predep_objects and $postdep_objects, however 7.1 and
11989	# earlier do not add the objects themselves.
11990	case `$CC -V 2>&1` in
11991	*"Version 7."*)
11992  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11993  	  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'
11994	  ;;
11995	*)  # Version 8.0 or newer
11996	  tmp_idyn=
11997	  case $host_cpu in
11998	    ia64*) tmp_idyn=' -i_dynamic';;
11999	  esac
12000  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12001	  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'
12002	  ;;
12003	esac
12004	archive_cmds_need_lc_CXX=no
12005	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12006	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12007	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12008	;;
12009      pgCC* | pgcpp*)
12010        # Portland Group C++ compiler
12011	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12012  	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'
12013
12014	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12015	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12016	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'
12017        ;;
12018      cxx*)
12019	# Compaq C++
12020	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12021	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'
12022
12023	runpath_var=LD_RUN_PATH
12024	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12025	hardcode_libdir_separator_CXX=:
12026
12027	# Commands to make compiler produce verbose output that lists
12028	# what "hidden" libraries, object files and flags are used when
12029	# linking a shared library.
12030	#
12031	# There doesn't appear to be a way to prevent this compiler from
12032	# explicitly linking system object files so we need to strip them
12033	# from the output so that they don't get included in the library
12034	# dependencies.
12035	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'
12036	;;
12037      *)
12038	case `$CC -V 2>&1 | sed 5q` in
12039	*Sun\ C*)
12040	  # Sun C++ 5.9
12041	  no_undefined_flag_CXX=' -zdefs'
12042	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12043	  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'
12044	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12045	  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'
12046
12047	  # Not sure whether something based on
12048	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12049	  # would be better.
12050	  output_verbose_link_cmd='echo'
12051
12052	  # Archives containing C++ object files must be created using
12053	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12054	  # necessary to make sure instantiated templates are included
12055	  # in the archive.
12056	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12057	  ;;
12058	esac
12059	;;
12060    esac
12061    ;;
12062  lynxos*)
12063    # FIXME: insert proper C++ library support
12064    ld_shlibs_CXX=no
12065    ;;
12066  m88k*)
12067    # FIXME: insert proper C++ library support
12068    ld_shlibs_CXX=no
12069    ;;
12070  mvs*)
12071    case $cc_basename in
12072      cxx*)
12073	# FIXME: insert proper C++ library support
12074	ld_shlibs_CXX=no
12075	;;
12076      *)
12077	# FIXME: insert proper C++ library support
12078	ld_shlibs_CXX=no
12079	;;
12080    esac
12081    ;;
12082  netbsd*)
12083    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12084      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12085      wlarc=
12086      hardcode_libdir_flag_spec_CXX='-R$libdir'
12087      hardcode_direct_CXX=yes
12088      hardcode_shlibpath_var_CXX=no
12089    fi
12090    # Workaround some broken pre-1.5 toolchains
12091    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12092    ;;
12093  openbsd2*)
12094    # C++ shared libraries are fairly broken
12095    ld_shlibs_CXX=no
12096    ;;
12097  openbsd*)
12098    if test -f /usr/libexec/ld.so; then
12099      hardcode_direct_CXX=yes
12100      hardcode_shlibpath_var_CXX=no
12101      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12102      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12103      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12104	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12105	export_dynamic_flag_spec_CXX='${wl}-E'
12106	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12107      fi
12108      output_verbose_link_cmd='echo'
12109    else
12110      ld_shlibs_CXX=no
12111    fi
12112    ;;
12113  osf3*)
12114    case $cc_basename in
12115      KCC*)
12116	# Kuck and Associates, Inc. (KAI) C++ Compiler
12117
12118	# KCC will only create a shared library if the output file
12119	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12120	# to its proper name (with version) after linking.
12121	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'
12122
12123	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12124	hardcode_libdir_separator_CXX=:
12125
12126	# Archives containing C++ object files must be created using
12127	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12128	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12129
12130	;;
12131      RCC*)
12132	# Rational C++ 2.4.1
12133	# FIXME: insert proper C++ library support
12134	ld_shlibs_CXX=no
12135	;;
12136      cxx*)
12137	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12138	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'
12139
12140	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12141	hardcode_libdir_separator_CXX=:
12142
12143	# Commands to make compiler produce verbose output that lists
12144	# what "hidden" libraries, object files and flags are used when
12145	# linking a shared library.
12146	#
12147	# There doesn't appear to be a way to prevent this compiler from
12148	# explicitly linking system object files so we need to strip them
12149	# from the output so that they don't get included in the library
12150	# dependencies.
12151	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'
12152	;;
12153      *)
12154	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12155	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12156	  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'
12157
12158	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12159	  hardcode_libdir_separator_CXX=:
12160
12161	  # Commands to make compiler produce verbose output that lists
12162	  # what "hidden" libraries, object files and flags are used when
12163	  # linking a shared library.
12164	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12165
12166	else
12167	  # FIXME: insert proper C++ library support
12168	  ld_shlibs_CXX=no
12169	fi
12170	;;
12171    esac
12172    ;;
12173  osf4* | osf5*)
12174    case $cc_basename in
12175      KCC*)
12176	# Kuck and Associates, Inc. (KAI) C++ Compiler
12177
12178	# KCC will only create a shared library if the output file
12179	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12180	# to its proper name (with version) after linking.
12181	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'
12182
12183	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12184	hardcode_libdir_separator_CXX=:
12185
12186	# Archives containing C++ object files must be created using
12187	# the KAI C++ compiler.
12188	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12189	;;
12190      RCC*)
12191	# Rational C++ 2.4.1
12192	# FIXME: insert proper C++ library support
12193	ld_shlibs_CXX=no
12194	;;
12195      cxx*)
12196	allow_undefined_flag_CXX=' -expect_unresolved \*'
12197	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'
12198	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12199	  echo "-hidden">> $lib.exp~
12200	  $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~
12201	  $rm $lib.exp'
12202
12203	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12204	hardcode_libdir_separator_CXX=:
12205
12206	# Commands to make compiler produce verbose output that lists
12207	# what "hidden" libraries, object files and flags are used when
12208	# linking a shared library.
12209	#
12210	# There doesn't appear to be a way to prevent this compiler from
12211	# explicitly linking system object files so we need to strip them
12212	# from the output so that they don't get included in the library
12213	# dependencies.
12214	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'
12215	;;
12216      *)
12217	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12218	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12219	 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'
12220
12221	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12222	  hardcode_libdir_separator_CXX=:
12223
12224	  # Commands to make compiler produce verbose output that lists
12225	  # what "hidden" libraries, object files and flags are used when
12226	  # linking a shared library.
12227	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12228
12229	else
12230	  # FIXME: insert proper C++ library support
12231	  ld_shlibs_CXX=no
12232	fi
12233	;;
12234    esac
12235    ;;
12236  psos*)
12237    # FIXME: insert proper C++ library support
12238    ld_shlibs_CXX=no
12239    ;;
12240  sunos4*)
12241    case $cc_basename in
12242      CC*)
12243	# Sun C++ 4.x
12244	# FIXME: insert proper C++ library support
12245	ld_shlibs_CXX=no
12246	;;
12247      lcc*)
12248	# Lucid
12249	# FIXME: insert proper C++ library support
12250	ld_shlibs_CXX=no
12251	;;
12252      *)
12253	# FIXME: insert proper C++ library support
12254	ld_shlibs_CXX=no
12255	;;
12256    esac
12257    ;;
12258  solaris*)
12259    case $cc_basename in
12260      CC*)
12261	# Sun C++ 4.2, 5.x and Centerline C++
12262        archive_cmds_need_lc_CXX=yes
12263	no_undefined_flag_CXX=' -zdefs'
12264	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12265	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12266	$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'
12267
12268	hardcode_libdir_flag_spec_CXX='-R$libdir'
12269	hardcode_shlibpath_var_CXX=no
12270	case $host_os in
12271	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12272	  *)
12273	    # The compiler driver will combine and reorder linker options,
12274	    # but understands `-z linker_flag'.
12275	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12276	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12277	    ;;
12278	esac
12279	link_all_deplibs_CXX=yes
12280
12281	output_verbose_link_cmd='echo'
12282
12283	# Archives containing C++ object files must be created using
12284	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12285	# necessary to make sure instantiated templates are included
12286	# in the archive.
12287	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12288	;;
12289      gcx*)
12290	# Green Hills C++ Compiler
12291	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12292
12293	# The C++ compiler must be used to create the archive.
12294	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12295	;;
12296      *)
12297	# GNU C++ compiler with Solaris linker
12298	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12299	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12300	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12301	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12302	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12303		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12304
12305	    # Commands to make compiler produce verbose output that lists
12306	    # what "hidden" libraries, object files and flags are used when
12307	    # linking a shared library.
12308	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12309	  else
12310	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12311	    # platform.
12312	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12313	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12314		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12315
12316	    # Commands to make compiler produce verbose output that lists
12317	    # what "hidden" libraries, object files and flags are used when
12318	    # linking a shared library.
12319	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12320	  fi
12321
12322	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12323	  case $host_os in
12324	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12325	  *)
12326	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12327	    ;;
12328	  esac
12329	fi
12330	;;
12331    esac
12332    ;;
12333  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12334    no_undefined_flag_CXX='${wl}-z,text'
12335    archive_cmds_need_lc_CXX=no
12336    hardcode_shlibpath_var_CXX=no
12337    runpath_var='LD_RUN_PATH'
12338
12339    case $cc_basename in
12340      CC*)
12341	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12342	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12343	;;
12344      *)
12345	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12346	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12347	;;
12348    esac
12349    ;;
12350  sysv5* | sco3.2v5* | sco5v6*)
12351    # Note: We can NOT use -z defs as we might desire, because we do not
12352    # link with -lc, and that would cause any symbols used from libc to
12353    # always be unresolved, which means just about no library would
12354    # ever link correctly.  If we're not using GNU ld we use -z text
12355    # though, which does catch some bad symbols but isn't as heavy-handed
12356    # as -z defs.
12357    # For security reasons, it is highly recommended that you always
12358    # use absolute paths for naming shared libraries, and exclude the
12359    # DT_RUNPATH tag from executables and libraries.  But doing so
12360    # requires that you compile everything twice, which is a pain.
12361    # So that behaviour is only enabled if SCOABSPATH is set to a
12362    # non-empty value in the environment.  Most likely only useful for
12363    # creating official distributions of packages.
12364    # This is a hack until libtool officially supports absolute path
12365    # names for shared libraries.
12366    no_undefined_flag_CXX='${wl}-z,text'
12367    allow_undefined_flag_CXX='${wl}-z,nodefs'
12368    archive_cmds_need_lc_CXX=no
12369    hardcode_shlibpath_var_CXX=no
12370    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12371    hardcode_libdir_separator_CXX=':'
12372    link_all_deplibs_CXX=yes
12373    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12374    runpath_var='LD_RUN_PATH'
12375
12376    case $cc_basename in
12377      CC*)
12378	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12379	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12380	;;
12381      *)
12382	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12383	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12384	;;
12385    esac
12386    ;;
12387  tandem*)
12388    case $cc_basename in
12389      NCC*)
12390	# NonStop-UX NCC 3.20
12391	# FIXME: insert proper C++ library support
12392	ld_shlibs_CXX=no
12393	;;
12394      *)
12395	# FIXME: insert proper C++ library support
12396	ld_shlibs_CXX=no
12397	;;
12398    esac
12399    ;;
12400  vxworks*)
12401    # FIXME: insert proper C++ library support
12402    ld_shlibs_CXX=no
12403    ;;
12404  *)
12405    # FIXME: insert proper C++ library support
12406    ld_shlibs_CXX=no
12407    ;;
12408esac
12409{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12410$as_echo "$ld_shlibs_CXX" >&6; }
12411test "$ld_shlibs_CXX" = no && can_build_shared=no
12412
12413GCC_CXX="$GXX"
12414LD_CXX="$LD"
12415
12416cat > conftest.$ac_ext <<EOF
12417class Foo
12418{
12419public:
12420  Foo (void) { a = 0; }
12421private:
12422  int a;
12423};
12424EOF
12425
12426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12427  (eval $ac_compile) 2>&5
12428  ac_status=$?
12429  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430  (exit $ac_status); }; then
12431  # Parse the compiler output and extract the necessary
12432  # objects, libraries and library flags.
12433
12434  # Sentinel used to keep track of whether or not we are before
12435  # the conftest object file.
12436  pre_test_object_deps_done=no
12437
12438  # The `*' in the case matches for architectures that use `case' in
12439  # $output_verbose_cmd can trigger glob expansion during the loop
12440  # eval without this substitution.
12441  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12442
12443  for p in `eval $output_verbose_link_cmd`; do
12444    case $p in
12445
12446    -L* | -R* | -l*)
12447       # Some compilers place space between "-{L,R}" and the path.
12448       # Remove the space.
12449       if test $p = "-L" \
12450	  || test $p = "-R"; then
12451	 prev=$p
12452	 continue
12453       else
12454	 prev=
12455       fi
12456
12457       if test "$pre_test_object_deps_done" = no; then
12458	 case $p in
12459	 -L* | -R*)
12460	   # Internal compiler library paths should come after those
12461	   # provided the user.  The postdeps already come after the
12462	   # user supplied libs so there is no need to process them.
12463	   if test -z "$compiler_lib_search_path_CXX"; then
12464	     compiler_lib_search_path_CXX="${prev}${p}"
12465	   else
12466	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12467	   fi
12468	   ;;
12469	 # The "-l" case would never come before the object being
12470	 # linked, so don't bother handling this case.
12471	 esac
12472       else
12473	 if test -z "$postdeps_CXX"; then
12474	   postdeps_CXX="${prev}${p}"
12475	 else
12476	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12477	 fi
12478       fi
12479       ;;
12480
12481    *.$objext)
12482       # This assumes that the test object file only shows up
12483       # once in the compiler output.
12484       if test "$p" = "conftest.$objext"; then
12485	 pre_test_object_deps_done=yes
12486	 continue
12487       fi
12488
12489       if test "$pre_test_object_deps_done" = no; then
12490	 if test -z "$predep_objects_CXX"; then
12491	   predep_objects_CXX="$p"
12492	 else
12493	   predep_objects_CXX="$predep_objects_CXX $p"
12494	 fi
12495       else
12496	 if test -z "$postdep_objects_CXX"; then
12497	   postdep_objects_CXX="$p"
12498	 else
12499	   postdep_objects_CXX="$postdep_objects_CXX $p"
12500	 fi
12501       fi
12502       ;;
12503
12504    *) ;; # Ignore the rest.
12505
12506    esac
12507  done
12508
12509  # Clean up.
12510  rm -f a.out a.exe
12511else
12512  echo "libtool.m4: error: problem compiling CXX test program"
12513fi
12514
12515$rm -f confest.$objext
12516
12517compiler_lib_search_dirs_CXX=
12518if test -n "$compiler_lib_search_path_CXX"; then
12519  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12520fi
12521
12522# PORTME: override above test on systems where it is broken
12523case $host_os in
12524interix[3-9]*)
12525  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12526  # hack all around it, let's just trust "g++" to DTRT.
12527  predep_objects_CXX=
12528  postdep_objects_CXX=
12529  postdeps_CXX=
12530  ;;
12531
12532linux*)
12533  case `$CC -V 2>&1 | sed 5q` in
12534  *Sun\ C*)
12535    # Sun C++ 5.9
12536    #
12537    # The more standards-conforming stlport4 library is
12538    # incompatible with the Cstd library. Avoid specifying
12539    # it if it's in CXXFLAGS. Ignore libCrun as
12540    # -library=stlport4 depends on it.
12541    case " $CXX $CXXFLAGS " in
12542    *" -library=stlport4 "*)
12543      solaris_use_stlport4=yes
12544      ;;
12545    esac
12546    if test "$solaris_use_stlport4" != yes; then
12547      postdeps_CXX='-library=Cstd -library=Crun'
12548    fi
12549    ;;
12550  esac
12551  ;;
12552
12553solaris*)
12554  case $cc_basename in
12555  CC*)
12556    # The more standards-conforming stlport4 library is
12557    # incompatible with the Cstd library. Avoid specifying
12558    # it if it's in CXXFLAGS. Ignore libCrun as
12559    # -library=stlport4 depends on it.
12560    case " $CXX $CXXFLAGS " in
12561    *" -library=stlport4 "*)
12562      solaris_use_stlport4=yes
12563      ;;
12564    esac
12565
12566    # Adding this requires a known-good setup of shared libraries for
12567    # Sun compiler versions before 5.6, else PIC objects from an old
12568    # archive will be linked into the output, leading to subtle bugs.
12569    if test "$solaris_use_stlport4" != yes; then
12570      postdeps_CXX='-library=Cstd -library=Crun'
12571    fi
12572    ;;
12573  esac
12574  ;;
12575esac
12576
12577case " $postdeps_CXX " in
12578*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12579esac
12580
12581lt_prog_compiler_wl_CXX=
12582lt_prog_compiler_pic_CXX=
12583lt_prog_compiler_static_CXX=
12584
12585{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12586$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12587
12588  # C++ specific cases for pic, static, wl, etc.
12589  if test "$GXX" = yes; then
12590    lt_prog_compiler_wl_CXX='-Wl,'
12591    lt_prog_compiler_static_CXX='-static'
12592
12593    case $host_os in
12594    aix*)
12595      # All AIX code is PIC.
12596      if test "$host_cpu" = ia64; then
12597	# AIX 5 now supports IA64 processor
12598	lt_prog_compiler_static_CXX='-Bstatic'
12599      fi
12600      ;;
12601    amigaos*)
12602      # FIXME: we need at least 68020 code to build shared libraries, but
12603      # adding the `-m68020' flag to GCC prevents building anything better,
12604      # like `-m68040'.
12605      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12606      ;;
12607    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12608      # PIC is the default for these OSes.
12609      ;;
12610    mingw* | cygwin* | os2* | pw32*)
12611      # This hack is so that the source file can tell whether it is being
12612      # built for inclusion in a dll (and should export symbols for example).
12613      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12614      # (--disable-auto-import) libraries
12615      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12616      ;;
12617    darwin* | rhapsody*)
12618      # PIC is the default on this platform
12619      # Common symbols not allowed in MH_DYLIB files
12620      lt_prog_compiler_pic_CXX='-fno-common'
12621      ;;
12622    *djgpp*)
12623      # DJGPP does not support shared libraries at all
12624      lt_prog_compiler_pic_CXX=
12625      ;;
12626    interix[3-9]*)
12627      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12628      # Instead, we relocate shared libraries at runtime.
12629      ;;
12630    sysv4*MP*)
12631      if test -d /usr/nec; then
12632	lt_prog_compiler_pic_CXX=-Kconform_pic
12633      fi
12634      ;;
12635    hpux*)
12636      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12637      # not for PA HP-UX.
12638      case $host_cpu in
12639      hppa*64*|ia64*)
12640	;;
12641      *)
12642	lt_prog_compiler_pic_CXX='-fPIC'
12643	;;
12644      esac
12645      ;;
12646    *)
12647      lt_prog_compiler_pic_CXX='-fPIC'
12648      ;;
12649    esac
12650  else
12651    case $host_os in
12652      aix[4-9]*)
12653	# All AIX code is PIC.
12654	if test "$host_cpu" = ia64; then
12655	  # AIX 5 now supports IA64 processor
12656	  lt_prog_compiler_static_CXX='-Bstatic'
12657	else
12658	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12659	fi
12660	;;
12661      chorus*)
12662	case $cc_basename in
12663	cxch68*)
12664	  # Green Hills C++ Compiler
12665	  # _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"
12666	  ;;
12667	esac
12668	;;
12669       darwin*)
12670         # PIC is the default on this platform
12671         # Common symbols not allowed in MH_DYLIB files
12672         case $cc_basename in
12673           xlc*)
12674           lt_prog_compiler_pic_CXX='-qnocommon'
12675           lt_prog_compiler_wl_CXX='-Wl,'
12676           ;;
12677         esac
12678       ;;
12679      dgux*)
12680	case $cc_basename in
12681	  ec++*)
12682	    lt_prog_compiler_pic_CXX='-KPIC'
12683	    ;;
12684	  ghcx*)
12685	    # Green Hills C++ Compiler
12686	    lt_prog_compiler_pic_CXX='-pic'
12687	    ;;
12688	  *)
12689	    ;;
12690	esac
12691	;;
12692      freebsd* | dragonfly*)
12693	# FreeBSD uses GNU C++
12694	;;
12695      hpux9* | hpux10* | hpux11*)
12696	case $cc_basename in
12697	  CC*)
12698	    lt_prog_compiler_wl_CXX='-Wl,'
12699	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12700	    if test "$host_cpu" != ia64; then
12701	      lt_prog_compiler_pic_CXX='+Z'
12702	    fi
12703	    ;;
12704	  aCC*)
12705	    lt_prog_compiler_wl_CXX='-Wl,'
12706	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12707	    case $host_cpu in
12708	    hppa*64*|ia64*)
12709	      # +Z the default
12710	      ;;
12711	    *)
12712	      lt_prog_compiler_pic_CXX='+Z'
12713	      ;;
12714	    esac
12715	    ;;
12716	  *)
12717	    ;;
12718	esac
12719	;;
12720      interix*)
12721	# This is c89, which is MS Visual C++ (no shared libs)
12722	# Anyone wants to do a port?
12723	;;
12724      irix5* | irix6* | nonstopux*)
12725	case $cc_basename in
12726	  CC*)
12727	    lt_prog_compiler_wl_CXX='-Wl,'
12728	    lt_prog_compiler_static_CXX='-non_shared'
12729	    # CC pic flag -KPIC is the default.
12730	    ;;
12731	  *)
12732	    ;;
12733	esac
12734	;;
12735      linux* | k*bsd*-gnu)
12736	case $cc_basename in
12737	  KCC*)
12738	    # KAI C++ Compiler
12739	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12740	    lt_prog_compiler_pic_CXX='-fPIC'
12741	    ;;
12742	  icpc* | ecpc*)
12743	    # Intel C++
12744	    lt_prog_compiler_wl_CXX='-Wl,'
12745	    lt_prog_compiler_pic_CXX='-KPIC'
12746	    lt_prog_compiler_static_CXX='-static'
12747	    ;;
12748	  pgCC* | pgcpp*)
12749	    # Portland Group C++ compiler.
12750	    lt_prog_compiler_wl_CXX='-Wl,'
12751	    lt_prog_compiler_pic_CXX='-fpic'
12752	    lt_prog_compiler_static_CXX='-Bstatic'
12753	    ;;
12754	  cxx*)
12755	    # Compaq C++
12756	    # Make sure the PIC flag is empty.  It appears that all Alpha
12757	    # Linux and Compaq Tru64 Unix objects are PIC.
12758	    lt_prog_compiler_pic_CXX=
12759	    lt_prog_compiler_static_CXX='-non_shared'
12760	    ;;
12761	  *)
12762	    case `$CC -V 2>&1 | sed 5q` in
12763	    *Sun\ C*)
12764	      # Sun C++ 5.9
12765	      lt_prog_compiler_pic_CXX='-KPIC'
12766	      lt_prog_compiler_static_CXX='-Bstatic'
12767	      lt_prog_compiler_wl_CXX='-Qoption ld '
12768	      ;;
12769	    esac
12770	    ;;
12771	esac
12772	;;
12773      lynxos*)
12774	;;
12775      m88k*)
12776	;;
12777      mvs*)
12778	case $cc_basename in
12779	  cxx*)
12780	    lt_prog_compiler_pic_CXX='-W c,exportall'
12781	    ;;
12782	  *)
12783	    ;;
12784	esac
12785	;;
12786      netbsd*)
12787	;;
12788      osf3* | osf4* | osf5*)
12789	case $cc_basename in
12790	  KCC*)
12791	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12792	    ;;
12793	  RCC*)
12794	    # Rational C++ 2.4.1
12795	    lt_prog_compiler_pic_CXX='-pic'
12796	    ;;
12797	  cxx*)
12798	    # Digital/Compaq C++
12799	    lt_prog_compiler_wl_CXX='-Wl,'
12800	    # Make sure the PIC flag is empty.  It appears that all Alpha
12801	    # Linux and Compaq Tru64 Unix objects are PIC.
12802	    lt_prog_compiler_pic_CXX=
12803	    lt_prog_compiler_static_CXX='-non_shared'
12804	    ;;
12805	  *)
12806	    ;;
12807	esac
12808	;;
12809      psos*)
12810	;;
12811      solaris*)
12812	case $cc_basename in
12813	  CC*)
12814	    # Sun C++ 4.2, 5.x and Centerline C++
12815	    lt_prog_compiler_pic_CXX='-KPIC'
12816	    lt_prog_compiler_static_CXX='-Bstatic'
12817	    lt_prog_compiler_wl_CXX='-Qoption ld '
12818	    ;;
12819	  gcx*)
12820	    # Green Hills C++ Compiler
12821	    lt_prog_compiler_pic_CXX='-PIC'
12822	    ;;
12823	  *)
12824	    ;;
12825	esac
12826	;;
12827      sunos4*)
12828	case $cc_basename in
12829	  CC*)
12830	    # Sun C++ 4.x
12831	    lt_prog_compiler_pic_CXX='-pic'
12832	    lt_prog_compiler_static_CXX='-Bstatic'
12833	    ;;
12834	  lcc*)
12835	    # Lucid
12836	    lt_prog_compiler_pic_CXX='-pic'
12837	    ;;
12838	  *)
12839	    ;;
12840	esac
12841	;;
12842      tandem*)
12843	case $cc_basename in
12844	  NCC*)
12845	    # NonStop-UX NCC 3.20
12846	    lt_prog_compiler_pic_CXX='-KPIC'
12847	    ;;
12848	  *)
12849	    ;;
12850	esac
12851	;;
12852      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12853	case $cc_basename in
12854	  CC*)
12855	    lt_prog_compiler_wl_CXX='-Wl,'
12856	    lt_prog_compiler_pic_CXX='-KPIC'
12857	    lt_prog_compiler_static_CXX='-Bstatic'
12858	    ;;
12859	esac
12860	;;
12861      vxworks*)
12862	;;
12863      *)
12864	lt_prog_compiler_can_build_shared_CXX=no
12865	;;
12866    esac
12867  fi
12868
12869{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12870$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12871
12872#
12873# Check to make sure the PIC flag actually works.
12874#
12875if test -n "$lt_prog_compiler_pic_CXX"; then
12876
12877{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12878$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12879if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12880  $as_echo_n "(cached) " >&6
12881else
12882  lt_cv_prog_compiler_pic_works_CXX=no
12883  ac_outfile=conftest.$ac_objext
12884   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12885   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12886   # Insert the option either (1) after the last *FLAGS variable, or
12887   # (2) before a word containing "conftest.", or (3) at the end.
12888   # Note that $ac_compile itself does not contain backslashes and begins
12889   # with a dollar sign (not a hyphen), so the echo should work correctly.
12890   # The option is referenced via a variable to avoid confusing sed.
12891   lt_compile=`echo "$ac_compile" | $SED \
12892   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12893   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12894   -e 's:$: $lt_compiler_flag:'`
12895   (eval echo "\"\$as_me:12895: $lt_compile\"" >&5)
12896   (eval "$lt_compile" 2>conftest.err)
12897   ac_status=$?
12898   cat conftest.err >&5
12899   echo "$as_me:12899: \$? = $ac_status" >&5
12900   if (exit $ac_status) && test -s "$ac_outfile"; then
12901     # The compiler can only warn and ignore the option if not recognized
12902     # So say no if there are warnings other than the usual output.
12903     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12904     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12905     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12906       lt_cv_prog_compiler_pic_works_CXX=yes
12907     fi
12908   fi
12909   $rm conftest*
12910
12911fi
12912{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12913$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12914
12915if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12916    case $lt_prog_compiler_pic_CXX in
12917     "" | " "*) ;;
12918     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12919     esac
12920else
12921    lt_prog_compiler_pic_CXX=
12922     lt_prog_compiler_can_build_shared_CXX=no
12923fi
12924
12925fi
12926case $host_os in
12927  # For platforms which do not support PIC, -DPIC is meaningless:
12928  *djgpp*)
12929    lt_prog_compiler_pic_CXX=
12930    ;;
12931  *)
12932    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12933    ;;
12934esac
12935
12936#
12937# Check to make sure the static flag actually works.
12938#
12939wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12940{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12941$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12942if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12943  $as_echo_n "(cached) " >&6
12944else
12945  lt_cv_prog_compiler_static_works_CXX=no
12946   save_LDFLAGS="$LDFLAGS"
12947   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12948   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12949   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12950     # The linker can only warn and ignore the option if not recognized
12951     # So say no if there are warnings
12952     if test -s conftest.err; then
12953       # Append any errors to the config.log.
12954       cat conftest.err 1>&5
12955       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12956       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12957       if diff conftest.exp conftest.er2 >/dev/null; then
12958         lt_cv_prog_compiler_static_works_CXX=yes
12959       fi
12960     else
12961       lt_cv_prog_compiler_static_works_CXX=yes
12962     fi
12963   fi
12964   $rm -r conftest*
12965   LDFLAGS="$save_LDFLAGS"
12966
12967fi
12968{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12969$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12970
12971if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12972    :
12973else
12974    lt_prog_compiler_static_CXX=
12975fi
12976
12977
12978{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12979$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12980if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12981  $as_echo_n "(cached) " >&6
12982else
12983  lt_cv_prog_compiler_c_o_CXX=no
12984   $rm -r conftest 2>/dev/null
12985   mkdir conftest
12986   cd conftest
12987   mkdir out
12988   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12989
12990   lt_compiler_flag="-o out/conftest2.$ac_objext"
12991   # Insert the option either (1) after the last *FLAGS variable, or
12992   # (2) before a word containing "conftest.", or (3) at the end.
12993   # Note that $ac_compile itself does not contain backslashes and begins
12994   # with a dollar sign (not a hyphen), so the echo should work correctly.
12995   lt_compile=`echo "$ac_compile" | $SED \
12996   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12997   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12998   -e 's:$: $lt_compiler_flag:'`
12999   (eval echo "\"\$as_me:12999: $lt_compile\"" >&5)
13000   (eval "$lt_compile" 2>out/conftest.err)
13001   ac_status=$?
13002   cat out/conftest.err >&5
13003   echo "$as_me:13003: \$? = $ac_status" >&5
13004   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13005   then
13006     # The compiler can only warn and ignore the option if not recognized
13007     # So say no if there are warnings
13008     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13009     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13010     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13011       lt_cv_prog_compiler_c_o_CXX=yes
13012     fi
13013   fi
13014   chmod u+w . 2>&5
13015   $rm conftest*
13016   # SGI C++ compiler will create directory out/ii_files/ for
13017   # template instantiation
13018   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13019   $rm out/* && rmdir out
13020   cd ..
13021   rmdir conftest
13022   $rm conftest*
13023
13024fi
13025{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13026$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13027
13028
13029hard_links="nottested"
13030if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13031  # do not overwrite the value of need_locks provided by the user
13032  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13033$as_echo_n "checking if we can lock with hard links... " >&6; }
13034  hard_links=yes
13035  $rm conftest*
13036  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13037  touch conftest.a
13038  ln conftest.a conftest.b 2>&5 || hard_links=no
13039  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13040  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13041$as_echo "$hard_links" >&6; }
13042  if test "$hard_links" = no; then
13043    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13044$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13045    need_locks=warn
13046  fi
13047else
13048  need_locks=no
13049fi
13050
13051{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13052$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13053
13054  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13055  case $host_os in
13056  aix[4-9]*)
13057    # If we're using GNU nm, then we don't want the "-C" option.
13058    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13059    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13060      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'
13061    else
13062      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'
13063    fi
13064    ;;
13065  pw32*)
13066    export_symbols_cmds_CXX="$ltdll_cmds"
13067  ;;
13068  cygwin* | mingw*)
13069    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'
13070  ;;
13071  *)
13072    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13073  ;;
13074  esac
13075  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13076
13077{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13078$as_echo "$ld_shlibs_CXX" >&6; }
13079test "$ld_shlibs_CXX" = no && can_build_shared=no
13080
13081#
13082# Do we need to explicitly link libc?
13083#
13084case "x$archive_cmds_need_lc_CXX" in
13085x|xyes)
13086  # Assume -lc should be added
13087  archive_cmds_need_lc_CXX=yes
13088
13089  if test "$enable_shared" = yes && test "$GCC" = yes; then
13090    case $archive_cmds_CXX in
13091    *'~'*)
13092      # FIXME: we may have to deal with multi-command sequences.
13093      ;;
13094    '$CC '*)
13095      # Test whether the compiler implicitly links with -lc since on some
13096      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13097      # to ld, don't add -lc before -lgcc.
13098      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13099$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13100      $rm conftest*
13101      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13102
13103      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13104  (eval $ac_compile) 2>&5
13105  ac_status=$?
13106  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107  (exit $ac_status); } 2>conftest.err; then
13108        soname=conftest
13109        lib=conftest
13110        libobjs=conftest.$ac_objext
13111        deplibs=
13112        wl=$lt_prog_compiler_wl_CXX
13113	pic_flag=$lt_prog_compiler_pic_CXX
13114        compiler_flags=-v
13115        linker_flags=-v
13116        verstring=
13117        output_objdir=.
13118        libname=conftest
13119        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13120        allow_undefined_flag_CXX=
13121        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13122  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13123  ac_status=$?
13124  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125  (exit $ac_status); }
13126        then
13127	  archive_cmds_need_lc_CXX=no
13128        else
13129	  archive_cmds_need_lc_CXX=yes
13130        fi
13131        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13132      else
13133        cat conftest.err 1>&5
13134      fi
13135      $rm conftest*
13136      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13137$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13138      ;;
13139    esac
13140  fi
13141  ;;
13142esac
13143
13144{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13145$as_echo_n "checking dynamic linker characteristics... " >&6; }
13146library_names_spec=
13147libname_spec='lib$name'
13148soname_spec=
13149shrext_cmds=".so"
13150postinstall_cmds=
13151postuninstall_cmds=
13152finish_cmds=
13153finish_eval=
13154shlibpath_var=
13155shlibpath_overrides_runpath=unknown
13156version_type=none
13157dynamic_linker="$host_os ld.so"
13158sys_lib_dlsearch_path_spec="/lib /usr/lib"
13159
13160need_lib_prefix=unknown
13161hardcode_into_libs=no
13162
13163# when you set need_version to no, make sure it does not cause -set_version
13164# flags to be left without arguments
13165need_version=unknown
13166
13167case $host_os in
13168aix3*)
13169  version_type=linux
13170  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13171  shlibpath_var=LIBPATH
13172
13173  # AIX 3 has no versioning support, so we append a major version to the name.
13174  soname_spec='${libname}${release}${shared_ext}$major'
13175  ;;
13176
13177aix[4-9]*)
13178  version_type=linux
13179  need_lib_prefix=no
13180  need_version=no
13181  hardcode_into_libs=yes
13182  if test "$host_cpu" = ia64; then
13183    # AIX 5 supports IA64
13184    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13185    shlibpath_var=LD_LIBRARY_PATH
13186  else
13187    # With GCC up to 2.95.x, collect2 would create an import file
13188    # for dependence libraries.  The import file would start with
13189    # the line `#! .'.  This would cause the generated library to
13190    # depend on `.', always an invalid library.  This was fixed in
13191    # development snapshots of GCC prior to 3.0.
13192    case $host_os in
13193      aix4 | aix4.[01] | aix4.[01].*)
13194      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13195	   echo ' yes '
13196	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13197	:
13198      else
13199	can_build_shared=no
13200      fi
13201      ;;
13202    esac
13203    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13204    # soname into executable. Probably we can add versioning support to
13205    # collect2, so additional links can be useful in future.
13206    if test "$aix_use_runtimelinking" = yes; then
13207      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13208      # instead of lib<name>.a to let people know that these are not
13209      # typical AIX shared libraries.
13210      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13211    else
13212      # We preserve .a as extension for shared libraries through AIX4.2
13213      # and later when we are not doing run time linking.
13214      library_names_spec='${libname}${release}.a $libname.a'
13215      soname_spec='${libname}${release}${shared_ext}$major'
13216    fi
13217    shlibpath_var=LIBPATH
13218  fi
13219  ;;
13220
13221amigaos*)
13222  library_names_spec='$libname.ixlibrary $libname.a'
13223  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13224  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'
13225  ;;
13226
13227beos*)
13228  library_names_spec='${libname}${shared_ext}'
13229  dynamic_linker="$host_os ld.so"
13230  shlibpath_var=LIBRARY_PATH
13231  ;;
13232
13233bsdi[45]*)
13234  version_type=linux
13235  need_version=no
13236  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13237  soname_spec='${libname}${release}${shared_ext}$major'
13238  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13239  shlibpath_var=LD_LIBRARY_PATH
13240  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13241  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13242  # the default ld.so.conf also contains /usr/contrib/lib and
13243  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13244  # libtool to hard-code these into programs
13245  ;;
13246
13247cygwin* | mingw* | pw32*)
13248  version_type=windows
13249  shrext_cmds=".dll"
13250  need_version=no
13251  need_lib_prefix=no
13252
13253  case $GCC,$host_os in
13254  yes,cygwin* | yes,mingw* | yes,pw32*)
13255    library_names_spec='$libname.dll.a'
13256    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13257    postinstall_cmds='base_file=`basename \${file}`~
13258      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13259      dldir=$destdir/`dirname \$dlpath`~
13260      test -d \$dldir || mkdir -p \$dldir~
13261      $install_prog $dir/$dlname \$dldir/$dlname~
13262      chmod a+x \$dldir/$dlname'
13263    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13264      dlpath=$dir/\$dldll~
13265       $rm \$dlpath'
13266    shlibpath_overrides_runpath=yes
13267
13268    case $host_os in
13269    cygwin*)
13270      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13271      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13272      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13273      ;;
13274    mingw*)
13275      # MinGW DLLs use traditional 'lib' prefix
13276      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13277      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13278      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13279        # It is most probably a Windows format PATH printed by
13280        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13281        # path with ; separators, and with drive letters. We can handle the
13282        # drive letters (cygwin fileutils understands them), so leave them,
13283        # especially as we might pass files found there to a mingw objdump,
13284        # which wouldn't understand a cygwinified path. Ahh.
13285        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13286      else
13287        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13288      fi
13289      ;;
13290    pw32*)
13291      # pw32 DLLs use 'pw' prefix rather than 'lib'
13292      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13293      ;;
13294    esac
13295    ;;
13296
13297  *)
13298    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13299    ;;
13300  esac
13301  dynamic_linker='Win32 ld.exe'
13302  # FIXME: first we should search . and the directory the executable is in
13303  shlibpath_var=PATH
13304  ;;
13305
13306darwin* | rhapsody*)
13307  dynamic_linker="$host_os dyld"
13308  version_type=darwin
13309  need_lib_prefix=no
13310  need_version=no
13311  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13312  soname_spec='${libname}${release}${major}$shared_ext'
13313  shlibpath_overrides_runpath=yes
13314  shlibpath_var=DYLD_LIBRARY_PATH
13315  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13316
13317  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13318  ;;
13319
13320dgux*)
13321  version_type=linux
13322  need_lib_prefix=no
13323  need_version=no
13324  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13325  soname_spec='${libname}${release}${shared_ext}$major'
13326  shlibpath_var=LD_LIBRARY_PATH
13327  ;;
13328
13329freebsd1*)
13330  dynamic_linker=no
13331  ;;
13332
13333freebsd* | dragonfly*)
13334  # DragonFly does not have aout.  When/if they implement a new
13335  # versioning mechanism, adjust this.
13336  if test -x /usr/bin/objformat; then
13337    objformat=`/usr/bin/objformat`
13338  else
13339    case $host_os in
13340    freebsd[123]*) objformat=aout ;;
13341    *) objformat=elf ;;
13342    esac
13343  fi
13344  version_type=freebsd-$objformat
13345  case $version_type in
13346    freebsd-elf*)
13347      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13348      need_version=no
13349      need_lib_prefix=no
13350      ;;
13351    freebsd-*)
13352      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13353      need_version=yes
13354      ;;
13355  esac
13356  shlibpath_var=LD_LIBRARY_PATH
13357  case $host_os in
13358  freebsd2*)
13359    shlibpath_overrides_runpath=yes
13360    ;;
13361  freebsd3.[01]* | freebsdelf3.[01]*)
13362    shlibpath_overrides_runpath=yes
13363    hardcode_into_libs=yes
13364    ;;
13365  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13366  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13367    shlibpath_overrides_runpath=no
13368    hardcode_into_libs=yes
13369    ;;
13370  *) # from 4.6 on, and DragonFly
13371    shlibpath_overrides_runpath=yes
13372    hardcode_into_libs=yes
13373    ;;
13374  esac
13375  ;;
13376
13377gnu*)
13378  version_type=linux
13379  need_lib_prefix=no
13380  need_version=no
13381  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13382  soname_spec='${libname}${release}${shared_ext}$major'
13383  shlibpath_var=LD_LIBRARY_PATH
13384  hardcode_into_libs=yes
13385  ;;
13386
13387hpux9* | hpux10* | hpux11*)
13388  # Give a soname corresponding to the major version so that dld.sl refuses to
13389  # link against other versions.
13390  version_type=sunos
13391  need_lib_prefix=no
13392  need_version=no
13393  case $host_cpu in
13394  ia64*)
13395    shrext_cmds='.so'
13396    hardcode_into_libs=yes
13397    dynamic_linker="$host_os dld.so"
13398    shlibpath_var=LD_LIBRARY_PATH
13399    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13400    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13401    soname_spec='${libname}${release}${shared_ext}$major'
13402    if test "X$HPUX_IA64_MODE" = X32; then
13403      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13404    else
13405      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13406    fi
13407    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13408    ;;
13409   hppa*64*)
13410     shrext_cmds='.sl'
13411     hardcode_into_libs=yes
13412     dynamic_linker="$host_os dld.sl"
13413     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13414     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13415     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13416     soname_spec='${libname}${release}${shared_ext}$major'
13417     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13418     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13419     ;;
13420   *)
13421    shrext_cmds='.sl'
13422    dynamic_linker="$host_os dld.sl"
13423    shlibpath_var=SHLIB_PATH
13424    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13425    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13426    soname_spec='${libname}${release}${shared_ext}$major'
13427    ;;
13428  esac
13429  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13430  postinstall_cmds='chmod 555 $lib'
13431  ;;
13432
13433interix[3-9]*)
13434  version_type=linux
13435  need_lib_prefix=no
13436  need_version=no
13437  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13438  soname_spec='${libname}${release}${shared_ext}$major'
13439  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13440  shlibpath_var=LD_LIBRARY_PATH
13441  shlibpath_overrides_runpath=no
13442  hardcode_into_libs=yes
13443  ;;
13444
13445irix5* | irix6* | nonstopux*)
13446  case $host_os in
13447    nonstopux*) version_type=nonstopux ;;
13448    *)
13449	if test "$lt_cv_prog_gnu_ld" = yes; then
13450		version_type=linux
13451	else
13452		version_type=irix
13453	fi ;;
13454  esac
13455  need_lib_prefix=no
13456  need_version=no
13457  soname_spec='${libname}${release}${shared_ext}$major'
13458  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13459  case $host_os in
13460  irix5* | nonstopux*)
13461    libsuff= shlibsuff=
13462    ;;
13463  *)
13464    case $LD in # libtool.m4 will add one of these switches to LD
13465    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13466      libsuff= shlibsuff= libmagic=32-bit;;
13467    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13468      libsuff=32 shlibsuff=N32 libmagic=N32;;
13469    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13470      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13471    *) libsuff= shlibsuff= libmagic=never-match;;
13472    esac
13473    ;;
13474  esac
13475  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13476  shlibpath_overrides_runpath=no
13477  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13478  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13479  hardcode_into_libs=yes
13480  ;;
13481
13482# No shared lib support for Linux oldld, aout, or coff.
13483linux*oldld* | linux*aout* | linux*coff*)
13484  dynamic_linker=no
13485  ;;
13486
13487# This must be Linux ELF.
13488linux* | k*bsd*-gnu)
13489  version_type=linux
13490  need_lib_prefix=no
13491  need_version=no
13492  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13493  soname_spec='${libname}${release}${shared_ext}$major'
13494  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13495  shlibpath_var=LD_LIBRARY_PATH
13496  shlibpath_overrides_runpath=no
13497  # This implies no fast_install, which is unacceptable.
13498  # Some rework will be needed to allow for fast_install
13499  # before this can be enabled.
13500  hardcode_into_libs=yes
13501  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13502  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13503
13504  # Append ld.so.conf contents to the search path
13505  if test -f /etc/ld.so.conf; then
13506    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' ' '`
13507    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13508  fi
13509
13510  # We used to test for /lib/ld.so.1 and disable shared libraries on
13511  # powerpc, because MkLinux only supported shared libraries with the
13512  # GNU dynamic linker.  Since this was broken with cross compilers,
13513  # most powerpc-linux boxes support dynamic linking these days and
13514  # people can always --disable-shared, the test was removed, and we
13515  # assume the GNU/Linux dynamic linker is in use.
13516  dynamic_linker='GNU/Linux ld.so'
13517  ;;
13518
13519netbsd*)
13520  version_type=sunos
13521  need_lib_prefix=no
13522  need_version=no
13523  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13524    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13525    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13526    dynamic_linker='NetBSD (a.out) ld.so'
13527  else
13528    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13529    soname_spec='${libname}${release}${shared_ext}$major'
13530    dynamic_linker='NetBSD ld.elf_so'
13531  fi
13532  shlibpath_var=LD_LIBRARY_PATH
13533  shlibpath_overrides_runpath=yes
13534  hardcode_into_libs=yes
13535  ;;
13536
13537newsos6)
13538  version_type=linux
13539  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13540  shlibpath_var=LD_LIBRARY_PATH
13541  shlibpath_overrides_runpath=yes
13542  ;;
13543
13544nto-qnx*)
13545  version_type=linux
13546  need_lib_prefix=no
13547  need_version=no
13548  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13549  soname_spec='${libname}${release}${shared_ext}$major'
13550  shlibpath_var=LD_LIBRARY_PATH
13551  shlibpath_overrides_runpath=yes
13552  ;;
13553
13554openbsd*)
13555  version_type=sunos
13556  sys_lib_dlsearch_path_spec="/usr/lib"
13557  need_lib_prefix=no
13558  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13559  case $host_os in
13560    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13561    *)                         need_version=no  ;;
13562  esac
13563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13564  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13565  shlibpath_var=LD_LIBRARY_PATH
13566  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13567    case $host_os in
13568      openbsd2.[89] | openbsd2.[89].*)
13569	shlibpath_overrides_runpath=no
13570	;;
13571      *)
13572	shlibpath_overrides_runpath=yes
13573	;;
13574      esac
13575  else
13576    shlibpath_overrides_runpath=yes
13577  fi
13578  ;;
13579
13580os2*)
13581  libname_spec='$name'
13582  shrext_cmds=".dll"
13583  need_lib_prefix=no
13584  library_names_spec='$libname${shared_ext} $libname.a'
13585  dynamic_linker='OS/2 ld.exe'
13586  shlibpath_var=LIBPATH
13587  ;;
13588
13589osf3* | osf4* | osf5*)
13590  version_type=osf
13591  need_lib_prefix=no
13592  need_version=no
13593  soname_spec='${libname}${release}${shared_ext}$major'
13594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13595  shlibpath_var=LD_LIBRARY_PATH
13596  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13597  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13598  ;;
13599
13600rdos*)
13601  dynamic_linker=no
13602  ;;
13603
13604solaris*)
13605  version_type=linux
13606  need_lib_prefix=no
13607  need_version=no
13608  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13609  soname_spec='${libname}${release}${shared_ext}$major'
13610  shlibpath_var=LD_LIBRARY_PATH
13611  shlibpath_overrides_runpath=yes
13612  hardcode_into_libs=yes
13613  # ldd complains unless libraries are executable
13614  postinstall_cmds='chmod +x $lib'
13615  ;;
13616
13617sunos4*)
13618  version_type=sunos
13619  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13620  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13621  shlibpath_var=LD_LIBRARY_PATH
13622  shlibpath_overrides_runpath=yes
13623  if test "$with_gnu_ld" = yes; then
13624    need_lib_prefix=no
13625  fi
13626  need_version=yes
13627  ;;
13628
13629sysv4 | sysv4.3*)
13630  version_type=linux
13631  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13632  soname_spec='${libname}${release}${shared_ext}$major'
13633  shlibpath_var=LD_LIBRARY_PATH
13634  case $host_vendor in
13635    sni)
13636      shlibpath_overrides_runpath=no
13637      need_lib_prefix=no
13638      export_dynamic_flag_spec='${wl}-Blargedynsym'
13639      runpath_var=LD_RUN_PATH
13640      ;;
13641    siemens)
13642      need_lib_prefix=no
13643      ;;
13644    motorola)
13645      need_lib_prefix=no
13646      need_version=no
13647      shlibpath_overrides_runpath=no
13648      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13649      ;;
13650  esac
13651  ;;
13652
13653sysv4*MP*)
13654  if test -d /usr/nec ;then
13655    version_type=linux
13656    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13657    soname_spec='$libname${shared_ext}.$major'
13658    shlibpath_var=LD_LIBRARY_PATH
13659  fi
13660  ;;
13661
13662sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13663  version_type=freebsd-elf
13664  need_lib_prefix=no
13665  need_version=no
13666  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13667  soname_spec='${libname}${release}${shared_ext}$major'
13668  shlibpath_var=LD_LIBRARY_PATH
13669  hardcode_into_libs=yes
13670  if test "$with_gnu_ld" = yes; then
13671    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13672    shlibpath_overrides_runpath=no
13673  else
13674    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13675    shlibpath_overrides_runpath=yes
13676    case $host_os in
13677      sco3.2v5*)
13678        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13679	;;
13680    esac
13681  fi
13682  sys_lib_dlsearch_path_spec='/usr/lib'
13683  ;;
13684
13685uts4*)
13686  version_type=linux
13687  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13688  soname_spec='${libname}${release}${shared_ext}$major'
13689  shlibpath_var=LD_LIBRARY_PATH
13690  ;;
13691
13692*)
13693  dynamic_linker=no
13694  ;;
13695esac
13696{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13697$as_echo "$dynamic_linker" >&6; }
13698test "$dynamic_linker" = no && can_build_shared=no
13699
13700if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13701  $as_echo_n "(cached) " >&6
13702else
13703  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13704fi
13705
13706sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13707if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13708  $as_echo_n "(cached) " >&6
13709else
13710  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13711fi
13712
13713sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13714
13715variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13716if test "$GCC" = yes; then
13717  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13718fi
13719
13720{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13721$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13722hardcode_action_CXX=
13723if test -n "$hardcode_libdir_flag_spec_CXX" || \
13724   test -n "$runpath_var_CXX" || \
13725   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13726
13727  # We can hardcode non-existant directories.
13728  if test "$hardcode_direct_CXX" != no &&
13729     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13730     # have to relink, otherwise we might link with an installed library
13731     # when we should be linking with a yet-to-be-installed one
13732     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13733     test "$hardcode_minus_L_CXX" != no; then
13734    # Linking always hardcodes the temporary library directory.
13735    hardcode_action_CXX=relink
13736  else
13737    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13738    hardcode_action_CXX=immediate
13739  fi
13740else
13741  # We cannot hardcode anything, or else we can only hardcode existing
13742  # directories.
13743  hardcode_action_CXX=unsupported
13744fi
13745{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13746$as_echo "$hardcode_action_CXX" >&6; }
13747
13748if test "$hardcode_action_CXX" = relink; then
13749  # Fast installation is not supported
13750  enable_fast_install=no
13751elif test "$shlibpath_overrides_runpath" = yes ||
13752     test "$enable_shared" = no; then
13753  # Fast installation is not necessary
13754  enable_fast_install=needless
13755fi
13756
13757
13758# The else clause should only fire when bootstrapping the
13759# libtool distribution, otherwise you forgot to ship ltmain.sh
13760# with your package, and you will get complaints that there are
13761# no rules to generate ltmain.sh.
13762if test -f "$ltmain"; then
13763  # See if we are running on zsh, and set the options which allow our commands through
13764  # without removal of \ escapes.
13765  if test -n "${ZSH_VERSION+set}" ; then
13766    setopt NO_GLOB_SUBST
13767  fi
13768  # Now quote all the things that may contain metacharacters while being
13769  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13770  # variables and quote the copies for generation of the libtool script.
13771  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13772    SED SHELL STRIP \
13773    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13774    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13775    deplibs_check_method reload_flag reload_cmds need_locks \
13776    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13777    lt_cv_sys_global_symbol_to_c_name_address \
13778    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13779    old_postinstall_cmds old_postuninstall_cmds \
13780    compiler_CXX \
13781    CC_CXX \
13782    LD_CXX \
13783    lt_prog_compiler_wl_CXX \
13784    lt_prog_compiler_pic_CXX \
13785    lt_prog_compiler_static_CXX \
13786    lt_prog_compiler_no_builtin_flag_CXX \
13787    export_dynamic_flag_spec_CXX \
13788    thread_safe_flag_spec_CXX \
13789    whole_archive_flag_spec_CXX \
13790    enable_shared_with_static_runtimes_CXX \
13791    old_archive_cmds_CXX \
13792    old_archive_from_new_cmds_CXX \
13793    predep_objects_CXX \
13794    postdep_objects_CXX \
13795    predeps_CXX \
13796    postdeps_CXX \
13797    compiler_lib_search_path_CXX \
13798    compiler_lib_search_dirs_CXX \
13799    archive_cmds_CXX \
13800    archive_expsym_cmds_CXX \
13801    postinstall_cmds_CXX \
13802    postuninstall_cmds_CXX \
13803    old_archive_from_expsyms_cmds_CXX \
13804    allow_undefined_flag_CXX \
13805    no_undefined_flag_CXX \
13806    export_symbols_cmds_CXX \
13807    hardcode_libdir_flag_spec_CXX \
13808    hardcode_libdir_flag_spec_ld_CXX \
13809    hardcode_libdir_separator_CXX \
13810    hardcode_automatic_CXX \
13811    module_cmds_CXX \
13812    module_expsym_cmds_CXX \
13813    lt_cv_prog_compiler_c_o_CXX \
13814    fix_srcfile_path_CXX \
13815    exclude_expsyms_CXX \
13816    include_expsyms_CXX; do
13817
13818    case $var in
13819    old_archive_cmds_CXX | \
13820    old_archive_from_new_cmds_CXX | \
13821    archive_cmds_CXX | \
13822    archive_expsym_cmds_CXX | \
13823    module_cmds_CXX | \
13824    module_expsym_cmds_CXX | \
13825    old_archive_from_expsyms_cmds_CXX | \
13826    export_symbols_cmds_CXX | \
13827    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13828    postinstall_cmds | postuninstall_cmds | \
13829    old_postinstall_cmds | old_postuninstall_cmds | \
13830    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13831      # Double-quote double-evaled strings.
13832      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13833      ;;
13834    *)
13835      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13836      ;;
13837    esac
13838  done
13839
13840  case $lt_echo in
13841  *'\$0 --fallback-echo"')
13842    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13843    ;;
13844  esac
13845
13846cfgfile="$ofile"
13847
13848  cat <<__EOF__ >> "$cfgfile"
13849# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13850
13851# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13852
13853# Shell to use when invoking shell scripts.
13854SHELL=$lt_SHELL
13855
13856# Whether or not to build shared libraries.
13857build_libtool_libs=$enable_shared
13858
13859# Whether or not to build static libraries.
13860build_old_libs=$enable_static
13861
13862# Whether or not to add -lc for building shared libraries.
13863build_libtool_need_lc=$archive_cmds_need_lc_CXX
13864
13865# Whether or not to disallow shared libs when runtime libs are static
13866allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13867
13868# Whether or not to optimize for fast installation.
13869fast_install=$enable_fast_install
13870
13871# The host system.
13872host_alias=$host_alias
13873host=$host
13874host_os=$host_os
13875
13876# The build system.
13877build_alias=$build_alias
13878build=$build
13879build_os=$build_os
13880
13881# An echo program that does not interpret backslashes.
13882echo=$lt_echo
13883
13884# The archiver.
13885AR=$lt_AR
13886AR_FLAGS=$lt_AR_FLAGS
13887
13888# A C compiler.
13889LTCC=$lt_LTCC
13890
13891# LTCC compiler flags.
13892LTCFLAGS=$lt_LTCFLAGS
13893
13894# A language-specific compiler.
13895CC=$lt_compiler_CXX
13896
13897# Is the compiler the GNU C compiler?
13898with_gcc=$GCC_CXX
13899
13900# An ERE matcher.
13901EGREP=$lt_EGREP
13902
13903# The linker used to build libraries.
13904LD=$lt_LD_CXX
13905
13906# Whether we need hard or soft links.
13907LN_S=$lt_LN_S
13908
13909# A BSD-compatible nm program.
13910NM=$lt_NM
13911
13912# A symbol stripping program
13913STRIP=$lt_STRIP
13914
13915# Used to examine libraries when file_magic_cmd begins "file"
13916MAGIC_CMD=$MAGIC_CMD
13917
13918# Used on cygwin: DLL creation program.
13919DLLTOOL="$DLLTOOL"
13920
13921# Used on cygwin: object dumper.
13922OBJDUMP="$OBJDUMP"
13923
13924# Used on cygwin: assembler.
13925AS="$AS"
13926
13927# The name of the directory that contains temporary libtool files.
13928objdir=$objdir
13929
13930# How to create reloadable object files.
13931reload_flag=$lt_reload_flag
13932reload_cmds=$lt_reload_cmds
13933
13934# How to pass a linker flag through the compiler.
13935wl=$lt_lt_prog_compiler_wl_CXX
13936
13937# Object file suffix (normally "o").
13938objext="$ac_objext"
13939
13940# Old archive suffix (normally "a").
13941libext="$libext"
13942
13943# Shared library suffix (normally ".so").
13944shrext_cmds='$shrext_cmds'
13945
13946# Executable file suffix (normally "").
13947exeext="$exeext"
13948
13949# Additional compiler flags for building library objects.
13950pic_flag=$lt_lt_prog_compiler_pic_CXX
13951pic_mode=$pic_mode
13952
13953# What is the maximum length of a command?
13954max_cmd_len=$lt_cv_sys_max_cmd_len
13955
13956# Does compiler simultaneously support -c and -o options?
13957compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13958
13959# Must we lock files when doing compilation?
13960need_locks=$lt_need_locks
13961
13962# Do we need the lib prefix for modules?
13963need_lib_prefix=$need_lib_prefix
13964
13965# Do we need a version for libraries?
13966need_version=$need_version
13967
13968# Whether dlopen is supported.
13969dlopen_support=$enable_dlopen
13970
13971# Whether dlopen of programs is supported.
13972dlopen_self=$enable_dlopen_self
13973
13974# Whether dlopen of statically linked programs is supported.
13975dlopen_self_static=$enable_dlopen_self_static
13976
13977# Compiler flag to prevent dynamic linking.
13978link_static_flag=$lt_lt_prog_compiler_static_CXX
13979
13980# Compiler flag to turn off builtin functions.
13981no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13982
13983# Compiler flag to allow reflexive dlopens.
13984export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13985
13986# Compiler flag to generate shared objects directly from archives.
13987whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13988
13989# Compiler flag to generate thread-safe objects.
13990thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13991
13992# Library versioning type.
13993version_type=$version_type
13994
13995# Format of library name prefix.
13996libname_spec=$lt_libname_spec
13997
13998# List of archive names.  First name is the real one, the rest are links.
13999# The last name is the one that the linker finds with -lNAME.
14000library_names_spec=$lt_library_names_spec
14001
14002# The coded name of the library, if different from the real name.
14003soname_spec=$lt_soname_spec
14004
14005# Commands used to build and install an old-style archive.
14006RANLIB=$lt_RANLIB
14007old_archive_cmds=$lt_old_archive_cmds_CXX
14008old_postinstall_cmds=$lt_old_postinstall_cmds
14009old_postuninstall_cmds=$lt_old_postuninstall_cmds
14010
14011# Create an old-style archive from a shared archive.
14012old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14013
14014# Create a temporary old-style archive to link instead of a shared archive.
14015old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14016
14017# Commands used to build and install a shared archive.
14018archive_cmds=$lt_archive_cmds_CXX
14019archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14020postinstall_cmds=$lt_postinstall_cmds
14021postuninstall_cmds=$lt_postuninstall_cmds
14022
14023# Commands used to build a loadable module (assumed same as above if empty)
14024module_cmds=$lt_module_cmds_CXX
14025module_expsym_cmds=$lt_module_expsym_cmds_CXX
14026
14027# Commands to strip libraries.
14028old_striplib=$lt_old_striplib
14029striplib=$lt_striplib
14030
14031# Dependencies to place before the objects being linked to create a
14032# shared library.
14033predep_objects=$lt_predep_objects_CXX
14034
14035# Dependencies to place after the objects being linked to create a
14036# shared library.
14037postdep_objects=$lt_postdep_objects_CXX
14038
14039# Dependencies to place before the objects being linked to create a
14040# shared library.
14041predeps=$lt_predeps_CXX
14042
14043# Dependencies to place after the objects being linked to create a
14044# shared library.
14045postdeps=$lt_postdeps_CXX
14046
14047# The directories searched by this compiler when creating a shared
14048# library
14049compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14050
14051# The library search path used internally by the compiler when linking
14052# a shared library.
14053compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14054
14055# Method to check whether dependent libraries are shared objects.
14056deplibs_check_method=$lt_deplibs_check_method
14057
14058# Command to use when deplibs_check_method == file_magic.
14059file_magic_cmd=$lt_file_magic_cmd
14060
14061# Flag that allows shared libraries with undefined symbols to be built.
14062allow_undefined_flag=$lt_allow_undefined_flag_CXX
14063
14064# Flag that forces no undefined symbols.
14065no_undefined_flag=$lt_no_undefined_flag_CXX
14066
14067# Commands used to finish a libtool library installation in a directory.
14068finish_cmds=$lt_finish_cmds
14069
14070# Same as above, but a single script fragment to be evaled but not shown.
14071finish_eval=$lt_finish_eval
14072
14073# Take the output of nm and produce a listing of raw symbols and C names.
14074global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14075
14076# Transform the output of nm in a proper C declaration
14077global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14078
14079# Transform the output of nm in a C name address pair
14080global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14081
14082# This is the shared library runtime path variable.
14083runpath_var=$runpath_var
14084
14085# This is the shared library path variable.
14086shlibpath_var=$shlibpath_var
14087
14088# Is shlibpath searched before the hard-coded library search path?
14089shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14090
14091# How to hardcode a shared library path into an executable.
14092hardcode_action=$hardcode_action_CXX
14093
14094# Whether we should hardcode library paths into libraries.
14095hardcode_into_libs=$hardcode_into_libs
14096
14097# Flag to hardcode \$libdir into a binary during linking.
14098# This must work even if \$libdir does not exist.
14099hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14100
14101# If ld is used when linking, flag to hardcode \$libdir into
14102# a binary during linking. This must work even if \$libdir does
14103# not exist.
14104hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14105
14106# Whether we need a single -rpath flag with a separated argument.
14107hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14108
14109# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14110# resulting binary.
14111hardcode_direct=$hardcode_direct_CXX
14112
14113# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14114# resulting binary.
14115hardcode_minus_L=$hardcode_minus_L_CXX
14116
14117# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14118# the resulting binary.
14119hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14120
14121# Set to yes if building a shared library automatically hardcodes DIR into the library
14122# and all subsequent libraries and executables linked against it.
14123hardcode_automatic=$hardcode_automatic_CXX
14124
14125# Variables whose values should be saved in libtool wrapper scripts and
14126# restored at relink time.
14127variables_saved_for_relink="$variables_saved_for_relink"
14128
14129# Whether libtool must link a program against all its dependency libraries.
14130link_all_deplibs=$link_all_deplibs_CXX
14131
14132# Compile-time system search path for libraries
14133sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14134
14135# Run-time system search path for libraries
14136sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14137
14138# Fix the shell variable \$srcfile for the compiler.
14139fix_srcfile_path=$lt_fix_srcfile_path
14140
14141# Set to yes if exported symbols are required.
14142always_export_symbols=$always_export_symbols_CXX
14143
14144# The commands to list exported symbols.
14145export_symbols_cmds=$lt_export_symbols_cmds_CXX
14146
14147# The commands to extract the exported symbol list from a shared archive.
14148extract_expsyms_cmds=$lt_extract_expsyms_cmds
14149
14150# Symbols that should not be listed in the preloaded symbols.
14151exclude_expsyms=$lt_exclude_expsyms_CXX
14152
14153# Symbols that must always be exported.
14154include_expsyms=$lt_include_expsyms_CXX
14155
14156# ### END LIBTOOL TAG CONFIG: $tagname
14157
14158__EOF__
14159
14160
14161else
14162  # If there is no Makefile yet, we rely on a make rule to execute
14163  # `config.status --recheck' to rerun these tests and create the
14164  # libtool script then.
14165  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14166  if test -f "$ltmain_in"; then
14167    test -f Makefile && make "$ltmain"
14168  fi
14169fi
14170
14171
14172ac_ext=c
14173ac_cpp='$CPP $CPPFLAGS'
14174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14176ac_compiler_gnu=$ac_cv_c_compiler_gnu
14177
14178CC=$lt_save_CC
14179LDCXX=$LD
14180LD=$lt_save_LD
14181GCC=$lt_save_GCC
14182with_gnu_ldcxx=$with_gnu_ld
14183with_gnu_ld=$lt_save_with_gnu_ld
14184lt_cv_path_LDCXX=$lt_cv_path_LD
14185lt_cv_path_LD=$lt_save_path_LD
14186lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14187lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14188
14189	else
14190	  tagname=""
14191	fi
14192	;;
14193
14194      F77)
14195	if test -n "$F77" && test "X$F77" != "Xno"; then
14196
14197ac_ext=f
14198ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14199ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14200ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14201
14202
14203archive_cmds_need_lc_F77=no
14204allow_undefined_flag_F77=
14205always_export_symbols_F77=no
14206archive_expsym_cmds_F77=
14207export_dynamic_flag_spec_F77=
14208hardcode_direct_F77=no
14209hardcode_libdir_flag_spec_F77=
14210hardcode_libdir_flag_spec_ld_F77=
14211hardcode_libdir_separator_F77=
14212hardcode_minus_L_F77=no
14213hardcode_automatic_F77=no
14214module_cmds_F77=
14215module_expsym_cmds_F77=
14216link_all_deplibs_F77=unknown
14217old_archive_cmds_F77=$old_archive_cmds
14218no_undefined_flag_F77=
14219whole_archive_flag_spec_F77=
14220enable_shared_with_static_runtimes_F77=no
14221
14222# Source file extension for f77 test sources.
14223ac_ext=f
14224
14225# Object file extension for compiled f77 test sources.
14226objext=o
14227objext_F77=$objext
14228
14229# Code to be used in simple compile tests
14230lt_simple_compile_test_code="\
14231      subroutine t
14232      return
14233      end
14234"
14235
14236# Code to be used in simple link tests
14237lt_simple_link_test_code="\
14238      program t
14239      end
14240"
14241
14242# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14243
14244# If no C compiler was specified, use CC.
14245LTCC=${LTCC-"$CC"}
14246
14247# If no C compiler flags were specified, use CFLAGS.
14248LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14249
14250# Allow CC to be a program name with arguments.
14251compiler=$CC
14252
14253
14254# save warnings/boilerplate of simple test code
14255ac_outfile=conftest.$ac_objext
14256echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14257eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14258_lt_compiler_boilerplate=`cat conftest.err`
14259$rm conftest*
14260
14261ac_outfile=conftest.$ac_objext
14262echo "$lt_simple_link_test_code" >conftest.$ac_ext
14263eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14264_lt_linker_boilerplate=`cat conftest.err`
14265$rm -r conftest*
14266
14267
14268# Allow CC to be a program name with arguments.
14269lt_save_CC="$CC"
14270CC=${F77-"f77"}
14271compiler=$CC
14272compiler_F77=$CC
14273for cc_temp in $compiler""; do
14274  case $cc_temp in
14275    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14276    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14277    \-*) ;;
14278    *) break;;
14279  esac
14280done
14281cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14282
14283
14284{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14285$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14286{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14287$as_echo "$can_build_shared" >&6; }
14288
14289{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14290$as_echo_n "checking whether to build shared libraries... " >&6; }
14291test "$can_build_shared" = "no" && enable_shared=no
14292
14293# On AIX, shared libraries and static libraries use the same namespace, and
14294# are all built from PIC.
14295case $host_os in
14296aix3*)
14297  test "$enable_shared" = yes && enable_static=no
14298  if test -n "$RANLIB"; then
14299    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14300    postinstall_cmds='$RANLIB $lib'
14301  fi
14302  ;;
14303aix[4-9]*)
14304  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14305    test "$enable_shared" = yes && enable_static=no
14306  fi
14307  ;;
14308esac
14309{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14310$as_echo "$enable_shared" >&6; }
14311
14312{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14313$as_echo_n "checking whether to build static libraries... " >&6; }
14314# Make sure either enable_shared or enable_static is yes.
14315test "$enable_shared" = yes || enable_static=yes
14316{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14317$as_echo "$enable_static" >&6; }
14318
14319GCC_F77="$G77"
14320LD_F77="$LD"
14321
14322lt_prog_compiler_wl_F77=
14323lt_prog_compiler_pic_F77=
14324lt_prog_compiler_static_F77=
14325
14326{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14327$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14328
14329  if test "$GCC" = yes; then
14330    lt_prog_compiler_wl_F77='-Wl,'
14331    lt_prog_compiler_static_F77='-static'
14332
14333    case $host_os in
14334      aix*)
14335      # All AIX code is PIC.
14336      if test "$host_cpu" = ia64; then
14337	# AIX 5 now supports IA64 processor
14338	lt_prog_compiler_static_F77='-Bstatic'
14339      fi
14340      ;;
14341
14342    amigaos*)
14343      # FIXME: we need at least 68020 code to build shared libraries, but
14344      # adding the `-m68020' flag to GCC prevents building anything better,
14345      # like `-m68040'.
14346      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14347      ;;
14348
14349    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14350      # PIC is the default for these OSes.
14351      ;;
14352
14353    mingw* | cygwin* | pw32* | os2*)
14354      # This hack is so that the source file can tell whether it is being
14355      # built for inclusion in a dll (and should export symbols for example).
14356      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14357      # (--disable-auto-import) libraries
14358      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14359      ;;
14360
14361    darwin* | rhapsody*)
14362      # PIC is the default on this platform
14363      # Common symbols not allowed in MH_DYLIB files
14364      lt_prog_compiler_pic_F77='-fno-common'
14365      ;;
14366
14367    interix[3-9]*)
14368      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14369      # Instead, we relocate shared libraries at runtime.
14370      ;;
14371
14372    msdosdjgpp*)
14373      # Just because we use GCC doesn't mean we suddenly get shared libraries
14374      # on systems that don't support them.
14375      lt_prog_compiler_can_build_shared_F77=no
14376      enable_shared=no
14377      ;;
14378
14379    sysv4*MP*)
14380      if test -d /usr/nec; then
14381	lt_prog_compiler_pic_F77=-Kconform_pic
14382      fi
14383      ;;
14384
14385    hpux*)
14386      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14387      # not for PA HP-UX.
14388      case $host_cpu in
14389      hppa*64*|ia64*)
14390	# +Z the default
14391	;;
14392      *)
14393	lt_prog_compiler_pic_F77='-fPIC'
14394	;;
14395      esac
14396      ;;
14397
14398    *)
14399      lt_prog_compiler_pic_F77='-fPIC'
14400      ;;
14401    esac
14402  else
14403    # PORTME Check for flag to pass linker flags through the system compiler.
14404    case $host_os in
14405    aix*)
14406      lt_prog_compiler_wl_F77='-Wl,'
14407      if test "$host_cpu" = ia64; then
14408	# AIX 5 now supports IA64 processor
14409	lt_prog_compiler_static_F77='-Bstatic'
14410      else
14411	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14412      fi
14413      ;;
14414      darwin*)
14415        # PIC is the default on this platform
14416        # Common symbols not allowed in MH_DYLIB files
14417       case $cc_basename in
14418         xlc*)
14419         lt_prog_compiler_pic_F77='-qnocommon'
14420         lt_prog_compiler_wl_F77='-Wl,'
14421         ;;
14422       esac
14423       ;;
14424
14425    mingw* | cygwin* | pw32* | os2*)
14426      # This hack is so that the source file can tell whether it is being
14427      # built for inclusion in a dll (and should export symbols for example).
14428      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14429      ;;
14430
14431    hpux9* | hpux10* | hpux11*)
14432      lt_prog_compiler_wl_F77='-Wl,'
14433      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14434      # not for PA HP-UX.
14435      case $host_cpu in
14436      hppa*64*|ia64*)
14437	# +Z the default
14438	;;
14439      *)
14440	lt_prog_compiler_pic_F77='+Z'
14441	;;
14442      esac
14443      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14444      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14445      ;;
14446
14447    irix5* | irix6* | nonstopux*)
14448      lt_prog_compiler_wl_F77='-Wl,'
14449      # PIC (with -KPIC) is the default.
14450      lt_prog_compiler_static_F77='-non_shared'
14451      ;;
14452
14453    newsos6)
14454      lt_prog_compiler_pic_F77='-KPIC'
14455      lt_prog_compiler_static_F77='-Bstatic'
14456      ;;
14457
14458    linux* | k*bsd*-gnu)
14459      case $cc_basename in
14460      icc* | ecc*)
14461	lt_prog_compiler_wl_F77='-Wl,'
14462	lt_prog_compiler_pic_F77='-KPIC'
14463	lt_prog_compiler_static_F77='-static'
14464        ;;
14465      pgcc* | pgf77* | pgf90* | pgf95*)
14466        # Portland Group compilers (*not* the Pentium gcc compiler,
14467	# which looks to be a dead project)
14468	lt_prog_compiler_wl_F77='-Wl,'
14469	lt_prog_compiler_pic_F77='-fpic'
14470	lt_prog_compiler_static_F77='-Bstatic'
14471        ;;
14472      ccc*)
14473        lt_prog_compiler_wl_F77='-Wl,'
14474        # All Alpha code is PIC.
14475        lt_prog_compiler_static_F77='-non_shared'
14476        ;;
14477      *)
14478        case `$CC -V 2>&1 | sed 5q` in
14479	*Sun\ C*)
14480	  # Sun C 5.9
14481	  lt_prog_compiler_pic_F77='-KPIC'
14482	  lt_prog_compiler_static_F77='-Bstatic'
14483	  lt_prog_compiler_wl_F77='-Wl,'
14484	  ;;
14485	*Sun\ F*)
14486	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14487	  lt_prog_compiler_pic_F77='-KPIC'
14488	  lt_prog_compiler_static_F77='-Bstatic'
14489	  lt_prog_compiler_wl_F77=''
14490	  ;;
14491	esac
14492	;;
14493      esac
14494      ;;
14495
14496    osf3* | osf4* | osf5*)
14497      lt_prog_compiler_wl_F77='-Wl,'
14498      # All OSF/1 code is PIC.
14499      lt_prog_compiler_static_F77='-non_shared'
14500      ;;
14501
14502    rdos*)
14503      lt_prog_compiler_static_F77='-non_shared'
14504      ;;
14505
14506    solaris*)
14507      lt_prog_compiler_pic_F77='-KPIC'
14508      lt_prog_compiler_static_F77='-Bstatic'
14509      case $cc_basename in
14510      f77* | f90* | f95*)
14511	lt_prog_compiler_wl_F77='-Qoption ld ';;
14512      *)
14513	lt_prog_compiler_wl_F77='-Wl,';;
14514      esac
14515      ;;
14516
14517    sunos4*)
14518      lt_prog_compiler_wl_F77='-Qoption ld '
14519      lt_prog_compiler_pic_F77='-PIC'
14520      lt_prog_compiler_static_F77='-Bstatic'
14521      ;;
14522
14523    sysv4 | sysv4.2uw2* | sysv4.3*)
14524      lt_prog_compiler_wl_F77='-Wl,'
14525      lt_prog_compiler_pic_F77='-KPIC'
14526      lt_prog_compiler_static_F77='-Bstatic'
14527      ;;
14528
14529    sysv4*MP*)
14530      if test -d /usr/nec ;then
14531	lt_prog_compiler_pic_F77='-Kconform_pic'
14532	lt_prog_compiler_static_F77='-Bstatic'
14533      fi
14534      ;;
14535
14536    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14537      lt_prog_compiler_wl_F77='-Wl,'
14538      lt_prog_compiler_pic_F77='-KPIC'
14539      lt_prog_compiler_static_F77='-Bstatic'
14540      ;;
14541
14542    unicos*)
14543      lt_prog_compiler_wl_F77='-Wl,'
14544      lt_prog_compiler_can_build_shared_F77=no
14545      ;;
14546
14547    uts4*)
14548      lt_prog_compiler_pic_F77='-pic'
14549      lt_prog_compiler_static_F77='-Bstatic'
14550      ;;
14551
14552    *)
14553      lt_prog_compiler_can_build_shared_F77=no
14554      ;;
14555    esac
14556  fi
14557
14558{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14559$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14560
14561#
14562# Check to make sure the PIC flag actually works.
14563#
14564if test -n "$lt_prog_compiler_pic_F77"; then
14565
14566{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14567$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14568if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14569  $as_echo_n "(cached) " >&6
14570else
14571  lt_cv_prog_compiler_pic_works_F77=no
14572  ac_outfile=conftest.$ac_objext
14573   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14574   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14575   # Insert the option either (1) after the last *FLAGS variable, or
14576   # (2) before a word containing "conftest.", or (3) at the end.
14577   # Note that $ac_compile itself does not contain backslashes and begins
14578   # with a dollar sign (not a hyphen), so the echo should work correctly.
14579   # The option is referenced via a variable to avoid confusing sed.
14580   lt_compile=`echo "$ac_compile" | $SED \
14581   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14582   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14583   -e 's:$: $lt_compiler_flag:'`
14584   (eval echo "\"\$as_me:14584: $lt_compile\"" >&5)
14585   (eval "$lt_compile" 2>conftest.err)
14586   ac_status=$?
14587   cat conftest.err >&5
14588   echo "$as_me:14588: \$? = $ac_status" >&5
14589   if (exit $ac_status) && test -s "$ac_outfile"; then
14590     # The compiler can only warn and ignore the option if not recognized
14591     # So say no if there are warnings other than the usual output.
14592     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14593     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14594     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14595       lt_cv_prog_compiler_pic_works_F77=yes
14596     fi
14597   fi
14598   $rm conftest*
14599
14600fi
14601{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14602$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14603
14604if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14605    case $lt_prog_compiler_pic_F77 in
14606     "" | " "*) ;;
14607     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14608     esac
14609else
14610    lt_prog_compiler_pic_F77=
14611     lt_prog_compiler_can_build_shared_F77=no
14612fi
14613
14614fi
14615case $host_os in
14616  # For platforms which do not support PIC, -DPIC is meaningless:
14617  *djgpp*)
14618    lt_prog_compiler_pic_F77=
14619    ;;
14620  *)
14621    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14622    ;;
14623esac
14624
14625#
14626# Check to make sure the static flag actually works.
14627#
14628wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14629{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14630$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14631if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14632  $as_echo_n "(cached) " >&6
14633else
14634  lt_cv_prog_compiler_static_works_F77=no
14635   save_LDFLAGS="$LDFLAGS"
14636   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14637   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14638   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14639     # The linker can only warn and ignore the option if not recognized
14640     # So say no if there are warnings
14641     if test -s conftest.err; then
14642       # Append any errors to the config.log.
14643       cat conftest.err 1>&5
14644       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14645       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14646       if diff conftest.exp conftest.er2 >/dev/null; then
14647         lt_cv_prog_compiler_static_works_F77=yes
14648       fi
14649     else
14650       lt_cv_prog_compiler_static_works_F77=yes
14651     fi
14652   fi
14653   $rm -r conftest*
14654   LDFLAGS="$save_LDFLAGS"
14655
14656fi
14657{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14658$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14659
14660if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14661    :
14662else
14663    lt_prog_compiler_static_F77=
14664fi
14665
14666
14667{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14668$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14669if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14670  $as_echo_n "(cached) " >&6
14671else
14672  lt_cv_prog_compiler_c_o_F77=no
14673   $rm -r conftest 2>/dev/null
14674   mkdir conftest
14675   cd conftest
14676   mkdir out
14677   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14678
14679   lt_compiler_flag="-o out/conftest2.$ac_objext"
14680   # Insert the option either (1) after the last *FLAGS variable, or
14681   # (2) before a word containing "conftest.", or (3) at the end.
14682   # Note that $ac_compile itself does not contain backslashes and begins
14683   # with a dollar sign (not a hyphen), so the echo should work correctly.
14684   lt_compile=`echo "$ac_compile" | $SED \
14685   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14686   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14687   -e 's:$: $lt_compiler_flag:'`
14688   (eval echo "\"\$as_me:14688: $lt_compile\"" >&5)
14689   (eval "$lt_compile" 2>out/conftest.err)
14690   ac_status=$?
14691   cat out/conftest.err >&5
14692   echo "$as_me:14692: \$? = $ac_status" >&5
14693   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14694   then
14695     # The compiler can only warn and ignore the option if not recognized
14696     # So say no if there are warnings
14697     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14698     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14699     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14700       lt_cv_prog_compiler_c_o_F77=yes
14701     fi
14702   fi
14703   chmod u+w . 2>&5
14704   $rm conftest*
14705   # SGI C++ compiler will create directory out/ii_files/ for
14706   # template instantiation
14707   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14708   $rm out/* && rmdir out
14709   cd ..
14710   rmdir conftest
14711   $rm conftest*
14712
14713fi
14714{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14715$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14716
14717
14718hard_links="nottested"
14719if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14720  # do not overwrite the value of need_locks provided by the user
14721  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14722$as_echo_n "checking if we can lock with hard links... " >&6; }
14723  hard_links=yes
14724  $rm conftest*
14725  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14726  touch conftest.a
14727  ln conftest.a conftest.b 2>&5 || hard_links=no
14728  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14729  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14730$as_echo "$hard_links" >&6; }
14731  if test "$hard_links" = no; then
14732    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14733$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14734    need_locks=warn
14735  fi
14736else
14737  need_locks=no
14738fi
14739
14740{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14741$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14742
14743  runpath_var=
14744  allow_undefined_flag_F77=
14745  enable_shared_with_static_runtimes_F77=no
14746  archive_cmds_F77=
14747  archive_expsym_cmds_F77=
14748  old_archive_From_new_cmds_F77=
14749  old_archive_from_expsyms_cmds_F77=
14750  export_dynamic_flag_spec_F77=
14751  whole_archive_flag_spec_F77=
14752  thread_safe_flag_spec_F77=
14753  hardcode_libdir_flag_spec_F77=
14754  hardcode_libdir_flag_spec_ld_F77=
14755  hardcode_libdir_separator_F77=
14756  hardcode_direct_F77=no
14757  hardcode_minus_L_F77=no
14758  hardcode_shlibpath_var_F77=unsupported
14759  link_all_deplibs_F77=unknown
14760  hardcode_automatic_F77=no
14761  module_cmds_F77=
14762  module_expsym_cmds_F77=
14763  always_export_symbols_F77=no
14764  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14765  # include_expsyms should be a list of space-separated symbols to be *always*
14766  # included in the symbol list
14767  include_expsyms_F77=
14768  # exclude_expsyms can be an extended regexp of symbols to exclude
14769  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14770  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14771  # as well as any symbol that contains `d'.
14772  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14773  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14774  # platforms (ab)use it in PIC code, but their linkers get confused if
14775  # the symbol is explicitly referenced.  Since portable code cannot
14776  # rely on this symbol name, it's probably fine to never include it in
14777  # preloaded symbol tables.
14778  # Exclude shared library initialization/finalization symbols.
14779  extract_expsyms_cmds=
14780  # Just being paranoid about ensuring that cc_basename is set.
14781  for cc_temp in $compiler""; do
14782  case $cc_temp in
14783    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14784    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14785    \-*) ;;
14786    *) break;;
14787  esac
14788done
14789cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14790
14791  case $host_os in
14792  cygwin* | mingw* | pw32*)
14793    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14794    # When not using gcc, we currently assume that we are using
14795    # Microsoft Visual C++.
14796    if test "$GCC" != yes; then
14797      with_gnu_ld=no
14798    fi
14799    ;;
14800  interix*)
14801    # we just hope/assume this is gcc and not c89 (= MSVC++)
14802    with_gnu_ld=yes
14803    ;;
14804  openbsd*)
14805    with_gnu_ld=no
14806    ;;
14807  esac
14808
14809  ld_shlibs_F77=yes
14810  if test "$with_gnu_ld" = yes; then
14811    # If archive_cmds runs LD, not CC, wlarc should be empty
14812    wlarc='${wl}'
14813
14814    # Set some defaults for GNU ld with shared library support. These
14815    # are reset later if shared libraries are not supported. Putting them
14816    # here allows them to be overridden if necessary.
14817    runpath_var=LD_RUN_PATH
14818    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14819    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14820    # ancient GNU ld didn't support --whole-archive et. al.
14821    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14822	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14823      else
14824  	whole_archive_flag_spec_F77=
14825    fi
14826    supports_anon_versioning=no
14827    case `$LD -v 2>/dev/null` in
14828      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14829      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14830      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14831      *\ 2.11.*) ;; # other 2.11 versions
14832      *) supports_anon_versioning=yes ;;
14833    esac
14834
14835    # See if GNU ld supports shared libraries.
14836    case $host_os in
14837    aix[3-9]*)
14838      # On AIX/PPC, the GNU linker is very broken
14839      if test "$host_cpu" != ia64; then
14840	ld_shlibs_F77=no
14841	cat <<EOF 1>&2
14842
14843*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14844*** to be unable to reliably create shared libraries on AIX.
14845*** Therefore, libtool is disabling shared libraries support.  If you
14846*** really care for shared libraries, you may want to modify your PATH
14847*** so that a non-GNU linker is found, and then restart.
14848
14849EOF
14850      fi
14851      ;;
14852
14853    amigaos*)
14854      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)'
14855      hardcode_libdir_flag_spec_F77='-L$libdir'
14856      hardcode_minus_L_F77=yes
14857
14858      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14859      # that the semantics of dynamic libraries on AmigaOS, at least up
14860      # to version 4, is to share data among multiple programs linked
14861      # with the same dynamic library.  Since this doesn't match the
14862      # behavior of shared libraries on other platforms, we can't use
14863      # them.
14864      ld_shlibs_F77=no
14865      ;;
14866
14867    beos*)
14868      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14869	allow_undefined_flag_F77=unsupported
14870	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14871	# support --undefined.  This deserves some investigation.  FIXME
14872	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14873      else
14874	ld_shlibs_F77=no
14875      fi
14876      ;;
14877
14878    cygwin* | mingw* | pw32*)
14879      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14880      # as there is no search path for DLLs.
14881      hardcode_libdir_flag_spec_F77='-L$libdir'
14882      allow_undefined_flag_F77=unsupported
14883      always_export_symbols_F77=no
14884      enable_shared_with_static_runtimes_F77=yes
14885      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14886
14887      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14888        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14889	# If the export-symbols file already is a .def file (1st line
14890	# is EXPORTS), use it as is; otherwise, prepend...
14891	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14892	  cp $export_symbols $output_objdir/$soname.def;
14893	else
14894	  echo EXPORTS > $output_objdir/$soname.def;
14895	  cat $export_symbols >> $output_objdir/$soname.def;
14896	fi~
14897	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14898      else
14899	ld_shlibs_F77=no
14900      fi
14901      ;;
14902
14903    interix[3-9]*)
14904      hardcode_direct_F77=no
14905      hardcode_shlibpath_var_F77=no
14906      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14907      export_dynamic_flag_spec_F77='${wl}-E'
14908      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14909      # Instead, shared libraries are loaded at an image base (0x10000000 by
14910      # default) and relocated if they conflict, which is a slow very memory
14911      # consuming and fragmenting process.  To avoid this, we pick a random,
14912      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14913      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14914      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'
14915      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'
14916      ;;
14917
14918    gnu* | linux* | k*bsd*-gnu)
14919      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14920	tmp_addflag=
14921	case $cc_basename,$host_cpu in
14922	pgcc*)				# Portland Group C compiler
14923	  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'
14924	  tmp_addflag=' $pic_flag'
14925	  ;;
14926	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14927	  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'
14928	  tmp_addflag=' $pic_flag -Mnomain' ;;
14929	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14930	  tmp_addflag=' -i_dynamic' ;;
14931	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14932	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14933	ifc* | ifort*)			# Intel Fortran compiler
14934	  tmp_addflag=' -nofor_main' ;;
14935	esac
14936	case `$CC -V 2>&1 | sed 5q` in
14937	*Sun\ C*)			# Sun C 5.9
14938	  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'
14939	  tmp_sharedflag='-G' ;;
14940	*Sun\ F*)			# Sun Fortran 8.3
14941	  tmp_sharedflag='-G' ;;
14942	*)
14943	  tmp_sharedflag='-shared' ;;
14944	esac
14945	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14946
14947	if test $supports_anon_versioning = yes; then
14948	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14949  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14950  $echo "local: *; };" >> $output_objdir/$libname.ver~
14951	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14952	fi
14953      else
14954	ld_shlibs_F77=no
14955      fi
14956      ;;
14957
14958    netbsd*)
14959      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14960	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14961	wlarc=
14962      else
14963	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14964	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14965      fi
14966      ;;
14967
14968    solaris*)
14969      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14970	ld_shlibs_F77=no
14971	cat <<EOF 1>&2
14972
14973*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14974*** create shared libraries on Solaris systems.  Therefore, libtool
14975*** is disabling shared libraries support.  We urge you to upgrade GNU
14976*** binutils to release 2.9.1 or newer.  Another option is to modify
14977*** your PATH or compiler configuration so that the native linker is
14978*** used, and then restart.
14979
14980EOF
14981      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14982	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14983	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14984      else
14985	ld_shlibs_F77=no
14986      fi
14987      ;;
14988
14989    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14990      case `$LD -v 2>&1` in
14991        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14992	ld_shlibs_F77=no
14993	cat <<_LT_EOF 1>&2
14994
14995*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14996*** reliably create shared libraries on SCO systems.  Therefore, libtool
14997*** is disabling shared libraries support.  We urge you to upgrade GNU
14998*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14999*** your PATH or compiler configuration so that the native linker is
15000*** used, and then restart.
15001
15002_LT_EOF
15003	;;
15004	*)
15005	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15006	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15007	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15008	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15009	  else
15010	    ld_shlibs_F77=no
15011	  fi
15012	;;
15013      esac
15014      ;;
15015
15016    sunos4*)
15017      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15018      wlarc=
15019      hardcode_direct_F77=yes
15020      hardcode_shlibpath_var_F77=no
15021      ;;
15022
15023    *)
15024      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15025	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15026	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15027      else
15028	ld_shlibs_F77=no
15029      fi
15030      ;;
15031    esac
15032
15033    if test "$ld_shlibs_F77" = no; then
15034      runpath_var=
15035      hardcode_libdir_flag_spec_F77=
15036      export_dynamic_flag_spec_F77=
15037      whole_archive_flag_spec_F77=
15038    fi
15039  else
15040    # PORTME fill in a description of your system's linker (not GNU ld)
15041    case $host_os in
15042    aix3*)
15043      allow_undefined_flag_F77=unsupported
15044      always_export_symbols_F77=yes
15045      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'
15046      # Note: this linker hardcodes the directories in LIBPATH if there
15047      # are no directories specified by -L.
15048      hardcode_minus_L_F77=yes
15049      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15050	# Neither direct hardcoding nor static linking is supported with a
15051	# broken collect2.
15052	hardcode_direct_F77=unsupported
15053      fi
15054      ;;
15055
15056    aix[4-9]*)
15057      if test "$host_cpu" = ia64; then
15058	# On IA64, the linker does run time linking by default, so we don't
15059	# have to do anything special.
15060	aix_use_runtimelinking=no
15061	exp_sym_flag='-Bexport'
15062	no_entry_flag=""
15063      else
15064	# If we're using GNU nm, then we don't want the "-C" option.
15065	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15066	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15067	  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'
15068	else
15069	  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'
15070	fi
15071	aix_use_runtimelinking=no
15072
15073	# Test if we are trying to use run time linking or normal
15074	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15075	# need to do runtime linking.
15076	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15077	  for ld_flag in $LDFLAGS; do
15078  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15079  	    aix_use_runtimelinking=yes
15080  	    break
15081  	  fi
15082	  done
15083	  ;;
15084	esac
15085
15086	exp_sym_flag='-bexport'
15087	no_entry_flag='-bnoentry'
15088      fi
15089
15090      # When large executables or shared objects are built, AIX ld can
15091      # have problems creating the table of contents.  If linking a library
15092      # or program results in "error TOC overflow" add -mminimal-toc to
15093      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15094      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15095
15096      archive_cmds_F77=''
15097      hardcode_direct_F77=yes
15098      hardcode_libdir_separator_F77=':'
15099      link_all_deplibs_F77=yes
15100
15101      if test "$GCC" = yes; then
15102	case $host_os in aix4.[012]|aix4.[012].*)
15103	# We only want to do this on AIX 4.2 and lower, the check
15104	# below for broken collect2 doesn't work under 4.3+
15105	  collect2name=`${CC} -print-prog-name=collect2`
15106	  if test -f "$collect2name" && \
15107  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15108	  then
15109  	  # We have reworked collect2
15110  	  :
15111	  else
15112  	  # We have old collect2
15113  	  hardcode_direct_F77=unsupported
15114  	  # It fails to find uninstalled libraries when the uninstalled
15115  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15116  	  # to unsupported forces relinking
15117  	  hardcode_minus_L_F77=yes
15118  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15119  	  hardcode_libdir_separator_F77=
15120	  fi
15121	  ;;
15122	esac
15123	shared_flag='-shared'
15124	if test "$aix_use_runtimelinking" = yes; then
15125	  shared_flag="$shared_flag "'${wl}-G'
15126	fi
15127      else
15128	# not using gcc
15129	if test "$host_cpu" = ia64; then
15130  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15131  	# chokes on -Wl,-G. The following line is correct:
15132	  shared_flag='-G'
15133	else
15134	  if test "$aix_use_runtimelinking" = yes; then
15135	    shared_flag='${wl}-G'
15136	  else
15137	    shared_flag='${wl}-bM:SRE'
15138	  fi
15139	fi
15140      fi
15141
15142      # It seems that -bexpall does not export symbols beginning with
15143      # underscore (_), so it is better to generate a list of symbols to export.
15144      always_export_symbols_F77=yes
15145      if test "$aix_use_runtimelinking" = yes; then
15146	# Warning - without using the other runtime loading flags (-brtl),
15147	# -berok will link without error, but may produce a broken library.
15148	allow_undefined_flag_F77='-berok'
15149       # Determine the default libpath from the value encoded in an empty executable.
15150       cat >conftest.$ac_ext <<_ACEOF
15151      program main
15152
15153      end
15154_ACEOF
15155rm -f conftest.$ac_objext conftest$ac_exeext
15156if { (ac_try="$ac_link"
15157case "(($ac_try" in
15158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159  *) ac_try_echo=$ac_try;;
15160esac
15161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15162$as_echo "$ac_try_echo") >&5
15163  (eval "$ac_link") 2>conftest.er1
15164  ac_status=$?
15165  grep -v '^ *+' conftest.er1 >conftest.err
15166  rm -f conftest.er1
15167  cat conftest.err >&5
15168  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169  (exit $ac_status); } && {
15170	 test -z "$ac_f77_werror_flag" ||
15171	 test ! -s conftest.err
15172       } && test -s conftest$ac_exeext && {
15173	 test "$cross_compiling" = yes ||
15174	 $as_test_x conftest$ac_exeext
15175       }; then
15176
15177lt_aix_libpath_sed='
15178    /Import File Strings/,/^$/ {
15179	/^0/ {
15180	    s/^0  *\(.*\)$/\1/
15181	    p
15182	}
15183    }'
15184aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15185# Check for a 64-bit object if we didn't find anything.
15186if test -z "$aix_libpath"; then
15187  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15188fi
15189else
15190  $as_echo "$as_me: failed program was:" >&5
15191sed 's/^/| /' conftest.$ac_ext >&5
15192
15193
15194fi
15195
15196rm -rf conftest.dSYM
15197rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15198      conftest$ac_exeext conftest.$ac_ext
15199if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15200
15201       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15202	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"
15203       else
15204	if test "$host_cpu" = ia64; then
15205	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15206	  allow_undefined_flag_F77="-z nodefs"
15207	  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"
15208	else
15209	 # Determine the default libpath from the value encoded in an empty executable.
15210	 cat >conftest.$ac_ext <<_ACEOF
15211      program main
15212
15213      end
15214_ACEOF
15215rm -f conftest.$ac_objext conftest$ac_exeext
15216if { (ac_try="$ac_link"
15217case "(($ac_try" in
15218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219  *) ac_try_echo=$ac_try;;
15220esac
15221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15222$as_echo "$ac_try_echo") >&5
15223  (eval "$ac_link") 2>conftest.er1
15224  ac_status=$?
15225  grep -v '^ *+' conftest.er1 >conftest.err
15226  rm -f conftest.er1
15227  cat conftest.err >&5
15228  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229  (exit $ac_status); } && {
15230	 test -z "$ac_f77_werror_flag" ||
15231	 test ! -s conftest.err
15232       } && test -s conftest$ac_exeext && {
15233	 test "$cross_compiling" = yes ||
15234	 $as_test_x conftest$ac_exeext
15235       }; then
15236
15237lt_aix_libpath_sed='
15238    /Import File Strings/,/^$/ {
15239	/^0/ {
15240	    s/^0  *\(.*\)$/\1/
15241	    p
15242	}
15243    }'
15244aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15245# Check for a 64-bit object if we didn't find anything.
15246if test -z "$aix_libpath"; then
15247  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15248fi
15249else
15250  $as_echo "$as_me: failed program was:" >&5
15251sed 's/^/| /' conftest.$ac_ext >&5
15252
15253
15254fi
15255
15256rm -rf conftest.dSYM
15257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15258      conftest$ac_exeext conftest.$ac_ext
15259if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15260
15261	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15262	  # Warning - without using the other run time loading flags,
15263	  # -berok will link without error, but may produce a broken library.
15264	  no_undefined_flag_F77=' ${wl}-bernotok'
15265	  allow_undefined_flag_F77=' ${wl}-berok'
15266	  # Exported symbols can be pulled into shared objects from archives
15267	  whole_archive_flag_spec_F77='$convenience'
15268	  archive_cmds_need_lc_F77=yes
15269	  # This is similar to how AIX traditionally builds its shared libraries.
15270	  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'
15271	fi
15272      fi
15273      ;;
15274
15275    amigaos*)
15276      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)'
15277      hardcode_libdir_flag_spec_F77='-L$libdir'
15278      hardcode_minus_L_F77=yes
15279      # see comment about different semantics on the GNU ld section
15280      ld_shlibs_F77=no
15281      ;;
15282
15283    bsdi[45]*)
15284      export_dynamic_flag_spec_F77=-rdynamic
15285      ;;
15286
15287    cygwin* | mingw* | pw32*)
15288      # When not using gcc, we currently assume that we are using
15289      # Microsoft Visual C++.
15290      # hardcode_libdir_flag_spec is actually meaningless, as there is
15291      # no search path for DLLs.
15292      hardcode_libdir_flag_spec_F77=' '
15293      allow_undefined_flag_F77=unsupported
15294      # Tell ltmain to make .lib files, not .a files.
15295      libext=lib
15296      # Tell ltmain to make .dll files, not .so files.
15297      shrext_cmds=".dll"
15298      # FIXME: Setting linknames here is a bad hack.
15299      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15300      # The linker will automatically build a .lib file if we build a DLL.
15301      old_archive_From_new_cmds_F77='true'
15302      # FIXME: Should let the user specify the lib program.
15303      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15304      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15305      enable_shared_with_static_runtimes_F77=yes
15306      ;;
15307
15308    darwin* | rhapsody*)
15309      case $host_os in
15310        rhapsody* | darwin1.[012])
15311         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15312         ;;
15313       *) # Darwin 1.3 on
15314         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15315           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15316         else
15317           case ${MACOSX_DEPLOYMENT_TARGET} in
15318             10.[012])
15319               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15320               ;;
15321             10.*)
15322               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15323               ;;
15324           esac
15325         fi
15326         ;;
15327      esac
15328      archive_cmds_need_lc_F77=no
15329      hardcode_direct_F77=no
15330      hardcode_automatic_F77=yes
15331      hardcode_shlibpath_var_F77=unsupported
15332      whole_archive_flag_spec_F77=''
15333      link_all_deplibs_F77=yes
15334    if test "$GCC" = yes ; then
15335    	output_verbose_link_cmd='echo'
15336        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}"
15337        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15338        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}"
15339        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}"
15340    else
15341      case $cc_basename in
15342        xlc*)
15343         output_verbose_link_cmd='echo'
15344         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15345         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15346          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15347         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}'
15348          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}'
15349          ;;
15350       *)
15351         ld_shlibs_F77=no
15352          ;;
15353      esac
15354    fi
15355      ;;
15356
15357    dgux*)
15358      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15359      hardcode_libdir_flag_spec_F77='-L$libdir'
15360      hardcode_shlibpath_var_F77=no
15361      ;;
15362
15363    freebsd1*)
15364      ld_shlibs_F77=no
15365      ;;
15366
15367    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15368    # support.  Future versions do this automatically, but an explicit c++rt0.o
15369    # does not break anything, and helps significantly (at the cost of a little
15370    # extra space).
15371    freebsd2.2*)
15372      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15373      hardcode_libdir_flag_spec_F77='-R$libdir'
15374      hardcode_direct_F77=yes
15375      hardcode_shlibpath_var_F77=no
15376      ;;
15377
15378    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15379    freebsd2*)
15380      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15381      hardcode_direct_F77=yes
15382      hardcode_minus_L_F77=yes
15383      hardcode_shlibpath_var_F77=no
15384      ;;
15385
15386    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15387    freebsd* | dragonfly*)
15388      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15389      hardcode_libdir_flag_spec_F77='-R$libdir'
15390      hardcode_direct_F77=yes
15391      hardcode_shlibpath_var_F77=no
15392      ;;
15393
15394    hpux9*)
15395      if test "$GCC" = yes; then
15396	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'
15397      else
15398	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'
15399      fi
15400      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15401      hardcode_libdir_separator_F77=:
15402      hardcode_direct_F77=yes
15403
15404      # hardcode_minus_L: Not really in the search PATH,
15405      # but as the default location of the library.
15406      hardcode_minus_L_F77=yes
15407      export_dynamic_flag_spec_F77='${wl}-E'
15408      ;;
15409
15410    hpux10*)
15411      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15412	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15413      else
15414	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15415      fi
15416      if test "$with_gnu_ld" = no; then
15417	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15418	hardcode_libdir_separator_F77=:
15419
15420	hardcode_direct_F77=yes
15421	export_dynamic_flag_spec_F77='${wl}-E'
15422
15423	# hardcode_minus_L: Not really in the search PATH,
15424	# but as the default location of the library.
15425	hardcode_minus_L_F77=yes
15426      fi
15427      ;;
15428
15429    hpux11*)
15430      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15431	case $host_cpu in
15432	hppa*64*)
15433	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15434	  ;;
15435	ia64*)
15436	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15437	  ;;
15438	*)
15439	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15440	  ;;
15441	esac
15442      else
15443	case $host_cpu in
15444	hppa*64*)
15445	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15446	  ;;
15447	ia64*)
15448	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15449	  ;;
15450	*)
15451	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15452	  ;;
15453	esac
15454      fi
15455      if test "$with_gnu_ld" = no; then
15456	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15457	hardcode_libdir_separator_F77=:
15458
15459	case $host_cpu in
15460	hppa*64*|ia64*)
15461	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15462	  hardcode_direct_F77=no
15463	  hardcode_shlibpath_var_F77=no
15464	  ;;
15465	*)
15466	  hardcode_direct_F77=yes
15467	  export_dynamic_flag_spec_F77='${wl}-E'
15468
15469	  # hardcode_minus_L: Not really in the search PATH,
15470	  # but as the default location of the library.
15471	  hardcode_minus_L_F77=yes
15472	  ;;
15473	esac
15474      fi
15475      ;;
15476
15477    irix5* | irix6* | nonstopux*)
15478      if test "$GCC" = yes; then
15479	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'
15480      else
15481	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'
15482	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15483      fi
15484      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15485      hardcode_libdir_separator_F77=:
15486      link_all_deplibs_F77=yes
15487      ;;
15488
15489    netbsd*)
15490      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15491	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15492      else
15493	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15494      fi
15495      hardcode_libdir_flag_spec_F77='-R$libdir'
15496      hardcode_direct_F77=yes
15497      hardcode_shlibpath_var_F77=no
15498      ;;
15499
15500    newsos6)
15501      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15502      hardcode_direct_F77=yes
15503      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15504      hardcode_libdir_separator_F77=:
15505      hardcode_shlibpath_var_F77=no
15506      ;;
15507
15508    openbsd*)
15509      if test -f /usr/libexec/ld.so; then
15510	hardcode_direct_F77=yes
15511	hardcode_shlibpath_var_F77=no
15512	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15513	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15514	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15515	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15516	  export_dynamic_flag_spec_F77='${wl}-E'
15517	else
15518	  case $host_os in
15519	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15520	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15521	     hardcode_libdir_flag_spec_F77='-R$libdir'
15522	     ;;
15523	   *)
15524	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15525	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15526	     ;;
15527	  esac
15528        fi
15529      else
15530	ld_shlibs_F77=no
15531      fi
15532      ;;
15533
15534    os2*)
15535      hardcode_libdir_flag_spec_F77='-L$libdir'
15536      hardcode_minus_L_F77=yes
15537      allow_undefined_flag_F77=unsupported
15538      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'
15539      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15540      ;;
15541
15542    osf3*)
15543      if test "$GCC" = yes; then
15544	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15545	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'
15546      else
15547	allow_undefined_flag_F77=' -expect_unresolved \*'
15548	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'
15549      fi
15550      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15551      hardcode_libdir_separator_F77=:
15552      ;;
15553
15554    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15555      if test "$GCC" = yes; then
15556	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15557	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'
15558	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15559      else
15560	allow_undefined_flag_F77=' -expect_unresolved \*'
15561	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'
15562	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~
15563	$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'
15564
15565	# Both c and cxx compiler support -rpath directly
15566	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15567      fi
15568      hardcode_libdir_separator_F77=:
15569      ;;
15570
15571    solaris*)
15572      no_undefined_flag_F77=' -z text'
15573      if test "$GCC" = yes; then
15574	wlarc='${wl}'
15575	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15576	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15577	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15578      else
15579	wlarc=''
15580	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15581	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15582  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15583      fi
15584      hardcode_libdir_flag_spec_F77='-R$libdir'
15585      hardcode_shlibpath_var_F77=no
15586      case $host_os in
15587      solaris2.[0-5] | solaris2.[0-5].*) ;;
15588      *)
15589	# The compiler driver will combine and reorder linker options,
15590	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15591	# but is careful enough not to reorder.
15592 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15593	if test "$GCC" = yes; then
15594	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15595	else
15596	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15597	fi
15598	;;
15599      esac
15600      link_all_deplibs_F77=yes
15601      ;;
15602
15603    sunos4*)
15604      if test "x$host_vendor" = xsequent; then
15605	# Use $CC to link under sequent, because it throws in some extra .o
15606	# files that make .init and .fini sections work.
15607	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15608      else
15609	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15610      fi
15611      hardcode_libdir_flag_spec_F77='-L$libdir'
15612      hardcode_direct_F77=yes
15613      hardcode_minus_L_F77=yes
15614      hardcode_shlibpath_var_F77=no
15615      ;;
15616
15617    sysv4)
15618      case $host_vendor in
15619	sni)
15620	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15621	  hardcode_direct_F77=yes # is this really true???
15622	;;
15623	siemens)
15624	  ## LD is ld it makes a PLAMLIB
15625	  ## CC just makes a GrossModule.
15626	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15627	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15628	  hardcode_direct_F77=no
15629        ;;
15630	motorola)
15631	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15632	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15633	;;
15634      esac
15635      runpath_var='LD_RUN_PATH'
15636      hardcode_shlibpath_var_F77=no
15637      ;;
15638
15639    sysv4.3*)
15640      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15641      hardcode_shlibpath_var_F77=no
15642      export_dynamic_flag_spec_F77='-Bexport'
15643      ;;
15644
15645    sysv4*MP*)
15646      if test -d /usr/nec; then
15647	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15648	hardcode_shlibpath_var_F77=no
15649	runpath_var=LD_RUN_PATH
15650	hardcode_runpath_var=yes
15651	ld_shlibs_F77=yes
15652      fi
15653      ;;
15654
15655    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15656      no_undefined_flag_F77='${wl}-z,text'
15657      archive_cmds_need_lc_F77=no
15658      hardcode_shlibpath_var_F77=no
15659      runpath_var='LD_RUN_PATH'
15660
15661      if test "$GCC" = yes; then
15662	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15663	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15664      else
15665	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15666	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15667      fi
15668      ;;
15669
15670    sysv5* | sco3.2v5* | sco5v6*)
15671      # Note: We can NOT use -z defs as we might desire, because we do not
15672      # link with -lc, and that would cause any symbols used from libc to
15673      # always be unresolved, which means just about no library would
15674      # ever link correctly.  If we're not using GNU ld we use -z text
15675      # though, which does catch some bad symbols but isn't as heavy-handed
15676      # as -z defs.
15677      no_undefined_flag_F77='${wl}-z,text'
15678      allow_undefined_flag_F77='${wl}-z,nodefs'
15679      archive_cmds_need_lc_F77=no
15680      hardcode_shlibpath_var_F77=no
15681      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15682      hardcode_libdir_separator_F77=':'
15683      link_all_deplibs_F77=yes
15684      export_dynamic_flag_spec_F77='${wl}-Bexport'
15685      runpath_var='LD_RUN_PATH'
15686
15687      if test "$GCC" = yes; then
15688	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15689	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15690      else
15691	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15692	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15693      fi
15694      ;;
15695
15696    uts4*)
15697      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15698      hardcode_libdir_flag_spec_F77='-L$libdir'
15699      hardcode_shlibpath_var_F77=no
15700      ;;
15701
15702    *)
15703      ld_shlibs_F77=no
15704      ;;
15705    esac
15706  fi
15707
15708{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15709$as_echo "$ld_shlibs_F77" >&6; }
15710test "$ld_shlibs_F77" = no && can_build_shared=no
15711
15712#
15713# Do we need to explicitly link libc?
15714#
15715case "x$archive_cmds_need_lc_F77" in
15716x|xyes)
15717  # Assume -lc should be added
15718  archive_cmds_need_lc_F77=yes
15719
15720  if test "$enable_shared" = yes && test "$GCC" = yes; then
15721    case $archive_cmds_F77 in
15722    *'~'*)
15723      # FIXME: we may have to deal with multi-command sequences.
15724      ;;
15725    '$CC '*)
15726      # Test whether the compiler implicitly links with -lc since on some
15727      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15728      # to ld, don't add -lc before -lgcc.
15729      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15730$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15731      $rm conftest*
15732      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15733
15734      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15735  (eval $ac_compile) 2>&5
15736  ac_status=$?
15737  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738  (exit $ac_status); } 2>conftest.err; then
15739        soname=conftest
15740        lib=conftest
15741        libobjs=conftest.$ac_objext
15742        deplibs=
15743        wl=$lt_prog_compiler_wl_F77
15744	pic_flag=$lt_prog_compiler_pic_F77
15745        compiler_flags=-v
15746        linker_flags=-v
15747        verstring=
15748        output_objdir=.
15749        libname=conftest
15750        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15751        allow_undefined_flag_F77=
15752        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15753  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15754  ac_status=$?
15755  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756  (exit $ac_status); }
15757        then
15758	  archive_cmds_need_lc_F77=no
15759        else
15760	  archive_cmds_need_lc_F77=yes
15761        fi
15762        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15763      else
15764        cat conftest.err 1>&5
15765      fi
15766      $rm conftest*
15767      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15768$as_echo "$archive_cmds_need_lc_F77" >&6; }
15769      ;;
15770    esac
15771  fi
15772  ;;
15773esac
15774
15775{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15776$as_echo_n "checking dynamic linker characteristics... " >&6; }
15777library_names_spec=
15778libname_spec='lib$name'
15779soname_spec=
15780shrext_cmds=".so"
15781postinstall_cmds=
15782postuninstall_cmds=
15783finish_cmds=
15784finish_eval=
15785shlibpath_var=
15786shlibpath_overrides_runpath=unknown
15787version_type=none
15788dynamic_linker="$host_os ld.so"
15789sys_lib_dlsearch_path_spec="/lib /usr/lib"
15790
15791need_lib_prefix=unknown
15792hardcode_into_libs=no
15793
15794# when you set need_version to no, make sure it does not cause -set_version
15795# flags to be left without arguments
15796need_version=unknown
15797
15798case $host_os in
15799aix3*)
15800  version_type=linux
15801  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15802  shlibpath_var=LIBPATH
15803
15804  # AIX 3 has no versioning support, so we append a major version to the name.
15805  soname_spec='${libname}${release}${shared_ext}$major'
15806  ;;
15807
15808aix[4-9]*)
15809  version_type=linux
15810  need_lib_prefix=no
15811  need_version=no
15812  hardcode_into_libs=yes
15813  if test "$host_cpu" = ia64; then
15814    # AIX 5 supports IA64
15815    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15816    shlibpath_var=LD_LIBRARY_PATH
15817  else
15818    # With GCC up to 2.95.x, collect2 would create an import file
15819    # for dependence libraries.  The import file would start with
15820    # the line `#! .'.  This would cause the generated library to
15821    # depend on `.', always an invalid library.  This was fixed in
15822    # development snapshots of GCC prior to 3.0.
15823    case $host_os in
15824      aix4 | aix4.[01] | aix4.[01].*)
15825      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15826	   echo ' yes '
15827	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15828	:
15829      else
15830	can_build_shared=no
15831      fi
15832      ;;
15833    esac
15834    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15835    # soname into executable. Probably we can add versioning support to
15836    # collect2, so additional links can be useful in future.
15837    if test "$aix_use_runtimelinking" = yes; then
15838      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15839      # instead of lib<name>.a to let people know that these are not
15840      # typical AIX shared libraries.
15841      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15842    else
15843      # We preserve .a as extension for shared libraries through AIX4.2
15844      # and later when we are not doing run time linking.
15845      library_names_spec='${libname}${release}.a $libname.a'
15846      soname_spec='${libname}${release}${shared_ext}$major'
15847    fi
15848    shlibpath_var=LIBPATH
15849  fi
15850  ;;
15851
15852amigaos*)
15853  library_names_spec='$libname.ixlibrary $libname.a'
15854  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15855  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'
15856  ;;
15857
15858beos*)
15859  library_names_spec='${libname}${shared_ext}'
15860  dynamic_linker="$host_os ld.so"
15861  shlibpath_var=LIBRARY_PATH
15862  ;;
15863
15864bsdi[45]*)
15865  version_type=linux
15866  need_version=no
15867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15868  soname_spec='${libname}${release}${shared_ext}$major'
15869  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15870  shlibpath_var=LD_LIBRARY_PATH
15871  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15872  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15873  # the default ld.so.conf also contains /usr/contrib/lib and
15874  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15875  # libtool to hard-code these into programs
15876  ;;
15877
15878cygwin* | mingw* | pw32*)
15879  version_type=windows
15880  shrext_cmds=".dll"
15881  need_version=no
15882  need_lib_prefix=no
15883
15884  case $GCC,$host_os in
15885  yes,cygwin* | yes,mingw* | yes,pw32*)
15886    library_names_spec='$libname.dll.a'
15887    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15888    postinstall_cmds='base_file=`basename \${file}`~
15889      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15890      dldir=$destdir/`dirname \$dlpath`~
15891      test -d \$dldir || mkdir -p \$dldir~
15892      $install_prog $dir/$dlname \$dldir/$dlname~
15893      chmod a+x \$dldir/$dlname'
15894    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15895      dlpath=$dir/\$dldll~
15896       $rm \$dlpath'
15897    shlibpath_overrides_runpath=yes
15898
15899    case $host_os in
15900    cygwin*)
15901      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15902      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15903      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15904      ;;
15905    mingw*)
15906      # MinGW DLLs use traditional 'lib' prefix
15907      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15908      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15909      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15910        # It is most probably a Windows format PATH printed by
15911        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15912        # path with ; separators, and with drive letters. We can handle the
15913        # drive letters (cygwin fileutils understands them), so leave them,
15914        # especially as we might pass files found there to a mingw objdump,
15915        # which wouldn't understand a cygwinified path. Ahh.
15916        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15917      else
15918        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15919      fi
15920      ;;
15921    pw32*)
15922      # pw32 DLLs use 'pw' prefix rather than 'lib'
15923      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15924      ;;
15925    esac
15926    ;;
15927
15928  *)
15929    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15930    ;;
15931  esac
15932  dynamic_linker='Win32 ld.exe'
15933  # FIXME: first we should search . and the directory the executable is in
15934  shlibpath_var=PATH
15935  ;;
15936
15937darwin* | rhapsody*)
15938  dynamic_linker="$host_os dyld"
15939  version_type=darwin
15940  need_lib_prefix=no
15941  need_version=no
15942  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15943  soname_spec='${libname}${release}${major}$shared_ext'
15944  shlibpath_overrides_runpath=yes
15945  shlibpath_var=DYLD_LIBRARY_PATH
15946  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15947
15948  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15949  ;;
15950
15951dgux*)
15952  version_type=linux
15953  need_lib_prefix=no
15954  need_version=no
15955  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15956  soname_spec='${libname}${release}${shared_ext}$major'
15957  shlibpath_var=LD_LIBRARY_PATH
15958  ;;
15959
15960freebsd1*)
15961  dynamic_linker=no
15962  ;;
15963
15964freebsd* | dragonfly*)
15965  # DragonFly does not have aout.  When/if they implement a new
15966  # versioning mechanism, adjust this.
15967  if test -x /usr/bin/objformat; then
15968    objformat=`/usr/bin/objformat`
15969  else
15970    case $host_os in
15971    freebsd[123]*) objformat=aout ;;
15972    *) objformat=elf ;;
15973    esac
15974  fi
15975  version_type=freebsd-$objformat
15976  case $version_type in
15977    freebsd-elf*)
15978      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15979      need_version=no
15980      need_lib_prefix=no
15981      ;;
15982    freebsd-*)
15983      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15984      need_version=yes
15985      ;;
15986  esac
15987  shlibpath_var=LD_LIBRARY_PATH
15988  case $host_os in
15989  freebsd2*)
15990    shlibpath_overrides_runpath=yes
15991    ;;
15992  freebsd3.[01]* | freebsdelf3.[01]*)
15993    shlibpath_overrides_runpath=yes
15994    hardcode_into_libs=yes
15995    ;;
15996  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15997  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15998    shlibpath_overrides_runpath=no
15999    hardcode_into_libs=yes
16000    ;;
16001  *) # from 4.6 on, and DragonFly
16002    shlibpath_overrides_runpath=yes
16003    hardcode_into_libs=yes
16004    ;;
16005  esac
16006  ;;
16007
16008gnu*)
16009  version_type=linux
16010  need_lib_prefix=no
16011  need_version=no
16012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16013  soname_spec='${libname}${release}${shared_ext}$major'
16014  shlibpath_var=LD_LIBRARY_PATH
16015  hardcode_into_libs=yes
16016  ;;
16017
16018hpux9* | hpux10* | hpux11*)
16019  # Give a soname corresponding to the major version so that dld.sl refuses to
16020  # link against other versions.
16021  version_type=sunos
16022  need_lib_prefix=no
16023  need_version=no
16024  case $host_cpu in
16025  ia64*)
16026    shrext_cmds='.so'
16027    hardcode_into_libs=yes
16028    dynamic_linker="$host_os dld.so"
16029    shlibpath_var=LD_LIBRARY_PATH
16030    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16031    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16032    soname_spec='${libname}${release}${shared_ext}$major'
16033    if test "X$HPUX_IA64_MODE" = X32; then
16034      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16035    else
16036      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16037    fi
16038    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16039    ;;
16040   hppa*64*)
16041     shrext_cmds='.sl'
16042     hardcode_into_libs=yes
16043     dynamic_linker="$host_os dld.sl"
16044     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16045     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16046     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16047     soname_spec='${libname}${release}${shared_ext}$major'
16048     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16049     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16050     ;;
16051   *)
16052    shrext_cmds='.sl'
16053    dynamic_linker="$host_os dld.sl"
16054    shlibpath_var=SHLIB_PATH
16055    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16056    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16057    soname_spec='${libname}${release}${shared_ext}$major'
16058    ;;
16059  esac
16060  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16061  postinstall_cmds='chmod 555 $lib'
16062  ;;
16063
16064interix[3-9]*)
16065  version_type=linux
16066  need_lib_prefix=no
16067  need_version=no
16068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16069  soname_spec='${libname}${release}${shared_ext}$major'
16070  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16071  shlibpath_var=LD_LIBRARY_PATH
16072  shlibpath_overrides_runpath=no
16073  hardcode_into_libs=yes
16074  ;;
16075
16076irix5* | irix6* | nonstopux*)
16077  case $host_os in
16078    nonstopux*) version_type=nonstopux ;;
16079    *)
16080	if test "$lt_cv_prog_gnu_ld" = yes; then
16081		version_type=linux
16082	else
16083		version_type=irix
16084	fi ;;
16085  esac
16086  need_lib_prefix=no
16087  need_version=no
16088  soname_spec='${libname}${release}${shared_ext}$major'
16089  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16090  case $host_os in
16091  irix5* | nonstopux*)
16092    libsuff= shlibsuff=
16093    ;;
16094  *)
16095    case $LD in # libtool.m4 will add one of these switches to LD
16096    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16097      libsuff= shlibsuff= libmagic=32-bit;;
16098    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16099      libsuff=32 shlibsuff=N32 libmagic=N32;;
16100    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16101      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16102    *) libsuff= shlibsuff= libmagic=never-match;;
16103    esac
16104    ;;
16105  esac
16106  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16107  shlibpath_overrides_runpath=no
16108  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16109  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16110  hardcode_into_libs=yes
16111  ;;
16112
16113# No shared lib support for Linux oldld, aout, or coff.
16114linux*oldld* | linux*aout* | linux*coff*)
16115  dynamic_linker=no
16116  ;;
16117
16118# This must be Linux ELF.
16119linux* | k*bsd*-gnu)
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  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16126  shlibpath_var=LD_LIBRARY_PATH
16127  shlibpath_overrides_runpath=no
16128  # This implies no fast_install, which is unacceptable.
16129  # Some rework will be needed to allow for fast_install
16130  # before this can be enabled.
16131  hardcode_into_libs=yes
16132  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16133  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16134
16135  # Append ld.so.conf contents to the search path
16136  if test -f /etc/ld.so.conf; then
16137    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' ' '`
16138    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16139  fi
16140
16141  # We used to test for /lib/ld.so.1 and disable shared libraries on
16142  # powerpc, because MkLinux only supported shared libraries with the
16143  # GNU dynamic linker.  Since this was broken with cross compilers,
16144  # most powerpc-linux boxes support dynamic linking these days and
16145  # people can always --disable-shared, the test was removed, and we
16146  # assume the GNU/Linux dynamic linker is in use.
16147  dynamic_linker='GNU/Linux ld.so'
16148  ;;
16149
16150netbsd*)
16151  version_type=sunos
16152  need_lib_prefix=no
16153  need_version=no
16154  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16155    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16156    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16157    dynamic_linker='NetBSD (a.out) ld.so'
16158  else
16159    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16160    soname_spec='${libname}${release}${shared_ext}$major'
16161    dynamic_linker='NetBSD ld.elf_so'
16162  fi
16163  shlibpath_var=LD_LIBRARY_PATH
16164  shlibpath_overrides_runpath=yes
16165  hardcode_into_libs=yes
16166  ;;
16167
16168newsos6)
16169  version_type=linux
16170  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16171  shlibpath_var=LD_LIBRARY_PATH
16172  shlibpath_overrides_runpath=yes
16173  ;;
16174
16175nto-qnx*)
16176  version_type=linux
16177  need_lib_prefix=no
16178  need_version=no
16179  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16180  soname_spec='${libname}${release}${shared_ext}$major'
16181  shlibpath_var=LD_LIBRARY_PATH
16182  shlibpath_overrides_runpath=yes
16183  ;;
16184
16185openbsd*)
16186  version_type=sunos
16187  sys_lib_dlsearch_path_spec="/usr/lib"
16188  need_lib_prefix=no
16189  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16190  case $host_os in
16191    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16192    *)                         need_version=no  ;;
16193  esac
16194  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16195  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16196  shlibpath_var=LD_LIBRARY_PATH
16197  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16198    case $host_os in
16199      openbsd2.[89] | openbsd2.[89].*)
16200	shlibpath_overrides_runpath=no
16201	;;
16202      *)
16203	shlibpath_overrides_runpath=yes
16204	;;
16205      esac
16206  else
16207    shlibpath_overrides_runpath=yes
16208  fi
16209  ;;
16210
16211os2*)
16212  libname_spec='$name'
16213  shrext_cmds=".dll"
16214  need_lib_prefix=no
16215  library_names_spec='$libname${shared_ext} $libname.a'
16216  dynamic_linker='OS/2 ld.exe'
16217  shlibpath_var=LIBPATH
16218  ;;
16219
16220osf3* | osf4* | osf5*)
16221  version_type=osf
16222  need_lib_prefix=no
16223  need_version=no
16224  soname_spec='${libname}${release}${shared_ext}$major'
16225  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16226  shlibpath_var=LD_LIBRARY_PATH
16227  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16228  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16229  ;;
16230
16231rdos*)
16232  dynamic_linker=no
16233  ;;
16234
16235solaris*)
16236  version_type=linux
16237  need_lib_prefix=no
16238  need_version=no
16239  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16240  soname_spec='${libname}${release}${shared_ext}$major'
16241  shlibpath_var=LD_LIBRARY_PATH
16242  shlibpath_overrides_runpath=yes
16243  hardcode_into_libs=yes
16244  # ldd complains unless libraries are executable
16245  postinstall_cmds='chmod +x $lib'
16246  ;;
16247
16248sunos4*)
16249  version_type=sunos
16250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16251  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16252  shlibpath_var=LD_LIBRARY_PATH
16253  shlibpath_overrides_runpath=yes
16254  if test "$with_gnu_ld" = yes; then
16255    need_lib_prefix=no
16256  fi
16257  need_version=yes
16258  ;;
16259
16260sysv4 | sysv4.3*)
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  case $host_vendor in
16266    sni)
16267      shlibpath_overrides_runpath=no
16268      need_lib_prefix=no
16269      export_dynamic_flag_spec='${wl}-Blargedynsym'
16270      runpath_var=LD_RUN_PATH
16271      ;;
16272    siemens)
16273      need_lib_prefix=no
16274      ;;
16275    motorola)
16276      need_lib_prefix=no
16277      need_version=no
16278      shlibpath_overrides_runpath=no
16279      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16280      ;;
16281  esac
16282  ;;
16283
16284sysv4*MP*)
16285  if test -d /usr/nec ;then
16286    version_type=linux
16287    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16288    soname_spec='$libname${shared_ext}.$major'
16289    shlibpath_var=LD_LIBRARY_PATH
16290  fi
16291  ;;
16292
16293sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16294  version_type=freebsd-elf
16295  need_lib_prefix=no
16296  need_version=no
16297  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16298  soname_spec='${libname}${release}${shared_ext}$major'
16299  shlibpath_var=LD_LIBRARY_PATH
16300  hardcode_into_libs=yes
16301  if test "$with_gnu_ld" = yes; then
16302    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16303    shlibpath_overrides_runpath=no
16304  else
16305    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16306    shlibpath_overrides_runpath=yes
16307    case $host_os in
16308      sco3.2v5*)
16309        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16310	;;
16311    esac
16312  fi
16313  sys_lib_dlsearch_path_spec='/usr/lib'
16314  ;;
16315
16316uts4*)
16317  version_type=linux
16318  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16319  soname_spec='${libname}${release}${shared_ext}$major'
16320  shlibpath_var=LD_LIBRARY_PATH
16321  ;;
16322
16323*)
16324  dynamic_linker=no
16325  ;;
16326esac
16327{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16328$as_echo "$dynamic_linker" >&6; }
16329test "$dynamic_linker" = no && can_build_shared=no
16330
16331if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16332  $as_echo_n "(cached) " >&6
16333else
16334  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16335fi
16336
16337sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16338if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16339  $as_echo_n "(cached) " >&6
16340else
16341  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16342fi
16343
16344sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16345
16346variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16347if test "$GCC" = yes; then
16348  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16349fi
16350
16351{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16352$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16353hardcode_action_F77=
16354if test -n "$hardcode_libdir_flag_spec_F77" || \
16355   test -n "$runpath_var_F77" || \
16356   test "X$hardcode_automatic_F77" = "Xyes" ; then
16357
16358  # We can hardcode non-existant directories.
16359  if test "$hardcode_direct_F77" != no &&
16360     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16361     # have to relink, otherwise we might link with an installed library
16362     # when we should be linking with a yet-to-be-installed one
16363     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16364     test "$hardcode_minus_L_F77" != no; then
16365    # Linking always hardcodes the temporary library directory.
16366    hardcode_action_F77=relink
16367  else
16368    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16369    hardcode_action_F77=immediate
16370  fi
16371else
16372  # We cannot hardcode anything, or else we can only hardcode existing
16373  # directories.
16374  hardcode_action_F77=unsupported
16375fi
16376{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16377$as_echo "$hardcode_action_F77" >&6; }
16378
16379if test "$hardcode_action_F77" = relink; then
16380  # Fast installation is not supported
16381  enable_fast_install=no
16382elif test "$shlibpath_overrides_runpath" = yes ||
16383     test "$enable_shared" = no; then
16384  # Fast installation is not necessary
16385  enable_fast_install=needless
16386fi
16387
16388
16389# The else clause should only fire when bootstrapping the
16390# libtool distribution, otherwise you forgot to ship ltmain.sh
16391# with your package, and you will get complaints that there are
16392# no rules to generate ltmain.sh.
16393if test -f "$ltmain"; then
16394  # See if we are running on zsh, and set the options which allow our commands through
16395  # without removal of \ escapes.
16396  if test -n "${ZSH_VERSION+set}" ; then
16397    setopt NO_GLOB_SUBST
16398  fi
16399  # Now quote all the things that may contain metacharacters while being
16400  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16401  # variables and quote the copies for generation of the libtool script.
16402  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16403    SED SHELL STRIP \
16404    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16405    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16406    deplibs_check_method reload_flag reload_cmds need_locks \
16407    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16408    lt_cv_sys_global_symbol_to_c_name_address \
16409    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16410    old_postinstall_cmds old_postuninstall_cmds \
16411    compiler_F77 \
16412    CC_F77 \
16413    LD_F77 \
16414    lt_prog_compiler_wl_F77 \
16415    lt_prog_compiler_pic_F77 \
16416    lt_prog_compiler_static_F77 \
16417    lt_prog_compiler_no_builtin_flag_F77 \
16418    export_dynamic_flag_spec_F77 \
16419    thread_safe_flag_spec_F77 \
16420    whole_archive_flag_spec_F77 \
16421    enable_shared_with_static_runtimes_F77 \
16422    old_archive_cmds_F77 \
16423    old_archive_from_new_cmds_F77 \
16424    predep_objects_F77 \
16425    postdep_objects_F77 \
16426    predeps_F77 \
16427    postdeps_F77 \
16428    compiler_lib_search_path_F77 \
16429    compiler_lib_search_dirs_F77 \
16430    archive_cmds_F77 \
16431    archive_expsym_cmds_F77 \
16432    postinstall_cmds_F77 \
16433    postuninstall_cmds_F77 \
16434    old_archive_from_expsyms_cmds_F77 \
16435    allow_undefined_flag_F77 \
16436    no_undefined_flag_F77 \
16437    export_symbols_cmds_F77 \
16438    hardcode_libdir_flag_spec_F77 \
16439    hardcode_libdir_flag_spec_ld_F77 \
16440    hardcode_libdir_separator_F77 \
16441    hardcode_automatic_F77 \
16442    module_cmds_F77 \
16443    module_expsym_cmds_F77 \
16444    lt_cv_prog_compiler_c_o_F77 \
16445    fix_srcfile_path_F77 \
16446    exclude_expsyms_F77 \
16447    include_expsyms_F77; do
16448
16449    case $var in
16450    old_archive_cmds_F77 | \
16451    old_archive_from_new_cmds_F77 | \
16452    archive_cmds_F77 | \
16453    archive_expsym_cmds_F77 | \
16454    module_cmds_F77 | \
16455    module_expsym_cmds_F77 | \
16456    old_archive_from_expsyms_cmds_F77 | \
16457    export_symbols_cmds_F77 | \
16458    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16459    postinstall_cmds | postuninstall_cmds | \
16460    old_postinstall_cmds | old_postuninstall_cmds | \
16461    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16462      # Double-quote double-evaled strings.
16463      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16464      ;;
16465    *)
16466      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16467      ;;
16468    esac
16469  done
16470
16471  case $lt_echo in
16472  *'\$0 --fallback-echo"')
16473    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16474    ;;
16475  esac
16476
16477cfgfile="$ofile"
16478
16479  cat <<__EOF__ >> "$cfgfile"
16480# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16481
16482# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16483
16484# Shell to use when invoking shell scripts.
16485SHELL=$lt_SHELL
16486
16487# Whether or not to build shared libraries.
16488build_libtool_libs=$enable_shared
16489
16490# Whether or not to build static libraries.
16491build_old_libs=$enable_static
16492
16493# Whether or not to add -lc for building shared libraries.
16494build_libtool_need_lc=$archive_cmds_need_lc_F77
16495
16496# Whether or not to disallow shared libs when runtime libs are static
16497allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16498
16499# Whether or not to optimize for fast installation.
16500fast_install=$enable_fast_install
16501
16502# The host system.
16503host_alias=$host_alias
16504host=$host
16505host_os=$host_os
16506
16507# The build system.
16508build_alias=$build_alias
16509build=$build
16510build_os=$build_os
16511
16512# An echo program that does not interpret backslashes.
16513echo=$lt_echo
16514
16515# The archiver.
16516AR=$lt_AR
16517AR_FLAGS=$lt_AR_FLAGS
16518
16519# A C compiler.
16520LTCC=$lt_LTCC
16521
16522# LTCC compiler flags.
16523LTCFLAGS=$lt_LTCFLAGS
16524
16525# A language-specific compiler.
16526CC=$lt_compiler_F77
16527
16528# Is the compiler the GNU C compiler?
16529with_gcc=$GCC_F77
16530
16531# An ERE matcher.
16532EGREP=$lt_EGREP
16533
16534# The linker used to build libraries.
16535LD=$lt_LD_F77
16536
16537# Whether we need hard or soft links.
16538LN_S=$lt_LN_S
16539
16540# A BSD-compatible nm program.
16541NM=$lt_NM
16542
16543# A symbol stripping program
16544STRIP=$lt_STRIP
16545
16546# Used to examine libraries when file_magic_cmd begins "file"
16547MAGIC_CMD=$MAGIC_CMD
16548
16549# Used on cygwin: DLL creation program.
16550DLLTOOL="$DLLTOOL"
16551
16552# Used on cygwin: object dumper.
16553OBJDUMP="$OBJDUMP"
16554
16555# Used on cygwin: assembler.
16556AS="$AS"
16557
16558# The name of the directory that contains temporary libtool files.
16559objdir=$objdir
16560
16561# How to create reloadable object files.
16562reload_flag=$lt_reload_flag
16563reload_cmds=$lt_reload_cmds
16564
16565# How to pass a linker flag through the compiler.
16566wl=$lt_lt_prog_compiler_wl_F77
16567
16568# Object file suffix (normally "o").
16569objext="$ac_objext"
16570
16571# Old archive suffix (normally "a").
16572libext="$libext"
16573
16574# Shared library suffix (normally ".so").
16575shrext_cmds='$shrext_cmds'
16576
16577# Executable file suffix (normally "").
16578exeext="$exeext"
16579
16580# Additional compiler flags for building library objects.
16581pic_flag=$lt_lt_prog_compiler_pic_F77
16582pic_mode=$pic_mode
16583
16584# What is the maximum length of a command?
16585max_cmd_len=$lt_cv_sys_max_cmd_len
16586
16587# Does compiler simultaneously support -c and -o options?
16588compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16589
16590# Must we lock files when doing compilation?
16591need_locks=$lt_need_locks
16592
16593# Do we need the lib prefix for modules?
16594need_lib_prefix=$need_lib_prefix
16595
16596# Do we need a version for libraries?
16597need_version=$need_version
16598
16599# Whether dlopen is supported.
16600dlopen_support=$enable_dlopen
16601
16602# Whether dlopen of programs is supported.
16603dlopen_self=$enable_dlopen_self
16604
16605# Whether dlopen of statically linked programs is supported.
16606dlopen_self_static=$enable_dlopen_self_static
16607
16608# Compiler flag to prevent dynamic linking.
16609link_static_flag=$lt_lt_prog_compiler_static_F77
16610
16611# Compiler flag to turn off builtin functions.
16612no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16613
16614# Compiler flag to allow reflexive dlopens.
16615export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16616
16617# Compiler flag to generate shared objects directly from archives.
16618whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16619
16620# Compiler flag to generate thread-safe objects.
16621thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16622
16623# Library versioning type.
16624version_type=$version_type
16625
16626# Format of library name prefix.
16627libname_spec=$lt_libname_spec
16628
16629# List of archive names.  First name is the real one, the rest are links.
16630# The last name is the one that the linker finds with -lNAME.
16631library_names_spec=$lt_library_names_spec
16632
16633# The coded name of the library, if different from the real name.
16634soname_spec=$lt_soname_spec
16635
16636# Commands used to build and install an old-style archive.
16637RANLIB=$lt_RANLIB
16638old_archive_cmds=$lt_old_archive_cmds_F77
16639old_postinstall_cmds=$lt_old_postinstall_cmds
16640old_postuninstall_cmds=$lt_old_postuninstall_cmds
16641
16642# Create an old-style archive from a shared archive.
16643old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16644
16645# Create a temporary old-style archive to link instead of a shared archive.
16646old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16647
16648# Commands used to build and install a shared archive.
16649archive_cmds=$lt_archive_cmds_F77
16650archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16651postinstall_cmds=$lt_postinstall_cmds
16652postuninstall_cmds=$lt_postuninstall_cmds
16653
16654# Commands used to build a loadable module (assumed same as above if empty)
16655module_cmds=$lt_module_cmds_F77
16656module_expsym_cmds=$lt_module_expsym_cmds_F77
16657
16658# Commands to strip libraries.
16659old_striplib=$lt_old_striplib
16660striplib=$lt_striplib
16661
16662# Dependencies to place before the objects being linked to create a
16663# shared library.
16664predep_objects=$lt_predep_objects_F77
16665
16666# Dependencies to place after the objects being linked to create a
16667# shared library.
16668postdep_objects=$lt_postdep_objects_F77
16669
16670# Dependencies to place before the objects being linked to create a
16671# shared library.
16672predeps=$lt_predeps_F77
16673
16674# Dependencies to place after the objects being linked to create a
16675# shared library.
16676postdeps=$lt_postdeps_F77
16677
16678# The directories searched by this compiler when creating a shared
16679# library
16680compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16681
16682# The library search path used internally by the compiler when linking
16683# a shared library.
16684compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16685
16686# Method to check whether dependent libraries are shared objects.
16687deplibs_check_method=$lt_deplibs_check_method
16688
16689# Command to use when deplibs_check_method == file_magic.
16690file_magic_cmd=$lt_file_magic_cmd
16691
16692# Flag that allows shared libraries with undefined symbols to be built.
16693allow_undefined_flag=$lt_allow_undefined_flag_F77
16694
16695# Flag that forces no undefined symbols.
16696no_undefined_flag=$lt_no_undefined_flag_F77
16697
16698# Commands used to finish a libtool library installation in a directory.
16699finish_cmds=$lt_finish_cmds
16700
16701# Same as above, but a single script fragment to be evaled but not shown.
16702finish_eval=$lt_finish_eval
16703
16704# Take the output of nm and produce a listing of raw symbols and C names.
16705global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16706
16707# Transform the output of nm in a proper C declaration
16708global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16709
16710# Transform the output of nm in a C name address pair
16711global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16712
16713# This is the shared library runtime path variable.
16714runpath_var=$runpath_var
16715
16716# This is the shared library path variable.
16717shlibpath_var=$shlibpath_var
16718
16719# Is shlibpath searched before the hard-coded library search path?
16720shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16721
16722# How to hardcode a shared library path into an executable.
16723hardcode_action=$hardcode_action_F77
16724
16725# Whether we should hardcode library paths into libraries.
16726hardcode_into_libs=$hardcode_into_libs
16727
16728# Flag to hardcode \$libdir into a binary during linking.
16729# This must work even if \$libdir does not exist.
16730hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16731
16732# If ld is used when linking, flag to hardcode \$libdir into
16733# a binary during linking. This must work even if \$libdir does
16734# not exist.
16735hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16736
16737# Whether we need a single -rpath flag with a separated argument.
16738hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16739
16740# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16741# resulting binary.
16742hardcode_direct=$hardcode_direct_F77
16743
16744# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16745# resulting binary.
16746hardcode_minus_L=$hardcode_minus_L_F77
16747
16748# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16749# the resulting binary.
16750hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16751
16752# Set to yes if building a shared library automatically hardcodes DIR into the library
16753# and all subsequent libraries and executables linked against it.
16754hardcode_automatic=$hardcode_automatic_F77
16755
16756# Variables whose values should be saved in libtool wrapper scripts and
16757# restored at relink time.
16758variables_saved_for_relink="$variables_saved_for_relink"
16759
16760# Whether libtool must link a program against all its dependency libraries.
16761link_all_deplibs=$link_all_deplibs_F77
16762
16763# Compile-time system search path for libraries
16764sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16765
16766# Run-time system search path for libraries
16767sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16768
16769# Fix the shell variable \$srcfile for the compiler.
16770fix_srcfile_path=$lt_fix_srcfile_path
16771
16772# Set to yes if exported symbols are required.
16773always_export_symbols=$always_export_symbols_F77
16774
16775# The commands to list exported symbols.
16776export_symbols_cmds=$lt_export_symbols_cmds_F77
16777
16778# The commands to extract the exported symbol list from a shared archive.
16779extract_expsyms_cmds=$lt_extract_expsyms_cmds
16780
16781# Symbols that should not be listed in the preloaded symbols.
16782exclude_expsyms=$lt_exclude_expsyms_F77
16783
16784# Symbols that must always be exported.
16785include_expsyms=$lt_include_expsyms_F77
16786
16787# ### END LIBTOOL TAG CONFIG: $tagname
16788
16789__EOF__
16790
16791
16792else
16793  # If there is no Makefile yet, we rely on a make rule to execute
16794  # `config.status --recheck' to rerun these tests and create the
16795  # libtool script then.
16796  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16797  if test -f "$ltmain_in"; then
16798    test -f Makefile && make "$ltmain"
16799  fi
16800fi
16801
16802
16803ac_ext=c
16804ac_cpp='$CPP $CPPFLAGS'
16805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16807ac_compiler_gnu=$ac_cv_c_compiler_gnu
16808
16809CC="$lt_save_CC"
16810
16811	else
16812	  tagname=""
16813	fi
16814	;;
16815
16816      GCJ)
16817	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16818
16819
16820# Source file extension for Java test sources.
16821ac_ext=java
16822
16823# Object file extension for compiled Java test sources.
16824objext=o
16825objext_GCJ=$objext
16826
16827# Code to be used in simple compile tests
16828lt_simple_compile_test_code="class foo {}"
16829
16830# Code to be used in simple link tests
16831lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16832
16833# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16834
16835# If no C compiler was specified, use CC.
16836LTCC=${LTCC-"$CC"}
16837
16838# If no C compiler flags were specified, use CFLAGS.
16839LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16840
16841# Allow CC to be a program name with arguments.
16842compiler=$CC
16843
16844
16845# save warnings/boilerplate of simple test code
16846ac_outfile=conftest.$ac_objext
16847echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16848eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16849_lt_compiler_boilerplate=`cat conftest.err`
16850$rm conftest*
16851
16852ac_outfile=conftest.$ac_objext
16853echo "$lt_simple_link_test_code" >conftest.$ac_ext
16854eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16855_lt_linker_boilerplate=`cat conftest.err`
16856$rm -r conftest*
16857
16858
16859# Allow CC to be a program name with arguments.
16860lt_save_CC="$CC"
16861CC=${GCJ-"gcj"}
16862compiler=$CC
16863compiler_GCJ=$CC
16864for cc_temp in $compiler""; do
16865  case $cc_temp in
16866    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16867    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16868    \-*) ;;
16869    *) break;;
16870  esac
16871done
16872cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16873
16874
16875# GCJ did not exist at the time GCC didn't implicitly link libc in.
16876archive_cmds_need_lc_GCJ=no
16877
16878old_archive_cmds_GCJ=$old_archive_cmds
16879
16880
16881lt_prog_compiler_no_builtin_flag_GCJ=
16882
16883if test "$GCC" = yes; then
16884  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16885
16886
16887{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16888$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16889if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16890  $as_echo_n "(cached) " >&6
16891else
16892  lt_cv_prog_compiler_rtti_exceptions=no
16893  ac_outfile=conftest.$ac_objext
16894   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16895   lt_compiler_flag="-fno-rtti -fno-exceptions"
16896   # Insert the option either (1) after the last *FLAGS variable, or
16897   # (2) before a word containing "conftest.", or (3) at the end.
16898   # Note that $ac_compile itself does not contain backslashes and begins
16899   # with a dollar sign (not a hyphen), so the echo should work correctly.
16900   # The option is referenced via a variable to avoid confusing sed.
16901   lt_compile=`echo "$ac_compile" | $SED \
16902   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16903   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16904   -e 's:$: $lt_compiler_flag:'`
16905   (eval echo "\"\$as_me:16905: $lt_compile\"" >&5)
16906   (eval "$lt_compile" 2>conftest.err)
16907   ac_status=$?
16908   cat conftest.err >&5
16909   echo "$as_me:16909: \$? = $ac_status" >&5
16910   if (exit $ac_status) && test -s "$ac_outfile"; then
16911     # The compiler can only warn and ignore the option if not recognized
16912     # So say no if there are warnings other than the usual output.
16913     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16914     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16915     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16916       lt_cv_prog_compiler_rtti_exceptions=yes
16917     fi
16918   fi
16919   $rm conftest*
16920
16921fi
16922{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16923$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16924
16925if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16926    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16927else
16928    :
16929fi
16930
16931fi
16932
16933lt_prog_compiler_wl_GCJ=
16934lt_prog_compiler_pic_GCJ=
16935lt_prog_compiler_static_GCJ=
16936
16937{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16938$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16939
16940  if test "$GCC" = yes; then
16941    lt_prog_compiler_wl_GCJ='-Wl,'
16942    lt_prog_compiler_static_GCJ='-static'
16943
16944    case $host_os in
16945      aix*)
16946      # All AIX code is PIC.
16947      if test "$host_cpu" = ia64; then
16948	# AIX 5 now supports IA64 processor
16949	lt_prog_compiler_static_GCJ='-Bstatic'
16950      fi
16951      ;;
16952
16953    amigaos*)
16954      # FIXME: we need at least 68020 code to build shared libraries, but
16955      # adding the `-m68020' flag to GCC prevents building anything better,
16956      # like `-m68040'.
16957      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16958      ;;
16959
16960    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16961      # PIC is the default for these OSes.
16962      ;;
16963
16964    mingw* | cygwin* | pw32* | os2*)
16965      # This hack is so that the source file can tell whether it is being
16966      # built for inclusion in a dll (and should export symbols for example).
16967      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16968      # (--disable-auto-import) libraries
16969
16970      ;;
16971
16972    darwin* | rhapsody*)
16973      # PIC is the default on this platform
16974      # Common symbols not allowed in MH_DYLIB files
16975      lt_prog_compiler_pic_GCJ='-fno-common'
16976      ;;
16977
16978    interix[3-9]*)
16979      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16980      # Instead, we relocate shared libraries at runtime.
16981      ;;
16982
16983    msdosdjgpp*)
16984      # Just because we use GCC doesn't mean we suddenly get shared libraries
16985      # on systems that don't support them.
16986      lt_prog_compiler_can_build_shared_GCJ=no
16987      enable_shared=no
16988      ;;
16989
16990    sysv4*MP*)
16991      if test -d /usr/nec; then
16992	lt_prog_compiler_pic_GCJ=-Kconform_pic
16993      fi
16994      ;;
16995
16996    hpux*)
16997      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16998      # not for PA HP-UX.
16999      case $host_cpu in
17000      hppa*64*|ia64*)
17001	# +Z the default
17002	;;
17003      *)
17004	lt_prog_compiler_pic_GCJ='-fPIC'
17005	;;
17006      esac
17007      ;;
17008
17009    *)
17010      lt_prog_compiler_pic_GCJ='-fPIC'
17011      ;;
17012    esac
17013  else
17014    # PORTME Check for flag to pass linker flags through the system compiler.
17015    case $host_os in
17016    aix*)
17017      lt_prog_compiler_wl_GCJ='-Wl,'
17018      if test "$host_cpu" = ia64; then
17019	# AIX 5 now supports IA64 processor
17020	lt_prog_compiler_static_GCJ='-Bstatic'
17021      else
17022	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17023      fi
17024      ;;
17025      darwin*)
17026        # PIC is the default on this platform
17027        # Common symbols not allowed in MH_DYLIB files
17028       case $cc_basename in
17029         xlc*)
17030         lt_prog_compiler_pic_GCJ='-qnocommon'
17031         lt_prog_compiler_wl_GCJ='-Wl,'
17032         ;;
17033       esac
17034       ;;
17035
17036    mingw* | cygwin* | pw32* | os2*)
17037      # This hack is so that the source file can tell whether it is being
17038      # built for inclusion in a dll (and should export symbols for example).
17039
17040      ;;
17041
17042    hpux9* | hpux10* | hpux11*)
17043      lt_prog_compiler_wl_GCJ='-Wl,'
17044      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17045      # not for PA HP-UX.
17046      case $host_cpu in
17047      hppa*64*|ia64*)
17048	# +Z the default
17049	;;
17050      *)
17051	lt_prog_compiler_pic_GCJ='+Z'
17052	;;
17053      esac
17054      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17055      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17056      ;;
17057
17058    irix5* | irix6* | nonstopux*)
17059      lt_prog_compiler_wl_GCJ='-Wl,'
17060      # PIC (with -KPIC) is the default.
17061      lt_prog_compiler_static_GCJ='-non_shared'
17062      ;;
17063
17064    newsos6)
17065      lt_prog_compiler_pic_GCJ='-KPIC'
17066      lt_prog_compiler_static_GCJ='-Bstatic'
17067      ;;
17068
17069    linux* | k*bsd*-gnu)
17070      case $cc_basename in
17071      icc* | ecc*)
17072	lt_prog_compiler_wl_GCJ='-Wl,'
17073	lt_prog_compiler_pic_GCJ='-KPIC'
17074	lt_prog_compiler_static_GCJ='-static'
17075        ;;
17076      pgcc* | pgf77* | pgf90* | pgf95*)
17077        # Portland Group compilers (*not* the Pentium gcc compiler,
17078	# which looks to be a dead project)
17079	lt_prog_compiler_wl_GCJ='-Wl,'
17080	lt_prog_compiler_pic_GCJ='-fpic'
17081	lt_prog_compiler_static_GCJ='-Bstatic'
17082        ;;
17083      ccc*)
17084        lt_prog_compiler_wl_GCJ='-Wl,'
17085        # All Alpha code is PIC.
17086        lt_prog_compiler_static_GCJ='-non_shared'
17087        ;;
17088      *)
17089        case `$CC -V 2>&1 | sed 5q` in
17090	*Sun\ C*)
17091	  # Sun C 5.9
17092	  lt_prog_compiler_pic_GCJ='-KPIC'
17093	  lt_prog_compiler_static_GCJ='-Bstatic'
17094	  lt_prog_compiler_wl_GCJ='-Wl,'
17095	  ;;
17096	*Sun\ F*)
17097	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17098	  lt_prog_compiler_pic_GCJ='-KPIC'
17099	  lt_prog_compiler_static_GCJ='-Bstatic'
17100	  lt_prog_compiler_wl_GCJ=''
17101	  ;;
17102	esac
17103	;;
17104      esac
17105      ;;
17106
17107    osf3* | osf4* | osf5*)
17108      lt_prog_compiler_wl_GCJ='-Wl,'
17109      # All OSF/1 code is PIC.
17110      lt_prog_compiler_static_GCJ='-non_shared'
17111      ;;
17112
17113    rdos*)
17114      lt_prog_compiler_static_GCJ='-non_shared'
17115      ;;
17116
17117    solaris*)
17118      lt_prog_compiler_pic_GCJ='-KPIC'
17119      lt_prog_compiler_static_GCJ='-Bstatic'
17120      case $cc_basename in
17121      f77* | f90* | f95*)
17122	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17123      *)
17124	lt_prog_compiler_wl_GCJ='-Wl,';;
17125      esac
17126      ;;
17127
17128    sunos4*)
17129      lt_prog_compiler_wl_GCJ='-Qoption ld '
17130      lt_prog_compiler_pic_GCJ='-PIC'
17131      lt_prog_compiler_static_GCJ='-Bstatic'
17132      ;;
17133
17134    sysv4 | sysv4.2uw2* | sysv4.3*)
17135      lt_prog_compiler_wl_GCJ='-Wl,'
17136      lt_prog_compiler_pic_GCJ='-KPIC'
17137      lt_prog_compiler_static_GCJ='-Bstatic'
17138      ;;
17139
17140    sysv4*MP*)
17141      if test -d /usr/nec ;then
17142	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17143	lt_prog_compiler_static_GCJ='-Bstatic'
17144      fi
17145      ;;
17146
17147    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17148      lt_prog_compiler_wl_GCJ='-Wl,'
17149      lt_prog_compiler_pic_GCJ='-KPIC'
17150      lt_prog_compiler_static_GCJ='-Bstatic'
17151      ;;
17152
17153    unicos*)
17154      lt_prog_compiler_wl_GCJ='-Wl,'
17155      lt_prog_compiler_can_build_shared_GCJ=no
17156      ;;
17157
17158    uts4*)
17159      lt_prog_compiler_pic_GCJ='-pic'
17160      lt_prog_compiler_static_GCJ='-Bstatic'
17161      ;;
17162
17163    *)
17164      lt_prog_compiler_can_build_shared_GCJ=no
17165      ;;
17166    esac
17167  fi
17168
17169{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17170$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17171
17172#
17173# Check to make sure the PIC flag actually works.
17174#
17175if test -n "$lt_prog_compiler_pic_GCJ"; then
17176
17177{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17178$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17179if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17180  $as_echo_n "(cached) " >&6
17181else
17182  lt_cv_prog_compiler_pic_works_GCJ=no
17183  ac_outfile=conftest.$ac_objext
17184   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17185   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17186   # Insert the option either (1) after the last *FLAGS variable, or
17187   # (2) before a word containing "conftest.", or (3) at the end.
17188   # Note that $ac_compile itself does not contain backslashes and begins
17189   # with a dollar sign (not a hyphen), so the echo should work correctly.
17190   # The option is referenced via a variable to avoid confusing sed.
17191   lt_compile=`echo "$ac_compile" | $SED \
17192   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17193   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17194   -e 's:$: $lt_compiler_flag:'`
17195   (eval echo "\"\$as_me:17195: $lt_compile\"" >&5)
17196   (eval "$lt_compile" 2>conftest.err)
17197   ac_status=$?
17198   cat conftest.err >&5
17199   echo "$as_me:17199: \$? = $ac_status" >&5
17200   if (exit $ac_status) && test -s "$ac_outfile"; then
17201     # The compiler can only warn and ignore the option if not recognized
17202     # So say no if there are warnings other than the usual output.
17203     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17204     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17205     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17206       lt_cv_prog_compiler_pic_works_GCJ=yes
17207     fi
17208   fi
17209   $rm conftest*
17210
17211fi
17212{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17213$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17214
17215if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17216    case $lt_prog_compiler_pic_GCJ in
17217     "" | " "*) ;;
17218     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17219     esac
17220else
17221    lt_prog_compiler_pic_GCJ=
17222     lt_prog_compiler_can_build_shared_GCJ=no
17223fi
17224
17225fi
17226case $host_os in
17227  # For platforms which do not support PIC, -DPIC is meaningless:
17228  *djgpp*)
17229    lt_prog_compiler_pic_GCJ=
17230    ;;
17231  *)
17232    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17233    ;;
17234esac
17235
17236#
17237# Check to make sure the static flag actually works.
17238#
17239wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17240{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17241$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17242if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17243  $as_echo_n "(cached) " >&6
17244else
17245  lt_cv_prog_compiler_static_works_GCJ=no
17246   save_LDFLAGS="$LDFLAGS"
17247   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17248   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17249   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17250     # The linker can only warn and ignore the option if not recognized
17251     # So say no if there are warnings
17252     if test -s conftest.err; then
17253       # Append any errors to the config.log.
17254       cat conftest.err 1>&5
17255       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17256       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17257       if diff conftest.exp conftest.er2 >/dev/null; then
17258         lt_cv_prog_compiler_static_works_GCJ=yes
17259       fi
17260     else
17261       lt_cv_prog_compiler_static_works_GCJ=yes
17262     fi
17263   fi
17264   $rm -r conftest*
17265   LDFLAGS="$save_LDFLAGS"
17266
17267fi
17268{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17269$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17270
17271if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17272    :
17273else
17274    lt_prog_compiler_static_GCJ=
17275fi
17276
17277
17278{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17279$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17280if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17281  $as_echo_n "(cached) " >&6
17282else
17283  lt_cv_prog_compiler_c_o_GCJ=no
17284   $rm -r conftest 2>/dev/null
17285   mkdir conftest
17286   cd conftest
17287   mkdir out
17288   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17289
17290   lt_compiler_flag="-o out/conftest2.$ac_objext"
17291   # Insert the option either (1) after the last *FLAGS variable, or
17292   # (2) before a word containing "conftest.", or (3) at the end.
17293   # Note that $ac_compile itself does not contain backslashes and begins
17294   # with a dollar sign (not a hyphen), so the echo should work correctly.
17295   lt_compile=`echo "$ac_compile" | $SED \
17296   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17297   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17298   -e 's:$: $lt_compiler_flag:'`
17299   (eval echo "\"\$as_me:17299: $lt_compile\"" >&5)
17300   (eval "$lt_compile" 2>out/conftest.err)
17301   ac_status=$?
17302   cat out/conftest.err >&5
17303   echo "$as_me:17303: \$? = $ac_status" >&5
17304   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17305   then
17306     # The compiler can only warn and ignore the option if not recognized
17307     # So say no if there are warnings
17308     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17309     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17310     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17311       lt_cv_prog_compiler_c_o_GCJ=yes
17312     fi
17313   fi
17314   chmod u+w . 2>&5
17315   $rm conftest*
17316   # SGI C++ compiler will create directory out/ii_files/ for
17317   # template instantiation
17318   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17319   $rm out/* && rmdir out
17320   cd ..
17321   rmdir conftest
17322   $rm conftest*
17323
17324fi
17325{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17326$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17327
17328
17329hard_links="nottested"
17330if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17331  # do not overwrite the value of need_locks provided by the user
17332  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17333$as_echo_n "checking if we can lock with hard links... " >&6; }
17334  hard_links=yes
17335  $rm conftest*
17336  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17337  touch conftest.a
17338  ln conftest.a conftest.b 2>&5 || hard_links=no
17339  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17340  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17341$as_echo "$hard_links" >&6; }
17342  if test "$hard_links" = no; then
17343    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17344$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17345    need_locks=warn
17346  fi
17347else
17348  need_locks=no
17349fi
17350
17351{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17352$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17353
17354  runpath_var=
17355  allow_undefined_flag_GCJ=
17356  enable_shared_with_static_runtimes_GCJ=no
17357  archive_cmds_GCJ=
17358  archive_expsym_cmds_GCJ=
17359  old_archive_From_new_cmds_GCJ=
17360  old_archive_from_expsyms_cmds_GCJ=
17361  export_dynamic_flag_spec_GCJ=
17362  whole_archive_flag_spec_GCJ=
17363  thread_safe_flag_spec_GCJ=
17364  hardcode_libdir_flag_spec_GCJ=
17365  hardcode_libdir_flag_spec_ld_GCJ=
17366  hardcode_libdir_separator_GCJ=
17367  hardcode_direct_GCJ=no
17368  hardcode_minus_L_GCJ=no
17369  hardcode_shlibpath_var_GCJ=unsupported
17370  link_all_deplibs_GCJ=unknown
17371  hardcode_automatic_GCJ=no
17372  module_cmds_GCJ=
17373  module_expsym_cmds_GCJ=
17374  always_export_symbols_GCJ=no
17375  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17376  # include_expsyms should be a list of space-separated symbols to be *always*
17377  # included in the symbol list
17378  include_expsyms_GCJ=
17379  # exclude_expsyms can be an extended regexp of symbols to exclude
17380  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17381  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17382  # as well as any symbol that contains `d'.
17383  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17384  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17385  # platforms (ab)use it in PIC code, but their linkers get confused if
17386  # the symbol is explicitly referenced.  Since portable code cannot
17387  # rely on this symbol name, it's probably fine to never include it in
17388  # preloaded symbol tables.
17389  # Exclude shared library initialization/finalization symbols.
17390  extract_expsyms_cmds=
17391  # Just being paranoid about ensuring that cc_basename is set.
17392  for cc_temp in $compiler""; do
17393  case $cc_temp in
17394    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17395    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17396    \-*) ;;
17397    *) break;;
17398  esac
17399done
17400cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17401
17402  case $host_os in
17403  cygwin* | mingw* | pw32*)
17404    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17405    # When not using gcc, we currently assume that we are using
17406    # Microsoft Visual C++.
17407    if test "$GCC" != yes; then
17408      with_gnu_ld=no
17409    fi
17410    ;;
17411  interix*)
17412    # we just hope/assume this is gcc and not c89 (= MSVC++)
17413    with_gnu_ld=yes
17414    ;;
17415  openbsd*)
17416    with_gnu_ld=no
17417    ;;
17418  esac
17419
17420  ld_shlibs_GCJ=yes
17421  if test "$with_gnu_ld" = yes; then
17422    # If archive_cmds runs LD, not CC, wlarc should be empty
17423    wlarc='${wl}'
17424
17425    # Set some defaults for GNU ld with shared library support. These
17426    # are reset later if shared libraries are not supported. Putting them
17427    # here allows them to be overridden if necessary.
17428    runpath_var=LD_RUN_PATH
17429    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17430    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17431    # ancient GNU ld didn't support --whole-archive et. al.
17432    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17433	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17434      else
17435  	whole_archive_flag_spec_GCJ=
17436    fi
17437    supports_anon_versioning=no
17438    case `$LD -v 2>/dev/null` in
17439      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17440      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17441      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17442      *\ 2.11.*) ;; # other 2.11 versions
17443      *) supports_anon_versioning=yes ;;
17444    esac
17445
17446    # See if GNU ld supports shared libraries.
17447    case $host_os in
17448    aix[3-9]*)
17449      # On AIX/PPC, the GNU linker is very broken
17450      if test "$host_cpu" != ia64; then
17451	ld_shlibs_GCJ=no
17452	cat <<EOF 1>&2
17453
17454*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17455*** to be unable to reliably create shared libraries on AIX.
17456*** Therefore, libtool is disabling shared libraries support.  If you
17457*** really care for shared libraries, you may want to modify your PATH
17458*** so that a non-GNU linker is found, and then restart.
17459
17460EOF
17461      fi
17462      ;;
17463
17464    amigaos*)
17465      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)'
17466      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17467      hardcode_minus_L_GCJ=yes
17468
17469      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17470      # that the semantics of dynamic libraries on AmigaOS, at least up
17471      # to version 4, is to share data among multiple programs linked
17472      # with the same dynamic library.  Since this doesn't match the
17473      # behavior of shared libraries on other platforms, we can't use
17474      # them.
17475      ld_shlibs_GCJ=no
17476      ;;
17477
17478    beos*)
17479      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17480	allow_undefined_flag_GCJ=unsupported
17481	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17482	# support --undefined.  This deserves some investigation.  FIXME
17483	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17484      else
17485	ld_shlibs_GCJ=no
17486      fi
17487      ;;
17488
17489    cygwin* | mingw* | pw32*)
17490      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17491      # as there is no search path for DLLs.
17492      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17493      allow_undefined_flag_GCJ=unsupported
17494      always_export_symbols_GCJ=no
17495      enable_shared_with_static_runtimes_GCJ=yes
17496      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17497
17498      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17499        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17500	# If the export-symbols file already is a .def file (1st line
17501	# is EXPORTS), use it as is; otherwise, prepend...
17502	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17503	  cp $export_symbols $output_objdir/$soname.def;
17504	else
17505	  echo EXPORTS > $output_objdir/$soname.def;
17506	  cat $export_symbols >> $output_objdir/$soname.def;
17507	fi~
17508	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17509      else
17510	ld_shlibs_GCJ=no
17511      fi
17512      ;;
17513
17514    interix[3-9]*)
17515      hardcode_direct_GCJ=no
17516      hardcode_shlibpath_var_GCJ=no
17517      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17518      export_dynamic_flag_spec_GCJ='${wl}-E'
17519      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17520      # Instead, shared libraries are loaded at an image base (0x10000000 by
17521      # default) and relocated if they conflict, which is a slow very memory
17522      # consuming and fragmenting process.  To avoid this, we pick a random,
17523      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17524      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17525      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'
17526      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'
17527      ;;
17528
17529    gnu* | linux* | k*bsd*-gnu)
17530      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17531	tmp_addflag=
17532	case $cc_basename,$host_cpu in
17533	pgcc*)				# Portland Group C compiler
17534	  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'
17535	  tmp_addflag=' $pic_flag'
17536	  ;;
17537	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17538	  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'
17539	  tmp_addflag=' $pic_flag -Mnomain' ;;
17540	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17541	  tmp_addflag=' -i_dynamic' ;;
17542	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17543	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17544	ifc* | ifort*)			# Intel Fortran compiler
17545	  tmp_addflag=' -nofor_main' ;;
17546	esac
17547	case `$CC -V 2>&1 | sed 5q` in
17548	*Sun\ C*)			# Sun C 5.9
17549	  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'
17550	  tmp_sharedflag='-G' ;;
17551	*Sun\ F*)			# Sun Fortran 8.3
17552	  tmp_sharedflag='-G' ;;
17553	*)
17554	  tmp_sharedflag='-shared' ;;
17555	esac
17556	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17557
17558	if test $supports_anon_versioning = yes; then
17559	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17560  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17561  $echo "local: *; };" >> $output_objdir/$libname.ver~
17562	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17563	fi
17564      else
17565	ld_shlibs_GCJ=no
17566      fi
17567      ;;
17568
17569    netbsd*)
17570      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17571	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17572	wlarc=
17573      else
17574	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17575	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17576      fi
17577      ;;
17578
17579    solaris*)
17580      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17581	ld_shlibs_GCJ=no
17582	cat <<EOF 1>&2
17583
17584*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17585*** create shared libraries on Solaris systems.  Therefore, libtool
17586*** is disabling shared libraries support.  We urge you to upgrade GNU
17587*** binutils to release 2.9.1 or newer.  Another option is to modify
17588*** your PATH or compiler configuration so that the native linker is
17589*** used, and then restart.
17590
17591EOF
17592      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17593	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17594	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17595      else
17596	ld_shlibs_GCJ=no
17597      fi
17598      ;;
17599
17600    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17601      case `$LD -v 2>&1` in
17602        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17603	ld_shlibs_GCJ=no
17604	cat <<_LT_EOF 1>&2
17605
17606*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17607*** reliably create shared libraries on SCO systems.  Therefore, libtool
17608*** is disabling shared libraries support.  We urge you to upgrade GNU
17609*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17610*** your PATH or compiler configuration so that the native linker is
17611*** used, and then restart.
17612
17613_LT_EOF
17614	;;
17615	*)
17616	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17617	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17618	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17619	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17620	  else
17621	    ld_shlibs_GCJ=no
17622	  fi
17623	;;
17624      esac
17625      ;;
17626
17627    sunos4*)
17628      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17629      wlarc=
17630      hardcode_direct_GCJ=yes
17631      hardcode_shlibpath_var_GCJ=no
17632      ;;
17633
17634    *)
17635      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17636	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17637	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17638      else
17639	ld_shlibs_GCJ=no
17640      fi
17641      ;;
17642    esac
17643
17644    if test "$ld_shlibs_GCJ" = no; then
17645      runpath_var=
17646      hardcode_libdir_flag_spec_GCJ=
17647      export_dynamic_flag_spec_GCJ=
17648      whole_archive_flag_spec_GCJ=
17649    fi
17650  else
17651    # PORTME fill in a description of your system's linker (not GNU ld)
17652    case $host_os in
17653    aix3*)
17654      allow_undefined_flag_GCJ=unsupported
17655      always_export_symbols_GCJ=yes
17656      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'
17657      # Note: this linker hardcodes the directories in LIBPATH if there
17658      # are no directories specified by -L.
17659      hardcode_minus_L_GCJ=yes
17660      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17661	# Neither direct hardcoding nor static linking is supported with a
17662	# broken collect2.
17663	hardcode_direct_GCJ=unsupported
17664      fi
17665      ;;
17666
17667    aix[4-9]*)
17668      if test "$host_cpu" = ia64; then
17669	# On IA64, the linker does run time linking by default, so we don't
17670	# have to do anything special.
17671	aix_use_runtimelinking=no
17672	exp_sym_flag='-Bexport'
17673	no_entry_flag=""
17674      else
17675	# If we're using GNU nm, then we don't want the "-C" option.
17676	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17677	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17678	  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'
17679	else
17680	  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'
17681	fi
17682	aix_use_runtimelinking=no
17683
17684	# Test if we are trying to use run time linking or normal
17685	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17686	# need to do runtime linking.
17687	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17688	  for ld_flag in $LDFLAGS; do
17689  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17690  	    aix_use_runtimelinking=yes
17691  	    break
17692  	  fi
17693	  done
17694	  ;;
17695	esac
17696
17697	exp_sym_flag='-bexport'
17698	no_entry_flag='-bnoentry'
17699      fi
17700
17701      # When large executables or shared objects are built, AIX ld can
17702      # have problems creating the table of contents.  If linking a library
17703      # or program results in "error TOC overflow" add -mminimal-toc to
17704      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17705      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17706
17707      archive_cmds_GCJ=''
17708      hardcode_direct_GCJ=yes
17709      hardcode_libdir_separator_GCJ=':'
17710      link_all_deplibs_GCJ=yes
17711
17712      if test "$GCC" = yes; then
17713	case $host_os in aix4.[012]|aix4.[012].*)
17714	# We only want to do this on AIX 4.2 and lower, the check
17715	# below for broken collect2 doesn't work under 4.3+
17716	  collect2name=`${CC} -print-prog-name=collect2`
17717	  if test -f "$collect2name" && \
17718  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17719	  then
17720  	  # We have reworked collect2
17721  	  :
17722	  else
17723  	  # We have old collect2
17724  	  hardcode_direct_GCJ=unsupported
17725  	  # It fails to find uninstalled libraries when the uninstalled
17726  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17727  	  # to unsupported forces relinking
17728  	  hardcode_minus_L_GCJ=yes
17729  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17730  	  hardcode_libdir_separator_GCJ=
17731	  fi
17732	  ;;
17733	esac
17734	shared_flag='-shared'
17735	if test "$aix_use_runtimelinking" = yes; then
17736	  shared_flag="$shared_flag "'${wl}-G'
17737	fi
17738      else
17739	# not using gcc
17740	if test "$host_cpu" = ia64; then
17741  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17742  	# chokes on -Wl,-G. The following line is correct:
17743	  shared_flag='-G'
17744	else
17745	  if test "$aix_use_runtimelinking" = yes; then
17746	    shared_flag='${wl}-G'
17747	  else
17748	    shared_flag='${wl}-bM:SRE'
17749	  fi
17750	fi
17751      fi
17752
17753      # It seems that -bexpall does not export symbols beginning with
17754      # underscore (_), so it is better to generate a list of symbols to export.
17755      always_export_symbols_GCJ=yes
17756      if test "$aix_use_runtimelinking" = yes; then
17757	# Warning - without using the other runtime loading flags (-brtl),
17758	# -berok will link without error, but may produce a broken library.
17759	allow_undefined_flag_GCJ='-berok'
17760       # Determine the default libpath from the value encoded in an empty executable.
17761       cat >conftest.$ac_ext <<_ACEOF
17762/* confdefs.h.  */
17763_ACEOF
17764cat confdefs.h >>conftest.$ac_ext
17765cat >>conftest.$ac_ext <<_ACEOF
17766/* end confdefs.h.  */
17767
17768int
17769main ()
17770{
17771
17772  ;
17773  return 0;
17774}
17775_ACEOF
17776rm -f conftest.$ac_objext conftest$ac_exeext
17777if { (ac_try="$ac_link"
17778case "(($ac_try" in
17779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17780  *) ac_try_echo=$ac_try;;
17781esac
17782eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17783$as_echo "$ac_try_echo") >&5
17784  (eval "$ac_link") 2>conftest.er1
17785  ac_status=$?
17786  grep -v '^ *+' conftest.er1 >conftest.err
17787  rm -f conftest.er1
17788  cat conftest.err >&5
17789  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790  (exit $ac_status); } && {
17791	 test -z "$ac_c_werror_flag" ||
17792	 test ! -s conftest.err
17793       } && test -s conftest$ac_exeext && {
17794	 test "$cross_compiling" = yes ||
17795	 $as_test_x conftest$ac_exeext
17796       }; then
17797
17798lt_aix_libpath_sed='
17799    /Import File Strings/,/^$/ {
17800	/^0/ {
17801	    s/^0  *\(.*\)$/\1/
17802	    p
17803	}
17804    }'
17805aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17806# Check for a 64-bit object if we didn't find anything.
17807if test -z "$aix_libpath"; then
17808  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17809fi
17810else
17811  $as_echo "$as_me: failed program was:" >&5
17812sed 's/^/| /' conftest.$ac_ext >&5
17813
17814
17815fi
17816
17817rm -rf conftest.dSYM
17818rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17819      conftest$ac_exeext conftest.$ac_ext
17820if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17821
17822       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17823	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"
17824       else
17825	if test "$host_cpu" = ia64; then
17826	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17827	  allow_undefined_flag_GCJ="-z nodefs"
17828	  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"
17829	else
17830	 # Determine the default libpath from the value encoded in an empty executable.
17831	 cat >conftest.$ac_ext <<_ACEOF
17832/* confdefs.h.  */
17833_ACEOF
17834cat confdefs.h >>conftest.$ac_ext
17835cat >>conftest.$ac_ext <<_ACEOF
17836/* end confdefs.h.  */
17837
17838int
17839main ()
17840{
17841
17842  ;
17843  return 0;
17844}
17845_ACEOF
17846rm -f conftest.$ac_objext conftest$ac_exeext
17847if { (ac_try="$ac_link"
17848case "(($ac_try" in
17849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850  *) ac_try_echo=$ac_try;;
17851esac
17852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17853$as_echo "$ac_try_echo") >&5
17854  (eval "$ac_link") 2>conftest.er1
17855  ac_status=$?
17856  grep -v '^ *+' conftest.er1 >conftest.err
17857  rm -f conftest.er1
17858  cat conftest.err >&5
17859  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860  (exit $ac_status); } && {
17861	 test -z "$ac_c_werror_flag" ||
17862	 test ! -s conftest.err
17863       } && test -s conftest$ac_exeext && {
17864	 test "$cross_compiling" = yes ||
17865	 $as_test_x conftest$ac_exeext
17866       }; then
17867
17868lt_aix_libpath_sed='
17869    /Import File Strings/,/^$/ {
17870	/^0/ {
17871	    s/^0  *\(.*\)$/\1/
17872	    p
17873	}
17874    }'
17875aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17876# Check for a 64-bit object if we didn't find anything.
17877if test -z "$aix_libpath"; then
17878  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17879fi
17880else
17881  $as_echo "$as_me: failed program was:" >&5
17882sed 's/^/| /' conftest.$ac_ext >&5
17883
17884
17885fi
17886
17887rm -rf conftest.dSYM
17888rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17889      conftest$ac_exeext conftest.$ac_ext
17890if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17891
17892	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17893	  # Warning - without using the other run time loading flags,
17894	  # -berok will link without error, but may produce a broken library.
17895	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17896	  allow_undefined_flag_GCJ=' ${wl}-berok'
17897	  # Exported symbols can be pulled into shared objects from archives
17898	  whole_archive_flag_spec_GCJ='$convenience'
17899	  archive_cmds_need_lc_GCJ=yes
17900	  # This is similar to how AIX traditionally builds its shared libraries.
17901	  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'
17902	fi
17903      fi
17904      ;;
17905
17906    amigaos*)
17907      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)'
17908      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17909      hardcode_minus_L_GCJ=yes
17910      # see comment about different semantics on the GNU ld section
17911      ld_shlibs_GCJ=no
17912      ;;
17913
17914    bsdi[45]*)
17915      export_dynamic_flag_spec_GCJ=-rdynamic
17916      ;;
17917
17918    cygwin* | mingw* | pw32*)
17919      # When not using gcc, we currently assume that we are using
17920      # Microsoft Visual C++.
17921      # hardcode_libdir_flag_spec is actually meaningless, as there is
17922      # no search path for DLLs.
17923      hardcode_libdir_flag_spec_GCJ=' '
17924      allow_undefined_flag_GCJ=unsupported
17925      # Tell ltmain to make .lib files, not .a files.
17926      libext=lib
17927      # Tell ltmain to make .dll files, not .so files.
17928      shrext_cmds=".dll"
17929      # FIXME: Setting linknames here is a bad hack.
17930      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17931      # The linker will automatically build a .lib file if we build a DLL.
17932      old_archive_From_new_cmds_GCJ='true'
17933      # FIXME: Should let the user specify the lib program.
17934      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17935      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17936      enable_shared_with_static_runtimes_GCJ=yes
17937      ;;
17938
17939    darwin* | rhapsody*)
17940      case $host_os in
17941        rhapsody* | darwin1.[012])
17942         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17943         ;;
17944       *) # Darwin 1.3 on
17945         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17946           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17947         else
17948           case ${MACOSX_DEPLOYMENT_TARGET} in
17949             10.[012])
17950               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17951               ;;
17952             10.*)
17953               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17954               ;;
17955           esac
17956         fi
17957         ;;
17958      esac
17959      archive_cmds_need_lc_GCJ=no
17960      hardcode_direct_GCJ=no
17961      hardcode_automatic_GCJ=yes
17962      hardcode_shlibpath_var_GCJ=unsupported
17963      whole_archive_flag_spec_GCJ=''
17964      link_all_deplibs_GCJ=yes
17965    if test "$GCC" = yes ; then
17966    	output_verbose_link_cmd='echo'
17967        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}"
17968        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17969        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}"
17970        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}"
17971    else
17972      case $cc_basename in
17973        xlc*)
17974         output_verbose_link_cmd='echo'
17975         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17976         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17977          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17978         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}'
17979          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}'
17980          ;;
17981       *)
17982         ld_shlibs_GCJ=no
17983          ;;
17984      esac
17985    fi
17986      ;;
17987
17988    dgux*)
17989      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17990      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17991      hardcode_shlibpath_var_GCJ=no
17992      ;;
17993
17994    freebsd1*)
17995      ld_shlibs_GCJ=no
17996      ;;
17997
17998    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17999    # support.  Future versions do this automatically, but an explicit c++rt0.o
18000    # does not break anything, and helps significantly (at the cost of a little
18001    # extra space).
18002    freebsd2.2*)
18003      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18004      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18005      hardcode_direct_GCJ=yes
18006      hardcode_shlibpath_var_GCJ=no
18007      ;;
18008
18009    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18010    freebsd2*)
18011      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18012      hardcode_direct_GCJ=yes
18013      hardcode_minus_L_GCJ=yes
18014      hardcode_shlibpath_var_GCJ=no
18015      ;;
18016
18017    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18018    freebsd* | dragonfly*)
18019      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18020      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18021      hardcode_direct_GCJ=yes
18022      hardcode_shlibpath_var_GCJ=no
18023      ;;
18024
18025    hpux9*)
18026      if test "$GCC" = yes; then
18027	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'
18028      else
18029	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'
18030      fi
18031      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18032      hardcode_libdir_separator_GCJ=:
18033      hardcode_direct_GCJ=yes
18034
18035      # hardcode_minus_L: Not really in the search PATH,
18036      # but as the default location of the library.
18037      hardcode_minus_L_GCJ=yes
18038      export_dynamic_flag_spec_GCJ='${wl}-E'
18039      ;;
18040
18041    hpux10*)
18042      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18043	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18044      else
18045	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18046      fi
18047      if test "$with_gnu_ld" = no; then
18048	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18049	hardcode_libdir_separator_GCJ=:
18050
18051	hardcode_direct_GCJ=yes
18052	export_dynamic_flag_spec_GCJ='${wl}-E'
18053
18054	# hardcode_minus_L: Not really in the search PATH,
18055	# but as the default location of the library.
18056	hardcode_minus_L_GCJ=yes
18057      fi
18058      ;;
18059
18060    hpux11*)
18061      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18062	case $host_cpu in
18063	hppa*64*)
18064	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18065	  ;;
18066	ia64*)
18067	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18068	  ;;
18069	*)
18070	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18071	  ;;
18072	esac
18073      else
18074	case $host_cpu in
18075	hppa*64*)
18076	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18077	  ;;
18078	ia64*)
18079	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18080	  ;;
18081	*)
18082	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18083	  ;;
18084	esac
18085      fi
18086      if test "$with_gnu_ld" = no; then
18087	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18088	hardcode_libdir_separator_GCJ=:
18089
18090	case $host_cpu in
18091	hppa*64*|ia64*)
18092	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18093	  hardcode_direct_GCJ=no
18094	  hardcode_shlibpath_var_GCJ=no
18095	  ;;
18096	*)
18097	  hardcode_direct_GCJ=yes
18098	  export_dynamic_flag_spec_GCJ='${wl}-E'
18099
18100	  # hardcode_minus_L: Not really in the search PATH,
18101	  # but as the default location of the library.
18102	  hardcode_minus_L_GCJ=yes
18103	  ;;
18104	esac
18105      fi
18106      ;;
18107
18108    irix5* | irix6* | nonstopux*)
18109      if test "$GCC" = yes; then
18110	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'
18111      else
18112	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'
18113	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18114      fi
18115      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18116      hardcode_libdir_separator_GCJ=:
18117      link_all_deplibs_GCJ=yes
18118      ;;
18119
18120    netbsd*)
18121      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18122	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18123      else
18124	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18125      fi
18126      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18127      hardcode_direct_GCJ=yes
18128      hardcode_shlibpath_var_GCJ=no
18129      ;;
18130
18131    newsos6)
18132      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18133      hardcode_direct_GCJ=yes
18134      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18135      hardcode_libdir_separator_GCJ=:
18136      hardcode_shlibpath_var_GCJ=no
18137      ;;
18138
18139    openbsd*)
18140      if test -f /usr/libexec/ld.so; then
18141	hardcode_direct_GCJ=yes
18142	hardcode_shlibpath_var_GCJ=no
18143	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18144	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18145	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18146	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18147	  export_dynamic_flag_spec_GCJ='${wl}-E'
18148	else
18149	  case $host_os in
18150	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18151	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18152	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18153	     ;;
18154	   *)
18155	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18156	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18157	     ;;
18158	  esac
18159        fi
18160      else
18161	ld_shlibs_GCJ=no
18162      fi
18163      ;;
18164
18165    os2*)
18166      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18167      hardcode_minus_L_GCJ=yes
18168      allow_undefined_flag_GCJ=unsupported
18169      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'
18170      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18171      ;;
18172
18173    osf3*)
18174      if test "$GCC" = yes; then
18175	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18176	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'
18177      else
18178	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18179	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'
18180      fi
18181      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18182      hardcode_libdir_separator_GCJ=:
18183      ;;
18184
18185    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18186      if test "$GCC" = yes; then
18187	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18188	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'
18189	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18190      else
18191	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18192	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'
18193	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~
18194	$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'
18195
18196	# Both c and cxx compiler support -rpath directly
18197	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18198      fi
18199      hardcode_libdir_separator_GCJ=:
18200      ;;
18201
18202    solaris*)
18203      no_undefined_flag_GCJ=' -z text'
18204      if test "$GCC" = yes; then
18205	wlarc='${wl}'
18206	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18207	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18208	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18209      else
18210	wlarc=''
18211	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18212	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18213  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18214      fi
18215      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18216      hardcode_shlibpath_var_GCJ=no
18217      case $host_os in
18218      solaris2.[0-5] | solaris2.[0-5].*) ;;
18219      *)
18220	# The compiler driver will combine and reorder linker options,
18221	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18222	# but is careful enough not to reorder.
18223 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18224	if test "$GCC" = yes; then
18225	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18226	else
18227	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18228	fi
18229	;;
18230      esac
18231      link_all_deplibs_GCJ=yes
18232      ;;
18233
18234    sunos4*)
18235      if test "x$host_vendor" = xsequent; then
18236	# Use $CC to link under sequent, because it throws in some extra .o
18237	# files that make .init and .fini sections work.
18238	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18239      else
18240	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18241      fi
18242      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18243      hardcode_direct_GCJ=yes
18244      hardcode_minus_L_GCJ=yes
18245      hardcode_shlibpath_var_GCJ=no
18246      ;;
18247
18248    sysv4)
18249      case $host_vendor in
18250	sni)
18251	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18252	  hardcode_direct_GCJ=yes # is this really true???
18253	;;
18254	siemens)
18255	  ## LD is ld it makes a PLAMLIB
18256	  ## CC just makes a GrossModule.
18257	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18258	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18259	  hardcode_direct_GCJ=no
18260        ;;
18261	motorola)
18262	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18263	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18264	;;
18265      esac
18266      runpath_var='LD_RUN_PATH'
18267      hardcode_shlibpath_var_GCJ=no
18268      ;;
18269
18270    sysv4.3*)
18271      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18272      hardcode_shlibpath_var_GCJ=no
18273      export_dynamic_flag_spec_GCJ='-Bexport'
18274      ;;
18275
18276    sysv4*MP*)
18277      if test -d /usr/nec; then
18278	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18279	hardcode_shlibpath_var_GCJ=no
18280	runpath_var=LD_RUN_PATH
18281	hardcode_runpath_var=yes
18282	ld_shlibs_GCJ=yes
18283      fi
18284      ;;
18285
18286    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18287      no_undefined_flag_GCJ='${wl}-z,text'
18288      archive_cmds_need_lc_GCJ=no
18289      hardcode_shlibpath_var_GCJ=no
18290      runpath_var='LD_RUN_PATH'
18291
18292      if test "$GCC" = yes; then
18293	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18294	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18295      else
18296	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18297	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18298      fi
18299      ;;
18300
18301    sysv5* | sco3.2v5* | sco5v6*)
18302      # Note: We can NOT use -z defs as we might desire, because we do not
18303      # link with -lc, and that would cause any symbols used from libc to
18304      # always be unresolved, which means just about no library would
18305      # ever link correctly.  If we're not using GNU ld we use -z text
18306      # though, which does catch some bad symbols but isn't as heavy-handed
18307      # as -z defs.
18308      no_undefined_flag_GCJ='${wl}-z,text'
18309      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18310      archive_cmds_need_lc_GCJ=no
18311      hardcode_shlibpath_var_GCJ=no
18312      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18313      hardcode_libdir_separator_GCJ=':'
18314      link_all_deplibs_GCJ=yes
18315      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18316      runpath_var='LD_RUN_PATH'
18317
18318      if test "$GCC" = yes; then
18319	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18320	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18321      else
18322	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18323	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18324      fi
18325      ;;
18326
18327    uts4*)
18328      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18329      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18330      hardcode_shlibpath_var_GCJ=no
18331      ;;
18332
18333    *)
18334      ld_shlibs_GCJ=no
18335      ;;
18336    esac
18337  fi
18338
18339{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18340$as_echo "$ld_shlibs_GCJ" >&6; }
18341test "$ld_shlibs_GCJ" = no && can_build_shared=no
18342
18343#
18344# Do we need to explicitly link libc?
18345#
18346case "x$archive_cmds_need_lc_GCJ" in
18347x|xyes)
18348  # Assume -lc should be added
18349  archive_cmds_need_lc_GCJ=yes
18350
18351  if test "$enable_shared" = yes && test "$GCC" = yes; then
18352    case $archive_cmds_GCJ in
18353    *'~'*)
18354      # FIXME: we may have to deal with multi-command sequences.
18355      ;;
18356    '$CC '*)
18357      # Test whether the compiler implicitly links with -lc since on some
18358      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18359      # to ld, don't add -lc before -lgcc.
18360      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18361$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18362      $rm conftest*
18363      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18364
18365      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18366  (eval $ac_compile) 2>&5
18367  ac_status=$?
18368  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369  (exit $ac_status); } 2>conftest.err; then
18370        soname=conftest
18371        lib=conftest
18372        libobjs=conftest.$ac_objext
18373        deplibs=
18374        wl=$lt_prog_compiler_wl_GCJ
18375	pic_flag=$lt_prog_compiler_pic_GCJ
18376        compiler_flags=-v
18377        linker_flags=-v
18378        verstring=
18379        output_objdir=.
18380        libname=conftest
18381        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18382        allow_undefined_flag_GCJ=
18383        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18384  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18385  ac_status=$?
18386  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387  (exit $ac_status); }
18388        then
18389	  archive_cmds_need_lc_GCJ=no
18390        else
18391	  archive_cmds_need_lc_GCJ=yes
18392        fi
18393        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18394      else
18395        cat conftest.err 1>&5
18396      fi
18397      $rm conftest*
18398      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18399$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18400      ;;
18401    esac
18402  fi
18403  ;;
18404esac
18405
18406{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18407$as_echo_n "checking dynamic linker characteristics... " >&6; }
18408library_names_spec=
18409libname_spec='lib$name'
18410soname_spec=
18411shrext_cmds=".so"
18412postinstall_cmds=
18413postuninstall_cmds=
18414finish_cmds=
18415finish_eval=
18416shlibpath_var=
18417shlibpath_overrides_runpath=unknown
18418version_type=none
18419dynamic_linker="$host_os ld.so"
18420sys_lib_dlsearch_path_spec="/lib /usr/lib"
18421
18422need_lib_prefix=unknown
18423hardcode_into_libs=no
18424
18425# when you set need_version to no, make sure it does not cause -set_version
18426# flags to be left without arguments
18427need_version=unknown
18428
18429case $host_os in
18430aix3*)
18431  version_type=linux
18432  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18433  shlibpath_var=LIBPATH
18434
18435  # AIX 3 has no versioning support, so we append a major version to the name.
18436  soname_spec='${libname}${release}${shared_ext}$major'
18437  ;;
18438
18439aix[4-9]*)
18440  version_type=linux
18441  need_lib_prefix=no
18442  need_version=no
18443  hardcode_into_libs=yes
18444  if test "$host_cpu" = ia64; then
18445    # AIX 5 supports IA64
18446    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18447    shlibpath_var=LD_LIBRARY_PATH
18448  else
18449    # With GCC up to 2.95.x, collect2 would create an import file
18450    # for dependence libraries.  The import file would start with
18451    # the line `#! .'.  This would cause the generated library to
18452    # depend on `.', always an invalid library.  This was fixed in
18453    # development snapshots of GCC prior to 3.0.
18454    case $host_os in
18455      aix4 | aix4.[01] | aix4.[01].*)
18456      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18457	   echo ' yes '
18458	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18459	:
18460      else
18461	can_build_shared=no
18462      fi
18463      ;;
18464    esac
18465    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18466    # soname into executable. Probably we can add versioning support to
18467    # collect2, so additional links can be useful in future.
18468    if test "$aix_use_runtimelinking" = yes; then
18469      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18470      # instead of lib<name>.a to let people know that these are not
18471      # typical AIX shared libraries.
18472      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18473    else
18474      # We preserve .a as extension for shared libraries through AIX4.2
18475      # and later when we are not doing run time linking.
18476      library_names_spec='${libname}${release}.a $libname.a'
18477      soname_spec='${libname}${release}${shared_ext}$major'
18478    fi
18479    shlibpath_var=LIBPATH
18480  fi
18481  ;;
18482
18483amigaos*)
18484  library_names_spec='$libname.ixlibrary $libname.a'
18485  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18486  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'
18487  ;;
18488
18489beos*)
18490  library_names_spec='${libname}${shared_ext}'
18491  dynamic_linker="$host_os ld.so"
18492  shlibpath_var=LIBRARY_PATH
18493  ;;
18494
18495bsdi[45]*)
18496  version_type=linux
18497  need_version=no
18498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18499  soname_spec='${libname}${release}${shared_ext}$major'
18500  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18501  shlibpath_var=LD_LIBRARY_PATH
18502  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18503  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18504  # the default ld.so.conf also contains /usr/contrib/lib and
18505  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18506  # libtool to hard-code these into programs
18507  ;;
18508
18509cygwin* | mingw* | pw32*)
18510  version_type=windows
18511  shrext_cmds=".dll"
18512  need_version=no
18513  need_lib_prefix=no
18514
18515  case $GCC,$host_os in
18516  yes,cygwin* | yes,mingw* | yes,pw32*)
18517    library_names_spec='$libname.dll.a'
18518    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18519    postinstall_cmds='base_file=`basename \${file}`~
18520      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18521      dldir=$destdir/`dirname \$dlpath`~
18522      test -d \$dldir || mkdir -p \$dldir~
18523      $install_prog $dir/$dlname \$dldir/$dlname~
18524      chmod a+x \$dldir/$dlname'
18525    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18526      dlpath=$dir/\$dldll~
18527       $rm \$dlpath'
18528    shlibpath_overrides_runpath=yes
18529
18530    case $host_os in
18531    cygwin*)
18532      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18533      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18534      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18535      ;;
18536    mingw*)
18537      # MinGW DLLs use traditional 'lib' prefix
18538      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18539      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18540      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18541        # It is most probably a Windows format PATH printed by
18542        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18543        # path with ; separators, and with drive letters. We can handle the
18544        # drive letters (cygwin fileutils understands them), so leave them,
18545        # especially as we might pass files found there to a mingw objdump,
18546        # which wouldn't understand a cygwinified path. Ahh.
18547        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18548      else
18549        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18550      fi
18551      ;;
18552    pw32*)
18553      # pw32 DLLs use 'pw' prefix rather than 'lib'
18554      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18555      ;;
18556    esac
18557    ;;
18558
18559  *)
18560    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18561    ;;
18562  esac
18563  dynamic_linker='Win32 ld.exe'
18564  # FIXME: first we should search . and the directory the executable is in
18565  shlibpath_var=PATH
18566  ;;
18567
18568darwin* | rhapsody*)
18569  dynamic_linker="$host_os dyld"
18570  version_type=darwin
18571  need_lib_prefix=no
18572  need_version=no
18573  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18574  soname_spec='${libname}${release}${major}$shared_ext'
18575  shlibpath_overrides_runpath=yes
18576  shlibpath_var=DYLD_LIBRARY_PATH
18577  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18578
18579  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18580  ;;
18581
18582dgux*)
18583  version_type=linux
18584  need_lib_prefix=no
18585  need_version=no
18586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18587  soname_spec='${libname}${release}${shared_ext}$major'
18588  shlibpath_var=LD_LIBRARY_PATH
18589  ;;
18590
18591freebsd1*)
18592  dynamic_linker=no
18593  ;;
18594
18595freebsd* | dragonfly*)
18596  # DragonFly does not have aout.  When/if they implement a new
18597  # versioning mechanism, adjust this.
18598  if test -x /usr/bin/objformat; then
18599    objformat=`/usr/bin/objformat`
18600  else
18601    case $host_os in
18602    freebsd[123]*) objformat=aout ;;
18603    *) objformat=elf ;;
18604    esac
18605  fi
18606  version_type=freebsd-$objformat
18607  case $version_type in
18608    freebsd-elf*)
18609      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18610      need_version=no
18611      need_lib_prefix=no
18612      ;;
18613    freebsd-*)
18614      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18615      need_version=yes
18616      ;;
18617  esac
18618  shlibpath_var=LD_LIBRARY_PATH
18619  case $host_os in
18620  freebsd2*)
18621    shlibpath_overrides_runpath=yes
18622    ;;
18623  freebsd3.[01]* | freebsdelf3.[01]*)
18624    shlibpath_overrides_runpath=yes
18625    hardcode_into_libs=yes
18626    ;;
18627  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18628  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18629    shlibpath_overrides_runpath=no
18630    hardcode_into_libs=yes
18631    ;;
18632  *) # from 4.6 on, and DragonFly
18633    shlibpath_overrides_runpath=yes
18634    hardcode_into_libs=yes
18635    ;;
18636  esac
18637  ;;
18638
18639gnu*)
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  shlibpath_var=LD_LIBRARY_PATH
18646  hardcode_into_libs=yes
18647  ;;
18648
18649hpux9* | hpux10* | hpux11*)
18650  # Give a soname corresponding to the major version so that dld.sl refuses to
18651  # link against other versions.
18652  version_type=sunos
18653  need_lib_prefix=no
18654  need_version=no
18655  case $host_cpu in
18656  ia64*)
18657    shrext_cmds='.so'
18658    hardcode_into_libs=yes
18659    dynamic_linker="$host_os dld.so"
18660    shlibpath_var=LD_LIBRARY_PATH
18661    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18662    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18663    soname_spec='${libname}${release}${shared_ext}$major'
18664    if test "X$HPUX_IA64_MODE" = X32; then
18665      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18666    else
18667      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18668    fi
18669    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18670    ;;
18671   hppa*64*)
18672     shrext_cmds='.sl'
18673     hardcode_into_libs=yes
18674     dynamic_linker="$host_os dld.sl"
18675     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18676     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18677     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18678     soname_spec='${libname}${release}${shared_ext}$major'
18679     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18680     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18681     ;;
18682   *)
18683    shrext_cmds='.sl'
18684    dynamic_linker="$host_os dld.sl"
18685    shlibpath_var=SHLIB_PATH
18686    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18687    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18688    soname_spec='${libname}${release}${shared_ext}$major'
18689    ;;
18690  esac
18691  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18692  postinstall_cmds='chmod 555 $lib'
18693  ;;
18694
18695interix[3-9]*)
18696  version_type=linux
18697  need_lib_prefix=no
18698  need_version=no
18699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18700  soname_spec='${libname}${release}${shared_ext}$major'
18701  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18702  shlibpath_var=LD_LIBRARY_PATH
18703  shlibpath_overrides_runpath=no
18704  hardcode_into_libs=yes
18705  ;;
18706
18707irix5* | irix6* | nonstopux*)
18708  case $host_os in
18709    nonstopux*) version_type=nonstopux ;;
18710    *)
18711	if test "$lt_cv_prog_gnu_ld" = yes; then
18712		version_type=linux
18713	else
18714		version_type=irix
18715	fi ;;
18716  esac
18717  need_lib_prefix=no
18718  need_version=no
18719  soname_spec='${libname}${release}${shared_ext}$major'
18720  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18721  case $host_os in
18722  irix5* | nonstopux*)
18723    libsuff= shlibsuff=
18724    ;;
18725  *)
18726    case $LD in # libtool.m4 will add one of these switches to LD
18727    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18728      libsuff= shlibsuff= libmagic=32-bit;;
18729    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18730      libsuff=32 shlibsuff=N32 libmagic=N32;;
18731    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18732      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18733    *) libsuff= shlibsuff= libmagic=never-match;;
18734    esac
18735    ;;
18736  esac
18737  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18738  shlibpath_overrides_runpath=no
18739  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18740  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18741  hardcode_into_libs=yes
18742  ;;
18743
18744# No shared lib support for Linux oldld, aout, or coff.
18745linux*oldld* | linux*aout* | linux*coff*)
18746  dynamic_linker=no
18747  ;;
18748
18749# This must be Linux ELF.
18750linux* | k*bsd*-gnu)
18751  version_type=linux
18752  need_lib_prefix=no
18753  need_version=no
18754  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18755  soname_spec='${libname}${release}${shared_ext}$major'
18756  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18757  shlibpath_var=LD_LIBRARY_PATH
18758  shlibpath_overrides_runpath=no
18759  # This implies no fast_install, which is unacceptable.
18760  # Some rework will be needed to allow for fast_install
18761  # before this can be enabled.
18762  hardcode_into_libs=yes
18763  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18764  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18765
18766  # Append ld.so.conf contents to the search path
18767  if test -f /etc/ld.so.conf; then
18768    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' ' '`
18769    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18770  fi
18771
18772  # We used to test for /lib/ld.so.1 and disable shared libraries on
18773  # powerpc, because MkLinux only supported shared libraries with the
18774  # GNU dynamic linker.  Since this was broken with cross compilers,
18775  # most powerpc-linux boxes support dynamic linking these days and
18776  # people can always --disable-shared, the test was removed, and we
18777  # assume the GNU/Linux dynamic linker is in use.
18778  dynamic_linker='GNU/Linux ld.so'
18779  ;;
18780
18781netbsd*)
18782  version_type=sunos
18783  need_lib_prefix=no
18784  need_version=no
18785  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18786    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18787    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18788    dynamic_linker='NetBSD (a.out) ld.so'
18789  else
18790    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18791    soname_spec='${libname}${release}${shared_ext}$major'
18792    dynamic_linker='NetBSD ld.elf_so'
18793  fi
18794  shlibpath_var=LD_LIBRARY_PATH
18795  shlibpath_overrides_runpath=yes
18796  hardcode_into_libs=yes
18797  ;;
18798
18799newsos6)
18800  version_type=linux
18801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18802  shlibpath_var=LD_LIBRARY_PATH
18803  shlibpath_overrides_runpath=yes
18804  ;;
18805
18806nto-qnx*)
18807  version_type=linux
18808  need_lib_prefix=no
18809  need_version=no
18810  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18811  soname_spec='${libname}${release}${shared_ext}$major'
18812  shlibpath_var=LD_LIBRARY_PATH
18813  shlibpath_overrides_runpath=yes
18814  ;;
18815
18816openbsd*)
18817  version_type=sunos
18818  sys_lib_dlsearch_path_spec="/usr/lib"
18819  need_lib_prefix=no
18820  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18821  case $host_os in
18822    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18823    *)                         need_version=no  ;;
18824  esac
18825  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18826  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18827  shlibpath_var=LD_LIBRARY_PATH
18828  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18829    case $host_os in
18830      openbsd2.[89] | openbsd2.[89].*)
18831	shlibpath_overrides_runpath=no
18832	;;
18833      *)
18834	shlibpath_overrides_runpath=yes
18835	;;
18836      esac
18837  else
18838    shlibpath_overrides_runpath=yes
18839  fi
18840  ;;
18841
18842os2*)
18843  libname_spec='$name'
18844  shrext_cmds=".dll"
18845  need_lib_prefix=no
18846  library_names_spec='$libname${shared_ext} $libname.a'
18847  dynamic_linker='OS/2 ld.exe'
18848  shlibpath_var=LIBPATH
18849  ;;
18850
18851osf3* | osf4* | osf5*)
18852  version_type=osf
18853  need_lib_prefix=no
18854  need_version=no
18855  soname_spec='${libname}${release}${shared_ext}$major'
18856  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18857  shlibpath_var=LD_LIBRARY_PATH
18858  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18859  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18860  ;;
18861
18862rdos*)
18863  dynamic_linker=no
18864  ;;
18865
18866solaris*)
18867  version_type=linux
18868  need_lib_prefix=no
18869  need_version=no
18870  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18871  soname_spec='${libname}${release}${shared_ext}$major'
18872  shlibpath_var=LD_LIBRARY_PATH
18873  shlibpath_overrides_runpath=yes
18874  hardcode_into_libs=yes
18875  # ldd complains unless libraries are executable
18876  postinstall_cmds='chmod +x $lib'
18877  ;;
18878
18879sunos4*)
18880  version_type=sunos
18881  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18882  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18883  shlibpath_var=LD_LIBRARY_PATH
18884  shlibpath_overrides_runpath=yes
18885  if test "$with_gnu_ld" = yes; then
18886    need_lib_prefix=no
18887  fi
18888  need_version=yes
18889  ;;
18890
18891sysv4 | sysv4.3*)
18892  version_type=linux
18893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18894  soname_spec='${libname}${release}${shared_ext}$major'
18895  shlibpath_var=LD_LIBRARY_PATH
18896  case $host_vendor in
18897    sni)
18898      shlibpath_overrides_runpath=no
18899      need_lib_prefix=no
18900      export_dynamic_flag_spec='${wl}-Blargedynsym'
18901      runpath_var=LD_RUN_PATH
18902      ;;
18903    siemens)
18904      need_lib_prefix=no
18905      ;;
18906    motorola)
18907      need_lib_prefix=no
18908      need_version=no
18909      shlibpath_overrides_runpath=no
18910      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18911      ;;
18912  esac
18913  ;;
18914
18915sysv4*MP*)
18916  if test -d /usr/nec ;then
18917    version_type=linux
18918    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18919    soname_spec='$libname${shared_ext}.$major'
18920    shlibpath_var=LD_LIBRARY_PATH
18921  fi
18922  ;;
18923
18924sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18925  version_type=freebsd-elf
18926  need_lib_prefix=no
18927  need_version=no
18928  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18929  soname_spec='${libname}${release}${shared_ext}$major'
18930  shlibpath_var=LD_LIBRARY_PATH
18931  hardcode_into_libs=yes
18932  if test "$with_gnu_ld" = yes; then
18933    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18934    shlibpath_overrides_runpath=no
18935  else
18936    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18937    shlibpath_overrides_runpath=yes
18938    case $host_os in
18939      sco3.2v5*)
18940        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18941	;;
18942    esac
18943  fi
18944  sys_lib_dlsearch_path_spec='/usr/lib'
18945  ;;
18946
18947uts4*)
18948  version_type=linux
18949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18950  soname_spec='${libname}${release}${shared_ext}$major'
18951  shlibpath_var=LD_LIBRARY_PATH
18952  ;;
18953
18954*)
18955  dynamic_linker=no
18956  ;;
18957esac
18958{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18959$as_echo "$dynamic_linker" >&6; }
18960test "$dynamic_linker" = no && can_build_shared=no
18961
18962if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18963  $as_echo_n "(cached) " >&6
18964else
18965  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18966fi
18967
18968sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18969if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18970  $as_echo_n "(cached) " >&6
18971else
18972  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18973fi
18974
18975sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18976
18977variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18978if test "$GCC" = yes; then
18979  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18980fi
18981
18982{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18983$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18984hardcode_action_GCJ=
18985if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18986   test -n "$runpath_var_GCJ" || \
18987   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18988
18989  # We can hardcode non-existant directories.
18990  if test "$hardcode_direct_GCJ" != no &&
18991     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18992     # have to relink, otherwise we might link with an installed library
18993     # when we should be linking with a yet-to-be-installed one
18994     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18995     test "$hardcode_minus_L_GCJ" != no; then
18996    # Linking always hardcodes the temporary library directory.
18997    hardcode_action_GCJ=relink
18998  else
18999    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19000    hardcode_action_GCJ=immediate
19001  fi
19002else
19003  # We cannot hardcode anything, or else we can only hardcode existing
19004  # directories.
19005  hardcode_action_GCJ=unsupported
19006fi
19007{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19008$as_echo "$hardcode_action_GCJ" >&6; }
19009
19010if test "$hardcode_action_GCJ" = relink; then
19011  # Fast installation is not supported
19012  enable_fast_install=no
19013elif test "$shlibpath_overrides_runpath" = yes ||
19014     test "$enable_shared" = no; then
19015  # Fast installation is not necessary
19016  enable_fast_install=needless
19017fi
19018
19019
19020# The else clause should only fire when bootstrapping the
19021# libtool distribution, otherwise you forgot to ship ltmain.sh
19022# with your package, and you will get complaints that there are
19023# no rules to generate ltmain.sh.
19024if test -f "$ltmain"; then
19025  # See if we are running on zsh, and set the options which allow our commands through
19026  # without removal of \ escapes.
19027  if test -n "${ZSH_VERSION+set}" ; then
19028    setopt NO_GLOB_SUBST
19029  fi
19030  # Now quote all the things that may contain metacharacters while being
19031  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19032  # variables and quote the copies for generation of the libtool script.
19033  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19034    SED SHELL STRIP \
19035    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19036    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19037    deplibs_check_method reload_flag reload_cmds need_locks \
19038    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19039    lt_cv_sys_global_symbol_to_c_name_address \
19040    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19041    old_postinstall_cmds old_postuninstall_cmds \
19042    compiler_GCJ \
19043    CC_GCJ \
19044    LD_GCJ \
19045    lt_prog_compiler_wl_GCJ \
19046    lt_prog_compiler_pic_GCJ \
19047    lt_prog_compiler_static_GCJ \
19048    lt_prog_compiler_no_builtin_flag_GCJ \
19049    export_dynamic_flag_spec_GCJ \
19050    thread_safe_flag_spec_GCJ \
19051    whole_archive_flag_spec_GCJ \
19052    enable_shared_with_static_runtimes_GCJ \
19053    old_archive_cmds_GCJ \
19054    old_archive_from_new_cmds_GCJ \
19055    predep_objects_GCJ \
19056    postdep_objects_GCJ \
19057    predeps_GCJ \
19058    postdeps_GCJ \
19059    compiler_lib_search_path_GCJ \
19060    compiler_lib_search_dirs_GCJ \
19061    archive_cmds_GCJ \
19062    archive_expsym_cmds_GCJ \
19063    postinstall_cmds_GCJ \
19064    postuninstall_cmds_GCJ \
19065    old_archive_from_expsyms_cmds_GCJ \
19066    allow_undefined_flag_GCJ \
19067    no_undefined_flag_GCJ \
19068    export_symbols_cmds_GCJ \
19069    hardcode_libdir_flag_spec_GCJ \
19070    hardcode_libdir_flag_spec_ld_GCJ \
19071    hardcode_libdir_separator_GCJ \
19072    hardcode_automatic_GCJ \
19073    module_cmds_GCJ \
19074    module_expsym_cmds_GCJ \
19075    lt_cv_prog_compiler_c_o_GCJ \
19076    fix_srcfile_path_GCJ \
19077    exclude_expsyms_GCJ \
19078    include_expsyms_GCJ; do
19079
19080    case $var in
19081    old_archive_cmds_GCJ | \
19082    old_archive_from_new_cmds_GCJ | \
19083    archive_cmds_GCJ | \
19084    archive_expsym_cmds_GCJ | \
19085    module_cmds_GCJ | \
19086    module_expsym_cmds_GCJ | \
19087    old_archive_from_expsyms_cmds_GCJ | \
19088    export_symbols_cmds_GCJ | \
19089    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19090    postinstall_cmds | postuninstall_cmds | \
19091    old_postinstall_cmds | old_postuninstall_cmds | \
19092    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19093      # Double-quote double-evaled strings.
19094      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19095      ;;
19096    *)
19097      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19098      ;;
19099    esac
19100  done
19101
19102  case $lt_echo in
19103  *'\$0 --fallback-echo"')
19104    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19105    ;;
19106  esac
19107
19108cfgfile="$ofile"
19109
19110  cat <<__EOF__ >> "$cfgfile"
19111# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19112
19113# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19114
19115# Shell to use when invoking shell scripts.
19116SHELL=$lt_SHELL
19117
19118# Whether or not to build shared libraries.
19119build_libtool_libs=$enable_shared
19120
19121# Whether or not to build static libraries.
19122build_old_libs=$enable_static
19123
19124# Whether or not to add -lc for building shared libraries.
19125build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19126
19127# Whether or not to disallow shared libs when runtime libs are static
19128allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19129
19130# Whether or not to optimize for fast installation.
19131fast_install=$enable_fast_install
19132
19133# The host system.
19134host_alias=$host_alias
19135host=$host
19136host_os=$host_os
19137
19138# The build system.
19139build_alias=$build_alias
19140build=$build
19141build_os=$build_os
19142
19143# An echo program that does not interpret backslashes.
19144echo=$lt_echo
19145
19146# The archiver.
19147AR=$lt_AR
19148AR_FLAGS=$lt_AR_FLAGS
19149
19150# A C compiler.
19151LTCC=$lt_LTCC
19152
19153# LTCC compiler flags.
19154LTCFLAGS=$lt_LTCFLAGS
19155
19156# A language-specific compiler.
19157CC=$lt_compiler_GCJ
19158
19159# Is the compiler the GNU C compiler?
19160with_gcc=$GCC_GCJ
19161
19162# An ERE matcher.
19163EGREP=$lt_EGREP
19164
19165# The linker used to build libraries.
19166LD=$lt_LD_GCJ
19167
19168# Whether we need hard or soft links.
19169LN_S=$lt_LN_S
19170
19171# A BSD-compatible nm program.
19172NM=$lt_NM
19173
19174# A symbol stripping program
19175STRIP=$lt_STRIP
19176
19177# Used to examine libraries when file_magic_cmd begins "file"
19178MAGIC_CMD=$MAGIC_CMD
19179
19180# Used on cygwin: DLL creation program.
19181DLLTOOL="$DLLTOOL"
19182
19183# Used on cygwin: object dumper.
19184OBJDUMP="$OBJDUMP"
19185
19186# Used on cygwin: assembler.
19187AS="$AS"
19188
19189# The name of the directory that contains temporary libtool files.
19190objdir=$objdir
19191
19192# How to create reloadable object files.
19193reload_flag=$lt_reload_flag
19194reload_cmds=$lt_reload_cmds
19195
19196# How to pass a linker flag through the compiler.
19197wl=$lt_lt_prog_compiler_wl_GCJ
19198
19199# Object file suffix (normally "o").
19200objext="$ac_objext"
19201
19202# Old archive suffix (normally "a").
19203libext="$libext"
19204
19205# Shared library suffix (normally ".so").
19206shrext_cmds='$shrext_cmds'
19207
19208# Executable file suffix (normally "").
19209exeext="$exeext"
19210
19211# Additional compiler flags for building library objects.
19212pic_flag=$lt_lt_prog_compiler_pic_GCJ
19213pic_mode=$pic_mode
19214
19215# What is the maximum length of a command?
19216max_cmd_len=$lt_cv_sys_max_cmd_len
19217
19218# Does compiler simultaneously support -c and -o options?
19219compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19220
19221# Must we lock files when doing compilation?
19222need_locks=$lt_need_locks
19223
19224# Do we need the lib prefix for modules?
19225need_lib_prefix=$need_lib_prefix
19226
19227# Do we need a version for libraries?
19228need_version=$need_version
19229
19230# Whether dlopen is supported.
19231dlopen_support=$enable_dlopen
19232
19233# Whether dlopen of programs is supported.
19234dlopen_self=$enable_dlopen_self
19235
19236# Whether dlopen of statically linked programs is supported.
19237dlopen_self_static=$enable_dlopen_self_static
19238
19239# Compiler flag to prevent dynamic linking.
19240link_static_flag=$lt_lt_prog_compiler_static_GCJ
19241
19242# Compiler flag to turn off builtin functions.
19243no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19244
19245# Compiler flag to allow reflexive dlopens.
19246export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19247
19248# Compiler flag to generate shared objects directly from archives.
19249whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19250
19251# Compiler flag to generate thread-safe objects.
19252thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19253
19254# Library versioning type.
19255version_type=$version_type
19256
19257# Format of library name prefix.
19258libname_spec=$lt_libname_spec
19259
19260# List of archive names.  First name is the real one, the rest are links.
19261# The last name is the one that the linker finds with -lNAME.
19262library_names_spec=$lt_library_names_spec
19263
19264# The coded name of the library, if different from the real name.
19265soname_spec=$lt_soname_spec
19266
19267# Commands used to build and install an old-style archive.
19268RANLIB=$lt_RANLIB
19269old_archive_cmds=$lt_old_archive_cmds_GCJ
19270old_postinstall_cmds=$lt_old_postinstall_cmds
19271old_postuninstall_cmds=$lt_old_postuninstall_cmds
19272
19273# Create an old-style archive from a shared archive.
19274old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19275
19276# Create a temporary old-style archive to link instead of a shared archive.
19277old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19278
19279# Commands used to build and install a shared archive.
19280archive_cmds=$lt_archive_cmds_GCJ
19281archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19282postinstall_cmds=$lt_postinstall_cmds
19283postuninstall_cmds=$lt_postuninstall_cmds
19284
19285# Commands used to build a loadable module (assumed same as above if empty)
19286module_cmds=$lt_module_cmds_GCJ
19287module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19288
19289# Commands to strip libraries.
19290old_striplib=$lt_old_striplib
19291striplib=$lt_striplib
19292
19293# Dependencies to place before the objects being linked to create a
19294# shared library.
19295predep_objects=$lt_predep_objects_GCJ
19296
19297# Dependencies to place after the objects being linked to create a
19298# shared library.
19299postdep_objects=$lt_postdep_objects_GCJ
19300
19301# Dependencies to place before the objects being linked to create a
19302# shared library.
19303predeps=$lt_predeps_GCJ
19304
19305# Dependencies to place after the objects being linked to create a
19306# shared library.
19307postdeps=$lt_postdeps_GCJ
19308
19309# The directories searched by this compiler when creating a shared
19310# library
19311compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19312
19313# The library search path used internally by the compiler when linking
19314# a shared library.
19315compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19316
19317# Method to check whether dependent libraries are shared objects.
19318deplibs_check_method=$lt_deplibs_check_method
19319
19320# Command to use when deplibs_check_method == file_magic.
19321file_magic_cmd=$lt_file_magic_cmd
19322
19323# Flag that allows shared libraries with undefined symbols to be built.
19324allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19325
19326# Flag that forces no undefined symbols.
19327no_undefined_flag=$lt_no_undefined_flag_GCJ
19328
19329# Commands used to finish a libtool library installation in a directory.
19330finish_cmds=$lt_finish_cmds
19331
19332# Same as above, but a single script fragment to be evaled but not shown.
19333finish_eval=$lt_finish_eval
19334
19335# Take the output of nm and produce a listing of raw symbols and C names.
19336global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19337
19338# Transform the output of nm in a proper C declaration
19339global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19340
19341# Transform the output of nm in a C name address pair
19342global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19343
19344# This is the shared library runtime path variable.
19345runpath_var=$runpath_var
19346
19347# This is the shared library path variable.
19348shlibpath_var=$shlibpath_var
19349
19350# Is shlibpath searched before the hard-coded library search path?
19351shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19352
19353# How to hardcode a shared library path into an executable.
19354hardcode_action=$hardcode_action_GCJ
19355
19356# Whether we should hardcode library paths into libraries.
19357hardcode_into_libs=$hardcode_into_libs
19358
19359# Flag to hardcode \$libdir into a binary during linking.
19360# This must work even if \$libdir does not exist.
19361hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19362
19363# If ld is used when linking, flag to hardcode \$libdir into
19364# a binary during linking. This must work even if \$libdir does
19365# not exist.
19366hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19367
19368# Whether we need a single -rpath flag with a separated argument.
19369hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19370
19371# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19372# resulting binary.
19373hardcode_direct=$hardcode_direct_GCJ
19374
19375# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19376# resulting binary.
19377hardcode_minus_L=$hardcode_minus_L_GCJ
19378
19379# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19380# the resulting binary.
19381hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19382
19383# Set to yes if building a shared library automatically hardcodes DIR into the library
19384# and all subsequent libraries and executables linked against it.
19385hardcode_automatic=$hardcode_automatic_GCJ
19386
19387# Variables whose values should be saved in libtool wrapper scripts and
19388# restored at relink time.
19389variables_saved_for_relink="$variables_saved_for_relink"
19390
19391# Whether libtool must link a program against all its dependency libraries.
19392link_all_deplibs=$link_all_deplibs_GCJ
19393
19394# Compile-time system search path for libraries
19395sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19396
19397# Run-time system search path for libraries
19398sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19399
19400# Fix the shell variable \$srcfile for the compiler.
19401fix_srcfile_path=$lt_fix_srcfile_path
19402
19403# Set to yes if exported symbols are required.
19404always_export_symbols=$always_export_symbols_GCJ
19405
19406# The commands to list exported symbols.
19407export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19408
19409# The commands to extract the exported symbol list from a shared archive.
19410extract_expsyms_cmds=$lt_extract_expsyms_cmds
19411
19412# Symbols that should not be listed in the preloaded symbols.
19413exclude_expsyms=$lt_exclude_expsyms_GCJ
19414
19415# Symbols that must always be exported.
19416include_expsyms=$lt_include_expsyms_GCJ
19417
19418# ### END LIBTOOL TAG CONFIG: $tagname
19419
19420__EOF__
19421
19422
19423else
19424  # If there is no Makefile yet, we rely on a make rule to execute
19425  # `config.status --recheck' to rerun these tests and create the
19426  # libtool script then.
19427  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19428  if test -f "$ltmain_in"; then
19429    test -f Makefile && make "$ltmain"
19430  fi
19431fi
19432
19433
19434ac_ext=c
19435ac_cpp='$CPP $CPPFLAGS'
19436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19438ac_compiler_gnu=$ac_cv_c_compiler_gnu
19439
19440CC="$lt_save_CC"
19441
19442	else
19443	  tagname=""
19444	fi
19445	;;
19446
19447      RC)
19448
19449
19450# Source file extension for RC test sources.
19451ac_ext=rc
19452
19453# Object file extension for compiled RC test sources.
19454objext=o
19455objext_RC=$objext
19456
19457# Code to be used in simple compile tests
19458lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19459
19460# Code to be used in simple link tests
19461lt_simple_link_test_code="$lt_simple_compile_test_code"
19462
19463# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19464
19465# If no C compiler was specified, use CC.
19466LTCC=${LTCC-"$CC"}
19467
19468# If no C compiler flags were specified, use CFLAGS.
19469LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19470
19471# Allow CC to be a program name with arguments.
19472compiler=$CC
19473
19474
19475# save warnings/boilerplate of simple test code
19476ac_outfile=conftest.$ac_objext
19477echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19478eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19479_lt_compiler_boilerplate=`cat conftest.err`
19480$rm conftest*
19481
19482ac_outfile=conftest.$ac_objext
19483echo "$lt_simple_link_test_code" >conftest.$ac_ext
19484eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19485_lt_linker_boilerplate=`cat conftest.err`
19486$rm -r conftest*
19487
19488
19489# Allow CC to be a program name with arguments.
19490lt_save_CC="$CC"
19491CC=${RC-"windres"}
19492compiler=$CC
19493compiler_RC=$CC
19494for cc_temp in $compiler""; do
19495  case $cc_temp in
19496    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19497    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19498    \-*) ;;
19499    *) break;;
19500  esac
19501done
19502cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19503
19504lt_cv_prog_compiler_c_o_RC=yes
19505
19506# The else clause should only fire when bootstrapping the
19507# libtool distribution, otherwise you forgot to ship ltmain.sh
19508# with your package, and you will get complaints that there are
19509# no rules to generate ltmain.sh.
19510if test -f "$ltmain"; then
19511  # See if we are running on zsh, and set the options which allow our commands through
19512  # without removal of \ escapes.
19513  if test -n "${ZSH_VERSION+set}" ; then
19514    setopt NO_GLOB_SUBST
19515  fi
19516  # Now quote all the things that may contain metacharacters while being
19517  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19518  # variables and quote the copies for generation of the libtool script.
19519  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19520    SED SHELL STRIP \
19521    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19522    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19523    deplibs_check_method reload_flag reload_cmds need_locks \
19524    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19525    lt_cv_sys_global_symbol_to_c_name_address \
19526    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19527    old_postinstall_cmds old_postuninstall_cmds \
19528    compiler_RC \
19529    CC_RC \
19530    LD_RC \
19531    lt_prog_compiler_wl_RC \
19532    lt_prog_compiler_pic_RC \
19533    lt_prog_compiler_static_RC \
19534    lt_prog_compiler_no_builtin_flag_RC \
19535    export_dynamic_flag_spec_RC \
19536    thread_safe_flag_spec_RC \
19537    whole_archive_flag_spec_RC \
19538    enable_shared_with_static_runtimes_RC \
19539    old_archive_cmds_RC \
19540    old_archive_from_new_cmds_RC \
19541    predep_objects_RC \
19542    postdep_objects_RC \
19543    predeps_RC \
19544    postdeps_RC \
19545    compiler_lib_search_path_RC \
19546    compiler_lib_search_dirs_RC \
19547    archive_cmds_RC \
19548    archive_expsym_cmds_RC \
19549    postinstall_cmds_RC \
19550    postuninstall_cmds_RC \
19551    old_archive_from_expsyms_cmds_RC \
19552    allow_undefined_flag_RC \
19553    no_undefined_flag_RC \
19554    export_symbols_cmds_RC \
19555    hardcode_libdir_flag_spec_RC \
19556    hardcode_libdir_flag_spec_ld_RC \
19557    hardcode_libdir_separator_RC \
19558    hardcode_automatic_RC \
19559    module_cmds_RC \
19560    module_expsym_cmds_RC \
19561    lt_cv_prog_compiler_c_o_RC \
19562    fix_srcfile_path_RC \
19563    exclude_expsyms_RC \
19564    include_expsyms_RC; do
19565
19566    case $var in
19567    old_archive_cmds_RC | \
19568    old_archive_from_new_cmds_RC | \
19569    archive_cmds_RC | \
19570    archive_expsym_cmds_RC | \
19571    module_cmds_RC | \
19572    module_expsym_cmds_RC | \
19573    old_archive_from_expsyms_cmds_RC | \
19574    export_symbols_cmds_RC | \
19575    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19576    postinstall_cmds | postuninstall_cmds | \
19577    old_postinstall_cmds | old_postuninstall_cmds | \
19578    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19579      # Double-quote double-evaled strings.
19580      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19581      ;;
19582    *)
19583      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19584      ;;
19585    esac
19586  done
19587
19588  case $lt_echo in
19589  *'\$0 --fallback-echo"')
19590    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19591    ;;
19592  esac
19593
19594cfgfile="$ofile"
19595
19596  cat <<__EOF__ >> "$cfgfile"
19597# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19598
19599# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19600
19601# Shell to use when invoking shell scripts.
19602SHELL=$lt_SHELL
19603
19604# Whether or not to build shared libraries.
19605build_libtool_libs=$enable_shared
19606
19607# Whether or not to build static libraries.
19608build_old_libs=$enable_static
19609
19610# Whether or not to add -lc for building shared libraries.
19611build_libtool_need_lc=$archive_cmds_need_lc_RC
19612
19613# Whether or not to disallow shared libs when runtime libs are static
19614allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19615
19616# Whether or not to optimize for fast installation.
19617fast_install=$enable_fast_install
19618
19619# The host system.
19620host_alias=$host_alias
19621host=$host
19622host_os=$host_os
19623
19624# The build system.
19625build_alias=$build_alias
19626build=$build
19627build_os=$build_os
19628
19629# An echo program that does not interpret backslashes.
19630echo=$lt_echo
19631
19632# The archiver.
19633AR=$lt_AR
19634AR_FLAGS=$lt_AR_FLAGS
19635
19636# A C compiler.
19637LTCC=$lt_LTCC
19638
19639# LTCC compiler flags.
19640LTCFLAGS=$lt_LTCFLAGS
19641
19642# A language-specific compiler.
19643CC=$lt_compiler_RC
19644
19645# Is the compiler the GNU C compiler?
19646with_gcc=$GCC_RC
19647
19648# An ERE matcher.
19649EGREP=$lt_EGREP
19650
19651# The linker used to build libraries.
19652LD=$lt_LD_RC
19653
19654# Whether we need hard or soft links.
19655LN_S=$lt_LN_S
19656
19657# A BSD-compatible nm program.
19658NM=$lt_NM
19659
19660# A symbol stripping program
19661STRIP=$lt_STRIP
19662
19663# Used to examine libraries when file_magic_cmd begins "file"
19664MAGIC_CMD=$MAGIC_CMD
19665
19666# Used on cygwin: DLL creation program.
19667DLLTOOL="$DLLTOOL"
19668
19669# Used on cygwin: object dumper.
19670OBJDUMP="$OBJDUMP"
19671
19672# Used on cygwin: assembler.
19673AS="$AS"
19674
19675# The name of the directory that contains temporary libtool files.
19676objdir=$objdir
19677
19678# How to create reloadable object files.
19679reload_flag=$lt_reload_flag
19680reload_cmds=$lt_reload_cmds
19681
19682# How to pass a linker flag through the compiler.
19683wl=$lt_lt_prog_compiler_wl_RC
19684
19685# Object file suffix (normally "o").
19686objext="$ac_objext"
19687
19688# Old archive suffix (normally "a").
19689libext="$libext"
19690
19691# Shared library suffix (normally ".so").
19692shrext_cmds='$shrext_cmds'
19693
19694# Executable file suffix (normally "").
19695exeext="$exeext"
19696
19697# Additional compiler flags for building library objects.
19698pic_flag=$lt_lt_prog_compiler_pic_RC
19699pic_mode=$pic_mode
19700
19701# What is the maximum length of a command?
19702max_cmd_len=$lt_cv_sys_max_cmd_len
19703
19704# Does compiler simultaneously support -c and -o options?
19705compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19706
19707# Must we lock files when doing compilation?
19708need_locks=$lt_need_locks
19709
19710# Do we need the lib prefix for modules?
19711need_lib_prefix=$need_lib_prefix
19712
19713# Do we need a version for libraries?
19714need_version=$need_version
19715
19716# Whether dlopen is supported.
19717dlopen_support=$enable_dlopen
19718
19719# Whether dlopen of programs is supported.
19720dlopen_self=$enable_dlopen_self
19721
19722# Whether dlopen of statically linked programs is supported.
19723dlopen_self_static=$enable_dlopen_self_static
19724
19725# Compiler flag to prevent dynamic linking.
19726link_static_flag=$lt_lt_prog_compiler_static_RC
19727
19728# Compiler flag to turn off builtin functions.
19729no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19730
19731# Compiler flag to allow reflexive dlopens.
19732export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19733
19734# Compiler flag to generate shared objects directly from archives.
19735whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19736
19737# Compiler flag to generate thread-safe objects.
19738thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19739
19740# Library versioning type.
19741version_type=$version_type
19742
19743# Format of library name prefix.
19744libname_spec=$lt_libname_spec
19745
19746# List of archive names.  First name is the real one, the rest are links.
19747# The last name is the one that the linker finds with -lNAME.
19748library_names_spec=$lt_library_names_spec
19749
19750# The coded name of the library, if different from the real name.
19751soname_spec=$lt_soname_spec
19752
19753# Commands used to build and install an old-style archive.
19754RANLIB=$lt_RANLIB
19755old_archive_cmds=$lt_old_archive_cmds_RC
19756old_postinstall_cmds=$lt_old_postinstall_cmds
19757old_postuninstall_cmds=$lt_old_postuninstall_cmds
19758
19759# Create an old-style archive from a shared archive.
19760old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19761
19762# Create a temporary old-style archive to link instead of a shared archive.
19763old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19764
19765# Commands used to build and install a shared archive.
19766archive_cmds=$lt_archive_cmds_RC
19767archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19768postinstall_cmds=$lt_postinstall_cmds
19769postuninstall_cmds=$lt_postuninstall_cmds
19770
19771# Commands used to build a loadable module (assumed same as above if empty)
19772module_cmds=$lt_module_cmds_RC
19773module_expsym_cmds=$lt_module_expsym_cmds_RC
19774
19775# Commands to strip libraries.
19776old_striplib=$lt_old_striplib
19777striplib=$lt_striplib
19778
19779# Dependencies to place before the objects being linked to create a
19780# shared library.
19781predep_objects=$lt_predep_objects_RC
19782
19783# Dependencies to place after the objects being linked to create a
19784# shared library.
19785postdep_objects=$lt_postdep_objects_RC
19786
19787# Dependencies to place before the objects being linked to create a
19788# shared library.
19789predeps=$lt_predeps_RC
19790
19791# Dependencies to place after the objects being linked to create a
19792# shared library.
19793postdeps=$lt_postdeps_RC
19794
19795# The directories searched by this compiler when creating a shared
19796# library
19797compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19798
19799# The library search path used internally by the compiler when linking
19800# a shared library.
19801compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19802
19803# Method to check whether dependent libraries are shared objects.
19804deplibs_check_method=$lt_deplibs_check_method
19805
19806# Command to use when deplibs_check_method == file_magic.
19807file_magic_cmd=$lt_file_magic_cmd
19808
19809# Flag that allows shared libraries with undefined symbols to be built.
19810allow_undefined_flag=$lt_allow_undefined_flag_RC
19811
19812# Flag that forces no undefined symbols.
19813no_undefined_flag=$lt_no_undefined_flag_RC
19814
19815# Commands used to finish a libtool library installation in a directory.
19816finish_cmds=$lt_finish_cmds
19817
19818# Same as above, but a single script fragment to be evaled but not shown.
19819finish_eval=$lt_finish_eval
19820
19821# Take the output of nm and produce a listing of raw symbols and C names.
19822global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19823
19824# Transform the output of nm in a proper C declaration
19825global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19826
19827# Transform the output of nm in a C name address pair
19828global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19829
19830# This is the shared library runtime path variable.
19831runpath_var=$runpath_var
19832
19833# This is the shared library path variable.
19834shlibpath_var=$shlibpath_var
19835
19836# Is shlibpath searched before the hard-coded library search path?
19837shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19838
19839# How to hardcode a shared library path into an executable.
19840hardcode_action=$hardcode_action_RC
19841
19842# Whether we should hardcode library paths into libraries.
19843hardcode_into_libs=$hardcode_into_libs
19844
19845# Flag to hardcode \$libdir into a binary during linking.
19846# This must work even if \$libdir does not exist.
19847hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19848
19849# If ld is used when linking, flag to hardcode \$libdir into
19850# a binary during linking. This must work even if \$libdir does
19851# not exist.
19852hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19853
19854# Whether we need a single -rpath flag with a separated argument.
19855hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19856
19857# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19858# resulting binary.
19859hardcode_direct=$hardcode_direct_RC
19860
19861# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19862# resulting binary.
19863hardcode_minus_L=$hardcode_minus_L_RC
19864
19865# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19866# the resulting binary.
19867hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19868
19869# Set to yes if building a shared library automatically hardcodes DIR into the library
19870# and all subsequent libraries and executables linked against it.
19871hardcode_automatic=$hardcode_automatic_RC
19872
19873# Variables whose values should be saved in libtool wrapper scripts and
19874# restored at relink time.
19875variables_saved_for_relink="$variables_saved_for_relink"
19876
19877# Whether libtool must link a program against all its dependency libraries.
19878link_all_deplibs=$link_all_deplibs_RC
19879
19880# Compile-time system search path for libraries
19881sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19882
19883# Run-time system search path for libraries
19884sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19885
19886# Fix the shell variable \$srcfile for the compiler.
19887fix_srcfile_path=$lt_fix_srcfile_path
19888
19889# Set to yes if exported symbols are required.
19890always_export_symbols=$always_export_symbols_RC
19891
19892# The commands to list exported symbols.
19893export_symbols_cmds=$lt_export_symbols_cmds_RC
19894
19895# The commands to extract the exported symbol list from a shared archive.
19896extract_expsyms_cmds=$lt_extract_expsyms_cmds
19897
19898# Symbols that should not be listed in the preloaded symbols.
19899exclude_expsyms=$lt_exclude_expsyms_RC
19900
19901# Symbols that must always be exported.
19902include_expsyms=$lt_include_expsyms_RC
19903
19904# ### END LIBTOOL TAG CONFIG: $tagname
19905
19906__EOF__
19907
19908
19909else
19910  # If there is no Makefile yet, we rely on a make rule to execute
19911  # `config.status --recheck' to rerun these tests and create the
19912  # libtool script then.
19913  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19914  if test -f "$ltmain_in"; then
19915    test -f Makefile && make "$ltmain"
19916  fi
19917fi
19918
19919
19920ac_ext=c
19921ac_cpp='$CPP $CPPFLAGS'
19922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19924ac_compiler_gnu=$ac_cv_c_compiler_gnu
19925
19926CC="$lt_save_CC"
19927
19928	;;
19929
19930      *)
19931	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19932$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19933   { (exit 1); exit 1; }; }
19934	;;
19935      esac
19936
19937      # Append the new tag name to the list of available tags.
19938      if test -n "$tagname" ; then
19939      available_tags="$available_tags $tagname"
19940    fi
19941    fi
19942  done
19943  IFS="$lt_save_ifs"
19944
19945  # Now substitute the updated list of available tags.
19946  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19947    mv "${ofile}T" "$ofile"
19948    chmod +x "$ofile"
19949  else
19950    rm -f "${ofile}T"
19951    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19952$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19953   { (exit 1); exit 1; }; }
19954  fi
19955fi
19956
19957
19958
19959# This can be used to rebuild libtool when needed
19960LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19961
19962# Always use our own libtool.
19963LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19964
19965# Prevent multiple expansion
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986ac_ext=c
19987ac_cpp='$CPP $CPPFLAGS'
19988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19990ac_compiler_gnu=$ac_cv_c_compiler_gnu
19991if test -n "$ac_tool_prefix"; then
19992  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19993set dummy ${ac_tool_prefix}gcc; ac_word=$2
19994{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19995$as_echo_n "checking for $ac_word... " >&6; }
19996if test "${ac_cv_prog_CC+set}" = set; then
19997  $as_echo_n "(cached) " >&6
19998else
19999  if test -n "$CC"; then
20000  ac_cv_prog_CC="$CC" # Let the user override the test.
20001else
20002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20003for as_dir in $PATH
20004do
20005  IFS=$as_save_IFS
20006  test -z "$as_dir" && as_dir=.
20007  for ac_exec_ext in '' $ac_executable_extensions; do
20008  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20009    ac_cv_prog_CC="${ac_tool_prefix}gcc"
20010    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20011    break 2
20012  fi
20013done
20014done
20015IFS=$as_save_IFS
20016
20017fi
20018fi
20019CC=$ac_cv_prog_CC
20020if test -n "$CC"; then
20021  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20022$as_echo "$CC" >&6; }
20023else
20024  { $as_echo "$as_me:$LINENO: result: no" >&5
20025$as_echo "no" >&6; }
20026fi
20027
20028
20029fi
20030if test -z "$ac_cv_prog_CC"; then
20031  ac_ct_CC=$CC
20032  # Extract the first word of "gcc", so it can be a program name with args.
20033set dummy gcc; ac_word=$2
20034{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20035$as_echo_n "checking for $ac_word... " >&6; }
20036if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20037  $as_echo_n "(cached) " >&6
20038else
20039  if test -n "$ac_ct_CC"; then
20040  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20041else
20042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20043for as_dir in $PATH
20044do
20045  IFS=$as_save_IFS
20046  test -z "$as_dir" && as_dir=.
20047  for ac_exec_ext in '' $ac_executable_extensions; do
20048  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20049    ac_cv_prog_ac_ct_CC="gcc"
20050    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20051    break 2
20052  fi
20053done
20054done
20055IFS=$as_save_IFS
20056
20057fi
20058fi
20059ac_ct_CC=$ac_cv_prog_ac_ct_CC
20060if test -n "$ac_ct_CC"; then
20061  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20062$as_echo "$ac_ct_CC" >&6; }
20063else
20064  { $as_echo "$as_me:$LINENO: result: no" >&5
20065$as_echo "no" >&6; }
20066fi
20067
20068  if test "x$ac_ct_CC" = x; then
20069    CC=""
20070  else
20071    case $cross_compiling:$ac_tool_warned in
20072yes:)
20073{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20075ac_tool_warned=yes ;;
20076esac
20077    CC=$ac_ct_CC
20078  fi
20079else
20080  CC="$ac_cv_prog_CC"
20081fi
20082
20083if test -z "$CC"; then
20084          if test -n "$ac_tool_prefix"; then
20085    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20086set dummy ${ac_tool_prefix}cc; ac_word=$2
20087{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20088$as_echo_n "checking for $ac_word... " >&6; }
20089if test "${ac_cv_prog_CC+set}" = set; then
20090  $as_echo_n "(cached) " >&6
20091else
20092  if test -n "$CC"; then
20093  ac_cv_prog_CC="$CC" # Let the user override the test.
20094else
20095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20096for as_dir in $PATH
20097do
20098  IFS=$as_save_IFS
20099  test -z "$as_dir" && as_dir=.
20100  for ac_exec_ext in '' $ac_executable_extensions; do
20101  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20102    ac_cv_prog_CC="${ac_tool_prefix}cc"
20103    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20104    break 2
20105  fi
20106done
20107done
20108IFS=$as_save_IFS
20109
20110fi
20111fi
20112CC=$ac_cv_prog_CC
20113if test -n "$CC"; then
20114  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20115$as_echo "$CC" >&6; }
20116else
20117  { $as_echo "$as_me:$LINENO: result: no" >&5
20118$as_echo "no" >&6; }
20119fi
20120
20121
20122  fi
20123fi
20124if test -z "$CC"; then
20125  # Extract the first word of "cc", so it can be a program name with args.
20126set dummy cc; ac_word=$2
20127{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20128$as_echo_n "checking for $ac_word... " >&6; }
20129if test "${ac_cv_prog_CC+set}" = set; then
20130  $as_echo_n "(cached) " >&6
20131else
20132  if test -n "$CC"; then
20133  ac_cv_prog_CC="$CC" # Let the user override the test.
20134else
20135  ac_prog_rejected=no
20136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20137for as_dir in $PATH
20138do
20139  IFS=$as_save_IFS
20140  test -z "$as_dir" && as_dir=.
20141  for ac_exec_ext in '' $ac_executable_extensions; do
20142  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20143    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20144       ac_prog_rejected=yes
20145       continue
20146     fi
20147    ac_cv_prog_CC="cc"
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
20155if test $ac_prog_rejected = yes; then
20156  # We found a bogon in the path, so make sure we never use it.
20157  set dummy $ac_cv_prog_CC
20158  shift
20159  if test $# != 0; then
20160    # We chose a different compiler from the bogus one.
20161    # However, it has the same basename, so the bogon will be chosen
20162    # first if we set CC to just the basename; use the full file name.
20163    shift
20164    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20165  fi
20166fi
20167fi
20168fi
20169CC=$ac_cv_prog_CC
20170if test -n "$CC"; then
20171  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20172$as_echo "$CC" >&6; }
20173else
20174  { $as_echo "$as_me:$LINENO: result: no" >&5
20175$as_echo "no" >&6; }
20176fi
20177
20178
20179fi
20180if test -z "$CC"; then
20181  if test -n "$ac_tool_prefix"; then
20182  for ac_prog in cl.exe
20183  do
20184    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20185set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20186{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20187$as_echo_n "checking for $ac_word... " >&6; }
20188if test "${ac_cv_prog_CC+set}" = set; then
20189  $as_echo_n "(cached) " >&6
20190else
20191  if test -n "$CC"; then
20192  ac_cv_prog_CC="$CC" # Let the user override the test.
20193else
20194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20195for as_dir in $PATH
20196do
20197  IFS=$as_save_IFS
20198  test -z "$as_dir" && as_dir=.
20199  for ac_exec_ext in '' $ac_executable_extensions; do
20200  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20201    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20202    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20203    break 2
20204  fi
20205done
20206done
20207IFS=$as_save_IFS
20208
20209fi
20210fi
20211CC=$ac_cv_prog_CC
20212if test -n "$CC"; then
20213  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20214$as_echo "$CC" >&6; }
20215else
20216  { $as_echo "$as_me:$LINENO: result: no" >&5
20217$as_echo "no" >&6; }
20218fi
20219
20220
20221    test -n "$CC" && break
20222  done
20223fi
20224if test -z "$CC"; then
20225  ac_ct_CC=$CC
20226  for ac_prog in cl.exe
20227do
20228  # Extract the first word of "$ac_prog", so it can be a program name with args.
20229set dummy $ac_prog; ac_word=$2
20230{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20231$as_echo_n "checking for $ac_word... " >&6; }
20232if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20233  $as_echo_n "(cached) " >&6
20234else
20235  if test -n "$ac_ct_CC"; then
20236  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20237else
20238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20239for as_dir in $PATH
20240do
20241  IFS=$as_save_IFS
20242  test -z "$as_dir" && as_dir=.
20243  for ac_exec_ext in '' $ac_executable_extensions; do
20244  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20245    ac_cv_prog_ac_ct_CC="$ac_prog"
20246    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20247    break 2
20248  fi
20249done
20250done
20251IFS=$as_save_IFS
20252
20253fi
20254fi
20255ac_ct_CC=$ac_cv_prog_ac_ct_CC
20256if test -n "$ac_ct_CC"; then
20257  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20258$as_echo "$ac_ct_CC" >&6; }
20259else
20260  { $as_echo "$as_me:$LINENO: result: no" >&5
20261$as_echo "no" >&6; }
20262fi
20263
20264
20265  test -n "$ac_ct_CC" && break
20266done
20267
20268  if test "x$ac_ct_CC" = x; then
20269    CC=""
20270  else
20271    case $cross_compiling:$ac_tool_warned in
20272yes:)
20273{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20275ac_tool_warned=yes ;;
20276esac
20277    CC=$ac_ct_CC
20278  fi
20279fi
20280
20281fi
20282
20283
20284test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20286{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20287See \`config.log' for more details." >&5
20288$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20289See \`config.log' for more details." >&2;}
20290   { (exit 1); exit 1; }; }; }
20291
20292# Provide some information about the compiler.
20293$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20294set X $ac_compile
20295ac_compiler=$2
20296{ (ac_try="$ac_compiler --version >&5"
20297case "(($ac_try" in
20298  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20299  *) ac_try_echo=$ac_try;;
20300esac
20301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20302$as_echo "$ac_try_echo") >&5
20303  (eval "$ac_compiler --version >&5") 2>&5
20304  ac_status=$?
20305  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306  (exit $ac_status); }
20307{ (ac_try="$ac_compiler -v >&5"
20308case "(($ac_try" in
20309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20310  *) ac_try_echo=$ac_try;;
20311esac
20312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20313$as_echo "$ac_try_echo") >&5
20314  (eval "$ac_compiler -v >&5") 2>&5
20315  ac_status=$?
20316  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317  (exit $ac_status); }
20318{ (ac_try="$ac_compiler -V >&5"
20319case "(($ac_try" in
20320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321  *) ac_try_echo=$ac_try;;
20322esac
20323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20324$as_echo "$ac_try_echo") >&5
20325  (eval "$ac_compiler -V >&5") 2>&5
20326  ac_status=$?
20327  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328  (exit $ac_status); }
20329
20330{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20331$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20332if test "${ac_cv_c_compiler_gnu+set}" = set; then
20333  $as_echo_n "(cached) " >&6
20334else
20335  cat >conftest.$ac_ext <<_ACEOF
20336/* confdefs.h.  */
20337_ACEOF
20338cat confdefs.h >>conftest.$ac_ext
20339cat >>conftest.$ac_ext <<_ACEOF
20340/* end confdefs.h.  */
20341
20342int
20343main ()
20344{
20345#ifndef __GNUC__
20346       choke me
20347#endif
20348
20349  ;
20350  return 0;
20351}
20352_ACEOF
20353rm -f conftest.$ac_objext
20354if { (ac_try="$ac_compile"
20355case "(($ac_try" in
20356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20357  *) ac_try_echo=$ac_try;;
20358esac
20359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20360$as_echo "$ac_try_echo") >&5
20361  (eval "$ac_compile") 2>conftest.er1
20362  ac_status=$?
20363  grep -v '^ *+' conftest.er1 >conftest.err
20364  rm -f conftest.er1
20365  cat conftest.err >&5
20366  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367  (exit $ac_status); } && {
20368	 test -z "$ac_c_werror_flag" ||
20369	 test ! -s conftest.err
20370       } && test -s conftest.$ac_objext; then
20371  ac_compiler_gnu=yes
20372else
20373  $as_echo "$as_me: failed program was:" >&5
20374sed 's/^/| /' conftest.$ac_ext >&5
20375
20376	ac_compiler_gnu=no
20377fi
20378
20379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20380ac_cv_c_compiler_gnu=$ac_compiler_gnu
20381
20382fi
20383{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20384$as_echo "$ac_cv_c_compiler_gnu" >&6; }
20385if test $ac_compiler_gnu = yes; then
20386  GCC=yes
20387else
20388  GCC=
20389fi
20390ac_test_CFLAGS=${CFLAGS+set}
20391ac_save_CFLAGS=$CFLAGS
20392{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20393$as_echo_n "checking whether $CC accepts -g... " >&6; }
20394if test "${ac_cv_prog_cc_g+set}" = set; then
20395  $as_echo_n "(cached) " >&6
20396else
20397  ac_save_c_werror_flag=$ac_c_werror_flag
20398   ac_c_werror_flag=yes
20399   ac_cv_prog_cc_g=no
20400   CFLAGS="-g"
20401   cat >conftest.$ac_ext <<_ACEOF
20402/* confdefs.h.  */
20403_ACEOF
20404cat confdefs.h >>conftest.$ac_ext
20405cat >>conftest.$ac_ext <<_ACEOF
20406/* end confdefs.h.  */
20407
20408int
20409main ()
20410{
20411
20412  ;
20413  return 0;
20414}
20415_ACEOF
20416rm -f conftest.$ac_objext
20417if { (ac_try="$ac_compile"
20418case "(($ac_try" in
20419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420  *) ac_try_echo=$ac_try;;
20421esac
20422eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20423$as_echo "$ac_try_echo") >&5
20424  (eval "$ac_compile") 2>conftest.er1
20425  ac_status=$?
20426  grep -v '^ *+' conftest.er1 >conftest.err
20427  rm -f conftest.er1
20428  cat conftest.err >&5
20429  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430  (exit $ac_status); } && {
20431	 test -z "$ac_c_werror_flag" ||
20432	 test ! -s conftest.err
20433       } && test -s conftest.$ac_objext; then
20434  ac_cv_prog_cc_g=yes
20435else
20436  $as_echo "$as_me: failed program was:" >&5
20437sed 's/^/| /' conftest.$ac_ext >&5
20438
20439	CFLAGS=""
20440      cat >conftest.$ac_ext <<_ACEOF
20441/* confdefs.h.  */
20442_ACEOF
20443cat confdefs.h >>conftest.$ac_ext
20444cat >>conftest.$ac_ext <<_ACEOF
20445/* end confdefs.h.  */
20446
20447int
20448main ()
20449{
20450
20451  ;
20452  return 0;
20453}
20454_ACEOF
20455rm -f conftest.$ac_objext
20456if { (ac_try="$ac_compile"
20457case "(($ac_try" in
20458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20459  *) ac_try_echo=$ac_try;;
20460esac
20461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20462$as_echo "$ac_try_echo") >&5
20463  (eval "$ac_compile") 2>conftest.er1
20464  ac_status=$?
20465  grep -v '^ *+' conftest.er1 >conftest.err
20466  rm -f conftest.er1
20467  cat conftest.err >&5
20468  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469  (exit $ac_status); } && {
20470	 test -z "$ac_c_werror_flag" ||
20471	 test ! -s conftest.err
20472       } && test -s conftest.$ac_objext; then
20473  :
20474else
20475  $as_echo "$as_me: failed program was:" >&5
20476sed 's/^/| /' conftest.$ac_ext >&5
20477
20478	ac_c_werror_flag=$ac_save_c_werror_flag
20479	 CFLAGS="-g"
20480	 cat >conftest.$ac_ext <<_ACEOF
20481/* confdefs.h.  */
20482_ACEOF
20483cat confdefs.h >>conftest.$ac_ext
20484cat >>conftest.$ac_ext <<_ACEOF
20485/* end confdefs.h.  */
20486
20487int
20488main ()
20489{
20490
20491  ;
20492  return 0;
20493}
20494_ACEOF
20495rm -f conftest.$ac_objext
20496if { (ac_try="$ac_compile"
20497case "(($ac_try" in
20498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20499  *) ac_try_echo=$ac_try;;
20500esac
20501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20502$as_echo "$ac_try_echo") >&5
20503  (eval "$ac_compile") 2>conftest.er1
20504  ac_status=$?
20505  grep -v '^ *+' conftest.er1 >conftest.err
20506  rm -f conftest.er1
20507  cat conftest.err >&5
20508  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509  (exit $ac_status); } && {
20510	 test -z "$ac_c_werror_flag" ||
20511	 test ! -s conftest.err
20512       } && test -s conftest.$ac_objext; then
20513  ac_cv_prog_cc_g=yes
20514else
20515  $as_echo "$as_me: failed program was:" >&5
20516sed 's/^/| /' conftest.$ac_ext >&5
20517
20518
20519fi
20520
20521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20522fi
20523
20524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20525fi
20526
20527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20528   ac_c_werror_flag=$ac_save_c_werror_flag
20529fi
20530{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20531$as_echo "$ac_cv_prog_cc_g" >&6; }
20532if test "$ac_test_CFLAGS" = set; then
20533  CFLAGS=$ac_save_CFLAGS
20534elif test $ac_cv_prog_cc_g = yes; then
20535  if test "$GCC" = yes; then
20536    CFLAGS="-g -O2"
20537  else
20538    CFLAGS="-g"
20539  fi
20540else
20541  if test "$GCC" = yes; then
20542    CFLAGS="-O2"
20543  else
20544    CFLAGS=
20545  fi
20546fi
20547{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20548$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20549if test "${ac_cv_prog_cc_c89+set}" = set; then
20550  $as_echo_n "(cached) " >&6
20551else
20552  ac_cv_prog_cc_c89=no
20553ac_save_CC=$CC
20554cat >conftest.$ac_ext <<_ACEOF
20555/* confdefs.h.  */
20556_ACEOF
20557cat confdefs.h >>conftest.$ac_ext
20558cat >>conftest.$ac_ext <<_ACEOF
20559/* end confdefs.h.  */
20560#include <stdarg.h>
20561#include <stdio.h>
20562#include <sys/types.h>
20563#include <sys/stat.h>
20564/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20565struct buf { int x; };
20566FILE * (*rcsopen) (struct buf *, struct stat *, int);
20567static char *e (p, i)
20568     char **p;
20569     int i;
20570{
20571  return p[i];
20572}
20573static char *f (char * (*g) (char **, int), char **p, ...)
20574{
20575  char *s;
20576  va_list v;
20577  va_start (v,p);
20578  s = g (p, va_arg (v,int));
20579  va_end (v);
20580  return s;
20581}
20582
20583/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20584   function prototypes and stuff, but not '\xHH' hex character constants.
20585   These don't provoke an error unfortunately, instead are silently treated
20586   as 'x'.  The following induces an error, until -std is added to get
20587   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20588   array size at least.  It's necessary to write '\x00'==0 to get something
20589   that's true only with -std.  */
20590int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20591
20592/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20593   inside strings and character constants.  */
20594#define FOO(x) 'x'
20595int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20596
20597int test (int i, double x);
20598struct s1 {int (*f) (int a);};
20599struct s2 {int (*f) (double a);};
20600int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20601int argc;
20602char **argv;
20603int
20604main ()
20605{
20606return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20607  ;
20608  return 0;
20609}
20610_ACEOF
20611for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20612	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20613do
20614  CC="$ac_save_CC $ac_arg"
20615  rm -f conftest.$ac_objext
20616if { (ac_try="$ac_compile"
20617case "(($ac_try" in
20618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619  *) ac_try_echo=$ac_try;;
20620esac
20621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20622$as_echo "$ac_try_echo") >&5
20623  (eval "$ac_compile") 2>conftest.er1
20624  ac_status=$?
20625  grep -v '^ *+' conftest.er1 >conftest.err
20626  rm -f conftest.er1
20627  cat conftest.err >&5
20628  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629  (exit $ac_status); } && {
20630	 test -z "$ac_c_werror_flag" ||
20631	 test ! -s conftest.err
20632       } && test -s conftest.$ac_objext; then
20633  ac_cv_prog_cc_c89=$ac_arg
20634else
20635  $as_echo "$as_me: failed program was:" >&5
20636sed 's/^/| /' conftest.$ac_ext >&5
20637
20638
20639fi
20640
20641rm -f core conftest.err conftest.$ac_objext
20642  test "x$ac_cv_prog_cc_c89" != "xno" && break
20643done
20644rm -f conftest.$ac_ext
20645CC=$ac_save_CC
20646
20647fi
20648# AC_CACHE_VAL
20649case "x$ac_cv_prog_cc_c89" in
20650  x)
20651    { $as_echo "$as_me:$LINENO: result: none needed" >&5
20652$as_echo "none needed" >&6; } ;;
20653  xno)
20654    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20655$as_echo "unsupported" >&6; } ;;
20656  *)
20657    CC="$CC $ac_cv_prog_cc_c89"
20658    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20659$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20660esac
20661
20662
20663ac_ext=c
20664ac_cpp='$CPP $CPPFLAGS'
20665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20667ac_compiler_gnu=$ac_cv_c_compiler_gnu
20668
20669depcc="$CC"   am_compiler_list=
20670
20671{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20672$as_echo_n "checking dependency style of $depcc... " >&6; }
20673if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20674  $as_echo_n "(cached) " >&6
20675else
20676  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20677  # We make a subdir and do the tests there.  Otherwise we can end up
20678  # making bogus files that we don't know about and never remove.  For
20679  # instance it was reported that on HP-UX the gcc test will end up
20680  # making a dummy file named `D' -- because `-MD' means `put the output
20681  # in D'.
20682  mkdir conftest.dir
20683  # Copy depcomp to subdir because otherwise we won't find it if we're
20684  # using a relative directory.
20685  cp "$am_depcomp" conftest.dir
20686  cd conftest.dir
20687  # We will build objects and dependencies in a subdirectory because
20688  # it helps to detect inapplicable dependency modes.  For instance
20689  # both Tru64's cc and ICC support -MD to output dependencies as a
20690  # side effect of compilation, but ICC will put the dependencies in
20691  # the current directory while Tru64 will put them in the object
20692  # directory.
20693  mkdir sub
20694
20695  am_cv_CC_dependencies_compiler_type=none
20696  if test "$am_compiler_list" = ""; then
20697     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20698  fi
20699  for depmode in $am_compiler_list; do
20700    # Setup a source with many dependencies, because some compilers
20701    # like to wrap large dependency lists on column 80 (with \), and
20702    # we should not choose a depcomp mode which is confused by this.
20703    #
20704    # We need to recreate these files for each test, as the compiler may
20705    # overwrite some of them when testing with obscure command lines.
20706    # This happens at least with the AIX C compiler.
20707    : > sub/conftest.c
20708    for i in 1 2 3 4 5 6; do
20709      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20710      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20711      # Solaris 8's {/usr,}/bin/sh.
20712      touch sub/conftst$i.h
20713    done
20714    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20715
20716    case $depmode in
20717    nosideeffect)
20718      # after this tag, mechanisms are not by side-effect, so they'll
20719      # only be used when explicitly requested
20720      if test "x$enable_dependency_tracking" = xyes; then
20721	continue
20722      else
20723	break
20724      fi
20725      ;;
20726    none) break ;;
20727    esac
20728    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20729    # mode.  It turns out that the SunPro C++ compiler does not properly
20730    # handle `-M -o', and we need to detect this.
20731    if depmode=$depmode \
20732       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20733       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20734       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20735         >/dev/null 2>conftest.err &&
20736       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20737       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20738       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20739       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20740      # icc doesn't choke on unknown options, it will just issue warnings
20741      # or remarks (even with -Werror).  So we grep stderr for any message
20742      # that says an option was ignored or not supported.
20743      # When given -MP, icc 7.0 and 7.1 complain thusly:
20744      #   icc: Command line warning: ignoring option '-M'; no argument required
20745      # The diagnosis changed in icc 8.0:
20746      #   icc: Command line remark: option '-MP' not supported
20747      if (grep 'ignoring option' conftest.err ||
20748          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20749        am_cv_CC_dependencies_compiler_type=$depmode
20750        break
20751      fi
20752    fi
20753  done
20754
20755  cd ..
20756  rm -rf conftest.dir
20757else
20758  am_cv_CC_dependencies_compiler_type=none
20759fi
20760
20761fi
20762{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20763$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20764CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20765
20766 if
20767  test "x$enable_dependency_tracking" != xno \
20768  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20769  am__fastdepCC_TRUE=
20770  am__fastdepCC_FALSE='#'
20771else
20772  am__fastdepCC_TRUE='#'
20773  am__fastdepCC_FALSE=
20774fi
20775
20776
20777
20778
20779
20780
20781
20782# Check whether --with-xorg-module-dir was given.
20783if test "${with_xorg_module_dir+set}" = set; then
20784  withval=$with_xorg_module_dir;  moduledir="$withval"
20785else
20786   moduledir="$libdir/xorg/modules"
20787fi
20788
20789
20790
20791
20792# Checks for extensions
20793
20794	SAVE_CFLAGS="$CFLAGS"
20795	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20796	cat >conftest.$ac_ext <<_ACEOF
20797/* confdefs.h.  */
20798_ACEOF
20799cat confdefs.h >>conftest.$ac_ext
20800cat >>conftest.$ac_ext <<_ACEOF
20801/* end confdefs.h.  */
20802
20803#include "xorg-server.h"
20804#if !defined RANDR
20805#error RANDR not defined
20806#endif
20807
20808int
20809main ()
20810{
20811
20812  ;
20813  return 0;
20814}
20815_ACEOF
20816rm -f conftest.$ac_objext
20817if { (ac_try="$ac_compile"
20818case "(($ac_try" in
20819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820  *) ac_try_echo=$ac_try;;
20821esac
20822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20823$as_echo "$ac_try_echo") >&5
20824  (eval "$ac_compile") 2>conftest.er1
20825  ac_status=$?
20826  grep -v '^ *+' conftest.er1 >conftest.err
20827  rm -f conftest.er1
20828  cat conftest.err >&5
20829  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830  (exit $ac_status); } && {
20831	 test -z "$ac_c_werror_flag" ||
20832	 test ! -s conftest.err
20833       } && test -s conftest.$ac_objext; then
20834  _EXT_CHECK=yes
20835else
20836  $as_echo "$as_me: failed program was:" >&5
20837sed 's/^/| /' conftest.$ac_ext >&5
20838
20839	_EXT_CHECK=no
20840fi
20841
20842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20843	CFLAGS="$SAVE_CFLAGS"
20844	{ $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
20845$as_echo_n "checking if RANDR is defined... " >&6; }
20846	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20847$as_echo "$_EXT_CHECK" >&6; }
20848	if test "$_EXT_CHECK" != no; then
20849		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20850	fi
20851
20852
20853	SAVE_CFLAGS="$CFLAGS"
20854	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20855	cat >conftest.$ac_ext <<_ACEOF
20856/* confdefs.h.  */
20857_ACEOF
20858cat confdefs.h >>conftest.$ac_ext
20859cat >>conftest.$ac_ext <<_ACEOF
20860/* end confdefs.h.  */
20861
20862#include "xorg-server.h"
20863#if !defined RENDER
20864#error RENDER not defined
20865#endif
20866
20867int
20868main ()
20869{
20870
20871  ;
20872  return 0;
20873}
20874_ACEOF
20875rm -f conftest.$ac_objext
20876if { (ac_try="$ac_compile"
20877case "(($ac_try" in
20878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20879  *) ac_try_echo=$ac_try;;
20880esac
20881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20882$as_echo "$ac_try_echo") >&5
20883  (eval "$ac_compile") 2>conftest.er1
20884  ac_status=$?
20885  grep -v '^ *+' conftest.er1 >conftest.err
20886  rm -f conftest.er1
20887  cat conftest.err >&5
20888  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889  (exit $ac_status); } && {
20890	 test -z "$ac_c_werror_flag" ||
20891	 test ! -s conftest.err
20892       } && test -s conftest.$ac_objext; then
20893  _EXT_CHECK=yes
20894else
20895  $as_echo "$as_me: failed program was:" >&5
20896sed 's/^/| /' conftest.$ac_ext >&5
20897
20898	_EXT_CHECK=no
20899fi
20900
20901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20902	CFLAGS="$SAVE_CFLAGS"
20903	{ $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
20904$as_echo_n "checking if RENDER is defined... " >&6; }
20905	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20906$as_echo "$_EXT_CHECK" >&6; }
20907	if test "$_EXT_CHECK" != no; then
20908		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
20909	fi
20910
20911
20912	SAVE_CFLAGS="$CFLAGS"
20913	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20914	cat >conftest.$ac_ext <<_ACEOF
20915/* confdefs.h.  */
20916_ACEOF
20917cat confdefs.h >>conftest.$ac_ext
20918cat >>conftest.$ac_ext <<_ACEOF
20919/* end confdefs.h.  */
20920
20921#include "xorg-server.h"
20922#if !defined XV
20923#error XV not defined
20924#endif
20925
20926int
20927main ()
20928{
20929
20930  ;
20931  return 0;
20932}
20933_ACEOF
20934rm -f conftest.$ac_objext
20935if { (ac_try="$ac_compile"
20936case "(($ac_try" in
20937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20938  *) ac_try_echo=$ac_try;;
20939esac
20940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20941$as_echo "$ac_try_echo") >&5
20942  (eval "$ac_compile") 2>conftest.er1
20943  ac_status=$?
20944  grep -v '^ *+' conftest.er1 >conftest.err
20945  rm -f conftest.er1
20946  cat conftest.err >&5
20947  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948  (exit $ac_status); } && {
20949	 test -z "$ac_c_werror_flag" ||
20950	 test ! -s conftest.err
20951       } && test -s conftest.$ac_objext; then
20952  _EXT_CHECK=yes
20953else
20954  $as_echo "$as_me: failed program was:" >&5
20955sed 's/^/| /' conftest.$ac_ext >&5
20956
20957	_EXT_CHECK=no
20958fi
20959
20960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20961	CFLAGS="$SAVE_CFLAGS"
20962	{ $as_echo "$as_me:$LINENO: checking if XV is defined" >&5
20963$as_echo_n "checking if XV is defined... " >&6; }
20964	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20965$as_echo "$_EXT_CHECK" >&6; }
20966	if test "$_EXT_CHECK" != no; then
20967		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
20968	fi
20969
20970
20971	SAVE_CFLAGS="$CFLAGS"
20972	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20973	cat >conftest.$ac_ext <<_ACEOF
20974/* confdefs.h.  */
20975_ACEOF
20976cat confdefs.h >>conftest.$ac_ext
20977cat >>conftest.$ac_ext <<_ACEOF
20978/* end confdefs.h.  */
20979
20980#include "xorg-server.h"
20981#if !defined DPMSExtension
20982#error DPMSExtension not defined
20983#endif
20984
20985int
20986main ()
20987{
20988
20989  ;
20990  return 0;
20991}
20992_ACEOF
20993rm -f conftest.$ac_objext
20994if { (ac_try="$ac_compile"
20995case "(($ac_try" in
20996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997  *) ac_try_echo=$ac_try;;
20998esac
20999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21000$as_echo "$ac_try_echo") >&5
21001  (eval "$ac_compile") 2>conftest.er1
21002  ac_status=$?
21003  grep -v '^ *+' conftest.er1 >conftest.err
21004  rm -f conftest.er1
21005  cat conftest.err >&5
21006  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007  (exit $ac_status); } && {
21008	 test -z "$ac_c_werror_flag" ||
21009	 test ! -s conftest.err
21010       } && test -s conftest.$ac_objext; then
21011  _EXT_CHECK=yes
21012else
21013  $as_echo "$as_me: failed program was:" >&5
21014sed 's/^/| /' conftest.$ac_ext >&5
21015
21016	_EXT_CHECK=no
21017fi
21018
21019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21020	CFLAGS="$SAVE_CFLAGS"
21021	{ $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
21022$as_echo_n "checking if DPMSExtension is defined... " >&6; }
21023	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21024$as_echo "$_EXT_CHECK" >&6; }
21025	if test "$_EXT_CHECK" != no; then
21026		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
21027	fi
21028
21029
21030# Checks for pkg-config packages
21031
21032
21033if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21034	if test -n "$ac_tool_prefix"; then
21035  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21036set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21037{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21038$as_echo_n "checking for $ac_word... " >&6; }
21039if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21040  $as_echo_n "(cached) " >&6
21041else
21042  case $PKG_CONFIG in
21043  [\\/]* | ?:[\\/]*)
21044  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21045  ;;
21046  *)
21047  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21048for as_dir in $PATH
21049do
21050  IFS=$as_save_IFS
21051  test -z "$as_dir" && as_dir=.
21052  for ac_exec_ext in '' $ac_executable_extensions; do
21053  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21054    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21055    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21056    break 2
21057  fi
21058done
21059done
21060IFS=$as_save_IFS
21061
21062  ;;
21063esac
21064fi
21065PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21066if test -n "$PKG_CONFIG"; then
21067  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21068$as_echo "$PKG_CONFIG" >&6; }
21069else
21070  { $as_echo "$as_me:$LINENO: result: no" >&5
21071$as_echo "no" >&6; }
21072fi
21073
21074
21075fi
21076if test -z "$ac_cv_path_PKG_CONFIG"; then
21077  ac_pt_PKG_CONFIG=$PKG_CONFIG
21078  # Extract the first word of "pkg-config", so it can be a program name with args.
21079set dummy pkg-config; ac_word=$2
21080{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21081$as_echo_n "checking for $ac_word... " >&6; }
21082if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21083  $as_echo_n "(cached) " >&6
21084else
21085  case $ac_pt_PKG_CONFIG in
21086  [\\/]* | ?:[\\/]*)
21087  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21088  ;;
21089  *)
21090  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21091for as_dir in $PATH
21092do
21093  IFS=$as_save_IFS
21094  test -z "$as_dir" && as_dir=.
21095  for ac_exec_ext in '' $ac_executable_extensions; do
21096  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21097    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21098    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21099    break 2
21100  fi
21101done
21102done
21103IFS=$as_save_IFS
21104
21105  ;;
21106esac
21107fi
21108ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21109if test -n "$ac_pt_PKG_CONFIG"; then
21110  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21111$as_echo "$ac_pt_PKG_CONFIG" >&6; }
21112else
21113  { $as_echo "$as_me:$LINENO: result: no" >&5
21114$as_echo "no" >&6; }
21115fi
21116
21117  if test "x$ac_pt_PKG_CONFIG" = x; then
21118    PKG_CONFIG=""
21119  else
21120    case $cross_compiling:$ac_tool_warned in
21121yes:)
21122{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21124ac_tool_warned=yes ;;
21125esac
21126    PKG_CONFIG=$ac_pt_PKG_CONFIG
21127  fi
21128else
21129  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21130fi
21131
21132fi
21133if test -n "$PKG_CONFIG"; then
21134	_pkg_min_version=0.9.0
21135	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21136$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21137	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21138		{ $as_echo "$as_me:$LINENO: result: yes" >&5
21139$as_echo "yes" >&6; }
21140	else
21141		{ $as_echo "$as_me:$LINENO: result: no" >&5
21142$as_echo "no" >&6; }
21143		PKG_CONFIG=""
21144	fi
21145
21146fi
21147
21148pkg_failed=no
21149{ $as_echo "$as_me:$LINENO: checking for XORG" >&5
21150$as_echo_n "checking for XORG... " >&6; }
21151
21152if test -n "$XORG_CFLAGS"; then
21153    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
21154 elif test -n "$PKG_CONFIG"; then
21155    if test -n "$PKG_CONFIG" && \
21156    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21157  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
21158  ac_status=$?
21159  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160  (exit $ac_status); }; then
21161  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21162else
21163  pkg_failed=yes
21164fi
21165 else
21166    pkg_failed=untried
21167fi
21168if test -n "$XORG_LIBS"; then
21169    pkg_cv_XORG_LIBS="$XORG_LIBS"
21170 elif test -n "$PKG_CONFIG"; then
21171    if test -n "$PKG_CONFIG" && \
21172    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21173  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
21174  ac_status=$?
21175  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176  (exit $ac_status); }; then
21177  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21178else
21179  pkg_failed=yes
21180fi
21181 else
21182    pkg_failed=untried
21183fi
21184
21185
21186
21187if test $pkg_failed = yes; then
21188
21189if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21190        _pkg_short_errors_supported=yes
21191else
21192        _pkg_short_errors_supported=no
21193fi
21194        if test $_pkg_short_errors_supported = yes; then
21195	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
21196        else
21197	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
21198        fi
21199	# Put the nasty error message in config.log where it belongs
21200	echo "$XORG_PKG_ERRORS" >&5
21201
21202	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
21203
21204$XORG_PKG_ERRORS
21205
21206Consider adjusting the PKG_CONFIG_PATH environment variable if you
21207installed software in a non-standard prefix.
21208
21209Alternatively, you may set the environment variables XORG_CFLAGS
21210and XORG_LIBS to avoid the need to call pkg-config.
21211See the pkg-config man page for more details.
21212" >&5
21213$as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
21214
21215$XORG_PKG_ERRORS
21216
21217Consider adjusting the PKG_CONFIG_PATH environment variable if you
21218installed software in a non-standard prefix.
21219
21220Alternatively, you may set the environment variables XORG_CFLAGS
21221and XORG_LIBS to avoid the need to call pkg-config.
21222See the pkg-config man page for more details.
21223" >&2;}
21224   { (exit 1); exit 1; }; }
21225elif test $pkg_failed = untried; then
21226	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21227$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21228{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21229is in your PATH or set the PKG_CONFIG environment variable to the full
21230path to pkg-config.
21231
21232Alternatively, you may set the environment variables XORG_CFLAGS
21233and XORG_LIBS to avoid the need to call pkg-config.
21234See the pkg-config man page for more details.
21235
21236To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21237See \`config.log' for more details." >&5
21238$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21239is in your PATH or set the PKG_CONFIG environment variable to the full
21240path to pkg-config.
21241
21242Alternatively, you may set the environment variables XORG_CFLAGS
21243and XORG_LIBS to avoid the need to call pkg-config.
21244See the pkg-config man page for more details.
21245
21246To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21247See \`config.log' for more details." >&2;}
21248   { (exit 1); exit 1; }; }; }
21249else
21250	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
21251	XORG_LIBS=$pkg_cv_XORG_LIBS
21252        { $as_echo "$as_me:$LINENO: result: yes" >&5
21253$as_echo "yes" >&6; }
21254	:
21255fi
21256sdkdir=$(pkg-config --variable=sdkdir xorg-server)
21257
21258
21259pkg_failed=no
21260{ $as_echo "$as_me:$LINENO: checking for XF86RUSH" >&5
21261$as_echo_n "checking for XF86RUSH... " >&6; }
21262
21263if test -n "$XF86RUSH_CFLAGS"; then
21264    pkg_cv_XF86RUSH_CFLAGS="$XF86RUSH_CFLAGS"
21265 elif test -n "$PKG_CONFIG"; then
21266    if test -n "$PKG_CONFIG" && \
21267    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xxf86rush\"") >&5
21268  ($PKG_CONFIG --exists --print-errors "xxf86rush") 2>&5
21269  ac_status=$?
21270  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271  (exit $ac_status); }; then
21272  pkg_cv_XF86RUSH_CFLAGS=`$PKG_CONFIG --cflags "xxf86rush" 2>/dev/null`
21273else
21274  pkg_failed=yes
21275fi
21276 else
21277    pkg_failed=untried
21278fi
21279if test -n "$XF86RUSH_LIBS"; then
21280    pkg_cv_XF86RUSH_LIBS="$XF86RUSH_LIBS"
21281 elif test -n "$PKG_CONFIG"; then
21282    if test -n "$PKG_CONFIG" && \
21283    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xxf86rush\"") >&5
21284  ($PKG_CONFIG --exists --print-errors "xxf86rush") 2>&5
21285  ac_status=$?
21286  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287  (exit $ac_status); }; then
21288  pkg_cv_XF86RUSH_LIBS=`$PKG_CONFIG --libs "xxf86rush" 2>/dev/null`
21289else
21290  pkg_failed=yes
21291fi
21292 else
21293    pkg_failed=untried
21294fi
21295
21296
21297
21298if test $pkg_failed = yes; then
21299
21300if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21301        _pkg_short_errors_supported=yes
21302else
21303        _pkg_short_errors_supported=no
21304fi
21305        if test $_pkg_short_errors_supported = yes; then
21306	        XF86RUSH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xxf86rush" 2>&1`
21307        else
21308	        XF86RUSH_PKG_ERRORS=`$PKG_CONFIG --print-errors "xxf86rush" 2>&1`
21309        fi
21310	# Put the nasty error message in config.log where it belongs
21311	echo "$XF86RUSH_PKG_ERRORS" >&5
21312
21313	{ $as_echo "$as_me:$LINENO: result: no" >&5
21314$as_echo "no" >&6; }
21315                have_xf86rush=no
21316elif test $pkg_failed = untried; then
21317	have_xf86rush=no
21318else
21319	XF86RUSH_CFLAGS=$pkg_cv_XF86RUSH_CFLAGS
21320	XF86RUSH_LIBS=$pkg_cv_XF86RUSH_LIBS
21321        { $as_echo "$as_me:$LINENO: result: yes" >&5
21322$as_echo "yes" >&6; }
21323	have_xf86rush=yes
21324fi
21325 if test "x$have_xf86rush" = xyes; then
21326  XF86RUSH_TRUE=
21327  XF86RUSH_FALSE='#'
21328else
21329  XF86RUSH_TRUE='#'
21330  XF86RUSH_FALSE=
21331fi
21332
21333
21334
21335
21336CFLAGS="$CFLAGS $XORG_CFLAGS $XF86RUSH_CFLAGS"' -I$(top_srcdir)/src'
21337INCLUDES="$XORG_INCS -I${sdkdir} $XF86RUSH_INCS "'-I$(top_srcdir)/src -I$(prefix)/include'
21338
21339
21340
21341save_CFLAGS="$CFLAGS"
21342CFLAGS="$XORG_CFLAGS"
21343{ $as_echo "$as_me:$LINENO: checking whether xf86ConfigIsaEntity is declared" >&5
21344$as_echo_n "checking whether xf86ConfigIsaEntity is declared... " >&6; }
21345if test "${ac_cv_have_decl_xf86ConfigIsaEntity+set}" = set; then
21346  $as_echo_n "(cached) " >&6
21347else
21348  cat >conftest.$ac_ext <<_ACEOF
21349/* confdefs.h.  */
21350_ACEOF
21351cat confdefs.h >>conftest.$ac_ext
21352cat >>conftest.$ac_ext <<_ACEOF
21353/* end confdefs.h.  */
21354#include "xf86.h"
21355
21356int
21357main ()
21358{
21359#ifndef xf86ConfigIsaEntity
21360  (void) xf86ConfigIsaEntity;
21361#endif
21362
21363  ;
21364  return 0;
21365}
21366_ACEOF
21367rm -f conftest.$ac_objext
21368if { (ac_try="$ac_compile"
21369case "(($ac_try" in
21370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371  *) ac_try_echo=$ac_try;;
21372esac
21373eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21374$as_echo "$ac_try_echo") >&5
21375  (eval "$ac_compile") 2>conftest.er1
21376  ac_status=$?
21377  grep -v '^ *+' conftest.er1 >conftest.err
21378  rm -f conftest.er1
21379  cat conftest.err >&5
21380  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381  (exit $ac_status); } && {
21382	 test -z "$ac_c_werror_flag" ||
21383	 test ! -s conftest.err
21384       } && test -s conftest.$ac_objext; then
21385  ac_cv_have_decl_xf86ConfigIsaEntity=yes
21386else
21387  $as_echo "$as_me: failed program was:" >&5
21388sed 's/^/| /' conftest.$ac_ext >&5
21389
21390	ac_cv_have_decl_xf86ConfigIsaEntity=no
21391fi
21392
21393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21394fi
21395{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86ConfigIsaEntity" >&5
21396$as_echo "$ac_cv_have_decl_xf86ConfigIsaEntity" >&6; }
21397if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = x""yes; then
21398
21399cat >>confdefs.h <<\_ACEOF
21400#define HAVE_ISA 1
21401_ACEOF
21402
21403fi
21404
21405CFLAGS="$save_CFLAGS"
21406
21407# Checks for libraries.
21408SAVE_CPPFLAGS="$CPPFLAGS"
21409CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
21410{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
21411$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
21412if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
21413  $as_echo_n "(cached) " >&6
21414else
21415  cat >conftest.$ac_ext <<_ACEOF
21416/* confdefs.h.  */
21417_ACEOF
21418cat confdefs.h >>conftest.$ac_ext
21419cat >>conftest.$ac_ext <<_ACEOF
21420/* end confdefs.h.  */
21421#include "xorg-server.h"
21422
21423int
21424main ()
21425{
21426#ifndef XSERVER_LIBPCIACCESS
21427  (void) XSERVER_LIBPCIACCESS;
21428#endif
21429
21430  ;
21431  return 0;
21432}
21433_ACEOF
21434rm -f conftest.$ac_objext
21435if { (ac_try="$ac_compile"
21436case "(($ac_try" in
21437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21438  *) ac_try_echo=$ac_try;;
21439esac
21440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21441$as_echo "$ac_try_echo") >&5
21442  (eval "$ac_compile") 2>conftest.er1
21443  ac_status=$?
21444  grep -v '^ *+' conftest.er1 >conftest.err
21445  rm -f conftest.er1
21446  cat conftest.err >&5
21447  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448  (exit $ac_status); } && {
21449	 test -z "$ac_c_werror_flag" ||
21450	 test ! -s conftest.err
21451       } && test -s conftest.$ac_objext; then
21452  ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
21453else
21454  $as_echo "$as_me: failed program was:" >&5
21455sed 's/^/| /' conftest.$ac_ext >&5
21456
21457	ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
21458fi
21459
21460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21461fi
21462{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
21463$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
21464if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
21465  XSERVER_LIBPCIACCESS=yes
21466else
21467  XSERVER_LIBPCIACCESS=no
21468fi
21469
21470if test "${ac_cv_header_xf1bpp_h+set}" = set; then
21471  { $as_echo "$as_me:$LINENO: checking for xf1bpp.h" >&5
21472$as_echo_n "checking for xf1bpp.h... " >&6; }
21473if test "${ac_cv_header_xf1bpp_h+set}" = set; then
21474  $as_echo_n "(cached) " >&6
21475fi
21476{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5
21477$as_echo "$ac_cv_header_xf1bpp_h" >&6; }
21478else
21479  # Is the header compilable?
21480{ $as_echo "$as_me:$LINENO: checking xf1bpp.h usability" >&5
21481$as_echo_n "checking xf1bpp.h usability... " >&6; }
21482cat >conftest.$ac_ext <<_ACEOF
21483/* confdefs.h.  */
21484_ACEOF
21485cat confdefs.h >>conftest.$ac_ext
21486cat >>conftest.$ac_ext <<_ACEOF
21487/* end confdefs.h.  */
21488$ac_includes_default
21489#include <xf1bpp.h>
21490_ACEOF
21491rm -f conftest.$ac_objext
21492if { (ac_try="$ac_compile"
21493case "(($ac_try" in
21494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21495  *) ac_try_echo=$ac_try;;
21496esac
21497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21498$as_echo "$ac_try_echo") >&5
21499  (eval "$ac_compile") 2>conftest.er1
21500  ac_status=$?
21501  grep -v '^ *+' conftest.er1 >conftest.err
21502  rm -f conftest.er1
21503  cat conftest.err >&5
21504  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505  (exit $ac_status); } && {
21506	 test -z "$ac_c_werror_flag" ||
21507	 test ! -s conftest.err
21508       } && test -s conftest.$ac_objext; then
21509  ac_header_compiler=yes
21510else
21511  $as_echo "$as_me: failed program was:" >&5
21512sed 's/^/| /' conftest.$ac_ext >&5
21513
21514	ac_header_compiler=no
21515fi
21516
21517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21518{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21519$as_echo "$ac_header_compiler" >&6; }
21520
21521# Is the header present?
21522{ $as_echo "$as_me:$LINENO: checking xf1bpp.h presence" >&5
21523$as_echo_n "checking xf1bpp.h presence... " >&6; }
21524cat >conftest.$ac_ext <<_ACEOF
21525/* confdefs.h.  */
21526_ACEOF
21527cat confdefs.h >>conftest.$ac_ext
21528cat >>conftest.$ac_ext <<_ACEOF
21529/* end confdefs.h.  */
21530#include <xf1bpp.h>
21531_ACEOF
21532if { (ac_try="$ac_cpp conftest.$ac_ext"
21533case "(($ac_try" in
21534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21535  *) ac_try_echo=$ac_try;;
21536esac
21537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21538$as_echo "$ac_try_echo") >&5
21539  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21540  ac_status=$?
21541  grep -v '^ *+' conftest.er1 >conftest.err
21542  rm -f conftest.er1
21543  cat conftest.err >&5
21544  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545  (exit $ac_status); } >/dev/null && {
21546	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21547	 test ! -s conftest.err
21548       }; then
21549  ac_header_preproc=yes
21550else
21551  $as_echo "$as_me: failed program was:" >&5
21552sed 's/^/| /' conftest.$ac_ext >&5
21553
21554  ac_header_preproc=no
21555fi
21556
21557rm -f conftest.err conftest.$ac_ext
21558{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21559$as_echo "$ac_header_preproc" >&6; }
21560
21561# So?  What about this header?
21562case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21563  yes:no: )
21564    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21565$as_echo "$as_me: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21566    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the compiler's result" >&5
21567$as_echo "$as_me: WARNING: xf1bpp.h: proceeding with the compiler's result" >&2;}
21568    ac_header_preproc=yes
21569    ;;
21570  no:yes:* )
21571    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: present but cannot be compiled" >&5
21572$as_echo "$as_me: WARNING: xf1bpp.h: present but cannot be compiled" >&2;}
21573    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h:     check for missing prerequisite headers?" >&5
21574$as_echo "$as_me: WARNING: xf1bpp.h:     check for missing prerequisite headers?" >&2;}
21575    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: see the Autoconf documentation" >&5
21576$as_echo "$as_me: WARNING: xf1bpp.h: see the Autoconf documentation" >&2;}
21577    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h:     section \"Present But Cannot Be Compiled\"" >&5
21578$as_echo "$as_me: WARNING: xf1bpp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21579    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&5
21580$as_echo "$as_me: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&2;}
21581    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&5
21582$as_echo "$as_me: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&2;}
21583    ( cat <<\_ASBOX
21584## ---------------------------------------------------------------------- ##
21585## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
21586## ---------------------------------------------------------------------- ##
21587_ASBOX
21588     ) | sed "s/^/$as_me: WARNING:     /" >&2
21589    ;;
21590esac
21591{ $as_echo "$as_me:$LINENO: checking for xf1bpp.h" >&5
21592$as_echo_n "checking for xf1bpp.h... " >&6; }
21593if test "${ac_cv_header_xf1bpp_h+set}" = set; then
21594  $as_echo_n "(cached) " >&6
21595else
21596  ac_cv_header_xf1bpp_h=$ac_header_preproc
21597fi
21598{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5
21599$as_echo "$ac_cv_header_xf1bpp_h" >&6; }
21600
21601fi
21602if test "x$ac_cv_header_xf1bpp_h" = x""yes; then
21603
21604cat >>confdefs.h <<\_ACEOF
21605#define HAVE_XF1BPP 1
21606_ACEOF
21607
21608fi
21609
21610
21611if test "${ac_cv_header_xf4bpp_h+set}" = set; then
21612  { $as_echo "$as_me:$LINENO: checking for xf4bpp.h" >&5
21613$as_echo_n "checking for xf4bpp.h... " >&6; }
21614if test "${ac_cv_header_xf4bpp_h+set}" = set; then
21615  $as_echo_n "(cached) " >&6
21616fi
21617{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5
21618$as_echo "$ac_cv_header_xf4bpp_h" >&6; }
21619else
21620  # Is the header compilable?
21621{ $as_echo "$as_me:$LINENO: checking xf4bpp.h usability" >&5
21622$as_echo_n "checking xf4bpp.h usability... " >&6; }
21623cat >conftest.$ac_ext <<_ACEOF
21624/* confdefs.h.  */
21625_ACEOF
21626cat confdefs.h >>conftest.$ac_ext
21627cat >>conftest.$ac_ext <<_ACEOF
21628/* end confdefs.h.  */
21629$ac_includes_default
21630#include <xf4bpp.h>
21631_ACEOF
21632rm -f conftest.$ac_objext
21633if { (ac_try="$ac_compile"
21634case "(($ac_try" in
21635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21636  *) ac_try_echo=$ac_try;;
21637esac
21638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21639$as_echo "$ac_try_echo") >&5
21640  (eval "$ac_compile") 2>conftest.er1
21641  ac_status=$?
21642  grep -v '^ *+' conftest.er1 >conftest.err
21643  rm -f conftest.er1
21644  cat conftest.err >&5
21645  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646  (exit $ac_status); } && {
21647	 test -z "$ac_c_werror_flag" ||
21648	 test ! -s conftest.err
21649       } && test -s conftest.$ac_objext; then
21650  ac_header_compiler=yes
21651else
21652  $as_echo "$as_me: failed program was:" >&5
21653sed 's/^/| /' conftest.$ac_ext >&5
21654
21655	ac_header_compiler=no
21656fi
21657
21658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21659{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21660$as_echo "$ac_header_compiler" >&6; }
21661
21662# Is the header present?
21663{ $as_echo "$as_me:$LINENO: checking xf4bpp.h presence" >&5
21664$as_echo_n "checking xf4bpp.h presence... " >&6; }
21665cat >conftest.$ac_ext <<_ACEOF
21666/* confdefs.h.  */
21667_ACEOF
21668cat confdefs.h >>conftest.$ac_ext
21669cat >>conftest.$ac_ext <<_ACEOF
21670/* end confdefs.h.  */
21671#include <xf4bpp.h>
21672_ACEOF
21673if { (ac_try="$ac_cpp conftest.$ac_ext"
21674case "(($ac_try" in
21675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21676  *) ac_try_echo=$ac_try;;
21677esac
21678eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21679$as_echo "$ac_try_echo") >&5
21680  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21681  ac_status=$?
21682  grep -v '^ *+' conftest.er1 >conftest.err
21683  rm -f conftest.er1
21684  cat conftest.err >&5
21685  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686  (exit $ac_status); } >/dev/null && {
21687	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21688	 test ! -s conftest.err
21689       }; then
21690  ac_header_preproc=yes
21691else
21692  $as_echo "$as_me: failed program was:" >&5
21693sed 's/^/| /' conftest.$ac_ext >&5
21694
21695  ac_header_preproc=no
21696fi
21697
21698rm -f conftest.err conftest.$ac_ext
21699{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21700$as_echo "$ac_header_preproc" >&6; }
21701
21702# So?  What about this header?
21703case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21704  yes:no: )
21705    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21706$as_echo "$as_me: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21707    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the compiler's result" >&5
21708$as_echo "$as_me: WARNING: xf4bpp.h: proceeding with the compiler's result" >&2;}
21709    ac_header_preproc=yes
21710    ;;
21711  no:yes:* )
21712    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: present but cannot be compiled" >&5
21713$as_echo "$as_me: WARNING: xf4bpp.h: present but cannot be compiled" >&2;}
21714    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h:     check for missing prerequisite headers?" >&5
21715$as_echo "$as_me: WARNING: xf4bpp.h:     check for missing prerequisite headers?" >&2;}
21716    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: see the Autoconf documentation" >&5
21717$as_echo "$as_me: WARNING: xf4bpp.h: see the Autoconf documentation" >&2;}
21718    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h:     section \"Present But Cannot Be Compiled\"" >&5
21719$as_echo "$as_me: WARNING: xf4bpp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21720    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&5
21721$as_echo "$as_me: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&2;}
21722    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&5
21723$as_echo "$as_me: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&2;}
21724    ( cat <<\_ASBOX
21725## ---------------------------------------------------------------------- ##
21726## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
21727## ---------------------------------------------------------------------- ##
21728_ASBOX
21729     ) | sed "s/^/$as_me: WARNING:     /" >&2
21730    ;;
21731esac
21732{ $as_echo "$as_me:$LINENO: checking for xf4bpp.h" >&5
21733$as_echo_n "checking for xf4bpp.h... " >&6; }
21734if test "${ac_cv_header_xf4bpp_h+set}" = set; then
21735  $as_echo_n "(cached) " >&6
21736else
21737  ac_cv_header_xf4bpp_h=$ac_header_preproc
21738fi
21739{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5
21740$as_echo "$ac_cv_header_xf4bpp_h" >&6; }
21741
21742fi
21743if test "x$ac_cv_header_xf4bpp_h" = x""yes; then
21744
21745cat >>confdefs.h <<\_ACEOF
21746#define HAVE_XF4BPP 1
21747_ACEOF
21748
21749fi
21750
21751
21752CPPFLAGS="$SAVE_CPPFLAGS"
21753
21754# Checks for header files.
21755{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21756$as_echo_n "checking for ANSI C header files... " >&6; }
21757if test "${ac_cv_header_stdc+set}" = set; then
21758  $as_echo_n "(cached) " >&6
21759else
21760  cat >conftest.$ac_ext <<_ACEOF
21761/* confdefs.h.  */
21762_ACEOF
21763cat confdefs.h >>conftest.$ac_ext
21764cat >>conftest.$ac_ext <<_ACEOF
21765/* end confdefs.h.  */
21766#include <stdlib.h>
21767#include <stdarg.h>
21768#include <string.h>
21769#include <float.h>
21770
21771int
21772main ()
21773{
21774
21775  ;
21776  return 0;
21777}
21778_ACEOF
21779rm -f conftest.$ac_objext
21780if { (ac_try="$ac_compile"
21781case "(($ac_try" in
21782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21783  *) ac_try_echo=$ac_try;;
21784esac
21785eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21786$as_echo "$ac_try_echo") >&5
21787  (eval "$ac_compile") 2>conftest.er1
21788  ac_status=$?
21789  grep -v '^ *+' conftest.er1 >conftest.err
21790  rm -f conftest.er1
21791  cat conftest.err >&5
21792  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793  (exit $ac_status); } && {
21794	 test -z "$ac_c_werror_flag" ||
21795	 test ! -s conftest.err
21796       } && test -s conftest.$ac_objext; then
21797  ac_cv_header_stdc=yes
21798else
21799  $as_echo "$as_me: failed program was:" >&5
21800sed 's/^/| /' conftest.$ac_ext >&5
21801
21802	ac_cv_header_stdc=no
21803fi
21804
21805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21806
21807if test $ac_cv_header_stdc = yes; then
21808  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21809  cat >conftest.$ac_ext <<_ACEOF
21810/* confdefs.h.  */
21811_ACEOF
21812cat confdefs.h >>conftest.$ac_ext
21813cat >>conftest.$ac_ext <<_ACEOF
21814/* end confdefs.h.  */
21815#include <string.h>
21816
21817_ACEOF
21818if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21819  $EGREP "memchr" >/dev/null 2>&1; then
21820  :
21821else
21822  ac_cv_header_stdc=no
21823fi
21824rm -f conftest*
21825
21826fi
21827
21828if test $ac_cv_header_stdc = yes; then
21829  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21830  cat >conftest.$ac_ext <<_ACEOF
21831/* confdefs.h.  */
21832_ACEOF
21833cat confdefs.h >>conftest.$ac_ext
21834cat >>conftest.$ac_ext <<_ACEOF
21835/* end confdefs.h.  */
21836#include <stdlib.h>
21837
21838_ACEOF
21839if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21840  $EGREP "free" >/dev/null 2>&1; then
21841  :
21842else
21843  ac_cv_header_stdc=no
21844fi
21845rm -f conftest*
21846
21847fi
21848
21849if test $ac_cv_header_stdc = yes; then
21850  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21851  if test "$cross_compiling" = yes; then
21852  :
21853else
21854  cat >conftest.$ac_ext <<_ACEOF
21855/* confdefs.h.  */
21856_ACEOF
21857cat confdefs.h >>conftest.$ac_ext
21858cat >>conftest.$ac_ext <<_ACEOF
21859/* end confdefs.h.  */
21860#include <ctype.h>
21861#include <stdlib.h>
21862#if ((' ' & 0x0FF) == 0x020)
21863# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21864# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21865#else
21866# define ISLOWER(c) \
21867		   (('a' <= (c) && (c) <= 'i') \
21868		     || ('j' <= (c) && (c) <= 'r') \
21869		     || ('s' <= (c) && (c) <= 'z'))
21870# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21871#endif
21872
21873#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21874int
21875main ()
21876{
21877  int i;
21878  for (i = 0; i < 256; i++)
21879    if (XOR (islower (i), ISLOWER (i))
21880	|| toupper (i) != TOUPPER (i))
21881      return 2;
21882  return 0;
21883}
21884_ACEOF
21885rm -f conftest$ac_exeext
21886if { (ac_try="$ac_link"
21887case "(($ac_try" in
21888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21889  *) ac_try_echo=$ac_try;;
21890esac
21891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21892$as_echo "$ac_try_echo") >&5
21893  (eval "$ac_link") 2>&5
21894  ac_status=$?
21895  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21897  { (case "(($ac_try" in
21898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21899  *) ac_try_echo=$ac_try;;
21900esac
21901eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21902$as_echo "$ac_try_echo") >&5
21903  (eval "$ac_try") 2>&5
21904  ac_status=$?
21905  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906  (exit $ac_status); }; }; then
21907  :
21908else
21909  $as_echo "$as_me: program exited with status $ac_status" >&5
21910$as_echo "$as_me: failed program was:" >&5
21911sed 's/^/| /' conftest.$ac_ext >&5
21912
21913( exit $ac_status )
21914ac_cv_header_stdc=no
21915fi
21916rm -rf conftest.dSYM
21917rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21918fi
21919
21920
21921fi
21922fi
21923{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21924$as_echo "$ac_cv_header_stdc" >&6; }
21925if test $ac_cv_header_stdc = yes; then
21926
21927cat >>confdefs.h <<\_ACEOF
21928#define STDC_HEADERS 1
21929_ACEOF
21930
21931fi
21932
21933
21934if test "x$XSERVER_LIBPCIACCESS" = xyes; then
21935
21936pkg_failed=no
21937{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
21938$as_echo_n "checking for PCIACCESS... " >&6; }
21939
21940if test -n "$PCIACCESS_CFLAGS"; then
21941    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
21942 elif test -n "$PKG_CONFIG"; then
21943    if test -n "$PKG_CONFIG" && \
21944    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
21945  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
21946  ac_status=$?
21947  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948  (exit $ac_status); }; then
21949  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
21950else
21951  pkg_failed=yes
21952fi
21953 else
21954    pkg_failed=untried
21955fi
21956if test -n "$PCIACCESS_LIBS"; then
21957    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
21958 elif test -n "$PKG_CONFIG"; then
21959    if test -n "$PKG_CONFIG" && \
21960    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
21961  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
21962  ac_status=$?
21963  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964  (exit $ac_status); }; then
21965  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
21966else
21967  pkg_failed=yes
21968fi
21969 else
21970    pkg_failed=untried
21971fi
21972
21973
21974
21975if test $pkg_failed = yes; then
21976
21977if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21978        _pkg_short_errors_supported=yes
21979else
21980        _pkg_short_errors_supported=no
21981fi
21982        if test $_pkg_short_errors_supported = yes; then
21983	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
21984        else
21985	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
21986        fi
21987	# Put the nasty error message in config.log where it belongs
21988	echo "$PCIACCESS_PKG_ERRORS" >&5
21989
21990	{ { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
21991
21992$PCIACCESS_PKG_ERRORS
21993
21994Consider adjusting the PKG_CONFIG_PATH environment variable if you
21995installed software in a non-standard prefix.
21996
21997Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21998and PCIACCESS_LIBS to avoid the need to call pkg-config.
21999See the pkg-config man page for more details.
22000" >&5
22001$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
22002
22003$PCIACCESS_PKG_ERRORS
22004
22005Consider adjusting the PKG_CONFIG_PATH environment variable if you
22006installed software in a non-standard prefix.
22007
22008Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22009and PCIACCESS_LIBS to avoid the need to call pkg-config.
22010See the pkg-config man page for more details.
22011" >&2;}
22012   { (exit 1); exit 1; }; }
22013elif test $pkg_failed = untried; then
22014	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22015$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22016{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22017is in your PATH or set the PKG_CONFIG environment variable to the full
22018path to pkg-config.
22019
22020Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22021and PCIACCESS_LIBS to avoid the need to call pkg-config.
22022See the pkg-config man page for more details.
22023
22024To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22025See \`config.log' for more details." >&5
22026$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22027is in your PATH or set the PKG_CONFIG environment variable to the full
22028path to pkg-config.
22029
22030Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22031and PCIACCESS_LIBS to avoid the need to call pkg-config.
22032See the pkg-config man page for more details.
22033
22034To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22035See \`config.log' for more details." >&2;}
22036   { (exit 1); exit 1; }; }; }
22037else
22038	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
22039	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
22040        { $as_echo "$as_me:$LINENO: result: yes" >&5
22041$as_echo "yes" >&6; }
22042	:
22043fi
22044    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
22045fi
22046
22047DRIVER_NAME=apm
22048
22049
22050
22051
22052
22053if test x$APP_MAN_SUFFIX = x    ; then
22054    APP_MAN_SUFFIX=1
22055fi
22056if test x$APP_MAN_DIR = x    ; then
22057    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
22058fi
22059
22060if test x$LIB_MAN_SUFFIX = x    ; then
22061    LIB_MAN_SUFFIX=3
22062fi
22063if test x$LIB_MAN_DIR = x    ; then
22064    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
22065fi
22066
22067if test x$FILE_MAN_SUFFIX = x    ; then
22068    case $host_os in
22069	solaris*)	FILE_MAN_SUFFIX=4  ;;
22070	*)		FILE_MAN_SUFFIX=5  ;;
22071    esac
22072fi
22073if test x$FILE_MAN_DIR = x    ; then
22074    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
22075fi
22076
22077if test x$MISC_MAN_SUFFIX = x    ; then
22078    case $host_os in
22079	solaris*)	MISC_MAN_SUFFIX=5  ;;
22080	*)		MISC_MAN_SUFFIX=7  ;;
22081    esac
22082fi
22083if test x$MISC_MAN_DIR = x    ; then
22084    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
22085fi
22086
22087if test x$DRIVER_MAN_SUFFIX = x    ; then
22088    case $host_os in
22089	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
22090	*)		DRIVER_MAN_SUFFIX=4  ;;
22091    esac
22092fi
22093if test x$DRIVER_MAN_DIR = x    ; then
22094    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
22095fi
22096
22097if test x$ADMIN_MAN_SUFFIX = x    ; then
22098    case $host_os in
22099	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
22100	*)		ADMIN_MAN_SUFFIX=8  ;;
22101    esac
22102fi
22103if test x$ADMIN_MAN_DIR = x    ; then
22104    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
22105fi
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123# Check whether --with-release-version was given.
22124if test "${with_release_version+set}" = set; then
22125  withval=$with_release_version; RELEASE_VERSION="$withval"
22126else
22127  RELEASE_VERSION=""
22128fi
22129
22130	if test "x$RELEASE_VERSION" != "x"; then
22131		PACKAGE="$PACKAGE-$RELEASE_VERSION"
22132		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
22133		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
22134$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
22135	fi
22136
22137cat >>confdefs.h <<_ACEOF
22138#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
22139_ACEOF
22140
22141	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
22142	if test "x$PVM" = "x"; then
22143		PVM="0"
22144	fi
22145
22146cat >>confdefs.h <<_ACEOF
22147#define PACKAGE_VERSION_MINOR $PVM
22148_ACEOF
22149
22150	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
22151	if test "x$PVP" = "x"; then
22152		PVP="0"
22153	fi
22154
22155cat >>confdefs.h <<_ACEOF
22156#define PACKAGE_VERSION_PATCHLEVEL $PVP
22157_ACEOF
22158
22159
22160
22161
22162XORG_SGML_PATH=$prefix/share/sgml
22163HAVE_DEFS_ENT=
22164
22165if test x"$cross_compiling" = x"yes" ; then
22166  HAVE_DEFS_ENT=no
22167else
22168  as_ac_File=`$as_echo "ac_cv_file_$XORG_SGML_PATH/X11/defs.ent" | $as_tr_sh`
22169{ $as_echo "$as_me:$LINENO: checking for $XORG_SGML_PATH/X11/defs.ent" >&5
22170$as_echo_n "checking for $XORG_SGML_PATH/X11/defs.ent... " >&6; }
22171if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
22172  $as_echo_n "(cached) " >&6
22173else
22174  test "$cross_compiling" = yes &&
22175  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22176$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22177   { (exit 1); exit 1; }; }
22178if test -r "$XORG_SGML_PATH/X11/defs.ent"; then
22179  eval "$as_ac_File=yes"
22180else
22181  eval "$as_ac_File=no"
22182fi
22183fi
22184ac_res=`eval 'as_val=${'$as_ac_File'}
22185		 $as_echo "$as_val"'`
22186	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22187$as_echo "$ac_res" >&6; }
22188as_val=`eval 'as_val=${'$as_ac_File'}
22189		 $as_echo "$as_val"'`
22190   if test "x$as_val" = x""yes; then
22191  HAVE_DEFS_ENT=yes
22192fi
22193
22194fi
22195
22196# Extract the first word of "linuxdoc", so it can be a program name with args.
22197set dummy linuxdoc; ac_word=$2
22198{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22199$as_echo_n "checking for $ac_word... " >&6; }
22200if test "${ac_cv_path_LINUXDOC+set}" = set; then
22201  $as_echo_n "(cached) " >&6
22202else
22203  case $LINUXDOC in
22204  [\\/]* | ?:[\\/]*)
22205  ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path.
22206  ;;
22207  *)
22208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22209for as_dir in $PATH
22210do
22211  IFS=$as_save_IFS
22212  test -z "$as_dir" && as_dir=.
22213  for ac_exec_ext in '' $ac_executable_extensions; do
22214  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22215    ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext"
22216    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22217    break 2
22218  fi
22219done
22220done
22221IFS=$as_save_IFS
22222
22223  ;;
22224esac
22225fi
22226LINUXDOC=$ac_cv_path_LINUXDOC
22227if test -n "$LINUXDOC"; then
22228  { $as_echo "$as_me:$LINENO: result: $LINUXDOC" >&5
22229$as_echo "$LINUXDOC" >&6; }
22230else
22231  { $as_echo "$as_me:$LINENO: result: no" >&5
22232$as_echo "no" >&6; }
22233fi
22234
22235
22236# Extract the first word of "ps2pdf", so it can be a program name with args.
22237set dummy ps2pdf; ac_word=$2
22238{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22239$as_echo_n "checking for $ac_word... " >&6; }
22240if test "${ac_cv_path_PS2PDF+set}" = set; then
22241  $as_echo_n "(cached) " >&6
22242else
22243  case $PS2PDF in
22244  [\\/]* | ?:[\\/]*)
22245  ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
22246  ;;
22247  *)
22248  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22249for as_dir in $PATH
22250do
22251  IFS=$as_save_IFS
22252  test -z "$as_dir" && as_dir=.
22253  for ac_exec_ext in '' $ac_executable_extensions; do
22254  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22255    ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
22256    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22257    break 2
22258  fi
22259done
22260done
22261IFS=$as_save_IFS
22262
22263  ;;
22264esac
22265fi
22266PS2PDF=$ac_cv_path_PS2PDF
22267if test -n "$PS2PDF"; then
22268  { $as_echo "$as_me:$LINENO: result: $PS2PDF" >&5
22269$as_echo "$PS2PDF" >&6; }
22270else
22271  { $as_echo "$as_me:$LINENO: result: no" >&5
22272$as_echo "no" >&6; }
22273fi
22274
22275
22276
22277{ $as_echo "$as_me:$LINENO: checking Whether to build documentation" >&5
22278$as_echo_n "checking Whether to build documentation... " >&6; }
22279
22280if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
22281   BUILDDOC=yes
22282else
22283   BUILDDOC=no
22284fi
22285
22286 if test x$BUILDDOC = xyes; then
22287  BUILD_LINUXDOC_TRUE=
22288  BUILD_LINUXDOC_FALSE='#'
22289else
22290  BUILD_LINUXDOC_TRUE='#'
22291  BUILD_LINUXDOC_FALSE=
22292fi
22293
22294
22295{ $as_echo "$as_me:$LINENO: result: $BUILDDOC" >&5
22296$as_echo "$BUILDDOC" >&6; }
22297
22298{ $as_echo "$as_me:$LINENO: checking Whether to build pdf documentation" >&5
22299$as_echo_n "checking Whether to build pdf documentation... " >&6; }
22300
22301if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
22302   BUILDPDFDOC=yes
22303else
22304   BUILDPDFDOC=no
22305fi
22306
22307 if test x$BUILDPDFDOC = xyes; then
22308  BUILD_PDFDOC_TRUE=
22309  BUILD_PDFDOC_FALSE='#'
22310else
22311  BUILD_PDFDOC_TRUE='#'
22312  BUILD_PDFDOC_FALSE=
22313fi
22314
22315
22316{ $as_echo "$as_me:$LINENO: result: $BUILDPDFDOC" >&5
22317$as_echo "$BUILDPDFDOC" >&6; }
22318
22319MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
22320MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
22321MAKE_PDF="$PS2PDF"
22322MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC  -B html --split=0"
22323
22324
22325
22326
22327
22328
22329
22330ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
22331
22332cat >confcache <<\_ACEOF
22333# This file is a shell script that caches the results of configure
22334# tests run on this system so they can be shared between configure
22335# scripts and configure runs, see configure's option --config-cache.
22336# It is not useful on other systems.  If it contains results you don't
22337# want to keep, you may remove or edit it.
22338#
22339# config.status only pays attention to the cache file if you give it
22340# the --recheck option to rerun configure.
22341#
22342# `ac_cv_env_foo' variables (set or unset) will be overridden when
22343# loading this file, other *unset* `ac_cv_foo' will be assigned the
22344# following values.
22345
22346_ACEOF
22347
22348# The following way of writing the cache mishandles newlines in values,
22349# but we know of no workaround that is simple, portable, and efficient.
22350# So, we kill variables containing newlines.
22351# Ultrix sh set writes to stderr and can't be redirected directly,
22352# and sets the high bit in the cache file unless we assign to the vars.
22353(
22354  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22355    eval ac_val=\$$ac_var
22356    case $ac_val in #(
22357    *${as_nl}*)
22358      case $ac_var in #(
22359      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22360$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22361      esac
22362      case $ac_var in #(
22363      _ | IFS | as_nl) ;; #(
22364      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22365      *) $as_unset $ac_var ;;
22366      esac ;;
22367    esac
22368  done
22369
22370  (set) 2>&1 |
22371    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22372    *${as_nl}ac_space=\ *)
22373      # `set' does not quote correctly, so add quotes (double-quote
22374      # substitution turns \\\\ into \\, and sed turns \\ into \).
22375      sed -n \
22376	"s/'/'\\\\''/g;
22377	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22378      ;; #(
22379    *)
22380      # `set' quotes correctly as required by POSIX, so do not add quotes.
22381      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22382      ;;
22383    esac |
22384    sort
22385) |
22386  sed '
22387     /^ac_cv_env_/b end
22388     t clear
22389     :clear
22390     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22391     t end
22392     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22393     :end' >>confcache
22394if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22395  if test -w "$cache_file"; then
22396    test "x$cache_file" != "x/dev/null" &&
22397      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
22398$as_echo "$as_me: updating cache $cache_file" >&6;}
22399    cat confcache >$cache_file
22400  else
22401    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22402$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22403  fi
22404fi
22405rm -f confcache
22406
22407test "x$prefix" = xNONE && prefix=$ac_default_prefix
22408# Let make expand exec_prefix.
22409test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22410
22411DEFS=-DHAVE_CONFIG_H
22412
22413ac_libobjs=
22414ac_ltlibobjs=
22415for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22416  # 1. Remove the extension, and $U if already installed.
22417  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22418  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22419  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22420  #    will be set to the directory where LIBOBJS objects are built.
22421  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22422  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22423done
22424LIBOBJS=$ac_libobjs
22425
22426LTLIBOBJS=$ac_ltlibobjs
22427
22428
22429if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22430  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22431Usually this means the macro was only invoked conditionally." >&5
22432$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22433Usually this means the macro was only invoked conditionally." >&2;}
22434   { (exit 1); exit 1; }; }
22435fi
22436if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22437  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22438Usually this means the macro was only invoked conditionally." >&5
22439$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
22440Usually this means the macro was only invoked conditionally." >&2;}
22441   { (exit 1); exit 1; }; }
22442fi
22443if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22444  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22445Usually this means the macro was only invoked conditionally." >&5
22446$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22447Usually this means the macro was only invoked conditionally." >&2;}
22448   { (exit 1); exit 1; }; }
22449fi
22450if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22451  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22452Usually this means the macro was only invoked conditionally." >&5
22453$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22454Usually this means the macro was only invoked conditionally." >&2;}
22455   { (exit 1); exit 1; }; }
22456fi
22457if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22458  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22459Usually this means the macro was only invoked conditionally." >&5
22460$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22461Usually this means the macro was only invoked conditionally." >&2;}
22462   { (exit 1); exit 1; }; }
22463fi
22464if test -z "${XF86RUSH_TRUE}" && test -z "${XF86RUSH_FALSE}"; then
22465  { { $as_echo "$as_me:$LINENO: error: conditional \"XF86RUSH\" was never defined.
22466Usually this means the macro was only invoked conditionally." >&5
22467$as_echo "$as_me: error: conditional \"XF86RUSH\" was never defined.
22468Usually this means the macro was only invoked conditionally." >&2;}
22469   { (exit 1); exit 1; }; }
22470fi
22471if test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then
22472  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LINUXDOC\" was never defined.
22473Usually this means the macro was only invoked conditionally." >&5
22474$as_echo "$as_me: error: conditional \"BUILD_LINUXDOC\" was never defined.
22475Usually this means the macro was only invoked conditionally." >&2;}
22476   { (exit 1); exit 1; }; }
22477fi
22478if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then
22479  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PDFDOC\" was never defined.
22480Usually this means the macro was only invoked conditionally." >&5
22481$as_echo "$as_me: error: conditional \"BUILD_PDFDOC\" was never defined.
22482Usually this means the macro was only invoked conditionally." >&2;}
22483   { (exit 1); exit 1; }; }
22484fi
22485
22486: ${CONFIG_STATUS=./config.status}
22487ac_write_fail=0
22488ac_clean_files_save=$ac_clean_files
22489ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22490{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22491$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22492cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22493#! $SHELL
22494# Generated by $as_me.
22495# Run this file to recreate the current configuration.
22496# Compiler output produced by configure, useful for debugging
22497# configure, is in config.log if it exists.
22498
22499debug=false
22500ac_cs_recheck=false
22501ac_cs_silent=false
22502SHELL=\${CONFIG_SHELL-$SHELL}
22503_ACEOF
22504
22505cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22506## --------------------- ##
22507## M4sh Initialization.  ##
22508## --------------------- ##
22509
22510# Be more Bourne compatible
22511DUALCASE=1; export DUALCASE # for MKS sh
22512if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22513  emulate sh
22514  NULLCMD=:
22515  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22516  # is contrary to our usage.  Disable this feature.
22517  alias -g '${1+"$@"}'='"$@"'
22518  setopt NO_GLOB_SUBST
22519else
22520  case `(set -o) 2>/dev/null` in
22521  *posix*) set -o posix ;;
22522esac
22523
22524fi
22525
22526
22527
22528
22529# PATH needs CR
22530# Avoid depending upon Character Ranges.
22531as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22532as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22533as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22534as_cr_digits='0123456789'
22535as_cr_alnum=$as_cr_Letters$as_cr_digits
22536
22537as_nl='
22538'
22539export as_nl
22540# Printing a long string crashes Solaris 7 /usr/bin/printf.
22541as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22542as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22543as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22544if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22545  as_echo='printf %s\n'
22546  as_echo_n='printf %s'
22547else
22548  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22549    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22550    as_echo_n='/usr/ucb/echo -n'
22551  else
22552    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22553    as_echo_n_body='eval
22554      arg=$1;
22555      case $arg in
22556      *"$as_nl"*)
22557	expr "X$arg" : "X\\(.*\\)$as_nl";
22558	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22559      esac;
22560      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22561    '
22562    export as_echo_n_body
22563    as_echo_n='sh -c $as_echo_n_body as_echo'
22564  fi
22565  export as_echo_body
22566  as_echo='sh -c $as_echo_body as_echo'
22567fi
22568
22569# The user is always right.
22570if test "${PATH_SEPARATOR+set}" != set; then
22571  PATH_SEPARATOR=:
22572  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22573    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22574      PATH_SEPARATOR=';'
22575  }
22576fi
22577
22578# Support unset when possible.
22579if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22580  as_unset=unset
22581else
22582  as_unset=false
22583fi
22584
22585
22586# IFS
22587# We need space, tab and new line, in precisely that order.  Quoting is
22588# there to prevent editors from complaining about space-tab.
22589# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22590# splitting by setting IFS to empty value.)
22591IFS=" ""	$as_nl"
22592
22593# Find who we are.  Look in the path if we contain no directory separator.
22594case $0 in
22595  *[\\/]* ) as_myself=$0 ;;
22596  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22597for as_dir in $PATH
22598do
22599  IFS=$as_save_IFS
22600  test -z "$as_dir" && as_dir=.
22601  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22602done
22603IFS=$as_save_IFS
22604
22605     ;;
22606esac
22607# We did not find ourselves, most probably we were run as `sh COMMAND'
22608# in which case we are not to be found in the path.
22609if test "x$as_myself" = x; then
22610  as_myself=$0
22611fi
22612if test ! -f "$as_myself"; then
22613  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22614  { (exit 1); exit 1; }
22615fi
22616
22617# Work around bugs in pre-3.0 UWIN ksh.
22618for as_var in ENV MAIL MAILPATH
22619do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22620done
22621PS1='$ '
22622PS2='> '
22623PS4='+ '
22624
22625# NLS nuisances.
22626LC_ALL=C
22627export LC_ALL
22628LANGUAGE=C
22629export LANGUAGE
22630
22631# Required to use basename.
22632if expr a : '\(a\)' >/dev/null 2>&1 &&
22633   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22634  as_expr=expr
22635else
22636  as_expr=false
22637fi
22638
22639if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22640  as_basename=basename
22641else
22642  as_basename=false
22643fi
22644
22645
22646# Name of the executable.
22647as_me=`$as_basename -- "$0" ||
22648$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22649	 X"$0" : 'X\(//\)$' \| \
22650	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22651$as_echo X/"$0" |
22652    sed '/^.*\/\([^/][^/]*\)\/*$/{
22653	    s//\1/
22654	    q
22655	  }
22656	  /^X\/\(\/\/\)$/{
22657	    s//\1/
22658	    q
22659	  }
22660	  /^X\/\(\/\).*/{
22661	    s//\1/
22662	    q
22663	  }
22664	  s/.*/./; q'`
22665
22666# CDPATH.
22667$as_unset CDPATH
22668
22669
22670
22671  as_lineno_1=$LINENO
22672  as_lineno_2=$LINENO
22673  test "x$as_lineno_1" != "x$as_lineno_2" &&
22674  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22675
22676  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22677  # uniformly replaced by the line number.  The first 'sed' inserts a
22678  # line-number line after each line using $LINENO; the second 'sed'
22679  # does the real work.  The second script uses 'N' to pair each
22680  # line-number line with the line containing $LINENO, and appends
22681  # trailing '-' during substitution so that $LINENO is not a special
22682  # case at line end.
22683  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22684  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22685  # E. McMahon (1931-1989) for sed's syntax.  :-)
22686  sed -n '
22687    p
22688    /[$]LINENO/=
22689  ' <$as_myself |
22690    sed '
22691      s/[$]LINENO.*/&-/
22692      t lineno
22693      b
22694      :lineno
22695      N
22696      :loop
22697      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22698      t loop
22699      s/-\n.*//
22700    ' >$as_me.lineno &&
22701  chmod +x "$as_me.lineno" ||
22702    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22703   { (exit 1); exit 1; }; }
22704
22705  # Don't try to exec as it changes $[0], causing all sort of problems
22706  # (the dirname of $[0] is not the place where we might find the
22707  # original and so on.  Autoconf is especially sensitive to this).
22708  . "./$as_me.lineno"
22709  # Exit status is that of the last command.
22710  exit
22711}
22712
22713
22714if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22715  as_dirname=dirname
22716else
22717  as_dirname=false
22718fi
22719
22720ECHO_C= ECHO_N= ECHO_T=
22721case `echo -n x` in
22722-n*)
22723  case `echo 'x\c'` in
22724  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22725  *)   ECHO_C='\c';;
22726  esac;;
22727*)
22728  ECHO_N='-n';;
22729esac
22730if expr a : '\(a\)' >/dev/null 2>&1 &&
22731   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22732  as_expr=expr
22733else
22734  as_expr=false
22735fi
22736
22737rm -f conf$$ conf$$.exe conf$$.file
22738if test -d conf$$.dir; then
22739  rm -f conf$$.dir/conf$$.file
22740else
22741  rm -f conf$$.dir
22742  mkdir conf$$.dir 2>/dev/null
22743fi
22744if (echo >conf$$.file) 2>/dev/null; then
22745  if ln -s conf$$.file conf$$ 2>/dev/null; then
22746    as_ln_s='ln -s'
22747    # ... but there are two gotchas:
22748    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22749    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22750    # In both cases, we have to default to `cp -p'.
22751    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22752      as_ln_s='cp -p'
22753  elif ln conf$$.file conf$$ 2>/dev/null; then
22754    as_ln_s=ln
22755  else
22756    as_ln_s='cp -p'
22757  fi
22758else
22759  as_ln_s='cp -p'
22760fi
22761rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22762rmdir conf$$.dir 2>/dev/null
22763
22764if mkdir -p . 2>/dev/null; then
22765  as_mkdir_p=:
22766else
22767  test -d ./-p && rmdir ./-p
22768  as_mkdir_p=false
22769fi
22770
22771if test -x / >/dev/null 2>&1; then
22772  as_test_x='test -x'
22773else
22774  if ls -dL / >/dev/null 2>&1; then
22775    as_ls_L_option=L
22776  else
22777    as_ls_L_option=
22778  fi
22779  as_test_x='
22780    eval sh -c '\''
22781      if test -d "$1"; then
22782	test -d "$1/.";
22783      else
22784	case $1 in
22785	-*)set "./$1";;
22786	esac;
22787	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22788	???[sx]*):;;*)false;;esac;fi
22789    '\'' sh
22790  '
22791fi
22792as_executable_p=$as_test_x
22793
22794# Sed expression to map a string onto a valid CPP name.
22795as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22796
22797# Sed expression to map a string onto a valid variable name.
22798as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22799
22800
22801exec 6>&1
22802
22803# Save the log message, to keep $[0] and so on meaningful, and to
22804# report actual input values of CONFIG_FILES etc. instead of their
22805# values after options handling.
22806ac_log="
22807This file was extended by xf86-video-apm $as_me 1.2.1, which was
22808generated by GNU Autoconf 2.63.  Invocation command line was
22809
22810  CONFIG_FILES    = $CONFIG_FILES
22811  CONFIG_HEADERS  = $CONFIG_HEADERS
22812  CONFIG_LINKS    = $CONFIG_LINKS
22813  CONFIG_COMMANDS = $CONFIG_COMMANDS
22814  $ $0 $@
22815
22816on `(hostname || uname -n) 2>/dev/null | sed 1q`
22817"
22818
22819_ACEOF
22820
22821case $ac_config_files in *"
22822"*) set x $ac_config_files; shift; ac_config_files=$*;;
22823esac
22824
22825case $ac_config_headers in *"
22826"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22827esac
22828
22829
22830cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22831# Files that config.status was made for.
22832config_files="$ac_config_files"
22833config_headers="$ac_config_headers"
22834config_commands="$ac_config_commands"
22835
22836_ACEOF
22837
22838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22839ac_cs_usage="\
22840\`$as_me' instantiates files from templates according to the
22841current configuration.
22842
22843Usage: $0 [OPTION]... [FILE]...
22844
22845  -h, --help       print this help, then exit
22846  -V, --version    print version number and configuration settings, then exit
22847  -q, --quiet, --silent
22848                   do not print progress messages
22849  -d, --debug      don't remove temporary files
22850      --recheck    update $as_me by reconfiguring in the same conditions
22851      --file=FILE[:TEMPLATE]
22852                   instantiate the configuration file FILE
22853      --header=FILE[:TEMPLATE]
22854                   instantiate the configuration header FILE
22855
22856Configuration files:
22857$config_files
22858
22859Configuration headers:
22860$config_headers
22861
22862Configuration commands:
22863$config_commands
22864
22865Report bugs to <bug-autoconf@gnu.org>."
22866
22867_ACEOF
22868cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22869ac_cs_version="\\
22870xf86-video-apm config.status 1.2.1
22871configured by $0, generated by GNU Autoconf 2.63,
22872  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22873
22874Copyright (C) 2008 Free Software Foundation, Inc.
22875This config.status script is free software; the Free Software Foundation
22876gives unlimited permission to copy, distribute and modify it."
22877
22878ac_pwd='$ac_pwd'
22879srcdir='$srcdir'
22880INSTALL='$INSTALL'
22881MKDIR_P='$MKDIR_P'
22882AWK='$AWK'
22883test -n "\$AWK" || AWK=awk
22884_ACEOF
22885
22886cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22887# The default lists apply if the user does not specify any file.
22888ac_need_defaults=:
22889while test $# != 0
22890do
22891  case $1 in
22892  --*=*)
22893    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22894    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22895    ac_shift=:
22896    ;;
22897  *)
22898    ac_option=$1
22899    ac_optarg=$2
22900    ac_shift=shift
22901    ;;
22902  esac
22903
22904  case $ac_option in
22905  # Handling of the options.
22906  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22907    ac_cs_recheck=: ;;
22908  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22909    $as_echo "$ac_cs_version"; exit ;;
22910  --debug | --debu | --deb | --de | --d | -d )
22911    debug=: ;;
22912  --file | --fil | --fi | --f )
22913    $ac_shift
22914    case $ac_optarg in
22915    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22916    esac
22917    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22918    ac_need_defaults=false;;
22919  --header | --heade | --head | --hea )
22920    $ac_shift
22921    case $ac_optarg in
22922    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22923    esac
22924    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22925    ac_need_defaults=false;;
22926  --he | --h)
22927    # Conflict between --help and --header
22928    { $as_echo "$as_me: error: ambiguous option: $1
22929Try \`$0 --help' for more information." >&2
22930   { (exit 1); exit 1; }; };;
22931  --help | --hel | -h )
22932    $as_echo "$ac_cs_usage"; exit ;;
22933  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22934  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22935    ac_cs_silent=: ;;
22936
22937  # This is an error.
22938  -*) { $as_echo "$as_me: error: unrecognized option: $1
22939Try \`$0 --help' for more information." >&2
22940   { (exit 1); exit 1; }; } ;;
22941
22942  *) ac_config_targets="$ac_config_targets $1"
22943     ac_need_defaults=false ;;
22944
22945  esac
22946  shift
22947done
22948
22949ac_configure_extra_args=
22950
22951if $ac_cs_silent; then
22952  exec 6>/dev/null
22953  ac_configure_extra_args="$ac_configure_extra_args --silent"
22954fi
22955
22956_ACEOF
22957cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22958if \$ac_cs_recheck; then
22959  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22960  shift
22961  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22962  CONFIG_SHELL='$SHELL'
22963  export CONFIG_SHELL
22964  exec "\$@"
22965fi
22966
22967_ACEOF
22968cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22969exec 5>>config.log
22970{
22971  echo
22972  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22973## Running $as_me. ##
22974_ASBOX
22975  $as_echo "$ac_log"
22976} >&5
22977
22978_ACEOF
22979cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22980#
22981# INIT-COMMANDS
22982#
22983AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22984
22985_ACEOF
22986
22987cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22988
22989# Handling of arguments.
22990for ac_config_target in $ac_config_targets
22991do
22992  case $ac_config_target in
22993    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22994    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22995    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22996    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22997    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22998
22999  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23000$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23001   { (exit 1); exit 1; }; };;
23002  esac
23003done
23004
23005
23006# If the user did not use the arguments to specify the items to instantiate,
23007# then the envvar interface is used.  Set only those that are not.
23008# We use the long form for the default assignment because of an extremely
23009# bizarre bug on SunOS 4.1.3.
23010if $ac_need_defaults; then
23011  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23012  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23013  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23014fi
23015
23016# Have a temporary directory for convenience.  Make it in the build tree
23017# simply because there is no reason against having it here, and in addition,
23018# creating and moving files from /tmp can sometimes cause problems.
23019# Hook for its removal unless debugging.
23020# Note that there is a small window in which the directory will not be cleaned:
23021# after its creation but before its name has been assigned to `$tmp'.
23022$debug ||
23023{
23024  tmp=
23025  trap 'exit_status=$?
23026  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23027' 0
23028  trap '{ (exit 1); exit 1; }' 1 2 13 15
23029}
23030# Create a (secure) tmp directory for tmp files.
23031
23032{
23033  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23034  test -n "$tmp" && test -d "$tmp"
23035}  ||
23036{
23037  tmp=./conf$$-$RANDOM
23038  (umask 077 && mkdir "$tmp")
23039} ||
23040{
23041   $as_echo "$as_me: cannot create a temporary directory in ." >&2
23042   { (exit 1); exit 1; }
23043}
23044
23045# Set up the scripts for CONFIG_FILES section.
23046# No need to generate them if there are no CONFIG_FILES.
23047# This happens for instance with `./config.status config.h'.
23048if test -n "$CONFIG_FILES"; then
23049
23050
23051ac_cr='
23052'
23053ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23054if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23055  ac_cs_awk_cr='\\r'
23056else
23057  ac_cs_awk_cr=$ac_cr
23058fi
23059
23060echo 'BEGIN {' >"$tmp/subs1.awk" &&
23061_ACEOF
23062
23063
23064{
23065  echo "cat >conf$$subs.awk <<_ACEOF" &&
23066  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23067  echo "_ACEOF"
23068} >conf$$subs.sh ||
23069  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23070$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23071   { (exit 1); exit 1; }; }
23072ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23073ac_delim='%!_!# '
23074for ac_last_try in false false false false false :; do
23075  . ./conf$$subs.sh ||
23076    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23077$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23078   { (exit 1); exit 1; }; }
23079
23080  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23081  if test $ac_delim_n = $ac_delim_num; then
23082    break
23083  elif $ac_last_try; then
23084    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23085$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23086   { (exit 1); exit 1; }; }
23087  else
23088    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23089  fi
23090done
23091rm -f conf$$subs.sh
23092
23093cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23094cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23095_ACEOF
23096sed -n '
23097h
23098s/^/S["/; s/!.*/"]=/
23099p
23100g
23101s/^[^!]*!//
23102:repl
23103t repl
23104s/'"$ac_delim"'$//
23105t delim
23106:nl
23107h
23108s/\(.\{148\}\).*/\1/
23109t more1
23110s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23111p
23112n
23113b repl
23114:more1
23115s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23116p
23117g
23118s/.\{148\}//
23119t nl
23120:delim
23121h
23122s/\(.\{148\}\).*/\1/
23123t more2
23124s/["\\]/\\&/g; s/^/"/; s/$/"/
23125p
23126b
23127:more2
23128s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23129p
23130g
23131s/.\{148\}//
23132t delim
23133' <conf$$subs.awk | sed '
23134/^[^""]/{
23135  N
23136  s/\n//
23137}
23138' >>$CONFIG_STATUS || ac_write_fail=1
23139rm -f conf$$subs.awk
23140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23141_ACAWK
23142cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23143  for (key in S) S_is_set[key] = 1
23144  FS = ""
23145
23146}
23147{
23148  line = $ 0
23149  nfields = split(line, field, "@")
23150  substed = 0
23151  len = length(field[1])
23152  for (i = 2; i < nfields; i++) {
23153    key = field[i]
23154    keylen = length(key)
23155    if (S_is_set[key]) {
23156      value = S[key]
23157      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23158      len += length(value) + length(field[++i])
23159      substed = 1
23160    } else
23161      len += 1 + keylen
23162  }
23163
23164  print line
23165}
23166
23167_ACAWK
23168_ACEOF
23169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23170if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23171  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23172else
23173  cat
23174fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23175  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
23176$as_echo "$as_me: error: could not setup config files machinery" >&2;}
23177   { (exit 1); exit 1; }; }
23178_ACEOF
23179
23180# VPATH may cause trouble with some makes, so we remove $(srcdir),
23181# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23182# trailing colons and then remove the whole line if VPATH becomes empty
23183# (actually we leave an empty line to preserve line numbers).
23184if test "x$srcdir" = x.; then
23185  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
23186s/:*\$(srcdir):*/:/
23187s/:*\${srcdir}:*/:/
23188s/:*@srcdir@:*/:/
23189s/^\([^=]*=[	 ]*\):*/\1/
23190s/:*$//
23191s/^[^=]*=[	 ]*$//
23192}'
23193fi
23194
23195cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23196fi # test -n "$CONFIG_FILES"
23197
23198# Set up the scripts for CONFIG_HEADERS section.
23199# No need to generate them if there are no CONFIG_HEADERS.
23200# This happens for instance with `./config.status Makefile'.
23201if test -n "$CONFIG_HEADERS"; then
23202cat >"$tmp/defines.awk" <<\_ACAWK ||
23203BEGIN {
23204_ACEOF
23205
23206# Transform confdefs.h into an awk script `defines.awk', embedded as
23207# here-document in config.status, that substitutes the proper values into
23208# config.h.in to produce config.h.
23209
23210# Create a delimiter string that does not exist in confdefs.h, to ease
23211# handling of long lines.
23212ac_delim='%!_!# '
23213for ac_last_try in false false :; do
23214  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23215  if test -z "$ac_t"; then
23216    break
23217  elif $ac_last_try; then
23218    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
23219$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
23220   { (exit 1); exit 1; }; }
23221  else
23222    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23223  fi
23224done
23225
23226# For the awk script, D is an array of macro values keyed by name,
23227# likewise P contains macro parameters if any.  Preserve backslash
23228# newline sequences.
23229
23230ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23231sed -n '
23232s/.\{148\}/&'"$ac_delim"'/g
23233t rset
23234:rset
23235s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
23236t def
23237d
23238:def
23239s/\\$//
23240t bsnl
23241s/["\\]/\\&/g
23242s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23243D["\1"]=" \3"/p
23244s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
23245d
23246:bsnl
23247s/["\\]/\\&/g
23248s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23249D["\1"]=" \3\\\\\\n"\\/p
23250t cont
23251s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23252t cont
23253d
23254:cont
23255n
23256s/.\{148\}/&'"$ac_delim"'/g
23257t clear
23258:clear
23259s/\\$//
23260t bsnlc
23261s/["\\]/\\&/g; s/^/"/; s/$/"/p
23262d
23263:bsnlc
23264s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23265b cont
23266' <confdefs.h | sed '
23267s/'"$ac_delim"'/"\\\
23268"/g' >>$CONFIG_STATUS || ac_write_fail=1
23269
23270cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23271  for (key in D) D_is_set[key] = 1
23272  FS = ""
23273}
23274/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23275  line = \$ 0
23276  split(line, arg, " ")
23277  if (arg[1] == "#") {
23278    defundef = arg[2]
23279    mac1 = arg[3]
23280  } else {
23281    defundef = substr(arg[1], 2)
23282    mac1 = arg[2]
23283  }
23284  split(mac1, mac2, "(") #)
23285  macro = mac2[1]
23286  prefix = substr(line, 1, index(line, defundef) - 1)
23287  if (D_is_set[macro]) {
23288    # Preserve the white space surrounding the "#".
23289    print prefix "define", macro P[macro] D[macro]
23290    next
23291  } else {
23292    # Replace #undef with comments.  This is necessary, for example,
23293    # in the case of _POSIX_SOURCE, which is predefined and required
23294    # on some systems where configure will not decide to define it.
23295    if (defundef == "undef") {
23296      print "/*", prefix defundef, macro, "*/"
23297      next
23298    }
23299  }
23300}
23301{ print }
23302_ACAWK
23303_ACEOF
23304cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23305  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
23306$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
23307   { (exit 1); exit 1; }; }
23308fi # test -n "$CONFIG_HEADERS"
23309
23310
23311eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23312shift
23313for ac_tag
23314do
23315  case $ac_tag in
23316  :[FHLC]) ac_mode=$ac_tag; continue;;
23317  esac
23318  case $ac_mode$ac_tag in
23319  :[FHL]*:*);;
23320  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
23321$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
23322   { (exit 1); exit 1; }; };;
23323  :[FH]-) ac_tag=-:-;;
23324  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23325  esac
23326  ac_save_IFS=$IFS
23327  IFS=:
23328  set x $ac_tag
23329  IFS=$ac_save_IFS
23330  shift
23331  ac_file=$1
23332  shift
23333
23334  case $ac_mode in
23335  :L) ac_source=$1;;
23336  :[FH])
23337    ac_file_inputs=
23338    for ac_f
23339    do
23340      case $ac_f in
23341      -) ac_f="$tmp/stdin";;
23342      *) # Look for the file first in the build tree, then in the source tree
23343	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23344	 # because $ac_f cannot contain `:'.
23345	 test -f "$ac_f" ||
23346	   case $ac_f in
23347	   [\\/$]*) false;;
23348	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23349	   esac ||
23350	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23351$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23352   { (exit 1); exit 1; }; };;
23353      esac
23354      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23355      ac_file_inputs="$ac_file_inputs '$ac_f'"
23356    done
23357
23358    # Let's still pretend it is `configure' which instantiates (i.e., don't
23359    # use $as_me), people would be surprised to read:
23360    #    /* config.h.  Generated by config.status.  */
23361    configure_input='Generated from '`
23362	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23363	`' by configure.'
23364    if test x"$ac_file" != x-; then
23365      configure_input="$ac_file.  $configure_input"
23366      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
23367$as_echo "$as_me: creating $ac_file" >&6;}
23368    fi
23369    # Neutralize special characters interpreted by sed in replacement strings.
23370    case $configure_input in #(
23371    *\&* | *\|* | *\\* )
23372       ac_sed_conf_input=`$as_echo "$configure_input" |
23373       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23374    *) ac_sed_conf_input=$configure_input;;
23375    esac
23376
23377    case $ac_tag in
23378    *:-:* | *:-) cat >"$tmp/stdin" \
23379      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23380$as_echo "$as_me: error: could not create $ac_file" >&2;}
23381   { (exit 1); exit 1; }; } ;;
23382    esac
23383    ;;
23384  esac
23385
23386  ac_dir=`$as_dirname -- "$ac_file" ||
23387$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23388	 X"$ac_file" : 'X\(//\)[^/]' \| \
23389	 X"$ac_file" : 'X\(//\)$' \| \
23390	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23391$as_echo X"$ac_file" |
23392    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23393	    s//\1/
23394	    q
23395	  }
23396	  /^X\(\/\/\)[^/].*/{
23397	    s//\1/
23398	    q
23399	  }
23400	  /^X\(\/\/\)$/{
23401	    s//\1/
23402	    q
23403	  }
23404	  /^X\(\/\).*/{
23405	    s//\1/
23406	    q
23407	  }
23408	  s/.*/./; q'`
23409  { as_dir="$ac_dir"
23410  case $as_dir in #(
23411  -*) as_dir=./$as_dir;;
23412  esac
23413  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23414    as_dirs=
23415    while :; do
23416      case $as_dir in #(
23417      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23418      *) as_qdir=$as_dir;;
23419      esac
23420      as_dirs="'$as_qdir' $as_dirs"
23421      as_dir=`$as_dirname -- "$as_dir" ||
23422$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23423	 X"$as_dir" : 'X\(//\)[^/]' \| \
23424	 X"$as_dir" : 'X\(//\)$' \| \
23425	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23426$as_echo X"$as_dir" |
23427    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23428	    s//\1/
23429	    q
23430	  }
23431	  /^X\(\/\/\)[^/].*/{
23432	    s//\1/
23433	    q
23434	  }
23435	  /^X\(\/\/\)$/{
23436	    s//\1/
23437	    q
23438	  }
23439	  /^X\(\/\).*/{
23440	    s//\1/
23441	    q
23442	  }
23443	  s/.*/./; q'`
23444      test -d "$as_dir" && break
23445    done
23446    test -z "$as_dirs" || eval "mkdir $as_dirs"
23447  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23448$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23449   { (exit 1); exit 1; }; }; }
23450  ac_builddir=.
23451
23452case "$ac_dir" in
23453.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23454*)
23455  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23456  # A ".." for each directory in $ac_dir_suffix.
23457  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23458  case $ac_top_builddir_sub in
23459  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23460  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23461  esac ;;
23462esac
23463ac_abs_top_builddir=$ac_pwd
23464ac_abs_builddir=$ac_pwd$ac_dir_suffix
23465# for backward compatibility:
23466ac_top_builddir=$ac_top_build_prefix
23467
23468case $srcdir in
23469  .)  # We are building in place.
23470    ac_srcdir=.
23471    ac_top_srcdir=$ac_top_builddir_sub
23472    ac_abs_top_srcdir=$ac_pwd ;;
23473  [\\/]* | ?:[\\/]* )  # Absolute name.
23474    ac_srcdir=$srcdir$ac_dir_suffix;
23475    ac_top_srcdir=$srcdir
23476    ac_abs_top_srcdir=$srcdir ;;
23477  *) # Relative name.
23478    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23479    ac_top_srcdir=$ac_top_build_prefix$srcdir
23480    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23481esac
23482ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23483
23484
23485  case $ac_mode in
23486  :F)
23487  #
23488  # CONFIG_FILE
23489  #
23490
23491  case $INSTALL in
23492  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23493  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23494  esac
23495  ac_MKDIR_P=$MKDIR_P
23496  case $MKDIR_P in
23497  [\\/$]* | ?:[\\/]* ) ;;
23498  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23499  esac
23500_ACEOF
23501
23502cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23503# If the template does not know about datarootdir, expand it.
23504# FIXME: This hack should be removed a few years after 2.60.
23505ac_datarootdir_hack=; ac_datarootdir_seen=
23506
23507ac_sed_dataroot='
23508/datarootdir/ {
23509  p
23510  q
23511}
23512/@datadir@/p
23513/@docdir@/p
23514/@infodir@/p
23515/@localedir@/p
23516/@mandir@/p
23517'
23518case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23519*datarootdir*) ac_datarootdir_seen=yes;;
23520*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23521  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23522$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23523_ACEOF
23524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23525  ac_datarootdir_hack='
23526  s&@datadir@&$datadir&g
23527  s&@docdir@&$docdir&g
23528  s&@infodir@&$infodir&g
23529  s&@localedir@&$localedir&g
23530  s&@mandir@&$mandir&g
23531    s&\\\${datarootdir}&$datarootdir&g' ;;
23532esac
23533_ACEOF
23534
23535# Neutralize VPATH when `$srcdir' = `.'.
23536# Shell code in configure.ac might set extrasub.
23537# FIXME: do we really want to maintain this feature?
23538cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23539ac_sed_extra="$ac_vpsub
23540$extrasub
23541_ACEOF
23542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23543:t
23544/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23545s|@configure_input@|$ac_sed_conf_input|;t t
23546s&@top_builddir@&$ac_top_builddir_sub&;t t
23547s&@top_build_prefix@&$ac_top_build_prefix&;t t
23548s&@srcdir@&$ac_srcdir&;t t
23549s&@abs_srcdir@&$ac_abs_srcdir&;t t
23550s&@top_srcdir@&$ac_top_srcdir&;t t
23551s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23552s&@builddir@&$ac_builddir&;t t
23553s&@abs_builddir@&$ac_abs_builddir&;t t
23554s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23555s&@INSTALL@&$ac_INSTALL&;t t
23556s&@MKDIR_P@&$ac_MKDIR_P&;t t
23557$ac_datarootdir_hack
23558"
23559eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23560  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23561$as_echo "$as_me: error: could not create $ac_file" >&2;}
23562   { (exit 1); exit 1; }; }
23563
23564test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23565  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23566  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23567  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23568which seems to be undefined.  Please make sure it is defined." >&5
23569$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23570which seems to be undefined.  Please make sure it is defined." >&2;}
23571
23572  rm -f "$tmp/stdin"
23573  case $ac_file in
23574  -) cat "$tmp/out" && rm -f "$tmp/out";;
23575  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23576  esac \
23577  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23578$as_echo "$as_me: error: could not create $ac_file" >&2;}
23579   { (exit 1); exit 1; }; }
23580 ;;
23581  :H)
23582  #
23583  # CONFIG_HEADER
23584  #
23585  if test x"$ac_file" != x-; then
23586    {
23587      $as_echo "/* $configure_input  */" \
23588      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23589    } >"$tmp/config.h" \
23590      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23591$as_echo "$as_me: error: could not create $ac_file" >&2;}
23592   { (exit 1); exit 1; }; }
23593    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23594      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23595$as_echo "$as_me: $ac_file is unchanged" >&6;}
23596    else
23597      rm -f "$ac_file"
23598      mv "$tmp/config.h" "$ac_file" \
23599	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23600$as_echo "$as_me: error: could not create $ac_file" >&2;}
23601   { (exit 1); exit 1; }; }
23602    fi
23603  else
23604    $as_echo "/* $configure_input  */" \
23605      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23606      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23607$as_echo "$as_me: error: could not create -" >&2;}
23608   { (exit 1); exit 1; }; }
23609  fi
23610# Compute "$ac_file"'s index in $config_headers.
23611_am_arg="$ac_file"
23612_am_stamp_count=1
23613for _am_header in $config_headers :; do
23614  case $_am_header in
23615    $_am_arg | $_am_arg:* )
23616      break ;;
23617    * )
23618      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23619  esac
23620done
23621echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23622$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23623	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23624	 X"$_am_arg" : 'X\(//\)$' \| \
23625	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23626$as_echo X"$_am_arg" |
23627    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23628	    s//\1/
23629	    q
23630	  }
23631	  /^X\(\/\/\)[^/].*/{
23632	    s//\1/
23633	    q
23634	  }
23635	  /^X\(\/\/\)$/{
23636	    s//\1/
23637	    q
23638	  }
23639	  /^X\(\/\).*/{
23640	    s//\1/
23641	    q
23642	  }
23643	  s/.*/./; q'`/stamp-h$_am_stamp_count
23644 ;;
23645
23646  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23647$as_echo "$as_me: executing $ac_file commands" >&6;}
23648 ;;
23649  esac
23650
23651
23652  case $ac_file$ac_mode in
23653    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23654  # Strip MF so we end up with the name of the file.
23655  mf=`echo "$mf" | sed -e 's/:.*$//'`
23656  # Check whether this is an Automake generated Makefile or not.
23657  # We used to match only the files named `Makefile.in', but
23658  # some people rename them; so instead we look at the file content.
23659  # Grep'ing the first line is not enough: some people post-process
23660  # each Makefile.in and add a new line on top of each file to say so.
23661  # Grep'ing the whole file is not good either: AIX grep has a line
23662  # limit of 2048, but all sed's we know have understand at least 4000.
23663  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23664    dirpart=`$as_dirname -- "$mf" ||
23665$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23666	 X"$mf" : 'X\(//\)[^/]' \| \
23667	 X"$mf" : 'X\(//\)$' \| \
23668	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23669$as_echo X"$mf" |
23670    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23671	    s//\1/
23672	    q
23673	  }
23674	  /^X\(\/\/\)[^/].*/{
23675	    s//\1/
23676	    q
23677	  }
23678	  /^X\(\/\/\)$/{
23679	    s//\1/
23680	    q
23681	  }
23682	  /^X\(\/\).*/{
23683	    s//\1/
23684	    q
23685	  }
23686	  s/.*/./; q'`
23687  else
23688    continue
23689  fi
23690  # Extract the definition of DEPDIR, am__include, and am__quote
23691  # from the Makefile without running `make'.
23692  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23693  test -z "$DEPDIR" && continue
23694  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23695  test -z "am__include" && continue
23696  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23697  # When using ansi2knr, U may be empty or an underscore; expand it
23698  U=`sed -n 's/^U = //p' < "$mf"`
23699  # Find all dependency output files, they are included files with
23700  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23701  # simplest approach to changing $(DEPDIR) to its actual value in the
23702  # expansion.
23703  for file in `sed -n "
23704    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23705       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23706    # Make sure the directory exists.
23707    test -f "$dirpart/$file" && continue
23708    fdir=`$as_dirname -- "$file" ||
23709$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23710	 X"$file" : 'X\(//\)[^/]' \| \
23711	 X"$file" : 'X\(//\)$' \| \
23712	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23713$as_echo X"$file" |
23714    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23715	    s//\1/
23716	    q
23717	  }
23718	  /^X\(\/\/\)[^/].*/{
23719	    s//\1/
23720	    q
23721	  }
23722	  /^X\(\/\/\)$/{
23723	    s//\1/
23724	    q
23725	  }
23726	  /^X\(\/\).*/{
23727	    s//\1/
23728	    q
23729	  }
23730	  s/.*/./; q'`
23731    { as_dir=$dirpart/$fdir
23732  case $as_dir in #(
23733  -*) as_dir=./$as_dir;;
23734  esac
23735  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23736    as_dirs=
23737    while :; do
23738      case $as_dir in #(
23739      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23740      *) as_qdir=$as_dir;;
23741      esac
23742      as_dirs="'$as_qdir' $as_dirs"
23743      as_dir=`$as_dirname -- "$as_dir" ||
23744$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23745	 X"$as_dir" : 'X\(//\)[^/]' \| \
23746	 X"$as_dir" : 'X\(//\)$' \| \
23747	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23748$as_echo X"$as_dir" |
23749    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23750	    s//\1/
23751	    q
23752	  }
23753	  /^X\(\/\/\)[^/].*/{
23754	    s//\1/
23755	    q
23756	  }
23757	  /^X\(\/\/\)$/{
23758	    s//\1/
23759	    q
23760	  }
23761	  /^X\(\/\).*/{
23762	    s//\1/
23763	    q
23764	  }
23765	  s/.*/./; q'`
23766      test -d "$as_dir" && break
23767    done
23768    test -z "$as_dirs" || eval "mkdir $as_dirs"
23769  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23770$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23771   { (exit 1); exit 1; }; }; }
23772    # echo "creating $dirpart/$file"
23773    echo '# dummy' > "$dirpart/$file"
23774  done
23775done
23776 ;;
23777
23778  esac
23779done # for ac_tag
23780
23781
23782{ (exit 0); exit 0; }
23783_ACEOF
23784chmod +x $CONFIG_STATUS
23785ac_clean_files=$ac_clean_files_save
23786
23787test $ac_write_fail = 0 ||
23788  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23789$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23790   { (exit 1); exit 1; }; }
23791
23792
23793# configure is writing to config.log, and then calls config.status.
23794# config.status does its own redirection, appending to config.log.
23795# Unfortunately, on DOS this fails, as config.log is still kept open
23796# by configure, so config.status won't be able to write to it; its
23797# output is simply discarded.  So we exec the FD to /dev/null,
23798# effectively closing config.log, so it can be properly (re)opened and
23799# appended to by config.status.  When coming back to configure, we
23800# need to make the FD available again.
23801if test "$no_create" != yes; then
23802  ac_cs_success=:
23803  ac_config_status_args=
23804  test "$silent" = yes &&
23805    ac_config_status_args="$ac_config_status_args --quiet"
23806  exec 5>/dev/null
23807  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23808  exec 5>>config.log
23809  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23810  # would make configure fail if this is the last instruction.
23811  $ac_cs_success || { (exit 1); exit 1; }
23812fi
23813if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23814  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23815$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23816fi
23817
23818