configure revision 79a8a9c6
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for xf86-input-keyboard 1.3.2.
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-input-keyboard'
752PACKAGE_TARNAME='xf86-input-keyboard'
753PACKAGE_VERSION='1.3.2'
754PACKAGE_STRING='xf86-input-keyboard 1.3.2'
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
796distcleancheck_listfiles
797CHANGELOG_CMD
798ADMIN_MAN_DIR
799DRIVER_MAN_DIR
800MISC_MAN_DIR
801FILE_MAN_DIR
802LIB_MAN_DIR
803APP_MAN_DIR
804ADMIN_MAN_SUFFIX
805DRIVER_MAN_SUFFIX
806MISC_MAN_SUFFIX
807FILE_MAN_SUFFIX
808LIB_MAN_SUFFIX
809APP_MAN_SUFFIX
810CWARNFLAGS
811XORG_LIBS
812XORG_CFLAGS
813PKG_CONFIG
814moduledir
815SCO_FALSE
816SCO_TRUE
817HURD_FALSE
818HURD_TRUE
819SOLARIS_FALSE
820SOLARIS_TRUE
821BSD_FALSE
822BSD_TRUE
823LINUX_FALSE
824LINUX_TRUE
825LIBTOOL
826ac_ct_F77
827FFLAGS
828F77
829CXXCPP
830am__fastdepCXX_FALSE
831am__fastdepCXX_TRUE
832CXXDEPMODE
833ac_ct_CXX
834CXXFLAGS
835CXX
836CPP
837NMEDIT
838DSYMUTIL
839RANLIB
840AR
841ECHO
842LN_S
843EGREP
844GREP
845SED
846am__fastdepCC_FALSE
847am__fastdepCC_TRUE
848CCDEPMODE
849AMDEPBACKSLASH
850AMDEP_FALSE
851AMDEP_TRUE
852am__quote
853am__include
854DEPDIR
855OBJEXT
856EXEEXT
857ac_ct_CC
858CPPFLAGS
859LDFLAGS
860CFLAGS
861CC
862host_os
863host_vendor
864host_cpu
865host
866build_os
867build_vendor
868build_cpu
869build
870DRIVER_NAME
871MAINT
872MAINTAINER_MODE_FALSE
873MAINTAINER_MODE_TRUE
874am__untar
875am__tar
876AMTAR
877am__leading_dot
878SET_MAKE
879AWK
880mkdir_p
881MKDIR_P
882INSTALL_STRIP_PROGRAM
883STRIP
884install_sh
885MAKEINFO
886AUTOHEADER
887AUTOMAKE
888AUTOCONF
889ACLOCAL
890VERSION
891PACKAGE
892CYGPATH_W
893am__isrc
894INSTALL_DATA
895INSTALL_SCRIPT
896INSTALL_PROGRAM
897target_alias
898host_alias
899build_alias
900LIBS
901ECHO_T
902ECHO_N
903ECHO_C
904DEFS
905mandir
906localedir
907libdir
908psdir
909pdfdir
910dvidir
911htmldir
912infodir
913docdir
914oldincludedir
915includedir
916localstatedir
917sharedstatedir
918sysconfdir
919datadir
920datarootdir
921libexecdir
922sbindir
923bindir
924program_transform_name
925prefix
926exec_prefix
927PACKAGE_BUGREPORT
928PACKAGE_STRING
929PACKAGE_VERSION
930PACKAGE_TARNAME
931PACKAGE_NAME
932PATH_SEPARATOR
933SHELL'
934ac_subst_files=''
935ac_user_opts='
936enable_option_checking
937enable_maintainer_mode
938enable_static
939enable_shared
940enable_fast_install
941enable_dependency_tracking
942with_gnu_ld
943enable_libtool_lock
944with_pic
945with_tags
946with_xorg_module_dir
947with_release_version
948'
949      ac_precious_vars='build_alias
950host_alias
951target_alias
952CC
953CFLAGS
954LDFLAGS
955LIBS
956CPPFLAGS
957CPP
958CXX
959CXXFLAGS
960CCC
961CXXCPP
962F77
963FFLAGS
964PKG_CONFIG
965XORG_CFLAGS
966XORG_LIBS'
967
968
969# Initialize some variables set by options.
970ac_init_help=
971ac_init_version=false
972ac_unrecognized_opts=
973ac_unrecognized_sep=
974# The variables have the same names as the options, with
975# dashes changed to underlines.
976cache_file=/dev/null
977exec_prefix=NONE
978no_create=
979no_recursion=
980prefix=NONE
981program_prefix=NONE
982program_suffix=NONE
983program_transform_name=s,x,x,
984silent=
985site=
986srcdir=
987verbose=
988x_includes=NONE
989x_libraries=NONE
990
991# Installation directory options.
992# These are left unexpanded so users can "make install exec_prefix=/foo"
993# and all the variables that are supposed to be based on exec_prefix
994# by default will actually change.
995# Use braces instead of parens because sh, perl, etc. also accept them.
996# (The list follows the same order as the GNU Coding Standards.)
997bindir='${exec_prefix}/bin'
998sbindir='${exec_prefix}/sbin'
999libexecdir='${exec_prefix}/libexec'
1000datarootdir='${prefix}/share'
1001datadir='${datarootdir}'
1002sysconfdir='${prefix}/etc'
1003sharedstatedir='${prefix}/com'
1004localstatedir='${prefix}/var'
1005includedir='${prefix}/include'
1006oldincludedir='/usr/include'
1007docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1008infodir='${datarootdir}/info'
1009htmldir='${docdir}'
1010dvidir='${docdir}'
1011pdfdir='${docdir}'
1012psdir='${docdir}'
1013libdir='${exec_prefix}/lib'
1014localedir='${datarootdir}/locale'
1015mandir='${datarootdir}/man'
1016
1017ac_prev=
1018ac_dashdash=
1019for ac_option
1020do
1021  # If the previous option needs an argument, assign it.
1022  if test -n "$ac_prev"; then
1023    eval $ac_prev=\$ac_option
1024    ac_prev=
1025    continue
1026  fi
1027
1028  case $ac_option in
1029  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1030  *)	ac_optarg=yes ;;
1031  esac
1032
1033  # Accept the important Cygnus configure options, so we can diagnose typos.
1034
1035  case $ac_dashdash$ac_option in
1036  --)
1037    ac_dashdash=yes ;;
1038
1039  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1040    ac_prev=bindir ;;
1041  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1042    bindir=$ac_optarg ;;
1043
1044  -build | --build | --buil | --bui | --bu)
1045    ac_prev=build_alias ;;
1046  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1047    build_alias=$ac_optarg ;;
1048
1049  -cache-file | --cache-file | --cache-fil | --cache-fi \
1050  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1051    ac_prev=cache_file ;;
1052  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1053  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1054    cache_file=$ac_optarg ;;
1055
1056  --config-cache | -C)
1057    cache_file=config.cache ;;
1058
1059  -datadir | --datadir | --datadi | --datad)
1060    ac_prev=datadir ;;
1061  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1062    datadir=$ac_optarg ;;
1063
1064  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1065  | --dataroo | --dataro | --datar)
1066    ac_prev=datarootdir ;;
1067  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1068  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1069    datarootdir=$ac_optarg ;;
1070
1071  -disable-* | --disable-*)
1072    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1073    # Reject names that are not valid shell variable names.
1074    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1076   { (exit 1); exit 1; }; }
1077    ac_useropt_orig=$ac_useropt
1078    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079    case $ac_user_opts in
1080      *"
1081"enable_$ac_useropt"
1082"*) ;;
1083      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1084	 ac_unrecognized_sep=', ';;
1085    esac
1086    eval enable_$ac_useropt=no ;;
1087
1088  -docdir | --docdir | --docdi | --doc | --do)
1089    ac_prev=docdir ;;
1090  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1091    docdir=$ac_optarg ;;
1092
1093  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1094    ac_prev=dvidir ;;
1095  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1096    dvidir=$ac_optarg ;;
1097
1098  -enable-* | --enable-*)
1099    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1100    # Reject names that are not valid shell variable names.
1101    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1103   { (exit 1); exit 1; }; }
1104    ac_useropt_orig=$ac_useropt
1105    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106    case $ac_user_opts in
1107      *"
1108"enable_$ac_useropt"
1109"*) ;;
1110      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1111	 ac_unrecognized_sep=', ';;
1112    esac
1113    eval enable_$ac_useropt=\$ac_optarg ;;
1114
1115  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1116  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1117  | --exec | --exe | --ex)
1118    ac_prev=exec_prefix ;;
1119  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1120  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1121  | --exec=* | --exe=* | --ex=*)
1122    exec_prefix=$ac_optarg ;;
1123
1124  -gas | --gas | --ga | --g)
1125    # Obsolete; use --with-gas.
1126    with_gas=yes ;;
1127
1128  -help | --help | --hel | --he | -h)
1129    ac_init_help=long ;;
1130  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1131    ac_init_help=recursive ;;
1132  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1133    ac_init_help=short ;;
1134
1135  -host | --host | --hos | --ho)
1136    ac_prev=host_alias ;;
1137  -host=* | --host=* | --hos=* | --ho=*)
1138    host_alias=$ac_optarg ;;
1139
1140  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1141    ac_prev=htmldir ;;
1142  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1143  | --ht=*)
1144    htmldir=$ac_optarg ;;
1145
1146  -includedir | --includedir | --includedi | --included | --include \
1147  | --includ | --inclu | --incl | --inc)
1148    ac_prev=includedir ;;
1149  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1150  | --includ=* | --inclu=* | --incl=* | --inc=*)
1151    includedir=$ac_optarg ;;
1152
1153  -infodir | --infodir | --infodi | --infod | --info | --inf)
1154    ac_prev=infodir ;;
1155  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1156    infodir=$ac_optarg ;;
1157
1158  -libdir | --libdir | --libdi | --libd)
1159    ac_prev=libdir ;;
1160  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1161    libdir=$ac_optarg ;;
1162
1163  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1164  | --libexe | --libex | --libe)
1165    ac_prev=libexecdir ;;
1166  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1167  | --libexe=* | --libex=* | --libe=*)
1168    libexecdir=$ac_optarg ;;
1169
1170  -localedir | --localedir | --localedi | --localed | --locale)
1171    ac_prev=localedir ;;
1172  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1173    localedir=$ac_optarg ;;
1174
1175  -localstatedir | --localstatedir | --localstatedi | --localstated \
1176  | --localstate | --localstat | --localsta | --localst | --locals)
1177    ac_prev=localstatedir ;;
1178  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1179  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1180    localstatedir=$ac_optarg ;;
1181
1182  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1183    ac_prev=mandir ;;
1184  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1185    mandir=$ac_optarg ;;
1186
1187  -nfp | --nfp | --nf)
1188    # Obsolete; use --without-fp.
1189    with_fp=no ;;
1190
1191  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1192  | --no-cr | --no-c | -n)
1193    no_create=yes ;;
1194
1195  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1196  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1197    no_recursion=yes ;;
1198
1199  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1200  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1201  | --oldin | --oldi | --old | --ol | --o)
1202    ac_prev=oldincludedir ;;
1203  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1204  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1205  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1206    oldincludedir=$ac_optarg ;;
1207
1208  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1209    ac_prev=prefix ;;
1210  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1211    prefix=$ac_optarg ;;
1212
1213  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1214  | --program-pre | --program-pr | --program-p)
1215    ac_prev=program_prefix ;;
1216  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1217  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1218    program_prefix=$ac_optarg ;;
1219
1220  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1221  | --program-suf | --program-su | --program-s)
1222    ac_prev=program_suffix ;;
1223  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1224  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1225    program_suffix=$ac_optarg ;;
1226
1227  -program-transform-name | --program-transform-name \
1228  | --program-transform-nam | --program-transform-na \
1229  | --program-transform-n | --program-transform- \
1230  | --program-transform | --program-transfor \
1231  | --program-transfo | --program-transf \
1232  | --program-trans | --program-tran \
1233  | --progr-tra | --program-tr | --program-t)
1234    ac_prev=program_transform_name ;;
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    program_transform_name=$ac_optarg ;;
1243
1244  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1245    ac_prev=pdfdir ;;
1246  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1247    pdfdir=$ac_optarg ;;
1248
1249  -psdir | --psdir | --psdi | --psd | --ps)
1250    ac_prev=psdir ;;
1251  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1252    psdir=$ac_optarg ;;
1253
1254  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255  | -silent | --silent | --silen | --sile | --sil)
1256    silent=yes ;;
1257
1258  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1259    ac_prev=sbindir ;;
1260  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1261  | --sbi=* | --sb=*)
1262    sbindir=$ac_optarg ;;
1263
1264  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1265  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1266  | --sharedst | --shareds | --shared | --share | --shar \
1267  | --sha | --sh)
1268    ac_prev=sharedstatedir ;;
1269  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1270  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1271  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1272  | --sha=* | --sh=*)
1273    sharedstatedir=$ac_optarg ;;
1274
1275  -site | --site | --sit)
1276    ac_prev=site ;;
1277  -site=* | --site=* | --sit=*)
1278    site=$ac_optarg ;;
1279
1280  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1281    ac_prev=srcdir ;;
1282  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1283    srcdir=$ac_optarg ;;
1284
1285  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1286  | --syscon | --sysco | --sysc | --sys | --sy)
1287    ac_prev=sysconfdir ;;
1288  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1289  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1290    sysconfdir=$ac_optarg ;;
1291
1292  -target | --target | --targe | --targ | --tar | --ta | --t)
1293    ac_prev=target_alias ;;
1294  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1295    target_alias=$ac_optarg ;;
1296
1297  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1298    verbose=yes ;;
1299
1300  -version | --version | --versio | --versi | --vers | -V)
1301    ac_init_version=: ;;
1302
1303  -with-* | --with-*)
1304    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1305    # Reject names that are not valid shell variable names.
1306    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1308   { (exit 1); exit 1; }; }
1309    ac_useropt_orig=$ac_useropt
1310    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1311    case $ac_user_opts in
1312      *"
1313"with_$ac_useropt"
1314"*) ;;
1315      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1316	 ac_unrecognized_sep=', ';;
1317    esac
1318    eval with_$ac_useropt=\$ac_optarg ;;
1319
1320  -without-* | --without-*)
1321    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1322    # Reject names that are not valid shell variable names.
1323    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1324      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1325   { (exit 1); exit 1; }; }
1326    ac_useropt_orig=$ac_useropt
1327    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1328    case $ac_user_opts in
1329      *"
1330"with_$ac_useropt"
1331"*) ;;
1332      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1333	 ac_unrecognized_sep=', ';;
1334    esac
1335    eval with_$ac_useropt=no ;;
1336
1337  --x)
1338    # Obsolete; use --with-x.
1339    with_x=yes ;;
1340
1341  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1342  | --x-incl | --x-inc | --x-in | --x-i)
1343    ac_prev=x_includes ;;
1344  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1345  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1346    x_includes=$ac_optarg ;;
1347
1348  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1349  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1350    ac_prev=x_libraries ;;
1351  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1352  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1353    x_libraries=$ac_optarg ;;
1354
1355  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1356Try \`$0 --help' for more information." >&2
1357   { (exit 1); exit 1; }; }
1358    ;;
1359
1360  *=*)
1361    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1362    # Reject names that are not valid shell variable names.
1363    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1364      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1365   { (exit 1); exit 1; }; }
1366    eval $ac_envvar=\$ac_optarg
1367    export $ac_envvar ;;
1368
1369  *)
1370    # FIXME: should be removed in autoconf 3.0.
1371    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1372    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1373      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1374    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1375    ;;
1376
1377  esac
1378done
1379
1380if test -n "$ac_prev"; then
1381  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1382  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1383   { (exit 1); exit 1; }; }
1384fi
1385
1386if test -n "$ac_unrecognized_opts"; then
1387  case $enable_option_checking in
1388    no) ;;
1389    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1390   { (exit 1); exit 1; }; } ;;
1391    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1392  esac
1393fi
1394
1395# Check all directory arguments for consistency.
1396for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1397		datadir sysconfdir sharedstatedir localstatedir includedir \
1398		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1399		libdir localedir mandir
1400do
1401  eval ac_val=\$$ac_var
1402  # Remove trailing slashes.
1403  case $ac_val in
1404    */ )
1405      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1406      eval $ac_var=\$ac_val;;
1407  esac
1408  # Be sure to have absolute directory names.
1409  case $ac_val in
1410    [\\/$]* | ?:[\\/]* )  continue;;
1411    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1412  esac
1413  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1414   { (exit 1); exit 1; }; }
1415done
1416
1417# There might be people who depend on the old broken behavior: `$host'
1418# used to hold the argument of --host etc.
1419# FIXME: To remove some day.
1420build=$build_alias
1421host=$host_alias
1422target=$target_alias
1423
1424# FIXME: To remove some day.
1425if test "x$host_alias" != x; then
1426  if test "x$build_alias" = x; then
1427    cross_compiling=maybe
1428    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1429    If a cross compiler is detected then cross compile mode will be used." >&2
1430  elif test "x$build_alias" != "x$host_alias"; then
1431    cross_compiling=yes
1432  fi
1433fi
1434
1435ac_tool_prefix=
1436test -n "$host_alias" && ac_tool_prefix=$host_alias-
1437
1438test "$silent" = yes && exec 6>/dev/null
1439
1440
1441ac_pwd=`pwd` && test -n "$ac_pwd" &&
1442ac_ls_di=`ls -di .` &&
1443ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1444  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1445   { (exit 1); exit 1; }; }
1446test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1447  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1448   { (exit 1); exit 1; }; }
1449
1450
1451# Find the source files, if location was not specified.
1452if test -z "$srcdir"; then
1453  ac_srcdir_defaulted=yes
1454  # Try the directory containing this script, then the parent directory.
1455  ac_confdir=`$as_dirname -- "$as_myself" ||
1456$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1457	 X"$as_myself" : 'X\(//\)[^/]' \| \
1458	 X"$as_myself" : 'X\(//\)$' \| \
1459	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1460$as_echo X"$as_myself" |
1461    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1462	    s//\1/
1463	    q
1464	  }
1465	  /^X\(\/\/\)[^/].*/{
1466	    s//\1/
1467	    q
1468	  }
1469	  /^X\(\/\/\)$/{
1470	    s//\1/
1471	    q
1472	  }
1473	  /^X\(\/\).*/{
1474	    s//\1/
1475	    q
1476	  }
1477	  s/.*/./; q'`
1478  srcdir=$ac_confdir
1479  if test ! -r "$srcdir/$ac_unique_file"; then
1480    srcdir=..
1481  fi
1482else
1483  ac_srcdir_defaulted=no
1484fi
1485if test ! -r "$srcdir/$ac_unique_file"; then
1486  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1487  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1488   { (exit 1); exit 1; }; }
1489fi
1490ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1491ac_abs_confdir=`(
1492	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1493   { (exit 1); exit 1; }; }
1494	pwd)`
1495# When building in place, set srcdir=.
1496if test "$ac_abs_confdir" = "$ac_pwd"; then
1497  srcdir=.
1498fi
1499# Remove unnecessary trailing slashes from srcdir.
1500# Double slashes in file names in object file debugging info
1501# mess up M-x gdb in Emacs.
1502case $srcdir in
1503*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1504esac
1505for ac_var in $ac_precious_vars; do
1506  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1507  eval ac_env_${ac_var}_value=\$${ac_var}
1508  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1509  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1510done
1511
1512#
1513# Report the --help message.
1514#
1515if test "$ac_init_help" = "long"; then
1516  # Omit some internal or obsolete options to make the list less imposing.
1517  # This message is too long to be a string in the A/UX 3.1 sh.
1518  cat <<_ACEOF
1519\`configure' configures xf86-input-keyboard 1.3.2 to adapt to many kinds of systems.
1520
1521Usage: $0 [OPTION]... [VAR=VALUE]...
1522
1523To assign environment variables (e.g., CC, CFLAGS...), specify them as
1524VAR=VALUE.  See below for descriptions of some of the useful variables.
1525
1526Defaults for the options are specified in brackets.
1527
1528Configuration:
1529  -h, --help              display this help and exit
1530      --help=short        display options specific to this package
1531      --help=recursive    display the short help of all the included packages
1532  -V, --version           display version information and exit
1533  -q, --quiet, --silent   do not print \`checking...' messages
1534      --cache-file=FILE   cache test results in FILE [disabled]
1535  -C, --config-cache      alias for \`--cache-file=config.cache'
1536  -n, --no-create         do not create output files
1537      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1538
1539Installation directories:
1540  --prefix=PREFIX         install architecture-independent files in PREFIX
1541                          [$ac_default_prefix]
1542  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1543                          [PREFIX]
1544
1545By default, \`make install' will install all the files in
1546\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1547an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1548for instance \`--prefix=\$HOME'.
1549
1550For better control, use the options below.
1551
1552Fine tuning of the installation directories:
1553  --bindir=DIR            user executables [EPREFIX/bin]
1554  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1555  --libexecdir=DIR        program executables [EPREFIX/libexec]
1556  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1557  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1558  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1559  --libdir=DIR            object code libraries [EPREFIX/lib]
1560  --includedir=DIR        C header files [PREFIX/include]
1561  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1562  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1563  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1564  --infodir=DIR           info documentation [DATAROOTDIR/info]
1565  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1566  --mandir=DIR            man documentation [DATAROOTDIR/man]
1567  --docdir=DIR            documentation root
1568                          [DATAROOTDIR/doc/xf86-input-keyboard]
1569  --htmldir=DIR           html documentation [DOCDIR]
1570  --dvidir=DIR            dvi documentation [DOCDIR]
1571  --pdfdir=DIR            pdf documentation [DOCDIR]
1572  --psdir=DIR             ps documentation [DOCDIR]
1573_ACEOF
1574
1575  cat <<\_ACEOF
1576
1577Program names:
1578  --program-prefix=PREFIX            prepend PREFIX to installed program names
1579  --program-suffix=SUFFIX            append SUFFIX to installed program names
1580  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1581
1582System types:
1583  --build=BUILD     configure for building on BUILD [guessed]
1584  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1585_ACEOF
1586fi
1587
1588if test -n "$ac_init_help"; then
1589  case $ac_init_help in
1590     short | recursive ) echo "Configuration of xf86-input-keyboard 1.3.2:";;
1591   esac
1592  cat <<\_ACEOF
1593
1594Optional Features:
1595  --disable-option-checking  ignore unrecognized --enable/--with options
1596  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1597  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1598  --enable-maintainer-mode  enable make rules and dependencies not useful
1599			  (and sometimes confusing) to the casual installer
1600  --enable-static[=PKGS]  build static libraries [default=no]
1601  --enable-shared[=PKGS]  build shared libraries [default=yes]
1602  --enable-fast-install[=PKGS]
1603                          optimize for fast installation [default=yes]
1604  --disable-dependency-tracking  speeds up one-time build
1605  --enable-dependency-tracking   do not reject slow dependency extractors
1606  --disable-libtool-lock  avoid locking (might break parallel builds)
1607
1608Optional Packages:
1609  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1610  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1611  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1612  --with-pic              try to use only PIC/non-PIC objects [default=use
1613                          both]
1614  --with-tags[=TAGS]      include additional configurations [automatic]
1615  --with-xorg-module-dir=DIR
1616                          Default xorg module directory
1617                          [default=$libdir/xorg/modules]
1618  --with-release-version=STRING
1619                          Use release version string in package name
1620
1621Some influential environment variables:
1622  CC          C compiler command
1623  CFLAGS      C compiler flags
1624  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1625              nonstandard directory <lib dir>
1626  LIBS        libraries to pass to the linker, e.g. -l<library>
1627  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1628              you have headers in a nonstandard directory <include dir>
1629  CPP         C preprocessor
1630  CXX         C++ compiler command
1631  CXXFLAGS    C++ compiler flags
1632  CXXCPP      C++ preprocessor
1633  F77         Fortran 77 compiler command
1634  FFLAGS      Fortran 77 compiler flags
1635  PKG_CONFIG  path to pkg-config utility
1636  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1637  XORG_LIBS   linker flags for XORG, overriding pkg-config
1638
1639Use these variables to override the choices made by `configure' or to help
1640it to find libraries and programs with nonstandard names/locations.
1641
1642Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1643_ACEOF
1644ac_status=$?
1645fi
1646
1647if test "$ac_init_help" = "recursive"; then
1648  # If there are subdirs, report their specific --help.
1649  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1650    test -d "$ac_dir" ||
1651      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1652      continue
1653    ac_builddir=.
1654
1655case "$ac_dir" in
1656.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657*)
1658  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1659  # A ".." for each directory in $ac_dir_suffix.
1660  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1661  case $ac_top_builddir_sub in
1662  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1664  esac ;;
1665esac
1666ac_abs_top_builddir=$ac_pwd
1667ac_abs_builddir=$ac_pwd$ac_dir_suffix
1668# for backward compatibility:
1669ac_top_builddir=$ac_top_build_prefix
1670
1671case $srcdir in
1672  .)  # We are building in place.
1673    ac_srcdir=.
1674    ac_top_srcdir=$ac_top_builddir_sub
1675    ac_abs_top_srcdir=$ac_pwd ;;
1676  [\\/]* | ?:[\\/]* )  # Absolute name.
1677    ac_srcdir=$srcdir$ac_dir_suffix;
1678    ac_top_srcdir=$srcdir
1679    ac_abs_top_srcdir=$srcdir ;;
1680  *) # Relative name.
1681    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1682    ac_top_srcdir=$ac_top_build_prefix$srcdir
1683    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1684esac
1685ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1686
1687    cd "$ac_dir" || { ac_status=$?; continue; }
1688    # Check for guested configure.
1689    if test -f "$ac_srcdir/configure.gnu"; then
1690      echo &&
1691      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1692    elif test -f "$ac_srcdir/configure"; then
1693      echo &&
1694      $SHELL "$ac_srcdir/configure" --help=recursive
1695    else
1696      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1697    fi || ac_status=$?
1698    cd "$ac_pwd" || { ac_status=$?; break; }
1699  done
1700fi
1701
1702test -n "$ac_init_help" && exit $ac_status
1703if $ac_init_version; then
1704  cat <<\_ACEOF
1705xf86-input-keyboard configure 1.3.2
1706generated by GNU Autoconf 2.63
1707
1708Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17092002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1710This configure script is free software; the Free Software Foundation
1711gives unlimited permission to copy, distribute and modify it.
1712_ACEOF
1713  exit
1714fi
1715cat >config.log <<_ACEOF
1716This file contains any messages produced by compilers while
1717running configure, to aid debugging if configure makes a mistake.
1718
1719It was created by xf86-input-keyboard $as_me 1.3.2, which was
1720generated by GNU Autoconf 2.63.  Invocation command line was
1721
1722  $ $0 $@
1723
1724_ACEOF
1725exec 5>>config.log
1726{
1727cat <<_ASUNAME
1728## --------- ##
1729## Platform. ##
1730## --------- ##
1731
1732hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1733uname -m = `(uname -m) 2>/dev/null || echo unknown`
1734uname -r = `(uname -r) 2>/dev/null || echo unknown`
1735uname -s = `(uname -s) 2>/dev/null || echo unknown`
1736uname -v = `(uname -v) 2>/dev/null || echo unknown`
1737
1738/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1739/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1740
1741/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1742/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1743/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1744/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1745/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1746/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1747/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1748
1749_ASUNAME
1750
1751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752for as_dir in $PATH
1753do
1754  IFS=$as_save_IFS
1755  test -z "$as_dir" && as_dir=.
1756  $as_echo "PATH: $as_dir"
1757done
1758IFS=$as_save_IFS
1759
1760} >&5
1761
1762cat >&5 <<_ACEOF
1763
1764
1765## ----------- ##
1766## Core tests. ##
1767## ----------- ##
1768
1769_ACEOF
1770
1771
1772# Keep a trace of the command line.
1773# Strip out --no-create and --no-recursion so they do not pile up.
1774# Strip out --silent because we don't want to record it for future runs.
1775# Also quote any args containing shell meta-characters.
1776# Make two passes to allow for proper duplicate-argument suppression.
1777ac_configure_args=
1778ac_configure_args0=
1779ac_configure_args1=
1780ac_must_keep_next=false
1781for ac_pass in 1 2
1782do
1783  for ac_arg
1784  do
1785    case $ac_arg in
1786    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1787    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1788    | -silent | --silent | --silen | --sile | --sil)
1789      continue ;;
1790    *\'*)
1791      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1792    esac
1793    case $ac_pass in
1794    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1795    2)
1796      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1797      if test $ac_must_keep_next = true; then
1798	ac_must_keep_next=false # Got value, back to normal.
1799      else
1800	case $ac_arg in
1801	  *=* | --config-cache | -C | -disable-* | --disable-* \
1802	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1803	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1804	  | -with-* | --with-* | -without-* | --without-* | --x)
1805	    case "$ac_configure_args0 " in
1806	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1807	    esac
1808	    ;;
1809	  -* ) ac_must_keep_next=true ;;
1810	esac
1811      fi
1812      ac_configure_args="$ac_configure_args '$ac_arg'"
1813      ;;
1814    esac
1815  done
1816done
1817$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1818$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1819
1820# When interrupted or exit'd, cleanup temporary files, and complete
1821# config.log.  We remove comments because anyway the quotes in there
1822# would cause problems or look ugly.
1823# WARNING: Use '\'' to represent an apostrophe within the trap.
1824# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1825trap 'exit_status=$?
1826  # Save into config.log some information that might help in debugging.
1827  {
1828    echo
1829
1830    cat <<\_ASBOX
1831## ---------------- ##
1832## Cache variables. ##
1833## ---------------- ##
1834_ASBOX
1835    echo
1836    # The following way of writing the cache mishandles newlines in values,
1837(
1838  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1839    eval ac_val=\$$ac_var
1840    case $ac_val in #(
1841    *${as_nl}*)
1842      case $ac_var in #(
1843      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1844$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1845      esac
1846      case $ac_var in #(
1847      _ | IFS | as_nl) ;; #(
1848      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1849      *) $as_unset $ac_var ;;
1850      esac ;;
1851    esac
1852  done
1853  (set) 2>&1 |
1854    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1855    *${as_nl}ac_space=\ *)
1856      sed -n \
1857	"s/'\''/'\''\\\\'\'''\''/g;
1858	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1859      ;; #(
1860    *)
1861      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1862      ;;
1863    esac |
1864    sort
1865)
1866    echo
1867
1868    cat <<\_ASBOX
1869## ----------------- ##
1870## Output variables. ##
1871## ----------------- ##
1872_ASBOX
1873    echo
1874    for ac_var in $ac_subst_vars
1875    do
1876      eval ac_val=\$$ac_var
1877      case $ac_val in
1878      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1879      esac
1880      $as_echo "$ac_var='\''$ac_val'\''"
1881    done | sort
1882    echo
1883
1884    if test -n "$ac_subst_files"; then
1885      cat <<\_ASBOX
1886## ------------------- ##
1887## File substitutions. ##
1888## ------------------- ##
1889_ASBOX
1890      echo
1891      for ac_var in $ac_subst_files
1892      do
1893	eval ac_val=\$$ac_var
1894	case $ac_val in
1895	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1896	esac
1897	$as_echo "$ac_var='\''$ac_val'\''"
1898      done | sort
1899      echo
1900    fi
1901
1902    if test -s confdefs.h; then
1903      cat <<\_ASBOX
1904## ----------- ##
1905## confdefs.h. ##
1906## ----------- ##
1907_ASBOX
1908      echo
1909      cat confdefs.h
1910      echo
1911    fi
1912    test "$ac_signal" != 0 &&
1913      $as_echo "$as_me: caught signal $ac_signal"
1914    $as_echo "$as_me: exit $exit_status"
1915  } >&5
1916  rm -f core *.core core.conftest.* &&
1917    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1918    exit $exit_status
1919' 0
1920for ac_signal in 1 2 13 15; do
1921  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1922done
1923ac_signal=0
1924
1925# confdefs.h avoids OS command line length limits that DEFS can exceed.
1926rm -f -r conftest* confdefs.h
1927
1928# Predefined preprocessor variables.
1929
1930cat >>confdefs.h <<_ACEOF
1931#define PACKAGE_NAME "$PACKAGE_NAME"
1932_ACEOF
1933
1934
1935cat >>confdefs.h <<_ACEOF
1936#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1937_ACEOF
1938
1939
1940cat >>confdefs.h <<_ACEOF
1941#define PACKAGE_VERSION "$PACKAGE_VERSION"
1942_ACEOF
1943
1944
1945cat >>confdefs.h <<_ACEOF
1946#define PACKAGE_STRING "$PACKAGE_STRING"
1947_ACEOF
1948
1949
1950cat >>confdefs.h <<_ACEOF
1951#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1952_ACEOF
1953
1954
1955# Let the site file select an alternate cache file if it wants to.
1956# Prefer an explicitly selected file to automatically selected ones.
1957ac_site_file1=NONE
1958ac_site_file2=NONE
1959if test -n "$CONFIG_SITE"; then
1960  ac_site_file1=$CONFIG_SITE
1961elif test "x$prefix" != xNONE; then
1962  ac_site_file1=$prefix/share/config.site
1963  ac_site_file2=$prefix/etc/config.site
1964else
1965  ac_site_file1=$ac_default_prefix/share/config.site
1966  ac_site_file2=$ac_default_prefix/etc/config.site
1967fi
1968for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1969do
1970  test "x$ac_site_file" = xNONE && continue
1971  if test -r "$ac_site_file"; then
1972    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1973$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1974    sed 's/^/| /' "$ac_site_file" >&5
1975    . "$ac_site_file"
1976  fi
1977done
1978
1979if test -r "$cache_file"; then
1980  # Some versions of bash will fail to source /dev/null (special
1981  # files actually), so we avoid doing that.
1982  if test -f "$cache_file"; then
1983    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1984$as_echo "$as_me: loading cache $cache_file" >&6;}
1985    case $cache_file in
1986      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1987      *)                      . "./$cache_file";;
1988    esac
1989  fi
1990else
1991  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1992$as_echo "$as_me: creating cache $cache_file" >&6;}
1993  >$cache_file
1994fi
1995
1996# Check that the precious variables saved in the cache have kept the same
1997# value.
1998ac_cache_corrupted=false
1999for ac_var in $ac_precious_vars; do
2000  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2001  eval ac_new_set=\$ac_env_${ac_var}_set
2002  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2003  eval ac_new_val=\$ac_env_${ac_var}_value
2004  case $ac_old_set,$ac_new_set in
2005    set,)
2006      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2007$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2008      ac_cache_corrupted=: ;;
2009    ,set)
2010      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2011$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2012      ac_cache_corrupted=: ;;
2013    ,);;
2014    *)
2015      if test "x$ac_old_val" != "x$ac_new_val"; then
2016	# differences in whitespace do not lead to failure.
2017	ac_old_val_w=`echo x $ac_old_val`
2018	ac_new_val_w=`echo x $ac_new_val`
2019	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2020	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2021$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2022	  ac_cache_corrupted=:
2023	else
2024	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2025$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2026	  eval $ac_var=\$ac_old_val
2027	fi
2028	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2029$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2030	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2031$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2032      fi;;
2033  esac
2034  # Pass precious variables to config.status.
2035  if test "$ac_new_set" = set; then
2036    case $ac_new_val in
2037    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2038    *) ac_arg=$ac_var=$ac_new_val ;;
2039    esac
2040    case " $ac_configure_args " in
2041      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2042      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2043    esac
2044  fi
2045done
2046if $ac_cache_corrupted; then
2047  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2049  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2050$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2051  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2052$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2053   { (exit 1); exit 1; }; }
2054fi
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080ac_ext=c
2081ac_cpp='$CPP $CPPFLAGS'
2082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2084ac_compiler_gnu=$ac_cv_c_compiler_gnu
2085
2086
2087
2088# Require xorg-macros version 1.2 or newer for XORG_CWARNFLAGS and
2089# XORG_CHANGELOG macros
2090
2091
2092	XORG_MACROS_needed_version=1.2.1
2093	XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
2094	XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2095	{ $as_echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5
2096$as_echo_n "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... " >&6; }
2097	XORG_MACROS_version=1.2.1
2098	XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
2099	XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2100	if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
2101		{ { $as_echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5
2102$as_echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;}
2103   { (exit 1); exit 1; }; }
2104	fi
2105	if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
2106		{ { $as_echo "$as_me:$LINENO: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&5
2107$as_echo "$as_me: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&2;}
2108   { (exit 1); exit 1; }; }
2109	fi
2110	{ $as_echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5
2111$as_echo "yes, $XORG_MACROS_version" >&6; }
2112
2113
2114
2115ac_aux_dir=
2116for ac_dir in . "$srcdir"/.; do
2117  if test -f "$ac_dir/install-sh"; then
2118    ac_aux_dir=$ac_dir
2119    ac_install_sh="$ac_aux_dir/install-sh -c"
2120    break
2121  elif test -f "$ac_dir/install.sh"; then
2122    ac_aux_dir=$ac_dir
2123    ac_install_sh="$ac_aux_dir/install.sh -c"
2124    break
2125  elif test -f "$ac_dir/shtool"; then
2126    ac_aux_dir=$ac_dir
2127    ac_install_sh="$ac_aux_dir/shtool install -c"
2128    break
2129  fi
2130done
2131if test -z "$ac_aux_dir"; then
2132  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2133$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2134   { (exit 1); exit 1; }; }
2135fi
2136
2137# These three variables are undocumented and unsupported,
2138# and are intended to be withdrawn in a future Autoconf release.
2139# They can cause serious problems if a builder's source tree is in a directory
2140# whose full name contains unusual characters.
2141ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2142ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2143ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2144
2145
2146am__api_version='1.10'
2147
2148# Find a good install program.  We prefer a C program (faster),
2149# so one script is as good as another.  But avoid the broken or
2150# incompatible versions:
2151# SysV /etc/install, /usr/sbin/install
2152# SunOS /usr/etc/install
2153# IRIX /sbin/install
2154# AIX /bin/install
2155# AmigaOS /C/install, which installs bootblocks on floppy discs
2156# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2157# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2158# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2159# OS/2's system install, which has a completely different semantic
2160# ./install, which can be erroneously created by make from ./install.sh.
2161# Reject install programs that cannot install multiple files.
2162{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2163$as_echo_n "checking for a BSD-compatible install... " >&6; }
2164if test -z "$INSTALL"; then
2165if test "${ac_cv_path_install+set}" = set; then
2166  $as_echo_n "(cached) " >&6
2167else
2168  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169for as_dir in $PATH
2170do
2171  IFS=$as_save_IFS
2172  test -z "$as_dir" && as_dir=.
2173  # Account for people who put trailing slashes in PATH elements.
2174case $as_dir/ in
2175  ./ | .// | /cC/* | \
2176  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2177  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2178  /usr/ucb/* ) ;;
2179  *)
2180    # OSF1 and SCO ODT 3.0 have their own names for install.
2181    # Don't use installbsd from OSF since it installs stuff as root
2182    # by default.
2183    for ac_prog in ginstall scoinst install; do
2184      for ac_exec_ext in '' $ac_executable_extensions; do
2185	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2186	  if test $ac_prog = install &&
2187	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2188	    # AIX install.  It has an incompatible calling convention.
2189	    :
2190	  elif test $ac_prog = install &&
2191	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2192	    # program-specific install script used by HP pwplus--don't use.
2193	    :
2194	  else
2195	    rm -rf conftest.one conftest.two conftest.dir
2196	    echo one > conftest.one
2197	    echo two > conftest.two
2198	    mkdir conftest.dir
2199	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2200	      test -s conftest.one && test -s conftest.two &&
2201	      test -s conftest.dir/conftest.one &&
2202	      test -s conftest.dir/conftest.two
2203	    then
2204	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2205	      break 3
2206	    fi
2207	  fi
2208	fi
2209      done
2210    done
2211    ;;
2212esac
2213
2214done
2215IFS=$as_save_IFS
2216
2217rm -rf conftest.one conftest.two conftest.dir
2218
2219fi
2220  if test "${ac_cv_path_install+set}" = set; then
2221    INSTALL=$ac_cv_path_install
2222  else
2223    # As a last resort, use the slow shell script.  Don't cache a
2224    # value for INSTALL within a source directory, because that will
2225    # break other packages using the cache if that directory is
2226    # removed, or if the value is a relative name.
2227    INSTALL=$ac_install_sh
2228  fi
2229fi
2230{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2231$as_echo "$INSTALL" >&6; }
2232
2233# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2234# It thinks the first close brace ends the variable substitution.
2235test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2236
2237test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2238
2239test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2240
2241{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2242$as_echo_n "checking whether build environment is sane... " >&6; }
2243# Just in case
2244sleep 1
2245echo timestamp > conftest.file
2246# Do `set' in a subshell so we don't clobber the current shell's
2247# arguments.  Must try -L first in case configure is actually a
2248# symlink; some systems play weird games with the mod time of symlinks
2249# (eg FreeBSD returns the mod time of the symlink's containing
2250# directory).
2251if (
2252   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2253   if test "$*" = "X"; then
2254      # -L didn't work.
2255      set X `ls -t $srcdir/configure conftest.file`
2256   fi
2257   rm -f conftest.file
2258   if test "$*" != "X $srcdir/configure conftest.file" \
2259      && test "$*" != "X conftest.file $srcdir/configure"; then
2260
2261      # If neither matched, then we have a broken ls.  This can happen
2262      # if, for instance, CONFIG_SHELL is bash and it inherits a
2263      # broken ls alias from the environment.  This has actually
2264      # happened.  Such a system could not be considered "sane".
2265      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2266alias in your environment" >&5
2267$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2268alias in your environment" >&2;}
2269   { (exit 1); exit 1; }; }
2270   fi
2271
2272   test "$2" = conftest.file
2273   )
2274then
2275   # Ok.
2276   :
2277else
2278   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2279Check your system clock" >&5
2280$as_echo "$as_me: error: newly created file is older than distributed files!
2281Check your system clock" >&2;}
2282   { (exit 1); exit 1; }; }
2283fi
2284{ $as_echo "$as_me:$LINENO: result: yes" >&5
2285$as_echo "yes" >&6; }
2286test "$program_prefix" != NONE &&
2287  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2288# Use a double $ so make ignores it.
2289test "$program_suffix" != NONE &&
2290  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2291# Double any \ or $.
2292# By default was `s,x,x', remove it if useless.
2293ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2294program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2295
2296# expand $ac_aux_dir to an absolute path
2297am_aux_dir=`cd $ac_aux_dir && pwd`
2298
2299test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2300# Use eval to expand $SHELL
2301if eval "$MISSING --run true"; then
2302  am_missing_run="$MISSING --run "
2303else
2304  am_missing_run=
2305  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2306$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2307fi
2308
2309{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2310$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2311if test -z "$MKDIR_P"; then
2312  if test "${ac_cv_path_mkdir+set}" = set; then
2313  $as_echo_n "(cached) " >&6
2314else
2315  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2317do
2318  IFS=$as_save_IFS
2319  test -z "$as_dir" && as_dir=.
2320  for ac_prog in mkdir gmkdir; do
2321	 for ac_exec_ext in '' $ac_executable_extensions; do
2322	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2323	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2324	     'mkdir (GNU coreutils) '* | \
2325	     'mkdir (coreutils) '* | \
2326	     'mkdir (fileutils) '4.1*)
2327	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2328	       break 3;;
2329	   esac
2330	 done
2331       done
2332done
2333IFS=$as_save_IFS
2334
2335fi
2336
2337  if test "${ac_cv_path_mkdir+set}" = set; then
2338    MKDIR_P="$ac_cv_path_mkdir -p"
2339  else
2340    # As a last resort, use the slow shell script.  Don't cache a
2341    # value for MKDIR_P within a source directory, because that will
2342    # break other packages using the cache if that directory is
2343    # removed, or if the value is a relative name.
2344    test -d ./--version && rmdir ./--version
2345    MKDIR_P="$ac_install_sh -d"
2346  fi
2347fi
2348{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2349$as_echo "$MKDIR_P" >&6; }
2350
2351mkdir_p="$MKDIR_P"
2352case $mkdir_p in
2353  [\\/$]* | ?:[\\/]*) ;;
2354  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2355esac
2356
2357for ac_prog in gawk mawk nawk awk
2358do
2359  # Extract the first word of "$ac_prog", so it can be a program name with args.
2360set dummy $ac_prog; ac_word=$2
2361{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2362$as_echo_n "checking for $ac_word... " >&6; }
2363if test "${ac_cv_prog_AWK+set}" = set; then
2364  $as_echo_n "(cached) " >&6
2365else
2366  if test -n "$AWK"; then
2367  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2368else
2369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370for as_dir in $PATH
2371do
2372  IFS=$as_save_IFS
2373  test -z "$as_dir" && as_dir=.
2374  for ac_exec_ext in '' $ac_executable_extensions; do
2375  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2376    ac_cv_prog_AWK="$ac_prog"
2377    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378    break 2
2379  fi
2380done
2381done
2382IFS=$as_save_IFS
2383
2384fi
2385fi
2386AWK=$ac_cv_prog_AWK
2387if test -n "$AWK"; then
2388  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2389$as_echo "$AWK" >&6; }
2390else
2391  { $as_echo "$as_me:$LINENO: result: no" >&5
2392$as_echo "no" >&6; }
2393fi
2394
2395
2396  test -n "$AWK" && break
2397done
2398
2399{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2400$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2401set x ${MAKE-make}
2402ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2403if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2404  $as_echo_n "(cached) " >&6
2405else
2406  cat >conftest.make <<\_ACEOF
2407SHELL = /bin/sh
2408all:
2409	@echo '@@@%%%=$(MAKE)=@@@%%%'
2410_ACEOF
2411# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2412case `${MAKE-make} -f conftest.make 2>/dev/null` in
2413  *@@@%%%=?*=@@@%%%*)
2414    eval ac_cv_prog_make_${ac_make}_set=yes;;
2415  *)
2416    eval ac_cv_prog_make_${ac_make}_set=no;;
2417esac
2418rm -f conftest.make
2419fi
2420if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2421  { $as_echo "$as_me:$LINENO: result: yes" >&5
2422$as_echo "yes" >&6; }
2423  SET_MAKE=
2424else
2425  { $as_echo "$as_me:$LINENO: result: no" >&5
2426$as_echo "no" >&6; }
2427  SET_MAKE="MAKE=${MAKE-make}"
2428fi
2429
2430rm -rf .tst 2>/dev/null
2431mkdir .tst 2>/dev/null
2432if test -d .tst; then
2433  am__leading_dot=.
2434else
2435  am__leading_dot=_
2436fi
2437rmdir .tst 2>/dev/null
2438
2439if test "`cd $srcdir && pwd`" != "`pwd`"; then
2440  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2441  # is not polluted with repeated "-I."
2442  am__isrc=' -I$(srcdir)'
2443  # test to see if srcdir already configured
2444  if test -f $srcdir/config.status; then
2445    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2446$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2447   { (exit 1); exit 1; }; }
2448  fi
2449fi
2450
2451# test whether we have cygpath
2452if test -z "$CYGPATH_W"; then
2453  if (cygpath --version) >/dev/null 2>/dev/null; then
2454    CYGPATH_W='cygpath -w'
2455  else
2456    CYGPATH_W=echo
2457  fi
2458fi
2459
2460
2461# Define the identity of the package.
2462 PACKAGE='xf86-input-keyboard'
2463 VERSION='1.3.2'
2464
2465
2466cat >>confdefs.h <<_ACEOF
2467#define PACKAGE "$PACKAGE"
2468_ACEOF
2469
2470
2471cat >>confdefs.h <<_ACEOF
2472#define VERSION "$VERSION"
2473_ACEOF
2474
2475# Some tools Automake needs.
2476
2477ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2478
2479
2480AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2481
2482
2483AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2484
2485
2486AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2487
2488
2489MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2490
2491install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2492
2493# Installed binaries are usually stripped using `strip' when the user
2494# run `make install-strip'.  However `strip' might not be the right
2495# tool to use in cross-compilation environments, therefore Automake
2496# will honor the `STRIP' environment variable to overrule this program.
2497if test "$cross_compiling" != no; then
2498  if test -n "$ac_tool_prefix"; then
2499  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2500set dummy ${ac_tool_prefix}strip; ac_word=$2
2501{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2502$as_echo_n "checking for $ac_word... " >&6; }
2503if test "${ac_cv_prog_STRIP+set}" = set; then
2504  $as_echo_n "(cached) " >&6
2505else
2506  if test -n "$STRIP"; then
2507  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2508else
2509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510for as_dir in $PATH
2511do
2512  IFS=$as_save_IFS
2513  test -z "$as_dir" && as_dir=.
2514  for ac_exec_ext in '' $ac_executable_extensions; do
2515  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2516    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2517    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518    break 2
2519  fi
2520done
2521done
2522IFS=$as_save_IFS
2523
2524fi
2525fi
2526STRIP=$ac_cv_prog_STRIP
2527if test -n "$STRIP"; then
2528  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2529$as_echo "$STRIP" >&6; }
2530else
2531  { $as_echo "$as_me:$LINENO: result: no" >&5
2532$as_echo "no" >&6; }
2533fi
2534
2535
2536fi
2537if test -z "$ac_cv_prog_STRIP"; then
2538  ac_ct_STRIP=$STRIP
2539  # Extract the first word of "strip", so it can be a program name with args.
2540set dummy strip; ac_word=$2
2541{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2542$as_echo_n "checking for $ac_word... " >&6; }
2543if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2544  $as_echo_n "(cached) " >&6
2545else
2546  if test -n "$ac_ct_STRIP"; then
2547  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2548else
2549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550for as_dir in $PATH
2551do
2552  IFS=$as_save_IFS
2553  test -z "$as_dir" && as_dir=.
2554  for ac_exec_ext in '' $ac_executable_extensions; do
2555  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2556    ac_cv_prog_ac_ct_STRIP="strip"
2557    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558    break 2
2559  fi
2560done
2561done
2562IFS=$as_save_IFS
2563
2564fi
2565fi
2566ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2567if test -n "$ac_ct_STRIP"; then
2568  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2569$as_echo "$ac_ct_STRIP" >&6; }
2570else
2571  { $as_echo "$as_me:$LINENO: result: no" >&5
2572$as_echo "no" >&6; }
2573fi
2574
2575  if test "x$ac_ct_STRIP" = x; then
2576    STRIP=":"
2577  else
2578    case $cross_compiling:$ac_tool_warned in
2579yes:)
2580{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2582ac_tool_warned=yes ;;
2583esac
2584    STRIP=$ac_ct_STRIP
2585  fi
2586else
2587  STRIP="$ac_cv_prog_STRIP"
2588fi
2589
2590fi
2591INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2592
2593# We need awk for the "check" target.  The system "awk" is bad on
2594# some platforms.
2595# Always define AMTAR for backward compatibility.
2596
2597AMTAR=${AMTAR-"${am_missing_run}tar"}
2598
2599am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2600
2601
2602
2603
2604
2605
2606{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2607$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2608    # Check whether --enable-maintainer-mode was given.
2609if test "${enable_maintainer_mode+set}" = set; then
2610  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2611else
2612  USE_MAINTAINER_MODE=no
2613fi
2614
2615  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2616$as_echo "$USE_MAINTAINER_MODE" >&6; }
2617   if test $USE_MAINTAINER_MODE = yes; then
2618  MAINTAINER_MODE_TRUE=
2619  MAINTAINER_MODE_FALSE='#'
2620else
2621  MAINTAINER_MODE_TRUE='#'
2622  MAINTAINER_MODE_FALSE=
2623fi
2624
2625  MAINT=$MAINTAINER_MODE_TRUE
2626
2627
2628
2629DRIVER_NAME=kbd
2630
2631
2632ac_config_headers="$ac_config_headers config.h"
2633
2634
2635# Checks for programs.
2636# Check whether --enable-static was given.
2637if test "${enable_static+set}" = set; then
2638  enableval=$enable_static; p=${PACKAGE-default}
2639    case $enableval in
2640    yes) enable_static=yes ;;
2641    no) enable_static=no ;;
2642    *)
2643     enable_static=no
2644      # Look at the argument we got.  We use all the common list separators.
2645      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2646      for pkg in $enableval; do
2647	IFS="$lt_save_ifs"
2648	if test "X$pkg" = "X$p"; then
2649	  enable_static=yes
2650	fi
2651      done
2652      IFS="$lt_save_ifs"
2653      ;;
2654    esac
2655else
2656  enable_static=no
2657fi
2658
2659
2660
2661# Check whether --enable-shared was given.
2662if test "${enable_shared+set}" = set; then
2663  enableval=$enable_shared; p=${PACKAGE-default}
2664    case $enableval in
2665    yes) enable_shared=yes ;;
2666    no) enable_shared=no ;;
2667    *)
2668      enable_shared=no
2669      # Look at the argument we got.  We use all the common list separators.
2670      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2671      for pkg in $enableval; do
2672	IFS="$lt_save_ifs"
2673	if test "X$pkg" = "X$p"; then
2674	  enable_shared=yes
2675	fi
2676      done
2677      IFS="$lt_save_ifs"
2678      ;;
2679    esac
2680else
2681  enable_shared=yes
2682fi
2683
2684
2685# Check whether --enable-fast-install was given.
2686if test "${enable_fast_install+set}" = set; then
2687  enableval=$enable_fast_install; p=${PACKAGE-default}
2688    case $enableval in
2689    yes) enable_fast_install=yes ;;
2690    no) enable_fast_install=no ;;
2691    *)
2692      enable_fast_install=no
2693      # Look at the argument we got.  We use all the common list separators.
2694      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2695      for pkg in $enableval; do
2696	IFS="$lt_save_ifs"
2697	if test "X$pkg" = "X$p"; then
2698	  enable_fast_install=yes
2699	fi
2700      done
2701      IFS="$lt_save_ifs"
2702      ;;
2703    esac
2704else
2705  enable_fast_install=yes
2706fi
2707
2708
2709# Make sure we can run config.sub.
2710$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2711  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2712$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2713   { (exit 1); exit 1; }; }
2714
2715{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2716$as_echo_n "checking build system type... " >&6; }
2717if test "${ac_cv_build+set}" = set; then
2718  $as_echo_n "(cached) " >&6
2719else
2720  ac_build_alias=$build_alias
2721test "x$ac_build_alias" = x &&
2722  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2723test "x$ac_build_alias" = x &&
2724  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2725$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2726   { (exit 1); exit 1; }; }
2727ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2728  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2729$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2730   { (exit 1); exit 1; }; }
2731
2732fi
2733{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2734$as_echo "$ac_cv_build" >&6; }
2735case $ac_cv_build in
2736*-*-*) ;;
2737*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2738$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2739   { (exit 1); exit 1; }; };;
2740esac
2741build=$ac_cv_build
2742ac_save_IFS=$IFS; IFS='-'
2743set x $ac_cv_build
2744shift
2745build_cpu=$1
2746build_vendor=$2
2747shift; shift
2748# Remember, the first character of IFS is used to create $*,
2749# except with old shells:
2750build_os=$*
2751IFS=$ac_save_IFS
2752case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2753
2754
2755{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2756$as_echo_n "checking host system type... " >&6; }
2757if test "${ac_cv_host+set}" = set; then
2758  $as_echo_n "(cached) " >&6
2759else
2760  if test "x$host_alias" = x; then
2761  ac_cv_host=$ac_cv_build
2762else
2763  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2764    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2765$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2766   { (exit 1); exit 1; }; }
2767fi
2768
2769fi
2770{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2771$as_echo "$ac_cv_host" >&6; }
2772case $ac_cv_host in
2773*-*-*) ;;
2774*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2775$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2776   { (exit 1); exit 1; }; };;
2777esac
2778host=$ac_cv_host
2779ac_save_IFS=$IFS; IFS='-'
2780set x $ac_cv_host
2781shift
2782host_cpu=$1
2783host_vendor=$2
2784shift; shift
2785# Remember, the first character of IFS is used to create $*,
2786# except with old shells:
2787host_os=$*
2788IFS=$ac_save_IFS
2789case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2790
2791
2792DEPDIR="${am__leading_dot}deps"
2793
2794ac_config_commands="$ac_config_commands depfiles"
2795
2796
2797am_make=${MAKE-make}
2798cat > confinc << 'END'
2799am__doit:
2800	@echo done
2801.PHONY: am__doit
2802END
2803# If we don't find an include directive, just comment out the code.
2804{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2805$as_echo_n "checking for style of include used by $am_make... " >&6; }
2806am__include="#"
2807am__quote=
2808_am_result=none
2809# First try GNU make style include.
2810echo "include confinc" > confmf
2811# We grep out `Entering directory' and `Leaving directory'
2812# messages which can occur if `w' ends up in MAKEFLAGS.
2813# In particular we don't look at `^make:' because GNU make might
2814# be invoked under some other name (usually "gmake"), in which
2815# case it prints its new name instead of `make'.
2816if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2817   am__include=include
2818   am__quote=
2819   _am_result=GNU
2820fi
2821# Now try BSD make style include.
2822if test "$am__include" = "#"; then
2823   echo '.include "confinc"' > confmf
2824   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2825      am__include=.include
2826      am__quote="\""
2827      _am_result=BSD
2828   fi
2829fi
2830
2831
2832{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2833$as_echo "$_am_result" >&6; }
2834rm -f confinc confmf
2835
2836# Check whether --enable-dependency-tracking was given.
2837if test "${enable_dependency_tracking+set}" = set; then
2838  enableval=$enable_dependency_tracking;
2839fi
2840
2841if test "x$enable_dependency_tracking" != xno; then
2842  am_depcomp="$ac_aux_dir/depcomp"
2843  AMDEPBACKSLASH='\'
2844fi
2845 if test "x$enable_dependency_tracking" != xno; then
2846  AMDEP_TRUE=
2847  AMDEP_FALSE='#'
2848else
2849  AMDEP_TRUE='#'
2850  AMDEP_FALSE=
2851fi
2852
2853
2854ac_ext=c
2855ac_cpp='$CPP $CPPFLAGS'
2856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2858ac_compiler_gnu=$ac_cv_c_compiler_gnu
2859if test -n "$ac_tool_prefix"; then
2860  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2861set dummy ${ac_tool_prefix}gcc; ac_word=$2
2862{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2863$as_echo_n "checking for $ac_word... " >&6; }
2864if test "${ac_cv_prog_CC+set}" = set; then
2865  $as_echo_n "(cached) " >&6
2866else
2867  if test -n "$CC"; then
2868  ac_cv_prog_CC="$CC" # Let the user override the test.
2869else
2870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871for as_dir in $PATH
2872do
2873  IFS=$as_save_IFS
2874  test -z "$as_dir" && as_dir=.
2875  for ac_exec_ext in '' $ac_executable_extensions; do
2876  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2877    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2878    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879    break 2
2880  fi
2881done
2882done
2883IFS=$as_save_IFS
2884
2885fi
2886fi
2887CC=$ac_cv_prog_CC
2888if test -n "$CC"; then
2889  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2890$as_echo "$CC" >&6; }
2891else
2892  { $as_echo "$as_me:$LINENO: result: no" >&5
2893$as_echo "no" >&6; }
2894fi
2895
2896
2897fi
2898if test -z "$ac_cv_prog_CC"; then
2899  ac_ct_CC=$CC
2900  # Extract the first word of "gcc", so it can be a program name with args.
2901set dummy gcc; ac_word=$2
2902{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2903$as_echo_n "checking for $ac_word... " >&6; }
2904if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2905  $as_echo_n "(cached) " >&6
2906else
2907  if test -n "$ac_ct_CC"; then
2908  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2909else
2910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911for as_dir in $PATH
2912do
2913  IFS=$as_save_IFS
2914  test -z "$as_dir" && as_dir=.
2915  for ac_exec_ext in '' $ac_executable_extensions; do
2916  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917    ac_cv_prog_ac_ct_CC="gcc"
2918    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919    break 2
2920  fi
2921done
2922done
2923IFS=$as_save_IFS
2924
2925fi
2926fi
2927ac_ct_CC=$ac_cv_prog_ac_ct_CC
2928if test -n "$ac_ct_CC"; then
2929  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2930$as_echo "$ac_ct_CC" >&6; }
2931else
2932  { $as_echo "$as_me:$LINENO: result: no" >&5
2933$as_echo "no" >&6; }
2934fi
2935
2936  if test "x$ac_ct_CC" = x; then
2937    CC=""
2938  else
2939    case $cross_compiling:$ac_tool_warned in
2940yes:)
2941{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2943ac_tool_warned=yes ;;
2944esac
2945    CC=$ac_ct_CC
2946  fi
2947else
2948  CC="$ac_cv_prog_CC"
2949fi
2950
2951if test -z "$CC"; then
2952          if test -n "$ac_tool_prefix"; then
2953    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2954set dummy ${ac_tool_prefix}cc; ac_word=$2
2955{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2956$as_echo_n "checking for $ac_word... " >&6; }
2957if test "${ac_cv_prog_CC+set}" = set; then
2958  $as_echo_n "(cached) " >&6
2959else
2960  if test -n "$CC"; then
2961  ac_cv_prog_CC="$CC" # Let the user override the test.
2962else
2963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964for as_dir in $PATH
2965do
2966  IFS=$as_save_IFS
2967  test -z "$as_dir" && as_dir=.
2968  for ac_exec_ext in '' $ac_executable_extensions; do
2969  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2970    ac_cv_prog_CC="${ac_tool_prefix}cc"
2971    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2972    break 2
2973  fi
2974done
2975done
2976IFS=$as_save_IFS
2977
2978fi
2979fi
2980CC=$ac_cv_prog_CC
2981if test -n "$CC"; then
2982  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2983$as_echo "$CC" >&6; }
2984else
2985  { $as_echo "$as_me:$LINENO: result: no" >&5
2986$as_echo "no" >&6; }
2987fi
2988
2989
2990  fi
2991fi
2992if test -z "$CC"; then
2993  # Extract the first word of "cc", so it can be a program name with args.
2994set dummy cc; ac_word=$2
2995{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2996$as_echo_n "checking for $ac_word... " >&6; }
2997if test "${ac_cv_prog_CC+set}" = set; then
2998  $as_echo_n "(cached) " >&6
2999else
3000  if test -n "$CC"; then
3001  ac_cv_prog_CC="$CC" # Let the user override the test.
3002else
3003  ac_prog_rejected=no
3004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005for as_dir in $PATH
3006do
3007  IFS=$as_save_IFS
3008  test -z "$as_dir" && as_dir=.
3009  for ac_exec_ext in '' $ac_executable_extensions; do
3010  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3012       ac_prog_rejected=yes
3013       continue
3014     fi
3015    ac_cv_prog_CC="cc"
3016    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3017    break 2
3018  fi
3019done
3020done
3021IFS=$as_save_IFS
3022
3023if test $ac_prog_rejected = yes; then
3024  # We found a bogon in the path, so make sure we never use it.
3025  set dummy $ac_cv_prog_CC
3026  shift
3027  if test $# != 0; then
3028    # We chose a different compiler from the bogus one.
3029    # However, it has the same basename, so the bogon will be chosen
3030    # first if we set CC to just the basename; use the full file name.
3031    shift
3032    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3033  fi
3034fi
3035fi
3036fi
3037CC=$ac_cv_prog_CC
3038if test -n "$CC"; then
3039  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3040$as_echo "$CC" >&6; }
3041else
3042  { $as_echo "$as_me:$LINENO: result: no" >&5
3043$as_echo "no" >&6; }
3044fi
3045
3046
3047fi
3048if test -z "$CC"; then
3049  if test -n "$ac_tool_prefix"; then
3050  for ac_prog in cl.exe
3051  do
3052    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3053set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3054{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3055$as_echo_n "checking for $ac_word... " >&6; }
3056if test "${ac_cv_prog_CC+set}" = set; then
3057  $as_echo_n "(cached) " >&6
3058else
3059  if test -n "$CC"; then
3060  ac_cv_prog_CC="$CC" # Let the user override the test.
3061else
3062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063for as_dir in $PATH
3064do
3065  IFS=$as_save_IFS
3066  test -z "$as_dir" && as_dir=.
3067  for ac_exec_ext in '' $ac_executable_extensions; do
3068  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3069    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3070    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3071    break 2
3072  fi
3073done
3074done
3075IFS=$as_save_IFS
3076
3077fi
3078fi
3079CC=$ac_cv_prog_CC
3080if test -n "$CC"; then
3081  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3082$as_echo "$CC" >&6; }
3083else
3084  { $as_echo "$as_me:$LINENO: result: no" >&5
3085$as_echo "no" >&6; }
3086fi
3087
3088
3089    test -n "$CC" && break
3090  done
3091fi
3092if test -z "$CC"; then
3093  ac_ct_CC=$CC
3094  for ac_prog in cl.exe
3095do
3096  # Extract the first word of "$ac_prog", so it can be a program name with args.
3097set dummy $ac_prog; ac_word=$2
3098{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3099$as_echo_n "checking for $ac_word... " >&6; }
3100if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3101  $as_echo_n "(cached) " >&6
3102else
3103  if test -n "$ac_ct_CC"; then
3104  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3105else
3106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107for as_dir in $PATH
3108do
3109  IFS=$as_save_IFS
3110  test -z "$as_dir" && as_dir=.
3111  for ac_exec_ext in '' $ac_executable_extensions; do
3112  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113    ac_cv_prog_ac_ct_CC="$ac_prog"
3114    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3115    break 2
3116  fi
3117done
3118done
3119IFS=$as_save_IFS
3120
3121fi
3122fi
3123ac_ct_CC=$ac_cv_prog_ac_ct_CC
3124if test -n "$ac_ct_CC"; then
3125  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3126$as_echo "$ac_ct_CC" >&6; }
3127else
3128  { $as_echo "$as_me:$LINENO: result: no" >&5
3129$as_echo "no" >&6; }
3130fi
3131
3132
3133  test -n "$ac_ct_CC" && break
3134done
3135
3136  if test "x$ac_ct_CC" = x; then
3137    CC=""
3138  else
3139    case $cross_compiling:$ac_tool_warned in
3140yes:)
3141{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3143ac_tool_warned=yes ;;
3144esac
3145    CC=$ac_ct_CC
3146  fi
3147fi
3148
3149fi
3150
3151
3152test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3154{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3155See \`config.log' for more details." >&5
3156$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3157See \`config.log' for more details." >&2;}
3158   { (exit 1); exit 1; }; }; }
3159
3160# Provide some information about the compiler.
3161$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3162set X $ac_compile
3163ac_compiler=$2
3164{ (ac_try="$ac_compiler --version >&5"
3165case "(($ac_try" in
3166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167  *) ac_try_echo=$ac_try;;
3168esac
3169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3170$as_echo "$ac_try_echo") >&5
3171  (eval "$ac_compiler --version >&5") 2>&5
3172  ac_status=$?
3173  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174  (exit $ac_status); }
3175{ (ac_try="$ac_compiler -v >&5"
3176case "(($ac_try" in
3177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178  *) ac_try_echo=$ac_try;;
3179esac
3180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3181$as_echo "$ac_try_echo") >&5
3182  (eval "$ac_compiler -v >&5") 2>&5
3183  ac_status=$?
3184  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185  (exit $ac_status); }
3186{ (ac_try="$ac_compiler -V >&5"
3187case "(($ac_try" in
3188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189  *) ac_try_echo=$ac_try;;
3190esac
3191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3192$as_echo "$ac_try_echo") >&5
3193  (eval "$ac_compiler -V >&5") 2>&5
3194  ac_status=$?
3195  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196  (exit $ac_status); }
3197
3198cat >conftest.$ac_ext <<_ACEOF
3199/* confdefs.h.  */
3200_ACEOF
3201cat confdefs.h >>conftest.$ac_ext
3202cat >>conftest.$ac_ext <<_ACEOF
3203/* end confdefs.h.  */
3204
3205int
3206main ()
3207{
3208
3209  ;
3210  return 0;
3211}
3212_ACEOF
3213ac_clean_files_save=$ac_clean_files
3214ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3215# Try to create an executable without -o first, disregard a.out.
3216# It will help us diagnose broken compilers, and finding out an intuition
3217# of exeext.
3218{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3219$as_echo_n "checking for C compiler default output file name... " >&6; }
3220ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3221
3222# The possible output files:
3223ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3224
3225ac_rmfiles=
3226for ac_file in $ac_files
3227do
3228  case $ac_file in
3229    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3230    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3231  esac
3232done
3233rm -f $ac_rmfiles
3234
3235if { (ac_try="$ac_link_default"
3236case "(($ac_try" in
3237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238  *) ac_try_echo=$ac_try;;
3239esac
3240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3241$as_echo "$ac_try_echo") >&5
3242  (eval "$ac_link_default") 2>&5
3243  ac_status=$?
3244  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245  (exit $ac_status); }; then
3246  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3247# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3248# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3249# so that the user can short-circuit this test for compilers unknown to
3250# Autoconf.
3251for ac_file in $ac_files ''
3252do
3253  test -f "$ac_file" || continue
3254  case $ac_file in
3255    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3256	;;
3257    [ab].out )
3258	# We found the default executable, but exeext='' is most
3259	# certainly right.
3260	break;;
3261    *.* )
3262        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3263	then :; else
3264	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3265	fi
3266	# We set ac_cv_exeext here because the later test for it is not
3267	# safe: cross compilers may not add the suffix if given an `-o'
3268	# argument, so we may need to know it at that point already.
3269	# Even if this section looks crufty: it has the advantage of
3270	# actually working.
3271	break;;
3272    * )
3273	break;;
3274  esac
3275done
3276test "$ac_cv_exeext" = no && ac_cv_exeext=
3277
3278else
3279  ac_file=''
3280fi
3281
3282{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3283$as_echo "$ac_file" >&6; }
3284if test -z "$ac_file"; then
3285  $as_echo "$as_me: failed program was:" >&5
3286sed 's/^/| /' conftest.$ac_ext >&5
3287
3288{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3291See \`config.log' for more details." >&5
3292$as_echo "$as_me: error: C compiler cannot create executables
3293See \`config.log' for more details." >&2;}
3294   { (exit 77); exit 77; }; }; }
3295fi
3296
3297ac_exeext=$ac_cv_exeext
3298
3299# Check that the compiler produces executables we can run.  If not, either
3300# the compiler is broken, or we cross compile.
3301{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3302$as_echo_n "checking whether the C compiler works... " >&6; }
3303# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3304# If not cross compiling, check that we can run a simple program.
3305if test "$cross_compiling" != yes; then
3306  if { ac_try='./$ac_file'
3307  { (case "(($ac_try" in
3308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309  *) ac_try_echo=$ac_try;;
3310esac
3311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3312$as_echo "$ac_try_echo") >&5
3313  (eval "$ac_try") 2>&5
3314  ac_status=$?
3315  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316  (exit $ac_status); }; }; then
3317    cross_compiling=no
3318  else
3319    if test "$cross_compiling" = maybe; then
3320	cross_compiling=yes
3321    else
3322	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3323$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3324{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3325If you meant to cross compile, use \`--host'.
3326See \`config.log' for more details." >&5
3327$as_echo "$as_me: error: cannot run C compiled programs.
3328If you meant to cross compile, use \`--host'.
3329See \`config.log' for more details." >&2;}
3330   { (exit 1); exit 1; }; }; }
3331    fi
3332  fi
3333fi
3334{ $as_echo "$as_me:$LINENO: result: yes" >&5
3335$as_echo "yes" >&6; }
3336
3337rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3338ac_clean_files=$ac_clean_files_save
3339# Check that the compiler produces executables we can run.  If not, either
3340# the compiler is broken, or we cross compile.
3341{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3342$as_echo_n "checking whether we are cross compiling... " >&6; }
3343{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3344$as_echo "$cross_compiling" >&6; }
3345
3346{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3347$as_echo_n "checking for suffix of executables... " >&6; }
3348if { (ac_try="$ac_link"
3349case "(($ac_try" in
3350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351  *) ac_try_echo=$ac_try;;
3352esac
3353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3354$as_echo "$ac_try_echo") >&5
3355  (eval "$ac_link") 2>&5
3356  ac_status=$?
3357  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358  (exit $ac_status); }; then
3359  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3360# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3361# work properly (i.e., refer to `conftest.exe'), while it won't with
3362# `rm'.
3363for ac_file in conftest.exe conftest conftest.*; do
3364  test -f "$ac_file" || continue
3365  case $ac_file in
3366    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3367    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3368	  break;;
3369    * ) break;;
3370  esac
3371done
3372else
3373  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3376See \`config.log' for more details." >&5
3377$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3378See \`config.log' for more details." >&2;}
3379   { (exit 1); exit 1; }; }; }
3380fi
3381
3382rm -f conftest$ac_cv_exeext
3383{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3384$as_echo "$ac_cv_exeext" >&6; }
3385
3386rm -f conftest.$ac_ext
3387EXEEXT=$ac_cv_exeext
3388ac_exeext=$EXEEXT
3389{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3390$as_echo_n "checking for suffix of object files... " >&6; }
3391if test "${ac_cv_objext+set}" = set; then
3392  $as_echo_n "(cached) " >&6
3393else
3394  cat >conftest.$ac_ext <<_ACEOF
3395/* confdefs.h.  */
3396_ACEOF
3397cat confdefs.h >>conftest.$ac_ext
3398cat >>conftest.$ac_ext <<_ACEOF
3399/* end confdefs.h.  */
3400
3401int
3402main ()
3403{
3404
3405  ;
3406  return 0;
3407}
3408_ACEOF
3409rm -f conftest.o conftest.obj
3410if { (ac_try="$ac_compile"
3411case "(($ac_try" in
3412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413  *) ac_try_echo=$ac_try;;
3414esac
3415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3416$as_echo "$ac_try_echo") >&5
3417  (eval "$ac_compile") 2>&5
3418  ac_status=$?
3419  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420  (exit $ac_status); }; then
3421  for ac_file in conftest.o conftest.obj conftest.*; do
3422  test -f "$ac_file" || continue;
3423  case $ac_file in
3424    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3425    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3426       break;;
3427  esac
3428done
3429else
3430  $as_echo "$as_me: failed program was:" >&5
3431sed 's/^/| /' conftest.$ac_ext >&5
3432
3433{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3435{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3436See \`config.log' for more details." >&5
3437$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3438See \`config.log' for more details." >&2;}
3439   { (exit 1); exit 1; }; }; }
3440fi
3441
3442rm -f conftest.$ac_cv_objext conftest.$ac_ext
3443fi
3444{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3445$as_echo "$ac_cv_objext" >&6; }
3446OBJEXT=$ac_cv_objext
3447ac_objext=$OBJEXT
3448{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3449$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3450if test "${ac_cv_c_compiler_gnu+set}" = set; then
3451  $as_echo_n "(cached) " >&6
3452else
3453  cat >conftest.$ac_ext <<_ACEOF
3454/* confdefs.h.  */
3455_ACEOF
3456cat confdefs.h >>conftest.$ac_ext
3457cat >>conftest.$ac_ext <<_ACEOF
3458/* end confdefs.h.  */
3459
3460int
3461main ()
3462{
3463#ifndef __GNUC__
3464       choke me
3465#endif
3466
3467  ;
3468  return 0;
3469}
3470_ACEOF
3471rm -f conftest.$ac_objext
3472if { (ac_try="$ac_compile"
3473case "(($ac_try" in
3474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475  *) ac_try_echo=$ac_try;;
3476esac
3477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3478$as_echo "$ac_try_echo") >&5
3479  (eval "$ac_compile") 2>conftest.er1
3480  ac_status=$?
3481  grep -v '^ *+' conftest.er1 >conftest.err
3482  rm -f conftest.er1
3483  cat conftest.err >&5
3484  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485  (exit $ac_status); } && {
3486	 test -z "$ac_c_werror_flag" ||
3487	 test ! -s conftest.err
3488       } && test -s conftest.$ac_objext; then
3489  ac_compiler_gnu=yes
3490else
3491  $as_echo "$as_me: failed program was:" >&5
3492sed 's/^/| /' conftest.$ac_ext >&5
3493
3494	ac_compiler_gnu=no
3495fi
3496
3497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498ac_cv_c_compiler_gnu=$ac_compiler_gnu
3499
3500fi
3501{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3502$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3503if test $ac_compiler_gnu = yes; then
3504  GCC=yes
3505else
3506  GCC=
3507fi
3508ac_test_CFLAGS=${CFLAGS+set}
3509ac_save_CFLAGS=$CFLAGS
3510{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3511$as_echo_n "checking whether $CC accepts -g... " >&6; }
3512if test "${ac_cv_prog_cc_g+set}" = set; then
3513  $as_echo_n "(cached) " >&6
3514else
3515  ac_save_c_werror_flag=$ac_c_werror_flag
3516   ac_c_werror_flag=yes
3517   ac_cv_prog_cc_g=no
3518   CFLAGS="-g"
3519   cat >conftest.$ac_ext <<_ACEOF
3520/* confdefs.h.  */
3521_ACEOF
3522cat confdefs.h >>conftest.$ac_ext
3523cat >>conftest.$ac_ext <<_ACEOF
3524/* end confdefs.h.  */
3525
3526int
3527main ()
3528{
3529
3530  ;
3531  return 0;
3532}
3533_ACEOF
3534rm -f conftest.$ac_objext
3535if { (ac_try="$ac_compile"
3536case "(($ac_try" in
3537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538  *) ac_try_echo=$ac_try;;
3539esac
3540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3541$as_echo "$ac_try_echo") >&5
3542  (eval "$ac_compile") 2>conftest.er1
3543  ac_status=$?
3544  grep -v '^ *+' conftest.er1 >conftest.err
3545  rm -f conftest.er1
3546  cat conftest.err >&5
3547  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548  (exit $ac_status); } && {
3549	 test -z "$ac_c_werror_flag" ||
3550	 test ! -s conftest.err
3551       } && test -s conftest.$ac_objext; then
3552  ac_cv_prog_cc_g=yes
3553else
3554  $as_echo "$as_me: failed program was:" >&5
3555sed 's/^/| /' conftest.$ac_ext >&5
3556
3557	CFLAGS=""
3558      cat >conftest.$ac_ext <<_ACEOF
3559/* confdefs.h.  */
3560_ACEOF
3561cat confdefs.h >>conftest.$ac_ext
3562cat >>conftest.$ac_ext <<_ACEOF
3563/* end confdefs.h.  */
3564
3565int
3566main ()
3567{
3568
3569  ;
3570  return 0;
3571}
3572_ACEOF
3573rm -f conftest.$ac_objext
3574if { (ac_try="$ac_compile"
3575case "(($ac_try" in
3576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577  *) ac_try_echo=$ac_try;;
3578esac
3579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3580$as_echo "$ac_try_echo") >&5
3581  (eval "$ac_compile") 2>conftest.er1
3582  ac_status=$?
3583  grep -v '^ *+' conftest.er1 >conftest.err
3584  rm -f conftest.er1
3585  cat conftest.err >&5
3586  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587  (exit $ac_status); } && {
3588	 test -z "$ac_c_werror_flag" ||
3589	 test ! -s conftest.err
3590       } && test -s conftest.$ac_objext; then
3591  :
3592else
3593  $as_echo "$as_me: failed program was:" >&5
3594sed 's/^/| /' conftest.$ac_ext >&5
3595
3596	ac_c_werror_flag=$ac_save_c_werror_flag
3597	 CFLAGS="-g"
3598	 cat >conftest.$ac_ext <<_ACEOF
3599/* confdefs.h.  */
3600_ACEOF
3601cat confdefs.h >>conftest.$ac_ext
3602cat >>conftest.$ac_ext <<_ACEOF
3603/* end confdefs.h.  */
3604
3605int
3606main ()
3607{
3608
3609  ;
3610  return 0;
3611}
3612_ACEOF
3613rm -f conftest.$ac_objext
3614if { (ac_try="$ac_compile"
3615case "(($ac_try" in
3616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617  *) ac_try_echo=$ac_try;;
3618esac
3619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3620$as_echo "$ac_try_echo") >&5
3621  (eval "$ac_compile") 2>conftest.er1
3622  ac_status=$?
3623  grep -v '^ *+' conftest.er1 >conftest.err
3624  rm -f conftest.er1
3625  cat conftest.err >&5
3626  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627  (exit $ac_status); } && {
3628	 test -z "$ac_c_werror_flag" ||
3629	 test ! -s conftest.err
3630       } && test -s conftest.$ac_objext; then
3631  ac_cv_prog_cc_g=yes
3632else
3633  $as_echo "$as_me: failed program was:" >&5
3634sed 's/^/| /' conftest.$ac_ext >&5
3635
3636
3637fi
3638
3639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640fi
3641
3642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643fi
3644
3645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646   ac_c_werror_flag=$ac_save_c_werror_flag
3647fi
3648{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3649$as_echo "$ac_cv_prog_cc_g" >&6; }
3650if test "$ac_test_CFLAGS" = set; then
3651  CFLAGS=$ac_save_CFLAGS
3652elif test $ac_cv_prog_cc_g = yes; then
3653  if test "$GCC" = yes; then
3654    CFLAGS="-g -O2"
3655  else
3656    CFLAGS="-g"
3657  fi
3658else
3659  if test "$GCC" = yes; then
3660    CFLAGS="-O2"
3661  else
3662    CFLAGS=
3663  fi
3664fi
3665{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3666$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3667if test "${ac_cv_prog_cc_c89+set}" = set; then
3668  $as_echo_n "(cached) " >&6
3669else
3670  ac_cv_prog_cc_c89=no
3671ac_save_CC=$CC
3672cat >conftest.$ac_ext <<_ACEOF
3673/* confdefs.h.  */
3674_ACEOF
3675cat confdefs.h >>conftest.$ac_ext
3676cat >>conftest.$ac_ext <<_ACEOF
3677/* end confdefs.h.  */
3678#include <stdarg.h>
3679#include <stdio.h>
3680#include <sys/types.h>
3681#include <sys/stat.h>
3682/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3683struct buf { int x; };
3684FILE * (*rcsopen) (struct buf *, struct stat *, int);
3685static char *e (p, i)
3686     char **p;
3687     int i;
3688{
3689  return p[i];
3690}
3691static char *f (char * (*g) (char **, int), char **p, ...)
3692{
3693  char *s;
3694  va_list v;
3695  va_start (v,p);
3696  s = g (p, va_arg (v,int));
3697  va_end (v);
3698  return s;
3699}
3700
3701/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3702   function prototypes and stuff, but not '\xHH' hex character constants.
3703   These don't provoke an error unfortunately, instead are silently treated
3704   as 'x'.  The following induces an error, until -std is added to get
3705   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3706   array size at least.  It's necessary to write '\x00'==0 to get something
3707   that's true only with -std.  */
3708int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3709
3710/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3711   inside strings and character constants.  */
3712#define FOO(x) 'x'
3713int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3714
3715int test (int i, double x);
3716struct s1 {int (*f) (int a);};
3717struct s2 {int (*f) (double a);};
3718int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3719int argc;
3720char **argv;
3721int
3722main ()
3723{
3724return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3725  ;
3726  return 0;
3727}
3728_ACEOF
3729for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3730	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3731do
3732  CC="$ac_save_CC $ac_arg"
3733  rm -f conftest.$ac_objext
3734if { (ac_try="$ac_compile"
3735case "(($ac_try" in
3736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737  *) ac_try_echo=$ac_try;;
3738esac
3739eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3740$as_echo "$ac_try_echo") >&5
3741  (eval "$ac_compile") 2>conftest.er1
3742  ac_status=$?
3743  grep -v '^ *+' conftest.er1 >conftest.err
3744  rm -f conftest.er1
3745  cat conftest.err >&5
3746  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747  (exit $ac_status); } && {
3748	 test -z "$ac_c_werror_flag" ||
3749	 test ! -s conftest.err
3750       } && test -s conftest.$ac_objext; then
3751  ac_cv_prog_cc_c89=$ac_arg
3752else
3753  $as_echo "$as_me: failed program was:" >&5
3754sed 's/^/| /' conftest.$ac_ext >&5
3755
3756
3757fi
3758
3759rm -f core conftest.err conftest.$ac_objext
3760  test "x$ac_cv_prog_cc_c89" != "xno" && break
3761done
3762rm -f conftest.$ac_ext
3763CC=$ac_save_CC
3764
3765fi
3766# AC_CACHE_VAL
3767case "x$ac_cv_prog_cc_c89" in
3768  x)
3769    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3770$as_echo "none needed" >&6; } ;;
3771  xno)
3772    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3773$as_echo "unsupported" >&6; } ;;
3774  *)
3775    CC="$CC $ac_cv_prog_cc_c89"
3776    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3777$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3778esac
3779
3780
3781ac_ext=c
3782ac_cpp='$CPP $CPPFLAGS'
3783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3785ac_compiler_gnu=$ac_cv_c_compiler_gnu
3786
3787depcc="$CC"   am_compiler_list=
3788
3789{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3790$as_echo_n "checking dependency style of $depcc... " >&6; }
3791if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3792  $as_echo_n "(cached) " >&6
3793else
3794  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3795  # We make a subdir and do the tests there.  Otherwise we can end up
3796  # making bogus files that we don't know about and never remove.  For
3797  # instance it was reported that on HP-UX the gcc test will end up
3798  # making a dummy file named `D' -- because `-MD' means `put the output
3799  # in D'.
3800  mkdir conftest.dir
3801  # Copy depcomp to subdir because otherwise we won't find it if we're
3802  # using a relative directory.
3803  cp "$am_depcomp" conftest.dir
3804  cd conftest.dir
3805  # We will build objects and dependencies in a subdirectory because
3806  # it helps to detect inapplicable dependency modes.  For instance
3807  # both Tru64's cc and ICC support -MD to output dependencies as a
3808  # side effect of compilation, but ICC will put the dependencies in
3809  # the current directory while Tru64 will put them in the object
3810  # directory.
3811  mkdir sub
3812
3813  am_cv_CC_dependencies_compiler_type=none
3814  if test "$am_compiler_list" = ""; then
3815     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3816  fi
3817  for depmode in $am_compiler_list; do
3818    # Setup a source with many dependencies, because some compilers
3819    # like to wrap large dependency lists on column 80 (with \), and
3820    # we should not choose a depcomp mode which is confused by this.
3821    #
3822    # We need to recreate these files for each test, as the compiler may
3823    # overwrite some of them when testing with obscure command lines.
3824    # This happens at least with the AIX C compiler.
3825    : > sub/conftest.c
3826    for i in 1 2 3 4 5 6; do
3827      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3828      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3829      # Solaris 8's {/usr,}/bin/sh.
3830      touch sub/conftst$i.h
3831    done
3832    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3833
3834    case $depmode in
3835    nosideeffect)
3836      # after this tag, mechanisms are not by side-effect, so they'll
3837      # only be used when explicitly requested
3838      if test "x$enable_dependency_tracking" = xyes; then
3839	continue
3840      else
3841	break
3842      fi
3843      ;;
3844    none) break ;;
3845    esac
3846    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3847    # mode.  It turns out that the SunPro C++ compiler does not properly
3848    # handle `-M -o', and we need to detect this.
3849    if depmode=$depmode \
3850       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3851       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3852       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3853         >/dev/null 2>conftest.err &&
3854       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3855       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3856       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3857       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3858      # icc doesn't choke on unknown options, it will just issue warnings
3859      # or remarks (even with -Werror).  So we grep stderr for any message
3860      # that says an option was ignored or not supported.
3861      # When given -MP, icc 7.0 and 7.1 complain thusly:
3862      #   icc: Command line warning: ignoring option '-M'; no argument required
3863      # The diagnosis changed in icc 8.0:
3864      #   icc: Command line remark: option '-MP' not supported
3865      if (grep 'ignoring option' conftest.err ||
3866          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3867        am_cv_CC_dependencies_compiler_type=$depmode
3868        break
3869      fi
3870    fi
3871  done
3872
3873  cd ..
3874  rm -rf conftest.dir
3875else
3876  am_cv_CC_dependencies_compiler_type=none
3877fi
3878
3879fi
3880{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3881$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3882CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3883
3884 if
3885  test "x$enable_dependency_tracking" != xno \
3886  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3887  am__fastdepCC_TRUE=
3888  am__fastdepCC_FALSE='#'
3889else
3890  am__fastdepCC_TRUE='#'
3891  am__fastdepCC_FALSE=
3892fi
3893
3894
3895{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3896$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3897if test "${lt_cv_path_SED+set}" = set; then
3898  $as_echo_n "(cached) " >&6
3899else
3900  # Loop through the user's path and test for sed and gsed.
3901# Then use that list of sed's as ones to test for truncation.
3902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903for as_dir in $PATH
3904do
3905  IFS=$as_save_IFS
3906  test -z "$as_dir" && as_dir=.
3907  for lt_ac_prog in sed gsed; do
3908    for ac_exec_ext in '' $ac_executable_extensions; do
3909      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3910        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3911      fi
3912    done
3913  done
3914done
3915IFS=$as_save_IFS
3916lt_ac_max=0
3917lt_ac_count=0
3918# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3919# along with /bin/sed that truncates output.
3920for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3921  test ! -f $lt_ac_sed && continue
3922  cat /dev/null > conftest.in
3923  lt_ac_count=0
3924  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3925  # Check for GNU sed and select it if it is found.
3926  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3927    lt_cv_path_SED=$lt_ac_sed
3928    break
3929  fi
3930  while true; do
3931    cat conftest.in conftest.in >conftest.tmp
3932    mv conftest.tmp conftest.in
3933    cp conftest.in conftest.nl
3934    echo >>conftest.nl
3935    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3936    cmp -s conftest.out conftest.nl || break
3937    # 10000 chars as input seems more than enough
3938    test $lt_ac_count -gt 10 && break
3939    lt_ac_count=`expr $lt_ac_count + 1`
3940    if test $lt_ac_count -gt $lt_ac_max; then
3941      lt_ac_max=$lt_ac_count
3942      lt_cv_path_SED=$lt_ac_sed
3943    fi
3944  done
3945done
3946
3947fi
3948
3949SED=$lt_cv_path_SED
3950
3951{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3952$as_echo "$SED" >&6; }
3953
3954{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3955$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3956if test "${ac_cv_path_GREP+set}" = set; then
3957  $as_echo_n "(cached) " >&6
3958else
3959  if test -z "$GREP"; then
3960  ac_path_GREP_found=false
3961  # Loop through the user's path and test for each of PROGNAME-LIST
3962  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3964do
3965  IFS=$as_save_IFS
3966  test -z "$as_dir" && as_dir=.
3967  for ac_prog in grep ggrep; do
3968    for ac_exec_ext in '' $ac_executable_extensions; do
3969      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3970      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3971# Check for GNU ac_path_GREP and select it if it is found.
3972  # Check for GNU $ac_path_GREP
3973case `"$ac_path_GREP" --version 2>&1` in
3974*GNU*)
3975  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3976*)
3977  ac_count=0
3978  $as_echo_n 0123456789 >"conftest.in"
3979  while :
3980  do
3981    cat "conftest.in" "conftest.in" >"conftest.tmp"
3982    mv "conftest.tmp" "conftest.in"
3983    cp "conftest.in" "conftest.nl"
3984    $as_echo 'GREP' >> "conftest.nl"
3985    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3986    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3987    ac_count=`expr $ac_count + 1`
3988    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3989      # Best one so far, save it but keep looking for a better one
3990      ac_cv_path_GREP="$ac_path_GREP"
3991      ac_path_GREP_max=$ac_count
3992    fi
3993    # 10*(2^10) chars as input seems more than enough
3994    test $ac_count -gt 10 && break
3995  done
3996  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3997esac
3998
3999      $ac_path_GREP_found && break 3
4000    done
4001  done
4002done
4003IFS=$as_save_IFS
4004  if test -z "$ac_cv_path_GREP"; then
4005    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4006$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4007   { (exit 1); exit 1; }; }
4008  fi
4009else
4010  ac_cv_path_GREP=$GREP
4011fi
4012
4013fi
4014{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4015$as_echo "$ac_cv_path_GREP" >&6; }
4016 GREP="$ac_cv_path_GREP"
4017
4018
4019{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4020$as_echo_n "checking for egrep... " >&6; }
4021if test "${ac_cv_path_EGREP+set}" = set; then
4022  $as_echo_n "(cached) " >&6
4023else
4024  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4025   then ac_cv_path_EGREP="$GREP -E"
4026   else
4027     if test -z "$EGREP"; then
4028  ac_path_EGREP_found=false
4029  # Loop through the user's path and test for each of PROGNAME-LIST
4030  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4032do
4033  IFS=$as_save_IFS
4034  test -z "$as_dir" && as_dir=.
4035  for ac_prog in egrep; do
4036    for ac_exec_ext in '' $ac_executable_extensions; do
4037      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4038      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4039# Check for GNU ac_path_EGREP and select it if it is found.
4040  # Check for GNU $ac_path_EGREP
4041case `"$ac_path_EGREP" --version 2>&1` in
4042*GNU*)
4043  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4044*)
4045  ac_count=0
4046  $as_echo_n 0123456789 >"conftest.in"
4047  while :
4048  do
4049    cat "conftest.in" "conftest.in" >"conftest.tmp"
4050    mv "conftest.tmp" "conftest.in"
4051    cp "conftest.in" "conftest.nl"
4052    $as_echo 'EGREP' >> "conftest.nl"
4053    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4054    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4055    ac_count=`expr $ac_count + 1`
4056    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4057      # Best one so far, save it but keep looking for a better one
4058      ac_cv_path_EGREP="$ac_path_EGREP"
4059      ac_path_EGREP_max=$ac_count
4060    fi
4061    # 10*(2^10) chars as input seems more than enough
4062    test $ac_count -gt 10 && break
4063  done
4064  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4065esac
4066
4067      $ac_path_EGREP_found && break 3
4068    done
4069  done
4070done
4071IFS=$as_save_IFS
4072  if test -z "$ac_cv_path_EGREP"; then
4073    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4074$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4075   { (exit 1); exit 1; }; }
4076  fi
4077else
4078  ac_cv_path_EGREP=$EGREP
4079fi
4080
4081   fi
4082fi
4083{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4084$as_echo "$ac_cv_path_EGREP" >&6; }
4085 EGREP="$ac_cv_path_EGREP"
4086
4087
4088
4089# Check whether --with-gnu-ld was given.
4090if test "${with_gnu_ld+set}" = set; then
4091  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4092else
4093  with_gnu_ld=no
4094fi
4095
4096ac_prog=ld
4097if test "$GCC" = yes; then
4098  # Check if gcc -print-prog-name=ld gives a path.
4099  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4100$as_echo_n "checking for ld used by $CC... " >&6; }
4101  case $host in
4102  *-*-mingw*)
4103    # gcc leaves a trailing carriage return which upsets mingw
4104    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4105  *)
4106    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4107  esac
4108  case $ac_prog in
4109    # Accept absolute paths.
4110    [\\/]* | ?:[\\/]*)
4111      re_direlt='/[^/][^/]*/\.\./'
4112      # Canonicalize the pathname of ld
4113      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4114      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4115	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4116      done
4117      test -z "$LD" && LD="$ac_prog"
4118      ;;
4119  "")
4120    # If it fails, then pretend we aren't using GCC.
4121    ac_prog=ld
4122    ;;
4123  *)
4124    # If it is relative, then search for the first ld in PATH.
4125    with_gnu_ld=unknown
4126    ;;
4127  esac
4128elif test "$with_gnu_ld" = yes; then
4129  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4130$as_echo_n "checking for GNU ld... " >&6; }
4131else
4132  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4133$as_echo_n "checking for non-GNU ld... " >&6; }
4134fi
4135if test "${lt_cv_path_LD+set}" = set; then
4136  $as_echo_n "(cached) " >&6
4137else
4138  if test -z "$LD"; then
4139  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4140  for ac_dir in $PATH; do
4141    IFS="$lt_save_ifs"
4142    test -z "$ac_dir" && ac_dir=.
4143    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4144      lt_cv_path_LD="$ac_dir/$ac_prog"
4145      # Check to see if the program is GNU ld.  I'd rather use --version,
4146      # but apparently some variants of GNU ld only accept -v.
4147      # Break only if it was the GNU/non-GNU ld that we prefer.
4148      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4149      *GNU* | *'with BFD'*)
4150	test "$with_gnu_ld" != no && break
4151	;;
4152      *)
4153	test "$with_gnu_ld" != yes && break
4154	;;
4155      esac
4156    fi
4157  done
4158  IFS="$lt_save_ifs"
4159else
4160  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4161fi
4162fi
4163
4164LD="$lt_cv_path_LD"
4165if test -n "$LD"; then
4166  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4167$as_echo "$LD" >&6; }
4168else
4169  { $as_echo "$as_me:$LINENO: result: no" >&5
4170$as_echo "no" >&6; }
4171fi
4172test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4173$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4174   { (exit 1); exit 1; }; }
4175{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4176$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4177if test "${lt_cv_prog_gnu_ld+set}" = set; then
4178  $as_echo_n "(cached) " >&6
4179else
4180  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4181case `$LD -v 2>&1 </dev/null` in
4182*GNU* | *'with BFD'*)
4183  lt_cv_prog_gnu_ld=yes
4184  ;;
4185*)
4186  lt_cv_prog_gnu_ld=no
4187  ;;
4188esac
4189fi
4190{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4191$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4192with_gnu_ld=$lt_cv_prog_gnu_ld
4193
4194
4195{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4196$as_echo_n "checking for $LD option to reload object files... " >&6; }
4197if test "${lt_cv_ld_reload_flag+set}" = set; then
4198  $as_echo_n "(cached) " >&6
4199else
4200  lt_cv_ld_reload_flag='-r'
4201fi
4202{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4203$as_echo "$lt_cv_ld_reload_flag" >&6; }
4204reload_flag=$lt_cv_ld_reload_flag
4205case $reload_flag in
4206"" | " "*) ;;
4207*) reload_flag=" $reload_flag" ;;
4208esac
4209reload_cmds='$LD$reload_flag -o $output$reload_objs'
4210case $host_os in
4211  darwin*)
4212    if test "$GCC" = yes; then
4213      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4214    else
4215      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4216    fi
4217    ;;
4218esac
4219
4220{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4221$as_echo_n "checking for BSD-compatible nm... " >&6; }
4222if test "${lt_cv_path_NM+set}" = set; then
4223  $as_echo_n "(cached) " >&6
4224else
4225  if test -n "$NM"; then
4226  # Let the user override the test.
4227  lt_cv_path_NM="$NM"
4228else
4229  lt_nm_to_check="${ac_tool_prefix}nm"
4230  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4231    lt_nm_to_check="$lt_nm_to_check nm"
4232  fi
4233  for lt_tmp_nm in $lt_nm_to_check; do
4234    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4235    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4236      IFS="$lt_save_ifs"
4237      test -z "$ac_dir" && ac_dir=.
4238      tmp_nm="$ac_dir/$lt_tmp_nm"
4239      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4240	# Check to see if the nm accepts a BSD-compat flag.
4241	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4242	#   nm: unknown option "B" ignored
4243	# Tru64's nm complains that /dev/null is an invalid object file
4244	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4245	*/dev/null* | *'Invalid file or object type'*)
4246	  lt_cv_path_NM="$tmp_nm -B"
4247	  break
4248	  ;;
4249	*)
4250	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4251	  */dev/null*)
4252	    lt_cv_path_NM="$tmp_nm -p"
4253	    break
4254	    ;;
4255	  *)
4256	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4257	    continue # so that we can try to find one that supports BSD flags
4258	    ;;
4259	  esac
4260	  ;;
4261	esac
4262      fi
4263    done
4264    IFS="$lt_save_ifs"
4265  done
4266  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4267fi
4268fi
4269{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4270$as_echo "$lt_cv_path_NM" >&6; }
4271NM="$lt_cv_path_NM"
4272
4273{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4274$as_echo_n "checking whether ln -s works... " >&6; }
4275LN_S=$as_ln_s
4276if test "$LN_S" = "ln -s"; then
4277  { $as_echo "$as_me:$LINENO: result: yes" >&5
4278$as_echo "yes" >&6; }
4279else
4280  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4281$as_echo "no, using $LN_S" >&6; }
4282fi
4283
4284{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4285$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4286if test "${lt_cv_deplibs_check_method+set}" = set; then
4287  $as_echo_n "(cached) " >&6
4288else
4289  lt_cv_file_magic_cmd='$MAGIC_CMD'
4290lt_cv_file_magic_test_file=
4291lt_cv_deplibs_check_method='unknown'
4292# Need to set the preceding variable on all platforms that support
4293# interlibrary dependencies.
4294# 'none' -- dependencies not supported.
4295# `unknown' -- same as none, but documents that we really don't know.
4296# 'pass_all' -- all dependencies passed with no checks.
4297# 'test_compile' -- check by making test program.
4298# 'file_magic [[regex]]' -- check by looking for files in library path
4299# which responds to the $file_magic_cmd with a given extended regex.
4300# If you have `file' or equivalent on your system and you're not sure
4301# whether `pass_all' will *always* work, you probably want this one.
4302
4303case $host_os in
4304aix[4-9]*)
4305  lt_cv_deplibs_check_method=pass_all
4306  ;;
4307
4308beos*)
4309  lt_cv_deplibs_check_method=pass_all
4310  ;;
4311
4312bsdi[45]*)
4313  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4314  lt_cv_file_magic_cmd='/usr/bin/file -L'
4315  lt_cv_file_magic_test_file=/shlib/libc.so
4316  ;;
4317
4318cygwin*)
4319  # func_win32_libid is a shell function defined in ltmain.sh
4320  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4321  lt_cv_file_magic_cmd='func_win32_libid'
4322  ;;
4323
4324mingw* | pw32*)
4325  # Base MSYS/MinGW do not provide the 'file' command needed by
4326  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4327  # unless we find 'file', for example because we are cross-compiling.
4328  if ( file / ) >/dev/null 2>&1; then
4329    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4330    lt_cv_file_magic_cmd='func_win32_libid'
4331  else
4332    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4333    lt_cv_file_magic_cmd='$OBJDUMP -f'
4334  fi
4335  ;;
4336
4337darwin* | rhapsody*)
4338  lt_cv_deplibs_check_method=pass_all
4339  ;;
4340
4341freebsd* | dragonfly*)
4342  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4343    case $host_cpu in
4344    i*86 )
4345      # Not sure whether the presence of OpenBSD here was a mistake.
4346      # Let's accept both of them until this is cleared up.
4347      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4348      lt_cv_file_magic_cmd=/usr/bin/file
4349      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4350      ;;
4351    esac
4352  else
4353    lt_cv_deplibs_check_method=pass_all
4354  fi
4355  ;;
4356
4357gnu*)
4358  lt_cv_deplibs_check_method=pass_all
4359  ;;
4360
4361hpux10.20* | hpux11*)
4362  lt_cv_file_magic_cmd=/usr/bin/file
4363  case $host_cpu in
4364  ia64*)
4365    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4366    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4367    ;;
4368  hppa*64*)
4369    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]'
4370    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4371    ;;
4372  *)
4373    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4374    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4375    ;;
4376  esac
4377  ;;
4378
4379interix[3-9]*)
4380  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4381  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4382  ;;
4383
4384irix5* | irix6* | nonstopux*)
4385  case $LD in
4386  *-32|*"-32 ") libmagic=32-bit;;
4387  *-n32|*"-n32 ") libmagic=N32;;
4388  *-64|*"-64 ") libmagic=64-bit;;
4389  *) libmagic=never-match;;
4390  esac
4391  lt_cv_deplibs_check_method=pass_all
4392  ;;
4393
4394# This must be Linux ELF.
4395linux* | k*bsd*-gnu)
4396  lt_cv_deplibs_check_method=pass_all
4397  ;;
4398
4399netbsd*)
4400  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4401    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4402  else
4403    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4404  fi
4405  ;;
4406
4407newos6*)
4408  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4409  lt_cv_file_magic_cmd=/usr/bin/file
4410  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4411  ;;
4412
4413nto-qnx*)
4414  lt_cv_deplibs_check_method=unknown
4415  ;;
4416
4417openbsd*)
4418  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4419    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4420  else
4421    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4422  fi
4423  ;;
4424
4425osf3* | osf4* | osf5*)
4426  lt_cv_deplibs_check_method=pass_all
4427  ;;
4428
4429rdos*)
4430  lt_cv_deplibs_check_method=pass_all
4431  ;;
4432
4433solaris*)
4434  lt_cv_deplibs_check_method=pass_all
4435  ;;
4436
4437sysv4 | sysv4.3*)
4438  case $host_vendor in
4439  motorola)
4440    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]'
4441    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4442    ;;
4443  ncr)
4444    lt_cv_deplibs_check_method=pass_all
4445    ;;
4446  sequent)
4447    lt_cv_file_magic_cmd='/bin/file'
4448    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4449    ;;
4450  sni)
4451    lt_cv_file_magic_cmd='/bin/file'
4452    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4453    lt_cv_file_magic_test_file=/lib/libc.so
4454    ;;
4455  siemens)
4456    lt_cv_deplibs_check_method=pass_all
4457    ;;
4458  pc)
4459    lt_cv_deplibs_check_method=pass_all
4460    ;;
4461  esac
4462  ;;
4463
4464sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4465  lt_cv_deplibs_check_method=pass_all
4466  ;;
4467esac
4468
4469fi
4470{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4471$as_echo "$lt_cv_deplibs_check_method" >&6; }
4472file_magic_cmd=$lt_cv_file_magic_cmd
4473deplibs_check_method=$lt_cv_deplibs_check_method
4474test -z "$deplibs_check_method" && deplibs_check_method=unknown
4475
4476
4477
4478
4479# If no C compiler was specified, use CC.
4480LTCC=${LTCC-"$CC"}
4481
4482# If no C compiler flags were specified, use CFLAGS.
4483LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4484
4485# Allow CC to be a program name with arguments.
4486compiler=$CC
4487
4488
4489# Check whether --enable-libtool-lock was given.
4490if test "${enable_libtool_lock+set}" = set; then
4491  enableval=$enable_libtool_lock;
4492fi
4493
4494test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4495
4496# Some flags need to be propagated to the compiler or linker for good
4497# libtool support.
4498case $host in
4499ia64-*-hpux*)
4500  # Find out which ABI we are using.
4501  echo 'int i;' > conftest.$ac_ext
4502  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4503  (eval $ac_compile) 2>&5
4504  ac_status=$?
4505  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506  (exit $ac_status); }; then
4507    case `/usr/bin/file conftest.$ac_objext` in
4508    *ELF-32*)
4509      HPUX_IA64_MODE="32"
4510      ;;
4511    *ELF-64*)
4512      HPUX_IA64_MODE="64"
4513      ;;
4514    esac
4515  fi
4516  rm -rf conftest*
4517  ;;
4518*-*-irix6*)
4519  # Find out which ABI we are using.
4520  echo '#line 4520 "configure"' > conftest.$ac_ext
4521  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4522  (eval $ac_compile) 2>&5
4523  ac_status=$?
4524  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525  (exit $ac_status); }; then
4526   if test "$lt_cv_prog_gnu_ld" = yes; then
4527    case `/usr/bin/file conftest.$ac_objext` in
4528    *32-bit*)
4529      LD="${LD-ld} -melf32bsmip"
4530      ;;
4531    *N32*)
4532      LD="${LD-ld} -melf32bmipn32"
4533      ;;
4534    *64-bit*)
4535      LD="${LD-ld} -melf64bmip"
4536      ;;
4537    esac
4538   else
4539    case `/usr/bin/file conftest.$ac_objext` in
4540    *32-bit*)
4541      LD="${LD-ld} -32"
4542      ;;
4543    *N32*)
4544      LD="${LD-ld} -n32"
4545      ;;
4546    *64-bit*)
4547      LD="${LD-ld} -64"
4548      ;;
4549    esac
4550   fi
4551  fi
4552  rm -rf conftest*
4553  ;;
4554
4555x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4556s390*-*linux*|sparc*-*linux*)
4557  # Find out which ABI we are using.
4558  echo 'int i;' > conftest.$ac_ext
4559  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4560  (eval $ac_compile) 2>&5
4561  ac_status=$?
4562  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563  (exit $ac_status); }; then
4564    case `/usr/bin/file conftest.o` in
4565    *32-bit*)
4566      case $host in
4567        x86_64-*kfreebsd*-gnu)
4568          LD="${LD-ld} -m elf_i386_fbsd"
4569          ;;
4570        x86_64-*linux*)
4571          LD="${LD-ld} -m elf_i386"
4572          ;;
4573        ppc64-*linux*|powerpc64-*linux*)
4574          LD="${LD-ld} -m elf32ppclinux"
4575          ;;
4576        s390x-*linux*)
4577          LD="${LD-ld} -m elf_s390"
4578          ;;
4579        sparc64-*linux*)
4580          LD="${LD-ld} -m elf32_sparc"
4581          ;;
4582      esac
4583      ;;
4584    *64-bit*)
4585      case $host in
4586        x86_64-*kfreebsd*-gnu)
4587          LD="${LD-ld} -m elf_x86_64_fbsd"
4588          ;;
4589        x86_64-*linux*)
4590          LD="${LD-ld} -m elf_x86_64"
4591          ;;
4592        ppc*-*linux*|powerpc*-*linux*)
4593          LD="${LD-ld} -m elf64ppc"
4594          ;;
4595        s390*-*linux*)
4596          LD="${LD-ld} -m elf64_s390"
4597          ;;
4598        sparc*-*linux*)
4599          LD="${LD-ld} -m elf64_sparc"
4600          ;;
4601      esac
4602      ;;
4603    esac
4604  fi
4605  rm -rf conftest*
4606  ;;
4607
4608*-*-sco3.2v5*)
4609  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4610  SAVE_CFLAGS="$CFLAGS"
4611  CFLAGS="$CFLAGS -belf"
4612  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4613$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4614if test "${lt_cv_cc_needs_belf+set}" = set; then
4615  $as_echo_n "(cached) " >&6
4616else
4617  ac_ext=c
4618ac_cpp='$CPP $CPPFLAGS'
4619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4621ac_compiler_gnu=$ac_cv_c_compiler_gnu
4622
4623     cat >conftest.$ac_ext <<_ACEOF
4624/* confdefs.h.  */
4625_ACEOF
4626cat confdefs.h >>conftest.$ac_ext
4627cat >>conftest.$ac_ext <<_ACEOF
4628/* end confdefs.h.  */
4629
4630int
4631main ()
4632{
4633
4634  ;
4635  return 0;
4636}
4637_ACEOF
4638rm -f conftest.$ac_objext conftest$ac_exeext
4639if { (ac_try="$ac_link"
4640case "(($ac_try" in
4641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642  *) ac_try_echo=$ac_try;;
4643esac
4644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4645$as_echo "$ac_try_echo") >&5
4646  (eval "$ac_link") 2>conftest.er1
4647  ac_status=$?
4648  grep -v '^ *+' conftest.er1 >conftest.err
4649  rm -f conftest.er1
4650  cat conftest.err >&5
4651  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652  (exit $ac_status); } && {
4653	 test -z "$ac_c_werror_flag" ||
4654	 test ! -s conftest.err
4655       } && test -s conftest$ac_exeext && {
4656	 test "$cross_compiling" = yes ||
4657	 $as_test_x conftest$ac_exeext
4658       }; then
4659  lt_cv_cc_needs_belf=yes
4660else
4661  $as_echo "$as_me: failed program was:" >&5
4662sed 's/^/| /' conftest.$ac_ext >&5
4663
4664	lt_cv_cc_needs_belf=no
4665fi
4666
4667rm -rf conftest.dSYM
4668rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4669      conftest$ac_exeext conftest.$ac_ext
4670     ac_ext=c
4671ac_cpp='$CPP $CPPFLAGS'
4672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4674ac_compiler_gnu=$ac_cv_c_compiler_gnu
4675
4676fi
4677{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4678$as_echo "$lt_cv_cc_needs_belf" >&6; }
4679  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4680    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4681    CFLAGS="$SAVE_CFLAGS"
4682  fi
4683  ;;
4684sparc*-*solaris*)
4685  # Find out which ABI we are using.
4686  echo 'int i;' > conftest.$ac_ext
4687  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4688  (eval $ac_compile) 2>&5
4689  ac_status=$?
4690  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691  (exit $ac_status); }; then
4692    case `/usr/bin/file conftest.o` in
4693    *64-bit*)
4694      case $lt_cv_prog_gnu_ld in
4695      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4696      *)
4697        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4698	  LD="${LD-ld} -64"
4699	fi
4700	;;
4701      esac
4702      ;;
4703    esac
4704  fi
4705  rm -rf conftest*
4706  ;;
4707
4708
4709esac
4710
4711need_locks="$enable_libtool_lock"
4712
4713
4714ac_ext=c
4715ac_cpp='$CPP $CPPFLAGS'
4716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718ac_compiler_gnu=$ac_cv_c_compiler_gnu
4719{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4720$as_echo_n "checking how to run the C preprocessor... " >&6; }
4721# On Suns, sometimes $CPP names a directory.
4722if test -n "$CPP" && test -d "$CPP"; then
4723  CPP=
4724fi
4725if test -z "$CPP"; then
4726  if test "${ac_cv_prog_CPP+set}" = set; then
4727  $as_echo_n "(cached) " >&6
4728else
4729      # Double quotes because CPP needs to be expanded
4730    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4731    do
4732      ac_preproc_ok=false
4733for ac_c_preproc_warn_flag in '' yes
4734do
4735  # Use a header file that comes with gcc, so configuring glibc
4736  # with a fresh cross-compiler works.
4737  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4738  # <limits.h> exists even on freestanding compilers.
4739  # On the NeXT, cc -E runs the code through the compiler's parser,
4740  # not just through cpp. "Syntax error" is here to catch this case.
4741  cat >conftest.$ac_ext <<_ACEOF
4742/* confdefs.h.  */
4743_ACEOF
4744cat confdefs.h >>conftest.$ac_ext
4745cat >>conftest.$ac_ext <<_ACEOF
4746/* end confdefs.h.  */
4747#ifdef __STDC__
4748# include <limits.h>
4749#else
4750# include <assert.h>
4751#endif
4752		     Syntax error
4753_ACEOF
4754if { (ac_try="$ac_cpp conftest.$ac_ext"
4755case "(($ac_try" in
4756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757  *) ac_try_echo=$ac_try;;
4758esac
4759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4760$as_echo "$ac_try_echo") >&5
4761  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4762  ac_status=$?
4763  grep -v '^ *+' conftest.er1 >conftest.err
4764  rm -f conftest.er1
4765  cat conftest.err >&5
4766  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767  (exit $ac_status); } >/dev/null && {
4768	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4769	 test ! -s conftest.err
4770       }; then
4771  :
4772else
4773  $as_echo "$as_me: failed program was:" >&5
4774sed 's/^/| /' conftest.$ac_ext >&5
4775
4776  # Broken: fails on valid input.
4777continue
4778fi
4779
4780rm -f conftest.err conftest.$ac_ext
4781
4782  # OK, works on sane cases.  Now check whether nonexistent headers
4783  # can be detected and how.
4784  cat >conftest.$ac_ext <<_ACEOF
4785/* confdefs.h.  */
4786_ACEOF
4787cat confdefs.h >>conftest.$ac_ext
4788cat >>conftest.$ac_ext <<_ACEOF
4789/* end confdefs.h.  */
4790#include <ac_nonexistent.h>
4791_ACEOF
4792if { (ac_try="$ac_cpp conftest.$ac_ext"
4793case "(($ac_try" in
4794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795  *) ac_try_echo=$ac_try;;
4796esac
4797eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4798$as_echo "$ac_try_echo") >&5
4799  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4800  ac_status=$?
4801  grep -v '^ *+' conftest.er1 >conftest.err
4802  rm -f conftest.er1
4803  cat conftest.err >&5
4804  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805  (exit $ac_status); } >/dev/null && {
4806	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4807	 test ! -s conftest.err
4808       }; then
4809  # Broken: success on invalid input.
4810continue
4811else
4812  $as_echo "$as_me: failed program was:" >&5
4813sed 's/^/| /' conftest.$ac_ext >&5
4814
4815  # Passes both tests.
4816ac_preproc_ok=:
4817break
4818fi
4819
4820rm -f conftest.err conftest.$ac_ext
4821
4822done
4823# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4824rm -f conftest.err conftest.$ac_ext
4825if $ac_preproc_ok; then
4826  break
4827fi
4828
4829    done
4830    ac_cv_prog_CPP=$CPP
4831
4832fi
4833  CPP=$ac_cv_prog_CPP
4834else
4835  ac_cv_prog_CPP=$CPP
4836fi
4837{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4838$as_echo "$CPP" >&6; }
4839ac_preproc_ok=false
4840for ac_c_preproc_warn_flag in '' yes
4841do
4842  # Use a header file that comes with gcc, so configuring glibc
4843  # with a fresh cross-compiler works.
4844  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4845  # <limits.h> exists even on freestanding compilers.
4846  # On the NeXT, cc -E runs the code through the compiler's parser,
4847  # not just through cpp. "Syntax error" is here to catch this case.
4848  cat >conftest.$ac_ext <<_ACEOF
4849/* confdefs.h.  */
4850_ACEOF
4851cat confdefs.h >>conftest.$ac_ext
4852cat >>conftest.$ac_ext <<_ACEOF
4853/* end confdefs.h.  */
4854#ifdef __STDC__
4855# include <limits.h>
4856#else
4857# include <assert.h>
4858#endif
4859		     Syntax error
4860_ACEOF
4861if { (ac_try="$ac_cpp conftest.$ac_ext"
4862case "(($ac_try" in
4863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864  *) ac_try_echo=$ac_try;;
4865esac
4866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4867$as_echo "$ac_try_echo") >&5
4868  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4869  ac_status=$?
4870  grep -v '^ *+' conftest.er1 >conftest.err
4871  rm -f conftest.er1
4872  cat conftest.err >&5
4873  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874  (exit $ac_status); } >/dev/null && {
4875	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4876	 test ! -s conftest.err
4877       }; then
4878  :
4879else
4880  $as_echo "$as_me: failed program was:" >&5
4881sed 's/^/| /' conftest.$ac_ext >&5
4882
4883  # Broken: fails on valid input.
4884continue
4885fi
4886
4887rm -f conftest.err conftest.$ac_ext
4888
4889  # OK, works on sane cases.  Now check whether nonexistent headers
4890  # can be detected and how.
4891  cat >conftest.$ac_ext <<_ACEOF
4892/* confdefs.h.  */
4893_ACEOF
4894cat confdefs.h >>conftest.$ac_ext
4895cat >>conftest.$ac_ext <<_ACEOF
4896/* end confdefs.h.  */
4897#include <ac_nonexistent.h>
4898_ACEOF
4899if { (ac_try="$ac_cpp conftest.$ac_ext"
4900case "(($ac_try" in
4901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902  *) ac_try_echo=$ac_try;;
4903esac
4904eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4905$as_echo "$ac_try_echo") >&5
4906  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4907  ac_status=$?
4908  grep -v '^ *+' conftest.er1 >conftest.err
4909  rm -f conftest.er1
4910  cat conftest.err >&5
4911  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912  (exit $ac_status); } >/dev/null && {
4913	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4914	 test ! -s conftest.err
4915       }; then
4916  # Broken: success on invalid input.
4917continue
4918else
4919  $as_echo "$as_me: failed program was:" >&5
4920sed 's/^/| /' conftest.$ac_ext >&5
4921
4922  # Passes both tests.
4923ac_preproc_ok=:
4924break
4925fi
4926
4927rm -f conftest.err conftest.$ac_ext
4928
4929done
4930# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4931rm -f conftest.err conftest.$ac_ext
4932if $ac_preproc_ok; then
4933  :
4934else
4935  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4936$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4937{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4938See \`config.log' for more details." >&5
4939$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4940See \`config.log' for more details." >&2;}
4941   { (exit 1); exit 1; }; }; }
4942fi
4943
4944ac_ext=c
4945ac_cpp='$CPP $CPPFLAGS'
4946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948ac_compiler_gnu=$ac_cv_c_compiler_gnu
4949
4950
4951{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4952$as_echo_n "checking for ANSI C header files... " >&6; }
4953if test "${ac_cv_header_stdc+set}" = set; then
4954  $as_echo_n "(cached) " >&6
4955else
4956  cat >conftest.$ac_ext <<_ACEOF
4957/* confdefs.h.  */
4958_ACEOF
4959cat confdefs.h >>conftest.$ac_ext
4960cat >>conftest.$ac_ext <<_ACEOF
4961/* end confdefs.h.  */
4962#include <stdlib.h>
4963#include <stdarg.h>
4964#include <string.h>
4965#include <float.h>
4966
4967int
4968main ()
4969{
4970
4971  ;
4972  return 0;
4973}
4974_ACEOF
4975rm -f conftest.$ac_objext
4976if { (ac_try="$ac_compile"
4977case "(($ac_try" in
4978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979  *) ac_try_echo=$ac_try;;
4980esac
4981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4982$as_echo "$ac_try_echo") >&5
4983  (eval "$ac_compile") 2>conftest.er1
4984  ac_status=$?
4985  grep -v '^ *+' conftest.er1 >conftest.err
4986  rm -f conftest.er1
4987  cat conftest.err >&5
4988  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989  (exit $ac_status); } && {
4990	 test -z "$ac_c_werror_flag" ||
4991	 test ! -s conftest.err
4992       } && test -s conftest.$ac_objext; then
4993  ac_cv_header_stdc=yes
4994else
4995  $as_echo "$as_me: failed program was:" >&5
4996sed 's/^/| /' conftest.$ac_ext >&5
4997
4998	ac_cv_header_stdc=no
4999fi
5000
5001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5002
5003if test $ac_cv_header_stdc = yes; then
5004  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5005  cat >conftest.$ac_ext <<_ACEOF
5006/* confdefs.h.  */
5007_ACEOF
5008cat confdefs.h >>conftest.$ac_ext
5009cat >>conftest.$ac_ext <<_ACEOF
5010/* end confdefs.h.  */
5011#include <string.h>
5012
5013_ACEOF
5014if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5015  $EGREP "memchr" >/dev/null 2>&1; then
5016  :
5017else
5018  ac_cv_header_stdc=no
5019fi
5020rm -f conftest*
5021
5022fi
5023
5024if test $ac_cv_header_stdc = yes; then
5025  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5026  cat >conftest.$ac_ext <<_ACEOF
5027/* confdefs.h.  */
5028_ACEOF
5029cat confdefs.h >>conftest.$ac_ext
5030cat >>conftest.$ac_ext <<_ACEOF
5031/* end confdefs.h.  */
5032#include <stdlib.h>
5033
5034_ACEOF
5035if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5036  $EGREP "free" >/dev/null 2>&1; then
5037  :
5038else
5039  ac_cv_header_stdc=no
5040fi
5041rm -f conftest*
5042
5043fi
5044
5045if test $ac_cv_header_stdc = yes; then
5046  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5047  if test "$cross_compiling" = yes; then
5048  :
5049else
5050  cat >conftest.$ac_ext <<_ACEOF
5051/* confdefs.h.  */
5052_ACEOF
5053cat confdefs.h >>conftest.$ac_ext
5054cat >>conftest.$ac_ext <<_ACEOF
5055/* end confdefs.h.  */
5056#include <ctype.h>
5057#include <stdlib.h>
5058#if ((' ' & 0x0FF) == 0x020)
5059# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5060# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5061#else
5062# define ISLOWER(c) \
5063		   (('a' <= (c) && (c) <= 'i') \
5064		     || ('j' <= (c) && (c) <= 'r') \
5065		     || ('s' <= (c) && (c) <= 'z'))
5066# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5067#endif
5068
5069#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5070int
5071main ()
5072{
5073  int i;
5074  for (i = 0; i < 256; i++)
5075    if (XOR (islower (i), ISLOWER (i))
5076	|| toupper (i) != TOUPPER (i))
5077      return 2;
5078  return 0;
5079}
5080_ACEOF
5081rm -f conftest$ac_exeext
5082if { (ac_try="$ac_link"
5083case "(($ac_try" in
5084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5085  *) ac_try_echo=$ac_try;;
5086esac
5087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5088$as_echo "$ac_try_echo") >&5
5089  (eval "$ac_link") 2>&5
5090  ac_status=$?
5091  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5093  { (case "(($ac_try" in
5094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095  *) ac_try_echo=$ac_try;;
5096esac
5097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5098$as_echo "$ac_try_echo") >&5
5099  (eval "$ac_try") 2>&5
5100  ac_status=$?
5101  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102  (exit $ac_status); }; }; then
5103  :
5104else
5105  $as_echo "$as_me: program exited with status $ac_status" >&5
5106$as_echo "$as_me: failed program was:" >&5
5107sed 's/^/| /' conftest.$ac_ext >&5
5108
5109( exit $ac_status )
5110ac_cv_header_stdc=no
5111fi
5112rm -rf conftest.dSYM
5113rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5114fi
5115
5116
5117fi
5118fi
5119{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5120$as_echo "$ac_cv_header_stdc" >&6; }
5121if test $ac_cv_header_stdc = yes; then
5122
5123cat >>confdefs.h <<\_ACEOF
5124#define STDC_HEADERS 1
5125_ACEOF
5126
5127fi
5128
5129# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5140		  inttypes.h stdint.h unistd.h
5141do
5142as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5143{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5144$as_echo_n "checking for $ac_header... " >&6; }
5145if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5146  $as_echo_n "(cached) " >&6
5147else
5148  cat >conftest.$ac_ext <<_ACEOF
5149/* confdefs.h.  */
5150_ACEOF
5151cat confdefs.h >>conftest.$ac_ext
5152cat >>conftest.$ac_ext <<_ACEOF
5153/* end confdefs.h.  */
5154$ac_includes_default
5155
5156#include <$ac_header>
5157_ACEOF
5158rm -f conftest.$ac_objext
5159if { (ac_try="$ac_compile"
5160case "(($ac_try" in
5161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5162  *) ac_try_echo=$ac_try;;
5163esac
5164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5165$as_echo "$ac_try_echo") >&5
5166  (eval "$ac_compile") 2>conftest.er1
5167  ac_status=$?
5168  grep -v '^ *+' conftest.er1 >conftest.err
5169  rm -f conftest.er1
5170  cat conftest.err >&5
5171  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172  (exit $ac_status); } && {
5173	 test -z "$ac_c_werror_flag" ||
5174	 test ! -s conftest.err
5175       } && test -s conftest.$ac_objext; then
5176  eval "$as_ac_Header=yes"
5177else
5178  $as_echo "$as_me: failed program was:" >&5
5179sed 's/^/| /' conftest.$ac_ext >&5
5180
5181	eval "$as_ac_Header=no"
5182fi
5183
5184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5185fi
5186ac_res=`eval 'as_val=${'$as_ac_Header'}
5187		 $as_echo "$as_val"'`
5188	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5189$as_echo "$ac_res" >&6; }
5190as_val=`eval 'as_val=${'$as_ac_Header'}
5191		 $as_echo "$as_val"'`
5192   if test "x$as_val" = x""yes; then
5193  cat >>confdefs.h <<_ACEOF
5194#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5195_ACEOF
5196
5197fi
5198
5199done
5200
5201
5202
5203for ac_header in dlfcn.h
5204do
5205as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5206if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5207  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5208$as_echo_n "checking for $ac_header... " >&6; }
5209if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5210  $as_echo_n "(cached) " >&6
5211fi
5212ac_res=`eval 'as_val=${'$as_ac_Header'}
5213		 $as_echo "$as_val"'`
5214	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5215$as_echo "$ac_res" >&6; }
5216else
5217  # Is the header compilable?
5218{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5219$as_echo_n "checking $ac_header usability... " >&6; }
5220cat >conftest.$ac_ext <<_ACEOF
5221/* confdefs.h.  */
5222_ACEOF
5223cat confdefs.h >>conftest.$ac_ext
5224cat >>conftest.$ac_ext <<_ACEOF
5225/* end confdefs.h.  */
5226$ac_includes_default
5227#include <$ac_header>
5228_ACEOF
5229rm -f conftest.$ac_objext
5230if { (ac_try="$ac_compile"
5231case "(($ac_try" in
5232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5233  *) ac_try_echo=$ac_try;;
5234esac
5235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5236$as_echo "$ac_try_echo") >&5
5237  (eval "$ac_compile") 2>conftest.er1
5238  ac_status=$?
5239  grep -v '^ *+' conftest.er1 >conftest.err
5240  rm -f conftest.er1
5241  cat conftest.err >&5
5242  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243  (exit $ac_status); } && {
5244	 test -z "$ac_c_werror_flag" ||
5245	 test ! -s conftest.err
5246       } && test -s conftest.$ac_objext; then
5247  ac_header_compiler=yes
5248else
5249  $as_echo "$as_me: failed program was:" >&5
5250sed 's/^/| /' conftest.$ac_ext >&5
5251
5252	ac_header_compiler=no
5253fi
5254
5255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5256{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5257$as_echo "$ac_header_compiler" >&6; }
5258
5259# Is the header present?
5260{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5261$as_echo_n "checking $ac_header presence... " >&6; }
5262cat >conftest.$ac_ext <<_ACEOF
5263/* confdefs.h.  */
5264_ACEOF
5265cat confdefs.h >>conftest.$ac_ext
5266cat >>conftest.$ac_ext <<_ACEOF
5267/* end confdefs.h.  */
5268#include <$ac_header>
5269_ACEOF
5270if { (ac_try="$ac_cpp conftest.$ac_ext"
5271case "(($ac_try" in
5272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273  *) ac_try_echo=$ac_try;;
5274esac
5275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5276$as_echo "$ac_try_echo") >&5
5277  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5278  ac_status=$?
5279  grep -v '^ *+' conftest.er1 >conftest.err
5280  rm -f conftest.er1
5281  cat conftest.err >&5
5282  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283  (exit $ac_status); } >/dev/null && {
5284	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5285	 test ! -s conftest.err
5286       }; then
5287  ac_header_preproc=yes
5288else
5289  $as_echo "$as_me: failed program was:" >&5
5290sed 's/^/| /' conftest.$ac_ext >&5
5291
5292  ac_header_preproc=no
5293fi
5294
5295rm -f conftest.err conftest.$ac_ext
5296{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5297$as_echo "$ac_header_preproc" >&6; }
5298
5299# So?  What about this header?
5300case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5301  yes:no: )
5302    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5303$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5304    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5305$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5306    ac_header_preproc=yes
5307    ;;
5308  no:yes:* )
5309    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5310$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5311    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5312$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5313    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5314$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5315    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5316$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5317    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5318$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5319    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5320$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5321    ( cat <<\_ASBOX
5322## ---------------------------------------------------------------------- ##
5323## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5324## ---------------------------------------------------------------------- ##
5325_ASBOX
5326     ) | sed "s/^/$as_me: WARNING:     /" >&2
5327    ;;
5328esac
5329{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5330$as_echo_n "checking for $ac_header... " >&6; }
5331if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5332  $as_echo_n "(cached) " >&6
5333else
5334  eval "$as_ac_Header=\$ac_header_preproc"
5335fi
5336ac_res=`eval 'as_val=${'$as_ac_Header'}
5337		 $as_echo "$as_val"'`
5338	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5339$as_echo "$ac_res" >&6; }
5340
5341fi
5342as_val=`eval 'as_val=${'$as_ac_Header'}
5343		 $as_echo "$as_val"'`
5344   if test "x$as_val" = x""yes; then
5345  cat >>confdefs.h <<_ACEOF
5346#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5347_ACEOF
5348
5349fi
5350
5351done
5352
5353ac_ext=cpp
5354ac_cpp='$CXXCPP $CPPFLAGS'
5355ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5358if test -z "$CXX"; then
5359  if test -n "$CCC"; then
5360    CXX=$CCC
5361  else
5362    if test -n "$ac_tool_prefix"; then
5363  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5364  do
5365    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5366set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5367{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5368$as_echo_n "checking for $ac_word... " >&6; }
5369if test "${ac_cv_prog_CXX+set}" = set; then
5370  $as_echo_n "(cached) " >&6
5371else
5372  if test -n "$CXX"; then
5373  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5374else
5375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376for as_dir in $PATH
5377do
5378  IFS=$as_save_IFS
5379  test -z "$as_dir" && as_dir=.
5380  for ac_exec_ext in '' $ac_executable_extensions; do
5381  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5382    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5383    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5384    break 2
5385  fi
5386done
5387done
5388IFS=$as_save_IFS
5389
5390fi
5391fi
5392CXX=$ac_cv_prog_CXX
5393if test -n "$CXX"; then
5394  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5395$as_echo "$CXX" >&6; }
5396else
5397  { $as_echo "$as_me:$LINENO: result: no" >&5
5398$as_echo "no" >&6; }
5399fi
5400
5401
5402    test -n "$CXX" && break
5403  done
5404fi
5405if test -z "$CXX"; then
5406  ac_ct_CXX=$CXX
5407  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5408do
5409  # Extract the first word of "$ac_prog", so it can be a program name with args.
5410set dummy $ac_prog; ac_word=$2
5411{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5412$as_echo_n "checking for $ac_word... " >&6; }
5413if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5414  $as_echo_n "(cached) " >&6
5415else
5416  if test -n "$ac_ct_CXX"; then
5417  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5418else
5419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420for as_dir in $PATH
5421do
5422  IFS=$as_save_IFS
5423  test -z "$as_dir" && as_dir=.
5424  for ac_exec_ext in '' $ac_executable_extensions; do
5425  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5426    ac_cv_prog_ac_ct_CXX="$ac_prog"
5427    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5428    break 2
5429  fi
5430done
5431done
5432IFS=$as_save_IFS
5433
5434fi
5435fi
5436ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5437if test -n "$ac_ct_CXX"; then
5438  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5439$as_echo "$ac_ct_CXX" >&6; }
5440else
5441  { $as_echo "$as_me:$LINENO: result: no" >&5
5442$as_echo "no" >&6; }
5443fi
5444
5445
5446  test -n "$ac_ct_CXX" && break
5447done
5448
5449  if test "x$ac_ct_CXX" = x; then
5450    CXX="g++"
5451  else
5452    case $cross_compiling:$ac_tool_warned in
5453yes:)
5454{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5456ac_tool_warned=yes ;;
5457esac
5458    CXX=$ac_ct_CXX
5459  fi
5460fi
5461
5462  fi
5463fi
5464# Provide some information about the compiler.
5465$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5466set X $ac_compile
5467ac_compiler=$2
5468{ (ac_try="$ac_compiler --version >&5"
5469case "(($ac_try" in
5470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471  *) ac_try_echo=$ac_try;;
5472esac
5473eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5474$as_echo "$ac_try_echo") >&5
5475  (eval "$ac_compiler --version >&5") 2>&5
5476  ac_status=$?
5477  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478  (exit $ac_status); }
5479{ (ac_try="$ac_compiler -v >&5"
5480case "(($ac_try" in
5481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482  *) ac_try_echo=$ac_try;;
5483esac
5484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5485$as_echo "$ac_try_echo") >&5
5486  (eval "$ac_compiler -v >&5") 2>&5
5487  ac_status=$?
5488  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489  (exit $ac_status); }
5490{ (ac_try="$ac_compiler -V >&5"
5491case "(($ac_try" in
5492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493  *) ac_try_echo=$ac_try;;
5494esac
5495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5496$as_echo "$ac_try_echo") >&5
5497  (eval "$ac_compiler -V >&5") 2>&5
5498  ac_status=$?
5499  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500  (exit $ac_status); }
5501
5502{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5503$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5504if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5505  $as_echo_n "(cached) " >&6
5506else
5507  cat >conftest.$ac_ext <<_ACEOF
5508/* confdefs.h.  */
5509_ACEOF
5510cat confdefs.h >>conftest.$ac_ext
5511cat >>conftest.$ac_ext <<_ACEOF
5512/* end confdefs.h.  */
5513
5514int
5515main ()
5516{
5517#ifndef __GNUC__
5518       choke me
5519#endif
5520
5521  ;
5522  return 0;
5523}
5524_ACEOF
5525rm -f conftest.$ac_objext
5526if { (ac_try="$ac_compile"
5527case "(($ac_try" in
5528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529  *) ac_try_echo=$ac_try;;
5530esac
5531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5532$as_echo "$ac_try_echo") >&5
5533  (eval "$ac_compile") 2>conftest.er1
5534  ac_status=$?
5535  grep -v '^ *+' conftest.er1 >conftest.err
5536  rm -f conftest.er1
5537  cat conftest.err >&5
5538  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539  (exit $ac_status); } && {
5540	 test -z "$ac_cxx_werror_flag" ||
5541	 test ! -s conftest.err
5542       } && test -s conftest.$ac_objext; then
5543  ac_compiler_gnu=yes
5544else
5545  $as_echo "$as_me: failed program was:" >&5
5546sed 's/^/| /' conftest.$ac_ext >&5
5547
5548	ac_compiler_gnu=no
5549fi
5550
5551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5552ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5553
5554fi
5555{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5556$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5557if test $ac_compiler_gnu = yes; then
5558  GXX=yes
5559else
5560  GXX=
5561fi
5562ac_test_CXXFLAGS=${CXXFLAGS+set}
5563ac_save_CXXFLAGS=$CXXFLAGS
5564{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5565$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5566if test "${ac_cv_prog_cxx_g+set}" = set; then
5567  $as_echo_n "(cached) " >&6
5568else
5569  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5570   ac_cxx_werror_flag=yes
5571   ac_cv_prog_cxx_g=no
5572   CXXFLAGS="-g"
5573   cat >conftest.$ac_ext <<_ACEOF
5574/* confdefs.h.  */
5575_ACEOF
5576cat confdefs.h >>conftest.$ac_ext
5577cat >>conftest.$ac_ext <<_ACEOF
5578/* end confdefs.h.  */
5579
5580int
5581main ()
5582{
5583
5584  ;
5585  return 0;
5586}
5587_ACEOF
5588rm -f conftest.$ac_objext
5589if { (ac_try="$ac_compile"
5590case "(($ac_try" in
5591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592  *) ac_try_echo=$ac_try;;
5593esac
5594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5595$as_echo "$ac_try_echo") >&5
5596  (eval "$ac_compile") 2>conftest.er1
5597  ac_status=$?
5598  grep -v '^ *+' conftest.er1 >conftest.err
5599  rm -f conftest.er1
5600  cat conftest.err >&5
5601  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602  (exit $ac_status); } && {
5603	 test -z "$ac_cxx_werror_flag" ||
5604	 test ! -s conftest.err
5605       } && test -s conftest.$ac_objext; then
5606  ac_cv_prog_cxx_g=yes
5607else
5608  $as_echo "$as_me: failed program was:" >&5
5609sed 's/^/| /' conftest.$ac_ext >&5
5610
5611	CXXFLAGS=""
5612      cat >conftest.$ac_ext <<_ACEOF
5613/* confdefs.h.  */
5614_ACEOF
5615cat confdefs.h >>conftest.$ac_ext
5616cat >>conftest.$ac_ext <<_ACEOF
5617/* end confdefs.h.  */
5618
5619int
5620main ()
5621{
5622
5623  ;
5624  return 0;
5625}
5626_ACEOF
5627rm -f conftest.$ac_objext
5628if { (ac_try="$ac_compile"
5629case "(($ac_try" in
5630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631  *) ac_try_echo=$ac_try;;
5632esac
5633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5634$as_echo "$ac_try_echo") >&5
5635  (eval "$ac_compile") 2>conftest.er1
5636  ac_status=$?
5637  grep -v '^ *+' conftest.er1 >conftest.err
5638  rm -f conftest.er1
5639  cat conftest.err >&5
5640  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641  (exit $ac_status); } && {
5642	 test -z "$ac_cxx_werror_flag" ||
5643	 test ! -s conftest.err
5644       } && test -s conftest.$ac_objext; then
5645  :
5646else
5647  $as_echo "$as_me: failed program was:" >&5
5648sed 's/^/| /' conftest.$ac_ext >&5
5649
5650	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5651	 CXXFLAGS="-g"
5652	 cat >conftest.$ac_ext <<_ACEOF
5653/* confdefs.h.  */
5654_ACEOF
5655cat confdefs.h >>conftest.$ac_ext
5656cat >>conftest.$ac_ext <<_ACEOF
5657/* end confdefs.h.  */
5658
5659int
5660main ()
5661{
5662
5663  ;
5664  return 0;
5665}
5666_ACEOF
5667rm -f conftest.$ac_objext
5668if { (ac_try="$ac_compile"
5669case "(($ac_try" in
5670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671  *) ac_try_echo=$ac_try;;
5672esac
5673eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5674$as_echo "$ac_try_echo") >&5
5675  (eval "$ac_compile") 2>conftest.er1
5676  ac_status=$?
5677  grep -v '^ *+' conftest.er1 >conftest.err
5678  rm -f conftest.er1
5679  cat conftest.err >&5
5680  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681  (exit $ac_status); } && {
5682	 test -z "$ac_cxx_werror_flag" ||
5683	 test ! -s conftest.err
5684       } && test -s conftest.$ac_objext; then
5685  ac_cv_prog_cxx_g=yes
5686else
5687  $as_echo "$as_me: failed program was:" >&5
5688sed 's/^/| /' conftest.$ac_ext >&5
5689
5690
5691fi
5692
5693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694fi
5695
5696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697fi
5698
5699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5701fi
5702{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5703$as_echo "$ac_cv_prog_cxx_g" >&6; }
5704if test "$ac_test_CXXFLAGS" = set; then
5705  CXXFLAGS=$ac_save_CXXFLAGS
5706elif test $ac_cv_prog_cxx_g = yes; then
5707  if test "$GXX" = yes; then
5708    CXXFLAGS="-g -O2"
5709  else
5710    CXXFLAGS="-g"
5711  fi
5712else
5713  if test "$GXX" = yes; then
5714    CXXFLAGS="-O2"
5715  else
5716    CXXFLAGS=
5717  fi
5718fi
5719ac_ext=cpp
5720ac_cpp='$CXXCPP $CPPFLAGS'
5721ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5722ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5723ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5724
5725depcc="$CXX"  am_compiler_list=
5726
5727{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5728$as_echo_n "checking dependency style of $depcc... " >&6; }
5729if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5730  $as_echo_n "(cached) " >&6
5731else
5732  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5733  # We make a subdir and do the tests there.  Otherwise we can end up
5734  # making bogus files that we don't know about and never remove.  For
5735  # instance it was reported that on HP-UX the gcc test will end up
5736  # making a dummy file named `D' -- because `-MD' means `put the output
5737  # in D'.
5738  mkdir conftest.dir
5739  # Copy depcomp to subdir because otherwise we won't find it if we're
5740  # using a relative directory.
5741  cp "$am_depcomp" conftest.dir
5742  cd conftest.dir
5743  # We will build objects and dependencies in a subdirectory because
5744  # it helps to detect inapplicable dependency modes.  For instance
5745  # both Tru64's cc and ICC support -MD to output dependencies as a
5746  # side effect of compilation, but ICC will put the dependencies in
5747  # the current directory while Tru64 will put them in the object
5748  # directory.
5749  mkdir sub
5750
5751  am_cv_CXX_dependencies_compiler_type=none
5752  if test "$am_compiler_list" = ""; then
5753     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5754  fi
5755  for depmode in $am_compiler_list; do
5756    # Setup a source with many dependencies, because some compilers
5757    # like to wrap large dependency lists on column 80 (with \), and
5758    # we should not choose a depcomp mode which is confused by this.
5759    #
5760    # We need to recreate these files for each test, as the compiler may
5761    # overwrite some of them when testing with obscure command lines.
5762    # This happens at least with the AIX C compiler.
5763    : > sub/conftest.c
5764    for i in 1 2 3 4 5 6; do
5765      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5766      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5767      # Solaris 8's {/usr,}/bin/sh.
5768      touch sub/conftst$i.h
5769    done
5770    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5771
5772    case $depmode in
5773    nosideeffect)
5774      # after this tag, mechanisms are not by side-effect, so they'll
5775      # only be used when explicitly requested
5776      if test "x$enable_dependency_tracking" = xyes; then
5777	continue
5778      else
5779	break
5780      fi
5781      ;;
5782    none) break ;;
5783    esac
5784    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5785    # mode.  It turns out that the SunPro C++ compiler does not properly
5786    # handle `-M -o', and we need to detect this.
5787    if depmode=$depmode \
5788       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5789       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5790       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5791         >/dev/null 2>conftest.err &&
5792       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5793       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5794       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5795       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5796      # icc doesn't choke on unknown options, it will just issue warnings
5797      # or remarks (even with -Werror).  So we grep stderr for any message
5798      # that says an option was ignored or not supported.
5799      # When given -MP, icc 7.0 and 7.1 complain thusly:
5800      #   icc: Command line warning: ignoring option '-M'; no argument required
5801      # The diagnosis changed in icc 8.0:
5802      #   icc: Command line remark: option '-MP' not supported
5803      if (grep 'ignoring option' conftest.err ||
5804          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5805        am_cv_CXX_dependencies_compiler_type=$depmode
5806        break
5807      fi
5808    fi
5809  done
5810
5811  cd ..
5812  rm -rf conftest.dir
5813else
5814  am_cv_CXX_dependencies_compiler_type=none
5815fi
5816
5817fi
5818{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5819$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5820CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5821
5822 if
5823  test "x$enable_dependency_tracking" != xno \
5824  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5825  am__fastdepCXX_TRUE=
5826  am__fastdepCXX_FALSE='#'
5827else
5828  am__fastdepCXX_TRUE='#'
5829  am__fastdepCXX_FALSE=
5830fi
5831
5832
5833
5834
5835if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5836    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5837    (test "X$CXX" != "Xg++"))) ; then
5838  ac_ext=cpp
5839ac_cpp='$CXXCPP $CPPFLAGS'
5840ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5841ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5842ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5843{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5844$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5845if test -z "$CXXCPP"; then
5846  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5847  $as_echo_n "(cached) " >&6
5848else
5849      # Double quotes because CXXCPP needs to be expanded
5850    for CXXCPP in "$CXX -E" "/lib/cpp"
5851    do
5852      ac_preproc_ok=false
5853for ac_cxx_preproc_warn_flag in '' yes
5854do
5855  # Use a header file that comes with gcc, so configuring glibc
5856  # with a fresh cross-compiler works.
5857  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5858  # <limits.h> exists even on freestanding compilers.
5859  # On the NeXT, cc -E runs the code through the compiler's parser,
5860  # not just through cpp. "Syntax error" is here to catch this case.
5861  cat >conftest.$ac_ext <<_ACEOF
5862/* confdefs.h.  */
5863_ACEOF
5864cat confdefs.h >>conftest.$ac_ext
5865cat >>conftest.$ac_ext <<_ACEOF
5866/* end confdefs.h.  */
5867#ifdef __STDC__
5868# include <limits.h>
5869#else
5870# include <assert.h>
5871#endif
5872		     Syntax error
5873_ACEOF
5874if { (ac_try="$ac_cpp conftest.$ac_ext"
5875case "(($ac_try" in
5876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877  *) ac_try_echo=$ac_try;;
5878esac
5879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5880$as_echo "$ac_try_echo") >&5
5881  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5882  ac_status=$?
5883  grep -v '^ *+' conftest.er1 >conftest.err
5884  rm -f conftest.er1
5885  cat conftest.err >&5
5886  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887  (exit $ac_status); } >/dev/null && {
5888	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5889	 test ! -s conftest.err
5890       }; then
5891  :
5892else
5893  $as_echo "$as_me: failed program was:" >&5
5894sed 's/^/| /' conftest.$ac_ext >&5
5895
5896  # Broken: fails on valid input.
5897continue
5898fi
5899
5900rm -f conftest.err conftest.$ac_ext
5901
5902  # OK, works on sane cases.  Now check whether nonexistent headers
5903  # can be detected and how.
5904  cat >conftest.$ac_ext <<_ACEOF
5905/* confdefs.h.  */
5906_ACEOF
5907cat confdefs.h >>conftest.$ac_ext
5908cat >>conftest.$ac_ext <<_ACEOF
5909/* end confdefs.h.  */
5910#include <ac_nonexistent.h>
5911_ACEOF
5912if { (ac_try="$ac_cpp conftest.$ac_ext"
5913case "(($ac_try" in
5914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915  *) ac_try_echo=$ac_try;;
5916esac
5917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5918$as_echo "$ac_try_echo") >&5
5919  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5920  ac_status=$?
5921  grep -v '^ *+' conftest.er1 >conftest.err
5922  rm -f conftest.er1
5923  cat conftest.err >&5
5924  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925  (exit $ac_status); } >/dev/null && {
5926	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5927	 test ! -s conftest.err
5928       }; then
5929  # Broken: success on invalid input.
5930continue
5931else
5932  $as_echo "$as_me: failed program was:" >&5
5933sed 's/^/| /' conftest.$ac_ext >&5
5934
5935  # Passes both tests.
5936ac_preproc_ok=:
5937break
5938fi
5939
5940rm -f conftest.err conftest.$ac_ext
5941
5942done
5943# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5944rm -f conftest.err conftest.$ac_ext
5945if $ac_preproc_ok; then
5946  break
5947fi
5948
5949    done
5950    ac_cv_prog_CXXCPP=$CXXCPP
5951
5952fi
5953  CXXCPP=$ac_cv_prog_CXXCPP
5954else
5955  ac_cv_prog_CXXCPP=$CXXCPP
5956fi
5957{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5958$as_echo "$CXXCPP" >&6; }
5959ac_preproc_ok=false
5960for ac_cxx_preproc_warn_flag in '' yes
5961do
5962  # Use a header file that comes with gcc, so configuring glibc
5963  # with a fresh cross-compiler works.
5964  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5965  # <limits.h> exists even on freestanding compilers.
5966  # On the NeXT, cc -E runs the code through the compiler's parser,
5967  # not just through cpp. "Syntax error" is here to catch this case.
5968  cat >conftest.$ac_ext <<_ACEOF
5969/* confdefs.h.  */
5970_ACEOF
5971cat confdefs.h >>conftest.$ac_ext
5972cat >>conftest.$ac_ext <<_ACEOF
5973/* end confdefs.h.  */
5974#ifdef __STDC__
5975# include <limits.h>
5976#else
5977# include <assert.h>
5978#endif
5979		     Syntax error
5980_ACEOF
5981if { (ac_try="$ac_cpp conftest.$ac_ext"
5982case "(($ac_try" in
5983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984  *) ac_try_echo=$ac_try;;
5985esac
5986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5987$as_echo "$ac_try_echo") >&5
5988  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5989  ac_status=$?
5990  grep -v '^ *+' conftest.er1 >conftest.err
5991  rm -f conftest.er1
5992  cat conftest.err >&5
5993  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994  (exit $ac_status); } >/dev/null && {
5995	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5996	 test ! -s conftest.err
5997       }; then
5998  :
5999else
6000  $as_echo "$as_me: failed program was:" >&5
6001sed 's/^/| /' conftest.$ac_ext >&5
6002
6003  # Broken: fails on valid input.
6004continue
6005fi
6006
6007rm -f conftest.err conftest.$ac_ext
6008
6009  # OK, works on sane cases.  Now check whether nonexistent headers
6010  # can be detected and how.
6011  cat >conftest.$ac_ext <<_ACEOF
6012/* confdefs.h.  */
6013_ACEOF
6014cat confdefs.h >>conftest.$ac_ext
6015cat >>conftest.$ac_ext <<_ACEOF
6016/* end confdefs.h.  */
6017#include <ac_nonexistent.h>
6018_ACEOF
6019if { (ac_try="$ac_cpp conftest.$ac_ext"
6020case "(($ac_try" in
6021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022  *) ac_try_echo=$ac_try;;
6023esac
6024eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6025$as_echo "$ac_try_echo") >&5
6026  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6027  ac_status=$?
6028  grep -v '^ *+' conftest.er1 >conftest.err
6029  rm -f conftest.er1
6030  cat conftest.err >&5
6031  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032  (exit $ac_status); } >/dev/null && {
6033	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6034	 test ! -s conftest.err
6035       }; then
6036  # Broken: success on invalid input.
6037continue
6038else
6039  $as_echo "$as_me: failed program was:" >&5
6040sed 's/^/| /' conftest.$ac_ext >&5
6041
6042  # Passes both tests.
6043ac_preproc_ok=:
6044break
6045fi
6046
6047rm -f conftest.err conftest.$ac_ext
6048
6049done
6050# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6051rm -f conftest.err conftest.$ac_ext
6052if $ac_preproc_ok; then
6053  :
6054else
6055  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6056$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6057{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6058See \`config.log' for more details." >&5
6059$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6060See \`config.log' for more details." >&2;}
6061   { (exit 1); exit 1; }; }; }
6062fi
6063
6064ac_ext=cpp
6065ac_cpp='$CXXCPP $CPPFLAGS'
6066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6069
6070fi
6071
6072
6073ac_ext=f
6074ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6075ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6076ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6077if test -n "$ac_tool_prefix"; then
6078  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
6079  do
6080    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6081set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6082{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6083$as_echo_n "checking for $ac_word... " >&6; }
6084if test "${ac_cv_prog_F77+set}" = set; then
6085  $as_echo_n "(cached) " >&6
6086else
6087  if test -n "$F77"; then
6088  ac_cv_prog_F77="$F77" # Let the user override the test.
6089else
6090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091for as_dir in $PATH
6092do
6093  IFS=$as_save_IFS
6094  test -z "$as_dir" && as_dir=.
6095  for ac_exec_ext in '' $ac_executable_extensions; do
6096  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6097    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6098    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6099    break 2
6100  fi
6101done
6102done
6103IFS=$as_save_IFS
6104
6105fi
6106fi
6107F77=$ac_cv_prog_F77
6108if test -n "$F77"; then
6109  { $as_echo "$as_me:$LINENO: result: $F77" >&5
6110$as_echo "$F77" >&6; }
6111else
6112  { $as_echo "$as_me:$LINENO: result: no" >&5
6113$as_echo "no" >&6; }
6114fi
6115
6116
6117    test -n "$F77" && break
6118  done
6119fi
6120if test -z "$F77"; then
6121  ac_ct_F77=$F77
6122  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
6123do
6124  # Extract the first word of "$ac_prog", so it can be a program name with args.
6125set dummy $ac_prog; ac_word=$2
6126{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6127$as_echo_n "checking for $ac_word... " >&6; }
6128if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6129  $as_echo_n "(cached) " >&6
6130else
6131  if test -n "$ac_ct_F77"; then
6132  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6133else
6134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135for as_dir in $PATH
6136do
6137  IFS=$as_save_IFS
6138  test -z "$as_dir" && as_dir=.
6139  for ac_exec_ext in '' $ac_executable_extensions; do
6140  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6141    ac_cv_prog_ac_ct_F77="$ac_prog"
6142    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6143    break 2
6144  fi
6145done
6146done
6147IFS=$as_save_IFS
6148
6149fi
6150fi
6151ac_ct_F77=$ac_cv_prog_ac_ct_F77
6152if test -n "$ac_ct_F77"; then
6153  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6154$as_echo "$ac_ct_F77" >&6; }
6155else
6156  { $as_echo "$as_me:$LINENO: result: no" >&5
6157$as_echo "no" >&6; }
6158fi
6159
6160
6161  test -n "$ac_ct_F77" && break
6162done
6163
6164  if test "x$ac_ct_F77" = x; then
6165    F77=""
6166  else
6167    case $cross_compiling:$ac_tool_warned in
6168yes:)
6169{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6171ac_tool_warned=yes ;;
6172esac
6173    F77=$ac_ct_F77
6174  fi
6175fi
6176
6177
6178# Provide some information about the compiler.
6179$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6180set X $ac_compile
6181ac_compiler=$2
6182{ (ac_try="$ac_compiler --version >&5"
6183case "(($ac_try" in
6184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6185  *) ac_try_echo=$ac_try;;
6186esac
6187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6188$as_echo "$ac_try_echo") >&5
6189  (eval "$ac_compiler --version >&5") 2>&5
6190  ac_status=$?
6191  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192  (exit $ac_status); }
6193{ (ac_try="$ac_compiler -v >&5"
6194case "(($ac_try" in
6195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6196  *) ac_try_echo=$ac_try;;
6197esac
6198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6199$as_echo "$ac_try_echo") >&5
6200  (eval "$ac_compiler -v >&5") 2>&5
6201  ac_status=$?
6202  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203  (exit $ac_status); }
6204{ (ac_try="$ac_compiler -V >&5"
6205case "(($ac_try" in
6206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207  *) ac_try_echo=$ac_try;;
6208esac
6209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6210$as_echo "$ac_try_echo") >&5
6211  (eval "$ac_compiler -V >&5") 2>&5
6212  ac_status=$?
6213  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214  (exit $ac_status); }
6215rm -f a.out
6216
6217# If we don't use `.F' as extension, the preprocessor is not run on the
6218# input file.  (Note that this only needs to work for GNU compilers.)
6219ac_save_ext=$ac_ext
6220ac_ext=F
6221{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6222$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6223if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6224  $as_echo_n "(cached) " >&6
6225else
6226  cat >conftest.$ac_ext <<_ACEOF
6227      program main
6228#ifndef __GNUC__
6229       choke me
6230#endif
6231
6232      end
6233_ACEOF
6234rm -f conftest.$ac_objext
6235if { (ac_try="$ac_compile"
6236case "(($ac_try" in
6237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238  *) ac_try_echo=$ac_try;;
6239esac
6240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6241$as_echo "$ac_try_echo") >&5
6242  (eval "$ac_compile") 2>conftest.er1
6243  ac_status=$?
6244  grep -v '^ *+' conftest.er1 >conftest.err
6245  rm -f conftest.er1
6246  cat conftest.err >&5
6247  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248  (exit $ac_status); } && {
6249	 test -z "$ac_f77_werror_flag" ||
6250	 test ! -s conftest.err
6251       } && test -s conftest.$ac_objext; then
6252  ac_compiler_gnu=yes
6253else
6254  $as_echo "$as_me: failed program was:" >&5
6255sed 's/^/| /' conftest.$ac_ext >&5
6256
6257	ac_compiler_gnu=no
6258fi
6259
6260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6262
6263fi
6264{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6265$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6266ac_ext=$ac_save_ext
6267ac_test_FFLAGS=${FFLAGS+set}
6268ac_save_FFLAGS=$FFLAGS
6269FFLAGS=
6270{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6271$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6272if test "${ac_cv_prog_f77_g+set}" = set; then
6273  $as_echo_n "(cached) " >&6
6274else
6275  FFLAGS=-g
6276cat >conftest.$ac_ext <<_ACEOF
6277      program main
6278
6279      end
6280_ACEOF
6281rm -f conftest.$ac_objext
6282if { (ac_try="$ac_compile"
6283case "(($ac_try" in
6284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285  *) ac_try_echo=$ac_try;;
6286esac
6287eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6288$as_echo "$ac_try_echo") >&5
6289  (eval "$ac_compile") 2>conftest.er1
6290  ac_status=$?
6291  grep -v '^ *+' conftest.er1 >conftest.err
6292  rm -f conftest.er1
6293  cat conftest.err >&5
6294  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295  (exit $ac_status); } && {
6296	 test -z "$ac_f77_werror_flag" ||
6297	 test ! -s conftest.err
6298       } && test -s conftest.$ac_objext; then
6299  ac_cv_prog_f77_g=yes
6300else
6301  $as_echo "$as_me: failed program was:" >&5
6302sed 's/^/| /' conftest.$ac_ext >&5
6303
6304	ac_cv_prog_f77_g=no
6305fi
6306
6307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308
6309fi
6310{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6311$as_echo "$ac_cv_prog_f77_g" >&6; }
6312if test "$ac_test_FFLAGS" = set; then
6313  FFLAGS=$ac_save_FFLAGS
6314elif test $ac_cv_prog_f77_g = yes; then
6315  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6316    FFLAGS="-g -O2"
6317  else
6318    FFLAGS="-g"
6319  fi
6320else
6321  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6322    FFLAGS="-O2"
6323  else
6324    FFLAGS=
6325  fi
6326fi
6327
6328if test $ac_compiler_gnu = yes; then
6329  G77=yes
6330else
6331  G77=
6332fi
6333ac_ext=c
6334ac_cpp='$CPP $CPPFLAGS'
6335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6337ac_compiler_gnu=$ac_cv_c_compiler_gnu
6338
6339
6340
6341# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6342# find the maximum length of command line arguments
6343{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6344$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6345if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6346  $as_echo_n "(cached) " >&6
6347else
6348    i=0
6349  teststring="ABCD"
6350
6351  case $build_os in
6352  msdosdjgpp*)
6353    # On DJGPP, this test can blow up pretty badly due to problems in libc
6354    # (any single argument exceeding 2000 bytes causes a buffer overrun
6355    # during glob expansion).  Even if it were fixed, the result of this
6356    # check would be larger than it should be.
6357    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6358    ;;
6359
6360  gnu*)
6361    # Under GNU Hurd, this test is not required because there is
6362    # no limit to the length of command line arguments.
6363    # Libtool will interpret -1 as no limit whatsoever
6364    lt_cv_sys_max_cmd_len=-1;
6365    ;;
6366
6367  cygwin* | mingw*)
6368    # On Win9x/ME, this test blows up -- it succeeds, but takes
6369    # about 5 minutes as the teststring grows exponentially.
6370    # Worse, since 9x/ME are not pre-emptively multitasking,
6371    # you end up with a "frozen" computer, even though with patience
6372    # the test eventually succeeds (with a max line length of 256k).
6373    # Instead, let's just punt: use the minimum linelength reported by
6374    # all of the supported platforms: 8192 (on NT/2K/XP).
6375    lt_cv_sys_max_cmd_len=8192;
6376    ;;
6377
6378  amigaos*)
6379    # On AmigaOS with pdksh, this test takes hours, literally.
6380    # So we just punt and use a minimum line length of 8192.
6381    lt_cv_sys_max_cmd_len=8192;
6382    ;;
6383
6384  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6385    # This has been around since 386BSD, at least.  Likely further.
6386    if test -x /sbin/sysctl; then
6387      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6388    elif test -x /usr/sbin/sysctl; then
6389      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6390    else
6391      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6392    fi
6393    # And add a safety zone
6394    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6395    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6396    ;;
6397
6398  interix*)
6399    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6400    lt_cv_sys_max_cmd_len=196608
6401    ;;
6402
6403  osf*)
6404    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6405    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6406    # nice to cause kernel panics so lets avoid the loop below.
6407    # First set a reasonable default.
6408    lt_cv_sys_max_cmd_len=16384
6409    #
6410    if test -x /sbin/sysconfig; then
6411      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6412        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6413      esac
6414    fi
6415    ;;
6416  sco3.2v5*)
6417    lt_cv_sys_max_cmd_len=102400
6418    ;;
6419  sysv5* | sco5v6* | sysv4.2uw2*)
6420    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6421    if test -n "$kargmax"; then
6422      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6423    else
6424      lt_cv_sys_max_cmd_len=32768
6425    fi
6426    ;;
6427  *)
6428    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6429    if test -n "$lt_cv_sys_max_cmd_len"; then
6430      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6431      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6432    else
6433      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6434      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6435	       = "XX$teststring") >/dev/null 2>&1 &&
6436	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6437	      lt_cv_sys_max_cmd_len=$new_result &&
6438	      test $i != 17 # 1/2 MB should be enough
6439      do
6440        i=`expr $i + 1`
6441        teststring=$teststring$teststring
6442      done
6443      teststring=
6444      # Add a significant safety factor because C++ compilers can tack on massive
6445      # amounts of additional arguments before passing them to the linker.
6446      # It appears as though 1/2 is a usable value.
6447      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6448    fi
6449    ;;
6450  esac
6451
6452fi
6453
6454if test -n $lt_cv_sys_max_cmd_len ; then
6455  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6456$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6457else
6458  { $as_echo "$as_me:$LINENO: result: none" >&5
6459$as_echo "none" >&6; }
6460fi
6461
6462
6463
6464
6465
6466# Check for command to grab the raw symbol name followed by C symbol from nm.
6467{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6468$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6469if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6470  $as_echo_n "(cached) " >&6
6471else
6472
6473# These are sane defaults that work on at least a few old systems.
6474# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6475
6476# Character class describing NM global symbol codes.
6477symcode='[BCDEGRST]'
6478
6479# Regexp to match symbols that can be accessed directly from C.
6480sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6481
6482# Transform an extracted symbol line into a proper C declaration
6483lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6484
6485# Transform an extracted symbol line into symbol name and symbol address
6486lt_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
6488# Define system-specific variables.
6489case $host_os in
6490aix*)
6491  symcode='[BCDT]'
6492  ;;
6493cygwin* | mingw* | pw32*)
6494  symcode='[ABCDGISTW]'
6495  ;;
6496hpux*) # Its linker distinguishes data from code symbols
6497  if test "$host_cpu" = ia64; then
6498    symcode='[ABCDEGRST]'
6499  fi
6500  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6501  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'"
6502  ;;
6503linux* | k*bsd*-gnu)
6504  if test "$host_cpu" = ia64; then
6505    symcode='[ABCDGIRSTW]'
6506    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6507    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'"
6508  fi
6509  ;;
6510irix* | nonstopux*)
6511  symcode='[BCDEGRST]'
6512  ;;
6513osf*)
6514  symcode='[BCDEGQRST]'
6515  ;;
6516solaris*)
6517  symcode='[BDRT]'
6518  ;;
6519sco3.2v5*)
6520  symcode='[DT]'
6521  ;;
6522sysv4.2uw2*)
6523  symcode='[DT]'
6524  ;;
6525sysv5* | sco5v6* | unixware* | OpenUNIX*)
6526  symcode='[ABDT]'
6527  ;;
6528sysv4)
6529  symcode='[DFNSTU]'
6530  ;;
6531esac
6532
6533# Handle CRLF in mingw tool chain
6534opt_cr=
6535case $build_os in
6536mingw*)
6537  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6538  ;;
6539esac
6540
6541# If we're using GNU nm, then use its standard symbol codes.
6542case `$NM -V 2>&1` in
6543*GNU* | *'with BFD'*)
6544  symcode='[ABCDGIRSTW]' ;;
6545esac
6546
6547# Try without a prefix undercore, then with it.
6548for ac_symprfx in "" "_"; do
6549
6550  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6551  symxfrm="\\1 $ac_symprfx\\2 \\2"
6552
6553  # Write the raw and C identifiers.
6554  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6555
6556  # Check to see that the pipe works correctly.
6557  pipe_works=no
6558
6559  rm -f conftest*
6560  cat > conftest.$ac_ext <<EOF
6561#ifdef __cplusplus
6562extern "C" {
6563#endif
6564char nm_test_var;
6565void nm_test_func(){}
6566#ifdef __cplusplus
6567}
6568#endif
6569int main(){nm_test_var='a';nm_test_func();return(0);}
6570EOF
6571
6572  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6573  (eval $ac_compile) 2>&5
6574  ac_status=$?
6575  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576  (exit $ac_status); }; then
6577    # Now try to grab the symbols.
6578    nlist=conftest.nm
6579    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6580  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6581  ac_status=$?
6582  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583  (exit $ac_status); } && test -s "$nlist"; then
6584      # Try sorting and uniquifying the output.
6585      if sort "$nlist" | uniq > "$nlist"T; then
6586	mv -f "$nlist"T "$nlist"
6587      else
6588	rm -f "$nlist"T
6589      fi
6590
6591      # Make sure that we snagged all the symbols we need.
6592      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6593	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6594	  cat <<EOF > conftest.$ac_ext
6595#ifdef __cplusplus
6596extern "C" {
6597#endif
6598
6599EOF
6600	  # Now generate the symbol file.
6601	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6602
6603	  cat <<EOF >> conftest.$ac_ext
6604#if defined (__STDC__) && __STDC__
6605# define lt_ptr_t void *
6606#else
6607# define lt_ptr_t char *
6608# define const
6609#endif
6610
6611/* The mapping between symbol names and symbols. */
6612const struct {
6613  const char *name;
6614  lt_ptr_t address;
6615}
6616lt_preloaded_symbols[] =
6617{
6618EOF
6619	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6620	  cat <<\EOF >> conftest.$ac_ext
6621  {0, (lt_ptr_t) 0}
6622};
6623
6624#ifdef __cplusplus
6625}
6626#endif
6627EOF
6628	  # Now try linking the two files.
6629	  mv conftest.$ac_objext conftstm.$ac_objext
6630	  lt_save_LIBS="$LIBS"
6631	  lt_save_CFLAGS="$CFLAGS"
6632	  LIBS="conftstm.$ac_objext"
6633	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6634	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6635  (eval $ac_link) 2>&5
6636  ac_status=$?
6637  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6639	    pipe_works=yes
6640	  fi
6641	  LIBS="$lt_save_LIBS"
6642	  CFLAGS="$lt_save_CFLAGS"
6643	else
6644	  echo "cannot find nm_test_func in $nlist" >&5
6645	fi
6646      else
6647	echo "cannot find nm_test_var in $nlist" >&5
6648      fi
6649    else
6650      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6651    fi
6652  else
6653    echo "$progname: failed program was:" >&5
6654    cat conftest.$ac_ext >&5
6655  fi
6656  rm -rf conftest* conftst*
6657
6658  # Do not use the global_symbol_pipe unless it works.
6659  if test "$pipe_works" = yes; then
6660    break
6661  else
6662    lt_cv_sys_global_symbol_pipe=
6663  fi
6664done
6665
6666fi
6667
6668if test -z "$lt_cv_sys_global_symbol_pipe"; then
6669  lt_cv_sys_global_symbol_to_cdecl=
6670fi
6671if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6672  { $as_echo "$as_me:$LINENO: result: failed" >&5
6673$as_echo "failed" >&6; }
6674else
6675  { $as_echo "$as_me:$LINENO: result: ok" >&5
6676$as_echo "ok" >&6; }
6677fi
6678
6679{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6680$as_echo_n "checking for objdir... " >&6; }
6681if test "${lt_cv_objdir+set}" = set; then
6682  $as_echo_n "(cached) " >&6
6683else
6684  rm -f .libs 2>/dev/null
6685mkdir .libs 2>/dev/null
6686if test -d .libs; then
6687  lt_cv_objdir=.libs
6688else
6689  # MS-DOS does not allow filenames that begin with a dot.
6690  lt_cv_objdir=_libs
6691fi
6692rmdir .libs 2>/dev/null
6693fi
6694{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6695$as_echo "$lt_cv_objdir" >&6; }
6696objdir=$lt_cv_objdir
6697
6698
6699
6700
6701
6702case $host_os in
6703aix3*)
6704  # AIX sometimes has problems with the GCC collect2 program.  For some
6705  # reason, if we set the COLLECT_NAMES environment variable, the problems
6706  # vanish in a puff of smoke.
6707  if test "X${COLLECT_NAMES+set}" != Xset; then
6708    COLLECT_NAMES=
6709    export COLLECT_NAMES
6710  fi
6711  ;;
6712esac
6713
6714# Sed substitution that helps us do robust quoting.  It backslashifies
6715# metacharacters that are still active within double-quoted strings.
6716Xsed='sed -e 1s/^X//'
6717sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6718
6719# Same as above, but do not quote variable references.
6720double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6721
6722# Sed substitution to delay expansion of an escaped shell variable in a
6723# double_quote_subst'ed string.
6724delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6725
6726# Sed substitution to avoid accidental globbing in evaled expressions
6727no_glob_subst='s/\*/\\\*/g'
6728
6729# Constants:
6730rm="rm -f"
6731
6732# Global variables:
6733default_ofile=libtool
6734can_build_shared=yes
6735
6736# All known linkers require a `.a' archive for static linking (except MSVC,
6737# which needs '.lib').
6738libext=a
6739ltmain="$ac_aux_dir/ltmain.sh"
6740ofile="$default_ofile"
6741with_gnu_ld="$lt_cv_prog_gnu_ld"
6742
6743if test -n "$ac_tool_prefix"; then
6744  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6745set dummy ${ac_tool_prefix}ar; ac_word=$2
6746{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6747$as_echo_n "checking for $ac_word... " >&6; }
6748if test "${ac_cv_prog_AR+set}" = set; then
6749  $as_echo_n "(cached) " >&6
6750else
6751  if test -n "$AR"; then
6752  ac_cv_prog_AR="$AR" # Let the user override the test.
6753else
6754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755for as_dir in $PATH
6756do
6757  IFS=$as_save_IFS
6758  test -z "$as_dir" && as_dir=.
6759  for ac_exec_ext in '' $ac_executable_extensions; do
6760  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6761    ac_cv_prog_AR="${ac_tool_prefix}ar"
6762    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6763    break 2
6764  fi
6765done
6766done
6767IFS=$as_save_IFS
6768
6769fi
6770fi
6771AR=$ac_cv_prog_AR
6772if test -n "$AR"; then
6773  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6774$as_echo "$AR" >&6; }
6775else
6776  { $as_echo "$as_me:$LINENO: result: no" >&5
6777$as_echo "no" >&6; }
6778fi
6779
6780
6781fi
6782if test -z "$ac_cv_prog_AR"; then
6783  ac_ct_AR=$AR
6784  # Extract the first word of "ar", so it can be a program name with args.
6785set dummy ar; ac_word=$2
6786{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6787$as_echo_n "checking for $ac_word... " >&6; }
6788if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6789  $as_echo_n "(cached) " >&6
6790else
6791  if test -n "$ac_ct_AR"; then
6792  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6793else
6794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795for as_dir in $PATH
6796do
6797  IFS=$as_save_IFS
6798  test -z "$as_dir" && as_dir=.
6799  for ac_exec_ext in '' $ac_executable_extensions; do
6800  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6801    ac_cv_prog_ac_ct_AR="ar"
6802    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6803    break 2
6804  fi
6805done
6806done
6807IFS=$as_save_IFS
6808
6809fi
6810fi
6811ac_ct_AR=$ac_cv_prog_ac_ct_AR
6812if test -n "$ac_ct_AR"; then
6813  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6814$as_echo "$ac_ct_AR" >&6; }
6815else
6816  { $as_echo "$as_me:$LINENO: result: no" >&5
6817$as_echo "no" >&6; }
6818fi
6819
6820  if test "x$ac_ct_AR" = x; then
6821    AR="false"
6822  else
6823    case $cross_compiling:$ac_tool_warned in
6824yes:)
6825{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6827ac_tool_warned=yes ;;
6828esac
6829    AR=$ac_ct_AR
6830  fi
6831else
6832  AR="$ac_cv_prog_AR"
6833fi
6834
6835if test -n "$ac_tool_prefix"; then
6836  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6837set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6838{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6839$as_echo_n "checking for $ac_word... " >&6; }
6840if test "${ac_cv_prog_RANLIB+set}" = set; then
6841  $as_echo_n "(cached) " >&6
6842else
6843  if test -n "$RANLIB"; then
6844  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6845else
6846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847for as_dir in $PATH
6848do
6849  IFS=$as_save_IFS
6850  test -z "$as_dir" && as_dir=.
6851  for ac_exec_ext in '' $ac_executable_extensions; do
6852  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6853    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6854    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6855    break 2
6856  fi
6857done
6858done
6859IFS=$as_save_IFS
6860
6861fi
6862fi
6863RANLIB=$ac_cv_prog_RANLIB
6864if test -n "$RANLIB"; then
6865  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6866$as_echo "$RANLIB" >&6; }
6867else
6868  { $as_echo "$as_me:$LINENO: result: no" >&5
6869$as_echo "no" >&6; }
6870fi
6871
6872
6873fi
6874if test -z "$ac_cv_prog_RANLIB"; then
6875  ac_ct_RANLIB=$RANLIB
6876  # Extract the first word of "ranlib", so it can be a program name with args.
6877set dummy ranlib; ac_word=$2
6878{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6879$as_echo_n "checking for $ac_word... " >&6; }
6880if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6881  $as_echo_n "(cached) " >&6
6882else
6883  if test -n "$ac_ct_RANLIB"; then
6884  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6885else
6886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887for as_dir in $PATH
6888do
6889  IFS=$as_save_IFS
6890  test -z "$as_dir" && as_dir=.
6891  for ac_exec_ext in '' $ac_executable_extensions; do
6892  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6893    ac_cv_prog_ac_ct_RANLIB="ranlib"
6894    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6895    break 2
6896  fi
6897done
6898done
6899IFS=$as_save_IFS
6900
6901fi
6902fi
6903ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6904if test -n "$ac_ct_RANLIB"; then
6905  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6906$as_echo "$ac_ct_RANLIB" >&6; }
6907else
6908  { $as_echo "$as_me:$LINENO: result: no" >&5
6909$as_echo "no" >&6; }
6910fi
6911
6912  if test "x$ac_ct_RANLIB" = x; then
6913    RANLIB=":"
6914  else
6915    case $cross_compiling:$ac_tool_warned in
6916yes:)
6917{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6918$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6919ac_tool_warned=yes ;;
6920esac
6921    RANLIB=$ac_ct_RANLIB
6922  fi
6923else
6924  RANLIB="$ac_cv_prog_RANLIB"
6925fi
6926
6927if test -n "$ac_tool_prefix"; then
6928  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6929set dummy ${ac_tool_prefix}strip; ac_word=$2
6930{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6931$as_echo_n "checking for $ac_word... " >&6; }
6932if test "${ac_cv_prog_STRIP+set}" = set; then
6933  $as_echo_n "(cached) " >&6
6934else
6935  if test -n "$STRIP"; then
6936  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6937else
6938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939for as_dir in $PATH
6940do
6941  IFS=$as_save_IFS
6942  test -z "$as_dir" && as_dir=.
6943  for ac_exec_ext in '' $ac_executable_extensions; do
6944  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6945    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6946    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6947    break 2
6948  fi
6949done
6950done
6951IFS=$as_save_IFS
6952
6953fi
6954fi
6955STRIP=$ac_cv_prog_STRIP
6956if test -n "$STRIP"; then
6957  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6958$as_echo "$STRIP" >&6; }
6959else
6960  { $as_echo "$as_me:$LINENO: result: no" >&5
6961$as_echo "no" >&6; }
6962fi
6963
6964
6965fi
6966if test -z "$ac_cv_prog_STRIP"; then
6967  ac_ct_STRIP=$STRIP
6968  # Extract the first word of "strip", so it can be a program name with args.
6969set dummy strip; ac_word=$2
6970{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6971$as_echo_n "checking for $ac_word... " >&6; }
6972if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6973  $as_echo_n "(cached) " >&6
6974else
6975  if test -n "$ac_ct_STRIP"; then
6976  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6977else
6978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979for as_dir in $PATH
6980do
6981  IFS=$as_save_IFS
6982  test -z "$as_dir" && as_dir=.
6983  for ac_exec_ext in '' $ac_executable_extensions; do
6984  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6985    ac_cv_prog_ac_ct_STRIP="strip"
6986    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6987    break 2
6988  fi
6989done
6990done
6991IFS=$as_save_IFS
6992
6993fi
6994fi
6995ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6996if test -n "$ac_ct_STRIP"; then
6997  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6998$as_echo "$ac_ct_STRIP" >&6; }
6999else
7000  { $as_echo "$as_me:$LINENO: result: no" >&5
7001$as_echo "no" >&6; }
7002fi
7003
7004  if test "x$ac_ct_STRIP" = x; then
7005    STRIP=":"
7006  else
7007    case $cross_compiling:$ac_tool_warned in
7008yes:)
7009{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7011ac_tool_warned=yes ;;
7012esac
7013    STRIP=$ac_ct_STRIP
7014  fi
7015else
7016  STRIP="$ac_cv_prog_STRIP"
7017fi
7018
7019
7020old_CC="$CC"
7021old_CFLAGS="$CFLAGS"
7022
7023# Set sane defaults for various variables
7024test -z "$AR" && AR=ar
7025test -z "$AR_FLAGS" && AR_FLAGS=cru
7026test -z "$AS" && AS=as
7027test -z "$CC" && CC=cc
7028test -z "$LTCC" && LTCC=$CC
7029test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7030test -z "$DLLTOOL" && DLLTOOL=dlltool
7031test -z "$LD" && LD=ld
7032test -z "$LN_S" && LN_S="ln -s"
7033test -z "$MAGIC_CMD" && MAGIC_CMD=file
7034test -z "$NM" && NM=nm
7035test -z "$SED" && SED=sed
7036test -z "$OBJDUMP" && OBJDUMP=objdump
7037test -z "$RANLIB" && RANLIB=:
7038test -z "$STRIP" && STRIP=:
7039test -z "$ac_objext" && ac_objext=o
7040
7041# Determine commands to create old-style static archives.
7042old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7043old_postinstall_cmds='chmod 644 $oldlib'
7044old_postuninstall_cmds=
7045
7046if test -n "$RANLIB"; then
7047  case $host_os in
7048  openbsd*)
7049    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7050    ;;
7051  *)
7052    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7053    ;;
7054  esac
7055  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7056fi
7057
7058for cc_temp in $compiler""; do
7059  case $cc_temp in
7060    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7061    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7062    \-*) ;;
7063    *) break;;
7064  esac
7065done
7066cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7067
7068
7069# Only perform the check for file, if the check method requires it
7070case $deplibs_check_method in
7071file_magic*)
7072  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7073    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7074$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7075if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7076  $as_echo_n "(cached) " >&6
7077else
7078  case $MAGIC_CMD in
7079[\\/*] |  ?:[\\/]*)
7080  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7081  ;;
7082*)
7083  lt_save_MAGIC_CMD="$MAGIC_CMD"
7084  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7085  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7086  for ac_dir in $ac_dummy; do
7087    IFS="$lt_save_ifs"
7088    test -z "$ac_dir" && ac_dir=.
7089    if test -f $ac_dir/${ac_tool_prefix}file; then
7090      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7091      if test -n "$file_magic_test_file"; then
7092	case $deplibs_check_method in
7093	"file_magic "*)
7094	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7095	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7096	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7097	    $EGREP "$file_magic_regex" > /dev/null; then
7098	    :
7099	  else
7100	    cat <<EOF 1>&2
7101
7102*** Warning: the command libtool uses to detect shared libraries,
7103*** $file_magic_cmd, produces output that libtool cannot recognize.
7104*** The result is that libtool may fail to recognize shared libraries
7105*** as such.  This will affect the creation of libtool libraries that
7106*** depend on shared libraries, but programs linked with such libtool
7107*** libraries will work regardless of this problem.  Nevertheless, you
7108*** may want to report the problem to your system manager and/or to
7109*** bug-libtool@gnu.org
7110
7111EOF
7112	  fi ;;
7113	esac
7114      fi
7115      break
7116    fi
7117  done
7118  IFS="$lt_save_ifs"
7119  MAGIC_CMD="$lt_save_MAGIC_CMD"
7120  ;;
7121esac
7122fi
7123
7124MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7125if test -n "$MAGIC_CMD"; then
7126  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7127$as_echo "$MAGIC_CMD" >&6; }
7128else
7129  { $as_echo "$as_me:$LINENO: result: no" >&5
7130$as_echo "no" >&6; }
7131fi
7132
7133if test -z "$lt_cv_path_MAGIC_CMD"; then
7134  if test -n "$ac_tool_prefix"; then
7135    { $as_echo "$as_me:$LINENO: checking for file" >&5
7136$as_echo_n "checking for file... " >&6; }
7137if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7138  $as_echo_n "(cached) " >&6
7139else
7140  case $MAGIC_CMD in
7141[\\/*] |  ?:[\\/]*)
7142  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7143  ;;
7144*)
7145  lt_save_MAGIC_CMD="$MAGIC_CMD"
7146  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7147  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7148  for ac_dir in $ac_dummy; do
7149    IFS="$lt_save_ifs"
7150    test -z "$ac_dir" && ac_dir=.
7151    if test -f $ac_dir/file; then
7152      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7153      if test -n "$file_magic_test_file"; then
7154	case $deplibs_check_method in
7155	"file_magic "*)
7156	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7157	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7158	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7159	    $EGREP "$file_magic_regex" > /dev/null; then
7160	    :
7161	  else
7162	    cat <<EOF 1>&2
7163
7164*** Warning: the command libtool uses to detect shared libraries,
7165*** $file_magic_cmd, produces output that libtool cannot recognize.
7166*** The result is that libtool may fail to recognize shared libraries
7167*** as such.  This will affect the creation of libtool libraries that
7168*** depend on shared libraries, but programs linked with such libtool
7169*** libraries will work regardless of this problem.  Nevertheless, you
7170*** may want to report the problem to your system manager and/or to
7171*** bug-libtool@gnu.org
7172
7173EOF
7174	  fi ;;
7175	esac
7176      fi
7177      break
7178    fi
7179  done
7180  IFS="$lt_save_ifs"
7181  MAGIC_CMD="$lt_save_MAGIC_CMD"
7182  ;;
7183esac
7184fi
7185
7186MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7187if test -n "$MAGIC_CMD"; then
7188  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7189$as_echo "$MAGIC_CMD" >&6; }
7190else
7191  { $as_echo "$as_me:$LINENO: result: no" >&5
7192$as_echo "no" >&6; }
7193fi
7194
7195  else
7196    MAGIC_CMD=:
7197  fi
7198fi
7199
7200  fi
7201  ;;
7202esac
7203
7204
7205  case $host_os in
7206    rhapsody* | darwin*)
7207    if test -n "$ac_tool_prefix"; then
7208  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7209set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7210{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7211$as_echo_n "checking for $ac_word... " >&6; }
7212if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7213  $as_echo_n "(cached) " >&6
7214else
7215  if test -n "$DSYMUTIL"; then
7216  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7217else
7218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219for as_dir in $PATH
7220do
7221  IFS=$as_save_IFS
7222  test -z "$as_dir" && as_dir=.
7223  for ac_exec_ext in '' $ac_executable_extensions; do
7224  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7225    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7226    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227    break 2
7228  fi
7229done
7230done
7231IFS=$as_save_IFS
7232
7233fi
7234fi
7235DSYMUTIL=$ac_cv_prog_DSYMUTIL
7236if test -n "$DSYMUTIL"; then
7237  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7238$as_echo "$DSYMUTIL" >&6; }
7239else
7240  { $as_echo "$as_me:$LINENO: result: no" >&5
7241$as_echo "no" >&6; }
7242fi
7243
7244
7245fi
7246if test -z "$ac_cv_prog_DSYMUTIL"; then
7247  ac_ct_DSYMUTIL=$DSYMUTIL
7248  # Extract the first word of "dsymutil", so it can be a program name with args.
7249set dummy dsymutil; ac_word=$2
7250{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7251$as_echo_n "checking for $ac_word... " >&6; }
7252if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7253  $as_echo_n "(cached) " >&6
7254else
7255  if test -n "$ac_ct_DSYMUTIL"; then
7256  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7257else
7258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259for as_dir in $PATH
7260do
7261  IFS=$as_save_IFS
7262  test -z "$as_dir" && as_dir=.
7263  for ac_exec_ext in '' $ac_executable_extensions; do
7264  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7265    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7266    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7267    break 2
7268  fi
7269done
7270done
7271IFS=$as_save_IFS
7272
7273fi
7274fi
7275ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7276if test -n "$ac_ct_DSYMUTIL"; then
7277  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7278$as_echo "$ac_ct_DSYMUTIL" >&6; }
7279else
7280  { $as_echo "$as_me:$LINENO: result: no" >&5
7281$as_echo "no" >&6; }
7282fi
7283
7284  if test "x$ac_ct_DSYMUTIL" = x; then
7285    DSYMUTIL=":"
7286  else
7287    case $cross_compiling:$ac_tool_warned in
7288yes:)
7289{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7291ac_tool_warned=yes ;;
7292esac
7293    DSYMUTIL=$ac_ct_DSYMUTIL
7294  fi
7295else
7296  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7297fi
7298
7299    if test -n "$ac_tool_prefix"; then
7300  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7301set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7302{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7303$as_echo_n "checking for $ac_word... " >&6; }
7304if test "${ac_cv_prog_NMEDIT+set}" = set; then
7305  $as_echo_n "(cached) " >&6
7306else
7307  if test -n "$NMEDIT"; then
7308  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7309else
7310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311for as_dir in $PATH
7312do
7313  IFS=$as_save_IFS
7314  test -z "$as_dir" && as_dir=.
7315  for ac_exec_ext in '' $ac_executable_extensions; do
7316  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7317    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7318    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7319    break 2
7320  fi
7321done
7322done
7323IFS=$as_save_IFS
7324
7325fi
7326fi
7327NMEDIT=$ac_cv_prog_NMEDIT
7328if test -n "$NMEDIT"; then
7329  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7330$as_echo "$NMEDIT" >&6; }
7331else
7332  { $as_echo "$as_me:$LINENO: result: no" >&5
7333$as_echo "no" >&6; }
7334fi
7335
7336
7337fi
7338if test -z "$ac_cv_prog_NMEDIT"; then
7339  ac_ct_NMEDIT=$NMEDIT
7340  # Extract the first word of "nmedit", so it can be a program name with args.
7341set dummy nmedit; ac_word=$2
7342{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7343$as_echo_n "checking for $ac_word... " >&6; }
7344if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7345  $as_echo_n "(cached) " >&6
7346else
7347  if test -n "$ac_ct_NMEDIT"; then
7348  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7349else
7350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351for as_dir in $PATH
7352do
7353  IFS=$as_save_IFS
7354  test -z "$as_dir" && as_dir=.
7355  for ac_exec_ext in '' $ac_executable_extensions; do
7356  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7358    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359    break 2
7360  fi
7361done
7362done
7363IFS=$as_save_IFS
7364
7365fi
7366fi
7367ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7368if test -n "$ac_ct_NMEDIT"; then
7369  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7370$as_echo "$ac_ct_NMEDIT" >&6; }
7371else
7372  { $as_echo "$as_me:$LINENO: result: no" >&5
7373$as_echo "no" >&6; }
7374fi
7375
7376  if test "x$ac_ct_NMEDIT" = x; then
7377    NMEDIT=":"
7378  else
7379    case $cross_compiling:$ac_tool_warned in
7380yes:)
7381{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7383ac_tool_warned=yes ;;
7384esac
7385    NMEDIT=$ac_ct_NMEDIT
7386  fi
7387else
7388  NMEDIT="$ac_cv_prog_NMEDIT"
7389fi
7390
7391
7392    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7393$as_echo_n "checking for -single_module linker flag... " >&6; }
7394if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7395  $as_echo_n "(cached) " >&6
7396else
7397  lt_cv_apple_cc_single_mod=no
7398      if test -z "${LT_MULTI_MODULE}"; then
7399   # By default we will add the -single_module flag. You can override
7400   # by either setting the environment variable LT_MULTI_MODULE
7401   # non-empty at configure time, or by adding -multi_module to the
7402   # link flags.
7403   echo "int foo(void){return 1;}" > conftest.c
7404   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7405     -dynamiclib ${wl}-single_module conftest.c
7406   if test -f libconftest.dylib; then
7407     lt_cv_apple_cc_single_mod=yes
7408     rm -rf libconftest.dylib*
7409   fi
7410   rm conftest.c
7411      fi
7412fi
7413{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7414$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7415    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7416$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7417if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7418  $as_echo_n "(cached) " >&6
7419else
7420  lt_cv_ld_exported_symbols_list=no
7421      save_LDFLAGS=$LDFLAGS
7422      echo "_main" > conftest.sym
7423      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7424      cat >conftest.$ac_ext <<_ACEOF
7425/* confdefs.h.  */
7426_ACEOF
7427cat confdefs.h >>conftest.$ac_ext
7428cat >>conftest.$ac_ext <<_ACEOF
7429/* end confdefs.h.  */
7430
7431int
7432main ()
7433{
7434
7435  ;
7436  return 0;
7437}
7438_ACEOF
7439rm -f conftest.$ac_objext conftest$ac_exeext
7440if { (ac_try="$ac_link"
7441case "(($ac_try" in
7442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7443  *) ac_try_echo=$ac_try;;
7444esac
7445eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7446$as_echo "$ac_try_echo") >&5
7447  (eval "$ac_link") 2>conftest.er1
7448  ac_status=$?
7449  grep -v '^ *+' conftest.er1 >conftest.err
7450  rm -f conftest.er1
7451  cat conftest.err >&5
7452  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453  (exit $ac_status); } && {
7454	 test -z "$ac_c_werror_flag" ||
7455	 test ! -s conftest.err
7456       } && test -s conftest$ac_exeext && {
7457	 test "$cross_compiling" = yes ||
7458	 $as_test_x conftest$ac_exeext
7459       }; then
7460  lt_cv_ld_exported_symbols_list=yes
7461else
7462  $as_echo "$as_me: failed program was:" >&5
7463sed 's/^/| /' conftest.$ac_ext >&5
7464
7465	lt_cv_ld_exported_symbols_list=no
7466fi
7467
7468rm -rf conftest.dSYM
7469rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7470      conftest$ac_exeext conftest.$ac_ext
7471   LDFLAGS="$save_LDFLAGS"
7472
7473fi
7474{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7475$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7476    case $host_os in
7477    rhapsody* | darwin1.[0123])
7478      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7479    darwin1.*)
7480     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7481    darwin*)
7482      # if running on 10.5 or later, the deployment target defaults
7483      # to the OS version, if on x86, and 10.4, the deployment
7484      # target defaults to 10.4. Don't you love it?
7485      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7486   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7487     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7488   10.[012]*)
7489     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7490   10.*)
7491     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7492      esac
7493    ;;
7494  esac
7495    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7496      _lt_dar_single_mod='$single_module'
7497    fi
7498    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7499      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7500    else
7501      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7502    fi
7503    if test "$DSYMUTIL" != ":"; then
7504      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7505    else
7506      _lt_dsymutil=
7507    fi
7508    ;;
7509  esac
7510
7511
7512enable_dlopen=no
7513enable_win32_dll=no
7514
7515# Check whether --enable-libtool-lock was given.
7516if test "${enable_libtool_lock+set}" = set; then
7517  enableval=$enable_libtool_lock;
7518fi
7519
7520test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7521
7522
7523# Check whether --with-pic was given.
7524if test "${with_pic+set}" = set; then
7525  withval=$with_pic; pic_mode="$withval"
7526else
7527  pic_mode=default
7528fi
7529
7530test -z "$pic_mode" && pic_mode=default
7531
7532# Use C for the default configuration in the libtool script
7533tagname=
7534lt_save_CC="$CC"
7535ac_ext=c
7536ac_cpp='$CPP $CPPFLAGS'
7537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7539ac_compiler_gnu=$ac_cv_c_compiler_gnu
7540
7541
7542# Source file extension for C test sources.
7543ac_ext=c
7544
7545# Object file extension for compiled C test sources.
7546objext=o
7547objext=$objext
7548
7549# Code to be used in simple compile tests
7550lt_simple_compile_test_code="int some_variable = 0;"
7551
7552# Code to be used in simple link tests
7553lt_simple_link_test_code='int main(){return(0);}'
7554
7555
7556# If no C compiler was specified, use CC.
7557LTCC=${LTCC-"$CC"}
7558
7559# If no C compiler flags were specified, use CFLAGS.
7560LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7561
7562# Allow CC to be a program name with arguments.
7563compiler=$CC
7564
7565
7566# save warnings/boilerplate of simple test code
7567ac_outfile=conftest.$ac_objext
7568echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7569eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7570_lt_compiler_boilerplate=`cat conftest.err`
7571$rm conftest*
7572
7573ac_outfile=conftest.$ac_objext
7574echo "$lt_simple_link_test_code" >conftest.$ac_ext
7575eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7576_lt_linker_boilerplate=`cat conftest.err`
7577$rm -r conftest*
7578
7579
7580
7581lt_prog_compiler_no_builtin_flag=
7582
7583if test "$GCC" = yes; then
7584  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7585
7586
7587{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7588$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7589if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7590  $as_echo_n "(cached) " >&6
7591else
7592  lt_cv_prog_compiler_rtti_exceptions=no
7593  ac_outfile=conftest.$ac_objext
7594   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7595   lt_compiler_flag="-fno-rtti -fno-exceptions"
7596   # Insert the option either (1) after the last *FLAGS variable, or
7597   # (2) before a word containing "conftest.", or (3) at the end.
7598   # Note that $ac_compile itself does not contain backslashes and begins
7599   # with a dollar sign (not a hyphen), so the echo should work correctly.
7600   # The option is referenced via a variable to avoid confusing sed.
7601   lt_compile=`echo "$ac_compile" | $SED \
7602   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7603   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7604   -e 's:$: $lt_compiler_flag:'`
7605   (eval echo "\"\$as_me:7605: $lt_compile\"" >&5)
7606   (eval "$lt_compile" 2>conftest.err)
7607   ac_status=$?
7608   cat conftest.err >&5
7609   echo "$as_me:7609: \$? = $ac_status" >&5
7610   if (exit $ac_status) && test -s "$ac_outfile"; then
7611     # The compiler can only warn and ignore the option if not recognized
7612     # So say no if there are warnings other than the usual output.
7613     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7614     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7615     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7616       lt_cv_prog_compiler_rtti_exceptions=yes
7617     fi
7618   fi
7619   $rm conftest*
7620
7621fi
7622{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7623$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7624
7625if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7626    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7627else
7628    :
7629fi
7630
7631fi
7632
7633lt_prog_compiler_wl=
7634lt_prog_compiler_pic=
7635lt_prog_compiler_static=
7636
7637{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7638$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7639
7640  if test "$GCC" = yes; then
7641    lt_prog_compiler_wl='-Wl,'
7642    lt_prog_compiler_static='-static'
7643
7644    case $host_os in
7645      aix*)
7646      # All AIX code is PIC.
7647      if test "$host_cpu" = ia64; then
7648	# AIX 5 now supports IA64 processor
7649	lt_prog_compiler_static='-Bstatic'
7650      fi
7651      ;;
7652
7653    amigaos*)
7654      # FIXME: we need at least 68020 code to build shared libraries, but
7655      # adding the `-m68020' flag to GCC prevents building anything better,
7656      # like `-m68040'.
7657      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7658      ;;
7659
7660    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7661      # PIC is the default for these OSes.
7662      ;;
7663
7664    mingw* | cygwin* | pw32* | os2*)
7665      # This hack is so that the source file can tell whether it is being
7666      # built for inclusion in a dll (and should export symbols for example).
7667      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7668      # (--disable-auto-import) libraries
7669      lt_prog_compiler_pic='-DDLL_EXPORT'
7670      ;;
7671
7672    darwin* | rhapsody*)
7673      # PIC is the default on this platform
7674      # Common symbols not allowed in MH_DYLIB files
7675      lt_prog_compiler_pic='-fno-common'
7676      ;;
7677
7678    interix[3-9]*)
7679      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7680      # Instead, we relocate shared libraries at runtime.
7681      ;;
7682
7683    msdosdjgpp*)
7684      # Just because we use GCC doesn't mean we suddenly get shared libraries
7685      # on systems that don't support them.
7686      lt_prog_compiler_can_build_shared=no
7687      enable_shared=no
7688      ;;
7689
7690    sysv4*MP*)
7691      if test -d /usr/nec; then
7692	lt_prog_compiler_pic=-Kconform_pic
7693      fi
7694      ;;
7695
7696    hpux*)
7697      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7698      # not for PA HP-UX.
7699      case $host_cpu in
7700      hppa*64*|ia64*)
7701	# +Z the default
7702	;;
7703      *)
7704	lt_prog_compiler_pic='-fPIC'
7705	;;
7706      esac
7707      ;;
7708
7709    *)
7710      lt_prog_compiler_pic='-fPIC'
7711      ;;
7712    esac
7713  else
7714    # PORTME Check for flag to pass linker flags through the system compiler.
7715    case $host_os in
7716    aix*)
7717      lt_prog_compiler_wl='-Wl,'
7718      if test "$host_cpu" = ia64; then
7719	# AIX 5 now supports IA64 processor
7720	lt_prog_compiler_static='-Bstatic'
7721      else
7722	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7723      fi
7724      ;;
7725      darwin*)
7726        # PIC is the default on this platform
7727        # Common symbols not allowed in MH_DYLIB files
7728       case $cc_basename in
7729         xlc*)
7730         lt_prog_compiler_pic='-qnocommon'
7731         lt_prog_compiler_wl='-Wl,'
7732         ;;
7733       esac
7734       ;;
7735
7736    mingw* | cygwin* | pw32* | os2*)
7737      # This hack is so that the source file can tell whether it is being
7738      # built for inclusion in a dll (and should export symbols for example).
7739      lt_prog_compiler_pic='-DDLL_EXPORT'
7740      ;;
7741
7742    hpux9* | hpux10* | hpux11*)
7743      lt_prog_compiler_wl='-Wl,'
7744      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7745      # not for PA HP-UX.
7746      case $host_cpu in
7747      hppa*64*|ia64*)
7748	# +Z the default
7749	;;
7750      *)
7751	lt_prog_compiler_pic='+Z'
7752	;;
7753      esac
7754      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7755      lt_prog_compiler_static='${wl}-a ${wl}archive'
7756      ;;
7757
7758    irix5* | irix6* | nonstopux*)
7759      lt_prog_compiler_wl='-Wl,'
7760      # PIC (with -KPIC) is the default.
7761      lt_prog_compiler_static='-non_shared'
7762      ;;
7763
7764    newsos6)
7765      lt_prog_compiler_pic='-KPIC'
7766      lt_prog_compiler_static='-Bstatic'
7767      ;;
7768
7769    linux* | k*bsd*-gnu)
7770      case $cc_basename in
7771      icc* | ecc*)
7772	lt_prog_compiler_wl='-Wl,'
7773	lt_prog_compiler_pic='-KPIC'
7774	lt_prog_compiler_static='-static'
7775        ;;
7776      pgcc* | pgf77* | pgf90* | pgf95*)
7777        # Portland Group compilers (*not* the Pentium gcc compiler,
7778	# which looks to be a dead project)
7779	lt_prog_compiler_wl='-Wl,'
7780	lt_prog_compiler_pic='-fpic'
7781	lt_prog_compiler_static='-Bstatic'
7782        ;;
7783      ccc*)
7784        lt_prog_compiler_wl='-Wl,'
7785        # All Alpha code is PIC.
7786        lt_prog_compiler_static='-non_shared'
7787        ;;
7788      *)
7789        case `$CC -V 2>&1 | sed 5q` in
7790	*Sun\ C*)
7791	  # Sun C 5.9
7792	  lt_prog_compiler_pic='-KPIC'
7793	  lt_prog_compiler_static='-Bstatic'
7794	  lt_prog_compiler_wl='-Wl,'
7795	  ;;
7796	*Sun\ F*)
7797	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7798	  lt_prog_compiler_pic='-KPIC'
7799	  lt_prog_compiler_static='-Bstatic'
7800	  lt_prog_compiler_wl=''
7801	  ;;
7802	esac
7803	;;
7804      esac
7805      ;;
7806
7807    osf3* | osf4* | osf5*)
7808      lt_prog_compiler_wl='-Wl,'
7809      # All OSF/1 code is PIC.
7810      lt_prog_compiler_static='-non_shared'
7811      ;;
7812
7813    rdos*)
7814      lt_prog_compiler_static='-non_shared'
7815      ;;
7816
7817    solaris*)
7818      lt_prog_compiler_pic='-KPIC'
7819      lt_prog_compiler_static='-Bstatic'
7820      case $cc_basename in
7821      f77* | f90* | f95*)
7822	lt_prog_compiler_wl='-Qoption ld ';;
7823      *)
7824	lt_prog_compiler_wl='-Wl,';;
7825      esac
7826      ;;
7827
7828    sunos4*)
7829      lt_prog_compiler_wl='-Qoption ld '
7830      lt_prog_compiler_pic='-PIC'
7831      lt_prog_compiler_static='-Bstatic'
7832      ;;
7833
7834    sysv4 | sysv4.2uw2* | sysv4.3*)
7835      lt_prog_compiler_wl='-Wl,'
7836      lt_prog_compiler_pic='-KPIC'
7837      lt_prog_compiler_static='-Bstatic'
7838      ;;
7839
7840    sysv4*MP*)
7841      if test -d /usr/nec ;then
7842	lt_prog_compiler_pic='-Kconform_pic'
7843	lt_prog_compiler_static='-Bstatic'
7844      fi
7845      ;;
7846
7847    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7848      lt_prog_compiler_wl='-Wl,'
7849      lt_prog_compiler_pic='-KPIC'
7850      lt_prog_compiler_static='-Bstatic'
7851      ;;
7852
7853    unicos*)
7854      lt_prog_compiler_wl='-Wl,'
7855      lt_prog_compiler_can_build_shared=no
7856      ;;
7857
7858    uts4*)
7859      lt_prog_compiler_pic='-pic'
7860      lt_prog_compiler_static='-Bstatic'
7861      ;;
7862
7863    *)
7864      lt_prog_compiler_can_build_shared=no
7865      ;;
7866    esac
7867  fi
7868
7869{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7870$as_echo "$lt_prog_compiler_pic" >&6; }
7871
7872#
7873# Check to make sure the PIC flag actually works.
7874#
7875if test -n "$lt_prog_compiler_pic"; then
7876
7877{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7878$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7879if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7880  $as_echo_n "(cached) " >&6
7881else
7882  lt_cv_prog_compiler_pic_works=no
7883  ac_outfile=conftest.$ac_objext
7884   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7885   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7886   # Insert the option either (1) after the last *FLAGS variable, or
7887   # (2) before a word containing "conftest.", or (3) at the end.
7888   # Note that $ac_compile itself does not contain backslashes and begins
7889   # with a dollar sign (not a hyphen), so the echo should work correctly.
7890   # The option is referenced via a variable to avoid confusing sed.
7891   lt_compile=`echo "$ac_compile" | $SED \
7892   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7893   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7894   -e 's:$: $lt_compiler_flag:'`
7895   (eval echo "\"\$as_me:7895: $lt_compile\"" >&5)
7896   (eval "$lt_compile" 2>conftest.err)
7897   ac_status=$?
7898   cat conftest.err >&5
7899   echo "$as_me:7899: \$? = $ac_status" >&5
7900   if (exit $ac_status) && test -s "$ac_outfile"; then
7901     # The compiler can only warn and ignore the option if not recognized
7902     # So say no if there are warnings other than the usual output.
7903     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7904     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7905     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7906       lt_cv_prog_compiler_pic_works=yes
7907     fi
7908   fi
7909   $rm conftest*
7910
7911fi
7912{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7913$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7914
7915if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7916    case $lt_prog_compiler_pic in
7917     "" | " "*) ;;
7918     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7919     esac
7920else
7921    lt_prog_compiler_pic=
7922     lt_prog_compiler_can_build_shared=no
7923fi
7924
7925fi
7926case $host_os in
7927  # For platforms which do not support PIC, -DPIC is meaningless:
7928  *djgpp*)
7929    lt_prog_compiler_pic=
7930    ;;
7931  *)
7932    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7933    ;;
7934esac
7935
7936#
7937# Check to make sure the static flag actually works.
7938#
7939wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7940{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7941$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7942if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7943  $as_echo_n "(cached) " >&6
7944else
7945  lt_cv_prog_compiler_static_works=no
7946   save_LDFLAGS="$LDFLAGS"
7947   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7948   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7949   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7950     # The linker can only warn and ignore the option if not recognized
7951     # So say no if there are warnings
7952     if test -s conftest.err; then
7953       # Append any errors to the config.log.
7954       cat conftest.err 1>&5
7955       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7956       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7957       if diff conftest.exp conftest.er2 >/dev/null; then
7958         lt_cv_prog_compiler_static_works=yes
7959       fi
7960     else
7961       lt_cv_prog_compiler_static_works=yes
7962     fi
7963   fi
7964   $rm -r conftest*
7965   LDFLAGS="$save_LDFLAGS"
7966
7967fi
7968{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7969$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7970
7971if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7972    :
7973else
7974    lt_prog_compiler_static=
7975fi
7976
7977
7978{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7979$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7980if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7981  $as_echo_n "(cached) " >&6
7982else
7983  lt_cv_prog_compiler_c_o=no
7984   $rm -r conftest 2>/dev/null
7985   mkdir conftest
7986   cd conftest
7987   mkdir out
7988   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7989
7990   lt_compiler_flag="-o out/conftest2.$ac_objext"
7991   # Insert the option either (1) after the last *FLAGS variable, or
7992   # (2) before a word containing "conftest.", or (3) at the end.
7993   # Note that $ac_compile itself does not contain backslashes and begins
7994   # with a dollar sign (not a hyphen), so the echo should work correctly.
7995   lt_compile=`echo "$ac_compile" | $SED \
7996   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7997   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7998   -e 's:$: $lt_compiler_flag:'`
7999   (eval echo "\"\$as_me:7999: $lt_compile\"" >&5)
8000   (eval "$lt_compile" 2>out/conftest.err)
8001   ac_status=$?
8002   cat out/conftest.err >&5
8003   echo "$as_me:8003: \$? = $ac_status" >&5
8004   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8005   then
8006     # The compiler can only warn and ignore the option if not recognized
8007     # So say no if there are warnings
8008     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8009     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8010     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8011       lt_cv_prog_compiler_c_o=yes
8012     fi
8013   fi
8014   chmod u+w . 2>&5
8015   $rm conftest*
8016   # SGI C++ compiler will create directory out/ii_files/ for
8017   # template instantiation
8018   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8019   $rm out/* && rmdir out
8020   cd ..
8021   rmdir conftest
8022   $rm conftest*
8023
8024fi
8025{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8026$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8027
8028
8029hard_links="nottested"
8030if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8031  # do not overwrite the value of need_locks provided by the user
8032  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8033$as_echo_n "checking if we can lock with hard links... " >&6; }
8034  hard_links=yes
8035  $rm conftest*
8036  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8037  touch conftest.a
8038  ln conftest.a conftest.b 2>&5 || hard_links=no
8039  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8040  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8041$as_echo "$hard_links" >&6; }
8042  if test "$hard_links" = no; then
8043    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8044$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8045    need_locks=warn
8046  fi
8047else
8048  need_locks=no
8049fi
8050
8051{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8052$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8053
8054  runpath_var=
8055  allow_undefined_flag=
8056  enable_shared_with_static_runtimes=no
8057  archive_cmds=
8058  archive_expsym_cmds=
8059  old_archive_From_new_cmds=
8060  old_archive_from_expsyms_cmds=
8061  export_dynamic_flag_spec=
8062  whole_archive_flag_spec=
8063  thread_safe_flag_spec=
8064  hardcode_libdir_flag_spec=
8065  hardcode_libdir_flag_spec_ld=
8066  hardcode_libdir_separator=
8067  hardcode_direct=no
8068  hardcode_minus_L=no
8069  hardcode_shlibpath_var=unsupported
8070  link_all_deplibs=unknown
8071  hardcode_automatic=no
8072  module_cmds=
8073  module_expsym_cmds=
8074  always_export_symbols=no
8075  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8076  # include_expsyms should be a list of space-separated symbols to be *always*
8077  # included in the symbol list
8078  include_expsyms=
8079  # exclude_expsyms can be an extended regexp of symbols to exclude
8080  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8081  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8082  # as well as any symbol that contains `d'.
8083  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8084  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8085  # platforms (ab)use it in PIC code, but their linkers get confused if
8086  # the symbol is explicitly referenced.  Since portable code cannot
8087  # rely on this symbol name, it's probably fine to never include it in
8088  # preloaded symbol tables.
8089  # Exclude shared library initialization/finalization symbols.
8090  extract_expsyms_cmds=
8091  # Just being paranoid about ensuring that cc_basename is set.
8092  for cc_temp in $compiler""; do
8093  case $cc_temp in
8094    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8095    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8096    \-*) ;;
8097    *) break;;
8098  esac
8099done
8100cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8101
8102  case $host_os in
8103  cygwin* | mingw* | pw32*)
8104    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8105    # When not using gcc, we currently assume that we are using
8106    # Microsoft Visual C++.
8107    if test "$GCC" != yes; then
8108      with_gnu_ld=no
8109    fi
8110    ;;
8111  interix*)
8112    # we just hope/assume this is gcc and not c89 (= MSVC++)
8113    with_gnu_ld=yes
8114    ;;
8115  openbsd*)
8116    with_gnu_ld=no
8117    ;;
8118  esac
8119
8120  ld_shlibs=yes
8121  if test "$with_gnu_ld" = yes; then
8122    # If archive_cmds runs LD, not CC, wlarc should be empty
8123    wlarc='${wl}'
8124
8125    # Set some defaults for GNU ld with shared library support. These
8126    # are reset later if shared libraries are not supported. Putting them
8127    # here allows them to be overridden if necessary.
8128    runpath_var=LD_RUN_PATH
8129    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8130    export_dynamic_flag_spec='${wl}--export-dynamic'
8131    # ancient GNU ld didn't support --whole-archive et. al.
8132    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8133	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8134      else
8135  	whole_archive_flag_spec=
8136    fi
8137    supports_anon_versioning=no
8138    case `$LD -v 2>/dev/null` in
8139      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8140      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8141      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8142      *\ 2.11.*) ;; # other 2.11 versions
8143      *) supports_anon_versioning=yes ;;
8144    esac
8145
8146    # See if GNU ld supports shared libraries.
8147    case $host_os in
8148    aix[3-9]*)
8149      # On AIX/PPC, the GNU linker is very broken
8150      if test "$host_cpu" != ia64; then
8151	ld_shlibs=no
8152	cat <<EOF 1>&2
8153
8154*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8155*** to be unable to reliably create shared libraries on AIX.
8156*** Therefore, libtool is disabling shared libraries support.  If you
8157*** really care for shared libraries, you may want to modify your PATH
8158*** so that a non-GNU linker is found, and then restart.
8159
8160EOF
8161      fi
8162      ;;
8163
8164    amigaos*)
8165      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)'
8166      hardcode_libdir_flag_spec='-L$libdir'
8167      hardcode_minus_L=yes
8168
8169      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8170      # that the semantics of dynamic libraries on AmigaOS, at least up
8171      # to version 4, is to share data among multiple programs linked
8172      # with the same dynamic library.  Since this doesn't match the
8173      # behavior of shared libraries on other platforms, we can't use
8174      # them.
8175      ld_shlibs=no
8176      ;;
8177
8178    beos*)
8179      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8180	allow_undefined_flag=unsupported
8181	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8182	# support --undefined.  This deserves some investigation.  FIXME
8183	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8184      else
8185	ld_shlibs=no
8186      fi
8187      ;;
8188
8189    cygwin* | mingw* | pw32*)
8190      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8191      # as there is no search path for DLLs.
8192      hardcode_libdir_flag_spec='-L$libdir'
8193      allow_undefined_flag=unsupported
8194      always_export_symbols=no
8195      enable_shared_with_static_runtimes=yes
8196      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8197
8198      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8199        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8200	# If the export-symbols file already is a .def file (1st line
8201	# is EXPORTS), use it as is; otherwise, prepend...
8202	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8203	  cp $export_symbols $output_objdir/$soname.def;
8204	else
8205	  echo EXPORTS > $output_objdir/$soname.def;
8206	  cat $export_symbols >> $output_objdir/$soname.def;
8207	fi~
8208	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8209      else
8210	ld_shlibs=no
8211      fi
8212      ;;
8213
8214    interix[3-9]*)
8215      hardcode_direct=no
8216      hardcode_shlibpath_var=no
8217      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8218      export_dynamic_flag_spec='${wl}-E'
8219      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8220      # Instead, shared libraries are loaded at an image base (0x10000000 by
8221      # default) and relocated if they conflict, which is a slow very memory
8222      # consuming and fragmenting process.  To avoid this, we pick a random,
8223      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8224      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8225      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8226      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'
8227      ;;
8228
8229    gnu* | linux* | k*bsd*-gnu)
8230      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8231	tmp_addflag=
8232	case $cc_basename,$host_cpu in
8233	pgcc*)				# Portland Group C compiler
8234	  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'
8235	  tmp_addflag=' $pic_flag'
8236	  ;;
8237	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8238	  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'
8239	  tmp_addflag=' $pic_flag -Mnomain' ;;
8240	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8241	  tmp_addflag=' -i_dynamic' ;;
8242	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8243	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8244	ifc* | ifort*)			# Intel Fortran compiler
8245	  tmp_addflag=' -nofor_main' ;;
8246	esac
8247	case `$CC -V 2>&1 | sed 5q` in
8248	*Sun\ C*)			# Sun C 5.9
8249	  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'
8250	  tmp_sharedflag='-G' ;;
8251	*Sun\ F*)			# Sun Fortran 8.3
8252	  tmp_sharedflag='-G' ;;
8253	*)
8254	  tmp_sharedflag='-shared' ;;
8255	esac
8256	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8257
8258	if test $supports_anon_versioning = yes; then
8259	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8260  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8261  $echo "local: *; };" >> $output_objdir/$libname.ver~
8262	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8263	fi
8264	link_all_deplibs=no
8265      else
8266	ld_shlibs=no
8267      fi
8268      ;;
8269
8270    netbsd*)
8271      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8272	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8273	wlarc=
8274      else
8275	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8276	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8277      fi
8278      ;;
8279
8280    solaris*)
8281      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8282	ld_shlibs=no
8283	cat <<EOF 1>&2
8284
8285*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8286*** create shared libraries on Solaris systems.  Therefore, libtool
8287*** is disabling shared libraries support.  We urge you to upgrade GNU
8288*** binutils to release 2.9.1 or newer.  Another option is to modify
8289*** your PATH or compiler configuration so that the native linker is
8290*** used, and then restart.
8291
8292EOF
8293      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8294	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8295	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8296      else
8297	ld_shlibs=no
8298      fi
8299      ;;
8300
8301    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8302      case `$LD -v 2>&1` in
8303        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8304	ld_shlibs=no
8305	cat <<_LT_EOF 1>&2
8306
8307*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8308*** reliably create shared libraries on SCO systems.  Therefore, libtool
8309*** is disabling shared libraries support.  We urge you to upgrade GNU
8310*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8311*** your PATH or compiler configuration so that the native linker is
8312*** used, and then restart.
8313
8314_LT_EOF
8315	;;
8316	*)
8317	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8318	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8319	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8320	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8321	  else
8322	    ld_shlibs=no
8323	  fi
8324	;;
8325      esac
8326      ;;
8327
8328    sunos4*)
8329      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8330      wlarc=
8331      hardcode_direct=yes
8332      hardcode_shlibpath_var=no
8333      ;;
8334
8335    *)
8336      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8337	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8338	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8339      else
8340	ld_shlibs=no
8341      fi
8342      ;;
8343    esac
8344
8345    if test "$ld_shlibs" = no; then
8346      runpath_var=
8347      hardcode_libdir_flag_spec=
8348      export_dynamic_flag_spec=
8349      whole_archive_flag_spec=
8350    fi
8351  else
8352    # PORTME fill in a description of your system's linker (not GNU ld)
8353    case $host_os in
8354    aix3*)
8355      allow_undefined_flag=unsupported
8356      always_export_symbols=yes
8357      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'
8358      # Note: this linker hardcodes the directories in LIBPATH if there
8359      # are no directories specified by -L.
8360      hardcode_minus_L=yes
8361      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8362	# Neither direct hardcoding nor static linking is supported with a
8363	# broken collect2.
8364	hardcode_direct=unsupported
8365      fi
8366      ;;
8367
8368    aix[4-9]*)
8369      if test "$host_cpu" = ia64; then
8370	# On IA64, the linker does run time linking by default, so we don't
8371	# have to do anything special.
8372	aix_use_runtimelinking=no
8373	exp_sym_flag='-Bexport'
8374	no_entry_flag=""
8375      else
8376	# If we're using GNU nm, then we don't want the "-C" option.
8377	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8378	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8379	  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'
8380	else
8381	  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'
8382	fi
8383	aix_use_runtimelinking=no
8384
8385	# Test if we are trying to use run time linking or normal
8386	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8387	# need to do runtime linking.
8388	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8389	  for ld_flag in $LDFLAGS; do
8390  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8391  	    aix_use_runtimelinking=yes
8392  	    break
8393  	  fi
8394	  done
8395	  ;;
8396	esac
8397
8398	exp_sym_flag='-bexport'
8399	no_entry_flag='-bnoentry'
8400      fi
8401
8402      # When large executables or shared objects are built, AIX ld can
8403      # have problems creating the table of contents.  If linking a library
8404      # or program results in "error TOC overflow" add -mminimal-toc to
8405      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8406      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8407
8408      archive_cmds=''
8409      hardcode_direct=yes
8410      hardcode_libdir_separator=':'
8411      link_all_deplibs=yes
8412
8413      if test "$GCC" = yes; then
8414	case $host_os in aix4.[012]|aix4.[012].*)
8415	# We only want to do this on AIX 4.2 and lower, the check
8416	# below for broken collect2 doesn't work under 4.3+
8417	  collect2name=`${CC} -print-prog-name=collect2`
8418	  if test -f "$collect2name" && \
8419  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8420	  then
8421  	  # We have reworked collect2
8422  	  :
8423	  else
8424  	  # We have old collect2
8425  	  hardcode_direct=unsupported
8426  	  # It fails to find uninstalled libraries when the uninstalled
8427  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8428  	  # to unsupported forces relinking
8429  	  hardcode_minus_L=yes
8430  	  hardcode_libdir_flag_spec='-L$libdir'
8431  	  hardcode_libdir_separator=
8432	  fi
8433	  ;;
8434	esac
8435	shared_flag='-shared'
8436	if test "$aix_use_runtimelinking" = yes; then
8437	  shared_flag="$shared_flag "'${wl}-G'
8438	fi
8439      else
8440	# not using gcc
8441	if test "$host_cpu" = ia64; then
8442  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8443  	# chokes on -Wl,-G. The following line is correct:
8444	  shared_flag='-G'
8445	else
8446	  if test "$aix_use_runtimelinking" = yes; then
8447	    shared_flag='${wl}-G'
8448	  else
8449	    shared_flag='${wl}-bM:SRE'
8450	  fi
8451	fi
8452      fi
8453
8454      # It seems that -bexpall does not export symbols beginning with
8455      # underscore (_), so it is better to generate a list of symbols to export.
8456      always_export_symbols=yes
8457      if test "$aix_use_runtimelinking" = yes; then
8458	# Warning - without using the other runtime loading flags (-brtl),
8459	# -berok will link without error, but may produce a broken library.
8460	allow_undefined_flag='-berok'
8461       # Determine the default libpath from the value encoded in an empty executable.
8462       cat >conftest.$ac_ext <<_ACEOF
8463/* confdefs.h.  */
8464_ACEOF
8465cat confdefs.h >>conftest.$ac_ext
8466cat >>conftest.$ac_ext <<_ACEOF
8467/* end confdefs.h.  */
8468
8469int
8470main ()
8471{
8472
8473  ;
8474  return 0;
8475}
8476_ACEOF
8477rm -f conftest.$ac_objext conftest$ac_exeext
8478if { (ac_try="$ac_link"
8479case "(($ac_try" in
8480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481  *) ac_try_echo=$ac_try;;
8482esac
8483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8484$as_echo "$ac_try_echo") >&5
8485  (eval "$ac_link") 2>conftest.er1
8486  ac_status=$?
8487  grep -v '^ *+' conftest.er1 >conftest.err
8488  rm -f conftest.er1
8489  cat conftest.err >&5
8490  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491  (exit $ac_status); } && {
8492	 test -z "$ac_c_werror_flag" ||
8493	 test ! -s conftest.err
8494       } && test -s conftest$ac_exeext && {
8495	 test "$cross_compiling" = yes ||
8496	 $as_test_x conftest$ac_exeext
8497       }; then
8498
8499lt_aix_libpath_sed='
8500    /Import File Strings/,/^$/ {
8501	/^0/ {
8502	    s/^0  *\(.*\)$/\1/
8503	    p
8504	}
8505    }'
8506aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8507# Check for a 64-bit object if we didn't find anything.
8508if test -z "$aix_libpath"; then
8509  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8510fi
8511else
8512  $as_echo "$as_me: failed program was:" >&5
8513sed 's/^/| /' conftest.$ac_ext >&5
8514
8515
8516fi
8517
8518rm -rf conftest.dSYM
8519rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8520      conftest$ac_exeext conftest.$ac_ext
8521if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8522
8523       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8524	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"
8525       else
8526	if test "$host_cpu" = ia64; then
8527	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8528	  allow_undefined_flag="-z nodefs"
8529	  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"
8530	else
8531	 # Determine the default libpath from the value encoded in an empty executable.
8532	 cat >conftest.$ac_ext <<_ACEOF
8533/* confdefs.h.  */
8534_ACEOF
8535cat confdefs.h >>conftest.$ac_ext
8536cat >>conftest.$ac_ext <<_ACEOF
8537/* end confdefs.h.  */
8538
8539int
8540main ()
8541{
8542
8543  ;
8544  return 0;
8545}
8546_ACEOF
8547rm -f conftest.$ac_objext conftest$ac_exeext
8548if { (ac_try="$ac_link"
8549case "(($ac_try" in
8550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8551  *) ac_try_echo=$ac_try;;
8552esac
8553eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8554$as_echo "$ac_try_echo") >&5
8555  (eval "$ac_link") 2>conftest.er1
8556  ac_status=$?
8557  grep -v '^ *+' conftest.er1 >conftest.err
8558  rm -f conftest.er1
8559  cat conftest.err >&5
8560  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561  (exit $ac_status); } && {
8562	 test -z "$ac_c_werror_flag" ||
8563	 test ! -s conftest.err
8564       } && test -s conftest$ac_exeext && {
8565	 test "$cross_compiling" = yes ||
8566	 $as_test_x conftest$ac_exeext
8567       }; then
8568
8569lt_aix_libpath_sed='
8570    /Import File Strings/,/^$/ {
8571	/^0/ {
8572	    s/^0  *\(.*\)$/\1/
8573	    p
8574	}
8575    }'
8576aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8577# Check for a 64-bit object if we didn't find anything.
8578if test -z "$aix_libpath"; then
8579  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8580fi
8581else
8582  $as_echo "$as_me: failed program was:" >&5
8583sed 's/^/| /' conftest.$ac_ext >&5
8584
8585
8586fi
8587
8588rm -rf conftest.dSYM
8589rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8590      conftest$ac_exeext conftest.$ac_ext
8591if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8592
8593	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8594	  # Warning - without using the other run time loading flags,
8595	  # -berok will link without error, but may produce a broken library.
8596	  no_undefined_flag=' ${wl}-bernotok'
8597	  allow_undefined_flag=' ${wl}-berok'
8598	  # Exported symbols can be pulled into shared objects from archives
8599	  whole_archive_flag_spec='$convenience'
8600	  archive_cmds_need_lc=yes
8601	  # This is similar to how AIX traditionally builds its shared libraries.
8602	  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'
8603	fi
8604      fi
8605      ;;
8606
8607    amigaos*)
8608      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)'
8609      hardcode_libdir_flag_spec='-L$libdir'
8610      hardcode_minus_L=yes
8611      # see comment about different semantics on the GNU ld section
8612      ld_shlibs=no
8613      ;;
8614
8615    bsdi[45]*)
8616      export_dynamic_flag_spec=-rdynamic
8617      ;;
8618
8619    cygwin* | mingw* | pw32*)
8620      # When not using gcc, we currently assume that we are using
8621      # Microsoft Visual C++.
8622      # hardcode_libdir_flag_spec is actually meaningless, as there is
8623      # no search path for DLLs.
8624      hardcode_libdir_flag_spec=' '
8625      allow_undefined_flag=unsupported
8626      # Tell ltmain to make .lib files, not .a files.
8627      libext=lib
8628      # Tell ltmain to make .dll files, not .so files.
8629      shrext_cmds=".dll"
8630      # FIXME: Setting linknames here is a bad hack.
8631      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8632      # The linker will automatically build a .lib file if we build a DLL.
8633      old_archive_From_new_cmds='true'
8634      # FIXME: Should let the user specify the lib program.
8635      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8636      fix_srcfile_path='`cygpath -w "$srcfile"`'
8637      enable_shared_with_static_runtimes=yes
8638      ;;
8639
8640    darwin* | rhapsody*)
8641      case $host_os in
8642        rhapsody* | darwin1.[012])
8643         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8644         ;;
8645       *) # Darwin 1.3 on
8646         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8647           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8648         else
8649           case ${MACOSX_DEPLOYMENT_TARGET} in
8650             10.[012])
8651               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8652               ;;
8653             10.*)
8654               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8655               ;;
8656           esac
8657         fi
8658         ;;
8659      esac
8660      archive_cmds_need_lc=no
8661      hardcode_direct=no
8662      hardcode_automatic=yes
8663      hardcode_shlibpath_var=unsupported
8664      whole_archive_flag_spec=''
8665      link_all_deplibs=yes
8666    if test "$GCC" = yes ; then
8667    	output_verbose_link_cmd='echo'
8668        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8669        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8670        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}"
8671        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}"
8672    else
8673      case $cc_basename in
8674        xlc*)
8675         output_verbose_link_cmd='echo'
8676         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8677         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8678          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8679         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}'
8680          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}'
8681          ;;
8682       *)
8683         ld_shlibs=no
8684          ;;
8685      esac
8686    fi
8687      ;;
8688
8689    dgux*)
8690      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8691      hardcode_libdir_flag_spec='-L$libdir'
8692      hardcode_shlibpath_var=no
8693      ;;
8694
8695    freebsd1*)
8696      ld_shlibs=no
8697      ;;
8698
8699    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8700    # support.  Future versions do this automatically, but an explicit c++rt0.o
8701    # does not break anything, and helps significantly (at the cost of a little
8702    # extra space).
8703    freebsd2.2*)
8704      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8705      hardcode_libdir_flag_spec='-R$libdir'
8706      hardcode_direct=yes
8707      hardcode_shlibpath_var=no
8708      ;;
8709
8710    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8711    freebsd2*)
8712      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8713      hardcode_direct=yes
8714      hardcode_minus_L=yes
8715      hardcode_shlibpath_var=no
8716      ;;
8717
8718    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8719    freebsd* | dragonfly*)
8720      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8721      hardcode_libdir_flag_spec='-R$libdir'
8722      hardcode_direct=yes
8723      hardcode_shlibpath_var=no
8724      ;;
8725
8726    hpux9*)
8727      if test "$GCC" = yes; then
8728	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'
8729      else
8730	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'
8731      fi
8732      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8733      hardcode_libdir_separator=:
8734      hardcode_direct=yes
8735
8736      # hardcode_minus_L: Not really in the search PATH,
8737      # but as the default location of the library.
8738      hardcode_minus_L=yes
8739      export_dynamic_flag_spec='${wl}-E'
8740      ;;
8741
8742    hpux10*)
8743      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8744	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8745      else
8746	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8747      fi
8748      if test "$with_gnu_ld" = no; then
8749	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8750	hardcode_libdir_separator=:
8751
8752	hardcode_direct=yes
8753	export_dynamic_flag_spec='${wl}-E'
8754
8755	# hardcode_minus_L: Not really in the search PATH,
8756	# but as the default location of the library.
8757	hardcode_minus_L=yes
8758      fi
8759      ;;
8760
8761    hpux11*)
8762      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8763	case $host_cpu in
8764	hppa*64*)
8765	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8766	  ;;
8767	ia64*)
8768	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8769	  ;;
8770	*)
8771	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8772	  ;;
8773	esac
8774      else
8775	case $host_cpu in
8776	hppa*64*)
8777	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8778	  ;;
8779	ia64*)
8780	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8781	  ;;
8782	*)
8783	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8784	  ;;
8785	esac
8786      fi
8787      if test "$with_gnu_ld" = no; then
8788	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8789	hardcode_libdir_separator=:
8790
8791	case $host_cpu in
8792	hppa*64*|ia64*)
8793	  hardcode_libdir_flag_spec_ld='+b $libdir'
8794	  hardcode_direct=no
8795	  hardcode_shlibpath_var=no
8796	  ;;
8797	*)
8798	  hardcode_direct=yes
8799	  export_dynamic_flag_spec='${wl}-E'
8800
8801	  # hardcode_minus_L: Not really in the search PATH,
8802	  # but as the default location of the library.
8803	  hardcode_minus_L=yes
8804	  ;;
8805	esac
8806      fi
8807      ;;
8808
8809    irix5* | irix6* | nonstopux*)
8810      if test "$GCC" = yes; then
8811	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'
8812      else
8813	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'
8814	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8815      fi
8816      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8817      hardcode_libdir_separator=:
8818      link_all_deplibs=yes
8819      ;;
8820
8821    netbsd*)
8822      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8823	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8824      else
8825	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8826      fi
8827      hardcode_libdir_flag_spec='-R$libdir'
8828      hardcode_direct=yes
8829      hardcode_shlibpath_var=no
8830      ;;
8831
8832    newsos6)
8833      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8834      hardcode_direct=yes
8835      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8836      hardcode_libdir_separator=:
8837      hardcode_shlibpath_var=no
8838      ;;
8839
8840    openbsd*)
8841      if test -f /usr/libexec/ld.so; then
8842	hardcode_direct=yes
8843	hardcode_shlibpath_var=no
8844	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8845	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8846	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8847	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8848	  export_dynamic_flag_spec='${wl}-E'
8849	else
8850	  case $host_os in
8851	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8852	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8853	     hardcode_libdir_flag_spec='-R$libdir'
8854	     ;;
8855	   *)
8856	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8857	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8858	     ;;
8859	  esac
8860        fi
8861      else
8862	ld_shlibs=no
8863      fi
8864      ;;
8865
8866    os2*)
8867      hardcode_libdir_flag_spec='-L$libdir'
8868      hardcode_minus_L=yes
8869      allow_undefined_flag=unsupported
8870      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'
8871      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8872      ;;
8873
8874    osf3*)
8875      if test "$GCC" = yes; then
8876	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8877	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'
8878      else
8879	allow_undefined_flag=' -expect_unresolved \*'
8880	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'
8881      fi
8882      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8883      hardcode_libdir_separator=:
8884      ;;
8885
8886    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8887      if test "$GCC" = yes; then
8888	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8889	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'
8890	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8891      else
8892	allow_undefined_flag=' -expect_unresolved \*'
8893	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'
8894	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8895	$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'
8896
8897	# Both c and cxx compiler support -rpath directly
8898	hardcode_libdir_flag_spec='-rpath $libdir'
8899      fi
8900      hardcode_libdir_separator=:
8901      ;;
8902
8903    solaris*)
8904      no_undefined_flag=' -z text'
8905      if test "$GCC" = yes; then
8906	wlarc='${wl}'
8907	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8908	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8909	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8910      else
8911	wlarc=''
8912	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8913	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8914  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8915      fi
8916      hardcode_libdir_flag_spec='-R$libdir'
8917      hardcode_shlibpath_var=no
8918      case $host_os in
8919      solaris2.[0-5] | solaris2.[0-5].*) ;;
8920      *)
8921	# The compiler driver will combine and reorder linker options,
8922	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8923	# but is careful enough not to reorder.
8924 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8925	if test "$GCC" = yes; then
8926	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8927	else
8928	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8929	fi
8930	;;
8931      esac
8932      link_all_deplibs=yes
8933      ;;
8934
8935    sunos4*)
8936      if test "x$host_vendor" = xsequent; then
8937	# Use $CC to link under sequent, because it throws in some extra .o
8938	# files that make .init and .fini sections work.
8939	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8940      else
8941	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8942      fi
8943      hardcode_libdir_flag_spec='-L$libdir'
8944      hardcode_direct=yes
8945      hardcode_minus_L=yes
8946      hardcode_shlibpath_var=no
8947      ;;
8948
8949    sysv4)
8950      case $host_vendor in
8951	sni)
8952	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8953	  hardcode_direct=yes # is this really true???
8954	;;
8955	siemens)
8956	  ## LD is ld it makes a PLAMLIB
8957	  ## CC just makes a GrossModule.
8958	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8959	  reload_cmds='$CC -r -o $output$reload_objs'
8960	  hardcode_direct=no
8961        ;;
8962	motorola)
8963	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8964	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8965	;;
8966      esac
8967      runpath_var='LD_RUN_PATH'
8968      hardcode_shlibpath_var=no
8969      ;;
8970
8971    sysv4.3*)
8972      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8973      hardcode_shlibpath_var=no
8974      export_dynamic_flag_spec='-Bexport'
8975      ;;
8976
8977    sysv4*MP*)
8978      if test -d /usr/nec; then
8979	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8980	hardcode_shlibpath_var=no
8981	runpath_var=LD_RUN_PATH
8982	hardcode_runpath_var=yes
8983	ld_shlibs=yes
8984      fi
8985      ;;
8986
8987    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8988      no_undefined_flag='${wl}-z,text'
8989      archive_cmds_need_lc=no
8990      hardcode_shlibpath_var=no
8991      runpath_var='LD_RUN_PATH'
8992
8993      if test "$GCC" = yes; then
8994	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8995	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8996      else
8997	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8998	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8999      fi
9000      ;;
9001
9002    sysv5* | sco3.2v5* | sco5v6*)
9003      # Note: We can NOT use -z defs as we might desire, because we do not
9004      # link with -lc, and that would cause any symbols used from libc to
9005      # always be unresolved, which means just about no library would
9006      # ever link correctly.  If we're not using GNU ld we use -z text
9007      # though, which does catch some bad symbols but isn't as heavy-handed
9008      # as -z defs.
9009      no_undefined_flag='${wl}-z,text'
9010      allow_undefined_flag='${wl}-z,nodefs'
9011      archive_cmds_need_lc=no
9012      hardcode_shlibpath_var=no
9013      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9014      hardcode_libdir_separator=':'
9015      link_all_deplibs=yes
9016      export_dynamic_flag_spec='${wl}-Bexport'
9017      runpath_var='LD_RUN_PATH'
9018
9019      if test "$GCC" = yes; then
9020	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9021	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9022      else
9023	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9024	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9025      fi
9026      ;;
9027
9028    uts4*)
9029      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9030      hardcode_libdir_flag_spec='-L$libdir'
9031      hardcode_shlibpath_var=no
9032      ;;
9033
9034    *)
9035      ld_shlibs=no
9036      ;;
9037    esac
9038  fi
9039
9040{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9041$as_echo "$ld_shlibs" >&6; }
9042test "$ld_shlibs" = no && can_build_shared=no
9043
9044#
9045# Do we need to explicitly link libc?
9046#
9047case "x$archive_cmds_need_lc" in
9048x|xyes)
9049  # Assume -lc should be added
9050  archive_cmds_need_lc=yes
9051
9052  if test "$enable_shared" = yes && test "$GCC" = yes; then
9053    case $archive_cmds in
9054    *'~'*)
9055      # FIXME: we may have to deal with multi-command sequences.
9056      ;;
9057    '$CC '*)
9058      # Test whether the compiler implicitly links with -lc since on some
9059      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9060      # to ld, don't add -lc before -lgcc.
9061      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9062$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9063      $rm conftest*
9064      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9065
9066      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9067  (eval $ac_compile) 2>&5
9068  ac_status=$?
9069  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070  (exit $ac_status); } 2>conftest.err; then
9071        soname=conftest
9072        lib=conftest
9073        libobjs=conftest.$ac_objext
9074        deplibs=
9075        wl=$lt_prog_compiler_wl
9076	pic_flag=$lt_prog_compiler_pic
9077        compiler_flags=-v
9078        linker_flags=-v
9079        verstring=
9080        output_objdir=.
9081        libname=conftest
9082        lt_save_allow_undefined_flag=$allow_undefined_flag
9083        allow_undefined_flag=
9084        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9085  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9086  ac_status=$?
9087  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088  (exit $ac_status); }
9089        then
9090	  archive_cmds_need_lc=no
9091        else
9092	  archive_cmds_need_lc=yes
9093        fi
9094        allow_undefined_flag=$lt_save_allow_undefined_flag
9095      else
9096        cat conftest.err 1>&5
9097      fi
9098      $rm conftest*
9099      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9100$as_echo "$archive_cmds_need_lc" >&6; }
9101      ;;
9102    esac
9103  fi
9104  ;;
9105esac
9106
9107{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9108$as_echo_n "checking dynamic linker characteristics... " >&6; }
9109library_names_spec=
9110libname_spec='lib$name'
9111soname_spec=
9112shrext_cmds=".so"
9113postinstall_cmds=
9114postuninstall_cmds=
9115finish_cmds=
9116finish_eval=
9117shlibpath_var=
9118shlibpath_overrides_runpath=unknown
9119version_type=none
9120dynamic_linker="$host_os ld.so"
9121sys_lib_dlsearch_path_spec="/lib /usr/lib"
9122
9123if test "$GCC" = yes; then
9124  case $host_os in
9125    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9126    *) lt_awk_arg="/^libraries:/" ;;
9127  esac
9128  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9129  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9130    # if the path contains ";" then we assume it to be the separator
9131    # otherwise default to the standard path separator (i.e. ":") - it is
9132    # assumed that no part of a normal pathname contains ";" but that should
9133    # okay in the real world where ";" in dirpaths is itself problematic.
9134    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9135  else
9136    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9137  fi
9138  # Ok, now we have the path, separated by spaces, we can step through it
9139  # and add multilib dir if necessary.
9140  lt_tmp_lt_search_path_spec=
9141  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9142  for lt_sys_path in $lt_search_path_spec; do
9143    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9144      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9145    else
9146      test -d "$lt_sys_path" && \
9147	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9148    fi
9149  done
9150  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9151BEGIN {RS=" "; FS="/|\n";} {
9152  lt_foo="";
9153  lt_count=0;
9154  for (lt_i = NF; lt_i > 0; lt_i--) {
9155    if ($lt_i != "" && $lt_i != ".") {
9156      if ($lt_i == "..") {
9157        lt_count++;
9158      } else {
9159        if (lt_count == 0) {
9160          lt_foo="/" $lt_i lt_foo;
9161        } else {
9162          lt_count--;
9163        }
9164      }
9165    }
9166  }
9167  if (lt_foo != "") { lt_freq[lt_foo]++; }
9168  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9169}'`
9170  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9171else
9172  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9173fi
9174need_lib_prefix=unknown
9175hardcode_into_libs=no
9176
9177# when you set need_version to no, make sure it does not cause -set_version
9178# flags to be left without arguments
9179need_version=unknown
9180
9181case $host_os in
9182aix3*)
9183  version_type=linux
9184  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9185  shlibpath_var=LIBPATH
9186
9187  # AIX 3 has no versioning support, so we append a major version to the name.
9188  soname_spec='${libname}${release}${shared_ext}$major'
9189  ;;
9190
9191aix[4-9]*)
9192  version_type=linux
9193  need_lib_prefix=no
9194  need_version=no
9195  hardcode_into_libs=yes
9196  if test "$host_cpu" = ia64; then
9197    # AIX 5 supports IA64
9198    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9199    shlibpath_var=LD_LIBRARY_PATH
9200  else
9201    # With GCC up to 2.95.x, collect2 would create an import file
9202    # for dependence libraries.  The import file would start with
9203    # the line `#! .'.  This would cause the generated library to
9204    # depend on `.', always an invalid library.  This was fixed in
9205    # development snapshots of GCC prior to 3.0.
9206    case $host_os in
9207      aix4 | aix4.[01] | aix4.[01].*)
9208      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9209	   echo ' yes '
9210	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9211	:
9212      else
9213	can_build_shared=no
9214      fi
9215      ;;
9216    esac
9217    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9218    # soname into executable. Probably we can add versioning support to
9219    # collect2, so additional links can be useful in future.
9220    if test "$aix_use_runtimelinking" = yes; then
9221      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9222      # instead of lib<name>.a to let people know that these are not
9223      # typical AIX shared libraries.
9224      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225    else
9226      # We preserve .a as extension for shared libraries through AIX4.2
9227      # and later when we are not doing run time linking.
9228      library_names_spec='${libname}${release}.a $libname.a'
9229      soname_spec='${libname}${release}${shared_ext}$major'
9230    fi
9231    shlibpath_var=LIBPATH
9232  fi
9233  ;;
9234
9235amigaos*)
9236  library_names_spec='$libname.ixlibrary $libname.a'
9237  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9238  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'
9239  ;;
9240
9241beos*)
9242  library_names_spec='${libname}${shared_ext}'
9243  dynamic_linker="$host_os ld.so"
9244  shlibpath_var=LIBRARY_PATH
9245  ;;
9246
9247bsdi[45]*)
9248  version_type=linux
9249  need_version=no
9250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9251  soname_spec='${libname}${release}${shared_ext}$major'
9252  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9253  shlibpath_var=LD_LIBRARY_PATH
9254  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9255  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9256  # the default ld.so.conf also contains /usr/contrib/lib and
9257  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9258  # libtool to hard-code these into programs
9259  ;;
9260
9261cygwin* | mingw* | pw32*)
9262  version_type=windows
9263  shrext_cmds=".dll"
9264  need_version=no
9265  need_lib_prefix=no
9266
9267  case $GCC,$host_os in
9268  yes,cygwin* | yes,mingw* | yes,pw32*)
9269    library_names_spec='$libname.dll.a'
9270    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9271    postinstall_cmds='base_file=`basename \${file}`~
9272      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9273      dldir=$destdir/`dirname \$dlpath`~
9274      test -d \$dldir || mkdir -p \$dldir~
9275      $install_prog $dir/$dlname \$dldir/$dlname~
9276      chmod a+x \$dldir/$dlname'
9277    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9278      dlpath=$dir/\$dldll~
9279       $rm \$dlpath'
9280    shlibpath_overrides_runpath=yes
9281
9282    case $host_os in
9283    cygwin*)
9284      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9285      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9286      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9287      ;;
9288    mingw*)
9289      # MinGW DLLs use traditional 'lib' prefix
9290      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9291      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9292      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9293        # It is most probably a Windows format PATH printed by
9294        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9295        # path with ; separators, and with drive letters. We can handle the
9296        # drive letters (cygwin fileutils understands them), so leave them,
9297        # especially as we might pass files found there to a mingw objdump,
9298        # which wouldn't understand a cygwinified path. Ahh.
9299        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9300      else
9301        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9302      fi
9303      ;;
9304    pw32*)
9305      # pw32 DLLs use 'pw' prefix rather than 'lib'
9306      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9307      ;;
9308    esac
9309    ;;
9310
9311  *)
9312    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9313    ;;
9314  esac
9315  dynamic_linker='Win32 ld.exe'
9316  # FIXME: first we should search . and the directory the executable is in
9317  shlibpath_var=PATH
9318  ;;
9319
9320darwin* | rhapsody*)
9321  dynamic_linker="$host_os dyld"
9322  version_type=darwin
9323  need_lib_prefix=no
9324  need_version=no
9325  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9326  soname_spec='${libname}${release}${major}$shared_ext'
9327  shlibpath_overrides_runpath=yes
9328  shlibpath_var=DYLD_LIBRARY_PATH
9329  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9330
9331  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9332  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9333  ;;
9334
9335dgux*)
9336  version_type=linux
9337  need_lib_prefix=no
9338  need_version=no
9339  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9340  soname_spec='${libname}${release}${shared_ext}$major'
9341  shlibpath_var=LD_LIBRARY_PATH
9342  ;;
9343
9344freebsd1*)
9345  dynamic_linker=no
9346  ;;
9347
9348freebsd* | dragonfly*)
9349  # DragonFly does not have aout.  When/if they implement a new
9350  # versioning mechanism, adjust this.
9351  if test -x /usr/bin/objformat; then
9352    objformat=`/usr/bin/objformat`
9353  else
9354    case $host_os in
9355    freebsd[123]*) objformat=aout ;;
9356    *) objformat=elf ;;
9357    esac
9358  fi
9359  version_type=freebsd-$objformat
9360  case $version_type in
9361    freebsd-elf*)
9362      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9363      need_version=no
9364      need_lib_prefix=no
9365      ;;
9366    freebsd-*)
9367      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9368      need_version=yes
9369      ;;
9370  esac
9371  shlibpath_var=LD_LIBRARY_PATH
9372  case $host_os in
9373  freebsd2*)
9374    shlibpath_overrides_runpath=yes
9375    ;;
9376  freebsd3.[01]* | freebsdelf3.[01]*)
9377    shlibpath_overrides_runpath=yes
9378    hardcode_into_libs=yes
9379    ;;
9380  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9381  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9382    shlibpath_overrides_runpath=no
9383    hardcode_into_libs=yes
9384    ;;
9385  *) # from 4.6 on, and DragonFly
9386    shlibpath_overrides_runpath=yes
9387    hardcode_into_libs=yes
9388    ;;
9389  esac
9390  ;;
9391
9392gnu*)
9393  version_type=linux
9394  need_lib_prefix=no
9395  need_version=no
9396  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9397  soname_spec='${libname}${release}${shared_ext}$major'
9398  shlibpath_var=LD_LIBRARY_PATH
9399  hardcode_into_libs=yes
9400  ;;
9401
9402hpux9* | hpux10* | hpux11*)
9403  # Give a soname corresponding to the major version so that dld.sl refuses to
9404  # link against other versions.
9405  version_type=sunos
9406  need_lib_prefix=no
9407  need_version=no
9408  case $host_cpu in
9409  ia64*)
9410    shrext_cmds='.so'
9411    hardcode_into_libs=yes
9412    dynamic_linker="$host_os dld.so"
9413    shlibpath_var=LD_LIBRARY_PATH
9414    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9415    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9416    soname_spec='${libname}${release}${shared_ext}$major'
9417    if test "X$HPUX_IA64_MODE" = X32; then
9418      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9419    else
9420      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9421    fi
9422    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9423    ;;
9424   hppa*64*)
9425     shrext_cmds='.sl'
9426     hardcode_into_libs=yes
9427     dynamic_linker="$host_os dld.sl"
9428     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9429     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9430     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431     soname_spec='${libname}${release}${shared_ext}$major'
9432     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9433     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9434     ;;
9435   *)
9436    shrext_cmds='.sl'
9437    dynamic_linker="$host_os dld.sl"
9438    shlibpath_var=SHLIB_PATH
9439    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9440    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9441    soname_spec='${libname}${release}${shared_ext}$major'
9442    ;;
9443  esac
9444  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9445  postinstall_cmds='chmod 555 $lib'
9446  ;;
9447
9448interix[3-9]*)
9449  version_type=linux
9450  need_lib_prefix=no
9451  need_version=no
9452  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9453  soname_spec='${libname}${release}${shared_ext}$major'
9454  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9455  shlibpath_var=LD_LIBRARY_PATH
9456  shlibpath_overrides_runpath=no
9457  hardcode_into_libs=yes
9458  ;;
9459
9460irix5* | irix6* | nonstopux*)
9461  case $host_os in
9462    nonstopux*) version_type=nonstopux ;;
9463    *)
9464	if test "$lt_cv_prog_gnu_ld" = yes; then
9465		version_type=linux
9466	else
9467		version_type=irix
9468	fi ;;
9469  esac
9470  need_lib_prefix=no
9471  need_version=no
9472  soname_spec='${libname}${release}${shared_ext}$major'
9473  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9474  case $host_os in
9475  irix5* | nonstopux*)
9476    libsuff= shlibsuff=
9477    ;;
9478  *)
9479    case $LD in # libtool.m4 will add one of these switches to LD
9480    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9481      libsuff= shlibsuff= libmagic=32-bit;;
9482    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9483      libsuff=32 shlibsuff=N32 libmagic=N32;;
9484    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9485      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9486    *) libsuff= shlibsuff= libmagic=never-match;;
9487    esac
9488    ;;
9489  esac
9490  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9491  shlibpath_overrides_runpath=no
9492  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9493  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9494  hardcode_into_libs=yes
9495  ;;
9496
9497# No shared lib support for Linux oldld, aout, or coff.
9498linux*oldld* | linux*aout* | linux*coff*)
9499  dynamic_linker=no
9500  ;;
9501
9502# This must be Linux ELF.
9503linux* | k*bsd*-gnu)
9504  version_type=linux
9505  need_lib_prefix=no
9506  need_version=no
9507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9508  soname_spec='${libname}${release}${shared_ext}$major'
9509  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9510  shlibpath_var=LD_LIBRARY_PATH
9511  shlibpath_overrides_runpath=no
9512  # This implies no fast_install, which is unacceptable.
9513  # Some rework will be needed to allow for fast_install
9514  # before this can be enabled.
9515  hardcode_into_libs=yes
9516
9517  # find out which ABI we are using
9518  libsuff=
9519  case "$host_cpu" in
9520  x86_64*|s390x*|powerpc64*)
9521    echo '#line 9521 "configure"' > conftest.$ac_ext
9522    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9523  (eval $ac_compile) 2>&5
9524  ac_status=$?
9525  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526  (exit $ac_status); }; then
9527      case `/usr/bin/file conftest.$ac_objext` in
9528      *64-bit*)
9529        libsuff=64
9530        ;;
9531      esac
9532    fi
9533    rm -rf conftest*
9534    ;;
9535  esac
9536
9537  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
9538
9539  # Append ld.so.conf contents to the search path
9540  if test -f /etc/ld.so.conf; then
9541    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' ' '`
9542    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9543  fi
9544
9545  # We used to test for /lib/ld.so.1 and disable shared libraries on
9546  # powerpc, because MkLinux only supported shared libraries with the
9547  # GNU dynamic linker.  Since this was broken with cross compilers,
9548  # most powerpc-linux boxes support dynamic linking these days and
9549  # people can always --disable-shared, the test was removed, and we
9550  # assume the GNU/Linux dynamic linker is in use.
9551  dynamic_linker='GNU/Linux ld.so'
9552  ;;
9553
9554netbsd*)
9555  version_type=sunos
9556  need_lib_prefix=no
9557  need_version=no
9558  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9559    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9560    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9561    dynamic_linker='NetBSD (a.out) ld.so'
9562  else
9563    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9564    soname_spec='${libname}${release}${shared_ext}$major'
9565    dynamic_linker='NetBSD ld.elf_so'
9566  fi
9567  shlibpath_var=LD_LIBRARY_PATH
9568  shlibpath_overrides_runpath=yes
9569  hardcode_into_libs=yes
9570  ;;
9571
9572newsos6)
9573  version_type=linux
9574  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9575  shlibpath_var=LD_LIBRARY_PATH
9576  shlibpath_overrides_runpath=yes
9577  ;;
9578
9579nto-qnx*)
9580  version_type=linux
9581  need_lib_prefix=no
9582  need_version=no
9583  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9584  soname_spec='${libname}${release}${shared_ext}$major'
9585  shlibpath_var=LD_LIBRARY_PATH
9586  shlibpath_overrides_runpath=yes
9587  ;;
9588
9589openbsd*)
9590  version_type=sunos
9591  sys_lib_dlsearch_path_spec="/usr/lib"
9592  need_lib_prefix=no
9593  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9594  case $host_os in
9595    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9596    *)                         need_version=no  ;;
9597  esac
9598  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9599  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9600  shlibpath_var=LD_LIBRARY_PATH
9601  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9602    case $host_os in
9603      openbsd2.[89] | openbsd2.[89].*)
9604	shlibpath_overrides_runpath=no
9605	;;
9606      *)
9607	shlibpath_overrides_runpath=yes
9608	;;
9609      esac
9610  else
9611    shlibpath_overrides_runpath=yes
9612  fi
9613  ;;
9614
9615os2*)
9616  libname_spec='$name'
9617  shrext_cmds=".dll"
9618  need_lib_prefix=no
9619  library_names_spec='$libname${shared_ext} $libname.a'
9620  dynamic_linker='OS/2 ld.exe'
9621  shlibpath_var=LIBPATH
9622  ;;
9623
9624osf3* | osf4* | osf5*)
9625  version_type=osf
9626  need_lib_prefix=no
9627  need_version=no
9628  soname_spec='${libname}${release}${shared_ext}$major'
9629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9630  shlibpath_var=LD_LIBRARY_PATH
9631  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9632  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9633  ;;
9634
9635rdos*)
9636  dynamic_linker=no
9637  ;;
9638
9639solaris*)
9640  version_type=linux
9641  need_lib_prefix=no
9642  need_version=no
9643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9644  soname_spec='${libname}${release}${shared_ext}$major'
9645  shlibpath_var=LD_LIBRARY_PATH
9646  shlibpath_overrides_runpath=yes
9647  hardcode_into_libs=yes
9648  # ldd complains unless libraries are executable
9649  postinstall_cmds='chmod +x $lib'
9650  ;;
9651
9652sunos4*)
9653  version_type=sunos
9654  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9655  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9656  shlibpath_var=LD_LIBRARY_PATH
9657  shlibpath_overrides_runpath=yes
9658  if test "$with_gnu_ld" = yes; then
9659    need_lib_prefix=no
9660  fi
9661  need_version=yes
9662  ;;
9663
9664sysv4 | sysv4.3*)
9665  version_type=linux
9666  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9667  soname_spec='${libname}${release}${shared_ext}$major'
9668  shlibpath_var=LD_LIBRARY_PATH
9669  case $host_vendor in
9670    sni)
9671      shlibpath_overrides_runpath=no
9672      need_lib_prefix=no
9673      export_dynamic_flag_spec='${wl}-Blargedynsym'
9674      runpath_var=LD_RUN_PATH
9675      ;;
9676    siemens)
9677      need_lib_prefix=no
9678      ;;
9679    motorola)
9680      need_lib_prefix=no
9681      need_version=no
9682      shlibpath_overrides_runpath=no
9683      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9684      ;;
9685  esac
9686  ;;
9687
9688sysv4*MP*)
9689  if test -d /usr/nec ;then
9690    version_type=linux
9691    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9692    soname_spec='$libname${shared_ext}.$major'
9693    shlibpath_var=LD_LIBRARY_PATH
9694  fi
9695  ;;
9696
9697sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9698  version_type=freebsd-elf
9699  need_lib_prefix=no
9700  need_version=no
9701  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9702  soname_spec='${libname}${release}${shared_ext}$major'
9703  shlibpath_var=LD_LIBRARY_PATH
9704  hardcode_into_libs=yes
9705  if test "$with_gnu_ld" = yes; then
9706    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9707    shlibpath_overrides_runpath=no
9708  else
9709    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9710    shlibpath_overrides_runpath=yes
9711    case $host_os in
9712      sco3.2v5*)
9713        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9714	;;
9715    esac
9716  fi
9717  sys_lib_dlsearch_path_spec='/usr/lib'
9718  ;;
9719
9720uts4*)
9721  version_type=linux
9722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723  soname_spec='${libname}${release}${shared_ext}$major'
9724  shlibpath_var=LD_LIBRARY_PATH
9725  ;;
9726
9727*)
9728  dynamic_linker=no
9729  ;;
9730esac
9731{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9732$as_echo "$dynamic_linker" >&6; }
9733test "$dynamic_linker" = no && can_build_shared=no
9734
9735if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9736  $as_echo_n "(cached) " >&6
9737else
9738  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9739fi
9740
9741sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9742if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9743  $as_echo_n "(cached) " >&6
9744else
9745  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9746fi
9747
9748sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9749
9750variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9751if test "$GCC" = yes; then
9752  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9753fi
9754
9755{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9756$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9757hardcode_action=
9758if test -n "$hardcode_libdir_flag_spec" || \
9759   test -n "$runpath_var" || \
9760   test "X$hardcode_automatic" = "Xyes" ; then
9761
9762  # We can hardcode non-existant directories.
9763  if test "$hardcode_direct" != no &&
9764     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9765     # have to relink, otherwise we might link with an installed library
9766     # when we should be linking with a yet-to-be-installed one
9767     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9768     test "$hardcode_minus_L" != no; then
9769    # Linking always hardcodes the temporary library directory.
9770    hardcode_action=relink
9771  else
9772    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9773    hardcode_action=immediate
9774  fi
9775else
9776  # We cannot hardcode anything, or else we can only hardcode existing
9777  # directories.
9778  hardcode_action=unsupported
9779fi
9780{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9781$as_echo "$hardcode_action" >&6; }
9782
9783if test "$hardcode_action" = relink; then
9784  # Fast installation is not supported
9785  enable_fast_install=no
9786elif test "$shlibpath_overrides_runpath" = yes ||
9787     test "$enable_shared" = no; then
9788  # Fast installation is not necessary
9789  enable_fast_install=needless
9790fi
9791
9792striplib=
9793old_striplib=
9794{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9795$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9796if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9797  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9798  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9799  { $as_echo "$as_me:$LINENO: result: yes" >&5
9800$as_echo "yes" >&6; }
9801else
9802# FIXME - insert some real tests, host_os isn't really good enough
9803  case $host_os in
9804   darwin*)
9805       if test -n "$STRIP" ; then
9806         striplib="$STRIP -x"
9807         old_striplib="$STRIP -S"
9808         { $as_echo "$as_me:$LINENO: result: yes" >&5
9809$as_echo "yes" >&6; }
9810       else
9811  { $as_echo "$as_me:$LINENO: result: no" >&5
9812$as_echo "no" >&6; }
9813fi
9814       ;;
9815   *)
9816  { $as_echo "$as_me:$LINENO: result: no" >&5
9817$as_echo "no" >&6; }
9818    ;;
9819  esac
9820fi
9821
9822if test "x$enable_dlopen" != xyes; then
9823  enable_dlopen=unknown
9824  enable_dlopen_self=unknown
9825  enable_dlopen_self_static=unknown
9826else
9827  lt_cv_dlopen=no
9828  lt_cv_dlopen_libs=
9829
9830  case $host_os in
9831  beos*)
9832    lt_cv_dlopen="load_add_on"
9833    lt_cv_dlopen_libs=
9834    lt_cv_dlopen_self=yes
9835    ;;
9836
9837  mingw* | pw32*)
9838    lt_cv_dlopen="LoadLibrary"
9839    lt_cv_dlopen_libs=
9840   ;;
9841
9842  cygwin*)
9843    lt_cv_dlopen="dlopen"
9844    lt_cv_dlopen_libs=
9845   ;;
9846
9847  darwin*)
9848  # if libdl is installed we need to link against it
9849    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9850$as_echo_n "checking for dlopen in -ldl... " >&6; }
9851if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9852  $as_echo_n "(cached) " >&6
9853else
9854  ac_check_lib_save_LIBS=$LIBS
9855LIBS="-ldl  $LIBS"
9856cat >conftest.$ac_ext <<_ACEOF
9857/* confdefs.h.  */
9858_ACEOF
9859cat confdefs.h >>conftest.$ac_ext
9860cat >>conftest.$ac_ext <<_ACEOF
9861/* end confdefs.h.  */
9862
9863/* Override any GCC internal prototype to avoid an error.
9864   Use char because int might match the return type of a GCC
9865   builtin and then its argument prototype would still apply.  */
9866#ifdef __cplusplus
9867extern "C"
9868#endif
9869char dlopen ();
9870int
9871main ()
9872{
9873return dlopen ();
9874  ;
9875  return 0;
9876}
9877_ACEOF
9878rm -f conftest.$ac_objext conftest$ac_exeext
9879if { (ac_try="$ac_link"
9880case "(($ac_try" in
9881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882  *) ac_try_echo=$ac_try;;
9883esac
9884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9885$as_echo "$ac_try_echo") >&5
9886  (eval "$ac_link") 2>conftest.er1
9887  ac_status=$?
9888  grep -v '^ *+' conftest.er1 >conftest.err
9889  rm -f conftest.er1
9890  cat conftest.err >&5
9891  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892  (exit $ac_status); } && {
9893	 test -z "$ac_c_werror_flag" ||
9894	 test ! -s conftest.err
9895       } && test -s conftest$ac_exeext && {
9896	 test "$cross_compiling" = yes ||
9897	 $as_test_x conftest$ac_exeext
9898       }; then
9899  ac_cv_lib_dl_dlopen=yes
9900else
9901  $as_echo "$as_me: failed program was:" >&5
9902sed 's/^/| /' conftest.$ac_ext >&5
9903
9904	ac_cv_lib_dl_dlopen=no
9905fi
9906
9907rm -rf conftest.dSYM
9908rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9909      conftest$ac_exeext conftest.$ac_ext
9910LIBS=$ac_check_lib_save_LIBS
9911fi
9912{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9913$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9914if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9915  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9916else
9917
9918    lt_cv_dlopen="dyld"
9919    lt_cv_dlopen_libs=
9920    lt_cv_dlopen_self=yes
9921
9922fi
9923
9924   ;;
9925
9926  *)
9927    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9928$as_echo_n "checking for shl_load... " >&6; }
9929if test "${ac_cv_func_shl_load+set}" = set; then
9930  $as_echo_n "(cached) " >&6
9931else
9932  cat >conftest.$ac_ext <<_ACEOF
9933/* confdefs.h.  */
9934_ACEOF
9935cat confdefs.h >>conftest.$ac_ext
9936cat >>conftest.$ac_ext <<_ACEOF
9937/* end confdefs.h.  */
9938/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9939   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9940#define shl_load innocuous_shl_load
9941
9942/* System header to define __stub macros and hopefully few prototypes,
9943    which can conflict with char shl_load (); below.
9944    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9945    <limits.h> exists even on freestanding compilers.  */
9946
9947#ifdef __STDC__
9948# include <limits.h>
9949#else
9950# include <assert.h>
9951#endif
9952
9953#undef shl_load
9954
9955/* Override any GCC internal prototype to avoid an error.
9956   Use char because int might match the return type of a GCC
9957   builtin and then its argument prototype would still apply.  */
9958#ifdef __cplusplus
9959extern "C"
9960#endif
9961char shl_load ();
9962/* The GNU C library defines this for functions which it implements
9963    to always fail with ENOSYS.  Some functions are actually named
9964    something starting with __ and the normal name is an alias.  */
9965#if defined __stub_shl_load || defined __stub___shl_load
9966choke me
9967#endif
9968
9969int
9970main ()
9971{
9972return shl_load ();
9973  ;
9974  return 0;
9975}
9976_ACEOF
9977rm -f conftest.$ac_objext conftest$ac_exeext
9978if { (ac_try="$ac_link"
9979case "(($ac_try" in
9980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981  *) ac_try_echo=$ac_try;;
9982esac
9983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9984$as_echo "$ac_try_echo") >&5
9985  (eval "$ac_link") 2>conftest.er1
9986  ac_status=$?
9987  grep -v '^ *+' conftest.er1 >conftest.err
9988  rm -f conftest.er1
9989  cat conftest.err >&5
9990  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991  (exit $ac_status); } && {
9992	 test -z "$ac_c_werror_flag" ||
9993	 test ! -s conftest.err
9994       } && test -s conftest$ac_exeext && {
9995	 test "$cross_compiling" = yes ||
9996	 $as_test_x conftest$ac_exeext
9997       }; then
9998  ac_cv_func_shl_load=yes
9999else
10000  $as_echo "$as_me: failed program was:" >&5
10001sed 's/^/| /' conftest.$ac_ext >&5
10002
10003	ac_cv_func_shl_load=no
10004fi
10005
10006rm -rf conftest.dSYM
10007rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10008      conftest$ac_exeext conftest.$ac_ext
10009fi
10010{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10011$as_echo "$ac_cv_func_shl_load" >&6; }
10012if test "x$ac_cv_func_shl_load" = x""yes; then
10013  lt_cv_dlopen="shl_load"
10014else
10015  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10016$as_echo_n "checking for shl_load in -ldld... " >&6; }
10017if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10018  $as_echo_n "(cached) " >&6
10019else
10020  ac_check_lib_save_LIBS=$LIBS
10021LIBS="-ldld  $LIBS"
10022cat >conftest.$ac_ext <<_ACEOF
10023/* confdefs.h.  */
10024_ACEOF
10025cat confdefs.h >>conftest.$ac_ext
10026cat >>conftest.$ac_ext <<_ACEOF
10027/* end confdefs.h.  */
10028
10029/* Override any GCC internal prototype to avoid an error.
10030   Use char because int might match the return type of a GCC
10031   builtin and then its argument prototype would still apply.  */
10032#ifdef __cplusplus
10033extern "C"
10034#endif
10035char shl_load ();
10036int
10037main ()
10038{
10039return shl_load ();
10040  ;
10041  return 0;
10042}
10043_ACEOF
10044rm -f conftest.$ac_objext conftest$ac_exeext
10045if { (ac_try="$ac_link"
10046case "(($ac_try" in
10047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048  *) ac_try_echo=$ac_try;;
10049esac
10050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10051$as_echo "$ac_try_echo") >&5
10052  (eval "$ac_link") 2>conftest.er1
10053  ac_status=$?
10054  grep -v '^ *+' conftest.er1 >conftest.err
10055  rm -f conftest.er1
10056  cat conftest.err >&5
10057  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058  (exit $ac_status); } && {
10059	 test -z "$ac_c_werror_flag" ||
10060	 test ! -s conftest.err
10061       } && test -s conftest$ac_exeext && {
10062	 test "$cross_compiling" = yes ||
10063	 $as_test_x conftest$ac_exeext
10064       }; then
10065  ac_cv_lib_dld_shl_load=yes
10066else
10067  $as_echo "$as_me: failed program was:" >&5
10068sed 's/^/| /' conftest.$ac_ext >&5
10069
10070	ac_cv_lib_dld_shl_load=no
10071fi
10072
10073rm -rf conftest.dSYM
10074rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10075      conftest$ac_exeext conftest.$ac_ext
10076LIBS=$ac_check_lib_save_LIBS
10077fi
10078{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10079$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10080if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10081  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10082else
10083  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10084$as_echo_n "checking for dlopen... " >&6; }
10085if test "${ac_cv_func_dlopen+set}" = set; then
10086  $as_echo_n "(cached) " >&6
10087else
10088  cat >conftest.$ac_ext <<_ACEOF
10089/* confdefs.h.  */
10090_ACEOF
10091cat confdefs.h >>conftest.$ac_ext
10092cat >>conftest.$ac_ext <<_ACEOF
10093/* end confdefs.h.  */
10094/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10095   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10096#define dlopen innocuous_dlopen
10097
10098/* System header to define __stub macros and hopefully few prototypes,
10099    which can conflict with char dlopen (); below.
10100    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10101    <limits.h> exists even on freestanding compilers.  */
10102
10103#ifdef __STDC__
10104# include <limits.h>
10105#else
10106# include <assert.h>
10107#endif
10108
10109#undef dlopen
10110
10111/* Override any GCC internal prototype to avoid an error.
10112   Use char because int might match the return type of a GCC
10113   builtin and then its argument prototype would still apply.  */
10114#ifdef __cplusplus
10115extern "C"
10116#endif
10117char dlopen ();
10118/* The GNU C library defines this for functions which it implements
10119    to always fail with ENOSYS.  Some functions are actually named
10120    something starting with __ and the normal name is an alias.  */
10121#if defined __stub_dlopen || defined __stub___dlopen
10122choke me
10123#endif
10124
10125int
10126main ()
10127{
10128return dlopen ();
10129  ;
10130  return 0;
10131}
10132_ACEOF
10133rm -f conftest.$ac_objext conftest$ac_exeext
10134if { (ac_try="$ac_link"
10135case "(($ac_try" in
10136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137  *) ac_try_echo=$ac_try;;
10138esac
10139eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10140$as_echo "$ac_try_echo") >&5
10141  (eval "$ac_link") 2>conftest.er1
10142  ac_status=$?
10143  grep -v '^ *+' conftest.er1 >conftest.err
10144  rm -f conftest.er1
10145  cat conftest.err >&5
10146  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147  (exit $ac_status); } && {
10148	 test -z "$ac_c_werror_flag" ||
10149	 test ! -s conftest.err
10150       } && test -s conftest$ac_exeext && {
10151	 test "$cross_compiling" = yes ||
10152	 $as_test_x conftest$ac_exeext
10153       }; then
10154  ac_cv_func_dlopen=yes
10155else
10156  $as_echo "$as_me: failed program was:" >&5
10157sed 's/^/| /' conftest.$ac_ext >&5
10158
10159	ac_cv_func_dlopen=no
10160fi
10161
10162rm -rf conftest.dSYM
10163rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10164      conftest$ac_exeext conftest.$ac_ext
10165fi
10166{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10167$as_echo "$ac_cv_func_dlopen" >&6; }
10168if test "x$ac_cv_func_dlopen" = x""yes; then
10169  lt_cv_dlopen="dlopen"
10170else
10171  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10172$as_echo_n "checking for dlopen in -ldl... " >&6; }
10173if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10174  $as_echo_n "(cached) " >&6
10175else
10176  ac_check_lib_save_LIBS=$LIBS
10177LIBS="-ldl  $LIBS"
10178cat >conftest.$ac_ext <<_ACEOF
10179/* confdefs.h.  */
10180_ACEOF
10181cat confdefs.h >>conftest.$ac_ext
10182cat >>conftest.$ac_ext <<_ACEOF
10183/* end confdefs.h.  */
10184
10185/* Override any GCC internal prototype to avoid an error.
10186   Use char because int might match the return type of a GCC
10187   builtin and then its argument prototype would still apply.  */
10188#ifdef __cplusplus
10189extern "C"
10190#endif
10191char dlopen ();
10192int
10193main ()
10194{
10195return dlopen ();
10196  ;
10197  return 0;
10198}
10199_ACEOF
10200rm -f conftest.$ac_objext conftest$ac_exeext
10201if { (ac_try="$ac_link"
10202case "(($ac_try" in
10203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204  *) ac_try_echo=$ac_try;;
10205esac
10206eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10207$as_echo "$ac_try_echo") >&5
10208  (eval "$ac_link") 2>conftest.er1
10209  ac_status=$?
10210  grep -v '^ *+' conftest.er1 >conftest.err
10211  rm -f conftest.er1
10212  cat conftest.err >&5
10213  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214  (exit $ac_status); } && {
10215	 test -z "$ac_c_werror_flag" ||
10216	 test ! -s conftest.err
10217       } && test -s conftest$ac_exeext && {
10218	 test "$cross_compiling" = yes ||
10219	 $as_test_x conftest$ac_exeext
10220       }; then
10221  ac_cv_lib_dl_dlopen=yes
10222else
10223  $as_echo "$as_me: failed program was:" >&5
10224sed 's/^/| /' conftest.$ac_ext >&5
10225
10226	ac_cv_lib_dl_dlopen=no
10227fi
10228
10229rm -rf conftest.dSYM
10230rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10231      conftest$ac_exeext conftest.$ac_ext
10232LIBS=$ac_check_lib_save_LIBS
10233fi
10234{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10235$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10236if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10237  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10238else
10239  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10240$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10241if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10242  $as_echo_n "(cached) " >&6
10243else
10244  ac_check_lib_save_LIBS=$LIBS
10245LIBS="-lsvld  $LIBS"
10246cat >conftest.$ac_ext <<_ACEOF
10247/* confdefs.h.  */
10248_ACEOF
10249cat confdefs.h >>conftest.$ac_ext
10250cat >>conftest.$ac_ext <<_ACEOF
10251/* end confdefs.h.  */
10252
10253/* Override any GCC internal prototype to avoid an error.
10254   Use char because int might match the return type of a GCC
10255   builtin and then its argument prototype would still apply.  */
10256#ifdef __cplusplus
10257extern "C"
10258#endif
10259char dlopen ();
10260int
10261main ()
10262{
10263return dlopen ();
10264  ;
10265  return 0;
10266}
10267_ACEOF
10268rm -f conftest.$ac_objext conftest$ac_exeext
10269if { (ac_try="$ac_link"
10270case "(($ac_try" in
10271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272  *) ac_try_echo=$ac_try;;
10273esac
10274eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10275$as_echo "$ac_try_echo") >&5
10276  (eval "$ac_link") 2>conftest.er1
10277  ac_status=$?
10278  grep -v '^ *+' conftest.er1 >conftest.err
10279  rm -f conftest.er1
10280  cat conftest.err >&5
10281  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282  (exit $ac_status); } && {
10283	 test -z "$ac_c_werror_flag" ||
10284	 test ! -s conftest.err
10285       } && test -s conftest$ac_exeext && {
10286	 test "$cross_compiling" = yes ||
10287	 $as_test_x conftest$ac_exeext
10288       }; then
10289  ac_cv_lib_svld_dlopen=yes
10290else
10291  $as_echo "$as_me: failed program was:" >&5
10292sed 's/^/| /' conftest.$ac_ext >&5
10293
10294	ac_cv_lib_svld_dlopen=no
10295fi
10296
10297rm -rf conftest.dSYM
10298rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10299      conftest$ac_exeext conftest.$ac_ext
10300LIBS=$ac_check_lib_save_LIBS
10301fi
10302{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10303$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10304if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10305  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10306else
10307  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10308$as_echo_n "checking for dld_link in -ldld... " >&6; }
10309if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10310  $as_echo_n "(cached) " >&6
10311else
10312  ac_check_lib_save_LIBS=$LIBS
10313LIBS="-ldld  $LIBS"
10314cat >conftest.$ac_ext <<_ACEOF
10315/* confdefs.h.  */
10316_ACEOF
10317cat confdefs.h >>conftest.$ac_ext
10318cat >>conftest.$ac_ext <<_ACEOF
10319/* end confdefs.h.  */
10320
10321/* Override any GCC internal prototype to avoid an error.
10322   Use char because int might match the return type of a GCC
10323   builtin and then its argument prototype would still apply.  */
10324#ifdef __cplusplus
10325extern "C"
10326#endif
10327char dld_link ();
10328int
10329main ()
10330{
10331return dld_link ();
10332  ;
10333  return 0;
10334}
10335_ACEOF
10336rm -f conftest.$ac_objext conftest$ac_exeext
10337if { (ac_try="$ac_link"
10338case "(($ac_try" in
10339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10340  *) ac_try_echo=$ac_try;;
10341esac
10342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10343$as_echo "$ac_try_echo") >&5
10344  (eval "$ac_link") 2>conftest.er1
10345  ac_status=$?
10346  grep -v '^ *+' conftest.er1 >conftest.err
10347  rm -f conftest.er1
10348  cat conftest.err >&5
10349  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350  (exit $ac_status); } && {
10351	 test -z "$ac_c_werror_flag" ||
10352	 test ! -s conftest.err
10353       } && test -s conftest$ac_exeext && {
10354	 test "$cross_compiling" = yes ||
10355	 $as_test_x conftest$ac_exeext
10356       }; then
10357  ac_cv_lib_dld_dld_link=yes
10358else
10359  $as_echo "$as_me: failed program was:" >&5
10360sed 's/^/| /' conftest.$ac_ext >&5
10361
10362	ac_cv_lib_dld_dld_link=no
10363fi
10364
10365rm -rf conftest.dSYM
10366rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10367      conftest$ac_exeext conftest.$ac_ext
10368LIBS=$ac_check_lib_save_LIBS
10369fi
10370{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10371$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10372if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10373  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10374fi
10375
10376
10377fi
10378
10379
10380fi
10381
10382
10383fi
10384
10385
10386fi
10387
10388
10389fi
10390
10391    ;;
10392  esac
10393
10394  if test "x$lt_cv_dlopen" != xno; then
10395    enable_dlopen=yes
10396  else
10397    enable_dlopen=no
10398  fi
10399
10400  case $lt_cv_dlopen in
10401  dlopen)
10402    save_CPPFLAGS="$CPPFLAGS"
10403    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10404
10405    save_LDFLAGS="$LDFLAGS"
10406    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10407
10408    save_LIBS="$LIBS"
10409    LIBS="$lt_cv_dlopen_libs $LIBS"
10410
10411    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10412$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10413if test "${lt_cv_dlopen_self+set}" = set; then
10414  $as_echo_n "(cached) " >&6
10415else
10416  	  if test "$cross_compiling" = yes; then :
10417  lt_cv_dlopen_self=cross
10418else
10419  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10420  lt_status=$lt_dlunknown
10421  cat > conftest.$ac_ext <<EOF
10422#line 10422 "configure"
10423#include "confdefs.h"
10424
10425#if HAVE_DLFCN_H
10426#include <dlfcn.h>
10427#endif
10428
10429#include <stdio.h>
10430
10431#ifdef RTLD_GLOBAL
10432#  define LT_DLGLOBAL		RTLD_GLOBAL
10433#else
10434#  ifdef DL_GLOBAL
10435#    define LT_DLGLOBAL		DL_GLOBAL
10436#  else
10437#    define LT_DLGLOBAL		0
10438#  endif
10439#endif
10440
10441/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10442   find out it does not work in some platform. */
10443#ifndef LT_DLLAZY_OR_NOW
10444#  ifdef RTLD_LAZY
10445#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10446#  else
10447#    ifdef DL_LAZY
10448#      define LT_DLLAZY_OR_NOW		DL_LAZY
10449#    else
10450#      ifdef RTLD_NOW
10451#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10452#      else
10453#        ifdef DL_NOW
10454#          define LT_DLLAZY_OR_NOW	DL_NOW
10455#        else
10456#          define LT_DLLAZY_OR_NOW	0
10457#        endif
10458#      endif
10459#    endif
10460#  endif
10461#endif
10462
10463#ifdef __cplusplus
10464extern "C" void exit (int);
10465#endif
10466
10467void fnord() { int i=42;}
10468int main ()
10469{
10470  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10471  int status = $lt_dlunknown;
10472
10473  if (self)
10474    {
10475      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10476      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10477      /* dlclose (self); */
10478    }
10479  else
10480    puts (dlerror ());
10481
10482    exit (status);
10483}
10484EOF
10485  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10486  (eval $ac_link) 2>&5
10487  ac_status=$?
10488  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10490    (./conftest; exit; ) >&5 2>/dev/null
10491    lt_status=$?
10492    case x$lt_status in
10493      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10494      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10495      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10496    esac
10497  else :
10498    # compilation failed
10499    lt_cv_dlopen_self=no
10500  fi
10501fi
10502rm -fr conftest*
10503
10504
10505fi
10506{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10507$as_echo "$lt_cv_dlopen_self" >&6; }
10508
10509    if test "x$lt_cv_dlopen_self" = xyes; then
10510      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10511      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10512$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10513if test "${lt_cv_dlopen_self_static+set}" = set; then
10514  $as_echo_n "(cached) " >&6
10515else
10516  	  if test "$cross_compiling" = yes; then :
10517  lt_cv_dlopen_self_static=cross
10518else
10519  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10520  lt_status=$lt_dlunknown
10521  cat > conftest.$ac_ext <<EOF
10522#line 10522 "configure"
10523#include "confdefs.h"
10524
10525#if HAVE_DLFCN_H
10526#include <dlfcn.h>
10527#endif
10528
10529#include <stdio.h>
10530
10531#ifdef RTLD_GLOBAL
10532#  define LT_DLGLOBAL		RTLD_GLOBAL
10533#else
10534#  ifdef DL_GLOBAL
10535#    define LT_DLGLOBAL		DL_GLOBAL
10536#  else
10537#    define LT_DLGLOBAL		0
10538#  endif
10539#endif
10540
10541/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10542   find out it does not work in some platform. */
10543#ifndef LT_DLLAZY_OR_NOW
10544#  ifdef RTLD_LAZY
10545#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10546#  else
10547#    ifdef DL_LAZY
10548#      define LT_DLLAZY_OR_NOW		DL_LAZY
10549#    else
10550#      ifdef RTLD_NOW
10551#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10552#      else
10553#        ifdef DL_NOW
10554#          define LT_DLLAZY_OR_NOW	DL_NOW
10555#        else
10556#          define LT_DLLAZY_OR_NOW	0
10557#        endif
10558#      endif
10559#    endif
10560#  endif
10561#endif
10562
10563#ifdef __cplusplus
10564extern "C" void exit (int);
10565#endif
10566
10567void fnord() { int i=42;}
10568int main ()
10569{
10570  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10571  int status = $lt_dlunknown;
10572
10573  if (self)
10574    {
10575      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10576      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10577      /* dlclose (self); */
10578    }
10579  else
10580    puts (dlerror ());
10581
10582    exit (status);
10583}
10584EOF
10585  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10586  (eval $ac_link) 2>&5
10587  ac_status=$?
10588  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10590    (./conftest; exit; ) >&5 2>/dev/null
10591    lt_status=$?
10592    case x$lt_status in
10593      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10594      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10595      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10596    esac
10597  else :
10598    # compilation failed
10599    lt_cv_dlopen_self_static=no
10600  fi
10601fi
10602rm -fr conftest*
10603
10604
10605fi
10606{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10607$as_echo "$lt_cv_dlopen_self_static" >&6; }
10608    fi
10609
10610    CPPFLAGS="$save_CPPFLAGS"
10611    LDFLAGS="$save_LDFLAGS"
10612    LIBS="$save_LIBS"
10613    ;;
10614  esac
10615
10616  case $lt_cv_dlopen_self in
10617  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10618  *) enable_dlopen_self=unknown ;;
10619  esac
10620
10621  case $lt_cv_dlopen_self_static in
10622  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10623  *) enable_dlopen_self_static=unknown ;;
10624  esac
10625fi
10626
10627
10628# Report which library types will actually be built
10629{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10630$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10631{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10632$as_echo "$can_build_shared" >&6; }
10633
10634{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10635$as_echo_n "checking whether to build shared libraries... " >&6; }
10636test "$can_build_shared" = "no" && enable_shared=no
10637
10638# On AIX, shared libraries and static libraries use the same namespace, and
10639# are all built from PIC.
10640case $host_os in
10641aix3*)
10642  test "$enable_shared" = yes && enable_static=no
10643  if test -n "$RANLIB"; then
10644    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10645    postinstall_cmds='$RANLIB $lib'
10646  fi
10647  ;;
10648
10649aix[4-9]*)
10650  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10651    test "$enable_shared" = yes && enable_static=no
10652  fi
10653    ;;
10654esac
10655{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10656$as_echo "$enable_shared" >&6; }
10657
10658{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10659$as_echo_n "checking whether to build static libraries... " >&6; }
10660# Make sure either enable_shared or enable_static is yes.
10661test "$enable_shared" = yes || enable_static=yes
10662{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10663$as_echo "$enable_static" >&6; }
10664
10665# The else clause should only fire when bootstrapping the
10666# libtool distribution, otherwise you forgot to ship ltmain.sh
10667# with your package, and you will get complaints that there are
10668# no rules to generate ltmain.sh.
10669if test -f "$ltmain"; then
10670  # See if we are running on zsh, and set the options which allow our commands through
10671  # without removal of \ escapes.
10672  if test -n "${ZSH_VERSION+set}" ; then
10673    setopt NO_GLOB_SUBST
10674  fi
10675  # Now quote all the things that may contain metacharacters while being
10676  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10677  # variables and quote the copies for generation of the libtool script.
10678  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10679    SED SHELL STRIP \
10680    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10681    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10682    deplibs_check_method reload_flag reload_cmds need_locks \
10683    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10684    lt_cv_sys_global_symbol_to_c_name_address \
10685    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10686    old_postinstall_cmds old_postuninstall_cmds \
10687    compiler \
10688    CC \
10689    LD \
10690    lt_prog_compiler_wl \
10691    lt_prog_compiler_pic \
10692    lt_prog_compiler_static \
10693    lt_prog_compiler_no_builtin_flag \
10694    export_dynamic_flag_spec \
10695    thread_safe_flag_spec \
10696    whole_archive_flag_spec \
10697    enable_shared_with_static_runtimes \
10698    old_archive_cmds \
10699    old_archive_from_new_cmds \
10700    predep_objects \
10701    postdep_objects \
10702    predeps \
10703    postdeps \
10704    compiler_lib_search_path \
10705    compiler_lib_search_dirs \
10706    archive_cmds \
10707    archive_expsym_cmds \
10708    postinstall_cmds \
10709    postuninstall_cmds \
10710    old_archive_from_expsyms_cmds \
10711    allow_undefined_flag \
10712    no_undefined_flag \
10713    export_symbols_cmds \
10714    hardcode_libdir_flag_spec \
10715    hardcode_libdir_flag_spec_ld \
10716    hardcode_libdir_separator \
10717    hardcode_automatic \
10718    module_cmds \
10719    module_expsym_cmds \
10720    lt_cv_prog_compiler_c_o \
10721    fix_srcfile_path \
10722    exclude_expsyms \
10723    include_expsyms; do
10724
10725    case $var in
10726    old_archive_cmds | \
10727    old_archive_from_new_cmds | \
10728    archive_cmds | \
10729    archive_expsym_cmds | \
10730    module_cmds | \
10731    module_expsym_cmds | \
10732    old_archive_from_expsyms_cmds | \
10733    export_symbols_cmds | \
10734    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10735    postinstall_cmds | postuninstall_cmds | \
10736    old_postinstall_cmds | old_postuninstall_cmds | \
10737    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10738      # Double-quote double-evaled strings.
10739      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10740      ;;
10741    *)
10742      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10743      ;;
10744    esac
10745  done
10746
10747  case $lt_echo in
10748  *'\$0 --fallback-echo"')
10749    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10750    ;;
10751  esac
10752
10753cfgfile="${ofile}T"
10754  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10755  $rm -f "$cfgfile"
10756  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10757$as_echo "$as_me: creating $ofile" >&6;}
10758
10759  cat <<__EOF__ >> "$cfgfile"
10760#! $SHELL
10761
10762# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10763# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10764# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10765#
10766# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10767# Free Software Foundation, Inc.
10768#
10769# This file is part of GNU Libtool:
10770# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10771#
10772# This program is free software; you can redistribute it and/or modify
10773# it under the terms of the GNU General Public License as published by
10774# the Free Software Foundation; either version 2 of the License, or
10775# (at your option) any later version.
10776#
10777# This program is distributed in the hope that it will be useful, but
10778# WITHOUT ANY WARRANTY; without even the implied warranty of
10779# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10780# General Public License for more details.
10781#
10782# You should have received a copy of the GNU General Public License
10783# along with this program; if not, write to the Free Software
10784# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10785#
10786# As a special exception to the GNU General Public License, if you
10787# distribute this file as part of a program that contains a
10788# configuration script generated by Autoconf, you may include it under
10789# the same distribution terms that you use for the rest of that program.
10790
10791# A sed program that does not truncate output.
10792SED=$lt_SED
10793
10794# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10795Xsed="$SED -e 1s/^X//"
10796
10797# The HP-UX ksh and POSIX shell print the target directory to stdout
10798# if CDPATH is set.
10799(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10800
10801# The names of the tagged configurations supported by this script.
10802available_tags=
10803
10804# ### BEGIN LIBTOOL CONFIG
10805
10806# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10807
10808# Shell to use when invoking shell scripts.
10809SHELL=$lt_SHELL
10810
10811# Whether or not to build shared libraries.
10812build_libtool_libs=$enable_shared
10813
10814# Whether or not to build static libraries.
10815build_old_libs=$enable_static
10816
10817# Whether or not to add -lc for building shared libraries.
10818build_libtool_need_lc=$archive_cmds_need_lc
10819
10820# Whether or not to disallow shared libs when runtime libs are static
10821allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10822
10823# Whether or not to optimize for fast installation.
10824fast_install=$enable_fast_install
10825
10826# The host system.
10827host_alias=$host_alias
10828host=$host
10829host_os=$host_os
10830
10831# The build system.
10832build_alias=$build_alias
10833build=$build
10834build_os=$build_os
10835
10836# An echo program that does not interpret backslashes.
10837echo=$lt_echo
10838
10839# The archiver.
10840AR=$lt_AR
10841AR_FLAGS=$lt_AR_FLAGS
10842
10843# A C compiler.
10844LTCC=$lt_LTCC
10845
10846# LTCC compiler flags.
10847LTCFLAGS=$lt_LTCFLAGS
10848
10849# A language-specific compiler.
10850CC=$lt_compiler
10851
10852# Is the compiler the GNU C compiler?
10853with_gcc=$GCC
10854
10855# An ERE matcher.
10856EGREP=$lt_EGREP
10857
10858# The linker used to build libraries.
10859LD=$lt_LD
10860
10861# Whether we need hard or soft links.
10862LN_S=$lt_LN_S
10863
10864# A BSD-compatible nm program.
10865NM=$lt_NM
10866
10867# A symbol stripping program
10868STRIP=$lt_STRIP
10869
10870# Used to examine libraries when file_magic_cmd begins "file"
10871MAGIC_CMD=$MAGIC_CMD
10872
10873# Used on cygwin: DLL creation program.
10874DLLTOOL="$DLLTOOL"
10875
10876# Used on cygwin: object dumper.
10877OBJDUMP="$OBJDUMP"
10878
10879# Used on cygwin: assembler.
10880AS="$AS"
10881
10882# The name of the directory that contains temporary libtool files.
10883objdir=$objdir
10884
10885# How to create reloadable object files.
10886reload_flag=$lt_reload_flag
10887reload_cmds=$lt_reload_cmds
10888
10889# How to pass a linker flag through the compiler.
10890wl=$lt_lt_prog_compiler_wl
10891
10892# Object file suffix (normally "o").
10893objext="$ac_objext"
10894
10895# Old archive suffix (normally "a").
10896libext="$libext"
10897
10898# Shared library suffix (normally ".so").
10899shrext_cmds='$shrext_cmds'
10900
10901# Executable file suffix (normally "").
10902exeext="$exeext"
10903
10904# Additional compiler flags for building library objects.
10905pic_flag=$lt_lt_prog_compiler_pic
10906pic_mode=$pic_mode
10907
10908# What is the maximum length of a command?
10909max_cmd_len=$lt_cv_sys_max_cmd_len
10910
10911# Does compiler simultaneously support -c and -o options?
10912compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10913
10914# Must we lock files when doing compilation?
10915need_locks=$lt_need_locks
10916
10917# Do we need the lib prefix for modules?
10918need_lib_prefix=$need_lib_prefix
10919
10920# Do we need a version for libraries?
10921need_version=$need_version
10922
10923# Whether dlopen is supported.
10924dlopen_support=$enable_dlopen
10925
10926# Whether dlopen of programs is supported.
10927dlopen_self=$enable_dlopen_self
10928
10929# Whether dlopen of statically linked programs is supported.
10930dlopen_self_static=$enable_dlopen_self_static
10931
10932# Compiler flag to prevent dynamic linking.
10933link_static_flag=$lt_lt_prog_compiler_static
10934
10935# Compiler flag to turn off builtin functions.
10936no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10937
10938# Compiler flag to allow reflexive dlopens.
10939export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10940
10941# Compiler flag to generate shared objects directly from archives.
10942whole_archive_flag_spec=$lt_whole_archive_flag_spec
10943
10944# Compiler flag to generate thread-safe objects.
10945thread_safe_flag_spec=$lt_thread_safe_flag_spec
10946
10947# Library versioning type.
10948version_type=$version_type
10949
10950# Format of library name prefix.
10951libname_spec=$lt_libname_spec
10952
10953# List of archive names.  First name is the real one, the rest are links.
10954# The last name is the one that the linker finds with -lNAME.
10955library_names_spec=$lt_library_names_spec
10956
10957# The coded name of the library, if different from the real name.
10958soname_spec=$lt_soname_spec
10959
10960# Commands used to build and install an old-style archive.
10961RANLIB=$lt_RANLIB
10962old_archive_cmds=$lt_old_archive_cmds
10963old_postinstall_cmds=$lt_old_postinstall_cmds
10964old_postuninstall_cmds=$lt_old_postuninstall_cmds
10965
10966# Create an old-style archive from a shared archive.
10967old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10968
10969# Create a temporary old-style archive to link instead of a shared archive.
10970old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10971
10972# Commands used to build and install a shared archive.
10973archive_cmds=$lt_archive_cmds
10974archive_expsym_cmds=$lt_archive_expsym_cmds
10975postinstall_cmds=$lt_postinstall_cmds
10976postuninstall_cmds=$lt_postuninstall_cmds
10977
10978# Commands used to build a loadable module (assumed same as above if empty)
10979module_cmds=$lt_module_cmds
10980module_expsym_cmds=$lt_module_expsym_cmds
10981
10982# Commands to strip libraries.
10983old_striplib=$lt_old_striplib
10984striplib=$lt_striplib
10985
10986# Dependencies to place before the objects being linked to create a
10987# shared library.
10988predep_objects=$lt_predep_objects
10989
10990# Dependencies to place after the objects being linked to create a
10991# shared library.
10992postdep_objects=$lt_postdep_objects
10993
10994# Dependencies to place before the objects being linked to create a
10995# shared library.
10996predeps=$lt_predeps
10997
10998# Dependencies to place after the objects being linked to create a
10999# shared library.
11000postdeps=$lt_postdeps
11001
11002# The directories searched by this compiler when creating a shared
11003# library
11004compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11005
11006# The library search path used internally by the compiler when linking
11007# a shared library.
11008compiler_lib_search_path=$lt_compiler_lib_search_path
11009
11010# Method to check whether dependent libraries are shared objects.
11011deplibs_check_method=$lt_deplibs_check_method
11012
11013# Command to use when deplibs_check_method == file_magic.
11014file_magic_cmd=$lt_file_magic_cmd
11015
11016# Flag that allows shared libraries with undefined symbols to be built.
11017allow_undefined_flag=$lt_allow_undefined_flag
11018
11019# Flag that forces no undefined symbols.
11020no_undefined_flag=$lt_no_undefined_flag
11021
11022# Commands used to finish a libtool library installation in a directory.
11023finish_cmds=$lt_finish_cmds
11024
11025# Same as above, but a single script fragment to be evaled but not shown.
11026finish_eval=$lt_finish_eval
11027
11028# Take the output of nm and produce a listing of raw symbols and C names.
11029global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11030
11031# Transform the output of nm in a proper C declaration
11032global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11033
11034# Transform the output of nm in a C name address pair
11035global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11036
11037# This is the shared library runtime path variable.
11038runpath_var=$runpath_var
11039
11040# This is the shared library path variable.
11041shlibpath_var=$shlibpath_var
11042
11043# Is shlibpath searched before the hard-coded library search path?
11044shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11045
11046# How to hardcode a shared library path into an executable.
11047hardcode_action=$hardcode_action
11048
11049# Whether we should hardcode library paths into libraries.
11050hardcode_into_libs=$hardcode_into_libs
11051
11052# Flag to hardcode \$libdir into a binary during linking.
11053# This must work even if \$libdir does not exist.
11054hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11055
11056# If ld is used when linking, flag to hardcode \$libdir into
11057# a binary during linking. This must work even if \$libdir does
11058# not exist.
11059hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11060
11061# Whether we need a single -rpath flag with a separated argument.
11062hardcode_libdir_separator=$lt_hardcode_libdir_separator
11063
11064# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11065# resulting binary.
11066hardcode_direct=$hardcode_direct
11067
11068# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11069# resulting binary.
11070hardcode_minus_L=$hardcode_minus_L
11071
11072# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11073# the resulting binary.
11074hardcode_shlibpath_var=$hardcode_shlibpath_var
11075
11076# Set to yes if building a shared library automatically hardcodes DIR into the library
11077# and all subsequent libraries and executables linked against it.
11078hardcode_automatic=$hardcode_automatic
11079
11080# Variables whose values should be saved in libtool wrapper scripts and
11081# restored at relink time.
11082variables_saved_for_relink="$variables_saved_for_relink"
11083
11084# Whether libtool must link a program against all its dependency libraries.
11085link_all_deplibs=$link_all_deplibs
11086
11087# Compile-time system search path for libraries
11088sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11089
11090# Run-time system search path for libraries
11091sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11092
11093# Fix the shell variable \$srcfile for the compiler.
11094fix_srcfile_path=$lt_fix_srcfile_path
11095
11096# Set to yes if exported symbols are required.
11097always_export_symbols=$always_export_symbols
11098
11099# The commands to list exported symbols.
11100export_symbols_cmds=$lt_export_symbols_cmds
11101
11102# The commands to extract the exported symbol list from a shared archive.
11103extract_expsyms_cmds=$lt_extract_expsyms_cmds
11104
11105# Symbols that should not be listed in the preloaded symbols.
11106exclude_expsyms=$lt_exclude_expsyms
11107
11108# Symbols that must always be exported.
11109include_expsyms=$lt_include_expsyms
11110
11111# ### END LIBTOOL CONFIG
11112
11113__EOF__
11114
11115
11116  case $host_os in
11117  aix3*)
11118    cat <<\EOF >> "$cfgfile"
11119
11120# AIX sometimes has problems with the GCC collect2 program.  For some
11121# reason, if we set the COLLECT_NAMES environment variable, the problems
11122# vanish in a puff of smoke.
11123if test "X${COLLECT_NAMES+set}" != Xset; then
11124  COLLECT_NAMES=
11125  export COLLECT_NAMES
11126fi
11127EOF
11128    ;;
11129  esac
11130
11131  # We use sed instead of cat because bash on DJGPP gets confused if
11132  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11133  # text mode, it properly converts lines to CR/LF.  This bash problem
11134  # is reportedly fixed, but why not run on old versions too?
11135  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11136
11137  mv -f "$cfgfile" "$ofile" || \
11138    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11139  chmod +x "$ofile"
11140
11141else
11142  # If there is no Makefile yet, we rely on a make rule to execute
11143  # `config.status --recheck' to rerun these tests and create the
11144  # libtool script then.
11145  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11146  if test -f "$ltmain_in"; then
11147    test -f Makefile && make "$ltmain"
11148  fi
11149fi
11150
11151
11152ac_ext=c
11153ac_cpp='$CPP $CPPFLAGS'
11154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11156ac_compiler_gnu=$ac_cv_c_compiler_gnu
11157
11158CC="$lt_save_CC"
11159
11160
11161# Check whether --with-tags was given.
11162if test "${with_tags+set}" = set; then
11163  withval=$with_tags; tagnames="$withval"
11164fi
11165
11166
11167if test -f "$ltmain" && test -n "$tagnames"; then
11168  if test ! -f "${ofile}"; then
11169    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11170$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11171  fi
11172
11173  if test -z "$LTCC"; then
11174    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11175    if test -z "$LTCC"; then
11176      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11177$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11178    else
11179      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11180$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11181    fi
11182  fi
11183  if test -z "$LTCFLAGS"; then
11184    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11185  fi
11186
11187  # Extract list of available tagged configurations in $ofile.
11188  # Note that this assumes the entire list is on one line.
11189  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11190
11191  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11192  for tagname in $tagnames; do
11193    IFS="$lt_save_ifs"
11194    # Check whether tagname contains only valid characters
11195    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11196    "") ;;
11197    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11198$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11199   { (exit 1); exit 1; }; }
11200	;;
11201    esac
11202
11203    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11204    then
11205      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11206$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11207   { (exit 1); exit 1; }; }
11208    fi
11209
11210    # Update the list of available tags.
11211    if test -n "$tagname"; then
11212      echo appending configuration tag \"$tagname\" to $ofile
11213
11214      case $tagname in
11215      CXX)
11216	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11217	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11218	    (test "X$CXX" != "Xg++"))) ; then
11219	  ac_ext=cpp
11220ac_cpp='$CXXCPP $CPPFLAGS'
11221ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11222ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11223ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11224
11225
11226
11227
11228archive_cmds_need_lc_CXX=no
11229allow_undefined_flag_CXX=
11230always_export_symbols_CXX=no
11231archive_expsym_cmds_CXX=
11232export_dynamic_flag_spec_CXX=
11233hardcode_direct_CXX=no
11234hardcode_libdir_flag_spec_CXX=
11235hardcode_libdir_flag_spec_ld_CXX=
11236hardcode_libdir_separator_CXX=
11237hardcode_minus_L_CXX=no
11238hardcode_shlibpath_var_CXX=unsupported
11239hardcode_automatic_CXX=no
11240module_cmds_CXX=
11241module_expsym_cmds_CXX=
11242link_all_deplibs_CXX=unknown
11243old_archive_cmds_CXX=$old_archive_cmds
11244no_undefined_flag_CXX=
11245whole_archive_flag_spec_CXX=
11246enable_shared_with_static_runtimes_CXX=no
11247
11248# Dependencies to place before and after the object being linked:
11249predep_objects_CXX=
11250postdep_objects_CXX=
11251predeps_CXX=
11252postdeps_CXX=
11253compiler_lib_search_path_CXX=
11254compiler_lib_search_dirs_CXX=
11255
11256# Source file extension for C++ test sources.
11257ac_ext=cpp
11258
11259# Object file extension for compiled C++ test sources.
11260objext=o
11261objext_CXX=$objext
11262
11263# Code to be used in simple compile tests
11264lt_simple_compile_test_code="int some_variable = 0;"
11265
11266# Code to be used in simple link tests
11267lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11268
11269# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11270
11271# If no C compiler was specified, use CC.
11272LTCC=${LTCC-"$CC"}
11273
11274# If no C compiler flags were specified, use CFLAGS.
11275LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11276
11277# Allow CC to be a program name with arguments.
11278compiler=$CC
11279
11280
11281# save warnings/boilerplate of simple test code
11282ac_outfile=conftest.$ac_objext
11283echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11284eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11285_lt_compiler_boilerplate=`cat conftest.err`
11286$rm conftest*
11287
11288ac_outfile=conftest.$ac_objext
11289echo "$lt_simple_link_test_code" >conftest.$ac_ext
11290eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11291_lt_linker_boilerplate=`cat conftest.err`
11292$rm -r conftest*
11293
11294
11295# Allow CC to be a program name with arguments.
11296lt_save_CC=$CC
11297lt_save_LD=$LD
11298lt_save_GCC=$GCC
11299GCC=$GXX
11300lt_save_with_gnu_ld=$with_gnu_ld
11301lt_save_path_LD=$lt_cv_path_LD
11302if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11303  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11304else
11305  $as_unset lt_cv_prog_gnu_ld
11306fi
11307if test -n "${lt_cv_path_LDCXX+set}"; then
11308  lt_cv_path_LD=$lt_cv_path_LDCXX
11309else
11310  $as_unset lt_cv_path_LD
11311fi
11312test -z "${LDCXX+set}" || LD=$LDCXX
11313CC=${CXX-"c++"}
11314compiler=$CC
11315compiler_CXX=$CC
11316for cc_temp in $compiler""; do
11317  case $cc_temp in
11318    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11319    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11320    \-*) ;;
11321    *) break;;
11322  esac
11323done
11324cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11325
11326
11327# We don't want -fno-exception wen compiling C++ code, so set the
11328# no_builtin_flag separately
11329if test "$GXX" = yes; then
11330  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11331else
11332  lt_prog_compiler_no_builtin_flag_CXX=
11333fi
11334
11335if test "$GXX" = yes; then
11336  # Set up default GNU C++ configuration
11337
11338
11339# Check whether --with-gnu-ld was given.
11340if test "${with_gnu_ld+set}" = set; then
11341  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11342else
11343  with_gnu_ld=no
11344fi
11345
11346ac_prog=ld
11347if test "$GCC" = yes; then
11348  # Check if gcc -print-prog-name=ld gives a path.
11349  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11350$as_echo_n "checking for ld used by $CC... " >&6; }
11351  case $host in
11352  *-*-mingw*)
11353    # gcc leaves a trailing carriage return which upsets mingw
11354    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11355  *)
11356    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11357  esac
11358  case $ac_prog in
11359    # Accept absolute paths.
11360    [\\/]* | ?:[\\/]*)
11361      re_direlt='/[^/][^/]*/\.\./'
11362      # Canonicalize the pathname of ld
11363      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11364      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11365	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11366      done
11367      test -z "$LD" && LD="$ac_prog"
11368      ;;
11369  "")
11370    # If it fails, then pretend we aren't using GCC.
11371    ac_prog=ld
11372    ;;
11373  *)
11374    # If it is relative, then search for the first ld in PATH.
11375    with_gnu_ld=unknown
11376    ;;
11377  esac
11378elif test "$with_gnu_ld" = yes; then
11379  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11380$as_echo_n "checking for GNU ld... " >&6; }
11381else
11382  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11383$as_echo_n "checking for non-GNU ld... " >&6; }
11384fi
11385if test "${lt_cv_path_LD+set}" = set; then
11386  $as_echo_n "(cached) " >&6
11387else
11388  if test -z "$LD"; then
11389  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11390  for ac_dir in $PATH; do
11391    IFS="$lt_save_ifs"
11392    test -z "$ac_dir" && ac_dir=.
11393    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11394      lt_cv_path_LD="$ac_dir/$ac_prog"
11395      # Check to see if the program is GNU ld.  I'd rather use --version,
11396      # but apparently some variants of GNU ld only accept -v.
11397      # Break only if it was the GNU/non-GNU ld that we prefer.
11398      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11399      *GNU* | *'with BFD'*)
11400	test "$with_gnu_ld" != no && break
11401	;;
11402      *)
11403	test "$with_gnu_ld" != yes && break
11404	;;
11405      esac
11406    fi
11407  done
11408  IFS="$lt_save_ifs"
11409else
11410  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11411fi
11412fi
11413
11414LD="$lt_cv_path_LD"
11415if test -n "$LD"; then
11416  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11417$as_echo "$LD" >&6; }
11418else
11419  { $as_echo "$as_me:$LINENO: result: no" >&5
11420$as_echo "no" >&6; }
11421fi
11422test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11423$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11424   { (exit 1); exit 1; }; }
11425{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11426$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11427if test "${lt_cv_prog_gnu_ld+set}" = set; then
11428  $as_echo_n "(cached) " >&6
11429else
11430  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11431case `$LD -v 2>&1 </dev/null` in
11432*GNU* | *'with BFD'*)
11433  lt_cv_prog_gnu_ld=yes
11434  ;;
11435*)
11436  lt_cv_prog_gnu_ld=no
11437  ;;
11438esac
11439fi
11440{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11441$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11442with_gnu_ld=$lt_cv_prog_gnu_ld
11443
11444
11445
11446  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11447  # archiving commands below assume that GNU ld is being used.
11448  if test "$with_gnu_ld" = yes; then
11449    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11450    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'
11451
11452    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11453    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11454
11455    # If archive_cmds runs LD, not CC, wlarc should be empty
11456    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11457    #     investigate it a little bit more. (MM)
11458    wlarc='${wl}'
11459
11460    # ancient GNU ld didn't support --whole-archive et. al.
11461    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11462	grep 'no-whole-archive' > /dev/null; then
11463      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11464    else
11465      whole_archive_flag_spec_CXX=
11466    fi
11467  else
11468    with_gnu_ld=no
11469    wlarc=
11470
11471    # A generic and very simple default shared library creation
11472    # command for GNU C++ for the case where it uses the native
11473    # linker, instead of GNU ld.  If possible, this setting should
11474    # overridden to take advantage of the native linker features on
11475    # the platform it is being used on.
11476    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11477  fi
11478
11479  # Commands to make compiler produce verbose output that lists
11480  # what "hidden" libraries, object files and flags are used when
11481  # linking a shared library.
11482  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11483
11484else
11485  GXX=no
11486  with_gnu_ld=no
11487  wlarc=
11488fi
11489
11490# PORTME: fill in a description of your system's C++ link characteristics
11491{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11492$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11493ld_shlibs_CXX=yes
11494case $host_os in
11495  aix3*)
11496    # FIXME: insert proper C++ library support
11497    ld_shlibs_CXX=no
11498    ;;
11499  aix[4-9]*)
11500    if test "$host_cpu" = ia64; then
11501      # On IA64, the linker does run time linking by default, so we don't
11502      # have to do anything special.
11503      aix_use_runtimelinking=no
11504      exp_sym_flag='-Bexport'
11505      no_entry_flag=""
11506    else
11507      aix_use_runtimelinking=no
11508
11509      # Test if we are trying to use run time linking or normal
11510      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11511      # need to do runtime linking.
11512      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11513	for ld_flag in $LDFLAGS; do
11514	  case $ld_flag in
11515	  *-brtl*)
11516	    aix_use_runtimelinking=yes
11517	    break
11518	    ;;
11519	  esac
11520	done
11521	;;
11522      esac
11523
11524      exp_sym_flag='-bexport'
11525      no_entry_flag='-bnoentry'
11526    fi
11527
11528    # When large executables or shared objects are built, AIX ld can
11529    # have problems creating the table of contents.  If linking a library
11530    # or program results in "error TOC overflow" add -mminimal-toc to
11531    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11532    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11533
11534    archive_cmds_CXX=''
11535    hardcode_direct_CXX=yes
11536    hardcode_libdir_separator_CXX=':'
11537    link_all_deplibs_CXX=yes
11538
11539    if test "$GXX" = yes; then
11540      case $host_os in aix4.[012]|aix4.[012].*)
11541      # We only want to do this on AIX 4.2 and lower, the check
11542      # below for broken collect2 doesn't work under 4.3+
11543	collect2name=`${CC} -print-prog-name=collect2`
11544	if test -f "$collect2name" && \
11545	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11546	then
11547	  # We have reworked collect2
11548	  :
11549	else
11550	  # We have old collect2
11551	  hardcode_direct_CXX=unsupported
11552	  # It fails to find uninstalled libraries when the uninstalled
11553	  # path is not listed in the libpath.  Setting hardcode_minus_L
11554	  # to unsupported forces relinking
11555	  hardcode_minus_L_CXX=yes
11556	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11557	  hardcode_libdir_separator_CXX=
11558	fi
11559	;;
11560      esac
11561      shared_flag='-shared'
11562      if test "$aix_use_runtimelinking" = yes; then
11563	shared_flag="$shared_flag "'${wl}-G'
11564      fi
11565    else
11566      # not using gcc
11567      if test "$host_cpu" = ia64; then
11568	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11569	# chokes on -Wl,-G. The following line is correct:
11570	shared_flag='-G'
11571      else
11572	if test "$aix_use_runtimelinking" = yes; then
11573	  shared_flag='${wl}-G'
11574	else
11575	  shared_flag='${wl}-bM:SRE'
11576	fi
11577      fi
11578    fi
11579
11580    # It seems that -bexpall does not export symbols beginning with
11581    # underscore (_), so it is better to generate a list of symbols to export.
11582    always_export_symbols_CXX=yes
11583    if test "$aix_use_runtimelinking" = yes; then
11584      # Warning - without using the other runtime loading flags (-brtl),
11585      # -berok will link without error, but may produce a broken library.
11586      allow_undefined_flag_CXX='-berok'
11587      # Determine the default libpath from the value encoded in an empty executable.
11588      cat >conftest.$ac_ext <<_ACEOF
11589/* confdefs.h.  */
11590_ACEOF
11591cat confdefs.h >>conftest.$ac_ext
11592cat >>conftest.$ac_ext <<_ACEOF
11593/* end confdefs.h.  */
11594
11595int
11596main ()
11597{
11598
11599  ;
11600  return 0;
11601}
11602_ACEOF
11603rm -f conftest.$ac_objext conftest$ac_exeext
11604if { (ac_try="$ac_link"
11605case "(($ac_try" in
11606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607  *) ac_try_echo=$ac_try;;
11608esac
11609eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11610$as_echo "$ac_try_echo") >&5
11611  (eval "$ac_link") 2>conftest.er1
11612  ac_status=$?
11613  grep -v '^ *+' conftest.er1 >conftest.err
11614  rm -f conftest.er1
11615  cat conftest.err >&5
11616  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617  (exit $ac_status); } && {
11618	 test -z "$ac_cxx_werror_flag" ||
11619	 test ! -s conftest.err
11620       } && test -s conftest$ac_exeext && {
11621	 test "$cross_compiling" = yes ||
11622	 $as_test_x conftest$ac_exeext
11623       }; then
11624
11625lt_aix_libpath_sed='
11626    /Import File Strings/,/^$/ {
11627	/^0/ {
11628	    s/^0  *\(.*\)$/\1/
11629	    p
11630	}
11631    }'
11632aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11633# Check for a 64-bit object if we didn't find anything.
11634if test -z "$aix_libpath"; then
11635  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11636fi
11637else
11638  $as_echo "$as_me: failed program was:" >&5
11639sed 's/^/| /' conftest.$ac_ext >&5
11640
11641
11642fi
11643
11644rm -rf conftest.dSYM
11645rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11646      conftest$ac_exeext conftest.$ac_ext
11647if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11648
11649      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11650
11651      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"
11652     else
11653      if test "$host_cpu" = ia64; then
11654	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11655	allow_undefined_flag_CXX="-z nodefs"
11656	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"
11657      else
11658	# Determine the default libpath from the value encoded in an empty executable.
11659	cat >conftest.$ac_ext <<_ACEOF
11660/* confdefs.h.  */
11661_ACEOF
11662cat confdefs.h >>conftest.$ac_ext
11663cat >>conftest.$ac_ext <<_ACEOF
11664/* end confdefs.h.  */
11665
11666int
11667main ()
11668{
11669
11670  ;
11671  return 0;
11672}
11673_ACEOF
11674rm -f conftest.$ac_objext conftest$ac_exeext
11675if { (ac_try="$ac_link"
11676case "(($ac_try" in
11677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678  *) ac_try_echo=$ac_try;;
11679esac
11680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11681$as_echo "$ac_try_echo") >&5
11682  (eval "$ac_link") 2>conftest.er1
11683  ac_status=$?
11684  grep -v '^ *+' conftest.er1 >conftest.err
11685  rm -f conftest.er1
11686  cat conftest.err >&5
11687  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688  (exit $ac_status); } && {
11689	 test -z "$ac_cxx_werror_flag" ||
11690	 test ! -s conftest.err
11691       } && test -s conftest$ac_exeext && {
11692	 test "$cross_compiling" = yes ||
11693	 $as_test_x conftest$ac_exeext
11694       }; then
11695
11696lt_aix_libpath_sed='
11697    /Import File Strings/,/^$/ {
11698	/^0/ {
11699	    s/^0  *\(.*\)$/\1/
11700	    p
11701	}
11702    }'
11703aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11704# Check for a 64-bit object if we didn't find anything.
11705if test -z "$aix_libpath"; then
11706  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11707fi
11708else
11709  $as_echo "$as_me: failed program was:" >&5
11710sed 's/^/| /' conftest.$ac_ext >&5
11711
11712
11713fi
11714
11715rm -rf conftest.dSYM
11716rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11717      conftest$ac_exeext conftest.$ac_ext
11718if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11719
11720	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11721	# Warning - without using the other run time loading flags,
11722	# -berok will link without error, but may produce a broken library.
11723	no_undefined_flag_CXX=' ${wl}-bernotok'
11724	allow_undefined_flag_CXX=' ${wl}-berok'
11725	# Exported symbols can be pulled into shared objects from archives
11726	whole_archive_flag_spec_CXX='$convenience'
11727	archive_cmds_need_lc_CXX=yes
11728	# This is similar to how AIX traditionally builds its shared libraries.
11729	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'
11730      fi
11731    fi
11732    ;;
11733
11734  beos*)
11735    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11736      allow_undefined_flag_CXX=unsupported
11737      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11738      # support --undefined.  This deserves some investigation.  FIXME
11739      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11740    else
11741      ld_shlibs_CXX=no
11742    fi
11743    ;;
11744
11745  chorus*)
11746    case $cc_basename in
11747      *)
11748	# FIXME: insert proper C++ library support
11749	ld_shlibs_CXX=no
11750	;;
11751    esac
11752    ;;
11753
11754  cygwin* | mingw* | pw32*)
11755    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11756    # as there is no search path for DLLs.
11757    hardcode_libdir_flag_spec_CXX='-L$libdir'
11758    allow_undefined_flag_CXX=unsupported
11759    always_export_symbols_CXX=no
11760    enable_shared_with_static_runtimes_CXX=yes
11761
11762    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11763      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'
11764      # If the export-symbols file already is a .def file (1st line
11765      # is EXPORTS), use it as is; otherwise, prepend...
11766      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11767	cp $export_symbols $output_objdir/$soname.def;
11768      else
11769	echo EXPORTS > $output_objdir/$soname.def;
11770	cat $export_symbols >> $output_objdir/$soname.def;
11771      fi~
11772      $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'
11773    else
11774      ld_shlibs_CXX=no
11775    fi
11776  ;;
11777      darwin* | rhapsody*)
11778      archive_cmds_need_lc_CXX=no
11779      hardcode_direct_CXX=no
11780      hardcode_automatic_CXX=yes
11781      hardcode_shlibpath_var_CXX=unsupported
11782      whole_archive_flag_spec_CXX=''
11783      link_all_deplibs_CXX=yes
11784      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11785      if test "$GXX" = yes ; then
11786      output_verbose_link_cmd='echo'
11787      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}"
11788      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11789      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}"
11790      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}"
11791      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11792        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}"
11793        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}"
11794      fi
11795      else
11796      case $cc_basename in
11797        xlc*)
11798         output_verbose_link_cmd='echo'
11799          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'
11800          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11801          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11802          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}'
11803          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}'
11804          ;;
11805       *)
11806         ld_shlibs_CXX=no
11807          ;;
11808      esac
11809      fi
11810        ;;
11811
11812  dgux*)
11813    case $cc_basename in
11814      ec++*)
11815	# FIXME: insert proper C++ library support
11816	ld_shlibs_CXX=no
11817	;;
11818      ghcx*)
11819	# Green Hills C++ Compiler
11820	# FIXME: insert proper C++ library support
11821	ld_shlibs_CXX=no
11822	;;
11823      *)
11824	# FIXME: insert proper C++ library support
11825	ld_shlibs_CXX=no
11826	;;
11827    esac
11828    ;;
11829  freebsd[12]*)
11830    # C++ shared libraries reported to be fairly broken before switch to ELF
11831    ld_shlibs_CXX=no
11832    ;;
11833  freebsd-elf*)
11834    archive_cmds_need_lc_CXX=no
11835    ;;
11836  freebsd* | dragonfly*)
11837    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11838    # conventions
11839    ld_shlibs_CXX=yes
11840    ;;
11841  gnu*)
11842    ;;
11843  hpux9*)
11844    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11845    hardcode_libdir_separator_CXX=:
11846    export_dynamic_flag_spec_CXX='${wl}-E'
11847    hardcode_direct_CXX=yes
11848    hardcode_minus_L_CXX=yes # Not in the search PATH,
11849				# but as the default
11850				# location of the library.
11851
11852    case $cc_basename in
11853    CC*)
11854      # FIXME: insert proper C++ library support
11855      ld_shlibs_CXX=no
11856      ;;
11857    aCC*)
11858      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'
11859      # Commands to make compiler produce verbose output that lists
11860      # what "hidden" libraries, object files and flags are used when
11861      # linking a shared library.
11862      #
11863      # There doesn't appear to be a way to prevent this compiler from
11864      # explicitly linking system object files so we need to strip them
11865      # from the output so that they don't get included in the library
11866      # dependencies.
11867      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'
11868      ;;
11869    *)
11870      if test "$GXX" = yes; then
11871        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'
11872      else
11873        # FIXME: insert proper C++ library support
11874        ld_shlibs_CXX=no
11875      fi
11876      ;;
11877    esac
11878    ;;
11879  hpux10*|hpux11*)
11880    if test $with_gnu_ld = no; then
11881      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11882      hardcode_libdir_separator_CXX=:
11883
11884      case $host_cpu in
11885      hppa*64*|ia64*) ;;
11886      *)
11887	export_dynamic_flag_spec_CXX='${wl}-E'
11888        ;;
11889      esac
11890    fi
11891    case $host_cpu in
11892    hppa*64*|ia64*)
11893      hardcode_direct_CXX=no
11894      hardcode_shlibpath_var_CXX=no
11895      ;;
11896    *)
11897      hardcode_direct_CXX=yes
11898      hardcode_minus_L_CXX=yes # Not in the search PATH,
11899					      # but as the default
11900					      # location of the library.
11901      ;;
11902    esac
11903
11904    case $cc_basename in
11905      CC*)
11906	# FIXME: insert proper C++ library support
11907	ld_shlibs_CXX=no
11908	;;
11909      aCC*)
11910	case $host_cpu in
11911	hppa*64*)
11912	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11913	  ;;
11914	ia64*)
11915	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11916	  ;;
11917	*)
11918	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11919	  ;;
11920	esac
11921	# Commands to make compiler produce verbose output that lists
11922	# what "hidden" libraries, object files and flags are used when
11923	# linking a shared library.
11924	#
11925	# There doesn't appear to be a way to prevent this compiler from
11926	# explicitly linking system object files so we need to strip them
11927	# from the output so that they don't get included in the library
11928	# dependencies.
11929	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'
11930	;;
11931      *)
11932	if test "$GXX" = yes; then
11933	  if test $with_gnu_ld = no; then
11934	    case $host_cpu in
11935	    hppa*64*)
11936	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11937	      ;;
11938	    ia64*)
11939	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11940	      ;;
11941	    *)
11942	      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'
11943	      ;;
11944	    esac
11945	  fi
11946	else
11947	  # FIXME: insert proper C++ library support
11948	  ld_shlibs_CXX=no
11949	fi
11950	;;
11951    esac
11952    ;;
11953  interix[3-9]*)
11954    hardcode_direct_CXX=no
11955    hardcode_shlibpath_var_CXX=no
11956    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11957    export_dynamic_flag_spec_CXX='${wl}-E'
11958    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11959    # Instead, shared libraries are loaded at an image base (0x10000000 by
11960    # default) and relocated if they conflict, which is a slow very memory
11961    # consuming and fragmenting process.  To avoid this, we pick a random,
11962    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11963    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11964    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'
11965    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'
11966    ;;
11967  irix5* | irix6*)
11968    case $cc_basename in
11969      CC*)
11970	# SGI C++
11971	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'
11972
11973	# Archives containing C++ object files must be created using
11974	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11975	# necessary to make sure instantiated templates are included
11976	# in the archive.
11977	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11978	;;
11979      *)
11980	if test "$GXX" = yes; then
11981	  if test "$with_gnu_ld" = no; then
11982	    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'
11983	  else
11984	    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'
11985	  fi
11986	fi
11987	link_all_deplibs_CXX=yes
11988	;;
11989    esac
11990    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11991    hardcode_libdir_separator_CXX=:
11992    ;;
11993  linux* | k*bsd*-gnu)
11994    case $cc_basename in
11995      KCC*)
11996	# Kuck and Associates, Inc. (KAI) C++ Compiler
11997
11998	# KCC will only create a shared library if the output file
11999	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12000	# to its proper name (with version) after linking.
12001	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'
12002	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'
12003	# Commands to make compiler produce verbose output that lists
12004	# what "hidden" libraries, object files and flags are used when
12005	# linking a shared library.
12006	#
12007	# There doesn't appear to be a way to prevent this compiler from
12008	# explicitly linking system object files so we need to strip them
12009	# from the output so that they don't get included in the library
12010	# dependencies.
12011	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'
12012
12013	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12014	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12015
12016	# Archives containing C++ object files must be created using
12017	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12018	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12019	;;
12020      icpc*)
12021	# Intel C++
12022	with_gnu_ld=yes
12023	# version 8.0 and above of icpc choke on multiply defined symbols
12024	# if we add $predep_objects and $postdep_objects, however 7.1 and
12025	# earlier do not add the objects themselves.
12026	case `$CC -V 2>&1` in
12027	*"Version 7."*)
12028  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12029  	  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'
12030	  ;;
12031	*)  # Version 8.0 or newer
12032	  tmp_idyn=
12033	  case $host_cpu in
12034	    ia64*) tmp_idyn=' -i_dynamic';;
12035	  esac
12036  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12037	  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'
12038	  ;;
12039	esac
12040	archive_cmds_need_lc_CXX=no
12041	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12042	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12043	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12044	;;
12045      pgCC* | pgcpp*)
12046        # Portland Group C++ compiler
12047	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12048  	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'
12049
12050	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12051	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12052	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'
12053        ;;
12054      cxx*)
12055	# Compaq C++
12056	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12057	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'
12058
12059	runpath_var=LD_RUN_PATH
12060	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12061	hardcode_libdir_separator_CXX=:
12062
12063	# Commands to make compiler produce verbose output that lists
12064	# what "hidden" libraries, object files and flags are used when
12065	# linking a shared library.
12066	#
12067	# There doesn't appear to be a way to prevent this compiler from
12068	# explicitly linking system object files so we need to strip them
12069	# from the output so that they don't get included in the library
12070	# dependencies.
12071	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'
12072	;;
12073      *)
12074	case `$CC -V 2>&1 | sed 5q` in
12075	*Sun\ C*)
12076	  # Sun C++ 5.9
12077	  no_undefined_flag_CXX=' -zdefs'
12078	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12079	  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'
12080	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12081	  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'
12082
12083	  # Not sure whether something based on
12084	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12085	  # would be better.
12086	  output_verbose_link_cmd='echo'
12087
12088	  # Archives containing C++ object files must be created using
12089	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12090	  # necessary to make sure instantiated templates are included
12091	  # in the archive.
12092	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12093	  ;;
12094	esac
12095	;;
12096    esac
12097    ;;
12098  lynxos*)
12099    # FIXME: insert proper C++ library support
12100    ld_shlibs_CXX=no
12101    ;;
12102  m88k*)
12103    # FIXME: insert proper C++ library support
12104    ld_shlibs_CXX=no
12105    ;;
12106  mvs*)
12107    case $cc_basename in
12108      cxx*)
12109	# FIXME: insert proper C++ library support
12110	ld_shlibs_CXX=no
12111	;;
12112      *)
12113	# FIXME: insert proper C++ library support
12114	ld_shlibs_CXX=no
12115	;;
12116    esac
12117    ;;
12118  netbsd*)
12119    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12120      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12121      wlarc=
12122      hardcode_libdir_flag_spec_CXX='-R$libdir'
12123      hardcode_direct_CXX=yes
12124      hardcode_shlibpath_var_CXX=no
12125    fi
12126    # Workaround some broken pre-1.5 toolchains
12127    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12128    ;;
12129  openbsd2*)
12130    # C++ shared libraries are fairly broken
12131    ld_shlibs_CXX=no
12132    ;;
12133  openbsd*)
12134    if test -f /usr/libexec/ld.so; then
12135      hardcode_direct_CXX=yes
12136      hardcode_shlibpath_var_CXX=no
12137      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12138      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12139      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12140	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12141	export_dynamic_flag_spec_CXX='${wl}-E'
12142	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12143      fi
12144      output_verbose_link_cmd='echo'
12145    else
12146      ld_shlibs_CXX=no
12147    fi
12148    ;;
12149  osf3*)
12150    case $cc_basename in
12151      KCC*)
12152	# Kuck and Associates, Inc. (KAI) C++ Compiler
12153
12154	# KCC will only create a shared library if the output file
12155	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12156	# to its proper name (with version) after linking.
12157	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'
12158
12159	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12160	hardcode_libdir_separator_CXX=:
12161
12162	# Archives containing C++ object files must be created using
12163	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12164	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12165
12166	;;
12167      RCC*)
12168	# Rational C++ 2.4.1
12169	# FIXME: insert proper C++ library support
12170	ld_shlibs_CXX=no
12171	;;
12172      cxx*)
12173	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12174	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'
12175
12176	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12177	hardcode_libdir_separator_CXX=:
12178
12179	# Commands to make compiler produce verbose output that lists
12180	# what "hidden" libraries, object files and flags are used when
12181	# linking a shared library.
12182	#
12183	# There doesn't appear to be a way to prevent this compiler from
12184	# explicitly linking system object files so we need to strip them
12185	# from the output so that they don't get included in the library
12186	# dependencies.
12187	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'
12188	;;
12189      *)
12190	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12191	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12192	  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'
12193
12194	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12195	  hardcode_libdir_separator_CXX=:
12196
12197	  # Commands to make compiler produce verbose output that lists
12198	  # what "hidden" libraries, object files and flags are used when
12199	  # linking a shared library.
12200	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12201
12202	else
12203	  # FIXME: insert proper C++ library support
12204	  ld_shlibs_CXX=no
12205	fi
12206	;;
12207    esac
12208    ;;
12209  osf4* | osf5*)
12210    case $cc_basename in
12211      KCC*)
12212	# Kuck and Associates, Inc. (KAI) C++ Compiler
12213
12214	# KCC will only create a shared library if the output file
12215	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12216	# to its proper name (with version) after linking.
12217	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'
12218
12219	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12220	hardcode_libdir_separator_CXX=:
12221
12222	# Archives containing C++ object files must be created using
12223	# the KAI C++ compiler.
12224	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12225	;;
12226      RCC*)
12227	# Rational C++ 2.4.1
12228	# FIXME: insert proper C++ library support
12229	ld_shlibs_CXX=no
12230	;;
12231      cxx*)
12232	allow_undefined_flag_CXX=' -expect_unresolved \*'
12233	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'
12234	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12235	  echo "-hidden">> $lib.exp~
12236	  $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~
12237	  $rm $lib.exp'
12238
12239	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12240	hardcode_libdir_separator_CXX=:
12241
12242	# Commands to make compiler produce verbose output that lists
12243	# what "hidden" libraries, object files and flags are used when
12244	# linking a shared library.
12245	#
12246	# There doesn't appear to be a way to prevent this compiler from
12247	# explicitly linking system object files so we need to strip them
12248	# from the output so that they don't get included in the library
12249	# dependencies.
12250	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'
12251	;;
12252      *)
12253	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12254	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12255	 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'
12256
12257	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12258	  hardcode_libdir_separator_CXX=:
12259
12260	  # Commands to make compiler produce verbose output that lists
12261	  # what "hidden" libraries, object files and flags are used when
12262	  # linking a shared library.
12263	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12264
12265	else
12266	  # FIXME: insert proper C++ library support
12267	  ld_shlibs_CXX=no
12268	fi
12269	;;
12270    esac
12271    ;;
12272  psos*)
12273    # FIXME: insert proper C++ library support
12274    ld_shlibs_CXX=no
12275    ;;
12276  sunos4*)
12277    case $cc_basename in
12278      CC*)
12279	# Sun C++ 4.x
12280	# FIXME: insert proper C++ library support
12281	ld_shlibs_CXX=no
12282	;;
12283      lcc*)
12284	# Lucid
12285	# FIXME: insert proper C++ library support
12286	ld_shlibs_CXX=no
12287	;;
12288      *)
12289	# FIXME: insert proper C++ library support
12290	ld_shlibs_CXX=no
12291	;;
12292    esac
12293    ;;
12294  solaris*)
12295    case $cc_basename in
12296      CC*)
12297	# Sun C++ 4.2, 5.x and Centerline C++
12298        archive_cmds_need_lc_CXX=yes
12299	no_undefined_flag_CXX=' -zdefs'
12300	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12301	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12302	$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'
12303
12304	hardcode_libdir_flag_spec_CXX='-R$libdir'
12305	hardcode_shlibpath_var_CXX=no
12306	case $host_os in
12307	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12308	  *)
12309	    # The compiler driver will combine and reorder linker options,
12310	    # but understands `-z linker_flag'.
12311	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12312	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12313	    ;;
12314	esac
12315	link_all_deplibs_CXX=yes
12316
12317	output_verbose_link_cmd='echo'
12318
12319	# Archives containing C++ object files must be created using
12320	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12321	# necessary to make sure instantiated templates are included
12322	# in the archive.
12323	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12324	;;
12325      gcx*)
12326	# Green Hills C++ Compiler
12327	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12328
12329	# The C++ compiler must be used to create the archive.
12330	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12331	;;
12332      *)
12333	# GNU C++ compiler with Solaris linker
12334	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12335	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12336	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12337	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12338	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12339		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12340
12341	    # Commands to make compiler produce verbose output that lists
12342	    # what "hidden" libraries, object files and flags are used when
12343	    # linking a shared library.
12344	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12345	  else
12346	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12347	    # platform.
12348	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12349	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12350		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12351
12352	    # Commands to make compiler produce verbose output that lists
12353	    # what "hidden" libraries, object files and flags are used when
12354	    # linking a shared library.
12355	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12356	  fi
12357
12358	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12359	  case $host_os in
12360	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12361	  *)
12362	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12363	    ;;
12364	  esac
12365	fi
12366	;;
12367    esac
12368    ;;
12369  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12370    no_undefined_flag_CXX='${wl}-z,text'
12371    archive_cmds_need_lc_CXX=no
12372    hardcode_shlibpath_var_CXX=no
12373    runpath_var='LD_RUN_PATH'
12374
12375    case $cc_basename in
12376      CC*)
12377	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12378	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12379	;;
12380      *)
12381	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12382	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12383	;;
12384    esac
12385    ;;
12386  sysv5* | sco3.2v5* | sco5v6*)
12387    # Note: We can NOT use -z defs as we might desire, because we do not
12388    # link with -lc, and that would cause any symbols used from libc to
12389    # always be unresolved, which means just about no library would
12390    # ever link correctly.  If we're not using GNU ld we use -z text
12391    # though, which does catch some bad symbols but isn't as heavy-handed
12392    # as -z defs.
12393    # For security reasons, it is highly recommended that you always
12394    # use absolute paths for naming shared libraries, and exclude the
12395    # DT_RUNPATH tag from executables and libraries.  But doing so
12396    # requires that you compile everything twice, which is a pain.
12397    # So that behaviour is only enabled if SCOABSPATH is set to a
12398    # non-empty value in the environment.  Most likely only useful for
12399    # creating official distributions of packages.
12400    # This is a hack until libtool officially supports absolute path
12401    # names for shared libraries.
12402    no_undefined_flag_CXX='${wl}-z,text'
12403    allow_undefined_flag_CXX='${wl}-z,nodefs'
12404    archive_cmds_need_lc_CXX=no
12405    hardcode_shlibpath_var_CXX=no
12406    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12407    hardcode_libdir_separator_CXX=':'
12408    link_all_deplibs_CXX=yes
12409    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12410    runpath_var='LD_RUN_PATH'
12411
12412    case $cc_basename in
12413      CC*)
12414	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12415	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12416	;;
12417      *)
12418	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12419	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12420	;;
12421    esac
12422    ;;
12423  tandem*)
12424    case $cc_basename in
12425      NCC*)
12426	# NonStop-UX NCC 3.20
12427	# FIXME: insert proper C++ library support
12428	ld_shlibs_CXX=no
12429	;;
12430      *)
12431	# FIXME: insert proper C++ library support
12432	ld_shlibs_CXX=no
12433	;;
12434    esac
12435    ;;
12436  vxworks*)
12437    # FIXME: insert proper C++ library support
12438    ld_shlibs_CXX=no
12439    ;;
12440  *)
12441    # FIXME: insert proper C++ library support
12442    ld_shlibs_CXX=no
12443    ;;
12444esac
12445{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12446$as_echo "$ld_shlibs_CXX" >&6; }
12447test "$ld_shlibs_CXX" = no && can_build_shared=no
12448
12449GCC_CXX="$GXX"
12450LD_CXX="$LD"
12451
12452cat > conftest.$ac_ext <<EOF
12453class Foo
12454{
12455public:
12456  Foo (void) { a = 0; }
12457private:
12458  int a;
12459};
12460EOF
12461
12462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12463  (eval $ac_compile) 2>&5
12464  ac_status=$?
12465  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466  (exit $ac_status); }; then
12467  # Parse the compiler output and extract the necessary
12468  # objects, libraries and library flags.
12469
12470  # Sentinel used to keep track of whether or not we are before
12471  # the conftest object file.
12472  pre_test_object_deps_done=no
12473
12474  # The `*' in the case matches for architectures that use `case' in
12475  # $output_verbose_cmd can trigger glob expansion during the loop
12476  # eval without this substitution.
12477  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12478
12479  for p in `eval $output_verbose_link_cmd`; do
12480    case $p in
12481
12482    -L* | -R* | -l*)
12483       # Some compilers place space between "-{L,R}" and the path.
12484       # Remove the space.
12485       if test $p = "-L" \
12486	  || test $p = "-R"; then
12487	 prev=$p
12488	 continue
12489       else
12490	 prev=
12491       fi
12492
12493       if test "$pre_test_object_deps_done" = no; then
12494	 case $p in
12495	 -L* | -R*)
12496	   # Internal compiler library paths should come after those
12497	   # provided the user.  The postdeps already come after the
12498	   # user supplied libs so there is no need to process them.
12499	   if test -z "$compiler_lib_search_path_CXX"; then
12500	     compiler_lib_search_path_CXX="${prev}${p}"
12501	   else
12502	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12503	   fi
12504	   ;;
12505	 # The "-l" case would never come before the object being
12506	 # linked, so don't bother handling this case.
12507	 esac
12508       else
12509	 if test -z "$postdeps_CXX"; then
12510	   postdeps_CXX="${prev}${p}"
12511	 else
12512	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12513	 fi
12514       fi
12515       ;;
12516
12517    *.$objext)
12518       # This assumes that the test object file only shows up
12519       # once in the compiler output.
12520       if test "$p" = "conftest.$objext"; then
12521	 pre_test_object_deps_done=yes
12522	 continue
12523       fi
12524
12525       if test "$pre_test_object_deps_done" = no; then
12526	 if test -z "$predep_objects_CXX"; then
12527	   predep_objects_CXX="$p"
12528	 else
12529	   predep_objects_CXX="$predep_objects_CXX $p"
12530	 fi
12531       else
12532	 if test -z "$postdep_objects_CXX"; then
12533	   postdep_objects_CXX="$p"
12534	 else
12535	   postdep_objects_CXX="$postdep_objects_CXX $p"
12536	 fi
12537       fi
12538       ;;
12539
12540    *) ;; # Ignore the rest.
12541
12542    esac
12543  done
12544
12545  # Clean up.
12546  rm -f a.out a.exe
12547else
12548  echo "libtool.m4: error: problem compiling CXX test program"
12549fi
12550
12551$rm -f confest.$objext
12552
12553compiler_lib_search_dirs_CXX=
12554if test -n "$compiler_lib_search_path_CXX"; then
12555  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12556fi
12557
12558# PORTME: override above test on systems where it is broken
12559case $host_os in
12560interix[3-9]*)
12561  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12562  # hack all around it, let's just trust "g++" to DTRT.
12563  predep_objects_CXX=
12564  postdep_objects_CXX=
12565  postdeps_CXX=
12566  ;;
12567
12568linux*)
12569  case `$CC -V 2>&1 | sed 5q` in
12570  *Sun\ C*)
12571    # Sun C++ 5.9
12572    #
12573    # The more standards-conforming stlport4 library is
12574    # incompatible with the Cstd library. Avoid specifying
12575    # it if it's in CXXFLAGS. Ignore libCrun as
12576    # -library=stlport4 depends on it.
12577    case " $CXX $CXXFLAGS " in
12578    *" -library=stlport4 "*)
12579      solaris_use_stlport4=yes
12580      ;;
12581    esac
12582    if test "$solaris_use_stlport4" != yes; then
12583      postdeps_CXX='-library=Cstd -library=Crun'
12584    fi
12585    ;;
12586  esac
12587  ;;
12588
12589solaris*)
12590  case $cc_basename in
12591  CC*)
12592    # The more standards-conforming stlport4 library is
12593    # incompatible with the Cstd library. Avoid specifying
12594    # it if it's in CXXFLAGS. Ignore libCrun as
12595    # -library=stlport4 depends on it.
12596    case " $CXX $CXXFLAGS " in
12597    *" -library=stlport4 "*)
12598      solaris_use_stlport4=yes
12599      ;;
12600    esac
12601
12602    # Adding this requires a known-good setup of shared libraries for
12603    # Sun compiler versions before 5.6, else PIC objects from an old
12604    # archive will be linked into the output, leading to subtle bugs.
12605    if test "$solaris_use_stlport4" != yes; then
12606      postdeps_CXX='-library=Cstd -library=Crun'
12607    fi
12608    ;;
12609  esac
12610  ;;
12611esac
12612
12613case " $postdeps_CXX " in
12614*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12615esac
12616
12617lt_prog_compiler_wl_CXX=
12618lt_prog_compiler_pic_CXX=
12619lt_prog_compiler_static_CXX=
12620
12621{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12622$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12623
12624  # C++ specific cases for pic, static, wl, etc.
12625  if test "$GXX" = yes; then
12626    lt_prog_compiler_wl_CXX='-Wl,'
12627    lt_prog_compiler_static_CXX='-static'
12628
12629    case $host_os in
12630    aix*)
12631      # All AIX code is PIC.
12632      if test "$host_cpu" = ia64; then
12633	# AIX 5 now supports IA64 processor
12634	lt_prog_compiler_static_CXX='-Bstatic'
12635      fi
12636      ;;
12637    amigaos*)
12638      # FIXME: we need at least 68020 code to build shared libraries, but
12639      # adding the `-m68020' flag to GCC prevents building anything better,
12640      # like `-m68040'.
12641      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12642      ;;
12643    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12644      # PIC is the default for these OSes.
12645      ;;
12646    mingw* | cygwin* | os2* | pw32*)
12647      # This hack is so that the source file can tell whether it is being
12648      # built for inclusion in a dll (and should export symbols for example).
12649      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12650      # (--disable-auto-import) libraries
12651      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12652      ;;
12653    darwin* | rhapsody*)
12654      # PIC is the default on this platform
12655      # Common symbols not allowed in MH_DYLIB files
12656      lt_prog_compiler_pic_CXX='-fno-common'
12657      ;;
12658    *djgpp*)
12659      # DJGPP does not support shared libraries at all
12660      lt_prog_compiler_pic_CXX=
12661      ;;
12662    interix[3-9]*)
12663      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12664      # Instead, we relocate shared libraries at runtime.
12665      ;;
12666    sysv4*MP*)
12667      if test -d /usr/nec; then
12668	lt_prog_compiler_pic_CXX=-Kconform_pic
12669      fi
12670      ;;
12671    hpux*)
12672      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12673      # not for PA HP-UX.
12674      case $host_cpu in
12675      hppa*64*|ia64*)
12676	;;
12677      *)
12678	lt_prog_compiler_pic_CXX='-fPIC'
12679	;;
12680      esac
12681      ;;
12682    *)
12683      lt_prog_compiler_pic_CXX='-fPIC'
12684      ;;
12685    esac
12686  else
12687    case $host_os in
12688      aix[4-9]*)
12689	# All AIX code is PIC.
12690	if test "$host_cpu" = ia64; then
12691	  # AIX 5 now supports IA64 processor
12692	  lt_prog_compiler_static_CXX='-Bstatic'
12693	else
12694	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12695	fi
12696	;;
12697      chorus*)
12698	case $cc_basename in
12699	cxch68*)
12700	  # Green Hills C++ Compiler
12701	  # _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"
12702	  ;;
12703	esac
12704	;;
12705       darwin*)
12706         # PIC is the default on this platform
12707         # Common symbols not allowed in MH_DYLIB files
12708         case $cc_basename in
12709           xlc*)
12710           lt_prog_compiler_pic_CXX='-qnocommon'
12711           lt_prog_compiler_wl_CXX='-Wl,'
12712           ;;
12713         esac
12714       ;;
12715      dgux*)
12716	case $cc_basename in
12717	  ec++*)
12718	    lt_prog_compiler_pic_CXX='-KPIC'
12719	    ;;
12720	  ghcx*)
12721	    # Green Hills C++ Compiler
12722	    lt_prog_compiler_pic_CXX='-pic'
12723	    ;;
12724	  *)
12725	    ;;
12726	esac
12727	;;
12728      freebsd* | dragonfly*)
12729	# FreeBSD uses GNU C++
12730	;;
12731      hpux9* | hpux10* | hpux11*)
12732	case $cc_basename in
12733	  CC*)
12734	    lt_prog_compiler_wl_CXX='-Wl,'
12735	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12736	    if test "$host_cpu" != ia64; then
12737	      lt_prog_compiler_pic_CXX='+Z'
12738	    fi
12739	    ;;
12740	  aCC*)
12741	    lt_prog_compiler_wl_CXX='-Wl,'
12742	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12743	    case $host_cpu in
12744	    hppa*64*|ia64*)
12745	      # +Z the default
12746	      ;;
12747	    *)
12748	      lt_prog_compiler_pic_CXX='+Z'
12749	      ;;
12750	    esac
12751	    ;;
12752	  *)
12753	    ;;
12754	esac
12755	;;
12756      interix*)
12757	# This is c89, which is MS Visual C++ (no shared libs)
12758	# Anyone wants to do a port?
12759	;;
12760      irix5* | irix6* | nonstopux*)
12761	case $cc_basename in
12762	  CC*)
12763	    lt_prog_compiler_wl_CXX='-Wl,'
12764	    lt_prog_compiler_static_CXX='-non_shared'
12765	    # CC pic flag -KPIC is the default.
12766	    ;;
12767	  *)
12768	    ;;
12769	esac
12770	;;
12771      linux* | k*bsd*-gnu)
12772	case $cc_basename in
12773	  KCC*)
12774	    # KAI C++ Compiler
12775	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12776	    lt_prog_compiler_pic_CXX='-fPIC'
12777	    ;;
12778	  icpc* | ecpc*)
12779	    # Intel C++
12780	    lt_prog_compiler_wl_CXX='-Wl,'
12781	    lt_prog_compiler_pic_CXX='-KPIC'
12782	    lt_prog_compiler_static_CXX='-static'
12783	    ;;
12784	  pgCC* | pgcpp*)
12785	    # Portland Group C++ compiler.
12786	    lt_prog_compiler_wl_CXX='-Wl,'
12787	    lt_prog_compiler_pic_CXX='-fpic'
12788	    lt_prog_compiler_static_CXX='-Bstatic'
12789	    ;;
12790	  cxx*)
12791	    # Compaq C++
12792	    # Make sure the PIC flag is empty.  It appears that all Alpha
12793	    # Linux and Compaq Tru64 Unix objects are PIC.
12794	    lt_prog_compiler_pic_CXX=
12795	    lt_prog_compiler_static_CXX='-non_shared'
12796	    ;;
12797	  *)
12798	    case `$CC -V 2>&1 | sed 5q` in
12799	    *Sun\ C*)
12800	      # Sun C++ 5.9
12801	      lt_prog_compiler_pic_CXX='-KPIC'
12802	      lt_prog_compiler_static_CXX='-Bstatic'
12803	      lt_prog_compiler_wl_CXX='-Qoption ld '
12804	      ;;
12805	    esac
12806	    ;;
12807	esac
12808	;;
12809      lynxos*)
12810	;;
12811      m88k*)
12812	;;
12813      mvs*)
12814	case $cc_basename in
12815	  cxx*)
12816	    lt_prog_compiler_pic_CXX='-W c,exportall'
12817	    ;;
12818	  *)
12819	    ;;
12820	esac
12821	;;
12822      netbsd*)
12823	;;
12824      osf3* | osf4* | osf5*)
12825	case $cc_basename in
12826	  KCC*)
12827	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12828	    ;;
12829	  RCC*)
12830	    # Rational C++ 2.4.1
12831	    lt_prog_compiler_pic_CXX='-pic'
12832	    ;;
12833	  cxx*)
12834	    # Digital/Compaq C++
12835	    lt_prog_compiler_wl_CXX='-Wl,'
12836	    # Make sure the PIC flag is empty.  It appears that all Alpha
12837	    # Linux and Compaq Tru64 Unix objects are PIC.
12838	    lt_prog_compiler_pic_CXX=
12839	    lt_prog_compiler_static_CXX='-non_shared'
12840	    ;;
12841	  *)
12842	    ;;
12843	esac
12844	;;
12845      psos*)
12846	;;
12847      solaris*)
12848	case $cc_basename in
12849	  CC*)
12850	    # Sun C++ 4.2, 5.x and Centerline C++
12851	    lt_prog_compiler_pic_CXX='-KPIC'
12852	    lt_prog_compiler_static_CXX='-Bstatic'
12853	    lt_prog_compiler_wl_CXX='-Qoption ld '
12854	    ;;
12855	  gcx*)
12856	    # Green Hills C++ Compiler
12857	    lt_prog_compiler_pic_CXX='-PIC'
12858	    ;;
12859	  *)
12860	    ;;
12861	esac
12862	;;
12863      sunos4*)
12864	case $cc_basename in
12865	  CC*)
12866	    # Sun C++ 4.x
12867	    lt_prog_compiler_pic_CXX='-pic'
12868	    lt_prog_compiler_static_CXX='-Bstatic'
12869	    ;;
12870	  lcc*)
12871	    # Lucid
12872	    lt_prog_compiler_pic_CXX='-pic'
12873	    ;;
12874	  *)
12875	    ;;
12876	esac
12877	;;
12878      tandem*)
12879	case $cc_basename in
12880	  NCC*)
12881	    # NonStop-UX NCC 3.20
12882	    lt_prog_compiler_pic_CXX='-KPIC'
12883	    ;;
12884	  *)
12885	    ;;
12886	esac
12887	;;
12888      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12889	case $cc_basename in
12890	  CC*)
12891	    lt_prog_compiler_wl_CXX='-Wl,'
12892	    lt_prog_compiler_pic_CXX='-KPIC'
12893	    lt_prog_compiler_static_CXX='-Bstatic'
12894	    ;;
12895	esac
12896	;;
12897      vxworks*)
12898	;;
12899      *)
12900	lt_prog_compiler_can_build_shared_CXX=no
12901	;;
12902    esac
12903  fi
12904
12905{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12906$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12907
12908#
12909# Check to make sure the PIC flag actually works.
12910#
12911if test -n "$lt_prog_compiler_pic_CXX"; then
12912
12913{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12914$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12915if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12916  $as_echo_n "(cached) " >&6
12917else
12918  lt_cv_prog_compiler_pic_works_CXX=no
12919  ac_outfile=conftest.$ac_objext
12920   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12921   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12922   # Insert the option either (1) after the last *FLAGS variable, or
12923   # (2) before a word containing "conftest.", or (3) at the end.
12924   # Note that $ac_compile itself does not contain backslashes and begins
12925   # with a dollar sign (not a hyphen), so the echo should work correctly.
12926   # The option is referenced via a variable to avoid confusing sed.
12927   lt_compile=`echo "$ac_compile" | $SED \
12928   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12929   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12930   -e 's:$: $lt_compiler_flag:'`
12931   (eval echo "\"\$as_me:12931: $lt_compile\"" >&5)
12932   (eval "$lt_compile" 2>conftest.err)
12933   ac_status=$?
12934   cat conftest.err >&5
12935   echo "$as_me:12935: \$? = $ac_status" >&5
12936   if (exit $ac_status) && test -s "$ac_outfile"; then
12937     # The compiler can only warn and ignore the option if not recognized
12938     # So say no if there are warnings other than the usual output.
12939     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12940     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12941     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12942       lt_cv_prog_compiler_pic_works_CXX=yes
12943     fi
12944   fi
12945   $rm conftest*
12946
12947fi
12948{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12949$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12950
12951if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12952    case $lt_prog_compiler_pic_CXX in
12953     "" | " "*) ;;
12954     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12955     esac
12956else
12957    lt_prog_compiler_pic_CXX=
12958     lt_prog_compiler_can_build_shared_CXX=no
12959fi
12960
12961fi
12962case $host_os in
12963  # For platforms which do not support PIC, -DPIC is meaningless:
12964  *djgpp*)
12965    lt_prog_compiler_pic_CXX=
12966    ;;
12967  *)
12968    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12969    ;;
12970esac
12971
12972#
12973# Check to make sure the static flag actually works.
12974#
12975wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12976{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12977$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12978if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12979  $as_echo_n "(cached) " >&6
12980else
12981  lt_cv_prog_compiler_static_works_CXX=no
12982   save_LDFLAGS="$LDFLAGS"
12983   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12984   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12985   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12986     # The linker can only warn and ignore the option if not recognized
12987     # So say no if there are warnings
12988     if test -s conftest.err; then
12989       # Append any errors to the config.log.
12990       cat conftest.err 1>&5
12991       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12992       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12993       if diff conftest.exp conftest.er2 >/dev/null; then
12994         lt_cv_prog_compiler_static_works_CXX=yes
12995       fi
12996     else
12997       lt_cv_prog_compiler_static_works_CXX=yes
12998     fi
12999   fi
13000   $rm -r conftest*
13001   LDFLAGS="$save_LDFLAGS"
13002
13003fi
13004{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13005$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13006
13007if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13008    :
13009else
13010    lt_prog_compiler_static_CXX=
13011fi
13012
13013
13014{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13015$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13016if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13017  $as_echo_n "(cached) " >&6
13018else
13019  lt_cv_prog_compiler_c_o_CXX=no
13020   $rm -r conftest 2>/dev/null
13021   mkdir conftest
13022   cd conftest
13023   mkdir out
13024   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13025
13026   lt_compiler_flag="-o out/conftest2.$ac_objext"
13027   # Insert the option either (1) after the last *FLAGS variable, or
13028   # (2) before a word containing "conftest.", or (3) at the end.
13029   # Note that $ac_compile itself does not contain backslashes and begins
13030   # with a dollar sign (not a hyphen), so the echo should work correctly.
13031   lt_compile=`echo "$ac_compile" | $SED \
13032   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13033   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13034   -e 's:$: $lt_compiler_flag:'`
13035   (eval echo "\"\$as_me:13035: $lt_compile\"" >&5)
13036   (eval "$lt_compile" 2>out/conftest.err)
13037   ac_status=$?
13038   cat out/conftest.err >&5
13039   echo "$as_me:13039: \$? = $ac_status" >&5
13040   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13041   then
13042     # The compiler can only warn and ignore the option if not recognized
13043     # So say no if there are warnings
13044     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13045     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13046     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13047       lt_cv_prog_compiler_c_o_CXX=yes
13048     fi
13049   fi
13050   chmod u+w . 2>&5
13051   $rm conftest*
13052   # SGI C++ compiler will create directory out/ii_files/ for
13053   # template instantiation
13054   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13055   $rm out/* && rmdir out
13056   cd ..
13057   rmdir conftest
13058   $rm conftest*
13059
13060fi
13061{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13062$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13063
13064
13065hard_links="nottested"
13066if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13067  # do not overwrite the value of need_locks provided by the user
13068  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13069$as_echo_n "checking if we can lock with hard links... " >&6; }
13070  hard_links=yes
13071  $rm conftest*
13072  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13073  touch conftest.a
13074  ln conftest.a conftest.b 2>&5 || hard_links=no
13075  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13076  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13077$as_echo "$hard_links" >&6; }
13078  if test "$hard_links" = no; then
13079    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13080$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13081    need_locks=warn
13082  fi
13083else
13084  need_locks=no
13085fi
13086
13087{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13088$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13089
13090  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13091  case $host_os in
13092  aix[4-9]*)
13093    # If we're using GNU nm, then we don't want the "-C" option.
13094    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13095    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13096      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'
13097    else
13098      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'
13099    fi
13100    ;;
13101  pw32*)
13102    export_symbols_cmds_CXX="$ltdll_cmds"
13103  ;;
13104  cygwin* | mingw*)
13105    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'
13106  ;;
13107  linux* | k*bsd*-gnu)
13108    link_all_deplibs_CXX=no
13109  ;;
13110  *)
13111    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13112  ;;
13113  esac
13114  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13115
13116{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13117$as_echo "$ld_shlibs_CXX" >&6; }
13118test "$ld_shlibs_CXX" = no && can_build_shared=no
13119
13120#
13121# Do we need to explicitly link libc?
13122#
13123case "x$archive_cmds_need_lc_CXX" in
13124x|xyes)
13125  # Assume -lc should be added
13126  archive_cmds_need_lc_CXX=yes
13127
13128  if test "$enable_shared" = yes && test "$GCC" = yes; then
13129    case $archive_cmds_CXX in
13130    *'~'*)
13131      # FIXME: we may have to deal with multi-command sequences.
13132      ;;
13133    '$CC '*)
13134      # Test whether the compiler implicitly links with -lc since on some
13135      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13136      # to ld, don't add -lc before -lgcc.
13137      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13138$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13139      $rm conftest*
13140      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13141
13142      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13143  (eval $ac_compile) 2>&5
13144  ac_status=$?
13145  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146  (exit $ac_status); } 2>conftest.err; then
13147        soname=conftest
13148        lib=conftest
13149        libobjs=conftest.$ac_objext
13150        deplibs=
13151        wl=$lt_prog_compiler_wl_CXX
13152	pic_flag=$lt_prog_compiler_pic_CXX
13153        compiler_flags=-v
13154        linker_flags=-v
13155        verstring=
13156        output_objdir=.
13157        libname=conftest
13158        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13159        allow_undefined_flag_CXX=
13160        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13161  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13162  ac_status=$?
13163  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164  (exit $ac_status); }
13165        then
13166	  archive_cmds_need_lc_CXX=no
13167        else
13168	  archive_cmds_need_lc_CXX=yes
13169        fi
13170        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13171      else
13172        cat conftest.err 1>&5
13173      fi
13174      $rm conftest*
13175      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13176$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13177      ;;
13178    esac
13179  fi
13180  ;;
13181esac
13182
13183{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13184$as_echo_n "checking dynamic linker characteristics... " >&6; }
13185library_names_spec=
13186libname_spec='lib$name'
13187soname_spec=
13188shrext_cmds=".so"
13189postinstall_cmds=
13190postuninstall_cmds=
13191finish_cmds=
13192finish_eval=
13193shlibpath_var=
13194shlibpath_overrides_runpath=unknown
13195version_type=none
13196dynamic_linker="$host_os ld.so"
13197sys_lib_dlsearch_path_spec="/lib /usr/lib"
13198
13199need_lib_prefix=unknown
13200hardcode_into_libs=no
13201
13202# when you set need_version to no, make sure it does not cause -set_version
13203# flags to be left without arguments
13204need_version=unknown
13205
13206case $host_os in
13207aix3*)
13208  version_type=linux
13209  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13210  shlibpath_var=LIBPATH
13211
13212  # AIX 3 has no versioning support, so we append a major version to the name.
13213  soname_spec='${libname}${release}${shared_ext}$major'
13214  ;;
13215
13216aix[4-9]*)
13217  version_type=linux
13218  need_lib_prefix=no
13219  need_version=no
13220  hardcode_into_libs=yes
13221  if test "$host_cpu" = ia64; then
13222    # AIX 5 supports IA64
13223    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13224    shlibpath_var=LD_LIBRARY_PATH
13225  else
13226    # With GCC up to 2.95.x, collect2 would create an import file
13227    # for dependence libraries.  The import file would start with
13228    # the line `#! .'.  This would cause the generated library to
13229    # depend on `.', always an invalid library.  This was fixed in
13230    # development snapshots of GCC prior to 3.0.
13231    case $host_os in
13232      aix4 | aix4.[01] | aix4.[01].*)
13233      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13234	   echo ' yes '
13235	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13236	:
13237      else
13238	can_build_shared=no
13239      fi
13240      ;;
13241    esac
13242    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13243    # soname into executable. Probably we can add versioning support to
13244    # collect2, so additional links can be useful in future.
13245    if test "$aix_use_runtimelinking" = yes; then
13246      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13247      # instead of lib<name>.a to let people know that these are not
13248      # typical AIX shared libraries.
13249      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13250    else
13251      # We preserve .a as extension for shared libraries through AIX4.2
13252      # and later when we are not doing run time linking.
13253      library_names_spec='${libname}${release}.a $libname.a'
13254      soname_spec='${libname}${release}${shared_ext}$major'
13255    fi
13256    shlibpath_var=LIBPATH
13257  fi
13258  ;;
13259
13260amigaos*)
13261  library_names_spec='$libname.ixlibrary $libname.a'
13262  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13263  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'
13264  ;;
13265
13266beos*)
13267  library_names_spec='${libname}${shared_ext}'
13268  dynamic_linker="$host_os ld.so"
13269  shlibpath_var=LIBRARY_PATH
13270  ;;
13271
13272bsdi[45]*)
13273  version_type=linux
13274  need_version=no
13275  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13276  soname_spec='${libname}${release}${shared_ext}$major'
13277  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13278  shlibpath_var=LD_LIBRARY_PATH
13279  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13280  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13281  # the default ld.so.conf also contains /usr/contrib/lib and
13282  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13283  # libtool to hard-code these into programs
13284  ;;
13285
13286cygwin* | mingw* | pw32*)
13287  version_type=windows
13288  shrext_cmds=".dll"
13289  need_version=no
13290  need_lib_prefix=no
13291
13292  case $GCC,$host_os in
13293  yes,cygwin* | yes,mingw* | yes,pw32*)
13294    library_names_spec='$libname.dll.a'
13295    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13296    postinstall_cmds='base_file=`basename \${file}`~
13297      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13298      dldir=$destdir/`dirname \$dlpath`~
13299      test -d \$dldir || mkdir -p \$dldir~
13300      $install_prog $dir/$dlname \$dldir/$dlname~
13301      chmod a+x \$dldir/$dlname'
13302    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13303      dlpath=$dir/\$dldll~
13304       $rm \$dlpath'
13305    shlibpath_overrides_runpath=yes
13306
13307    case $host_os in
13308    cygwin*)
13309      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13310      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13311      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13312      ;;
13313    mingw*)
13314      # MinGW DLLs use traditional 'lib' prefix
13315      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13316      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13317      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13318        # It is most probably a Windows format PATH printed by
13319        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13320        # path with ; separators, and with drive letters. We can handle the
13321        # drive letters (cygwin fileutils understands them), so leave them,
13322        # especially as we might pass files found there to a mingw objdump,
13323        # which wouldn't understand a cygwinified path. Ahh.
13324        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13325      else
13326        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13327      fi
13328      ;;
13329    pw32*)
13330      # pw32 DLLs use 'pw' prefix rather than 'lib'
13331      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13332      ;;
13333    esac
13334    ;;
13335
13336  *)
13337    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13338    ;;
13339  esac
13340  dynamic_linker='Win32 ld.exe'
13341  # FIXME: first we should search . and the directory the executable is in
13342  shlibpath_var=PATH
13343  ;;
13344
13345darwin* | rhapsody*)
13346  dynamic_linker="$host_os dyld"
13347  version_type=darwin
13348  need_lib_prefix=no
13349  need_version=no
13350  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13351  soname_spec='${libname}${release}${major}$shared_ext'
13352  shlibpath_overrides_runpath=yes
13353  shlibpath_var=DYLD_LIBRARY_PATH
13354  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13355
13356  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13357  ;;
13358
13359dgux*)
13360  version_type=linux
13361  need_lib_prefix=no
13362  need_version=no
13363  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13364  soname_spec='${libname}${release}${shared_ext}$major'
13365  shlibpath_var=LD_LIBRARY_PATH
13366  ;;
13367
13368freebsd1*)
13369  dynamic_linker=no
13370  ;;
13371
13372freebsd* | dragonfly*)
13373  # DragonFly does not have aout.  When/if they implement a new
13374  # versioning mechanism, adjust this.
13375  if test -x /usr/bin/objformat; then
13376    objformat=`/usr/bin/objformat`
13377  else
13378    case $host_os in
13379    freebsd[123]*) objformat=aout ;;
13380    *) objformat=elf ;;
13381    esac
13382  fi
13383  version_type=freebsd-$objformat
13384  case $version_type in
13385    freebsd-elf*)
13386      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13387      need_version=no
13388      need_lib_prefix=no
13389      ;;
13390    freebsd-*)
13391      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13392      need_version=yes
13393      ;;
13394  esac
13395  shlibpath_var=LD_LIBRARY_PATH
13396  case $host_os in
13397  freebsd2*)
13398    shlibpath_overrides_runpath=yes
13399    ;;
13400  freebsd3.[01]* | freebsdelf3.[01]*)
13401    shlibpath_overrides_runpath=yes
13402    hardcode_into_libs=yes
13403    ;;
13404  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13405  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13406    shlibpath_overrides_runpath=no
13407    hardcode_into_libs=yes
13408    ;;
13409  *) # from 4.6 on, and DragonFly
13410    shlibpath_overrides_runpath=yes
13411    hardcode_into_libs=yes
13412    ;;
13413  esac
13414  ;;
13415
13416gnu*)
13417  version_type=linux
13418  need_lib_prefix=no
13419  need_version=no
13420  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13421  soname_spec='${libname}${release}${shared_ext}$major'
13422  shlibpath_var=LD_LIBRARY_PATH
13423  hardcode_into_libs=yes
13424  ;;
13425
13426hpux9* | hpux10* | hpux11*)
13427  # Give a soname corresponding to the major version so that dld.sl refuses to
13428  # link against other versions.
13429  version_type=sunos
13430  need_lib_prefix=no
13431  need_version=no
13432  case $host_cpu in
13433  ia64*)
13434    shrext_cmds='.so'
13435    hardcode_into_libs=yes
13436    dynamic_linker="$host_os dld.so"
13437    shlibpath_var=LD_LIBRARY_PATH
13438    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13439    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13440    soname_spec='${libname}${release}${shared_ext}$major'
13441    if test "X$HPUX_IA64_MODE" = X32; then
13442      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13443    else
13444      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13445    fi
13446    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13447    ;;
13448   hppa*64*)
13449     shrext_cmds='.sl'
13450     hardcode_into_libs=yes
13451     dynamic_linker="$host_os dld.sl"
13452     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13453     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13454     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13455     soname_spec='${libname}${release}${shared_ext}$major'
13456     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13457     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13458     ;;
13459   *)
13460    shrext_cmds='.sl'
13461    dynamic_linker="$host_os dld.sl"
13462    shlibpath_var=SHLIB_PATH
13463    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13464    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13465    soname_spec='${libname}${release}${shared_ext}$major'
13466    ;;
13467  esac
13468  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13469  postinstall_cmds='chmod 555 $lib'
13470  ;;
13471
13472interix[3-9]*)
13473  version_type=linux
13474  need_lib_prefix=no
13475  need_version=no
13476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13477  soname_spec='${libname}${release}${shared_ext}$major'
13478  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13479  shlibpath_var=LD_LIBRARY_PATH
13480  shlibpath_overrides_runpath=no
13481  hardcode_into_libs=yes
13482  ;;
13483
13484irix5* | irix6* | nonstopux*)
13485  case $host_os in
13486    nonstopux*) version_type=nonstopux ;;
13487    *)
13488	if test "$lt_cv_prog_gnu_ld" = yes; then
13489		version_type=linux
13490	else
13491		version_type=irix
13492	fi ;;
13493  esac
13494  need_lib_prefix=no
13495  need_version=no
13496  soname_spec='${libname}${release}${shared_ext}$major'
13497  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13498  case $host_os in
13499  irix5* | nonstopux*)
13500    libsuff= shlibsuff=
13501    ;;
13502  *)
13503    case $LD in # libtool.m4 will add one of these switches to LD
13504    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13505      libsuff= shlibsuff= libmagic=32-bit;;
13506    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13507      libsuff=32 shlibsuff=N32 libmagic=N32;;
13508    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13509      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13510    *) libsuff= shlibsuff= libmagic=never-match;;
13511    esac
13512    ;;
13513  esac
13514  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13515  shlibpath_overrides_runpath=no
13516  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13517  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13518  hardcode_into_libs=yes
13519  ;;
13520
13521# No shared lib support for Linux oldld, aout, or coff.
13522linux*oldld* | linux*aout* | linux*coff*)
13523  dynamic_linker=no
13524  ;;
13525
13526# This must be Linux ELF.
13527linux* | k*bsd*-gnu)
13528  version_type=linux
13529  need_lib_prefix=no
13530  need_version=no
13531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13532  soname_spec='${libname}${release}${shared_ext}$major'
13533  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13534  shlibpath_var=LD_LIBRARY_PATH
13535  shlibpath_overrides_runpath=no
13536  # This implies no fast_install, which is unacceptable.
13537  # Some rework will be needed to allow for fast_install
13538  # before this can be enabled.
13539  hardcode_into_libs=yes
13540
13541  # find out which ABI we are using
13542  libsuff=
13543  case "$host_cpu" in
13544  x86_64*|s390x*|powerpc64*)
13545    echo '#line 13545 "configure"' > conftest.$ac_ext
13546    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13547  (eval $ac_compile) 2>&5
13548  ac_status=$?
13549  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550  (exit $ac_status); }; then
13551      case `/usr/bin/file conftest.$ac_objext` in
13552      *64-bit*)
13553        libsuff=64
13554        ;;
13555      esac
13556    fi
13557    rm -rf conftest*
13558    ;;
13559  esac
13560
13561  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
13562
13563  # Append ld.so.conf contents to the search path
13564  if test -f /etc/ld.so.conf; then
13565    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' ' '`
13566    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13567  fi
13568
13569  # We used to test for /lib/ld.so.1 and disable shared libraries on
13570  # powerpc, because MkLinux only supported shared libraries with the
13571  # GNU dynamic linker.  Since this was broken with cross compilers,
13572  # most powerpc-linux boxes support dynamic linking these days and
13573  # people can always --disable-shared, the test was removed, and we
13574  # assume the GNU/Linux dynamic linker is in use.
13575  dynamic_linker='GNU/Linux ld.so'
13576  ;;
13577
13578netbsd*)
13579  version_type=sunos
13580  need_lib_prefix=no
13581  need_version=no
13582  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13583    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13584    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13585    dynamic_linker='NetBSD (a.out) ld.so'
13586  else
13587    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13588    soname_spec='${libname}${release}${shared_ext}$major'
13589    dynamic_linker='NetBSD ld.elf_so'
13590  fi
13591  shlibpath_var=LD_LIBRARY_PATH
13592  shlibpath_overrides_runpath=yes
13593  hardcode_into_libs=yes
13594  ;;
13595
13596newsos6)
13597  version_type=linux
13598  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13599  shlibpath_var=LD_LIBRARY_PATH
13600  shlibpath_overrides_runpath=yes
13601  ;;
13602
13603nto-qnx*)
13604  version_type=linux
13605  need_lib_prefix=no
13606  need_version=no
13607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13608  soname_spec='${libname}${release}${shared_ext}$major'
13609  shlibpath_var=LD_LIBRARY_PATH
13610  shlibpath_overrides_runpath=yes
13611  ;;
13612
13613openbsd*)
13614  version_type=sunos
13615  sys_lib_dlsearch_path_spec="/usr/lib"
13616  need_lib_prefix=no
13617  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13618  case $host_os in
13619    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13620    *)                         need_version=no  ;;
13621  esac
13622  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13623  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13624  shlibpath_var=LD_LIBRARY_PATH
13625  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13626    case $host_os in
13627      openbsd2.[89] | openbsd2.[89].*)
13628	shlibpath_overrides_runpath=no
13629	;;
13630      *)
13631	shlibpath_overrides_runpath=yes
13632	;;
13633      esac
13634  else
13635    shlibpath_overrides_runpath=yes
13636  fi
13637  ;;
13638
13639os2*)
13640  libname_spec='$name'
13641  shrext_cmds=".dll"
13642  need_lib_prefix=no
13643  library_names_spec='$libname${shared_ext} $libname.a'
13644  dynamic_linker='OS/2 ld.exe'
13645  shlibpath_var=LIBPATH
13646  ;;
13647
13648osf3* | osf4* | osf5*)
13649  version_type=osf
13650  need_lib_prefix=no
13651  need_version=no
13652  soname_spec='${libname}${release}${shared_ext}$major'
13653  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13654  shlibpath_var=LD_LIBRARY_PATH
13655  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13656  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13657  ;;
13658
13659rdos*)
13660  dynamic_linker=no
13661  ;;
13662
13663solaris*)
13664  version_type=linux
13665  need_lib_prefix=no
13666  need_version=no
13667  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13668  soname_spec='${libname}${release}${shared_ext}$major'
13669  shlibpath_var=LD_LIBRARY_PATH
13670  shlibpath_overrides_runpath=yes
13671  hardcode_into_libs=yes
13672  # ldd complains unless libraries are executable
13673  postinstall_cmds='chmod +x $lib'
13674  ;;
13675
13676sunos4*)
13677  version_type=sunos
13678  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13679  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13680  shlibpath_var=LD_LIBRARY_PATH
13681  shlibpath_overrides_runpath=yes
13682  if test "$with_gnu_ld" = yes; then
13683    need_lib_prefix=no
13684  fi
13685  need_version=yes
13686  ;;
13687
13688sysv4 | sysv4.3*)
13689  version_type=linux
13690  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13691  soname_spec='${libname}${release}${shared_ext}$major'
13692  shlibpath_var=LD_LIBRARY_PATH
13693  case $host_vendor in
13694    sni)
13695      shlibpath_overrides_runpath=no
13696      need_lib_prefix=no
13697      export_dynamic_flag_spec='${wl}-Blargedynsym'
13698      runpath_var=LD_RUN_PATH
13699      ;;
13700    siemens)
13701      need_lib_prefix=no
13702      ;;
13703    motorola)
13704      need_lib_prefix=no
13705      need_version=no
13706      shlibpath_overrides_runpath=no
13707      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13708      ;;
13709  esac
13710  ;;
13711
13712sysv4*MP*)
13713  if test -d /usr/nec ;then
13714    version_type=linux
13715    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13716    soname_spec='$libname${shared_ext}.$major'
13717    shlibpath_var=LD_LIBRARY_PATH
13718  fi
13719  ;;
13720
13721sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13722  version_type=freebsd-elf
13723  need_lib_prefix=no
13724  need_version=no
13725  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13726  soname_spec='${libname}${release}${shared_ext}$major'
13727  shlibpath_var=LD_LIBRARY_PATH
13728  hardcode_into_libs=yes
13729  if test "$with_gnu_ld" = yes; then
13730    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13731    shlibpath_overrides_runpath=no
13732  else
13733    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13734    shlibpath_overrides_runpath=yes
13735    case $host_os in
13736      sco3.2v5*)
13737        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13738	;;
13739    esac
13740  fi
13741  sys_lib_dlsearch_path_spec='/usr/lib'
13742  ;;
13743
13744uts4*)
13745  version_type=linux
13746  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13747  soname_spec='${libname}${release}${shared_ext}$major'
13748  shlibpath_var=LD_LIBRARY_PATH
13749  ;;
13750
13751*)
13752  dynamic_linker=no
13753  ;;
13754esac
13755{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13756$as_echo "$dynamic_linker" >&6; }
13757test "$dynamic_linker" = no && can_build_shared=no
13758
13759if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13760  $as_echo_n "(cached) " >&6
13761else
13762  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13763fi
13764
13765sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13766if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13767  $as_echo_n "(cached) " >&6
13768else
13769  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13770fi
13771
13772sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13773
13774variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13775if test "$GCC" = yes; then
13776  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13777fi
13778
13779{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13780$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13781hardcode_action_CXX=
13782if test -n "$hardcode_libdir_flag_spec_CXX" || \
13783   test -n "$runpath_var_CXX" || \
13784   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13785
13786  # We can hardcode non-existant directories.
13787  if test "$hardcode_direct_CXX" != no &&
13788     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13789     # have to relink, otherwise we might link with an installed library
13790     # when we should be linking with a yet-to-be-installed one
13791     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13792     test "$hardcode_minus_L_CXX" != no; then
13793    # Linking always hardcodes the temporary library directory.
13794    hardcode_action_CXX=relink
13795  else
13796    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13797    hardcode_action_CXX=immediate
13798  fi
13799else
13800  # We cannot hardcode anything, or else we can only hardcode existing
13801  # directories.
13802  hardcode_action_CXX=unsupported
13803fi
13804{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13805$as_echo "$hardcode_action_CXX" >&6; }
13806
13807if test "$hardcode_action_CXX" = relink; then
13808  # Fast installation is not supported
13809  enable_fast_install=no
13810elif test "$shlibpath_overrides_runpath" = yes ||
13811     test "$enable_shared" = no; then
13812  # Fast installation is not necessary
13813  enable_fast_install=needless
13814fi
13815
13816
13817# The else clause should only fire when bootstrapping the
13818# libtool distribution, otherwise you forgot to ship ltmain.sh
13819# with your package, and you will get complaints that there are
13820# no rules to generate ltmain.sh.
13821if test -f "$ltmain"; then
13822  # See if we are running on zsh, and set the options which allow our commands through
13823  # without removal of \ escapes.
13824  if test -n "${ZSH_VERSION+set}" ; then
13825    setopt NO_GLOB_SUBST
13826  fi
13827  # Now quote all the things that may contain metacharacters while being
13828  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13829  # variables and quote the copies for generation of the libtool script.
13830  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13831    SED SHELL STRIP \
13832    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13833    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13834    deplibs_check_method reload_flag reload_cmds need_locks \
13835    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13836    lt_cv_sys_global_symbol_to_c_name_address \
13837    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13838    old_postinstall_cmds old_postuninstall_cmds \
13839    compiler_CXX \
13840    CC_CXX \
13841    LD_CXX \
13842    lt_prog_compiler_wl_CXX \
13843    lt_prog_compiler_pic_CXX \
13844    lt_prog_compiler_static_CXX \
13845    lt_prog_compiler_no_builtin_flag_CXX \
13846    export_dynamic_flag_spec_CXX \
13847    thread_safe_flag_spec_CXX \
13848    whole_archive_flag_spec_CXX \
13849    enable_shared_with_static_runtimes_CXX \
13850    old_archive_cmds_CXX \
13851    old_archive_from_new_cmds_CXX \
13852    predep_objects_CXX \
13853    postdep_objects_CXX \
13854    predeps_CXX \
13855    postdeps_CXX \
13856    compiler_lib_search_path_CXX \
13857    compiler_lib_search_dirs_CXX \
13858    archive_cmds_CXX \
13859    archive_expsym_cmds_CXX \
13860    postinstall_cmds_CXX \
13861    postuninstall_cmds_CXX \
13862    old_archive_from_expsyms_cmds_CXX \
13863    allow_undefined_flag_CXX \
13864    no_undefined_flag_CXX \
13865    export_symbols_cmds_CXX \
13866    hardcode_libdir_flag_spec_CXX \
13867    hardcode_libdir_flag_spec_ld_CXX \
13868    hardcode_libdir_separator_CXX \
13869    hardcode_automatic_CXX \
13870    module_cmds_CXX \
13871    module_expsym_cmds_CXX \
13872    lt_cv_prog_compiler_c_o_CXX \
13873    fix_srcfile_path_CXX \
13874    exclude_expsyms_CXX \
13875    include_expsyms_CXX; do
13876
13877    case $var in
13878    old_archive_cmds_CXX | \
13879    old_archive_from_new_cmds_CXX | \
13880    archive_cmds_CXX | \
13881    archive_expsym_cmds_CXX | \
13882    module_cmds_CXX | \
13883    module_expsym_cmds_CXX | \
13884    old_archive_from_expsyms_cmds_CXX | \
13885    export_symbols_cmds_CXX | \
13886    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13887    postinstall_cmds | postuninstall_cmds | \
13888    old_postinstall_cmds | old_postuninstall_cmds | \
13889    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13890      # Double-quote double-evaled strings.
13891      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13892      ;;
13893    *)
13894      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13895      ;;
13896    esac
13897  done
13898
13899  case $lt_echo in
13900  *'\$0 --fallback-echo"')
13901    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13902    ;;
13903  esac
13904
13905cfgfile="$ofile"
13906
13907  cat <<__EOF__ >> "$cfgfile"
13908# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13909
13910# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13911
13912# Shell to use when invoking shell scripts.
13913SHELL=$lt_SHELL
13914
13915# Whether or not to build shared libraries.
13916build_libtool_libs=$enable_shared
13917
13918# Whether or not to build static libraries.
13919build_old_libs=$enable_static
13920
13921# Whether or not to add -lc for building shared libraries.
13922build_libtool_need_lc=$archive_cmds_need_lc_CXX
13923
13924# Whether or not to disallow shared libs when runtime libs are static
13925allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13926
13927# Whether or not to optimize for fast installation.
13928fast_install=$enable_fast_install
13929
13930# The host system.
13931host_alias=$host_alias
13932host=$host
13933host_os=$host_os
13934
13935# The build system.
13936build_alias=$build_alias
13937build=$build
13938build_os=$build_os
13939
13940# An echo program that does not interpret backslashes.
13941echo=$lt_echo
13942
13943# The archiver.
13944AR=$lt_AR
13945AR_FLAGS=$lt_AR_FLAGS
13946
13947# A C compiler.
13948LTCC=$lt_LTCC
13949
13950# LTCC compiler flags.
13951LTCFLAGS=$lt_LTCFLAGS
13952
13953# A language-specific compiler.
13954CC=$lt_compiler_CXX
13955
13956# Is the compiler the GNU C compiler?
13957with_gcc=$GCC_CXX
13958
13959# An ERE matcher.
13960EGREP=$lt_EGREP
13961
13962# The linker used to build libraries.
13963LD=$lt_LD_CXX
13964
13965# Whether we need hard or soft links.
13966LN_S=$lt_LN_S
13967
13968# A BSD-compatible nm program.
13969NM=$lt_NM
13970
13971# A symbol stripping program
13972STRIP=$lt_STRIP
13973
13974# Used to examine libraries when file_magic_cmd begins "file"
13975MAGIC_CMD=$MAGIC_CMD
13976
13977# Used on cygwin: DLL creation program.
13978DLLTOOL="$DLLTOOL"
13979
13980# Used on cygwin: object dumper.
13981OBJDUMP="$OBJDUMP"
13982
13983# Used on cygwin: assembler.
13984AS="$AS"
13985
13986# The name of the directory that contains temporary libtool files.
13987objdir=$objdir
13988
13989# How to create reloadable object files.
13990reload_flag=$lt_reload_flag
13991reload_cmds=$lt_reload_cmds
13992
13993# How to pass a linker flag through the compiler.
13994wl=$lt_lt_prog_compiler_wl_CXX
13995
13996# Object file suffix (normally "o").
13997objext="$ac_objext"
13998
13999# Old archive suffix (normally "a").
14000libext="$libext"
14001
14002# Shared library suffix (normally ".so").
14003shrext_cmds='$shrext_cmds'
14004
14005# Executable file suffix (normally "").
14006exeext="$exeext"
14007
14008# Additional compiler flags for building library objects.
14009pic_flag=$lt_lt_prog_compiler_pic_CXX
14010pic_mode=$pic_mode
14011
14012# What is the maximum length of a command?
14013max_cmd_len=$lt_cv_sys_max_cmd_len
14014
14015# Does compiler simultaneously support -c and -o options?
14016compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14017
14018# Must we lock files when doing compilation?
14019need_locks=$lt_need_locks
14020
14021# Do we need the lib prefix for modules?
14022need_lib_prefix=$need_lib_prefix
14023
14024# Do we need a version for libraries?
14025need_version=$need_version
14026
14027# Whether dlopen is supported.
14028dlopen_support=$enable_dlopen
14029
14030# Whether dlopen of programs is supported.
14031dlopen_self=$enable_dlopen_self
14032
14033# Whether dlopen of statically linked programs is supported.
14034dlopen_self_static=$enable_dlopen_self_static
14035
14036# Compiler flag to prevent dynamic linking.
14037link_static_flag=$lt_lt_prog_compiler_static_CXX
14038
14039# Compiler flag to turn off builtin functions.
14040no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14041
14042# Compiler flag to allow reflexive dlopens.
14043export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14044
14045# Compiler flag to generate shared objects directly from archives.
14046whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14047
14048# Compiler flag to generate thread-safe objects.
14049thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14050
14051# Library versioning type.
14052version_type=$version_type
14053
14054# Format of library name prefix.
14055libname_spec=$lt_libname_spec
14056
14057# List of archive names.  First name is the real one, the rest are links.
14058# The last name is the one that the linker finds with -lNAME.
14059library_names_spec=$lt_library_names_spec
14060
14061# The coded name of the library, if different from the real name.
14062soname_spec=$lt_soname_spec
14063
14064# Commands used to build and install an old-style archive.
14065RANLIB=$lt_RANLIB
14066old_archive_cmds=$lt_old_archive_cmds_CXX
14067old_postinstall_cmds=$lt_old_postinstall_cmds
14068old_postuninstall_cmds=$lt_old_postuninstall_cmds
14069
14070# Create an old-style archive from a shared archive.
14071old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14072
14073# Create a temporary old-style archive to link instead of a shared archive.
14074old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14075
14076# Commands used to build and install a shared archive.
14077archive_cmds=$lt_archive_cmds_CXX
14078archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14079postinstall_cmds=$lt_postinstall_cmds
14080postuninstall_cmds=$lt_postuninstall_cmds
14081
14082# Commands used to build a loadable module (assumed same as above if empty)
14083module_cmds=$lt_module_cmds_CXX
14084module_expsym_cmds=$lt_module_expsym_cmds_CXX
14085
14086# Commands to strip libraries.
14087old_striplib=$lt_old_striplib
14088striplib=$lt_striplib
14089
14090# Dependencies to place before the objects being linked to create a
14091# shared library.
14092predep_objects=$lt_predep_objects_CXX
14093
14094# Dependencies to place after the objects being linked to create a
14095# shared library.
14096postdep_objects=$lt_postdep_objects_CXX
14097
14098# Dependencies to place before the objects being linked to create a
14099# shared library.
14100predeps=$lt_predeps_CXX
14101
14102# Dependencies to place after the objects being linked to create a
14103# shared library.
14104postdeps=$lt_postdeps_CXX
14105
14106# The directories searched by this compiler when creating a shared
14107# library
14108compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14109
14110# The library search path used internally by the compiler when linking
14111# a shared library.
14112compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14113
14114# Method to check whether dependent libraries are shared objects.
14115deplibs_check_method=$lt_deplibs_check_method
14116
14117# Command to use when deplibs_check_method == file_magic.
14118file_magic_cmd=$lt_file_magic_cmd
14119
14120# Flag that allows shared libraries with undefined symbols to be built.
14121allow_undefined_flag=$lt_allow_undefined_flag_CXX
14122
14123# Flag that forces no undefined symbols.
14124no_undefined_flag=$lt_no_undefined_flag_CXX
14125
14126# Commands used to finish a libtool library installation in a directory.
14127finish_cmds=$lt_finish_cmds
14128
14129# Same as above, but a single script fragment to be evaled but not shown.
14130finish_eval=$lt_finish_eval
14131
14132# Take the output of nm and produce a listing of raw symbols and C names.
14133global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14134
14135# Transform the output of nm in a proper C declaration
14136global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14137
14138# Transform the output of nm in a C name address pair
14139global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14140
14141# This is the shared library runtime path variable.
14142runpath_var=$runpath_var
14143
14144# This is the shared library path variable.
14145shlibpath_var=$shlibpath_var
14146
14147# Is shlibpath searched before the hard-coded library search path?
14148shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14149
14150# How to hardcode a shared library path into an executable.
14151hardcode_action=$hardcode_action_CXX
14152
14153# Whether we should hardcode library paths into libraries.
14154hardcode_into_libs=$hardcode_into_libs
14155
14156# Flag to hardcode \$libdir into a binary during linking.
14157# This must work even if \$libdir does not exist.
14158hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14159
14160# If ld is used when linking, flag to hardcode \$libdir into
14161# a binary during linking. This must work even if \$libdir does
14162# not exist.
14163hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14164
14165# Whether we need a single -rpath flag with a separated argument.
14166hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14167
14168# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14169# resulting binary.
14170hardcode_direct=$hardcode_direct_CXX
14171
14172# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14173# resulting binary.
14174hardcode_minus_L=$hardcode_minus_L_CXX
14175
14176# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14177# the resulting binary.
14178hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14179
14180# Set to yes if building a shared library automatically hardcodes DIR into the library
14181# and all subsequent libraries and executables linked against it.
14182hardcode_automatic=$hardcode_automatic_CXX
14183
14184# Variables whose values should be saved in libtool wrapper scripts and
14185# restored at relink time.
14186variables_saved_for_relink="$variables_saved_for_relink"
14187
14188# Whether libtool must link a program against all its dependency libraries.
14189link_all_deplibs=$link_all_deplibs_CXX
14190
14191# Compile-time system search path for libraries
14192sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14193
14194# Run-time system search path for libraries
14195sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14196
14197# Fix the shell variable \$srcfile for the compiler.
14198fix_srcfile_path=$lt_fix_srcfile_path
14199
14200# Set to yes if exported symbols are required.
14201always_export_symbols=$always_export_symbols_CXX
14202
14203# The commands to list exported symbols.
14204export_symbols_cmds=$lt_export_symbols_cmds_CXX
14205
14206# The commands to extract the exported symbol list from a shared archive.
14207extract_expsyms_cmds=$lt_extract_expsyms_cmds
14208
14209# Symbols that should not be listed in the preloaded symbols.
14210exclude_expsyms=$lt_exclude_expsyms_CXX
14211
14212# Symbols that must always be exported.
14213include_expsyms=$lt_include_expsyms_CXX
14214
14215# ### END LIBTOOL TAG CONFIG: $tagname
14216
14217__EOF__
14218
14219
14220else
14221  # If there is no Makefile yet, we rely on a make rule to execute
14222  # `config.status --recheck' to rerun these tests and create the
14223  # libtool script then.
14224  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14225  if test -f "$ltmain_in"; then
14226    test -f Makefile && make "$ltmain"
14227  fi
14228fi
14229
14230
14231ac_ext=c
14232ac_cpp='$CPP $CPPFLAGS'
14233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14235ac_compiler_gnu=$ac_cv_c_compiler_gnu
14236
14237CC=$lt_save_CC
14238LDCXX=$LD
14239LD=$lt_save_LD
14240GCC=$lt_save_GCC
14241with_gnu_ldcxx=$with_gnu_ld
14242with_gnu_ld=$lt_save_with_gnu_ld
14243lt_cv_path_LDCXX=$lt_cv_path_LD
14244lt_cv_path_LD=$lt_save_path_LD
14245lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14246lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14247
14248	else
14249	  tagname=""
14250	fi
14251	;;
14252
14253      F77)
14254	if test -n "$F77" && test "X$F77" != "Xno"; then
14255
14256ac_ext=f
14257ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14258ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14259ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14260
14261
14262archive_cmds_need_lc_F77=no
14263allow_undefined_flag_F77=
14264always_export_symbols_F77=no
14265archive_expsym_cmds_F77=
14266export_dynamic_flag_spec_F77=
14267hardcode_direct_F77=no
14268hardcode_libdir_flag_spec_F77=
14269hardcode_libdir_flag_spec_ld_F77=
14270hardcode_libdir_separator_F77=
14271hardcode_minus_L_F77=no
14272hardcode_automatic_F77=no
14273module_cmds_F77=
14274module_expsym_cmds_F77=
14275link_all_deplibs_F77=unknown
14276old_archive_cmds_F77=$old_archive_cmds
14277no_undefined_flag_F77=
14278whole_archive_flag_spec_F77=
14279enable_shared_with_static_runtimes_F77=no
14280
14281# Source file extension for f77 test sources.
14282ac_ext=f
14283
14284# Object file extension for compiled f77 test sources.
14285objext=o
14286objext_F77=$objext
14287
14288# Code to be used in simple compile tests
14289lt_simple_compile_test_code="\
14290      subroutine t
14291      return
14292      end
14293"
14294
14295# Code to be used in simple link tests
14296lt_simple_link_test_code="\
14297      program t
14298      end
14299"
14300
14301# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14302
14303# If no C compiler was specified, use CC.
14304LTCC=${LTCC-"$CC"}
14305
14306# If no C compiler flags were specified, use CFLAGS.
14307LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14308
14309# Allow CC to be a program name with arguments.
14310compiler=$CC
14311
14312
14313# save warnings/boilerplate of simple test code
14314ac_outfile=conftest.$ac_objext
14315echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14316eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14317_lt_compiler_boilerplate=`cat conftest.err`
14318$rm conftest*
14319
14320ac_outfile=conftest.$ac_objext
14321echo "$lt_simple_link_test_code" >conftest.$ac_ext
14322eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14323_lt_linker_boilerplate=`cat conftest.err`
14324$rm -r conftest*
14325
14326
14327# Allow CC to be a program name with arguments.
14328lt_save_CC="$CC"
14329CC=${F77-"f77"}
14330compiler=$CC
14331compiler_F77=$CC
14332for cc_temp in $compiler""; do
14333  case $cc_temp in
14334    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14335    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14336    \-*) ;;
14337    *) break;;
14338  esac
14339done
14340cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14341
14342
14343{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14344$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14345{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14346$as_echo "$can_build_shared" >&6; }
14347
14348{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14349$as_echo_n "checking whether to build shared libraries... " >&6; }
14350test "$can_build_shared" = "no" && enable_shared=no
14351
14352# On AIX, shared libraries and static libraries use the same namespace, and
14353# are all built from PIC.
14354case $host_os in
14355aix3*)
14356  test "$enable_shared" = yes && enable_static=no
14357  if test -n "$RANLIB"; then
14358    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14359    postinstall_cmds='$RANLIB $lib'
14360  fi
14361  ;;
14362aix[4-9]*)
14363  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14364    test "$enable_shared" = yes && enable_static=no
14365  fi
14366  ;;
14367esac
14368{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14369$as_echo "$enable_shared" >&6; }
14370
14371{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14372$as_echo_n "checking whether to build static libraries... " >&6; }
14373# Make sure either enable_shared or enable_static is yes.
14374test "$enable_shared" = yes || enable_static=yes
14375{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14376$as_echo "$enable_static" >&6; }
14377
14378GCC_F77="$G77"
14379LD_F77="$LD"
14380
14381lt_prog_compiler_wl_F77=
14382lt_prog_compiler_pic_F77=
14383lt_prog_compiler_static_F77=
14384
14385{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14386$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14387
14388  if test "$GCC" = yes; then
14389    lt_prog_compiler_wl_F77='-Wl,'
14390    lt_prog_compiler_static_F77='-static'
14391
14392    case $host_os in
14393      aix*)
14394      # All AIX code is PIC.
14395      if test "$host_cpu" = ia64; then
14396	# AIX 5 now supports IA64 processor
14397	lt_prog_compiler_static_F77='-Bstatic'
14398      fi
14399      ;;
14400
14401    amigaos*)
14402      # FIXME: we need at least 68020 code to build shared libraries, but
14403      # adding the `-m68020' flag to GCC prevents building anything better,
14404      # like `-m68040'.
14405      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14406      ;;
14407
14408    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14409      # PIC is the default for these OSes.
14410      ;;
14411
14412    mingw* | cygwin* | pw32* | os2*)
14413      # This hack is so that the source file can tell whether it is being
14414      # built for inclusion in a dll (and should export symbols for example).
14415      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14416      # (--disable-auto-import) libraries
14417      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14418      ;;
14419
14420    darwin* | rhapsody*)
14421      # PIC is the default on this platform
14422      # Common symbols not allowed in MH_DYLIB files
14423      lt_prog_compiler_pic_F77='-fno-common'
14424      ;;
14425
14426    interix[3-9]*)
14427      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14428      # Instead, we relocate shared libraries at runtime.
14429      ;;
14430
14431    msdosdjgpp*)
14432      # Just because we use GCC doesn't mean we suddenly get shared libraries
14433      # on systems that don't support them.
14434      lt_prog_compiler_can_build_shared_F77=no
14435      enable_shared=no
14436      ;;
14437
14438    sysv4*MP*)
14439      if test -d /usr/nec; then
14440	lt_prog_compiler_pic_F77=-Kconform_pic
14441      fi
14442      ;;
14443
14444    hpux*)
14445      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14446      # not for PA HP-UX.
14447      case $host_cpu in
14448      hppa*64*|ia64*)
14449	# +Z the default
14450	;;
14451      *)
14452	lt_prog_compiler_pic_F77='-fPIC'
14453	;;
14454      esac
14455      ;;
14456
14457    *)
14458      lt_prog_compiler_pic_F77='-fPIC'
14459      ;;
14460    esac
14461  else
14462    # PORTME Check for flag to pass linker flags through the system compiler.
14463    case $host_os in
14464    aix*)
14465      lt_prog_compiler_wl_F77='-Wl,'
14466      if test "$host_cpu" = ia64; then
14467	# AIX 5 now supports IA64 processor
14468	lt_prog_compiler_static_F77='-Bstatic'
14469      else
14470	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14471      fi
14472      ;;
14473      darwin*)
14474        # PIC is the default on this platform
14475        # Common symbols not allowed in MH_DYLIB files
14476       case $cc_basename in
14477         xlc*)
14478         lt_prog_compiler_pic_F77='-qnocommon'
14479         lt_prog_compiler_wl_F77='-Wl,'
14480         ;;
14481       esac
14482       ;;
14483
14484    mingw* | cygwin* | pw32* | os2*)
14485      # This hack is so that the source file can tell whether it is being
14486      # built for inclusion in a dll (and should export symbols for example).
14487      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14488      ;;
14489
14490    hpux9* | hpux10* | hpux11*)
14491      lt_prog_compiler_wl_F77='-Wl,'
14492      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14493      # not for PA HP-UX.
14494      case $host_cpu in
14495      hppa*64*|ia64*)
14496	# +Z the default
14497	;;
14498      *)
14499	lt_prog_compiler_pic_F77='+Z'
14500	;;
14501      esac
14502      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14503      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14504      ;;
14505
14506    irix5* | irix6* | nonstopux*)
14507      lt_prog_compiler_wl_F77='-Wl,'
14508      # PIC (with -KPIC) is the default.
14509      lt_prog_compiler_static_F77='-non_shared'
14510      ;;
14511
14512    newsos6)
14513      lt_prog_compiler_pic_F77='-KPIC'
14514      lt_prog_compiler_static_F77='-Bstatic'
14515      ;;
14516
14517    linux* | k*bsd*-gnu)
14518      case $cc_basename in
14519      icc* | ecc*)
14520	lt_prog_compiler_wl_F77='-Wl,'
14521	lt_prog_compiler_pic_F77='-KPIC'
14522	lt_prog_compiler_static_F77='-static'
14523        ;;
14524      pgcc* | pgf77* | pgf90* | pgf95*)
14525        # Portland Group compilers (*not* the Pentium gcc compiler,
14526	# which looks to be a dead project)
14527	lt_prog_compiler_wl_F77='-Wl,'
14528	lt_prog_compiler_pic_F77='-fpic'
14529	lt_prog_compiler_static_F77='-Bstatic'
14530        ;;
14531      ccc*)
14532        lt_prog_compiler_wl_F77='-Wl,'
14533        # All Alpha code is PIC.
14534        lt_prog_compiler_static_F77='-non_shared'
14535        ;;
14536      *)
14537        case `$CC -V 2>&1 | sed 5q` in
14538	*Sun\ C*)
14539	  # Sun C 5.9
14540	  lt_prog_compiler_pic_F77='-KPIC'
14541	  lt_prog_compiler_static_F77='-Bstatic'
14542	  lt_prog_compiler_wl_F77='-Wl,'
14543	  ;;
14544	*Sun\ F*)
14545	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14546	  lt_prog_compiler_pic_F77='-KPIC'
14547	  lt_prog_compiler_static_F77='-Bstatic'
14548	  lt_prog_compiler_wl_F77=''
14549	  ;;
14550	esac
14551	;;
14552      esac
14553      ;;
14554
14555    osf3* | osf4* | osf5*)
14556      lt_prog_compiler_wl_F77='-Wl,'
14557      # All OSF/1 code is PIC.
14558      lt_prog_compiler_static_F77='-non_shared'
14559      ;;
14560
14561    rdos*)
14562      lt_prog_compiler_static_F77='-non_shared'
14563      ;;
14564
14565    solaris*)
14566      lt_prog_compiler_pic_F77='-KPIC'
14567      lt_prog_compiler_static_F77='-Bstatic'
14568      case $cc_basename in
14569      f77* | f90* | f95*)
14570	lt_prog_compiler_wl_F77='-Qoption ld ';;
14571      *)
14572	lt_prog_compiler_wl_F77='-Wl,';;
14573      esac
14574      ;;
14575
14576    sunos4*)
14577      lt_prog_compiler_wl_F77='-Qoption ld '
14578      lt_prog_compiler_pic_F77='-PIC'
14579      lt_prog_compiler_static_F77='-Bstatic'
14580      ;;
14581
14582    sysv4 | sysv4.2uw2* | sysv4.3*)
14583      lt_prog_compiler_wl_F77='-Wl,'
14584      lt_prog_compiler_pic_F77='-KPIC'
14585      lt_prog_compiler_static_F77='-Bstatic'
14586      ;;
14587
14588    sysv4*MP*)
14589      if test -d /usr/nec ;then
14590	lt_prog_compiler_pic_F77='-Kconform_pic'
14591	lt_prog_compiler_static_F77='-Bstatic'
14592      fi
14593      ;;
14594
14595    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14596      lt_prog_compiler_wl_F77='-Wl,'
14597      lt_prog_compiler_pic_F77='-KPIC'
14598      lt_prog_compiler_static_F77='-Bstatic'
14599      ;;
14600
14601    unicos*)
14602      lt_prog_compiler_wl_F77='-Wl,'
14603      lt_prog_compiler_can_build_shared_F77=no
14604      ;;
14605
14606    uts4*)
14607      lt_prog_compiler_pic_F77='-pic'
14608      lt_prog_compiler_static_F77='-Bstatic'
14609      ;;
14610
14611    *)
14612      lt_prog_compiler_can_build_shared_F77=no
14613      ;;
14614    esac
14615  fi
14616
14617{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14618$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14619
14620#
14621# Check to make sure the PIC flag actually works.
14622#
14623if test -n "$lt_prog_compiler_pic_F77"; then
14624
14625{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14626$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14627if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14628  $as_echo_n "(cached) " >&6
14629else
14630  lt_cv_prog_compiler_pic_works_F77=no
14631  ac_outfile=conftest.$ac_objext
14632   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14633   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14634   # Insert the option either (1) after the last *FLAGS variable, or
14635   # (2) before a word containing "conftest.", or (3) at the end.
14636   # Note that $ac_compile itself does not contain backslashes and begins
14637   # with a dollar sign (not a hyphen), so the echo should work correctly.
14638   # The option is referenced via a variable to avoid confusing sed.
14639   lt_compile=`echo "$ac_compile" | $SED \
14640   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14641   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14642   -e 's:$: $lt_compiler_flag:'`
14643   (eval echo "\"\$as_me:14643: $lt_compile\"" >&5)
14644   (eval "$lt_compile" 2>conftest.err)
14645   ac_status=$?
14646   cat conftest.err >&5
14647   echo "$as_me:14647: \$? = $ac_status" >&5
14648   if (exit $ac_status) && test -s "$ac_outfile"; then
14649     # The compiler can only warn and ignore the option if not recognized
14650     # So say no if there are warnings other than the usual output.
14651     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14652     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14653     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14654       lt_cv_prog_compiler_pic_works_F77=yes
14655     fi
14656   fi
14657   $rm conftest*
14658
14659fi
14660{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14661$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14662
14663if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14664    case $lt_prog_compiler_pic_F77 in
14665     "" | " "*) ;;
14666     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14667     esac
14668else
14669    lt_prog_compiler_pic_F77=
14670     lt_prog_compiler_can_build_shared_F77=no
14671fi
14672
14673fi
14674case $host_os in
14675  # For platforms which do not support PIC, -DPIC is meaningless:
14676  *djgpp*)
14677    lt_prog_compiler_pic_F77=
14678    ;;
14679  *)
14680    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14681    ;;
14682esac
14683
14684#
14685# Check to make sure the static flag actually works.
14686#
14687wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14688{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14689$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14690if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14691  $as_echo_n "(cached) " >&6
14692else
14693  lt_cv_prog_compiler_static_works_F77=no
14694   save_LDFLAGS="$LDFLAGS"
14695   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14696   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14697   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14698     # The linker can only warn and ignore the option if not recognized
14699     # So say no if there are warnings
14700     if test -s conftest.err; then
14701       # Append any errors to the config.log.
14702       cat conftest.err 1>&5
14703       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14704       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14705       if diff conftest.exp conftest.er2 >/dev/null; then
14706         lt_cv_prog_compiler_static_works_F77=yes
14707       fi
14708     else
14709       lt_cv_prog_compiler_static_works_F77=yes
14710     fi
14711   fi
14712   $rm -r conftest*
14713   LDFLAGS="$save_LDFLAGS"
14714
14715fi
14716{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14717$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14718
14719if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14720    :
14721else
14722    lt_prog_compiler_static_F77=
14723fi
14724
14725
14726{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14727$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14728if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14729  $as_echo_n "(cached) " >&6
14730else
14731  lt_cv_prog_compiler_c_o_F77=no
14732   $rm -r conftest 2>/dev/null
14733   mkdir conftest
14734   cd conftest
14735   mkdir out
14736   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14737
14738   lt_compiler_flag="-o out/conftest2.$ac_objext"
14739   # Insert the option either (1) after the last *FLAGS variable, or
14740   # (2) before a word containing "conftest.", or (3) at the end.
14741   # Note that $ac_compile itself does not contain backslashes and begins
14742   # with a dollar sign (not a hyphen), so the echo should work correctly.
14743   lt_compile=`echo "$ac_compile" | $SED \
14744   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14745   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14746   -e 's:$: $lt_compiler_flag:'`
14747   (eval echo "\"\$as_me:14747: $lt_compile\"" >&5)
14748   (eval "$lt_compile" 2>out/conftest.err)
14749   ac_status=$?
14750   cat out/conftest.err >&5
14751   echo "$as_me:14751: \$? = $ac_status" >&5
14752   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14753   then
14754     # The compiler can only warn and ignore the option if not recognized
14755     # So say no if there are warnings
14756     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14757     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14758     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14759       lt_cv_prog_compiler_c_o_F77=yes
14760     fi
14761   fi
14762   chmod u+w . 2>&5
14763   $rm conftest*
14764   # SGI C++ compiler will create directory out/ii_files/ for
14765   # template instantiation
14766   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14767   $rm out/* && rmdir out
14768   cd ..
14769   rmdir conftest
14770   $rm conftest*
14771
14772fi
14773{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14774$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14775
14776
14777hard_links="nottested"
14778if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14779  # do not overwrite the value of need_locks provided by the user
14780  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14781$as_echo_n "checking if we can lock with hard links... " >&6; }
14782  hard_links=yes
14783  $rm conftest*
14784  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14785  touch conftest.a
14786  ln conftest.a conftest.b 2>&5 || hard_links=no
14787  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14788  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14789$as_echo "$hard_links" >&6; }
14790  if test "$hard_links" = no; then
14791    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14792$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14793    need_locks=warn
14794  fi
14795else
14796  need_locks=no
14797fi
14798
14799{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14800$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14801
14802  runpath_var=
14803  allow_undefined_flag_F77=
14804  enable_shared_with_static_runtimes_F77=no
14805  archive_cmds_F77=
14806  archive_expsym_cmds_F77=
14807  old_archive_From_new_cmds_F77=
14808  old_archive_from_expsyms_cmds_F77=
14809  export_dynamic_flag_spec_F77=
14810  whole_archive_flag_spec_F77=
14811  thread_safe_flag_spec_F77=
14812  hardcode_libdir_flag_spec_F77=
14813  hardcode_libdir_flag_spec_ld_F77=
14814  hardcode_libdir_separator_F77=
14815  hardcode_direct_F77=no
14816  hardcode_minus_L_F77=no
14817  hardcode_shlibpath_var_F77=unsupported
14818  link_all_deplibs_F77=unknown
14819  hardcode_automatic_F77=no
14820  module_cmds_F77=
14821  module_expsym_cmds_F77=
14822  always_export_symbols_F77=no
14823  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14824  # include_expsyms should be a list of space-separated symbols to be *always*
14825  # included in the symbol list
14826  include_expsyms_F77=
14827  # exclude_expsyms can be an extended regexp of symbols to exclude
14828  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14829  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14830  # as well as any symbol that contains `d'.
14831  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14832  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14833  # platforms (ab)use it in PIC code, but their linkers get confused if
14834  # the symbol is explicitly referenced.  Since portable code cannot
14835  # rely on this symbol name, it's probably fine to never include it in
14836  # preloaded symbol tables.
14837  # Exclude shared library initialization/finalization symbols.
14838  extract_expsyms_cmds=
14839  # Just being paranoid about ensuring that cc_basename is set.
14840  for cc_temp in $compiler""; do
14841  case $cc_temp in
14842    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14843    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14844    \-*) ;;
14845    *) break;;
14846  esac
14847done
14848cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14849
14850  case $host_os in
14851  cygwin* | mingw* | pw32*)
14852    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14853    # When not using gcc, we currently assume that we are using
14854    # Microsoft Visual C++.
14855    if test "$GCC" != yes; then
14856      with_gnu_ld=no
14857    fi
14858    ;;
14859  interix*)
14860    # we just hope/assume this is gcc and not c89 (= MSVC++)
14861    with_gnu_ld=yes
14862    ;;
14863  openbsd*)
14864    with_gnu_ld=no
14865    ;;
14866  esac
14867
14868  ld_shlibs_F77=yes
14869  if test "$with_gnu_ld" = yes; then
14870    # If archive_cmds runs LD, not CC, wlarc should be empty
14871    wlarc='${wl}'
14872
14873    # Set some defaults for GNU ld with shared library support. These
14874    # are reset later if shared libraries are not supported. Putting them
14875    # here allows them to be overridden if necessary.
14876    runpath_var=LD_RUN_PATH
14877    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14878    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14879    # ancient GNU ld didn't support --whole-archive et. al.
14880    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14881	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14882      else
14883  	whole_archive_flag_spec_F77=
14884    fi
14885    supports_anon_versioning=no
14886    case `$LD -v 2>/dev/null` in
14887      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14888      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14889      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14890      *\ 2.11.*) ;; # other 2.11 versions
14891      *) supports_anon_versioning=yes ;;
14892    esac
14893
14894    # See if GNU ld supports shared libraries.
14895    case $host_os in
14896    aix[3-9]*)
14897      # On AIX/PPC, the GNU linker is very broken
14898      if test "$host_cpu" != ia64; then
14899	ld_shlibs_F77=no
14900	cat <<EOF 1>&2
14901
14902*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14903*** to be unable to reliably create shared libraries on AIX.
14904*** Therefore, libtool is disabling shared libraries support.  If you
14905*** really care for shared libraries, you may want to modify your PATH
14906*** so that a non-GNU linker is found, and then restart.
14907
14908EOF
14909      fi
14910      ;;
14911
14912    amigaos*)
14913      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)'
14914      hardcode_libdir_flag_spec_F77='-L$libdir'
14915      hardcode_minus_L_F77=yes
14916
14917      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14918      # that the semantics of dynamic libraries on AmigaOS, at least up
14919      # to version 4, is to share data among multiple programs linked
14920      # with the same dynamic library.  Since this doesn't match the
14921      # behavior of shared libraries on other platforms, we can't use
14922      # them.
14923      ld_shlibs_F77=no
14924      ;;
14925
14926    beos*)
14927      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14928	allow_undefined_flag_F77=unsupported
14929	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14930	# support --undefined.  This deserves some investigation.  FIXME
14931	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14932      else
14933	ld_shlibs_F77=no
14934      fi
14935      ;;
14936
14937    cygwin* | mingw* | pw32*)
14938      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14939      # as there is no search path for DLLs.
14940      hardcode_libdir_flag_spec_F77='-L$libdir'
14941      allow_undefined_flag_F77=unsupported
14942      always_export_symbols_F77=no
14943      enable_shared_with_static_runtimes_F77=yes
14944      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14945
14946      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14947        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14948	# If the export-symbols file already is a .def file (1st line
14949	# is EXPORTS), use it as is; otherwise, prepend...
14950	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14951	  cp $export_symbols $output_objdir/$soname.def;
14952	else
14953	  echo EXPORTS > $output_objdir/$soname.def;
14954	  cat $export_symbols >> $output_objdir/$soname.def;
14955	fi~
14956	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14957      else
14958	ld_shlibs_F77=no
14959      fi
14960      ;;
14961
14962    interix[3-9]*)
14963      hardcode_direct_F77=no
14964      hardcode_shlibpath_var_F77=no
14965      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14966      export_dynamic_flag_spec_F77='${wl}-E'
14967      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14968      # Instead, shared libraries are loaded at an image base (0x10000000 by
14969      # default) and relocated if they conflict, which is a slow very memory
14970      # consuming and fragmenting process.  To avoid this, we pick a random,
14971      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14972      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14973      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'
14974      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'
14975      ;;
14976
14977    gnu* | linux* | k*bsd*-gnu)
14978      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14979	tmp_addflag=
14980	case $cc_basename,$host_cpu in
14981	pgcc*)				# Portland Group C compiler
14982	  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'
14983	  tmp_addflag=' $pic_flag'
14984	  ;;
14985	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14986	  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'
14987	  tmp_addflag=' $pic_flag -Mnomain' ;;
14988	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14989	  tmp_addflag=' -i_dynamic' ;;
14990	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14991	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14992	ifc* | ifort*)			# Intel Fortran compiler
14993	  tmp_addflag=' -nofor_main' ;;
14994	esac
14995	case `$CC -V 2>&1 | sed 5q` in
14996	*Sun\ C*)			# Sun C 5.9
14997	  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'
14998	  tmp_sharedflag='-G' ;;
14999	*Sun\ F*)			# Sun Fortran 8.3
15000	  tmp_sharedflag='-G' ;;
15001	*)
15002	  tmp_sharedflag='-shared' ;;
15003	esac
15004	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15005
15006	if test $supports_anon_versioning = yes; then
15007	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15008  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15009  $echo "local: *; };" >> $output_objdir/$libname.ver~
15010	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15011	fi
15012	link_all_deplibs_F77=no
15013      else
15014	ld_shlibs_F77=no
15015      fi
15016      ;;
15017
15018    netbsd*)
15019      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15020	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15021	wlarc=
15022      else
15023	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15024	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15025      fi
15026      ;;
15027
15028    solaris*)
15029      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15030	ld_shlibs_F77=no
15031	cat <<EOF 1>&2
15032
15033*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15034*** create shared libraries on Solaris systems.  Therefore, libtool
15035*** is disabling shared libraries support.  We urge you to upgrade GNU
15036*** binutils to release 2.9.1 or newer.  Another option is to modify
15037*** your PATH or compiler configuration so that the native linker is
15038*** used, and then restart.
15039
15040EOF
15041      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15042	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15043	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15044      else
15045	ld_shlibs_F77=no
15046      fi
15047      ;;
15048
15049    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15050      case `$LD -v 2>&1` in
15051        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15052	ld_shlibs_F77=no
15053	cat <<_LT_EOF 1>&2
15054
15055*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15056*** reliably create shared libraries on SCO systems.  Therefore, libtool
15057*** is disabling shared libraries support.  We urge you to upgrade GNU
15058*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15059*** your PATH or compiler configuration so that the native linker is
15060*** used, and then restart.
15061
15062_LT_EOF
15063	;;
15064	*)
15065	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15066	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15067	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15068	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15069	  else
15070	    ld_shlibs_F77=no
15071	  fi
15072	;;
15073      esac
15074      ;;
15075
15076    sunos4*)
15077      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15078      wlarc=
15079      hardcode_direct_F77=yes
15080      hardcode_shlibpath_var_F77=no
15081      ;;
15082
15083    *)
15084      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15085	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15086	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15087      else
15088	ld_shlibs_F77=no
15089      fi
15090      ;;
15091    esac
15092
15093    if test "$ld_shlibs_F77" = no; then
15094      runpath_var=
15095      hardcode_libdir_flag_spec_F77=
15096      export_dynamic_flag_spec_F77=
15097      whole_archive_flag_spec_F77=
15098    fi
15099  else
15100    # PORTME fill in a description of your system's linker (not GNU ld)
15101    case $host_os in
15102    aix3*)
15103      allow_undefined_flag_F77=unsupported
15104      always_export_symbols_F77=yes
15105      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'
15106      # Note: this linker hardcodes the directories in LIBPATH if there
15107      # are no directories specified by -L.
15108      hardcode_minus_L_F77=yes
15109      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15110	# Neither direct hardcoding nor static linking is supported with a
15111	# broken collect2.
15112	hardcode_direct_F77=unsupported
15113      fi
15114      ;;
15115
15116    aix[4-9]*)
15117      if test "$host_cpu" = ia64; then
15118	# On IA64, the linker does run time linking by default, so we don't
15119	# have to do anything special.
15120	aix_use_runtimelinking=no
15121	exp_sym_flag='-Bexport'
15122	no_entry_flag=""
15123      else
15124	# If we're using GNU nm, then we don't want the "-C" option.
15125	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15126	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15127	  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'
15128	else
15129	  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'
15130	fi
15131	aix_use_runtimelinking=no
15132
15133	# Test if we are trying to use run time linking or normal
15134	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15135	# need to do runtime linking.
15136	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15137	  for ld_flag in $LDFLAGS; do
15138  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15139  	    aix_use_runtimelinking=yes
15140  	    break
15141  	  fi
15142	  done
15143	  ;;
15144	esac
15145
15146	exp_sym_flag='-bexport'
15147	no_entry_flag='-bnoentry'
15148      fi
15149
15150      # When large executables or shared objects are built, AIX ld can
15151      # have problems creating the table of contents.  If linking a library
15152      # or program results in "error TOC overflow" add -mminimal-toc to
15153      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15154      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15155
15156      archive_cmds_F77=''
15157      hardcode_direct_F77=yes
15158      hardcode_libdir_separator_F77=':'
15159      link_all_deplibs_F77=yes
15160
15161      if test "$GCC" = yes; then
15162	case $host_os in aix4.[012]|aix4.[012].*)
15163	# We only want to do this on AIX 4.2 and lower, the check
15164	# below for broken collect2 doesn't work under 4.3+
15165	  collect2name=`${CC} -print-prog-name=collect2`
15166	  if test -f "$collect2name" && \
15167  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15168	  then
15169  	  # We have reworked collect2
15170  	  :
15171	  else
15172  	  # We have old collect2
15173  	  hardcode_direct_F77=unsupported
15174  	  # It fails to find uninstalled libraries when the uninstalled
15175  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15176  	  # to unsupported forces relinking
15177  	  hardcode_minus_L_F77=yes
15178  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15179  	  hardcode_libdir_separator_F77=
15180	  fi
15181	  ;;
15182	esac
15183	shared_flag='-shared'
15184	if test "$aix_use_runtimelinking" = yes; then
15185	  shared_flag="$shared_flag "'${wl}-G'
15186	fi
15187      else
15188	# not using gcc
15189	if test "$host_cpu" = ia64; then
15190  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15191  	# chokes on -Wl,-G. The following line is correct:
15192	  shared_flag='-G'
15193	else
15194	  if test "$aix_use_runtimelinking" = yes; then
15195	    shared_flag='${wl}-G'
15196	  else
15197	    shared_flag='${wl}-bM:SRE'
15198	  fi
15199	fi
15200      fi
15201
15202      # It seems that -bexpall does not export symbols beginning with
15203      # underscore (_), so it is better to generate a list of symbols to export.
15204      always_export_symbols_F77=yes
15205      if test "$aix_use_runtimelinking" = yes; then
15206	# Warning - without using the other runtime loading flags (-brtl),
15207	# -berok will link without error, but may produce a broken library.
15208	allow_undefined_flag_F77='-berok'
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	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"
15263       else
15264	if test "$host_cpu" = ia64; then
15265	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15266	  allow_undefined_flag_F77="-z nodefs"
15267	  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"
15268	else
15269	 # Determine the default libpath from the value encoded in an empty executable.
15270	 cat >conftest.$ac_ext <<_ACEOF
15271      program main
15272
15273      end
15274_ACEOF
15275rm -f conftest.$ac_objext conftest$ac_exeext
15276if { (ac_try="$ac_link"
15277case "(($ac_try" in
15278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15279  *) ac_try_echo=$ac_try;;
15280esac
15281eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15282$as_echo "$ac_try_echo") >&5
15283  (eval "$ac_link") 2>conftest.er1
15284  ac_status=$?
15285  grep -v '^ *+' conftest.er1 >conftest.err
15286  rm -f conftest.er1
15287  cat conftest.err >&5
15288  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289  (exit $ac_status); } && {
15290	 test -z "$ac_f77_werror_flag" ||
15291	 test ! -s conftest.err
15292       } && test -s conftest$ac_exeext && {
15293	 test "$cross_compiling" = yes ||
15294	 $as_test_x conftest$ac_exeext
15295       }; then
15296
15297lt_aix_libpath_sed='
15298    /Import File Strings/,/^$/ {
15299	/^0/ {
15300	    s/^0  *\(.*\)$/\1/
15301	    p
15302	}
15303    }'
15304aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15305# Check for a 64-bit object if we didn't find anything.
15306if test -z "$aix_libpath"; then
15307  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15308fi
15309else
15310  $as_echo "$as_me: failed program was:" >&5
15311sed 's/^/| /' conftest.$ac_ext >&5
15312
15313
15314fi
15315
15316rm -rf conftest.dSYM
15317rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15318      conftest$ac_exeext conftest.$ac_ext
15319if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15320
15321	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15322	  # Warning - without using the other run time loading flags,
15323	  # -berok will link without error, but may produce a broken library.
15324	  no_undefined_flag_F77=' ${wl}-bernotok'
15325	  allow_undefined_flag_F77=' ${wl}-berok'
15326	  # Exported symbols can be pulled into shared objects from archives
15327	  whole_archive_flag_spec_F77='$convenience'
15328	  archive_cmds_need_lc_F77=yes
15329	  # This is similar to how AIX traditionally builds its shared libraries.
15330	  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'
15331	fi
15332      fi
15333      ;;
15334
15335    amigaos*)
15336      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)'
15337      hardcode_libdir_flag_spec_F77='-L$libdir'
15338      hardcode_minus_L_F77=yes
15339      # see comment about different semantics on the GNU ld section
15340      ld_shlibs_F77=no
15341      ;;
15342
15343    bsdi[45]*)
15344      export_dynamic_flag_spec_F77=-rdynamic
15345      ;;
15346
15347    cygwin* | mingw* | pw32*)
15348      # When not using gcc, we currently assume that we are using
15349      # Microsoft Visual C++.
15350      # hardcode_libdir_flag_spec is actually meaningless, as there is
15351      # no search path for DLLs.
15352      hardcode_libdir_flag_spec_F77=' '
15353      allow_undefined_flag_F77=unsupported
15354      # Tell ltmain to make .lib files, not .a files.
15355      libext=lib
15356      # Tell ltmain to make .dll files, not .so files.
15357      shrext_cmds=".dll"
15358      # FIXME: Setting linknames here is a bad hack.
15359      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15360      # The linker will automatically build a .lib file if we build a DLL.
15361      old_archive_From_new_cmds_F77='true'
15362      # FIXME: Should let the user specify the lib program.
15363      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15364      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15365      enable_shared_with_static_runtimes_F77=yes
15366      ;;
15367
15368    darwin* | rhapsody*)
15369      case $host_os in
15370        rhapsody* | darwin1.[012])
15371         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15372         ;;
15373       *) # Darwin 1.3 on
15374         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15375           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15376         else
15377           case ${MACOSX_DEPLOYMENT_TARGET} in
15378             10.[012])
15379               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15380               ;;
15381             10.*)
15382               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15383               ;;
15384           esac
15385         fi
15386         ;;
15387      esac
15388      archive_cmds_need_lc_F77=no
15389      hardcode_direct_F77=no
15390      hardcode_automatic_F77=yes
15391      hardcode_shlibpath_var_F77=unsupported
15392      whole_archive_flag_spec_F77=''
15393      link_all_deplibs_F77=yes
15394    if test "$GCC" = yes ; then
15395    	output_verbose_link_cmd='echo'
15396        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}"
15397        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15398        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}"
15399        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}"
15400    else
15401      case $cc_basename in
15402        xlc*)
15403         output_verbose_link_cmd='echo'
15404         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15405         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15406          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15407         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}'
15408          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}'
15409          ;;
15410       *)
15411         ld_shlibs_F77=no
15412          ;;
15413      esac
15414    fi
15415      ;;
15416
15417    dgux*)
15418      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15419      hardcode_libdir_flag_spec_F77='-L$libdir'
15420      hardcode_shlibpath_var_F77=no
15421      ;;
15422
15423    freebsd1*)
15424      ld_shlibs_F77=no
15425      ;;
15426
15427    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15428    # support.  Future versions do this automatically, but an explicit c++rt0.o
15429    # does not break anything, and helps significantly (at the cost of a little
15430    # extra space).
15431    freebsd2.2*)
15432      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15433      hardcode_libdir_flag_spec_F77='-R$libdir'
15434      hardcode_direct_F77=yes
15435      hardcode_shlibpath_var_F77=no
15436      ;;
15437
15438    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15439    freebsd2*)
15440      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15441      hardcode_direct_F77=yes
15442      hardcode_minus_L_F77=yes
15443      hardcode_shlibpath_var_F77=no
15444      ;;
15445
15446    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15447    freebsd* | dragonfly*)
15448      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15449      hardcode_libdir_flag_spec_F77='-R$libdir'
15450      hardcode_direct_F77=yes
15451      hardcode_shlibpath_var_F77=no
15452      ;;
15453
15454    hpux9*)
15455      if test "$GCC" = yes; then
15456	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'
15457      else
15458	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'
15459      fi
15460      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15461      hardcode_libdir_separator_F77=:
15462      hardcode_direct_F77=yes
15463
15464      # hardcode_minus_L: Not really in the search PATH,
15465      # but as the default location of the library.
15466      hardcode_minus_L_F77=yes
15467      export_dynamic_flag_spec_F77='${wl}-E'
15468      ;;
15469
15470    hpux10*)
15471      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15472	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15473      else
15474	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15475      fi
15476      if test "$with_gnu_ld" = no; then
15477	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15478	hardcode_libdir_separator_F77=:
15479
15480	hardcode_direct_F77=yes
15481	export_dynamic_flag_spec_F77='${wl}-E'
15482
15483	# hardcode_minus_L: Not really in the search PATH,
15484	# but as the default location of the library.
15485	hardcode_minus_L_F77=yes
15486      fi
15487      ;;
15488
15489    hpux11*)
15490      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15491	case $host_cpu in
15492	hppa*64*)
15493	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15494	  ;;
15495	ia64*)
15496	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15497	  ;;
15498	*)
15499	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15500	  ;;
15501	esac
15502      else
15503	case $host_cpu in
15504	hppa*64*)
15505	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15506	  ;;
15507	ia64*)
15508	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15509	  ;;
15510	*)
15511	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15512	  ;;
15513	esac
15514      fi
15515      if test "$with_gnu_ld" = no; then
15516	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15517	hardcode_libdir_separator_F77=:
15518
15519	case $host_cpu in
15520	hppa*64*|ia64*)
15521	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15522	  hardcode_direct_F77=no
15523	  hardcode_shlibpath_var_F77=no
15524	  ;;
15525	*)
15526	  hardcode_direct_F77=yes
15527	  export_dynamic_flag_spec_F77='${wl}-E'
15528
15529	  # hardcode_minus_L: Not really in the search PATH,
15530	  # but as the default location of the library.
15531	  hardcode_minus_L_F77=yes
15532	  ;;
15533	esac
15534      fi
15535      ;;
15536
15537    irix5* | irix6* | nonstopux*)
15538      if test "$GCC" = yes; then
15539	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'
15540      else
15541	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'
15542	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15543      fi
15544      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15545      hardcode_libdir_separator_F77=:
15546      link_all_deplibs_F77=yes
15547      ;;
15548
15549    netbsd*)
15550      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15551	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15552      else
15553	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15554      fi
15555      hardcode_libdir_flag_spec_F77='-R$libdir'
15556      hardcode_direct_F77=yes
15557      hardcode_shlibpath_var_F77=no
15558      ;;
15559
15560    newsos6)
15561      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15562      hardcode_direct_F77=yes
15563      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15564      hardcode_libdir_separator_F77=:
15565      hardcode_shlibpath_var_F77=no
15566      ;;
15567
15568    openbsd*)
15569      if test -f /usr/libexec/ld.so; then
15570	hardcode_direct_F77=yes
15571	hardcode_shlibpath_var_F77=no
15572	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15573	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15574	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15575	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15576	  export_dynamic_flag_spec_F77='${wl}-E'
15577	else
15578	  case $host_os in
15579	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15580	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15581	     hardcode_libdir_flag_spec_F77='-R$libdir'
15582	     ;;
15583	   *)
15584	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15585	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15586	     ;;
15587	  esac
15588        fi
15589      else
15590	ld_shlibs_F77=no
15591      fi
15592      ;;
15593
15594    os2*)
15595      hardcode_libdir_flag_spec_F77='-L$libdir'
15596      hardcode_minus_L_F77=yes
15597      allow_undefined_flag_F77=unsupported
15598      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'
15599      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15600      ;;
15601
15602    osf3*)
15603      if test "$GCC" = yes; then
15604	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15605	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'
15606      else
15607	allow_undefined_flag_F77=' -expect_unresolved \*'
15608	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'
15609      fi
15610      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15611      hardcode_libdir_separator_F77=:
15612      ;;
15613
15614    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15615      if test "$GCC" = yes; then
15616	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15617	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'
15618	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15619      else
15620	allow_undefined_flag_F77=' -expect_unresolved \*'
15621	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'
15622	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~
15623	$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'
15624
15625	# Both c and cxx compiler support -rpath directly
15626	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15627      fi
15628      hardcode_libdir_separator_F77=:
15629      ;;
15630
15631    solaris*)
15632      no_undefined_flag_F77=' -z text'
15633      if test "$GCC" = yes; then
15634	wlarc='${wl}'
15635	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15636	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15637	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15638      else
15639	wlarc=''
15640	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15641	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15642  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15643      fi
15644      hardcode_libdir_flag_spec_F77='-R$libdir'
15645      hardcode_shlibpath_var_F77=no
15646      case $host_os in
15647      solaris2.[0-5] | solaris2.[0-5].*) ;;
15648      *)
15649	# The compiler driver will combine and reorder linker options,
15650	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15651	# but is careful enough not to reorder.
15652 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15653	if test "$GCC" = yes; then
15654	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15655	else
15656	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15657	fi
15658	;;
15659      esac
15660      link_all_deplibs_F77=yes
15661      ;;
15662
15663    sunos4*)
15664      if test "x$host_vendor" = xsequent; then
15665	# Use $CC to link under sequent, because it throws in some extra .o
15666	# files that make .init and .fini sections work.
15667	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15668      else
15669	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15670      fi
15671      hardcode_libdir_flag_spec_F77='-L$libdir'
15672      hardcode_direct_F77=yes
15673      hardcode_minus_L_F77=yes
15674      hardcode_shlibpath_var_F77=no
15675      ;;
15676
15677    sysv4)
15678      case $host_vendor in
15679	sni)
15680	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15681	  hardcode_direct_F77=yes # is this really true???
15682	;;
15683	siemens)
15684	  ## LD is ld it makes a PLAMLIB
15685	  ## CC just makes a GrossModule.
15686	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15687	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15688	  hardcode_direct_F77=no
15689        ;;
15690	motorola)
15691	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15692	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15693	;;
15694      esac
15695      runpath_var='LD_RUN_PATH'
15696      hardcode_shlibpath_var_F77=no
15697      ;;
15698
15699    sysv4.3*)
15700      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15701      hardcode_shlibpath_var_F77=no
15702      export_dynamic_flag_spec_F77='-Bexport'
15703      ;;
15704
15705    sysv4*MP*)
15706      if test -d /usr/nec; then
15707	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15708	hardcode_shlibpath_var_F77=no
15709	runpath_var=LD_RUN_PATH
15710	hardcode_runpath_var=yes
15711	ld_shlibs_F77=yes
15712      fi
15713      ;;
15714
15715    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15716      no_undefined_flag_F77='${wl}-z,text'
15717      archive_cmds_need_lc_F77=no
15718      hardcode_shlibpath_var_F77=no
15719      runpath_var='LD_RUN_PATH'
15720
15721      if test "$GCC" = yes; then
15722	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15723	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15724      else
15725	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15726	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15727      fi
15728      ;;
15729
15730    sysv5* | sco3.2v5* | sco5v6*)
15731      # Note: We can NOT use -z defs as we might desire, because we do not
15732      # link with -lc, and that would cause any symbols used from libc to
15733      # always be unresolved, which means just about no library would
15734      # ever link correctly.  If we're not using GNU ld we use -z text
15735      # though, which does catch some bad symbols but isn't as heavy-handed
15736      # as -z defs.
15737      no_undefined_flag_F77='${wl}-z,text'
15738      allow_undefined_flag_F77='${wl}-z,nodefs'
15739      archive_cmds_need_lc_F77=no
15740      hardcode_shlibpath_var_F77=no
15741      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15742      hardcode_libdir_separator_F77=':'
15743      link_all_deplibs_F77=yes
15744      export_dynamic_flag_spec_F77='${wl}-Bexport'
15745      runpath_var='LD_RUN_PATH'
15746
15747      if test "$GCC" = yes; then
15748	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15749	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15750      else
15751	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15752	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15753      fi
15754      ;;
15755
15756    uts4*)
15757      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15758      hardcode_libdir_flag_spec_F77='-L$libdir'
15759      hardcode_shlibpath_var_F77=no
15760      ;;
15761
15762    *)
15763      ld_shlibs_F77=no
15764      ;;
15765    esac
15766  fi
15767
15768{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15769$as_echo "$ld_shlibs_F77" >&6; }
15770test "$ld_shlibs_F77" = no && can_build_shared=no
15771
15772#
15773# Do we need to explicitly link libc?
15774#
15775case "x$archive_cmds_need_lc_F77" in
15776x|xyes)
15777  # Assume -lc should be added
15778  archive_cmds_need_lc_F77=yes
15779
15780  if test "$enable_shared" = yes && test "$GCC" = yes; then
15781    case $archive_cmds_F77 in
15782    *'~'*)
15783      # FIXME: we may have to deal with multi-command sequences.
15784      ;;
15785    '$CC '*)
15786      # Test whether the compiler implicitly links with -lc since on some
15787      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15788      # to ld, don't add -lc before -lgcc.
15789      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15790$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15791      $rm conftest*
15792      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15793
15794      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15795  (eval $ac_compile) 2>&5
15796  ac_status=$?
15797  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798  (exit $ac_status); } 2>conftest.err; then
15799        soname=conftest
15800        lib=conftest
15801        libobjs=conftest.$ac_objext
15802        deplibs=
15803        wl=$lt_prog_compiler_wl_F77
15804	pic_flag=$lt_prog_compiler_pic_F77
15805        compiler_flags=-v
15806        linker_flags=-v
15807        verstring=
15808        output_objdir=.
15809        libname=conftest
15810        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15811        allow_undefined_flag_F77=
15812        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15813  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15814  ac_status=$?
15815  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816  (exit $ac_status); }
15817        then
15818	  archive_cmds_need_lc_F77=no
15819        else
15820	  archive_cmds_need_lc_F77=yes
15821        fi
15822        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15823      else
15824        cat conftest.err 1>&5
15825      fi
15826      $rm conftest*
15827      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15828$as_echo "$archive_cmds_need_lc_F77" >&6; }
15829      ;;
15830    esac
15831  fi
15832  ;;
15833esac
15834
15835{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15836$as_echo_n "checking dynamic linker characteristics... " >&6; }
15837library_names_spec=
15838libname_spec='lib$name'
15839soname_spec=
15840shrext_cmds=".so"
15841postinstall_cmds=
15842postuninstall_cmds=
15843finish_cmds=
15844finish_eval=
15845shlibpath_var=
15846shlibpath_overrides_runpath=unknown
15847version_type=none
15848dynamic_linker="$host_os ld.so"
15849sys_lib_dlsearch_path_spec="/lib /usr/lib"
15850
15851need_lib_prefix=unknown
15852hardcode_into_libs=no
15853
15854# when you set need_version to no, make sure it does not cause -set_version
15855# flags to be left without arguments
15856need_version=unknown
15857
15858case $host_os in
15859aix3*)
15860  version_type=linux
15861  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15862  shlibpath_var=LIBPATH
15863
15864  # AIX 3 has no versioning support, so we append a major version to the name.
15865  soname_spec='${libname}${release}${shared_ext}$major'
15866  ;;
15867
15868aix[4-9]*)
15869  version_type=linux
15870  need_lib_prefix=no
15871  need_version=no
15872  hardcode_into_libs=yes
15873  if test "$host_cpu" = ia64; then
15874    # AIX 5 supports IA64
15875    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15876    shlibpath_var=LD_LIBRARY_PATH
15877  else
15878    # With GCC up to 2.95.x, collect2 would create an import file
15879    # for dependence libraries.  The import file would start with
15880    # the line `#! .'.  This would cause the generated library to
15881    # depend on `.', always an invalid library.  This was fixed in
15882    # development snapshots of GCC prior to 3.0.
15883    case $host_os in
15884      aix4 | aix4.[01] | aix4.[01].*)
15885      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15886	   echo ' yes '
15887	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15888	:
15889      else
15890	can_build_shared=no
15891      fi
15892      ;;
15893    esac
15894    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15895    # soname into executable. Probably we can add versioning support to
15896    # collect2, so additional links can be useful in future.
15897    if test "$aix_use_runtimelinking" = yes; then
15898      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15899      # instead of lib<name>.a to let people know that these are not
15900      # typical AIX shared libraries.
15901      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15902    else
15903      # We preserve .a as extension for shared libraries through AIX4.2
15904      # and later when we are not doing run time linking.
15905      library_names_spec='${libname}${release}.a $libname.a'
15906      soname_spec='${libname}${release}${shared_ext}$major'
15907    fi
15908    shlibpath_var=LIBPATH
15909  fi
15910  ;;
15911
15912amigaos*)
15913  library_names_spec='$libname.ixlibrary $libname.a'
15914  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15915  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'
15916  ;;
15917
15918beos*)
15919  library_names_spec='${libname}${shared_ext}'
15920  dynamic_linker="$host_os ld.so"
15921  shlibpath_var=LIBRARY_PATH
15922  ;;
15923
15924bsdi[45]*)
15925  version_type=linux
15926  need_version=no
15927  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15928  soname_spec='${libname}${release}${shared_ext}$major'
15929  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15930  shlibpath_var=LD_LIBRARY_PATH
15931  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15932  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15933  # the default ld.so.conf also contains /usr/contrib/lib and
15934  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15935  # libtool to hard-code these into programs
15936  ;;
15937
15938cygwin* | mingw* | pw32*)
15939  version_type=windows
15940  shrext_cmds=".dll"
15941  need_version=no
15942  need_lib_prefix=no
15943
15944  case $GCC,$host_os in
15945  yes,cygwin* | yes,mingw* | yes,pw32*)
15946    library_names_spec='$libname.dll.a'
15947    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15948    postinstall_cmds='base_file=`basename \${file}`~
15949      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15950      dldir=$destdir/`dirname \$dlpath`~
15951      test -d \$dldir || mkdir -p \$dldir~
15952      $install_prog $dir/$dlname \$dldir/$dlname~
15953      chmod a+x \$dldir/$dlname'
15954    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15955      dlpath=$dir/\$dldll~
15956       $rm \$dlpath'
15957    shlibpath_overrides_runpath=yes
15958
15959    case $host_os in
15960    cygwin*)
15961      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15962      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15963      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15964      ;;
15965    mingw*)
15966      # MinGW DLLs use traditional 'lib' prefix
15967      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15968      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15969      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15970        # It is most probably a Windows format PATH printed by
15971        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15972        # path with ; separators, and with drive letters. We can handle the
15973        # drive letters (cygwin fileutils understands them), so leave them,
15974        # especially as we might pass files found there to a mingw objdump,
15975        # which wouldn't understand a cygwinified path. Ahh.
15976        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15977      else
15978        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15979      fi
15980      ;;
15981    pw32*)
15982      # pw32 DLLs use 'pw' prefix rather than 'lib'
15983      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15984      ;;
15985    esac
15986    ;;
15987
15988  *)
15989    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15990    ;;
15991  esac
15992  dynamic_linker='Win32 ld.exe'
15993  # FIXME: first we should search . and the directory the executable is in
15994  shlibpath_var=PATH
15995  ;;
15996
15997darwin* | rhapsody*)
15998  dynamic_linker="$host_os dyld"
15999  version_type=darwin
16000  need_lib_prefix=no
16001  need_version=no
16002  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16003  soname_spec='${libname}${release}${major}$shared_ext'
16004  shlibpath_overrides_runpath=yes
16005  shlibpath_var=DYLD_LIBRARY_PATH
16006  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16007
16008  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16009  ;;
16010
16011dgux*)
16012  version_type=linux
16013  need_lib_prefix=no
16014  need_version=no
16015  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16016  soname_spec='${libname}${release}${shared_ext}$major'
16017  shlibpath_var=LD_LIBRARY_PATH
16018  ;;
16019
16020freebsd1*)
16021  dynamic_linker=no
16022  ;;
16023
16024freebsd* | dragonfly*)
16025  # DragonFly does not have aout.  When/if they implement a new
16026  # versioning mechanism, adjust this.
16027  if test -x /usr/bin/objformat; then
16028    objformat=`/usr/bin/objformat`
16029  else
16030    case $host_os in
16031    freebsd[123]*) objformat=aout ;;
16032    *) objformat=elf ;;
16033    esac
16034  fi
16035  version_type=freebsd-$objformat
16036  case $version_type in
16037    freebsd-elf*)
16038      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16039      need_version=no
16040      need_lib_prefix=no
16041      ;;
16042    freebsd-*)
16043      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16044      need_version=yes
16045      ;;
16046  esac
16047  shlibpath_var=LD_LIBRARY_PATH
16048  case $host_os in
16049  freebsd2*)
16050    shlibpath_overrides_runpath=yes
16051    ;;
16052  freebsd3.[01]* | freebsdelf3.[01]*)
16053    shlibpath_overrides_runpath=yes
16054    hardcode_into_libs=yes
16055    ;;
16056  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16057  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16058    shlibpath_overrides_runpath=no
16059    hardcode_into_libs=yes
16060    ;;
16061  *) # from 4.6 on, and DragonFly
16062    shlibpath_overrides_runpath=yes
16063    hardcode_into_libs=yes
16064    ;;
16065  esac
16066  ;;
16067
16068gnu*)
16069  version_type=linux
16070  need_lib_prefix=no
16071  need_version=no
16072  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16073  soname_spec='${libname}${release}${shared_ext}$major'
16074  shlibpath_var=LD_LIBRARY_PATH
16075  hardcode_into_libs=yes
16076  ;;
16077
16078hpux9* | hpux10* | hpux11*)
16079  # Give a soname corresponding to the major version so that dld.sl refuses to
16080  # link against other versions.
16081  version_type=sunos
16082  need_lib_prefix=no
16083  need_version=no
16084  case $host_cpu in
16085  ia64*)
16086    shrext_cmds='.so'
16087    hardcode_into_libs=yes
16088    dynamic_linker="$host_os dld.so"
16089    shlibpath_var=LD_LIBRARY_PATH
16090    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16091    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16092    soname_spec='${libname}${release}${shared_ext}$major'
16093    if test "X$HPUX_IA64_MODE" = X32; then
16094      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16095    else
16096      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16097    fi
16098    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16099    ;;
16100   hppa*64*)
16101     shrext_cmds='.sl'
16102     hardcode_into_libs=yes
16103     dynamic_linker="$host_os dld.sl"
16104     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16105     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16106     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16107     soname_spec='${libname}${release}${shared_ext}$major'
16108     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16109     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16110     ;;
16111   *)
16112    shrext_cmds='.sl'
16113    dynamic_linker="$host_os dld.sl"
16114    shlibpath_var=SHLIB_PATH
16115    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16116    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16117    soname_spec='${libname}${release}${shared_ext}$major'
16118    ;;
16119  esac
16120  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16121  postinstall_cmds='chmod 555 $lib'
16122  ;;
16123
16124interix[3-9]*)
16125  version_type=linux
16126  need_lib_prefix=no
16127  need_version=no
16128  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16129  soname_spec='${libname}${release}${shared_ext}$major'
16130  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16131  shlibpath_var=LD_LIBRARY_PATH
16132  shlibpath_overrides_runpath=no
16133  hardcode_into_libs=yes
16134  ;;
16135
16136irix5* | irix6* | nonstopux*)
16137  case $host_os in
16138    nonstopux*) version_type=nonstopux ;;
16139    *)
16140	if test "$lt_cv_prog_gnu_ld" = yes; then
16141		version_type=linux
16142	else
16143		version_type=irix
16144	fi ;;
16145  esac
16146  need_lib_prefix=no
16147  need_version=no
16148  soname_spec='${libname}${release}${shared_ext}$major'
16149  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16150  case $host_os in
16151  irix5* | nonstopux*)
16152    libsuff= shlibsuff=
16153    ;;
16154  *)
16155    case $LD in # libtool.m4 will add one of these switches to LD
16156    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16157      libsuff= shlibsuff= libmagic=32-bit;;
16158    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16159      libsuff=32 shlibsuff=N32 libmagic=N32;;
16160    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16161      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16162    *) libsuff= shlibsuff= libmagic=never-match;;
16163    esac
16164    ;;
16165  esac
16166  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16167  shlibpath_overrides_runpath=no
16168  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16169  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16170  hardcode_into_libs=yes
16171  ;;
16172
16173# No shared lib support for Linux oldld, aout, or coff.
16174linux*oldld* | linux*aout* | linux*coff*)
16175  dynamic_linker=no
16176  ;;
16177
16178# This must be Linux ELF.
16179linux* | k*bsd*-gnu)
16180  version_type=linux
16181  need_lib_prefix=no
16182  need_version=no
16183  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16184  soname_spec='${libname}${release}${shared_ext}$major'
16185  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16186  shlibpath_var=LD_LIBRARY_PATH
16187  shlibpath_overrides_runpath=no
16188  # This implies no fast_install, which is unacceptable.
16189  # Some rework will be needed to allow for fast_install
16190  # before this can be enabled.
16191  hardcode_into_libs=yes
16192
16193  # find out which ABI we are using
16194  libsuff=
16195  case "$host_cpu" in
16196  x86_64*|s390x*|powerpc64*)
16197    echo '#line 16197 "configure"' > conftest.$ac_ext
16198    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16199  (eval $ac_compile) 2>&5
16200  ac_status=$?
16201  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202  (exit $ac_status); }; then
16203      case `/usr/bin/file conftest.$ac_objext` in
16204      *64-bit*)
16205        libsuff=64
16206        ;;
16207      esac
16208    fi
16209    rm -rf conftest*
16210    ;;
16211  esac
16212
16213  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
16214
16215  # Append ld.so.conf contents to the search path
16216  if test -f /etc/ld.so.conf; then
16217    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' ' '`
16218    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16219  fi
16220
16221  # We used to test for /lib/ld.so.1 and disable shared libraries on
16222  # powerpc, because MkLinux only supported shared libraries with the
16223  # GNU dynamic linker.  Since this was broken with cross compilers,
16224  # most powerpc-linux boxes support dynamic linking these days and
16225  # people can always --disable-shared, the test was removed, and we
16226  # assume the GNU/Linux dynamic linker is in use.
16227  dynamic_linker='GNU/Linux ld.so'
16228  ;;
16229
16230netbsd*)
16231  version_type=sunos
16232  need_lib_prefix=no
16233  need_version=no
16234  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16235    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16236    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16237    dynamic_linker='NetBSD (a.out) ld.so'
16238  else
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    dynamic_linker='NetBSD ld.elf_so'
16242  fi
16243  shlibpath_var=LD_LIBRARY_PATH
16244  shlibpath_overrides_runpath=yes
16245  hardcode_into_libs=yes
16246  ;;
16247
16248newsos6)
16249  version_type=linux
16250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16251  shlibpath_var=LD_LIBRARY_PATH
16252  shlibpath_overrides_runpath=yes
16253  ;;
16254
16255nto-qnx*)
16256  version_type=linux
16257  need_lib_prefix=no
16258  need_version=no
16259  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16260  soname_spec='${libname}${release}${shared_ext}$major'
16261  shlibpath_var=LD_LIBRARY_PATH
16262  shlibpath_overrides_runpath=yes
16263  ;;
16264
16265openbsd*)
16266  version_type=sunos
16267  sys_lib_dlsearch_path_spec="/usr/lib"
16268  need_lib_prefix=no
16269  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16270  case $host_os in
16271    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16272    *)                         need_version=no  ;;
16273  esac
16274  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16275  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16276  shlibpath_var=LD_LIBRARY_PATH
16277  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16278    case $host_os in
16279      openbsd2.[89] | openbsd2.[89].*)
16280	shlibpath_overrides_runpath=no
16281	;;
16282      *)
16283	shlibpath_overrides_runpath=yes
16284	;;
16285      esac
16286  else
16287    shlibpath_overrides_runpath=yes
16288  fi
16289  ;;
16290
16291os2*)
16292  libname_spec='$name'
16293  shrext_cmds=".dll"
16294  need_lib_prefix=no
16295  library_names_spec='$libname${shared_ext} $libname.a'
16296  dynamic_linker='OS/2 ld.exe'
16297  shlibpath_var=LIBPATH
16298  ;;
16299
16300osf3* | osf4* | osf5*)
16301  version_type=osf
16302  need_lib_prefix=no
16303  need_version=no
16304  soname_spec='${libname}${release}${shared_ext}$major'
16305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16306  shlibpath_var=LD_LIBRARY_PATH
16307  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16308  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16309  ;;
16310
16311rdos*)
16312  dynamic_linker=no
16313  ;;
16314
16315solaris*)
16316  version_type=linux
16317  need_lib_prefix=no
16318  need_version=no
16319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16320  soname_spec='${libname}${release}${shared_ext}$major'
16321  shlibpath_var=LD_LIBRARY_PATH
16322  shlibpath_overrides_runpath=yes
16323  hardcode_into_libs=yes
16324  # ldd complains unless libraries are executable
16325  postinstall_cmds='chmod +x $lib'
16326  ;;
16327
16328sunos4*)
16329  version_type=sunos
16330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16331  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16332  shlibpath_var=LD_LIBRARY_PATH
16333  shlibpath_overrides_runpath=yes
16334  if test "$with_gnu_ld" = yes; then
16335    need_lib_prefix=no
16336  fi
16337  need_version=yes
16338  ;;
16339
16340sysv4 | sysv4.3*)
16341  version_type=linux
16342  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16343  soname_spec='${libname}${release}${shared_ext}$major'
16344  shlibpath_var=LD_LIBRARY_PATH
16345  case $host_vendor in
16346    sni)
16347      shlibpath_overrides_runpath=no
16348      need_lib_prefix=no
16349      export_dynamic_flag_spec='${wl}-Blargedynsym'
16350      runpath_var=LD_RUN_PATH
16351      ;;
16352    siemens)
16353      need_lib_prefix=no
16354      ;;
16355    motorola)
16356      need_lib_prefix=no
16357      need_version=no
16358      shlibpath_overrides_runpath=no
16359      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16360      ;;
16361  esac
16362  ;;
16363
16364sysv4*MP*)
16365  if test -d /usr/nec ;then
16366    version_type=linux
16367    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16368    soname_spec='$libname${shared_ext}.$major'
16369    shlibpath_var=LD_LIBRARY_PATH
16370  fi
16371  ;;
16372
16373sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16374  version_type=freebsd-elf
16375  need_lib_prefix=no
16376  need_version=no
16377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16378  soname_spec='${libname}${release}${shared_ext}$major'
16379  shlibpath_var=LD_LIBRARY_PATH
16380  hardcode_into_libs=yes
16381  if test "$with_gnu_ld" = yes; then
16382    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16383    shlibpath_overrides_runpath=no
16384  else
16385    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16386    shlibpath_overrides_runpath=yes
16387    case $host_os in
16388      sco3.2v5*)
16389        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16390	;;
16391    esac
16392  fi
16393  sys_lib_dlsearch_path_spec='/usr/lib'
16394  ;;
16395
16396uts4*)
16397  version_type=linux
16398  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16399  soname_spec='${libname}${release}${shared_ext}$major'
16400  shlibpath_var=LD_LIBRARY_PATH
16401  ;;
16402
16403*)
16404  dynamic_linker=no
16405  ;;
16406esac
16407{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16408$as_echo "$dynamic_linker" >&6; }
16409test "$dynamic_linker" = no && can_build_shared=no
16410
16411if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16412  $as_echo_n "(cached) " >&6
16413else
16414  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16415fi
16416
16417sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16418if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16419  $as_echo_n "(cached) " >&6
16420else
16421  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16422fi
16423
16424sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16425
16426variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16427if test "$GCC" = yes; then
16428  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16429fi
16430
16431{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16432$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16433hardcode_action_F77=
16434if test -n "$hardcode_libdir_flag_spec_F77" || \
16435   test -n "$runpath_var_F77" || \
16436   test "X$hardcode_automatic_F77" = "Xyes" ; then
16437
16438  # We can hardcode non-existant directories.
16439  if test "$hardcode_direct_F77" != no &&
16440     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16441     # have to relink, otherwise we might link with an installed library
16442     # when we should be linking with a yet-to-be-installed one
16443     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16444     test "$hardcode_minus_L_F77" != no; then
16445    # Linking always hardcodes the temporary library directory.
16446    hardcode_action_F77=relink
16447  else
16448    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16449    hardcode_action_F77=immediate
16450  fi
16451else
16452  # We cannot hardcode anything, or else we can only hardcode existing
16453  # directories.
16454  hardcode_action_F77=unsupported
16455fi
16456{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16457$as_echo "$hardcode_action_F77" >&6; }
16458
16459if test "$hardcode_action_F77" = relink; then
16460  # Fast installation is not supported
16461  enable_fast_install=no
16462elif test "$shlibpath_overrides_runpath" = yes ||
16463     test "$enable_shared" = no; then
16464  # Fast installation is not necessary
16465  enable_fast_install=needless
16466fi
16467
16468
16469# The else clause should only fire when bootstrapping the
16470# libtool distribution, otherwise you forgot to ship ltmain.sh
16471# with your package, and you will get complaints that there are
16472# no rules to generate ltmain.sh.
16473if test -f "$ltmain"; then
16474  # See if we are running on zsh, and set the options which allow our commands through
16475  # without removal of \ escapes.
16476  if test -n "${ZSH_VERSION+set}" ; then
16477    setopt NO_GLOB_SUBST
16478  fi
16479  # Now quote all the things that may contain metacharacters while being
16480  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16481  # variables and quote the copies for generation of the libtool script.
16482  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16483    SED SHELL STRIP \
16484    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16485    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16486    deplibs_check_method reload_flag reload_cmds need_locks \
16487    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16488    lt_cv_sys_global_symbol_to_c_name_address \
16489    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16490    old_postinstall_cmds old_postuninstall_cmds \
16491    compiler_F77 \
16492    CC_F77 \
16493    LD_F77 \
16494    lt_prog_compiler_wl_F77 \
16495    lt_prog_compiler_pic_F77 \
16496    lt_prog_compiler_static_F77 \
16497    lt_prog_compiler_no_builtin_flag_F77 \
16498    export_dynamic_flag_spec_F77 \
16499    thread_safe_flag_spec_F77 \
16500    whole_archive_flag_spec_F77 \
16501    enable_shared_with_static_runtimes_F77 \
16502    old_archive_cmds_F77 \
16503    old_archive_from_new_cmds_F77 \
16504    predep_objects_F77 \
16505    postdep_objects_F77 \
16506    predeps_F77 \
16507    postdeps_F77 \
16508    compiler_lib_search_path_F77 \
16509    compiler_lib_search_dirs_F77 \
16510    archive_cmds_F77 \
16511    archive_expsym_cmds_F77 \
16512    postinstall_cmds_F77 \
16513    postuninstall_cmds_F77 \
16514    old_archive_from_expsyms_cmds_F77 \
16515    allow_undefined_flag_F77 \
16516    no_undefined_flag_F77 \
16517    export_symbols_cmds_F77 \
16518    hardcode_libdir_flag_spec_F77 \
16519    hardcode_libdir_flag_spec_ld_F77 \
16520    hardcode_libdir_separator_F77 \
16521    hardcode_automatic_F77 \
16522    module_cmds_F77 \
16523    module_expsym_cmds_F77 \
16524    lt_cv_prog_compiler_c_o_F77 \
16525    fix_srcfile_path_F77 \
16526    exclude_expsyms_F77 \
16527    include_expsyms_F77; do
16528
16529    case $var in
16530    old_archive_cmds_F77 | \
16531    old_archive_from_new_cmds_F77 | \
16532    archive_cmds_F77 | \
16533    archive_expsym_cmds_F77 | \
16534    module_cmds_F77 | \
16535    module_expsym_cmds_F77 | \
16536    old_archive_from_expsyms_cmds_F77 | \
16537    export_symbols_cmds_F77 | \
16538    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16539    postinstall_cmds | postuninstall_cmds | \
16540    old_postinstall_cmds | old_postuninstall_cmds | \
16541    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16542      # Double-quote double-evaled strings.
16543      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16544      ;;
16545    *)
16546      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16547      ;;
16548    esac
16549  done
16550
16551  case $lt_echo in
16552  *'\$0 --fallback-echo"')
16553    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16554    ;;
16555  esac
16556
16557cfgfile="$ofile"
16558
16559  cat <<__EOF__ >> "$cfgfile"
16560# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16561
16562# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16563
16564# Shell to use when invoking shell scripts.
16565SHELL=$lt_SHELL
16566
16567# Whether or not to build shared libraries.
16568build_libtool_libs=$enable_shared
16569
16570# Whether or not to build static libraries.
16571build_old_libs=$enable_static
16572
16573# Whether or not to add -lc for building shared libraries.
16574build_libtool_need_lc=$archive_cmds_need_lc_F77
16575
16576# Whether or not to disallow shared libs when runtime libs are static
16577allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16578
16579# Whether or not to optimize for fast installation.
16580fast_install=$enable_fast_install
16581
16582# The host system.
16583host_alias=$host_alias
16584host=$host
16585host_os=$host_os
16586
16587# The build system.
16588build_alias=$build_alias
16589build=$build
16590build_os=$build_os
16591
16592# An echo program that does not interpret backslashes.
16593echo=$lt_echo
16594
16595# The archiver.
16596AR=$lt_AR
16597AR_FLAGS=$lt_AR_FLAGS
16598
16599# A C compiler.
16600LTCC=$lt_LTCC
16601
16602# LTCC compiler flags.
16603LTCFLAGS=$lt_LTCFLAGS
16604
16605# A language-specific compiler.
16606CC=$lt_compiler_F77
16607
16608# Is the compiler the GNU C compiler?
16609with_gcc=$GCC_F77
16610
16611# An ERE matcher.
16612EGREP=$lt_EGREP
16613
16614# The linker used to build libraries.
16615LD=$lt_LD_F77
16616
16617# Whether we need hard or soft links.
16618LN_S=$lt_LN_S
16619
16620# A BSD-compatible nm program.
16621NM=$lt_NM
16622
16623# A symbol stripping program
16624STRIP=$lt_STRIP
16625
16626# Used to examine libraries when file_magic_cmd begins "file"
16627MAGIC_CMD=$MAGIC_CMD
16628
16629# Used on cygwin: DLL creation program.
16630DLLTOOL="$DLLTOOL"
16631
16632# Used on cygwin: object dumper.
16633OBJDUMP="$OBJDUMP"
16634
16635# Used on cygwin: assembler.
16636AS="$AS"
16637
16638# The name of the directory that contains temporary libtool files.
16639objdir=$objdir
16640
16641# How to create reloadable object files.
16642reload_flag=$lt_reload_flag
16643reload_cmds=$lt_reload_cmds
16644
16645# How to pass a linker flag through the compiler.
16646wl=$lt_lt_prog_compiler_wl_F77
16647
16648# Object file suffix (normally "o").
16649objext="$ac_objext"
16650
16651# Old archive suffix (normally "a").
16652libext="$libext"
16653
16654# Shared library suffix (normally ".so").
16655shrext_cmds='$shrext_cmds'
16656
16657# Executable file suffix (normally "").
16658exeext="$exeext"
16659
16660# Additional compiler flags for building library objects.
16661pic_flag=$lt_lt_prog_compiler_pic_F77
16662pic_mode=$pic_mode
16663
16664# What is the maximum length of a command?
16665max_cmd_len=$lt_cv_sys_max_cmd_len
16666
16667# Does compiler simultaneously support -c and -o options?
16668compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16669
16670# Must we lock files when doing compilation?
16671need_locks=$lt_need_locks
16672
16673# Do we need the lib prefix for modules?
16674need_lib_prefix=$need_lib_prefix
16675
16676# Do we need a version for libraries?
16677need_version=$need_version
16678
16679# Whether dlopen is supported.
16680dlopen_support=$enable_dlopen
16681
16682# Whether dlopen of programs is supported.
16683dlopen_self=$enable_dlopen_self
16684
16685# Whether dlopen of statically linked programs is supported.
16686dlopen_self_static=$enable_dlopen_self_static
16687
16688# Compiler flag to prevent dynamic linking.
16689link_static_flag=$lt_lt_prog_compiler_static_F77
16690
16691# Compiler flag to turn off builtin functions.
16692no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16693
16694# Compiler flag to allow reflexive dlopens.
16695export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16696
16697# Compiler flag to generate shared objects directly from archives.
16698whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16699
16700# Compiler flag to generate thread-safe objects.
16701thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16702
16703# Library versioning type.
16704version_type=$version_type
16705
16706# Format of library name prefix.
16707libname_spec=$lt_libname_spec
16708
16709# List of archive names.  First name is the real one, the rest are links.
16710# The last name is the one that the linker finds with -lNAME.
16711library_names_spec=$lt_library_names_spec
16712
16713# The coded name of the library, if different from the real name.
16714soname_spec=$lt_soname_spec
16715
16716# Commands used to build and install an old-style archive.
16717RANLIB=$lt_RANLIB
16718old_archive_cmds=$lt_old_archive_cmds_F77
16719old_postinstall_cmds=$lt_old_postinstall_cmds
16720old_postuninstall_cmds=$lt_old_postuninstall_cmds
16721
16722# Create an old-style archive from a shared archive.
16723old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16724
16725# Create a temporary old-style archive to link instead of a shared archive.
16726old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16727
16728# Commands used to build and install a shared archive.
16729archive_cmds=$lt_archive_cmds_F77
16730archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16731postinstall_cmds=$lt_postinstall_cmds
16732postuninstall_cmds=$lt_postuninstall_cmds
16733
16734# Commands used to build a loadable module (assumed same as above if empty)
16735module_cmds=$lt_module_cmds_F77
16736module_expsym_cmds=$lt_module_expsym_cmds_F77
16737
16738# Commands to strip libraries.
16739old_striplib=$lt_old_striplib
16740striplib=$lt_striplib
16741
16742# Dependencies to place before the objects being linked to create a
16743# shared library.
16744predep_objects=$lt_predep_objects_F77
16745
16746# Dependencies to place after the objects being linked to create a
16747# shared library.
16748postdep_objects=$lt_postdep_objects_F77
16749
16750# Dependencies to place before the objects being linked to create a
16751# shared library.
16752predeps=$lt_predeps_F77
16753
16754# Dependencies to place after the objects being linked to create a
16755# shared library.
16756postdeps=$lt_postdeps_F77
16757
16758# The directories searched by this compiler when creating a shared
16759# library
16760compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16761
16762# The library search path used internally by the compiler when linking
16763# a shared library.
16764compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16765
16766# Method to check whether dependent libraries are shared objects.
16767deplibs_check_method=$lt_deplibs_check_method
16768
16769# Command to use when deplibs_check_method == file_magic.
16770file_magic_cmd=$lt_file_magic_cmd
16771
16772# Flag that allows shared libraries with undefined symbols to be built.
16773allow_undefined_flag=$lt_allow_undefined_flag_F77
16774
16775# Flag that forces no undefined symbols.
16776no_undefined_flag=$lt_no_undefined_flag_F77
16777
16778# Commands used to finish a libtool library installation in a directory.
16779finish_cmds=$lt_finish_cmds
16780
16781# Same as above, but a single script fragment to be evaled but not shown.
16782finish_eval=$lt_finish_eval
16783
16784# Take the output of nm and produce a listing of raw symbols and C names.
16785global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16786
16787# Transform the output of nm in a proper C declaration
16788global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16789
16790# Transform the output of nm in a C name address pair
16791global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16792
16793# This is the shared library runtime path variable.
16794runpath_var=$runpath_var
16795
16796# This is the shared library path variable.
16797shlibpath_var=$shlibpath_var
16798
16799# Is shlibpath searched before the hard-coded library search path?
16800shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16801
16802# How to hardcode a shared library path into an executable.
16803hardcode_action=$hardcode_action_F77
16804
16805# Whether we should hardcode library paths into libraries.
16806hardcode_into_libs=$hardcode_into_libs
16807
16808# Flag to hardcode \$libdir into a binary during linking.
16809# This must work even if \$libdir does not exist.
16810hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16811
16812# If ld is used when linking, flag to hardcode \$libdir into
16813# a binary during linking. This must work even if \$libdir does
16814# not exist.
16815hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16816
16817# Whether we need a single -rpath flag with a separated argument.
16818hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16819
16820# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16821# resulting binary.
16822hardcode_direct=$hardcode_direct_F77
16823
16824# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16825# resulting binary.
16826hardcode_minus_L=$hardcode_minus_L_F77
16827
16828# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16829# the resulting binary.
16830hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16831
16832# Set to yes if building a shared library automatically hardcodes DIR into the library
16833# and all subsequent libraries and executables linked against it.
16834hardcode_automatic=$hardcode_automatic_F77
16835
16836# Variables whose values should be saved in libtool wrapper scripts and
16837# restored at relink time.
16838variables_saved_for_relink="$variables_saved_for_relink"
16839
16840# Whether libtool must link a program against all its dependency libraries.
16841link_all_deplibs=$link_all_deplibs_F77
16842
16843# Compile-time system search path for libraries
16844sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16845
16846# Run-time system search path for libraries
16847sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16848
16849# Fix the shell variable \$srcfile for the compiler.
16850fix_srcfile_path=$lt_fix_srcfile_path
16851
16852# Set to yes if exported symbols are required.
16853always_export_symbols=$always_export_symbols_F77
16854
16855# The commands to list exported symbols.
16856export_symbols_cmds=$lt_export_symbols_cmds_F77
16857
16858# The commands to extract the exported symbol list from a shared archive.
16859extract_expsyms_cmds=$lt_extract_expsyms_cmds
16860
16861# Symbols that should not be listed in the preloaded symbols.
16862exclude_expsyms=$lt_exclude_expsyms_F77
16863
16864# Symbols that must always be exported.
16865include_expsyms=$lt_include_expsyms_F77
16866
16867# ### END LIBTOOL TAG CONFIG: $tagname
16868
16869__EOF__
16870
16871
16872else
16873  # If there is no Makefile yet, we rely on a make rule to execute
16874  # `config.status --recheck' to rerun these tests and create the
16875  # libtool script then.
16876  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16877  if test -f "$ltmain_in"; then
16878    test -f Makefile && make "$ltmain"
16879  fi
16880fi
16881
16882
16883ac_ext=c
16884ac_cpp='$CPP $CPPFLAGS'
16885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16887ac_compiler_gnu=$ac_cv_c_compiler_gnu
16888
16889CC="$lt_save_CC"
16890
16891	else
16892	  tagname=""
16893	fi
16894	;;
16895
16896      GCJ)
16897	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16898
16899
16900# Source file extension for Java test sources.
16901ac_ext=java
16902
16903# Object file extension for compiled Java test sources.
16904objext=o
16905objext_GCJ=$objext
16906
16907# Code to be used in simple compile tests
16908lt_simple_compile_test_code="class foo {}"
16909
16910# Code to be used in simple link tests
16911lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16912
16913# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16914
16915# If no C compiler was specified, use CC.
16916LTCC=${LTCC-"$CC"}
16917
16918# If no C compiler flags were specified, use CFLAGS.
16919LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16920
16921# Allow CC to be a program name with arguments.
16922compiler=$CC
16923
16924
16925# save warnings/boilerplate of simple test code
16926ac_outfile=conftest.$ac_objext
16927echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16928eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16929_lt_compiler_boilerplate=`cat conftest.err`
16930$rm conftest*
16931
16932ac_outfile=conftest.$ac_objext
16933echo "$lt_simple_link_test_code" >conftest.$ac_ext
16934eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16935_lt_linker_boilerplate=`cat conftest.err`
16936$rm -r conftest*
16937
16938
16939# Allow CC to be a program name with arguments.
16940lt_save_CC="$CC"
16941CC=${GCJ-"gcj"}
16942compiler=$CC
16943compiler_GCJ=$CC
16944for cc_temp in $compiler""; do
16945  case $cc_temp in
16946    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16947    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16948    \-*) ;;
16949    *) break;;
16950  esac
16951done
16952cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16953
16954LD_GCJ="$LD"
16955
16956# GCJ did not exist at the time GCC didn't implicitly link libc in.
16957archive_cmds_need_lc_GCJ=no
16958
16959old_archive_cmds_GCJ=$old_archive_cmds
16960
16961
16962lt_prog_compiler_no_builtin_flag_GCJ=
16963
16964if test "$GCC" = yes; then
16965  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16966
16967
16968{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16969$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16970if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16971  $as_echo_n "(cached) " >&6
16972else
16973  lt_cv_prog_compiler_rtti_exceptions=no
16974  ac_outfile=conftest.$ac_objext
16975   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16976   lt_compiler_flag="-fno-rtti -fno-exceptions"
16977   # Insert the option either (1) after the last *FLAGS variable, or
16978   # (2) before a word containing "conftest.", or (3) at the end.
16979   # Note that $ac_compile itself does not contain backslashes and begins
16980   # with a dollar sign (not a hyphen), so the echo should work correctly.
16981   # The option is referenced via a variable to avoid confusing sed.
16982   lt_compile=`echo "$ac_compile" | $SED \
16983   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16984   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16985   -e 's:$: $lt_compiler_flag:'`
16986   (eval echo "\"\$as_me:16986: $lt_compile\"" >&5)
16987   (eval "$lt_compile" 2>conftest.err)
16988   ac_status=$?
16989   cat conftest.err >&5
16990   echo "$as_me:16990: \$? = $ac_status" >&5
16991   if (exit $ac_status) && test -s "$ac_outfile"; then
16992     # The compiler can only warn and ignore the option if not recognized
16993     # So say no if there are warnings other than the usual output.
16994     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16995     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16996     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16997       lt_cv_prog_compiler_rtti_exceptions=yes
16998     fi
16999   fi
17000   $rm conftest*
17001
17002fi
17003{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17004$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17005
17006if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17007    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17008else
17009    :
17010fi
17011
17012fi
17013
17014lt_prog_compiler_wl_GCJ=
17015lt_prog_compiler_pic_GCJ=
17016lt_prog_compiler_static_GCJ=
17017
17018{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17019$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17020
17021  if test "$GCC" = yes; then
17022    lt_prog_compiler_wl_GCJ='-Wl,'
17023    lt_prog_compiler_static_GCJ='-static'
17024
17025    case $host_os in
17026      aix*)
17027      # All AIX code is PIC.
17028      if test "$host_cpu" = ia64; then
17029	# AIX 5 now supports IA64 processor
17030	lt_prog_compiler_static_GCJ='-Bstatic'
17031      fi
17032      ;;
17033
17034    amigaos*)
17035      # FIXME: we need at least 68020 code to build shared libraries, but
17036      # adding the `-m68020' flag to GCC prevents building anything better,
17037      # like `-m68040'.
17038      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17039      ;;
17040
17041    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17042      # PIC is the default for these OSes.
17043      ;;
17044
17045    mingw* | cygwin* | pw32* | os2*)
17046      # This hack is so that the source file can tell whether it is being
17047      # built for inclusion in a dll (and should export symbols for example).
17048      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17049      # (--disable-auto-import) libraries
17050
17051      ;;
17052
17053    darwin* | rhapsody*)
17054      # PIC is the default on this platform
17055      # Common symbols not allowed in MH_DYLIB files
17056      lt_prog_compiler_pic_GCJ='-fno-common'
17057      ;;
17058
17059    interix[3-9]*)
17060      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17061      # Instead, we relocate shared libraries at runtime.
17062      ;;
17063
17064    msdosdjgpp*)
17065      # Just because we use GCC doesn't mean we suddenly get shared libraries
17066      # on systems that don't support them.
17067      lt_prog_compiler_can_build_shared_GCJ=no
17068      enable_shared=no
17069      ;;
17070
17071    sysv4*MP*)
17072      if test -d /usr/nec; then
17073	lt_prog_compiler_pic_GCJ=-Kconform_pic
17074      fi
17075      ;;
17076
17077    hpux*)
17078      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17079      # not for PA HP-UX.
17080      case $host_cpu in
17081      hppa*64*|ia64*)
17082	# +Z the default
17083	;;
17084      *)
17085	lt_prog_compiler_pic_GCJ='-fPIC'
17086	;;
17087      esac
17088      ;;
17089
17090    *)
17091      lt_prog_compiler_pic_GCJ='-fPIC'
17092      ;;
17093    esac
17094  else
17095    # PORTME Check for flag to pass linker flags through the system compiler.
17096    case $host_os in
17097    aix*)
17098      lt_prog_compiler_wl_GCJ='-Wl,'
17099      if test "$host_cpu" = ia64; then
17100	# AIX 5 now supports IA64 processor
17101	lt_prog_compiler_static_GCJ='-Bstatic'
17102      else
17103	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17104      fi
17105      ;;
17106      darwin*)
17107        # PIC is the default on this platform
17108        # Common symbols not allowed in MH_DYLIB files
17109       case $cc_basename in
17110         xlc*)
17111         lt_prog_compiler_pic_GCJ='-qnocommon'
17112         lt_prog_compiler_wl_GCJ='-Wl,'
17113         ;;
17114       esac
17115       ;;
17116
17117    mingw* | cygwin* | pw32* | os2*)
17118      # This hack is so that the source file can tell whether it is being
17119      # built for inclusion in a dll (and should export symbols for example).
17120
17121      ;;
17122
17123    hpux9* | hpux10* | hpux11*)
17124      lt_prog_compiler_wl_GCJ='-Wl,'
17125      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17126      # not for PA HP-UX.
17127      case $host_cpu in
17128      hppa*64*|ia64*)
17129	# +Z the default
17130	;;
17131      *)
17132	lt_prog_compiler_pic_GCJ='+Z'
17133	;;
17134      esac
17135      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17136      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17137      ;;
17138
17139    irix5* | irix6* | nonstopux*)
17140      lt_prog_compiler_wl_GCJ='-Wl,'
17141      # PIC (with -KPIC) is the default.
17142      lt_prog_compiler_static_GCJ='-non_shared'
17143      ;;
17144
17145    newsos6)
17146      lt_prog_compiler_pic_GCJ='-KPIC'
17147      lt_prog_compiler_static_GCJ='-Bstatic'
17148      ;;
17149
17150    linux* | k*bsd*-gnu)
17151      case $cc_basename in
17152      icc* | ecc*)
17153	lt_prog_compiler_wl_GCJ='-Wl,'
17154	lt_prog_compiler_pic_GCJ='-KPIC'
17155	lt_prog_compiler_static_GCJ='-static'
17156        ;;
17157      pgcc* | pgf77* | pgf90* | pgf95*)
17158        # Portland Group compilers (*not* the Pentium gcc compiler,
17159	# which looks to be a dead project)
17160	lt_prog_compiler_wl_GCJ='-Wl,'
17161	lt_prog_compiler_pic_GCJ='-fpic'
17162	lt_prog_compiler_static_GCJ='-Bstatic'
17163        ;;
17164      ccc*)
17165        lt_prog_compiler_wl_GCJ='-Wl,'
17166        # All Alpha code is PIC.
17167        lt_prog_compiler_static_GCJ='-non_shared'
17168        ;;
17169      *)
17170        case `$CC -V 2>&1 | sed 5q` in
17171	*Sun\ C*)
17172	  # Sun C 5.9
17173	  lt_prog_compiler_pic_GCJ='-KPIC'
17174	  lt_prog_compiler_static_GCJ='-Bstatic'
17175	  lt_prog_compiler_wl_GCJ='-Wl,'
17176	  ;;
17177	*Sun\ F*)
17178	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17179	  lt_prog_compiler_pic_GCJ='-KPIC'
17180	  lt_prog_compiler_static_GCJ='-Bstatic'
17181	  lt_prog_compiler_wl_GCJ=''
17182	  ;;
17183	esac
17184	;;
17185      esac
17186      ;;
17187
17188    osf3* | osf4* | osf5*)
17189      lt_prog_compiler_wl_GCJ='-Wl,'
17190      # All OSF/1 code is PIC.
17191      lt_prog_compiler_static_GCJ='-non_shared'
17192      ;;
17193
17194    rdos*)
17195      lt_prog_compiler_static_GCJ='-non_shared'
17196      ;;
17197
17198    solaris*)
17199      lt_prog_compiler_pic_GCJ='-KPIC'
17200      lt_prog_compiler_static_GCJ='-Bstatic'
17201      case $cc_basename in
17202      f77* | f90* | f95*)
17203	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17204      *)
17205	lt_prog_compiler_wl_GCJ='-Wl,';;
17206      esac
17207      ;;
17208
17209    sunos4*)
17210      lt_prog_compiler_wl_GCJ='-Qoption ld '
17211      lt_prog_compiler_pic_GCJ='-PIC'
17212      lt_prog_compiler_static_GCJ='-Bstatic'
17213      ;;
17214
17215    sysv4 | sysv4.2uw2* | sysv4.3*)
17216      lt_prog_compiler_wl_GCJ='-Wl,'
17217      lt_prog_compiler_pic_GCJ='-KPIC'
17218      lt_prog_compiler_static_GCJ='-Bstatic'
17219      ;;
17220
17221    sysv4*MP*)
17222      if test -d /usr/nec ;then
17223	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17224	lt_prog_compiler_static_GCJ='-Bstatic'
17225      fi
17226      ;;
17227
17228    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17229      lt_prog_compiler_wl_GCJ='-Wl,'
17230      lt_prog_compiler_pic_GCJ='-KPIC'
17231      lt_prog_compiler_static_GCJ='-Bstatic'
17232      ;;
17233
17234    unicos*)
17235      lt_prog_compiler_wl_GCJ='-Wl,'
17236      lt_prog_compiler_can_build_shared_GCJ=no
17237      ;;
17238
17239    uts4*)
17240      lt_prog_compiler_pic_GCJ='-pic'
17241      lt_prog_compiler_static_GCJ='-Bstatic'
17242      ;;
17243
17244    *)
17245      lt_prog_compiler_can_build_shared_GCJ=no
17246      ;;
17247    esac
17248  fi
17249
17250{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17251$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17252
17253#
17254# Check to make sure the PIC flag actually works.
17255#
17256if test -n "$lt_prog_compiler_pic_GCJ"; then
17257
17258{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17259$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17260if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17261  $as_echo_n "(cached) " >&6
17262else
17263  lt_cv_prog_compiler_pic_works_GCJ=no
17264  ac_outfile=conftest.$ac_objext
17265   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17266   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17267   # Insert the option either (1) after the last *FLAGS variable, or
17268   # (2) before a word containing "conftest.", or (3) at the end.
17269   # Note that $ac_compile itself does not contain backslashes and begins
17270   # with a dollar sign (not a hyphen), so the echo should work correctly.
17271   # The option is referenced via a variable to avoid confusing sed.
17272   lt_compile=`echo "$ac_compile" | $SED \
17273   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17274   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17275   -e 's:$: $lt_compiler_flag:'`
17276   (eval echo "\"\$as_me:17276: $lt_compile\"" >&5)
17277   (eval "$lt_compile" 2>conftest.err)
17278   ac_status=$?
17279   cat conftest.err >&5
17280   echo "$as_me:17280: \$? = $ac_status" >&5
17281   if (exit $ac_status) && test -s "$ac_outfile"; then
17282     # The compiler can only warn and ignore the option if not recognized
17283     # So say no if there are warnings other than the usual output.
17284     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17285     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17286     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17287       lt_cv_prog_compiler_pic_works_GCJ=yes
17288     fi
17289   fi
17290   $rm conftest*
17291
17292fi
17293{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17294$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17295
17296if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17297    case $lt_prog_compiler_pic_GCJ in
17298     "" | " "*) ;;
17299     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17300     esac
17301else
17302    lt_prog_compiler_pic_GCJ=
17303     lt_prog_compiler_can_build_shared_GCJ=no
17304fi
17305
17306fi
17307case $host_os in
17308  # For platforms which do not support PIC, -DPIC is meaningless:
17309  *djgpp*)
17310    lt_prog_compiler_pic_GCJ=
17311    ;;
17312  *)
17313    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17314    ;;
17315esac
17316
17317#
17318# Check to make sure the static flag actually works.
17319#
17320wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17321{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17322$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17323if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17324  $as_echo_n "(cached) " >&6
17325else
17326  lt_cv_prog_compiler_static_works_GCJ=no
17327   save_LDFLAGS="$LDFLAGS"
17328   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17329   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17330   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17331     # The linker can only warn and ignore the option if not recognized
17332     # So say no if there are warnings
17333     if test -s conftest.err; then
17334       # Append any errors to the config.log.
17335       cat conftest.err 1>&5
17336       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17337       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17338       if diff conftest.exp conftest.er2 >/dev/null; then
17339         lt_cv_prog_compiler_static_works_GCJ=yes
17340       fi
17341     else
17342       lt_cv_prog_compiler_static_works_GCJ=yes
17343     fi
17344   fi
17345   $rm -r conftest*
17346   LDFLAGS="$save_LDFLAGS"
17347
17348fi
17349{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17350$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17351
17352if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17353    :
17354else
17355    lt_prog_compiler_static_GCJ=
17356fi
17357
17358
17359{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17360$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17361if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17362  $as_echo_n "(cached) " >&6
17363else
17364  lt_cv_prog_compiler_c_o_GCJ=no
17365   $rm -r conftest 2>/dev/null
17366   mkdir conftest
17367   cd conftest
17368   mkdir out
17369   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17370
17371   lt_compiler_flag="-o out/conftest2.$ac_objext"
17372   # Insert the option either (1) after the last *FLAGS variable, or
17373   # (2) before a word containing "conftest.", or (3) at the end.
17374   # Note that $ac_compile itself does not contain backslashes and begins
17375   # with a dollar sign (not a hyphen), so the echo should work correctly.
17376   lt_compile=`echo "$ac_compile" | $SED \
17377   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17378   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17379   -e 's:$: $lt_compiler_flag:'`
17380   (eval echo "\"\$as_me:17380: $lt_compile\"" >&5)
17381   (eval "$lt_compile" 2>out/conftest.err)
17382   ac_status=$?
17383   cat out/conftest.err >&5
17384   echo "$as_me:17384: \$? = $ac_status" >&5
17385   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17386   then
17387     # The compiler can only warn and ignore the option if not recognized
17388     # So say no if there are warnings
17389     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17390     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17391     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17392       lt_cv_prog_compiler_c_o_GCJ=yes
17393     fi
17394   fi
17395   chmod u+w . 2>&5
17396   $rm conftest*
17397   # SGI C++ compiler will create directory out/ii_files/ for
17398   # template instantiation
17399   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17400   $rm out/* && rmdir out
17401   cd ..
17402   rmdir conftest
17403   $rm conftest*
17404
17405fi
17406{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17407$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17408
17409
17410hard_links="nottested"
17411if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17412  # do not overwrite the value of need_locks provided by the user
17413  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17414$as_echo_n "checking if we can lock with hard links... " >&6; }
17415  hard_links=yes
17416  $rm conftest*
17417  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17418  touch conftest.a
17419  ln conftest.a conftest.b 2>&5 || hard_links=no
17420  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17421  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17422$as_echo "$hard_links" >&6; }
17423  if test "$hard_links" = no; then
17424    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17425$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17426    need_locks=warn
17427  fi
17428else
17429  need_locks=no
17430fi
17431
17432{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17433$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17434
17435  runpath_var=
17436  allow_undefined_flag_GCJ=
17437  enable_shared_with_static_runtimes_GCJ=no
17438  archive_cmds_GCJ=
17439  archive_expsym_cmds_GCJ=
17440  old_archive_From_new_cmds_GCJ=
17441  old_archive_from_expsyms_cmds_GCJ=
17442  export_dynamic_flag_spec_GCJ=
17443  whole_archive_flag_spec_GCJ=
17444  thread_safe_flag_spec_GCJ=
17445  hardcode_libdir_flag_spec_GCJ=
17446  hardcode_libdir_flag_spec_ld_GCJ=
17447  hardcode_libdir_separator_GCJ=
17448  hardcode_direct_GCJ=no
17449  hardcode_minus_L_GCJ=no
17450  hardcode_shlibpath_var_GCJ=unsupported
17451  link_all_deplibs_GCJ=unknown
17452  hardcode_automatic_GCJ=no
17453  module_cmds_GCJ=
17454  module_expsym_cmds_GCJ=
17455  always_export_symbols_GCJ=no
17456  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17457  # include_expsyms should be a list of space-separated symbols to be *always*
17458  # included in the symbol list
17459  include_expsyms_GCJ=
17460  # exclude_expsyms can be an extended regexp of symbols to exclude
17461  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17462  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17463  # as well as any symbol that contains `d'.
17464  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17465  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17466  # platforms (ab)use it in PIC code, but their linkers get confused if
17467  # the symbol is explicitly referenced.  Since portable code cannot
17468  # rely on this symbol name, it's probably fine to never include it in
17469  # preloaded symbol tables.
17470  # Exclude shared library initialization/finalization symbols.
17471  extract_expsyms_cmds=
17472  # Just being paranoid about ensuring that cc_basename is set.
17473  for cc_temp in $compiler""; do
17474  case $cc_temp in
17475    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17476    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17477    \-*) ;;
17478    *) break;;
17479  esac
17480done
17481cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17482
17483  case $host_os in
17484  cygwin* | mingw* | pw32*)
17485    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17486    # When not using gcc, we currently assume that we are using
17487    # Microsoft Visual C++.
17488    if test "$GCC" != yes; then
17489      with_gnu_ld=no
17490    fi
17491    ;;
17492  interix*)
17493    # we just hope/assume this is gcc and not c89 (= MSVC++)
17494    with_gnu_ld=yes
17495    ;;
17496  openbsd*)
17497    with_gnu_ld=no
17498    ;;
17499  esac
17500
17501  ld_shlibs_GCJ=yes
17502  if test "$with_gnu_ld" = yes; then
17503    # If archive_cmds runs LD, not CC, wlarc should be empty
17504    wlarc='${wl}'
17505
17506    # Set some defaults for GNU ld with shared library support. These
17507    # are reset later if shared libraries are not supported. Putting them
17508    # here allows them to be overridden if necessary.
17509    runpath_var=LD_RUN_PATH
17510    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17511    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17512    # ancient GNU ld didn't support --whole-archive et. al.
17513    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17514	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17515      else
17516  	whole_archive_flag_spec_GCJ=
17517    fi
17518    supports_anon_versioning=no
17519    case `$LD -v 2>/dev/null` in
17520      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17521      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17522      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17523      *\ 2.11.*) ;; # other 2.11 versions
17524      *) supports_anon_versioning=yes ;;
17525    esac
17526
17527    # See if GNU ld supports shared libraries.
17528    case $host_os in
17529    aix[3-9]*)
17530      # On AIX/PPC, the GNU linker is very broken
17531      if test "$host_cpu" != ia64; then
17532	ld_shlibs_GCJ=no
17533	cat <<EOF 1>&2
17534
17535*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17536*** to be unable to reliably create shared libraries on AIX.
17537*** Therefore, libtool is disabling shared libraries support.  If you
17538*** really care for shared libraries, you may want to modify your PATH
17539*** so that a non-GNU linker is found, and then restart.
17540
17541EOF
17542      fi
17543      ;;
17544
17545    amigaos*)
17546      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)'
17547      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17548      hardcode_minus_L_GCJ=yes
17549
17550      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17551      # that the semantics of dynamic libraries on AmigaOS, at least up
17552      # to version 4, is to share data among multiple programs linked
17553      # with the same dynamic library.  Since this doesn't match the
17554      # behavior of shared libraries on other platforms, we can't use
17555      # them.
17556      ld_shlibs_GCJ=no
17557      ;;
17558
17559    beos*)
17560      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17561	allow_undefined_flag_GCJ=unsupported
17562	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17563	# support --undefined.  This deserves some investigation.  FIXME
17564	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17565      else
17566	ld_shlibs_GCJ=no
17567      fi
17568      ;;
17569
17570    cygwin* | mingw* | pw32*)
17571      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17572      # as there is no search path for DLLs.
17573      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17574      allow_undefined_flag_GCJ=unsupported
17575      always_export_symbols_GCJ=no
17576      enable_shared_with_static_runtimes_GCJ=yes
17577      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17578
17579      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17580        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17581	# If the export-symbols file already is a .def file (1st line
17582	# is EXPORTS), use it as is; otherwise, prepend...
17583	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17584	  cp $export_symbols $output_objdir/$soname.def;
17585	else
17586	  echo EXPORTS > $output_objdir/$soname.def;
17587	  cat $export_symbols >> $output_objdir/$soname.def;
17588	fi~
17589	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17590      else
17591	ld_shlibs_GCJ=no
17592      fi
17593      ;;
17594
17595    interix[3-9]*)
17596      hardcode_direct_GCJ=no
17597      hardcode_shlibpath_var_GCJ=no
17598      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17599      export_dynamic_flag_spec_GCJ='${wl}-E'
17600      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17601      # Instead, shared libraries are loaded at an image base (0x10000000 by
17602      # default) and relocated if they conflict, which is a slow very memory
17603      # consuming and fragmenting process.  To avoid this, we pick a random,
17604      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17605      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17606      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'
17607      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'
17608      ;;
17609
17610    gnu* | linux* | k*bsd*-gnu)
17611      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17612	tmp_addflag=
17613	case $cc_basename,$host_cpu in
17614	pgcc*)				# Portland Group C compiler
17615	  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'
17616	  tmp_addflag=' $pic_flag'
17617	  ;;
17618	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17619	  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'
17620	  tmp_addflag=' $pic_flag -Mnomain' ;;
17621	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17622	  tmp_addflag=' -i_dynamic' ;;
17623	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17624	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17625	ifc* | ifort*)			# Intel Fortran compiler
17626	  tmp_addflag=' -nofor_main' ;;
17627	esac
17628	case `$CC -V 2>&1 | sed 5q` in
17629	*Sun\ C*)			# Sun C 5.9
17630	  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'
17631	  tmp_sharedflag='-G' ;;
17632	*Sun\ F*)			# Sun Fortran 8.3
17633	  tmp_sharedflag='-G' ;;
17634	*)
17635	  tmp_sharedflag='-shared' ;;
17636	esac
17637	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17638
17639	if test $supports_anon_versioning = yes; then
17640	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17641  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17642  $echo "local: *; };" >> $output_objdir/$libname.ver~
17643	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17644	fi
17645	link_all_deplibs_GCJ=no
17646      else
17647	ld_shlibs_GCJ=no
17648      fi
17649      ;;
17650
17651    netbsd*)
17652      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17653	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17654	wlarc=
17655      else
17656	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17657	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17658      fi
17659      ;;
17660
17661    solaris*)
17662      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17663	ld_shlibs_GCJ=no
17664	cat <<EOF 1>&2
17665
17666*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17667*** create shared libraries on Solaris systems.  Therefore, libtool
17668*** is disabling shared libraries support.  We urge you to upgrade GNU
17669*** binutils to release 2.9.1 or newer.  Another option is to modify
17670*** your PATH or compiler configuration so that the native linker is
17671*** used, and then restart.
17672
17673EOF
17674      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17675	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17676	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17677      else
17678	ld_shlibs_GCJ=no
17679      fi
17680      ;;
17681
17682    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17683      case `$LD -v 2>&1` in
17684        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17685	ld_shlibs_GCJ=no
17686	cat <<_LT_EOF 1>&2
17687
17688*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17689*** reliably create shared libraries on SCO systems.  Therefore, libtool
17690*** is disabling shared libraries support.  We urge you to upgrade GNU
17691*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17692*** your PATH or compiler configuration so that the native linker is
17693*** used, and then restart.
17694
17695_LT_EOF
17696	;;
17697	*)
17698	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17699	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17700	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17701	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17702	  else
17703	    ld_shlibs_GCJ=no
17704	  fi
17705	;;
17706      esac
17707      ;;
17708
17709    sunos4*)
17710      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17711      wlarc=
17712      hardcode_direct_GCJ=yes
17713      hardcode_shlibpath_var_GCJ=no
17714      ;;
17715
17716    *)
17717      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17718	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17719	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17720      else
17721	ld_shlibs_GCJ=no
17722      fi
17723      ;;
17724    esac
17725
17726    if test "$ld_shlibs_GCJ" = no; then
17727      runpath_var=
17728      hardcode_libdir_flag_spec_GCJ=
17729      export_dynamic_flag_spec_GCJ=
17730      whole_archive_flag_spec_GCJ=
17731    fi
17732  else
17733    # PORTME fill in a description of your system's linker (not GNU ld)
17734    case $host_os in
17735    aix3*)
17736      allow_undefined_flag_GCJ=unsupported
17737      always_export_symbols_GCJ=yes
17738      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'
17739      # Note: this linker hardcodes the directories in LIBPATH if there
17740      # are no directories specified by -L.
17741      hardcode_minus_L_GCJ=yes
17742      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17743	# Neither direct hardcoding nor static linking is supported with a
17744	# broken collect2.
17745	hardcode_direct_GCJ=unsupported
17746      fi
17747      ;;
17748
17749    aix[4-9]*)
17750      if test "$host_cpu" = ia64; then
17751	# On IA64, the linker does run time linking by default, so we don't
17752	# have to do anything special.
17753	aix_use_runtimelinking=no
17754	exp_sym_flag='-Bexport'
17755	no_entry_flag=""
17756      else
17757	# If we're using GNU nm, then we don't want the "-C" option.
17758	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17759	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17760	  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'
17761	else
17762	  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'
17763	fi
17764	aix_use_runtimelinking=no
17765
17766	# Test if we are trying to use run time linking or normal
17767	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17768	# need to do runtime linking.
17769	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17770	  for ld_flag in $LDFLAGS; do
17771  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17772  	    aix_use_runtimelinking=yes
17773  	    break
17774  	  fi
17775	  done
17776	  ;;
17777	esac
17778
17779	exp_sym_flag='-bexport'
17780	no_entry_flag='-bnoentry'
17781      fi
17782
17783      # When large executables or shared objects are built, AIX ld can
17784      # have problems creating the table of contents.  If linking a library
17785      # or program results in "error TOC overflow" add -mminimal-toc to
17786      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17787      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17788
17789      archive_cmds_GCJ=''
17790      hardcode_direct_GCJ=yes
17791      hardcode_libdir_separator_GCJ=':'
17792      link_all_deplibs_GCJ=yes
17793
17794      if test "$GCC" = yes; then
17795	case $host_os in aix4.[012]|aix4.[012].*)
17796	# We only want to do this on AIX 4.2 and lower, the check
17797	# below for broken collect2 doesn't work under 4.3+
17798	  collect2name=`${CC} -print-prog-name=collect2`
17799	  if test -f "$collect2name" && \
17800  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17801	  then
17802  	  # We have reworked collect2
17803  	  :
17804	  else
17805  	  # We have old collect2
17806  	  hardcode_direct_GCJ=unsupported
17807  	  # It fails to find uninstalled libraries when the uninstalled
17808  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17809  	  # to unsupported forces relinking
17810  	  hardcode_minus_L_GCJ=yes
17811  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17812  	  hardcode_libdir_separator_GCJ=
17813	  fi
17814	  ;;
17815	esac
17816	shared_flag='-shared'
17817	if test "$aix_use_runtimelinking" = yes; then
17818	  shared_flag="$shared_flag "'${wl}-G'
17819	fi
17820      else
17821	# not using gcc
17822	if test "$host_cpu" = ia64; then
17823  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17824  	# chokes on -Wl,-G. The following line is correct:
17825	  shared_flag='-G'
17826	else
17827	  if test "$aix_use_runtimelinking" = yes; then
17828	    shared_flag='${wl}-G'
17829	  else
17830	    shared_flag='${wl}-bM:SRE'
17831	  fi
17832	fi
17833      fi
17834
17835      # It seems that -bexpall does not export symbols beginning with
17836      # underscore (_), so it is better to generate a list of symbols to export.
17837      always_export_symbols_GCJ=yes
17838      if test "$aix_use_runtimelinking" = yes; then
17839	# Warning - without using the other runtime loading flags (-brtl),
17840	# -berok will link without error, but may produce a broken library.
17841	allow_undefined_flag_GCJ='-berok'
17842       # Determine the default libpath from the value encoded in an empty executable.
17843       cat >conftest.$ac_ext <<_ACEOF
17844/* confdefs.h.  */
17845_ACEOF
17846cat confdefs.h >>conftest.$ac_ext
17847cat >>conftest.$ac_ext <<_ACEOF
17848/* end confdefs.h.  */
17849
17850int
17851main ()
17852{
17853
17854  ;
17855  return 0;
17856}
17857_ACEOF
17858rm -f conftest.$ac_objext conftest$ac_exeext
17859if { (ac_try="$ac_link"
17860case "(($ac_try" in
17861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862  *) ac_try_echo=$ac_try;;
17863esac
17864eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17865$as_echo "$ac_try_echo") >&5
17866  (eval "$ac_link") 2>conftest.er1
17867  ac_status=$?
17868  grep -v '^ *+' conftest.er1 >conftest.err
17869  rm -f conftest.er1
17870  cat conftest.err >&5
17871  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872  (exit $ac_status); } && {
17873	 test -z "$ac_c_werror_flag" ||
17874	 test ! -s conftest.err
17875       } && test -s conftest$ac_exeext && {
17876	 test "$cross_compiling" = yes ||
17877	 $as_test_x conftest$ac_exeext
17878       }; then
17879
17880lt_aix_libpath_sed='
17881    /Import File Strings/,/^$/ {
17882	/^0/ {
17883	    s/^0  *\(.*\)$/\1/
17884	    p
17885	}
17886    }'
17887aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17888# Check for a 64-bit object if we didn't find anything.
17889if test -z "$aix_libpath"; then
17890  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17891fi
17892else
17893  $as_echo "$as_me: failed program was:" >&5
17894sed 's/^/| /' conftest.$ac_ext >&5
17895
17896
17897fi
17898
17899rm -rf conftest.dSYM
17900rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17901      conftest$ac_exeext conftest.$ac_ext
17902if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17903
17904       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17905	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"
17906       else
17907	if test "$host_cpu" = ia64; then
17908	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17909	  allow_undefined_flag_GCJ="-z nodefs"
17910	  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"
17911	else
17912	 # Determine the default libpath from the value encoded in an empty executable.
17913	 cat >conftest.$ac_ext <<_ACEOF
17914/* confdefs.h.  */
17915_ACEOF
17916cat confdefs.h >>conftest.$ac_ext
17917cat >>conftest.$ac_ext <<_ACEOF
17918/* end confdefs.h.  */
17919
17920int
17921main ()
17922{
17923
17924  ;
17925  return 0;
17926}
17927_ACEOF
17928rm -f conftest.$ac_objext conftest$ac_exeext
17929if { (ac_try="$ac_link"
17930case "(($ac_try" in
17931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17932  *) ac_try_echo=$ac_try;;
17933esac
17934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17935$as_echo "$ac_try_echo") >&5
17936  (eval "$ac_link") 2>conftest.er1
17937  ac_status=$?
17938  grep -v '^ *+' conftest.er1 >conftest.err
17939  rm -f conftest.er1
17940  cat conftest.err >&5
17941  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942  (exit $ac_status); } && {
17943	 test -z "$ac_c_werror_flag" ||
17944	 test ! -s conftest.err
17945       } && test -s conftest$ac_exeext && {
17946	 test "$cross_compiling" = yes ||
17947	 $as_test_x conftest$ac_exeext
17948       }; then
17949
17950lt_aix_libpath_sed='
17951    /Import File Strings/,/^$/ {
17952	/^0/ {
17953	    s/^0  *\(.*\)$/\1/
17954	    p
17955	}
17956    }'
17957aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17958# Check for a 64-bit object if we didn't find anything.
17959if test -z "$aix_libpath"; then
17960  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17961fi
17962else
17963  $as_echo "$as_me: failed program was:" >&5
17964sed 's/^/| /' conftest.$ac_ext >&5
17965
17966
17967fi
17968
17969rm -rf conftest.dSYM
17970rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17971      conftest$ac_exeext conftest.$ac_ext
17972if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17973
17974	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17975	  # Warning - without using the other run time loading flags,
17976	  # -berok will link without error, but may produce a broken library.
17977	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17978	  allow_undefined_flag_GCJ=' ${wl}-berok'
17979	  # Exported symbols can be pulled into shared objects from archives
17980	  whole_archive_flag_spec_GCJ='$convenience'
17981	  archive_cmds_need_lc_GCJ=yes
17982	  # This is similar to how AIX traditionally builds its shared libraries.
17983	  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'
17984	fi
17985      fi
17986      ;;
17987
17988    amigaos*)
17989      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)'
17990      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17991      hardcode_minus_L_GCJ=yes
17992      # see comment about different semantics on the GNU ld section
17993      ld_shlibs_GCJ=no
17994      ;;
17995
17996    bsdi[45]*)
17997      export_dynamic_flag_spec_GCJ=-rdynamic
17998      ;;
17999
18000    cygwin* | mingw* | pw32*)
18001      # When not using gcc, we currently assume that we are using
18002      # Microsoft Visual C++.
18003      # hardcode_libdir_flag_spec is actually meaningless, as there is
18004      # no search path for DLLs.
18005      hardcode_libdir_flag_spec_GCJ=' '
18006      allow_undefined_flag_GCJ=unsupported
18007      # Tell ltmain to make .lib files, not .a files.
18008      libext=lib
18009      # Tell ltmain to make .dll files, not .so files.
18010      shrext_cmds=".dll"
18011      # FIXME: Setting linknames here is a bad hack.
18012      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18013      # The linker will automatically build a .lib file if we build a DLL.
18014      old_archive_From_new_cmds_GCJ='true'
18015      # FIXME: Should let the user specify the lib program.
18016      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18017      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18018      enable_shared_with_static_runtimes_GCJ=yes
18019      ;;
18020
18021    darwin* | rhapsody*)
18022      case $host_os in
18023        rhapsody* | darwin1.[012])
18024         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18025         ;;
18026       *) # Darwin 1.3 on
18027         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18028           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18029         else
18030           case ${MACOSX_DEPLOYMENT_TARGET} in
18031             10.[012])
18032               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18033               ;;
18034             10.*)
18035               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18036               ;;
18037           esac
18038         fi
18039         ;;
18040      esac
18041      archive_cmds_need_lc_GCJ=no
18042      hardcode_direct_GCJ=no
18043      hardcode_automatic_GCJ=yes
18044      hardcode_shlibpath_var_GCJ=unsupported
18045      whole_archive_flag_spec_GCJ=''
18046      link_all_deplibs_GCJ=yes
18047    if test "$GCC" = yes ; then
18048    	output_verbose_link_cmd='echo'
18049        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}"
18050        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18051        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}"
18052        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}"
18053    else
18054      case $cc_basename in
18055        xlc*)
18056         output_verbose_link_cmd='echo'
18057         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18058         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18059          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18060         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}'
18061          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}'
18062          ;;
18063       *)
18064         ld_shlibs_GCJ=no
18065          ;;
18066      esac
18067    fi
18068      ;;
18069
18070    dgux*)
18071      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18072      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18073      hardcode_shlibpath_var_GCJ=no
18074      ;;
18075
18076    freebsd1*)
18077      ld_shlibs_GCJ=no
18078      ;;
18079
18080    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18081    # support.  Future versions do this automatically, but an explicit c++rt0.o
18082    # does not break anything, and helps significantly (at the cost of a little
18083    # extra space).
18084    freebsd2.2*)
18085      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18086      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18087      hardcode_direct_GCJ=yes
18088      hardcode_shlibpath_var_GCJ=no
18089      ;;
18090
18091    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18092    freebsd2*)
18093      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18094      hardcode_direct_GCJ=yes
18095      hardcode_minus_L_GCJ=yes
18096      hardcode_shlibpath_var_GCJ=no
18097      ;;
18098
18099    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18100    freebsd* | dragonfly*)
18101      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18102      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18103      hardcode_direct_GCJ=yes
18104      hardcode_shlibpath_var_GCJ=no
18105      ;;
18106
18107    hpux9*)
18108      if test "$GCC" = yes; then
18109	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'
18110      else
18111	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'
18112      fi
18113      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18114      hardcode_libdir_separator_GCJ=:
18115      hardcode_direct_GCJ=yes
18116
18117      # hardcode_minus_L: Not really in the search PATH,
18118      # but as the default location of the library.
18119      hardcode_minus_L_GCJ=yes
18120      export_dynamic_flag_spec_GCJ='${wl}-E'
18121      ;;
18122
18123    hpux10*)
18124      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18125	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18126      else
18127	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18128      fi
18129      if test "$with_gnu_ld" = no; then
18130	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18131	hardcode_libdir_separator_GCJ=:
18132
18133	hardcode_direct_GCJ=yes
18134	export_dynamic_flag_spec_GCJ='${wl}-E'
18135
18136	# hardcode_minus_L: Not really in the search PATH,
18137	# but as the default location of the library.
18138	hardcode_minus_L_GCJ=yes
18139      fi
18140      ;;
18141
18142    hpux11*)
18143      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18144	case $host_cpu in
18145	hppa*64*)
18146	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18147	  ;;
18148	ia64*)
18149	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18150	  ;;
18151	*)
18152	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18153	  ;;
18154	esac
18155      else
18156	case $host_cpu in
18157	hppa*64*)
18158	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18159	  ;;
18160	ia64*)
18161	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18162	  ;;
18163	*)
18164	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18165	  ;;
18166	esac
18167      fi
18168      if test "$with_gnu_ld" = no; then
18169	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18170	hardcode_libdir_separator_GCJ=:
18171
18172	case $host_cpu in
18173	hppa*64*|ia64*)
18174	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18175	  hardcode_direct_GCJ=no
18176	  hardcode_shlibpath_var_GCJ=no
18177	  ;;
18178	*)
18179	  hardcode_direct_GCJ=yes
18180	  export_dynamic_flag_spec_GCJ='${wl}-E'
18181
18182	  # hardcode_minus_L: Not really in the search PATH,
18183	  # but as the default location of the library.
18184	  hardcode_minus_L_GCJ=yes
18185	  ;;
18186	esac
18187      fi
18188      ;;
18189
18190    irix5* | irix6* | nonstopux*)
18191      if test "$GCC" = yes; then
18192	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'
18193      else
18194	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'
18195	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18196      fi
18197      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18198      hardcode_libdir_separator_GCJ=:
18199      link_all_deplibs_GCJ=yes
18200      ;;
18201
18202    netbsd*)
18203      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18204	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18205      else
18206	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18207      fi
18208      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18209      hardcode_direct_GCJ=yes
18210      hardcode_shlibpath_var_GCJ=no
18211      ;;
18212
18213    newsos6)
18214      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18215      hardcode_direct_GCJ=yes
18216      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18217      hardcode_libdir_separator_GCJ=:
18218      hardcode_shlibpath_var_GCJ=no
18219      ;;
18220
18221    openbsd*)
18222      if test -f /usr/libexec/ld.so; then
18223	hardcode_direct_GCJ=yes
18224	hardcode_shlibpath_var_GCJ=no
18225	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18226	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18227	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18228	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18229	  export_dynamic_flag_spec_GCJ='${wl}-E'
18230	else
18231	  case $host_os in
18232	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18233	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18234	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18235	     ;;
18236	   *)
18237	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18238	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18239	     ;;
18240	  esac
18241        fi
18242      else
18243	ld_shlibs_GCJ=no
18244      fi
18245      ;;
18246
18247    os2*)
18248      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18249      hardcode_minus_L_GCJ=yes
18250      allow_undefined_flag_GCJ=unsupported
18251      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'
18252      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18253      ;;
18254
18255    osf3*)
18256      if test "$GCC" = yes; then
18257	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18258	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'
18259      else
18260	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18261	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'
18262      fi
18263      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18264      hardcode_libdir_separator_GCJ=:
18265      ;;
18266
18267    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18268      if test "$GCC" = yes; then
18269	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18270	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'
18271	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18272      else
18273	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18274	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'
18275	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~
18276	$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'
18277
18278	# Both c and cxx compiler support -rpath directly
18279	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18280      fi
18281      hardcode_libdir_separator_GCJ=:
18282      ;;
18283
18284    solaris*)
18285      no_undefined_flag_GCJ=' -z text'
18286      if test "$GCC" = yes; then
18287	wlarc='${wl}'
18288	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18289	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18290	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18291      else
18292	wlarc=''
18293	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18294	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18295  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18296      fi
18297      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18298      hardcode_shlibpath_var_GCJ=no
18299      case $host_os in
18300      solaris2.[0-5] | solaris2.[0-5].*) ;;
18301      *)
18302	# The compiler driver will combine and reorder linker options,
18303	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18304	# but is careful enough not to reorder.
18305 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18306	if test "$GCC" = yes; then
18307	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18308	else
18309	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18310	fi
18311	;;
18312      esac
18313      link_all_deplibs_GCJ=yes
18314      ;;
18315
18316    sunos4*)
18317      if test "x$host_vendor" = xsequent; then
18318	# Use $CC to link under sequent, because it throws in some extra .o
18319	# files that make .init and .fini sections work.
18320	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18321      else
18322	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18323      fi
18324      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18325      hardcode_direct_GCJ=yes
18326      hardcode_minus_L_GCJ=yes
18327      hardcode_shlibpath_var_GCJ=no
18328      ;;
18329
18330    sysv4)
18331      case $host_vendor in
18332	sni)
18333	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18334	  hardcode_direct_GCJ=yes # is this really true???
18335	;;
18336	siemens)
18337	  ## LD is ld it makes a PLAMLIB
18338	  ## CC just makes a GrossModule.
18339	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18340	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18341	  hardcode_direct_GCJ=no
18342        ;;
18343	motorola)
18344	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18345	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18346	;;
18347      esac
18348      runpath_var='LD_RUN_PATH'
18349      hardcode_shlibpath_var_GCJ=no
18350      ;;
18351
18352    sysv4.3*)
18353      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18354      hardcode_shlibpath_var_GCJ=no
18355      export_dynamic_flag_spec_GCJ='-Bexport'
18356      ;;
18357
18358    sysv4*MP*)
18359      if test -d /usr/nec; then
18360	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18361	hardcode_shlibpath_var_GCJ=no
18362	runpath_var=LD_RUN_PATH
18363	hardcode_runpath_var=yes
18364	ld_shlibs_GCJ=yes
18365      fi
18366      ;;
18367
18368    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18369      no_undefined_flag_GCJ='${wl}-z,text'
18370      archive_cmds_need_lc_GCJ=no
18371      hardcode_shlibpath_var_GCJ=no
18372      runpath_var='LD_RUN_PATH'
18373
18374      if test "$GCC" = yes; then
18375	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18376	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18377      else
18378	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18379	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18380      fi
18381      ;;
18382
18383    sysv5* | sco3.2v5* | sco5v6*)
18384      # Note: We can NOT use -z defs as we might desire, because we do not
18385      # link with -lc, and that would cause any symbols used from libc to
18386      # always be unresolved, which means just about no library would
18387      # ever link correctly.  If we're not using GNU ld we use -z text
18388      # though, which does catch some bad symbols but isn't as heavy-handed
18389      # as -z defs.
18390      no_undefined_flag_GCJ='${wl}-z,text'
18391      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18392      archive_cmds_need_lc_GCJ=no
18393      hardcode_shlibpath_var_GCJ=no
18394      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18395      hardcode_libdir_separator_GCJ=':'
18396      link_all_deplibs_GCJ=yes
18397      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18398      runpath_var='LD_RUN_PATH'
18399
18400      if test "$GCC" = yes; then
18401	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18402	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18403      else
18404	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18405	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18406      fi
18407      ;;
18408
18409    uts4*)
18410      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18411      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18412      hardcode_shlibpath_var_GCJ=no
18413      ;;
18414
18415    *)
18416      ld_shlibs_GCJ=no
18417      ;;
18418    esac
18419  fi
18420
18421{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18422$as_echo "$ld_shlibs_GCJ" >&6; }
18423test "$ld_shlibs_GCJ" = no && can_build_shared=no
18424
18425#
18426# Do we need to explicitly link libc?
18427#
18428case "x$archive_cmds_need_lc_GCJ" in
18429x|xyes)
18430  # Assume -lc should be added
18431  archive_cmds_need_lc_GCJ=yes
18432
18433  if test "$enable_shared" = yes && test "$GCC" = yes; then
18434    case $archive_cmds_GCJ in
18435    *'~'*)
18436      # FIXME: we may have to deal with multi-command sequences.
18437      ;;
18438    '$CC '*)
18439      # Test whether the compiler implicitly links with -lc since on some
18440      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18441      # to ld, don't add -lc before -lgcc.
18442      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18443$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18444      $rm conftest*
18445      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18446
18447      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18448  (eval $ac_compile) 2>&5
18449  ac_status=$?
18450  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451  (exit $ac_status); } 2>conftest.err; then
18452        soname=conftest
18453        lib=conftest
18454        libobjs=conftest.$ac_objext
18455        deplibs=
18456        wl=$lt_prog_compiler_wl_GCJ
18457	pic_flag=$lt_prog_compiler_pic_GCJ
18458        compiler_flags=-v
18459        linker_flags=-v
18460        verstring=
18461        output_objdir=.
18462        libname=conftest
18463        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18464        allow_undefined_flag_GCJ=
18465        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18466  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18467  ac_status=$?
18468  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469  (exit $ac_status); }
18470        then
18471	  archive_cmds_need_lc_GCJ=no
18472        else
18473	  archive_cmds_need_lc_GCJ=yes
18474        fi
18475        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18476      else
18477        cat conftest.err 1>&5
18478      fi
18479      $rm conftest*
18480      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18481$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18482      ;;
18483    esac
18484  fi
18485  ;;
18486esac
18487
18488{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18489$as_echo_n "checking dynamic linker characteristics... " >&6; }
18490library_names_spec=
18491libname_spec='lib$name'
18492soname_spec=
18493shrext_cmds=".so"
18494postinstall_cmds=
18495postuninstall_cmds=
18496finish_cmds=
18497finish_eval=
18498shlibpath_var=
18499shlibpath_overrides_runpath=unknown
18500version_type=none
18501dynamic_linker="$host_os ld.so"
18502sys_lib_dlsearch_path_spec="/lib /usr/lib"
18503
18504need_lib_prefix=unknown
18505hardcode_into_libs=no
18506
18507# when you set need_version to no, make sure it does not cause -set_version
18508# flags to be left without arguments
18509need_version=unknown
18510
18511case $host_os in
18512aix3*)
18513  version_type=linux
18514  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18515  shlibpath_var=LIBPATH
18516
18517  # AIX 3 has no versioning support, so we append a major version to the name.
18518  soname_spec='${libname}${release}${shared_ext}$major'
18519  ;;
18520
18521aix[4-9]*)
18522  version_type=linux
18523  need_lib_prefix=no
18524  need_version=no
18525  hardcode_into_libs=yes
18526  if test "$host_cpu" = ia64; then
18527    # AIX 5 supports IA64
18528    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18529    shlibpath_var=LD_LIBRARY_PATH
18530  else
18531    # With GCC up to 2.95.x, collect2 would create an import file
18532    # for dependence libraries.  The import file would start with
18533    # the line `#! .'.  This would cause the generated library to
18534    # depend on `.', always an invalid library.  This was fixed in
18535    # development snapshots of GCC prior to 3.0.
18536    case $host_os in
18537      aix4 | aix4.[01] | aix4.[01].*)
18538      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18539	   echo ' yes '
18540	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18541	:
18542      else
18543	can_build_shared=no
18544      fi
18545      ;;
18546    esac
18547    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18548    # soname into executable. Probably we can add versioning support to
18549    # collect2, so additional links can be useful in future.
18550    if test "$aix_use_runtimelinking" = yes; then
18551      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18552      # instead of lib<name>.a to let people know that these are not
18553      # typical AIX shared libraries.
18554      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18555    else
18556      # We preserve .a as extension for shared libraries through AIX4.2
18557      # and later when we are not doing run time linking.
18558      library_names_spec='${libname}${release}.a $libname.a'
18559      soname_spec='${libname}${release}${shared_ext}$major'
18560    fi
18561    shlibpath_var=LIBPATH
18562  fi
18563  ;;
18564
18565amigaos*)
18566  library_names_spec='$libname.ixlibrary $libname.a'
18567  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18568  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'
18569  ;;
18570
18571beos*)
18572  library_names_spec='${libname}${shared_ext}'
18573  dynamic_linker="$host_os ld.so"
18574  shlibpath_var=LIBRARY_PATH
18575  ;;
18576
18577bsdi[45]*)
18578  version_type=linux
18579  need_version=no
18580  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18581  soname_spec='${libname}${release}${shared_ext}$major'
18582  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18583  shlibpath_var=LD_LIBRARY_PATH
18584  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18585  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18586  # the default ld.so.conf also contains /usr/contrib/lib and
18587  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18588  # libtool to hard-code these into programs
18589  ;;
18590
18591cygwin* | mingw* | pw32*)
18592  version_type=windows
18593  shrext_cmds=".dll"
18594  need_version=no
18595  need_lib_prefix=no
18596
18597  case $GCC,$host_os in
18598  yes,cygwin* | yes,mingw* | yes,pw32*)
18599    library_names_spec='$libname.dll.a'
18600    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18601    postinstall_cmds='base_file=`basename \${file}`~
18602      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18603      dldir=$destdir/`dirname \$dlpath`~
18604      test -d \$dldir || mkdir -p \$dldir~
18605      $install_prog $dir/$dlname \$dldir/$dlname~
18606      chmod a+x \$dldir/$dlname'
18607    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18608      dlpath=$dir/\$dldll~
18609       $rm \$dlpath'
18610    shlibpath_overrides_runpath=yes
18611
18612    case $host_os in
18613    cygwin*)
18614      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18615      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18616      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18617      ;;
18618    mingw*)
18619      # MinGW DLLs use traditional 'lib' prefix
18620      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18621      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18622      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18623        # It is most probably a Windows format PATH printed by
18624        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18625        # path with ; separators, and with drive letters. We can handle the
18626        # drive letters (cygwin fileutils understands them), so leave them,
18627        # especially as we might pass files found there to a mingw objdump,
18628        # which wouldn't understand a cygwinified path. Ahh.
18629        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18630      else
18631        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18632      fi
18633      ;;
18634    pw32*)
18635      # pw32 DLLs use 'pw' prefix rather than 'lib'
18636      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18637      ;;
18638    esac
18639    ;;
18640
18641  *)
18642    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18643    ;;
18644  esac
18645  dynamic_linker='Win32 ld.exe'
18646  # FIXME: first we should search . and the directory the executable is in
18647  shlibpath_var=PATH
18648  ;;
18649
18650darwin* | rhapsody*)
18651  dynamic_linker="$host_os dyld"
18652  version_type=darwin
18653  need_lib_prefix=no
18654  need_version=no
18655  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18656  soname_spec='${libname}${release}${major}$shared_ext'
18657  shlibpath_overrides_runpath=yes
18658  shlibpath_var=DYLD_LIBRARY_PATH
18659  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18660
18661  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18662  ;;
18663
18664dgux*)
18665  version_type=linux
18666  need_lib_prefix=no
18667  need_version=no
18668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18669  soname_spec='${libname}${release}${shared_ext}$major'
18670  shlibpath_var=LD_LIBRARY_PATH
18671  ;;
18672
18673freebsd1*)
18674  dynamic_linker=no
18675  ;;
18676
18677freebsd* | dragonfly*)
18678  # DragonFly does not have aout.  When/if they implement a new
18679  # versioning mechanism, adjust this.
18680  if test -x /usr/bin/objformat; then
18681    objformat=`/usr/bin/objformat`
18682  else
18683    case $host_os in
18684    freebsd[123]*) objformat=aout ;;
18685    *) objformat=elf ;;
18686    esac
18687  fi
18688  version_type=freebsd-$objformat
18689  case $version_type in
18690    freebsd-elf*)
18691      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18692      need_version=no
18693      need_lib_prefix=no
18694      ;;
18695    freebsd-*)
18696      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18697      need_version=yes
18698      ;;
18699  esac
18700  shlibpath_var=LD_LIBRARY_PATH
18701  case $host_os in
18702  freebsd2*)
18703    shlibpath_overrides_runpath=yes
18704    ;;
18705  freebsd3.[01]* | freebsdelf3.[01]*)
18706    shlibpath_overrides_runpath=yes
18707    hardcode_into_libs=yes
18708    ;;
18709  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18710  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18711    shlibpath_overrides_runpath=no
18712    hardcode_into_libs=yes
18713    ;;
18714  *) # from 4.6 on, and DragonFly
18715    shlibpath_overrides_runpath=yes
18716    hardcode_into_libs=yes
18717    ;;
18718  esac
18719  ;;
18720
18721gnu*)
18722  version_type=linux
18723  need_lib_prefix=no
18724  need_version=no
18725  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18726  soname_spec='${libname}${release}${shared_ext}$major'
18727  shlibpath_var=LD_LIBRARY_PATH
18728  hardcode_into_libs=yes
18729  ;;
18730
18731hpux9* | hpux10* | hpux11*)
18732  # Give a soname corresponding to the major version so that dld.sl refuses to
18733  # link against other versions.
18734  version_type=sunos
18735  need_lib_prefix=no
18736  need_version=no
18737  case $host_cpu in
18738  ia64*)
18739    shrext_cmds='.so'
18740    hardcode_into_libs=yes
18741    dynamic_linker="$host_os dld.so"
18742    shlibpath_var=LD_LIBRARY_PATH
18743    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18744    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18745    soname_spec='${libname}${release}${shared_ext}$major'
18746    if test "X$HPUX_IA64_MODE" = X32; then
18747      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18748    else
18749      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18750    fi
18751    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18752    ;;
18753   hppa*64*)
18754     shrext_cmds='.sl'
18755     hardcode_into_libs=yes
18756     dynamic_linker="$host_os dld.sl"
18757     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18758     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18759     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18760     soname_spec='${libname}${release}${shared_ext}$major'
18761     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18762     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18763     ;;
18764   *)
18765    shrext_cmds='.sl'
18766    dynamic_linker="$host_os dld.sl"
18767    shlibpath_var=SHLIB_PATH
18768    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18769    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18770    soname_spec='${libname}${release}${shared_ext}$major'
18771    ;;
18772  esac
18773  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18774  postinstall_cmds='chmod 555 $lib'
18775  ;;
18776
18777interix[3-9]*)
18778  version_type=linux
18779  need_lib_prefix=no
18780  need_version=no
18781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18782  soname_spec='${libname}${release}${shared_ext}$major'
18783  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18784  shlibpath_var=LD_LIBRARY_PATH
18785  shlibpath_overrides_runpath=no
18786  hardcode_into_libs=yes
18787  ;;
18788
18789irix5* | irix6* | nonstopux*)
18790  case $host_os in
18791    nonstopux*) version_type=nonstopux ;;
18792    *)
18793	if test "$lt_cv_prog_gnu_ld" = yes; then
18794		version_type=linux
18795	else
18796		version_type=irix
18797	fi ;;
18798  esac
18799  need_lib_prefix=no
18800  need_version=no
18801  soname_spec='${libname}${release}${shared_ext}$major'
18802  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18803  case $host_os in
18804  irix5* | nonstopux*)
18805    libsuff= shlibsuff=
18806    ;;
18807  *)
18808    case $LD in # libtool.m4 will add one of these switches to LD
18809    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18810      libsuff= shlibsuff= libmagic=32-bit;;
18811    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18812      libsuff=32 shlibsuff=N32 libmagic=N32;;
18813    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18814      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18815    *) libsuff= shlibsuff= libmagic=never-match;;
18816    esac
18817    ;;
18818  esac
18819  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18820  shlibpath_overrides_runpath=no
18821  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18822  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18823  hardcode_into_libs=yes
18824  ;;
18825
18826# No shared lib support for Linux oldld, aout, or coff.
18827linux*oldld* | linux*aout* | linux*coff*)
18828  dynamic_linker=no
18829  ;;
18830
18831# This must be Linux ELF.
18832linux* | k*bsd*-gnu)
18833  version_type=linux
18834  need_lib_prefix=no
18835  need_version=no
18836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18837  soname_spec='${libname}${release}${shared_ext}$major'
18838  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18839  shlibpath_var=LD_LIBRARY_PATH
18840  shlibpath_overrides_runpath=no
18841  # This implies no fast_install, which is unacceptable.
18842  # Some rework will be needed to allow for fast_install
18843  # before this can be enabled.
18844  hardcode_into_libs=yes
18845
18846  # find out which ABI we are using
18847  libsuff=
18848  case "$host_cpu" in
18849  x86_64*|s390x*|powerpc64*)
18850    echo '#line 18850 "configure"' > conftest.$ac_ext
18851    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18852  (eval $ac_compile) 2>&5
18853  ac_status=$?
18854  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855  (exit $ac_status); }; then
18856      case `/usr/bin/file conftest.$ac_objext` in
18857      *64-bit*)
18858        libsuff=64
18859        ;;
18860      esac
18861    fi
18862    rm -rf conftest*
18863    ;;
18864  esac
18865
18866  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
18867
18868  # Append ld.so.conf contents to the search path
18869  if test -f /etc/ld.so.conf; then
18870    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' ' '`
18871    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18872  fi
18873
18874  # We used to test for /lib/ld.so.1 and disable shared libraries on
18875  # powerpc, because MkLinux only supported shared libraries with the
18876  # GNU dynamic linker.  Since this was broken with cross compilers,
18877  # most powerpc-linux boxes support dynamic linking these days and
18878  # people can always --disable-shared, the test was removed, and we
18879  # assume the GNU/Linux dynamic linker is in use.
18880  dynamic_linker='GNU/Linux ld.so'
18881  ;;
18882
18883netbsd*)
18884  version_type=sunos
18885  need_lib_prefix=no
18886  need_version=no
18887  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18888    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18889    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18890    dynamic_linker='NetBSD (a.out) ld.so'
18891  else
18892    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18893    soname_spec='${libname}${release}${shared_ext}$major'
18894    dynamic_linker='NetBSD ld.elf_so'
18895  fi
18896  shlibpath_var=LD_LIBRARY_PATH
18897  shlibpath_overrides_runpath=yes
18898  hardcode_into_libs=yes
18899  ;;
18900
18901newsos6)
18902  version_type=linux
18903  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18904  shlibpath_var=LD_LIBRARY_PATH
18905  shlibpath_overrides_runpath=yes
18906  ;;
18907
18908nto-qnx*)
18909  version_type=linux
18910  need_lib_prefix=no
18911  need_version=no
18912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18913  soname_spec='${libname}${release}${shared_ext}$major'
18914  shlibpath_var=LD_LIBRARY_PATH
18915  shlibpath_overrides_runpath=yes
18916  ;;
18917
18918openbsd*)
18919  version_type=sunos
18920  sys_lib_dlsearch_path_spec="/usr/lib"
18921  need_lib_prefix=no
18922  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18923  case $host_os in
18924    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18925    *)                         need_version=no  ;;
18926  esac
18927  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18928  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18929  shlibpath_var=LD_LIBRARY_PATH
18930  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18931    case $host_os in
18932      openbsd2.[89] | openbsd2.[89].*)
18933	shlibpath_overrides_runpath=no
18934	;;
18935      *)
18936	shlibpath_overrides_runpath=yes
18937	;;
18938      esac
18939  else
18940    shlibpath_overrides_runpath=yes
18941  fi
18942  ;;
18943
18944os2*)
18945  libname_spec='$name'
18946  shrext_cmds=".dll"
18947  need_lib_prefix=no
18948  library_names_spec='$libname${shared_ext} $libname.a'
18949  dynamic_linker='OS/2 ld.exe'
18950  shlibpath_var=LIBPATH
18951  ;;
18952
18953osf3* | osf4* | osf5*)
18954  version_type=osf
18955  need_lib_prefix=no
18956  need_version=no
18957  soname_spec='${libname}${release}${shared_ext}$major'
18958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18959  shlibpath_var=LD_LIBRARY_PATH
18960  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18961  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18962  ;;
18963
18964rdos*)
18965  dynamic_linker=no
18966  ;;
18967
18968solaris*)
18969  version_type=linux
18970  need_lib_prefix=no
18971  need_version=no
18972  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18973  soname_spec='${libname}${release}${shared_ext}$major'
18974  shlibpath_var=LD_LIBRARY_PATH
18975  shlibpath_overrides_runpath=yes
18976  hardcode_into_libs=yes
18977  # ldd complains unless libraries are executable
18978  postinstall_cmds='chmod +x $lib'
18979  ;;
18980
18981sunos4*)
18982  version_type=sunos
18983  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18984  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18985  shlibpath_var=LD_LIBRARY_PATH
18986  shlibpath_overrides_runpath=yes
18987  if test "$with_gnu_ld" = yes; then
18988    need_lib_prefix=no
18989  fi
18990  need_version=yes
18991  ;;
18992
18993sysv4 | sysv4.3*)
18994  version_type=linux
18995  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18996  soname_spec='${libname}${release}${shared_ext}$major'
18997  shlibpath_var=LD_LIBRARY_PATH
18998  case $host_vendor in
18999    sni)
19000      shlibpath_overrides_runpath=no
19001      need_lib_prefix=no
19002      export_dynamic_flag_spec='${wl}-Blargedynsym'
19003      runpath_var=LD_RUN_PATH
19004      ;;
19005    siemens)
19006      need_lib_prefix=no
19007      ;;
19008    motorola)
19009      need_lib_prefix=no
19010      need_version=no
19011      shlibpath_overrides_runpath=no
19012      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19013      ;;
19014  esac
19015  ;;
19016
19017sysv4*MP*)
19018  if test -d /usr/nec ;then
19019    version_type=linux
19020    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19021    soname_spec='$libname${shared_ext}.$major'
19022    shlibpath_var=LD_LIBRARY_PATH
19023  fi
19024  ;;
19025
19026sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19027  version_type=freebsd-elf
19028  need_lib_prefix=no
19029  need_version=no
19030  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19031  soname_spec='${libname}${release}${shared_ext}$major'
19032  shlibpath_var=LD_LIBRARY_PATH
19033  hardcode_into_libs=yes
19034  if test "$with_gnu_ld" = yes; then
19035    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19036    shlibpath_overrides_runpath=no
19037  else
19038    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19039    shlibpath_overrides_runpath=yes
19040    case $host_os in
19041      sco3.2v5*)
19042        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19043	;;
19044    esac
19045  fi
19046  sys_lib_dlsearch_path_spec='/usr/lib'
19047  ;;
19048
19049uts4*)
19050  version_type=linux
19051  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19052  soname_spec='${libname}${release}${shared_ext}$major'
19053  shlibpath_var=LD_LIBRARY_PATH
19054  ;;
19055
19056*)
19057  dynamic_linker=no
19058  ;;
19059esac
19060{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19061$as_echo "$dynamic_linker" >&6; }
19062test "$dynamic_linker" = no && can_build_shared=no
19063
19064if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19065  $as_echo_n "(cached) " >&6
19066else
19067  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19068fi
19069
19070sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19071if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19072  $as_echo_n "(cached) " >&6
19073else
19074  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19075fi
19076
19077sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19078
19079variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19080if test "$GCC" = yes; then
19081  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19082fi
19083
19084{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19085$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19086hardcode_action_GCJ=
19087if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19088   test -n "$runpath_var_GCJ" || \
19089   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19090
19091  # We can hardcode non-existant directories.
19092  if test "$hardcode_direct_GCJ" != no &&
19093     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19094     # have to relink, otherwise we might link with an installed library
19095     # when we should be linking with a yet-to-be-installed one
19096     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19097     test "$hardcode_minus_L_GCJ" != no; then
19098    # Linking always hardcodes the temporary library directory.
19099    hardcode_action_GCJ=relink
19100  else
19101    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19102    hardcode_action_GCJ=immediate
19103  fi
19104else
19105  # We cannot hardcode anything, or else we can only hardcode existing
19106  # directories.
19107  hardcode_action_GCJ=unsupported
19108fi
19109{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19110$as_echo "$hardcode_action_GCJ" >&6; }
19111
19112if test "$hardcode_action_GCJ" = relink; then
19113  # Fast installation is not supported
19114  enable_fast_install=no
19115elif test "$shlibpath_overrides_runpath" = yes ||
19116     test "$enable_shared" = no; then
19117  # Fast installation is not necessary
19118  enable_fast_install=needless
19119fi
19120
19121
19122# The else clause should only fire when bootstrapping the
19123# libtool distribution, otherwise you forgot to ship ltmain.sh
19124# with your package, and you will get complaints that there are
19125# no rules to generate ltmain.sh.
19126if test -f "$ltmain"; then
19127  # See if we are running on zsh, and set the options which allow our commands through
19128  # without removal of \ escapes.
19129  if test -n "${ZSH_VERSION+set}" ; then
19130    setopt NO_GLOB_SUBST
19131  fi
19132  # Now quote all the things that may contain metacharacters while being
19133  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19134  # variables and quote the copies for generation of the libtool script.
19135  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19136    SED SHELL STRIP \
19137    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19138    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19139    deplibs_check_method reload_flag reload_cmds need_locks \
19140    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19141    lt_cv_sys_global_symbol_to_c_name_address \
19142    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19143    old_postinstall_cmds old_postuninstall_cmds \
19144    compiler_GCJ \
19145    CC_GCJ \
19146    LD_GCJ \
19147    lt_prog_compiler_wl_GCJ \
19148    lt_prog_compiler_pic_GCJ \
19149    lt_prog_compiler_static_GCJ \
19150    lt_prog_compiler_no_builtin_flag_GCJ \
19151    export_dynamic_flag_spec_GCJ \
19152    thread_safe_flag_spec_GCJ \
19153    whole_archive_flag_spec_GCJ \
19154    enable_shared_with_static_runtimes_GCJ \
19155    old_archive_cmds_GCJ \
19156    old_archive_from_new_cmds_GCJ \
19157    predep_objects_GCJ \
19158    postdep_objects_GCJ \
19159    predeps_GCJ \
19160    postdeps_GCJ \
19161    compiler_lib_search_path_GCJ \
19162    compiler_lib_search_dirs_GCJ \
19163    archive_cmds_GCJ \
19164    archive_expsym_cmds_GCJ \
19165    postinstall_cmds_GCJ \
19166    postuninstall_cmds_GCJ \
19167    old_archive_from_expsyms_cmds_GCJ \
19168    allow_undefined_flag_GCJ \
19169    no_undefined_flag_GCJ \
19170    export_symbols_cmds_GCJ \
19171    hardcode_libdir_flag_spec_GCJ \
19172    hardcode_libdir_flag_spec_ld_GCJ \
19173    hardcode_libdir_separator_GCJ \
19174    hardcode_automatic_GCJ \
19175    module_cmds_GCJ \
19176    module_expsym_cmds_GCJ \
19177    lt_cv_prog_compiler_c_o_GCJ \
19178    fix_srcfile_path_GCJ \
19179    exclude_expsyms_GCJ \
19180    include_expsyms_GCJ; do
19181
19182    case $var in
19183    old_archive_cmds_GCJ | \
19184    old_archive_from_new_cmds_GCJ | \
19185    archive_cmds_GCJ | \
19186    archive_expsym_cmds_GCJ | \
19187    module_cmds_GCJ | \
19188    module_expsym_cmds_GCJ | \
19189    old_archive_from_expsyms_cmds_GCJ | \
19190    export_symbols_cmds_GCJ | \
19191    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19192    postinstall_cmds | postuninstall_cmds | \
19193    old_postinstall_cmds | old_postuninstall_cmds | \
19194    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19195      # Double-quote double-evaled strings.
19196      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19197      ;;
19198    *)
19199      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19200      ;;
19201    esac
19202  done
19203
19204  case $lt_echo in
19205  *'\$0 --fallback-echo"')
19206    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19207    ;;
19208  esac
19209
19210cfgfile="$ofile"
19211
19212  cat <<__EOF__ >> "$cfgfile"
19213# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19214
19215# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19216
19217# Shell to use when invoking shell scripts.
19218SHELL=$lt_SHELL
19219
19220# Whether or not to build shared libraries.
19221build_libtool_libs=$enable_shared
19222
19223# Whether or not to build static libraries.
19224build_old_libs=$enable_static
19225
19226# Whether or not to add -lc for building shared libraries.
19227build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19228
19229# Whether or not to disallow shared libs when runtime libs are static
19230allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19231
19232# Whether or not to optimize for fast installation.
19233fast_install=$enable_fast_install
19234
19235# The host system.
19236host_alias=$host_alias
19237host=$host
19238host_os=$host_os
19239
19240# The build system.
19241build_alias=$build_alias
19242build=$build
19243build_os=$build_os
19244
19245# An echo program that does not interpret backslashes.
19246echo=$lt_echo
19247
19248# The archiver.
19249AR=$lt_AR
19250AR_FLAGS=$lt_AR_FLAGS
19251
19252# A C compiler.
19253LTCC=$lt_LTCC
19254
19255# LTCC compiler flags.
19256LTCFLAGS=$lt_LTCFLAGS
19257
19258# A language-specific compiler.
19259CC=$lt_compiler_GCJ
19260
19261# Is the compiler the GNU C compiler?
19262with_gcc=$GCC_GCJ
19263
19264# An ERE matcher.
19265EGREP=$lt_EGREP
19266
19267# The linker used to build libraries.
19268LD=$lt_LD_GCJ
19269
19270# Whether we need hard or soft links.
19271LN_S=$lt_LN_S
19272
19273# A BSD-compatible nm program.
19274NM=$lt_NM
19275
19276# A symbol stripping program
19277STRIP=$lt_STRIP
19278
19279# Used to examine libraries when file_magic_cmd begins "file"
19280MAGIC_CMD=$MAGIC_CMD
19281
19282# Used on cygwin: DLL creation program.
19283DLLTOOL="$DLLTOOL"
19284
19285# Used on cygwin: object dumper.
19286OBJDUMP="$OBJDUMP"
19287
19288# Used on cygwin: assembler.
19289AS="$AS"
19290
19291# The name of the directory that contains temporary libtool files.
19292objdir=$objdir
19293
19294# How to create reloadable object files.
19295reload_flag=$lt_reload_flag
19296reload_cmds=$lt_reload_cmds
19297
19298# How to pass a linker flag through the compiler.
19299wl=$lt_lt_prog_compiler_wl_GCJ
19300
19301# Object file suffix (normally "o").
19302objext="$ac_objext"
19303
19304# Old archive suffix (normally "a").
19305libext="$libext"
19306
19307# Shared library suffix (normally ".so").
19308shrext_cmds='$shrext_cmds'
19309
19310# Executable file suffix (normally "").
19311exeext="$exeext"
19312
19313# Additional compiler flags for building library objects.
19314pic_flag=$lt_lt_prog_compiler_pic_GCJ
19315pic_mode=$pic_mode
19316
19317# What is the maximum length of a command?
19318max_cmd_len=$lt_cv_sys_max_cmd_len
19319
19320# Does compiler simultaneously support -c and -o options?
19321compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19322
19323# Must we lock files when doing compilation?
19324need_locks=$lt_need_locks
19325
19326# Do we need the lib prefix for modules?
19327need_lib_prefix=$need_lib_prefix
19328
19329# Do we need a version for libraries?
19330need_version=$need_version
19331
19332# Whether dlopen is supported.
19333dlopen_support=$enable_dlopen
19334
19335# Whether dlopen of programs is supported.
19336dlopen_self=$enable_dlopen_self
19337
19338# Whether dlopen of statically linked programs is supported.
19339dlopen_self_static=$enable_dlopen_self_static
19340
19341# Compiler flag to prevent dynamic linking.
19342link_static_flag=$lt_lt_prog_compiler_static_GCJ
19343
19344# Compiler flag to turn off builtin functions.
19345no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19346
19347# Compiler flag to allow reflexive dlopens.
19348export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19349
19350# Compiler flag to generate shared objects directly from archives.
19351whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19352
19353# Compiler flag to generate thread-safe objects.
19354thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19355
19356# Library versioning type.
19357version_type=$version_type
19358
19359# Format of library name prefix.
19360libname_spec=$lt_libname_spec
19361
19362# List of archive names.  First name is the real one, the rest are links.
19363# The last name is the one that the linker finds with -lNAME.
19364library_names_spec=$lt_library_names_spec
19365
19366# The coded name of the library, if different from the real name.
19367soname_spec=$lt_soname_spec
19368
19369# Commands used to build and install an old-style archive.
19370RANLIB=$lt_RANLIB
19371old_archive_cmds=$lt_old_archive_cmds_GCJ
19372old_postinstall_cmds=$lt_old_postinstall_cmds
19373old_postuninstall_cmds=$lt_old_postuninstall_cmds
19374
19375# Create an old-style archive from a shared archive.
19376old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19377
19378# Create a temporary old-style archive to link instead of a shared archive.
19379old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19380
19381# Commands used to build and install a shared archive.
19382archive_cmds=$lt_archive_cmds_GCJ
19383archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19384postinstall_cmds=$lt_postinstall_cmds
19385postuninstall_cmds=$lt_postuninstall_cmds
19386
19387# Commands used to build a loadable module (assumed same as above if empty)
19388module_cmds=$lt_module_cmds_GCJ
19389module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19390
19391# Commands to strip libraries.
19392old_striplib=$lt_old_striplib
19393striplib=$lt_striplib
19394
19395# Dependencies to place before the objects being linked to create a
19396# shared library.
19397predep_objects=$lt_predep_objects_GCJ
19398
19399# Dependencies to place after the objects being linked to create a
19400# shared library.
19401postdep_objects=$lt_postdep_objects_GCJ
19402
19403# Dependencies to place before the objects being linked to create a
19404# shared library.
19405predeps=$lt_predeps_GCJ
19406
19407# Dependencies to place after the objects being linked to create a
19408# shared library.
19409postdeps=$lt_postdeps_GCJ
19410
19411# The directories searched by this compiler when creating a shared
19412# library
19413compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19414
19415# The library search path used internally by the compiler when linking
19416# a shared library.
19417compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19418
19419# Method to check whether dependent libraries are shared objects.
19420deplibs_check_method=$lt_deplibs_check_method
19421
19422# Command to use when deplibs_check_method == file_magic.
19423file_magic_cmd=$lt_file_magic_cmd
19424
19425# Flag that allows shared libraries with undefined symbols to be built.
19426allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19427
19428# Flag that forces no undefined symbols.
19429no_undefined_flag=$lt_no_undefined_flag_GCJ
19430
19431# Commands used to finish a libtool library installation in a directory.
19432finish_cmds=$lt_finish_cmds
19433
19434# Same as above, but a single script fragment to be evaled but not shown.
19435finish_eval=$lt_finish_eval
19436
19437# Take the output of nm and produce a listing of raw symbols and C names.
19438global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19439
19440# Transform the output of nm in a proper C declaration
19441global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19442
19443# Transform the output of nm in a C name address pair
19444global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19445
19446# This is the shared library runtime path variable.
19447runpath_var=$runpath_var
19448
19449# This is the shared library path variable.
19450shlibpath_var=$shlibpath_var
19451
19452# Is shlibpath searched before the hard-coded library search path?
19453shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19454
19455# How to hardcode a shared library path into an executable.
19456hardcode_action=$hardcode_action_GCJ
19457
19458# Whether we should hardcode library paths into libraries.
19459hardcode_into_libs=$hardcode_into_libs
19460
19461# Flag to hardcode \$libdir into a binary during linking.
19462# This must work even if \$libdir does not exist.
19463hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19464
19465# If ld is used when linking, flag to hardcode \$libdir into
19466# a binary during linking. This must work even if \$libdir does
19467# not exist.
19468hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19469
19470# Whether we need a single -rpath flag with a separated argument.
19471hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19472
19473# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19474# resulting binary.
19475hardcode_direct=$hardcode_direct_GCJ
19476
19477# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19478# resulting binary.
19479hardcode_minus_L=$hardcode_minus_L_GCJ
19480
19481# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19482# the resulting binary.
19483hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19484
19485# Set to yes if building a shared library automatically hardcodes DIR into the library
19486# and all subsequent libraries and executables linked against it.
19487hardcode_automatic=$hardcode_automatic_GCJ
19488
19489# Variables whose values should be saved in libtool wrapper scripts and
19490# restored at relink time.
19491variables_saved_for_relink="$variables_saved_for_relink"
19492
19493# Whether libtool must link a program against all its dependency libraries.
19494link_all_deplibs=$link_all_deplibs_GCJ
19495
19496# Compile-time system search path for libraries
19497sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19498
19499# Run-time system search path for libraries
19500sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19501
19502# Fix the shell variable \$srcfile for the compiler.
19503fix_srcfile_path=$lt_fix_srcfile_path
19504
19505# Set to yes if exported symbols are required.
19506always_export_symbols=$always_export_symbols_GCJ
19507
19508# The commands to list exported symbols.
19509export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19510
19511# The commands to extract the exported symbol list from a shared archive.
19512extract_expsyms_cmds=$lt_extract_expsyms_cmds
19513
19514# Symbols that should not be listed in the preloaded symbols.
19515exclude_expsyms=$lt_exclude_expsyms_GCJ
19516
19517# Symbols that must always be exported.
19518include_expsyms=$lt_include_expsyms_GCJ
19519
19520# ### END LIBTOOL TAG CONFIG: $tagname
19521
19522__EOF__
19523
19524
19525else
19526  # If there is no Makefile yet, we rely on a make rule to execute
19527  # `config.status --recheck' to rerun these tests and create the
19528  # libtool script then.
19529  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19530  if test -f "$ltmain_in"; then
19531    test -f Makefile && make "$ltmain"
19532  fi
19533fi
19534
19535
19536ac_ext=c
19537ac_cpp='$CPP $CPPFLAGS'
19538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19540ac_compiler_gnu=$ac_cv_c_compiler_gnu
19541
19542CC="$lt_save_CC"
19543
19544	else
19545	  tagname=""
19546	fi
19547	;;
19548
19549      RC)
19550
19551
19552# Source file extension for RC test sources.
19553ac_ext=rc
19554
19555# Object file extension for compiled RC test sources.
19556objext=o
19557objext_RC=$objext
19558
19559# Code to be used in simple compile tests
19560lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19561
19562# Code to be used in simple link tests
19563lt_simple_link_test_code="$lt_simple_compile_test_code"
19564
19565# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19566
19567# If no C compiler was specified, use CC.
19568LTCC=${LTCC-"$CC"}
19569
19570# If no C compiler flags were specified, use CFLAGS.
19571LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19572
19573# Allow CC to be a program name with arguments.
19574compiler=$CC
19575
19576
19577# save warnings/boilerplate of simple test code
19578ac_outfile=conftest.$ac_objext
19579echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19580eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19581_lt_compiler_boilerplate=`cat conftest.err`
19582$rm conftest*
19583
19584ac_outfile=conftest.$ac_objext
19585echo "$lt_simple_link_test_code" >conftest.$ac_ext
19586eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19587_lt_linker_boilerplate=`cat conftest.err`
19588$rm -r conftest*
19589
19590
19591# Allow CC to be a program name with arguments.
19592lt_save_CC="$CC"
19593CC=${RC-"windres"}
19594compiler=$CC
19595compiler_RC=$CC
19596for cc_temp in $compiler""; do
19597  case $cc_temp in
19598    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19599    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19600    \-*) ;;
19601    *) break;;
19602  esac
19603done
19604cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19605
19606lt_cv_prog_compiler_c_o_RC=yes
19607
19608# The else clause should only fire when bootstrapping the
19609# libtool distribution, otherwise you forgot to ship ltmain.sh
19610# with your package, and you will get complaints that there are
19611# no rules to generate ltmain.sh.
19612if test -f "$ltmain"; then
19613  # See if we are running on zsh, and set the options which allow our commands through
19614  # without removal of \ escapes.
19615  if test -n "${ZSH_VERSION+set}" ; then
19616    setopt NO_GLOB_SUBST
19617  fi
19618  # Now quote all the things that may contain metacharacters while being
19619  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19620  # variables and quote the copies for generation of the libtool script.
19621  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19622    SED SHELL STRIP \
19623    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19624    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19625    deplibs_check_method reload_flag reload_cmds need_locks \
19626    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19627    lt_cv_sys_global_symbol_to_c_name_address \
19628    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19629    old_postinstall_cmds old_postuninstall_cmds \
19630    compiler_RC \
19631    CC_RC \
19632    LD_RC \
19633    lt_prog_compiler_wl_RC \
19634    lt_prog_compiler_pic_RC \
19635    lt_prog_compiler_static_RC \
19636    lt_prog_compiler_no_builtin_flag_RC \
19637    export_dynamic_flag_spec_RC \
19638    thread_safe_flag_spec_RC \
19639    whole_archive_flag_spec_RC \
19640    enable_shared_with_static_runtimes_RC \
19641    old_archive_cmds_RC \
19642    old_archive_from_new_cmds_RC \
19643    predep_objects_RC \
19644    postdep_objects_RC \
19645    predeps_RC \
19646    postdeps_RC \
19647    compiler_lib_search_path_RC \
19648    compiler_lib_search_dirs_RC \
19649    archive_cmds_RC \
19650    archive_expsym_cmds_RC \
19651    postinstall_cmds_RC \
19652    postuninstall_cmds_RC \
19653    old_archive_from_expsyms_cmds_RC \
19654    allow_undefined_flag_RC \
19655    no_undefined_flag_RC \
19656    export_symbols_cmds_RC \
19657    hardcode_libdir_flag_spec_RC \
19658    hardcode_libdir_flag_spec_ld_RC \
19659    hardcode_libdir_separator_RC \
19660    hardcode_automatic_RC \
19661    module_cmds_RC \
19662    module_expsym_cmds_RC \
19663    lt_cv_prog_compiler_c_o_RC \
19664    fix_srcfile_path_RC \
19665    exclude_expsyms_RC \
19666    include_expsyms_RC; do
19667
19668    case $var in
19669    old_archive_cmds_RC | \
19670    old_archive_from_new_cmds_RC | \
19671    archive_cmds_RC | \
19672    archive_expsym_cmds_RC | \
19673    module_cmds_RC | \
19674    module_expsym_cmds_RC | \
19675    old_archive_from_expsyms_cmds_RC | \
19676    export_symbols_cmds_RC | \
19677    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19678    postinstall_cmds | postuninstall_cmds | \
19679    old_postinstall_cmds | old_postuninstall_cmds | \
19680    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19681      # Double-quote double-evaled strings.
19682      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19683      ;;
19684    *)
19685      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19686      ;;
19687    esac
19688  done
19689
19690  case $lt_echo in
19691  *'\$0 --fallback-echo"')
19692    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19693    ;;
19694  esac
19695
19696cfgfile="$ofile"
19697
19698  cat <<__EOF__ >> "$cfgfile"
19699# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19700
19701# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19702
19703# Shell to use when invoking shell scripts.
19704SHELL=$lt_SHELL
19705
19706# Whether or not to build shared libraries.
19707build_libtool_libs=$enable_shared
19708
19709# Whether or not to build static libraries.
19710build_old_libs=$enable_static
19711
19712# Whether or not to add -lc for building shared libraries.
19713build_libtool_need_lc=$archive_cmds_need_lc_RC
19714
19715# Whether or not to disallow shared libs when runtime libs are static
19716allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19717
19718# Whether or not to optimize for fast installation.
19719fast_install=$enable_fast_install
19720
19721# The host system.
19722host_alias=$host_alias
19723host=$host
19724host_os=$host_os
19725
19726# The build system.
19727build_alias=$build_alias
19728build=$build
19729build_os=$build_os
19730
19731# An echo program that does not interpret backslashes.
19732echo=$lt_echo
19733
19734# The archiver.
19735AR=$lt_AR
19736AR_FLAGS=$lt_AR_FLAGS
19737
19738# A C compiler.
19739LTCC=$lt_LTCC
19740
19741# LTCC compiler flags.
19742LTCFLAGS=$lt_LTCFLAGS
19743
19744# A language-specific compiler.
19745CC=$lt_compiler_RC
19746
19747# Is the compiler the GNU C compiler?
19748with_gcc=$GCC_RC
19749
19750# An ERE matcher.
19751EGREP=$lt_EGREP
19752
19753# The linker used to build libraries.
19754LD=$lt_LD_RC
19755
19756# Whether we need hard or soft links.
19757LN_S=$lt_LN_S
19758
19759# A BSD-compatible nm program.
19760NM=$lt_NM
19761
19762# A symbol stripping program
19763STRIP=$lt_STRIP
19764
19765# Used to examine libraries when file_magic_cmd begins "file"
19766MAGIC_CMD=$MAGIC_CMD
19767
19768# Used on cygwin: DLL creation program.
19769DLLTOOL="$DLLTOOL"
19770
19771# Used on cygwin: object dumper.
19772OBJDUMP="$OBJDUMP"
19773
19774# Used on cygwin: assembler.
19775AS="$AS"
19776
19777# The name of the directory that contains temporary libtool files.
19778objdir=$objdir
19779
19780# How to create reloadable object files.
19781reload_flag=$lt_reload_flag
19782reload_cmds=$lt_reload_cmds
19783
19784# How to pass a linker flag through the compiler.
19785wl=$lt_lt_prog_compiler_wl_RC
19786
19787# Object file suffix (normally "o").
19788objext="$ac_objext"
19789
19790# Old archive suffix (normally "a").
19791libext="$libext"
19792
19793# Shared library suffix (normally ".so").
19794shrext_cmds='$shrext_cmds'
19795
19796# Executable file suffix (normally "").
19797exeext="$exeext"
19798
19799# Additional compiler flags for building library objects.
19800pic_flag=$lt_lt_prog_compiler_pic_RC
19801pic_mode=$pic_mode
19802
19803# What is the maximum length of a command?
19804max_cmd_len=$lt_cv_sys_max_cmd_len
19805
19806# Does compiler simultaneously support -c and -o options?
19807compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19808
19809# Must we lock files when doing compilation?
19810need_locks=$lt_need_locks
19811
19812# Do we need the lib prefix for modules?
19813need_lib_prefix=$need_lib_prefix
19814
19815# Do we need a version for libraries?
19816need_version=$need_version
19817
19818# Whether dlopen is supported.
19819dlopen_support=$enable_dlopen
19820
19821# Whether dlopen of programs is supported.
19822dlopen_self=$enable_dlopen_self
19823
19824# Whether dlopen of statically linked programs is supported.
19825dlopen_self_static=$enable_dlopen_self_static
19826
19827# Compiler flag to prevent dynamic linking.
19828link_static_flag=$lt_lt_prog_compiler_static_RC
19829
19830# Compiler flag to turn off builtin functions.
19831no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19832
19833# Compiler flag to allow reflexive dlopens.
19834export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19835
19836# Compiler flag to generate shared objects directly from archives.
19837whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19838
19839# Compiler flag to generate thread-safe objects.
19840thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19841
19842# Library versioning type.
19843version_type=$version_type
19844
19845# Format of library name prefix.
19846libname_spec=$lt_libname_spec
19847
19848# List of archive names.  First name is the real one, the rest are links.
19849# The last name is the one that the linker finds with -lNAME.
19850library_names_spec=$lt_library_names_spec
19851
19852# The coded name of the library, if different from the real name.
19853soname_spec=$lt_soname_spec
19854
19855# Commands used to build and install an old-style archive.
19856RANLIB=$lt_RANLIB
19857old_archive_cmds=$lt_old_archive_cmds_RC
19858old_postinstall_cmds=$lt_old_postinstall_cmds
19859old_postuninstall_cmds=$lt_old_postuninstall_cmds
19860
19861# Create an old-style archive from a shared archive.
19862old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19863
19864# Create a temporary old-style archive to link instead of a shared archive.
19865old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19866
19867# Commands used to build and install a shared archive.
19868archive_cmds=$lt_archive_cmds_RC
19869archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19870postinstall_cmds=$lt_postinstall_cmds
19871postuninstall_cmds=$lt_postuninstall_cmds
19872
19873# Commands used to build a loadable module (assumed same as above if empty)
19874module_cmds=$lt_module_cmds_RC
19875module_expsym_cmds=$lt_module_expsym_cmds_RC
19876
19877# Commands to strip libraries.
19878old_striplib=$lt_old_striplib
19879striplib=$lt_striplib
19880
19881# Dependencies to place before the objects being linked to create a
19882# shared library.
19883predep_objects=$lt_predep_objects_RC
19884
19885# Dependencies to place after the objects being linked to create a
19886# shared library.
19887postdep_objects=$lt_postdep_objects_RC
19888
19889# Dependencies to place before the objects being linked to create a
19890# shared library.
19891predeps=$lt_predeps_RC
19892
19893# Dependencies to place after the objects being linked to create a
19894# shared library.
19895postdeps=$lt_postdeps_RC
19896
19897# The directories searched by this compiler when creating a shared
19898# library
19899compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19900
19901# The library search path used internally by the compiler when linking
19902# a shared library.
19903compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19904
19905# Method to check whether dependent libraries are shared objects.
19906deplibs_check_method=$lt_deplibs_check_method
19907
19908# Command to use when deplibs_check_method == file_magic.
19909file_magic_cmd=$lt_file_magic_cmd
19910
19911# Flag that allows shared libraries with undefined symbols to be built.
19912allow_undefined_flag=$lt_allow_undefined_flag_RC
19913
19914# Flag that forces no undefined symbols.
19915no_undefined_flag=$lt_no_undefined_flag_RC
19916
19917# Commands used to finish a libtool library installation in a directory.
19918finish_cmds=$lt_finish_cmds
19919
19920# Same as above, but a single script fragment to be evaled but not shown.
19921finish_eval=$lt_finish_eval
19922
19923# Take the output of nm and produce a listing of raw symbols and C names.
19924global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19925
19926# Transform the output of nm in a proper C declaration
19927global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19928
19929# Transform the output of nm in a C name address pair
19930global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19931
19932# This is the shared library runtime path variable.
19933runpath_var=$runpath_var
19934
19935# This is the shared library path variable.
19936shlibpath_var=$shlibpath_var
19937
19938# Is shlibpath searched before the hard-coded library search path?
19939shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19940
19941# How to hardcode a shared library path into an executable.
19942hardcode_action=$hardcode_action_RC
19943
19944# Whether we should hardcode library paths into libraries.
19945hardcode_into_libs=$hardcode_into_libs
19946
19947# Flag to hardcode \$libdir into a binary during linking.
19948# This must work even if \$libdir does not exist.
19949hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19950
19951# If ld is used when linking, flag to hardcode \$libdir into
19952# a binary during linking. This must work even if \$libdir does
19953# not exist.
19954hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19955
19956# Whether we need a single -rpath flag with a separated argument.
19957hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19958
19959# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19960# resulting binary.
19961hardcode_direct=$hardcode_direct_RC
19962
19963# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19964# resulting binary.
19965hardcode_minus_L=$hardcode_minus_L_RC
19966
19967# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19968# the resulting binary.
19969hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19970
19971# Set to yes if building a shared library automatically hardcodes DIR into the library
19972# and all subsequent libraries and executables linked against it.
19973hardcode_automatic=$hardcode_automatic_RC
19974
19975# Variables whose values should be saved in libtool wrapper scripts and
19976# restored at relink time.
19977variables_saved_for_relink="$variables_saved_for_relink"
19978
19979# Whether libtool must link a program against all its dependency libraries.
19980link_all_deplibs=$link_all_deplibs_RC
19981
19982# Compile-time system search path for libraries
19983sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19984
19985# Run-time system search path for libraries
19986sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19987
19988# Fix the shell variable \$srcfile for the compiler.
19989fix_srcfile_path=$lt_fix_srcfile_path
19990
19991# Set to yes if exported symbols are required.
19992always_export_symbols=$always_export_symbols_RC
19993
19994# The commands to list exported symbols.
19995export_symbols_cmds=$lt_export_symbols_cmds_RC
19996
19997# The commands to extract the exported symbol list from a shared archive.
19998extract_expsyms_cmds=$lt_extract_expsyms_cmds
19999
20000# Symbols that should not be listed in the preloaded symbols.
20001exclude_expsyms=$lt_exclude_expsyms_RC
20002
20003# Symbols that must always be exported.
20004include_expsyms=$lt_include_expsyms_RC
20005
20006# ### END LIBTOOL TAG CONFIG: $tagname
20007
20008__EOF__
20009
20010
20011else
20012  # If there is no Makefile yet, we rely on a make rule to execute
20013  # `config.status --recheck' to rerun these tests and create the
20014  # libtool script then.
20015  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20016  if test -f "$ltmain_in"; then
20017    test -f Makefile && make "$ltmain"
20018  fi
20019fi
20020
20021
20022ac_ext=c
20023ac_cpp='$CPP $CPPFLAGS'
20024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20026ac_compiler_gnu=$ac_cv_c_compiler_gnu
20027
20028CC="$lt_save_CC"
20029
20030	;;
20031
20032      *)
20033	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20034$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20035   { (exit 1); exit 1; }; }
20036	;;
20037      esac
20038
20039      # Append the new tag name to the list of available tags.
20040      if test -n "$tagname" ; then
20041      available_tags="$available_tags $tagname"
20042    fi
20043    fi
20044  done
20045  IFS="$lt_save_ifs"
20046
20047  # Now substitute the updated list of available tags.
20048  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20049    mv "${ofile}T" "$ofile"
20050    chmod +x "$ofile"
20051  else
20052    rm -f "${ofile}T"
20053    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20054$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20055   { (exit 1); exit 1; }; }
20056  fi
20057fi
20058
20059
20060
20061# This can be used to rebuild libtool when needed
20062LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20063
20064# Always use our own libtool.
20065LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20066
20067# Prevent multiple expansion
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088ac_ext=c
20089ac_cpp='$CPP $CPPFLAGS'
20090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20092ac_compiler_gnu=$ac_cv_c_compiler_gnu
20093if test -n "$ac_tool_prefix"; then
20094  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20095set dummy ${ac_tool_prefix}gcc; ac_word=$2
20096{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20097$as_echo_n "checking for $ac_word... " >&6; }
20098if test "${ac_cv_prog_CC+set}" = set; then
20099  $as_echo_n "(cached) " >&6
20100else
20101  if test -n "$CC"; then
20102  ac_cv_prog_CC="$CC" # Let the user override the test.
20103else
20104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20105for as_dir in $PATH
20106do
20107  IFS=$as_save_IFS
20108  test -z "$as_dir" && as_dir=.
20109  for ac_exec_ext in '' $ac_executable_extensions; do
20110  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20111    ac_cv_prog_CC="${ac_tool_prefix}gcc"
20112    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20113    break 2
20114  fi
20115done
20116done
20117IFS=$as_save_IFS
20118
20119fi
20120fi
20121CC=$ac_cv_prog_CC
20122if test -n "$CC"; then
20123  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20124$as_echo "$CC" >&6; }
20125else
20126  { $as_echo "$as_me:$LINENO: result: no" >&5
20127$as_echo "no" >&6; }
20128fi
20129
20130
20131fi
20132if test -z "$ac_cv_prog_CC"; then
20133  ac_ct_CC=$CC
20134  # Extract the first word of "gcc", so it can be a program name with args.
20135set dummy gcc; ac_word=$2
20136{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20137$as_echo_n "checking for $ac_word... " >&6; }
20138if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20139  $as_echo_n "(cached) " >&6
20140else
20141  if test -n "$ac_ct_CC"; then
20142  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20143else
20144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20145for as_dir in $PATH
20146do
20147  IFS=$as_save_IFS
20148  test -z "$as_dir" && as_dir=.
20149  for ac_exec_ext in '' $ac_executable_extensions; do
20150  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20151    ac_cv_prog_ac_ct_CC="gcc"
20152    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20153    break 2
20154  fi
20155done
20156done
20157IFS=$as_save_IFS
20158
20159fi
20160fi
20161ac_ct_CC=$ac_cv_prog_ac_ct_CC
20162if test -n "$ac_ct_CC"; then
20163  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20164$as_echo "$ac_ct_CC" >&6; }
20165else
20166  { $as_echo "$as_me:$LINENO: result: no" >&5
20167$as_echo "no" >&6; }
20168fi
20169
20170  if test "x$ac_ct_CC" = x; then
20171    CC=""
20172  else
20173    case $cross_compiling:$ac_tool_warned in
20174yes:)
20175{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20177ac_tool_warned=yes ;;
20178esac
20179    CC=$ac_ct_CC
20180  fi
20181else
20182  CC="$ac_cv_prog_CC"
20183fi
20184
20185if test -z "$CC"; then
20186          if test -n "$ac_tool_prefix"; then
20187    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20188set dummy ${ac_tool_prefix}cc; ac_word=$2
20189{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20190$as_echo_n "checking for $ac_word... " >&6; }
20191if test "${ac_cv_prog_CC+set}" = set; then
20192  $as_echo_n "(cached) " >&6
20193else
20194  if test -n "$CC"; then
20195  ac_cv_prog_CC="$CC" # Let the user override the test.
20196else
20197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20198for as_dir in $PATH
20199do
20200  IFS=$as_save_IFS
20201  test -z "$as_dir" && as_dir=.
20202  for ac_exec_ext in '' $ac_executable_extensions; do
20203  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20204    ac_cv_prog_CC="${ac_tool_prefix}cc"
20205    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20206    break 2
20207  fi
20208done
20209done
20210IFS=$as_save_IFS
20211
20212fi
20213fi
20214CC=$ac_cv_prog_CC
20215if test -n "$CC"; then
20216  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20217$as_echo "$CC" >&6; }
20218else
20219  { $as_echo "$as_me:$LINENO: result: no" >&5
20220$as_echo "no" >&6; }
20221fi
20222
20223
20224  fi
20225fi
20226if test -z "$CC"; then
20227  # Extract the first word of "cc", so it can be a program name with args.
20228set dummy cc; ac_word=$2
20229{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20230$as_echo_n "checking for $ac_word... " >&6; }
20231if test "${ac_cv_prog_CC+set}" = set; then
20232  $as_echo_n "(cached) " >&6
20233else
20234  if test -n "$CC"; then
20235  ac_cv_prog_CC="$CC" # Let the user override the test.
20236else
20237  ac_prog_rejected=no
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    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20246       ac_prog_rejected=yes
20247       continue
20248     fi
20249    ac_cv_prog_CC="cc"
20250    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20251    break 2
20252  fi
20253done
20254done
20255IFS=$as_save_IFS
20256
20257if test $ac_prog_rejected = yes; then
20258  # We found a bogon in the path, so make sure we never use it.
20259  set dummy $ac_cv_prog_CC
20260  shift
20261  if test $# != 0; then
20262    # We chose a different compiler from the bogus one.
20263    # However, it has the same basename, so the bogon will be chosen
20264    # first if we set CC to just the basename; use the full file name.
20265    shift
20266    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20267  fi
20268fi
20269fi
20270fi
20271CC=$ac_cv_prog_CC
20272if test -n "$CC"; then
20273  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20274$as_echo "$CC" >&6; }
20275else
20276  { $as_echo "$as_me:$LINENO: result: no" >&5
20277$as_echo "no" >&6; }
20278fi
20279
20280
20281fi
20282if test -z "$CC"; then
20283  if test -n "$ac_tool_prefix"; then
20284  for ac_prog in cl.exe
20285  do
20286    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20287set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20288{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20289$as_echo_n "checking for $ac_word... " >&6; }
20290if test "${ac_cv_prog_CC+set}" = set; then
20291  $as_echo_n "(cached) " >&6
20292else
20293  if test -n "$CC"; then
20294  ac_cv_prog_CC="$CC" # Let the user override the test.
20295else
20296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20297for as_dir in $PATH
20298do
20299  IFS=$as_save_IFS
20300  test -z "$as_dir" && as_dir=.
20301  for ac_exec_ext in '' $ac_executable_extensions; do
20302  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20303    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20304    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20305    break 2
20306  fi
20307done
20308done
20309IFS=$as_save_IFS
20310
20311fi
20312fi
20313CC=$ac_cv_prog_CC
20314if test -n "$CC"; then
20315  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20316$as_echo "$CC" >&6; }
20317else
20318  { $as_echo "$as_me:$LINENO: result: no" >&5
20319$as_echo "no" >&6; }
20320fi
20321
20322
20323    test -n "$CC" && break
20324  done
20325fi
20326if test -z "$CC"; then
20327  ac_ct_CC=$CC
20328  for ac_prog in cl.exe
20329do
20330  # Extract the first word of "$ac_prog", so it can be a program name with args.
20331set dummy $ac_prog; ac_word=$2
20332{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20333$as_echo_n "checking for $ac_word... " >&6; }
20334if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20335  $as_echo_n "(cached) " >&6
20336else
20337  if test -n "$ac_ct_CC"; then
20338  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20339else
20340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20341for as_dir in $PATH
20342do
20343  IFS=$as_save_IFS
20344  test -z "$as_dir" && as_dir=.
20345  for ac_exec_ext in '' $ac_executable_extensions; do
20346  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20347    ac_cv_prog_ac_ct_CC="$ac_prog"
20348    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20349    break 2
20350  fi
20351done
20352done
20353IFS=$as_save_IFS
20354
20355fi
20356fi
20357ac_ct_CC=$ac_cv_prog_ac_ct_CC
20358if test -n "$ac_ct_CC"; then
20359  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20360$as_echo "$ac_ct_CC" >&6; }
20361else
20362  { $as_echo "$as_me:$LINENO: result: no" >&5
20363$as_echo "no" >&6; }
20364fi
20365
20366
20367  test -n "$ac_ct_CC" && break
20368done
20369
20370  if test "x$ac_ct_CC" = x; then
20371    CC=""
20372  else
20373    case $cross_compiling:$ac_tool_warned in
20374yes:)
20375{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20377ac_tool_warned=yes ;;
20378esac
20379    CC=$ac_ct_CC
20380  fi
20381fi
20382
20383fi
20384
20385
20386test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20388{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20389See \`config.log' for more details." >&5
20390$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20391See \`config.log' for more details." >&2;}
20392   { (exit 1); exit 1; }; }; }
20393
20394# Provide some information about the compiler.
20395$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20396set X $ac_compile
20397ac_compiler=$2
20398{ (ac_try="$ac_compiler --version >&5"
20399case "(($ac_try" in
20400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20401  *) ac_try_echo=$ac_try;;
20402esac
20403eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20404$as_echo "$ac_try_echo") >&5
20405  (eval "$ac_compiler --version >&5") 2>&5
20406  ac_status=$?
20407  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408  (exit $ac_status); }
20409{ (ac_try="$ac_compiler -v >&5"
20410case "(($ac_try" in
20411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412  *) ac_try_echo=$ac_try;;
20413esac
20414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20415$as_echo "$ac_try_echo") >&5
20416  (eval "$ac_compiler -v >&5") 2>&5
20417  ac_status=$?
20418  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419  (exit $ac_status); }
20420{ (ac_try="$ac_compiler -V >&5"
20421case "(($ac_try" in
20422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423  *) ac_try_echo=$ac_try;;
20424esac
20425eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20426$as_echo "$ac_try_echo") >&5
20427  (eval "$ac_compiler -V >&5") 2>&5
20428  ac_status=$?
20429  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430  (exit $ac_status); }
20431
20432{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20433$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20434if test "${ac_cv_c_compiler_gnu+set}" = set; then
20435  $as_echo_n "(cached) " >&6
20436else
20437  cat >conftest.$ac_ext <<_ACEOF
20438/* confdefs.h.  */
20439_ACEOF
20440cat confdefs.h >>conftest.$ac_ext
20441cat >>conftest.$ac_ext <<_ACEOF
20442/* end confdefs.h.  */
20443
20444int
20445main ()
20446{
20447#ifndef __GNUC__
20448       choke me
20449#endif
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  ac_compiler_gnu=yes
20474else
20475  $as_echo "$as_me: failed program was:" >&5
20476sed 's/^/| /' conftest.$ac_ext >&5
20477
20478	ac_compiler_gnu=no
20479fi
20480
20481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20482ac_cv_c_compiler_gnu=$ac_compiler_gnu
20483
20484fi
20485{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20486$as_echo "$ac_cv_c_compiler_gnu" >&6; }
20487if test $ac_compiler_gnu = yes; then
20488  GCC=yes
20489else
20490  GCC=
20491fi
20492ac_test_CFLAGS=${CFLAGS+set}
20493ac_save_CFLAGS=$CFLAGS
20494{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20495$as_echo_n "checking whether $CC accepts -g... " >&6; }
20496if test "${ac_cv_prog_cc_g+set}" = set; then
20497  $as_echo_n "(cached) " >&6
20498else
20499  ac_save_c_werror_flag=$ac_c_werror_flag
20500   ac_c_werror_flag=yes
20501   ac_cv_prog_cc_g=no
20502   CFLAGS="-g"
20503   cat >conftest.$ac_ext <<_ACEOF
20504/* confdefs.h.  */
20505_ACEOF
20506cat confdefs.h >>conftest.$ac_ext
20507cat >>conftest.$ac_ext <<_ACEOF
20508/* end confdefs.h.  */
20509
20510int
20511main ()
20512{
20513
20514  ;
20515  return 0;
20516}
20517_ACEOF
20518rm -f conftest.$ac_objext
20519if { (ac_try="$ac_compile"
20520case "(($ac_try" in
20521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522  *) ac_try_echo=$ac_try;;
20523esac
20524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20525$as_echo "$ac_try_echo") >&5
20526  (eval "$ac_compile") 2>conftest.er1
20527  ac_status=$?
20528  grep -v '^ *+' conftest.er1 >conftest.err
20529  rm -f conftest.er1
20530  cat conftest.err >&5
20531  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532  (exit $ac_status); } && {
20533	 test -z "$ac_c_werror_flag" ||
20534	 test ! -s conftest.err
20535       } && test -s conftest.$ac_objext; then
20536  ac_cv_prog_cc_g=yes
20537else
20538  $as_echo "$as_me: failed program was:" >&5
20539sed 's/^/| /' conftest.$ac_ext >&5
20540
20541	CFLAGS=""
20542      cat >conftest.$ac_ext <<_ACEOF
20543/* confdefs.h.  */
20544_ACEOF
20545cat confdefs.h >>conftest.$ac_ext
20546cat >>conftest.$ac_ext <<_ACEOF
20547/* end confdefs.h.  */
20548
20549int
20550main ()
20551{
20552
20553  ;
20554  return 0;
20555}
20556_ACEOF
20557rm -f conftest.$ac_objext
20558if { (ac_try="$ac_compile"
20559case "(($ac_try" in
20560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561  *) ac_try_echo=$ac_try;;
20562esac
20563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20564$as_echo "$ac_try_echo") >&5
20565  (eval "$ac_compile") 2>conftest.er1
20566  ac_status=$?
20567  grep -v '^ *+' conftest.er1 >conftest.err
20568  rm -f conftest.er1
20569  cat conftest.err >&5
20570  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571  (exit $ac_status); } && {
20572	 test -z "$ac_c_werror_flag" ||
20573	 test ! -s conftest.err
20574       } && test -s conftest.$ac_objext; then
20575  :
20576else
20577  $as_echo "$as_me: failed program was:" >&5
20578sed 's/^/| /' conftest.$ac_ext >&5
20579
20580	ac_c_werror_flag=$ac_save_c_werror_flag
20581	 CFLAGS="-g"
20582	 cat >conftest.$ac_ext <<_ACEOF
20583/* confdefs.h.  */
20584_ACEOF
20585cat confdefs.h >>conftest.$ac_ext
20586cat >>conftest.$ac_ext <<_ACEOF
20587/* end confdefs.h.  */
20588
20589int
20590main ()
20591{
20592
20593  ;
20594  return 0;
20595}
20596_ACEOF
20597rm -f conftest.$ac_objext
20598if { (ac_try="$ac_compile"
20599case "(($ac_try" in
20600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20601  *) ac_try_echo=$ac_try;;
20602esac
20603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20604$as_echo "$ac_try_echo") >&5
20605  (eval "$ac_compile") 2>conftest.er1
20606  ac_status=$?
20607  grep -v '^ *+' conftest.er1 >conftest.err
20608  rm -f conftest.er1
20609  cat conftest.err >&5
20610  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611  (exit $ac_status); } && {
20612	 test -z "$ac_c_werror_flag" ||
20613	 test ! -s conftest.err
20614       } && test -s conftest.$ac_objext; then
20615  ac_cv_prog_cc_g=yes
20616else
20617  $as_echo "$as_me: failed program was:" >&5
20618sed 's/^/| /' conftest.$ac_ext >&5
20619
20620
20621fi
20622
20623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20624fi
20625
20626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20627fi
20628
20629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20630   ac_c_werror_flag=$ac_save_c_werror_flag
20631fi
20632{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20633$as_echo "$ac_cv_prog_cc_g" >&6; }
20634if test "$ac_test_CFLAGS" = set; then
20635  CFLAGS=$ac_save_CFLAGS
20636elif test $ac_cv_prog_cc_g = yes; then
20637  if test "$GCC" = yes; then
20638    CFLAGS="-g -O2"
20639  else
20640    CFLAGS="-g"
20641  fi
20642else
20643  if test "$GCC" = yes; then
20644    CFLAGS="-O2"
20645  else
20646    CFLAGS=
20647  fi
20648fi
20649{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20650$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20651if test "${ac_cv_prog_cc_c89+set}" = set; then
20652  $as_echo_n "(cached) " >&6
20653else
20654  ac_cv_prog_cc_c89=no
20655ac_save_CC=$CC
20656cat >conftest.$ac_ext <<_ACEOF
20657/* confdefs.h.  */
20658_ACEOF
20659cat confdefs.h >>conftest.$ac_ext
20660cat >>conftest.$ac_ext <<_ACEOF
20661/* end confdefs.h.  */
20662#include <stdarg.h>
20663#include <stdio.h>
20664#include <sys/types.h>
20665#include <sys/stat.h>
20666/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20667struct buf { int x; };
20668FILE * (*rcsopen) (struct buf *, struct stat *, int);
20669static char *e (p, i)
20670     char **p;
20671     int i;
20672{
20673  return p[i];
20674}
20675static char *f (char * (*g) (char **, int), char **p, ...)
20676{
20677  char *s;
20678  va_list v;
20679  va_start (v,p);
20680  s = g (p, va_arg (v,int));
20681  va_end (v);
20682  return s;
20683}
20684
20685/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20686   function prototypes and stuff, but not '\xHH' hex character constants.
20687   These don't provoke an error unfortunately, instead are silently treated
20688   as 'x'.  The following induces an error, until -std is added to get
20689   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20690   array size at least.  It's necessary to write '\x00'==0 to get something
20691   that's true only with -std.  */
20692int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20693
20694/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20695   inside strings and character constants.  */
20696#define FOO(x) 'x'
20697int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20698
20699int test (int i, double x);
20700struct s1 {int (*f) (int a);};
20701struct s2 {int (*f) (double a);};
20702int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20703int argc;
20704char **argv;
20705int
20706main ()
20707{
20708return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20709  ;
20710  return 0;
20711}
20712_ACEOF
20713for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20714	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20715do
20716  CC="$ac_save_CC $ac_arg"
20717  rm -f conftest.$ac_objext
20718if { (ac_try="$ac_compile"
20719case "(($ac_try" in
20720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20721  *) ac_try_echo=$ac_try;;
20722esac
20723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20724$as_echo "$ac_try_echo") >&5
20725  (eval "$ac_compile") 2>conftest.er1
20726  ac_status=$?
20727  grep -v '^ *+' conftest.er1 >conftest.err
20728  rm -f conftest.er1
20729  cat conftest.err >&5
20730  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731  (exit $ac_status); } && {
20732	 test -z "$ac_c_werror_flag" ||
20733	 test ! -s conftest.err
20734       } && test -s conftest.$ac_objext; then
20735  ac_cv_prog_cc_c89=$ac_arg
20736else
20737  $as_echo "$as_me: failed program was:" >&5
20738sed 's/^/| /' conftest.$ac_ext >&5
20739
20740
20741fi
20742
20743rm -f core conftest.err conftest.$ac_objext
20744  test "x$ac_cv_prog_cc_c89" != "xno" && break
20745done
20746rm -f conftest.$ac_ext
20747CC=$ac_save_CC
20748
20749fi
20750# AC_CACHE_VAL
20751case "x$ac_cv_prog_cc_c89" in
20752  x)
20753    { $as_echo "$as_me:$LINENO: result: none needed" >&5
20754$as_echo "none needed" >&6; } ;;
20755  xno)
20756    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20757$as_echo "unsupported" >&6; } ;;
20758  *)
20759    CC="$CC $ac_cv_prog_cc_c89"
20760    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20761$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20762esac
20763
20764
20765ac_ext=c
20766ac_cpp='$CPP $CPPFLAGS'
20767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20769ac_compiler_gnu=$ac_cv_c_compiler_gnu
20770
20771depcc="$CC"   am_compiler_list=
20772
20773{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20774$as_echo_n "checking dependency style of $depcc... " >&6; }
20775if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20776  $as_echo_n "(cached) " >&6
20777else
20778  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20779  # We make a subdir and do the tests there.  Otherwise we can end up
20780  # making bogus files that we don't know about and never remove.  For
20781  # instance it was reported that on HP-UX the gcc test will end up
20782  # making a dummy file named `D' -- because `-MD' means `put the output
20783  # in D'.
20784  mkdir conftest.dir
20785  # Copy depcomp to subdir because otherwise we won't find it if we're
20786  # using a relative directory.
20787  cp "$am_depcomp" conftest.dir
20788  cd conftest.dir
20789  # We will build objects and dependencies in a subdirectory because
20790  # it helps to detect inapplicable dependency modes.  For instance
20791  # both Tru64's cc and ICC support -MD to output dependencies as a
20792  # side effect of compilation, but ICC will put the dependencies in
20793  # the current directory while Tru64 will put them in the object
20794  # directory.
20795  mkdir sub
20796
20797  am_cv_CC_dependencies_compiler_type=none
20798  if test "$am_compiler_list" = ""; then
20799     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20800  fi
20801  for depmode in $am_compiler_list; do
20802    # Setup a source with many dependencies, because some compilers
20803    # like to wrap large dependency lists on column 80 (with \), and
20804    # we should not choose a depcomp mode which is confused by this.
20805    #
20806    # We need to recreate these files for each test, as the compiler may
20807    # overwrite some of them when testing with obscure command lines.
20808    # This happens at least with the AIX C compiler.
20809    : > sub/conftest.c
20810    for i in 1 2 3 4 5 6; do
20811      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20812      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20813      # Solaris 8's {/usr,}/bin/sh.
20814      touch sub/conftst$i.h
20815    done
20816    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20817
20818    case $depmode in
20819    nosideeffect)
20820      # after this tag, mechanisms are not by side-effect, so they'll
20821      # only be used when explicitly requested
20822      if test "x$enable_dependency_tracking" = xyes; then
20823	continue
20824      else
20825	break
20826      fi
20827      ;;
20828    none) break ;;
20829    esac
20830    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20831    # mode.  It turns out that the SunPro C++ compiler does not properly
20832    # handle `-M -o', and we need to detect this.
20833    if depmode=$depmode \
20834       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20835       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20836       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20837         >/dev/null 2>conftest.err &&
20838       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20839       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20840       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20841       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20842      # icc doesn't choke on unknown options, it will just issue warnings
20843      # or remarks (even with -Werror).  So we grep stderr for any message
20844      # that says an option was ignored or not supported.
20845      # When given -MP, icc 7.0 and 7.1 complain thusly:
20846      #   icc: Command line warning: ignoring option '-M'; no argument required
20847      # The diagnosis changed in icc 8.0:
20848      #   icc: Command line remark: option '-MP' not supported
20849      if (grep 'ignoring option' conftest.err ||
20850          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20851        am_cv_CC_dependencies_compiler_type=$depmode
20852        break
20853      fi
20854    fi
20855  done
20856
20857  cd ..
20858  rm -rf conftest.dir
20859else
20860  am_cv_CC_dependencies_compiler_type=none
20861fi
20862
20863fi
20864{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20865$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20866CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20867
20868 if
20869  test "x$enable_dependency_tracking" != xno \
20870  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20871  am__fastdepCC_TRUE=
20872  am__fastdepCC_FALSE='#'
20873else
20874  am__fastdepCC_TRUE='#'
20875  am__fastdepCC_FALSE=
20876fi
20877
20878
20879
20880
20881
20882
20883case $host_os in
20884  linux*)
20885    IS_LINUX="yes"
20886    # check whether struct kbd_repeat has the 'period' field.
20887    # on kernels < 2.5.42 it's called 'rate' instead.
20888    cat >conftest.$ac_ext <<_ACEOF
20889/* confdefs.h.  */
20890_ACEOF
20891cat confdefs.h >>conftest.$ac_ext
20892cat >>conftest.$ac_ext <<_ACEOF
20893/* end confdefs.h.  */
20894
20895#include <linux/kd.h>
20896#ifdef __sparc__
20897#include <asm/param.h>
20898#include <asm/kbio.h>
20899#endif
20900
20901int
20902main ()
20903{
20904
20905int main () {
20906        struct kbd_repeat k;
20907        k.period = 0;
20908        return 0;
20909}
20910  ;
20911  return 0;
20912}
20913_ACEOF
20914rm -f conftest.$ac_objext
20915if { (ac_try="$ac_compile"
20916case "(($ac_try" in
20917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20918  *) ac_try_echo=$ac_try;;
20919esac
20920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20921$as_echo "$ac_try_echo") >&5
20922  (eval "$ac_compile") 2>conftest.er1
20923  ac_status=$?
20924  grep -v '^ *+' conftest.er1 >conftest.err
20925  rm -f conftest.er1
20926  cat conftest.err >&5
20927  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928  (exit $ac_status); } && {
20929	 test -z "$ac_c_werror_flag" ||
20930	 test ! -s conftest.err
20931       } && test -s conftest.$ac_objext; then
20932  period_field="period"
20933else
20934  $as_echo "$as_me: failed program was:" >&5
20935sed 's/^/| /' conftest.$ac_ext >&5
20936
20937	period_field="rate"
20938fi
20939
20940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20941
20942cat >>confdefs.h <<_ACEOF
20943#define LNX_KBD_PERIOD_NAME $period_field
20944_ACEOF
20945
20946    ;;
20947
20948  freebsd* | kfreebsd-gnu* | netbsd* | openbsd*)
20949    IS_BSD="yes"
20950    ;;
20951
20952  solaris*)
20953    IS_SOLARIS="yes"
20954    ;;
20955
20956  gnu*)
20957    IS_HURD="yes"
20958    ;;
20959
20960  *)
20961    { { $as_echo "$as_me:$LINENO: error: Your operating system is not supported by the kbd driver.
20962                  Contact xorg@lists.freedesktop.org if you are interested in
20963                  porting it." >&5
20964$as_echo "$as_me: error: Your operating system is not supported by the kbd driver.
20965                  Contact xorg@lists.freedesktop.org if you are interested in
20966                  porting it." >&2;}
20967   { (exit 1); exit 1; }; }
20968    ;;
20969esac
20970 if test "x$IS_LINUX" = xyes; then
20971  LINUX_TRUE=
20972  LINUX_FALSE='#'
20973else
20974  LINUX_TRUE='#'
20975  LINUX_FALSE=
20976fi
20977
20978 if test "x$IS_BSD" = xyes; then
20979  BSD_TRUE=
20980  BSD_FALSE='#'
20981else
20982  BSD_TRUE='#'
20983  BSD_FALSE=
20984fi
20985
20986 if test "x$IS_SOLARIS" = xyes; then
20987  SOLARIS_TRUE=
20988  SOLARIS_FALSE='#'
20989else
20990  SOLARIS_TRUE='#'
20991  SOLARIS_FALSE=
20992fi
20993
20994 if test "x$IS_HURD" = xyes; then
20995  HURD_TRUE=
20996  HURD_FALSE='#'
20997else
20998  HURD_TRUE='#'
20999  HURD_FALSE=
21000fi
21001
21002 if test "x$IS_SCO" = xyes; then
21003  SCO_TRUE=
21004  SCO_FALSE='#'
21005else
21006  SCO_TRUE='#'
21007  SCO_FALSE=
21008fi
21009
21010
21011
21012# Check whether --with-xorg-module-dir was given.
21013if test "${with_xorg_module_dir+set}" = set; then
21014  withval=$with_xorg_module_dir; moduledir="$withval"
21015else
21016  moduledir="$libdir/xorg/modules"
21017fi
21018
21019
21020
21021# Checks for extensions
21022
21023	SAVE_CFLAGS="$CFLAGS"
21024	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21025	cat >conftest.$ac_ext <<_ACEOF
21026/* confdefs.h.  */
21027_ACEOF
21028cat confdefs.h >>conftest.$ac_ext
21029cat >>conftest.$ac_ext <<_ACEOF
21030/* end confdefs.h.  */
21031
21032#include "xorg-server.h"
21033#if !defined RANDR
21034#error RANDR not defined
21035#endif
21036
21037int
21038main ()
21039{
21040
21041  ;
21042  return 0;
21043}
21044_ACEOF
21045rm -f conftest.$ac_objext
21046if { (ac_try="$ac_compile"
21047case "(($ac_try" in
21048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049  *) ac_try_echo=$ac_try;;
21050esac
21051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21052$as_echo "$ac_try_echo") >&5
21053  (eval "$ac_compile") 2>conftest.er1
21054  ac_status=$?
21055  grep -v '^ *+' conftest.er1 >conftest.err
21056  rm -f conftest.er1
21057  cat conftest.err >&5
21058  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059  (exit $ac_status); } && {
21060	 test -z "$ac_c_werror_flag" ||
21061	 test ! -s conftest.err
21062       } && test -s conftest.$ac_objext; then
21063  _EXT_CHECK=yes
21064else
21065  $as_echo "$as_me: failed program was:" >&5
21066sed 's/^/| /' conftest.$ac_ext >&5
21067
21068	_EXT_CHECK=no
21069fi
21070
21071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21072	CFLAGS="$SAVE_CFLAGS"
21073	{ $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
21074$as_echo_n "checking if RANDR is defined... " >&6; }
21075	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21076$as_echo "$_EXT_CHECK" >&6; }
21077	if test "$_EXT_CHECK" != no; then
21078		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
21079	fi
21080
21081
21082	SAVE_CFLAGS="$CFLAGS"
21083	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21084	cat >conftest.$ac_ext <<_ACEOF
21085/* confdefs.h.  */
21086_ACEOF
21087cat confdefs.h >>conftest.$ac_ext
21088cat >>conftest.$ac_ext <<_ACEOF
21089/* end confdefs.h.  */
21090
21091#include "xorg-server.h"
21092#if !defined XINPUT
21093#error XINPUT not defined
21094#endif
21095
21096int
21097main ()
21098{
21099
21100  ;
21101  return 0;
21102}
21103_ACEOF
21104rm -f conftest.$ac_objext
21105if { (ac_try="$ac_compile"
21106case "(($ac_try" in
21107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108  *) ac_try_echo=$ac_try;;
21109esac
21110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21111$as_echo "$ac_try_echo") >&5
21112  (eval "$ac_compile") 2>conftest.er1
21113  ac_status=$?
21114  grep -v '^ *+' conftest.er1 >conftest.err
21115  rm -f conftest.er1
21116  cat conftest.err >&5
21117  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118  (exit $ac_status); } && {
21119	 test -z "$ac_c_werror_flag" ||
21120	 test ! -s conftest.err
21121       } && test -s conftest.$ac_objext; then
21122  _EXT_CHECK=yes
21123else
21124  $as_echo "$as_me: failed program was:" >&5
21125sed 's/^/| /' conftest.$ac_ext >&5
21126
21127	_EXT_CHECK=no
21128fi
21129
21130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21131	CFLAGS="$SAVE_CFLAGS"
21132	{ $as_echo "$as_me:$LINENO: checking if XINPUT is defined" >&5
21133$as_echo_n "checking if XINPUT is defined... " >&6; }
21134	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21135$as_echo "$_EXT_CHECK" >&6; }
21136	if test "$_EXT_CHECK" != no; then
21137		REQUIRED_MODULES="$REQUIRED_MODULES inputproto"
21138	fi
21139
21140
21141	SAVE_CFLAGS="$CFLAGS"
21142	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21143	cat >conftest.$ac_ext <<_ACEOF
21144/* confdefs.h.  */
21145_ACEOF
21146cat confdefs.h >>conftest.$ac_ext
21147cat >>conftest.$ac_ext <<_ACEOF
21148/* end confdefs.h.  */
21149
21150#include "xorg-server.h"
21151#if !defined XKB
21152#error XKB not defined
21153#endif
21154
21155int
21156main ()
21157{
21158
21159  ;
21160  return 0;
21161}
21162_ACEOF
21163rm -f conftest.$ac_objext
21164if { (ac_try="$ac_compile"
21165case "(($ac_try" in
21166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21167  *) ac_try_echo=$ac_try;;
21168esac
21169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21170$as_echo "$ac_try_echo") >&5
21171  (eval "$ac_compile") 2>conftest.er1
21172  ac_status=$?
21173  grep -v '^ *+' conftest.er1 >conftest.err
21174  rm -f conftest.er1
21175  cat conftest.err >&5
21176  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177  (exit $ac_status); } && {
21178	 test -z "$ac_c_werror_flag" ||
21179	 test ! -s conftest.err
21180       } && test -s conftest.$ac_objext; then
21181  _EXT_CHECK=yes
21182else
21183  $as_echo "$as_me: failed program was:" >&5
21184sed 's/^/| /' conftest.$ac_ext >&5
21185
21186	_EXT_CHECK=no
21187fi
21188
21189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21190	CFLAGS="$SAVE_CFLAGS"
21191	{ $as_echo "$as_me:$LINENO: checking if XKB is defined" >&5
21192$as_echo_n "checking if XKB is defined... " >&6; }
21193	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21194$as_echo "$_EXT_CHECK" >&6; }
21195	if test "$_EXT_CHECK" != no; then
21196		REQUIRED_MODULES="$REQUIRED_MODULES kbproto"
21197	fi
21198
21199
21200# Checks for pkg-config packages
21201
21202
21203if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21204	if test -n "$ac_tool_prefix"; then
21205  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21206set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21207{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21208$as_echo_n "checking for $ac_word... " >&6; }
21209if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21210  $as_echo_n "(cached) " >&6
21211else
21212  case $PKG_CONFIG in
21213  [\\/]* | ?:[\\/]*)
21214  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21215  ;;
21216  *)
21217  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21218for as_dir in $PATH
21219do
21220  IFS=$as_save_IFS
21221  test -z "$as_dir" && as_dir=.
21222  for ac_exec_ext in '' $ac_executable_extensions; do
21223  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21224    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21225    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21226    break 2
21227  fi
21228done
21229done
21230IFS=$as_save_IFS
21231
21232  ;;
21233esac
21234fi
21235PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21236if test -n "$PKG_CONFIG"; then
21237  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21238$as_echo "$PKG_CONFIG" >&6; }
21239else
21240  { $as_echo "$as_me:$LINENO: result: no" >&5
21241$as_echo "no" >&6; }
21242fi
21243
21244
21245fi
21246if test -z "$ac_cv_path_PKG_CONFIG"; then
21247  ac_pt_PKG_CONFIG=$PKG_CONFIG
21248  # Extract the first word of "pkg-config", so it can be a program name with args.
21249set dummy pkg-config; ac_word=$2
21250{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21251$as_echo_n "checking for $ac_word... " >&6; }
21252if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21253  $as_echo_n "(cached) " >&6
21254else
21255  case $ac_pt_PKG_CONFIG in
21256  [\\/]* | ?:[\\/]*)
21257  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21258  ;;
21259  *)
21260  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21261for as_dir in $PATH
21262do
21263  IFS=$as_save_IFS
21264  test -z "$as_dir" && as_dir=.
21265  for ac_exec_ext in '' $ac_executable_extensions; do
21266  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21267    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21268    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21269    break 2
21270  fi
21271done
21272done
21273IFS=$as_save_IFS
21274
21275  ;;
21276esac
21277fi
21278ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21279if test -n "$ac_pt_PKG_CONFIG"; then
21280  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21281$as_echo "$ac_pt_PKG_CONFIG" >&6; }
21282else
21283  { $as_echo "$as_me:$LINENO: result: no" >&5
21284$as_echo "no" >&6; }
21285fi
21286
21287  if test "x$ac_pt_PKG_CONFIG" = x; then
21288    PKG_CONFIG=""
21289  else
21290    case $cross_compiling:$ac_tool_warned in
21291yes:)
21292{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21294ac_tool_warned=yes ;;
21295esac
21296    PKG_CONFIG=$ac_pt_PKG_CONFIG
21297  fi
21298else
21299  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21300fi
21301
21302fi
21303if test -n "$PKG_CONFIG"; then
21304	_pkg_min_version=0.9.0
21305	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21306$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21307	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21308		{ $as_echo "$as_me:$LINENO: result: yes" >&5
21309$as_echo "yes" >&6; }
21310	else
21311		{ $as_echo "$as_me:$LINENO: result: no" >&5
21312$as_echo "no" >&6; }
21313		PKG_CONFIG=""
21314	fi
21315
21316fi
21317
21318pkg_failed=no
21319{ $as_echo "$as_me:$LINENO: checking for XORG" >&5
21320$as_echo_n "checking for XORG... " >&6; }
21321
21322if test -n "$XORG_CFLAGS"; then
21323    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
21324 elif test -n "$PKG_CONFIG"; then
21325    if test -n "$PKG_CONFIG" && \
21326    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2.99.0 xproto \$REQUIRED_MODULES\"") >&5
21327  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES") 2>&5
21328  ac_status=$?
21329  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330  (exit $ac_status); }; then
21331  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES" 2>/dev/null`
21332else
21333  pkg_failed=yes
21334fi
21335 else
21336    pkg_failed=untried
21337fi
21338if test -n "$XORG_LIBS"; then
21339    pkg_cv_XORG_LIBS="$XORG_LIBS"
21340 elif test -n "$PKG_CONFIG"; then
21341    if test -n "$PKG_CONFIG" && \
21342    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2.99.0 xproto \$REQUIRED_MODULES\"") >&5
21343  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES") 2>&5
21344  ac_status=$?
21345  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346  (exit $ac_status); }; then
21347  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES" 2>/dev/null`
21348else
21349  pkg_failed=yes
21350fi
21351 else
21352    pkg_failed=untried
21353fi
21354
21355
21356
21357if test $pkg_failed = yes; then
21358
21359if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21360        _pkg_short_errors_supported=yes
21361else
21362        _pkg_short_errors_supported=no
21363fi
21364        if test $_pkg_short_errors_supported = yes; then
21365	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES" 2>&1`
21366        else
21367	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES" 2>&1`
21368        fi
21369	# Put the nasty error message in config.log where it belongs
21370	echo "$XORG_PKG_ERRORS" >&5
21371
21372	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES) were not met:
21373
21374$XORG_PKG_ERRORS
21375
21376Consider adjusting the PKG_CONFIG_PATH environment variable if you
21377installed software in a non-standard prefix.
21378
21379Alternatively, you may set the environment variables XORG_CFLAGS
21380and XORG_LIBS to avoid the need to call pkg-config.
21381See the pkg-config man page for more details.
21382" >&5
21383$as_echo "$as_me: error: Package requirements (xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES) were not met:
21384
21385$XORG_PKG_ERRORS
21386
21387Consider adjusting the PKG_CONFIG_PATH environment variable if you
21388installed software in a non-standard prefix.
21389
21390Alternatively, you may set the environment variables XORG_CFLAGS
21391and XORG_LIBS to avoid the need to call pkg-config.
21392See the pkg-config man page for more details.
21393" >&2;}
21394   { (exit 1); exit 1; }; }
21395elif test $pkg_failed = untried; then
21396	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21398{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21399is in your PATH or set the PKG_CONFIG environment variable to the full
21400path to pkg-config.
21401
21402Alternatively, you may set the environment variables XORG_CFLAGS
21403and XORG_LIBS to avoid the need to call pkg-config.
21404See the pkg-config man page for more details.
21405
21406To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21407See \`config.log' for more details." >&5
21408$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21409is in your PATH or set the PKG_CONFIG environment variable to the full
21410path to pkg-config.
21411
21412Alternatively, you may set the environment variables XORG_CFLAGS
21413and XORG_LIBS to avoid the need to call pkg-config.
21414See the pkg-config man page for more details.
21415
21416To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21417See \`config.log' for more details." >&2;}
21418   { (exit 1); exit 1; }; }; }
21419else
21420	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
21421	XORG_LIBS=$pkg_cv_XORG_LIBS
21422        { $as_echo "$as_me:$LINENO: result: yes" >&5
21423$as_echo "yes" >&6; }
21424	:
21425fi
21426sdkdir=$(pkg-config --variable=sdkdir xorg-server)
21427
21428
21429
21430if  test "x$GCC" = xyes ; then
21431    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
21432-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
21433-Wbad-function-cast"
21434    case `gcc -dumpversion` in
21435    3.4.* | 4.*)
21436	CWARNFLAGS+=" -Wold-style-definition -Wdeclaration-after-statement"
21437	;;
21438    esac
21439else
21440    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
21441$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
21442if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
21443  $as_echo_n "(cached) " >&6
21444else
21445  cat >conftest.$ac_ext <<_ACEOF
21446/* confdefs.h.  */
21447_ACEOF
21448cat confdefs.h >>conftest.$ac_ext
21449cat >>conftest.$ac_ext <<_ACEOF
21450/* end confdefs.h.  */
21451$ac_includes_default
21452int
21453main ()
21454{
21455#ifndef __SUNPRO_C
21456  (void) __SUNPRO_C;
21457#endif
21458
21459  ;
21460  return 0;
21461}
21462_ACEOF
21463rm -f conftest.$ac_objext
21464if { (ac_try="$ac_compile"
21465case "(($ac_try" in
21466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21467  *) ac_try_echo=$ac_try;;
21468esac
21469eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21470$as_echo "$ac_try_echo") >&5
21471  (eval "$ac_compile") 2>conftest.er1
21472  ac_status=$?
21473  grep -v '^ *+' conftest.er1 >conftest.err
21474  rm -f conftest.er1
21475  cat conftest.err >&5
21476  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477  (exit $ac_status); } && {
21478	 test -z "$ac_c_werror_flag" ||
21479	 test ! -s conftest.err
21480       } && test -s conftest.$ac_objext; then
21481  ac_cv_have_decl___SUNPRO_C=yes
21482else
21483  $as_echo "$as_me: failed program was:" >&5
21484sed 's/^/| /' conftest.$ac_ext >&5
21485
21486	ac_cv_have_decl___SUNPRO_C=no
21487fi
21488
21489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21490fi
21491{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
21492$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
21493if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
21494  SUNCC="yes"
21495else
21496  SUNCC="no"
21497fi
21498
21499    if test "x$SUNCC" = "xyes"; then
21500	CWARNFLAGS="-v"
21501    fi
21502fi
21503
21504
21505XORG_CFLAGS="$CWARNFLAGS $XORG_CFLAGS"
21506
21507
21508# Checks for libraries.
21509
21510# Checks for header files.
21511{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21512$as_echo_n "checking for ANSI C header files... " >&6; }
21513if test "${ac_cv_header_stdc+set}" = set; then
21514  $as_echo_n "(cached) " >&6
21515else
21516  cat >conftest.$ac_ext <<_ACEOF
21517/* confdefs.h.  */
21518_ACEOF
21519cat confdefs.h >>conftest.$ac_ext
21520cat >>conftest.$ac_ext <<_ACEOF
21521/* end confdefs.h.  */
21522#include <stdlib.h>
21523#include <stdarg.h>
21524#include <string.h>
21525#include <float.h>
21526
21527int
21528main ()
21529{
21530
21531  ;
21532  return 0;
21533}
21534_ACEOF
21535rm -f conftest.$ac_objext
21536if { (ac_try="$ac_compile"
21537case "(($ac_try" in
21538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539  *) ac_try_echo=$ac_try;;
21540esac
21541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21542$as_echo "$ac_try_echo") >&5
21543  (eval "$ac_compile") 2>conftest.er1
21544  ac_status=$?
21545  grep -v '^ *+' conftest.er1 >conftest.err
21546  rm -f conftest.er1
21547  cat conftest.err >&5
21548  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549  (exit $ac_status); } && {
21550	 test -z "$ac_c_werror_flag" ||
21551	 test ! -s conftest.err
21552       } && test -s conftest.$ac_objext; then
21553  ac_cv_header_stdc=yes
21554else
21555  $as_echo "$as_me: failed program was:" >&5
21556sed 's/^/| /' conftest.$ac_ext >&5
21557
21558	ac_cv_header_stdc=no
21559fi
21560
21561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21562
21563if test $ac_cv_header_stdc = yes; then
21564  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21565  cat >conftest.$ac_ext <<_ACEOF
21566/* confdefs.h.  */
21567_ACEOF
21568cat confdefs.h >>conftest.$ac_ext
21569cat >>conftest.$ac_ext <<_ACEOF
21570/* end confdefs.h.  */
21571#include <string.h>
21572
21573_ACEOF
21574if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21575  $EGREP "memchr" >/dev/null 2>&1; then
21576  :
21577else
21578  ac_cv_header_stdc=no
21579fi
21580rm -f conftest*
21581
21582fi
21583
21584if test $ac_cv_header_stdc = yes; then
21585  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21586  cat >conftest.$ac_ext <<_ACEOF
21587/* confdefs.h.  */
21588_ACEOF
21589cat confdefs.h >>conftest.$ac_ext
21590cat >>conftest.$ac_ext <<_ACEOF
21591/* end confdefs.h.  */
21592#include <stdlib.h>
21593
21594_ACEOF
21595if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21596  $EGREP "free" >/dev/null 2>&1; then
21597  :
21598else
21599  ac_cv_header_stdc=no
21600fi
21601rm -f conftest*
21602
21603fi
21604
21605if test $ac_cv_header_stdc = yes; then
21606  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21607  if test "$cross_compiling" = yes; then
21608  :
21609else
21610  cat >conftest.$ac_ext <<_ACEOF
21611/* confdefs.h.  */
21612_ACEOF
21613cat confdefs.h >>conftest.$ac_ext
21614cat >>conftest.$ac_ext <<_ACEOF
21615/* end confdefs.h.  */
21616#include <ctype.h>
21617#include <stdlib.h>
21618#if ((' ' & 0x0FF) == 0x020)
21619# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21620# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21621#else
21622# define ISLOWER(c) \
21623		   (('a' <= (c) && (c) <= 'i') \
21624		     || ('j' <= (c) && (c) <= 'r') \
21625		     || ('s' <= (c) && (c) <= 'z'))
21626# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21627#endif
21628
21629#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21630int
21631main ()
21632{
21633  int i;
21634  for (i = 0; i < 256; i++)
21635    if (XOR (islower (i), ISLOWER (i))
21636	|| toupper (i) != TOUPPER (i))
21637      return 2;
21638  return 0;
21639}
21640_ACEOF
21641rm -f conftest$ac_exeext
21642if { (ac_try="$ac_link"
21643case "(($ac_try" in
21644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21645  *) ac_try_echo=$ac_try;;
21646esac
21647eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21648$as_echo "$ac_try_echo") >&5
21649  (eval "$ac_link") 2>&5
21650  ac_status=$?
21651  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21653  { (case "(($ac_try" in
21654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21655  *) ac_try_echo=$ac_try;;
21656esac
21657eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21658$as_echo "$ac_try_echo") >&5
21659  (eval "$ac_try") 2>&5
21660  ac_status=$?
21661  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662  (exit $ac_status); }; }; then
21663  :
21664else
21665  $as_echo "$as_me: program exited with status $ac_status" >&5
21666$as_echo "$as_me: failed program was:" >&5
21667sed 's/^/| /' conftest.$ac_ext >&5
21668
21669( exit $ac_status )
21670ac_cv_header_stdc=no
21671fi
21672rm -rf conftest.dSYM
21673rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21674fi
21675
21676
21677fi
21678fi
21679{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21680$as_echo "$ac_cv_header_stdc" >&6; }
21681if test $ac_cv_header_stdc = yes; then
21682
21683cat >>confdefs.h <<\_ACEOF
21684#define STDC_HEADERS 1
21685_ACEOF
21686
21687fi
21688
21689
21690
21691
21692
21693if test x$APP_MAN_SUFFIX = x    ; then
21694    APP_MAN_SUFFIX=1
21695fi
21696if test x$APP_MAN_DIR = x    ; then
21697    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
21698fi
21699
21700if test x$LIB_MAN_SUFFIX = x    ; then
21701    LIB_MAN_SUFFIX=3
21702fi
21703if test x$LIB_MAN_DIR = x    ; then
21704    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
21705fi
21706
21707if test x$FILE_MAN_SUFFIX = x    ; then
21708    case $host_os in
21709	solaris*)	FILE_MAN_SUFFIX=4  ;;
21710	*)		FILE_MAN_SUFFIX=5  ;;
21711    esac
21712fi
21713if test x$FILE_MAN_DIR = x    ; then
21714    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
21715fi
21716
21717if test x$MISC_MAN_SUFFIX = x    ; then
21718    case $host_os in
21719	solaris*)	MISC_MAN_SUFFIX=5  ;;
21720	*)		MISC_MAN_SUFFIX=7  ;;
21721    esac
21722fi
21723if test x$MISC_MAN_DIR = x    ; then
21724    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
21725fi
21726
21727if test x$DRIVER_MAN_SUFFIX = x    ; then
21728    case $host_os in
21729	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
21730	*)		DRIVER_MAN_SUFFIX=4  ;;
21731    esac
21732fi
21733if test x$DRIVER_MAN_DIR = x    ; then
21734    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
21735fi
21736
21737if test x$ADMIN_MAN_SUFFIX = x    ; then
21738    case $host_os in
21739	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
21740	*)		ADMIN_MAN_SUFFIX=8  ;;
21741    esac
21742fi
21743if test x$ADMIN_MAN_DIR = x    ; then
21744    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
21745fi
21746
21747
21748
21749
21750
21751
21752
21753
21754
21755
21756
21757
21758
21759
21760
21761
21762
21763# Check whether --with-release-version was given.
21764if test "${with_release_version+set}" = set; then
21765  withval=$with_release_version; RELEASE_VERSION="$withval"
21766else
21767  RELEASE_VERSION=""
21768fi
21769
21770	if test "x$RELEASE_VERSION" != "x"; then
21771		PACKAGE="$PACKAGE-$RELEASE_VERSION"
21772		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
21773		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
21774$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
21775	fi
21776
21777cat >>confdefs.h <<_ACEOF
21778#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
21779_ACEOF
21780
21781	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
21782	if test "x$PVM" = "x"; then
21783		PVM="0"
21784	fi
21785
21786cat >>confdefs.h <<_ACEOF
21787#define PACKAGE_VERSION_MINOR $PVM
21788_ACEOF
21789
21790	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
21791	if test "x$PVP" = "x"; then
21792		PVP="0"
21793	fi
21794
21795cat >>confdefs.h <<_ACEOF
21796#define PACKAGE_VERSION_PATCHLEVEL $PVP
21797_ACEOF
21798
21799
21800
21801CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
21802mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
21803echo 'git directory not found: installing possibly empty changelog.' >&2)"
21804
21805distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
21806
21807
21808
21809ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
21810
21811cat >confcache <<\_ACEOF
21812# This file is a shell script that caches the results of configure
21813# tests run on this system so they can be shared between configure
21814# scripts and configure runs, see configure's option --config-cache.
21815# It is not useful on other systems.  If it contains results you don't
21816# want to keep, you may remove or edit it.
21817#
21818# config.status only pays attention to the cache file if you give it
21819# the --recheck option to rerun configure.
21820#
21821# `ac_cv_env_foo' variables (set or unset) will be overridden when
21822# loading this file, other *unset* `ac_cv_foo' will be assigned the
21823# following values.
21824
21825_ACEOF
21826
21827# The following way of writing the cache mishandles newlines in values,
21828# but we know of no workaround that is simple, portable, and efficient.
21829# So, we kill variables containing newlines.
21830# Ultrix sh set writes to stderr and can't be redirected directly,
21831# and sets the high bit in the cache file unless we assign to the vars.
21832(
21833  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21834    eval ac_val=\$$ac_var
21835    case $ac_val in #(
21836    *${as_nl}*)
21837      case $ac_var in #(
21838      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21839$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21840      esac
21841      case $ac_var in #(
21842      _ | IFS | as_nl) ;; #(
21843      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21844      *) $as_unset $ac_var ;;
21845      esac ;;
21846    esac
21847  done
21848
21849  (set) 2>&1 |
21850    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21851    *${as_nl}ac_space=\ *)
21852      # `set' does not quote correctly, so add quotes (double-quote
21853      # substitution turns \\\\ into \\, and sed turns \\ into \).
21854      sed -n \
21855	"s/'/'\\\\''/g;
21856	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21857      ;; #(
21858    *)
21859      # `set' quotes correctly as required by POSIX, so do not add quotes.
21860      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21861      ;;
21862    esac |
21863    sort
21864) |
21865  sed '
21866     /^ac_cv_env_/b end
21867     t clear
21868     :clear
21869     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21870     t end
21871     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21872     :end' >>confcache
21873if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21874  if test -w "$cache_file"; then
21875    test "x$cache_file" != "x/dev/null" &&
21876      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21877$as_echo "$as_me: updating cache $cache_file" >&6;}
21878    cat confcache >$cache_file
21879  else
21880    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21881$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21882  fi
21883fi
21884rm -f confcache
21885
21886test "x$prefix" = xNONE && prefix=$ac_default_prefix
21887# Let make expand exec_prefix.
21888test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21889
21890DEFS=-DHAVE_CONFIG_H
21891
21892ac_libobjs=
21893ac_ltlibobjs=
21894for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21895  # 1. Remove the extension, and $U if already installed.
21896  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21897  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21898  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21899  #    will be set to the directory where LIBOBJS objects are built.
21900  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21901  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21902done
21903LIBOBJS=$ac_libobjs
21904
21905LTLIBOBJS=$ac_ltlibobjs
21906
21907
21908if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21909  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21910Usually this means the macro was only invoked conditionally." >&5
21911$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21912Usually this means the macro was only invoked conditionally." >&2;}
21913   { (exit 1); exit 1; }; }
21914fi
21915if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21916  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21917Usually this means the macro was only invoked conditionally." >&5
21918$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21919Usually this means the macro was only invoked conditionally." >&2;}
21920   { (exit 1); exit 1; }; }
21921fi
21922if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21923  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21924Usually this means the macro was only invoked conditionally." >&5
21925$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21926Usually this means the macro was only invoked conditionally." >&2;}
21927   { (exit 1); exit 1; }; }
21928fi
21929if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21930  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21931Usually this means the macro was only invoked conditionally." >&5
21932$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21933Usually this means the macro was only invoked conditionally." >&2;}
21934   { (exit 1); exit 1; }; }
21935fi
21936if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21937  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21938Usually this means the macro was only invoked conditionally." >&5
21939$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21940Usually this means the macro was only invoked conditionally." >&2;}
21941   { (exit 1); exit 1; }; }
21942fi
21943if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
21944  { { $as_echo "$as_me:$LINENO: error: conditional \"LINUX\" was never defined.
21945Usually this means the macro was only invoked conditionally." >&5
21946$as_echo "$as_me: error: conditional \"LINUX\" was never defined.
21947Usually this means the macro was only invoked conditionally." >&2;}
21948   { (exit 1); exit 1; }; }
21949fi
21950if test -z "${BSD_TRUE}" && test -z "${BSD_FALSE}"; then
21951  { { $as_echo "$as_me:$LINENO: error: conditional \"BSD\" was never defined.
21952Usually this means the macro was only invoked conditionally." >&5
21953$as_echo "$as_me: error: conditional \"BSD\" was never defined.
21954Usually this means the macro was only invoked conditionally." >&2;}
21955   { (exit 1); exit 1; }; }
21956fi
21957if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
21958  { { $as_echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined.
21959Usually this means the macro was only invoked conditionally." >&5
21960$as_echo "$as_me: error: conditional \"SOLARIS\" was never defined.
21961Usually this means the macro was only invoked conditionally." >&2;}
21962   { (exit 1); exit 1; }; }
21963fi
21964if test -z "${HURD_TRUE}" && test -z "${HURD_FALSE}"; then
21965  { { $as_echo "$as_me:$LINENO: error: conditional \"HURD\" was never defined.
21966Usually this means the macro was only invoked conditionally." >&5
21967$as_echo "$as_me: error: conditional \"HURD\" was never defined.
21968Usually this means the macro was only invoked conditionally." >&2;}
21969   { (exit 1); exit 1; }; }
21970fi
21971if test -z "${SCO_TRUE}" && test -z "${SCO_FALSE}"; then
21972  { { $as_echo "$as_me:$LINENO: error: conditional \"SCO\" was never defined.
21973Usually this means the macro was only invoked conditionally." >&5
21974$as_echo "$as_me: error: conditional \"SCO\" was never defined.
21975Usually this means the macro was only invoked conditionally." >&2;}
21976   { (exit 1); exit 1; }; }
21977fi
21978
21979: ${CONFIG_STATUS=./config.status}
21980ac_write_fail=0
21981ac_clean_files_save=$ac_clean_files
21982ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21983{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21984$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21985cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21986#! $SHELL
21987# Generated by $as_me.
21988# Run this file to recreate the current configuration.
21989# Compiler output produced by configure, useful for debugging
21990# configure, is in config.log if it exists.
21991
21992debug=false
21993ac_cs_recheck=false
21994ac_cs_silent=false
21995SHELL=\${CONFIG_SHELL-$SHELL}
21996_ACEOF
21997
21998cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21999## --------------------- ##
22000## M4sh Initialization.  ##
22001## --------------------- ##
22002
22003# Be more Bourne compatible
22004DUALCASE=1; export DUALCASE # for MKS sh
22005if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22006  emulate sh
22007  NULLCMD=:
22008  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22009  # is contrary to our usage.  Disable this feature.
22010  alias -g '${1+"$@"}'='"$@"'
22011  setopt NO_GLOB_SUBST
22012else
22013  case `(set -o) 2>/dev/null` in
22014  *posix*) set -o posix ;;
22015esac
22016
22017fi
22018
22019
22020
22021
22022# PATH needs CR
22023# Avoid depending upon Character Ranges.
22024as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22025as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22026as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22027as_cr_digits='0123456789'
22028as_cr_alnum=$as_cr_Letters$as_cr_digits
22029
22030as_nl='
22031'
22032export as_nl
22033# Printing a long string crashes Solaris 7 /usr/bin/printf.
22034as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22035as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22036as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22037if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22038  as_echo='printf %s\n'
22039  as_echo_n='printf %s'
22040else
22041  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22042    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22043    as_echo_n='/usr/ucb/echo -n'
22044  else
22045    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22046    as_echo_n_body='eval
22047      arg=$1;
22048      case $arg in
22049      *"$as_nl"*)
22050	expr "X$arg" : "X\\(.*\\)$as_nl";
22051	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22052      esac;
22053      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22054    '
22055    export as_echo_n_body
22056    as_echo_n='sh -c $as_echo_n_body as_echo'
22057  fi
22058  export as_echo_body
22059  as_echo='sh -c $as_echo_body as_echo'
22060fi
22061
22062# The user is always right.
22063if test "${PATH_SEPARATOR+set}" != set; then
22064  PATH_SEPARATOR=:
22065  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22066    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22067      PATH_SEPARATOR=';'
22068  }
22069fi
22070
22071# Support unset when possible.
22072if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22073  as_unset=unset
22074else
22075  as_unset=false
22076fi
22077
22078
22079# IFS
22080# We need space, tab and new line, in precisely that order.  Quoting is
22081# there to prevent editors from complaining about space-tab.
22082# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22083# splitting by setting IFS to empty value.)
22084IFS=" ""	$as_nl"
22085
22086# Find who we are.  Look in the path if we contain no directory separator.
22087case $0 in
22088  *[\\/]* ) as_myself=$0 ;;
22089  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22090for as_dir in $PATH
22091do
22092  IFS=$as_save_IFS
22093  test -z "$as_dir" && as_dir=.
22094  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22095done
22096IFS=$as_save_IFS
22097
22098     ;;
22099esac
22100# We did not find ourselves, most probably we were run as `sh COMMAND'
22101# in which case we are not to be found in the path.
22102if test "x$as_myself" = x; then
22103  as_myself=$0
22104fi
22105if test ! -f "$as_myself"; then
22106  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22107  { (exit 1); exit 1; }
22108fi
22109
22110# Work around bugs in pre-3.0 UWIN ksh.
22111for as_var in ENV MAIL MAILPATH
22112do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22113done
22114PS1='$ '
22115PS2='> '
22116PS4='+ '
22117
22118# NLS nuisances.
22119LC_ALL=C
22120export LC_ALL
22121LANGUAGE=C
22122export LANGUAGE
22123
22124# Required to use basename.
22125if expr a : '\(a\)' >/dev/null 2>&1 &&
22126   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22127  as_expr=expr
22128else
22129  as_expr=false
22130fi
22131
22132if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22133  as_basename=basename
22134else
22135  as_basename=false
22136fi
22137
22138
22139# Name of the executable.
22140as_me=`$as_basename -- "$0" ||
22141$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22142	 X"$0" : 'X\(//\)$' \| \
22143	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22144$as_echo X/"$0" |
22145    sed '/^.*\/\([^/][^/]*\)\/*$/{
22146	    s//\1/
22147	    q
22148	  }
22149	  /^X\/\(\/\/\)$/{
22150	    s//\1/
22151	    q
22152	  }
22153	  /^X\/\(\/\).*/{
22154	    s//\1/
22155	    q
22156	  }
22157	  s/.*/./; q'`
22158
22159# CDPATH.
22160$as_unset CDPATH
22161
22162
22163
22164  as_lineno_1=$LINENO
22165  as_lineno_2=$LINENO
22166  test "x$as_lineno_1" != "x$as_lineno_2" &&
22167  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22168
22169  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22170  # uniformly replaced by the line number.  The first 'sed' inserts a
22171  # line-number line after each line using $LINENO; the second 'sed'
22172  # does the real work.  The second script uses 'N' to pair each
22173  # line-number line with the line containing $LINENO, and appends
22174  # trailing '-' during substitution so that $LINENO is not a special
22175  # case at line end.
22176  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22177  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22178  # E. McMahon (1931-1989) for sed's syntax.  :-)
22179  sed -n '
22180    p
22181    /[$]LINENO/=
22182  ' <$as_myself |
22183    sed '
22184      s/[$]LINENO.*/&-/
22185      t lineno
22186      b
22187      :lineno
22188      N
22189      :loop
22190      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22191      t loop
22192      s/-\n.*//
22193    ' >$as_me.lineno &&
22194  chmod +x "$as_me.lineno" ||
22195    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22196   { (exit 1); exit 1; }; }
22197
22198  # Don't try to exec as it changes $[0], causing all sort of problems
22199  # (the dirname of $[0] is not the place where we might find the
22200  # original and so on.  Autoconf is especially sensitive to this).
22201  . "./$as_me.lineno"
22202  # Exit status is that of the last command.
22203  exit
22204}
22205
22206
22207if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22208  as_dirname=dirname
22209else
22210  as_dirname=false
22211fi
22212
22213ECHO_C= ECHO_N= ECHO_T=
22214case `echo -n x` in
22215-n*)
22216  case `echo 'x\c'` in
22217  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22218  *)   ECHO_C='\c';;
22219  esac;;
22220*)
22221  ECHO_N='-n';;
22222esac
22223if expr a : '\(a\)' >/dev/null 2>&1 &&
22224   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22225  as_expr=expr
22226else
22227  as_expr=false
22228fi
22229
22230rm -f conf$$ conf$$.exe conf$$.file
22231if test -d conf$$.dir; then
22232  rm -f conf$$.dir/conf$$.file
22233else
22234  rm -f conf$$.dir
22235  mkdir conf$$.dir 2>/dev/null
22236fi
22237if (echo >conf$$.file) 2>/dev/null; then
22238  if ln -s conf$$.file conf$$ 2>/dev/null; then
22239    as_ln_s='ln -s'
22240    # ... but there are two gotchas:
22241    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22242    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22243    # In both cases, we have to default to `cp -p'.
22244    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22245      as_ln_s='cp -p'
22246  elif ln conf$$.file conf$$ 2>/dev/null; then
22247    as_ln_s=ln
22248  else
22249    as_ln_s='cp -p'
22250  fi
22251else
22252  as_ln_s='cp -p'
22253fi
22254rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22255rmdir conf$$.dir 2>/dev/null
22256
22257if mkdir -p . 2>/dev/null; then
22258  as_mkdir_p=:
22259else
22260  test -d ./-p && rmdir ./-p
22261  as_mkdir_p=false
22262fi
22263
22264if test -x / >/dev/null 2>&1; then
22265  as_test_x='test -x'
22266else
22267  if ls -dL / >/dev/null 2>&1; then
22268    as_ls_L_option=L
22269  else
22270    as_ls_L_option=
22271  fi
22272  as_test_x='
22273    eval sh -c '\''
22274      if test -d "$1"; then
22275	test -d "$1/.";
22276      else
22277	case $1 in
22278	-*)set "./$1";;
22279	esac;
22280	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22281	???[sx]*):;;*)false;;esac;fi
22282    '\'' sh
22283  '
22284fi
22285as_executable_p=$as_test_x
22286
22287# Sed expression to map a string onto a valid CPP name.
22288as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22289
22290# Sed expression to map a string onto a valid variable name.
22291as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22292
22293
22294exec 6>&1
22295
22296# Save the log message, to keep $[0] and so on meaningful, and to
22297# report actual input values of CONFIG_FILES etc. instead of their
22298# values after options handling.
22299ac_log="
22300This file was extended by xf86-input-keyboard $as_me 1.3.2, which was
22301generated by GNU Autoconf 2.63.  Invocation command line was
22302
22303  CONFIG_FILES    = $CONFIG_FILES
22304  CONFIG_HEADERS  = $CONFIG_HEADERS
22305  CONFIG_LINKS    = $CONFIG_LINKS
22306  CONFIG_COMMANDS = $CONFIG_COMMANDS
22307  $ $0 $@
22308
22309on `(hostname || uname -n) 2>/dev/null | sed 1q`
22310"
22311
22312_ACEOF
22313
22314case $ac_config_files in *"
22315"*) set x $ac_config_files; shift; ac_config_files=$*;;
22316esac
22317
22318case $ac_config_headers in *"
22319"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22320esac
22321
22322
22323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22324# Files that config.status was made for.
22325config_files="`echo $ac_config_files`"
22326config_headers="`echo $ac_config_headers`"
22327config_commands="`echo $ac_config_commands`"
22328
22329_ACEOF
22330
22331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22332ac_cs_usage="\
22333\`$as_me' instantiates files from templates according to the
22334current configuration.
22335
22336Usage: $0 [OPTION]... [FILE]...
22337
22338  -h, --help       print this help, then exit
22339  -V, --version    print version number and configuration settings, then exit
22340  -q, --quiet, --silent
22341                   do not print progress messages
22342  -d, --debug      don't remove temporary files
22343      --recheck    update $as_me by reconfiguring in the same conditions
22344      --file=FILE[:TEMPLATE]
22345                   instantiate the configuration file FILE
22346      --header=FILE[:TEMPLATE]
22347                   instantiate the configuration header FILE
22348
22349Configuration files:
22350$config_files
22351
22352Configuration headers:
22353$config_headers
22354
22355Configuration commands:
22356$config_commands
22357
22358Report bugs to <bug-autoconf@gnu.org>."
22359
22360_ACEOF
22361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22362ac_cs_version="\\
22363xf86-input-keyboard config.status 1.3.2
22364configured by $0, generated by GNU Autoconf 2.63,
22365  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22366
22367Copyright (C) 2008 Free Software Foundation, Inc.
22368This config.status script is free software; the Free Software Foundation
22369gives unlimited permission to copy, distribute and modify it."
22370
22371ac_pwd='$ac_pwd'
22372srcdir='$srcdir'
22373INSTALL='$INSTALL'
22374MKDIR_P='$MKDIR_P'
22375AWK='$AWK'
22376test -n "\$AWK" || AWK=awk
22377_ACEOF
22378
22379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22380# The default lists apply if the user does not specify any file.
22381ac_need_defaults=:
22382while test $# != 0
22383do
22384  case $1 in
22385  --*=*)
22386    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22387    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22388    ac_shift=:
22389    ;;
22390  *)
22391    ac_option=$1
22392    ac_optarg=$2
22393    ac_shift=shift
22394    ;;
22395  esac
22396
22397  case $ac_option in
22398  # Handling of the options.
22399  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22400    ac_cs_recheck=: ;;
22401  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22402    $as_echo "$ac_cs_version"; exit ;;
22403  --debug | --debu | --deb | --de | --d | -d )
22404    debug=: ;;
22405  --file | --fil | --fi | --f )
22406    $ac_shift
22407    case $ac_optarg in
22408    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22409    esac
22410    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22411    ac_need_defaults=false;;
22412  --header | --heade | --head | --hea )
22413    $ac_shift
22414    case $ac_optarg in
22415    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22416    esac
22417    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22418    ac_need_defaults=false;;
22419  --he | --h)
22420    # Conflict between --help and --header
22421    { $as_echo "$as_me: error: ambiguous option: $1
22422Try \`$0 --help' for more information." >&2
22423   { (exit 1); exit 1; }; };;
22424  --help | --hel | -h )
22425    $as_echo "$ac_cs_usage"; exit ;;
22426  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22427  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22428    ac_cs_silent=: ;;
22429
22430  # This is an error.
22431  -*) { $as_echo "$as_me: error: unrecognized option: $1
22432Try \`$0 --help' for more information." >&2
22433   { (exit 1); exit 1; }; } ;;
22434
22435  *) ac_config_targets="$ac_config_targets $1"
22436     ac_need_defaults=false ;;
22437
22438  esac
22439  shift
22440done
22441
22442ac_configure_extra_args=
22443
22444if $ac_cs_silent; then
22445  exec 6>/dev/null
22446  ac_configure_extra_args="$ac_configure_extra_args --silent"
22447fi
22448
22449_ACEOF
22450cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22451if \$ac_cs_recheck; then
22452  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22453  shift
22454  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22455  CONFIG_SHELL='$SHELL'
22456  export CONFIG_SHELL
22457  exec "\$@"
22458fi
22459
22460_ACEOF
22461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22462exec 5>>config.log
22463{
22464  echo
22465  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22466## Running $as_me. ##
22467_ASBOX
22468  $as_echo "$ac_log"
22469} >&5
22470
22471_ACEOF
22472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22473#
22474# INIT-COMMANDS
22475#
22476AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22477
22478_ACEOF
22479
22480cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22481
22482# Handling of arguments.
22483for ac_config_target in $ac_config_targets
22484do
22485  case $ac_config_target in
22486    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22487    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22488    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22489    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22490    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22491
22492  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22493$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22494   { (exit 1); exit 1; }; };;
22495  esac
22496done
22497
22498
22499# If the user did not use the arguments to specify the items to instantiate,
22500# then the envvar interface is used.  Set only those that are not.
22501# We use the long form for the default assignment because of an extremely
22502# bizarre bug on SunOS 4.1.3.
22503if $ac_need_defaults; then
22504  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22505  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22506  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22507fi
22508
22509# Have a temporary directory for convenience.  Make it in the build tree
22510# simply because there is no reason against having it here, and in addition,
22511# creating and moving files from /tmp can sometimes cause problems.
22512# Hook for its removal unless debugging.
22513# Note that there is a small window in which the directory will not be cleaned:
22514# after its creation but before its name has been assigned to `$tmp'.
22515$debug ||
22516{
22517  tmp=
22518  trap 'exit_status=$?
22519  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22520' 0
22521  trap '{ (exit 1); exit 1; }' 1 2 13 15
22522}
22523# Create a (secure) tmp directory for tmp files.
22524
22525{
22526  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22527  test -n "$tmp" && test -d "$tmp"
22528}  ||
22529{
22530  tmp=./conf$$-$RANDOM
22531  (umask 077 && mkdir "$tmp")
22532} ||
22533{
22534   $as_echo "$as_me: cannot create a temporary directory in ." >&2
22535   { (exit 1); exit 1; }
22536}
22537
22538# Set up the scripts for CONFIG_FILES section.
22539# No need to generate them if there are no CONFIG_FILES.
22540# This happens for instance with `./config.status config.h'.
22541if test -n "$CONFIG_FILES"; then
22542
22543
22544ac_cr='
22545'
22546ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22547if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22548  ac_cs_awk_cr='\\r'
22549else
22550  ac_cs_awk_cr=$ac_cr
22551fi
22552
22553echo 'BEGIN {' >"$tmp/subs1.awk" &&
22554_ACEOF
22555
22556
22557{
22558  echo "cat >conf$$subs.awk <<_ACEOF" &&
22559  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22560  echo "_ACEOF"
22561} >conf$$subs.sh ||
22562  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22563$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22564   { (exit 1); exit 1; }; }
22565ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22566ac_delim='%!_!# '
22567for ac_last_try in false false false false false :; do
22568  . ./conf$$subs.sh ||
22569    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22570$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22571   { (exit 1); exit 1; }; }
22572
22573  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22574  if test $ac_delim_n = $ac_delim_num; then
22575    break
22576  elif $ac_last_try; then
22577    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22578$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22579   { (exit 1); exit 1; }; }
22580  else
22581    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22582  fi
22583done
22584rm -f conf$$subs.sh
22585
22586cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22587cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22588_ACEOF
22589sed -n '
22590h
22591s/^/S["/; s/!.*/"]=/
22592p
22593g
22594s/^[^!]*!//
22595:repl
22596t repl
22597s/'"$ac_delim"'$//
22598t delim
22599:nl
22600h
22601s/\(.\{148\}\).*/\1/
22602t more1
22603s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22604p
22605n
22606b repl
22607:more1
22608s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22609p
22610g
22611s/.\{148\}//
22612t nl
22613:delim
22614h
22615s/\(.\{148\}\).*/\1/
22616t more2
22617s/["\\]/\\&/g; s/^/"/; s/$/"/
22618p
22619b
22620:more2
22621s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22622p
22623g
22624s/.\{148\}//
22625t delim
22626' <conf$$subs.awk | sed '
22627/^[^""]/{
22628  N
22629  s/\n//
22630}
22631' >>$CONFIG_STATUS || ac_write_fail=1
22632rm -f conf$$subs.awk
22633cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22634_ACAWK
22635cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22636  for (key in S) S_is_set[key] = 1
22637  FS = ""
22638
22639}
22640{
22641  line = $ 0
22642  nfields = split(line, field, "@")
22643  substed = 0
22644  len = length(field[1])
22645  for (i = 2; i < nfields; i++) {
22646    key = field[i]
22647    keylen = length(key)
22648    if (S_is_set[key]) {
22649      value = S[key]
22650      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22651      len += length(value) + length(field[++i])
22652      substed = 1
22653    } else
22654      len += 1 + keylen
22655  }
22656
22657  print line
22658}
22659
22660_ACAWK
22661_ACEOF
22662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22663if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22664  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22665else
22666  cat
22667fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22668  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22669$as_echo "$as_me: error: could not setup config files machinery" >&2;}
22670   { (exit 1); exit 1; }; }
22671_ACEOF
22672
22673# VPATH may cause trouble with some makes, so we remove $(srcdir),
22674# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22675# trailing colons and then remove the whole line if VPATH becomes empty
22676# (actually we leave an empty line to preserve line numbers).
22677if test "x$srcdir" = x.; then
22678  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22679s/:*\$(srcdir):*/:/
22680s/:*\${srcdir}:*/:/
22681s/:*@srcdir@:*/:/
22682s/^\([^=]*=[	 ]*\):*/\1/
22683s/:*$//
22684s/^[^=]*=[	 ]*$//
22685}'
22686fi
22687
22688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22689fi # test -n "$CONFIG_FILES"
22690
22691# Set up the scripts for CONFIG_HEADERS section.
22692# No need to generate them if there are no CONFIG_HEADERS.
22693# This happens for instance with `./config.status Makefile'.
22694if test -n "$CONFIG_HEADERS"; then
22695cat >"$tmp/defines.awk" <<\_ACAWK ||
22696BEGIN {
22697_ACEOF
22698
22699# Transform confdefs.h into an awk script `defines.awk', embedded as
22700# here-document in config.status, that substitutes the proper values into
22701# config.h.in to produce config.h.
22702
22703# Create a delimiter string that does not exist in confdefs.h, to ease
22704# handling of long lines.
22705ac_delim='%!_!# '
22706for ac_last_try in false false :; do
22707  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22708  if test -z "$ac_t"; then
22709    break
22710  elif $ac_last_try; then
22711    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22712$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22713   { (exit 1); exit 1; }; }
22714  else
22715    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22716  fi
22717done
22718
22719# For the awk script, D is an array of macro values keyed by name,
22720# likewise P contains macro parameters if any.  Preserve backslash
22721# newline sequences.
22722
22723ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22724sed -n '
22725s/.\{148\}/&'"$ac_delim"'/g
22726t rset
22727:rset
22728s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22729t def
22730d
22731:def
22732s/\\$//
22733t bsnl
22734s/["\\]/\\&/g
22735s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22736D["\1"]=" \3"/p
22737s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22738d
22739:bsnl
22740s/["\\]/\\&/g
22741s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22742D["\1"]=" \3\\\\\\n"\\/p
22743t cont
22744s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22745t cont
22746d
22747:cont
22748n
22749s/.\{148\}/&'"$ac_delim"'/g
22750t clear
22751:clear
22752s/\\$//
22753t bsnlc
22754s/["\\]/\\&/g; s/^/"/; s/$/"/p
22755d
22756:bsnlc
22757s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22758b cont
22759' <confdefs.h | sed '
22760s/'"$ac_delim"'/"\\\
22761"/g' >>$CONFIG_STATUS || ac_write_fail=1
22762
22763cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22764  for (key in D) D_is_set[key] = 1
22765  FS = ""
22766}
22767/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22768  line = \$ 0
22769  split(line, arg, " ")
22770  if (arg[1] == "#") {
22771    defundef = arg[2]
22772    mac1 = arg[3]
22773  } else {
22774    defundef = substr(arg[1], 2)
22775    mac1 = arg[2]
22776  }
22777  split(mac1, mac2, "(") #)
22778  macro = mac2[1]
22779  prefix = substr(line, 1, index(line, defundef) - 1)
22780  if (D_is_set[macro]) {
22781    # Preserve the white space surrounding the "#".
22782    print prefix "define", macro P[macro] D[macro]
22783    next
22784  } else {
22785    # Replace #undef with comments.  This is necessary, for example,
22786    # in the case of _POSIX_SOURCE, which is predefined and required
22787    # on some systems where configure will not decide to define it.
22788    if (defundef == "undef") {
22789      print "/*", prefix defundef, macro, "*/"
22790      next
22791    }
22792  }
22793}
22794{ print }
22795_ACAWK
22796_ACEOF
22797cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22798  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22799$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22800   { (exit 1); exit 1; }; }
22801fi # test -n "$CONFIG_HEADERS"
22802
22803
22804eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22805shift
22806for ac_tag
22807do
22808  case $ac_tag in
22809  :[FHLC]) ac_mode=$ac_tag; continue;;
22810  esac
22811  case $ac_mode$ac_tag in
22812  :[FHL]*:*);;
22813  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22814$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22815   { (exit 1); exit 1; }; };;
22816  :[FH]-) ac_tag=-:-;;
22817  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22818  esac
22819  ac_save_IFS=$IFS
22820  IFS=:
22821  set x $ac_tag
22822  IFS=$ac_save_IFS
22823  shift
22824  ac_file=$1
22825  shift
22826
22827  case $ac_mode in
22828  :L) ac_source=$1;;
22829  :[FH])
22830    ac_file_inputs=
22831    for ac_f
22832    do
22833      case $ac_f in
22834      -) ac_f="$tmp/stdin";;
22835      *) # Look for the file first in the build tree, then in the source tree
22836	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22837	 # because $ac_f cannot contain `:'.
22838	 test -f "$ac_f" ||
22839	   case $ac_f in
22840	   [\\/$]*) false;;
22841	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22842	   esac ||
22843	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22844$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22845   { (exit 1); exit 1; }; };;
22846      esac
22847      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22848      ac_file_inputs="$ac_file_inputs '$ac_f'"
22849    done
22850
22851    # Let's still pretend it is `configure' which instantiates (i.e., don't
22852    # use $as_me), people would be surprised to read:
22853    #    /* config.h.  Generated by config.status.  */
22854    configure_input='Generated from '`
22855	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22856	`' by configure.'
22857    if test x"$ac_file" != x-; then
22858      configure_input="$ac_file.  $configure_input"
22859      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22860$as_echo "$as_me: creating $ac_file" >&6;}
22861    fi
22862    # Neutralize special characters interpreted by sed in replacement strings.
22863    case $configure_input in #(
22864    *\&* | *\|* | *\\* )
22865       ac_sed_conf_input=`$as_echo "$configure_input" |
22866       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22867    *) ac_sed_conf_input=$configure_input;;
22868    esac
22869
22870    case $ac_tag in
22871    *:-:* | *:-) cat >"$tmp/stdin" \
22872      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22873$as_echo "$as_me: error: could not create $ac_file" >&2;}
22874   { (exit 1); exit 1; }; } ;;
22875    esac
22876    ;;
22877  esac
22878
22879  ac_dir=`$as_dirname -- "$ac_file" ||
22880$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22881	 X"$ac_file" : 'X\(//\)[^/]' \| \
22882	 X"$ac_file" : 'X\(//\)$' \| \
22883	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22884$as_echo X"$ac_file" |
22885    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22886	    s//\1/
22887	    q
22888	  }
22889	  /^X\(\/\/\)[^/].*/{
22890	    s//\1/
22891	    q
22892	  }
22893	  /^X\(\/\/\)$/{
22894	    s//\1/
22895	    q
22896	  }
22897	  /^X\(\/\).*/{
22898	    s//\1/
22899	    q
22900	  }
22901	  s/.*/./; q'`
22902  { as_dir="$ac_dir"
22903  case $as_dir in #(
22904  -*) as_dir=./$as_dir;;
22905  esac
22906  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22907    as_dirs=
22908    while :; do
22909      case $as_dir in #(
22910      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22911      *) as_qdir=$as_dir;;
22912      esac
22913      as_dirs="'$as_qdir' $as_dirs"
22914      as_dir=`$as_dirname -- "$as_dir" ||
22915$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22916	 X"$as_dir" : 'X\(//\)[^/]' \| \
22917	 X"$as_dir" : 'X\(//\)$' \| \
22918	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22919$as_echo X"$as_dir" |
22920    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22921	    s//\1/
22922	    q
22923	  }
22924	  /^X\(\/\/\)[^/].*/{
22925	    s//\1/
22926	    q
22927	  }
22928	  /^X\(\/\/\)$/{
22929	    s//\1/
22930	    q
22931	  }
22932	  /^X\(\/\).*/{
22933	    s//\1/
22934	    q
22935	  }
22936	  s/.*/./; q'`
22937      test -d "$as_dir" && break
22938    done
22939    test -z "$as_dirs" || eval "mkdir $as_dirs"
22940  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22941$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22942   { (exit 1); exit 1; }; }; }
22943  ac_builddir=.
22944
22945case "$ac_dir" in
22946.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22947*)
22948  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22949  # A ".." for each directory in $ac_dir_suffix.
22950  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22951  case $ac_top_builddir_sub in
22952  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22953  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22954  esac ;;
22955esac
22956ac_abs_top_builddir=$ac_pwd
22957ac_abs_builddir=$ac_pwd$ac_dir_suffix
22958# for backward compatibility:
22959ac_top_builddir=$ac_top_build_prefix
22960
22961case $srcdir in
22962  .)  # We are building in place.
22963    ac_srcdir=.
22964    ac_top_srcdir=$ac_top_builddir_sub
22965    ac_abs_top_srcdir=$ac_pwd ;;
22966  [\\/]* | ?:[\\/]* )  # Absolute name.
22967    ac_srcdir=$srcdir$ac_dir_suffix;
22968    ac_top_srcdir=$srcdir
22969    ac_abs_top_srcdir=$srcdir ;;
22970  *) # Relative name.
22971    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22972    ac_top_srcdir=$ac_top_build_prefix$srcdir
22973    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22974esac
22975ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22976
22977
22978  case $ac_mode in
22979  :F)
22980  #
22981  # CONFIG_FILE
22982  #
22983
22984  case $INSTALL in
22985  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22986  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22987  esac
22988  ac_MKDIR_P=$MKDIR_P
22989  case $MKDIR_P in
22990  [\\/$]* | ?:[\\/]* ) ;;
22991  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22992  esac
22993_ACEOF
22994
22995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22996# If the template does not know about datarootdir, expand it.
22997# FIXME: This hack should be removed a few years after 2.60.
22998ac_datarootdir_hack=; ac_datarootdir_seen=
22999
23000ac_sed_dataroot='
23001/datarootdir/ {
23002  p
23003  q
23004}
23005/@datadir@/p
23006/@docdir@/p
23007/@infodir@/p
23008/@localedir@/p
23009/@mandir@/p
23010'
23011case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23012*datarootdir*) ac_datarootdir_seen=yes;;
23013*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23014  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23015$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23016_ACEOF
23017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23018  ac_datarootdir_hack='
23019  s&@datadir@&$datadir&g
23020  s&@docdir@&$docdir&g
23021  s&@infodir@&$infodir&g
23022  s&@localedir@&$localedir&g
23023  s&@mandir@&$mandir&g
23024    s&\\\${datarootdir}&$datarootdir&g' ;;
23025esac
23026_ACEOF
23027
23028# Neutralize VPATH when `$srcdir' = `.'.
23029# Shell code in configure.ac might set extrasub.
23030# FIXME: do we really want to maintain this feature?
23031cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23032ac_sed_extra="$ac_vpsub
23033$extrasub
23034_ACEOF
23035cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23036:t
23037/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23038s|@configure_input@|$ac_sed_conf_input|;t t
23039s&@top_builddir@&$ac_top_builddir_sub&;t t
23040s&@top_build_prefix@&$ac_top_build_prefix&;t t
23041s&@srcdir@&$ac_srcdir&;t t
23042s&@abs_srcdir@&$ac_abs_srcdir&;t t
23043s&@top_srcdir@&$ac_top_srcdir&;t t
23044s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23045s&@builddir@&$ac_builddir&;t t
23046s&@abs_builddir@&$ac_abs_builddir&;t t
23047s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23048s&@INSTALL@&$ac_INSTALL&;t t
23049s&@MKDIR_P@&$ac_MKDIR_P&;t t
23050$ac_datarootdir_hack
23051"
23052eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23053  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23054$as_echo "$as_me: error: could not create $ac_file" >&2;}
23055   { (exit 1); exit 1; }; }
23056
23057test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23058  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23059  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23060  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23061which seems to be undefined.  Please make sure it is defined." >&5
23062$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23063which seems to be undefined.  Please make sure it is defined." >&2;}
23064
23065  rm -f "$tmp/stdin"
23066  case $ac_file in
23067  -) cat "$tmp/out" && rm -f "$tmp/out";;
23068  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23069  esac \
23070  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23071$as_echo "$as_me: error: could not create $ac_file" >&2;}
23072   { (exit 1); exit 1; }; }
23073 ;;
23074  :H)
23075  #
23076  # CONFIG_HEADER
23077  #
23078  if test x"$ac_file" != x-; then
23079    {
23080      $as_echo "/* $configure_input  */" \
23081      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23082    } >"$tmp/config.h" \
23083      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23084$as_echo "$as_me: error: could not create $ac_file" >&2;}
23085   { (exit 1); exit 1; }; }
23086    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23087      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23088$as_echo "$as_me: $ac_file is unchanged" >&6;}
23089    else
23090      rm -f "$ac_file"
23091      mv "$tmp/config.h" "$ac_file" \
23092	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23093$as_echo "$as_me: error: could not create $ac_file" >&2;}
23094   { (exit 1); exit 1; }; }
23095    fi
23096  else
23097    $as_echo "/* $configure_input  */" \
23098      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23099      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23100$as_echo "$as_me: error: could not create -" >&2;}
23101   { (exit 1); exit 1; }; }
23102  fi
23103# Compute "$ac_file"'s index in $config_headers.
23104_am_arg="$ac_file"
23105_am_stamp_count=1
23106for _am_header in $config_headers :; do
23107  case $_am_header in
23108    $_am_arg | $_am_arg:* )
23109      break ;;
23110    * )
23111      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23112  esac
23113done
23114echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23115$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23116	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23117	 X"$_am_arg" : 'X\(//\)$' \| \
23118	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23119$as_echo X"$_am_arg" |
23120    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23121	    s//\1/
23122	    q
23123	  }
23124	  /^X\(\/\/\)[^/].*/{
23125	    s//\1/
23126	    q
23127	  }
23128	  /^X\(\/\/\)$/{
23129	    s//\1/
23130	    q
23131	  }
23132	  /^X\(\/\).*/{
23133	    s//\1/
23134	    q
23135	  }
23136	  s/.*/./; q'`/stamp-h$_am_stamp_count
23137 ;;
23138
23139  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23140$as_echo "$as_me: executing $ac_file commands" >&6;}
23141 ;;
23142  esac
23143
23144
23145  case $ac_file$ac_mode in
23146    "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
23147# are listed without --file.  Let's play safe and only enable the eval
23148# if we detect the quoting.
23149case $CONFIG_FILES in
23150*\'*) eval set x "$CONFIG_FILES" ;;
23151*)   set x $CONFIG_FILES ;;
23152esac
23153shift
23154for mf
23155do
23156  # Strip MF so we end up with the name of the file.
23157  mf=`echo "$mf" | sed -e 's/:.*$//'`
23158  # Check whether this is an Automake generated Makefile or not.
23159  # We used to match only the files named `Makefile.in', but
23160  # some people rename them; so instead we look at the file content.
23161  # Grep'ing the first line is not enough: some people post-process
23162  # each Makefile.in and add a new line on top of each file to say so.
23163  # Grep'ing the whole file is not good either: AIX grep has a line
23164  # limit of 2048, but all sed's we know have understand at least 4000.
23165  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23166    dirpart=`$as_dirname -- "$mf" ||
23167$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23168	 X"$mf" : 'X\(//\)[^/]' \| \
23169	 X"$mf" : 'X\(//\)$' \| \
23170	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23171$as_echo X"$mf" |
23172    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23173	    s//\1/
23174	    q
23175	  }
23176	  /^X\(\/\/\)[^/].*/{
23177	    s//\1/
23178	    q
23179	  }
23180	  /^X\(\/\/\)$/{
23181	    s//\1/
23182	    q
23183	  }
23184	  /^X\(\/\).*/{
23185	    s//\1/
23186	    q
23187	  }
23188	  s/.*/./; q'`
23189  else
23190    continue
23191  fi
23192  # Extract the definition of DEPDIR, am__include, and am__quote
23193  # from the Makefile without running `make'.
23194  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23195  test -z "$DEPDIR" && continue
23196  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23197  test -z "am__include" && continue
23198  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23199  # When using ansi2knr, U may be empty or an underscore; expand it
23200  U=`sed -n 's/^U = //p' < "$mf"`
23201  # Find all dependency output files, they are included files with
23202  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23203  # simplest approach to changing $(DEPDIR) to its actual value in the
23204  # expansion.
23205  for file in `sed -n "
23206    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23207       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23208    # Make sure the directory exists.
23209    test -f "$dirpart/$file" && continue
23210    fdir=`$as_dirname -- "$file" ||
23211$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23212	 X"$file" : 'X\(//\)[^/]' \| \
23213	 X"$file" : 'X\(//\)$' \| \
23214	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23215$as_echo X"$file" |
23216    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23217	    s//\1/
23218	    q
23219	  }
23220	  /^X\(\/\/\)[^/].*/{
23221	    s//\1/
23222	    q
23223	  }
23224	  /^X\(\/\/\)$/{
23225	    s//\1/
23226	    q
23227	  }
23228	  /^X\(\/\).*/{
23229	    s//\1/
23230	    q
23231	  }
23232	  s/.*/./; q'`
23233    { as_dir=$dirpart/$fdir
23234  case $as_dir in #(
23235  -*) as_dir=./$as_dir;;
23236  esac
23237  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23238    as_dirs=
23239    while :; do
23240      case $as_dir in #(
23241      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23242      *) as_qdir=$as_dir;;
23243      esac
23244      as_dirs="'$as_qdir' $as_dirs"
23245      as_dir=`$as_dirname -- "$as_dir" ||
23246$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23247	 X"$as_dir" : 'X\(//\)[^/]' \| \
23248	 X"$as_dir" : 'X\(//\)$' \| \
23249	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23250$as_echo X"$as_dir" |
23251    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23252	    s//\1/
23253	    q
23254	  }
23255	  /^X\(\/\/\)[^/].*/{
23256	    s//\1/
23257	    q
23258	  }
23259	  /^X\(\/\/\)$/{
23260	    s//\1/
23261	    q
23262	  }
23263	  /^X\(\/\).*/{
23264	    s//\1/
23265	    q
23266	  }
23267	  s/.*/./; q'`
23268      test -d "$as_dir" && break
23269    done
23270    test -z "$as_dirs" || eval "mkdir $as_dirs"
23271  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23272$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23273   { (exit 1); exit 1; }; }; }
23274    # echo "creating $dirpart/$file"
23275    echo '# dummy' > "$dirpart/$file"
23276  done
23277done
23278 ;;
23279
23280  esac
23281done # for ac_tag
23282
23283
23284{ (exit 0); exit 0; }
23285_ACEOF
23286chmod +x $CONFIG_STATUS
23287ac_clean_files=$ac_clean_files_save
23288
23289test $ac_write_fail = 0 ||
23290  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23291$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23292   { (exit 1); exit 1; }; }
23293
23294
23295# configure is writing to config.log, and then calls config.status.
23296# config.status does its own redirection, appending to config.log.
23297# Unfortunately, on DOS this fails, as config.log is still kept open
23298# by configure, so config.status won't be able to write to it; its
23299# output is simply discarded.  So we exec the FD to /dev/null,
23300# effectively closing config.log, so it can be properly (re)opened and
23301# appended to by config.status.  When coming back to configure, we
23302# need to make the FD available again.
23303if test "$no_create" != yes; then
23304  ac_cs_success=:
23305  ac_config_status_args=
23306  test "$silent" = yes &&
23307    ac_config_status_args="$ac_config_status_args --quiet"
23308  exec 5>/dev/null
23309  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23310  exec 5>>config.log
23311  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23312  # would make configure fail if this is the last instruction.
23313  $ac_cs_success || { (exit 1); exit 1; }
23314fi
23315if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23316  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23317$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23318fi
23319
23320