configure revision c5629e66
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for libICE 1.0.5.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85  as_unset=unset
86else
87  as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139  as_expr=expr
140else
141  as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145  as_basename=basename
146else
147  as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154	 X"$0" : 'X\(//\)$' \| \
155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157    sed '/^.*\/\([^/][^/]*\)\/*$/{
158	    s//\1/
159	    q
160	  }
161	  /^X\/\(\/\/\)$/{
162	    s//\1/
163	    q
164	  }
165	  /^X\/\(\/\).*/{
166	    s//\1/
167	    q
168	  }
169	  s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176  if (eval ":") 2>/dev/null; then
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181
182  if test $as_have_required = yes &&	 (eval ":
183(as_func_return () {
184  (exit \$1)
185}
186as_func_success () {
187  as_func_return 0
188}
189as_func_failure () {
190  as_func_return 1
191}
192as_func_ret_success () {
193  return 0
194}
195as_func_ret_failure () {
196  return 1
197}
198
199exitcode=0
200if as_func_success; then
201  :
202else
203  exitcode=1
204  echo as_func_success failed.
205fi
206
207if as_func_failure; then
208  exitcode=1
209  echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213  :
214else
215  exitcode=1
216  echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220  exitcode=1
221  echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225  :
226else
227  exitcode=1
228  echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234  as_lineno_1=\$LINENO
235  as_lineno_2=\$LINENO
236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239  :
240else
241  as_candidate_shells=
242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245  IFS=$as_save_IFS
246  test -z "$as_dir" && as_dir=.
247  case $as_dir in
248	 /*)
249	   for as_base in sh bash ksh sh5; do
250	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251	   done;;
252       esac
253done
254IFS=$as_save_IFS
255
256
257      for as_shell in $as_candidate_shells $SHELL; do
258	 # Try only shells that exist, to save several forks.
259	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279  CONFIG_SHELL=$as_shell
280	       as_have_required=yes
281	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283  emulate sh
284  NULLCMD=:
285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286  # is contrary to our usage.  Disable this feature.
287  alias -g '${1+"$@"}'='"$@"'
288  setopt NO_GLOB_SUBST
289else
290  case `(set -o) 2>/dev/null` in
291  *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299  (exit $1)
300}
301as_func_success () {
302  as_func_return 0
303}
304as_func_failure () {
305  as_func_return 1
306}
307as_func_ret_success () {
308  return 0
309}
310as_func_ret_failure () {
311  return 1
312}
313
314exitcode=0
315if as_func_success; then
316  :
317else
318  exitcode=1
319  echo as_func_success failed.
320fi
321
322if as_func_failure; then
323  exitcode=1
324  echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328  :
329else
330  exitcode=1
331  echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335  exitcode=1
336  echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340  :
341else
342  exitcode=1
343  echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349  as_lineno_1=$LINENO
350  as_lineno_2=$LINENO
351  test "x$as_lineno_1" != "x$as_lineno_2" &&
352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356  break
357fi
358
359fi
360
361      done
362
363      if test "x$CONFIG_SHELL" != x; then
364  for as_var in BASH_ENV ENV
365	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366	done
367	export CONFIG_SHELL
368	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372    if test $as_have_required = no; then
373  echo This script requires a shell more modern than all the
374      echo shells that I found on your system.  Please install a
375      echo modern shell, or manually run the script under such a
376      echo shell if you do have one.
377      { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388  (exit \$1)
389}
390as_func_success () {
391  as_func_return 0
392}
393as_func_failure () {
394  as_func_return 1
395}
396as_func_ret_success () {
397  return 0
398}
399as_func_ret_failure () {
400  return 1
401}
402
403exitcode=0
404if as_func_success; then
405  :
406else
407  exitcode=1
408  echo as_func_success failed.
409fi
410
411if as_func_failure; then
412  exitcode=1
413  echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417  :
418else
419  exitcode=1
420  echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424  exitcode=1
425  echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429  :
430else
431  exitcode=1
432  echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436  echo No shell found that supports shell functions.
437  echo Please tell bug-autoconf@gnu.org about your system,
438  echo including any error possibly output before this message.
439  echo This can help us improve future autoconf versions.
440  echo Configuration will now proceed without shell functions.
441}
442
443
444
445  as_lineno_1=$LINENO
446  as_lineno_2=$LINENO
447  test "x$as_lineno_1" != "x$as_lineno_2" &&
448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451  # uniformly replaced by the line number.  The first 'sed' inserts a
452  # line-number line after each line using $LINENO; the second 'sed'
453  # does the real work.  The second script uses 'N' to pair each
454  # line-number line with the line containing $LINENO, and appends
455  # trailing '-' during substitution so that $LINENO is not a special
456  # case at line end.
457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459  # E. McMahon (1931-1989) for sed's syntax.  :-)
460  sed -n '
461    p
462    /[$]LINENO/=
463  ' <$as_myself |
464    sed '
465      s/[$]LINENO.*/&-/
466      t lineno
467      b
468      :lineno
469      N
470      :loop
471      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472      t loop
473      s/-\n.*//
474    ' >$as_me.lineno &&
475  chmod +x "$as_me.lineno" ||
476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477   { (exit 1); exit 1; }; }
478
479  # Don't try to exec as it changes $[0], causing all sort of problems
480  # (the dirname of $[0] is not the place where we might find the
481  # original and so on.  Autoconf is especially sensitive to this).
482  . "./$as_me.lineno"
483  # Exit status is that of the last command.
484  exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489  as_dirname=dirname
490else
491  as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497  case `echo 'x\c'` in
498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499  *)   ECHO_C='\c';;
500  esac;;
501*)
502  ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506  as_expr=expr
507else
508  as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513  rm -f conf$$.dir/conf$$.file
514else
515  rm -f conf$$.dir
516  mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519  if ln -s conf$$.file conf$$ 2>/dev/null; then
520    as_ln_s='ln -s'
521    # ... but there are two gotchas:
522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524    # In both cases, we have to default to `cp -p'.
525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526      as_ln_s='cp -p'
527  elif ln conf$$.file conf$$ 2>/dev/null; then
528    as_ln_s=ln
529  else
530    as_ln_s='cp -p'
531  fi
532else
533  as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539  as_mkdir_p=:
540else
541  test -d ./-p && rmdir ./-p
542  as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546  as_test_x='test -x'
547else
548  if ls -dL / >/dev/null 2>&1; then
549    as_ls_L_option=L
550  else
551    as_ls_L_option=
552  fi
553  as_test_x='
554    eval sh -c '\''
555      if test -d "$1"; then
556	test -d "$1/.";
557      else
558	case $1 in
559	-*)set "./$1";;
560	esac;
561	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562	???[sx]*):;;*)false;;esac;fi
563    '\'' sh
564  '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$ECHO in
581X*--fallback-echo)
582  # Remove one level of quotation (which was required for Make).
583  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584  ;;
585esac
586
587echo=${ECHO-echo}
588if test "X$1" = X--no-reexec; then
589  # Discard the --no-reexec flag, and continue.
590  shift
591elif test "X$1" = X--fallback-echo; then
592  # Avoid inline document here, it may be left over
593  :
594elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595  # Yippee, $echo works!
596  :
597else
598  # Restart under the correct shell.
599  exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603  # used as fallback echo
604  shift
605  cat <<EOF
606$*
607EOF
608  exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$ECHO"; then
616if test "X${echo_test_string+set}" != Xset; then
617# find a string as large as possible, as long as the shell can cope with it
618  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621       echo_test_string=`eval $cmd` &&
622       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623    then
624      break
625    fi
626  done
627fi
628
629if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631   test "X$echo_testing_string" = "X$echo_test_string"; then
632  :
633else
634  # The Solaris, AIX, and Digital Unix default echo programs unquote
635  # backslashes.  This makes it impossible to quote backslashes using
636  #   echo "$something" | sed 's/\\/\\\\/g'
637  #
638  # So, first we look for a working echo in the user's PATH.
639
640  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641  for dir in $PATH /usr/ucb; do
642    IFS="$lt_save_ifs"
643    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646       test "X$echo_testing_string" = "X$echo_test_string"; then
647      echo="$dir/echo"
648      break
649    fi
650  done
651  IFS="$lt_save_ifs"
652
653  if test "X$echo" = Xecho; then
654    # We didn't find a better echo, so look for alternatives.
655    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657       test "X$echo_testing_string" = "X$echo_test_string"; then
658      # This shell has a builtin print -r that does the trick.
659      echo='print -r'
660    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661	 test "X$CONFIG_SHELL" != X/bin/ksh; then
662      # If we have ksh, try running configure again with it.
663      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664      export ORIGINAL_CONFIG_SHELL
665      CONFIG_SHELL=/bin/ksh
666      export CONFIG_SHELL
667      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668    else
669      # Try using printf.
670      echo='printf %s\n'
671      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673	 test "X$echo_testing_string" = "X$echo_test_string"; then
674	# Cool, printf works
675	:
676      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677	   test "X$echo_testing_string" = 'X\t' &&
678	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679	   test "X$echo_testing_string" = "X$echo_test_string"; then
680	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681	export CONFIG_SHELL
682	SHELL="$CONFIG_SHELL"
683	export SHELL
684	echo="$CONFIG_SHELL $0 --fallback-echo"
685      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686	   test "X$echo_testing_string" = 'X\t' &&
687	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688	   test "X$echo_testing_string" = "X$echo_test_string"; then
689	echo="$CONFIG_SHELL $0 --fallback-echo"
690      else
691	# maybe with a smaller string...
692	prev=:
693
694	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696	  then
697	    break
698	  fi
699	  prev="$cmd"
700	done
701
702	if test "$prev" != 'sed 50q "$0"'; then
703	  echo_test_string=`eval $prev`
704	  export echo_test_string
705	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706	else
707	  # Oops.  We lost completely, so just stick with echo.
708	  echo=echo
709	fi
710      fi
711    fi
712  fi
713fi
714fi
715
716# Copy echo and quote the copy suitably for passing to libtool from
717# the Makefile, instead of quoting the original, which is used later.
718ECHO=$echo
719if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721fi
722
723
724
725
726tagnames=${tagnames+${tagnames},}CXX
727
728tagnames=${tagnames+${tagnames},}F77
729
730exec 7<&0 </dev/null 6>&1
731
732# Name of the host.
733# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734# so uname gets run too.
735ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737#
738# Initializations.
739#
740ac_default_prefix=/usr/local
741ac_clean_files=
742ac_config_libobj_dir=.
743LIBOBJS=
744cross_compiling=no
745subdirs=
746MFLAGS=
747MAKEFLAGS=
748SHELL=${CONFIG_SHELL-/bin/sh}
749
750# Identity of this package.
751PACKAGE_NAME='libICE'
752PACKAGE_TARNAME='libICE'
753PACKAGE_VERSION='1.0.5'
754PACKAGE_STRING='libICE 1.0.5'
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
796CWARNFLAGS
797distcleancheck_listfiles
798CHANGELOG_CMD
799MAKE_LINT_LIB_FALSE
800MAKE_LINT_LIB_TRUE
801LINTLIB
802LINT_FALSE
803LINT_TRUE
804LINT_FLAGS
805LINT
806XTRANS_LIBS
807XTRANS_CFLAGS
808ICE_LIBS
809ICE_CFLAGS
810PKG_CONFIG
811LIBTOOL
812ac_ct_F77
813FFLAGS
814F77
815CXXCPP
816am__fastdepCXX_FALSE
817am__fastdepCXX_TRUE
818CXXDEPMODE
819ac_ct_CXX
820CXXFLAGS
821CXX
822CPP
823NMEDIT
824DSYMUTIL
825RANLIB
826AR
827ECHO
828LN_S
829EGREP
830GREP
831SED
832am__fastdepCC_FALSE
833am__fastdepCC_TRUE
834CCDEPMODE
835AMDEPBACKSLASH
836AMDEP_FALSE
837AMDEP_TRUE
838am__quote
839am__include
840DEPDIR
841OBJEXT
842EXEEXT
843ac_ct_CC
844CPPFLAGS
845LDFLAGS
846CFLAGS
847CC
848host_os
849host_vendor
850host_cpu
851host
852build_os
853build_vendor
854build_cpu
855build
856MAINT
857MAINTAINER_MODE_FALSE
858MAINTAINER_MODE_TRUE
859am__untar
860am__tar
861AMTAR
862am__leading_dot
863SET_MAKE
864AWK
865mkdir_p
866MKDIR_P
867INSTALL_STRIP_PROGRAM
868STRIP
869install_sh
870MAKEINFO
871AUTOHEADER
872AUTOMAKE
873AUTOCONF
874ACLOCAL
875VERSION
876PACKAGE
877CYGPATH_W
878am__isrc
879INSTALL_DATA
880INSTALL_SCRIPT
881INSTALL_PROGRAM
882target_alias
883host_alias
884build_alias
885LIBS
886ECHO_T
887ECHO_N
888ECHO_C
889DEFS
890mandir
891localedir
892libdir
893psdir
894pdfdir
895dvidir
896htmldir
897infodir
898docdir
899oldincludedir
900includedir
901localstatedir
902sharedstatedir
903sysconfdir
904datadir
905datarootdir
906libexecdir
907sbindir
908bindir
909program_transform_name
910prefix
911exec_prefix
912PACKAGE_BUGREPORT
913PACKAGE_STRING
914PACKAGE_VERSION
915PACKAGE_TARNAME
916PACKAGE_NAME
917PATH_SEPARATOR
918SHELL'
919ac_subst_files=''
920ac_user_opts='
921enable_option_checking
922enable_maintainer_mode
923enable_shared
924enable_static
925enable_fast_install
926enable_dependency_tracking
927with_gnu_ld
928enable_libtool_lock
929with_pic
930with_tags
931enable_unix_transport
932enable_tcp_transport
933enable_ipv6
934enable_local_transport
935with_lint
936enable_lint_library
937with_release_version
938'
939      ac_precious_vars='build_alias
940host_alias
941target_alias
942CC
943CFLAGS
944LDFLAGS
945LIBS
946CPPFLAGS
947CPP
948CXX
949CXXFLAGS
950CCC
951CXXCPP
952F77
953FFLAGS
954PKG_CONFIG
955ICE_CFLAGS
956ICE_LIBS
957XTRANS_CFLAGS
958XTRANS_LIBS'
959
960
961# Initialize some variables set by options.
962ac_init_help=
963ac_init_version=false
964ac_unrecognized_opts=
965ac_unrecognized_sep=
966# The variables have the same names as the options, with
967# dashes changed to underlines.
968cache_file=/dev/null
969exec_prefix=NONE
970no_create=
971no_recursion=
972prefix=NONE
973program_prefix=NONE
974program_suffix=NONE
975program_transform_name=s,x,x,
976silent=
977site=
978srcdir=
979verbose=
980x_includes=NONE
981x_libraries=NONE
982
983# Installation directory options.
984# These are left unexpanded so users can "make install exec_prefix=/foo"
985# and all the variables that are supposed to be based on exec_prefix
986# by default will actually change.
987# Use braces instead of parens because sh, perl, etc. also accept them.
988# (The list follows the same order as the GNU Coding Standards.)
989bindir='${exec_prefix}/bin'
990sbindir='${exec_prefix}/sbin'
991libexecdir='${exec_prefix}/libexec'
992datarootdir='${prefix}/share'
993datadir='${datarootdir}'
994sysconfdir='${prefix}/etc'
995sharedstatedir='${prefix}/com'
996localstatedir='${prefix}/var'
997includedir='${prefix}/include'
998oldincludedir='/usr/include'
999docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1000infodir='${datarootdir}/info'
1001htmldir='${docdir}'
1002dvidir='${docdir}'
1003pdfdir='${docdir}'
1004psdir='${docdir}'
1005libdir='${exec_prefix}/lib'
1006localedir='${datarootdir}/locale'
1007mandir='${datarootdir}/man'
1008
1009ac_prev=
1010ac_dashdash=
1011for ac_option
1012do
1013  # If the previous option needs an argument, assign it.
1014  if test -n "$ac_prev"; then
1015    eval $ac_prev=\$ac_option
1016    ac_prev=
1017    continue
1018  fi
1019
1020  case $ac_option in
1021  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022  *)	ac_optarg=yes ;;
1023  esac
1024
1025  # Accept the important Cygnus configure options, so we can diagnose typos.
1026
1027  case $ac_dashdash$ac_option in
1028  --)
1029    ac_dashdash=yes ;;
1030
1031  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032    ac_prev=bindir ;;
1033  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034    bindir=$ac_optarg ;;
1035
1036  -build | --build | --buil | --bui | --bu)
1037    ac_prev=build_alias ;;
1038  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039    build_alias=$ac_optarg ;;
1040
1041  -cache-file | --cache-file | --cache-fil | --cache-fi \
1042  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043    ac_prev=cache_file ;;
1044  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046    cache_file=$ac_optarg ;;
1047
1048  --config-cache | -C)
1049    cache_file=config.cache ;;
1050
1051  -datadir | --datadir | --datadi | --datad)
1052    ac_prev=datadir ;;
1053  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1054    datadir=$ac_optarg ;;
1055
1056  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057  | --dataroo | --dataro | --datar)
1058    ac_prev=datarootdir ;;
1059  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061    datarootdir=$ac_optarg ;;
1062
1063  -disable-* | --disable-*)
1064    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065    # Reject names that are not valid shell variable names.
1066    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1068   { (exit 1); exit 1; }; }
1069    ac_useropt_orig=$ac_useropt
1070    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071    case $ac_user_opts in
1072      *"
1073"enable_$ac_useropt"
1074"*) ;;
1075      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1076	 ac_unrecognized_sep=', ';;
1077    esac
1078    eval enable_$ac_useropt=no ;;
1079
1080  -docdir | --docdir | --docdi | --doc | --do)
1081    ac_prev=docdir ;;
1082  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1083    docdir=$ac_optarg ;;
1084
1085  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1086    ac_prev=dvidir ;;
1087  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1088    dvidir=$ac_optarg ;;
1089
1090  -enable-* | --enable-*)
1091    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1092    # Reject names that are not valid shell variable names.
1093    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1095   { (exit 1); exit 1; }; }
1096    ac_useropt_orig=$ac_useropt
1097    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098    case $ac_user_opts in
1099      *"
1100"enable_$ac_useropt"
1101"*) ;;
1102      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1103	 ac_unrecognized_sep=', ';;
1104    esac
1105    eval enable_$ac_useropt=\$ac_optarg ;;
1106
1107  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1108  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1109  | --exec | --exe | --ex)
1110    ac_prev=exec_prefix ;;
1111  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1112  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1113  | --exec=* | --exe=* | --ex=*)
1114    exec_prefix=$ac_optarg ;;
1115
1116  -gas | --gas | --ga | --g)
1117    # Obsolete; use --with-gas.
1118    with_gas=yes ;;
1119
1120  -help | --help | --hel | --he | -h)
1121    ac_init_help=long ;;
1122  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1123    ac_init_help=recursive ;;
1124  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1125    ac_init_help=short ;;
1126
1127  -host | --host | --hos | --ho)
1128    ac_prev=host_alias ;;
1129  -host=* | --host=* | --hos=* | --ho=*)
1130    host_alias=$ac_optarg ;;
1131
1132  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1133    ac_prev=htmldir ;;
1134  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1135  | --ht=*)
1136    htmldir=$ac_optarg ;;
1137
1138  -includedir | --includedir | --includedi | --included | --include \
1139  | --includ | --inclu | --incl | --inc)
1140    ac_prev=includedir ;;
1141  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1142  | --includ=* | --inclu=* | --incl=* | --inc=*)
1143    includedir=$ac_optarg ;;
1144
1145  -infodir | --infodir | --infodi | --infod | --info | --inf)
1146    ac_prev=infodir ;;
1147  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1148    infodir=$ac_optarg ;;
1149
1150  -libdir | --libdir | --libdi | --libd)
1151    ac_prev=libdir ;;
1152  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1153    libdir=$ac_optarg ;;
1154
1155  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1156  | --libexe | --libex | --libe)
1157    ac_prev=libexecdir ;;
1158  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1159  | --libexe=* | --libex=* | --libe=*)
1160    libexecdir=$ac_optarg ;;
1161
1162  -localedir | --localedir | --localedi | --localed | --locale)
1163    ac_prev=localedir ;;
1164  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1165    localedir=$ac_optarg ;;
1166
1167  -localstatedir | --localstatedir | --localstatedi | --localstated \
1168  | --localstate | --localstat | --localsta | --localst | --locals)
1169    ac_prev=localstatedir ;;
1170  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1171  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1172    localstatedir=$ac_optarg ;;
1173
1174  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1175    ac_prev=mandir ;;
1176  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1177    mandir=$ac_optarg ;;
1178
1179  -nfp | --nfp | --nf)
1180    # Obsolete; use --without-fp.
1181    with_fp=no ;;
1182
1183  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1184  | --no-cr | --no-c | -n)
1185    no_create=yes ;;
1186
1187  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1188  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1189    no_recursion=yes ;;
1190
1191  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1192  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1193  | --oldin | --oldi | --old | --ol | --o)
1194    ac_prev=oldincludedir ;;
1195  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1196  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1197  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1198    oldincludedir=$ac_optarg ;;
1199
1200  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1201    ac_prev=prefix ;;
1202  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1203    prefix=$ac_optarg ;;
1204
1205  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1206  | --program-pre | --program-pr | --program-p)
1207    ac_prev=program_prefix ;;
1208  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1209  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1210    program_prefix=$ac_optarg ;;
1211
1212  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1213  | --program-suf | --program-su | --program-s)
1214    ac_prev=program_suffix ;;
1215  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1216  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1217    program_suffix=$ac_optarg ;;
1218
1219  -program-transform-name | --program-transform-name \
1220  | --program-transform-nam | --program-transform-na \
1221  | --program-transform-n | --program-transform- \
1222  | --program-transform | --program-transfor \
1223  | --program-transfo | --program-transf \
1224  | --program-trans | --program-tran \
1225  | --progr-tra | --program-tr | --program-t)
1226    ac_prev=program_transform_name ;;
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    program_transform_name=$ac_optarg ;;
1235
1236  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1237    ac_prev=pdfdir ;;
1238  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1239    pdfdir=$ac_optarg ;;
1240
1241  -psdir | --psdir | --psdi | --psd | --ps)
1242    ac_prev=psdir ;;
1243  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1244    psdir=$ac_optarg ;;
1245
1246  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247  | -silent | --silent | --silen | --sile | --sil)
1248    silent=yes ;;
1249
1250  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1251    ac_prev=sbindir ;;
1252  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1253  | --sbi=* | --sb=*)
1254    sbindir=$ac_optarg ;;
1255
1256  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1257  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1258  | --sharedst | --shareds | --shared | --share | --shar \
1259  | --sha | --sh)
1260    ac_prev=sharedstatedir ;;
1261  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1262  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1263  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1264  | --sha=* | --sh=*)
1265    sharedstatedir=$ac_optarg ;;
1266
1267  -site | --site | --sit)
1268    ac_prev=site ;;
1269  -site=* | --site=* | --sit=*)
1270    site=$ac_optarg ;;
1271
1272  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1273    ac_prev=srcdir ;;
1274  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1275    srcdir=$ac_optarg ;;
1276
1277  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1278  | --syscon | --sysco | --sysc | --sys | --sy)
1279    ac_prev=sysconfdir ;;
1280  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1281  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1282    sysconfdir=$ac_optarg ;;
1283
1284  -target | --target | --targe | --targ | --tar | --ta | --t)
1285    ac_prev=target_alias ;;
1286  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1287    target_alias=$ac_optarg ;;
1288
1289  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1290    verbose=yes ;;
1291
1292  -version | --version | --versio | --versi | --vers | -V)
1293    ac_init_version=: ;;
1294
1295  -with-* | --with-*)
1296    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1297    # Reject names that are not valid shell variable names.
1298    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1300   { (exit 1); exit 1; }; }
1301    ac_useropt_orig=$ac_useropt
1302    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303    case $ac_user_opts in
1304      *"
1305"with_$ac_useropt"
1306"*) ;;
1307      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1308	 ac_unrecognized_sep=', ';;
1309    esac
1310    eval with_$ac_useropt=\$ac_optarg ;;
1311
1312  -without-* | --without-*)
1313    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1314    # Reject names that are not valid shell variable names.
1315    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1316      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1317   { (exit 1); exit 1; }; }
1318    ac_useropt_orig=$ac_useropt
1319    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1320    case $ac_user_opts in
1321      *"
1322"with_$ac_useropt"
1323"*) ;;
1324      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1325	 ac_unrecognized_sep=', ';;
1326    esac
1327    eval with_$ac_useropt=no ;;
1328
1329  --x)
1330    # Obsolete; use --with-x.
1331    with_x=yes ;;
1332
1333  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1334  | --x-incl | --x-inc | --x-in | --x-i)
1335    ac_prev=x_includes ;;
1336  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1337  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1338    x_includes=$ac_optarg ;;
1339
1340  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1341  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1342    ac_prev=x_libraries ;;
1343  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1344  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1345    x_libraries=$ac_optarg ;;
1346
1347  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1348Try \`$0 --help' for more information." >&2
1349   { (exit 1); exit 1; }; }
1350    ;;
1351
1352  *=*)
1353    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1354    # Reject names that are not valid shell variable names.
1355    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1356      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1357   { (exit 1); exit 1; }; }
1358    eval $ac_envvar=\$ac_optarg
1359    export $ac_envvar ;;
1360
1361  *)
1362    # FIXME: should be removed in autoconf 3.0.
1363    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1364    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1365      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1366    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1367    ;;
1368
1369  esac
1370done
1371
1372if test -n "$ac_prev"; then
1373  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1374  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1375   { (exit 1); exit 1; }; }
1376fi
1377
1378if test -n "$ac_unrecognized_opts"; then
1379  case $enable_option_checking in
1380    no) ;;
1381    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1382   { (exit 1); exit 1; }; } ;;
1383    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1384  esac
1385fi
1386
1387# Check all directory arguments for consistency.
1388for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1389		datadir sysconfdir sharedstatedir localstatedir includedir \
1390		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1391		libdir localedir mandir
1392do
1393  eval ac_val=\$$ac_var
1394  # Remove trailing slashes.
1395  case $ac_val in
1396    */ )
1397      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1398      eval $ac_var=\$ac_val;;
1399  esac
1400  # Be sure to have absolute directory names.
1401  case $ac_val in
1402    [\\/$]* | ?:[\\/]* )  continue;;
1403    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1404  esac
1405  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1406   { (exit 1); exit 1; }; }
1407done
1408
1409# There might be people who depend on the old broken behavior: `$host'
1410# used to hold the argument of --host etc.
1411# FIXME: To remove some day.
1412build=$build_alias
1413host=$host_alias
1414target=$target_alias
1415
1416# FIXME: To remove some day.
1417if test "x$host_alias" != x; then
1418  if test "x$build_alias" = x; then
1419    cross_compiling=maybe
1420    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1421    If a cross compiler is detected then cross compile mode will be used." >&2
1422  elif test "x$build_alias" != "x$host_alias"; then
1423    cross_compiling=yes
1424  fi
1425fi
1426
1427ac_tool_prefix=
1428test -n "$host_alias" && ac_tool_prefix=$host_alias-
1429
1430test "$silent" = yes && exec 6>/dev/null
1431
1432
1433ac_pwd=`pwd` && test -n "$ac_pwd" &&
1434ac_ls_di=`ls -di .` &&
1435ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1436  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1437   { (exit 1); exit 1; }; }
1438test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1439  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1440   { (exit 1); exit 1; }; }
1441
1442
1443# Find the source files, if location was not specified.
1444if test -z "$srcdir"; then
1445  ac_srcdir_defaulted=yes
1446  # Try the directory containing this script, then the parent directory.
1447  ac_confdir=`$as_dirname -- "$as_myself" ||
1448$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1449	 X"$as_myself" : 'X\(//\)[^/]' \| \
1450	 X"$as_myself" : 'X\(//\)$' \| \
1451	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1452$as_echo X"$as_myself" |
1453    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1454	    s//\1/
1455	    q
1456	  }
1457	  /^X\(\/\/\)[^/].*/{
1458	    s//\1/
1459	    q
1460	  }
1461	  /^X\(\/\/\)$/{
1462	    s//\1/
1463	    q
1464	  }
1465	  /^X\(\/\).*/{
1466	    s//\1/
1467	    q
1468	  }
1469	  s/.*/./; q'`
1470  srcdir=$ac_confdir
1471  if test ! -r "$srcdir/$ac_unique_file"; then
1472    srcdir=..
1473  fi
1474else
1475  ac_srcdir_defaulted=no
1476fi
1477if test ! -r "$srcdir/$ac_unique_file"; then
1478  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1479  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1480   { (exit 1); exit 1; }; }
1481fi
1482ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1483ac_abs_confdir=`(
1484	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1485   { (exit 1); exit 1; }; }
1486	pwd)`
1487# When building in place, set srcdir=.
1488if test "$ac_abs_confdir" = "$ac_pwd"; then
1489  srcdir=.
1490fi
1491# Remove unnecessary trailing slashes from srcdir.
1492# Double slashes in file names in object file debugging info
1493# mess up M-x gdb in Emacs.
1494case $srcdir in
1495*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1496esac
1497for ac_var in $ac_precious_vars; do
1498  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1499  eval ac_env_${ac_var}_value=\$${ac_var}
1500  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1501  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1502done
1503
1504#
1505# Report the --help message.
1506#
1507if test "$ac_init_help" = "long"; then
1508  # Omit some internal or obsolete options to make the list less imposing.
1509  # This message is too long to be a string in the A/UX 3.1 sh.
1510  cat <<_ACEOF
1511\`configure' configures libICE 1.0.5 to adapt to many kinds of systems.
1512
1513Usage: $0 [OPTION]... [VAR=VALUE]...
1514
1515To assign environment variables (e.g., CC, CFLAGS...), specify them as
1516VAR=VALUE.  See below for descriptions of some of the useful variables.
1517
1518Defaults for the options are specified in brackets.
1519
1520Configuration:
1521  -h, --help              display this help and exit
1522      --help=short        display options specific to this package
1523      --help=recursive    display the short help of all the included packages
1524  -V, --version           display version information and exit
1525  -q, --quiet, --silent   do not print \`checking...' messages
1526      --cache-file=FILE   cache test results in FILE [disabled]
1527  -C, --config-cache      alias for \`--cache-file=config.cache'
1528  -n, --no-create         do not create output files
1529      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1530
1531Installation directories:
1532  --prefix=PREFIX         install architecture-independent files in PREFIX
1533                          [$ac_default_prefix]
1534  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1535                          [PREFIX]
1536
1537By default, \`make install' will install all the files in
1538\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1539an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1540for instance \`--prefix=\$HOME'.
1541
1542For better control, use the options below.
1543
1544Fine tuning of the installation directories:
1545  --bindir=DIR            user executables [EPREFIX/bin]
1546  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1547  --libexecdir=DIR        program executables [EPREFIX/libexec]
1548  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1549  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1550  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1551  --libdir=DIR            object code libraries [EPREFIX/lib]
1552  --includedir=DIR        C header files [PREFIX/include]
1553  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1554  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1555  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1556  --infodir=DIR           info documentation [DATAROOTDIR/info]
1557  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1558  --mandir=DIR            man documentation [DATAROOTDIR/man]
1559  --docdir=DIR            documentation root [DATAROOTDIR/doc/libICE]
1560  --htmldir=DIR           html documentation [DOCDIR]
1561  --dvidir=DIR            dvi documentation [DOCDIR]
1562  --pdfdir=DIR            pdf documentation [DOCDIR]
1563  --psdir=DIR             ps documentation [DOCDIR]
1564_ACEOF
1565
1566  cat <<\_ACEOF
1567
1568Program names:
1569  --program-prefix=PREFIX            prepend PREFIX to installed program names
1570  --program-suffix=SUFFIX            append SUFFIX to installed program names
1571  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1572
1573System types:
1574  --build=BUILD     configure for building on BUILD [guessed]
1575  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1576_ACEOF
1577fi
1578
1579if test -n "$ac_init_help"; then
1580  case $ac_init_help in
1581     short | recursive ) echo "Configuration of libICE 1.0.5:";;
1582   esac
1583  cat <<\_ACEOF
1584
1585Optional Features:
1586  --disable-option-checking  ignore unrecognized --enable/--with options
1587  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1588  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1589  --enable-maintainer-mode  enable make rules and dependencies not useful
1590			  (and sometimes confusing) to the casual installer
1591  --enable-shared[=PKGS]  build shared libraries [default=yes]
1592  --enable-static[=PKGS]  build static libraries [default=yes]
1593  --enable-fast-install[=PKGS]
1594                          optimize for fast installation [default=yes]
1595  --disable-dependency-tracking  speeds up one-time build
1596  --enable-dependency-tracking   do not reject slow dependency extractors
1597  --disable-libtool-lock  avoid locking (might break parallel builds)
1598  --enable-unix-transport Enable UNIX domain socket transport
1599  --enable-tcp-transport  Enable TCP socket transport
1600  --enable-IPv6           Enable IPv6 support
1601  --enable-local-transport
1602                          Enable os-specific local transport
1603  --enable-lint-library   Create lint library (default: disabled)
1604
1605Optional Packages:
1606  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1607  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1608  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1609  --with-pic              try to use only PIC/non-PIC objects [default=use
1610                          both]
1611  --with-tags[=TAGS]      include additional configurations [automatic]
1612  --with-lint             Use a lint-style source code checker (default:
1613                          disabled)
1614  --with-release-version=STRING
1615                          Use release version string in package name
1616
1617Some influential environment variables:
1618  CC          C compiler command
1619  CFLAGS      C compiler flags
1620  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1621              nonstandard directory <lib dir>
1622  LIBS        libraries to pass to the linker, e.g. -l<library>
1623  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1624              you have headers in a nonstandard directory <include dir>
1625  CPP         C preprocessor
1626  CXX         C++ compiler command
1627  CXXFLAGS    C++ compiler flags
1628  CXXCPP      C++ preprocessor
1629  F77         Fortran 77 compiler command
1630  FFLAGS      Fortran 77 compiler flags
1631  PKG_CONFIG  path to pkg-config utility
1632  ICE_CFLAGS  C compiler flags for ICE, overriding pkg-config
1633  ICE_LIBS    linker flags for ICE, overriding pkg-config
1634  XTRANS_CFLAGS
1635              C compiler flags for XTRANS, overriding pkg-config
1636  XTRANS_LIBS linker flags for XTRANS, overriding pkg-config
1637
1638Use these variables to override the choices made by `configure' or to help
1639it to find libraries and programs with nonstandard names/locations.
1640
1641Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1642_ACEOF
1643ac_status=$?
1644fi
1645
1646if test "$ac_init_help" = "recursive"; then
1647  # If there are subdirs, report their specific --help.
1648  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1649    test -d "$ac_dir" ||
1650      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1651      continue
1652    ac_builddir=.
1653
1654case "$ac_dir" in
1655.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656*)
1657  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1658  # A ".." for each directory in $ac_dir_suffix.
1659  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1660  case $ac_top_builddir_sub in
1661  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1663  esac ;;
1664esac
1665ac_abs_top_builddir=$ac_pwd
1666ac_abs_builddir=$ac_pwd$ac_dir_suffix
1667# for backward compatibility:
1668ac_top_builddir=$ac_top_build_prefix
1669
1670case $srcdir in
1671  .)  # We are building in place.
1672    ac_srcdir=.
1673    ac_top_srcdir=$ac_top_builddir_sub
1674    ac_abs_top_srcdir=$ac_pwd ;;
1675  [\\/]* | ?:[\\/]* )  # Absolute name.
1676    ac_srcdir=$srcdir$ac_dir_suffix;
1677    ac_top_srcdir=$srcdir
1678    ac_abs_top_srcdir=$srcdir ;;
1679  *) # Relative name.
1680    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1681    ac_top_srcdir=$ac_top_build_prefix$srcdir
1682    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1683esac
1684ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1685
1686    cd "$ac_dir" || { ac_status=$?; continue; }
1687    # Check for guested configure.
1688    if test -f "$ac_srcdir/configure.gnu"; then
1689      echo &&
1690      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1691    elif test -f "$ac_srcdir/configure"; then
1692      echo &&
1693      $SHELL "$ac_srcdir/configure" --help=recursive
1694    else
1695      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1696    fi || ac_status=$?
1697    cd "$ac_pwd" || { ac_status=$?; break; }
1698  done
1699fi
1700
1701test -n "$ac_init_help" && exit $ac_status
1702if $ac_init_version; then
1703  cat <<\_ACEOF
1704libICE configure 1.0.5
1705generated by GNU Autoconf 2.63
1706
1707Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17082002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1709This configure script is free software; the Free Software Foundation
1710gives unlimited permission to copy, distribute and modify it.
1711_ACEOF
1712  exit
1713fi
1714cat >config.log <<_ACEOF
1715This file contains any messages produced by compilers while
1716running configure, to aid debugging if configure makes a mistake.
1717
1718It was created by libICE $as_me 1.0.5, which was
1719generated by GNU Autoconf 2.63.  Invocation command line was
1720
1721  $ $0 $@
1722
1723_ACEOF
1724exec 5>>config.log
1725{
1726cat <<_ASUNAME
1727## --------- ##
1728## Platform. ##
1729## --------- ##
1730
1731hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1732uname -m = `(uname -m) 2>/dev/null || echo unknown`
1733uname -r = `(uname -r) 2>/dev/null || echo unknown`
1734uname -s = `(uname -s) 2>/dev/null || echo unknown`
1735uname -v = `(uname -v) 2>/dev/null || echo unknown`
1736
1737/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1738/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1739
1740/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1741/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1742/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1743/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1744/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1745/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1746/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1747
1748_ASUNAME
1749
1750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751for as_dir in $PATH
1752do
1753  IFS=$as_save_IFS
1754  test -z "$as_dir" && as_dir=.
1755  $as_echo "PATH: $as_dir"
1756done
1757IFS=$as_save_IFS
1758
1759} >&5
1760
1761cat >&5 <<_ACEOF
1762
1763
1764## ----------- ##
1765## Core tests. ##
1766## ----------- ##
1767
1768_ACEOF
1769
1770
1771# Keep a trace of the command line.
1772# Strip out --no-create and --no-recursion so they do not pile up.
1773# Strip out --silent because we don't want to record it for future runs.
1774# Also quote any args containing shell meta-characters.
1775# Make two passes to allow for proper duplicate-argument suppression.
1776ac_configure_args=
1777ac_configure_args0=
1778ac_configure_args1=
1779ac_must_keep_next=false
1780for ac_pass in 1 2
1781do
1782  for ac_arg
1783  do
1784    case $ac_arg in
1785    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1786    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1787    | -silent | --silent | --silen | --sile | --sil)
1788      continue ;;
1789    *\'*)
1790      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1791    esac
1792    case $ac_pass in
1793    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1794    2)
1795      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1796      if test $ac_must_keep_next = true; then
1797	ac_must_keep_next=false # Got value, back to normal.
1798      else
1799	case $ac_arg in
1800	  *=* | --config-cache | -C | -disable-* | --disable-* \
1801	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1802	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1803	  | -with-* | --with-* | -without-* | --without-* | --x)
1804	    case "$ac_configure_args0 " in
1805	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1806	    esac
1807	    ;;
1808	  -* ) ac_must_keep_next=true ;;
1809	esac
1810      fi
1811      ac_configure_args="$ac_configure_args '$ac_arg'"
1812      ;;
1813    esac
1814  done
1815done
1816$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1817$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1818
1819# When interrupted or exit'd, cleanup temporary files, and complete
1820# config.log.  We remove comments because anyway the quotes in there
1821# would cause problems or look ugly.
1822# WARNING: Use '\'' to represent an apostrophe within the trap.
1823# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1824trap 'exit_status=$?
1825  # Save into config.log some information that might help in debugging.
1826  {
1827    echo
1828
1829    cat <<\_ASBOX
1830## ---------------- ##
1831## Cache variables. ##
1832## ---------------- ##
1833_ASBOX
1834    echo
1835    # The following way of writing the cache mishandles newlines in values,
1836(
1837  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1838    eval ac_val=\$$ac_var
1839    case $ac_val in #(
1840    *${as_nl}*)
1841      case $ac_var in #(
1842      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1843$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1844      esac
1845      case $ac_var in #(
1846      _ | IFS | as_nl) ;; #(
1847      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1848      *) $as_unset $ac_var ;;
1849      esac ;;
1850    esac
1851  done
1852  (set) 2>&1 |
1853    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1854    *${as_nl}ac_space=\ *)
1855      sed -n \
1856	"s/'\''/'\''\\\\'\'''\''/g;
1857	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1858      ;; #(
1859    *)
1860      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1861      ;;
1862    esac |
1863    sort
1864)
1865    echo
1866
1867    cat <<\_ASBOX
1868## ----------------- ##
1869## Output variables. ##
1870## ----------------- ##
1871_ASBOX
1872    echo
1873    for ac_var in $ac_subst_vars
1874    do
1875      eval ac_val=\$$ac_var
1876      case $ac_val in
1877      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1878      esac
1879      $as_echo "$ac_var='\''$ac_val'\''"
1880    done | sort
1881    echo
1882
1883    if test -n "$ac_subst_files"; then
1884      cat <<\_ASBOX
1885## ------------------- ##
1886## File substitutions. ##
1887## ------------------- ##
1888_ASBOX
1889      echo
1890      for ac_var in $ac_subst_files
1891      do
1892	eval ac_val=\$$ac_var
1893	case $ac_val in
1894	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1895	esac
1896	$as_echo "$ac_var='\''$ac_val'\''"
1897      done | sort
1898      echo
1899    fi
1900
1901    if test -s confdefs.h; then
1902      cat <<\_ASBOX
1903## ----------- ##
1904## confdefs.h. ##
1905## ----------- ##
1906_ASBOX
1907      echo
1908      cat confdefs.h
1909      echo
1910    fi
1911    test "$ac_signal" != 0 &&
1912      $as_echo "$as_me: caught signal $ac_signal"
1913    $as_echo "$as_me: exit $exit_status"
1914  } >&5
1915  rm -f core *.core core.conftest.* &&
1916    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1917    exit $exit_status
1918' 0
1919for ac_signal in 1 2 13 15; do
1920  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1921done
1922ac_signal=0
1923
1924# confdefs.h avoids OS command line length limits that DEFS can exceed.
1925rm -f -r conftest* confdefs.h
1926
1927# Predefined preprocessor variables.
1928
1929cat >>confdefs.h <<_ACEOF
1930#define PACKAGE_NAME "$PACKAGE_NAME"
1931_ACEOF
1932
1933
1934cat >>confdefs.h <<_ACEOF
1935#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1936_ACEOF
1937
1938
1939cat >>confdefs.h <<_ACEOF
1940#define PACKAGE_VERSION "$PACKAGE_VERSION"
1941_ACEOF
1942
1943
1944cat >>confdefs.h <<_ACEOF
1945#define PACKAGE_STRING "$PACKAGE_STRING"
1946_ACEOF
1947
1948
1949cat >>confdefs.h <<_ACEOF
1950#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1951_ACEOF
1952
1953
1954# Let the site file select an alternate cache file if it wants to.
1955# Prefer an explicitly selected file to automatically selected ones.
1956ac_site_file1=NONE
1957ac_site_file2=NONE
1958if test -n "$CONFIG_SITE"; then
1959  ac_site_file1=$CONFIG_SITE
1960elif test "x$prefix" != xNONE; then
1961  ac_site_file1=$prefix/share/config.site
1962  ac_site_file2=$prefix/etc/config.site
1963else
1964  ac_site_file1=$ac_default_prefix/share/config.site
1965  ac_site_file2=$ac_default_prefix/etc/config.site
1966fi
1967for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1968do
1969  test "x$ac_site_file" = xNONE && continue
1970  if test -r "$ac_site_file"; then
1971    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1972$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1973    sed 's/^/| /' "$ac_site_file" >&5
1974    . "$ac_site_file"
1975  fi
1976done
1977
1978if test -r "$cache_file"; then
1979  # Some versions of bash will fail to source /dev/null (special
1980  # files actually), so we avoid doing that.
1981  if test -f "$cache_file"; then
1982    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1983$as_echo "$as_me: loading cache $cache_file" >&6;}
1984    case $cache_file in
1985      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1986      *)                      . "./$cache_file";;
1987    esac
1988  fi
1989else
1990  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1991$as_echo "$as_me: creating cache $cache_file" >&6;}
1992  >$cache_file
1993fi
1994
1995# Check that the precious variables saved in the cache have kept the same
1996# value.
1997ac_cache_corrupted=false
1998for ac_var in $ac_precious_vars; do
1999  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2000  eval ac_new_set=\$ac_env_${ac_var}_set
2001  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2002  eval ac_new_val=\$ac_env_${ac_var}_value
2003  case $ac_old_set,$ac_new_set in
2004    set,)
2005      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2006$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2007      ac_cache_corrupted=: ;;
2008    ,set)
2009      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2010$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2011      ac_cache_corrupted=: ;;
2012    ,);;
2013    *)
2014      if test "x$ac_old_val" != "x$ac_new_val"; then
2015	# differences in whitespace do not lead to failure.
2016	ac_old_val_w=`echo x $ac_old_val`
2017	ac_new_val_w=`echo x $ac_new_val`
2018	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2019	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2020$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2021	  ac_cache_corrupted=:
2022	else
2023	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2024$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2025	  eval $ac_var=\$ac_old_val
2026	fi
2027	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2028$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2029	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2030$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2031      fi;;
2032  esac
2033  # Pass precious variables to config.status.
2034  if test "$ac_new_set" = set; then
2035    case $ac_new_val in
2036    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2037    *) ac_arg=$ac_var=$ac_new_val ;;
2038    esac
2039    case " $ac_configure_args " in
2040      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2041      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2042    esac
2043  fi
2044done
2045if $ac_cache_corrupted; then
2046  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2047$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2048  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2049$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2050  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2051$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2052   { (exit 1); exit 1; }; }
2053fi
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079ac_ext=c
2080ac_cpp='$CPP $CPPFLAGS'
2081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2083ac_compiler_gnu=$ac_cv_c_compiler_gnu
2084
2085
2086
2087
2088am__api_version='1.10'
2089
2090ac_aux_dir=
2091for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2092  if test -f "$ac_dir/install-sh"; then
2093    ac_aux_dir=$ac_dir
2094    ac_install_sh="$ac_aux_dir/install-sh -c"
2095    break
2096  elif test -f "$ac_dir/install.sh"; then
2097    ac_aux_dir=$ac_dir
2098    ac_install_sh="$ac_aux_dir/install.sh -c"
2099    break
2100  elif test -f "$ac_dir/shtool"; then
2101    ac_aux_dir=$ac_dir
2102    ac_install_sh="$ac_aux_dir/shtool install -c"
2103    break
2104  fi
2105done
2106if test -z "$ac_aux_dir"; then
2107  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2108$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2109   { (exit 1); exit 1; }; }
2110fi
2111
2112# These three variables are undocumented and unsupported,
2113# and are intended to be withdrawn in a future Autoconf release.
2114# They can cause serious problems if a builder's source tree is in a directory
2115# whose full name contains unusual characters.
2116ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2117ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2118ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2119
2120
2121# Find a good install program.  We prefer a C program (faster),
2122# so one script is as good as another.  But avoid the broken or
2123# incompatible versions:
2124# SysV /etc/install, /usr/sbin/install
2125# SunOS /usr/etc/install
2126# IRIX /sbin/install
2127# AIX /bin/install
2128# AmigaOS /C/install, which installs bootblocks on floppy discs
2129# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2130# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2131# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2132# OS/2's system install, which has a completely different semantic
2133# ./install, which can be erroneously created by make from ./install.sh.
2134# Reject install programs that cannot install multiple files.
2135{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2136$as_echo_n "checking for a BSD-compatible install... " >&6; }
2137if test -z "$INSTALL"; then
2138if test "${ac_cv_path_install+set}" = set; then
2139  $as_echo_n "(cached) " >&6
2140else
2141  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142for as_dir in $PATH
2143do
2144  IFS=$as_save_IFS
2145  test -z "$as_dir" && as_dir=.
2146  # Account for people who put trailing slashes in PATH elements.
2147case $as_dir/ in
2148  ./ | .// | /cC/* | \
2149  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2150  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2151  /usr/ucb/* ) ;;
2152  *)
2153    # OSF1 and SCO ODT 3.0 have their own names for install.
2154    # Don't use installbsd from OSF since it installs stuff as root
2155    # by default.
2156    for ac_prog in ginstall scoinst install; do
2157      for ac_exec_ext in '' $ac_executable_extensions; do
2158	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2159	  if test $ac_prog = install &&
2160	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2161	    # AIX install.  It has an incompatible calling convention.
2162	    :
2163	  elif test $ac_prog = install &&
2164	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2165	    # program-specific install script used by HP pwplus--don't use.
2166	    :
2167	  else
2168	    rm -rf conftest.one conftest.two conftest.dir
2169	    echo one > conftest.one
2170	    echo two > conftest.two
2171	    mkdir conftest.dir
2172	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2173	      test -s conftest.one && test -s conftest.two &&
2174	      test -s conftest.dir/conftest.one &&
2175	      test -s conftest.dir/conftest.two
2176	    then
2177	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2178	      break 3
2179	    fi
2180	  fi
2181	fi
2182      done
2183    done
2184    ;;
2185esac
2186
2187done
2188IFS=$as_save_IFS
2189
2190rm -rf conftest.one conftest.two conftest.dir
2191
2192fi
2193  if test "${ac_cv_path_install+set}" = set; then
2194    INSTALL=$ac_cv_path_install
2195  else
2196    # As a last resort, use the slow shell script.  Don't cache a
2197    # value for INSTALL within a source directory, because that will
2198    # break other packages using the cache if that directory is
2199    # removed, or if the value is a relative name.
2200    INSTALL=$ac_install_sh
2201  fi
2202fi
2203{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2204$as_echo "$INSTALL" >&6; }
2205
2206# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2207# It thinks the first close brace ends the variable substitution.
2208test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2209
2210test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2211
2212test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2213
2214{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2215$as_echo_n "checking whether build environment is sane... " >&6; }
2216# Just in case
2217sleep 1
2218echo timestamp > conftest.file
2219# Do `set' in a subshell so we don't clobber the current shell's
2220# arguments.  Must try -L first in case configure is actually a
2221# symlink; some systems play weird games with the mod time of symlinks
2222# (eg FreeBSD returns the mod time of the symlink's containing
2223# directory).
2224if (
2225   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2226   if test "$*" = "X"; then
2227      # -L didn't work.
2228      set X `ls -t $srcdir/configure conftest.file`
2229   fi
2230   rm -f conftest.file
2231   if test "$*" != "X $srcdir/configure conftest.file" \
2232      && test "$*" != "X conftest.file $srcdir/configure"; then
2233
2234      # If neither matched, then we have a broken ls.  This can happen
2235      # if, for instance, CONFIG_SHELL is bash and it inherits a
2236      # broken ls alias from the environment.  This has actually
2237      # happened.  Such a system could not be considered "sane".
2238      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2239alias in your environment" >&5
2240$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2241alias in your environment" >&2;}
2242   { (exit 1); exit 1; }; }
2243   fi
2244
2245   test "$2" = conftest.file
2246   )
2247then
2248   # Ok.
2249   :
2250else
2251   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2252Check your system clock" >&5
2253$as_echo "$as_me: error: newly created file is older than distributed files!
2254Check your system clock" >&2;}
2255   { (exit 1); exit 1; }; }
2256fi
2257{ $as_echo "$as_me:$LINENO: result: yes" >&5
2258$as_echo "yes" >&6; }
2259test "$program_prefix" != NONE &&
2260  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2261# Use a double $ so make ignores it.
2262test "$program_suffix" != NONE &&
2263  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2264# Double any \ or $.
2265# By default was `s,x,x', remove it if useless.
2266ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2267program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2268
2269# expand $ac_aux_dir to an absolute path
2270am_aux_dir=`cd $ac_aux_dir && pwd`
2271
2272test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2273# Use eval to expand $SHELL
2274if eval "$MISSING --run true"; then
2275  am_missing_run="$MISSING --run "
2276else
2277  am_missing_run=
2278  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2279$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2280fi
2281
2282{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2283$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2284if test -z "$MKDIR_P"; then
2285  if test "${ac_cv_path_mkdir+set}" = set; then
2286  $as_echo_n "(cached) " >&6
2287else
2288  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2290do
2291  IFS=$as_save_IFS
2292  test -z "$as_dir" && as_dir=.
2293  for ac_prog in mkdir gmkdir; do
2294	 for ac_exec_ext in '' $ac_executable_extensions; do
2295	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2296	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2297	     'mkdir (GNU coreutils) '* | \
2298	     'mkdir (coreutils) '* | \
2299	     'mkdir (fileutils) '4.1*)
2300	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2301	       break 3;;
2302	   esac
2303	 done
2304       done
2305done
2306IFS=$as_save_IFS
2307
2308fi
2309
2310  if test "${ac_cv_path_mkdir+set}" = set; then
2311    MKDIR_P="$ac_cv_path_mkdir -p"
2312  else
2313    # As a last resort, use the slow shell script.  Don't cache a
2314    # value for MKDIR_P within a source directory, because that will
2315    # break other packages using the cache if that directory is
2316    # removed, or if the value is a relative name.
2317    test -d ./--version && rmdir ./--version
2318    MKDIR_P="$ac_install_sh -d"
2319  fi
2320fi
2321{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2322$as_echo "$MKDIR_P" >&6; }
2323
2324mkdir_p="$MKDIR_P"
2325case $mkdir_p in
2326  [\\/$]* | ?:[\\/]*) ;;
2327  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2328esac
2329
2330for ac_prog in gawk mawk nawk awk
2331do
2332  # Extract the first word of "$ac_prog", so it can be a program name with args.
2333set dummy $ac_prog; ac_word=$2
2334{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2335$as_echo_n "checking for $ac_word... " >&6; }
2336if test "${ac_cv_prog_AWK+set}" = set; then
2337  $as_echo_n "(cached) " >&6
2338else
2339  if test -n "$AWK"; then
2340  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2341else
2342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343for as_dir in $PATH
2344do
2345  IFS=$as_save_IFS
2346  test -z "$as_dir" && as_dir=.
2347  for ac_exec_ext in '' $ac_executable_extensions; do
2348  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349    ac_cv_prog_AWK="$ac_prog"
2350    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351    break 2
2352  fi
2353done
2354done
2355IFS=$as_save_IFS
2356
2357fi
2358fi
2359AWK=$ac_cv_prog_AWK
2360if test -n "$AWK"; then
2361  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2362$as_echo "$AWK" >&6; }
2363else
2364  { $as_echo "$as_me:$LINENO: result: no" >&5
2365$as_echo "no" >&6; }
2366fi
2367
2368
2369  test -n "$AWK" && break
2370done
2371
2372{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2373$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2374set x ${MAKE-make}
2375ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2376if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2377  $as_echo_n "(cached) " >&6
2378else
2379  cat >conftest.make <<\_ACEOF
2380SHELL = /bin/sh
2381all:
2382	@echo '@@@%%%=$(MAKE)=@@@%%%'
2383_ACEOF
2384# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2385case `${MAKE-make} -f conftest.make 2>/dev/null` in
2386  *@@@%%%=?*=@@@%%%*)
2387    eval ac_cv_prog_make_${ac_make}_set=yes;;
2388  *)
2389    eval ac_cv_prog_make_${ac_make}_set=no;;
2390esac
2391rm -f conftest.make
2392fi
2393if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2394  { $as_echo "$as_me:$LINENO: result: yes" >&5
2395$as_echo "yes" >&6; }
2396  SET_MAKE=
2397else
2398  { $as_echo "$as_me:$LINENO: result: no" >&5
2399$as_echo "no" >&6; }
2400  SET_MAKE="MAKE=${MAKE-make}"
2401fi
2402
2403rm -rf .tst 2>/dev/null
2404mkdir .tst 2>/dev/null
2405if test -d .tst; then
2406  am__leading_dot=.
2407else
2408  am__leading_dot=_
2409fi
2410rmdir .tst 2>/dev/null
2411
2412if test "`cd $srcdir && pwd`" != "`pwd`"; then
2413  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2414  # is not polluted with repeated "-I."
2415  am__isrc=' -I$(srcdir)'
2416  # test to see if srcdir already configured
2417  if test -f $srcdir/config.status; then
2418    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2419$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2420   { (exit 1); exit 1; }; }
2421  fi
2422fi
2423
2424# test whether we have cygpath
2425if test -z "$CYGPATH_W"; then
2426  if (cygpath --version) >/dev/null 2>/dev/null; then
2427    CYGPATH_W='cygpath -w'
2428  else
2429    CYGPATH_W=echo
2430  fi
2431fi
2432
2433
2434# Define the identity of the package.
2435 PACKAGE='libICE'
2436 VERSION='1.0.5'
2437
2438
2439cat >>confdefs.h <<_ACEOF
2440#define PACKAGE "$PACKAGE"
2441_ACEOF
2442
2443
2444cat >>confdefs.h <<_ACEOF
2445#define VERSION "$VERSION"
2446_ACEOF
2447
2448# Some tools Automake needs.
2449
2450ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2451
2452
2453AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2454
2455
2456AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2457
2458
2459AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2460
2461
2462MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2463
2464install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2465
2466# Installed binaries are usually stripped using `strip' when the user
2467# run `make install-strip'.  However `strip' might not be the right
2468# tool to use in cross-compilation environments, therefore Automake
2469# will honor the `STRIP' environment variable to overrule this program.
2470if test "$cross_compiling" != no; then
2471  if test -n "$ac_tool_prefix"; then
2472  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2473set dummy ${ac_tool_prefix}strip; ac_word=$2
2474{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2475$as_echo_n "checking for $ac_word... " >&6; }
2476if test "${ac_cv_prog_STRIP+set}" = set; then
2477  $as_echo_n "(cached) " >&6
2478else
2479  if test -n "$STRIP"; then
2480  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2481else
2482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483for as_dir in $PATH
2484do
2485  IFS=$as_save_IFS
2486  test -z "$as_dir" && as_dir=.
2487  for ac_exec_ext in '' $ac_executable_extensions; do
2488  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2489    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2490    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491    break 2
2492  fi
2493done
2494done
2495IFS=$as_save_IFS
2496
2497fi
2498fi
2499STRIP=$ac_cv_prog_STRIP
2500if test -n "$STRIP"; then
2501  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2502$as_echo "$STRIP" >&6; }
2503else
2504  { $as_echo "$as_me:$LINENO: result: no" >&5
2505$as_echo "no" >&6; }
2506fi
2507
2508
2509fi
2510if test -z "$ac_cv_prog_STRIP"; then
2511  ac_ct_STRIP=$STRIP
2512  # Extract the first word of "strip", so it can be a program name with args.
2513set dummy strip; ac_word=$2
2514{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2515$as_echo_n "checking for $ac_word... " >&6; }
2516if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2517  $as_echo_n "(cached) " >&6
2518else
2519  if test -n "$ac_ct_STRIP"; then
2520  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2521else
2522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523for as_dir in $PATH
2524do
2525  IFS=$as_save_IFS
2526  test -z "$as_dir" && as_dir=.
2527  for ac_exec_ext in '' $ac_executable_extensions; do
2528  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529    ac_cv_prog_ac_ct_STRIP="strip"
2530    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531    break 2
2532  fi
2533done
2534done
2535IFS=$as_save_IFS
2536
2537fi
2538fi
2539ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2540if test -n "$ac_ct_STRIP"; then
2541  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2542$as_echo "$ac_ct_STRIP" >&6; }
2543else
2544  { $as_echo "$as_me:$LINENO: result: no" >&5
2545$as_echo "no" >&6; }
2546fi
2547
2548  if test "x$ac_ct_STRIP" = x; then
2549    STRIP=":"
2550  else
2551    case $cross_compiling:$ac_tool_warned in
2552yes:)
2553{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2555ac_tool_warned=yes ;;
2556esac
2557    STRIP=$ac_ct_STRIP
2558  fi
2559else
2560  STRIP="$ac_cv_prog_STRIP"
2561fi
2562
2563fi
2564INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2565
2566# We need awk for the "check" target.  The system "awk" is bad on
2567# some platforms.
2568# Always define AMTAR for backward compatibility.
2569
2570AMTAR=${AMTAR-"${am_missing_run}tar"}
2571
2572am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2573
2574
2575
2576
2577
2578
2579{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2580$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2581    # Check whether --enable-maintainer-mode was given.
2582if test "${enable_maintainer_mode+set}" = set; then
2583  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2584else
2585  USE_MAINTAINER_MODE=no
2586fi
2587
2588  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2589$as_echo "$USE_MAINTAINER_MODE" >&6; }
2590   if test $USE_MAINTAINER_MODE = yes; then
2591  MAINTAINER_MODE_TRUE=
2592  MAINTAINER_MODE_FALSE='#'
2593else
2594  MAINTAINER_MODE_TRUE='#'
2595  MAINTAINER_MODE_FALSE=
2596fi
2597
2598  MAINT=$MAINTAINER_MODE_TRUE
2599
2600
2601
2602ac_config_headers="$ac_config_headers config.h"
2603
2604
2605# Checks for programs.
2606# Check whether --enable-shared was given.
2607if test "${enable_shared+set}" = set; then
2608  enableval=$enable_shared; p=${PACKAGE-default}
2609    case $enableval in
2610    yes) enable_shared=yes ;;
2611    no) enable_shared=no ;;
2612    *)
2613      enable_shared=no
2614      # Look at the argument we got.  We use all the common list separators.
2615      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2616      for pkg in $enableval; do
2617	IFS="$lt_save_ifs"
2618	if test "X$pkg" = "X$p"; then
2619	  enable_shared=yes
2620	fi
2621      done
2622      IFS="$lt_save_ifs"
2623      ;;
2624    esac
2625else
2626  enable_shared=yes
2627fi
2628
2629
2630# Check whether --enable-static was given.
2631if test "${enable_static+set}" = set; then
2632  enableval=$enable_static; p=${PACKAGE-default}
2633    case $enableval in
2634    yes) enable_static=yes ;;
2635    no) enable_static=no ;;
2636    *)
2637     enable_static=no
2638      # Look at the argument we got.  We use all the common list separators.
2639      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2640      for pkg in $enableval; do
2641	IFS="$lt_save_ifs"
2642	if test "X$pkg" = "X$p"; then
2643	  enable_static=yes
2644	fi
2645      done
2646      IFS="$lt_save_ifs"
2647      ;;
2648    esac
2649else
2650  enable_static=yes
2651fi
2652
2653
2654# Check whether --enable-fast-install was given.
2655if test "${enable_fast_install+set}" = set; then
2656  enableval=$enable_fast_install; p=${PACKAGE-default}
2657    case $enableval in
2658    yes) enable_fast_install=yes ;;
2659    no) enable_fast_install=no ;;
2660    *)
2661      enable_fast_install=no
2662      # Look at the argument we got.  We use all the common list separators.
2663      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2664      for pkg in $enableval; do
2665	IFS="$lt_save_ifs"
2666	if test "X$pkg" = "X$p"; then
2667	  enable_fast_install=yes
2668	fi
2669      done
2670      IFS="$lt_save_ifs"
2671      ;;
2672    esac
2673else
2674  enable_fast_install=yes
2675fi
2676
2677
2678# Make sure we can run config.sub.
2679$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2680  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2681$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2682   { (exit 1); exit 1; }; }
2683
2684{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2685$as_echo_n "checking build system type... " >&6; }
2686if test "${ac_cv_build+set}" = set; then
2687  $as_echo_n "(cached) " >&6
2688else
2689  ac_build_alias=$build_alias
2690test "x$ac_build_alias" = x &&
2691  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2692test "x$ac_build_alias" = x &&
2693  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2694$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2695   { (exit 1); exit 1; }; }
2696ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2697  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2698$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2699   { (exit 1); exit 1; }; }
2700
2701fi
2702{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2703$as_echo "$ac_cv_build" >&6; }
2704case $ac_cv_build in
2705*-*-*) ;;
2706*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2707$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2708   { (exit 1); exit 1; }; };;
2709esac
2710build=$ac_cv_build
2711ac_save_IFS=$IFS; IFS='-'
2712set x $ac_cv_build
2713shift
2714build_cpu=$1
2715build_vendor=$2
2716shift; shift
2717# Remember, the first character of IFS is used to create $*,
2718# except with old shells:
2719build_os=$*
2720IFS=$ac_save_IFS
2721case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2722
2723
2724{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2725$as_echo_n "checking host system type... " >&6; }
2726if test "${ac_cv_host+set}" = set; then
2727  $as_echo_n "(cached) " >&6
2728else
2729  if test "x$host_alias" = x; then
2730  ac_cv_host=$ac_cv_build
2731else
2732  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2733    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2734$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2735   { (exit 1); exit 1; }; }
2736fi
2737
2738fi
2739{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2740$as_echo "$ac_cv_host" >&6; }
2741case $ac_cv_host in
2742*-*-*) ;;
2743*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2744$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2745   { (exit 1); exit 1; }; };;
2746esac
2747host=$ac_cv_host
2748ac_save_IFS=$IFS; IFS='-'
2749set x $ac_cv_host
2750shift
2751host_cpu=$1
2752host_vendor=$2
2753shift; shift
2754# Remember, the first character of IFS is used to create $*,
2755# except with old shells:
2756host_os=$*
2757IFS=$ac_save_IFS
2758case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2759
2760
2761DEPDIR="${am__leading_dot}deps"
2762
2763ac_config_commands="$ac_config_commands depfiles"
2764
2765
2766am_make=${MAKE-make}
2767cat > confinc << 'END'
2768am__doit:
2769	@echo done
2770.PHONY: am__doit
2771END
2772# If we don't find an include directive, just comment out the code.
2773{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2774$as_echo_n "checking for style of include used by $am_make... " >&6; }
2775am__include="#"
2776am__quote=
2777_am_result=none
2778# First try GNU make style include.
2779echo "include confinc" > confmf
2780# We grep out `Entering directory' and `Leaving directory'
2781# messages which can occur if `w' ends up in MAKEFLAGS.
2782# In particular we don't look at `^make:' because GNU make might
2783# be invoked under some other name (usually "gmake"), in which
2784# case it prints its new name instead of `make'.
2785if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2786   am__include=include
2787   am__quote=
2788   _am_result=GNU
2789fi
2790# Now try BSD make style include.
2791if test "$am__include" = "#"; then
2792   echo '.include "confinc"' > confmf
2793   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2794      am__include=.include
2795      am__quote="\""
2796      _am_result=BSD
2797   fi
2798fi
2799
2800
2801{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2802$as_echo "$_am_result" >&6; }
2803rm -f confinc confmf
2804
2805# Check whether --enable-dependency-tracking was given.
2806if test "${enable_dependency_tracking+set}" = set; then
2807  enableval=$enable_dependency_tracking;
2808fi
2809
2810if test "x$enable_dependency_tracking" != xno; then
2811  am_depcomp="$ac_aux_dir/depcomp"
2812  AMDEPBACKSLASH='\'
2813fi
2814 if test "x$enable_dependency_tracking" != xno; then
2815  AMDEP_TRUE=
2816  AMDEP_FALSE='#'
2817else
2818  AMDEP_TRUE='#'
2819  AMDEP_FALSE=
2820fi
2821
2822
2823ac_ext=c
2824ac_cpp='$CPP $CPPFLAGS'
2825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2827ac_compiler_gnu=$ac_cv_c_compiler_gnu
2828if test -n "$ac_tool_prefix"; then
2829  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2830set dummy ${ac_tool_prefix}gcc; ac_word=$2
2831{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2832$as_echo_n "checking for $ac_word... " >&6; }
2833if test "${ac_cv_prog_CC+set}" = set; then
2834  $as_echo_n "(cached) " >&6
2835else
2836  if test -n "$CC"; then
2837  ac_cv_prog_CC="$CC" # Let the user override the test.
2838else
2839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840for as_dir in $PATH
2841do
2842  IFS=$as_save_IFS
2843  test -z "$as_dir" && as_dir=.
2844  for ac_exec_ext in '' $ac_executable_extensions; do
2845  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2846    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2847    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2848    break 2
2849  fi
2850done
2851done
2852IFS=$as_save_IFS
2853
2854fi
2855fi
2856CC=$ac_cv_prog_CC
2857if test -n "$CC"; then
2858  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2859$as_echo "$CC" >&6; }
2860else
2861  { $as_echo "$as_me:$LINENO: result: no" >&5
2862$as_echo "no" >&6; }
2863fi
2864
2865
2866fi
2867if test -z "$ac_cv_prog_CC"; then
2868  ac_ct_CC=$CC
2869  # Extract the first word of "gcc", so it can be a program name with args.
2870set dummy gcc; ac_word=$2
2871{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2872$as_echo_n "checking for $ac_word... " >&6; }
2873if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2874  $as_echo_n "(cached) " >&6
2875else
2876  if test -n "$ac_ct_CC"; then
2877  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2878else
2879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880for as_dir in $PATH
2881do
2882  IFS=$as_save_IFS
2883  test -z "$as_dir" && as_dir=.
2884  for ac_exec_ext in '' $ac_executable_extensions; do
2885  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2886    ac_cv_prog_ac_ct_CC="gcc"
2887    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2888    break 2
2889  fi
2890done
2891done
2892IFS=$as_save_IFS
2893
2894fi
2895fi
2896ac_ct_CC=$ac_cv_prog_ac_ct_CC
2897if test -n "$ac_ct_CC"; then
2898  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2899$as_echo "$ac_ct_CC" >&6; }
2900else
2901  { $as_echo "$as_me:$LINENO: result: no" >&5
2902$as_echo "no" >&6; }
2903fi
2904
2905  if test "x$ac_ct_CC" = x; then
2906    CC=""
2907  else
2908    case $cross_compiling:$ac_tool_warned in
2909yes:)
2910{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2912ac_tool_warned=yes ;;
2913esac
2914    CC=$ac_ct_CC
2915  fi
2916else
2917  CC="$ac_cv_prog_CC"
2918fi
2919
2920if test -z "$CC"; then
2921          if test -n "$ac_tool_prefix"; then
2922    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2923set dummy ${ac_tool_prefix}cc; ac_word=$2
2924{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2925$as_echo_n "checking for $ac_word... " >&6; }
2926if test "${ac_cv_prog_CC+set}" = set; then
2927  $as_echo_n "(cached) " >&6
2928else
2929  if test -n "$CC"; then
2930  ac_cv_prog_CC="$CC" # Let the user override the test.
2931else
2932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933for as_dir in $PATH
2934do
2935  IFS=$as_save_IFS
2936  test -z "$as_dir" && as_dir=.
2937  for ac_exec_ext in '' $ac_executable_extensions; do
2938  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939    ac_cv_prog_CC="${ac_tool_prefix}cc"
2940    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2941    break 2
2942  fi
2943done
2944done
2945IFS=$as_save_IFS
2946
2947fi
2948fi
2949CC=$ac_cv_prog_CC
2950if test -n "$CC"; then
2951  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2952$as_echo "$CC" >&6; }
2953else
2954  { $as_echo "$as_me:$LINENO: result: no" >&5
2955$as_echo "no" >&6; }
2956fi
2957
2958
2959  fi
2960fi
2961if test -z "$CC"; then
2962  # Extract the first word of "cc", so it can be a program name with args.
2963set dummy cc; ac_word=$2
2964{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2965$as_echo_n "checking for $ac_word... " >&6; }
2966if test "${ac_cv_prog_CC+set}" = set; then
2967  $as_echo_n "(cached) " >&6
2968else
2969  if test -n "$CC"; then
2970  ac_cv_prog_CC="$CC" # Let the user override the test.
2971else
2972  ac_prog_rejected=no
2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974for as_dir in $PATH
2975do
2976  IFS=$as_save_IFS
2977  test -z "$as_dir" && as_dir=.
2978  for ac_exec_ext in '' $ac_executable_extensions; do
2979  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2980    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2981       ac_prog_rejected=yes
2982       continue
2983     fi
2984    ac_cv_prog_CC="cc"
2985    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2986    break 2
2987  fi
2988done
2989done
2990IFS=$as_save_IFS
2991
2992if test $ac_prog_rejected = yes; then
2993  # We found a bogon in the path, so make sure we never use it.
2994  set dummy $ac_cv_prog_CC
2995  shift
2996  if test $# != 0; then
2997    # We chose a different compiler from the bogus one.
2998    # However, it has the same basename, so the bogon will be chosen
2999    # first if we set CC to just the basename; use the full file name.
3000    shift
3001    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3002  fi
3003fi
3004fi
3005fi
3006CC=$ac_cv_prog_CC
3007if test -n "$CC"; then
3008  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3009$as_echo "$CC" >&6; }
3010else
3011  { $as_echo "$as_me:$LINENO: result: no" >&5
3012$as_echo "no" >&6; }
3013fi
3014
3015
3016fi
3017if test -z "$CC"; then
3018  if test -n "$ac_tool_prefix"; then
3019  for ac_prog in cl.exe
3020  do
3021    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3022set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3023{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3024$as_echo_n "checking for $ac_word... " >&6; }
3025if test "${ac_cv_prog_CC+set}" = set; then
3026  $as_echo_n "(cached) " >&6
3027else
3028  if test -n "$CC"; then
3029  ac_cv_prog_CC="$CC" # Let the user override the test.
3030else
3031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032for as_dir in $PATH
3033do
3034  IFS=$as_save_IFS
3035  test -z "$as_dir" && as_dir=.
3036  for ac_exec_ext in '' $ac_executable_extensions; do
3037  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3038    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3039    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3040    break 2
3041  fi
3042done
3043done
3044IFS=$as_save_IFS
3045
3046fi
3047fi
3048CC=$ac_cv_prog_CC
3049if test -n "$CC"; then
3050  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3051$as_echo "$CC" >&6; }
3052else
3053  { $as_echo "$as_me:$LINENO: result: no" >&5
3054$as_echo "no" >&6; }
3055fi
3056
3057
3058    test -n "$CC" && break
3059  done
3060fi
3061if test -z "$CC"; then
3062  ac_ct_CC=$CC
3063  for ac_prog in cl.exe
3064do
3065  # Extract the first word of "$ac_prog", so it can be a program name with args.
3066set dummy $ac_prog; ac_word=$2
3067{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3068$as_echo_n "checking for $ac_word... " >&6; }
3069if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3070  $as_echo_n "(cached) " >&6
3071else
3072  if test -n "$ac_ct_CC"; then
3073  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3074else
3075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076for as_dir in $PATH
3077do
3078  IFS=$as_save_IFS
3079  test -z "$as_dir" && as_dir=.
3080  for ac_exec_ext in '' $ac_executable_extensions; do
3081  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082    ac_cv_prog_ac_ct_CC="$ac_prog"
3083    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084    break 2
3085  fi
3086done
3087done
3088IFS=$as_save_IFS
3089
3090fi
3091fi
3092ac_ct_CC=$ac_cv_prog_ac_ct_CC
3093if test -n "$ac_ct_CC"; then
3094  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3095$as_echo "$ac_ct_CC" >&6; }
3096else
3097  { $as_echo "$as_me:$LINENO: result: no" >&5
3098$as_echo "no" >&6; }
3099fi
3100
3101
3102  test -n "$ac_ct_CC" && break
3103done
3104
3105  if test "x$ac_ct_CC" = x; then
3106    CC=""
3107  else
3108    case $cross_compiling:$ac_tool_warned in
3109yes:)
3110{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3112ac_tool_warned=yes ;;
3113esac
3114    CC=$ac_ct_CC
3115  fi
3116fi
3117
3118fi
3119
3120
3121test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3123{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3124See \`config.log' for more details." >&5
3125$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3126See \`config.log' for more details." >&2;}
3127   { (exit 1); exit 1; }; }; }
3128
3129# Provide some information about the compiler.
3130$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3131set X $ac_compile
3132ac_compiler=$2
3133{ (ac_try="$ac_compiler --version >&5"
3134case "(($ac_try" in
3135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136  *) ac_try_echo=$ac_try;;
3137esac
3138eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3139$as_echo "$ac_try_echo") >&5
3140  (eval "$ac_compiler --version >&5") 2>&5
3141  ac_status=$?
3142  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143  (exit $ac_status); }
3144{ (ac_try="$ac_compiler -v >&5"
3145case "(($ac_try" in
3146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147  *) ac_try_echo=$ac_try;;
3148esac
3149eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3150$as_echo "$ac_try_echo") >&5
3151  (eval "$ac_compiler -v >&5") 2>&5
3152  ac_status=$?
3153  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154  (exit $ac_status); }
3155{ (ac_try="$ac_compiler -V >&5"
3156case "(($ac_try" in
3157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158  *) ac_try_echo=$ac_try;;
3159esac
3160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3161$as_echo "$ac_try_echo") >&5
3162  (eval "$ac_compiler -V >&5") 2>&5
3163  ac_status=$?
3164  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165  (exit $ac_status); }
3166
3167cat >conftest.$ac_ext <<_ACEOF
3168/* confdefs.h.  */
3169_ACEOF
3170cat confdefs.h >>conftest.$ac_ext
3171cat >>conftest.$ac_ext <<_ACEOF
3172/* end confdefs.h.  */
3173
3174int
3175main ()
3176{
3177
3178  ;
3179  return 0;
3180}
3181_ACEOF
3182ac_clean_files_save=$ac_clean_files
3183ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3184# Try to create an executable without -o first, disregard a.out.
3185# It will help us diagnose broken compilers, and finding out an intuition
3186# of exeext.
3187{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3188$as_echo_n "checking for C compiler default output file name... " >&6; }
3189ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3190
3191# The possible output files:
3192ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3193
3194ac_rmfiles=
3195for ac_file in $ac_files
3196do
3197  case $ac_file in
3198    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3199    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3200  esac
3201done
3202rm -f $ac_rmfiles
3203
3204if { (ac_try="$ac_link_default"
3205case "(($ac_try" in
3206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207  *) ac_try_echo=$ac_try;;
3208esac
3209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3210$as_echo "$ac_try_echo") >&5
3211  (eval "$ac_link_default") 2>&5
3212  ac_status=$?
3213  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214  (exit $ac_status); }; then
3215  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3216# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3217# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3218# so that the user can short-circuit this test for compilers unknown to
3219# Autoconf.
3220for ac_file in $ac_files ''
3221do
3222  test -f "$ac_file" || continue
3223  case $ac_file in
3224    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3225	;;
3226    [ab].out )
3227	# We found the default executable, but exeext='' is most
3228	# certainly right.
3229	break;;
3230    *.* )
3231        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3232	then :; else
3233	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3234	fi
3235	# We set ac_cv_exeext here because the later test for it is not
3236	# safe: cross compilers may not add the suffix if given an `-o'
3237	# argument, so we may need to know it at that point already.
3238	# Even if this section looks crufty: it has the advantage of
3239	# actually working.
3240	break;;
3241    * )
3242	break;;
3243  esac
3244done
3245test "$ac_cv_exeext" = no && ac_cv_exeext=
3246
3247else
3248  ac_file=''
3249fi
3250
3251{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3252$as_echo "$ac_file" >&6; }
3253if test -z "$ac_file"; then
3254  $as_echo "$as_me: failed program was:" >&5
3255sed 's/^/| /' conftest.$ac_ext >&5
3256
3257{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3259{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3260See \`config.log' for more details." >&5
3261$as_echo "$as_me: error: C compiler cannot create executables
3262See \`config.log' for more details." >&2;}
3263   { (exit 77); exit 77; }; }; }
3264fi
3265
3266ac_exeext=$ac_cv_exeext
3267
3268# Check that the compiler produces executables we can run.  If not, either
3269# the compiler is broken, or we cross compile.
3270{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3271$as_echo_n "checking whether the C compiler works... " >&6; }
3272# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3273# If not cross compiling, check that we can run a simple program.
3274if test "$cross_compiling" != yes; then
3275  if { ac_try='./$ac_file'
3276  { (case "(($ac_try" in
3277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278  *) ac_try_echo=$ac_try;;
3279esac
3280eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3281$as_echo "$ac_try_echo") >&5
3282  (eval "$ac_try") 2>&5
3283  ac_status=$?
3284  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285  (exit $ac_status); }; }; then
3286    cross_compiling=no
3287  else
3288    if test "$cross_compiling" = maybe; then
3289	cross_compiling=yes
3290    else
3291	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3293{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3294If you meant to cross compile, use \`--host'.
3295See \`config.log' for more details." >&5
3296$as_echo "$as_me: error: cannot run C compiled programs.
3297If you meant to cross compile, use \`--host'.
3298See \`config.log' for more details." >&2;}
3299   { (exit 1); exit 1; }; }; }
3300    fi
3301  fi
3302fi
3303{ $as_echo "$as_me:$LINENO: result: yes" >&5
3304$as_echo "yes" >&6; }
3305
3306rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3307ac_clean_files=$ac_clean_files_save
3308# Check that the compiler produces executables we can run.  If not, either
3309# the compiler is broken, or we cross compile.
3310{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3311$as_echo_n "checking whether we are cross compiling... " >&6; }
3312{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3313$as_echo "$cross_compiling" >&6; }
3314
3315{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3316$as_echo_n "checking for suffix of executables... " >&6; }
3317if { (ac_try="$ac_link"
3318case "(($ac_try" in
3319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320  *) ac_try_echo=$ac_try;;
3321esac
3322eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3323$as_echo "$ac_try_echo") >&5
3324  (eval "$ac_link") 2>&5
3325  ac_status=$?
3326  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327  (exit $ac_status); }; then
3328  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3329# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3330# work properly (i.e., refer to `conftest.exe'), while it won't with
3331# `rm'.
3332for ac_file in conftest.exe conftest conftest.*; do
3333  test -f "$ac_file" || continue
3334  case $ac_file in
3335    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3336    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3337	  break;;
3338    * ) break;;
3339  esac
3340done
3341else
3342  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3345See \`config.log' for more details." >&5
3346$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3347See \`config.log' for more details." >&2;}
3348   { (exit 1); exit 1; }; }; }
3349fi
3350
3351rm -f conftest$ac_cv_exeext
3352{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3353$as_echo "$ac_cv_exeext" >&6; }
3354
3355rm -f conftest.$ac_ext
3356EXEEXT=$ac_cv_exeext
3357ac_exeext=$EXEEXT
3358{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3359$as_echo_n "checking for suffix of object files... " >&6; }
3360if test "${ac_cv_objext+set}" = set; then
3361  $as_echo_n "(cached) " >&6
3362else
3363  cat >conftest.$ac_ext <<_ACEOF
3364/* confdefs.h.  */
3365_ACEOF
3366cat confdefs.h >>conftest.$ac_ext
3367cat >>conftest.$ac_ext <<_ACEOF
3368/* end confdefs.h.  */
3369
3370int
3371main ()
3372{
3373
3374  ;
3375  return 0;
3376}
3377_ACEOF
3378rm -f conftest.o conftest.obj
3379if { (ac_try="$ac_compile"
3380case "(($ac_try" in
3381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382  *) ac_try_echo=$ac_try;;
3383esac
3384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3385$as_echo "$ac_try_echo") >&5
3386  (eval "$ac_compile") 2>&5
3387  ac_status=$?
3388  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389  (exit $ac_status); }; then
3390  for ac_file in conftest.o conftest.obj conftest.*; do
3391  test -f "$ac_file" || continue;
3392  case $ac_file in
3393    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3394    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3395       break;;
3396  esac
3397done
3398else
3399  $as_echo "$as_me: failed program was:" >&5
3400sed 's/^/| /' conftest.$ac_ext >&5
3401
3402{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3405See \`config.log' for more details." >&5
3406$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3407See \`config.log' for more details." >&2;}
3408   { (exit 1); exit 1; }; }; }
3409fi
3410
3411rm -f conftest.$ac_cv_objext conftest.$ac_ext
3412fi
3413{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3414$as_echo "$ac_cv_objext" >&6; }
3415OBJEXT=$ac_cv_objext
3416ac_objext=$OBJEXT
3417{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3418$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3419if test "${ac_cv_c_compiler_gnu+set}" = set; then
3420  $as_echo_n "(cached) " >&6
3421else
3422  cat >conftest.$ac_ext <<_ACEOF
3423/* confdefs.h.  */
3424_ACEOF
3425cat confdefs.h >>conftest.$ac_ext
3426cat >>conftest.$ac_ext <<_ACEOF
3427/* end confdefs.h.  */
3428
3429int
3430main ()
3431{
3432#ifndef __GNUC__
3433       choke me
3434#endif
3435
3436  ;
3437  return 0;
3438}
3439_ACEOF
3440rm -f conftest.$ac_objext
3441if { (ac_try="$ac_compile"
3442case "(($ac_try" in
3443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444  *) ac_try_echo=$ac_try;;
3445esac
3446eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3447$as_echo "$ac_try_echo") >&5
3448  (eval "$ac_compile") 2>conftest.er1
3449  ac_status=$?
3450  grep -v '^ *+' conftest.er1 >conftest.err
3451  rm -f conftest.er1
3452  cat conftest.err >&5
3453  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454  (exit $ac_status); } && {
3455	 test -z "$ac_c_werror_flag" ||
3456	 test ! -s conftest.err
3457       } && test -s conftest.$ac_objext; then
3458  ac_compiler_gnu=yes
3459else
3460  $as_echo "$as_me: failed program was:" >&5
3461sed 's/^/| /' conftest.$ac_ext >&5
3462
3463	ac_compiler_gnu=no
3464fi
3465
3466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467ac_cv_c_compiler_gnu=$ac_compiler_gnu
3468
3469fi
3470{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3471$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3472if test $ac_compiler_gnu = yes; then
3473  GCC=yes
3474else
3475  GCC=
3476fi
3477ac_test_CFLAGS=${CFLAGS+set}
3478ac_save_CFLAGS=$CFLAGS
3479{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3480$as_echo_n "checking whether $CC accepts -g... " >&6; }
3481if test "${ac_cv_prog_cc_g+set}" = set; then
3482  $as_echo_n "(cached) " >&6
3483else
3484  ac_save_c_werror_flag=$ac_c_werror_flag
3485   ac_c_werror_flag=yes
3486   ac_cv_prog_cc_g=no
3487   CFLAGS="-g"
3488   cat >conftest.$ac_ext <<_ACEOF
3489/* confdefs.h.  */
3490_ACEOF
3491cat confdefs.h >>conftest.$ac_ext
3492cat >>conftest.$ac_ext <<_ACEOF
3493/* end confdefs.h.  */
3494
3495int
3496main ()
3497{
3498
3499  ;
3500  return 0;
3501}
3502_ACEOF
3503rm -f conftest.$ac_objext
3504if { (ac_try="$ac_compile"
3505case "(($ac_try" in
3506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507  *) ac_try_echo=$ac_try;;
3508esac
3509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3510$as_echo "$ac_try_echo") >&5
3511  (eval "$ac_compile") 2>conftest.er1
3512  ac_status=$?
3513  grep -v '^ *+' conftest.er1 >conftest.err
3514  rm -f conftest.er1
3515  cat conftest.err >&5
3516  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517  (exit $ac_status); } && {
3518	 test -z "$ac_c_werror_flag" ||
3519	 test ! -s conftest.err
3520       } && test -s conftest.$ac_objext; then
3521  ac_cv_prog_cc_g=yes
3522else
3523  $as_echo "$as_me: failed program was:" >&5
3524sed 's/^/| /' conftest.$ac_ext >&5
3525
3526	CFLAGS=""
3527      cat >conftest.$ac_ext <<_ACEOF
3528/* confdefs.h.  */
3529_ACEOF
3530cat confdefs.h >>conftest.$ac_ext
3531cat >>conftest.$ac_ext <<_ACEOF
3532/* end confdefs.h.  */
3533
3534int
3535main ()
3536{
3537
3538  ;
3539  return 0;
3540}
3541_ACEOF
3542rm -f conftest.$ac_objext
3543if { (ac_try="$ac_compile"
3544case "(($ac_try" in
3545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546  *) ac_try_echo=$ac_try;;
3547esac
3548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3549$as_echo "$ac_try_echo") >&5
3550  (eval "$ac_compile") 2>conftest.er1
3551  ac_status=$?
3552  grep -v '^ *+' conftest.er1 >conftest.err
3553  rm -f conftest.er1
3554  cat conftest.err >&5
3555  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556  (exit $ac_status); } && {
3557	 test -z "$ac_c_werror_flag" ||
3558	 test ! -s conftest.err
3559       } && test -s conftest.$ac_objext; then
3560  :
3561else
3562  $as_echo "$as_me: failed program was:" >&5
3563sed 's/^/| /' conftest.$ac_ext >&5
3564
3565	ac_c_werror_flag=$ac_save_c_werror_flag
3566	 CFLAGS="-g"
3567	 cat >conftest.$ac_ext <<_ACEOF
3568/* confdefs.h.  */
3569_ACEOF
3570cat confdefs.h >>conftest.$ac_ext
3571cat >>conftest.$ac_ext <<_ACEOF
3572/* end confdefs.h.  */
3573
3574int
3575main ()
3576{
3577
3578  ;
3579  return 0;
3580}
3581_ACEOF
3582rm -f conftest.$ac_objext
3583if { (ac_try="$ac_compile"
3584case "(($ac_try" in
3585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586  *) ac_try_echo=$ac_try;;
3587esac
3588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3589$as_echo "$ac_try_echo") >&5
3590  (eval "$ac_compile") 2>conftest.er1
3591  ac_status=$?
3592  grep -v '^ *+' conftest.er1 >conftest.err
3593  rm -f conftest.er1
3594  cat conftest.err >&5
3595  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596  (exit $ac_status); } && {
3597	 test -z "$ac_c_werror_flag" ||
3598	 test ! -s conftest.err
3599       } && test -s conftest.$ac_objext; then
3600  ac_cv_prog_cc_g=yes
3601else
3602  $as_echo "$as_me: failed program was:" >&5
3603sed 's/^/| /' conftest.$ac_ext >&5
3604
3605
3606fi
3607
3608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609fi
3610
3611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612fi
3613
3614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615   ac_c_werror_flag=$ac_save_c_werror_flag
3616fi
3617{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3618$as_echo "$ac_cv_prog_cc_g" >&6; }
3619if test "$ac_test_CFLAGS" = set; then
3620  CFLAGS=$ac_save_CFLAGS
3621elif test $ac_cv_prog_cc_g = yes; then
3622  if test "$GCC" = yes; then
3623    CFLAGS="-g -O2"
3624  else
3625    CFLAGS="-g"
3626  fi
3627else
3628  if test "$GCC" = yes; then
3629    CFLAGS="-O2"
3630  else
3631    CFLAGS=
3632  fi
3633fi
3634{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3635$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3636if test "${ac_cv_prog_cc_c89+set}" = set; then
3637  $as_echo_n "(cached) " >&6
3638else
3639  ac_cv_prog_cc_c89=no
3640ac_save_CC=$CC
3641cat >conftest.$ac_ext <<_ACEOF
3642/* confdefs.h.  */
3643_ACEOF
3644cat confdefs.h >>conftest.$ac_ext
3645cat >>conftest.$ac_ext <<_ACEOF
3646/* end confdefs.h.  */
3647#include <stdarg.h>
3648#include <stdio.h>
3649#include <sys/types.h>
3650#include <sys/stat.h>
3651/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3652struct buf { int x; };
3653FILE * (*rcsopen) (struct buf *, struct stat *, int);
3654static char *e (p, i)
3655     char **p;
3656     int i;
3657{
3658  return p[i];
3659}
3660static char *f (char * (*g) (char **, int), char **p, ...)
3661{
3662  char *s;
3663  va_list v;
3664  va_start (v,p);
3665  s = g (p, va_arg (v,int));
3666  va_end (v);
3667  return s;
3668}
3669
3670/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3671   function prototypes and stuff, but not '\xHH' hex character constants.
3672   These don't provoke an error unfortunately, instead are silently treated
3673   as 'x'.  The following induces an error, until -std is added to get
3674   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3675   array size at least.  It's necessary to write '\x00'==0 to get something
3676   that's true only with -std.  */
3677int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3678
3679/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3680   inside strings and character constants.  */
3681#define FOO(x) 'x'
3682int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3683
3684int test (int i, double x);
3685struct s1 {int (*f) (int a);};
3686struct s2 {int (*f) (double a);};
3687int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3688int argc;
3689char **argv;
3690int
3691main ()
3692{
3693return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3694  ;
3695  return 0;
3696}
3697_ACEOF
3698for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3699	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3700do
3701  CC="$ac_save_CC $ac_arg"
3702  rm -f conftest.$ac_objext
3703if { (ac_try="$ac_compile"
3704case "(($ac_try" in
3705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706  *) ac_try_echo=$ac_try;;
3707esac
3708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3709$as_echo "$ac_try_echo") >&5
3710  (eval "$ac_compile") 2>conftest.er1
3711  ac_status=$?
3712  grep -v '^ *+' conftest.er1 >conftest.err
3713  rm -f conftest.er1
3714  cat conftest.err >&5
3715  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716  (exit $ac_status); } && {
3717	 test -z "$ac_c_werror_flag" ||
3718	 test ! -s conftest.err
3719       } && test -s conftest.$ac_objext; then
3720  ac_cv_prog_cc_c89=$ac_arg
3721else
3722  $as_echo "$as_me: failed program was:" >&5
3723sed 's/^/| /' conftest.$ac_ext >&5
3724
3725
3726fi
3727
3728rm -f core conftest.err conftest.$ac_objext
3729  test "x$ac_cv_prog_cc_c89" != "xno" && break
3730done
3731rm -f conftest.$ac_ext
3732CC=$ac_save_CC
3733
3734fi
3735# AC_CACHE_VAL
3736case "x$ac_cv_prog_cc_c89" in
3737  x)
3738    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3739$as_echo "none needed" >&6; } ;;
3740  xno)
3741    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3742$as_echo "unsupported" >&6; } ;;
3743  *)
3744    CC="$CC $ac_cv_prog_cc_c89"
3745    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3746$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3747esac
3748
3749
3750ac_ext=c
3751ac_cpp='$CPP $CPPFLAGS'
3752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755
3756depcc="$CC"   am_compiler_list=
3757
3758{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3759$as_echo_n "checking dependency style of $depcc... " >&6; }
3760if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3761  $as_echo_n "(cached) " >&6
3762else
3763  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3764  # We make a subdir and do the tests there.  Otherwise we can end up
3765  # making bogus files that we don't know about and never remove.  For
3766  # instance it was reported that on HP-UX the gcc test will end up
3767  # making a dummy file named `D' -- because `-MD' means `put the output
3768  # in D'.
3769  mkdir conftest.dir
3770  # Copy depcomp to subdir because otherwise we won't find it if we're
3771  # using a relative directory.
3772  cp "$am_depcomp" conftest.dir
3773  cd conftest.dir
3774  # We will build objects and dependencies in a subdirectory because
3775  # it helps to detect inapplicable dependency modes.  For instance
3776  # both Tru64's cc and ICC support -MD to output dependencies as a
3777  # side effect of compilation, but ICC will put the dependencies in
3778  # the current directory while Tru64 will put them in the object
3779  # directory.
3780  mkdir sub
3781
3782  am_cv_CC_dependencies_compiler_type=none
3783  if test "$am_compiler_list" = ""; then
3784     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3785  fi
3786  for depmode in $am_compiler_list; do
3787    # Setup a source with many dependencies, because some compilers
3788    # like to wrap large dependency lists on column 80 (with \), and
3789    # we should not choose a depcomp mode which is confused by this.
3790    #
3791    # We need to recreate these files for each test, as the compiler may
3792    # overwrite some of them when testing with obscure command lines.
3793    # This happens at least with the AIX C compiler.
3794    : > sub/conftest.c
3795    for i in 1 2 3 4 5 6; do
3796      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3797      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3798      # Solaris 8's {/usr,}/bin/sh.
3799      touch sub/conftst$i.h
3800    done
3801    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3802
3803    case $depmode in
3804    nosideeffect)
3805      # after this tag, mechanisms are not by side-effect, so they'll
3806      # only be used when explicitly requested
3807      if test "x$enable_dependency_tracking" = xyes; then
3808	continue
3809      else
3810	break
3811      fi
3812      ;;
3813    none) break ;;
3814    esac
3815    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3816    # mode.  It turns out that the SunPro C++ compiler does not properly
3817    # handle `-M -o', and we need to detect this.
3818    if depmode=$depmode \
3819       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3820       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3821       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3822         >/dev/null 2>conftest.err &&
3823       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3824       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3825       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3826       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3827      # icc doesn't choke on unknown options, it will just issue warnings
3828      # or remarks (even with -Werror).  So we grep stderr for any message
3829      # that says an option was ignored or not supported.
3830      # When given -MP, icc 7.0 and 7.1 complain thusly:
3831      #   icc: Command line warning: ignoring option '-M'; no argument required
3832      # The diagnosis changed in icc 8.0:
3833      #   icc: Command line remark: option '-MP' not supported
3834      if (grep 'ignoring option' conftest.err ||
3835          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3836        am_cv_CC_dependencies_compiler_type=$depmode
3837        break
3838      fi
3839    fi
3840  done
3841
3842  cd ..
3843  rm -rf conftest.dir
3844else
3845  am_cv_CC_dependencies_compiler_type=none
3846fi
3847
3848fi
3849{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3850$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3851CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3852
3853 if
3854  test "x$enable_dependency_tracking" != xno \
3855  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3856  am__fastdepCC_TRUE=
3857  am__fastdepCC_FALSE='#'
3858else
3859  am__fastdepCC_TRUE='#'
3860  am__fastdepCC_FALSE=
3861fi
3862
3863
3864{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3865$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3866if test "${lt_cv_path_SED+set}" = set; then
3867  $as_echo_n "(cached) " >&6
3868else
3869  # Loop through the user's path and test for sed and gsed.
3870# Then use that list of sed's as ones to test for truncation.
3871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872for as_dir in $PATH
3873do
3874  IFS=$as_save_IFS
3875  test -z "$as_dir" && as_dir=.
3876  for lt_ac_prog in sed gsed; do
3877    for ac_exec_ext in '' $ac_executable_extensions; do
3878      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3879        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3880      fi
3881    done
3882  done
3883done
3884IFS=$as_save_IFS
3885lt_ac_max=0
3886lt_ac_count=0
3887# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3888# along with /bin/sed that truncates output.
3889for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3890  test ! -f $lt_ac_sed && continue
3891  cat /dev/null > conftest.in
3892  lt_ac_count=0
3893  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3894  # Check for GNU sed and select it if it is found.
3895  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3896    lt_cv_path_SED=$lt_ac_sed
3897    break
3898  fi
3899  while true; do
3900    cat conftest.in conftest.in >conftest.tmp
3901    mv conftest.tmp conftest.in
3902    cp conftest.in conftest.nl
3903    echo >>conftest.nl
3904    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3905    cmp -s conftest.out conftest.nl || break
3906    # 10000 chars as input seems more than enough
3907    test $lt_ac_count -gt 10 && break
3908    lt_ac_count=`expr $lt_ac_count + 1`
3909    if test $lt_ac_count -gt $lt_ac_max; then
3910      lt_ac_max=$lt_ac_count
3911      lt_cv_path_SED=$lt_ac_sed
3912    fi
3913  done
3914done
3915
3916fi
3917
3918SED=$lt_cv_path_SED
3919
3920{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3921$as_echo "$SED" >&6; }
3922
3923{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3924$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3925if test "${ac_cv_path_GREP+set}" = set; then
3926  $as_echo_n "(cached) " >&6
3927else
3928  if test -z "$GREP"; then
3929  ac_path_GREP_found=false
3930  # Loop through the user's path and test for each of PROGNAME-LIST
3931  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3933do
3934  IFS=$as_save_IFS
3935  test -z "$as_dir" && as_dir=.
3936  for ac_prog in grep ggrep; do
3937    for ac_exec_ext in '' $ac_executable_extensions; do
3938      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3939      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3940# Check for GNU ac_path_GREP and select it if it is found.
3941  # Check for GNU $ac_path_GREP
3942case `"$ac_path_GREP" --version 2>&1` in
3943*GNU*)
3944  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3945*)
3946  ac_count=0
3947  $as_echo_n 0123456789 >"conftest.in"
3948  while :
3949  do
3950    cat "conftest.in" "conftest.in" >"conftest.tmp"
3951    mv "conftest.tmp" "conftest.in"
3952    cp "conftest.in" "conftest.nl"
3953    $as_echo 'GREP' >> "conftest.nl"
3954    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3955    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3956    ac_count=`expr $ac_count + 1`
3957    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3958      # Best one so far, save it but keep looking for a better one
3959      ac_cv_path_GREP="$ac_path_GREP"
3960      ac_path_GREP_max=$ac_count
3961    fi
3962    # 10*(2^10) chars as input seems more than enough
3963    test $ac_count -gt 10 && break
3964  done
3965  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3966esac
3967
3968      $ac_path_GREP_found && break 3
3969    done
3970  done
3971done
3972IFS=$as_save_IFS
3973  if test -z "$ac_cv_path_GREP"; then
3974    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3975$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3976   { (exit 1); exit 1; }; }
3977  fi
3978else
3979  ac_cv_path_GREP=$GREP
3980fi
3981
3982fi
3983{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3984$as_echo "$ac_cv_path_GREP" >&6; }
3985 GREP="$ac_cv_path_GREP"
3986
3987
3988{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3989$as_echo_n "checking for egrep... " >&6; }
3990if test "${ac_cv_path_EGREP+set}" = set; then
3991  $as_echo_n "(cached) " >&6
3992else
3993  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3994   then ac_cv_path_EGREP="$GREP -E"
3995   else
3996     if test -z "$EGREP"; then
3997  ac_path_EGREP_found=false
3998  # Loop through the user's path and test for each of PROGNAME-LIST
3999  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4001do
4002  IFS=$as_save_IFS
4003  test -z "$as_dir" && as_dir=.
4004  for ac_prog in egrep; do
4005    for ac_exec_ext in '' $ac_executable_extensions; do
4006      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4007      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4008# Check for GNU ac_path_EGREP and select it if it is found.
4009  # Check for GNU $ac_path_EGREP
4010case `"$ac_path_EGREP" --version 2>&1` in
4011*GNU*)
4012  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4013*)
4014  ac_count=0
4015  $as_echo_n 0123456789 >"conftest.in"
4016  while :
4017  do
4018    cat "conftest.in" "conftest.in" >"conftest.tmp"
4019    mv "conftest.tmp" "conftest.in"
4020    cp "conftest.in" "conftest.nl"
4021    $as_echo 'EGREP' >> "conftest.nl"
4022    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4023    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4024    ac_count=`expr $ac_count + 1`
4025    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4026      # Best one so far, save it but keep looking for a better one
4027      ac_cv_path_EGREP="$ac_path_EGREP"
4028      ac_path_EGREP_max=$ac_count
4029    fi
4030    # 10*(2^10) chars as input seems more than enough
4031    test $ac_count -gt 10 && break
4032  done
4033  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4034esac
4035
4036      $ac_path_EGREP_found && break 3
4037    done
4038  done
4039done
4040IFS=$as_save_IFS
4041  if test -z "$ac_cv_path_EGREP"; then
4042    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4043$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4044   { (exit 1); exit 1; }; }
4045  fi
4046else
4047  ac_cv_path_EGREP=$EGREP
4048fi
4049
4050   fi
4051fi
4052{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4053$as_echo "$ac_cv_path_EGREP" >&6; }
4054 EGREP="$ac_cv_path_EGREP"
4055
4056
4057
4058# Check whether --with-gnu-ld was given.
4059if test "${with_gnu_ld+set}" = set; then
4060  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4061else
4062  with_gnu_ld=no
4063fi
4064
4065ac_prog=ld
4066if test "$GCC" = yes; then
4067  # Check if gcc -print-prog-name=ld gives a path.
4068  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4069$as_echo_n "checking for ld used by $CC... " >&6; }
4070  case $host in
4071  *-*-mingw*)
4072    # gcc leaves a trailing carriage return which upsets mingw
4073    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4074  *)
4075    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4076  esac
4077  case $ac_prog in
4078    # Accept absolute paths.
4079    [\\/]* | ?:[\\/]*)
4080      re_direlt='/[^/][^/]*/\.\./'
4081      # Canonicalize the pathname of ld
4082      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4083      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4084	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4085      done
4086      test -z "$LD" && LD="$ac_prog"
4087      ;;
4088  "")
4089    # If it fails, then pretend we aren't using GCC.
4090    ac_prog=ld
4091    ;;
4092  *)
4093    # If it is relative, then search for the first ld in PATH.
4094    with_gnu_ld=unknown
4095    ;;
4096  esac
4097elif test "$with_gnu_ld" = yes; then
4098  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4099$as_echo_n "checking for GNU ld... " >&6; }
4100else
4101  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4102$as_echo_n "checking for non-GNU ld... " >&6; }
4103fi
4104if test "${lt_cv_path_LD+set}" = set; then
4105  $as_echo_n "(cached) " >&6
4106else
4107  if test -z "$LD"; then
4108  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4109  for ac_dir in $PATH; do
4110    IFS="$lt_save_ifs"
4111    test -z "$ac_dir" && ac_dir=.
4112    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4113      lt_cv_path_LD="$ac_dir/$ac_prog"
4114      # Check to see if the program is GNU ld.  I'd rather use --version,
4115      # but apparently some variants of GNU ld only accept -v.
4116      # Break only if it was the GNU/non-GNU ld that we prefer.
4117      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4118      *GNU* | *'with BFD'*)
4119	test "$with_gnu_ld" != no && break
4120	;;
4121      *)
4122	test "$with_gnu_ld" != yes && break
4123	;;
4124      esac
4125    fi
4126  done
4127  IFS="$lt_save_ifs"
4128else
4129  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4130fi
4131fi
4132
4133LD="$lt_cv_path_LD"
4134if test -n "$LD"; then
4135  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4136$as_echo "$LD" >&6; }
4137else
4138  { $as_echo "$as_me:$LINENO: result: no" >&5
4139$as_echo "no" >&6; }
4140fi
4141test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4142$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4143   { (exit 1); exit 1; }; }
4144{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4145$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4146if test "${lt_cv_prog_gnu_ld+set}" = set; then
4147  $as_echo_n "(cached) " >&6
4148else
4149  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4150case `$LD -v 2>&1 </dev/null` in
4151*GNU* | *'with BFD'*)
4152  lt_cv_prog_gnu_ld=yes
4153  ;;
4154*)
4155  lt_cv_prog_gnu_ld=no
4156  ;;
4157esac
4158fi
4159{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4160$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4161with_gnu_ld=$lt_cv_prog_gnu_ld
4162
4163
4164{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4165$as_echo_n "checking for $LD option to reload object files... " >&6; }
4166if test "${lt_cv_ld_reload_flag+set}" = set; then
4167  $as_echo_n "(cached) " >&6
4168else
4169  lt_cv_ld_reload_flag='-r'
4170fi
4171{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4172$as_echo "$lt_cv_ld_reload_flag" >&6; }
4173reload_flag=$lt_cv_ld_reload_flag
4174case $reload_flag in
4175"" | " "*) ;;
4176*) reload_flag=" $reload_flag" ;;
4177esac
4178reload_cmds='$LD$reload_flag -o $output$reload_objs'
4179case $host_os in
4180  darwin*)
4181    if test "$GCC" = yes; then
4182      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4183    else
4184      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4185    fi
4186    ;;
4187esac
4188
4189{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4190$as_echo_n "checking for BSD-compatible nm... " >&6; }
4191if test "${lt_cv_path_NM+set}" = set; then
4192  $as_echo_n "(cached) " >&6
4193else
4194  if test -n "$NM"; then
4195  # Let the user override the test.
4196  lt_cv_path_NM="$NM"
4197else
4198  lt_nm_to_check="${ac_tool_prefix}nm"
4199  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4200    lt_nm_to_check="$lt_nm_to_check nm"
4201  fi
4202  for lt_tmp_nm in $lt_nm_to_check; do
4203    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4204    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4205      IFS="$lt_save_ifs"
4206      test -z "$ac_dir" && ac_dir=.
4207      tmp_nm="$ac_dir/$lt_tmp_nm"
4208      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4209	# Check to see if the nm accepts a BSD-compat flag.
4210	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4211	#   nm: unknown option "B" ignored
4212	# Tru64's nm complains that /dev/null is an invalid object file
4213	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4214	*/dev/null* | *'Invalid file or object type'*)
4215	  lt_cv_path_NM="$tmp_nm -B"
4216	  break
4217	  ;;
4218	*)
4219	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4220	  */dev/null*)
4221	    lt_cv_path_NM="$tmp_nm -p"
4222	    break
4223	    ;;
4224	  *)
4225	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4226	    continue # so that we can try to find one that supports BSD flags
4227	    ;;
4228	  esac
4229	  ;;
4230	esac
4231      fi
4232    done
4233    IFS="$lt_save_ifs"
4234  done
4235  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4236fi
4237fi
4238{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4239$as_echo "$lt_cv_path_NM" >&6; }
4240NM="$lt_cv_path_NM"
4241
4242{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4243$as_echo_n "checking whether ln -s works... " >&6; }
4244LN_S=$as_ln_s
4245if test "$LN_S" = "ln -s"; then
4246  { $as_echo "$as_me:$LINENO: result: yes" >&5
4247$as_echo "yes" >&6; }
4248else
4249  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4250$as_echo "no, using $LN_S" >&6; }
4251fi
4252
4253{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4254$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4255if test "${lt_cv_deplibs_check_method+set}" = set; then
4256  $as_echo_n "(cached) " >&6
4257else
4258  lt_cv_file_magic_cmd='$MAGIC_CMD'
4259lt_cv_file_magic_test_file=
4260lt_cv_deplibs_check_method='unknown'
4261# Need to set the preceding variable on all platforms that support
4262# interlibrary dependencies.
4263# 'none' -- dependencies not supported.
4264# `unknown' -- same as none, but documents that we really don't know.
4265# 'pass_all' -- all dependencies passed with no checks.
4266# 'test_compile' -- check by making test program.
4267# 'file_magic [[regex]]' -- check by looking for files in library path
4268# which responds to the $file_magic_cmd with a given extended regex.
4269# If you have `file' or equivalent on your system and you're not sure
4270# whether `pass_all' will *always* work, you probably want this one.
4271
4272case $host_os in
4273aix[4-9]*)
4274  lt_cv_deplibs_check_method=pass_all
4275  ;;
4276
4277beos*)
4278  lt_cv_deplibs_check_method=pass_all
4279  ;;
4280
4281bsdi[45]*)
4282  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4283  lt_cv_file_magic_cmd='/usr/bin/file -L'
4284  lt_cv_file_magic_test_file=/shlib/libc.so
4285  ;;
4286
4287cygwin*)
4288  # func_win32_libid is a shell function defined in ltmain.sh
4289  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4290  lt_cv_file_magic_cmd='func_win32_libid'
4291  ;;
4292
4293mingw* | pw32*)
4294  # Base MSYS/MinGW do not provide the 'file' command needed by
4295  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4296  # unless we find 'file', for example because we are cross-compiling.
4297  if ( file / ) >/dev/null 2>&1; then
4298    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4299    lt_cv_file_magic_cmd='func_win32_libid'
4300  else
4301    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4302    lt_cv_file_magic_cmd='$OBJDUMP -f'
4303  fi
4304  ;;
4305
4306darwin* | rhapsody*)
4307  lt_cv_deplibs_check_method=pass_all
4308  ;;
4309
4310freebsd* | dragonfly*)
4311  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4312    case $host_cpu in
4313    i*86 )
4314      # Not sure whether the presence of OpenBSD here was a mistake.
4315      # Let's accept both of them until this is cleared up.
4316      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4317      lt_cv_file_magic_cmd=/usr/bin/file
4318      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4319      ;;
4320    esac
4321  else
4322    lt_cv_deplibs_check_method=pass_all
4323  fi
4324  ;;
4325
4326gnu*)
4327  lt_cv_deplibs_check_method=pass_all
4328  ;;
4329
4330hpux10.20* | hpux11*)
4331  lt_cv_file_magic_cmd=/usr/bin/file
4332  case $host_cpu in
4333  ia64*)
4334    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4335    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4336    ;;
4337  hppa*64*)
4338    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]'
4339    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4340    ;;
4341  *)
4342    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4343    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4344    ;;
4345  esac
4346  ;;
4347
4348interix[3-9]*)
4349  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4350  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4351  ;;
4352
4353irix5* | irix6* | nonstopux*)
4354  case $LD in
4355  *-32|*"-32 ") libmagic=32-bit;;
4356  *-n32|*"-n32 ") libmagic=N32;;
4357  *-64|*"-64 ") libmagic=64-bit;;
4358  *) libmagic=never-match;;
4359  esac
4360  lt_cv_deplibs_check_method=pass_all
4361  ;;
4362
4363# This must be Linux ELF.
4364linux* | k*bsd*-gnu)
4365  lt_cv_deplibs_check_method=pass_all
4366  ;;
4367
4368netbsd*)
4369  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4370    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4371  else
4372    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4373  fi
4374  ;;
4375
4376newos6*)
4377  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4378  lt_cv_file_magic_cmd=/usr/bin/file
4379  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4380  ;;
4381
4382nto-qnx*)
4383  lt_cv_deplibs_check_method=unknown
4384  ;;
4385
4386openbsd*)
4387  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4388    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4389  else
4390    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4391  fi
4392  ;;
4393
4394osf3* | osf4* | osf5*)
4395  lt_cv_deplibs_check_method=pass_all
4396  ;;
4397
4398rdos*)
4399  lt_cv_deplibs_check_method=pass_all
4400  ;;
4401
4402solaris*)
4403  lt_cv_deplibs_check_method=pass_all
4404  ;;
4405
4406sysv4 | sysv4.3*)
4407  case $host_vendor in
4408  motorola)
4409    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]'
4410    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4411    ;;
4412  ncr)
4413    lt_cv_deplibs_check_method=pass_all
4414    ;;
4415  sequent)
4416    lt_cv_file_magic_cmd='/bin/file'
4417    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4418    ;;
4419  sni)
4420    lt_cv_file_magic_cmd='/bin/file'
4421    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4422    lt_cv_file_magic_test_file=/lib/libc.so
4423    ;;
4424  siemens)
4425    lt_cv_deplibs_check_method=pass_all
4426    ;;
4427  pc)
4428    lt_cv_deplibs_check_method=pass_all
4429    ;;
4430  esac
4431  ;;
4432
4433sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4434  lt_cv_deplibs_check_method=pass_all
4435  ;;
4436esac
4437
4438fi
4439{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4440$as_echo "$lt_cv_deplibs_check_method" >&6; }
4441file_magic_cmd=$lt_cv_file_magic_cmd
4442deplibs_check_method=$lt_cv_deplibs_check_method
4443test -z "$deplibs_check_method" && deplibs_check_method=unknown
4444
4445
4446
4447
4448# If no C compiler was specified, use CC.
4449LTCC=${LTCC-"$CC"}
4450
4451# If no C compiler flags were specified, use CFLAGS.
4452LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4453
4454# Allow CC to be a program name with arguments.
4455compiler=$CC
4456
4457
4458# Check whether --enable-libtool-lock was given.
4459if test "${enable_libtool_lock+set}" = set; then
4460  enableval=$enable_libtool_lock;
4461fi
4462
4463test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4464
4465# Some flags need to be propagated to the compiler or linker for good
4466# libtool support.
4467case $host in
4468ia64-*-hpux*)
4469  # Find out which ABI we are using.
4470  echo 'int i;' > conftest.$ac_ext
4471  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4472  (eval $ac_compile) 2>&5
4473  ac_status=$?
4474  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475  (exit $ac_status); }; then
4476    case `/usr/bin/file conftest.$ac_objext` in
4477    *ELF-32*)
4478      HPUX_IA64_MODE="32"
4479      ;;
4480    *ELF-64*)
4481      HPUX_IA64_MODE="64"
4482      ;;
4483    esac
4484  fi
4485  rm -rf conftest*
4486  ;;
4487*-*-irix6*)
4488  # Find out which ABI we are using.
4489  echo '#line 4489 "configure"' > conftest.$ac_ext
4490  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4491  (eval $ac_compile) 2>&5
4492  ac_status=$?
4493  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494  (exit $ac_status); }; then
4495   if test "$lt_cv_prog_gnu_ld" = yes; then
4496    case `/usr/bin/file conftest.$ac_objext` in
4497    *32-bit*)
4498      LD="${LD-ld} -melf32bsmip"
4499      ;;
4500    *N32*)
4501      LD="${LD-ld} -melf32bmipn32"
4502      ;;
4503    *64-bit*)
4504      LD="${LD-ld} -melf64bmip"
4505      ;;
4506    esac
4507   else
4508    case `/usr/bin/file conftest.$ac_objext` in
4509    *32-bit*)
4510      LD="${LD-ld} -32"
4511      ;;
4512    *N32*)
4513      LD="${LD-ld} -n32"
4514      ;;
4515    *64-bit*)
4516      LD="${LD-ld} -64"
4517      ;;
4518    esac
4519   fi
4520  fi
4521  rm -rf conftest*
4522  ;;
4523
4524x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4525s390*-*linux*|sparc*-*linux*)
4526  # Find out which ABI we are using.
4527  echo 'int i;' > conftest.$ac_ext
4528  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4529  (eval $ac_compile) 2>&5
4530  ac_status=$?
4531  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532  (exit $ac_status); }; then
4533    case `/usr/bin/file conftest.o` in
4534    *32-bit*)
4535      case $host in
4536        x86_64-*kfreebsd*-gnu)
4537          LD="${LD-ld} -m elf_i386_fbsd"
4538          ;;
4539        x86_64-*linux*)
4540          LD="${LD-ld} -m elf_i386"
4541          ;;
4542        ppc64-*linux*|powerpc64-*linux*)
4543          LD="${LD-ld} -m elf32ppclinux"
4544          ;;
4545        s390x-*linux*)
4546          LD="${LD-ld} -m elf_s390"
4547          ;;
4548        sparc64-*linux*)
4549          LD="${LD-ld} -m elf32_sparc"
4550          ;;
4551      esac
4552      ;;
4553    *64-bit*)
4554      case $host in
4555        x86_64-*kfreebsd*-gnu)
4556          LD="${LD-ld} -m elf_x86_64_fbsd"
4557          ;;
4558        x86_64-*linux*)
4559          LD="${LD-ld} -m elf_x86_64"
4560          ;;
4561        ppc*-*linux*|powerpc*-*linux*)
4562          LD="${LD-ld} -m elf64ppc"
4563          ;;
4564        s390*-*linux*)
4565          LD="${LD-ld} -m elf64_s390"
4566          ;;
4567        sparc*-*linux*)
4568          LD="${LD-ld} -m elf64_sparc"
4569          ;;
4570      esac
4571      ;;
4572    esac
4573  fi
4574  rm -rf conftest*
4575  ;;
4576
4577*-*-sco3.2v5*)
4578  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4579  SAVE_CFLAGS="$CFLAGS"
4580  CFLAGS="$CFLAGS -belf"
4581  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4582$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4583if test "${lt_cv_cc_needs_belf+set}" = set; then
4584  $as_echo_n "(cached) " >&6
4585else
4586  ac_ext=c
4587ac_cpp='$CPP $CPPFLAGS'
4588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590ac_compiler_gnu=$ac_cv_c_compiler_gnu
4591
4592     cat >conftest.$ac_ext <<_ACEOF
4593/* confdefs.h.  */
4594_ACEOF
4595cat confdefs.h >>conftest.$ac_ext
4596cat >>conftest.$ac_ext <<_ACEOF
4597/* end confdefs.h.  */
4598
4599int
4600main ()
4601{
4602
4603  ;
4604  return 0;
4605}
4606_ACEOF
4607rm -f conftest.$ac_objext conftest$ac_exeext
4608if { (ac_try="$ac_link"
4609case "(($ac_try" in
4610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611  *) ac_try_echo=$ac_try;;
4612esac
4613eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4614$as_echo "$ac_try_echo") >&5
4615  (eval "$ac_link") 2>conftest.er1
4616  ac_status=$?
4617  grep -v '^ *+' conftest.er1 >conftest.err
4618  rm -f conftest.er1
4619  cat conftest.err >&5
4620  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621  (exit $ac_status); } && {
4622	 test -z "$ac_c_werror_flag" ||
4623	 test ! -s conftest.err
4624       } && test -s conftest$ac_exeext && {
4625	 test "$cross_compiling" = yes ||
4626	 $as_test_x conftest$ac_exeext
4627       }; then
4628  lt_cv_cc_needs_belf=yes
4629else
4630  $as_echo "$as_me: failed program was:" >&5
4631sed 's/^/| /' conftest.$ac_ext >&5
4632
4633	lt_cv_cc_needs_belf=no
4634fi
4635
4636rm -rf conftest.dSYM
4637rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4638      conftest$ac_exeext conftest.$ac_ext
4639     ac_ext=c
4640ac_cpp='$CPP $CPPFLAGS'
4641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4643ac_compiler_gnu=$ac_cv_c_compiler_gnu
4644
4645fi
4646{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4647$as_echo "$lt_cv_cc_needs_belf" >&6; }
4648  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4649    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4650    CFLAGS="$SAVE_CFLAGS"
4651  fi
4652  ;;
4653sparc*-*solaris*)
4654  # Find out which ABI we are using.
4655  echo 'int i;' > conftest.$ac_ext
4656  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4657  (eval $ac_compile) 2>&5
4658  ac_status=$?
4659  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660  (exit $ac_status); }; then
4661    case `/usr/bin/file conftest.o` in
4662    *64-bit*)
4663      case $lt_cv_prog_gnu_ld in
4664      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4665      *)
4666        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4667	  LD="${LD-ld} -64"
4668	fi
4669	;;
4670      esac
4671      ;;
4672    esac
4673  fi
4674  rm -rf conftest*
4675  ;;
4676
4677
4678esac
4679
4680need_locks="$enable_libtool_lock"
4681
4682
4683ac_ext=c
4684ac_cpp='$CPP $CPPFLAGS'
4685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4687ac_compiler_gnu=$ac_cv_c_compiler_gnu
4688{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4689$as_echo_n "checking how to run the C preprocessor... " >&6; }
4690# On Suns, sometimes $CPP names a directory.
4691if test -n "$CPP" && test -d "$CPP"; then
4692  CPP=
4693fi
4694if test -z "$CPP"; then
4695  if test "${ac_cv_prog_CPP+set}" = set; then
4696  $as_echo_n "(cached) " >&6
4697else
4698      # Double quotes because CPP needs to be expanded
4699    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4700    do
4701      ac_preproc_ok=false
4702for ac_c_preproc_warn_flag in '' yes
4703do
4704  # Use a header file that comes with gcc, so configuring glibc
4705  # with a fresh cross-compiler works.
4706  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4707  # <limits.h> exists even on freestanding compilers.
4708  # On the NeXT, cc -E runs the code through the compiler's parser,
4709  # not just through cpp. "Syntax error" is here to catch this case.
4710  cat >conftest.$ac_ext <<_ACEOF
4711/* confdefs.h.  */
4712_ACEOF
4713cat confdefs.h >>conftest.$ac_ext
4714cat >>conftest.$ac_ext <<_ACEOF
4715/* end confdefs.h.  */
4716#ifdef __STDC__
4717# include <limits.h>
4718#else
4719# include <assert.h>
4720#endif
4721		     Syntax error
4722_ACEOF
4723if { (ac_try="$ac_cpp conftest.$ac_ext"
4724case "(($ac_try" in
4725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726  *) ac_try_echo=$ac_try;;
4727esac
4728eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4729$as_echo "$ac_try_echo") >&5
4730  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4731  ac_status=$?
4732  grep -v '^ *+' conftest.er1 >conftest.err
4733  rm -f conftest.er1
4734  cat conftest.err >&5
4735  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736  (exit $ac_status); } >/dev/null && {
4737	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4738	 test ! -s conftest.err
4739       }; then
4740  :
4741else
4742  $as_echo "$as_me: failed program was:" >&5
4743sed 's/^/| /' conftest.$ac_ext >&5
4744
4745  # Broken: fails on valid input.
4746continue
4747fi
4748
4749rm -f conftest.err conftest.$ac_ext
4750
4751  # OK, works on sane cases.  Now check whether nonexistent headers
4752  # can be detected and how.
4753  cat >conftest.$ac_ext <<_ACEOF
4754/* confdefs.h.  */
4755_ACEOF
4756cat confdefs.h >>conftest.$ac_ext
4757cat >>conftest.$ac_ext <<_ACEOF
4758/* end confdefs.h.  */
4759#include <ac_nonexistent.h>
4760_ACEOF
4761if { (ac_try="$ac_cpp conftest.$ac_ext"
4762case "(($ac_try" in
4763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764  *) ac_try_echo=$ac_try;;
4765esac
4766eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4767$as_echo "$ac_try_echo") >&5
4768  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4769  ac_status=$?
4770  grep -v '^ *+' conftest.er1 >conftest.err
4771  rm -f conftest.er1
4772  cat conftest.err >&5
4773  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774  (exit $ac_status); } >/dev/null && {
4775	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4776	 test ! -s conftest.err
4777       }; then
4778  # Broken: success on invalid input.
4779continue
4780else
4781  $as_echo "$as_me: failed program was:" >&5
4782sed 's/^/| /' conftest.$ac_ext >&5
4783
4784  # Passes both tests.
4785ac_preproc_ok=:
4786break
4787fi
4788
4789rm -f conftest.err conftest.$ac_ext
4790
4791done
4792# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4793rm -f conftest.err conftest.$ac_ext
4794if $ac_preproc_ok; then
4795  break
4796fi
4797
4798    done
4799    ac_cv_prog_CPP=$CPP
4800
4801fi
4802  CPP=$ac_cv_prog_CPP
4803else
4804  ac_cv_prog_CPP=$CPP
4805fi
4806{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4807$as_echo "$CPP" >&6; }
4808ac_preproc_ok=false
4809for ac_c_preproc_warn_flag in '' yes
4810do
4811  # Use a header file that comes with gcc, so configuring glibc
4812  # with a fresh cross-compiler works.
4813  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4814  # <limits.h> exists even on freestanding compilers.
4815  # On the NeXT, cc -E runs the code through the compiler's parser,
4816  # not just through cpp. "Syntax error" is here to catch this case.
4817  cat >conftest.$ac_ext <<_ACEOF
4818/* confdefs.h.  */
4819_ACEOF
4820cat confdefs.h >>conftest.$ac_ext
4821cat >>conftest.$ac_ext <<_ACEOF
4822/* end confdefs.h.  */
4823#ifdef __STDC__
4824# include <limits.h>
4825#else
4826# include <assert.h>
4827#endif
4828		     Syntax error
4829_ACEOF
4830if { (ac_try="$ac_cpp conftest.$ac_ext"
4831case "(($ac_try" in
4832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833  *) ac_try_echo=$ac_try;;
4834esac
4835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4836$as_echo "$ac_try_echo") >&5
4837  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4838  ac_status=$?
4839  grep -v '^ *+' conftest.er1 >conftest.err
4840  rm -f conftest.er1
4841  cat conftest.err >&5
4842  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843  (exit $ac_status); } >/dev/null && {
4844	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4845	 test ! -s conftest.err
4846       }; then
4847  :
4848else
4849  $as_echo "$as_me: failed program was:" >&5
4850sed 's/^/| /' conftest.$ac_ext >&5
4851
4852  # Broken: fails on valid input.
4853continue
4854fi
4855
4856rm -f conftest.err conftest.$ac_ext
4857
4858  # OK, works on sane cases.  Now check whether nonexistent headers
4859  # can be detected and how.
4860  cat >conftest.$ac_ext <<_ACEOF
4861/* confdefs.h.  */
4862_ACEOF
4863cat confdefs.h >>conftest.$ac_ext
4864cat >>conftest.$ac_ext <<_ACEOF
4865/* end confdefs.h.  */
4866#include <ac_nonexistent.h>
4867_ACEOF
4868if { (ac_try="$ac_cpp conftest.$ac_ext"
4869case "(($ac_try" in
4870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871  *) ac_try_echo=$ac_try;;
4872esac
4873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4874$as_echo "$ac_try_echo") >&5
4875  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4876  ac_status=$?
4877  grep -v '^ *+' conftest.er1 >conftest.err
4878  rm -f conftest.er1
4879  cat conftest.err >&5
4880  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881  (exit $ac_status); } >/dev/null && {
4882	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4883	 test ! -s conftest.err
4884       }; then
4885  # Broken: success on invalid input.
4886continue
4887else
4888  $as_echo "$as_me: failed program was:" >&5
4889sed 's/^/| /' conftest.$ac_ext >&5
4890
4891  # Passes both tests.
4892ac_preproc_ok=:
4893break
4894fi
4895
4896rm -f conftest.err conftest.$ac_ext
4897
4898done
4899# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4900rm -f conftest.err conftest.$ac_ext
4901if $ac_preproc_ok; then
4902  :
4903else
4904  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4906{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4907See \`config.log' for more details." >&5
4908$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4909See \`config.log' for more details." >&2;}
4910   { (exit 1); exit 1; }; }; }
4911fi
4912
4913ac_ext=c
4914ac_cpp='$CPP $CPPFLAGS'
4915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917ac_compiler_gnu=$ac_cv_c_compiler_gnu
4918
4919
4920{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4921$as_echo_n "checking for ANSI C header files... " >&6; }
4922if test "${ac_cv_header_stdc+set}" = set; then
4923  $as_echo_n "(cached) " >&6
4924else
4925  cat >conftest.$ac_ext <<_ACEOF
4926/* confdefs.h.  */
4927_ACEOF
4928cat confdefs.h >>conftest.$ac_ext
4929cat >>conftest.$ac_ext <<_ACEOF
4930/* end confdefs.h.  */
4931#include <stdlib.h>
4932#include <stdarg.h>
4933#include <string.h>
4934#include <float.h>
4935
4936int
4937main ()
4938{
4939
4940  ;
4941  return 0;
4942}
4943_ACEOF
4944rm -f conftest.$ac_objext
4945if { (ac_try="$ac_compile"
4946case "(($ac_try" in
4947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948  *) ac_try_echo=$ac_try;;
4949esac
4950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4951$as_echo "$ac_try_echo") >&5
4952  (eval "$ac_compile") 2>conftest.er1
4953  ac_status=$?
4954  grep -v '^ *+' conftest.er1 >conftest.err
4955  rm -f conftest.er1
4956  cat conftest.err >&5
4957  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958  (exit $ac_status); } && {
4959	 test -z "$ac_c_werror_flag" ||
4960	 test ! -s conftest.err
4961       } && test -s conftest.$ac_objext; then
4962  ac_cv_header_stdc=yes
4963else
4964  $as_echo "$as_me: failed program was:" >&5
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
4967	ac_cv_header_stdc=no
4968fi
4969
4970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971
4972if test $ac_cv_header_stdc = yes; then
4973  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4974  cat >conftest.$ac_ext <<_ACEOF
4975/* confdefs.h.  */
4976_ACEOF
4977cat confdefs.h >>conftest.$ac_ext
4978cat >>conftest.$ac_ext <<_ACEOF
4979/* end confdefs.h.  */
4980#include <string.h>
4981
4982_ACEOF
4983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4984  $EGREP "memchr" >/dev/null 2>&1; then
4985  :
4986else
4987  ac_cv_header_stdc=no
4988fi
4989rm -f conftest*
4990
4991fi
4992
4993if test $ac_cv_header_stdc = yes; then
4994  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4995  cat >conftest.$ac_ext <<_ACEOF
4996/* confdefs.h.  */
4997_ACEOF
4998cat confdefs.h >>conftest.$ac_ext
4999cat >>conftest.$ac_ext <<_ACEOF
5000/* end confdefs.h.  */
5001#include <stdlib.h>
5002
5003_ACEOF
5004if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5005  $EGREP "free" >/dev/null 2>&1; then
5006  :
5007else
5008  ac_cv_header_stdc=no
5009fi
5010rm -f conftest*
5011
5012fi
5013
5014if test $ac_cv_header_stdc = yes; then
5015  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5016  if test "$cross_compiling" = yes; then
5017  :
5018else
5019  cat >conftest.$ac_ext <<_ACEOF
5020/* confdefs.h.  */
5021_ACEOF
5022cat confdefs.h >>conftest.$ac_ext
5023cat >>conftest.$ac_ext <<_ACEOF
5024/* end confdefs.h.  */
5025#include <ctype.h>
5026#include <stdlib.h>
5027#if ((' ' & 0x0FF) == 0x020)
5028# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5029# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5030#else
5031# define ISLOWER(c) \
5032		   (('a' <= (c) && (c) <= 'i') \
5033		     || ('j' <= (c) && (c) <= 'r') \
5034		     || ('s' <= (c) && (c) <= 'z'))
5035# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5036#endif
5037
5038#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5039int
5040main ()
5041{
5042  int i;
5043  for (i = 0; i < 256; i++)
5044    if (XOR (islower (i), ISLOWER (i))
5045	|| toupper (i) != TOUPPER (i))
5046      return 2;
5047  return 0;
5048}
5049_ACEOF
5050rm -f conftest$ac_exeext
5051if { (ac_try="$ac_link"
5052case "(($ac_try" in
5053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054  *) ac_try_echo=$ac_try;;
5055esac
5056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5057$as_echo "$ac_try_echo") >&5
5058  (eval "$ac_link") 2>&5
5059  ac_status=$?
5060  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5062  { (case "(($ac_try" in
5063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5064  *) ac_try_echo=$ac_try;;
5065esac
5066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5067$as_echo "$ac_try_echo") >&5
5068  (eval "$ac_try") 2>&5
5069  ac_status=$?
5070  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071  (exit $ac_status); }; }; then
5072  :
5073else
5074  $as_echo "$as_me: program exited with status $ac_status" >&5
5075$as_echo "$as_me: failed program was:" >&5
5076sed 's/^/| /' conftest.$ac_ext >&5
5077
5078( exit $ac_status )
5079ac_cv_header_stdc=no
5080fi
5081rm -rf conftest.dSYM
5082rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5083fi
5084
5085
5086fi
5087fi
5088{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5089$as_echo "$ac_cv_header_stdc" >&6; }
5090if test $ac_cv_header_stdc = yes; then
5091
5092cat >>confdefs.h <<\_ACEOF
5093#define STDC_HEADERS 1
5094_ACEOF
5095
5096fi
5097
5098# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5109		  inttypes.h stdint.h unistd.h
5110do
5111as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5112{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5113$as_echo_n "checking for $ac_header... " >&6; }
5114if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5115  $as_echo_n "(cached) " >&6
5116else
5117  cat >conftest.$ac_ext <<_ACEOF
5118/* confdefs.h.  */
5119_ACEOF
5120cat confdefs.h >>conftest.$ac_ext
5121cat >>conftest.$ac_ext <<_ACEOF
5122/* end confdefs.h.  */
5123$ac_includes_default
5124
5125#include <$ac_header>
5126_ACEOF
5127rm -f conftest.$ac_objext
5128if { (ac_try="$ac_compile"
5129case "(($ac_try" in
5130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131  *) ac_try_echo=$ac_try;;
5132esac
5133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5134$as_echo "$ac_try_echo") >&5
5135  (eval "$ac_compile") 2>conftest.er1
5136  ac_status=$?
5137  grep -v '^ *+' conftest.er1 >conftest.err
5138  rm -f conftest.er1
5139  cat conftest.err >&5
5140  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141  (exit $ac_status); } && {
5142	 test -z "$ac_c_werror_flag" ||
5143	 test ! -s conftest.err
5144       } && test -s conftest.$ac_objext; then
5145  eval "$as_ac_Header=yes"
5146else
5147  $as_echo "$as_me: failed program was:" >&5
5148sed 's/^/| /' conftest.$ac_ext >&5
5149
5150	eval "$as_ac_Header=no"
5151fi
5152
5153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5154fi
5155ac_res=`eval 'as_val=${'$as_ac_Header'}
5156		 $as_echo "$as_val"'`
5157	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5158$as_echo "$ac_res" >&6; }
5159as_val=`eval 'as_val=${'$as_ac_Header'}
5160		 $as_echo "$as_val"'`
5161   if test "x$as_val" = x""yes; then
5162  cat >>confdefs.h <<_ACEOF
5163#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5164_ACEOF
5165
5166fi
5167
5168done
5169
5170
5171
5172for ac_header in dlfcn.h
5173do
5174as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5175if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5176  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5177$as_echo_n "checking for $ac_header... " >&6; }
5178if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5179  $as_echo_n "(cached) " >&6
5180fi
5181ac_res=`eval 'as_val=${'$as_ac_Header'}
5182		 $as_echo "$as_val"'`
5183	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5184$as_echo "$ac_res" >&6; }
5185else
5186  # Is the header compilable?
5187{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5188$as_echo_n "checking $ac_header usability... " >&6; }
5189cat >conftest.$ac_ext <<_ACEOF
5190/* confdefs.h.  */
5191_ACEOF
5192cat confdefs.h >>conftest.$ac_ext
5193cat >>conftest.$ac_ext <<_ACEOF
5194/* end confdefs.h.  */
5195$ac_includes_default
5196#include <$ac_header>
5197_ACEOF
5198rm -f conftest.$ac_objext
5199if { (ac_try="$ac_compile"
5200case "(($ac_try" in
5201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202  *) ac_try_echo=$ac_try;;
5203esac
5204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5205$as_echo "$ac_try_echo") >&5
5206  (eval "$ac_compile") 2>conftest.er1
5207  ac_status=$?
5208  grep -v '^ *+' conftest.er1 >conftest.err
5209  rm -f conftest.er1
5210  cat conftest.err >&5
5211  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212  (exit $ac_status); } && {
5213	 test -z "$ac_c_werror_flag" ||
5214	 test ! -s conftest.err
5215       } && test -s conftest.$ac_objext; then
5216  ac_header_compiler=yes
5217else
5218  $as_echo "$as_me: failed program was:" >&5
5219sed 's/^/| /' conftest.$ac_ext >&5
5220
5221	ac_header_compiler=no
5222fi
5223
5224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5226$as_echo "$ac_header_compiler" >&6; }
5227
5228# Is the header present?
5229{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5230$as_echo_n "checking $ac_header presence... " >&6; }
5231cat >conftest.$ac_ext <<_ACEOF
5232/* confdefs.h.  */
5233_ACEOF
5234cat confdefs.h >>conftest.$ac_ext
5235cat >>conftest.$ac_ext <<_ACEOF
5236/* end confdefs.h.  */
5237#include <$ac_header>
5238_ACEOF
5239if { (ac_try="$ac_cpp conftest.$ac_ext"
5240case "(($ac_try" in
5241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242  *) ac_try_echo=$ac_try;;
5243esac
5244eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5245$as_echo "$ac_try_echo") >&5
5246  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5247  ac_status=$?
5248  grep -v '^ *+' conftest.er1 >conftest.err
5249  rm -f conftest.er1
5250  cat conftest.err >&5
5251  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252  (exit $ac_status); } >/dev/null && {
5253	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5254	 test ! -s conftest.err
5255       }; then
5256  ac_header_preproc=yes
5257else
5258  $as_echo "$as_me: failed program was:" >&5
5259sed 's/^/| /' conftest.$ac_ext >&5
5260
5261  ac_header_preproc=no
5262fi
5263
5264rm -f conftest.err conftest.$ac_ext
5265{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5266$as_echo "$ac_header_preproc" >&6; }
5267
5268# So?  What about this header?
5269case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5270  yes:no: )
5271    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5272$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5273    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5274$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5275    ac_header_preproc=yes
5276    ;;
5277  no:yes:* )
5278    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5279$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5280    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5281$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5282    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5283$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5284    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5285$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5286    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5287$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5288    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5289$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5290    ( cat <<\_ASBOX
5291## ---------------------------------------------------------------------- ##
5292## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5293## ---------------------------------------------------------------------- ##
5294_ASBOX
5295     ) | sed "s/^/$as_me: WARNING:     /" >&2
5296    ;;
5297esac
5298{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5299$as_echo_n "checking for $ac_header... " >&6; }
5300if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5301  $as_echo_n "(cached) " >&6
5302else
5303  eval "$as_ac_Header=\$ac_header_preproc"
5304fi
5305ac_res=`eval 'as_val=${'$as_ac_Header'}
5306		 $as_echo "$as_val"'`
5307	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5308$as_echo "$ac_res" >&6; }
5309
5310fi
5311as_val=`eval 'as_val=${'$as_ac_Header'}
5312		 $as_echo "$as_val"'`
5313   if test "x$as_val" = x""yes; then
5314  cat >>confdefs.h <<_ACEOF
5315#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5316_ACEOF
5317
5318fi
5319
5320done
5321
5322ac_ext=cpp
5323ac_cpp='$CXXCPP $CPPFLAGS'
5324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5327if test -z "$CXX"; then
5328  if test -n "$CCC"; then
5329    CXX=$CCC
5330  else
5331    if test -n "$ac_tool_prefix"; then
5332  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5333  do
5334    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5335set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5336{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5337$as_echo_n "checking for $ac_word... " >&6; }
5338if test "${ac_cv_prog_CXX+set}" = set; then
5339  $as_echo_n "(cached) " >&6
5340else
5341  if test -n "$CXX"; then
5342  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5343else
5344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345for as_dir in $PATH
5346do
5347  IFS=$as_save_IFS
5348  test -z "$as_dir" && as_dir=.
5349  for ac_exec_ext in '' $ac_executable_extensions; do
5350  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5351    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5352    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5353    break 2
5354  fi
5355done
5356done
5357IFS=$as_save_IFS
5358
5359fi
5360fi
5361CXX=$ac_cv_prog_CXX
5362if test -n "$CXX"; then
5363  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5364$as_echo "$CXX" >&6; }
5365else
5366  { $as_echo "$as_me:$LINENO: result: no" >&5
5367$as_echo "no" >&6; }
5368fi
5369
5370
5371    test -n "$CXX" && break
5372  done
5373fi
5374if test -z "$CXX"; then
5375  ac_ct_CXX=$CXX
5376  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5377do
5378  # Extract the first word of "$ac_prog", so it can be a program name with args.
5379set dummy $ac_prog; ac_word=$2
5380{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5381$as_echo_n "checking for $ac_word... " >&6; }
5382if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5383  $as_echo_n "(cached) " >&6
5384else
5385  if test -n "$ac_ct_CXX"; then
5386  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5387else
5388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389for as_dir in $PATH
5390do
5391  IFS=$as_save_IFS
5392  test -z "$as_dir" && as_dir=.
5393  for ac_exec_ext in '' $ac_executable_extensions; do
5394  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5395    ac_cv_prog_ac_ct_CXX="$ac_prog"
5396    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5397    break 2
5398  fi
5399done
5400done
5401IFS=$as_save_IFS
5402
5403fi
5404fi
5405ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5406if test -n "$ac_ct_CXX"; then
5407  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5408$as_echo "$ac_ct_CXX" >&6; }
5409else
5410  { $as_echo "$as_me:$LINENO: result: no" >&5
5411$as_echo "no" >&6; }
5412fi
5413
5414
5415  test -n "$ac_ct_CXX" && break
5416done
5417
5418  if test "x$ac_ct_CXX" = x; then
5419    CXX="g++"
5420  else
5421    case $cross_compiling:$ac_tool_warned in
5422yes:)
5423{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5425ac_tool_warned=yes ;;
5426esac
5427    CXX=$ac_ct_CXX
5428  fi
5429fi
5430
5431  fi
5432fi
5433# Provide some information about the compiler.
5434$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5435set X $ac_compile
5436ac_compiler=$2
5437{ (ac_try="$ac_compiler --version >&5"
5438case "(($ac_try" in
5439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440  *) ac_try_echo=$ac_try;;
5441esac
5442eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5443$as_echo "$ac_try_echo") >&5
5444  (eval "$ac_compiler --version >&5") 2>&5
5445  ac_status=$?
5446  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447  (exit $ac_status); }
5448{ (ac_try="$ac_compiler -v >&5"
5449case "(($ac_try" in
5450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451  *) ac_try_echo=$ac_try;;
5452esac
5453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5454$as_echo "$ac_try_echo") >&5
5455  (eval "$ac_compiler -v >&5") 2>&5
5456  ac_status=$?
5457  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458  (exit $ac_status); }
5459{ (ac_try="$ac_compiler -V >&5"
5460case "(($ac_try" in
5461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462  *) ac_try_echo=$ac_try;;
5463esac
5464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5465$as_echo "$ac_try_echo") >&5
5466  (eval "$ac_compiler -V >&5") 2>&5
5467  ac_status=$?
5468  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469  (exit $ac_status); }
5470
5471{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5472$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5473if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5474  $as_echo_n "(cached) " >&6
5475else
5476  cat >conftest.$ac_ext <<_ACEOF
5477/* confdefs.h.  */
5478_ACEOF
5479cat confdefs.h >>conftest.$ac_ext
5480cat >>conftest.$ac_ext <<_ACEOF
5481/* end confdefs.h.  */
5482
5483int
5484main ()
5485{
5486#ifndef __GNUC__
5487       choke me
5488#endif
5489
5490  ;
5491  return 0;
5492}
5493_ACEOF
5494rm -f conftest.$ac_objext
5495if { (ac_try="$ac_compile"
5496case "(($ac_try" in
5497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498  *) ac_try_echo=$ac_try;;
5499esac
5500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5501$as_echo "$ac_try_echo") >&5
5502  (eval "$ac_compile") 2>conftest.er1
5503  ac_status=$?
5504  grep -v '^ *+' conftest.er1 >conftest.err
5505  rm -f conftest.er1
5506  cat conftest.err >&5
5507  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508  (exit $ac_status); } && {
5509	 test -z "$ac_cxx_werror_flag" ||
5510	 test ! -s conftest.err
5511       } && test -s conftest.$ac_objext; then
5512  ac_compiler_gnu=yes
5513else
5514  $as_echo "$as_me: failed program was:" >&5
5515sed 's/^/| /' conftest.$ac_ext >&5
5516
5517	ac_compiler_gnu=no
5518fi
5519
5520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5522
5523fi
5524{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5525$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5526if test $ac_compiler_gnu = yes; then
5527  GXX=yes
5528else
5529  GXX=
5530fi
5531ac_test_CXXFLAGS=${CXXFLAGS+set}
5532ac_save_CXXFLAGS=$CXXFLAGS
5533{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5534$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5535if test "${ac_cv_prog_cxx_g+set}" = set; then
5536  $as_echo_n "(cached) " >&6
5537else
5538  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5539   ac_cxx_werror_flag=yes
5540   ac_cv_prog_cxx_g=no
5541   CXXFLAGS="-g"
5542   cat >conftest.$ac_ext <<_ACEOF
5543/* confdefs.h.  */
5544_ACEOF
5545cat confdefs.h >>conftest.$ac_ext
5546cat >>conftest.$ac_ext <<_ACEOF
5547/* end confdefs.h.  */
5548
5549int
5550main ()
5551{
5552
5553  ;
5554  return 0;
5555}
5556_ACEOF
5557rm -f conftest.$ac_objext
5558if { (ac_try="$ac_compile"
5559case "(($ac_try" in
5560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561  *) ac_try_echo=$ac_try;;
5562esac
5563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5564$as_echo "$ac_try_echo") >&5
5565  (eval "$ac_compile") 2>conftest.er1
5566  ac_status=$?
5567  grep -v '^ *+' conftest.er1 >conftest.err
5568  rm -f conftest.er1
5569  cat conftest.err >&5
5570  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571  (exit $ac_status); } && {
5572	 test -z "$ac_cxx_werror_flag" ||
5573	 test ! -s conftest.err
5574       } && test -s conftest.$ac_objext; then
5575  ac_cv_prog_cxx_g=yes
5576else
5577  $as_echo "$as_me: failed program was:" >&5
5578sed 's/^/| /' conftest.$ac_ext >&5
5579
5580	CXXFLAGS=""
5581      cat >conftest.$ac_ext <<_ACEOF
5582/* confdefs.h.  */
5583_ACEOF
5584cat confdefs.h >>conftest.$ac_ext
5585cat >>conftest.$ac_ext <<_ACEOF
5586/* end confdefs.h.  */
5587
5588int
5589main ()
5590{
5591
5592  ;
5593  return 0;
5594}
5595_ACEOF
5596rm -f conftest.$ac_objext
5597if { (ac_try="$ac_compile"
5598case "(($ac_try" in
5599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600  *) ac_try_echo=$ac_try;;
5601esac
5602eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5603$as_echo "$ac_try_echo") >&5
5604  (eval "$ac_compile") 2>conftest.er1
5605  ac_status=$?
5606  grep -v '^ *+' conftest.er1 >conftest.err
5607  rm -f conftest.er1
5608  cat conftest.err >&5
5609  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610  (exit $ac_status); } && {
5611	 test -z "$ac_cxx_werror_flag" ||
5612	 test ! -s conftest.err
5613       } && test -s conftest.$ac_objext; then
5614  :
5615else
5616  $as_echo "$as_me: failed program was:" >&5
5617sed 's/^/| /' conftest.$ac_ext >&5
5618
5619	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5620	 CXXFLAGS="-g"
5621	 cat >conftest.$ac_ext <<_ACEOF
5622/* confdefs.h.  */
5623_ACEOF
5624cat confdefs.h >>conftest.$ac_ext
5625cat >>conftest.$ac_ext <<_ACEOF
5626/* end confdefs.h.  */
5627
5628int
5629main ()
5630{
5631
5632  ;
5633  return 0;
5634}
5635_ACEOF
5636rm -f conftest.$ac_objext
5637if { (ac_try="$ac_compile"
5638case "(($ac_try" in
5639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5640  *) ac_try_echo=$ac_try;;
5641esac
5642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5643$as_echo "$ac_try_echo") >&5
5644  (eval "$ac_compile") 2>conftest.er1
5645  ac_status=$?
5646  grep -v '^ *+' conftest.er1 >conftest.err
5647  rm -f conftest.er1
5648  cat conftest.err >&5
5649  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650  (exit $ac_status); } && {
5651	 test -z "$ac_cxx_werror_flag" ||
5652	 test ! -s conftest.err
5653       } && test -s conftest.$ac_objext; then
5654  ac_cv_prog_cxx_g=yes
5655else
5656  $as_echo "$as_me: failed program was:" >&5
5657sed 's/^/| /' conftest.$ac_ext >&5
5658
5659
5660fi
5661
5662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663fi
5664
5665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5666fi
5667
5668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5670fi
5671{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5672$as_echo "$ac_cv_prog_cxx_g" >&6; }
5673if test "$ac_test_CXXFLAGS" = set; then
5674  CXXFLAGS=$ac_save_CXXFLAGS
5675elif test $ac_cv_prog_cxx_g = yes; then
5676  if test "$GXX" = yes; then
5677    CXXFLAGS="-g -O2"
5678  else
5679    CXXFLAGS="-g"
5680  fi
5681else
5682  if test "$GXX" = yes; then
5683    CXXFLAGS="-O2"
5684  else
5685    CXXFLAGS=
5686  fi
5687fi
5688ac_ext=cpp
5689ac_cpp='$CXXCPP $CPPFLAGS'
5690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5693
5694depcc="$CXX"  am_compiler_list=
5695
5696{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5697$as_echo_n "checking dependency style of $depcc... " >&6; }
5698if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5699  $as_echo_n "(cached) " >&6
5700else
5701  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5702  # We make a subdir and do the tests there.  Otherwise we can end up
5703  # making bogus files that we don't know about and never remove.  For
5704  # instance it was reported that on HP-UX the gcc test will end up
5705  # making a dummy file named `D' -- because `-MD' means `put the output
5706  # in D'.
5707  mkdir conftest.dir
5708  # Copy depcomp to subdir because otherwise we won't find it if we're
5709  # using a relative directory.
5710  cp "$am_depcomp" conftest.dir
5711  cd conftest.dir
5712  # We will build objects and dependencies in a subdirectory because
5713  # it helps to detect inapplicable dependency modes.  For instance
5714  # both Tru64's cc and ICC support -MD to output dependencies as a
5715  # side effect of compilation, but ICC will put the dependencies in
5716  # the current directory while Tru64 will put them in the object
5717  # directory.
5718  mkdir sub
5719
5720  am_cv_CXX_dependencies_compiler_type=none
5721  if test "$am_compiler_list" = ""; then
5722     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5723  fi
5724  for depmode in $am_compiler_list; do
5725    # Setup a source with many dependencies, because some compilers
5726    # like to wrap large dependency lists on column 80 (with \), and
5727    # we should not choose a depcomp mode which is confused by this.
5728    #
5729    # We need to recreate these files for each test, as the compiler may
5730    # overwrite some of them when testing with obscure command lines.
5731    # This happens at least with the AIX C compiler.
5732    : > sub/conftest.c
5733    for i in 1 2 3 4 5 6; do
5734      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5735      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5736      # Solaris 8's {/usr,}/bin/sh.
5737      touch sub/conftst$i.h
5738    done
5739    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5740
5741    case $depmode in
5742    nosideeffect)
5743      # after this tag, mechanisms are not by side-effect, so they'll
5744      # only be used when explicitly requested
5745      if test "x$enable_dependency_tracking" = xyes; then
5746	continue
5747      else
5748	break
5749      fi
5750      ;;
5751    none) break ;;
5752    esac
5753    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5754    # mode.  It turns out that the SunPro C++ compiler does not properly
5755    # handle `-M -o', and we need to detect this.
5756    if depmode=$depmode \
5757       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5758       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5759       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5760         >/dev/null 2>conftest.err &&
5761       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5762       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5763       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5764       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5765      # icc doesn't choke on unknown options, it will just issue warnings
5766      # or remarks (even with -Werror).  So we grep stderr for any message
5767      # that says an option was ignored or not supported.
5768      # When given -MP, icc 7.0 and 7.1 complain thusly:
5769      #   icc: Command line warning: ignoring option '-M'; no argument required
5770      # The diagnosis changed in icc 8.0:
5771      #   icc: Command line remark: option '-MP' not supported
5772      if (grep 'ignoring option' conftest.err ||
5773          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5774        am_cv_CXX_dependencies_compiler_type=$depmode
5775        break
5776      fi
5777    fi
5778  done
5779
5780  cd ..
5781  rm -rf conftest.dir
5782else
5783  am_cv_CXX_dependencies_compiler_type=none
5784fi
5785
5786fi
5787{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5788$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5789CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5790
5791 if
5792  test "x$enable_dependency_tracking" != xno \
5793  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5794  am__fastdepCXX_TRUE=
5795  am__fastdepCXX_FALSE='#'
5796else
5797  am__fastdepCXX_TRUE='#'
5798  am__fastdepCXX_FALSE=
5799fi
5800
5801
5802
5803
5804if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5805    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5806    (test "X$CXX" != "Xg++"))) ; then
5807  ac_ext=cpp
5808ac_cpp='$CXXCPP $CPPFLAGS'
5809ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5810ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5811ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5812{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5813$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5814if test -z "$CXXCPP"; then
5815  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5816  $as_echo_n "(cached) " >&6
5817else
5818      # Double quotes because CXXCPP needs to be expanded
5819    for CXXCPP in "$CXX -E" "/lib/cpp"
5820    do
5821      ac_preproc_ok=false
5822for ac_cxx_preproc_warn_flag in '' yes
5823do
5824  # Use a header file that comes with gcc, so configuring glibc
5825  # with a fresh cross-compiler works.
5826  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5827  # <limits.h> exists even on freestanding compilers.
5828  # On the NeXT, cc -E runs the code through the compiler's parser,
5829  # not just through cpp. "Syntax error" is here to catch this case.
5830  cat >conftest.$ac_ext <<_ACEOF
5831/* confdefs.h.  */
5832_ACEOF
5833cat confdefs.h >>conftest.$ac_ext
5834cat >>conftest.$ac_ext <<_ACEOF
5835/* end confdefs.h.  */
5836#ifdef __STDC__
5837# include <limits.h>
5838#else
5839# include <assert.h>
5840#endif
5841		     Syntax error
5842_ACEOF
5843if { (ac_try="$ac_cpp conftest.$ac_ext"
5844case "(($ac_try" in
5845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846  *) ac_try_echo=$ac_try;;
5847esac
5848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5849$as_echo "$ac_try_echo") >&5
5850  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5851  ac_status=$?
5852  grep -v '^ *+' conftest.er1 >conftest.err
5853  rm -f conftest.er1
5854  cat conftest.err >&5
5855  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856  (exit $ac_status); } >/dev/null && {
5857	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5858	 test ! -s conftest.err
5859       }; then
5860  :
5861else
5862  $as_echo "$as_me: failed program was:" >&5
5863sed 's/^/| /' conftest.$ac_ext >&5
5864
5865  # Broken: fails on valid input.
5866continue
5867fi
5868
5869rm -f conftest.err conftest.$ac_ext
5870
5871  # OK, works on sane cases.  Now check whether nonexistent headers
5872  # can be detected and how.
5873  cat >conftest.$ac_ext <<_ACEOF
5874/* confdefs.h.  */
5875_ACEOF
5876cat confdefs.h >>conftest.$ac_ext
5877cat >>conftest.$ac_ext <<_ACEOF
5878/* end confdefs.h.  */
5879#include <ac_nonexistent.h>
5880_ACEOF
5881if { (ac_try="$ac_cpp conftest.$ac_ext"
5882case "(($ac_try" in
5883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5884  *) ac_try_echo=$ac_try;;
5885esac
5886eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5887$as_echo "$ac_try_echo") >&5
5888  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5889  ac_status=$?
5890  grep -v '^ *+' conftest.er1 >conftest.err
5891  rm -f conftest.er1
5892  cat conftest.err >&5
5893  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894  (exit $ac_status); } >/dev/null && {
5895	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5896	 test ! -s conftest.err
5897       }; then
5898  # Broken: success on invalid input.
5899continue
5900else
5901  $as_echo "$as_me: failed program was:" >&5
5902sed 's/^/| /' conftest.$ac_ext >&5
5903
5904  # Passes both tests.
5905ac_preproc_ok=:
5906break
5907fi
5908
5909rm -f conftest.err conftest.$ac_ext
5910
5911done
5912# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5913rm -f conftest.err conftest.$ac_ext
5914if $ac_preproc_ok; then
5915  break
5916fi
5917
5918    done
5919    ac_cv_prog_CXXCPP=$CXXCPP
5920
5921fi
5922  CXXCPP=$ac_cv_prog_CXXCPP
5923else
5924  ac_cv_prog_CXXCPP=$CXXCPP
5925fi
5926{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5927$as_echo "$CXXCPP" >&6; }
5928ac_preproc_ok=false
5929for ac_cxx_preproc_warn_flag in '' yes
5930do
5931  # Use a header file that comes with gcc, so configuring glibc
5932  # with a fresh cross-compiler works.
5933  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5934  # <limits.h> exists even on freestanding compilers.
5935  # On the NeXT, cc -E runs the code through the compiler's parser,
5936  # not just through cpp. "Syntax error" is here to catch this case.
5937  cat >conftest.$ac_ext <<_ACEOF
5938/* confdefs.h.  */
5939_ACEOF
5940cat confdefs.h >>conftest.$ac_ext
5941cat >>conftest.$ac_ext <<_ACEOF
5942/* end confdefs.h.  */
5943#ifdef __STDC__
5944# include <limits.h>
5945#else
5946# include <assert.h>
5947#endif
5948		     Syntax error
5949_ACEOF
5950if { (ac_try="$ac_cpp conftest.$ac_ext"
5951case "(($ac_try" in
5952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953  *) ac_try_echo=$ac_try;;
5954esac
5955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5956$as_echo "$ac_try_echo") >&5
5957  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5958  ac_status=$?
5959  grep -v '^ *+' conftest.er1 >conftest.err
5960  rm -f conftest.er1
5961  cat conftest.err >&5
5962  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963  (exit $ac_status); } >/dev/null && {
5964	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5965	 test ! -s conftest.err
5966       }; then
5967  :
5968else
5969  $as_echo "$as_me: failed program was:" >&5
5970sed 's/^/| /' conftest.$ac_ext >&5
5971
5972  # Broken: fails on valid input.
5973continue
5974fi
5975
5976rm -f conftest.err conftest.$ac_ext
5977
5978  # OK, works on sane cases.  Now check whether nonexistent headers
5979  # can be detected and how.
5980  cat >conftest.$ac_ext <<_ACEOF
5981/* confdefs.h.  */
5982_ACEOF
5983cat confdefs.h >>conftest.$ac_ext
5984cat >>conftest.$ac_ext <<_ACEOF
5985/* end confdefs.h.  */
5986#include <ac_nonexistent.h>
5987_ACEOF
5988if { (ac_try="$ac_cpp conftest.$ac_ext"
5989case "(($ac_try" in
5990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991  *) ac_try_echo=$ac_try;;
5992esac
5993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5994$as_echo "$ac_try_echo") >&5
5995  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5996  ac_status=$?
5997  grep -v '^ *+' conftest.er1 >conftest.err
5998  rm -f conftest.er1
5999  cat conftest.err >&5
6000  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001  (exit $ac_status); } >/dev/null && {
6002	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6003	 test ! -s conftest.err
6004       }; then
6005  # Broken: success on invalid input.
6006continue
6007else
6008  $as_echo "$as_me: failed program was:" >&5
6009sed 's/^/| /' conftest.$ac_ext >&5
6010
6011  # Passes both tests.
6012ac_preproc_ok=:
6013break
6014fi
6015
6016rm -f conftest.err conftest.$ac_ext
6017
6018done
6019# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6020rm -f conftest.err conftest.$ac_ext
6021if $ac_preproc_ok; then
6022  :
6023else
6024  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6026{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6027See \`config.log' for more details." >&5
6028$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6029See \`config.log' for more details." >&2;}
6030   { (exit 1); exit 1; }; }; }
6031fi
6032
6033ac_ext=cpp
6034ac_cpp='$CXXCPP $CPPFLAGS'
6035ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6036ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6037ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6038
6039fi
6040
6041
6042ac_ext=f
6043ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6044ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6045ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6046if test -n "$ac_tool_prefix"; then
6047  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
6048  do
6049    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6050set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6051{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6052$as_echo_n "checking for $ac_word... " >&6; }
6053if test "${ac_cv_prog_F77+set}" = set; then
6054  $as_echo_n "(cached) " >&6
6055else
6056  if test -n "$F77"; then
6057  ac_cv_prog_F77="$F77" # Let the user override the test.
6058else
6059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060for as_dir in $PATH
6061do
6062  IFS=$as_save_IFS
6063  test -z "$as_dir" && as_dir=.
6064  for ac_exec_ext in '' $ac_executable_extensions; do
6065  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6066    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6067    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6068    break 2
6069  fi
6070done
6071done
6072IFS=$as_save_IFS
6073
6074fi
6075fi
6076F77=$ac_cv_prog_F77
6077if test -n "$F77"; then
6078  { $as_echo "$as_me:$LINENO: result: $F77" >&5
6079$as_echo "$F77" >&6; }
6080else
6081  { $as_echo "$as_me:$LINENO: result: no" >&5
6082$as_echo "no" >&6; }
6083fi
6084
6085
6086    test -n "$F77" && break
6087  done
6088fi
6089if test -z "$F77"; then
6090  ac_ct_F77=$F77
6091  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
6092do
6093  # Extract the first word of "$ac_prog", so it can be a program name with args.
6094set dummy $ac_prog; ac_word=$2
6095{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6096$as_echo_n "checking for $ac_word... " >&6; }
6097if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6098  $as_echo_n "(cached) " >&6
6099else
6100  if test -n "$ac_ct_F77"; then
6101  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6102else
6103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104for as_dir in $PATH
6105do
6106  IFS=$as_save_IFS
6107  test -z "$as_dir" && as_dir=.
6108  for ac_exec_ext in '' $ac_executable_extensions; do
6109  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6110    ac_cv_prog_ac_ct_F77="$ac_prog"
6111    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112    break 2
6113  fi
6114done
6115done
6116IFS=$as_save_IFS
6117
6118fi
6119fi
6120ac_ct_F77=$ac_cv_prog_ac_ct_F77
6121if test -n "$ac_ct_F77"; then
6122  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6123$as_echo "$ac_ct_F77" >&6; }
6124else
6125  { $as_echo "$as_me:$LINENO: result: no" >&5
6126$as_echo "no" >&6; }
6127fi
6128
6129
6130  test -n "$ac_ct_F77" && break
6131done
6132
6133  if test "x$ac_ct_F77" = x; then
6134    F77=""
6135  else
6136    case $cross_compiling:$ac_tool_warned in
6137yes:)
6138{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6139$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6140ac_tool_warned=yes ;;
6141esac
6142    F77=$ac_ct_F77
6143  fi
6144fi
6145
6146
6147# Provide some information about the compiler.
6148$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6149set X $ac_compile
6150ac_compiler=$2
6151{ (ac_try="$ac_compiler --version >&5"
6152case "(($ac_try" in
6153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154  *) ac_try_echo=$ac_try;;
6155esac
6156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6157$as_echo "$ac_try_echo") >&5
6158  (eval "$ac_compiler --version >&5") 2>&5
6159  ac_status=$?
6160  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161  (exit $ac_status); }
6162{ (ac_try="$ac_compiler -v >&5"
6163case "(($ac_try" in
6164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165  *) ac_try_echo=$ac_try;;
6166esac
6167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6168$as_echo "$ac_try_echo") >&5
6169  (eval "$ac_compiler -v >&5") 2>&5
6170  ac_status=$?
6171  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172  (exit $ac_status); }
6173{ (ac_try="$ac_compiler -V >&5"
6174case "(($ac_try" in
6175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176  *) ac_try_echo=$ac_try;;
6177esac
6178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6179$as_echo "$ac_try_echo") >&5
6180  (eval "$ac_compiler -V >&5") 2>&5
6181  ac_status=$?
6182  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183  (exit $ac_status); }
6184rm -f a.out
6185
6186# If we don't use `.F' as extension, the preprocessor is not run on the
6187# input file.  (Note that this only needs to work for GNU compilers.)
6188ac_save_ext=$ac_ext
6189ac_ext=F
6190{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6191$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6192if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6193  $as_echo_n "(cached) " >&6
6194else
6195  cat >conftest.$ac_ext <<_ACEOF
6196      program main
6197#ifndef __GNUC__
6198       choke me
6199#endif
6200
6201      end
6202_ACEOF
6203rm -f conftest.$ac_objext
6204if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
6212  ac_status=$?
6213  grep -v '^ *+' conftest.er1 >conftest.err
6214  rm -f conftest.er1
6215  cat conftest.err >&5
6216  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217  (exit $ac_status); } && {
6218	 test -z "$ac_f77_werror_flag" ||
6219	 test ! -s conftest.err
6220       } && test -s conftest.$ac_objext; then
6221  ac_compiler_gnu=yes
6222else
6223  $as_echo "$as_me: failed program was:" >&5
6224sed 's/^/| /' conftest.$ac_ext >&5
6225
6226	ac_compiler_gnu=no
6227fi
6228
6229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6231
6232fi
6233{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6234$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6235ac_ext=$ac_save_ext
6236ac_test_FFLAGS=${FFLAGS+set}
6237ac_save_FFLAGS=$FFLAGS
6238FFLAGS=
6239{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6240$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6241if test "${ac_cv_prog_f77_g+set}" = set; then
6242  $as_echo_n "(cached) " >&6
6243else
6244  FFLAGS=-g
6245cat >conftest.$ac_ext <<_ACEOF
6246      program main
6247
6248      end
6249_ACEOF
6250rm -f conftest.$ac_objext
6251if { (ac_try="$ac_compile"
6252case "(($ac_try" in
6253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254  *) ac_try_echo=$ac_try;;
6255esac
6256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6257$as_echo "$ac_try_echo") >&5
6258  (eval "$ac_compile") 2>conftest.er1
6259  ac_status=$?
6260  grep -v '^ *+' conftest.er1 >conftest.err
6261  rm -f conftest.er1
6262  cat conftest.err >&5
6263  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264  (exit $ac_status); } && {
6265	 test -z "$ac_f77_werror_flag" ||
6266	 test ! -s conftest.err
6267       } && test -s conftest.$ac_objext; then
6268  ac_cv_prog_f77_g=yes
6269else
6270  $as_echo "$as_me: failed program was:" >&5
6271sed 's/^/| /' conftest.$ac_ext >&5
6272
6273	ac_cv_prog_f77_g=no
6274fi
6275
6276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6277
6278fi
6279{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6280$as_echo "$ac_cv_prog_f77_g" >&6; }
6281if test "$ac_test_FFLAGS" = set; then
6282  FFLAGS=$ac_save_FFLAGS
6283elif test $ac_cv_prog_f77_g = yes; then
6284  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6285    FFLAGS="-g -O2"
6286  else
6287    FFLAGS="-g"
6288  fi
6289else
6290  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6291    FFLAGS="-O2"
6292  else
6293    FFLAGS=
6294  fi
6295fi
6296
6297if test $ac_compiler_gnu = yes; then
6298  G77=yes
6299else
6300  G77=
6301fi
6302ac_ext=c
6303ac_cpp='$CPP $CPPFLAGS'
6304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6306ac_compiler_gnu=$ac_cv_c_compiler_gnu
6307
6308
6309
6310# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6311# find the maximum length of command line arguments
6312{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6313$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6314if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6315  $as_echo_n "(cached) " >&6
6316else
6317    i=0
6318  teststring="ABCD"
6319
6320  case $build_os in
6321  msdosdjgpp*)
6322    # On DJGPP, this test can blow up pretty badly due to problems in libc
6323    # (any single argument exceeding 2000 bytes causes a buffer overrun
6324    # during glob expansion).  Even if it were fixed, the result of this
6325    # check would be larger than it should be.
6326    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6327    ;;
6328
6329  gnu*)
6330    # Under GNU Hurd, this test is not required because there is
6331    # no limit to the length of command line arguments.
6332    # Libtool will interpret -1 as no limit whatsoever
6333    lt_cv_sys_max_cmd_len=-1;
6334    ;;
6335
6336  cygwin* | mingw*)
6337    # On Win9x/ME, this test blows up -- it succeeds, but takes
6338    # about 5 minutes as the teststring grows exponentially.
6339    # Worse, since 9x/ME are not pre-emptively multitasking,
6340    # you end up with a "frozen" computer, even though with patience
6341    # the test eventually succeeds (with a max line length of 256k).
6342    # Instead, let's just punt: use the minimum linelength reported by
6343    # all of the supported platforms: 8192 (on NT/2K/XP).
6344    lt_cv_sys_max_cmd_len=8192;
6345    ;;
6346
6347  amigaos*)
6348    # On AmigaOS with pdksh, this test takes hours, literally.
6349    # So we just punt and use a minimum line length of 8192.
6350    lt_cv_sys_max_cmd_len=8192;
6351    ;;
6352
6353  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6354    # This has been around since 386BSD, at least.  Likely further.
6355    if test -x /sbin/sysctl; then
6356      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6357    elif test -x /usr/sbin/sysctl; then
6358      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6359    else
6360      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6361    fi
6362    # And add a safety zone
6363    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6364    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6365    ;;
6366
6367  interix*)
6368    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6369    lt_cv_sys_max_cmd_len=196608
6370    ;;
6371
6372  osf*)
6373    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6374    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6375    # nice to cause kernel panics so lets avoid the loop below.
6376    # First set a reasonable default.
6377    lt_cv_sys_max_cmd_len=16384
6378    #
6379    if test -x /sbin/sysconfig; then
6380      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6381        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6382      esac
6383    fi
6384    ;;
6385  sco3.2v5*)
6386    lt_cv_sys_max_cmd_len=102400
6387    ;;
6388  sysv5* | sco5v6* | sysv4.2uw2*)
6389    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6390    if test -n "$kargmax"; then
6391      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6392    else
6393      lt_cv_sys_max_cmd_len=32768
6394    fi
6395    ;;
6396  *)
6397    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6398    if test -n "$lt_cv_sys_max_cmd_len"; then
6399      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6400      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6401    else
6402      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6403      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6404	       = "XX$teststring") >/dev/null 2>&1 &&
6405	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6406	      lt_cv_sys_max_cmd_len=$new_result &&
6407	      test $i != 17 # 1/2 MB should be enough
6408      do
6409        i=`expr $i + 1`
6410        teststring=$teststring$teststring
6411      done
6412      teststring=
6413      # Add a significant safety factor because C++ compilers can tack on massive
6414      # amounts of additional arguments before passing them to the linker.
6415      # It appears as though 1/2 is a usable value.
6416      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6417    fi
6418    ;;
6419  esac
6420
6421fi
6422
6423if test -n $lt_cv_sys_max_cmd_len ; then
6424  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6425$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6426else
6427  { $as_echo "$as_me:$LINENO: result: none" >&5
6428$as_echo "none" >&6; }
6429fi
6430
6431
6432
6433
6434
6435# Check for command to grab the raw symbol name followed by C symbol from nm.
6436{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6437$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6438if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6439  $as_echo_n "(cached) " >&6
6440else
6441
6442# These are sane defaults that work on at least a few old systems.
6443# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6444
6445# Character class describing NM global symbol codes.
6446symcode='[BCDEGRST]'
6447
6448# Regexp to match symbols that can be accessed directly from C.
6449sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6450
6451# Transform an extracted symbol line into a proper C declaration
6452lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6453
6454# Transform an extracted symbol line into symbol name and symbol address
6455lt_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'"
6456
6457# Define system-specific variables.
6458case $host_os in
6459aix*)
6460  symcode='[BCDT]'
6461  ;;
6462cygwin* | mingw* | pw32*)
6463  symcode='[ABCDGISTW]'
6464  ;;
6465hpux*) # Its linker distinguishes data from code symbols
6466  if test "$host_cpu" = ia64; then
6467    symcode='[ABCDEGRST]'
6468  fi
6469  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6470  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'"
6471  ;;
6472linux* | k*bsd*-gnu)
6473  if test "$host_cpu" = ia64; then
6474    symcode='[ABCDGIRSTW]'
6475    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6476    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'"
6477  fi
6478  ;;
6479irix* | nonstopux*)
6480  symcode='[BCDEGRST]'
6481  ;;
6482osf*)
6483  symcode='[BCDEGQRST]'
6484  ;;
6485solaris*)
6486  symcode='[BDRT]'
6487  ;;
6488sco3.2v5*)
6489  symcode='[DT]'
6490  ;;
6491sysv4.2uw2*)
6492  symcode='[DT]'
6493  ;;
6494sysv5* | sco5v6* | unixware* | OpenUNIX*)
6495  symcode='[ABDT]'
6496  ;;
6497sysv4)
6498  symcode='[DFNSTU]'
6499  ;;
6500esac
6501
6502# Handle CRLF in mingw tool chain
6503opt_cr=
6504case $build_os in
6505mingw*)
6506  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6507  ;;
6508esac
6509
6510# If we're using GNU nm, then use its standard symbol codes.
6511case `$NM -V 2>&1` in
6512*GNU* | *'with BFD'*)
6513  symcode='[ABCDGIRSTW]' ;;
6514esac
6515
6516# Try without a prefix undercore, then with it.
6517for ac_symprfx in "" "_"; do
6518
6519  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6520  symxfrm="\\1 $ac_symprfx\\2 \\2"
6521
6522  # Write the raw and C identifiers.
6523  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6524
6525  # Check to see that the pipe works correctly.
6526  pipe_works=no
6527
6528  rm -f conftest*
6529  cat > conftest.$ac_ext <<EOF
6530#ifdef __cplusplus
6531extern "C" {
6532#endif
6533char nm_test_var;
6534void nm_test_func(){}
6535#ifdef __cplusplus
6536}
6537#endif
6538int main(){nm_test_var='a';nm_test_func();return(0);}
6539EOF
6540
6541  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6542  (eval $ac_compile) 2>&5
6543  ac_status=$?
6544  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545  (exit $ac_status); }; then
6546    # Now try to grab the symbols.
6547    nlist=conftest.nm
6548    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6549  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6550  ac_status=$?
6551  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552  (exit $ac_status); } && test -s "$nlist"; then
6553      # Try sorting and uniquifying the output.
6554      if sort "$nlist" | uniq > "$nlist"T; then
6555	mv -f "$nlist"T "$nlist"
6556      else
6557	rm -f "$nlist"T
6558      fi
6559
6560      # Make sure that we snagged all the symbols we need.
6561      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6562	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6563	  cat <<EOF > conftest.$ac_ext
6564#ifdef __cplusplus
6565extern "C" {
6566#endif
6567
6568EOF
6569	  # Now generate the symbol file.
6570	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6571
6572	  cat <<EOF >> conftest.$ac_ext
6573#if defined (__STDC__) && __STDC__
6574# define lt_ptr_t void *
6575#else
6576# define lt_ptr_t char *
6577# define const
6578#endif
6579
6580/* The mapping between symbol names and symbols. */
6581const struct {
6582  const char *name;
6583  lt_ptr_t address;
6584}
6585lt_preloaded_symbols[] =
6586{
6587EOF
6588	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6589	  cat <<\EOF >> conftest.$ac_ext
6590  {0, (lt_ptr_t) 0}
6591};
6592
6593#ifdef __cplusplus
6594}
6595#endif
6596EOF
6597	  # Now try linking the two files.
6598	  mv conftest.$ac_objext conftstm.$ac_objext
6599	  lt_save_LIBS="$LIBS"
6600	  lt_save_CFLAGS="$CFLAGS"
6601	  LIBS="conftstm.$ac_objext"
6602	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6603	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6604  (eval $ac_link) 2>&5
6605  ac_status=$?
6606  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6608	    pipe_works=yes
6609	  fi
6610	  LIBS="$lt_save_LIBS"
6611	  CFLAGS="$lt_save_CFLAGS"
6612	else
6613	  echo "cannot find nm_test_func in $nlist" >&5
6614	fi
6615      else
6616	echo "cannot find nm_test_var in $nlist" >&5
6617      fi
6618    else
6619      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6620    fi
6621  else
6622    echo "$progname: failed program was:" >&5
6623    cat conftest.$ac_ext >&5
6624  fi
6625  rm -rf conftest* conftst*
6626
6627  # Do not use the global_symbol_pipe unless it works.
6628  if test "$pipe_works" = yes; then
6629    break
6630  else
6631    lt_cv_sys_global_symbol_pipe=
6632  fi
6633done
6634
6635fi
6636
6637if test -z "$lt_cv_sys_global_symbol_pipe"; then
6638  lt_cv_sys_global_symbol_to_cdecl=
6639fi
6640if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6641  { $as_echo "$as_me:$LINENO: result: failed" >&5
6642$as_echo "failed" >&6; }
6643else
6644  { $as_echo "$as_me:$LINENO: result: ok" >&5
6645$as_echo "ok" >&6; }
6646fi
6647
6648{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6649$as_echo_n "checking for objdir... " >&6; }
6650if test "${lt_cv_objdir+set}" = set; then
6651  $as_echo_n "(cached) " >&6
6652else
6653  rm -f .libs 2>/dev/null
6654mkdir .libs 2>/dev/null
6655if test -d .libs; then
6656  lt_cv_objdir=.libs
6657else
6658  # MS-DOS does not allow filenames that begin with a dot.
6659  lt_cv_objdir=_libs
6660fi
6661rmdir .libs 2>/dev/null
6662fi
6663{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6664$as_echo "$lt_cv_objdir" >&6; }
6665objdir=$lt_cv_objdir
6666
6667
6668
6669
6670
6671case $host_os in
6672aix3*)
6673  # AIX sometimes has problems with the GCC collect2 program.  For some
6674  # reason, if we set the COLLECT_NAMES environment variable, the problems
6675  # vanish in a puff of smoke.
6676  if test "X${COLLECT_NAMES+set}" != Xset; then
6677    COLLECT_NAMES=
6678    export COLLECT_NAMES
6679  fi
6680  ;;
6681esac
6682
6683# Sed substitution that helps us do robust quoting.  It backslashifies
6684# metacharacters that are still active within double-quoted strings.
6685Xsed='sed -e 1s/^X//'
6686sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6687
6688# Same as above, but do not quote variable references.
6689double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6690
6691# Sed substitution to delay expansion of an escaped shell variable in a
6692# double_quote_subst'ed string.
6693delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6694
6695# Sed substitution to avoid accidental globbing in evaled expressions
6696no_glob_subst='s/\*/\\\*/g'
6697
6698# Constants:
6699rm="rm -f"
6700
6701# Global variables:
6702default_ofile=libtool
6703can_build_shared=yes
6704
6705# All known linkers require a `.a' archive for static linking (except MSVC,
6706# which needs '.lib').
6707libext=a
6708ltmain="$ac_aux_dir/ltmain.sh"
6709ofile="$default_ofile"
6710with_gnu_ld="$lt_cv_prog_gnu_ld"
6711
6712if test -n "$ac_tool_prefix"; then
6713  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6714set dummy ${ac_tool_prefix}ar; ac_word=$2
6715{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6716$as_echo_n "checking for $ac_word... " >&6; }
6717if test "${ac_cv_prog_AR+set}" = set; then
6718  $as_echo_n "(cached) " >&6
6719else
6720  if test -n "$AR"; then
6721  ac_cv_prog_AR="$AR" # Let the user override the test.
6722else
6723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724for as_dir in $PATH
6725do
6726  IFS=$as_save_IFS
6727  test -z "$as_dir" && as_dir=.
6728  for ac_exec_ext in '' $ac_executable_extensions; do
6729  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6730    ac_cv_prog_AR="${ac_tool_prefix}ar"
6731    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732    break 2
6733  fi
6734done
6735done
6736IFS=$as_save_IFS
6737
6738fi
6739fi
6740AR=$ac_cv_prog_AR
6741if test -n "$AR"; then
6742  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6743$as_echo "$AR" >&6; }
6744else
6745  { $as_echo "$as_me:$LINENO: result: no" >&5
6746$as_echo "no" >&6; }
6747fi
6748
6749
6750fi
6751if test -z "$ac_cv_prog_AR"; then
6752  ac_ct_AR=$AR
6753  # Extract the first word of "ar", so it can be a program name with args.
6754set dummy ar; ac_word=$2
6755{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6756$as_echo_n "checking for $ac_word... " >&6; }
6757if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6758  $as_echo_n "(cached) " >&6
6759else
6760  if test -n "$ac_ct_AR"; then
6761  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6762else
6763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764for as_dir in $PATH
6765do
6766  IFS=$as_save_IFS
6767  test -z "$as_dir" && as_dir=.
6768  for ac_exec_ext in '' $ac_executable_extensions; do
6769  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6770    ac_cv_prog_ac_ct_AR="ar"
6771    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6772    break 2
6773  fi
6774done
6775done
6776IFS=$as_save_IFS
6777
6778fi
6779fi
6780ac_ct_AR=$ac_cv_prog_ac_ct_AR
6781if test -n "$ac_ct_AR"; then
6782  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6783$as_echo "$ac_ct_AR" >&6; }
6784else
6785  { $as_echo "$as_me:$LINENO: result: no" >&5
6786$as_echo "no" >&6; }
6787fi
6788
6789  if test "x$ac_ct_AR" = x; then
6790    AR="false"
6791  else
6792    case $cross_compiling:$ac_tool_warned in
6793yes:)
6794{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6796ac_tool_warned=yes ;;
6797esac
6798    AR=$ac_ct_AR
6799  fi
6800else
6801  AR="$ac_cv_prog_AR"
6802fi
6803
6804if test -n "$ac_tool_prefix"; then
6805  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6806set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6807{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6808$as_echo_n "checking for $ac_word... " >&6; }
6809if test "${ac_cv_prog_RANLIB+set}" = set; then
6810  $as_echo_n "(cached) " >&6
6811else
6812  if test -n "$RANLIB"; then
6813  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6814else
6815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816for as_dir in $PATH
6817do
6818  IFS=$as_save_IFS
6819  test -z "$as_dir" && as_dir=.
6820  for ac_exec_ext in '' $ac_executable_extensions; do
6821  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6822    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6823    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6824    break 2
6825  fi
6826done
6827done
6828IFS=$as_save_IFS
6829
6830fi
6831fi
6832RANLIB=$ac_cv_prog_RANLIB
6833if test -n "$RANLIB"; then
6834  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6835$as_echo "$RANLIB" >&6; }
6836else
6837  { $as_echo "$as_me:$LINENO: result: no" >&5
6838$as_echo "no" >&6; }
6839fi
6840
6841
6842fi
6843if test -z "$ac_cv_prog_RANLIB"; then
6844  ac_ct_RANLIB=$RANLIB
6845  # Extract the first word of "ranlib", so it can be a program name with args.
6846set dummy ranlib; ac_word=$2
6847{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6848$as_echo_n "checking for $ac_word... " >&6; }
6849if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6850  $as_echo_n "(cached) " >&6
6851else
6852  if test -n "$ac_ct_RANLIB"; then
6853  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6854else
6855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856for as_dir in $PATH
6857do
6858  IFS=$as_save_IFS
6859  test -z "$as_dir" && as_dir=.
6860  for ac_exec_ext in '' $ac_executable_extensions; do
6861  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6862    ac_cv_prog_ac_ct_RANLIB="ranlib"
6863    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6864    break 2
6865  fi
6866done
6867done
6868IFS=$as_save_IFS
6869
6870fi
6871fi
6872ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6873if test -n "$ac_ct_RANLIB"; then
6874  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6875$as_echo "$ac_ct_RANLIB" >&6; }
6876else
6877  { $as_echo "$as_me:$LINENO: result: no" >&5
6878$as_echo "no" >&6; }
6879fi
6880
6881  if test "x$ac_ct_RANLIB" = x; then
6882    RANLIB=":"
6883  else
6884    case $cross_compiling:$ac_tool_warned in
6885yes:)
6886{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6888ac_tool_warned=yes ;;
6889esac
6890    RANLIB=$ac_ct_RANLIB
6891  fi
6892else
6893  RANLIB="$ac_cv_prog_RANLIB"
6894fi
6895
6896if test -n "$ac_tool_prefix"; then
6897  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6898set dummy ${ac_tool_prefix}strip; ac_word=$2
6899{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6900$as_echo_n "checking for $ac_word... " >&6; }
6901if test "${ac_cv_prog_STRIP+set}" = set; then
6902  $as_echo_n "(cached) " >&6
6903else
6904  if test -n "$STRIP"; then
6905  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6906else
6907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908for as_dir in $PATH
6909do
6910  IFS=$as_save_IFS
6911  test -z "$as_dir" && as_dir=.
6912  for ac_exec_ext in '' $ac_executable_extensions; do
6913  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6914    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6915    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6916    break 2
6917  fi
6918done
6919done
6920IFS=$as_save_IFS
6921
6922fi
6923fi
6924STRIP=$ac_cv_prog_STRIP
6925if test -n "$STRIP"; then
6926  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6927$as_echo "$STRIP" >&6; }
6928else
6929  { $as_echo "$as_me:$LINENO: result: no" >&5
6930$as_echo "no" >&6; }
6931fi
6932
6933
6934fi
6935if test -z "$ac_cv_prog_STRIP"; then
6936  ac_ct_STRIP=$STRIP
6937  # Extract the first word of "strip", so it can be a program name with args.
6938set dummy strip; ac_word=$2
6939{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6940$as_echo_n "checking for $ac_word... " >&6; }
6941if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6942  $as_echo_n "(cached) " >&6
6943else
6944  if test -n "$ac_ct_STRIP"; then
6945  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6946else
6947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948for as_dir in $PATH
6949do
6950  IFS=$as_save_IFS
6951  test -z "$as_dir" && as_dir=.
6952  for ac_exec_ext in '' $ac_executable_extensions; do
6953  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6954    ac_cv_prog_ac_ct_STRIP="strip"
6955    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6956    break 2
6957  fi
6958done
6959done
6960IFS=$as_save_IFS
6961
6962fi
6963fi
6964ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6965if test -n "$ac_ct_STRIP"; then
6966  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6967$as_echo "$ac_ct_STRIP" >&6; }
6968else
6969  { $as_echo "$as_me:$LINENO: result: no" >&5
6970$as_echo "no" >&6; }
6971fi
6972
6973  if test "x$ac_ct_STRIP" = x; then
6974    STRIP=":"
6975  else
6976    case $cross_compiling:$ac_tool_warned in
6977yes:)
6978{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6980ac_tool_warned=yes ;;
6981esac
6982    STRIP=$ac_ct_STRIP
6983  fi
6984else
6985  STRIP="$ac_cv_prog_STRIP"
6986fi
6987
6988
6989old_CC="$CC"
6990old_CFLAGS="$CFLAGS"
6991
6992# Set sane defaults for various variables
6993test -z "$AR" && AR=ar
6994test -z "$AR_FLAGS" && AR_FLAGS=cru
6995test -z "$AS" && AS=as
6996test -z "$CC" && CC=cc
6997test -z "$LTCC" && LTCC=$CC
6998test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6999test -z "$DLLTOOL" && DLLTOOL=dlltool
7000test -z "$LD" && LD=ld
7001test -z "$LN_S" && LN_S="ln -s"
7002test -z "$MAGIC_CMD" && MAGIC_CMD=file
7003test -z "$NM" && NM=nm
7004test -z "$SED" && SED=sed
7005test -z "$OBJDUMP" && OBJDUMP=objdump
7006test -z "$RANLIB" && RANLIB=:
7007test -z "$STRIP" && STRIP=:
7008test -z "$ac_objext" && ac_objext=o
7009
7010# Determine commands to create old-style static archives.
7011old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7012old_postinstall_cmds='chmod 644 $oldlib'
7013old_postuninstall_cmds=
7014
7015if test -n "$RANLIB"; then
7016  case $host_os in
7017  openbsd*)
7018    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7019    ;;
7020  *)
7021    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7022    ;;
7023  esac
7024  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7025fi
7026
7027for cc_temp in $compiler""; do
7028  case $cc_temp in
7029    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7030    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7031    \-*) ;;
7032    *) break;;
7033  esac
7034done
7035cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7036
7037
7038# Only perform the check for file, if the check method requires it
7039case $deplibs_check_method in
7040file_magic*)
7041  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7042    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7043$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7044if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7045  $as_echo_n "(cached) " >&6
7046else
7047  case $MAGIC_CMD in
7048[\\/*] |  ?:[\\/]*)
7049  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7050  ;;
7051*)
7052  lt_save_MAGIC_CMD="$MAGIC_CMD"
7053  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7054  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7055  for ac_dir in $ac_dummy; do
7056    IFS="$lt_save_ifs"
7057    test -z "$ac_dir" && ac_dir=.
7058    if test -f $ac_dir/${ac_tool_prefix}file; then
7059      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7060      if test -n "$file_magic_test_file"; then
7061	case $deplibs_check_method in
7062	"file_magic "*)
7063	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7064	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7065	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7066	    $EGREP "$file_magic_regex" > /dev/null; then
7067	    :
7068	  else
7069	    cat <<EOF 1>&2
7070
7071*** Warning: the command libtool uses to detect shared libraries,
7072*** $file_magic_cmd, produces output that libtool cannot recognize.
7073*** The result is that libtool may fail to recognize shared libraries
7074*** as such.  This will affect the creation of libtool libraries that
7075*** depend on shared libraries, but programs linked with such libtool
7076*** libraries will work regardless of this problem.  Nevertheless, you
7077*** may want to report the problem to your system manager and/or to
7078*** bug-libtool@gnu.org
7079
7080EOF
7081	  fi ;;
7082	esac
7083      fi
7084      break
7085    fi
7086  done
7087  IFS="$lt_save_ifs"
7088  MAGIC_CMD="$lt_save_MAGIC_CMD"
7089  ;;
7090esac
7091fi
7092
7093MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7094if test -n "$MAGIC_CMD"; then
7095  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7096$as_echo "$MAGIC_CMD" >&6; }
7097else
7098  { $as_echo "$as_me:$LINENO: result: no" >&5
7099$as_echo "no" >&6; }
7100fi
7101
7102if test -z "$lt_cv_path_MAGIC_CMD"; then
7103  if test -n "$ac_tool_prefix"; then
7104    { $as_echo "$as_me:$LINENO: checking for file" >&5
7105$as_echo_n "checking for file... " >&6; }
7106if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7107  $as_echo_n "(cached) " >&6
7108else
7109  case $MAGIC_CMD in
7110[\\/*] |  ?:[\\/]*)
7111  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7112  ;;
7113*)
7114  lt_save_MAGIC_CMD="$MAGIC_CMD"
7115  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7116  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7117  for ac_dir in $ac_dummy; do
7118    IFS="$lt_save_ifs"
7119    test -z "$ac_dir" && ac_dir=.
7120    if test -f $ac_dir/file; then
7121      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7122      if test -n "$file_magic_test_file"; then
7123	case $deplibs_check_method in
7124	"file_magic "*)
7125	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7126	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7127	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7128	    $EGREP "$file_magic_regex" > /dev/null; then
7129	    :
7130	  else
7131	    cat <<EOF 1>&2
7132
7133*** Warning: the command libtool uses to detect shared libraries,
7134*** $file_magic_cmd, produces output that libtool cannot recognize.
7135*** The result is that libtool may fail to recognize shared libraries
7136*** as such.  This will affect the creation of libtool libraries that
7137*** depend on shared libraries, but programs linked with such libtool
7138*** libraries will work regardless of this problem.  Nevertheless, you
7139*** may want to report the problem to your system manager and/or to
7140*** bug-libtool@gnu.org
7141
7142EOF
7143	  fi ;;
7144	esac
7145      fi
7146      break
7147    fi
7148  done
7149  IFS="$lt_save_ifs"
7150  MAGIC_CMD="$lt_save_MAGIC_CMD"
7151  ;;
7152esac
7153fi
7154
7155MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7156if test -n "$MAGIC_CMD"; then
7157  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7158$as_echo "$MAGIC_CMD" >&6; }
7159else
7160  { $as_echo "$as_me:$LINENO: result: no" >&5
7161$as_echo "no" >&6; }
7162fi
7163
7164  else
7165    MAGIC_CMD=:
7166  fi
7167fi
7168
7169  fi
7170  ;;
7171esac
7172
7173
7174  case $host_os in
7175    rhapsody* | darwin*)
7176    if test -n "$ac_tool_prefix"; then
7177  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7178set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7179{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7180$as_echo_n "checking for $ac_word... " >&6; }
7181if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7182  $as_echo_n "(cached) " >&6
7183else
7184  if test -n "$DSYMUTIL"; then
7185  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7186else
7187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188for as_dir in $PATH
7189do
7190  IFS=$as_save_IFS
7191  test -z "$as_dir" && as_dir=.
7192  for ac_exec_ext in '' $ac_executable_extensions; do
7193  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7194    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7195    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7196    break 2
7197  fi
7198done
7199done
7200IFS=$as_save_IFS
7201
7202fi
7203fi
7204DSYMUTIL=$ac_cv_prog_DSYMUTIL
7205if test -n "$DSYMUTIL"; then
7206  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7207$as_echo "$DSYMUTIL" >&6; }
7208else
7209  { $as_echo "$as_me:$LINENO: result: no" >&5
7210$as_echo "no" >&6; }
7211fi
7212
7213
7214fi
7215if test -z "$ac_cv_prog_DSYMUTIL"; then
7216  ac_ct_DSYMUTIL=$DSYMUTIL
7217  # Extract the first word of "dsymutil", so it can be a program name with args.
7218set dummy dsymutil; ac_word=$2
7219{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7220$as_echo_n "checking for $ac_word... " >&6; }
7221if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7222  $as_echo_n "(cached) " >&6
7223else
7224  if test -n "$ac_ct_DSYMUTIL"; then
7225  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7226else
7227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228for as_dir in $PATH
7229do
7230  IFS=$as_save_IFS
7231  test -z "$as_dir" && as_dir=.
7232  for ac_exec_ext in '' $ac_executable_extensions; do
7233  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7234    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7235    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7236    break 2
7237  fi
7238done
7239done
7240IFS=$as_save_IFS
7241
7242fi
7243fi
7244ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7245if test -n "$ac_ct_DSYMUTIL"; then
7246  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7247$as_echo "$ac_ct_DSYMUTIL" >&6; }
7248else
7249  { $as_echo "$as_me:$LINENO: result: no" >&5
7250$as_echo "no" >&6; }
7251fi
7252
7253  if test "x$ac_ct_DSYMUTIL" = x; then
7254    DSYMUTIL=":"
7255  else
7256    case $cross_compiling:$ac_tool_warned in
7257yes:)
7258{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7260ac_tool_warned=yes ;;
7261esac
7262    DSYMUTIL=$ac_ct_DSYMUTIL
7263  fi
7264else
7265  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7266fi
7267
7268    if test -n "$ac_tool_prefix"; then
7269  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7270set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7271{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7272$as_echo_n "checking for $ac_word... " >&6; }
7273if test "${ac_cv_prog_NMEDIT+set}" = set; then
7274  $as_echo_n "(cached) " >&6
7275else
7276  if test -n "$NMEDIT"; then
7277  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7278else
7279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280for as_dir in $PATH
7281do
7282  IFS=$as_save_IFS
7283  test -z "$as_dir" && as_dir=.
7284  for ac_exec_ext in '' $ac_executable_extensions; do
7285  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7286    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7287    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7288    break 2
7289  fi
7290done
7291done
7292IFS=$as_save_IFS
7293
7294fi
7295fi
7296NMEDIT=$ac_cv_prog_NMEDIT
7297if test -n "$NMEDIT"; then
7298  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7299$as_echo "$NMEDIT" >&6; }
7300else
7301  { $as_echo "$as_me:$LINENO: result: no" >&5
7302$as_echo "no" >&6; }
7303fi
7304
7305
7306fi
7307if test -z "$ac_cv_prog_NMEDIT"; then
7308  ac_ct_NMEDIT=$NMEDIT
7309  # Extract the first word of "nmedit", so it can be a program name with args.
7310set dummy nmedit; ac_word=$2
7311{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7312$as_echo_n "checking for $ac_word... " >&6; }
7313if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7314  $as_echo_n "(cached) " >&6
7315else
7316  if test -n "$ac_ct_NMEDIT"; then
7317  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7318else
7319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320for as_dir in $PATH
7321do
7322  IFS=$as_save_IFS
7323  test -z "$as_dir" && as_dir=.
7324  for ac_exec_ext in '' $ac_executable_extensions; do
7325  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7326    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7327    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328    break 2
7329  fi
7330done
7331done
7332IFS=$as_save_IFS
7333
7334fi
7335fi
7336ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7337if test -n "$ac_ct_NMEDIT"; then
7338  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7339$as_echo "$ac_ct_NMEDIT" >&6; }
7340else
7341  { $as_echo "$as_me:$LINENO: result: no" >&5
7342$as_echo "no" >&6; }
7343fi
7344
7345  if test "x$ac_ct_NMEDIT" = x; then
7346    NMEDIT=":"
7347  else
7348    case $cross_compiling:$ac_tool_warned in
7349yes:)
7350{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7352ac_tool_warned=yes ;;
7353esac
7354    NMEDIT=$ac_ct_NMEDIT
7355  fi
7356else
7357  NMEDIT="$ac_cv_prog_NMEDIT"
7358fi
7359
7360
7361    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7362$as_echo_n "checking for -single_module linker flag... " >&6; }
7363if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7364  $as_echo_n "(cached) " >&6
7365else
7366  lt_cv_apple_cc_single_mod=no
7367      if test -z "${LT_MULTI_MODULE}"; then
7368   # By default we will add the -single_module flag. You can override
7369   # by either setting the environment variable LT_MULTI_MODULE
7370   # non-empty at configure time, or by adding -multi_module to the
7371   # link flags.
7372   echo "int foo(void){return 1;}" > conftest.c
7373   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7374     -dynamiclib ${wl}-single_module conftest.c
7375   if test -f libconftest.dylib; then
7376     lt_cv_apple_cc_single_mod=yes
7377     rm -rf libconftest.dylib*
7378   fi
7379   rm conftest.c
7380      fi
7381fi
7382{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7383$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7384    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7385$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7386if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7387  $as_echo_n "(cached) " >&6
7388else
7389  lt_cv_ld_exported_symbols_list=no
7390      save_LDFLAGS=$LDFLAGS
7391      echo "_main" > conftest.sym
7392      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7393      cat >conftest.$ac_ext <<_ACEOF
7394/* confdefs.h.  */
7395_ACEOF
7396cat confdefs.h >>conftest.$ac_ext
7397cat >>conftest.$ac_ext <<_ACEOF
7398/* end confdefs.h.  */
7399
7400int
7401main ()
7402{
7403
7404  ;
7405  return 0;
7406}
7407_ACEOF
7408rm -f conftest.$ac_objext conftest$ac_exeext
7409if { (ac_try="$ac_link"
7410case "(($ac_try" in
7411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7412  *) ac_try_echo=$ac_try;;
7413esac
7414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7415$as_echo "$ac_try_echo") >&5
7416  (eval "$ac_link") 2>conftest.er1
7417  ac_status=$?
7418  grep -v '^ *+' conftest.er1 >conftest.err
7419  rm -f conftest.er1
7420  cat conftest.err >&5
7421  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422  (exit $ac_status); } && {
7423	 test -z "$ac_c_werror_flag" ||
7424	 test ! -s conftest.err
7425       } && test -s conftest$ac_exeext && {
7426	 test "$cross_compiling" = yes ||
7427	 $as_test_x conftest$ac_exeext
7428       }; then
7429  lt_cv_ld_exported_symbols_list=yes
7430else
7431  $as_echo "$as_me: failed program was:" >&5
7432sed 's/^/| /' conftest.$ac_ext >&5
7433
7434	lt_cv_ld_exported_symbols_list=no
7435fi
7436
7437rm -rf conftest.dSYM
7438rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7439      conftest$ac_exeext conftest.$ac_ext
7440   LDFLAGS="$save_LDFLAGS"
7441
7442fi
7443{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7444$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7445    case $host_os in
7446    rhapsody* | darwin1.[0123])
7447      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7448    darwin1.*)
7449     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7450    darwin*)
7451      # if running on 10.5 or later, the deployment target defaults
7452      # to the OS version, if on x86, and 10.4, the deployment
7453      # target defaults to 10.4. Don't you love it?
7454      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7455   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7456     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7457   10.[012]*)
7458     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7459   10.*)
7460     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7461      esac
7462    ;;
7463  esac
7464    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7465      _lt_dar_single_mod='$single_module'
7466    fi
7467    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7468      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7469    else
7470      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7471    fi
7472    if test "$DSYMUTIL" != ":"; then
7473      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7474    else
7475      _lt_dsymutil=
7476    fi
7477    ;;
7478  esac
7479
7480
7481enable_dlopen=no
7482enable_win32_dll=no
7483
7484# Check whether --enable-libtool-lock was given.
7485if test "${enable_libtool_lock+set}" = set; then
7486  enableval=$enable_libtool_lock;
7487fi
7488
7489test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7490
7491
7492# Check whether --with-pic was given.
7493if test "${with_pic+set}" = set; then
7494  withval=$with_pic; pic_mode="$withval"
7495else
7496  pic_mode=default
7497fi
7498
7499test -z "$pic_mode" && pic_mode=default
7500
7501# Use C for the default configuration in the libtool script
7502tagname=
7503lt_save_CC="$CC"
7504ac_ext=c
7505ac_cpp='$CPP $CPPFLAGS'
7506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7508ac_compiler_gnu=$ac_cv_c_compiler_gnu
7509
7510
7511# Source file extension for C test sources.
7512ac_ext=c
7513
7514# Object file extension for compiled C test sources.
7515objext=o
7516objext=$objext
7517
7518# Code to be used in simple compile tests
7519lt_simple_compile_test_code="int some_variable = 0;"
7520
7521# Code to be used in simple link tests
7522lt_simple_link_test_code='int main(){return(0);}'
7523
7524
7525# If no C compiler was specified, use CC.
7526LTCC=${LTCC-"$CC"}
7527
7528# If no C compiler flags were specified, use CFLAGS.
7529LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7530
7531# Allow CC to be a program name with arguments.
7532compiler=$CC
7533
7534
7535# save warnings/boilerplate of simple test code
7536ac_outfile=conftest.$ac_objext
7537echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7538eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7539_lt_compiler_boilerplate=`cat conftest.err`
7540$rm conftest*
7541
7542ac_outfile=conftest.$ac_objext
7543echo "$lt_simple_link_test_code" >conftest.$ac_ext
7544eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7545_lt_linker_boilerplate=`cat conftest.err`
7546$rm -r conftest*
7547
7548
7549
7550lt_prog_compiler_no_builtin_flag=
7551
7552if test "$GCC" = yes; then
7553  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7554
7555
7556{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7557$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7558if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7559  $as_echo_n "(cached) " >&6
7560else
7561  lt_cv_prog_compiler_rtti_exceptions=no
7562  ac_outfile=conftest.$ac_objext
7563   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7564   lt_compiler_flag="-fno-rtti -fno-exceptions"
7565   # Insert the option either (1) after the last *FLAGS variable, or
7566   # (2) before a word containing "conftest.", or (3) at the end.
7567   # Note that $ac_compile itself does not contain backslashes and begins
7568   # with a dollar sign (not a hyphen), so the echo should work correctly.
7569   # The option is referenced via a variable to avoid confusing sed.
7570   lt_compile=`echo "$ac_compile" | $SED \
7571   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7572   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7573   -e 's:$: $lt_compiler_flag:'`
7574   (eval echo "\"\$as_me:7574: $lt_compile\"" >&5)
7575   (eval "$lt_compile" 2>conftest.err)
7576   ac_status=$?
7577   cat conftest.err >&5
7578   echo "$as_me:7578: \$? = $ac_status" >&5
7579   if (exit $ac_status) && test -s "$ac_outfile"; then
7580     # The compiler can only warn and ignore the option if not recognized
7581     # So say no if there are warnings other than the usual output.
7582     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7583     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7584     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7585       lt_cv_prog_compiler_rtti_exceptions=yes
7586     fi
7587   fi
7588   $rm conftest*
7589
7590fi
7591{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7592$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7593
7594if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7595    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7596else
7597    :
7598fi
7599
7600fi
7601
7602lt_prog_compiler_wl=
7603lt_prog_compiler_pic=
7604lt_prog_compiler_static=
7605
7606{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7607$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7608
7609  if test "$GCC" = yes; then
7610    lt_prog_compiler_wl='-Wl,'
7611    lt_prog_compiler_static='-static'
7612
7613    case $host_os in
7614      aix*)
7615      # All AIX code is PIC.
7616      if test "$host_cpu" = ia64; then
7617	# AIX 5 now supports IA64 processor
7618	lt_prog_compiler_static='-Bstatic'
7619      fi
7620      ;;
7621
7622    amigaos*)
7623      # FIXME: we need at least 68020 code to build shared libraries, but
7624      # adding the `-m68020' flag to GCC prevents building anything better,
7625      # like `-m68040'.
7626      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7627      ;;
7628
7629    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7630      # PIC is the default for these OSes.
7631      ;;
7632
7633    mingw* | cygwin* | pw32* | os2*)
7634      # This hack is so that the source file can tell whether it is being
7635      # built for inclusion in a dll (and should export symbols for example).
7636      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7637      # (--disable-auto-import) libraries
7638      lt_prog_compiler_pic='-DDLL_EXPORT'
7639      ;;
7640
7641    darwin* | rhapsody*)
7642      # PIC is the default on this platform
7643      # Common symbols not allowed in MH_DYLIB files
7644      lt_prog_compiler_pic='-fno-common'
7645      ;;
7646
7647    interix[3-9]*)
7648      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7649      # Instead, we relocate shared libraries at runtime.
7650      ;;
7651
7652    msdosdjgpp*)
7653      # Just because we use GCC doesn't mean we suddenly get shared libraries
7654      # on systems that don't support them.
7655      lt_prog_compiler_can_build_shared=no
7656      enable_shared=no
7657      ;;
7658
7659    sysv4*MP*)
7660      if test -d /usr/nec; then
7661	lt_prog_compiler_pic=-Kconform_pic
7662      fi
7663      ;;
7664
7665    hpux*)
7666      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7667      # not for PA HP-UX.
7668      case $host_cpu in
7669      hppa*64*|ia64*)
7670	# +Z the default
7671	;;
7672      *)
7673	lt_prog_compiler_pic='-fPIC'
7674	;;
7675      esac
7676      ;;
7677
7678    *)
7679      lt_prog_compiler_pic='-fPIC'
7680      ;;
7681    esac
7682  else
7683    # PORTME Check for flag to pass linker flags through the system compiler.
7684    case $host_os in
7685    aix*)
7686      lt_prog_compiler_wl='-Wl,'
7687      if test "$host_cpu" = ia64; then
7688	# AIX 5 now supports IA64 processor
7689	lt_prog_compiler_static='-Bstatic'
7690      else
7691	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7692      fi
7693      ;;
7694      darwin*)
7695        # PIC is the default on this platform
7696        # Common symbols not allowed in MH_DYLIB files
7697       case $cc_basename in
7698         xlc*)
7699         lt_prog_compiler_pic='-qnocommon'
7700         lt_prog_compiler_wl='-Wl,'
7701         ;;
7702       esac
7703       ;;
7704
7705    mingw* | cygwin* | pw32* | os2*)
7706      # This hack is so that the source file can tell whether it is being
7707      # built for inclusion in a dll (and should export symbols for example).
7708      lt_prog_compiler_pic='-DDLL_EXPORT'
7709      ;;
7710
7711    hpux9* | hpux10* | hpux11*)
7712      lt_prog_compiler_wl='-Wl,'
7713      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7714      # not for PA HP-UX.
7715      case $host_cpu in
7716      hppa*64*|ia64*)
7717	# +Z the default
7718	;;
7719      *)
7720	lt_prog_compiler_pic='+Z'
7721	;;
7722      esac
7723      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7724      lt_prog_compiler_static='${wl}-a ${wl}archive'
7725      ;;
7726
7727    irix5* | irix6* | nonstopux*)
7728      lt_prog_compiler_wl='-Wl,'
7729      # PIC (with -KPIC) is the default.
7730      lt_prog_compiler_static='-non_shared'
7731      ;;
7732
7733    newsos6)
7734      lt_prog_compiler_pic='-KPIC'
7735      lt_prog_compiler_static='-Bstatic'
7736      ;;
7737
7738    linux* | k*bsd*-gnu)
7739      case $cc_basename in
7740      icc* | ecc*)
7741	lt_prog_compiler_wl='-Wl,'
7742	lt_prog_compiler_pic='-KPIC'
7743	lt_prog_compiler_static='-static'
7744        ;;
7745      pgcc* | pgf77* | pgf90* | pgf95*)
7746        # Portland Group compilers (*not* the Pentium gcc compiler,
7747	# which looks to be a dead project)
7748	lt_prog_compiler_wl='-Wl,'
7749	lt_prog_compiler_pic='-fpic'
7750	lt_prog_compiler_static='-Bstatic'
7751        ;;
7752      ccc*)
7753        lt_prog_compiler_wl='-Wl,'
7754        # All Alpha code is PIC.
7755        lt_prog_compiler_static='-non_shared'
7756        ;;
7757      *)
7758        case `$CC -V 2>&1 | sed 5q` in
7759	*Sun\ C*)
7760	  # Sun C 5.9
7761	  lt_prog_compiler_pic='-KPIC'
7762	  lt_prog_compiler_static='-Bstatic'
7763	  lt_prog_compiler_wl='-Wl,'
7764	  ;;
7765	*Sun\ F*)
7766	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7767	  lt_prog_compiler_pic='-KPIC'
7768	  lt_prog_compiler_static='-Bstatic'
7769	  lt_prog_compiler_wl=''
7770	  ;;
7771	esac
7772	;;
7773      esac
7774      ;;
7775
7776    osf3* | osf4* | osf5*)
7777      lt_prog_compiler_wl='-Wl,'
7778      # All OSF/1 code is PIC.
7779      lt_prog_compiler_static='-non_shared'
7780      ;;
7781
7782    rdos*)
7783      lt_prog_compiler_static='-non_shared'
7784      ;;
7785
7786    solaris*)
7787      lt_prog_compiler_pic='-KPIC'
7788      lt_prog_compiler_static='-Bstatic'
7789      case $cc_basename in
7790      f77* | f90* | f95*)
7791	lt_prog_compiler_wl='-Qoption ld ';;
7792      *)
7793	lt_prog_compiler_wl='-Wl,';;
7794      esac
7795      ;;
7796
7797    sunos4*)
7798      lt_prog_compiler_wl='-Qoption ld '
7799      lt_prog_compiler_pic='-PIC'
7800      lt_prog_compiler_static='-Bstatic'
7801      ;;
7802
7803    sysv4 | sysv4.2uw2* | sysv4.3*)
7804      lt_prog_compiler_wl='-Wl,'
7805      lt_prog_compiler_pic='-KPIC'
7806      lt_prog_compiler_static='-Bstatic'
7807      ;;
7808
7809    sysv4*MP*)
7810      if test -d /usr/nec ;then
7811	lt_prog_compiler_pic='-Kconform_pic'
7812	lt_prog_compiler_static='-Bstatic'
7813      fi
7814      ;;
7815
7816    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7817      lt_prog_compiler_wl='-Wl,'
7818      lt_prog_compiler_pic='-KPIC'
7819      lt_prog_compiler_static='-Bstatic'
7820      ;;
7821
7822    unicos*)
7823      lt_prog_compiler_wl='-Wl,'
7824      lt_prog_compiler_can_build_shared=no
7825      ;;
7826
7827    uts4*)
7828      lt_prog_compiler_pic='-pic'
7829      lt_prog_compiler_static='-Bstatic'
7830      ;;
7831
7832    *)
7833      lt_prog_compiler_can_build_shared=no
7834      ;;
7835    esac
7836  fi
7837
7838{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7839$as_echo "$lt_prog_compiler_pic" >&6; }
7840
7841#
7842# Check to make sure the PIC flag actually works.
7843#
7844if test -n "$lt_prog_compiler_pic"; then
7845
7846{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7847$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7848if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7849  $as_echo_n "(cached) " >&6
7850else
7851  lt_cv_prog_compiler_pic_works=no
7852  ac_outfile=conftest.$ac_objext
7853   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7854   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7855   # Insert the option either (1) after the last *FLAGS variable, or
7856   # (2) before a word containing "conftest.", or (3) at the end.
7857   # Note that $ac_compile itself does not contain backslashes and begins
7858   # with a dollar sign (not a hyphen), so the echo should work correctly.
7859   # The option is referenced via a variable to avoid confusing sed.
7860   lt_compile=`echo "$ac_compile" | $SED \
7861   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7862   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7863   -e 's:$: $lt_compiler_flag:'`
7864   (eval echo "\"\$as_me:7864: $lt_compile\"" >&5)
7865   (eval "$lt_compile" 2>conftest.err)
7866   ac_status=$?
7867   cat conftest.err >&5
7868   echo "$as_me:7868: \$? = $ac_status" >&5
7869   if (exit $ac_status) && test -s "$ac_outfile"; then
7870     # The compiler can only warn and ignore the option if not recognized
7871     # So say no if there are warnings other than the usual output.
7872     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7873     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7874     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7875       lt_cv_prog_compiler_pic_works=yes
7876     fi
7877   fi
7878   $rm conftest*
7879
7880fi
7881{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7882$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7883
7884if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7885    case $lt_prog_compiler_pic in
7886     "" | " "*) ;;
7887     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7888     esac
7889else
7890    lt_prog_compiler_pic=
7891     lt_prog_compiler_can_build_shared=no
7892fi
7893
7894fi
7895case $host_os in
7896  # For platforms which do not support PIC, -DPIC is meaningless:
7897  *djgpp*)
7898    lt_prog_compiler_pic=
7899    ;;
7900  *)
7901    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7902    ;;
7903esac
7904
7905#
7906# Check to make sure the static flag actually works.
7907#
7908wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7909{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7910$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7911if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7912  $as_echo_n "(cached) " >&6
7913else
7914  lt_cv_prog_compiler_static_works=no
7915   save_LDFLAGS="$LDFLAGS"
7916   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7917   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7918   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7919     # The linker can only warn and ignore the option if not recognized
7920     # So say no if there are warnings
7921     if test -s conftest.err; then
7922       # Append any errors to the config.log.
7923       cat conftest.err 1>&5
7924       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7925       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7926       if diff conftest.exp conftest.er2 >/dev/null; then
7927         lt_cv_prog_compiler_static_works=yes
7928       fi
7929     else
7930       lt_cv_prog_compiler_static_works=yes
7931     fi
7932   fi
7933   $rm -r conftest*
7934   LDFLAGS="$save_LDFLAGS"
7935
7936fi
7937{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7938$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7939
7940if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7941    :
7942else
7943    lt_prog_compiler_static=
7944fi
7945
7946
7947{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7948$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7949if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7950  $as_echo_n "(cached) " >&6
7951else
7952  lt_cv_prog_compiler_c_o=no
7953   $rm -r conftest 2>/dev/null
7954   mkdir conftest
7955   cd conftest
7956   mkdir out
7957   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7958
7959   lt_compiler_flag="-o out/conftest2.$ac_objext"
7960   # Insert the option either (1) after the last *FLAGS variable, or
7961   # (2) before a word containing "conftest.", or (3) at the end.
7962   # Note that $ac_compile itself does not contain backslashes and begins
7963   # with a dollar sign (not a hyphen), so the echo should work correctly.
7964   lt_compile=`echo "$ac_compile" | $SED \
7965   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7966   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7967   -e 's:$: $lt_compiler_flag:'`
7968   (eval echo "\"\$as_me:7968: $lt_compile\"" >&5)
7969   (eval "$lt_compile" 2>out/conftest.err)
7970   ac_status=$?
7971   cat out/conftest.err >&5
7972   echo "$as_me:7972: \$? = $ac_status" >&5
7973   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7974   then
7975     # The compiler can only warn and ignore the option if not recognized
7976     # So say no if there are warnings
7977     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7978     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7979     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7980       lt_cv_prog_compiler_c_o=yes
7981     fi
7982   fi
7983   chmod u+w . 2>&5
7984   $rm conftest*
7985   # SGI C++ compiler will create directory out/ii_files/ for
7986   # template instantiation
7987   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7988   $rm out/* && rmdir out
7989   cd ..
7990   rmdir conftest
7991   $rm conftest*
7992
7993fi
7994{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7995$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7996
7997
7998hard_links="nottested"
7999if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8000  # do not overwrite the value of need_locks provided by the user
8001  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8002$as_echo_n "checking if we can lock with hard links... " >&6; }
8003  hard_links=yes
8004  $rm conftest*
8005  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8006  touch conftest.a
8007  ln conftest.a conftest.b 2>&5 || hard_links=no
8008  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8009  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8010$as_echo "$hard_links" >&6; }
8011  if test "$hard_links" = no; then
8012    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8013$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8014    need_locks=warn
8015  fi
8016else
8017  need_locks=no
8018fi
8019
8020{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8021$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8022
8023  runpath_var=
8024  allow_undefined_flag=
8025  enable_shared_with_static_runtimes=no
8026  archive_cmds=
8027  archive_expsym_cmds=
8028  old_archive_From_new_cmds=
8029  old_archive_from_expsyms_cmds=
8030  export_dynamic_flag_spec=
8031  whole_archive_flag_spec=
8032  thread_safe_flag_spec=
8033  hardcode_libdir_flag_spec=
8034  hardcode_libdir_flag_spec_ld=
8035  hardcode_libdir_separator=
8036  hardcode_direct=no
8037  hardcode_minus_L=no
8038  hardcode_shlibpath_var=unsupported
8039  link_all_deplibs=unknown
8040  hardcode_automatic=no
8041  module_cmds=
8042  module_expsym_cmds=
8043  always_export_symbols=no
8044  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8045  # include_expsyms should be a list of space-separated symbols to be *always*
8046  # included in the symbol list
8047  include_expsyms=
8048  # exclude_expsyms can be an extended regexp of symbols to exclude
8049  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8050  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8051  # as well as any symbol that contains `d'.
8052  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8053  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8054  # platforms (ab)use it in PIC code, but their linkers get confused if
8055  # the symbol is explicitly referenced.  Since portable code cannot
8056  # rely on this symbol name, it's probably fine to never include it in
8057  # preloaded symbol tables.
8058  # Exclude shared library initialization/finalization symbols.
8059  extract_expsyms_cmds=
8060  # Just being paranoid about ensuring that cc_basename is set.
8061  for cc_temp in $compiler""; do
8062  case $cc_temp in
8063    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8064    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8065    \-*) ;;
8066    *) break;;
8067  esac
8068done
8069cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8070
8071  case $host_os in
8072  cygwin* | mingw* | pw32*)
8073    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8074    # When not using gcc, we currently assume that we are using
8075    # Microsoft Visual C++.
8076    if test "$GCC" != yes; then
8077      with_gnu_ld=no
8078    fi
8079    ;;
8080  interix*)
8081    # we just hope/assume this is gcc and not c89 (= MSVC++)
8082    with_gnu_ld=yes
8083    ;;
8084  openbsd*)
8085    with_gnu_ld=no
8086    ;;
8087  esac
8088
8089  ld_shlibs=yes
8090  if test "$with_gnu_ld" = yes; then
8091    # If archive_cmds runs LD, not CC, wlarc should be empty
8092    wlarc='${wl}'
8093
8094    # Set some defaults for GNU ld with shared library support. These
8095    # are reset later if shared libraries are not supported. Putting them
8096    # here allows them to be overridden if necessary.
8097    runpath_var=LD_RUN_PATH
8098    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8099    export_dynamic_flag_spec='${wl}--export-dynamic'
8100    # ancient GNU ld didn't support --whole-archive et. al.
8101    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8102	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8103      else
8104  	whole_archive_flag_spec=
8105    fi
8106    supports_anon_versioning=no
8107    case `$LD -v 2>/dev/null` in
8108      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8109      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8110      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8111      *\ 2.11.*) ;; # other 2.11 versions
8112      *) supports_anon_versioning=yes ;;
8113    esac
8114
8115    # See if GNU ld supports shared libraries.
8116    case $host_os in
8117    aix[3-9]*)
8118      # On AIX/PPC, the GNU linker is very broken
8119      if test "$host_cpu" != ia64; then
8120	ld_shlibs=no
8121	cat <<EOF 1>&2
8122
8123*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8124*** to be unable to reliably create shared libraries on AIX.
8125*** Therefore, libtool is disabling shared libraries support.  If you
8126*** really care for shared libraries, you may want to modify your PATH
8127*** so that a non-GNU linker is found, and then restart.
8128
8129EOF
8130      fi
8131      ;;
8132
8133    amigaos*)
8134      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)'
8135      hardcode_libdir_flag_spec='-L$libdir'
8136      hardcode_minus_L=yes
8137
8138      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8139      # that the semantics of dynamic libraries on AmigaOS, at least up
8140      # to version 4, is to share data among multiple programs linked
8141      # with the same dynamic library.  Since this doesn't match the
8142      # behavior of shared libraries on other platforms, we can't use
8143      # them.
8144      ld_shlibs=no
8145      ;;
8146
8147    beos*)
8148      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8149	allow_undefined_flag=unsupported
8150	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8151	# support --undefined.  This deserves some investigation.  FIXME
8152	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8153      else
8154	ld_shlibs=no
8155      fi
8156      ;;
8157
8158    cygwin* | mingw* | pw32*)
8159      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8160      # as there is no search path for DLLs.
8161      hardcode_libdir_flag_spec='-L$libdir'
8162      allow_undefined_flag=unsupported
8163      always_export_symbols=no
8164      enable_shared_with_static_runtimes=yes
8165      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8166
8167      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8168        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8169	# If the export-symbols file already is a .def file (1st line
8170	# is EXPORTS), use it as is; otherwise, prepend...
8171	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8172	  cp $export_symbols $output_objdir/$soname.def;
8173	else
8174	  echo EXPORTS > $output_objdir/$soname.def;
8175	  cat $export_symbols >> $output_objdir/$soname.def;
8176	fi~
8177	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8178      else
8179	ld_shlibs=no
8180      fi
8181      ;;
8182
8183    interix[3-9]*)
8184      hardcode_direct=no
8185      hardcode_shlibpath_var=no
8186      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8187      export_dynamic_flag_spec='${wl}-E'
8188      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8189      # Instead, shared libraries are loaded at an image base (0x10000000 by
8190      # default) and relocated if they conflict, which is a slow very memory
8191      # consuming and fragmenting process.  To avoid this, we pick a random,
8192      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8193      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8194      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8195      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'
8196      ;;
8197
8198    gnu* | linux* | k*bsd*-gnu)
8199      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8200	tmp_addflag=
8201	case $cc_basename,$host_cpu in
8202	pgcc*)				# Portland Group C compiler
8203	  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'
8204	  tmp_addflag=' $pic_flag'
8205	  ;;
8206	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8207	  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'
8208	  tmp_addflag=' $pic_flag -Mnomain' ;;
8209	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8210	  tmp_addflag=' -i_dynamic' ;;
8211	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8212	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8213	ifc* | ifort*)			# Intel Fortran compiler
8214	  tmp_addflag=' -nofor_main' ;;
8215	esac
8216	case `$CC -V 2>&1 | sed 5q` in
8217	*Sun\ C*)			# Sun C 5.9
8218	  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'
8219	  tmp_sharedflag='-G' ;;
8220	*Sun\ F*)			# Sun Fortran 8.3
8221	  tmp_sharedflag='-G' ;;
8222	*)
8223	  tmp_sharedflag='-shared' ;;
8224	esac
8225	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8226
8227	if test $supports_anon_versioning = yes; then
8228	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8229  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8230  $echo "local: *; };" >> $output_objdir/$libname.ver~
8231	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8232	fi
8233	link_all_deplibs=no
8234      else
8235	ld_shlibs=no
8236      fi
8237      ;;
8238
8239    netbsd*)
8240      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8241	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8242	wlarc=
8243      else
8244	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8245	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8246      fi
8247      ;;
8248
8249    solaris*)
8250      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8251	ld_shlibs=no
8252	cat <<EOF 1>&2
8253
8254*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8255*** create shared libraries on Solaris systems.  Therefore, libtool
8256*** is disabling shared libraries support.  We urge you to upgrade GNU
8257*** binutils to release 2.9.1 or newer.  Another option is to modify
8258*** your PATH or compiler configuration so that the native linker is
8259*** used, and then restart.
8260
8261EOF
8262      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8263	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8264	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8265      else
8266	ld_shlibs=no
8267      fi
8268      ;;
8269
8270    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8271      case `$LD -v 2>&1` in
8272        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8273	ld_shlibs=no
8274	cat <<_LT_EOF 1>&2
8275
8276*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8277*** reliably create shared libraries on SCO systems.  Therefore, libtool
8278*** is disabling shared libraries support.  We urge you to upgrade GNU
8279*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8280*** your PATH or compiler configuration so that the native linker is
8281*** used, and then restart.
8282
8283_LT_EOF
8284	;;
8285	*)
8286	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8287	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8288	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8289	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8290	  else
8291	    ld_shlibs=no
8292	  fi
8293	;;
8294      esac
8295      ;;
8296
8297    sunos4*)
8298      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8299      wlarc=
8300      hardcode_direct=yes
8301      hardcode_shlibpath_var=no
8302      ;;
8303
8304    *)
8305      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8306	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8307	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8308      else
8309	ld_shlibs=no
8310      fi
8311      ;;
8312    esac
8313
8314    if test "$ld_shlibs" = no; then
8315      runpath_var=
8316      hardcode_libdir_flag_spec=
8317      export_dynamic_flag_spec=
8318      whole_archive_flag_spec=
8319    fi
8320  else
8321    # PORTME fill in a description of your system's linker (not GNU ld)
8322    case $host_os in
8323    aix3*)
8324      allow_undefined_flag=unsupported
8325      always_export_symbols=yes
8326      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'
8327      # Note: this linker hardcodes the directories in LIBPATH if there
8328      # are no directories specified by -L.
8329      hardcode_minus_L=yes
8330      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8331	# Neither direct hardcoding nor static linking is supported with a
8332	# broken collect2.
8333	hardcode_direct=unsupported
8334      fi
8335      ;;
8336
8337    aix[4-9]*)
8338      if test "$host_cpu" = ia64; then
8339	# On IA64, the linker does run time linking by default, so we don't
8340	# have to do anything special.
8341	aix_use_runtimelinking=no
8342	exp_sym_flag='-Bexport'
8343	no_entry_flag=""
8344      else
8345	# If we're using GNU nm, then we don't want the "-C" option.
8346	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8347	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8348	  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'
8349	else
8350	  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'
8351	fi
8352	aix_use_runtimelinking=no
8353
8354	# Test if we are trying to use run time linking or normal
8355	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8356	# need to do runtime linking.
8357	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8358	  for ld_flag in $LDFLAGS; do
8359  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8360  	    aix_use_runtimelinking=yes
8361  	    break
8362  	  fi
8363	  done
8364	  ;;
8365	esac
8366
8367	exp_sym_flag='-bexport'
8368	no_entry_flag='-bnoentry'
8369      fi
8370
8371      # When large executables or shared objects are built, AIX ld can
8372      # have problems creating the table of contents.  If linking a library
8373      # or program results in "error TOC overflow" add -mminimal-toc to
8374      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8375      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8376
8377      archive_cmds=''
8378      hardcode_direct=yes
8379      hardcode_libdir_separator=':'
8380      link_all_deplibs=yes
8381
8382      if test "$GCC" = yes; then
8383	case $host_os in aix4.[012]|aix4.[012].*)
8384	# We only want to do this on AIX 4.2 and lower, the check
8385	# below for broken collect2 doesn't work under 4.3+
8386	  collect2name=`${CC} -print-prog-name=collect2`
8387	  if test -f "$collect2name" && \
8388  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8389	  then
8390  	  # We have reworked collect2
8391  	  :
8392	  else
8393  	  # We have old collect2
8394  	  hardcode_direct=unsupported
8395  	  # It fails to find uninstalled libraries when the uninstalled
8396  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8397  	  # to unsupported forces relinking
8398  	  hardcode_minus_L=yes
8399  	  hardcode_libdir_flag_spec='-L$libdir'
8400  	  hardcode_libdir_separator=
8401	  fi
8402	  ;;
8403	esac
8404	shared_flag='-shared'
8405	if test "$aix_use_runtimelinking" = yes; then
8406	  shared_flag="$shared_flag "'${wl}-G'
8407	fi
8408      else
8409	# not using gcc
8410	if test "$host_cpu" = ia64; then
8411  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8412  	# chokes on -Wl,-G. The following line is correct:
8413	  shared_flag='-G'
8414	else
8415	  if test "$aix_use_runtimelinking" = yes; then
8416	    shared_flag='${wl}-G'
8417	  else
8418	    shared_flag='${wl}-bM:SRE'
8419	  fi
8420	fi
8421      fi
8422
8423      # It seems that -bexpall does not export symbols beginning with
8424      # underscore (_), so it is better to generate a list of symbols to export.
8425      always_export_symbols=yes
8426      if test "$aix_use_runtimelinking" = yes; then
8427	# Warning - without using the other runtime loading flags (-brtl),
8428	# -berok will link without error, but may produce a broken library.
8429	allow_undefined_flag='-berok'
8430       # Determine the default libpath from the value encoded in an empty executable.
8431       cat >conftest.$ac_ext <<_ACEOF
8432/* confdefs.h.  */
8433_ACEOF
8434cat confdefs.h >>conftest.$ac_ext
8435cat >>conftest.$ac_ext <<_ACEOF
8436/* end confdefs.h.  */
8437
8438int
8439main ()
8440{
8441
8442  ;
8443  return 0;
8444}
8445_ACEOF
8446rm -f conftest.$ac_objext conftest$ac_exeext
8447if { (ac_try="$ac_link"
8448case "(($ac_try" in
8449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450  *) ac_try_echo=$ac_try;;
8451esac
8452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8453$as_echo "$ac_try_echo") >&5
8454  (eval "$ac_link") 2>conftest.er1
8455  ac_status=$?
8456  grep -v '^ *+' conftest.er1 >conftest.err
8457  rm -f conftest.er1
8458  cat conftest.err >&5
8459  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460  (exit $ac_status); } && {
8461	 test -z "$ac_c_werror_flag" ||
8462	 test ! -s conftest.err
8463       } && test -s conftest$ac_exeext && {
8464	 test "$cross_compiling" = yes ||
8465	 $as_test_x conftest$ac_exeext
8466       }; then
8467
8468lt_aix_libpath_sed='
8469    /Import File Strings/,/^$/ {
8470	/^0/ {
8471	    s/^0  *\(.*\)$/\1/
8472	    p
8473	}
8474    }'
8475aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8476# Check for a 64-bit object if we didn't find anything.
8477if test -z "$aix_libpath"; then
8478  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8479fi
8480else
8481  $as_echo "$as_me: failed program was:" >&5
8482sed 's/^/| /' conftest.$ac_ext >&5
8483
8484
8485fi
8486
8487rm -rf conftest.dSYM
8488rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8489      conftest$ac_exeext conftest.$ac_ext
8490if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8491
8492       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8493	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"
8494       else
8495	if test "$host_cpu" = ia64; then
8496	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8497	  allow_undefined_flag="-z nodefs"
8498	  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"
8499	else
8500	 # Determine the default libpath from the value encoded in an empty executable.
8501	 cat >conftest.$ac_ext <<_ACEOF
8502/* confdefs.h.  */
8503_ACEOF
8504cat confdefs.h >>conftest.$ac_ext
8505cat >>conftest.$ac_ext <<_ACEOF
8506/* end confdefs.h.  */
8507
8508int
8509main ()
8510{
8511
8512  ;
8513  return 0;
8514}
8515_ACEOF
8516rm -f conftest.$ac_objext conftest$ac_exeext
8517if { (ac_try="$ac_link"
8518case "(($ac_try" in
8519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8520  *) ac_try_echo=$ac_try;;
8521esac
8522eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8523$as_echo "$ac_try_echo") >&5
8524  (eval "$ac_link") 2>conftest.er1
8525  ac_status=$?
8526  grep -v '^ *+' conftest.er1 >conftest.err
8527  rm -f conftest.er1
8528  cat conftest.err >&5
8529  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530  (exit $ac_status); } && {
8531	 test -z "$ac_c_werror_flag" ||
8532	 test ! -s conftest.err
8533       } && test -s conftest$ac_exeext && {
8534	 test "$cross_compiling" = yes ||
8535	 $as_test_x conftest$ac_exeext
8536       }; then
8537
8538lt_aix_libpath_sed='
8539    /Import File Strings/,/^$/ {
8540	/^0/ {
8541	    s/^0  *\(.*\)$/\1/
8542	    p
8543	}
8544    }'
8545aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8546# Check for a 64-bit object if we didn't find anything.
8547if test -z "$aix_libpath"; then
8548  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8549fi
8550else
8551  $as_echo "$as_me: failed program was:" >&5
8552sed 's/^/| /' conftest.$ac_ext >&5
8553
8554
8555fi
8556
8557rm -rf conftest.dSYM
8558rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8559      conftest$ac_exeext conftest.$ac_ext
8560if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8561
8562	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8563	  # Warning - without using the other run time loading flags,
8564	  # -berok will link without error, but may produce a broken library.
8565	  no_undefined_flag=' ${wl}-bernotok'
8566	  allow_undefined_flag=' ${wl}-berok'
8567	  # Exported symbols can be pulled into shared objects from archives
8568	  whole_archive_flag_spec='$convenience'
8569	  archive_cmds_need_lc=yes
8570	  # This is similar to how AIX traditionally builds its shared libraries.
8571	  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'
8572	fi
8573      fi
8574      ;;
8575
8576    amigaos*)
8577      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)'
8578      hardcode_libdir_flag_spec='-L$libdir'
8579      hardcode_minus_L=yes
8580      # see comment about different semantics on the GNU ld section
8581      ld_shlibs=no
8582      ;;
8583
8584    bsdi[45]*)
8585      export_dynamic_flag_spec=-rdynamic
8586      ;;
8587
8588    cygwin* | mingw* | pw32*)
8589      # When not using gcc, we currently assume that we are using
8590      # Microsoft Visual C++.
8591      # hardcode_libdir_flag_spec is actually meaningless, as there is
8592      # no search path for DLLs.
8593      hardcode_libdir_flag_spec=' '
8594      allow_undefined_flag=unsupported
8595      # Tell ltmain to make .lib files, not .a files.
8596      libext=lib
8597      # Tell ltmain to make .dll files, not .so files.
8598      shrext_cmds=".dll"
8599      # FIXME: Setting linknames here is a bad hack.
8600      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8601      # The linker will automatically build a .lib file if we build a DLL.
8602      old_archive_From_new_cmds='true'
8603      # FIXME: Should let the user specify the lib program.
8604      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8605      fix_srcfile_path='`cygpath -w "$srcfile"`'
8606      enable_shared_with_static_runtimes=yes
8607      ;;
8608
8609    darwin* | rhapsody*)
8610      case $host_os in
8611        rhapsody* | darwin1.[012])
8612         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8613         ;;
8614       *) # Darwin 1.3 on
8615         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8616           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8617         else
8618           case ${MACOSX_DEPLOYMENT_TARGET} in
8619             10.[012])
8620               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8621               ;;
8622             10.*)
8623               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8624               ;;
8625           esac
8626         fi
8627         ;;
8628      esac
8629      archive_cmds_need_lc=no
8630      hardcode_direct=no
8631      hardcode_automatic=yes
8632      hardcode_shlibpath_var=unsupported
8633      whole_archive_flag_spec=''
8634      link_all_deplibs=yes
8635    if test "$GCC" = yes ; then
8636    	output_verbose_link_cmd='echo'
8637        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8638        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8639        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}"
8640        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}"
8641    else
8642      case $cc_basename in
8643        xlc*)
8644         output_verbose_link_cmd='echo'
8645         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8646         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8647          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8648         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}'
8649          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}'
8650          ;;
8651       *)
8652         ld_shlibs=no
8653          ;;
8654      esac
8655    fi
8656      ;;
8657
8658    dgux*)
8659      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8660      hardcode_libdir_flag_spec='-L$libdir'
8661      hardcode_shlibpath_var=no
8662      ;;
8663
8664    freebsd1*)
8665      ld_shlibs=no
8666      ;;
8667
8668    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8669    # support.  Future versions do this automatically, but an explicit c++rt0.o
8670    # does not break anything, and helps significantly (at the cost of a little
8671    # extra space).
8672    freebsd2.2*)
8673      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8674      hardcode_libdir_flag_spec='-R$libdir'
8675      hardcode_direct=yes
8676      hardcode_shlibpath_var=no
8677      ;;
8678
8679    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8680    freebsd2*)
8681      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8682      hardcode_direct=yes
8683      hardcode_minus_L=yes
8684      hardcode_shlibpath_var=no
8685      ;;
8686
8687    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8688    freebsd* | dragonfly*)
8689      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8690      hardcode_libdir_flag_spec='-R$libdir'
8691      hardcode_direct=yes
8692      hardcode_shlibpath_var=no
8693      ;;
8694
8695    hpux9*)
8696      if test "$GCC" = yes; then
8697	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'
8698      else
8699	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'
8700      fi
8701      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8702      hardcode_libdir_separator=:
8703      hardcode_direct=yes
8704
8705      # hardcode_minus_L: Not really in the search PATH,
8706      # but as the default location of the library.
8707      hardcode_minus_L=yes
8708      export_dynamic_flag_spec='${wl}-E'
8709      ;;
8710
8711    hpux10*)
8712      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8713	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8714      else
8715	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8716      fi
8717      if test "$with_gnu_ld" = no; then
8718	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8719	hardcode_libdir_separator=:
8720
8721	hardcode_direct=yes
8722	export_dynamic_flag_spec='${wl}-E'
8723
8724	# hardcode_minus_L: Not really in the search PATH,
8725	# but as the default location of the library.
8726	hardcode_minus_L=yes
8727      fi
8728      ;;
8729
8730    hpux11*)
8731      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8732	case $host_cpu in
8733	hppa*64*)
8734	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8735	  ;;
8736	ia64*)
8737	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8738	  ;;
8739	*)
8740	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8741	  ;;
8742	esac
8743      else
8744	case $host_cpu in
8745	hppa*64*)
8746	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8747	  ;;
8748	ia64*)
8749	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8750	  ;;
8751	*)
8752	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8753	  ;;
8754	esac
8755      fi
8756      if test "$with_gnu_ld" = no; then
8757	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8758	hardcode_libdir_separator=:
8759
8760	case $host_cpu in
8761	hppa*64*|ia64*)
8762	  hardcode_libdir_flag_spec_ld='+b $libdir'
8763	  hardcode_direct=no
8764	  hardcode_shlibpath_var=no
8765	  ;;
8766	*)
8767	  hardcode_direct=yes
8768	  export_dynamic_flag_spec='${wl}-E'
8769
8770	  # hardcode_minus_L: Not really in the search PATH,
8771	  # but as the default location of the library.
8772	  hardcode_minus_L=yes
8773	  ;;
8774	esac
8775      fi
8776      ;;
8777
8778    irix5* | irix6* | nonstopux*)
8779      if test "$GCC" = yes; then
8780	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'
8781      else
8782	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'
8783	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8784      fi
8785      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8786      hardcode_libdir_separator=:
8787      link_all_deplibs=yes
8788      ;;
8789
8790    netbsd*)
8791      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8792	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8793      else
8794	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8795      fi
8796      hardcode_libdir_flag_spec='-R$libdir'
8797      hardcode_direct=yes
8798      hardcode_shlibpath_var=no
8799      ;;
8800
8801    newsos6)
8802      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8803      hardcode_direct=yes
8804      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8805      hardcode_libdir_separator=:
8806      hardcode_shlibpath_var=no
8807      ;;
8808
8809    openbsd*)
8810      if test -f /usr/libexec/ld.so; then
8811	hardcode_direct=yes
8812	hardcode_shlibpath_var=no
8813	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8814	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8815	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8816	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8817	  export_dynamic_flag_spec='${wl}-E'
8818	else
8819	  case $host_os in
8820	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8821	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8822	     hardcode_libdir_flag_spec='-R$libdir'
8823	     ;;
8824	   *)
8825	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8826	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8827	     ;;
8828	  esac
8829        fi
8830      else
8831	ld_shlibs=no
8832      fi
8833      ;;
8834
8835    os2*)
8836      hardcode_libdir_flag_spec='-L$libdir'
8837      hardcode_minus_L=yes
8838      allow_undefined_flag=unsupported
8839      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'
8840      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8841      ;;
8842
8843    osf3*)
8844      if test "$GCC" = yes; then
8845	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8846	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'
8847      else
8848	allow_undefined_flag=' -expect_unresolved \*'
8849	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'
8850      fi
8851      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8852      hardcode_libdir_separator=:
8853      ;;
8854
8855    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8856      if test "$GCC" = yes; then
8857	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8858	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'
8859	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8860      else
8861	allow_undefined_flag=' -expect_unresolved \*'
8862	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'
8863	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8864	$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'
8865
8866	# Both c and cxx compiler support -rpath directly
8867	hardcode_libdir_flag_spec='-rpath $libdir'
8868      fi
8869      hardcode_libdir_separator=:
8870      ;;
8871
8872    solaris*)
8873      no_undefined_flag=' -z text'
8874      if test "$GCC" = yes; then
8875	wlarc='${wl}'
8876	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8877	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8878	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8879      else
8880	wlarc=''
8881	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8882	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8883  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8884      fi
8885      hardcode_libdir_flag_spec='-R$libdir'
8886      hardcode_shlibpath_var=no
8887      case $host_os in
8888      solaris2.[0-5] | solaris2.[0-5].*) ;;
8889      *)
8890	# The compiler driver will combine and reorder linker options,
8891	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8892	# but is careful enough not to reorder.
8893 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8894	if test "$GCC" = yes; then
8895	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8896	else
8897	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8898	fi
8899	;;
8900      esac
8901      link_all_deplibs=yes
8902      ;;
8903
8904    sunos4*)
8905      if test "x$host_vendor" = xsequent; then
8906	# Use $CC to link under sequent, because it throws in some extra .o
8907	# files that make .init and .fini sections work.
8908	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8909      else
8910	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8911      fi
8912      hardcode_libdir_flag_spec='-L$libdir'
8913      hardcode_direct=yes
8914      hardcode_minus_L=yes
8915      hardcode_shlibpath_var=no
8916      ;;
8917
8918    sysv4)
8919      case $host_vendor in
8920	sni)
8921	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922	  hardcode_direct=yes # is this really true???
8923	;;
8924	siemens)
8925	  ## LD is ld it makes a PLAMLIB
8926	  ## CC just makes a GrossModule.
8927	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8928	  reload_cmds='$CC -r -o $output$reload_objs'
8929	  hardcode_direct=no
8930        ;;
8931	motorola)
8932	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8934	;;
8935      esac
8936      runpath_var='LD_RUN_PATH'
8937      hardcode_shlibpath_var=no
8938      ;;
8939
8940    sysv4.3*)
8941      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8942      hardcode_shlibpath_var=no
8943      export_dynamic_flag_spec='-Bexport'
8944      ;;
8945
8946    sysv4*MP*)
8947      if test -d /usr/nec; then
8948	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8949	hardcode_shlibpath_var=no
8950	runpath_var=LD_RUN_PATH
8951	hardcode_runpath_var=yes
8952	ld_shlibs=yes
8953      fi
8954      ;;
8955
8956    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8957      no_undefined_flag='${wl}-z,text'
8958      archive_cmds_need_lc=no
8959      hardcode_shlibpath_var=no
8960      runpath_var='LD_RUN_PATH'
8961
8962      if test "$GCC" = yes; then
8963	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8964	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8965      else
8966	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8967	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8968      fi
8969      ;;
8970
8971    sysv5* | sco3.2v5* | sco5v6*)
8972      # Note: We can NOT use -z defs as we might desire, because we do not
8973      # link with -lc, and that would cause any symbols used from libc to
8974      # always be unresolved, which means just about no library would
8975      # ever link correctly.  If we're not using GNU ld we use -z text
8976      # though, which does catch some bad symbols but isn't as heavy-handed
8977      # as -z defs.
8978      no_undefined_flag='${wl}-z,text'
8979      allow_undefined_flag='${wl}-z,nodefs'
8980      archive_cmds_need_lc=no
8981      hardcode_shlibpath_var=no
8982      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8983      hardcode_libdir_separator=':'
8984      link_all_deplibs=yes
8985      export_dynamic_flag_spec='${wl}-Bexport'
8986      runpath_var='LD_RUN_PATH'
8987
8988      if test "$GCC" = yes; then
8989	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8990	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8991      else
8992	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8993	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8994      fi
8995      ;;
8996
8997    uts4*)
8998      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8999      hardcode_libdir_flag_spec='-L$libdir'
9000      hardcode_shlibpath_var=no
9001      ;;
9002
9003    *)
9004      ld_shlibs=no
9005      ;;
9006    esac
9007  fi
9008
9009{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9010$as_echo "$ld_shlibs" >&6; }
9011test "$ld_shlibs" = no && can_build_shared=no
9012
9013#
9014# Do we need to explicitly link libc?
9015#
9016case "x$archive_cmds_need_lc" in
9017x|xyes)
9018  # Assume -lc should be added
9019  archive_cmds_need_lc=yes
9020
9021  if test "$enable_shared" = yes && test "$GCC" = yes; then
9022    case $archive_cmds in
9023    *'~'*)
9024      # FIXME: we may have to deal with multi-command sequences.
9025      ;;
9026    '$CC '*)
9027      # Test whether the compiler implicitly links with -lc since on some
9028      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9029      # to ld, don't add -lc before -lgcc.
9030      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9031$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9032      $rm conftest*
9033      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9034
9035      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9036  (eval $ac_compile) 2>&5
9037  ac_status=$?
9038  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039  (exit $ac_status); } 2>conftest.err; then
9040        soname=conftest
9041        lib=conftest
9042        libobjs=conftest.$ac_objext
9043        deplibs=
9044        wl=$lt_prog_compiler_wl
9045	pic_flag=$lt_prog_compiler_pic
9046        compiler_flags=-v
9047        linker_flags=-v
9048        verstring=
9049        output_objdir=.
9050        libname=conftest
9051        lt_save_allow_undefined_flag=$allow_undefined_flag
9052        allow_undefined_flag=
9053        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9054  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9055  ac_status=$?
9056  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057  (exit $ac_status); }
9058        then
9059	  archive_cmds_need_lc=no
9060        else
9061	  archive_cmds_need_lc=yes
9062        fi
9063        allow_undefined_flag=$lt_save_allow_undefined_flag
9064      else
9065        cat conftest.err 1>&5
9066      fi
9067      $rm conftest*
9068      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9069$as_echo "$archive_cmds_need_lc" >&6; }
9070      ;;
9071    esac
9072  fi
9073  ;;
9074esac
9075
9076{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9077$as_echo_n "checking dynamic linker characteristics... " >&6; }
9078library_names_spec=
9079libname_spec='lib$name'
9080soname_spec=
9081shrext_cmds=".so"
9082postinstall_cmds=
9083postuninstall_cmds=
9084finish_cmds=
9085finish_eval=
9086shlibpath_var=
9087shlibpath_overrides_runpath=unknown
9088version_type=none
9089dynamic_linker="$host_os ld.so"
9090sys_lib_dlsearch_path_spec="/lib /usr/lib"
9091
9092if test "$GCC" = yes; then
9093  case $host_os in
9094    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9095    *) lt_awk_arg="/^libraries:/" ;;
9096  esac
9097  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9098  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9099    # if the path contains ";" then we assume it to be the separator
9100    # otherwise default to the standard path separator (i.e. ":") - it is
9101    # assumed that no part of a normal pathname contains ";" but that should
9102    # okay in the real world where ";" in dirpaths is itself problematic.
9103    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9104  else
9105    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9106  fi
9107  # Ok, now we have the path, separated by spaces, we can step through it
9108  # and add multilib dir if necessary.
9109  lt_tmp_lt_search_path_spec=
9110  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9111  for lt_sys_path in $lt_search_path_spec; do
9112    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9113      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9114    else
9115      test -d "$lt_sys_path" && \
9116	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9117    fi
9118  done
9119  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9120BEGIN {RS=" "; FS="/|\n";} {
9121  lt_foo="";
9122  lt_count=0;
9123  for (lt_i = NF; lt_i > 0; lt_i--) {
9124    if ($lt_i != "" && $lt_i != ".") {
9125      if ($lt_i == "..") {
9126        lt_count++;
9127      } else {
9128        if (lt_count == 0) {
9129          lt_foo="/" $lt_i lt_foo;
9130        } else {
9131          lt_count--;
9132        }
9133      }
9134    }
9135  }
9136  if (lt_foo != "") { lt_freq[lt_foo]++; }
9137  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9138}'`
9139  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9140else
9141  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9142fi
9143need_lib_prefix=unknown
9144hardcode_into_libs=no
9145
9146# when you set need_version to no, make sure it does not cause -set_version
9147# flags to be left without arguments
9148need_version=unknown
9149
9150case $host_os in
9151aix3*)
9152  version_type=linux
9153  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9154  shlibpath_var=LIBPATH
9155
9156  # AIX 3 has no versioning support, so we append a major version to the name.
9157  soname_spec='${libname}${release}${shared_ext}$major'
9158  ;;
9159
9160aix[4-9]*)
9161  version_type=linux
9162  need_lib_prefix=no
9163  need_version=no
9164  hardcode_into_libs=yes
9165  if test "$host_cpu" = ia64; then
9166    # AIX 5 supports IA64
9167    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9168    shlibpath_var=LD_LIBRARY_PATH
9169  else
9170    # With GCC up to 2.95.x, collect2 would create an import file
9171    # for dependence libraries.  The import file would start with
9172    # the line `#! .'.  This would cause the generated library to
9173    # depend on `.', always an invalid library.  This was fixed in
9174    # development snapshots of GCC prior to 3.0.
9175    case $host_os in
9176      aix4 | aix4.[01] | aix4.[01].*)
9177      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9178	   echo ' yes '
9179	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9180	:
9181      else
9182	can_build_shared=no
9183      fi
9184      ;;
9185    esac
9186    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9187    # soname into executable. Probably we can add versioning support to
9188    # collect2, so additional links can be useful in future.
9189    if test "$aix_use_runtimelinking" = yes; then
9190      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9191      # instead of lib<name>.a to let people know that these are not
9192      # typical AIX shared libraries.
9193      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9194    else
9195      # We preserve .a as extension for shared libraries through AIX4.2
9196      # and later when we are not doing run time linking.
9197      library_names_spec='${libname}${release}.a $libname.a'
9198      soname_spec='${libname}${release}${shared_ext}$major'
9199    fi
9200    shlibpath_var=LIBPATH
9201  fi
9202  ;;
9203
9204amigaos*)
9205  library_names_spec='$libname.ixlibrary $libname.a'
9206  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9207  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'
9208  ;;
9209
9210beos*)
9211  library_names_spec='${libname}${shared_ext}'
9212  dynamic_linker="$host_os ld.so"
9213  shlibpath_var=LIBRARY_PATH
9214  ;;
9215
9216bsdi[45]*)
9217  version_type=linux
9218  need_version=no
9219  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9220  soname_spec='${libname}${release}${shared_ext}$major'
9221  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9222  shlibpath_var=LD_LIBRARY_PATH
9223  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9224  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9225  # the default ld.so.conf also contains /usr/contrib/lib and
9226  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9227  # libtool to hard-code these into programs
9228  ;;
9229
9230cygwin* | mingw* | pw32*)
9231  version_type=windows
9232  shrext_cmds=".dll"
9233  need_version=no
9234  need_lib_prefix=no
9235
9236  case $GCC,$host_os in
9237  yes,cygwin* | yes,mingw* | yes,pw32*)
9238    library_names_spec='$libname.dll.a'
9239    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9240    postinstall_cmds='base_file=`basename \${file}`~
9241      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9242      dldir=$destdir/`dirname \$dlpath`~
9243      test -d \$dldir || mkdir -p \$dldir~
9244      $install_prog $dir/$dlname \$dldir/$dlname~
9245      chmod a+x \$dldir/$dlname'
9246    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9247      dlpath=$dir/\$dldll~
9248       $rm \$dlpath'
9249    shlibpath_overrides_runpath=yes
9250
9251    case $host_os in
9252    cygwin*)
9253      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9254      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9255      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9256      ;;
9257    mingw*)
9258      # MinGW DLLs use traditional 'lib' prefix
9259      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9260      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9261      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9262        # It is most probably a Windows format PATH printed by
9263        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9264        # path with ; separators, and with drive letters. We can handle the
9265        # drive letters (cygwin fileutils understands them), so leave them,
9266        # especially as we might pass files found there to a mingw objdump,
9267        # which wouldn't understand a cygwinified path. Ahh.
9268        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9269      else
9270        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9271      fi
9272      ;;
9273    pw32*)
9274      # pw32 DLLs use 'pw' prefix rather than 'lib'
9275      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9276      ;;
9277    esac
9278    ;;
9279
9280  *)
9281    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9282    ;;
9283  esac
9284  dynamic_linker='Win32 ld.exe'
9285  # FIXME: first we should search . and the directory the executable is in
9286  shlibpath_var=PATH
9287  ;;
9288
9289darwin* | rhapsody*)
9290  dynamic_linker="$host_os dyld"
9291  version_type=darwin
9292  need_lib_prefix=no
9293  need_version=no
9294  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9295  soname_spec='${libname}${release}${major}$shared_ext'
9296  shlibpath_overrides_runpath=yes
9297  shlibpath_var=DYLD_LIBRARY_PATH
9298  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9299
9300  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9301  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9302  ;;
9303
9304dgux*)
9305  version_type=linux
9306  need_lib_prefix=no
9307  need_version=no
9308  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9309  soname_spec='${libname}${release}${shared_ext}$major'
9310  shlibpath_var=LD_LIBRARY_PATH
9311  ;;
9312
9313freebsd1*)
9314  dynamic_linker=no
9315  ;;
9316
9317freebsd* | dragonfly*)
9318  # DragonFly does not have aout.  When/if they implement a new
9319  # versioning mechanism, adjust this.
9320  if test -x /usr/bin/objformat; then
9321    objformat=`/usr/bin/objformat`
9322  else
9323    case $host_os in
9324    freebsd[123]*) objformat=aout ;;
9325    *) objformat=elf ;;
9326    esac
9327  fi
9328  version_type=freebsd-$objformat
9329  case $version_type in
9330    freebsd-elf*)
9331      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9332      need_version=no
9333      need_lib_prefix=no
9334      ;;
9335    freebsd-*)
9336      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9337      need_version=yes
9338      ;;
9339  esac
9340  shlibpath_var=LD_LIBRARY_PATH
9341  case $host_os in
9342  freebsd2*)
9343    shlibpath_overrides_runpath=yes
9344    ;;
9345  freebsd3.[01]* | freebsdelf3.[01]*)
9346    shlibpath_overrides_runpath=yes
9347    hardcode_into_libs=yes
9348    ;;
9349  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9350  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9351    shlibpath_overrides_runpath=no
9352    hardcode_into_libs=yes
9353    ;;
9354  *) # from 4.6 on, and DragonFly
9355    shlibpath_overrides_runpath=yes
9356    hardcode_into_libs=yes
9357    ;;
9358  esac
9359  ;;
9360
9361gnu*)
9362  version_type=linux
9363  need_lib_prefix=no
9364  need_version=no
9365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9366  soname_spec='${libname}${release}${shared_ext}$major'
9367  shlibpath_var=LD_LIBRARY_PATH
9368  hardcode_into_libs=yes
9369  ;;
9370
9371hpux9* | hpux10* | hpux11*)
9372  # Give a soname corresponding to the major version so that dld.sl refuses to
9373  # link against other versions.
9374  version_type=sunos
9375  need_lib_prefix=no
9376  need_version=no
9377  case $host_cpu in
9378  ia64*)
9379    shrext_cmds='.so'
9380    hardcode_into_libs=yes
9381    dynamic_linker="$host_os dld.so"
9382    shlibpath_var=LD_LIBRARY_PATH
9383    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9384    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9385    soname_spec='${libname}${release}${shared_ext}$major'
9386    if test "X$HPUX_IA64_MODE" = X32; then
9387      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9388    else
9389      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9390    fi
9391    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9392    ;;
9393   hppa*64*)
9394     shrext_cmds='.sl'
9395     hardcode_into_libs=yes
9396     dynamic_linker="$host_os dld.sl"
9397     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9398     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9399     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9400     soname_spec='${libname}${release}${shared_ext}$major'
9401     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9402     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9403     ;;
9404   *)
9405    shrext_cmds='.sl'
9406    dynamic_linker="$host_os dld.sl"
9407    shlibpath_var=SHLIB_PATH
9408    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9409    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9410    soname_spec='${libname}${release}${shared_ext}$major'
9411    ;;
9412  esac
9413  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9414  postinstall_cmds='chmod 555 $lib'
9415  ;;
9416
9417interix[3-9]*)
9418  version_type=linux
9419  need_lib_prefix=no
9420  need_version=no
9421  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9422  soname_spec='${libname}${release}${shared_ext}$major'
9423  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9424  shlibpath_var=LD_LIBRARY_PATH
9425  shlibpath_overrides_runpath=no
9426  hardcode_into_libs=yes
9427  ;;
9428
9429irix5* | irix6* | nonstopux*)
9430  case $host_os in
9431    nonstopux*) version_type=nonstopux ;;
9432    *)
9433	if test "$lt_cv_prog_gnu_ld" = yes; then
9434		version_type=linux
9435	else
9436		version_type=irix
9437	fi ;;
9438  esac
9439  need_lib_prefix=no
9440  need_version=no
9441  soname_spec='${libname}${release}${shared_ext}$major'
9442  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9443  case $host_os in
9444  irix5* | nonstopux*)
9445    libsuff= shlibsuff=
9446    ;;
9447  *)
9448    case $LD in # libtool.m4 will add one of these switches to LD
9449    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9450      libsuff= shlibsuff= libmagic=32-bit;;
9451    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9452      libsuff=32 shlibsuff=N32 libmagic=N32;;
9453    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9454      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9455    *) libsuff= shlibsuff= libmagic=never-match;;
9456    esac
9457    ;;
9458  esac
9459  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9460  shlibpath_overrides_runpath=no
9461  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9462  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9463  hardcode_into_libs=yes
9464  ;;
9465
9466# No shared lib support for Linux oldld, aout, or coff.
9467linux*oldld* | linux*aout* | linux*coff*)
9468  dynamic_linker=no
9469  ;;
9470
9471# This must be Linux ELF.
9472linux* | k*bsd*-gnu)
9473  version_type=linux
9474  need_lib_prefix=no
9475  need_version=no
9476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9477  soname_spec='${libname}${release}${shared_ext}$major'
9478  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9479  shlibpath_var=LD_LIBRARY_PATH
9480  shlibpath_overrides_runpath=no
9481  # This implies no fast_install, which is unacceptable.
9482  # Some rework will be needed to allow for fast_install
9483  # before this can be enabled.
9484  hardcode_into_libs=yes
9485
9486  # find out which ABI we are using
9487  libsuff=
9488  case "$host_cpu" in
9489  x86_64*|s390x*|powerpc64*)
9490    echo '#line 9490 "configure"' > conftest.$ac_ext
9491    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9492  (eval $ac_compile) 2>&5
9493  ac_status=$?
9494  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495  (exit $ac_status); }; then
9496      case `/usr/bin/file conftest.$ac_objext` in
9497      *64-bit*)
9498        libsuff=64
9499        ;;
9500      esac
9501    fi
9502    rm -rf conftest*
9503    ;;
9504  esac
9505
9506  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
9507
9508  # Append ld.so.conf contents to the search path
9509  if test -f /etc/ld.so.conf; then
9510    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' ' '`
9511    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9512  fi
9513
9514  # We used to test for /lib/ld.so.1 and disable shared libraries on
9515  # powerpc, because MkLinux only supported shared libraries with the
9516  # GNU dynamic linker.  Since this was broken with cross compilers,
9517  # most powerpc-linux boxes support dynamic linking these days and
9518  # people can always --disable-shared, the test was removed, and we
9519  # assume the GNU/Linux dynamic linker is in use.
9520  dynamic_linker='GNU/Linux ld.so'
9521  ;;
9522
9523netbsd*)
9524  version_type=sunos
9525  need_lib_prefix=no
9526  need_version=no
9527  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9528    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9529    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9530    dynamic_linker='NetBSD (a.out) ld.so'
9531  else
9532    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9533    soname_spec='${libname}${release}${shared_ext}$major'
9534    dynamic_linker='NetBSD ld.elf_so'
9535  fi
9536  shlibpath_var=LD_LIBRARY_PATH
9537  shlibpath_overrides_runpath=yes
9538  hardcode_into_libs=yes
9539  ;;
9540
9541newsos6)
9542  version_type=linux
9543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9544  shlibpath_var=LD_LIBRARY_PATH
9545  shlibpath_overrides_runpath=yes
9546  ;;
9547
9548nto-qnx*)
9549  version_type=linux
9550  need_lib_prefix=no
9551  need_version=no
9552  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9553  soname_spec='${libname}${release}${shared_ext}$major'
9554  shlibpath_var=LD_LIBRARY_PATH
9555  shlibpath_overrides_runpath=yes
9556  ;;
9557
9558openbsd*)
9559  version_type=sunos
9560  sys_lib_dlsearch_path_spec="/usr/lib"
9561  need_lib_prefix=no
9562  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9563  case $host_os in
9564    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9565    *)                         need_version=no  ;;
9566  esac
9567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9568  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9569  shlibpath_var=LD_LIBRARY_PATH
9570  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9571    case $host_os in
9572      openbsd2.[89] | openbsd2.[89].*)
9573	shlibpath_overrides_runpath=no
9574	;;
9575      *)
9576	shlibpath_overrides_runpath=yes
9577	;;
9578      esac
9579  else
9580    shlibpath_overrides_runpath=yes
9581  fi
9582  ;;
9583
9584os2*)
9585  libname_spec='$name'
9586  shrext_cmds=".dll"
9587  need_lib_prefix=no
9588  library_names_spec='$libname${shared_ext} $libname.a'
9589  dynamic_linker='OS/2 ld.exe'
9590  shlibpath_var=LIBPATH
9591  ;;
9592
9593osf3* | osf4* | osf5*)
9594  version_type=osf
9595  need_lib_prefix=no
9596  need_version=no
9597  soname_spec='${libname}${release}${shared_ext}$major'
9598  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599  shlibpath_var=LD_LIBRARY_PATH
9600  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9601  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9602  ;;
9603
9604rdos*)
9605  dynamic_linker=no
9606  ;;
9607
9608solaris*)
9609  version_type=linux
9610  need_lib_prefix=no
9611  need_version=no
9612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9613  soname_spec='${libname}${release}${shared_ext}$major'
9614  shlibpath_var=LD_LIBRARY_PATH
9615  shlibpath_overrides_runpath=yes
9616  hardcode_into_libs=yes
9617  # ldd complains unless libraries are executable
9618  postinstall_cmds='chmod +x $lib'
9619  ;;
9620
9621sunos4*)
9622  version_type=sunos
9623  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9624  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9625  shlibpath_var=LD_LIBRARY_PATH
9626  shlibpath_overrides_runpath=yes
9627  if test "$with_gnu_ld" = yes; then
9628    need_lib_prefix=no
9629  fi
9630  need_version=yes
9631  ;;
9632
9633sysv4 | sysv4.3*)
9634  version_type=linux
9635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9636  soname_spec='${libname}${release}${shared_ext}$major'
9637  shlibpath_var=LD_LIBRARY_PATH
9638  case $host_vendor in
9639    sni)
9640      shlibpath_overrides_runpath=no
9641      need_lib_prefix=no
9642      export_dynamic_flag_spec='${wl}-Blargedynsym'
9643      runpath_var=LD_RUN_PATH
9644      ;;
9645    siemens)
9646      need_lib_prefix=no
9647      ;;
9648    motorola)
9649      need_lib_prefix=no
9650      need_version=no
9651      shlibpath_overrides_runpath=no
9652      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9653      ;;
9654  esac
9655  ;;
9656
9657sysv4*MP*)
9658  if test -d /usr/nec ;then
9659    version_type=linux
9660    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9661    soname_spec='$libname${shared_ext}.$major'
9662    shlibpath_var=LD_LIBRARY_PATH
9663  fi
9664  ;;
9665
9666sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9667  version_type=freebsd-elf
9668  need_lib_prefix=no
9669  need_version=no
9670  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9671  soname_spec='${libname}${release}${shared_ext}$major'
9672  shlibpath_var=LD_LIBRARY_PATH
9673  hardcode_into_libs=yes
9674  if test "$with_gnu_ld" = yes; then
9675    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9676    shlibpath_overrides_runpath=no
9677  else
9678    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9679    shlibpath_overrides_runpath=yes
9680    case $host_os in
9681      sco3.2v5*)
9682        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9683	;;
9684    esac
9685  fi
9686  sys_lib_dlsearch_path_spec='/usr/lib'
9687  ;;
9688
9689uts4*)
9690  version_type=linux
9691  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9692  soname_spec='${libname}${release}${shared_ext}$major'
9693  shlibpath_var=LD_LIBRARY_PATH
9694  ;;
9695
9696*)
9697  dynamic_linker=no
9698  ;;
9699esac
9700{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9701$as_echo "$dynamic_linker" >&6; }
9702test "$dynamic_linker" = no && can_build_shared=no
9703
9704if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9705  $as_echo_n "(cached) " >&6
9706else
9707  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9708fi
9709
9710sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9711if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9712  $as_echo_n "(cached) " >&6
9713else
9714  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9715fi
9716
9717sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9718
9719variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9720if test "$GCC" = yes; then
9721  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9722fi
9723
9724{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9725$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9726hardcode_action=
9727if test -n "$hardcode_libdir_flag_spec" || \
9728   test -n "$runpath_var" || \
9729   test "X$hardcode_automatic" = "Xyes" ; then
9730
9731  # We can hardcode non-existant directories.
9732  if test "$hardcode_direct" != no &&
9733     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9734     # have to relink, otherwise we might link with an installed library
9735     # when we should be linking with a yet-to-be-installed one
9736     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9737     test "$hardcode_minus_L" != no; then
9738    # Linking always hardcodes the temporary library directory.
9739    hardcode_action=relink
9740  else
9741    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9742    hardcode_action=immediate
9743  fi
9744else
9745  # We cannot hardcode anything, or else we can only hardcode existing
9746  # directories.
9747  hardcode_action=unsupported
9748fi
9749{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9750$as_echo "$hardcode_action" >&6; }
9751
9752if test "$hardcode_action" = relink; then
9753  # Fast installation is not supported
9754  enable_fast_install=no
9755elif test "$shlibpath_overrides_runpath" = yes ||
9756     test "$enable_shared" = no; then
9757  # Fast installation is not necessary
9758  enable_fast_install=needless
9759fi
9760
9761striplib=
9762old_striplib=
9763{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9764$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9765if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9766  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9767  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9768  { $as_echo "$as_me:$LINENO: result: yes" >&5
9769$as_echo "yes" >&6; }
9770else
9771# FIXME - insert some real tests, host_os isn't really good enough
9772  case $host_os in
9773   darwin*)
9774       if test -n "$STRIP" ; then
9775         striplib="$STRIP -x"
9776         old_striplib="$STRIP -S"
9777         { $as_echo "$as_me:$LINENO: result: yes" >&5
9778$as_echo "yes" >&6; }
9779       else
9780  { $as_echo "$as_me:$LINENO: result: no" >&5
9781$as_echo "no" >&6; }
9782fi
9783       ;;
9784   *)
9785  { $as_echo "$as_me:$LINENO: result: no" >&5
9786$as_echo "no" >&6; }
9787    ;;
9788  esac
9789fi
9790
9791if test "x$enable_dlopen" != xyes; then
9792  enable_dlopen=unknown
9793  enable_dlopen_self=unknown
9794  enable_dlopen_self_static=unknown
9795else
9796  lt_cv_dlopen=no
9797  lt_cv_dlopen_libs=
9798
9799  case $host_os in
9800  beos*)
9801    lt_cv_dlopen="load_add_on"
9802    lt_cv_dlopen_libs=
9803    lt_cv_dlopen_self=yes
9804    ;;
9805
9806  mingw* | pw32*)
9807    lt_cv_dlopen="LoadLibrary"
9808    lt_cv_dlopen_libs=
9809   ;;
9810
9811  cygwin*)
9812    lt_cv_dlopen="dlopen"
9813    lt_cv_dlopen_libs=
9814   ;;
9815
9816  darwin*)
9817  # if libdl is installed we need to link against it
9818    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9819$as_echo_n "checking for dlopen in -ldl... " >&6; }
9820if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9821  $as_echo_n "(cached) " >&6
9822else
9823  ac_check_lib_save_LIBS=$LIBS
9824LIBS="-ldl  $LIBS"
9825cat >conftest.$ac_ext <<_ACEOF
9826/* confdefs.h.  */
9827_ACEOF
9828cat confdefs.h >>conftest.$ac_ext
9829cat >>conftest.$ac_ext <<_ACEOF
9830/* end confdefs.h.  */
9831
9832/* Override any GCC internal prototype to avoid an error.
9833   Use char because int might match the return type of a GCC
9834   builtin and then its argument prototype would still apply.  */
9835#ifdef __cplusplus
9836extern "C"
9837#endif
9838char dlopen ();
9839int
9840main ()
9841{
9842return dlopen ();
9843  ;
9844  return 0;
9845}
9846_ACEOF
9847rm -f conftest.$ac_objext conftest$ac_exeext
9848if { (ac_try="$ac_link"
9849case "(($ac_try" in
9850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9851  *) ac_try_echo=$ac_try;;
9852esac
9853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9854$as_echo "$ac_try_echo") >&5
9855  (eval "$ac_link") 2>conftest.er1
9856  ac_status=$?
9857  grep -v '^ *+' conftest.er1 >conftest.err
9858  rm -f conftest.er1
9859  cat conftest.err >&5
9860  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861  (exit $ac_status); } && {
9862	 test -z "$ac_c_werror_flag" ||
9863	 test ! -s conftest.err
9864       } && test -s conftest$ac_exeext && {
9865	 test "$cross_compiling" = yes ||
9866	 $as_test_x conftest$ac_exeext
9867       }; then
9868  ac_cv_lib_dl_dlopen=yes
9869else
9870  $as_echo "$as_me: failed program was:" >&5
9871sed 's/^/| /' conftest.$ac_ext >&5
9872
9873	ac_cv_lib_dl_dlopen=no
9874fi
9875
9876rm -rf conftest.dSYM
9877rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9878      conftest$ac_exeext conftest.$ac_ext
9879LIBS=$ac_check_lib_save_LIBS
9880fi
9881{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9882$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9883if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9884  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9885else
9886
9887    lt_cv_dlopen="dyld"
9888    lt_cv_dlopen_libs=
9889    lt_cv_dlopen_self=yes
9890
9891fi
9892
9893   ;;
9894
9895  *)
9896    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9897$as_echo_n "checking for shl_load... " >&6; }
9898if test "${ac_cv_func_shl_load+set}" = set; then
9899  $as_echo_n "(cached) " >&6
9900else
9901  cat >conftest.$ac_ext <<_ACEOF
9902/* confdefs.h.  */
9903_ACEOF
9904cat confdefs.h >>conftest.$ac_ext
9905cat >>conftest.$ac_ext <<_ACEOF
9906/* end confdefs.h.  */
9907/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9908   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9909#define shl_load innocuous_shl_load
9910
9911/* System header to define __stub macros and hopefully few prototypes,
9912    which can conflict with char shl_load (); below.
9913    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9914    <limits.h> exists even on freestanding compilers.  */
9915
9916#ifdef __STDC__
9917# include <limits.h>
9918#else
9919# include <assert.h>
9920#endif
9921
9922#undef shl_load
9923
9924/* Override any GCC internal prototype to avoid an error.
9925   Use char because int might match the return type of a GCC
9926   builtin and then its argument prototype would still apply.  */
9927#ifdef __cplusplus
9928extern "C"
9929#endif
9930char shl_load ();
9931/* The GNU C library defines this for functions which it implements
9932    to always fail with ENOSYS.  Some functions are actually named
9933    something starting with __ and the normal name is an alias.  */
9934#if defined __stub_shl_load || defined __stub___shl_load
9935choke me
9936#endif
9937
9938int
9939main ()
9940{
9941return shl_load ();
9942  ;
9943  return 0;
9944}
9945_ACEOF
9946rm -f conftest.$ac_objext conftest$ac_exeext
9947if { (ac_try="$ac_link"
9948case "(($ac_try" in
9949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950  *) ac_try_echo=$ac_try;;
9951esac
9952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9953$as_echo "$ac_try_echo") >&5
9954  (eval "$ac_link") 2>conftest.er1
9955  ac_status=$?
9956  grep -v '^ *+' conftest.er1 >conftest.err
9957  rm -f conftest.er1
9958  cat conftest.err >&5
9959  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960  (exit $ac_status); } && {
9961	 test -z "$ac_c_werror_flag" ||
9962	 test ! -s conftest.err
9963       } && test -s conftest$ac_exeext && {
9964	 test "$cross_compiling" = yes ||
9965	 $as_test_x conftest$ac_exeext
9966       }; then
9967  ac_cv_func_shl_load=yes
9968else
9969  $as_echo "$as_me: failed program was:" >&5
9970sed 's/^/| /' conftest.$ac_ext >&5
9971
9972	ac_cv_func_shl_load=no
9973fi
9974
9975rm -rf conftest.dSYM
9976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9977      conftest$ac_exeext conftest.$ac_ext
9978fi
9979{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9980$as_echo "$ac_cv_func_shl_load" >&6; }
9981if test "x$ac_cv_func_shl_load" = x""yes; then
9982  lt_cv_dlopen="shl_load"
9983else
9984  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9985$as_echo_n "checking for shl_load in -ldld... " >&6; }
9986if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9987  $as_echo_n "(cached) " >&6
9988else
9989  ac_check_lib_save_LIBS=$LIBS
9990LIBS="-ldld  $LIBS"
9991cat >conftest.$ac_ext <<_ACEOF
9992/* confdefs.h.  */
9993_ACEOF
9994cat confdefs.h >>conftest.$ac_ext
9995cat >>conftest.$ac_ext <<_ACEOF
9996/* end confdefs.h.  */
9997
9998/* Override any GCC internal prototype to avoid an error.
9999   Use char because int might match the return type of a GCC
10000   builtin and then its argument prototype would still apply.  */
10001#ifdef __cplusplus
10002extern "C"
10003#endif
10004char shl_load ();
10005int
10006main ()
10007{
10008return shl_load ();
10009  ;
10010  return 0;
10011}
10012_ACEOF
10013rm -f conftest.$ac_objext conftest$ac_exeext
10014if { (ac_try="$ac_link"
10015case "(($ac_try" in
10016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017  *) ac_try_echo=$ac_try;;
10018esac
10019eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10020$as_echo "$ac_try_echo") >&5
10021  (eval "$ac_link") 2>conftest.er1
10022  ac_status=$?
10023  grep -v '^ *+' conftest.er1 >conftest.err
10024  rm -f conftest.er1
10025  cat conftest.err >&5
10026  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027  (exit $ac_status); } && {
10028	 test -z "$ac_c_werror_flag" ||
10029	 test ! -s conftest.err
10030       } && test -s conftest$ac_exeext && {
10031	 test "$cross_compiling" = yes ||
10032	 $as_test_x conftest$ac_exeext
10033       }; then
10034  ac_cv_lib_dld_shl_load=yes
10035else
10036  $as_echo "$as_me: failed program was:" >&5
10037sed 's/^/| /' conftest.$ac_ext >&5
10038
10039	ac_cv_lib_dld_shl_load=no
10040fi
10041
10042rm -rf conftest.dSYM
10043rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10044      conftest$ac_exeext conftest.$ac_ext
10045LIBS=$ac_check_lib_save_LIBS
10046fi
10047{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10048$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10049if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10050  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10051else
10052  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10053$as_echo_n "checking for dlopen... " >&6; }
10054if test "${ac_cv_func_dlopen+set}" = set; then
10055  $as_echo_n "(cached) " >&6
10056else
10057  cat >conftest.$ac_ext <<_ACEOF
10058/* confdefs.h.  */
10059_ACEOF
10060cat confdefs.h >>conftest.$ac_ext
10061cat >>conftest.$ac_ext <<_ACEOF
10062/* end confdefs.h.  */
10063/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10064   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10065#define dlopen innocuous_dlopen
10066
10067/* System header to define __stub macros and hopefully few prototypes,
10068    which can conflict with char dlopen (); below.
10069    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10070    <limits.h> exists even on freestanding compilers.  */
10071
10072#ifdef __STDC__
10073# include <limits.h>
10074#else
10075# include <assert.h>
10076#endif
10077
10078#undef dlopen
10079
10080/* Override any GCC internal prototype to avoid an error.
10081   Use char because int might match the return type of a GCC
10082   builtin and then its argument prototype would still apply.  */
10083#ifdef __cplusplus
10084extern "C"
10085#endif
10086char dlopen ();
10087/* The GNU C library defines this for functions which it implements
10088    to always fail with ENOSYS.  Some functions are actually named
10089    something starting with __ and the normal name is an alias.  */
10090#if defined __stub_dlopen || defined __stub___dlopen
10091choke me
10092#endif
10093
10094int
10095main ()
10096{
10097return dlopen ();
10098  ;
10099  return 0;
10100}
10101_ACEOF
10102rm -f conftest.$ac_objext conftest$ac_exeext
10103if { (ac_try="$ac_link"
10104case "(($ac_try" in
10105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106  *) ac_try_echo=$ac_try;;
10107esac
10108eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10109$as_echo "$ac_try_echo") >&5
10110  (eval "$ac_link") 2>conftest.er1
10111  ac_status=$?
10112  grep -v '^ *+' conftest.er1 >conftest.err
10113  rm -f conftest.er1
10114  cat conftest.err >&5
10115  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116  (exit $ac_status); } && {
10117	 test -z "$ac_c_werror_flag" ||
10118	 test ! -s conftest.err
10119       } && test -s conftest$ac_exeext && {
10120	 test "$cross_compiling" = yes ||
10121	 $as_test_x conftest$ac_exeext
10122       }; then
10123  ac_cv_func_dlopen=yes
10124else
10125  $as_echo "$as_me: failed program was:" >&5
10126sed 's/^/| /' conftest.$ac_ext >&5
10127
10128	ac_cv_func_dlopen=no
10129fi
10130
10131rm -rf conftest.dSYM
10132rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10133      conftest$ac_exeext conftest.$ac_ext
10134fi
10135{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10136$as_echo "$ac_cv_func_dlopen" >&6; }
10137if test "x$ac_cv_func_dlopen" = x""yes; then
10138  lt_cv_dlopen="dlopen"
10139else
10140  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10141$as_echo_n "checking for dlopen in -ldl... " >&6; }
10142if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10143  $as_echo_n "(cached) " >&6
10144else
10145  ac_check_lib_save_LIBS=$LIBS
10146LIBS="-ldl  $LIBS"
10147cat >conftest.$ac_ext <<_ACEOF
10148/* confdefs.h.  */
10149_ACEOF
10150cat confdefs.h >>conftest.$ac_ext
10151cat >>conftest.$ac_ext <<_ACEOF
10152/* end confdefs.h.  */
10153
10154/* Override any GCC internal prototype to avoid an error.
10155   Use char because int might match the return type of a GCC
10156   builtin and then its argument prototype would still apply.  */
10157#ifdef __cplusplus
10158extern "C"
10159#endif
10160char dlopen ();
10161int
10162main ()
10163{
10164return dlopen ();
10165  ;
10166  return 0;
10167}
10168_ACEOF
10169rm -f conftest.$ac_objext conftest$ac_exeext
10170if { (ac_try="$ac_link"
10171case "(($ac_try" in
10172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173  *) ac_try_echo=$ac_try;;
10174esac
10175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10176$as_echo "$ac_try_echo") >&5
10177  (eval "$ac_link") 2>conftest.er1
10178  ac_status=$?
10179  grep -v '^ *+' conftest.er1 >conftest.err
10180  rm -f conftest.er1
10181  cat conftest.err >&5
10182  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183  (exit $ac_status); } && {
10184	 test -z "$ac_c_werror_flag" ||
10185	 test ! -s conftest.err
10186       } && test -s conftest$ac_exeext && {
10187	 test "$cross_compiling" = yes ||
10188	 $as_test_x conftest$ac_exeext
10189       }; then
10190  ac_cv_lib_dl_dlopen=yes
10191else
10192  $as_echo "$as_me: failed program was:" >&5
10193sed 's/^/| /' conftest.$ac_ext >&5
10194
10195	ac_cv_lib_dl_dlopen=no
10196fi
10197
10198rm -rf conftest.dSYM
10199rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10200      conftest$ac_exeext conftest.$ac_ext
10201LIBS=$ac_check_lib_save_LIBS
10202fi
10203{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10204$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10205if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10206  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10207else
10208  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10209$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10210if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10211  $as_echo_n "(cached) " >&6
10212else
10213  ac_check_lib_save_LIBS=$LIBS
10214LIBS="-lsvld  $LIBS"
10215cat >conftest.$ac_ext <<_ACEOF
10216/* confdefs.h.  */
10217_ACEOF
10218cat confdefs.h >>conftest.$ac_ext
10219cat >>conftest.$ac_ext <<_ACEOF
10220/* end confdefs.h.  */
10221
10222/* Override any GCC internal prototype to avoid an error.
10223   Use char because int might match the return type of a GCC
10224   builtin and then its argument prototype would still apply.  */
10225#ifdef __cplusplus
10226extern "C"
10227#endif
10228char dlopen ();
10229int
10230main ()
10231{
10232return dlopen ();
10233  ;
10234  return 0;
10235}
10236_ACEOF
10237rm -f conftest.$ac_objext conftest$ac_exeext
10238if { (ac_try="$ac_link"
10239case "(($ac_try" in
10240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10241  *) ac_try_echo=$ac_try;;
10242esac
10243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10244$as_echo "$ac_try_echo") >&5
10245  (eval "$ac_link") 2>conftest.er1
10246  ac_status=$?
10247  grep -v '^ *+' conftest.er1 >conftest.err
10248  rm -f conftest.er1
10249  cat conftest.err >&5
10250  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251  (exit $ac_status); } && {
10252	 test -z "$ac_c_werror_flag" ||
10253	 test ! -s conftest.err
10254       } && test -s conftest$ac_exeext && {
10255	 test "$cross_compiling" = yes ||
10256	 $as_test_x conftest$ac_exeext
10257       }; then
10258  ac_cv_lib_svld_dlopen=yes
10259else
10260  $as_echo "$as_me: failed program was:" >&5
10261sed 's/^/| /' conftest.$ac_ext >&5
10262
10263	ac_cv_lib_svld_dlopen=no
10264fi
10265
10266rm -rf conftest.dSYM
10267rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10268      conftest$ac_exeext conftest.$ac_ext
10269LIBS=$ac_check_lib_save_LIBS
10270fi
10271{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10272$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10273if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10274  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10275else
10276  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10277$as_echo_n "checking for dld_link in -ldld... " >&6; }
10278if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10279  $as_echo_n "(cached) " >&6
10280else
10281  ac_check_lib_save_LIBS=$LIBS
10282LIBS="-ldld  $LIBS"
10283cat >conftest.$ac_ext <<_ACEOF
10284/* confdefs.h.  */
10285_ACEOF
10286cat confdefs.h >>conftest.$ac_ext
10287cat >>conftest.$ac_ext <<_ACEOF
10288/* end confdefs.h.  */
10289
10290/* Override any GCC internal prototype to avoid an error.
10291   Use char because int might match the return type of a GCC
10292   builtin and then its argument prototype would still apply.  */
10293#ifdef __cplusplus
10294extern "C"
10295#endif
10296char dld_link ();
10297int
10298main ()
10299{
10300return dld_link ();
10301  ;
10302  return 0;
10303}
10304_ACEOF
10305rm -f conftest.$ac_objext conftest$ac_exeext
10306if { (ac_try="$ac_link"
10307case "(($ac_try" in
10308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10309  *) ac_try_echo=$ac_try;;
10310esac
10311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10312$as_echo "$ac_try_echo") >&5
10313  (eval "$ac_link") 2>conftest.er1
10314  ac_status=$?
10315  grep -v '^ *+' conftest.er1 >conftest.err
10316  rm -f conftest.er1
10317  cat conftest.err >&5
10318  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319  (exit $ac_status); } && {
10320	 test -z "$ac_c_werror_flag" ||
10321	 test ! -s conftest.err
10322       } && test -s conftest$ac_exeext && {
10323	 test "$cross_compiling" = yes ||
10324	 $as_test_x conftest$ac_exeext
10325       }; then
10326  ac_cv_lib_dld_dld_link=yes
10327else
10328  $as_echo "$as_me: failed program was:" >&5
10329sed 's/^/| /' conftest.$ac_ext >&5
10330
10331	ac_cv_lib_dld_dld_link=no
10332fi
10333
10334rm -rf conftest.dSYM
10335rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10336      conftest$ac_exeext conftest.$ac_ext
10337LIBS=$ac_check_lib_save_LIBS
10338fi
10339{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10340$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10341if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10342  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10343fi
10344
10345
10346fi
10347
10348
10349fi
10350
10351
10352fi
10353
10354
10355fi
10356
10357
10358fi
10359
10360    ;;
10361  esac
10362
10363  if test "x$lt_cv_dlopen" != xno; then
10364    enable_dlopen=yes
10365  else
10366    enable_dlopen=no
10367  fi
10368
10369  case $lt_cv_dlopen in
10370  dlopen)
10371    save_CPPFLAGS="$CPPFLAGS"
10372    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10373
10374    save_LDFLAGS="$LDFLAGS"
10375    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10376
10377    save_LIBS="$LIBS"
10378    LIBS="$lt_cv_dlopen_libs $LIBS"
10379
10380    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10381$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10382if test "${lt_cv_dlopen_self+set}" = set; then
10383  $as_echo_n "(cached) " >&6
10384else
10385  	  if test "$cross_compiling" = yes; then :
10386  lt_cv_dlopen_self=cross
10387else
10388  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10389  lt_status=$lt_dlunknown
10390  cat > conftest.$ac_ext <<EOF
10391#line 10391 "configure"
10392#include "confdefs.h"
10393
10394#if HAVE_DLFCN_H
10395#include <dlfcn.h>
10396#endif
10397
10398#include <stdio.h>
10399
10400#ifdef RTLD_GLOBAL
10401#  define LT_DLGLOBAL		RTLD_GLOBAL
10402#else
10403#  ifdef DL_GLOBAL
10404#    define LT_DLGLOBAL		DL_GLOBAL
10405#  else
10406#    define LT_DLGLOBAL		0
10407#  endif
10408#endif
10409
10410/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10411   find out it does not work in some platform. */
10412#ifndef LT_DLLAZY_OR_NOW
10413#  ifdef RTLD_LAZY
10414#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10415#  else
10416#    ifdef DL_LAZY
10417#      define LT_DLLAZY_OR_NOW		DL_LAZY
10418#    else
10419#      ifdef RTLD_NOW
10420#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10421#      else
10422#        ifdef DL_NOW
10423#          define LT_DLLAZY_OR_NOW	DL_NOW
10424#        else
10425#          define LT_DLLAZY_OR_NOW	0
10426#        endif
10427#      endif
10428#    endif
10429#  endif
10430#endif
10431
10432#ifdef __cplusplus
10433extern "C" void exit (int);
10434#endif
10435
10436void fnord() { int i=42;}
10437int main ()
10438{
10439  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10440  int status = $lt_dlunknown;
10441
10442  if (self)
10443    {
10444      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10445      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10446      /* dlclose (self); */
10447    }
10448  else
10449    puts (dlerror ());
10450
10451    exit (status);
10452}
10453EOF
10454  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10455  (eval $ac_link) 2>&5
10456  ac_status=$?
10457  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10459    (./conftest; exit; ) >&5 2>/dev/null
10460    lt_status=$?
10461    case x$lt_status in
10462      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10463      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10464      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10465    esac
10466  else :
10467    # compilation failed
10468    lt_cv_dlopen_self=no
10469  fi
10470fi
10471rm -fr conftest*
10472
10473
10474fi
10475{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10476$as_echo "$lt_cv_dlopen_self" >&6; }
10477
10478    if test "x$lt_cv_dlopen_self" = xyes; then
10479      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10480      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10481$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10482if test "${lt_cv_dlopen_self_static+set}" = set; then
10483  $as_echo_n "(cached) " >&6
10484else
10485  	  if test "$cross_compiling" = yes; then :
10486  lt_cv_dlopen_self_static=cross
10487else
10488  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10489  lt_status=$lt_dlunknown
10490  cat > conftest.$ac_ext <<EOF
10491#line 10491 "configure"
10492#include "confdefs.h"
10493
10494#if HAVE_DLFCN_H
10495#include <dlfcn.h>
10496#endif
10497
10498#include <stdio.h>
10499
10500#ifdef RTLD_GLOBAL
10501#  define LT_DLGLOBAL		RTLD_GLOBAL
10502#else
10503#  ifdef DL_GLOBAL
10504#    define LT_DLGLOBAL		DL_GLOBAL
10505#  else
10506#    define LT_DLGLOBAL		0
10507#  endif
10508#endif
10509
10510/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10511   find out it does not work in some platform. */
10512#ifndef LT_DLLAZY_OR_NOW
10513#  ifdef RTLD_LAZY
10514#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10515#  else
10516#    ifdef DL_LAZY
10517#      define LT_DLLAZY_OR_NOW		DL_LAZY
10518#    else
10519#      ifdef RTLD_NOW
10520#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10521#      else
10522#        ifdef DL_NOW
10523#          define LT_DLLAZY_OR_NOW	DL_NOW
10524#        else
10525#          define LT_DLLAZY_OR_NOW	0
10526#        endif
10527#      endif
10528#    endif
10529#  endif
10530#endif
10531
10532#ifdef __cplusplus
10533extern "C" void exit (int);
10534#endif
10535
10536void fnord() { int i=42;}
10537int main ()
10538{
10539  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10540  int status = $lt_dlunknown;
10541
10542  if (self)
10543    {
10544      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10545      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10546      /* dlclose (self); */
10547    }
10548  else
10549    puts (dlerror ());
10550
10551    exit (status);
10552}
10553EOF
10554  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10555  (eval $ac_link) 2>&5
10556  ac_status=$?
10557  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10559    (./conftest; exit; ) >&5 2>/dev/null
10560    lt_status=$?
10561    case x$lt_status in
10562      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10563      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10564      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10565    esac
10566  else :
10567    # compilation failed
10568    lt_cv_dlopen_self_static=no
10569  fi
10570fi
10571rm -fr conftest*
10572
10573
10574fi
10575{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10576$as_echo "$lt_cv_dlopen_self_static" >&6; }
10577    fi
10578
10579    CPPFLAGS="$save_CPPFLAGS"
10580    LDFLAGS="$save_LDFLAGS"
10581    LIBS="$save_LIBS"
10582    ;;
10583  esac
10584
10585  case $lt_cv_dlopen_self in
10586  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10587  *) enable_dlopen_self=unknown ;;
10588  esac
10589
10590  case $lt_cv_dlopen_self_static in
10591  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10592  *) enable_dlopen_self_static=unknown ;;
10593  esac
10594fi
10595
10596
10597# Report which library types will actually be built
10598{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10599$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10600{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10601$as_echo "$can_build_shared" >&6; }
10602
10603{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10604$as_echo_n "checking whether to build shared libraries... " >&6; }
10605test "$can_build_shared" = "no" && enable_shared=no
10606
10607# On AIX, shared libraries and static libraries use the same namespace, and
10608# are all built from PIC.
10609case $host_os in
10610aix3*)
10611  test "$enable_shared" = yes && enable_static=no
10612  if test -n "$RANLIB"; then
10613    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10614    postinstall_cmds='$RANLIB $lib'
10615  fi
10616  ;;
10617
10618aix[4-9]*)
10619  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10620    test "$enable_shared" = yes && enable_static=no
10621  fi
10622    ;;
10623esac
10624{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10625$as_echo "$enable_shared" >&6; }
10626
10627{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10628$as_echo_n "checking whether to build static libraries... " >&6; }
10629# Make sure either enable_shared or enable_static is yes.
10630test "$enable_shared" = yes || enable_static=yes
10631{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10632$as_echo "$enable_static" >&6; }
10633
10634# The else clause should only fire when bootstrapping the
10635# libtool distribution, otherwise you forgot to ship ltmain.sh
10636# with your package, and you will get complaints that there are
10637# no rules to generate ltmain.sh.
10638if test -f "$ltmain"; then
10639  # See if we are running on zsh, and set the options which allow our commands through
10640  # without removal of \ escapes.
10641  if test -n "${ZSH_VERSION+set}" ; then
10642    setopt NO_GLOB_SUBST
10643  fi
10644  # Now quote all the things that may contain metacharacters while being
10645  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10646  # variables and quote the copies for generation of the libtool script.
10647  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10648    SED SHELL STRIP \
10649    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10650    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10651    deplibs_check_method reload_flag reload_cmds need_locks \
10652    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10653    lt_cv_sys_global_symbol_to_c_name_address \
10654    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10655    old_postinstall_cmds old_postuninstall_cmds \
10656    compiler \
10657    CC \
10658    LD \
10659    lt_prog_compiler_wl \
10660    lt_prog_compiler_pic \
10661    lt_prog_compiler_static \
10662    lt_prog_compiler_no_builtin_flag \
10663    export_dynamic_flag_spec \
10664    thread_safe_flag_spec \
10665    whole_archive_flag_spec \
10666    enable_shared_with_static_runtimes \
10667    old_archive_cmds \
10668    old_archive_from_new_cmds \
10669    predep_objects \
10670    postdep_objects \
10671    predeps \
10672    postdeps \
10673    compiler_lib_search_path \
10674    compiler_lib_search_dirs \
10675    archive_cmds \
10676    archive_expsym_cmds \
10677    postinstall_cmds \
10678    postuninstall_cmds \
10679    old_archive_from_expsyms_cmds \
10680    allow_undefined_flag \
10681    no_undefined_flag \
10682    export_symbols_cmds \
10683    hardcode_libdir_flag_spec \
10684    hardcode_libdir_flag_spec_ld \
10685    hardcode_libdir_separator \
10686    hardcode_automatic \
10687    module_cmds \
10688    module_expsym_cmds \
10689    lt_cv_prog_compiler_c_o \
10690    fix_srcfile_path \
10691    exclude_expsyms \
10692    include_expsyms; do
10693
10694    case $var in
10695    old_archive_cmds | \
10696    old_archive_from_new_cmds | \
10697    archive_cmds | \
10698    archive_expsym_cmds | \
10699    module_cmds | \
10700    module_expsym_cmds | \
10701    old_archive_from_expsyms_cmds | \
10702    export_symbols_cmds | \
10703    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10704    postinstall_cmds | postuninstall_cmds | \
10705    old_postinstall_cmds | old_postuninstall_cmds | \
10706    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10707      # Double-quote double-evaled strings.
10708      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10709      ;;
10710    *)
10711      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10712      ;;
10713    esac
10714  done
10715
10716  case $lt_echo in
10717  *'\$0 --fallback-echo"')
10718    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10719    ;;
10720  esac
10721
10722cfgfile="${ofile}T"
10723  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10724  $rm -f "$cfgfile"
10725  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10726$as_echo "$as_me: creating $ofile" >&6;}
10727
10728  cat <<__EOF__ >> "$cfgfile"
10729#! $SHELL
10730
10731# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10732# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10733# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10734#
10735# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10736# Free Software Foundation, Inc.
10737#
10738# This file is part of GNU Libtool:
10739# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10740#
10741# This program is free software; you can redistribute it and/or modify
10742# it under the terms of the GNU General Public License as published by
10743# the Free Software Foundation; either version 2 of the License, or
10744# (at your option) any later version.
10745#
10746# This program is distributed in the hope that it will be useful, but
10747# WITHOUT ANY WARRANTY; without even the implied warranty of
10748# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10749# General Public License for more details.
10750#
10751# You should have received a copy of the GNU General Public License
10752# along with this program; if not, write to the Free Software
10753# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10754#
10755# As a special exception to the GNU General Public License, if you
10756# distribute this file as part of a program that contains a
10757# configuration script generated by Autoconf, you may include it under
10758# the same distribution terms that you use for the rest of that program.
10759
10760# A sed program that does not truncate output.
10761SED=$lt_SED
10762
10763# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10764Xsed="$SED -e 1s/^X//"
10765
10766# The HP-UX ksh and POSIX shell print the target directory to stdout
10767# if CDPATH is set.
10768(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10769
10770# The names of the tagged configurations supported by this script.
10771available_tags=
10772
10773# ### BEGIN LIBTOOL CONFIG
10774
10775# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10776
10777# Shell to use when invoking shell scripts.
10778SHELL=$lt_SHELL
10779
10780# Whether or not to build shared libraries.
10781build_libtool_libs=$enable_shared
10782
10783# Whether or not to build static libraries.
10784build_old_libs=$enable_static
10785
10786# Whether or not to add -lc for building shared libraries.
10787build_libtool_need_lc=$archive_cmds_need_lc
10788
10789# Whether or not to disallow shared libs when runtime libs are static
10790allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10791
10792# Whether or not to optimize for fast installation.
10793fast_install=$enable_fast_install
10794
10795# The host system.
10796host_alias=$host_alias
10797host=$host
10798host_os=$host_os
10799
10800# The build system.
10801build_alias=$build_alias
10802build=$build
10803build_os=$build_os
10804
10805# An echo program that does not interpret backslashes.
10806echo=$lt_echo
10807
10808# The archiver.
10809AR=$lt_AR
10810AR_FLAGS=$lt_AR_FLAGS
10811
10812# A C compiler.
10813LTCC=$lt_LTCC
10814
10815# LTCC compiler flags.
10816LTCFLAGS=$lt_LTCFLAGS
10817
10818# A language-specific compiler.
10819CC=$lt_compiler
10820
10821# Is the compiler the GNU C compiler?
10822with_gcc=$GCC
10823
10824# An ERE matcher.
10825EGREP=$lt_EGREP
10826
10827# The linker used to build libraries.
10828LD=$lt_LD
10829
10830# Whether we need hard or soft links.
10831LN_S=$lt_LN_S
10832
10833# A BSD-compatible nm program.
10834NM=$lt_NM
10835
10836# A symbol stripping program
10837STRIP=$lt_STRIP
10838
10839# Used to examine libraries when file_magic_cmd begins "file"
10840MAGIC_CMD=$MAGIC_CMD
10841
10842# Used on cygwin: DLL creation program.
10843DLLTOOL="$DLLTOOL"
10844
10845# Used on cygwin: object dumper.
10846OBJDUMP="$OBJDUMP"
10847
10848# Used on cygwin: assembler.
10849AS="$AS"
10850
10851# The name of the directory that contains temporary libtool files.
10852objdir=$objdir
10853
10854# How to create reloadable object files.
10855reload_flag=$lt_reload_flag
10856reload_cmds=$lt_reload_cmds
10857
10858# How to pass a linker flag through the compiler.
10859wl=$lt_lt_prog_compiler_wl
10860
10861# Object file suffix (normally "o").
10862objext="$ac_objext"
10863
10864# Old archive suffix (normally "a").
10865libext="$libext"
10866
10867# Shared library suffix (normally ".so").
10868shrext_cmds='$shrext_cmds'
10869
10870# Executable file suffix (normally "").
10871exeext="$exeext"
10872
10873# Additional compiler flags for building library objects.
10874pic_flag=$lt_lt_prog_compiler_pic
10875pic_mode=$pic_mode
10876
10877# What is the maximum length of a command?
10878max_cmd_len=$lt_cv_sys_max_cmd_len
10879
10880# Does compiler simultaneously support -c and -o options?
10881compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10882
10883# Must we lock files when doing compilation?
10884need_locks=$lt_need_locks
10885
10886# Do we need the lib prefix for modules?
10887need_lib_prefix=$need_lib_prefix
10888
10889# Do we need a version for libraries?
10890need_version=$need_version
10891
10892# Whether dlopen is supported.
10893dlopen_support=$enable_dlopen
10894
10895# Whether dlopen of programs is supported.
10896dlopen_self=$enable_dlopen_self
10897
10898# Whether dlopen of statically linked programs is supported.
10899dlopen_self_static=$enable_dlopen_self_static
10900
10901# Compiler flag to prevent dynamic linking.
10902link_static_flag=$lt_lt_prog_compiler_static
10903
10904# Compiler flag to turn off builtin functions.
10905no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10906
10907# Compiler flag to allow reflexive dlopens.
10908export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10909
10910# Compiler flag to generate shared objects directly from archives.
10911whole_archive_flag_spec=$lt_whole_archive_flag_spec
10912
10913# Compiler flag to generate thread-safe objects.
10914thread_safe_flag_spec=$lt_thread_safe_flag_spec
10915
10916# Library versioning type.
10917version_type=$version_type
10918
10919# Format of library name prefix.
10920libname_spec=$lt_libname_spec
10921
10922# List of archive names.  First name is the real one, the rest are links.
10923# The last name is the one that the linker finds with -lNAME.
10924library_names_spec=$lt_library_names_spec
10925
10926# The coded name of the library, if different from the real name.
10927soname_spec=$lt_soname_spec
10928
10929# Commands used to build and install an old-style archive.
10930RANLIB=$lt_RANLIB
10931old_archive_cmds=$lt_old_archive_cmds
10932old_postinstall_cmds=$lt_old_postinstall_cmds
10933old_postuninstall_cmds=$lt_old_postuninstall_cmds
10934
10935# Create an old-style archive from a shared archive.
10936old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10937
10938# Create a temporary old-style archive to link instead of a shared archive.
10939old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10940
10941# Commands used to build and install a shared archive.
10942archive_cmds=$lt_archive_cmds
10943archive_expsym_cmds=$lt_archive_expsym_cmds
10944postinstall_cmds=$lt_postinstall_cmds
10945postuninstall_cmds=$lt_postuninstall_cmds
10946
10947# Commands used to build a loadable module (assumed same as above if empty)
10948module_cmds=$lt_module_cmds
10949module_expsym_cmds=$lt_module_expsym_cmds
10950
10951# Commands to strip libraries.
10952old_striplib=$lt_old_striplib
10953striplib=$lt_striplib
10954
10955# Dependencies to place before the objects being linked to create a
10956# shared library.
10957predep_objects=$lt_predep_objects
10958
10959# Dependencies to place after the objects being linked to create a
10960# shared library.
10961postdep_objects=$lt_postdep_objects
10962
10963# Dependencies to place before the objects being linked to create a
10964# shared library.
10965predeps=$lt_predeps
10966
10967# Dependencies to place after the objects being linked to create a
10968# shared library.
10969postdeps=$lt_postdeps
10970
10971# The directories searched by this compiler when creating a shared
10972# library
10973compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10974
10975# The library search path used internally by the compiler when linking
10976# a shared library.
10977compiler_lib_search_path=$lt_compiler_lib_search_path
10978
10979# Method to check whether dependent libraries are shared objects.
10980deplibs_check_method=$lt_deplibs_check_method
10981
10982# Command to use when deplibs_check_method == file_magic.
10983file_magic_cmd=$lt_file_magic_cmd
10984
10985# Flag that allows shared libraries with undefined symbols to be built.
10986allow_undefined_flag=$lt_allow_undefined_flag
10987
10988# Flag that forces no undefined symbols.
10989no_undefined_flag=$lt_no_undefined_flag
10990
10991# Commands used to finish a libtool library installation in a directory.
10992finish_cmds=$lt_finish_cmds
10993
10994# Same as above, but a single script fragment to be evaled but not shown.
10995finish_eval=$lt_finish_eval
10996
10997# Take the output of nm and produce a listing of raw symbols and C names.
10998global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10999
11000# Transform the output of nm in a proper C declaration
11001global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11002
11003# Transform the output of nm in a C name address pair
11004global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11005
11006# This is the shared library runtime path variable.
11007runpath_var=$runpath_var
11008
11009# This is the shared library path variable.
11010shlibpath_var=$shlibpath_var
11011
11012# Is shlibpath searched before the hard-coded library search path?
11013shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11014
11015# How to hardcode a shared library path into an executable.
11016hardcode_action=$hardcode_action
11017
11018# Whether we should hardcode library paths into libraries.
11019hardcode_into_libs=$hardcode_into_libs
11020
11021# Flag to hardcode \$libdir into a binary during linking.
11022# This must work even if \$libdir does not exist.
11023hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11024
11025# If ld is used when linking, flag to hardcode \$libdir into
11026# a binary during linking. This must work even if \$libdir does
11027# not exist.
11028hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11029
11030# Whether we need a single -rpath flag with a separated argument.
11031hardcode_libdir_separator=$lt_hardcode_libdir_separator
11032
11033# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11034# resulting binary.
11035hardcode_direct=$hardcode_direct
11036
11037# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11038# resulting binary.
11039hardcode_minus_L=$hardcode_minus_L
11040
11041# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11042# the resulting binary.
11043hardcode_shlibpath_var=$hardcode_shlibpath_var
11044
11045# Set to yes if building a shared library automatically hardcodes DIR into the library
11046# and all subsequent libraries and executables linked against it.
11047hardcode_automatic=$hardcode_automatic
11048
11049# Variables whose values should be saved in libtool wrapper scripts and
11050# restored at relink time.
11051variables_saved_for_relink="$variables_saved_for_relink"
11052
11053# Whether libtool must link a program against all its dependency libraries.
11054link_all_deplibs=$link_all_deplibs
11055
11056# Compile-time system search path for libraries
11057sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11058
11059# Run-time system search path for libraries
11060sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11061
11062# Fix the shell variable \$srcfile for the compiler.
11063fix_srcfile_path=$lt_fix_srcfile_path
11064
11065# Set to yes if exported symbols are required.
11066always_export_symbols=$always_export_symbols
11067
11068# The commands to list exported symbols.
11069export_symbols_cmds=$lt_export_symbols_cmds
11070
11071# The commands to extract the exported symbol list from a shared archive.
11072extract_expsyms_cmds=$lt_extract_expsyms_cmds
11073
11074# Symbols that should not be listed in the preloaded symbols.
11075exclude_expsyms=$lt_exclude_expsyms
11076
11077# Symbols that must always be exported.
11078include_expsyms=$lt_include_expsyms
11079
11080# ### END LIBTOOL CONFIG
11081
11082__EOF__
11083
11084
11085  case $host_os in
11086  aix3*)
11087    cat <<\EOF >> "$cfgfile"
11088
11089# AIX sometimes has problems with the GCC collect2 program.  For some
11090# reason, if we set the COLLECT_NAMES environment variable, the problems
11091# vanish in a puff of smoke.
11092if test "X${COLLECT_NAMES+set}" != Xset; then
11093  COLLECT_NAMES=
11094  export COLLECT_NAMES
11095fi
11096EOF
11097    ;;
11098  esac
11099
11100  # We use sed instead of cat because bash on DJGPP gets confused if
11101  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11102  # text mode, it properly converts lines to CR/LF.  This bash problem
11103  # is reportedly fixed, but why not run on old versions too?
11104  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11105
11106  mv -f "$cfgfile" "$ofile" || \
11107    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11108  chmod +x "$ofile"
11109
11110else
11111  # If there is no Makefile yet, we rely on a make rule to execute
11112  # `config.status --recheck' to rerun these tests and create the
11113  # libtool script then.
11114  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11115  if test -f "$ltmain_in"; then
11116    test -f Makefile && make "$ltmain"
11117  fi
11118fi
11119
11120
11121ac_ext=c
11122ac_cpp='$CPP $CPPFLAGS'
11123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11125ac_compiler_gnu=$ac_cv_c_compiler_gnu
11126
11127CC="$lt_save_CC"
11128
11129
11130# Check whether --with-tags was given.
11131if test "${with_tags+set}" = set; then
11132  withval=$with_tags; tagnames="$withval"
11133fi
11134
11135
11136if test -f "$ltmain" && test -n "$tagnames"; then
11137  if test ! -f "${ofile}"; then
11138    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11139$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11140  fi
11141
11142  if test -z "$LTCC"; then
11143    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11144    if test -z "$LTCC"; then
11145      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11146$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11147    else
11148      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11149$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11150    fi
11151  fi
11152  if test -z "$LTCFLAGS"; then
11153    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11154  fi
11155
11156  # Extract list of available tagged configurations in $ofile.
11157  # Note that this assumes the entire list is on one line.
11158  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11159
11160  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11161  for tagname in $tagnames; do
11162    IFS="$lt_save_ifs"
11163    # Check whether tagname contains only valid characters
11164    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11165    "") ;;
11166    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11167$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11168   { (exit 1); exit 1; }; }
11169	;;
11170    esac
11171
11172    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11173    then
11174      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11175$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11176   { (exit 1); exit 1; }; }
11177    fi
11178
11179    # Update the list of available tags.
11180    if test -n "$tagname"; then
11181      echo appending configuration tag \"$tagname\" to $ofile
11182
11183      case $tagname in
11184      CXX)
11185	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11186	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11187	    (test "X$CXX" != "Xg++"))) ; then
11188	  ac_ext=cpp
11189ac_cpp='$CXXCPP $CPPFLAGS'
11190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11193
11194
11195
11196
11197archive_cmds_need_lc_CXX=no
11198allow_undefined_flag_CXX=
11199always_export_symbols_CXX=no
11200archive_expsym_cmds_CXX=
11201export_dynamic_flag_spec_CXX=
11202hardcode_direct_CXX=no
11203hardcode_libdir_flag_spec_CXX=
11204hardcode_libdir_flag_spec_ld_CXX=
11205hardcode_libdir_separator_CXX=
11206hardcode_minus_L_CXX=no
11207hardcode_shlibpath_var_CXX=unsupported
11208hardcode_automatic_CXX=no
11209module_cmds_CXX=
11210module_expsym_cmds_CXX=
11211link_all_deplibs_CXX=unknown
11212old_archive_cmds_CXX=$old_archive_cmds
11213no_undefined_flag_CXX=
11214whole_archive_flag_spec_CXX=
11215enable_shared_with_static_runtimes_CXX=no
11216
11217# Dependencies to place before and after the object being linked:
11218predep_objects_CXX=
11219postdep_objects_CXX=
11220predeps_CXX=
11221postdeps_CXX=
11222compiler_lib_search_path_CXX=
11223compiler_lib_search_dirs_CXX=
11224
11225# Source file extension for C++ test sources.
11226ac_ext=cpp
11227
11228# Object file extension for compiled C++ test sources.
11229objext=o
11230objext_CXX=$objext
11231
11232# Code to be used in simple compile tests
11233lt_simple_compile_test_code="int some_variable = 0;"
11234
11235# Code to be used in simple link tests
11236lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11237
11238# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11239
11240# If no C compiler was specified, use CC.
11241LTCC=${LTCC-"$CC"}
11242
11243# If no C compiler flags were specified, use CFLAGS.
11244LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11245
11246# Allow CC to be a program name with arguments.
11247compiler=$CC
11248
11249
11250# save warnings/boilerplate of simple test code
11251ac_outfile=conftest.$ac_objext
11252echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11253eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11254_lt_compiler_boilerplate=`cat conftest.err`
11255$rm conftest*
11256
11257ac_outfile=conftest.$ac_objext
11258echo "$lt_simple_link_test_code" >conftest.$ac_ext
11259eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11260_lt_linker_boilerplate=`cat conftest.err`
11261$rm -r conftest*
11262
11263
11264# Allow CC to be a program name with arguments.
11265lt_save_CC=$CC
11266lt_save_LD=$LD
11267lt_save_GCC=$GCC
11268GCC=$GXX
11269lt_save_with_gnu_ld=$with_gnu_ld
11270lt_save_path_LD=$lt_cv_path_LD
11271if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11272  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11273else
11274  $as_unset lt_cv_prog_gnu_ld
11275fi
11276if test -n "${lt_cv_path_LDCXX+set}"; then
11277  lt_cv_path_LD=$lt_cv_path_LDCXX
11278else
11279  $as_unset lt_cv_path_LD
11280fi
11281test -z "${LDCXX+set}" || LD=$LDCXX
11282CC=${CXX-"c++"}
11283compiler=$CC
11284compiler_CXX=$CC
11285for cc_temp in $compiler""; do
11286  case $cc_temp in
11287    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11288    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11289    \-*) ;;
11290    *) break;;
11291  esac
11292done
11293cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11294
11295
11296# We don't want -fno-exception wen compiling C++ code, so set the
11297# no_builtin_flag separately
11298if test "$GXX" = yes; then
11299  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11300else
11301  lt_prog_compiler_no_builtin_flag_CXX=
11302fi
11303
11304if test "$GXX" = yes; then
11305  # Set up default GNU C++ configuration
11306
11307
11308# Check whether --with-gnu-ld was given.
11309if test "${with_gnu_ld+set}" = set; then
11310  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11311else
11312  with_gnu_ld=no
11313fi
11314
11315ac_prog=ld
11316if test "$GCC" = yes; then
11317  # Check if gcc -print-prog-name=ld gives a path.
11318  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11319$as_echo_n "checking for ld used by $CC... " >&6; }
11320  case $host in
11321  *-*-mingw*)
11322    # gcc leaves a trailing carriage return which upsets mingw
11323    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11324  *)
11325    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11326  esac
11327  case $ac_prog in
11328    # Accept absolute paths.
11329    [\\/]* | ?:[\\/]*)
11330      re_direlt='/[^/][^/]*/\.\./'
11331      # Canonicalize the pathname of ld
11332      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11333      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11334	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11335      done
11336      test -z "$LD" && LD="$ac_prog"
11337      ;;
11338  "")
11339    # If it fails, then pretend we aren't using GCC.
11340    ac_prog=ld
11341    ;;
11342  *)
11343    # If it is relative, then search for the first ld in PATH.
11344    with_gnu_ld=unknown
11345    ;;
11346  esac
11347elif test "$with_gnu_ld" = yes; then
11348  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11349$as_echo_n "checking for GNU ld... " >&6; }
11350else
11351  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11352$as_echo_n "checking for non-GNU ld... " >&6; }
11353fi
11354if test "${lt_cv_path_LD+set}" = set; then
11355  $as_echo_n "(cached) " >&6
11356else
11357  if test -z "$LD"; then
11358  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11359  for ac_dir in $PATH; do
11360    IFS="$lt_save_ifs"
11361    test -z "$ac_dir" && ac_dir=.
11362    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11363      lt_cv_path_LD="$ac_dir/$ac_prog"
11364      # Check to see if the program is GNU ld.  I'd rather use --version,
11365      # but apparently some variants of GNU ld only accept -v.
11366      # Break only if it was the GNU/non-GNU ld that we prefer.
11367      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11368      *GNU* | *'with BFD'*)
11369	test "$with_gnu_ld" != no && break
11370	;;
11371      *)
11372	test "$with_gnu_ld" != yes && break
11373	;;
11374      esac
11375    fi
11376  done
11377  IFS="$lt_save_ifs"
11378else
11379  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11380fi
11381fi
11382
11383LD="$lt_cv_path_LD"
11384if test -n "$LD"; then
11385  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11386$as_echo "$LD" >&6; }
11387else
11388  { $as_echo "$as_me:$LINENO: result: no" >&5
11389$as_echo "no" >&6; }
11390fi
11391test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11392$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11393   { (exit 1); exit 1; }; }
11394{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11395$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11396if test "${lt_cv_prog_gnu_ld+set}" = set; then
11397  $as_echo_n "(cached) " >&6
11398else
11399  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11400case `$LD -v 2>&1 </dev/null` in
11401*GNU* | *'with BFD'*)
11402  lt_cv_prog_gnu_ld=yes
11403  ;;
11404*)
11405  lt_cv_prog_gnu_ld=no
11406  ;;
11407esac
11408fi
11409{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11410$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11411with_gnu_ld=$lt_cv_prog_gnu_ld
11412
11413
11414
11415  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11416  # archiving commands below assume that GNU ld is being used.
11417  if test "$with_gnu_ld" = yes; then
11418    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11419    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'
11420
11421    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11422    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11423
11424    # If archive_cmds runs LD, not CC, wlarc should be empty
11425    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11426    #     investigate it a little bit more. (MM)
11427    wlarc='${wl}'
11428
11429    # ancient GNU ld didn't support --whole-archive et. al.
11430    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11431	grep 'no-whole-archive' > /dev/null; then
11432      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11433    else
11434      whole_archive_flag_spec_CXX=
11435    fi
11436  else
11437    with_gnu_ld=no
11438    wlarc=
11439
11440    # A generic and very simple default shared library creation
11441    # command for GNU C++ for the case where it uses the native
11442    # linker, instead of GNU ld.  If possible, this setting should
11443    # overridden to take advantage of the native linker features on
11444    # the platform it is being used on.
11445    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11446  fi
11447
11448  # Commands to make compiler produce verbose output that lists
11449  # what "hidden" libraries, object files and flags are used when
11450  # linking a shared library.
11451  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11452
11453else
11454  GXX=no
11455  with_gnu_ld=no
11456  wlarc=
11457fi
11458
11459# PORTME: fill in a description of your system's C++ link characteristics
11460{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11461$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11462ld_shlibs_CXX=yes
11463case $host_os in
11464  aix3*)
11465    # FIXME: insert proper C++ library support
11466    ld_shlibs_CXX=no
11467    ;;
11468  aix[4-9]*)
11469    if test "$host_cpu" = ia64; then
11470      # On IA64, the linker does run time linking by default, so we don't
11471      # have to do anything special.
11472      aix_use_runtimelinking=no
11473      exp_sym_flag='-Bexport'
11474      no_entry_flag=""
11475    else
11476      aix_use_runtimelinking=no
11477
11478      # Test if we are trying to use run time linking or normal
11479      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11480      # need to do runtime linking.
11481      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11482	for ld_flag in $LDFLAGS; do
11483	  case $ld_flag in
11484	  *-brtl*)
11485	    aix_use_runtimelinking=yes
11486	    break
11487	    ;;
11488	  esac
11489	done
11490	;;
11491      esac
11492
11493      exp_sym_flag='-bexport'
11494      no_entry_flag='-bnoentry'
11495    fi
11496
11497    # When large executables or shared objects are built, AIX ld can
11498    # have problems creating the table of contents.  If linking a library
11499    # or program results in "error TOC overflow" add -mminimal-toc to
11500    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11501    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11502
11503    archive_cmds_CXX=''
11504    hardcode_direct_CXX=yes
11505    hardcode_libdir_separator_CXX=':'
11506    link_all_deplibs_CXX=yes
11507
11508    if test "$GXX" = yes; then
11509      case $host_os in aix4.[012]|aix4.[012].*)
11510      # We only want to do this on AIX 4.2 and lower, the check
11511      # below for broken collect2 doesn't work under 4.3+
11512	collect2name=`${CC} -print-prog-name=collect2`
11513	if test -f "$collect2name" && \
11514	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11515	then
11516	  # We have reworked collect2
11517	  :
11518	else
11519	  # We have old collect2
11520	  hardcode_direct_CXX=unsupported
11521	  # It fails to find uninstalled libraries when the uninstalled
11522	  # path is not listed in the libpath.  Setting hardcode_minus_L
11523	  # to unsupported forces relinking
11524	  hardcode_minus_L_CXX=yes
11525	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11526	  hardcode_libdir_separator_CXX=
11527	fi
11528	;;
11529      esac
11530      shared_flag='-shared'
11531      if test "$aix_use_runtimelinking" = yes; then
11532	shared_flag="$shared_flag "'${wl}-G'
11533      fi
11534    else
11535      # not using gcc
11536      if test "$host_cpu" = ia64; then
11537	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11538	# chokes on -Wl,-G. The following line is correct:
11539	shared_flag='-G'
11540      else
11541	if test "$aix_use_runtimelinking" = yes; then
11542	  shared_flag='${wl}-G'
11543	else
11544	  shared_flag='${wl}-bM:SRE'
11545	fi
11546      fi
11547    fi
11548
11549    # It seems that -bexpall does not export symbols beginning with
11550    # underscore (_), so it is better to generate a list of symbols to export.
11551    always_export_symbols_CXX=yes
11552    if test "$aix_use_runtimelinking" = yes; then
11553      # Warning - without using the other runtime loading flags (-brtl),
11554      # -berok will link without error, but may produce a broken library.
11555      allow_undefined_flag_CXX='-berok'
11556      # Determine the default libpath from the value encoded in an empty executable.
11557      cat >conftest.$ac_ext <<_ACEOF
11558/* confdefs.h.  */
11559_ACEOF
11560cat confdefs.h >>conftest.$ac_ext
11561cat >>conftest.$ac_ext <<_ACEOF
11562/* end confdefs.h.  */
11563
11564int
11565main ()
11566{
11567
11568  ;
11569  return 0;
11570}
11571_ACEOF
11572rm -f conftest.$ac_objext conftest$ac_exeext
11573if { (ac_try="$ac_link"
11574case "(($ac_try" in
11575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576  *) ac_try_echo=$ac_try;;
11577esac
11578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11579$as_echo "$ac_try_echo") >&5
11580  (eval "$ac_link") 2>conftest.er1
11581  ac_status=$?
11582  grep -v '^ *+' conftest.er1 >conftest.err
11583  rm -f conftest.er1
11584  cat conftest.err >&5
11585  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586  (exit $ac_status); } && {
11587	 test -z "$ac_cxx_werror_flag" ||
11588	 test ! -s conftest.err
11589       } && test -s conftest$ac_exeext && {
11590	 test "$cross_compiling" = yes ||
11591	 $as_test_x conftest$ac_exeext
11592       }; then
11593
11594lt_aix_libpath_sed='
11595    /Import File Strings/,/^$/ {
11596	/^0/ {
11597	    s/^0  *\(.*\)$/\1/
11598	    p
11599	}
11600    }'
11601aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11602# Check for a 64-bit object if we didn't find anything.
11603if test -z "$aix_libpath"; then
11604  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11605fi
11606else
11607  $as_echo "$as_me: failed program was:" >&5
11608sed 's/^/| /' conftest.$ac_ext >&5
11609
11610
11611fi
11612
11613rm -rf conftest.dSYM
11614rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11615      conftest$ac_exeext conftest.$ac_ext
11616if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11617
11618      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11619
11620      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"
11621     else
11622      if test "$host_cpu" = ia64; then
11623	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11624	allow_undefined_flag_CXX="-z nodefs"
11625	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"
11626      else
11627	# Determine the default libpath from the value encoded in an empty executable.
11628	cat >conftest.$ac_ext <<_ACEOF
11629/* confdefs.h.  */
11630_ACEOF
11631cat confdefs.h >>conftest.$ac_ext
11632cat >>conftest.$ac_ext <<_ACEOF
11633/* end confdefs.h.  */
11634
11635int
11636main ()
11637{
11638
11639  ;
11640  return 0;
11641}
11642_ACEOF
11643rm -f conftest.$ac_objext conftest$ac_exeext
11644if { (ac_try="$ac_link"
11645case "(($ac_try" in
11646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647  *) ac_try_echo=$ac_try;;
11648esac
11649eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11650$as_echo "$ac_try_echo") >&5
11651  (eval "$ac_link") 2>conftest.er1
11652  ac_status=$?
11653  grep -v '^ *+' conftest.er1 >conftest.err
11654  rm -f conftest.er1
11655  cat conftest.err >&5
11656  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657  (exit $ac_status); } && {
11658	 test -z "$ac_cxx_werror_flag" ||
11659	 test ! -s conftest.err
11660       } && test -s conftest$ac_exeext && {
11661	 test "$cross_compiling" = yes ||
11662	 $as_test_x conftest$ac_exeext
11663       }; then
11664
11665lt_aix_libpath_sed='
11666    /Import File Strings/,/^$/ {
11667	/^0/ {
11668	    s/^0  *\(.*\)$/\1/
11669	    p
11670	}
11671    }'
11672aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11673# Check for a 64-bit object if we didn't find anything.
11674if test -z "$aix_libpath"; then
11675  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11676fi
11677else
11678  $as_echo "$as_me: failed program was:" >&5
11679sed 's/^/| /' conftest.$ac_ext >&5
11680
11681
11682fi
11683
11684rm -rf conftest.dSYM
11685rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11686      conftest$ac_exeext conftest.$ac_ext
11687if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11688
11689	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11690	# Warning - without using the other run time loading flags,
11691	# -berok will link without error, but may produce a broken library.
11692	no_undefined_flag_CXX=' ${wl}-bernotok'
11693	allow_undefined_flag_CXX=' ${wl}-berok'
11694	# Exported symbols can be pulled into shared objects from archives
11695	whole_archive_flag_spec_CXX='$convenience'
11696	archive_cmds_need_lc_CXX=yes
11697	# This is similar to how AIX traditionally builds its shared libraries.
11698	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'
11699      fi
11700    fi
11701    ;;
11702
11703  beos*)
11704    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11705      allow_undefined_flag_CXX=unsupported
11706      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11707      # support --undefined.  This deserves some investigation.  FIXME
11708      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11709    else
11710      ld_shlibs_CXX=no
11711    fi
11712    ;;
11713
11714  chorus*)
11715    case $cc_basename in
11716      *)
11717	# FIXME: insert proper C++ library support
11718	ld_shlibs_CXX=no
11719	;;
11720    esac
11721    ;;
11722
11723  cygwin* | mingw* | pw32*)
11724    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11725    # as there is no search path for DLLs.
11726    hardcode_libdir_flag_spec_CXX='-L$libdir'
11727    allow_undefined_flag_CXX=unsupported
11728    always_export_symbols_CXX=no
11729    enable_shared_with_static_runtimes_CXX=yes
11730
11731    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11732      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'
11733      # If the export-symbols file already is a .def file (1st line
11734      # is EXPORTS), use it as is; otherwise, prepend...
11735      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11736	cp $export_symbols $output_objdir/$soname.def;
11737      else
11738	echo EXPORTS > $output_objdir/$soname.def;
11739	cat $export_symbols >> $output_objdir/$soname.def;
11740      fi~
11741      $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'
11742    else
11743      ld_shlibs_CXX=no
11744    fi
11745  ;;
11746      darwin* | rhapsody*)
11747      archive_cmds_need_lc_CXX=no
11748      hardcode_direct_CXX=no
11749      hardcode_automatic_CXX=yes
11750      hardcode_shlibpath_var_CXX=unsupported
11751      whole_archive_flag_spec_CXX=''
11752      link_all_deplibs_CXX=yes
11753      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11754      if test "$GXX" = yes ; then
11755      output_verbose_link_cmd='echo'
11756      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}"
11757      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11758      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}"
11759      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}"
11760      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11761        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}"
11762        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}"
11763      fi
11764      else
11765      case $cc_basename in
11766        xlc*)
11767         output_verbose_link_cmd='echo'
11768          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'
11769          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11770          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11771          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}'
11772          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}'
11773          ;;
11774       *)
11775         ld_shlibs_CXX=no
11776          ;;
11777      esac
11778      fi
11779        ;;
11780
11781  dgux*)
11782    case $cc_basename in
11783      ec++*)
11784	# FIXME: insert proper C++ library support
11785	ld_shlibs_CXX=no
11786	;;
11787      ghcx*)
11788	# Green Hills C++ Compiler
11789	# FIXME: insert proper C++ library support
11790	ld_shlibs_CXX=no
11791	;;
11792      *)
11793	# FIXME: insert proper C++ library support
11794	ld_shlibs_CXX=no
11795	;;
11796    esac
11797    ;;
11798  freebsd[12]*)
11799    # C++ shared libraries reported to be fairly broken before switch to ELF
11800    ld_shlibs_CXX=no
11801    ;;
11802  freebsd-elf*)
11803    archive_cmds_need_lc_CXX=no
11804    ;;
11805  freebsd* | dragonfly*)
11806    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11807    # conventions
11808    ld_shlibs_CXX=yes
11809    ;;
11810  gnu*)
11811    ;;
11812  hpux9*)
11813    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11814    hardcode_libdir_separator_CXX=:
11815    export_dynamic_flag_spec_CXX='${wl}-E'
11816    hardcode_direct_CXX=yes
11817    hardcode_minus_L_CXX=yes # Not in the search PATH,
11818				# but as the default
11819				# location of the library.
11820
11821    case $cc_basename in
11822    CC*)
11823      # FIXME: insert proper C++ library support
11824      ld_shlibs_CXX=no
11825      ;;
11826    aCC*)
11827      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'
11828      # Commands to make compiler produce verbose output that lists
11829      # what "hidden" libraries, object files and flags are used when
11830      # linking a shared library.
11831      #
11832      # There doesn't appear to be a way to prevent this compiler from
11833      # explicitly linking system object files so we need to strip them
11834      # from the output so that they don't get included in the library
11835      # dependencies.
11836      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'
11837      ;;
11838    *)
11839      if test "$GXX" = yes; then
11840        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'
11841      else
11842        # FIXME: insert proper C++ library support
11843        ld_shlibs_CXX=no
11844      fi
11845      ;;
11846    esac
11847    ;;
11848  hpux10*|hpux11*)
11849    if test $with_gnu_ld = no; then
11850      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11851      hardcode_libdir_separator_CXX=:
11852
11853      case $host_cpu in
11854      hppa*64*|ia64*) ;;
11855      *)
11856	export_dynamic_flag_spec_CXX='${wl}-E'
11857        ;;
11858      esac
11859    fi
11860    case $host_cpu in
11861    hppa*64*|ia64*)
11862      hardcode_direct_CXX=no
11863      hardcode_shlibpath_var_CXX=no
11864      ;;
11865    *)
11866      hardcode_direct_CXX=yes
11867      hardcode_minus_L_CXX=yes # Not in the search PATH,
11868					      # but as the default
11869					      # location of the library.
11870      ;;
11871    esac
11872
11873    case $cc_basename in
11874      CC*)
11875	# FIXME: insert proper C++ library support
11876	ld_shlibs_CXX=no
11877	;;
11878      aCC*)
11879	case $host_cpu in
11880	hppa*64*)
11881	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11882	  ;;
11883	ia64*)
11884	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11885	  ;;
11886	*)
11887	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11888	  ;;
11889	esac
11890	# Commands to make compiler produce verbose output that lists
11891	# what "hidden" libraries, object files and flags are used when
11892	# linking a shared library.
11893	#
11894	# There doesn't appear to be a way to prevent this compiler from
11895	# explicitly linking system object files so we need to strip them
11896	# from the output so that they don't get included in the library
11897	# dependencies.
11898	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'
11899	;;
11900      *)
11901	if test "$GXX" = yes; then
11902	  if test $with_gnu_ld = no; then
11903	    case $host_cpu in
11904	    hppa*64*)
11905	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11906	      ;;
11907	    ia64*)
11908	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11909	      ;;
11910	    *)
11911	      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'
11912	      ;;
11913	    esac
11914	  fi
11915	else
11916	  # FIXME: insert proper C++ library support
11917	  ld_shlibs_CXX=no
11918	fi
11919	;;
11920    esac
11921    ;;
11922  interix[3-9]*)
11923    hardcode_direct_CXX=no
11924    hardcode_shlibpath_var_CXX=no
11925    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11926    export_dynamic_flag_spec_CXX='${wl}-E'
11927    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11928    # Instead, shared libraries are loaded at an image base (0x10000000 by
11929    # default) and relocated if they conflict, which is a slow very memory
11930    # consuming and fragmenting process.  To avoid this, we pick a random,
11931    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11932    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11933    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'
11934    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'
11935    ;;
11936  irix5* | irix6*)
11937    case $cc_basename in
11938      CC*)
11939	# SGI C++
11940	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'
11941
11942	# Archives containing C++ object files must be created using
11943	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11944	# necessary to make sure instantiated templates are included
11945	# in the archive.
11946	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11947	;;
11948      *)
11949	if test "$GXX" = yes; then
11950	  if test "$with_gnu_ld" = no; then
11951	    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'
11952	  else
11953	    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'
11954	  fi
11955	fi
11956	link_all_deplibs_CXX=yes
11957	;;
11958    esac
11959    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11960    hardcode_libdir_separator_CXX=:
11961    ;;
11962  linux* | k*bsd*-gnu)
11963    case $cc_basename in
11964      KCC*)
11965	# Kuck and Associates, Inc. (KAI) C++ Compiler
11966
11967	# KCC will only create a shared library if the output file
11968	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11969	# to its proper name (with version) after linking.
11970	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'
11971	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'
11972	# Commands to make compiler produce verbose output that lists
11973	# what "hidden" libraries, object files and flags are used when
11974	# linking a shared library.
11975	#
11976	# There doesn't appear to be a way to prevent this compiler from
11977	# explicitly linking system object files so we need to strip them
11978	# from the output so that they don't get included in the library
11979	# dependencies.
11980	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'
11981
11982	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11983	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11984
11985	# Archives containing C++ object files must be created using
11986	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11987	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11988	;;
11989      icpc*)
11990	# Intel C++
11991	with_gnu_ld=yes
11992	# version 8.0 and above of icpc choke on multiply defined symbols
11993	# if we add $predep_objects and $postdep_objects, however 7.1 and
11994	# earlier do not add the objects themselves.
11995	case `$CC -V 2>&1` in
11996	*"Version 7."*)
11997  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11998  	  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'
11999	  ;;
12000	*)  # Version 8.0 or newer
12001	  tmp_idyn=
12002	  case $host_cpu in
12003	    ia64*) tmp_idyn=' -i_dynamic';;
12004	  esac
12005  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12006	  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'
12007	  ;;
12008	esac
12009	archive_cmds_need_lc_CXX=no
12010	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12011	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12012	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12013	;;
12014      pgCC* | pgcpp*)
12015        # Portland Group C++ compiler
12016	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12017  	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'
12018
12019	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12020	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12021	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'
12022        ;;
12023      cxx*)
12024	# Compaq C++
12025	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12026	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'
12027
12028	runpath_var=LD_RUN_PATH
12029	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12030	hardcode_libdir_separator_CXX=:
12031
12032	# Commands to make compiler produce verbose output that lists
12033	# what "hidden" libraries, object files and flags are used when
12034	# linking a shared library.
12035	#
12036	# There doesn't appear to be a way to prevent this compiler from
12037	# explicitly linking system object files so we need to strip them
12038	# from the output so that they don't get included in the library
12039	# dependencies.
12040	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'
12041	;;
12042      *)
12043	case `$CC -V 2>&1 | sed 5q` in
12044	*Sun\ C*)
12045	  # Sun C++ 5.9
12046	  no_undefined_flag_CXX=' -zdefs'
12047	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12048	  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'
12049	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12050	  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'
12051
12052	  # Not sure whether something based on
12053	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12054	  # would be better.
12055	  output_verbose_link_cmd='echo'
12056
12057	  # Archives containing C++ object files must be created using
12058	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12059	  # necessary to make sure instantiated templates are included
12060	  # in the archive.
12061	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12062	  ;;
12063	esac
12064	;;
12065    esac
12066    ;;
12067  lynxos*)
12068    # FIXME: insert proper C++ library support
12069    ld_shlibs_CXX=no
12070    ;;
12071  m88k*)
12072    # FIXME: insert proper C++ library support
12073    ld_shlibs_CXX=no
12074    ;;
12075  mvs*)
12076    case $cc_basename in
12077      cxx*)
12078	# FIXME: insert proper C++ library support
12079	ld_shlibs_CXX=no
12080	;;
12081      *)
12082	# FIXME: insert proper C++ library support
12083	ld_shlibs_CXX=no
12084	;;
12085    esac
12086    ;;
12087  netbsd*)
12088    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12089      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12090      wlarc=
12091      hardcode_libdir_flag_spec_CXX='-R$libdir'
12092      hardcode_direct_CXX=yes
12093      hardcode_shlibpath_var_CXX=no
12094    fi
12095    # Workaround some broken pre-1.5 toolchains
12096    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12097    ;;
12098  openbsd2*)
12099    # C++ shared libraries are fairly broken
12100    ld_shlibs_CXX=no
12101    ;;
12102  openbsd*)
12103    if test -f /usr/libexec/ld.so; then
12104      hardcode_direct_CXX=yes
12105      hardcode_shlibpath_var_CXX=no
12106      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12107      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12108      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12109	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12110	export_dynamic_flag_spec_CXX='${wl}-E'
12111	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12112      fi
12113      output_verbose_link_cmd='echo'
12114    else
12115      ld_shlibs_CXX=no
12116    fi
12117    ;;
12118  osf3*)
12119    case $cc_basename in
12120      KCC*)
12121	# Kuck and Associates, Inc. (KAI) C++ Compiler
12122
12123	# KCC will only create a shared library if the output file
12124	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12125	# to its proper name (with version) after linking.
12126	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'
12127
12128	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12129	hardcode_libdir_separator_CXX=:
12130
12131	# Archives containing C++ object files must be created using
12132	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12133	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12134
12135	;;
12136      RCC*)
12137	# Rational C++ 2.4.1
12138	# FIXME: insert proper C++ library support
12139	ld_shlibs_CXX=no
12140	;;
12141      cxx*)
12142	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12143	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'
12144
12145	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12146	hardcode_libdir_separator_CXX=:
12147
12148	# Commands to make compiler produce verbose output that lists
12149	# what "hidden" libraries, object files and flags are used when
12150	# linking a shared library.
12151	#
12152	# There doesn't appear to be a way to prevent this compiler from
12153	# explicitly linking system object files so we need to strip them
12154	# from the output so that they don't get included in the library
12155	# dependencies.
12156	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'
12157	;;
12158      *)
12159	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12160	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12161	  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'
12162
12163	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12164	  hardcode_libdir_separator_CXX=:
12165
12166	  # Commands to make compiler produce verbose output that lists
12167	  # what "hidden" libraries, object files and flags are used when
12168	  # linking a shared library.
12169	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12170
12171	else
12172	  # FIXME: insert proper C++ library support
12173	  ld_shlibs_CXX=no
12174	fi
12175	;;
12176    esac
12177    ;;
12178  osf4* | osf5*)
12179    case $cc_basename in
12180      KCC*)
12181	# Kuck and Associates, Inc. (KAI) C++ Compiler
12182
12183	# KCC will only create a shared library if the output file
12184	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12185	# to its proper name (with version) after linking.
12186	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'
12187
12188	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12189	hardcode_libdir_separator_CXX=:
12190
12191	# Archives containing C++ object files must be created using
12192	# the KAI C++ compiler.
12193	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12194	;;
12195      RCC*)
12196	# Rational C++ 2.4.1
12197	# FIXME: insert proper C++ library support
12198	ld_shlibs_CXX=no
12199	;;
12200      cxx*)
12201	allow_undefined_flag_CXX=' -expect_unresolved \*'
12202	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'
12203	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12204	  echo "-hidden">> $lib.exp~
12205	  $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~
12206	  $rm $lib.exp'
12207
12208	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12209	hardcode_libdir_separator_CXX=:
12210
12211	# Commands to make compiler produce verbose output that lists
12212	# what "hidden" libraries, object files and flags are used when
12213	# linking a shared library.
12214	#
12215	# There doesn't appear to be a way to prevent this compiler from
12216	# explicitly linking system object files so we need to strip them
12217	# from the output so that they don't get included in the library
12218	# dependencies.
12219	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12220	;;
12221      *)
12222	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12223	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12224	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12225
12226	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12227	  hardcode_libdir_separator_CXX=:
12228
12229	  # Commands to make compiler produce verbose output that lists
12230	  # what "hidden" libraries, object files and flags are used when
12231	  # linking a shared library.
12232	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12233
12234	else
12235	  # FIXME: insert proper C++ library support
12236	  ld_shlibs_CXX=no
12237	fi
12238	;;
12239    esac
12240    ;;
12241  psos*)
12242    # FIXME: insert proper C++ library support
12243    ld_shlibs_CXX=no
12244    ;;
12245  sunos4*)
12246    case $cc_basename in
12247      CC*)
12248	# Sun C++ 4.x
12249	# FIXME: insert proper C++ library support
12250	ld_shlibs_CXX=no
12251	;;
12252      lcc*)
12253	# Lucid
12254	# FIXME: insert proper C++ library support
12255	ld_shlibs_CXX=no
12256	;;
12257      *)
12258	# FIXME: insert proper C++ library support
12259	ld_shlibs_CXX=no
12260	;;
12261    esac
12262    ;;
12263  solaris*)
12264    case $cc_basename in
12265      CC*)
12266	# Sun C++ 4.2, 5.x and Centerline C++
12267        archive_cmds_need_lc_CXX=yes
12268	no_undefined_flag_CXX=' -zdefs'
12269	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12270	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12271	$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'
12272
12273	hardcode_libdir_flag_spec_CXX='-R$libdir'
12274	hardcode_shlibpath_var_CXX=no
12275	case $host_os in
12276	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12277	  *)
12278	    # The compiler driver will combine and reorder linker options,
12279	    # but understands `-z linker_flag'.
12280	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12281	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12282	    ;;
12283	esac
12284	link_all_deplibs_CXX=yes
12285
12286	output_verbose_link_cmd='echo'
12287
12288	# Archives containing C++ object files must be created using
12289	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12290	# necessary to make sure instantiated templates are included
12291	# in the archive.
12292	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12293	;;
12294      gcx*)
12295	# Green Hills C++ Compiler
12296	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12297
12298	# The C++ compiler must be used to create the archive.
12299	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12300	;;
12301      *)
12302	# GNU C++ compiler with Solaris linker
12303	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12304	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12305	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12306	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12307	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12308		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12309
12310	    # Commands to make compiler produce verbose output that lists
12311	    # what "hidden" libraries, object files and flags are used when
12312	    # linking a shared library.
12313	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12314	  else
12315	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12316	    # platform.
12317	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12318	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12319		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12320
12321	    # Commands to make compiler produce verbose output that lists
12322	    # what "hidden" libraries, object files and flags are used when
12323	    # linking a shared library.
12324	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12325	  fi
12326
12327	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12328	  case $host_os in
12329	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12330	  *)
12331	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12332	    ;;
12333	  esac
12334	fi
12335	;;
12336    esac
12337    ;;
12338  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12339    no_undefined_flag_CXX='${wl}-z,text'
12340    archive_cmds_need_lc_CXX=no
12341    hardcode_shlibpath_var_CXX=no
12342    runpath_var='LD_RUN_PATH'
12343
12344    case $cc_basename in
12345      CC*)
12346	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12347	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12348	;;
12349      *)
12350	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12351	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12352	;;
12353    esac
12354    ;;
12355  sysv5* | sco3.2v5* | sco5v6*)
12356    # Note: We can NOT use -z defs as we might desire, because we do not
12357    # link with -lc, and that would cause any symbols used from libc to
12358    # always be unresolved, which means just about no library would
12359    # ever link correctly.  If we're not using GNU ld we use -z text
12360    # though, which does catch some bad symbols but isn't as heavy-handed
12361    # as -z defs.
12362    # For security reasons, it is highly recommended that you always
12363    # use absolute paths for naming shared libraries, and exclude the
12364    # DT_RUNPATH tag from executables and libraries.  But doing so
12365    # requires that you compile everything twice, which is a pain.
12366    # So that behaviour is only enabled if SCOABSPATH is set to a
12367    # non-empty value in the environment.  Most likely only useful for
12368    # creating official distributions of packages.
12369    # This is a hack until libtool officially supports absolute path
12370    # names for shared libraries.
12371    no_undefined_flag_CXX='${wl}-z,text'
12372    allow_undefined_flag_CXX='${wl}-z,nodefs'
12373    archive_cmds_need_lc_CXX=no
12374    hardcode_shlibpath_var_CXX=no
12375    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12376    hardcode_libdir_separator_CXX=':'
12377    link_all_deplibs_CXX=yes
12378    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12379    runpath_var='LD_RUN_PATH'
12380
12381    case $cc_basename in
12382      CC*)
12383	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12384	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12385	;;
12386      *)
12387	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12388	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12389	;;
12390    esac
12391    ;;
12392  tandem*)
12393    case $cc_basename in
12394      NCC*)
12395	# NonStop-UX NCC 3.20
12396	# FIXME: insert proper C++ library support
12397	ld_shlibs_CXX=no
12398	;;
12399      *)
12400	# FIXME: insert proper C++ library support
12401	ld_shlibs_CXX=no
12402	;;
12403    esac
12404    ;;
12405  vxworks*)
12406    # FIXME: insert proper C++ library support
12407    ld_shlibs_CXX=no
12408    ;;
12409  *)
12410    # FIXME: insert proper C++ library support
12411    ld_shlibs_CXX=no
12412    ;;
12413esac
12414{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12415$as_echo "$ld_shlibs_CXX" >&6; }
12416test "$ld_shlibs_CXX" = no && can_build_shared=no
12417
12418GCC_CXX="$GXX"
12419LD_CXX="$LD"
12420
12421cat > conftest.$ac_ext <<EOF
12422class Foo
12423{
12424public:
12425  Foo (void) { a = 0; }
12426private:
12427  int a;
12428};
12429EOF
12430
12431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12432  (eval $ac_compile) 2>&5
12433  ac_status=$?
12434  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435  (exit $ac_status); }; then
12436  # Parse the compiler output and extract the necessary
12437  # objects, libraries and library flags.
12438
12439  # Sentinel used to keep track of whether or not we are before
12440  # the conftest object file.
12441  pre_test_object_deps_done=no
12442
12443  # The `*' in the case matches for architectures that use `case' in
12444  # $output_verbose_cmd can trigger glob expansion during the loop
12445  # eval without this substitution.
12446  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12447
12448  for p in `eval $output_verbose_link_cmd`; do
12449    case $p in
12450
12451    -L* | -R* | -l*)
12452       # Some compilers place space between "-{L,R}" and the path.
12453       # Remove the space.
12454       if test $p = "-L" \
12455	  || test $p = "-R"; then
12456	 prev=$p
12457	 continue
12458       else
12459	 prev=
12460       fi
12461
12462       if test "$pre_test_object_deps_done" = no; then
12463	 case $p in
12464	 -L* | -R*)
12465	   # Internal compiler library paths should come after those
12466	   # provided the user.  The postdeps already come after the
12467	   # user supplied libs so there is no need to process them.
12468	   if test -z "$compiler_lib_search_path_CXX"; then
12469	     compiler_lib_search_path_CXX="${prev}${p}"
12470	   else
12471	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12472	   fi
12473	   ;;
12474	 # The "-l" case would never come before the object being
12475	 # linked, so don't bother handling this case.
12476	 esac
12477       else
12478	 if test -z "$postdeps_CXX"; then
12479	   postdeps_CXX="${prev}${p}"
12480	 else
12481	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12482	 fi
12483       fi
12484       ;;
12485
12486    *.$objext)
12487       # This assumes that the test object file only shows up
12488       # once in the compiler output.
12489       if test "$p" = "conftest.$objext"; then
12490	 pre_test_object_deps_done=yes
12491	 continue
12492       fi
12493
12494       if test "$pre_test_object_deps_done" = no; then
12495	 if test -z "$predep_objects_CXX"; then
12496	   predep_objects_CXX="$p"
12497	 else
12498	   predep_objects_CXX="$predep_objects_CXX $p"
12499	 fi
12500       else
12501	 if test -z "$postdep_objects_CXX"; then
12502	   postdep_objects_CXX="$p"
12503	 else
12504	   postdep_objects_CXX="$postdep_objects_CXX $p"
12505	 fi
12506       fi
12507       ;;
12508
12509    *) ;; # Ignore the rest.
12510
12511    esac
12512  done
12513
12514  # Clean up.
12515  rm -f a.out a.exe
12516else
12517  echo "libtool.m4: error: problem compiling CXX test program"
12518fi
12519
12520$rm -f confest.$objext
12521
12522compiler_lib_search_dirs_CXX=
12523if test -n "$compiler_lib_search_path_CXX"; then
12524  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12525fi
12526
12527# PORTME: override above test on systems where it is broken
12528case $host_os in
12529interix[3-9]*)
12530  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12531  # hack all around it, let's just trust "g++" to DTRT.
12532  predep_objects_CXX=
12533  postdep_objects_CXX=
12534  postdeps_CXX=
12535  ;;
12536
12537linux*)
12538  case `$CC -V 2>&1 | sed 5q` in
12539  *Sun\ C*)
12540    # Sun C++ 5.9
12541    #
12542    # The more standards-conforming stlport4 library is
12543    # incompatible with the Cstd library. Avoid specifying
12544    # it if it's in CXXFLAGS. Ignore libCrun as
12545    # -library=stlport4 depends on it.
12546    case " $CXX $CXXFLAGS " in
12547    *" -library=stlport4 "*)
12548      solaris_use_stlport4=yes
12549      ;;
12550    esac
12551    if test "$solaris_use_stlport4" != yes; then
12552      postdeps_CXX='-library=Cstd -library=Crun'
12553    fi
12554    ;;
12555  esac
12556  ;;
12557
12558solaris*)
12559  case $cc_basename in
12560  CC*)
12561    # The more standards-conforming stlport4 library is
12562    # incompatible with the Cstd library. Avoid specifying
12563    # it if it's in CXXFLAGS. Ignore libCrun as
12564    # -library=stlport4 depends on it.
12565    case " $CXX $CXXFLAGS " in
12566    *" -library=stlport4 "*)
12567      solaris_use_stlport4=yes
12568      ;;
12569    esac
12570
12571    # Adding this requires a known-good setup of shared libraries for
12572    # Sun compiler versions before 5.6, else PIC objects from an old
12573    # archive will be linked into the output, leading to subtle bugs.
12574    if test "$solaris_use_stlport4" != yes; then
12575      postdeps_CXX='-library=Cstd -library=Crun'
12576    fi
12577    ;;
12578  esac
12579  ;;
12580esac
12581
12582case " $postdeps_CXX " in
12583*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12584esac
12585
12586lt_prog_compiler_wl_CXX=
12587lt_prog_compiler_pic_CXX=
12588lt_prog_compiler_static_CXX=
12589
12590{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12591$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12592
12593  # C++ specific cases for pic, static, wl, etc.
12594  if test "$GXX" = yes; then
12595    lt_prog_compiler_wl_CXX='-Wl,'
12596    lt_prog_compiler_static_CXX='-static'
12597
12598    case $host_os in
12599    aix*)
12600      # All AIX code is PIC.
12601      if test "$host_cpu" = ia64; then
12602	# AIX 5 now supports IA64 processor
12603	lt_prog_compiler_static_CXX='-Bstatic'
12604      fi
12605      ;;
12606    amigaos*)
12607      # FIXME: we need at least 68020 code to build shared libraries, but
12608      # adding the `-m68020' flag to GCC prevents building anything better,
12609      # like `-m68040'.
12610      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12611      ;;
12612    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12613      # PIC is the default for these OSes.
12614      ;;
12615    mingw* | cygwin* | os2* | pw32*)
12616      # This hack is so that the source file can tell whether it is being
12617      # built for inclusion in a dll (and should export symbols for example).
12618      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12619      # (--disable-auto-import) libraries
12620      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12621      ;;
12622    darwin* | rhapsody*)
12623      # PIC is the default on this platform
12624      # Common symbols not allowed in MH_DYLIB files
12625      lt_prog_compiler_pic_CXX='-fno-common'
12626      ;;
12627    *djgpp*)
12628      # DJGPP does not support shared libraries at all
12629      lt_prog_compiler_pic_CXX=
12630      ;;
12631    interix[3-9]*)
12632      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12633      # Instead, we relocate shared libraries at runtime.
12634      ;;
12635    sysv4*MP*)
12636      if test -d /usr/nec; then
12637	lt_prog_compiler_pic_CXX=-Kconform_pic
12638      fi
12639      ;;
12640    hpux*)
12641      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12642      # not for PA HP-UX.
12643      case $host_cpu in
12644      hppa*64*|ia64*)
12645	;;
12646      *)
12647	lt_prog_compiler_pic_CXX='-fPIC'
12648	;;
12649      esac
12650      ;;
12651    *)
12652      lt_prog_compiler_pic_CXX='-fPIC'
12653      ;;
12654    esac
12655  else
12656    case $host_os in
12657      aix[4-9]*)
12658	# All AIX code is PIC.
12659	if test "$host_cpu" = ia64; then
12660	  # AIX 5 now supports IA64 processor
12661	  lt_prog_compiler_static_CXX='-Bstatic'
12662	else
12663	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12664	fi
12665	;;
12666      chorus*)
12667	case $cc_basename in
12668	cxch68*)
12669	  # Green Hills C++ Compiler
12670	  # _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"
12671	  ;;
12672	esac
12673	;;
12674       darwin*)
12675         # PIC is the default on this platform
12676         # Common symbols not allowed in MH_DYLIB files
12677         case $cc_basename in
12678           xlc*)
12679           lt_prog_compiler_pic_CXX='-qnocommon'
12680           lt_prog_compiler_wl_CXX='-Wl,'
12681           ;;
12682         esac
12683       ;;
12684      dgux*)
12685	case $cc_basename in
12686	  ec++*)
12687	    lt_prog_compiler_pic_CXX='-KPIC'
12688	    ;;
12689	  ghcx*)
12690	    # Green Hills C++ Compiler
12691	    lt_prog_compiler_pic_CXX='-pic'
12692	    ;;
12693	  *)
12694	    ;;
12695	esac
12696	;;
12697      freebsd* | dragonfly*)
12698	# FreeBSD uses GNU C++
12699	;;
12700      hpux9* | hpux10* | hpux11*)
12701	case $cc_basename in
12702	  CC*)
12703	    lt_prog_compiler_wl_CXX='-Wl,'
12704	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12705	    if test "$host_cpu" != ia64; then
12706	      lt_prog_compiler_pic_CXX='+Z'
12707	    fi
12708	    ;;
12709	  aCC*)
12710	    lt_prog_compiler_wl_CXX='-Wl,'
12711	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12712	    case $host_cpu in
12713	    hppa*64*|ia64*)
12714	      # +Z the default
12715	      ;;
12716	    *)
12717	      lt_prog_compiler_pic_CXX='+Z'
12718	      ;;
12719	    esac
12720	    ;;
12721	  *)
12722	    ;;
12723	esac
12724	;;
12725      interix*)
12726	# This is c89, which is MS Visual C++ (no shared libs)
12727	# Anyone wants to do a port?
12728	;;
12729      irix5* | irix6* | nonstopux*)
12730	case $cc_basename in
12731	  CC*)
12732	    lt_prog_compiler_wl_CXX='-Wl,'
12733	    lt_prog_compiler_static_CXX='-non_shared'
12734	    # CC pic flag -KPIC is the default.
12735	    ;;
12736	  *)
12737	    ;;
12738	esac
12739	;;
12740      linux* | k*bsd*-gnu)
12741	case $cc_basename in
12742	  KCC*)
12743	    # KAI C++ Compiler
12744	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12745	    lt_prog_compiler_pic_CXX='-fPIC'
12746	    ;;
12747	  icpc* | ecpc*)
12748	    # Intel C++
12749	    lt_prog_compiler_wl_CXX='-Wl,'
12750	    lt_prog_compiler_pic_CXX='-KPIC'
12751	    lt_prog_compiler_static_CXX='-static'
12752	    ;;
12753	  pgCC* | pgcpp*)
12754	    # Portland Group C++ compiler.
12755	    lt_prog_compiler_wl_CXX='-Wl,'
12756	    lt_prog_compiler_pic_CXX='-fpic'
12757	    lt_prog_compiler_static_CXX='-Bstatic'
12758	    ;;
12759	  cxx*)
12760	    # Compaq C++
12761	    # Make sure the PIC flag is empty.  It appears that all Alpha
12762	    # Linux and Compaq Tru64 Unix objects are PIC.
12763	    lt_prog_compiler_pic_CXX=
12764	    lt_prog_compiler_static_CXX='-non_shared'
12765	    ;;
12766	  *)
12767	    case `$CC -V 2>&1 | sed 5q` in
12768	    *Sun\ C*)
12769	      # Sun C++ 5.9
12770	      lt_prog_compiler_pic_CXX='-KPIC'
12771	      lt_prog_compiler_static_CXX='-Bstatic'
12772	      lt_prog_compiler_wl_CXX='-Qoption ld '
12773	      ;;
12774	    esac
12775	    ;;
12776	esac
12777	;;
12778      lynxos*)
12779	;;
12780      m88k*)
12781	;;
12782      mvs*)
12783	case $cc_basename in
12784	  cxx*)
12785	    lt_prog_compiler_pic_CXX='-W c,exportall'
12786	    ;;
12787	  *)
12788	    ;;
12789	esac
12790	;;
12791      netbsd*)
12792	;;
12793      osf3* | osf4* | osf5*)
12794	case $cc_basename in
12795	  KCC*)
12796	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12797	    ;;
12798	  RCC*)
12799	    # Rational C++ 2.4.1
12800	    lt_prog_compiler_pic_CXX='-pic'
12801	    ;;
12802	  cxx*)
12803	    # Digital/Compaq C++
12804	    lt_prog_compiler_wl_CXX='-Wl,'
12805	    # Make sure the PIC flag is empty.  It appears that all Alpha
12806	    # Linux and Compaq Tru64 Unix objects are PIC.
12807	    lt_prog_compiler_pic_CXX=
12808	    lt_prog_compiler_static_CXX='-non_shared'
12809	    ;;
12810	  *)
12811	    ;;
12812	esac
12813	;;
12814      psos*)
12815	;;
12816      solaris*)
12817	case $cc_basename in
12818	  CC*)
12819	    # Sun C++ 4.2, 5.x and Centerline C++
12820	    lt_prog_compiler_pic_CXX='-KPIC'
12821	    lt_prog_compiler_static_CXX='-Bstatic'
12822	    lt_prog_compiler_wl_CXX='-Qoption ld '
12823	    ;;
12824	  gcx*)
12825	    # Green Hills C++ Compiler
12826	    lt_prog_compiler_pic_CXX='-PIC'
12827	    ;;
12828	  *)
12829	    ;;
12830	esac
12831	;;
12832      sunos4*)
12833	case $cc_basename in
12834	  CC*)
12835	    # Sun C++ 4.x
12836	    lt_prog_compiler_pic_CXX='-pic'
12837	    lt_prog_compiler_static_CXX='-Bstatic'
12838	    ;;
12839	  lcc*)
12840	    # Lucid
12841	    lt_prog_compiler_pic_CXX='-pic'
12842	    ;;
12843	  *)
12844	    ;;
12845	esac
12846	;;
12847      tandem*)
12848	case $cc_basename in
12849	  NCC*)
12850	    # NonStop-UX NCC 3.20
12851	    lt_prog_compiler_pic_CXX='-KPIC'
12852	    ;;
12853	  *)
12854	    ;;
12855	esac
12856	;;
12857      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12858	case $cc_basename in
12859	  CC*)
12860	    lt_prog_compiler_wl_CXX='-Wl,'
12861	    lt_prog_compiler_pic_CXX='-KPIC'
12862	    lt_prog_compiler_static_CXX='-Bstatic'
12863	    ;;
12864	esac
12865	;;
12866      vxworks*)
12867	;;
12868      *)
12869	lt_prog_compiler_can_build_shared_CXX=no
12870	;;
12871    esac
12872  fi
12873
12874{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12875$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12876
12877#
12878# Check to make sure the PIC flag actually works.
12879#
12880if test -n "$lt_prog_compiler_pic_CXX"; then
12881
12882{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12883$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12884if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12885  $as_echo_n "(cached) " >&6
12886else
12887  lt_cv_prog_compiler_pic_works_CXX=no
12888  ac_outfile=conftest.$ac_objext
12889   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12890   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12891   # Insert the option either (1) after the last *FLAGS variable, or
12892   # (2) before a word containing "conftest.", or (3) at the end.
12893   # Note that $ac_compile itself does not contain backslashes and begins
12894   # with a dollar sign (not a hyphen), so the echo should work correctly.
12895   # The option is referenced via a variable to avoid confusing sed.
12896   lt_compile=`echo "$ac_compile" | $SED \
12897   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12898   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12899   -e 's:$: $lt_compiler_flag:'`
12900   (eval echo "\"\$as_me:12900: $lt_compile\"" >&5)
12901   (eval "$lt_compile" 2>conftest.err)
12902   ac_status=$?
12903   cat conftest.err >&5
12904   echo "$as_me:12904: \$? = $ac_status" >&5
12905   if (exit $ac_status) && test -s "$ac_outfile"; then
12906     # The compiler can only warn and ignore the option if not recognized
12907     # So say no if there are warnings other than the usual output.
12908     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12909     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12910     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12911       lt_cv_prog_compiler_pic_works_CXX=yes
12912     fi
12913   fi
12914   $rm conftest*
12915
12916fi
12917{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12918$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12919
12920if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12921    case $lt_prog_compiler_pic_CXX in
12922     "" | " "*) ;;
12923     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12924     esac
12925else
12926    lt_prog_compiler_pic_CXX=
12927     lt_prog_compiler_can_build_shared_CXX=no
12928fi
12929
12930fi
12931case $host_os in
12932  # For platforms which do not support PIC, -DPIC is meaningless:
12933  *djgpp*)
12934    lt_prog_compiler_pic_CXX=
12935    ;;
12936  *)
12937    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12938    ;;
12939esac
12940
12941#
12942# Check to make sure the static flag actually works.
12943#
12944wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12945{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12946$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12947if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12948  $as_echo_n "(cached) " >&6
12949else
12950  lt_cv_prog_compiler_static_works_CXX=no
12951   save_LDFLAGS="$LDFLAGS"
12952   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12953   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12954   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12955     # The linker can only warn and ignore the option if not recognized
12956     # So say no if there are warnings
12957     if test -s conftest.err; then
12958       # Append any errors to the config.log.
12959       cat conftest.err 1>&5
12960       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12961       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12962       if diff conftest.exp conftest.er2 >/dev/null; then
12963         lt_cv_prog_compiler_static_works_CXX=yes
12964       fi
12965     else
12966       lt_cv_prog_compiler_static_works_CXX=yes
12967     fi
12968   fi
12969   $rm -r conftest*
12970   LDFLAGS="$save_LDFLAGS"
12971
12972fi
12973{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12974$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12975
12976if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12977    :
12978else
12979    lt_prog_compiler_static_CXX=
12980fi
12981
12982
12983{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12984$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12985if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12986  $as_echo_n "(cached) " >&6
12987else
12988  lt_cv_prog_compiler_c_o_CXX=no
12989   $rm -r conftest 2>/dev/null
12990   mkdir conftest
12991   cd conftest
12992   mkdir out
12993   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12994
12995   lt_compiler_flag="-o out/conftest2.$ac_objext"
12996   # Insert the option either (1) after the last *FLAGS variable, or
12997   # (2) before a word containing "conftest.", or (3) at the end.
12998   # Note that $ac_compile itself does not contain backslashes and begins
12999   # with a dollar sign (not a hyphen), so the echo should work correctly.
13000   lt_compile=`echo "$ac_compile" | $SED \
13001   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13002   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13003   -e 's:$: $lt_compiler_flag:'`
13004   (eval echo "\"\$as_me:13004: $lt_compile\"" >&5)
13005   (eval "$lt_compile" 2>out/conftest.err)
13006   ac_status=$?
13007   cat out/conftest.err >&5
13008   echo "$as_me:13008: \$? = $ac_status" >&5
13009   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13010   then
13011     # The compiler can only warn and ignore the option if not recognized
13012     # So say no if there are warnings
13013     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13014     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13015     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13016       lt_cv_prog_compiler_c_o_CXX=yes
13017     fi
13018   fi
13019   chmod u+w . 2>&5
13020   $rm conftest*
13021   # SGI C++ compiler will create directory out/ii_files/ for
13022   # template instantiation
13023   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13024   $rm out/* && rmdir out
13025   cd ..
13026   rmdir conftest
13027   $rm conftest*
13028
13029fi
13030{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13031$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13032
13033
13034hard_links="nottested"
13035if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13036  # do not overwrite the value of need_locks provided by the user
13037  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13038$as_echo_n "checking if we can lock with hard links... " >&6; }
13039  hard_links=yes
13040  $rm conftest*
13041  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13042  touch conftest.a
13043  ln conftest.a conftest.b 2>&5 || hard_links=no
13044  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13045  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13046$as_echo "$hard_links" >&6; }
13047  if test "$hard_links" = no; then
13048    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13049$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13050    need_locks=warn
13051  fi
13052else
13053  need_locks=no
13054fi
13055
13056{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13057$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13058
13059  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13060  case $host_os in
13061  aix[4-9]*)
13062    # If we're using GNU nm, then we don't want the "-C" option.
13063    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13064    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13065      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'
13066    else
13067      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'
13068    fi
13069    ;;
13070  pw32*)
13071    export_symbols_cmds_CXX="$ltdll_cmds"
13072  ;;
13073  cygwin* | mingw*)
13074    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'
13075  ;;
13076  linux* | k*bsd*-gnu)
13077    link_all_deplibs_CXX=no
13078  ;;
13079  *)
13080    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13081  ;;
13082  esac
13083  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13084
13085{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13086$as_echo "$ld_shlibs_CXX" >&6; }
13087test "$ld_shlibs_CXX" = no && can_build_shared=no
13088
13089#
13090# Do we need to explicitly link libc?
13091#
13092case "x$archive_cmds_need_lc_CXX" in
13093x|xyes)
13094  # Assume -lc should be added
13095  archive_cmds_need_lc_CXX=yes
13096
13097  if test "$enable_shared" = yes && test "$GCC" = yes; then
13098    case $archive_cmds_CXX in
13099    *'~'*)
13100      # FIXME: we may have to deal with multi-command sequences.
13101      ;;
13102    '$CC '*)
13103      # Test whether the compiler implicitly links with -lc since on some
13104      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13105      # to ld, don't add -lc before -lgcc.
13106      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13107$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13108      $rm conftest*
13109      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13110
13111      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13112  (eval $ac_compile) 2>&5
13113  ac_status=$?
13114  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115  (exit $ac_status); } 2>conftest.err; then
13116        soname=conftest
13117        lib=conftest
13118        libobjs=conftest.$ac_objext
13119        deplibs=
13120        wl=$lt_prog_compiler_wl_CXX
13121	pic_flag=$lt_prog_compiler_pic_CXX
13122        compiler_flags=-v
13123        linker_flags=-v
13124        verstring=
13125        output_objdir=.
13126        libname=conftest
13127        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13128        allow_undefined_flag_CXX=
13129        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13130  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13131  ac_status=$?
13132  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133  (exit $ac_status); }
13134        then
13135	  archive_cmds_need_lc_CXX=no
13136        else
13137	  archive_cmds_need_lc_CXX=yes
13138        fi
13139        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13140      else
13141        cat conftest.err 1>&5
13142      fi
13143      $rm conftest*
13144      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13145$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13146      ;;
13147    esac
13148  fi
13149  ;;
13150esac
13151
13152{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13153$as_echo_n "checking dynamic linker characteristics... " >&6; }
13154library_names_spec=
13155libname_spec='lib$name'
13156soname_spec=
13157shrext_cmds=".so"
13158postinstall_cmds=
13159postuninstall_cmds=
13160finish_cmds=
13161finish_eval=
13162shlibpath_var=
13163shlibpath_overrides_runpath=unknown
13164version_type=none
13165dynamic_linker="$host_os ld.so"
13166sys_lib_dlsearch_path_spec="/lib /usr/lib"
13167
13168need_lib_prefix=unknown
13169hardcode_into_libs=no
13170
13171# when you set need_version to no, make sure it does not cause -set_version
13172# flags to be left without arguments
13173need_version=unknown
13174
13175case $host_os in
13176aix3*)
13177  version_type=linux
13178  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13179  shlibpath_var=LIBPATH
13180
13181  # AIX 3 has no versioning support, so we append a major version to the name.
13182  soname_spec='${libname}${release}${shared_ext}$major'
13183  ;;
13184
13185aix[4-9]*)
13186  version_type=linux
13187  need_lib_prefix=no
13188  need_version=no
13189  hardcode_into_libs=yes
13190  if test "$host_cpu" = ia64; then
13191    # AIX 5 supports IA64
13192    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13193    shlibpath_var=LD_LIBRARY_PATH
13194  else
13195    # With GCC up to 2.95.x, collect2 would create an import file
13196    # for dependence libraries.  The import file would start with
13197    # the line `#! .'.  This would cause the generated library to
13198    # depend on `.', always an invalid library.  This was fixed in
13199    # development snapshots of GCC prior to 3.0.
13200    case $host_os in
13201      aix4 | aix4.[01] | aix4.[01].*)
13202      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13203	   echo ' yes '
13204	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13205	:
13206      else
13207	can_build_shared=no
13208      fi
13209      ;;
13210    esac
13211    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13212    # soname into executable. Probably we can add versioning support to
13213    # collect2, so additional links can be useful in future.
13214    if test "$aix_use_runtimelinking" = yes; then
13215      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13216      # instead of lib<name>.a to let people know that these are not
13217      # typical AIX shared libraries.
13218      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13219    else
13220      # We preserve .a as extension for shared libraries through AIX4.2
13221      # and later when we are not doing run time linking.
13222      library_names_spec='${libname}${release}.a $libname.a'
13223      soname_spec='${libname}${release}${shared_ext}$major'
13224    fi
13225    shlibpath_var=LIBPATH
13226  fi
13227  ;;
13228
13229amigaos*)
13230  library_names_spec='$libname.ixlibrary $libname.a'
13231  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13232  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'
13233  ;;
13234
13235beos*)
13236  library_names_spec='${libname}${shared_ext}'
13237  dynamic_linker="$host_os ld.so"
13238  shlibpath_var=LIBRARY_PATH
13239  ;;
13240
13241bsdi[45]*)
13242  version_type=linux
13243  need_version=no
13244  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13245  soname_spec='${libname}${release}${shared_ext}$major'
13246  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13247  shlibpath_var=LD_LIBRARY_PATH
13248  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13249  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13250  # the default ld.so.conf also contains /usr/contrib/lib and
13251  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13252  # libtool to hard-code these into programs
13253  ;;
13254
13255cygwin* | mingw* | pw32*)
13256  version_type=windows
13257  shrext_cmds=".dll"
13258  need_version=no
13259  need_lib_prefix=no
13260
13261  case $GCC,$host_os in
13262  yes,cygwin* | yes,mingw* | yes,pw32*)
13263    library_names_spec='$libname.dll.a'
13264    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13265    postinstall_cmds='base_file=`basename \${file}`~
13266      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13267      dldir=$destdir/`dirname \$dlpath`~
13268      test -d \$dldir || mkdir -p \$dldir~
13269      $install_prog $dir/$dlname \$dldir/$dlname~
13270      chmod a+x \$dldir/$dlname'
13271    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13272      dlpath=$dir/\$dldll~
13273       $rm \$dlpath'
13274    shlibpath_overrides_runpath=yes
13275
13276    case $host_os in
13277    cygwin*)
13278      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13279      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13280      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13281      ;;
13282    mingw*)
13283      # MinGW DLLs use traditional 'lib' prefix
13284      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13285      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13286      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13287        # It is most probably a Windows format PATH printed by
13288        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13289        # path with ; separators, and with drive letters. We can handle the
13290        # drive letters (cygwin fileutils understands them), so leave them,
13291        # especially as we might pass files found there to a mingw objdump,
13292        # which wouldn't understand a cygwinified path. Ahh.
13293        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13294      else
13295        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13296      fi
13297      ;;
13298    pw32*)
13299      # pw32 DLLs use 'pw' prefix rather than 'lib'
13300      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13301      ;;
13302    esac
13303    ;;
13304
13305  *)
13306    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13307    ;;
13308  esac
13309  dynamic_linker='Win32 ld.exe'
13310  # FIXME: first we should search . and the directory the executable is in
13311  shlibpath_var=PATH
13312  ;;
13313
13314darwin* | rhapsody*)
13315  dynamic_linker="$host_os dyld"
13316  version_type=darwin
13317  need_lib_prefix=no
13318  need_version=no
13319  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13320  soname_spec='${libname}${release}${major}$shared_ext'
13321  shlibpath_overrides_runpath=yes
13322  shlibpath_var=DYLD_LIBRARY_PATH
13323  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13324
13325  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13326  ;;
13327
13328dgux*)
13329  version_type=linux
13330  need_lib_prefix=no
13331  need_version=no
13332  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13333  soname_spec='${libname}${release}${shared_ext}$major'
13334  shlibpath_var=LD_LIBRARY_PATH
13335  ;;
13336
13337freebsd1*)
13338  dynamic_linker=no
13339  ;;
13340
13341freebsd* | dragonfly*)
13342  # DragonFly does not have aout.  When/if they implement a new
13343  # versioning mechanism, adjust this.
13344  if test -x /usr/bin/objformat; then
13345    objformat=`/usr/bin/objformat`
13346  else
13347    case $host_os in
13348    freebsd[123]*) objformat=aout ;;
13349    *) objformat=elf ;;
13350    esac
13351  fi
13352  version_type=freebsd-$objformat
13353  case $version_type in
13354    freebsd-elf*)
13355      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13356      need_version=no
13357      need_lib_prefix=no
13358      ;;
13359    freebsd-*)
13360      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13361      need_version=yes
13362      ;;
13363  esac
13364  shlibpath_var=LD_LIBRARY_PATH
13365  case $host_os in
13366  freebsd2*)
13367    shlibpath_overrides_runpath=yes
13368    ;;
13369  freebsd3.[01]* | freebsdelf3.[01]*)
13370    shlibpath_overrides_runpath=yes
13371    hardcode_into_libs=yes
13372    ;;
13373  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13374  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13375    shlibpath_overrides_runpath=no
13376    hardcode_into_libs=yes
13377    ;;
13378  *) # from 4.6 on, and DragonFly
13379    shlibpath_overrides_runpath=yes
13380    hardcode_into_libs=yes
13381    ;;
13382  esac
13383  ;;
13384
13385gnu*)
13386  version_type=linux
13387  need_lib_prefix=no
13388  need_version=no
13389  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13390  soname_spec='${libname}${release}${shared_ext}$major'
13391  shlibpath_var=LD_LIBRARY_PATH
13392  hardcode_into_libs=yes
13393  ;;
13394
13395hpux9* | hpux10* | hpux11*)
13396  # Give a soname corresponding to the major version so that dld.sl refuses to
13397  # link against other versions.
13398  version_type=sunos
13399  need_lib_prefix=no
13400  need_version=no
13401  case $host_cpu in
13402  ia64*)
13403    shrext_cmds='.so'
13404    hardcode_into_libs=yes
13405    dynamic_linker="$host_os dld.so"
13406    shlibpath_var=LD_LIBRARY_PATH
13407    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13408    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13409    soname_spec='${libname}${release}${shared_ext}$major'
13410    if test "X$HPUX_IA64_MODE" = X32; then
13411      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13412    else
13413      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13414    fi
13415    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13416    ;;
13417   hppa*64*)
13418     shrext_cmds='.sl'
13419     hardcode_into_libs=yes
13420     dynamic_linker="$host_os dld.sl"
13421     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13422     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13423     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13424     soname_spec='${libname}${release}${shared_ext}$major'
13425     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13426     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13427     ;;
13428   *)
13429    shrext_cmds='.sl'
13430    dynamic_linker="$host_os dld.sl"
13431    shlibpath_var=SHLIB_PATH
13432    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13433    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13434    soname_spec='${libname}${release}${shared_ext}$major'
13435    ;;
13436  esac
13437  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13438  postinstall_cmds='chmod 555 $lib'
13439  ;;
13440
13441interix[3-9]*)
13442  version_type=linux
13443  need_lib_prefix=no
13444  need_version=no
13445  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13446  soname_spec='${libname}${release}${shared_ext}$major'
13447  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13448  shlibpath_var=LD_LIBRARY_PATH
13449  shlibpath_overrides_runpath=no
13450  hardcode_into_libs=yes
13451  ;;
13452
13453irix5* | irix6* | nonstopux*)
13454  case $host_os in
13455    nonstopux*) version_type=nonstopux ;;
13456    *)
13457	if test "$lt_cv_prog_gnu_ld" = yes; then
13458		version_type=linux
13459	else
13460		version_type=irix
13461	fi ;;
13462  esac
13463  need_lib_prefix=no
13464  need_version=no
13465  soname_spec='${libname}${release}${shared_ext}$major'
13466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13467  case $host_os in
13468  irix5* | nonstopux*)
13469    libsuff= shlibsuff=
13470    ;;
13471  *)
13472    case $LD in # libtool.m4 will add one of these switches to LD
13473    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13474      libsuff= shlibsuff= libmagic=32-bit;;
13475    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13476      libsuff=32 shlibsuff=N32 libmagic=N32;;
13477    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13478      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13479    *) libsuff= shlibsuff= libmagic=never-match;;
13480    esac
13481    ;;
13482  esac
13483  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13484  shlibpath_overrides_runpath=no
13485  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13486  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13487  hardcode_into_libs=yes
13488  ;;
13489
13490# No shared lib support for Linux oldld, aout, or coff.
13491linux*oldld* | linux*aout* | linux*coff*)
13492  dynamic_linker=no
13493  ;;
13494
13495# This must be Linux ELF.
13496linux* | k*bsd*-gnu)
13497  version_type=linux
13498  need_lib_prefix=no
13499  need_version=no
13500  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13501  soname_spec='${libname}${release}${shared_ext}$major'
13502  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13503  shlibpath_var=LD_LIBRARY_PATH
13504  shlibpath_overrides_runpath=no
13505  # This implies no fast_install, which is unacceptable.
13506  # Some rework will be needed to allow for fast_install
13507  # before this can be enabled.
13508  hardcode_into_libs=yes
13509
13510  # find out which ABI we are using
13511  libsuff=
13512  case "$host_cpu" in
13513  x86_64*|s390x*|powerpc64*)
13514    echo '#line 13514 "configure"' > conftest.$ac_ext
13515    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13516  (eval $ac_compile) 2>&5
13517  ac_status=$?
13518  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519  (exit $ac_status); }; then
13520      case `/usr/bin/file conftest.$ac_objext` in
13521      *64-bit*)
13522        libsuff=64
13523        ;;
13524      esac
13525    fi
13526    rm -rf conftest*
13527    ;;
13528  esac
13529
13530  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
13531
13532  # Append ld.so.conf contents to the search path
13533  if test -f /etc/ld.so.conf; then
13534    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' ' '`
13535    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13536  fi
13537
13538  # We used to test for /lib/ld.so.1 and disable shared libraries on
13539  # powerpc, because MkLinux only supported shared libraries with the
13540  # GNU dynamic linker.  Since this was broken with cross compilers,
13541  # most powerpc-linux boxes support dynamic linking these days and
13542  # people can always --disable-shared, the test was removed, and we
13543  # assume the GNU/Linux dynamic linker is in use.
13544  dynamic_linker='GNU/Linux ld.so'
13545  ;;
13546
13547netbsd*)
13548  version_type=sunos
13549  need_lib_prefix=no
13550  need_version=no
13551  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13552    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13553    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13554    dynamic_linker='NetBSD (a.out) ld.so'
13555  else
13556    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13557    soname_spec='${libname}${release}${shared_ext}$major'
13558    dynamic_linker='NetBSD ld.elf_so'
13559  fi
13560  shlibpath_var=LD_LIBRARY_PATH
13561  shlibpath_overrides_runpath=yes
13562  hardcode_into_libs=yes
13563  ;;
13564
13565newsos6)
13566  version_type=linux
13567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13568  shlibpath_var=LD_LIBRARY_PATH
13569  shlibpath_overrides_runpath=yes
13570  ;;
13571
13572nto-qnx*)
13573  version_type=linux
13574  need_lib_prefix=no
13575  need_version=no
13576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13577  soname_spec='${libname}${release}${shared_ext}$major'
13578  shlibpath_var=LD_LIBRARY_PATH
13579  shlibpath_overrides_runpath=yes
13580  ;;
13581
13582openbsd*)
13583  version_type=sunos
13584  sys_lib_dlsearch_path_spec="/usr/lib"
13585  need_lib_prefix=no
13586  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13587  case $host_os in
13588    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13589    *)                         need_version=no  ;;
13590  esac
13591  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13592  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13593  shlibpath_var=LD_LIBRARY_PATH
13594  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13595    case $host_os in
13596      openbsd2.[89] | openbsd2.[89].*)
13597	shlibpath_overrides_runpath=no
13598	;;
13599      *)
13600	shlibpath_overrides_runpath=yes
13601	;;
13602      esac
13603  else
13604    shlibpath_overrides_runpath=yes
13605  fi
13606  ;;
13607
13608os2*)
13609  libname_spec='$name'
13610  shrext_cmds=".dll"
13611  need_lib_prefix=no
13612  library_names_spec='$libname${shared_ext} $libname.a'
13613  dynamic_linker='OS/2 ld.exe'
13614  shlibpath_var=LIBPATH
13615  ;;
13616
13617osf3* | osf4* | osf5*)
13618  version_type=osf
13619  need_lib_prefix=no
13620  need_version=no
13621  soname_spec='${libname}${release}${shared_ext}$major'
13622  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13623  shlibpath_var=LD_LIBRARY_PATH
13624  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13625  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13626  ;;
13627
13628rdos*)
13629  dynamic_linker=no
13630  ;;
13631
13632solaris*)
13633  version_type=linux
13634  need_lib_prefix=no
13635  need_version=no
13636  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13637  soname_spec='${libname}${release}${shared_ext}$major'
13638  shlibpath_var=LD_LIBRARY_PATH
13639  shlibpath_overrides_runpath=yes
13640  hardcode_into_libs=yes
13641  # ldd complains unless libraries are executable
13642  postinstall_cmds='chmod +x $lib'
13643  ;;
13644
13645sunos4*)
13646  version_type=sunos
13647  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13648  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13649  shlibpath_var=LD_LIBRARY_PATH
13650  shlibpath_overrides_runpath=yes
13651  if test "$with_gnu_ld" = yes; then
13652    need_lib_prefix=no
13653  fi
13654  need_version=yes
13655  ;;
13656
13657sysv4 | sysv4.3*)
13658  version_type=linux
13659  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13660  soname_spec='${libname}${release}${shared_ext}$major'
13661  shlibpath_var=LD_LIBRARY_PATH
13662  case $host_vendor in
13663    sni)
13664      shlibpath_overrides_runpath=no
13665      need_lib_prefix=no
13666      export_dynamic_flag_spec='${wl}-Blargedynsym'
13667      runpath_var=LD_RUN_PATH
13668      ;;
13669    siemens)
13670      need_lib_prefix=no
13671      ;;
13672    motorola)
13673      need_lib_prefix=no
13674      need_version=no
13675      shlibpath_overrides_runpath=no
13676      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13677      ;;
13678  esac
13679  ;;
13680
13681sysv4*MP*)
13682  if test -d /usr/nec ;then
13683    version_type=linux
13684    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13685    soname_spec='$libname${shared_ext}.$major'
13686    shlibpath_var=LD_LIBRARY_PATH
13687  fi
13688  ;;
13689
13690sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13691  version_type=freebsd-elf
13692  need_lib_prefix=no
13693  need_version=no
13694  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13695  soname_spec='${libname}${release}${shared_ext}$major'
13696  shlibpath_var=LD_LIBRARY_PATH
13697  hardcode_into_libs=yes
13698  if test "$with_gnu_ld" = yes; then
13699    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13700    shlibpath_overrides_runpath=no
13701  else
13702    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13703    shlibpath_overrides_runpath=yes
13704    case $host_os in
13705      sco3.2v5*)
13706        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13707	;;
13708    esac
13709  fi
13710  sys_lib_dlsearch_path_spec='/usr/lib'
13711  ;;
13712
13713uts4*)
13714  version_type=linux
13715  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13716  soname_spec='${libname}${release}${shared_ext}$major'
13717  shlibpath_var=LD_LIBRARY_PATH
13718  ;;
13719
13720*)
13721  dynamic_linker=no
13722  ;;
13723esac
13724{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13725$as_echo "$dynamic_linker" >&6; }
13726test "$dynamic_linker" = no && can_build_shared=no
13727
13728if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13729  $as_echo_n "(cached) " >&6
13730else
13731  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13732fi
13733
13734sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13735if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13736  $as_echo_n "(cached) " >&6
13737else
13738  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13739fi
13740
13741sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13742
13743variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13744if test "$GCC" = yes; then
13745  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13746fi
13747
13748{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13749$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13750hardcode_action_CXX=
13751if test -n "$hardcode_libdir_flag_spec_CXX" || \
13752   test -n "$runpath_var_CXX" || \
13753   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13754
13755  # We can hardcode non-existant directories.
13756  if test "$hardcode_direct_CXX" != no &&
13757     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13758     # have to relink, otherwise we might link with an installed library
13759     # when we should be linking with a yet-to-be-installed one
13760     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13761     test "$hardcode_minus_L_CXX" != no; then
13762    # Linking always hardcodes the temporary library directory.
13763    hardcode_action_CXX=relink
13764  else
13765    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13766    hardcode_action_CXX=immediate
13767  fi
13768else
13769  # We cannot hardcode anything, or else we can only hardcode existing
13770  # directories.
13771  hardcode_action_CXX=unsupported
13772fi
13773{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13774$as_echo "$hardcode_action_CXX" >&6; }
13775
13776if test "$hardcode_action_CXX" = relink; then
13777  # Fast installation is not supported
13778  enable_fast_install=no
13779elif test "$shlibpath_overrides_runpath" = yes ||
13780     test "$enable_shared" = no; then
13781  # Fast installation is not necessary
13782  enable_fast_install=needless
13783fi
13784
13785
13786# The else clause should only fire when bootstrapping the
13787# libtool distribution, otherwise you forgot to ship ltmain.sh
13788# with your package, and you will get complaints that there are
13789# no rules to generate ltmain.sh.
13790if test -f "$ltmain"; then
13791  # See if we are running on zsh, and set the options which allow our commands through
13792  # without removal of \ escapes.
13793  if test -n "${ZSH_VERSION+set}" ; then
13794    setopt NO_GLOB_SUBST
13795  fi
13796  # Now quote all the things that may contain metacharacters while being
13797  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13798  # variables and quote the copies for generation of the libtool script.
13799  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13800    SED SHELL STRIP \
13801    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13802    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13803    deplibs_check_method reload_flag reload_cmds need_locks \
13804    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13805    lt_cv_sys_global_symbol_to_c_name_address \
13806    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13807    old_postinstall_cmds old_postuninstall_cmds \
13808    compiler_CXX \
13809    CC_CXX \
13810    LD_CXX \
13811    lt_prog_compiler_wl_CXX \
13812    lt_prog_compiler_pic_CXX \
13813    lt_prog_compiler_static_CXX \
13814    lt_prog_compiler_no_builtin_flag_CXX \
13815    export_dynamic_flag_spec_CXX \
13816    thread_safe_flag_spec_CXX \
13817    whole_archive_flag_spec_CXX \
13818    enable_shared_with_static_runtimes_CXX \
13819    old_archive_cmds_CXX \
13820    old_archive_from_new_cmds_CXX \
13821    predep_objects_CXX \
13822    postdep_objects_CXX \
13823    predeps_CXX \
13824    postdeps_CXX \
13825    compiler_lib_search_path_CXX \
13826    compiler_lib_search_dirs_CXX \
13827    archive_cmds_CXX \
13828    archive_expsym_cmds_CXX \
13829    postinstall_cmds_CXX \
13830    postuninstall_cmds_CXX \
13831    old_archive_from_expsyms_cmds_CXX \
13832    allow_undefined_flag_CXX \
13833    no_undefined_flag_CXX \
13834    export_symbols_cmds_CXX \
13835    hardcode_libdir_flag_spec_CXX \
13836    hardcode_libdir_flag_spec_ld_CXX \
13837    hardcode_libdir_separator_CXX \
13838    hardcode_automatic_CXX \
13839    module_cmds_CXX \
13840    module_expsym_cmds_CXX \
13841    lt_cv_prog_compiler_c_o_CXX \
13842    fix_srcfile_path_CXX \
13843    exclude_expsyms_CXX \
13844    include_expsyms_CXX; do
13845
13846    case $var in
13847    old_archive_cmds_CXX | \
13848    old_archive_from_new_cmds_CXX | \
13849    archive_cmds_CXX | \
13850    archive_expsym_cmds_CXX | \
13851    module_cmds_CXX | \
13852    module_expsym_cmds_CXX | \
13853    old_archive_from_expsyms_cmds_CXX | \
13854    export_symbols_cmds_CXX | \
13855    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13856    postinstall_cmds | postuninstall_cmds | \
13857    old_postinstall_cmds | old_postuninstall_cmds | \
13858    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13859      # Double-quote double-evaled strings.
13860      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13861      ;;
13862    *)
13863      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13864      ;;
13865    esac
13866  done
13867
13868  case $lt_echo in
13869  *'\$0 --fallback-echo"')
13870    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13871    ;;
13872  esac
13873
13874cfgfile="$ofile"
13875
13876  cat <<__EOF__ >> "$cfgfile"
13877# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13878
13879# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13880
13881# Shell to use when invoking shell scripts.
13882SHELL=$lt_SHELL
13883
13884# Whether or not to build shared libraries.
13885build_libtool_libs=$enable_shared
13886
13887# Whether or not to build static libraries.
13888build_old_libs=$enable_static
13889
13890# Whether or not to add -lc for building shared libraries.
13891build_libtool_need_lc=$archive_cmds_need_lc_CXX
13892
13893# Whether or not to disallow shared libs when runtime libs are static
13894allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13895
13896# Whether or not to optimize for fast installation.
13897fast_install=$enable_fast_install
13898
13899# The host system.
13900host_alias=$host_alias
13901host=$host
13902host_os=$host_os
13903
13904# The build system.
13905build_alias=$build_alias
13906build=$build
13907build_os=$build_os
13908
13909# An echo program that does not interpret backslashes.
13910echo=$lt_echo
13911
13912# The archiver.
13913AR=$lt_AR
13914AR_FLAGS=$lt_AR_FLAGS
13915
13916# A C compiler.
13917LTCC=$lt_LTCC
13918
13919# LTCC compiler flags.
13920LTCFLAGS=$lt_LTCFLAGS
13921
13922# A language-specific compiler.
13923CC=$lt_compiler_CXX
13924
13925# Is the compiler the GNU C compiler?
13926with_gcc=$GCC_CXX
13927
13928# An ERE matcher.
13929EGREP=$lt_EGREP
13930
13931# The linker used to build libraries.
13932LD=$lt_LD_CXX
13933
13934# Whether we need hard or soft links.
13935LN_S=$lt_LN_S
13936
13937# A BSD-compatible nm program.
13938NM=$lt_NM
13939
13940# A symbol stripping program
13941STRIP=$lt_STRIP
13942
13943# Used to examine libraries when file_magic_cmd begins "file"
13944MAGIC_CMD=$MAGIC_CMD
13945
13946# Used on cygwin: DLL creation program.
13947DLLTOOL="$DLLTOOL"
13948
13949# Used on cygwin: object dumper.
13950OBJDUMP="$OBJDUMP"
13951
13952# Used on cygwin: assembler.
13953AS="$AS"
13954
13955# The name of the directory that contains temporary libtool files.
13956objdir=$objdir
13957
13958# How to create reloadable object files.
13959reload_flag=$lt_reload_flag
13960reload_cmds=$lt_reload_cmds
13961
13962# How to pass a linker flag through the compiler.
13963wl=$lt_lt_prog_compiler_wl_CXX
13964
13965# Object file suffix (normally "o").
13966objext="$ac_objext"
13967
13968# Old archive suffix (normally "a").
13969libext="$libext"
13970
13971# Shared library suffix (normally ".so").
13972shrext_cmds='$shrext_cmds'
13973
13974# Executable file suffix (normally "").
13975exeext="$exeext"
13976
13977# Additional compiler flags for building library objects.
13978pic_flag=$lt_lt_prog_compiler_pic_CXX
13979pic_mode=$pic_mode
13980
13981# What is the maximum length of a command?
13982max_cmd_len=$lt_cv_sys_max_cmd_len
13983
13984# Does compiler simultaneously support -c and -o options?
13985compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13986
13987# Must we lock files when doing compilation?
13988need_locks=$lt_need_locks
13989
13990# Do we need the lib prefix for modules?
13991need_lib_prefix=$need_lib_prefix
13992
13993# Do we need a version for libraries?
13994need_version=$need_version
13995
13996# Whether dlopen is supported.
13997dlopen_support=$enable_dlopen
13998
13999# Whether dlopen of programs is supported.
14000dlopen_self=$enable_dlopen_self
14001
14002# Whether dlopen of statically linked programs is supported.
14003dlopen_self_static=$enable_dlopen_self_static
14004
14005# Compiler flag to prevent dynamic linking.
14006link_static_flag=$lt_lt_prog_compiler_static_CXX
14007
14008# Compiler flag to turn off builtin functions.
14009no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14010
14011# Compiler flag to allow reflexive dlopens.
14012export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14013
14014# Compiler flag to generate shared objects directly from archives.
14015whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14016
14017# Compiler flag to generate thread-safe objects.
14018thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14019
14020# Library versioning type.
14021version_type=$version_type
14022
14023# Format of library name prefix.
14024libname_spec=$lt_libname_spec
14025
14026# List of archive names.  First name is the real one, the rest are links.
14027# The last name is the one that the linker finds with -lNAME.
14028library_names_spec=$lt_library_names_spec
14029
14030# The coded name of the library, if different from the real name.
14031soname_spec=$lt_soname_spec
14032
14033# Commands used to build and install an old-style archive.
14034RANLIB=$lt_RANLIB
14035old_archive_cmds=$lt_old_archive_cmds_CXX
14036old_postinstall_cmds=$lt_old_postinstall_cmds
14037old_postuninstall_cmds=$lt_old_postuninstall_cmds
14038
14039# Create an old-style archive from a shared archive.
14040old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14041
14042# Create a temporary old-style archive to link instead of a shared archive.
14043old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14044
14045# Commands used to build and install a shared archive.
14046archive_cmds=$lt_archive_cmds_CXX
14047archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14048postinstall_cmds=$lt_postinstall_cmds
14049postuninstall_cmds=$lt_postuninstall_cmds
14050
14051# Commands used to build a loadable module (assumed same as above if empty)
14052module_cmds=$lt_module_cmds_CXX
14053module_expsym_cmds=$lt_module_expsym_cmds_CXX
14054
14055# Commands to strip libraries.
14056old_striplib=$lt_old_striplib
14057striplib=$lt_striplib
14058
14059# Dependencies to place before the objects being linked to create a
14060# shared library.
14061predep_objects=$lt_predep_objects_CXX
14062
14063# Dependencies to place after the objects being linked to create a
14064# shared library.
14065postdep_objects=$lt_postdep_objects_CXX
14066
14067# Dependencies to place before the objects being linked to create a
14068# shared library.
14069predeps=$lt_predeps_CXX
14070
14071# Dependencies to place after the objects being linked to create a
14072# shared library.
14073postdeps=$lt_postdeps_CXX
14074
14075# The directories searched by this compiler when creating a shared
14076# library
14077compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14078
14079# The library search path used internally by the compiler when linking
14080# a shared library.
14081compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14082
14083# Method to check whether dependent libraries are shared objects.
14084deplibs_check_method=$lt_deplibs_check_method
14085
14086# Command to use when deplibs_check_method == file_magic.
14087file_magic_cmd=$lt_file_magic_cmd
14088
14089# Flag that allows shared libraries with undefined symbols to be built.
14090allow_undefined_flag=$lt_allow_undefined_flag_CXX
14091
14092# Flag that forces no undefined symbols.
14093no_undefined_flag=$lt_no_undefined_flag_CXX
14094
14095# Commands used to finish a libtool library installation in a directory.
14096finish_cmds=$lt_finish_cmds
14097
14098# Same as above, but a single script fragment to be evaled but not shown.
14099finish_eval=$lt_finish_eval
14100
14101# Take the output of nm and produce a listing of raw symbols and C names.
14102global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14103
14104# Transform the output of nm in a proper C declaration
14105global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14106
14107# Transform the output of nm in a C name address pair
14108global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14109
14110# This is the shared library runtime path variable.
14111runpath_var=$runpath_var
14112
14113# This is the shared library path variable.
14114shlibpath_var=$shlibpath_var
14115
14116# Is shlibpath searched before the hard-coded library search path?
14117shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14118
14119# How to hardcode a shared library path into an executable.
14120hardcode_action=$hardcode_action_CXX
14121
14122# Whether we should hardcode library paths into libraries.
14123hardcode_into_libs=$hardcode_into_libs
14124
14125# Flag to hardcode \$libdir into a binary during linking.
14126# This must work even if \$libdir does not exist.
14127hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14128
14129# If ld is used when linking, flag to hardcode \$libdir into
14130# a binary during linking. This must work even if \$libdir does
14131# not exist.
14132hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14133
14134# Whether we need a single -rpath flag with a separated argument.
14135hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14136
14137# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14138# resulting binary.
14139hardcode_direct=$hardcode_direct_CXX
14140
14141# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14142# resulting binary.
14143hardcode_minus_L=$hardcode_minus_L_CXX
14144
14145# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14146# the resulting binary.
14147hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14148
14149# Set to yes if building a shared library automatically hardcodes DIR into the library
14150# and all subsequent libraries and executables linked against it.
14151hardcode_automatic=$hardcode_automatic_CXX
14152
14153# Variables whose values should be saved in libtool wrapper scripts and
14154# restored at relink time.
14155variables_saved_for_relink="$variables_saved_for_relink"
14156
14157# Whether libtool must link a program against all its dependency libraries.
14158link_all_deplibs=$link_all_deplibs_CXX
14159
14160# Compile-time system search path for libraries
14161sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14162
14163# Run-time system search path for libraries
14164sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14165
14166# Fix the shell variable \$srcfile for the compiler.
14167fix_srcfile_path=$lt_fix_srcfile_path
14168
14169# Set to yes if exported symbols are required.
14170always_export_symbols=$always_export_symbols_CXX
14171
14172# The commands to list exported symbols.
14173export_symbols_cmds=$lt_export_symbols_cmds_CXX
14174
14175# The commands to extract the exported symbol list from a shared archive.
14176extract_expsyms_cmds=$lt_extract_expsyms_cmds
14177
14178# Symbols that should not be listed in the preloaded symbols.
14179exclude_expsyms=$lt_exclude_expsyms_CXX
14180
14181# Symbols that must always be exported.
14182include_expsyms=$lt_include_expsyms_CXX
14183
14184# ### END LIBTOOL TAG CONFIG: $tagname
14185
14186__EOF__
14187
14188
14189else
14190  # If there is no Makefile yet, we rely on a make rule to execute
14191  # `config.status --recheck' to rerun these tests and create the
14192  # libtool script then.
14193  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14194  if test -f "$ltmain_in"; then
14195    test -f Makefile && make "$ltmain"
14196  fi
14197fi
14198
14199
14200ac_ext=c
14201ac_cpp='$CPP $CPPFLAGS'
14202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14204ac_compiler_gnu=$ac_cv_c_compiler_gnu
14205
14206CC=$lt_save_CC
14207LDCXX=$LD
14208LD=$lt_save_LD
14209GCC=$lt_save_GCC
14210with_gnu_ldcxx=$with_gnu_ld
14211with_gnu_ld=$lt_save_with_gnu_ld
14212lt_cv_path_LDCXX=$lt_cv_path_LD
14213lt_cv_path_LD=$lt_save_path_LD
14214lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14215lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14216
14217	else
14218	  tagname=""
14219	fi
14220	;;
14221
14222      F77)
14223	if test -n "$F77" && test "X$F77" != "Xno"; then
14224
14225ac_ext=f
14226ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14227ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14228ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14229
14230
14231archive_cmds_need_lc_F77=no
14232allow_undefined_flag_F77=
14233always_export_symbols_F77=no
14234archive_expsym_cmds_F77=
14235export_dynamic_flag_spec_F77=
14236hardcode_direct_F77=no
14237hardcode_libdir_flag_spec_F77=
14238hardcode_libdir_flag_spec_ld_F77=
14239hardcode_libdir_separator_F77=
14240hardcode_minus_L_F77=no
14241hardcode_automatic_F77=no
14242module_cmds_F77=
14243module_expsym_cmds_F77=
14244link_all_deplibs_F77=unknown
14245old_archive_cmds_F77=$old_archive_cmds
14246no_undefined_flag_F77=
14247whole_archive_flag_spec_F77=
14248enable_shared_with_static_runtimes_F77=no
14249
14250# Source file extension for f77 test sources.
14251ac_ext=f
14252
14253# Object file extension for compiled f77 test sources.
14254objext=o
14255objext_F77=$objext
14256
14257# Code to be used in simple compile tests
14258lt_simple_compile_test_code="\
14259      subroutine t
14260      return
14261      end
14262"
14263
14264# Code to be used in simple link tests
14265lt_simple_link_test_code="\
14266      program t
14267      end
14268"
14269
14270# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14271
14272# If no C compiler was specified, use CC.
14273LTCC=${LTCC-"$CC"}
14274
14275# If no C compiler flags were specified, use CFLAGS.
14276LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14277
14278# Allow CC to be a program name with arguments.
14279compiler=$CC
14280
14281
14282# save warnings/boilerplate of simple test code
14283ac_outfile=conftest.$ac_objext
14284echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14285eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14286_lt_compiler_boilerplate=`cat conftest.err`
14287$rm conftest*
14288
14289ac_outfile=conftest.$ac_objext
14290echo "$lt_simple_link_test_code" >conftest.$ac_ext
14291eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14292_lt_linker_boilerplate=`cat conftest.err`
14293$rm -r conftest*
14294
14295
14296# Allow CC to be a program name with arguments.
14297lt_save_CC="$CC"
14298CC=${F77-"f77"}
14299compiler=$CC
14300compiler_F77=$CC
14301for cc_temp in $compiler""; do
14302  case $cc_temp in
14303    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14304    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14305    \-*) ;;
14306    *) break;;
14307  esac
14308done
14309cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14310
14311
14312{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14313$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14314{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14315$as_echo "$can_build_shared" >&6; }
14316
14317{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14318$as_echo_n "checking whether to build shared libraries... " >&6; }
14319test "$can_build_shared" = "no" && enable_shared=no
14320
14321# On AIX, shared libraries and static libraries use the same namespace, and
14322# are all built from PIC.
14323case $host_os in
14324aix3*)
14325  test "$enable_shared" = yes && enable_static=no
14326  if test -n "$RANLIB"; then
14327    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14328    postinstall_cmds='$RANLIB $lib'
14329  fi
14330  ;;
14331aix[4-9]*)
14332  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14333    test "$enable_shared" = yes && enable_static=no
14334  fi
14335  ;;
14336esac
14337{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14338$as_echo "$enable_shared" >&6; }
14339
14340{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14341$as_echo_n "checking whether to build static libraries... " >&6; }
14342# Make sure either enable_shared or enable_static is yes.
14343test "$enable_shared" = yes || enable_static=yes
14344{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14345$as_echo "$enable_static" >&6; }
14346
14347GCC_F77="$G77"
14348LD_F77="$LD"
14349
14350lt_prog_compiler_wl_F77=
14351lt_prog_compiler_pic_F77=
14352lt_prog_compiler_static_F77=
14353
14354{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14355$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14356
14357  if test "$GCC" = yes; then
14358    lt_prog_compiler_wl_F77='-Wl,'
14359    lt_prog_compiler_static_F77='-static'
14360
14361    case $host_os in
14362      aix*)
14363      # All AIX code is PIC.
14364      if test "$host_cpu" = ia64; then
14365	# AIX 5 now supports IA64 processor
14366	lt_prog_compiler_static_F77='-Bstatic'
14367      fi
14368      ;;
14369
14370    amigaos*)
14371      # FIXME: we need at least 68020 code to build shared libraries, but
14372      # adding the `-m68020' flag to GCC prevents building anything better,
14373      # like `-m68040'.
14374      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14375      ;;
14376
14377    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14378      # PIC is the default for these OSes.
14379      ;;
14380
14381    mingw* | cygwin* | pw32* | os2*)
14382      # This hack is so that the source file can tell whether it is being
14383      # built for inclusion in a dll (and should export symbols for example).
14384      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14385      # (--disable-auto-import) libraries
14386      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14387      ;;
14388
14389    darwin* | rhapsody*)
14390      # PIC is the default on this platform
14391      # Common symbols not allowed in MH_DYLIB files
14392      lt_prog_compiler_pic_F77='-fno-common'
14393      ;;
14394
14395    interix[3-9]*)
14396      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14397      # Instead, we relocate shared libraries at runtime.
14398      ;;
14399
14400    msdosdjgpp*)
14401      # Just because we use GCC doesn't mean we suddenly get shared libraries
14402      # on systems that don't support them.
14403      lt_prog_compiler_can_build_shared_F77=no
14404      enable_shared=no
14405      ;;
14406
14407    sysv4*MP*)
14408      if test -d /usr/nec; then
14409	lt_prog_compiler_pic_F77=-Kconform_pic
14410      fi
14411      ;;
14412
14413    hpux*)
14414      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14415      # not for PA HP-UX.
14416      case $host_cpu in
14417      hppa*64*|ia64*)
14418	# +Z the default
14419	;;
14420      *)
14421	lt_prog_compiler_pic_F77='-fPIC'
14422	;;
14423      esac
14424      ;;
14425
14426    *)
14427      lt_prog_compiler_pic_F77='-fPIC'
14428      ;;
14429    esac
14430  else
14431    # PORTME Check for flag to pass linker flags through the system compiler.
14432    case $host_os in
14433    aix*)
14434      lt_prog_compiler_wl_F77='-Wl,'
14435      if test "$host_cpu" = ia64; then
14436	# AIX 5 now supports IA64 processor
14437	lt_prog_compiler_static_F77='-Bstatic'
14438      else
14439	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14440      fi
14441      ;;
14442      darwin*)
14443        # PIC is the default on this platform
14444        # Common symbols not allowed in MH_DYLIB files
14445       case $cc_basename in
14446         xlc*)
14447         lt_prog_compiler_pic_F77='-qnocommon'
14448         lt_prog_compiler_wl_F77='-Wl,'
14449         ;;
14450       esac
14451       ;;
14452
14453    mingw* | cygwin* | pw32* | os2*)
14454      # This hack is so that the source file can tell whether it is being
14455      # built for inclusion in a dll (and should export symbols for example).
14456      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14457      ;;
14458
14459    hpux9* | hpux10* | hpux11*)
14460      lt_prog_compiler_wl_F77='-Wl,'
14461      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14462      # not for PA HP-UX.
14463      case $host_cpu in
14464      hppa*64*|ia64*)
14465	# +Z the default
14466	;;
14467      *)
14468	lt_prog_compiler_pic_F77='+Z'
14469	;;
14470      esac
14471      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14472      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14473      ;;
14474
14475    irix5* | irix6* | nonstopux*)
14476      lt_prog_compiler_wl_F77='-Wl,'
14477      # PIC (with -KPIC) is the default.
14478      lt_prog_compiler_static_F77='-non_shared'
14479      ;;
14480
14481    newsos6)
14482      lt_prog_compiler_pic_F77='-KPIC'
14483      lt_prog_compiler_static_F77='-Bstatic'
14484      ;;
14485
14486    linux* | k*bsd*-gnu)
14487      case $cc_basename in
14488      icc* | ecc*)
14489	lt_prog_compiler_wl_F77='-Wl,'
14490	lt_prog_compiler_pic_F77='-KPIC'
14491	lt_prog_compiler_static_F77='-static'
14492        ;;
14493      pgcc* | pgf77* | pgf90* | pgf95*)
14494        # Portland Group compilers (*not* the Pentium gcc compiler,
14495	# which looks to be a dead project)
14496	lt_prog_compiler_wl_F77='-Wl,'
14497	lt_prog_compiler_pic_F77='-fpic'
14498	lt_prog_compiler_static_F77='-Bstatic'
14499        ;;
14500      ccc*)
14501        lt_prog_compiler_wl_F77='-Wl,'
14502        # All Alpha code is PIC.
14503        lt_prog_compiler_static_F77='-non_shared'
14504        ;;
14505      *)
14506        case `$CC -V 2>&1 | sed 5q` in
14507	*Sun\ C*)
14508	  # Sun C 5.9
14509	  lt_prog_compiler_pic_F77='-KPIC'
14510	  lt_prog_compiler_static_F77='-Bstatic'
14511	  lt_prog_compiler_wl_F77='-Wl,'
14512	  ;;
14513	*Sun\ F*)
14514	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14515	  lt_prog_compiler_pic_F77='-KPIC'
14516	  lt_prog_compiler_static_F77='-Bstatic'
14517	  lt_prog_compiler_wl_F77=''
14518	  ;;
14519	esac
14520	;;
14521      esac
14522      ;;
14523
14524    osf3* | osf4* | osf5*)
14525      lt_prog_compiler_wl_F77='-Wl,'
14526      # All OSF/1 code is PIC.
14527      lt_prog_compiler_static_F77='-non_shared'
14528      ;;
14529
14530    rdos*)
14531      lt_prog_compiler_static_F77='-non_shared'
14532      ;;
14533
14534    solaris*)
14535      lt_prog_compiler_pic_F77='-KPIC'
14536      lt_prog_compiler_static_F77='-Bstatic'
14537      case $cc_basename in
14538      f77* | f90* | f95*)
14539	lt_prog_compiler_wl_F77='-Qoption ld ';;
14540      *)
14541	lt_prog_compiler_wl_F77='-Wl,';;
14542      esac
14543      ;;
14544
14545    sunos4*)
14546      lt_prog_compiler_wl_F77='-Qoption ld '
14547      lt_prog_compiler_pic_F77='-PIC'
14548      lt_prog_compiler_static_F77='-Bstatic'
14549      ;;
14550
14551    sysv4 | sysv4.2uw2* | sysv4.3*)
14552      lt_prog_compiler_wl_F77='-Wl,'
14553      lt_prog_compiler_pic_F77='-KPIC'
14554      lt_prog_compiler_static_F77='-Bstatic'
14555      ;;
14556
14557    sysv4*MP*)
14558      if test -d /usr/nec ;then
14559	lt_prog_compiler_pic_F77='-Kconform_pic'
14560	lt_prog_compiler_static_F77='-Bstatic'
14561      fi
14562      ;;
14563
14564    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14565      lt_prog_compiler_wl_F77='-Wl,'
14566      lt_prog_compiler_pic_F77='-KPIC'
14567      lt_prog_compiler_static_F77='-Bstatic'
14568      ;;
14569
14570    unicos*)
14571      lt_prog_compiler_wl_F77='-Wl,'
14572      lt_prog_compiler_can_build_shared_F77=no
14573      ;;
14574
14575    uts4*)
14576      lt_prog_compiler_pic_F77='-pic'
14577      lt_prog_compiler_static_F77='-Bstatic'
14578      ;;
14579
14580    *)
14581      lt_prog_compiler_can_build_shared_F77=no
14582      ;;
14583    esac
14584  fi
14585
14586{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14587$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14588
14589#
14590# Check to make sure the PIC flag actually works.
14591#
14592if test -n "$lt_prog_compiler_pic_F77"; then
14593
14594{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14595$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14596if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14597  $as_echo_n "(cached) " >&6
14598else
14599  lt_cv_prog_compiler_pic_works_F77=no
14600  ac_outfile=conftest.$ac_objext
14601   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14602   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14603   # Insert the option either (1) after the last *FLAGS variable, or
14604   # (2) before a word containing "conftest.", or (3) at the end.
14605   # Note that $ac_compile itself does not contain backslashes and begins
14606   # with a dollar sign (not a hyphen), so the echo should work correctly.
14607   # The option is referenced via a variable to avoid confusing sed.
14608   lt_compile=`echo "$ac_compile" | $SED \
14609   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14610   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14611   -e 's:$: $lt_compiler_flag:'`
14612   (eval echo "\"\$as_me:14612: $lt_compile\"" >&5)
14613   (eval "$lt_compile" 2>conftest.err)
14614   ac_status=$?
14615   cat conftest.err >&5
14616   echo "$as_me:14616: \$? = $ac_status" >&5
14617   if (exit $ac_status) && test -s "$ac_outfile"; then
14618     # The compiler can only warn and ignore the option if not recognized
14619     # So say no if there are warnings other than the usual output.
14620     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14621     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14622     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14623       lt_cv_prog_compiler_pic_works_F77=yes
14624     fi
14625   fi
14626   $rm conftest*
14627
14628fi
14629{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14630$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14631
14632if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14633    case $lt_prog_compiler_pic_F77 in
14634     "" | " "*) ;;
14635     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14636     esac
14637else
14638    lt_prog_compiler_pic_F77=
14639     lt_prog_compiler_can_build_shared_F77=no
14640fi
14641
14642fi
14643case $host_os in
14644  # For platforms which do not support PIC, -DPIC is meaningless:
14645  *djgpp*)
14646    lt_prog_compiler_pic_F77=
14647    ;;
14648  *)
14649    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14650    ;;
14651esac
14652
14653#
14654# Check to make sure the static flag actually works.
14655#
14656wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14657{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14658$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14659if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14660  $as_echo_n "(cached) " >&6
14661else
14662  lt_cv_prog_compiler_static_works_F77=no
14663   save_LDFLAGS="$LDFLAGS"
14664   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14665   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14666   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14667     # The linker can only warn and ignore the option if not recognized
14668     # So say no if there are warnings
14669     if test -s conftest.err; then
14670       # Append any errors to the config.log.
14671       cat conftest.err 1>&5
14672       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14673       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14674       if diff conftest.exp conftest.er2 >/dev/null; then
14675         lt_cv_prog_compiler_static_works_F77=yes
14676       fi
14677     else
14678       lt_cv_prog_compiler_static_works_F77=yes
14679     fi
14680   fi
14681   $rm -r conftest*
14682   LDFLAGS="$save_LDFLAGS"
14683
14684fi
14685{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14686$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14687
14688if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14689    :
14690else
14691    lt_prog_compiler_static_F77=
14692fi
14693
14694
14695{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14696$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14697if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14698  $as_echo_n "(cached) " >&6
14699else
14700  lt_cv_prog_compiler_c_o_F77=no
14701   $rm -r conftest 2>/dev/null
14702   mkdir conftest
14703   cd conftest
14704   mkdir out
14705   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14706
14707   lt_compiler_flag="-o out/conftest2.$ac_objext"
14708   # Insert the option either (1) after the last *FLAGS variable, or
14709   # (2) before a word containing "conftest.", or (3) at the end.
14710   # Note that $ac_compile itself does not contain backslashes and begins
14711   # with a dollar sign (not a hyphen), so the echo should work correctly.
14712   lt_compile=`echo "$ac_compile" | $SED \
14713   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14714   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14715   -e 's:$: $lt_compiler_flag:'`
14716   (eval echo "\"\$as_me:14716: $lt_compile\"" >&5)
14717   (eval "$lt_compile" 2>out/conftest.err)
14718   ac_status=$?
14719   cat out/conftest.err >&5
14720   echo "$as_me:14720: \$? = $ac_status" >&5
14721   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14722   then
14723     # The compiler can only warn and ignore the option if not recognized
14724     # So say no if there are warnings
14725     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14726     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14727     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14728       lt_cv_prog_compiler_c_o_F77=yes
14729     fi
14730   fi
14731   chmod u+w . 2>&5
14732   $rm conftest*
14733   # SGI C++ compiler will create directory out/ii_files/ for
14734   # template instantiation
14735   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14736   $rm out/* && rmdir out
14737   cd ..
14738   rmdir conftest
14739   $rm conftest*
14740
14741fi
14742{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14743$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14744
14745
14746hard_links="nottested"
14747if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14748  # do not overwrite the value of need_locks provided by the user
14749  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14750$as_echo_n "checking if we can lock with hard links... " >&6; }
14751  hard_links=yes
14752  $rm conftest*
14753  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14754  touch conftest.a
14755  ln conftest.a conftest.b 2>&5 || hard_links=no
14756  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14757  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14758$as_echo "$hard_links" >&6; }
14759  if test "$hard_links" = no; then
14760    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14761$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14762    need_locks=warn
14763  fi
14764else
14765  need_locks=no
14766fi
14767
14768{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14769$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14770
14771  runpath_var=
14772  allow_undefined_flag_F77=
14773  enable_shared_with_static_runtimes_F77=no
14774  archive_cmds_F77=
14775  archive_expsym_cmds_F77=
14776  old_archive_From_new_cmds_F77=
14777  old_archive_from_expsyms_cmds_F77=
14778  export_dynamic_flag_spec_F77=
14779  whole_archive_flag_spec_F77=
14780  thread_safe_flag_spec_F77=
14781  hardcode_libdir_flag_spec_F77=
14782  hardcode_libdir_flag_spec_ld_F77=
14783  hardcode_libdir_separator_F77=
14784  hardcode_direct_F77=no
14785  hardcode_minus_L_F77=no
14786  hardcode_shlibpath_var_F77=unsupported
14787  link_all_deplibs_F77=unknown
14788  hardcode_automatic_F77=no
14789  module_cmds_F77=
14790  module_expsym_cmds_F77=
14791  always_export_symbols_F77=no
14792  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14793  # include_expsyms should be a list of space-separated symbols to be *always*
14794  # included in the symbol list
14795  include_expsyms_F77=
14796  # exclude_expsyms can be an extended regexp of symbols to exclude
14797  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14798  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14799  # as well as any symbol that contains `d'.
14800  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14801  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14802  # platforms (ab)use it in PIC code, but their linkers get confused if
14803  # the symbol is explicitly referenced.  Since portable code cannot
14804  # rely on this symbol name, it's probably fine to never include it in
14805  # preloaded symbol tables.
14806  # Exclude shared library initialization/finalization symbols.
14807  extract_expsyms_cmds=
14808  # Just being paranoid about ensuring that cc_basename is set.
14809  for cc_temp in $compiler""; do
14810  case $cc_temp in
14811    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14812    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14813    \-*) ;;
14814    *) break;;
14815  esac
14816done
14817cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14818
14819  case $host_os in
14820  cygwin* | mingw* | pw32*)
14821    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14822    # When not using gcc, we currently assume that we are using
14823    # Microsoft Visual C++.
14824    if test "$GCC" != yes; then
14825      with_gnu_ld=no
14826    fi
14827    ;;
14828  interix*)
14829    # we just hope/assume this is gcc and not c89 (= MSVC++)
14830    with_gnu_ld=yes
14831    ;;
14832  openbsd*)
14833    with_gnu_ld=no
14834    ;;
14835  esac
14836
14837  ld_shlibs_F77=yes
14838  if test "$with_gnu_ld" = yes; then
14839    # If archive_cmds runs LD, not CC, wlarc should be empty
14840    wlarc='${wl}'
14841
14842    # Set some defaults for GNU ld with shared library support. These
14843    # are reset later if shared libraries are not supported. Putting them
14844    # here allows them to be overridden if necessary.
14845    runpath_var=LD_RUN_PATH
14846    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14847    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14848    # ancient GNU ld didn't support --whole-archive et. al.
14849    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14850	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14851      else
14852  	whole_archive_flag_spec_F77=
14853    fi
14854    supports_anon_versioning=no
14855    case `$LD -v 2>/dev/null` in
14856      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14857      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14858      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14859      *\ 2.11.*) ;; # other 2.11 versions
14860      *) supports_anon_versioning=yes ;;
14861    esac
14862
14863    # See if GNU ld supports shared libraries.
14864    case $host_os in
14865    aix[3-9]*)
14866      # On AIX/PPC, the GNU linker is very broken
14867      if test "$host_cpu" != ia64; then
14868	ld_shlibs_F77=no
14869	cat <<EOF 1>&2
14870
14871*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14872*** to be unable to reliably create shared libraries on AIX.
14873*** Therefore, libtool is disabling shared libraries support.  If you
14874*** really care for shared libraries, you may want to modify your PATH
14875*** so that a non-GNU linker is found, and then restart.
14876
14877EOF
14878      fi
14879      ;;
14880
14881    amigaos*)
14882      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)'
14883      hardcode_libdir_flag_spec_F77='-L$libdir'
14884      hardcode_minus_L_F77=yes
14885
14886      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14887      # that the semantics of dynamic libraries on AmigaOS, at least up
14888      # to version 4, is to share data among multiple programs linked
14889      # with the same dynamic library.  Since this doesn't match the
14890      # behavior of shared libraries on other platforms, we can't use
14891      # them.
14892      ld_shlibs_F77=no
14893      ;;
14894
14895    beos*)
14896      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14897	allow_undefined_flag_F77=unsupported
14898	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14899	# support --undefined.  This deserves some investigation.  FIXME
14900	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14901      else
14902	ld_shlibs_F77=no
14903      fi
14904      ;;
14905
14906    cygwin* | mingw* | pw32*)
14907      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14908      # as there is no search path for DLLs.
14909      hardcode_libdir_flag_spec_F77='-L$libdir'
14910      allow_undefined_flag_F77=unsupported
14911      always_export_symbols_F77=no
14912      enable_shared_with_static_runtimes_F77=yes
14913      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14914
14915      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14916        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14917	# If the export-symbols file already is a .def file (1st line
14918	# is EXPORTS), use it as is; otherwise, prepend...
14919	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14920	  cp $export_symbols $output_objdir/$soname.def;
14921	else
14922	  echo EXPORTS > $output_objdir/$soname.def;
14923	  cat $export_symbols >> $output_objdir/$soname.def;
14924	fi~
14925	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14926      else
14927	ld_shlibs_F77=no
14928      fi
14929      ;;
14930
14931    interix[3-9]*)
14932      hardcode_direct_F77=no
14933      hardcode_shlibpath_var_F77=no
14934      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14935      export_dynamic_flag_spec_F77='${wl}-E'
14936      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14937      # Instead, shared libraries are loaded at an image base (0x10000000 by
14938      # default) and relocated if they conflict, which is a slow very memory
14939      # consuming and fragmenting process.  To avoid this, we pick a random,
14940      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14941      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14942      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'
14943      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'
14944      ;;
14945
14946    gnu* | linux* | k*bsd*-gnu)
14947      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14948	tmp_addflag=
14949	case $cc_basename,$host_cpu in
14950	pgcc*)				# Portland Group C compiler
14951	  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'
14952	  tmp_addflag=' $pic_flag'
14953	  ;;
14954	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14955	  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'
14956	  tmp_addflag=' $pic_flag -Mnomain' ;;
14957	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14958	  tmp_addflag=' -i_dynamic' ;;
14959	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14960	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14961	ifc* | ifort*)			# Intel Fortran compiler
14962	  tmp_addflag=' -nofor_main' ;;
14963	esac
14964	case `$CC -V 2>&1 | sed 5q` in
14965	*Sun\ C*)			# Sun C 5.9
14966	  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'
14967	  tmp_sharedflag='-G' ;;
14968	*Sun\ F*)			# Sun Fortran 8.3
14969	  tmp_sharedflag='-G' ;;
14970	*)
14971	  tmp_sharedflag='-shared' ;;
14972	esac
14973	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14974
14975	if test $supports_anon_versioning = yes; then
14976	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14977  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14978  $echo "local: *; };" >> $output_objdir/$libname.ver~
14979	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14980	fi
14981	link_all_deplibs_F77=no
14982      else
14983	ld_shlibs_F77=no
14984      fi
14985      ;;
14986
14987    netbsd*)
14988      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14989	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14990	wlarc=
14991      else
14992	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14993	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14994      fi
14995      ;;
14996
14997    solaris*)
14998      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14999	ld_shlibs_F77=no
15000	cat <<EOF 1>&2
15001
15002*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15003*** create shared libraries on Solaris systems.  Therefore, libtool
15004*** is disabling shared libraries support.  We urge you to upgrade GNU
15005*** binutils to release 2.9.1 or newer.  Another option is to modify
15006*** your PATH or compiler configuration so that the native linker is
15007*** used, and then restart.
15008
15009EOF
15010      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15011	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15012	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15013      else
15014	ld_shlibs_F77=no
15015      fi
15016      ;;
15017
15018    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15019      case `$LD -v 2>&1` in
15020        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15021	ld_shlibs_F77=no
15022	cat <<_LT_EOF 1>&2
15023
15024*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15025*** reliably create shared libraries on SCO systems.  Therefore, libtool
15026*** is disabling shared libraries support.  We urge you to upgrade GNU
15027*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15028*** your PATH or compiler configuration so that the native linker is
15029*** used, and then restart.
15030
15031_LT_EOF
15032	;;
15033	*)
15034	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15035	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15036	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15037	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15038	  else
15039	    ld_shlibs_F77=no
15040	  fi
15041	;;
15042      esac
15043      ;;
15044
15045    sunos4*)
15046      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15047      wlarc=
15048      hardcode_direct_F77=yes
15049      hardcode_shlibpath_var_F77=no
15050      ;;
15051
15052    *)
15053      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15054	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15055	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15056      else
15057	ld_shlibs_F77=no
15058      fi
15059      ;;
15060    esac
15061
15062    if test "$ld_shlibs_F77" = no; then
15063      runpath_var=
15064      hardcode_libdir_flag_spec_F77=
15065      export_dynamic_flag_spec_F77=
15066      whole_archive_flag_spec_F77=
15067    fi
15068  else
15069    # PORTME fill in a description of your system's linker (not GNU ld)
15070    case $host_os in
15071    aix3*)
15072      allow_undefined_flag_F77=unsupported
15073      always_export_symbols_F77=yes
15074      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'
15075      # Note: this linker hardcodes the directories in LIBPATH if there
15076      # are no directories specified by -L.
15077      hardcode_minus_L_F77=yes
15078      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15079	# Neither direct hardcoding nor static linking is supported with a
15080	# broken collect2.
15081	hardcode_direct_F77=unsupported
15082      fi
15083      ;;
15084
15085    aix[4-9]*)
15086      if test "$host_cpu" = ia64; then
15087	# On IA64, the linker does run time linking by default, so we don't
15088	# have to do anything special.
15089	aix_use_runtimelinking=no
15090	exp_sym_flag='-Bexport'
15091	no_entry_flag=""
15092      else
15093	# If we're using GNU nm, then we don't want the "-C" option.
15094	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15095	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15096	  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'
15097	else
15098	  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'
15099	fi
15100	aix_use_runtimelinking=no
15101
15102	# Test if we are trying to use run time linking or normal
15103	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15104	# need to do runtime linking.
15105	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15106	  for ld_flag in $LDFLAGS; do
15107  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15108  	    aix_use_runtimelinking=yes
15109  	    break
15110  	  fi
15111	  done
15112	  ;;
15113	esac
15114
15115	exp_sym_flag='-bexport'
15116	no_entry_flag='-bnoentry'
15117      fi
15118
15119      # When large executables or shared objects are built, AIX ld can
15120      # have problems creating the table of contents.  If linking a library
15121      # or program results in "error TOC overflow" add -mminimal-toc to
15122      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15123      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15124
15125      archive_cmds_F77=''
15126      hardcode_direct_F77=yes
15127      hardcode_libdir_separator_F77=':'
15128      link_all_deplibs_F77=yes
15129
15130      if test "$GCC" = yes; then
15131	case $host_os in aix4.[012]|aix4.[012].*)
15132	# We only want to do this on AIX 4.2 and lower, the check
15133	# below for broken collect2 doesn't work under 4.3+
15134	  collect2name=`${CC} -print-prog-name=collect2`
15135	  if test -f "$collect2name" && \
15136  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15137	  then
15138  	  # We have reworked collect2
15139  	  :
15140	  else
15141  	  # We have old collect2
15142  	  hardcode_direct_F77=unsupported
15143  	  # It fails to find uninstalled libraries when the uninstalled
15144  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15145  	  # to unsupported forces relinking
15146  	  hardcode_minus_L_F77=yes
15147  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15148  	  hardcode_libdir_separator_F77=
15149	  fi
15150	  ;;
15151	esac
15152	shared_flag='-shared'
15153	if test "$aix_use_runtimelinking" = yes; then
15154	  shared_flag="$shared_flag "'${wl}-G'
15155	fi
15156      else
15157	# not using gcc
15158	if test "$host_cpu" = ia64; then
15159  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15160  	# chokes on -Wl,-G. The following line is correct:
15161	  shared_flag='-G'
15162	else
15163	  if test "$aix_use_runtimelinking" = yes; then
15164	    shared_flag='${wl}-G'
15165	  else
15166	    shared_flag='${wl}-bM:SRE'
15167	  fi
15168	fi
15169      fi
15170
15171      # It seems that -bexpall does not export symbols beginning with
15172      # underscore (_), so it is better to generate a list of symbols to export.
15173      always_export_symbols_F77=yes
15174      if test "$aix_use_runtimelinking" = yes; then
15175	# Warning - without using the other runtime loading flags (-brtl),
15176	# -berok will link without error, but may produce a broken library.
15177	allow_undefined_flag_F77='-berok'
15178       # Determine the default libpath from the value encoded in an empty executable.
15179       cat >conftest.$ac_ext <<_ACEOF
15180      program main
15181
15182      end
15183_ACEOF
15184rm -f conftest.$ac_objext conftest$ac_exeext
15185if { (ac_try="$ac_link"
15186case "(($ac_try" in
15187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15188  *) ac_try_echo=$ac_try;;
15189esac
15190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15191$as_echo "$ac_try_echo") >&5
15192  (eval "$ac_link") 2>conftest.er1
15193  ac_status=$?
15194  grep -v '^ *+' conftest.er1 >conftest.err
15195  rm -f conftest.er1
15196  cat conftest.err >&5
15197  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198  (exit $ac_status); } && {
15199	 test -z "$ac_f77_werror_flag" ||
15200	 test ! -s conftest.err
15201       } && test -s conftest$ac_exeext && {
15202	 test "$cross_compiling" = yes ||
15203	 $as_test_x conftest$ac_exeext
15204       }; then
15205
15206lt_aix_libpath_sed='
15207    /Import File Strings/,/^$/ {
15208	/^0/ {
15209	    s/^0  *\(.*\)$/\1/
15210	    p
15211	}
15212    }'
15213aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15214# Check for a 64-bit object if we didn't find anything.
15215if test -z "$aix_libpath"; then
15216  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15217fi
15218else
15219  $as_echo "$as_me: failed program was:" >&5
15220sed 's/^/| /' conftest.$ac_ext >&5
15221
15222
15223fi
15224
15225rm -rf conftest.dSYM
15226rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15227      conftest$ac_exeext conftest.$ac_ext
15228if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15229
15230       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15231	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"
15232       else
15233	if test "$host_cpu" = ia64; then
15234	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15235	  allow_undefined_flag_F77="-z nodefs"
15236	  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"
15237	else
15238	 # Determine the default libpath from the value encoded in an empty executable.
15239	 cat >conftest.$ac_ext <<_ACEOF
15240      program main
15241
15242      end
15243_ACEOF
15244rm -f conftest.$ac_objext conftest$ac_exeext
15245if { (ac_try="$ac_link"
15246case "(($ac_try" in
15247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15248  *) ac_try_echo=$ac_try;;
15249esac
15250eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15251$as_echo "$ac_try_echo") >&5
15252  (eval "$ac_link") 2>conftest.er1
15253  ac_status=$?
15254  grep -v '^ *+' conftest.er1 >conftest.err
15255  rm -f conftest.er1
15256  cat conftest.err >&5
15257  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258  (exit $ac_status); } && {
15259	 test -z "$ac_f77_werror_flag" ||
15260	 test ! -s conftest.err
15261       } && test -s conftest$ac_exeext && {
15262	 test "$cross_compiling" = yes ||
15263	 $as_test_x conftest$ac_exeext
15264       }; then
15265
15266lt_aix_libpath_sed='
15267    /Import File Strings/,/^$/ {
15268	/^0/ {
15269	    s/^0  *\(.*\)$/\1/
15270	    p
15271	}
15272    }'
15273aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15274# Check for a 64-bit object if we didn't find anything.
15275if test -z "$aix_libpath"; then
15276  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15277fi
15278else
15279  $as_echo "$as_me: failed program was:" >&5
15280sed 's/^/| /' conftest.$ac_ext >&5
15281
15282
15283fi
15284
15285rm -rf conftest.dSYM
15286rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15287      conftest$ac_exeext conftest.$ac_ext
15288if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15289
15290	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15291	  # Warning - without using the other run time loading flags,
15292	  # -berok will link without error, but may produce a broken library.
15293	  no_undefined_flag_F77=' ${wl}-bernotok'
15294	  allow_undefined_flag_F77=' ${wl}-berok'
15295	  # Exported symbols can be pulled into shared objects from archives
15296	  whole_archive_flag_spec_F77='$convenience'
15297	  archive_cmds_need_lc_F77=yes
15298	  # This is similar to how AIX traditionally builds its shared libraries.
15299	  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'
15300	fi
15301      fi
15302      ;;
15303
15304    amigaos*)
15305      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)'
15306      hardcode_libdir_flag_spec_F77='-L$libdir'
15307      hardcode_minus_L_F77=yes
15308      # see comment about different semantics on the GNU ld section
15309      ld_shlibs_F77=no
15310      ;;
15311
15312    bsdi[45]*)
15313      export_dynamic_flag_spec_F77=-rdynamic
15314      ;;
15315
15316    cygwin* | mingw* | pw32*)
15317      # When not using gcc, we currently assume that we are using
15318      # Microsoft Visual C++.
15319      # hardcode_libdir_flag_spec is actually meaningless, as there is
15320      # no search path for DLLs.
15321      hardcode_libdir_flag_spec_F77=' '
15322      allow_undefined_flag_F77=unsupported
15323      # Tell ltmain to make .lib files, not .a files.
15324      libext=lib
15325      # Tell ltmain to make .dll files, not .so files.
15326      shrext_cmds=".dll"
15327      # FIXME: Setting linknames here is a bad hack.
15328      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15329      # The linker will automatically build a .lib file if we build a DLL.
15330      old_archive_From_new_cmds_F77='true'
15331      # FIXME: Should let the user specify the lib program.
15332      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15333      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15334      enable_shared_with_static_runtimes_F77=yes
15335      ;;
15336
15337    darwin* | rhapsody*)
15338      case $host_os in
15339        rhapsody* | darwin1.[012])
15340         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15341         ;;
15342       *) # Darwin 1.3 on
15343         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15344           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15345         else
15346           case ${MACOSX_DEPLOYMENT_TARGET} in
15347             10.[012])
15348               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15349               ;;
15350             10.*)
15351               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15352               ;;
15353           esac
15354         fi
15355         ;;
15356      esac
15357      archive_cmds_need_lc_F77=no
15358      hardcode_direct_F77=no
15359      hardcode_automatic_F77=yes
15360      hardcode_shlibpath_var_F77=unsupported
15361      whole_archive_flag_spec_F77=''
15362      link_all_deplibs_F77=yes
15363    if test "$GCC" = yes ; then
15364    	output_verbose_link_cmd='echo'
15365        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}"
15366        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15367        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}"
15368        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}"
15369    else
15370      case $cc_basename in
15371        xlc*)
15372         output_verbose_link_cmd='echo'
15373         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15374         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15375          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15376         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}'
15377          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}'
15378          ;;
15379       *)
15380         ld_shlibs_F77=no
15381          ;;
15382      esac
15383    fi
15384      ;;
15385
15386    dgux*)
15387      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15388      hardcode_libdir_flag_spec_F77='-L$libdir'
15389      hardcode_shlibpath_var_F77=no
15390      ;;
15391
15392    freebsd1*)
15393      ld_shlibs_F77=no
15394      ;;
15395
15396    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15397    # support.  Future versions do this automatically, but an explicit c++rt0.o
15398    # does not break anything, and helps significantly (at the cost of a little
15399    # extra space).
15400    freebsd2.2*)
15401      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15402      hardcode_libdir_flag_spec_F77='-R$libdir'
15403      hardcode_direct_F77=yes
15404      hardcode_shlibpath_var_F77=no
15405      ;;
15406
15407    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15408    freebsd2*)
15409      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15410      hardcode_direct_F77=yes
15411      hardcode_minus_L_F77=yes
15412      hardcode_shlibpath_var_F77=no
15413      ;;
15414
15415    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15416    freebsd* | dragonfly*)
15417      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15418      hardcode_libdir_flag_spec_F77='-R$libdir'
15419      hardcode_direct_F77=yes
15420      hardcode_shlibpath_var_F77=no
15421      ;;
15422
15423    hpux9*)
15424      if test "$GCC" = yes; then
15425	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'
15426      else
15427	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'
15428      fi
15429      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15430      hardcode_libdir_separator_F77=:
15431      hardcode_direct_F77=yes
15432
15433      # hardcode_minus_L: Not really in the search PATH,
15434      # but as the default location of the library.
15435      hardcode_minus_L_F77=yes
15436      export_dynamic_flag_spec_F77='${wl}-E'
15437      ;;
15438
15439    hpux10*)
15440      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15441	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15442      else
15443	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15444      fi
15445      if test "$with_gnu_ld" = no; then
15446	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15447	hardcode_libdir_separator_F77=:
15448
15449	hardcode_direct_F77=yes
15450	export_dynamic_flag_spec_F77='${wl}-E'
15451
15452	# hardcode_minus_L: Not really in the search PATH,
15453	# but as the default location of the library.
15454	hardcode_minus_L_F77=yes
15455      fi
15456      ;;
15457
15458    hpux11*)
15459      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15460	case $host_cpu in
15461	hppa*64*)
15462	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15463	  ;;
15464	ia64*)
15465	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15466	  ;;
15467	*)
15468	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15469	  ;;
15470	esac
15471      else
15472	case $host_cpu in
15473	hppa*64*)
15474	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15475	  ;;
15476	ia64*)
15477	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15478	  ;;
15479	*)
15480	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15481	  ;;
15482	esac
15483      fi
15484      if test "$with_gnu_ld" = no; then
15485	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15486	hardcode_libdir_separator_F77=:
15487
15488	case $host_cpu in
15489	hppa*64*|ia64*)
15490	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15491	  hardcode_direct_F77=no
15492	  hardcode_shlibpath_var_F77=no
15493	  ;;
15494	*)
15495	  hardcode_direct_F77=yes
15496	  export_dynamic_flag_spec_F77='${wl}-E'
15497
15498	  # hardcode_minus_L: Not really in the search PATH,
15499	  # but as the default location of the library.
15500	  hardcode_minus_L_F77=yes
15501	  ;;
15502	esac
15503      fi
15504      ;;
15505
15506    irix5* | irix6* | nonstopux*)
15507      if test "$GCC" = yes; then
15508	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'
15509      else
15510	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'
15511	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15512      fi
15513      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15514      hardcode_libdir_separator_F77=:
15515      link_all_deplibs_F77=yes
15516      ;;
15517
15518    netbsd*)
15519      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15520	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15521      else
15522	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15523      fi
15524      hardcode_libdir_flag_spec_F77='-R$libdir'
15525      hardcode_direct_F77=yes
15526      hardcode_shlibpath_var_F77=no
15527      ;;
15528
15529    newsos6)
15530      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15531      hardcode_direct_F77=yes
15532      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15533      hardcode_libdir_separator_F77=:
15534      hardcode_shlibpath_var_F77=no
15535      ;;
15536
15537    openbsd*)
15538      if test -f /usr/libexec/ld.so; then
15539	hardcode_direct_F77=yes
15540	hardcode_shlibpath_var_F77=no
15541	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15542	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15543	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15544	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15545	  export_dynamic_flag_spec_F77='${wl}-E'
15546	else
15547	  case $host_os in
15548	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15549	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15550	     hardcode_libdir_flag_spec_F77='-R$libdir'
15551	     ;;
15552	   *)
15553	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15554	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15555	     ;;
15556	  esac
15557        fi
15558      else
15559	ld_shlibs_F77=no
15560      fi
15561      ;;
15562
15563    os2*)
15564      hardcode_libdir_flag_spec_F77='-L$libdir'
15565      hardcode_minus_L_F77=yes
15566      allow_undefined_flag_F77=unsupported
15567      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'
15568      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15569      ;;
15570
15571    osf3*)
15572      if test "$GCC" = yes; then
15573	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15574	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'
15575      else
15576	allow_undefined_flag_F77=' -expect_unresolved \*'
15577	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'
15578      fi
15579      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15580      hardcode_libdir_separator_F77=:
15581      ;;
15582
15583    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15584      if test "$GCC" = yes; then
15585	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15586	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'
15587	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15588      else
15589	allow_undefined_flag_F77=' -expect_unresolved \*'
15590	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'
15591	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~
15592	$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'
15593
15594	# Both c and cxx compiler support -rpath directly
15595	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15596      fi
15597      hardcode_libdir_separator_F77=:
15598      ;;
15599
15600    solaris*)
15601      no_undefined_flag_F77=' -z text'
15602      if test "$GCC" = yes; then
15603	wlarc='${wl}'
15604	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15605	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15606	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15607      else
15608	wlarc=''
15609	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15610	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15611  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15612      fi
15613      hardcode_libdir_flag_spec_F77='-R$libdir'
15614      hardcode_shlibpath_var_F77=no
15615      case $host_os in
15616      solaris2.[0-5] | solaris2.[0-5].*) ;;
15617      *)
15618	# The compiler driver will combine and reorder linker options,
15619	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15620	# but is careful enough not to reorder.
15621 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15622	if test "$GCC" = yes; then
15623	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15624	else
15625	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15626	fi
15627	;;
15628      esac
15629      link_all_deplibs_F77=yes
15630      ;;
15631
15632    sunos4*)
15633      if test "x$host_vendor" = xsequent; then
15634	# Use $CC to link under sequent, because it throws in some extra .o
15635	# files that make .init and .fini sections work.
15636	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15637      else
15638	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15639      fi
15640      hardcode_libdir_flag_spec_F77='-L$libdir'
15641      hardcode_direct_F77=yes
15642      hardcode_minus_L_F77=yes
15643      hardcode_shlibpath_var_F77=no
15644      ;;
15645
15646    sysv4)
15647      case $host_vendor in
15648	sni)
15649	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15650	  hardcode_direct_F77=yes # is this really true???
15651	;;
15652	siemens)
15653	  ## LD is ld it makes a PLAMLIB
15654	  ## CC just makes a GrossModule.
15655	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15656	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15657	  hardcode_direct_F77=no
15658        ;;
15659	motorola)
15660	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15661	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15662	;;
15663      esac
15664      runpath_var='LD_RUN_PATH'
15665      hardcode_shlibpath_var_F77=no
15666      ;;
15667
15668    sysv4.3*)
15669      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15670      hardcode_shlibpath_var_F77=no
15671      export_dynamic_flag_spec_F77='-Bexport'
15672      ;;
15673
15674    sysv4*MP*)
15675      if test -d /usr/nec; then
15676	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15677	hardcode_shlibpath_var_F77=no
15678	runpath_var=LD_RUN_PATH
15679	hardcode_runpath_var=yes
15680	ld_shlibs_F77=yes
15681      fi
15682      ;;
15683
15684    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15685      no_undefined_flag_F77='${wl}-z,text'
15686      archive_cmds_need_lc_F77=no
15687      hardcode_shlibpath_var_F77=no
15688      runpath_var='LD_RUN_PATH'
15689
15690      if test "$GCC" = yes; then
15691	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15692	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15693      else
15694	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15695	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15696      fi
15697      ;;
15698
15699    sysv5* | sco3.2v5* | sco5v6*)
15700      # Note: We can NOT use -z defs as we might desire, because we do not
15701      # link with -lc, and that would cause any symbols used from libc to
15702      # always be unresolved, which means just about no library would
15703      # ever link correctly.  If we're not using GNU ld we use -z text
15704      # though, which does catch some bad symbols but isn't as heavy-handed
15705      # as -z defs.
15706      no_undefined_flag_F77='${wl}-z,text'
15707      allow_undefined_flag_F77='${wl}-z,nodefs'
15708      archive_cmds_need_lc_F77=no
15709      hardcode_shlibpath_var_F77=no
15710      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15711      hardcode_libdir_separator_F77=':'
15712      link_all_deplibs_F77=yes
15713      export_dynamic_flag_spec_F77='${wl}-Bexport'
15714      runpath_var='LD_RUN_PATH'
15715
15716      if test "$GCC" = yes; then
15717	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15718	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15719      else
15720	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15721	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15722      fi
15723      ;;
15724
15725    uts4*)
15726      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15727      hardcode_libdir_flag_spec_F77='-L$libdir'
15728      hardcode_shlibpath_var_F77=no
15729      ;;
15730
15731    *)
15732      ld_shlibs_F77=no
15733      ;;
15734    esac
15735  fi
15736
15737{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15738$as_echo "$ld_shlibs_F77" >&6; }
15739test "$ld_shlibs_F77" = no && can_build_shared=no
15740
15741#
15742# Do we need to explicitly link libc?
15743#
15744case "x$archive_cmds_need_lc_F77" in
15745x|xyes)
15746  # Assume -lc should be added
15747  archive_cmds_need_lc_F77=yes
15748
15749  if test "$enable_shared" = yes && test "$GCC" = yes; then
15750    case $archive_cmds_F77 in
15751    *'~'*)
15752      # FIXME: we may have to deal with multi-command sequences.
15753      ;;
15754    '$CC '*)
15755      # Test whether the compiler implicitly links with -lc since on some
15756      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15757      # to ld, don't add -lc before -lgcc.
15758      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15759$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15760      $rm conftest*
15761      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15762
15763      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15764  (eval $ac_compile) 2>&5
15765  ac_status=$?
15766  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767  (exit $ac_status); } 2>conftest.err; then
15768        soname=conftest
15769        lib=conftest
15770        libobjs=conftest.$ac_objext
15771        deplibs=
15772        wl=$lt_prog_compiler_wl_F77
15773	pic_flag=$lt_prog_compiler_pic_F77
15774        compiler_flags=-v
15775        linker_flags=-v
15776        verstring=
15777        output_objdir=.
15778        libname=conftest
15779        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15780        allow_undefined_flag_F77=
15781        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15782  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15783  ac_status=$?
15784  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785  (exit $ac_status); }
15786        then
15787	  archive_cmds_need_lc_F77=no
15788        else
15789	  archive_cmds_need_lc_F77=yes
15790        fi
15791        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15792      else
15793        cat conftest.err 1>&5
15794      fi
15795      $rm conftest*
15796      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15797$as_echo "$archive_cmds_need_lc_F77" >&6; }
15798      ;;
15799    esac
15800  fi
15801  ;;
15802esac
15803
15804{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15805$as_echo_n "checking dynamic linker characteristics... " >&6; }
15806library_names_spec=
15807libname_spec='lib$name'
15808soname_spec=
15809shrext_cmds=".so"
15810postinstall_cmds=
15811postuninstall_cmds=
15812finish_cmds=
15813finish_eval=
15814shlibpath_var=
15815shlibpath_overrides_runpath=unknown
15816version_type=none
15817dynamic_linker="$host_os ld.so"
15818sys_lib_dlsearch_path_spec="/lib /usr/lib"
15819
15820need_lib_prefix=unknown
15821hardcode_into_libs=no
15822
15823# when you set need_version to no, make sure it does not cause -set_version
15824# flags to be left without arguments
15825need_version=unknown
15826
15827case $host_os in
15828aix3*)
15829  version_type=linux
15830  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15831  shlibpath_var=LIBPATH
15832
15833  # AIX 3 has no versioning support, so we append a major version to the name.
15834  soname_spec='${libname}${release}${shared_ext}$major'
15835  ;;
15836
15837aix[4-9]*)
15838  version_type=linux
15839  need_lib_prefix=no
15840  need_version=no
15841  hardcode_into_libs=yes
15842  if test "$host_cpu" = ia64; then
15843    # AIX 5 supports IA64
15844    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15845    shlibpath_var=LD_LIBRARY_PATH
15846  else
15847    # With GCC up to 2.95.x, collect2 would create an import file
15848    # for dependence libraries.  The import file would start with
15849    # the line `#! .'.  This would cause the generated library to
15850    # depend on `.', always an invalid library.  This was fixed in
15851    # development snapshots of GCC prior to 3.0.
15852    case $host_os in
15853      aix4 | aix4.[01] | aix4.[01].*)
15854      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15855	   echo ' yes '
15856	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15857	:
15858      else
15859	can_build_shared=no
15860      fi
15861      ;;
15862    esac
15863    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15864    # soname into executable. Probably we can add versioning support to
15865    # collect2, so additional links can be useful in future.
15866    if test "$aix_use_runtimelinking" = yes; then
15867      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15868      # instead of lib<name>.a to let people know that these are not
15869      # typical AIX shared libraries.
15870      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15871    else
15872      # We preserve .a as extension for shared libraries through AIX4.2
15873      # and later when we are not doing run time linking.
15874      library_names_spec='${libname}${release}.a $libname.a'
15875      soname_spec='${libname}${release}${shared_ext}$major'
15876    fi
15877    shlibpath_var=LIBPATH
15878  fi
15879  ;;
15880
15881amigaos*)
15882  library_names_spec='$libname.ixlibrary $libname.a'
15883  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15884  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'
15885  ;;
15886
15887beos*)
15888  library_names_spec='${libname}${shared_ext}'
15889  dynamic_linker="$host_os ld.so"
15890  shlibpath_var=LIBRARY_PATH
15891  ;;
15892
15893bsdi[45]*)
15894  version_type=linux
15895  need_version=no
15896  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15897  soname_spec='${libname}${release}${shared_ext}$major'
15898  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15899  shlibpath_var=LD_LIBRARY_PATH
15900  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15901  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15902  # the default ld.so.conf also contains /usr/contrib/lib and
15903  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15904  # libtool to hard-code these into programs
15905  ;;
15906
15907cygwin* | mingw* | pw32*)
15908  version_type=windows
15909  shrext_cmds=".dll"
15910  need_version=no
15911  need_lib_prefix=no
15912
15913  case $GCC,$host_os in
15914  yes,cygwin* | yes,mingw* | yes,pw32*)
15915    library_names_spec='$libname.dll.a'
15916    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15917    postinstall_cmds='base_file=`basename \${file}`~
15918      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15919      dldir=$destdir/`dirname \$dlpath`~
15920      test -d \$dldir || mkdir -p \$dldir~
15921      $install_prog $dir/$dlname \$dldir/$dlname~
15922      chmod a+x \$dldir/$dlname'
15923    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15924      dlpath=$dir/\$dldll~
15925       $rm \$dlpath'
15926    shlibpath_overrides_runpath=yes
15927
15928    case $host_os in
15929    cygwin*)
15930      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15931      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15932      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15933      ;;
15934    mingw*)
15935      # MinGW DLLs use traditional 'lib' prefix
15936      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15937      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15938      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15939        # It is most probably a Windows format PATH printed by
15940        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15941        # path with ; separators, and with drive letters. We can handle the
15942        # drive letters (cygwin fileutils understands them), so leave them,
15943        # especially as we might pass files found there to a mingw objdump,
15944        # which wouldn't understand a cygwinified path. Ahh.
15945        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15946      else
15947        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15948      fi
15949      ;;
15950    pw32*)
15951      # pw32 DLLs use 'pw' prefix rather than 'lib'
15952      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15953      ;;
15954    esac
15955    ;;
15956
15957  *)
15958    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15959    ;;
15960  esac
15961  dynamic_linker='Win32 ld.exe'
15962  # FIXME: first we should search . and the directory the executable is in
15963  shlibpath_var=PATH
15964  ;;
15965
15966darwin* | rhapsody*)
15967  dynamic_linker="$host_os dyld"
15968  version_type=darwin
15969  need_lib_prefix=no
15970  need_version=no
15971  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15972  soname_spec='${libname}${release}${major}$shared_ext'
15973  shlibpath_overrides_runpath=yes
15974  shlibpath_var=DYLD_LIBRARY_PATH
15975  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15976
15977  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15978  ;;
15979
15980dgux*)
15981  version_type=linux
15982  need_lib_prefix=no
15983  need_version=no
15984  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15985  soname_spec='${libname}${release}${shared_ext}$major'
15986  shlibpath_var=LD_LIBRARY_PATH
15987  ;;
15988
15989freebsd1*)
15990  dynamic_linker=no
15991  ;;
15992
15993freebsd* | dragonfly*)
15994  # DragonFly does not have aout.  When/if they implement a new
15995  # versioning mechanism, adjust this.
15996  if test -x /usr/bin/objformat; then
15997    objformat=`/usr/bin/objformat`
15998  else
15999    case $host_os in
16000    freebsd[123]*) objformat=aout ;;
16001    *) objformat=elf ;;
16002    esac
16003  fi
16004  version_type=freebsd-$objformat
16005  case $version_type in
16006    freebsd-elf*)
16007      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16008      need_version=no
16009      need_lib_prefix=no
16010      ;;
16011    freebsd-*)
16012      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16013      need_version=yes
16014      ;;
16015  esac
16016  shlibpath_var=LD_LIBRARY_PATH
16017  case $host_os in
16018  freebsd2*)
16019    shlibpath_overrides_runpath=yes
16020    ;;
16021  freebsd3.[01]* | freebsdelf3.[01]*)
16022    shlibpath_overrides_runpath=yes
16023    hardcode_into_libs=yes
16024    ;;
16025  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16026  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16027    shlibpath_overrides_runpath=no
16028    hardcode_into_libs=yes
16029    ;;
16030  *) # from 4.6 on, and DragonFly
16031    shlibpath_overrides_runpath=yes
16032    hardcode_into_libs=yes
16033    ;;
16034  esac
16035  ;;
16036
16037gnu*)
16038  version_type=linux
16039  need_lib_prefix=no
16040  need_version=no
16041  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16042  soname_spec='${libname}${release}${shared_ext}$major'
16043  shlibpath_var=LD_LIBRARY_PATH
16044  hardcode_into_libs=yes
16045  ;;
16046
16047hpux9* | hpux10* | hpux11*)
16048  # Give a soname corresponding to the major version so that dld.sl refuses to
16049  # link against other versions.
16050  version_type=sunos
16051  need_lib_prefix=no
16052  need_version=no
16053  case $host_cpu in
16054  ia64*)
16055    shrext_cmds='.so'
16056    hardcode_into_libs=yes
16057    dynamic_linker="$host_os dld.so"
16058    shlibpath_var=LD_LIBRARY_PATH
16059    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16060    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16061    soname_spec='${libname}${release}${shared_ext}$major'
16062    if test "X$HPUX_IA64_MODE" = X32; then
16063      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16064    else
16065      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16066    fi
16067    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16068    ;;
16069   hppa*64*)
16070     shrext_cmds='.sl'
16071     hardcode_into_libs=yes
16072     dynamic_linker="$host_os dld.sl"
16073     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16074     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16075     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16076     soname_spec='${libname}${release}${shared_ext}$major'
16077     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16078     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16079     ;;
16080   *)
16081    shrext_cmds='.sl'
16082    dynamic_linker="$host_os dld.sl"
16083    shlibpath_var=SHLIB_PATH
16084    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16085    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16086    soname_spec='${libname}${release}${shared_ext}$major'
16087    ;;
16088  esac
16089  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16090  postinstall_cmds='chmod 555 $lib'
16091  ;;
16092
16093interix[3-9]*)
16094  version_type=linux
16095  need_lib_prefix=no
16096  need_version=no
16097  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16098  soname_spec='${libname}${release}${shared_ext}$major'
16099  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16100  shlibpath_var=LD_LIBRARY_PATH
16101  shlibpath_overrides_runpath=no
16102  hardcode_into_libs=yes
16103  ;;
16104
16105irix5* | irix6* | nonstopux*)
16106  case $host_os in
16107    nonstopux*) version_type=nonstopux ;;
16108    *)
16109	if test "$lt_cv_prog_gnu_ld" = yes; then
16110		version_type=linux
16111	else
16112		version_type=irix
16113	fi ;;
16114  esac
16115  need_lib_prefix=no
16116  need_version=no
16117  soname_spec='${libname}${release}${shared_ext}$major'
16118  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16119  case $host_os in
16120  irix5* | nonstopux*)
16121    libsuff= shlibsuff=
16122    ;;
16123  *)
16124    case $LD in # libtool.m4 will add one of these switches to LD
16125    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16126      libsuff= shlibsuff= libmagic=32-bit;;
16127    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16128      libsuff=32 shlibsuff=N32 libmagic=N32;;
16129    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16130      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16131    *) libsuff= shlibsuff= libmagic=never-match;;
16132    esac
16133    ;;
16134  esac
16135  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16136  shlibpath_overrides_runpath=no
16137  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16138  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16139  hardcode_into_libs=yes
16140  ;;
16141
16142# No shared lib support for Linux oldld, aout, or coff.
16143linux*oldld* | linux*aout* | linux*coff*)
16144  dynamic_linker=no
16145  ;;
16146
16147# This must be Linux ELF.
16148linux* | k*bsd*-gnu)
16149  version_type=linux
16150  need_lib_prefix=no
16151  need_version=no
16152  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16153  soname_spec='${libname}${release}${shared_ext}$major'
16154  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16155  shlibpath_var=LD_LIBRARY_PATH
16156  shlibpath_overrides_runpath=no
16157  # This implies no fast_install, which is unacceptable.
16158  # Some rework will be needed to allow for fast_install
16159  # before this can be enabled.
16160  hardcode_into_libs=yes
16161
16162  # find out which ABI we are using
16163  libsuff=
16164  case "$host_cpu" in
16165  x86_64*|s390x*|powerpc64*)
16166    echo '#line 16166 "configure"' > conftest.$ac_ext
16167    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16168  (eval $ac_compile) 2>&5
16169  ac_status=$?
16170  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171  (exit $ac_status); }; then
16172      case `/usr/bin/file conftest.$ac_objext` in
16173      *64-bit*)
16174        libsuff=64
16175        ;;
16176      esac
16177    fi
16178    rm -rf conftest*
16179    ;;
16180  esac
16181
16182  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
16183
16184  # Append ld.so.conf contents to the search path
16185  if test -f /etc/ld.so.conf; then
16186    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' ' '`
16187    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16188  fi
16189
16190  # We used to test for /lib/ld.so.1 and disable shared libraries on
16191  # powerpc, because MkLinux only supported shared libraries with the
16192  # GNU dynamic linker.  Since this was broken with cross compilers,
16193  # most powerpc-linux boxes support dynamic linking these days and
16194  # people can always --disable-shared, the test was removed, and we
16195  # assume the GNU/Linux dynamic linker is in use.
16196  dynamic_linker='GNU/Linux ld.so'
16197  ;;
16198
16199netbsd*)
16200  version_type=sunos
16201  need_lib_prefix=no
16202  need_version=no
16203  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16204    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16205    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16206    dynamic_linker='NetBSD (a.out) ld.so'
16207  else
16208    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16209    soname_spec='${libname}${release}${shared_ext}$major'
16210    dynamic_linker='NetBSD ld.elf_so'
16211  fi
16212  shlibpath_var=LD_LIBRARY_PATH
16213  shlibpath_overrides_runpath=yes
16214  hardcode_into_libs=yes
16215  ;;
16216
16217newsos6)
16218  version_type=linux
16219  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16220  shlibpath_var=LD_LIBRARY_PATH
16221  shlibpath_overrides_runpath=yes
16222  ;;
16223
16224nto-qnx*)
16225  version_type=linux
16226  need_lib_prefix=no
16227  need_version=no
16228  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16229  soname_spec='${libname}${release}${shared_ext}$major'
16230  shlibpath_var=LD_LIBRARY_PATH
16231  shlibpath_overrides_runpath=yes
16232  ;;
16233
16234openbsd*)
16235  version_type=sunos
16236  sys_lib_dlsearch_path_spec="/usr/lib"
16237  need_lib_prefix=no
16238  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16239  case $host_os in
16240    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16241    *)                         need_version=no  ;;
16242  esac
16243  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16244  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16245  shlibpath_var=LD_LIBRARY_PATH
16246  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16247    case $host_os in
16248      openbsd2.[89] | openbsd2.[89].*)
16249	shlibpath_overrides_runpath=no
16250	;;
16251      *)
16252	shlibpath_overrides_runpath=yes
16253	;;
16254      esac
16255  else
16256    shlibpath_overrides_runpath=yes
16257  fi
16258  ;;
16259
16260os2*)
16261  libname_spec='$name'
16262  shrext_cmds=".dll"
16263  need_lib_prefix=no
16264  library_names_spec='$libname${shared_ext} $libname.a'
16265  dynamic_linker='OS/2 ld.exe'
16266  shlibpath_var=LIBPATH
16267  ;;
16268
16269osf3* | osf4* | osf5*)
16270  version_type=osf
16271  need_lib_prefix=no
16272  need_version=no
16273  soname_spec='${libname}${release}${shared_ext}$major'
16274  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16275  shlibpath_var=LD_LIBRARY_PATH
16276  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16277  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16278  ;;
16279
16280rdos*)
16281  dynamic_linker=no
16282  ;;
16283
16284solaris*)
16285  version_type=linux
16286  need_lib_prefix=no
16287  need_version=no
16288  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16289  soname_spec='${libname}${release}${shared_ext}$major'
16290  shlibpath_var=LD_LIBRARY_PATH
16291  shlibpath_overrides_runpath=yes
16292  hardcode_into_libs=yes
16293  # ldd complains unless libraries are executable
16294  postinstall_cmds='chmod +x $lib'
16295  ;;
16296
16297sunos4*)
16298  version_type=sunos
16299  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16300  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16301  shlibpath_var=LD_LIBRARY_PATH
16302  shlibpath_overrides_runpath=yes
16303  if test "$with_gnu_ld" = yes; then
16304    need_lib_prefix=no
16305  fi
16306  need_version=yes
16307  ;;
16308
16309sysv4 | sysv4.3*)
16310  version_type=linux
16311  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16312  soname_spec='${libname}${release}${shared_ext}$major'
16313  shlibpath_var=LD_LIBRARY_PATH
16314  case $host_vendor in
16315    sni)
16316      shlibpath_overrides_runpath=no
16317      need_lib_prefix=no
16318      export_dynamic_flag_spec='${wl}-Blargedynsym'
16319      runpath_var=LD_RUN_PATH
16320      ;;
16321    siemens)
16322      need_lib_prefix=no
16323      ;;
16324    motorola)
16325      need_lib_prefix=no
16326      need_version=no
16327      shlibpath_overrides_runpath=no
16328      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16329      ;;
16330  esac
16331  ;;
16332
16333sysv4*MP*)
16334  if test -d /usr/nec ;then
16335    version_type=linux
16336    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16337    soname_spec='$libname${shared_ext}.$major'
16338    shlibpath_var=LD_LIBRARY_PATH
16339  fi
16340  ;;
16341
16342sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16343  version_type=freebsd-elf
16344  need_lib_prefix=no
16345  need_version=no
16346  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16347  soname_spec='${libname}${release}${shared_ext}$major'
16348  shlibpath_var=LD_LIBRARY_PATH
16349  hardcode_into_libs=yes
16350  if test "$with_gnu_ld" = yes; then
16351    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16352    shlibpath_overrides_runpath=no
16353  else
16354    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16355    shlibpath_overrides_runpath=yes
16356    case $host_os in
16357      sco3.2v5*)
16358        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16359	;;
16360    esac
16361  fi
16362  sys_lib_dlsearch_path_spec='/usr/lib'
16363  ;;
16364
16365uts4*)
16366  version_type=linux
16367  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16368  soname_spec='${libname}${release}${shared_ext}$major'
16369  shlibpath_var=LD_LIBRARY_PATH
16370  ;;
16371
16372*)
16373  dynamic_linker=no
16374  ;;
16375esac
16376{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16377$as_echo "$dynamic_linker" >&6; }
16378test "$dynamic_linker" = no && can_build_shared=no
16379
16380if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16381  $as_echo_n "(cached) " >&6
16382else
16383  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16384fi
16385
16386sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16387if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16388  $as_echo_n "(cached) " >&6
16389else
16390  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16391fi
16392
16393sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16394
16395variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16396if test "$GCC" = yes; then
16397  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16398fi
16399
16400{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16401$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16402hardcode_action_F77=
16403if test -n "$hardcode_libdir_flag_spec_F77" || \
16404   test -n "$runpath_var_F77" || \
16405   test "X$hardcode_automatic_F77" = "Xyes" ; then
16406
16407  # We can hardcode non-existant directories.
16408  if test "$hardcode_direct_F77" != no &&
16409     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16410     # have to relink, otherwise we might link with an installed library
16411     # when we should be linking with a yet-to-be-installed one
16412     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16413     test "$hardcode_minus_L_F77" != no; then
16414    # Linking always hardcodes the temporary library directory.
16415    hardcode_action_F77=relink
16416  else
16417    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16418    hardcode_action_F77=immediate
16419  fi
16420else
16421  # We cannot hardcode anything, or else we can only hardcode existing
16422  # directories.
16423  hardcode_action_F77=unsupported
16424fi
16425{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16426$as_echo "$hardcode_action_F77" >&6; }
16427
16428if test "$hardcode_action_F77" = relink; then
16429  # Fast installation is not supported
16430  enable_fast_install=no
16431elif test "$shlibpath_overrides_runpath" = yes ||
16432     test "$enable_shared" = no; then
16433  # Fast installation is not necessary
16434  enable_fast_install=needless
16435fi
16436
16437
16438# The else clause should only fire when bootstrapping the
16439# libtool distribution, otherwise you forgot to ship ltmain.sh
16440# with your package, and you will get complaints that there are
16441# no rules to generate ltmain.sh.
16442if test -f "$ltmain"; then
16443  # See if we are running on zsh, and set the options which allow our commands through
16444  # without removal of \ escapes.
16445  if test -n "${ZSH_VERSION+set}" ; then
16446    setopt NO_GLOB_SUBST
16447  fi
16448  # Now quote all the things that may contain metacharacters while being
16449  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16450  # variables and quote the copies for generation of the libtool script.
16451  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16452    SED SHELL STRIP \
16453    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16454    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16455    deplibs_check_method reload_flag reload_cmds need_locks \
16456    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16457    lt_cv_sys_global_symbol_to_c_name_address \
16458    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16459    old_postinstall_cmds old_postuninstall_cmds \
16460    compiler_F77 \
16461    CC_F77 \
16462    LD_F77 \
16463    lt_prog_compiler_wl_F77 \
16464    lt_prog_compiler_pic_F77 \
16465    lt_prog_compiler_static_F77 \
16466    lt_prog_compiler_no_builtin_flag_F77 \
16467    export_dynamic_flag_spec_F77 \
16468    thread_safe_flag_spec_F77 \
16469    whole_archive_flag_spec_F77 \
16470    enable_shared_with_static_runtimes_F77 \
16471    old_archive_cmds_F77 \
16472    old_archive_from_new_cmds_F77 \
16473    predep_objects_F77 \
16474    postdep_objects_F77 \
16475    predeps_F77 \
16476    postdeps_F77 \
16477    compiler_lib_search_path_F77 \
16478    compiler_lib_search_dirs_F77 \
16479    archive_cmds_F77 \
16480    archive_expsym_cmds_F77 \
16481    postinstall_cmds_F77 \
16482    postuninstall_cmds_F77 \
16483    old_archive_from_expsyms_cmds_F77 \
16484    allow_undefined_flag_F77 \
16485    no_undefined_flag_F77 \
16486    export_symbols_cmds_F77 \
16487    hardcode_libdir_flag_spec_F77 \
16488    hardcode_libdir_flag_spec_ld_F77 \
16489    hardcode_libdir_separator_F77 \
16490    hardcode_automatic_F77 \
16491    module_cmds_F77 \
16492    module_expsym_cmds_F77 \
16493    lt_cv_prog_compiler_c_o_F77 \
16494    fix_srcfile_path_F77 \
16495    exclude_expsyms_F77 \
16496    include_expsyms_F77; do
16497
16498    case $var in
16499    old_archive_cmds_F77 | \
16500    old_archive_from_new_cmds_F77 | \
16501    archive_cmds_F77 | \
16502    archive_expsym_cmds_F77 | \
16503    module_cmds_F77 | \
16504    module_expsym_cmds_F77 | \
16505    old_archive_from_expsyms_cmds_F77 | \
16506    export_symbols_cmds_F77 | \
16507    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16508    postinstall_cmds | postuninstall_cmds | \
16509    old_postinstall_cmds | old_postuninstall_cmds | \
16510    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16511      # Double-quote double-evaled strings.
16512      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16513      ;;
16514    *)
16515      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16516      ;;
16517    esac
16518  done
16519
16520  case $lt_echo in
16521  *'\$0 --fallback-echo"')
16522    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16523    ;;
16524  esac
16525
16526cfgfile="$ofile"
16527
16528  cat <<__EOF__ >> "$cfgfile"
16529# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16530
16531# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16532
16533# Shell to use when invoking shell scripts.
16534SHELL=$lt_SHELL
16535
16536# Whether or not to build shared libraries.
16537build_libtool_libs=$enable_shared
16538
16539# Whether or not to build static libraries.
16540build_old_libs=$enable_static
16541
16542# Whether or not to add -lc for building shared libraries.
16543build_libtool_need_lc=$archive_cmds_need_lc_F77
16544
16545# Whether or not to disallow shared libs when runtime libs are static
16546allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16547
16548# Whether or not to optimize for fast installation.
16549fast_install=$enable_fast_install
16550
16551# The host system.
16552host_alias=$host_alias
16553host=$host
16554host_os=$host_os
16555
16556# The build system.
16557build_alias=$build_alias
16558build=$build
16559build_os=$build_os
16560
16561# An echo program that does not interpret backslashes.
16562echo=$lt_echo
16563
16564# The archiver.
16565AR=$lt_AR
16566AR_FLAGS=$lt_AR_FLAGS
16567
16568# A C compiler.
16569LTCC=$lt_LTCC
16570
16571# LTCC compiler flags.
16572LTCFLAGS=$lt_LTCFLAGS
16573
16574# A language-specific compiler.
16575CC=$lt_compiler_F77
16576
16577# Is the compiler the GNU C compiler?
16578with_gcc=$GCC_F77
16579
16580# An ERE matcher.
16581EGREP=$lt_EGREP
16582
16583# The linker used to build libraries.
16584LD=$lt_LD_F77
16585
16586# Whether we need hard or soft links.
16587LN_S=$lt_LN_S
16588
16589# A BSD-compatible nm program.
16590NM=$lt_NM
16591
16592# A symbol stripping program
16593STRIP=$lt_STRIP
16594
16595# Used to examine libraries when file_magic_cmd begins "file"
16596MAGIC_CMD=$MAGIC_CMD
16597
16598# Used on cygwin: DLL creation program.
16599DLLTOOL="$DLLTOOL"
16600
16601# Used on cygwin: object dumper.
16602OBJDUMP="$OBJDUMP"
16603
16604# Used on cygwin: assembler.
16605AS="$AS"
16606
16607# The name of the directory that contains temporary libtool files.
16608objdir=$objdir
16609
16610# How to create reloadable object files.
16611reload_flag=$lt_reload_flag
16612reload_cmds=$lt_reload_cmds
16613
16614# How to pass a linker flag through the compiler.
16615wl=$lt_lt_prog_compiler_wl_F77
16616
16617# Object file suffix (normally "o").
16618objext="$ac_objext"
16619
16620# Old archive suffix (normally "a").
16621libext="$libext"
16622
16623# Shared library suffix (normally ".so").
16624shrext_cmds='$shrext_cmds'
16625
16626# Executable file suffix (normally "").
16627exeext="$exeext"
16628
16629# Additional compiler flags for building library objects.
16630pic_flag=$lt_lt_prog_compiler_pic_F77
16631pic_mode=$pic_mode
16632
16633# What is the maximum length of a command?
16634max_cmd_len=$lt_cv_sys_max_cmd_len
16635
16636# Does compiler simultaneously support -c and -o options?
16637compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16638
16639# Must we lock files when doing compilation?
16640need_locks=$lt_need_locks
16641
16642# Do we need the lib prefix for modules?
16643need_lib_prefix=$need_lib_prefix
16644
16645# Do we need a version for libraries?
16646need_version=$need_version
16647
16648# Whether dlopen is supported.
16649dlopen_support=$enable_dlopen
16650
16651# Whether dlopen of programs is supported.
16652dlopen_self=$enable_dlopen_self
16653
16654# Whether dlopen of statically linked programs is supported.
16655dlopen_self_static=$enable_dlopen_self_static
16656
16657# Compiler flag to prevent dynamic linking.
16658link_static_flag=$lt_lt_prog_compiler_static_F77
16659
16660# Compiler flag to turn off builtin functions.
16661no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16662
16663# Compiler flag to allow reflexive dlopens.
16664export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16665
16666# Compiler flag to generate shared objects directly from archives.
16667whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16668
16669# Compiler flag to generate thread-safe objects.
16670thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16671
16672# Library versioning type.
16673version_type=$version_type
16674
16675# Format of library name prefix.
16676libname_spec=$lt_libname_spec
16677
16678# List of archive names.  First name is the real one, the rest are links.
16679# The last name is the one that the linker finds with -lNAME.
16680library_names_spec=$lt_library_names_spec
16681
16682# The coded name of the library, if different from the real name.
16683soname_spec=$lt_soname_spec
16684
16685# Commands used to build and install an old-style archive.
16686RANLIB=$lt_RANLIB
16687old_archive_cmds=$lt_old_archive_cmds_F77
16688old_postinstall_cmds=$lt_old_postinstall_cmds
16689old_postuninstall_cmds=$lt_old_postuninstall_cmds
16690
16691# Create an old-style archive from a shared archive.
16692old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16693
16694# Create a temporary old-style archive to link instead of a shared archive.
16695old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16696
16697# Commands used to build and install a shared archive.
16698archive_cmds=$lt_archive_cmds_F77
16699archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16700postinstall_cmds=$lt_postinstall_cmds
16701postuninstall_cmds=$lt_postuninstall_cmds
16702
16703# Commands used to build a loadable module (assumed same as above if empty)
16704module_cmds=$lt_module_cmds_F77
16705module_expsym_cmds=$lt_module_expsym_cmds_F77
16706
16707# Commands to strip libraries.
16708old_striplib=$lt_old_striplib
16709striplib=$lt_striplib
16710
16711# Dependencies to place before the objects being linked to create a
16712# shared library.
16713predep_objects=$lt_predep_objects_F77
16714
16715# Dependencies to place after the objects being linked to create a
16716# shared library.
16717postdep_objects=$lt_postdep_objects_F77
16718
16719# Dependencies to place before the objects being linked to create a
16720# shared library.
16721predeps=$lt_predeps_F77
16722
16723# Dependencies to place after the objects being linked to create a
16724# shared library.
16725postdeps=$lt_postdeps_F77
16726
16727# The directories searched by this compiler when creating a shared
16728# library
16729compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16730
16731# The library search path used internally by the compiler when linking
16732# a shared library.
16733compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16734
16735# Method to check whether dependent libraries are shared objects.
16736deplibs_check_method=$lt_deplibs_check_method
16737
16738# Command to use when deplibs_check_method == file_magic.
16739file_magic_cmd=$lt_file_magic_cmd
16740
16741# Flag that allows shared libraries with undefined symbols to be built.
16742allow_undefined_flag=$lt_allow_undefined_flag_F77
16743
16744# Flag that forces no undefined symbols.
16745no_undefined_flag=$lt_no_undefined_flag_F77
16746
16747# Commands used to finish a libtool library installation in a directory.
16748finish_cmds=$lt_finish_cmds
16749
16750# Same as above, but a single script fragment to be evaled but not shown.
16751finish_eval=$lt_finish_eval
16752
16753# Take the output of nm and produce a listing of raw symbols and C names.
16754global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16755
16756# Transform the output of nm in a proper C declaration
16757global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16758
16759# Transform the output of nm in a C name address pair
16760global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16761
16762# This is the shared library runtime path variable.
16763runpath_var=$runpath_var
16764
16765# This is the shared library path variable.
16766shlibpath_var=$shlibpath_var
16767
16768# Is shlibpath searched before the hard-coded library search path?
16769shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16770
16771# How to hardcode a shared library path into an executable.
16772hardcode_action=$hardcode_action_F77
16773
16774# Whether we should hardcode library paths into libraries.
16775hardcode_into_libs=$hardcode_into_libs
16776
16777# Flag to hardcode \$libdir into a binary during linking.
16778# This must work even if \$libdir does not exist.
16779hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16780
16781# If ld is used when linking, flag to hardcode \$libdir into
16782# a binary during linking. This must work even if \$libdir does
16783# not exist.
16784hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16785
16786# Whether we need a single -rpath flag with a separated argument.
16787hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16788
16789# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16790# resulting binary.
16791hardcode_direct=$hardcode_direct_F77
16792
16793# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16794# resulting binary.
16795hardcode_minus_L=$hardcode_minus_L_F77
16796
16797# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16798# the resulting binary.
16799hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16800
16801# Set to yes if building a shared library automatically hardcodes DIR into the library
16802# and all subsequent libraries and executables linked against it.
16803hardcode_automatic=$hardcode_automatic_F77
16804
16805# Variables whose values should be saved in libtool wrapper scripts and
16806# restored at relink time.
16807variables_saved_for_relink="$variables_saved_for_relink"
16808
16809# Whether libtool must link a program against all its dependency libraries.
16810link_all_deplibs=$link_all_deplibs_F77
16811
16812# Compile-time system search path for libraries
16813sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16814
16815# Run-time system search path for libraries
16816sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16817
16818# Fix the shell variable \$srcfile for the compiler.
16819fix_srcfile_path=$lt_fix_srcfile_path
16820
16821# Set to yes if exported symbols are required.
16822always_export_symbols=$always_export_symbols_F77
16823
16824# The commands to list exported symbols.
16825export_symbols_cmds=$lt_export_symbols_cmds_F77
16826
16827# The commands to extract the exported symbol list from a shared archive.
16828extract_expsyms_cmds=$lt_extract_expsyms_cmds
16829
16830# Symbols that should not be listed in the preloaded symbols.
16831exclude_expsyms=$lt_exclude_expsyms_F77
16832
16833# Symbols that must always be exported.
16834include_expsyms=$lt_include_expsyms_F77
16835
16836# ### END LIBTOOL TAG CONFIG: $tagname
16837
16838__EOF__
16839
16840
16841else
16842  # If there is no Makefile yet, we rely on a make rule to execute
16843  # `config.status --recheck' to rerun these tests and create the
16844  # libtool script then.
16845  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16846  if test -f "$ltmain_in"; then
16847    test -f Makefile && make "$ltmain"
16848  fi
16849fi
16850
16851
16852ac_ext=c
16853ac_cpp='$CPP $CPPFLAGS'
16854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16856ac_compiler_gnu=$ac_cv_c_compiler_gnu
16857
16858CC="$lt_save_CC"
16859
16860	else
16861	  tagname=""
16862	fi
16863	;;
16864
16865      GCJ)
16866	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16867
16868
16869# Source file extension for Java test sources.
16870ac_ext=java
16871
16872# Object file extension for compiled Java test sources.
16873objext=o
16874objext_GCJ=$objext
16875
16876# Code to be used in simple compile tests
16877lt_simple_compile_test_code="class foo {}"
16878
16879# Code to be used in simple link tests
16880lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16881
16882# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16883
16884# If no C compiler was specified, use CC.
16885LTCC=${LTCC-"$CC"}
16886
16887# If no C compiler flags were specified, use CFLAGS.
16888LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16889
16890# Allow CC to be a program name with arguments.
16891compiler=$CC
16892
16893
16894# save warnings/boilerplate of simple test code
16895ac_outfile=conftest.$ac_objext
16896echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16897eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16898_lt_compiler_boilerplate=`cat conftest.err`
16899$rm conftest*
16900
16901ac_outfile=conftest.$ac_objext
16902echo "$lt_simple_link_test_code" >conftest.$ac_ext
16903eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16904_lt_linker_boilerplate=`cat conftest.err`
16905$rm -r conftest*
16906
16907
16908# Allow CC to be a program name with arguments.
16909lt_save_CC="$CC"
16910CC=${GCJ-"gcj"}
16911compiler=$CC
16912compiler_GCJ=$CC
16913for cc_temp in $compiler""; do
16914  case $cc_temp in
16915    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16916    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16917    \-*) ;;
16918    *) break;;
16919  esac
16920done
16921cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16922
16923LD_GCJ="$LD"
16924
16925# GCJ did not exist at the time GCC didn't implicitly link libc in.
16926archive_cmds_need_lc_GCJ=no
16927
16928old_archive_cmds_GCJ=$old_archive_cmds
16929
16930
16931lt_prog_compiler_no_builtin_flag_GCJ=
16932
16933if test "$GCC" = yes; then
16934  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16935
16936
16937{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16938$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16939if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16940  $as_echo_n "(cached) " >&6
16941else
16942  lt_cv_prog_compiler_rtti_exceptions=no
16943  ac_outfile=conftest.$ac_objext
16944   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16945   lt_compiler_flag="-fno-rtti -fno-exceptions"
16946   # Insert the option either (1) after the last *FLAGS variable, or
16947   # (2) before a word containing "conftest.", or (3) at the end.
16948   # Note that $ac_compile itself does not contain backslashes and begins
16949   # with a dollar sign (not a hyphen), so the echo should work correctly.
16950   # The option is referenced via a variable to avoid confusing sed.
16951   lt_compile=`echo "$ac_compile" | $SED \
16952   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16953   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16954   -e 's:$: $lt_compiler_flag:'`
16955   (eval echo "\"\$as_me:16955: $lt_compile\"" >&5)
16956   (eval "$lt_compile" 2>conftest.err)
16957   ac_status=$?
16958   cat conftest.err >&5
16959   echo "$as_me:16959: \$? = $ac_status" >&5
16960   if (exit $ac_status) && test -s "$ac_outfile"; then
16961     # The compiler can only warn and ignore the option if not recognized
16962     # So say no if there are warnings other than the usual output.
16963     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16964     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16965     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16966       lt_cv_prog_compiler_rtti_exceptions=yes
16967     fi
16968   fi
16969   $rm conftest*
16970
16971fi
16972{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16973$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16974
16975if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16976    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16977else
16978    :
16979fi
16980
16981fi
16982
16983lt_prog_compiler_wl_GCJ=
16984lt_prog_compiler_pic_GCJ=
16985lt_prog_compiler_static_GCJ=
16986
16987{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16988$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16989
16990  if test "$GCC" = yes; then
16991    lt_prog_compiler_wl_GCJ='-Wl,'
16992    lt_prog_compiler_static_GCJ='-static'
16993
16994    case $host_os in
16995      aix*)
16996      # All AIX code is PIC.
16997      if test "$host_cpu" = ia64; then
16998	# AIX 5 now supports IA64 processor
16999	lt_prog_compiler_static_GCJ='-Bstatic'
17000      fi
17001      ;;
17002
17003    amigaos*)
17004      # FIXME: we need at least 68020 code to build shared libraries, but
17005      # adding the `-m68020' flag to GCC prevents building anything better,
17006      # like `-m68040'.
17007      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17008      ;;
17009
17010    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17011      # PIC is the default for these OSes.
17012      ;;
17013
17014    mingw* | cygwin* | pw32* | os2*)
17015      # This hack is so that the source file can tell whether it is being
17016      # built for inclusion in a dll (and should export symbols for example).
17017      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17018      # (--disable-auto-import) libraries
17019
17020      ;;
17021
17022    darwin* | rhapsody*)
17023      # PIC is the default on this platform
17024      # Common symbols not allowed in MH_DYLIB files
17025      lt_prog_compiler_pic_GCJ='-fno-common'
17026      ;;
17027
17028    interix[3-9]*)
17029      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17030      # Instead, we relocate shared libraries at runtime.
17031      ;;
17032
17033    msdosdjgpp*)
17034      # Just because we use GCC doesn't mean we suddenly get shared libraries
17035      # on systems that don't support them.
17036      lt_prog_compiler_can_build_shared_GCJ=no
17037      enable_shared=no
17038      ;;
17039
17040    sysv4*MP*)
17041      if test -d /usr/nec; then
17042	lt_prog_compiler_pic_GCJ=-Kconform_pic
17043      fi
17044      ;;
17045
17046    hpux*)
17047      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17048      # not for PA HP-UX.
17049      case $host_cpu in
17050      hppa*64*|ia64*)
17051	# +Z the default
17052	;;
17053      *)
17054	lt_prog_compiler_pic_GCJ='-fPIC'
17055	;;
17056      esac
17057      ;;
17058
17059    *)
17060      lt_prog_compiler_pic_GCJ='-fPIC'
17061      ;;
17062    esac
17063  else
17064    # PORTME Check for flag to pass linker flags through the system compiler.
17065    case $host_os in
17066    aix*)
17067      lt_prog_compiler_wl_GCJ='-Wl,'
17068      if test "$host_cpu" = ia64; then
17069	# AIX 5 now supports IA64 processor
17070	lt_prog_compiler_static_GCJ='-Bstatic'
17071      else
17072	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17073      fi
17074      ;;
17075      darwin*)
17076        # PIC is the default on this platform
17077        # Common symbols not allowed in MH_DYLIB files
17078       case $cc_basename in
17079         xlc*)
17080         lt_prog_compiler_pic_GCJ='-qnocommon'
17081         lt_prog_compiler_wl_GCJ='-Wl,'
17082         ;;
17083       esac
17084       ;;
17085
17086    mingw* | cygwin* | pw32* | os2*)
17087      # This hack is so that the source file can tell whether it is being
17088      # built for inclusion in a dll (and should export symbols for example).
17089
17090      ;;
17091
17092    hpux9* | hpux10* | hpux11*)
17093      lt_prog_compiler_wl_GCJ='-Wl,'
17094      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17095      # not for PA HP-UX.
17096      case $host_cpu in
17097      hppa*64*|ia64*)
17098	# +Z the default
17099	;;
17100      *)
17101	lt_prog_compiler_pic_GCJ='+Z'
17102	;;
17103      esac
17104      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17105      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17106      ;;
17107
17108    irix5* | irix6* | nonstopux*)
17109      lt_prog_compiler_wl_GCJ='-Wl,'
17110      # PIC (with -KPIC) is the default.
17111      lt_prog_compiler_static_GCJ='-non_shared'
17112      ;;
17113
17114    newsos6)
17115      lt_prog_compiler_pic_GCJ='-KPIC'
17116      lt_prog_compiler_static_GCJ='-Bstatic'
17117      ;;
17118
17119    linux* | k*bsd*-gnu)
17120      case $cc_basename in
17121      icc* | ecc*)
17122	lt_prog_compiler_wl_GCJ='-Wl,'
17123	lt_prog_compiler_pic_GCJ='-KPIC'
17124	lt_prog_compiler_static_GCJ='-static'
17125        ;;
17126      pgcc* | pgf77* | pgf90* | pgf95*)
17127        # Portland Group compilers (*not* the Pentium gcc compiler,
17128	# which looks to be a dead project)
17129	lt_prog_compiler_wl_GCJ='-Wl,'
17130	lt_prog_compiler_pic_GCJ='-fpic'
17131	lt_prog_compiler_static_GCJ='-Bstatic'
17132        ;;
17133      ccc*)
17134        lt_prog_compiler_wl_GCJ='-Wl,'
17135        # All Alpha code is PIC.
17136        lt_prog_compiler_static_GCJ='-non_shared'
17137        ;;
17138      *)
17139        case `$CC -V 2>&1 | sed 5q` in
17140	*Sun\ C*)
17141	  # Sun C 5.9
17142	  lt_prog_compiler_pic_GCJ='-KPIC'
17143	  lt_prog_compiler_static_GCJ='-Bstatic'
17144	  lt_prog_compiler_wl_GCJ='-Wl,'
17145	  ;;
17146	*Sun\ F*)
17147	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17148	  lt_prog_compiler_pic_GCJ='-KPIC'
17149	  lt_prog_compiler_static_GCJ='-Bstatic'
17150	  lt_prog_compiler_wl_GCJ=''
17151	  ;;
17152	esac
17153	;;
17154      esac
17155      ;;
17156
17157    osf3* | osf4* | osf5*)
17158      lt_prog_compiler_wl_GCJ='-Wl,'
17159      # All OSF/1 code is PIC.
17160      lt_prog_compiler_static_GCJ='-non_shared'
17161      ;;
17162
17163    rdos*)
17164      lt_prog_compiler_static_GCJ='-non_shared'
17165      ;;
17166
17167    solaris*)
17168      lt_prog_compiler_pic_GCJ='-KPIC'
17169      lt_prog_compiler_static_GCJ='-Bstatic'
17170      case $cc_basename in
17171      f77* | f90* | f95*)
17172	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17173      *)
17174	lt_prog_compiler_wl_GCJ='-Wl,';;
17175      esac
17176      ;;
17177
17178    sunos4*)
17179      lt_prog_compiler_wl_GCJ='-Qoption ld '
17180      lt_prog_compiler_pic_GCJ='-PIC'
17181      lt_prog_compiler_static_GCJ='-Bstatic'
17182      ;;
17183
17184    sysv4 | sysv4.2uw2* | sysv4.3*)
17185      lt_prog_compiler_wl_GCJ='-Wl,'
17186      lt_prog_compiler_pic_GCJ='-KPIC'
17187      lt_prog_compiler_static_GCJ='-Bstatic'
17188      ;;
17189
17190    sysv4*MP*)
17191      if test -d /usr/nec ;then
17192	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17193	lt_prog_compiler_static_GCJ='-Bstatic'
17194      fi
17195      ;;
17196
17197    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17198      lt_prog_compiler_wl_GCJ='-Wl,'
17199      lt_prog_compiler_pic_GCJ='-KPIC'
17200      lt_prog_compiler_static_GCJ='-Bstatic'
17201      ;;
17202
17203    unicos*)
17204      lt_prog_compiler_wl_GCJ='-Wl,'
17205      lt_prog_compiler_can_build_shared_GCJ=no
17206      ;;
17207
17208    uts4*)
17209      lt_prog_compiler_pic_GCJ='-pic'
17210      lt_prog_compiler_static_GCJ='-Bstatic'
17211      ;;
17212
17213    *)
17214      lt_prog_compiler_can_build_shared_GCJ=no
17215      ;;
17216    esac
17217  fi
17218
17219{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17220$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17221
17222#
17223# Check to make sure the PIC flag actually works.
17224#
17225if test -n "$lt_prog_compiler_pic_GCJ"; then
17226
17227{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17228$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17229if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17230  $as_echo_n "(cached) " >&6
17231else
17232  lt_cv_prog_compiler_pic_works_GCJ=no
17233  ac_outfile=conftest.$ac_objext
17234   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17235   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17236   # Insert the option either (1) after the last *FLAGS variable, or
17237   # (2) before a word containing "conftest.", or (3) at the end.
17238   # Note that $ac_compile itself does not contain backslashes and begins
17239   # with a dollar sign (not a hyphen), so the echo should work correctly.
17240   # The option is referenced via a variable to avoid confusing sed.
17241   lt_compile=`echo "$ac_compile" | $SED \
17242   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17243   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17244   -e 's:$: $lt_compiler_flag:'`
17245   (eval echo "\"\$as_me:17245: $lt_compile\"" >&5)
17246   (eval "$lt_compile" 2>conftest.err)
17247   ac_status=$?
17248   cat conftest.err >&5
17249   echo "$as_me:17249: \$? = $ac_status" >&5
17250   if (exit $ac_status) && test -s "$ac_outfile"; then
17251     # The compiler can only warn and ignore the option if not recognized
17252     # So say no if there are warnings other than the usual output.
17253     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17254     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17255     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17256       lt_cv_prog_compiler_pic_works_GCJ=yes
17257     fi
17258   fi
17259   $rm conftest*
17260
17261fi
17262{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17263$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17264
17265if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17266    case $lt_prog_compiler_pic_GCJ in
17267     "" | " "*) ;;
17268     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17269     esac
17270else
17271    lt_prog_compiler_pic_GCJ=
17272     lt_prog_compiler_can_build_shared_GCJ=no
17273fi
17274
17275fi
17276case $host_os in
17277  # For platforms which do not support PIC, -DPIC is meaningless:
17278  *djgpp*)
17279    lt_prog_compiler_pic_GCJ=
17280    ;;
17281  *)
17282    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17283    ;;
17284esac
17285
17286#
17287# Check to make sure the static flag actually works.
17288#
17289wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17290{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17291$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17292if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17293  $as_echo_n "(cached) " >&6
17294else
17295  lt_cv_prog_compiler_static_works_GCJ=no
17296   save_LDFLAGS="$LDFLAGS"
17297   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17298   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17299   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17300     # The linker can only warn and ignore the option if not recognized
17301     # So say no if there are warnings
17302     if test -s conftest.err; then
17303       # Append any errors to the config.log.
17304       cat conftest.err 1>&5
17305       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17306       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17307       if diff conftest.exp conftest.er2 >/dev/null; then
17308         lt_cv_prog_compiler_static_works_GCJ=yes
17309       fi
17310     else
17311       lt_cv_prog_compiler_static_works_GCJ=yes
17312     fi
17313   fi
17314   $rm -r conftest*
17315   LDFLAGS="$save_LDFLAGS"
17316
17317fi
17318{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17319$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17320
17321if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17322    :
17323else
17324    lt_prog_compiler_static_GCJ=
17325fi
17326
17327
17328{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17329$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17330if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17331  $as_echo_n "(cached) " >&6
17332else
17333  lt_cv_prog_compiler_c_o_GCJ=no
17334   $rm -r conftest 2>/dev/null
17335   mkdir conftest
17336   cd conftest
17337   mkdir out
17338   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17339
17340   lt_compiler_flag="-o out/conftest2.$ac_objext"
17341   # Insert the option either (1) after the last *FLAGS variable, or
17342   # (2) before a word containing "conftest.", or (3) at the end.
17343   # Note that $ac_compile itself does not contain backslashes and begins
17344   # with a dollar sign (not a hyphen), so the echo should work correctly.
17345   lt_compile=`echo "$ac_compile" | $SED \
17346   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17347   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17348   -e 's:$: $lt_compiler_flag:'`
17349   (eval echo "\"\$as_me:17349: $lt_compile\"" >&5)
17350   (eval "$lt_compile" 2>out/conftest.err)
17351   ac_status=$?
17352   cat out/conftest.err >&5
17353   echo "$as_me:17353: \$? = $ac_status" >&5
17354   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17355   then
17356     # The compiler can only warn and ignore the option if not recognized
17357     # So say no if there are warnings
17358     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17359     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17360     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17361       lt_cv_prog_compiler_c_o_GCJ=yes
17362     fi
17363   fi
17364   chmod u+w . 2>&5
17365   $rm conftest*
17366   # SGI C++ compiler will create directory out/ii_files/ for
17367   # template instantiation
17368   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17369   $rm out/* && rmdir out
17370   cd ..
17371   rmdir conftest
17372   $rm conftest*
17373
17374fi
17375{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17376$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17377
17378
17379hard_links="nottested"
17380if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17381  # do not overwrite the value of need_locks provided by the user
17382  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17383$as_echo_n "checking if we can lock with hard links... " >&6; }
17384  hard_links=yes
17385  $rm conftest*
17386  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17387  touch conftest.a
17388  ln conftest.a conftest.b 2>&5 || hard_links=no
17389  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17390  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17391$as_echo "$hard_links" >&6; }
17392  if test "$hard_links" = no; then
17393    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17394$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17395    need_locks=warn
17396  fi
17397else
17398  need_locks=no
17399fi
17400
17401{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17402$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17403
17404  runpath_var=
17405  allow_undefined_flag_GCJ=
17406  enable_shared_with_static_runtimes_GCJ=no
17407  archive_cmds_GCJ=
17408  archive_expsym_cmds_GCJ=
17409  old_archive_From_new_cmds_GCJ=
17410  old_archive_from_expsyms_cmds_GCJ=
17411  export_dynamic_flag_spec_GCJ=
17412  whole_archive_flag_spec_GCJ=
17413  thread_safe_flag_spec_GCJ=
17414  hardcode_libdir_flag_spec_GCJ=
17415  hardcode_libdir_flag_spec_ld_GCJ=
17416  hardcode_libdir_separator_GCJ=
17417  hardcode_direct_GCJ=no
17418  hardcode_minus_L_GCJ=no
17419  hardcode_shlibpath_var_GCJ=unsupported
17420  link_all_deplibs_GCJ=unknown
17421  hardcode_automatic_GCJ=no
17422  module_cmds_GCJ=
17423  module_expsym_cmds_GCJ=
17424  always_export_symbols_GCJ=no
17425  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17426  # include_expsyms should be a list of space-separated symbols to be *always*
17427  # included in the symbol list
17428  include_expsyms_GCJ=
17429  # exclude_expsyms can be an extended regexp of symbols to exclude
17430  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17431  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17432  # as well as any symbol that contains `d'.
17433  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17434  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17435  # platforms (ab)use it in PIC code, but their linkers get confused if
17436  # the symbol is explicitly referenced.  Since portable code cannot
17437  # rely on this symbol name, it's probably fine to never include it in
17438  # preloaded symbol tables.
17439  # Exclude shared library initialization/finalization symbols.
17440  extract_expsyms_cmds=
17441  # Just being paranoid about ensuring that cc_basename is set.
17442  for cc_temp in $compiler""; do
17443  case $cc_temp in
17444    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17445    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17446    \-*) ;;
17447    *) break;;
17448  esac
17449done
17450cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17451
17452  case $host_os in
17453  cygwin* | mingw* | pw32*)
17454    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17455    # When not using gcc, we currently assume that we are using
17456    # Microsoft Visual C++.
17457    if test "$GCC" != yes; then
17458      with_gnu_ld=no
17459    fi
17460    ;;
17461  interix*)
17462    # we just hope/assume this is gcc and not c89 (= MSVC++)
17463    with_gnu_ld=yes
17464    ;;
17465  openbsd*)
17466    with_gnu_ld=no
17467    ;;
17468  esac
17469
17470  ld_shlibs_GCJ=yes
17471  if test "$with_gnu_ld" = yes; then
17472    # If archive_cmds runs LD, not CC, wlarc should be empty
17473    wlarc='${wl}'
17474
17475    # Set some defaults for GNU ld with shared library support. These
17476    # are reset later if shared libraries are not supported. Putting them
17477    # here allows them to be overridden if necessary.
17478    runpath_var=LD_RUN_PATH
17479    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17480    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17481    # ancient GNU ld didn't support --whole-archive et. al.
17482    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17483	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17484      else
17485  	whole_archive_flag_spec_GCJ=
17486    fi
17487    supports_anon_versioning=no
17488    case `$LD -v 2>/dev/null` in
17489      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17490      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17491      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17492      *\ 2.11.*) ;; # other 2.11 versions
17493      *) supports_anon_versioning=yes ;;
17494    esac
17495
17496    # See if GNU ld supports shared libraries.
17497    case $host_os in
17498    aix[3-9]*)
17499      # On AIX/PPC, the GNU linker is very broken
17500      if test "$host_cpu" != ia64; then
17501	ld_shlibs_GCJ=no
17502	cat <<EOF 1>&2
17503
17504*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17505*** to be unable to reliably create shared libraries on AIX.
17506*** Therefore, libtool is disabling shared libraries support.  If you
17507*** really care for shared libraries, you may want to modify your PATH
17508*** so that a non-GNU linker is found, and then restart.
17509
17510EOF
17511      fi
17512      ;;
17513
17514    amigaos*)
17515      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)'
17516      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17517      hardcode_minus_L_GCJ=yes
17518
17519      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17520      # that the semantics of dynamic libraries on AmigaOS, at least up
17521      # to version 4, is to share data among multiple programs linked
17522      # with the same dynamic library.  Since this doesn't match the
17523      # behavior of shared libraries on other platforms, we can't use
17524      # them.
17525      ld_shlibs_GCJ=no
17526      ;;
17527
17528    beos*)
17529      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17530	allow_undefined_flag_GCJ=unsupported
17531	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17532	# support --undefined.  This deserves some investigation.  FIXME
17533	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17534      else
17535	ld_shlibs_GCJ=no
17536      fi
17537      ;;
17538
17539    cygwin* | mingw* | pw32*)
17540      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17541      # as there is no search path for DLLs.
17542      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17543      allow_undefined_flag_GCJ=unsupported
17544      always_export_symbols_GCJ=no
17545      enable_shared_with_static_runtimes_GCJ=yes
17546      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17547
17548      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17549        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17550	# If the export-symbols file already is a .def file (1st line
17551	# is EXPORTS), use it as is; otherwise, prepend...
17552	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17553	  cp $export_symbols $output_objdir/$soname.def;
17554	else
17555	  echo EXPORTS > $output_objdir/$soname.def;
17556	  cat $export_symbols >> $output_objdir/$soname.def;
17557	fi~
17558	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17559      else
17560	ld_shlibs_GCJ=no
17561      fi
17562      ;;
17563
17564    interix[3-9]*)
17565      hardcode_direct_GCJ=no
17566      hardcode_shlibpath_var_GCJ=no
17567      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17568      export_dynamic_flag_spec_GCJ='${wl}-E'
17569      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17570      # Instead, shared libraries are loaded at an image base (0x10000000 by
17571      # default) and relocated if they conflict, which is a slow very memory
17572      # consuming and fragmenting process.  To avoid this, we pick a random,
17573      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17574      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17575      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'
17576      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'
17577      ;;
17578
17579    gnu* | linux* | k*bsd*-gnu)
17580      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17581	tmp_addflag=
17582	case $cc_basename,$host_cpu in
17583	pgcc*)				# Portland Group C compiler
17584	  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'
17585	  tmp_addflag=' $pic_flag'
17586	  ;;
17587	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17588	  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'
17589	  tmp_addflag=' $pic_flag -Mnomain' ;;
17590	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17591	  tmp_addflag=' -i_dynamic' ;;
17592	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17593	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17594	ifc* | ifort*)			# Intel Fortran compiler
17595	  tmp_addflag=' -nofor_main' ;;
17596	esac
17597	case `$CC -V 2>&1 | sed 5q` in
17598	*Sun\ C*)			# Sun C 5.9
17599	  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'
17600	  tmp_sharedflag='-G' ;;
17601	*Sun\ F*)			# Sun Fortran 8.3
17602	  tmp_sharedflag='-G' ;;
17603	*)
17604	  tmp_sharedflag='-shared' ;;
17605	esac
17606	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17607
17608	if test $supports_anon_versioning = yes; then
17609	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17610  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17611  $echo "local: *; };" >> $output_objdir/$libname.ver~
17612	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17613	fi
17614	link_all_deplibs_GCJ=no
17615      else
17616	ld_shlibs_GCJ=no
17617      fi
17618      ;;
17619
17620    netbsd*)
17621      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17622	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17623	wlarc=
17624      else
17625	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17626	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17627      fi
17628      ;;
17629
17630    solaris*)
17631      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17632	ld_shlibs_GCJ=no
17633	cat <<EOF 1>&2
17634
17635*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17636*** create shared libraries on Solaris systems.  Therefore, libtool
17637*** is disabling shared libraries support.  We urge you to upgrade GNU
17638*** binutils to release 2.9.1 or newer.  Another option is to modify
17639*** your PATH or compiler configuration so that the native linker is
17640*** used, and then restart.
17641
17642EOF
17643      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17644	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17645	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17646      else
17647	ld_shlibs_GCJ=no
17648      fi
17649      ;;
17650
17651    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17652      case `$LD -v 2>&1` in
17653        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17654	ld_shlibs_GCJ=no
17655	cat <<_LT_EOF 1>&2
17656
17657*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17658*** reliably create shared libraries on SCO systems.  Therefore, libtool
17659*** is disabling shared libraries support.  We urge you to upgrade GNU
17660*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17661*** your PATH or compiler configuration so that the native linker is
17662*** used, and then restart.
17663
17664_LT_EOF
17665	;;
17666	*)
17667	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17668	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17669	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17670	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17671	  else
17672	    ld_shlibs_GCJ=no
17673	  fi
17674	;;
17675      esac
17676      ;;
17677
17678    sunos4*)
17679      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17680      wlarc=
17681      hardcode_direct_GCJ=yes
17682      hardcode_shlibpath_var_GCJ=no
17683      ;;
17684
17685    *)
17686      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17687	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17688	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17689      else
17690	ld_shlibs_GCJ=no
17691      fi
17692      ;;
17693    esac
17694
17695    if test "$ld_shlibs_GCJ" = no; then
17696      runpath_var=
17697      hardcode_libdir_flag_spec_GCJ=
17698      export_dynamic_flag_spec_GCJ=
17699      whole_archive_flag_spec_GCJ=
17700    fi
17701  else
17702    # PORTME fill in a description of your system's linker (not GNU ld)
17703    case $host_os in
17704    aix3*)
17705      allow_undefined_flag_GCJ=unsupported
17706      always_export_symbols_GCJ=yes
17707      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'
17708      # Note: this linker hardcodes the directories in LIBPATH if there
17709      # are no directories specified by -L.
17710      hardcode_minus_L_GCJ=yes
17711      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17712	# Neither direct hardcoding nor static linking is supported with a
17713	# broken collect2.
17714	hardcode_direct_GCJ=unsupported
17715      fi
17716      ;;
17717
17718    aix[4-9]*)
17719      if test "$host_cpu" = ia64; then
17720	# On IA64, the linker does run time linking by default, so we don't
17721	# have to do anything special.
17722	aix_use_runtimelinking=no
17723	exp_sym_flag='-Bexport'
17724	no_entry_flag=""
17725      else
17726	# If we're using GNU nm, then we don't want the "-C" option.
17727	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17728	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17729	  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'
17730	else
17731	  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'
17732	fi
17733	aix_use_runtimelinking=no
17734
17735	# Test if we are trying to use run time linking or normal
17736	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17737	# need to do runtime linking.
17738	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17739	  for ld_flag in $LDFLAGS; do
17740  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17741  	    aix_use_runtimelinking=yes
17742  	    break
17743  	  fi
17744	  done
17745	  ;;
17746	esac
17747
17748	exp_sym_flag='-bexport'
17749	no_entry_flag='-bnoentry'
17750      fi
17751
17752      # When large executables or shared objects are built, AIX ld can
17753      # have problems creating the table of contents.  If linking a library
17754      # or program results in "error TOC overflow" add -mminimal-toc to
17755      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17756      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17757
17758      archive_cmds_GCJ=''
17759      hardcode_direct_GCJ=yes
17760      hardcode_libdir_separator_GCJ=':'
17761      link_all_deplibs_GCJ=yes
17762
17763      if test "$GCC" = yes; then
17764	case $host_os in aix4.[012]|aix4.[012].*)
17765	# We only want to do this on AIX 4.2 and lower, the check
17766	# below for broken collect2 doesn't work under 4.3+
17767	  collect2name=`${CC} -print-prog-name=collect2`
17768	  if test -f "$collect2name" && \
17769  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17770	  then
17771  	  # We have reworked collect2
17772  	  :
17773	  else
17774  	  # We have old collect2
17775  	  hardcode_direct_GCJ=unsupported
17776  	  # It fails to find uninstalled libraries when the uninstalled
17777  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17778  	  # to unsupported forces relinking
17779  	  hardcode_minus_L_GCJ=yes
17780  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17781  	  hardcode_libdir_separator_GCJ=
17782	  fi
17783	  ;;
17784	esac
17785	shared_flag='-shared'
17786	if test "$aix_use_runtimelinking" = yes; then
17787	  shared_flag="$shared_flag "'${wl}-G'
17788	fi
17789      else
17790	# not using gcc
17791	if test "$host_cpu" = ia64; then
17792  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17793  	# chokes on -Wl,-G. The following line is correct:
17794	  shared_flag='-G'
17795	else
17796	  if test "$aix_use_runtimelinking" = yes; then
17797	    shared_flag='${wl}-G'
17798	  else
17799	    shared_flag='${wl}-bM:SRE'
17800	  fi
17801	fi
17802      fi
17803
17804      # It seems that -bexpall does not export symbols beginning with
17805      # underscore (_), so it is better to generate a list of symbols to export.
17806      always_export_symbols_GCJ=yes
17807      if test "$aix_use_runtimelinking" = yes; then
17808	# Warning - without using the other runtime loading flags (-brtl),
17809	# -berok will link without error, but may produce a broken library.
17810	allow_undefined_flag_GCJ='-berok'
17811       # Determine the default libpath from the value encoded in an empty executable.
17812       cat >conftest.$ac_ext <<_ACEOF
17813/* confdefs.h.  */
17814_ACEOF
17815cat confdefs.h >>conftest.$ac_ext
17816cat >>conftest.$ac_ext <<_ACEOF
17817/* end confdefs.h.  */
17818
17819int
17820main ()
17821{
17822
17823  ;
17824  return 0;
17825}
17826_ACEOF
17827rm -f conftest.$ac_objext conftest$ac_exeext
17828if { (ac_try="$ac_link"
17829case "(($ac_try" in
17830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831  *) ac_try_echo=$ac_try;;
17832esac
17833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17834$as_echo "$ac_try_echo") >&5
17835  (eval "$ac_link") 2>conftest.er1
17836  ac_status=$?
17837  grep -v '^ *+' conftest.er1 >conftest.err
17838  rm -f conftest.er1
17839  cat conftest.err >&5
17840  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841  (exit $ac_status); } && {
17842	 test -z "$ac_c_werror_flag" ||
17843	 test ! -s conftest.err
17844       } && test -s conftest$ac_exeext && {
17845	 test "$cross_compiling" = yes ||
17846	 $as_test_x conftest$ac_exeext
17847       }; then
17848
17849lt_aix_libpath_sed='
17850    /Import File Strings/,/^$/ {
17851	/^0/ {
17852	    s/^0  *\(.*\)$/\1/
17853	    p
17854	}
17855    }'
17856aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17857# Check for a 64-bit object if we didn't find anything.
17858if test -z "$aix_libpath"; then
17859  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17860fi
17861else
17862  $as_echo "$as_me: failed program was:" >&5
17863sed 's/^/| /' conftest.$ac_ext >&5
17864
17865
17866fi
17867
17868rm -rf conftest.dSYM
17869rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17870      conftest$ac_exeext conftest.$ac_ext
17871if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17872
17873       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17874	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"
17875       else
17876	if test "$host_cpu" = ia64; then
17877	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17878	  allow_undefined_flag_GCJ="-z nodefs"
17879	  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"
17880	else
17881	 # Determine the default libpath from the value encoded in an empty executable.
17882	 cat >conftest.$ac_ext <<_ACEOF
17883/* confdefs.h.  */
17884_ACEOF
17885cat confdefs.h >>conftest.$ac_ext
17886cat >>conftest.$ac_ext <<_ACEOF
17887/* end confdefs.h.  */
17888
17889int
17890main ()
17891{
17892
17893  ;
17894  return 0;
17895}
17896_ACEOF
17897rm -f conftest.$ac_objext conftest$ac_exeext
17898if { (ac_try="$ac_link"
17899case "(($ac_try" in
17900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17901  *) ac_try_echo=$ac_try;;
17902esac
17903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17904$as_echo "$ac_try_echo") >&5
17905  (eval "$ac_link") 2>conftest.er1
17906  ac_status=$?
17907  grep -v '^ *+' conftest.er1 >conftest.err
17908  rm -f conftest.er1
17909  cat conftest.err >&5
17910  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911  (exit $ac_status); } && {
17912	 test -z "$ac_c_werror_flag" ||
17913	 test ! -s conftest.err
17914       } && test -s conftest$ac_exeext && {
17915	 test "$cross_compiling" = yes ||
17916	 $as_test_x conftest$ac_exeext
17917       }; then
17918
17919lt_aix_libpath_sed='
17920    /Import File Strings/,/^$/ {
17921	/^0/ {
17922	    s/^0  *\(.*\)$/\1/
17923	    p
17924	}
17925    }'
17926aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17927# Check for a 64-bit object if we didn't find anything.
17928if test -z "$aix_libpath"; then
17929  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17930fi
17931else
17932  $as_echo "$as_me: failed program was:" >&5
17933sed 's/^/| /' conftest.$ac_ext >&5
17934
17935
17936fi
17937
17938rm -rf conftest.dSYM
17939rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17940      conftest$ac_exeext conftest.$ac_ext
17941if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17942
17943	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17944	  # Warning - without using the other run time loading flags,
17945	  # -berok will link without error, but may produce a broken library.
17946	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17947	  allow_undefined_flag_GCJ=' ${wl}-berok'
17948	  # Exported symbols can be pulled into shared objects from archives
17949	  whole_archive_flag_spec_GCJ='$convenience'
17950	  archive_cmds_need_lc_GCJ=yes
17951	  # This is similar to how AIX traditionally builds its shared libraries.
17952	  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'
17953	fi
17954      fi
17955      ;;
17956
17957    amigaos*)
17958      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)'
17959      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17960      hardcode_minus_L_GCJ=yes
17961      # see comment about different semantics on the GNU ld section
17962      ld_shlibs_GCJ=no
17963      ;;
17964
17965    bsdi[45]*)
17966      export_dynamic_flag_spec_GCJ=-rdynamic
17967      ;;
17968
17969    cygwin* | mingw* | pw32*)
17970      # When not using gcc, we currently assume that we are using
17971      # Microsoft Visual C++.
17972      # hardcode_libdir_flag_spec is actually meaningless, as there is
17973      # no search path for DLLs.
17974      hardcode_libdir_flag_spec_GCJ=' '
17975      allow_undefined_flag_GCJ=unsupported
17976      # Tell ltmain to make .lib files, not .a files.
17977      libext=lib
17978      # Tell ltmain to make .dll files, not .so files.
17979      shrext_cmds=".dll"
17980      # FIXME: Setting linknames here is a bad hack.
17981      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17982      # The linker will automatically build a .lib file if we build a DLL.
17983      old_archive_From_new_cmds_GCJ='true'
17984      # FIXME: Should let the user specify the lib program.
17985      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17986      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17987      enable_shared_with_static_runtimes_GCJ=yes
17988      ;;
17989
17990    darwin* | rhapsody*)
17991      case $host_os in
17992        rhapsody* | darwin1.[012])
17993         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17994         ;;
17995       *) # Darwin 1.3 on
17996         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17997           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17998         else
17999           case ${MACOSX_DEPLOYMENT_TARGET} in
18000             10.[012])
18001               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18002               ;;
18003             10.*)
18004               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18005               ;;
18006           esac
18007         fi
18008         ;;
18009      esac
18010      archive_cmds_need_lc_GCJ=no
18011      hardcode_direct_GCJ=no
18012      hardcode_automatic_GCJ=yes
18013      hardcode_shlibpath_var_GCJ=unsupported
18014      whole_archive_flag_spec_GCJ=''
18015      link_all_deplibs_GCJ=yes
18016    if test "$GCC" = yes ; then
18017    	output_verbose_link_cmd='echo'
18018        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}"
18019        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18020        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}"
18021        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}"
18022    else
18023      case $cc_basename in
18024        xlc*)
18025         output_verbose_link_cmd='echo'
18026         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18027         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18028          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18029         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}'
18030          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}'
18031          ;;
18032       *)
18033         ld_shlibs_GCJ=no
18034          ;;
18035      esac
18036    fi
18037      ;;
18038
18039    dgux*)
18040      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18041      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18042      hardcode_shlibpath_var_GCJ=no
18043      ;;
18044
18045    freebsd1*)
18046      ld_shlibs_GCJ=no
18047      ;;
18048
18049    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18050    # support.  Future versions do this automatically, but an explicit c++rt0.o
18051    # does not break anything, and helps significantly (at the cost of a little
18052    # extra space).
18053    freebsd2.2*)
18054      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18055      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18056      hardcode_direct_GCJ=yes
18057      hardcode_shlibpath_var_GCJ=no
18058      ;;
18059
18060    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18061    freebsd2*)
18062      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18063      hardcode_direct_GCJ=yes
18064      hardcode_minus_L_GCJ=yes
18065      hardcode_shlibpath_var_GCJ=no
18066      ;;
18067
18068    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18069    freebsd* | dragonfly*)
18070      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18071      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18072      hardcode_direct_GCJ=yes
18073      hardcode_shlibpath_var_GCJ=no
18074      ;;
18075
18076    hpux9*)
18077      if test "$GCC" = yes; then
18078	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'
18079      else
18080	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'
18081      fi
18082      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18083      hardcode_libdir_separator_GCJ=:
18084      hardcode_direct_GCJ=yes
18085
18086      # hardcode_minus_L: Not really in the search PATH,
18087      # but as the default location of the library.
18088      hardcode_minus_L_GCJ=yes
18089      export_dynamic_flag_spec_GCJ='${wl}-E'
18090      ;;
18091
18092    hpux10*)
18093      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18094	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18095      else
18096	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18097      fi
18098      if test "$with_gnu_ld" = no; then
18099	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18100	hardcode_libdir_separator_GCJ=:
18101
18102	hardcode_direct_GCJ=yes
18103	export_dynamic_flag_spec_GCJ='${wl}-E'
18104
18105	# hardcode_minus_L: Not really in the search PATH,
18106	# but as the default location of the library.
18107	hardcode_minus_L_GCJ=yes
18108      fi
18109      ;;
18110
18111    hpux11*)
18112      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18113	case $host_cpu in
18114	hppa*64*)
18115	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18116	  ;;
18117	ia64*)
18118	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18119	  ;;
18120	*)
18121	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18122	  ;;
18123	esac
18124      else
18125	case $host_cpu in
18126	hppa*64*)
18127	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18128	  ;;
18129	ia64*)
18130	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18131	  ;;
18132	*)
18133	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18134	  ;;
18135	esac
18136      fi
18137      if test "$with_gnu_ld" = no; then
18138	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18139	hardcode_libdir_separator_GCJ=:
18140
18141	case $host_cpu in
18142	hppa*64*|ia64*)
18143	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18144	  hardcode_direct_GCJ=no
18145	  hardcode_shlibpath_var_GCJ=no
18146	  ;;
18147	*)
18148	  hardcode_direct_GCJ=yes
18149	  export_dynamic_flag_spec_GCJ='${wl}-E'
18150
18151	  # hardcode_minus_L: Not really in the search PATH,
18152	  # but as the default location of the library.
18153	  hardcode_minus_L_GCJ=yes
18154	  ;;
18155	esac
18156      fi
18157      ;;
18158
18159    irix5* | irix6* | nonstopux*)
18160      if test "$GCC" = yes; then
18161	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'
18162      else
18163	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'
18164	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18165      fi
18166      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18167      hardcode_libdir_separator_GCJ=:
18168      link_all_deplibs_GCJ=yes
18169      ;;
18170
18171    netbsd*)
18172      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18173	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18174      else
18175	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18176      fi
18177      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18178      hardcode_direct_GCJ=yes
18179      hardcode_shlibpath_var_GCJ=no
18180      ;;
18181
18182    newsos6)
18183      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18184      hardcode_direct_GCJ=yes
18185      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18186      hardcode_libdir_separator_GCJ=:
18187      hardcode_shlibpath_var_GCJ=no
18188      ;;
18189
18190    openbsd*)
18191      if test -f /usr/libexec/ld.so; then
18192	hardcode_direct_GCJ=yes
18193	hardcode_shlibpath_var_GCJ=no
18194	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18195	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18196	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18197	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18198	  export_dynamic_flag_spec_GCJ='${wl}-E'
18199	else
18200	  case $host_os in
18201	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18202	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18203	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18204	     ;;
18205	   *)
18206	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18207	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18208	     ;;
18209	  esac
18210        fi
18211      else
18212	ld_shlibs_GCJ=no
18213      fi
18214      ;;
18215
18216    os2*)
18217      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18218      hardcode_minus_L_GCJ=yes
18219      allow_undefined_flag_GCJ=unsupported
18220      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'
18221      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18222      ;;
18223
18224    osf3*)
18225      if test "$GCC" = yes; then
18226	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18227	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'
18228      else
18229	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18230	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'
18231      fi
18232      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18233      hardcode_libdir_separator_GCJ=:
18234      ;;
18235
18236    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18237      if test "$GCC" = yes; then
18238	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18239	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'
18240	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18241      else
18242	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18243	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'
18244	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~
18245	$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'
18246
18247	# Both c and cxx compiler support -rpath directly
18248	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18249      fi
18250      hardcode_libdir_separator_GCJ=:
18251      ;;
18252
18253    solaris*)
18254      no_undefined_flag_GCJ=' -z text'
18255      if test "$GCC" = yes; then
18256	wlarc='${wl}'
18257	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18258	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18259	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18260      else
18261	wlarc=''
18262	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18263	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18264  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18265      fi
18266      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18267      hardcode_shlibpath_var_GCJ=no
18268      case $host_os in
18269      solaris2.[0-5] | solaris2.[0-5].*) ;;
18270      *)
18271	# The compiler driver will combine and reorder linker options,
18272	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18273	# but is careful enough not to reorder.
18274 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18275	if test "$GCC" = yes; then
18276	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18277	else
18278	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18279	fi
18280	;;
18281      esac
18282      link_all_deplibs_GCJ=yes
18283      ;;
18284
18285    sunos4*)
18286      if test "x$host_vendor" = xsequent; then
18287	# Use $CC to link under sequent, because it throws in some extra .o
18288	# files that make .init and .fini sections work.
18289	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18290      else
18291	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18292      fi
18293      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18294      hardcode_direct_GCJ=yes
18295      hardcode_minus_L_GCJ=yes
18296      hardcode_shlibpath_var_GCJ=no
18297      ;;
18298
18299    sysv4)
18300      case $host_vendor in
18301	sni)
18302	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18303	  hardcode_direct_GCJ=yes # is this really true???
18304	;;
18305	siemens)
18306	  ## LD is ld it makes a PLAMLIB
18307	  ## CC just makes a GrossModule.
18308	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18309	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18310	  hardcode_direct_GCJ=no
18311        ;;
18312	motorola)
18313	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18314	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18315	;;
18316      esac
18317      runpath_var='LD_RUN_PATH'
18318      hardcode_shlibpath_var_GCJ=no
18319      ;;
18320
18321    sysv4.3*)
18322      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18323      hardcode_shlibpath_var_GCJ=no
18324      export_dynamic_flag_spec_GCJ='-Bexport'
18325      ;;
18326
18327    sysv4*MP*)
18328      if test -d /usr/nec; then
18329	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18330	hardcode_shlibpath_var_GCJ=no
18331	runpath_var=LD_RUN_PATH
18332	hardcode_runpath_var=yes
18333	ld_shlibs_GCJ=yes
18334      fi
18335      ;;
18336
18337    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18338      no_undefined_flag_GCJ='${wl}-z,text'
18339      archive_cmds_need_lc_GCJ=no
18340      hardcode_shlibpath_var_GCJ=no
18341      runpath_var='LD_RUN_PATH'
18342
18343      if test "$GCC" = yes; then
18344	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18345	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18346      else
18347	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18348	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18349      fi
18350      ;;
18351
18352    sysv5* | sco3.2v5* | sco5v6*)
18353      # Note: We can NOT use -z defs as we might desire, because we do not
18354      # link with -lc, and that would cause any symbols used from libc to
18355      # always be unresolved, which means just about no library would
18356      # ever link correctly.  If we're not using GNU ld we use -z text
18357      # though, which does catch some bad symbols but isn't as heavy-handed
18358      # as -z defs.
18359      no_undefined_flag_GCJ='${wl}-z,text'
18360      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18361      archive_cmds_need_lc_GCJ=no
18362      hardcode_shlibpath_var_GCJ=no
18363      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18364      hardcode_libdir_separator_GCJ=':'
18365      link_all_deplibs_GCJ=yes
18366      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18367      runpath_var='LD_RUN_PATH'
18368
18369      if test "$GCC" = yes; then
18370	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18371	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18372      else
18373	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18374	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18375      fi
18376      ;;
18377
18378    uts4*)
18379      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18380      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18381      hardcode_shlibpath_var_GCJ=no
18382      ;;
18383
18384    *)
18385      ld_shlibs_GCJ=no
18386      ;;
18387    esac
18388  fi
18389
18390{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18391$as_echo "$ld_shlibs_GCJ" >&6; }
18392test "$ld_shlibs_GCJ" = no && can_build_shared=no
18393
18394#
18395# Do we need to explicitly link libc?
18396#
18397case "x$archive_cmds_need_lc_GCJ" in
18398x|xyes)
18399  # Assume -lc should be added
18400  archive_cmds_need_lc_GCJ=yes
18401
18402  if test "$enable_shared" = yes && test "$GCC" = yes; then
18403    case $archive_cmds_GCJ in
18404    *'~'*)
18405      # FIXME: we may have to deal with multi-command sequences.
18406      ;;
18407    '$CC '*)
18408      # Test whether the compiler implicitly links with -lc since on some
18409      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18410      # to ld, don't add -lc before -lgcc.
18411      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18412$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18413      $rm conftest*
18414      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18415
18416      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18417  (eval $ac_compile) 2>&5
18418  ac_status=$?
18419  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420  (exit $ac_status); } 2>conftest.err; then
18421        soname=conftest
18422        lib=conftest
18423        libobjs=conftest.$ac_objext
18424        deplibs=
18425        wl=$lt_prog_compiler_wl_GCJ
18426	pic_flag=$lt_prog_compiler_pic_GCJ
18427        compiler_flags=-v
18428        linker_flags=-v
18429        verstring=
18430        output_objdir=.
18431        libname=conftest
18432        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18433        allow_undefined_flag_GCJ=
18434        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18435  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18436  ac_status=$?
18437  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438  (exit $ac_status); }
18439        then
18440	  archive_cmds_need_lc_GCJ=no
18441        else
18442	  archive_cmds_need_lc_GCJ=yes
18443        fi
18444        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18445      else
18446        cat conftest.err 1>&5
18447      fi
18448      $rm conftest*
18449      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18450$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18451      ;;
18452    esac
18453  fi
18454  ;;
18455esac
18456
18457{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18458$as_echo_n "checking dynamic linker characteristics... " >&6; }
18459library_names_spec=
18460libname_spec='lib$name'
18461soname_spec=
18462shrext_cmds=".so"
18463postinstall_cmds=
18464postuninstall_cmds=
18465finish_cmds=
18466finish_eval=
18467shlibpath_var=
18468shlibpath_overrides_runpath=unknown
18469version_type=none
18470dynamic_linker="$host_os ld.so"
18471sys_lib_dlsearch_path_spec="/lib /usr/lib"
18472
18473need_lib_prefix=unknown
18474hardcode_into_libs=no
18475
18476# when you set need_version to no, make sure it does not cause -set_version
18477# flags to be left without arguments
18478need_version=unknown
18479
18480case $host_os in
18481aix3*)
18482  version_type=linux
18483  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18484  shlibpath_var=LIBPATH
18485
18486  # AIX 3 has no versioning support, so we append a major version to the name.
18487  soname_spec='${libname}${release}${shared_ext}$major'
18488  ;;
18489
18490aix[4-9]*)
18491  version_type=linux
18492  need_lib_prefix=no
18493  need_version=no
18494  hardcode_into_libs=yes
18495  if test "$host_cpu" = ia64; then
18496    # AIX 5 supports IA64
18497    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18498    shlibpath_var=LD_LIBRARY_PATH
18499  else
18500    # With GCC up to 2.95.x, collect2 would create an import file
18501    # for dependence libraries.  The import file would start with
18502    # the line `#! .'.  This would cause the generated library to
18503    # depend on `.', always an invalid library.  This was fixed in
18504    # development snapshots of GCC prior to 3.0.
18505    case $host_os in
18506      aix4 | aix4.[01] | aix4.[01].*)
18507      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18508	   echo ' yes '
18509	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18510	:
18511      else
18512	can_build_shared=no
18513      fi
18514      ;;
18515    esac
18516    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18517    # soname into executable. Probably we can add versioning support to
18518    # collect2, so additional links can be useful in future.
18519    if test "$aix_use_runtimelinking" = yes; then
18520      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18521      # instead of lib<name>.a to let people know that these are not
18522      # typical AIX shared libraries.
18523      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18524    else
18525      # We preserve .a as extension for shared libraries through AIX4.2
18526      # and later when we are not doing run time linking.
18527      library_names_spec='${libname}${release}.a $libname.a'
18528      soname_spec='${libname}${release}${shared_ext}$major'
18529    fi
18530    shlibpath_var=LIBPATH
18531  fi
18532  ;;
18533
18534amigaos*)
18535  library_names_spec='$libname.ixlibrary $libname.a'
18536  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18537  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'
18538  ;;
18539
18540beos*)
18541  library_names_spec='${libname}${shared_ext}'
18542  dynamic_linker="$host_os ld.so"
18543  shlibpath_var=LIBRARY_PATH
18544  ;;
18545
18546bsdi[45]*)
18547  version_type=linux
18548  need_version=no
18549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18550  soname_spec='${libname}${release}${shared_ext}$major'
18551  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18552  shlibpath_var=LD_LIBRARY_PATH
18553  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18554  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18555  # the default ld.so.conf also contains /usr/contrib/lib and
18556  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18557  # libtool to hard-code these into programs
18558  ;;
18559
18560cygwin* | mingw* | pw32*)
18561  version_type=windows
18562  shrext_cmds=".dll"
18563  need_version=no
18564  need_lib_prefix=no
18565
18566  case $GCC,$host_os in
18567  yes,cygwin* | yes,mingw* | yes,pw32*)
18568    library_names_spec='$libname.dll.a'
18569    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18570    postinstall_cmds='base_file=`basename \${file}`~
18571      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18572      dldir=$destdir/`dirname \$dlpath`~
18573      test -d \$dldir || mkdir -p \$dldir~
18574      $install_prog $dir/$dlname \$dldir/$dlname~
18575      chmod a+x \$dldir/$dlname'
18576    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18577      dlpath=$dir/\$dldll~
18578       $rm \$dlpath'
18579    shlibpath_overrides_runpath=yes
18580
18581    case $host_os in
18582    cygwin*)
18583      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18584      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18585      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18586      ;;
18587    mingw*)
18588      # MinGW DLLs use traditional 'lib' prefix
18589      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18590      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18591      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18592        # It is most probably a Windows format PATH printed by
18593        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18594        # path with ; separators, and with drive letters. We can handle the
18595        # drive letters (cygwin fileutils understands them), so leave them,
18596        # especially as we might pass files found there to a mingw objdump,
18597        # which wouldn't understand a cygwinified path. Ahh.
18598        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18599      else
18600        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18601      fi
18602      ;;
18603    pw32*)
18604      # pw32 DLLs use 'pw' prefix rather than 'lib'
18605      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18606      ;;
18607    esac
18608    ;;
18609
18610  *)
18611    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18612    ;;
18613  esac
18614  dynamic_linker='Win32 ld.exe'
18615  # FIXME: first we should search . and the directory the executable is in
18616  shlibpath_var=PATH
18617  ;;
18618
18619darwin* | rhapsody*)
18620  dynamic_linker="$host_os dyld"
18621  version_type=darwin
18622  need_lib_prefix=no
18623  need_version=no
18624  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18625  soname_spec='${libname}${release}${major}$shared_ext'
18626  shlibpath_overrides_runpath=yes
18627  shlibpath_var=DYLD_LIBRARY_PATH
18628  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18629
18630  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18631  ;;
18632
18633dgux*)
18634  version_type=linux
18635  need_lib_prefix=no
18636  need_version=no
18637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18638  soname_spec='${libname}${release}${shared_ext}$major'
18639  shlibpath_var=LD_LIBRARY_PATH
18640  ;;
18641
18642freebsd1*)
18643  dynamic_linker=no
18644  ;;
18645
18646freebsd* | dragonfly*)
18647  # DragonFly does not have aout.  When/if they implement a new
18648  # versioning mechanism, adjust this.
18649  if test -x /usr/bin/objformat; then
18650    objformat=`/usr/bin/objformat`
18651  else
18652    case $host_os in
18653    freebsd[123]*) objformat=aout ;;
18654    *) objformat=elf ;;
18655    esac
18656  fi
18657  version_type=freebsd-$objformat
18658  case $version_type in
18659    freebsd-elf*)
18660      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18661      need_version=no
18662      need_lib_prefix=no
18663      ;;
18664    freebsd-*)
18665      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18666      need_version=yes
18667      ;;
18668  esac
18669  shlibpath_var=LD_LIBRARY_PATH
18670  case $host_os in
18671  freebsd2*)
18672    shlibpath_overrides_runpath=yes
18673    ;;
18674  freebsd3.[01]* | freebsdelf3.[01]*)
18675    shlibpath_overrides_runpath=yes
18676    hardcode_into_libs=yes
18677    ;;
18678  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18679  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18680    shlibpath_overrides_runpath=no
18681    hardcode_into_libs=yes
18682    ;;
18683  *) # from 4.6 on, and DragonFly
18684    shlibpath_overrides_runpath=yes
18685    hardcode_into_libs=yes
18686    ;;
18687  esac
18688  ;;
18689
18690gnu*)
18691  version_type=linux
18692  need_lib_prefix=no
18693  need_version=no
18694  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18695  soname_spec='${libname}${release}${shared_ext}$major'
18696  shlibpath_var=LD_LIBRARY_PATH
18697  hardcode_into_libs=yes
18698  ;;
18699
18700hpux9* | hpux10* | hpux11*)
18701  # Give a soname corresponding to the major version so that dld.sl refuses to
18702  # link against other versions.
18703  version_type=sunos
18704  need_lib_prefix=no
18705  need_version=no
18706  case $host_cpu in
18707  ia64*)
18708    shrext_cmds='.so'
18709    hardcode_into_libs=yes
18710    dynamic_linker="$host_os dld.so"
18711    shlibpath_var=LD_LIBRARY_PATH
18712    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18713    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18714    soname_spec='${libname}${release}${shared_ext}$major'
18715    if test "X$HPUX_IA64_MODE" = X32; then
18716      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18717    else
18718      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18719    fi
18720    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18721    ;;
18722   hppa*64*)
18723     shrext_cmds='.sl'
18724     hardcode_into_libs=yes
18725     dynamic_linker="$host_os dld.sl"
18726     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18727     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18728     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18729     soname_spec='${libname}${release}${shared_ext}$major'
18730     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18731     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18732     ;;
18733   *)
18734    shrext_cmds='.sl'
18735    dynamic_linker="$host_os dld.sl"
18736    shlibpath_var=SHLIB_PATH
18737    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18738    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18739    soname_spec='${libname}${release}${shared_ext}$major'
18740    ;;
18741  esac
18742  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18743  postinstall_cmds='chmod 555 $lib'
18744  ;;
18745
18746interix[3-9]*)
18747  version_type=linux
18748  need_lib_prefix=no
18749  need_version=no
18750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18751  soname_spec='${libname}${release}${shared_ext}$major'
18752  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18753  shlibpath_var=LD_LIBRARY_PATH
18754  shlibpath_overrides_runpath=no
18755  hardcode_into_libs=yes
18756  ;;
18757
18758irix5* | irix6* | nonstopux*)
18759  case $host_os in
18760    nonstopux*) version_type=nonstopux ;;
18761    *)
18762	if test "$lt_cv_prog_gnu_ld" = yes; then
18763		version_type=linux
18764	else
18765		version_type=irix
18766	fi ;;
18767  esac
18768  need_lib_prefix=no
18769  need_version=no
18770  soname_spec='${libname}${release}${shared_ext}$major'
18771  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18772  case $host_os in
18773  irix5* | nonstopux*)
18774    libsuff= shlibsuff=
18775    ;;
18776  *)
18777    case $LD in # libtool.m4 will add one of these switches to LD
18778    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18779      libsuff= shlibsuff= libmagic=32-bit;;
18780    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18781      libsuff=32 shlibsuff=N32 libmagic=N32;;
18782    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18783      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18784    *) libsuff= shlibsuff= libmagic=never-match;;
18785    esac
18786    ;;
18787  esac
18788  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18789  shlibpath_overrides_runpath=no
18790  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18791  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18792  hardcode_into_libs=yes
18793  ;;
18794
18795# No shared lib support for Linux oldld, aout, or coff.
18796linux*oldld* | linux*aout* | linux*coff*)
18797  dynamic_linker=no
18798  ;;
18799
18800# This must be Linux ELF.
18801linux* | k*bsd*-gnu)
18802  version_type=linux
18803  need_lib_prefix=no
18804  need_version=no
18805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18806  soname_spec='${libname}${release}${shared_ext}$major'
18807  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18808  shlibpath_var=LD_LIBRARY_PATH
18809  shlibpath_overrides_runpath=no
18810  # This implies no fast_install, which is unacceptable.
18811  # Some rework will be needed to allow for fast_install
18812  # before this can be enabled.
18813  hardcode_into_libs=yes
18814
18815  # find out which ABI we are using
18816  libsuff=
18817  case "$host_cpu" in
18818  x86_64*|s390x*|powerpc64*)
18819    echo '#line 18819 "configure"' > conftest.$ac_ext
18820    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18821  (eval $ac_compile) 2>&5
18822  ac_status=$?
18823  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824  (exit $ac_status); }; then
18825      case `/usr/bin/file conftest.$ac_objext` in
18826      *64-bit*)
18827        libsuff=64
18828        ;;
18829      esac
18830    fi
18831    rm -rf conftest*
18832    ;;
18833  esac
18834
18835  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
18836
18837  # Append ld.so.conf contents to the search path
18838  if test -f /etc/ld.so.conf; then
18839    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' ' '`
18840    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18841  fi
18842
18843  # We used to test for /lib/ld.so.1 and disable shared libraries on
18844  # powerpc, because MkLinux only supported shared libraries with the
18845  # GNU dynamic linker.  Since this was broken with cross compilers,
18846  # most powerpc-linux boxes support dynamic linking these days and
18847  # people can always --disable-shared, the test was removed, and we
18848  # assume the GNU/Linux dynamic linker is in use.
18849  dynamic_linker='GNU/Linux ld.so'
18850  ;;
18851
18852netbsd*)
18853  version_type=sunos
18854  need_lib_prefix=no
18855  need_version=no
18856  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18857    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18858    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18859    dynamic_linker='NetBSD (a.out) ld.so'
18860  else
18861    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18862    soname_spec='${libname}${release}${shared_ext}$major'
18863    dynamic_linker='NetBSD ld.elf_so'
18864  fi
18865  shlibpath_var=LD_LIBRARY_PATH
18866  shlibpath_overrides_runpath=yes
18867  hardcode_into_libs=yes
18868  ;;
18869
18870newsos6)
18871  version_type=linux
18872  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18873  shlibpath_var=LD_LIBRARY_PATH
18874  shlibpath_overrides_runpath=yes
18875  ;;
18876
18877nto-qnx*)
18878  version_type=linux
18879  need_lib_prefix=no
18880  need_version=no
18881  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18882  soname_spec='${libname}${release}${shared_ext}$major'
18883  shlibpath_var=LD_LIBRARY_PATH
18884  shlibpath_overrides_runpath=yes
18885  ;;
18886
18887openbsd*)
18888  version_type=sunos
18889  sys_lib_dlsearch_path_spec="/usr/lib"
18890  need_lib_prefix=no
18891  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18892  case $host_os in
18893    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18894    *)                         need_version=no  ;;
18895  esac
18896  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18897  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18898  shlibpath_var=LD_LIBRARY_PATH
18899  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18900    case $host_os in
18901      openbsd2.[89] | openbsd2.[89].*)
18902	shlibpath_overrides_runpath=no
18903	;;
18904      *)
18905	shlibpath_overrides_runpath=yes
18906	;;
18907      esac
18908  else
18909    shlibpath_overrides_runpath=yes
18910  fi
18911  ;;
18912
18913os2*)
18914  libname_spec='$name'
18915  shrext_cmds=".dll"
18916  need_lib_prefix=no
18917  library_names_spec='$libname${shared_ext} $libname.a'
18918  dynamic_linker='OS/2 ld.exe'
18919  shlibpath_var=LIBPATH
18920  ;;
18921
18922osf3* | osf4* | osf5*)
18923  version_type=osf
18924  need_lib_prefix=no
18925  need_version=no
18926  soname_spec='${libname}${release}${shared_ext}$major'
18927  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18928  shlibpath_var=LD_LIBRARY_PATH
18929  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18930  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18931  ;;
18932
18933rdos*)
18934  dynamic_linker=no
18935  ;;
18936
18937solaris*)
18938  version_type=linux
18939  need_lib_prefix=no
18940  need_version=no
18941  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18942  soname_spec='${libname}${release}${shared_ext}$major'
18943  shlibpath_var=LD_LIBRARY_PATH
18944  shlibpath_overrides_runpath=yes
18945  hardcode_into_libs=yes
18946  # ldd complains unless libraries are executable
18947  postinstall_cmds='chmod +x $lib'
18948  ;;
18949
18950sunos4*)
18951  version_type=sunos
18952  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18953  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18954  shlibpath_var=LD_LIBRARY_PATH
18955  shlibpath_overrides_runpath=yes
18956  if test "$with_gnu_ld" = yes; then
18957    need_lib_prefix=no
18958  fi
18959  need_version=yes
18960  ;;
18961
18962sysv4 | sysv4.3*)
18963  version_type=linux
18964  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18965  soname_spec='${libname}${release}${shared_ext}$major'
18966  shlibpath_var=LD_LIBRARY_PATH
18967  case $host_vendor in
18968    sni)
18969      shlibpath_overrides_runpath=no
18970      need_lib_prefix=no
18971      export_dynamic_flag_spec='${wl}-Blargedynsym'
18972      runpath_var=LD_RUN_PATH
18973      ;;
18974    siemens)
18975      need_lib_prefix=no
18976      ;;
18977    motorola)
18978      need_lib_prefix=no
18979      need_version=no
18980      shlibpath_overrides_runpath=no
18981      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18982      ;;
18983  esac
18984  ;;
18985
18986sysv4*MP*)
18987  if test -d /usr/nec ;then
18988    version_type=linux
18989    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18990    soname_spec='$libname${shared_ext}.$major'
18991    shlibpath_var=LD_LIBRARY_PATH
18992  fi
18993  ;;
18994
18995sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18996  version_type=freebsd-elf
18997  need_lib_prefix=no
18998  need_version=no
18999  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19000  soname_spec='${libname}${release}${shared_ext}$major'
19001  shlibpath_var=LD_LIBRARY_PATH
19002  hardcode_into_libs=yes
19003  if test "$with_gnu_ld" = yes; then
19004    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19005    shlibpath_overrides_runpath=no
19006  else
19007    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19008    shlibpath_overrides_runpath=yes
19009    case $host_os in
19010      sco3.2v5*)
19011        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19012	;;
19013    esac
19014  fi
19015  sys_lib_dlsearch_path_spec='/usr/lib'
19016  ;;
19017
19018uts4*)
19019  version_type=linux
19020  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19021  soname_spec='${libname}${release}${shared_ext}$major'
19022  shlibpath_var=LD_LIBRARY_PATH
19023  ;;
19024
19025*)
19026  dynamic_linker=no
19027  ;;
19028esac
19029{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19030$as_echo "$dynamic_linker" >&6; }
19031test "$dynamic_linker" = no && can_build_shared=no
19032
19033if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19034  $as_echo_n "(cached) " >&6
19035else
19036  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19037fi
19038
19039sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19040if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19041  $as_echo_n "(cached) " >&6
19042else
19043  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19044fi
19045
19046sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19047
19048variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19049if test "$GCC" = yes; then
19050  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19051fi
19052
19053{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19054$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19055hardcode_action_GCJ=
19056if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19057   test -n "$runpath_var_GCJ" || \
19058   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19059
19060  # We can hardcode non-existant directories.
19061  if test "$hardcode_direct_GCJ" != no &&
19062     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19063     # have to relink, otherwise we might link with an installed library
19064     # when we should be linking with a yet-to-be-installed one
19065     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19066     test "$hardcode_minus_L_GCJ" != no; then
19067    # Linking always hardcodes the temporary library directory.
19068    hardcode_action_GCJ=relink
19069  else
19070    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19071    hardcode_action_GCJ=immediate
19072  fi
19073else
19074  # We cannot hardcode anything, or else we can only hardcode existing
19075  # directories.
19076  hardcode_action_GCJ=unsupported
19077fi
19078{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19079$as_echo "$hardcode_action_GCJ" >&6; }
19080
19081if test "$hardcode_action_GCJ" = relink; then
19082  # Fast installation is not supported
19083  enable_fast_install=no
19084elif test "$shlibpath_overrides_runpath" = yes ||
19085     test "$enable_shared" = no; then
19086  # Fast installation is not necessary
19087  enable_fast_install=needless
19088fi
19089
19090
19091# The else clause should only fire when bootstrapping the
19092# libtool distribution, otherwise you forgot to ship ltmain.sh
19093# with your package, and you will get complaints that there are
19094# no rules to generate ltmain.sh.
19095if test -f "$ltmain"; then
19096  # See if we are running on zsh, and set the options which allow our commands through
19097  # without removal of \ escapes.
19098  if test -n "${ZSH_VERSION+set}" ; then
19099    setopt NO_GLOB_SUBST
19100  fi
19101  # Now quote all the things that may contain metacharacters while being
19102  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19103  # variables and quote the copies for generation of the libtool script.
19104  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19105    SED SHELL STRIP \
19106    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19107    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19108    deplibs_check_method reload_flag reload_cmds need_locks \
19109    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19110    lt_cv_sys_global_symbol_to_c_name_address \
19111    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19112    old_postinstall_cmds old_postuninstall_cmds \
19113    compiler_GCJ \
19114    CC_GCJ \
19115    LD_GCJ \
19116    lt_prog_compiler_wl_GCJ \
19117    lt_prog_compiler_pic_GCJ \
19118    lt_prog_compiler_static_GCJ \
19119    lt_prog_compiler_no_builtin_flag_GCJ \
19120    export_dynamic_flag_spec_GCJ \
19121    thread_safe_flag_spec_GCJ \
19122    whole_archive_flag_spec_GCJ \
19123    enable_shared_with_static_runtimes_GCJ \
19124    old_archive_cmds_GCJ \
19125    old_archive_from_new_cmds_GCJ \
19126    predep_objects_GCJ \
19127    postdep_objects_GCJ \
19128    predeps_GCJ \
19129    postdeps_GCJ \
19130    compiler_lib_search_path_GCJ \
19131    compiler_lib_search_dirs_GCJ \
19132    archive_cmds_GCJ \
19133    archive_expsym_cmds_GCJ \
19134    postinstall_cmds_GCJ \
19135    postuninstall_cmds_GCJ \
19136    old_archive_from_expsyms_cmds_GCJ \
19137    allow_undefined_flag_GCJ \
19138    no_undefined_flag_GCJ \
19139    export_symbols_cmds_GCJ \
19140    hardcode_libdir_flag_spec_GCJ \
19141    hardcode_libdir_flag_spec_ld_GCJ \
19142    hardcode_libdir_separator_GCJ \
19143    hardcode_automatic_GCJ \
19144    module_cmds_GCJ \
19145    module_expsym_cmds_GCJ \
19146    lt_cv_prog_compiler_c_o_GCJ \
19147    fix_srcfile_path_GCJ \
19148    exclude_expsyms_GCJ \
19149    include_expsyms_GCJ; do
19150
19151    case $var in
19152    old_archive_cmds_GCJ | \
19153    old_archive_from_new_cmds_GCJ | \
19154    archive_cmds_GCJ | \
19155    archive_expsym_cmds_GCJ | \
19156    module_cmds_GCJ | \
19157    module_expsym_cmds_GCJ | \
19158    old_archive_from_expsyms_cmds_GCJ | \
19159    export_symbols_cmds_GCJ | \
19160    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19161    postinstall_cmds | postuninstall_cmds | \
19162    old_postinstall_cmds | old_postuninstall_cmds | \
19163    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19164      # Double-quote double-evaled strings.
19165      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19166      ;;
19167    *)
19168      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19169      ;;
19170    esac
19171  done
19172
19173  case $lt_echo in
19174  *'\$0 --fallback-echo"')
19175    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19176    ;;
19177  esac
19178
19179cfgfile="$ofile"
19180
19181  cat <<__EOF__ >> "$cfgfile"
19182# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19183
19184# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19185
19186# Shell to use when invoking shell scripts.
19187SHELL=$lt_SHELL
19188
19189# Whether or not to build shared libraries.
19190build_libtool_libs=$enable_shared
19191
19192# Whether or not to build static libraries.
19193build_old_libs=$enable_static
19194
19195# Whether or not to add -lc for building shared libraries.
19196build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19197
19198# Whether or not to disallow shared libs when runtime libs are static
19199allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19200
19201# Whether or not to optimize for fast installation.
19202fast_install=$enable_fast_install
19203
19204# The host system.
19205host_alias=$host_alias
19206host=$host
19207host_os=$host_os
19208
19209# The build system.
19210build_alias=$build_alias
19211build=$build
19212build_os=$build_os
19213
19214# An echo program that does not interpret backslashes.
19215echo=$lt_echo
19216
19217# The archiver.
19218AR=$lt_AR
19219AR_FLAGS=$lt_AR_FLAGS
19220
19221# A C compiler.
19222LTCC=$lt_LTCC
19223
19224# LTCC compiler flags.
19225LTCFLAGS=$lt_LTCFLAGS
19226
19227# A language-specific compiler.
19228CC=$lt_compiler_GCJ
19229
19230# Is the compiler the GNU C compiler?
19231with_gcc=$GCC_GCJ
19232
19233# An ERE matcher.
19234EGREP=$lt_EGREP
19235
19236# The linker used to build libraries.
19237LD=$lt_LD_GCJ
19238
19239# Whether we need hard or soft links.
19240LN_S=$lt_LN_S
19241
19242# A BSD-compatible nm program.
19243NM=$lt_NM
19244
19245# A symbol stripping program
19246STRIP=$lt_STRIP
19247
19248# Used to examine libraries when file_magic_cmd begins "file"
19249MAGIC_CMD=$MAGIC_CMD
19250
19251# Used on cygwin: DLL creation program.
19252DLLTOOL="$DLLTOOL"
19253
19254# Used on cygwin: object dumper.
19255OBJDUMP="$OBJDUMP"
19256
19257# Used on cygwin: assembler.
19258AS="$AS"
19259
19260# The name of the directory that contains temporary libtool files.
19261objdir=$objdir
19262
19263# How to create reloadable object files.
19264reload_flag=$lt_reload_flag
19265reload_cmds=$lt_reload_cmds
19266
19267# How to pass a linker flag through the compiler.
19268wl=$lt_lt_prog_compiler_wl_GCJ
19269
19270# Object file suffix (normally "o").
19271objext="$ac_objext"
19272
19273# Old archive suffix (normally "a").
19274libext="$libext"
19275
19276# Shared library suffix (normally ".so").
19277shrext_cmds='$shrext_cmds'
19278
19279# Executable file suffix (normally "").
19280exeext="$exeext"
19281
19282# Additional compiler flags for building library objects.
19283pic_flag=$lt_lt_prog_compiler_pic_GCJ
19284pic_mode=$pic_mode
19285
19286# What is the maximum length of a command?
19287max_cmd_len=$lt_cv_sys_max_cmd_len
19288
19289# Does compiler simultaneously support -c and -o options?
19290compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19291
19292# Must we lock files when doing compilation?
19293need_locks=$lt_need_locks
19294
19295# Do we need the lib prefix for modules?
19296need_lib_prefix=$need_lib_prefix
19297
19298# Do we need a version for libraries?
19299need_version=$need_version
19300
19301# Whether dlopen is supported.
19302dlopen_support=$enable_dlopen
19303
19304# Whether dlopen of programs is supported.
19305dlopen_self=$enable_dlopen_self
19306
19307# Whether dlopen of statically linked programs is supported.
19308dlopen_self_static=$enable_dlopen_self_static
19309
19310# Compiler flag to prevent dynamic linking.
19311link_static_flag=$lt_lt_prog_compiler_static_GCJ
19312
19313# Compiler flag to turn off builtin functions.
19314no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19315
19316# Compiler flag to allow reflexive dlopens.
19317export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19318
19319# Compiler flag to generate shared objects directly from archives.
19320whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19321
19322# Compiler flag to generate thread-safe objects.
19323thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19324
19325# Library versioning type.
19326version_type=$version_type
19327
19328# Format of library name prefix.
19329libname_spec=$lt_libname_spec
19330
19331# List of archive names.  First name is the real one, the rest are links.
19332# The last name is the one that the linker finds with -lNAME.
19333library_names_spec=$lt_library_names_spec
19334
19335# The coded name of the library, if different from the real name.
19336soname_spec=$lt_soname_spec
19337
19338# Commands used to build and install an old-style archive.
19339RANLIB=$lt_RANLIB
19340old_archive_cmds=$lt_old_archive_cmds_GCJ
19341old_postinstall_cmds=$lt_old_postinstall_cmds
19342old_postuninstall_cmds=$lt_old_postuninstall_cmds
19343
19344# Create an old-style archive from a shared archive.
19345old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19346
19347# Create a temporary old-style archive to link instead of a shared archive.
19348old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19349
19350# Commands used to build and install a shared archive.
19351archive_cmds=$lt_archive_cmds_GCJ
19352archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19353postinstall_cmds=$lt_postinstall_cmds
19354postuninstall_cmds=$lt_postuninstall_cmds
19355
19356# Commands used to build a loadable module (assumed same as above if empty)
19357module_cmds=$lt_module_cmds_GCJ
19358module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19359
19360# Commands to strip libraries.
19361old_striplib=$lt_old_striplib
19362striplib=$lt_striplib
19363
19364# Dependencies to place before the objects being linked to create a
19365# shared library.
19366predep_objects=$lt_predep_objects_GCJ
19367
19368# Dependencies to place after the objects being linked to create a
19369# shared library.
19370postdep_objects=$lt_postdep_objects_GCJ
19371
19372# Dependencies to place before the objects being linked to create a
19373# shared library.
19374predeps=$lt_predeps_GCJ
19375
19376# Dependencies to place after the objects being linked to create a
19377# shared library.
19378postdeps=$lt_postdeps_GCJ
19379
19380# The directories searched by this compiler when creating a shared
19381# library
19382compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19383
19384# The library search path used internally by the compiler when linking
19385# a shared library.
19386compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19387
19388# Method to check whether dependent libraries are shared objects.
19389deplibs_check_method=$lt_deplibs_check_method
19390
19391# Command to use when deplibs_check_method == file_magic.
19392file_magic_cmd=$lt_file_magic_cmd
19393
19394# Flag that allows shared libraries with undefined symbols to be built.
19395allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19396
19397# Flag that forces no undefined symbols.
19398no_undefined_flag=$lt_no_undefined_flag_GCJ
19399
19400# Commands used to finish a libtool library installation in a directory.
19401finish_cmds=$lt_finish_cmds
19402
19403# Same as above, but a single script fragment to be evaled but not shown.
19404finish_eval=$lt_finish_eval
19405
19406# Take the output of nm and produce a listing of raw symbols and C names.
19407global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19408
19409# Transform the output of nm in a proper C declaration
19410global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19411
19412# Transform the output of nm in a C name address pair
19413global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19414
19415# This is the shared library runtime path variable.
19416runpath_var=$runpath_var
19417
19418# This is the shared library path variable.
19419shlibpath_var=$shlibpath_var
19420
19421# Is shlibpath searched before the hard-coded library search path?
19422shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19423
19424# How to hardcode a shared library path into an executable.
19425hardcode_action=$hardcode_action_GCJ
19426
19427# Whether we should hardcode library paths into libraries.
19428hardcode_into_libs=$hardcode_into_libs
19429
19430# Flag to hardcode \$libdir into a binary during linking.
19431# This must work even if \$libdir does not exist.
19432hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19433
19434# If ld is used when linking, flag to hardcode \$libdir into
19435# a binary during linking. This must work even if \$libdir does
19436# not exist.
19437hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19438
19439# Whether we need a single -rpath flag with a separated argument.
19440hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19441
19442# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19443# resulting binary.
19444hardcode_direct=$hardcode_direct_GCJ
19445
19446# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19447# resulting binary.
19448hardcode_minus_L=$hardcode_minus_L_GCJ
19449
19450# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19451# the resulting binary.
19452hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19453
19454# Set to yes if building a shared library automatically hardcodes DIR into the library
19455# and all subsequent libraries and executables linked against it.
19456hardcode_automatic=$hardcode_automatic_GCJ
19457
19458# Variables whose values should be saved in libtool wrapper scripts and
19459# restored at relink time.
19460variables_saved_for_relink="$variables_saved_for_relink"
19461
19462# Whether libtool must link a program against all its dependency libraries.
19463link_all_deplibs=$link_all_deplibs_GCJ
19464
19465# Compile-time system search path for libraries
19466sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19467
19468# Run-time system search path for libraries
19469sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19470
19471# Fix the shell variable \$srcfile for the compiler.
19472fix_srcfile_path=$lt_fix_srcfile_path
19473
19474# Set to yes if exported symbols are required.
19475always_export_symbols=$always_export_symbols_GCJ
19476
19477# The commands to list exported symbols.
19478export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19479
19480# The commands to extract the exported symbol list from a shared archive.
19481extract_expsyms_cmds=$lt_extract_expsyms_cmds
19482
19483# Symbols that should not be listed in the preloaded symbols.
19484exclude_expsyms=$lt_exclude_expsyms_GCJ
19485
19486# Symbols that must always be exported.
19487include_expsyms=$lt_include_expsyms_GCJ
19488
19489# ### END LIBTOOL TAG CONFIG: $tagname
19490
19491__EOF__
19492
19493
19494else
19495  # If there is no Makefile yet, we rely on a make rule to execute
19496  # `config.status --recheck' to rerun these tests and create the
19497  # libtool script then.
19498  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19499  if test -f "$ltmain_in"; then
19500    test -f Makefile && make "$ltmain"
19501  fi
19502fi
19503
19504
19505ac_ext=c
19506ac_cpp='$CPP $CPPFLAGS'
19507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19509ac_compiler_gnu=$ac_cv_c_compiler_gnu
19510
19511CC="$lt_save_CC"
19512
19513	else
19514	  tagname=""
19515	fi
19516	;;
19517
19518      RC)
19519
19520
19521# Source file extension for RC test sources.
19522ac_ext=rc
19523
19524# Object file extension for compiled RC test sources.
19525objext=o
19526objext_RC=$objext
19527
19528# Code to be used in simple compile tests
19529lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19530
19531# Code to be used in simple link tests
19532lt_simple_link_test_code="$lt_simple_compile_test_code"
19533
19534# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19535
19536# If no C compiler was specified, use CC.
19537LTCC=${LTCC-"$CC"}
19538
19539# If no C compiler flags were specified, use CFLAGS.
19540LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19541
19542# Allow CC to be a program name with arguments.
19543compiler=$CC
19544
19545
19546# save warnings/boilerplate of simple test code
19547ac_outfile=conftest.$ac_objext
19548echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19549eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19550_lt_compiler_boilerplate=`cat conftest.err`
19551$rm conftest*
19552
19553ac_outfile=conftest.$ac_objext
19554echo "$lt_simple_link_test_code" >conftest.$ac_ext
19555eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19556_lt_linker_boilerplate=`cat conftest.err`
19557$rm -r conftest*
19558
19559
19560# Allow CC to be a program name with arguments.
19561lt_save_CC="$CC"
19562CC=${RC-"windres"}
19563compiler=$CC
19564compiler_RC=$CC
19565for cc_temp in $compiler""; do
19566  case $cc_temp in
19567    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19568    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19569    \-*) ;;
19570    *) break;;
19571  esac
19572done
19573cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19574
19575lt_cv_prog_compiler_c_o_RC=yes
19576
19577# The else clause should only fire when bootstrapping the
19578# libtool distribution, otherwise you forgot to ship ltmain.sh
19579# with your package, and you will get complaints that there are
19580# no rules to generate ltmain.sh.
19581if test -f "$ltmain"; then
19582  # See if we are running on zsh, and set the options which allow our commands through
19583  # without removal of \ escapes.
19584  if test -n "${ZSH_VERSION+set}" ; then
19585    setopt NO_GLOB_SUBST
19586  fi
19587  # Now quote all the things that may contain metacharacters while being
19588  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19589  # variables and quote the copies for generation of the libtool script.
19590  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19591    SED SHELL STRIP \
19592    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19593    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19594    deplibs_check_method reload_flag reload_cmds need_locks \
19595    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19596    lt_cv_sys_global_symbol_to_c_name_address \
19597    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19598    old_postinstall_cmds old_postuninstall_cmds \
19599    compiler_RC \
19600    CC_RC \
19601    LD_RC \
19602    lt_prog_compiler_wl_RC \
19603    lt_prog_compiler_pic_RC \
19604    lt_prog_compiler_static_RC \
19605    lt_prog_compiler_no_builtin_flag_RC \
19606    export_dynamic_flag_spec_RC \
19607    thread_safe_flag_spec_RC \
19608    whole_archive_flag_spec_RC \
19609    enable_shared_with_static_runtimes_RC \
19610    old_archive_cmds_RC \
19611    old_archive_from_new_cmds_RC \
19612    predep_objects_RC \
19613    postdep_objects_RC \
19614    predeps_RC \
19615    postdeps_RC \
19616    compiler_lib_search_path_RC \
19617    compiler_lib_search_dirs_RC \
19618    archive_cmds_RC \
19619    archive_expsym_cmds_RC \
19620    postinstall_cmds_RC \
19621    postuninstall_cmds_RC \
19622    old_archive_from_expsyms_cmds_RC \
19623    allow_undefined_flag_RC \
19624    no_undefined_flag_RC \
19625    export_symbols_cmds_RC \
19626    hardcode_libdir_flag_spec_RC \
19627    hardcode_libdir_flag_spec_ld_RC \
19628    hardcode_libdir_separator_RC \
19629    hardcode_automatic_RC \
19630    module_cmds_RC \
19631    module_expsym_cmds_RC \
19632    lt_cv_prog_compiler_c_o_RC \
19633    fix_srcfile_path_RC \
19634    exclude_expsyms_RC \
19635    include_expsyms_RC; do
19636
19637    case $var in
19638    old_archive_cmds_RC | \
19639    old_archive_from_new_cmds_RC | \
19640    archive_cmds_RC | \
19641    archive_expsym_cmds_RC | \
19642    module_cmds_RC | \
19643    module_expsym_cmds_RC | \
19644    old_archive_from_expsyms_cmds_RC | \
19645    export_symbols_cmds_RC | \
19646    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19647    postinstall_cmds | postuninstall_cmds | \
19648    old_postinstall_cmds | old_postuninstall_cmds | \
19649    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19650      # Double-quote double-evaled strings.
19651      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19652      ;;
19653    *)
19654      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19655      ;;
19656    esac
19657  done
19658
19659  case $lt_echo in
19660  *'\$0 --fallback-echo"')
19661    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19662    ;;
19663  esac
19664
19665cfgfile="$ofile"
19666
19667  cat <<__EOF__ >> "$cfgfile"
19668# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19669
19670# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19671
19672# Shell to use when invoking shell scripts.
19673SHELL=$lt_SHELL
19674
19675# Whether or not to build shared libraries.
19676build_libtool_libs=$enable_shared
19677
19678# Whether or not to build static libraries.
19679build_old_libs=$enable_static
19680
19681# Whether or not to add -lc for building shared libraries.
19682build_libtool_need_lc=$archive_cmds_need_lc_RC
19683
19684# Whether or not to disallow shared libs when runtime libs are static
19685allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19686
19687# Whether or not to optimize for fast installation.
19688fast_install=$enable_fast_install
19689
19690# The host system.
19691host_alias=$host_alias
19692host=$host
19693host_os=$host_os
19694
19695# The build system.
19696build_alias=$build_alias
19697build=$build
19698build_os=$build_os
19699
19700# An echo program that does not interpret backslashes.
19701echo=$lt_echo
19702
19703# The archiver.
19704AR=$lt_AR
19705AR_FLAGS=$lt_AR_FLAGS
19706
19707# A C compiler.
19708LTCC=$lt_LTCC
19709
19710# LTCC compiler flags.
19711LTCFLAGS=$lt_LTCFLAGS
19712
19713# A language-specific compiler.
19714CC=$lt_compiler_RC
19715
19716# Is the compiler the GNU C compiler?
19717with_gcc=$GCC_RC
19718
19719# An ERE matcher.
19720EGREP=$lt_EGREP
19721
19722# The linker used to build libraries.
19723LD=$lt_LD_RC
19724
19725# Whether we need hard or soft links.
19726LN_S=$lt_LN_S
19727
19728# A BSD-compatible nm program.
19729NM=$lt_NM
19730
19731# A symbol stripping program
19732STRIP=$lt_STRIP
19733
19734# Used to examine libraries when file_magic_cmd begins "file"
19735MAGIC_CMD=$MAGIC_CMD
19736
19737# Used on cygwin: DLL creation program.
19738DLLTOOL="$DLLTOOL"
19739
19740# Used on cygwin: object dumper.
19741OBJDUMP="$OBJDUMP"
19742
19743# Used on cygwin: assembler.
19744AS="$AS"
19745
19746# The name of the directory that contains temporary libtool files.
19747objdir=$objdir
19748
19749# How to create reloadable object files.
19750reload_flag=$lt_reload_flag
19751reload_cmds=$lt_reload_cmds
19752
19753# How to pass a linker flag through the compiler.
19754wl=$lt_lt_prog_compiler_wl_RC
19755
19756# Object file suffix (normally "o").
19757objext="$ac_objext"
19758
19759# Old archive suffix (normally "a").
19760libext="$libext"
19761
19762# Shared library suffix (normally ".so").
19763shrext_cmds='$shrext_cmds'
19764
19765# Executable file suffix (normally "").
19766exeext="$exeext"
19767
19768# Additional compiler flags for building library objects.
19769pic_flag=$lt_lt_prog_compiler_pic_RC
19770pic_mode=$pic_mode
19771
19772# What is the maximum length of a command?
19773max_cmd_len=$lt_cv_sys_max_cmd_len
19774
19775# Does compiler simultaneously support -c and -o options?
19776compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19777
19778# Must we lock files when doing compilation?
19779need_locks=$lt_need_locks
19780
19781# Do we need the lib prefix for modules?
19782need_lib_prefix=$need_lib_prefix
19783
19784# Do we need a version for libraries?
19785need_version=$need_version
19786
19787# Whether dlopen is supported.
19788dlopen_support=$enable_dlopen
19789
19790# Whether dlopen of programs is supported.
19791dlopen_self=$enable_dlopen_self
19792
19793# Whether dlopen of statically linked programs is supported.
19794dlopen_self_static=$enable_dlopen_self_static
19795
19796# Compiler flag to prevent dynamic linking.
19797link_static_flag=$lt_lt_prog_compiler_static_RC
19798
19799# Compiler flag to turn off builtin functions.
19800no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19801
19802# Compiler flag to allow reflexive dlopens.
19803export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19804
19805# Compiler flag to generate shared objects directly from archives.
19806whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19807
19808# Compiler flag to generate thread-safe objects.
19809thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19810
19811# Library versioning type.
19812version_type=$version_type
19813
19814# Format of library name prefix.
19815libname_spec=$lt_libname_spec
19816
19817# List of archive names.  First name is the real one, the rest are links.
19818# The last name is the one that the linker finds with -lNAME.
19819library_names_spec=$lt_library_names_spec
19820
19821# The coded name of the library, if different from the real name.
19822soname_spec=$lt_soname_spec
19823
19824# Commands used to build and install an old-style archive.
19825RANLIB=$lt_RANLIB
19826old_archive_cmds=$lt_old_archive_cmds_RC
19827old_postinstall_cmds=$lt_old_postinstall_cmds
19828old_postuninstall_cmds=$lt_old_postuninstall_cmds
19829
19830# Create an old-style archive from a shared archive.
19831old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19832
19833# Create a temporary old-style archive to link instead of a shared archive.
19834old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19835
19836# Commands used to build and install a shared archive.
19837archive_cmds=$lt_archive_cmds_RC
19838archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19839postinstall_cmds=$lt_postinstall_cmds
19840postuninstall_cmds=$lt_postuninstall_cmds
19841
19842# Commands used to build a loadable module (assumed same as above if empty)
19843module_cmds=$lt_module_cmds_RC
19844module_expsym_cmds=$lt_module_expsym_cmds_RC
19845
19846# Commands to strip libraries.
19847old_striplib=$lt_old_striplib
19848striplib=$lt_striplib
19849
19850# Dependencies to place before the objects being linked to create a
19851# shared library.
19852predep_objects=$lt_predep_objects_RC
19853
19854# Dependencies to place after the objects being linked to create a
19855# shared library.
19856postdep_objects=$lt_postdep_objects_RC
19857
19858# Dependencies to place before the objects being linked to create a
19859# shared library.
19860predeps=$lt_predeps_RC
19861
19862# Dependencies to place after the objects being linked to create a
19863# shared library.
19864postdeps=$lt_postdeps_RC
19865
19866# The directories searched by this compiler when creating a shared
19867# library
19868compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19869
19870# The library search path used internally by the compiler when linking
19871# a shared library.
19872compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19873
19874# Method to check whether dependent libraries are shared objects.
19875deplibs_check_method=$lt_deplibs_check_method
19876
19877# Command to use when deplibs_check_method == file_magic.
19878file_magic_cmd=$lt_file_magic_cmd
19879
19880# Flag that allows shared libraries with undefined symbols to be built.
19881allow_undefined_flag=$lt_allow_undefined_flag_RC
19882
19883# Flag that forces no undefined symbols.
19884no_undefined_flag=$lt_no_undefined_flag_RC
19885
19886# Commands used to finish a libtool library installation in a directory.
19887finish_cmds=$lt_finish_cmds
19888
19889# Same as above, but a single script fragment to be evaled but not shown.
19890finish_eval=$lt_finish_eval
19891
19892# Take the output of nm and produce a listing of raw symbols and C names.
19893global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19894
19895# Transform the output of nm in a proper C declaration
19896global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19897
19898# Transform the output of nm in a C name address pair
19899global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19900
19901# This is the shared library runtime path variable.
19902runpath_var=$runpath_var
19903
19904# This is the shared library path variable.
19905shlibpath_var=$shlibpath_var
19906
19907# Is shlibpath searched before the hard-coded library search path?
19908shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19909
19910# How to hardcode a shared library path into an executable.
19911hardcode_action=$hardcode_action_RC
19912
19913# Whether we should hardcode library paths into libraries.
19914hardcode_into_libs=$hardcode_into_libs
19915
19916# Flag to hardcode \$libdir into a binary during linking.
19917# This must work even if \$libdir does not exist.
19918hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19919
19920# If ld is used when linking, flag to hardcode \$libdir into
19921# a binary during linking. This must work even if \$libdir does
19922# not exist.
19923hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19924
19925# Whether we need a single -rpath flag with a separated argument.
19926hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19927
19928# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19929# resulting binary.
19930hardcode_direct=$hardcode_direct_RC
19931
19932# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19933# resulting binary.
19934hardcode_minus_L=$hardcode_minus_L_RC
19935
19936# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19937# the resulting binary.
19938hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19939
19940# Set to yes if building a shared library automatically hardcodes DIR into the library
19941# and all subsequent libraries and executables linked against it.
19942hardcode_automatic=$hardcode_automatic_RC
19943
19944# Variables whose values should be saved in libtool wrapper scripts and
19945# restored at relink time.
19946variables_saved_for_relink="$variables_saved_for_relink"
19947
19948# Whether libtool must link a program against all its dependency libraries.
19949link_all_deplibs=$link_all_deplibs_RC
19950
19951# Compile-time system search path for libraries
19952sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19953
19954# Run-time system search path for libraries
19955sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19956
19957# Fix the shell variable \$srcfile for the compiler.
19958fix_srcfile_path=$lt_fix_srcfile_path
19959
19960# Set to yes if exported symbols are required.
19961always_export_symbols=$always_export_symbols_RC
19962
19963# The commands to list exported symbols.
19964export_symbols_cmds=$lt_export_symbols_cmds_RC
19965
19966# The commands to extract the exported symbol list from a shared archive.
19967extract_expsyms_cmds=$lt_extract_expsyms_cmds
19968
19969# Symbols that should not be listed in the preloaded symbols.
19970exclude_expsyms=$lt_exclude_expsyms_RC
19971
19972# Symbols that must always be exported.
19973include_expsyms=$lt_include_expsyms_RC
19974
19975# ### END LIBTOOL TAG CONFIG: $tagname
19976
19977__EOF__
19978
19979
19980else
19981  # If there is no Makefile yet, we rely on a make rule to execute
19982  # `config.status --recheck' to rerun these tests and create the
19983  # libtool script then.
19984  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19985  if test -f "$ltmain_in"; then
19986    test -f Makefile && make "$ltmain"
19987  fi
19988fi
19989
19990
19991ac_ext=c
19992ac_cpp='$CPP $CPPFLAGS'
19993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19995ac_compiler_gnu=$ac_cv_c_compiler_gnu
19996
19997CC="$lt_save_CC"
19998
19999	;;
20000
20001      *)
20002	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20003$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20004   { (exit 1); exit 1; }; }
20005	;;
20006      esac
20007
20008      # Append the new tag name to the list of available tags.
20009      if test -n "$tagname" ; then
20010      available_tags="$available_tags $tagname"
20011    fi
20012    fi
20013  done
20014  IFS="$lt_save_ifs"
20015
20016  # Now substitute the updated list of available tags.
20017  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20018    mv "${ofile}T" "$ofile"
20019    chmod +x "$ofile"
20020  else
20021    rm -f "${ofile}T"
20022    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20023$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20024   { (exit 1); exit 1; }; }
20025  fi
20026fi
20027
20028
20029
20030# This can be used to rebuild libtool when needed
20031LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20032
20033# Always use our own libtool.
20034LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20035
20036# Prevent multiple expansion
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057ac_ext=c
20058ac_cpp='$CPP $CPPFLAGS'
20059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20061ac_compiler_gnu=$ac_cv_c_compiler_gnu
20062if test -n "$ac_tool_prefix"; then
20063  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20064set dummy ${ac_tool_prefix}gcc; ac_word=$2
20065{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20066$as_echo_n "checking for $ac_word... " >&6; }
20067if test "${ac_cv_prog_CC+set}" = set; then
20068  $as_echo_n "(cached) " >&6
20069else
20070  if test -n "$CC"; then
20071  ac_cv_prog_CC="$CC" # Let the user override the test.
20072else
20073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20074for as_dir in $PATH
20075do
20076  IFS=$as_save_IFS
20077  test -z "$as_dir" && as_dir=.
20078  for ac_exec_ext in '' $ac_executable_extensions; do
20079  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20080    ac_cv_prog_CC="${ac_tool_prefix}gcc"
20081    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20082    break 2
20083  fi
20084done
20085done
20086IFS=$as_save_IFS
20087
20088fi
20089fi
20090CC=$ac_cv_prog_CC
20091if test -n "$CC"; then
20092  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20093$as_echo "$CC" >&6; }
20094else
20095  { $as_echo "$as_me:$LINENO: result: no" >&5
20096$as_echo "no" >&6; }
20097fi
20098
20099
20100fi
20101if test -z "$ac_cv_prog_CC"; then
20102  ac_ct_CC=$CC
20103  # Extract the first word of "gcc", so it can be a program name with args.
20104set dummy gcc; ac_word=$2
20105{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20106$as_echo_n "checking for $ac_word... " >&6; }
20107if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20108  $as_echo_n "(cached) " >&6
20109else
20110  if test -n "$ac_ct_CC"; then
20111  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20112else
20113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20114for as_dir in $PATH
20115do
20116  IFS=$as_save_IFS
20117  test -z "$as_dir" && as_dir=.
20118  for ac_exec_ext in '' $ac_executable_extensions; do
20119  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20120    ac_cv_prog_ac_ct_CC="gcc"
20121    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20122    break 2
20123  fi
20124done
20125done
20126IFS=$as_save_IFS
20127
20128fi
20129fi
20130ac_ct_CC=$ac_cv_prog_ac_ct_CC
20131if test -n "$ac_ct_CC"; then
20132  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20133$as_echo "$ac_ct_CC" >&6; }
20134else
20135  { $as_echo "$as_me:$LINENO: result: no" >&5
20136$as_echo "no" >&6; }
20137fi
20138
20139  if test "x$ac_ct_CC" = x; then
20140    CC=""
20141  else
20142    case $cross_compiling:$ac_tool_warned in
20143yes:)
20144{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20145$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20146ac_tool_warned=yes ;;
20147esac
20148    CC=$ac_ct_CC
20149  fi
20150else
20151  CC="$ac_cv_prog_CC"
20152fi
20153
20154if test -z "$CC"; then
20155          if test -n "$ac_tool_prefix"; then
20156    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20157set dummy ${ac_tool_prefix}cc; ac_word=$2
20158{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20159$as_echo_n "checking for $ac_word... " >&6; }
20160if test "${ac_cv_prog_CC+set}" = set; then
20161  $as_echo_n "(cached) " >&6
20162else
20163  if test -n "$CC"; then
20164  ac_cv_prog_CC="$CC" # Let the user override the test.
20165else
20166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20167for as_dir in $PATH
20168do
20169  IFS=$as_save_IFS
20170  test -z "$as_dir" && as_dir=.
20171  for ac_exec_ext in '' $ac_executable_extensions; do
20172  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20173    ac_cv_prog_CC="${ac_tool_prefix}cc"
20174    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20175    break 2
20176  fi
20177done
20178done
20179IFS=$as_save_IFS
20180
20181fi
20182fi
20183CC=$ac_cv_prog_CC
20184if test -n "$CC"; then
20185  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20186$as_echo "$CC" >&6; }
20187else
20188  { $as_echo "$as_me:$LINENO: result: no" >&5
20189$as_echo "no" >&6; }
20190fi
20191
20192
20193  fi
20194fi
20195if test -z "$CC"; then
20196  # Extract the first word of "cc", so it can be a program name with args.
20197set dummy cc; ac_word=$2
20198{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20199$as_echo_n "checking for $ac_word... " >&6; }
20200if test "${ac_cv_prog_CC+set}" = set; then
20201  $as_echo_n "(cached) " >&6
20202else
20203  if test -n "$CC"; then
20204  ac_cv_prog_CC="$CC" # Let the user override the test.
20205else
20206  ac_prog_rejected=no
20207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20208for as_dir in $PATH
20209do
20210  IFS=$as_save_IFS
20211  test -z "$as_dir" && as_dir=.
20212  for ac_exec_ext in '' $ac_executable_extensions; do
20213  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20214    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20215       ac_prog_rejected=yes
20216       continue
20217     fi
20218    ac_cv_prog_CC="cc"
20219    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20220    break 2
20221  fi
20222done
20223done
20224IFS=$as_save_IFS
20225
20226if test $ac_prog_rejected = yes; then
20227  # We found a bogon in the path, so make sure we never use it.
20228  set dummy $ac_cv_prog_CC
20229  shift
20230  if test $# != 0; then
20231    # We chose a different compiler from the bogus one.
20232    # However, it has the same basename, so the bogon will be chosen
20233    # first if we set CC to just the basename; use the full file name.
20234    shift
20235    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20236  fi
20237fi
20238fi
20239fi
20240CC=$ac_cv_prog_CC
20241if test -n "$CC"; then
20242  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20243$as_echo "$CC" >&6; }
20244else
20245  { $as_echo "$as_me:$LINENO: result: no" >&5
20246$as_echo "no" >&6; }
20247fi
20248
20249
20250fi
20251if test -z "$CC"; then
20252  if test -n "$ac_tool_prefix"; then
20253  for ac_prog in cl.exe
20254  do
20255    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20256set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20257{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20258$as_echo_n "checking for $ac_word... " >&6; }
20259if test "${ac_cv_prog_CC+set}" = set; then
20260  $as_echo_n "(cached) " >&6
20261else
20262  if test -n "$CC"; then
20263  ac_cv_prog_CC="$CC" # Let the user override the test.
20264else
20265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20266for as_dir in $PATH
20267do
20268  IFS=$as_save_IFS
20269  test -z "$as_dir" && as_dir=.
20270  for ac_exec_ext in '' $ac_executable_extensions; do
20271  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20272    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20273    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20274    break 2
20275  fi
20276done
20277done
20278IFS=$as_save_IFS
20279
20280fi
20281fi
20282CC=$ac_cv_prog_CC
20283if test -n "$CC"; then
20284  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20285$as_echo "$CC" >&6; }
20286else
20287  { $as_echo "$as_me:$LINENO: result: no" >&5
20288$as_echo "no" >&6; }
20289fi
20290
20291
20292    test -n "$CC" && break
20293  done
20294fi
20295if test -z "$CC"; then
20296  ac_ct_CC=$CC
20297  for ac_prog in cl.exe
20298do
20299  # Extract the first word of "$ac_prog", so it can be a program name with args.
20300set dummy $ac_prog; ac_word=$2
20301{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20302$as_echo_n "checking for $ac_word... " >&6; }
20303if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20304  $as_echo_n "(cached) " >&6
20305else
20306  if test -n "$ac_ct_CC"; then
20307  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20308else
20309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20310for as_dir in $PATH
20311do
20312  IFS=$as_save_IFS
20313  test -z "$as_dir" && as_dir=.
20314  for ac_exec_ext in '' $ac_executable_extensions; do
20315  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20316    ac_cv_prog_ac_ct_CC="$ac_prog"
20317    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20318    break 2
20319  fi
20320done
20321done
20322IFS=$as_save_IFS
20323
20324fi
20325fi
20326ac_ct_CC=$ac_cv_prog_ac_ct_CC
20327if test -n "$ac_ct_CC"; then
20328  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20329$as_echo "$ac_ct_CC" >&6; }
20330else
20331  { $as_echo "$as_me:$LINENO: result: no" >&5
20332$as_echo "no" >&6; }
20333fi
20334
20335
20336  test -n "$ac_ct_CC" && break
20337done
20338
20339  if test "x$ac_ct_CC" = x; then
20340    CC=""
20341  else
20342    case $cross_compiling:$ac_tool_warned in
20343yes:)
20344{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20346ac_tool_warned=yes ;;
20347esac
20348    CC=$ac_ct_CC
20349  fi
20350fi
20351
20352fi
20353
20354
20355test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20356$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20357{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20358See \`config.log' for more details." >&5
20359$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20360See \`config.log' for more details." >&2;}
20361   { (exit 1); exit 1; }; }; }
20362
20363# Provide some information about the compiler.
20364$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20365set X $ac_compile
20366ac_compiler=$2
20367{ (ac_try="$ac_compiler --version >&5"
20368case "(($ac_try" in
20369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20370  *) ac_try_echo=$ac_try;;
20371esac
20372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20373$as_echo "$ac_try_echo") >&5
20374  (eval "$ac_compiler --version >&5") 2>&5
20375  ac_status=$?
20376  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377  (exit $ac_status); }
20378{ (ac_try="$ac_compiler -v >&5"
20379case "(($ac_try" in
20380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20381  *) ac_try_echo=$ac_try;;
20382esac
20383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20384$as_echo "$ac_try_echo") >&5
20385  (eval "$ac_compiler -v >&5") 2>&5
20386  ac_status=$?
20387  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388  (exit $ac_status); }
20389{ (ac_try="$ac_compiler -V >&5"
20390case "(($ac_try" in
20391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392  *) ac_try_echo=$ac_try;;
20393esac
20394eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20395$as_echo "$ac_try_echo") >&5
20396  (eval "$ac_compiler -V >&5") 2>&5
20397  ac_status=$?
20398  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399  (exit $ac_status); }
20400
20401{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20402$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20403if test "${ac_cv_c_compiler_gnu+set}" = set; then
20404  $as_echo_n "(cached) " >&6
20405else
20406  cat >conftest.$ac_ext <<_ACEOF
20407/* confdefs.h.  */
20408_ACEOF
20409cat confdefs.h >>conftest.$ac_ext
20410cat >>conftest.$ac_ext <<_ACEOF
20411/* end confdefs.h.  */
20412
20413int
20414main ()
20415{
20416#ifndef __GNUC__
20417       choke me
20418#endif
20419
20420  ;
20421  return 0;
20422}
20423_ACEOF
20424rm -f conftest.$ac_objext
20425if { (ac_try="$ac_compile"
20426case "(($ac_try" in
20427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428  *) ac_try_echo=$ac_try;;
20429esac
20430eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20431$as_echo "$ac_try_echo") >&5
20432  (eval "$ac_compile") 2>conftest.er1
20433  ac_status=$?
20434  grep -v '^ *+' conftest.er1 >conftest.err
20435  rm -f conftest.er1
20436  cat conftest.err >&5
20437  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438  (exit $ac_status); } && {
20439	 test -z "$ac_c_werror_flag" ||
20440	 test ! -s conftest.err
20441       } && test -s conftest.$ac_objext; then
20442  ac_compiler_gnu=yes
20443else
20444  $as_echo "$as_me: failed program was:" >&5
20445sed 's/^/| /' conftest.$ac_ext >&5
20446
20447	ac_compiler_gnu=no
20448fi
20449
20450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20451ac_cv_c_compiler_gnu=$ac_compiler_gnu
20452
20453fi
20454{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20455$as_echo "$ac_cv_c_compiler_gnu" >&6; }
20456if test $ac_compiler_gnu = yes; then
20457  GCC=yes
20458else
20459  GCC=
20460fi
20461ac_test_CFLAGS=${CFLAGS+set}
20462ac_save_CFLAGS=$CFLAGS
20463{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20464$as_echo_n "checking whether $CC accepts -g... " >&6; }
20465if test "${ac_cv_prog_cc_g+set}" = set; then
20466  $as_echo_n "(cached) " >&6
20467else
20468  ac_save_c_werror_flag=$ac_c_werror_flag
20469   ac_c_werror_flag=yes
20470   ac_cv_prog_cc_g=no
20471   CFLAGS="-g"
20472   cat >conftest.$ac_ext <<_ACEOF
20473/* confdefs.h.  */
20474_ACEOF
20475cat confdefs.h >>conftest.$ac_ext
20476cat >>conftest.$ac_ext <<_ACEOF
20477/* end confdefs.h.  */
20478
20479int
20480main ()
20481{
20482
20483  ;
20484  return 0;
20485}
20486_ACEOF
20487rm -f conftest.$ac_objext
20488if { (ac_try="$ac_compile"
20489case "(($ac_try" in
20490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20491  *) ac_try_echo=$ac_try;;
20492esac
20493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20494$as_echo "$ac_try_echo") >&5
20495  (eval "$ac_compile") 2>conftest.er1
20496  ac_status=$?
20497  grep -v '^ *+' conftest.er1 >conftest.err
20498  rm -f conftest.er1
20499  cat conftest.err >&5
20500  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501  (exit $ac_status); } && {
20502	 test -z "$ac_c_werror_flag" ||
20503	 test ! -s conftest.err
20504       } && test -s conftest.$ac_objext; then
20505  ac_cv_prog_cc_g=yes
20506else
20507  $as_echo "$as_me: failed program was:" >&5
20508sed 's/^/| /' conftest.$ac_ext >&5
20509
20510	CFLAGS=""
20511      cat >conftest.$ac_ext <<_ACEOF
20512/* confdefs.h.  */
20513_ACEOF
20514cat confdefs.h >>conftest.$ac_ext
20515cat >>conftest.$ac_ext <<_ACEOF
20516/* end confdefs.h.  */
20517
20518int
20519main ()
20520{
20521
20522  ;
20523  return 0;
20524}
20525_ACEOF
20526rm -f conftest.$ac_objext
20527if { (ac_try="$ac_compile"
20528case "(($ac_try" in
20529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20530  *) ac_try_echo=$ac_try;;
20531esac
20532eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20533$as_echo "$ac_try_echo") >&5
20534  (eval "$ac_compile") 2>conftest.er1
20535  ac_status=$?
20536  grep -v '^ *+' conftest.er1 >conftest.err
20537  rm -f conftest.er1
20538  cat conftest.err >&5
20539  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540  (exit $ac_status); } && {
20541	 test -z "$ac_c_werror_flag" ||
20542	 test ! -s conftest.err
20543       } && test -s conftest.$ac_objext; then
20544  :
20545else
20546  $as_echo "$as_me: failed program was:" >&5
20547sed 's/^/| /' conftest.$ac_ext >&5
20548
20549	ac_c_werror_flag=$ac_save_c_werror_flag
20550	 CFLAGS="-g"
20551	 cat >conftest.$ac_ext <<_ACEOF
20552/* confdefs.h.  */
20553_ACEOF
20554cat confdefs.h >>conftest.$ac_ext
20555cat >>conftest.$ac_ext <<_ACEOF
20556/* end confdefs.h.  */
20557
20558int
20559main ()
20560{
20561
20562  ;
20563  return 0;
20564}
20565_ACEOF
20566rm -f conftest.$ac_objext
20567if { (ac_try="$ac_compile"
20568case "(($ac_try" in
20569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20570  *) ac_try_echo=$ac_try;;
20571esac
20572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20573$as_echo "$ac_try_echo") >&5
20574  (eval "$ac_compile") 2>conftest.er1
20575  ac_status=$?
20576  grep -v '^ *+' conftest.er1 >conftest.err
20577  rm -f conftest.er1
20578  cat conftest.err >&5
20579  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580  (exit $ac_status); } && {
20581	 test -z "$ac_c_werror_flag" ||
20582	 test ! -s conftest.err
20583       } && test -s conftest.$ac_objext; then
20584  ac_cv_prog_cc_g=yes
20585else
20586  $as_echo "$as_me: failed program was:" >&5
20587sed 's/^/| /' conftest.$ac_ext >&5
20588
20589
20590fi
20591
20592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20593fi
20594
20595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20596fi
20597
20598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20599   ac_c_werror_flag=$ac_save_c_werror_flag
20600fi
20601{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20602$as_echo "$ac_cv_prog_cc_g" >&6; }
20603if test "$ac_test_CFLAGS" = set; then
20604  CFLAGS=$ac_save_CFLAGS
20605elif test $ac_cv_prog_cc_g = yes; then
20606  if test "$GCC" = yes; then
20607    CFLAGS="-g -O2"
20608  else
20609    CFLAGS="-g"
20610  fi
20611else
20612  if test "$GCC" = yes; then
20613    CFLAGS="-O2"
20614  else
20615    CFLAGS=
20616  fi
20617fi
20618{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20619$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20620if test "${ac_cv_prog_cc_c89+set}" = set; then
20621  $as_echo_n "(cached) " >&6
20622else
20623  ac_cv_prog_cc_c89=no
20624ac_save_CC=$CC
20625cat >conftest.$ac_ext <<_ACEOF
20626/* confdefs.h.  */
20627_ACEOF
20628cat confdefs.h >>conftest.$ac_ext
20629cat >>conftest.$ac_ext <<_ACEOF
20630/* end confdefs.h.  */
20631#include <stdarg.h>
20632#include <stdio.h>
20633#include <sys/types.h>
20634#include <sys/stat.h>
20635/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20636struct buf { int x; };
20637FILE * (*rcsopen) (struct buf *, struct stat *, int);
20638static char *e (p, i)
20639     char **p;
20640     int i;
20641{
20642  return p[i];
20643}
20644static char *f (char * (*g) (char **, int), char **p, ...)
20645{
20646  char *s;
20647  va_list v;
20648  va_start (v,p);
20649  s = g (p, va_arg (v,int));
20650  va_end (v);
20651  return s;
20652}
20653
20654/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20655   function prototypes and stuff, but not '\xHH' hex character constants.
20656   These don't provoke an error unfortunately, instead are silently treated
20657   as 'x'.  The following induces an error, until -std is added to get
20658   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20659   array size at least.  It's necessary to write '\x00'==0 to get something
20660   that's true only with -std.  */
20661int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20662
20663/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20664   inside strings and character constants.  */
20665#define FOO(x) 'x'
20666int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20667
20668int test (int i, double x);
20669struct s1 {int (*f) (int a);};
20670struct s2 {int (*f) (double a);};
20671int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20672int argc;
20673char **argv;
20674int
20675main ()
20676{
20677return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20678  ;
20679  return 0;
20680}
20681_ACEOF
20682for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20683	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20684do
20685  CC="$ac_save_CC $ac_arg"
20686  rm -f conftest.$ac_objext
20687if { (ac_try="$ac_compile"
20688case "(($ac_try" in
20689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20690  *) ac_try_echo=$ac_try;;
20691esac
20692eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20693$as_echo "$ac_try_echo") >&5
20694  (eval "$ac_compile") 2>conftest.er1
20695  ac_status=$?
20696  grep -v '^ *+' conftest.er1 >conftest.err
20697  rm -f conftest.er1
20698  cat conftest.err >&5
20699  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700  (exit $ac_status); } && {
20701	 test -z "$ac_c_werror_flag" ||
20702	 test ! -s conftest.err
20703       } && test -s conftest.$ac_objext; then
20704  ac_cv_prog_cc_c89=$ac_arg
20705else
20706  $as_echo "$as_me: failed program was:" >&5
20707sed 's/^/| /' conftest.$ac_ext >&5
20708
20709
20710fi
20711
20712rm -f core conftest.err conftest.$ac_objext
20713  test "x$ac_cv_prog_cc_c89" != "xno" && break
20714done
20715rm -f conftest.$ac_ext
20716CC=$ac_save_CC
20717
20718fi
20719# AC_CACHE_VAL
20720case "x$ac_cv_prog_cc_c89" in
20721  x)
20722    { $as_echo "$as_me:$LINENO: result: none needed" >&5
20723$as_echo "none needed" >&6; } ;;
20724  xno)
20725    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20726$as_echo "unsupported" >&6; } ;;
20727  *)
20728    CC="$CC $ac_cv_prog_cc_c89"
20729    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20730$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20731esac
20732
20733
20734ac_ext=c
20735ac_cpp='$CPP $CPPFLAGS'
20736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20738ac_compiler_gnu=$ac_cv_c_compiler_gnu
20739
20740depcc="$CC"   am_compiler_list=
20741
20742{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20743$as_echo_n "checking dependency style of $depcc... " >&6; }
20744if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20745  $as_echo_n "(cached) " >&6
20746else
20747  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20748  # We make a subdir and do the tests there.  Otherwise we can end up
20749  # making bogus files that we don't know about and never remove.  For
20750  # instance it was reported that on HP-UX the gcc test will end up
20751  # making a dummy file named `D' -- because `-MD' means `put the output
20752  # in D'.
20753  mkdir conftest.dir
20754  # Copy depcomp to subdir because otherwise we won't find it if we're
20755  # using a relative directory.
20756  cp "$am_depcomp" conftest.dir
20757  cd conftest.dir
20758  # We will build objects and dependencies in a subdirectory because
20759  # it helps to detect inapplicable dependency modes.  For instance
20760  # both Tru64's cc and ICC support -MD to output dependencies as a
20761  # side effect of compilation, but ICC will put the dependencies in
20762  # the current directory while Tru64 will put them in the object
20763  # directory.
20764  mkdir sub
20765
20766  am_cv_CC_dependencies_compiler_type=none
20767  if test "$am_compiler_list" = ""; then
20768     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20769  fi
20770  for depmode in $am_compiler_list; do
20771    # Setup a source with many dependencies, because some compilers
20772    # like to wrap large dependency lists on column 80 (with \), and
20773    # we should not choose a depcomp mode which is confused by this.
20774    #
20775    # We need to recreate these files for each test, as the compiler may
20776    # overwrite some of them when testing with obscure command lines.
20777    # This happens at least with the AIX C compiler.
20778    : > sub/conftest.c
20779    for i in 1 2 3 4 5 6; do
20780      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20781      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20782      # Solaris 8's {/usr,}/bin/sh.
20783      touch sub/conftst$i.h
20784    done
20785    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20786
20787    case $depmode in
20788    nosideeffect)
20789      # after this tag, mechanisms are not by side-effect, so they'll
20790      # only be used when explicitly requested
20791      if test "x$enable_dependency_tracking" = xyes; then
20792	continue
20793      else
20794	break
20795      fi
20796      ;;
20797    none) break ;;
20798    esac
20799    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20800    # mode.  It turns out that the SunPro C++ compiler does not properly
20801    # handle `-M -o', and we need to detect this.
20802    if depmode=$depmode \
20803       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20804       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20805       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20806         >/dev/null 2>conftest.err &&
20807       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20808       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20809       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20810       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20811      # icc doesn't choke on unknown options, it will just issue warnings
20812      # or remarks (even with -Werror).  So we grep stderr for any message
20813      # that says an option was ignored or not supported.
20814      # When given -MP, icc 7.0 and 7.1 complain thusly:
20815      #   icc: Command line warning: ignoring option '-M'; no argument required
20816      # The diagnosis changed in icc 8.0:
20817      #   icc: Command line remark: option '-MP' not supported
20818      if (grep 'ignoring option' conftest.err ||
20819          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20820        am_cv_CC_dependencies_compiler_type=$depmode
20821        break
20822      fi
20823    fi
20824  done
20825
20826  cd ..
20827  rm -rf conftest.dir
20828else
20829  am_cv_CC_dependencies_compiler_type=none
20830fi
20831
20832fi
20833{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20834$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20835CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20836
20837 if
20838  test "x$enable_dependency_tracking" != xno \
20839  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20840  am__fastdepCC_TRUE=
20841  am__fastdepCC_FALSE='#'
20842else
20843  am__fastdepCC_TRUE='#'
20844  am__fastdepCC_FALSE=
20845fi
20846
20847
20848
20849# Checks for pkg-config packages
20850
20851
20852if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20853	if test -n "$ac_tool_prefix"; then
20854  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20855set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20856{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20857$as_echo_n "checking for $ac_word... " >&6; }
20858if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20859  $as_echo_n "(cached) " >&6
20860else
20861  case $PKG_CONFIG in
20862  [\\/]* | ?:[\\/]*)
20863  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20864  ;;
20865  *)
20866  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20867for as_dir in $PATH
20868do
20869  IFS=$as_save_IFS
20870  test -z "$as_dir" && as_dir=.
20871  for ac_exec_ext in '' $ac_executable_extensions; do
20872  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20873    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20874    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20875    break 2
20876  fi
20877done
20878done
20879IFS=$as_save_IFS
20880
20881  ;;
20882esac
20883fi
20884PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20885if test -n "$PKG_CONFIG"; then
20886  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20887$as_echo "$PKG_CONFIG" >&6; }
20888else
20889  { $as_echo "$as_me:$LINENO: result: no" >&5
20890$as_echo "no" >&6; }
20891fi
20892
20893
20894fi
20895if test -z "$ac_cv_path_PKG_CONFIG"; then
20896  ac_pt_PKG_CONFIG=$PKG_CONFIG
20897  # Extract the first word of "pkg-config", so it can be a program name with args.
20898set dummy pkg-config; ac_word=$2
20899{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20900$as_echo_n "checking for $ac_word... " >&6; }
20901if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20902  $as_echo_n "(cached) " >&6
20903else
20904  case $ac_pt_PKG_CONFIG in
20905  [\\/]* | ?:[\\/]*)
20906  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20907  ;;
20908  *)
20909  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20910for as_dir in $PATH
20911do
20912  IFS=$as_save_IFS
20913  test -z "$as_dir" && as_dir=.
20914  for ac_exec_ext in '' $ac_executable_extensions; do
20915  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20916    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20917    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20918    break 2
20919  fi
20920done
20921done
20922IFS=$as_save_IFS
20923
20924  ;;
20925esac
20926fi
20927ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20928if test -n "$ac_pt_PKG_CONFIG"; then
20929  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20930$as_echo "$ac_pt_PKG_CONFIG" >&6; }
20931else
20932  { $as_echo "$as_me:$LINENO: result: no" >&5
20933$as_echo "no" >&6; }
20934fi
20935
20936  if test "x$ac_pt_PKG_CONFIG" = x; then
20937    PKG_CONFIG=""
20938  else
20939    case $cross_compiling:$ac_tool_warned in
20940yes:)
20941{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20943ac_tool_warned=yes ;;
20944esac
20945    PKG_CONFIG=$ac_pt_PKG_CONFIG
20946  fi
20947else
20948  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20949fi
20950
20951fi
20952if test -n "$PKG_CONFIG"; then
20953	_pkg_min_version=0.9.0
20954	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20955$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20956	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20957		{ $as_echo "$as_me:$LINENO: result: yes" >&5
20958$as_echo "yes" >&6; }
20959	else
20960		{ $as_echo "$as_me:$LINENO: result: no" >&5
20961$as_echo "no" >&6; }
20962		PKG_CONFIG=""
20963	fi
20964
20965fi
20966
20967pkg_failed=no
20968{ $as_echo "$as_me:$LINENO: checking for ICE" >&5
20969$as_echo_n "checking for ICE... " >&6; }
20970
20971if test -n "$ICE_CFLAGS"; then
20972    pkg_cv_ICE_CFLAGS="$ICE_CFLAGS"
20973 elif test -n "$PKG_CONFIG"; then
20974    if test -n "$PKG_CONFIG" && \
20975    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5
20976  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
20977  ac_status=$?
20978  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979  (exit $ac_status); }; then
20980  pkg_cv_ICE_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
20981else
20982  pkg_failed=yes
20983fi
20984 else
20985    pkg_failed=untried
20986fi
20987if test -n "$ICE_LIBS"; then
20988    pkg_cv_ICE_LIBS="$ICE_LIBS"
20989 elif test -n "$PKG_CONFIG"; then
20990    if test -n "$PKG_CONFIG" && \
20991    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5
20992  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
20993  ac_status=$?
20994  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995  (exit $ac_status); }; then
20996  pkg_cv_ICE_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
20997else
20998  pkg_failed=yes
20999fi
21000 else
21001    pkg_failed=untried
21002fi
21003
21004
21005
21006if test $pkg_failed = yes; then
21007
21008if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21009        _pkg_short_errors_supported=yes
21010else
21011        _pkg_short_errors_supported=no
21012fi
21013        if test $_pkg_short_errors_supported = yes; then
21014	        ICE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1`
21015        else
21016	        ICE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1`
21017        fi
21018	# Put the nasty error message in config.log where it belongs
21019	echo "$ICE_PKG_ERRORS" >&5
21020
21021	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xproto) were not met:
21022
21023$ICE_PKG_ERRORS
21024
21025Consider adjusting the PKG_CONFIG_PATH environment variable if you
21026installed software in a non-standard prefix.
21027
21028Alternatively, you may set the environment variables ICE_CFLAGS
21029and ICE_LIBS to avoid the need to call pkg-config.
21030See the pkg-config man page for more details.
21031" >&5
21032$as_echo "$as_me: error: Package requirements (xproto) were not met:
21033
21034$ICE_PKG_ERRORS
21035
21036Consider adjusting the PKG_CONFIG_PATH environment variable if you
21037installed software in a non-standard prefix.
21038
21039Alternatively, you may set the environment variables ICE_CFLAGS
21040and ICE_LIBS to avoid the need to call pkg-config.
21041See the pkg-config man page for more details.
21042" >&2;}
21043   { (exit 1); exit 1; }; }
21044elif test $pkg_failed = untried; then
21045	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21047{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21048is in your PATH or set the PKG_CONFIG environment variable to the full
21049path to pkg-config.
21050
21051Alternatively, you may set the environment variables ICE_CFLAGS
21052and ICE_LIBS to avoid the need to call pkg-config.
21053See the pkg-config man page for more details.
21054
21055To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21056See \`config.log' for more details." >&5
21057$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21058is in your PATH or set the PKG_CONFIG environment variable to the full
21059path to pkg-config.
21060
21061Alternatively, you may set the environment variables ICE_CFLAGS
21062and ICE_LIBS to avoid the need to call pkg-config.
21063See the pkg-config man page for more details.
21064
21065To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21066See \`config.log' for more details." >&2;}
21067   { (exit 1); exit 1; }; }; }
21068else
21069	ICE_CFLAGS=$pkg_cv_ICE_CFLAGS
21070	ICE_LIBS=$pkg_cv_ICE_LIBS
21071        { $as_echo "$as_me:$LINENO: result: yes" >&5
21072$as_echo "yes" >&6; }
21073	:
21074fi
21075
21076
21077
21078
21079pkg_failed=no
21080{ $as_echo "$as_me:$LINENO: checking for XTRANS" >&5
21081$as_echo_n "checking for XTRANS... " >&6; }
21082
21083if test -n "$XTRANS_CFLAGS"; then
21084    pkg_cv_XTRANS_CFLAGS="$XTRANS_CFLAGS"
21085 elif test -n "$PKG_CONFIG"; then
21086    if test -n "$PKG_CONFIG" && \
21087    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtrans\"") >&5
21088  ($PKG_CONFIG --exists --print-errors "xtrans") 2>&5
21089  ac_status=$?
21090  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091  (exit $ac_status); }; then
21092  pkg_cv_XTRANS_CFLAGS=`$PKG_CONFIG --cflags "xtrans" 2>/dev/null`
21093else
21094  pkg_failed=yes
21095fi
21096 else
21097    pkg_failed=untried
21098fi
21099if test -n "$XTRANS_LIBS"; then
21100    pkg_cv_XTRANS_LIBS="$XTRANS_LIBS"
21101 elif test -n "$PKG_CONFIG"; then
21102    if test -n "$PKG_CONFIG" && \
21103    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtrans\"") >&5
21104  ($PKG_CONFIG --exists --print-errors "xtrans") 2>&5
21105  ac_status=$?
21106  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107  (exit $ac_status); }; then
21108  pkg_cv_XTRANS_LIBS=`$PKG_CONFIG --libs "xtrans" 2>/dev/null`
21109else
21110  pkg_failed=yes
21111fi
21112 else
21113    pkg_failed=untried
21114fi
21115
21116
21117
21118if test $pkg_failed = yes; then
21119
21120if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21121        _pkg_short_errors_supported=yes
21122else
21123        _pkg_short_errors_supported=no
21124fi
21125        if test $_pkg_short_errors_supported = yes; then
21126	        XTRANS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xtrans" 2>&1`
21127        else
21128	        XTRANS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xtrans" 2>&1`
21129        fi
21130	# Put the nasty error message in config.log where it belongs
21131	echo "$XTRANS_PKG_ERRORS" >&5
21132
21133	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xtrans) were not met:
21134
21135$XTRANS_PKG_ERRORS
21136
21137Consider adjusting the PKG_CONFIG_PATH environment variable if you
21138installed software in a non-standard prefix.
21139
21140Alternatively, you may set the environment variables XTRANS_CFLAGS
21141and XTRANS_LIBS to avoid the need to call pkg-config.
21142See the pkg-config man page for more details.
21143" >&5
21144$as_echo "$as_me: error: Package requirements (xtrans) were not met:
21145
21146$XTRANS_PKG_ERRORS
21147
21148Consider adjusting the PKG_CONFIG_PATH environment variable if you
21149installed software in a non-standard prefix.
21150
21151Alternatively, you may set the environment variables XTRANS_CFLAGS
21152and XTRANS_LIBS to avoid the need to call pkg-config.
21153See the pkg-config man page for more details.
21154" >&2;}
21155   { (exit 1); exit 1; }; }
21156elif test $pkg_failed = untried; then
21157	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21159{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21160is in your PATH or set the PKG_CONFIG environment variable to the full
21161path to pkg-config.
21162
21163Alternatively, you may set the environment variables XTRANS_CFLAGS
21164and XTRANS_LIBS to avoid the need to call pkg-config.
21165See the pkg-config man page for more details.
21166
21167To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21168See \`config.log' for more details." >&5
21169$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21170is in your PATH or set the PKG_CONFIG environment variable to the full
21171path to pkg-config.
21172
21173Alternatively, you may set the environment variables XTRANS_CFLAGS
21174and XTRANS_LIBS to avoid the need to call pkg-config.
21175See the pkg-config man page for more details.
21176
21177To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21178See \`config.log' for more details." >&2;}
21179   { (exit 1); exit 1; }; }; }
21180else
21181	XTRANS_CFLAGS=$pkg_cv_XTRANS_CFLAGS
21182	XTRANS_LIBS=$pkg_cv_XTRANS_LIBS
21183        { $as_echo "$as_me:$LINENO: result: yes" >&5
21184$as_echo "yes" >&6; }
21185	:
21186fi
21187
21188
21189
21190# Transport selection macro from xtrans.m4
21191{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21192$as_echo_n "checking return type of signal handlers... " >&6; }
21193if test "${ac_cv_type_signal+set}" = set; then
21194  $as_echo_n "(cached) " >&6
21195else
21196  cat >conftest.$ac_ext <<_ACEOF
21197/* confdefs.h.  */
21198_ACEOF
21199cat confdefs.h >>conftest.$ac_ext
21200cat >>conftest.$ac_ext <<_ACEOF
21201/* end confdefs.h.  */
21202#include <sys/types.h>
21203#include <signal.h>
21204
21205int
21206main ()
21207{
21208return *(signal (0, 0)) (0) == 1;
21209  ;
21210  return 0;
21211}
21212_ACEOF
21213rm -f conftest.$ac_objext
21214if { (ac_try="$ac_compile"
21215case "(($ac_try" in
21216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217  *) ac_try_echo=$ac_try;;
21218esac
21219eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21220$as_echo "$ac_try_echo") >&5
21221  (eval "$ac_compile") 2>conftest.er1
21222  ac_status=$?
21223  grep -v '^ *+' conftest.er1 >conftest.err
21224  rm -f conftest.er1
21225  cat conftest.err >&5
21226  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227  (exit $ac_status); } && {
21228	 test -z "$ac_c_werror_flag" ||
21229	 test ! -s conftest.err
21230       } && test -s conftest.$ac_objext; then
21231  ac_cv_type_signal=int
21232else
21233  $as_echo "$as_me: failed program was:" >&5
21234sed 's/^/| /' conftest.$ac_ext >&5
21235
21236	ac_cv_type_signal=void
21237fi
21238
21239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21240fi
21241{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21242$as_echo "$ac_cv_type_signal" >&6; }
21243
21244cat >>confdefs.h <<_ACEOF
21245#define RETSIGTYPE $ac_cv_type_signal
21246_ACEOF
21247
21248
21249
21250
21251
21252 case $host_os in
21253	mingw*)	unixdef="no"   ;;
21254	*)	unixdef="yes"  ;;
21255 esac
21256 # Check whether --enable-unix-transport was given.
21257if test "${enable_unix_transport+set}" = set; then
21258  enableval=$enable_unix_transport; UNIXCONN=$enableval
21259else
21260  UNIXCONN=$unixdef
21261fi
21262
21263 { $as_echo "$as_me:$LINENO: checking if Xtrans should support UNIX socket connections" >&5
21264$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
21265 if test "$UNIXCONN" = "yes"; then
21266
21267cat >>confdefs.h <<\_ACEOF
21268#define UNIXCONN 1
21269_ACEOF
21270
21271 fi
21272 { $as_echo "$as_me:$LINENO: result: $UNIXCONN" >&5
21273$as_echo "$UNIXCONN" >&6; }
21274 # Check whether --enable-tcp-transport was given.
21275if test "${enable_tcp_transport+set}" = set; then
21276  enableval=$enable_tcp_transport; TCPCONN=$enableval
21277else
21278  TCPCONN=yes
21279fi
21280
21281 { $as_echo "$as_me:$LINENO: checking if Xtrans should support TCP socket connections" >&5
21282$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
21283 { $as_echo "$as_me:$LINENO: result: $TCPCONN" >&5
21284$as_echo "$TCPCONN" >&6; }
21285 if test "$TCPCONN" = "yes"; then
21286
21287cat >>confdefs.h <<\_ACEOF
21288#define TCPCONN 1
21289_ACEOF
21290
21291
21292 # SVR4 hides these in libraries other than libc
21293 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
21294$as_echo_n "checking for library containing socket... " >&6; }
21295if test "${ac_cv_search_socket+set}" = set; then
21296  $as_echo_n "(cached) " >&6
21297else
21298  ac_func_search_save_LIBS=$LIBS
21299cat >conftest.$ac_ext <<_ACEOF
21300/* confdefs.h.  */
21301_ACEOF
21302cat confdefs.h >>conftest.$ac_ext
21303cat >>conftest.$ac_ext <<_ACEOF
21304/* end confdefs.h.  */
21305
21306/* Override any GCC internal prototype to avoid an error.
21307   Use char because int might match the return type of a GCC
21308   builtin and then its argument prototype would still apply.  */
21309#ifdef __cplusplus
21310extern "C"
21311#endif
21312char socket ();
21313int
21314main ()
21315{
21316return socket ();
21317  ;
21318  return 0;
21319}
21320_ACEOF
21321for ac_lib in '' socket; do
21322  if test -z "$ac_lib"; then
21323    ac_res="none required"
21324  else
21325    ac_res=-l$ac_lib
21326    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21327  fi
21328  rm -f conftest.$ac_objext conftest$ac_exeext
21329if { (ac_try="$ac_link"
21330case "(($ac_try" in
21331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332  *) ac_try_echo=$ac_try;;
21333esac
21334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21335$as_echo "$ac_try_echo") >&5
21336  (eval "$ac_link") 2>conftest.er1
21337  ac_status=$?
21338  grep -v '^ *+' conftest.er1 >conftest.err
21339  rm -f conftest.er1
21340  cat conftest.err >&5
21341  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342  (exit $ac_status); } && {
21343	 test -z "$ac_c_werror_flag" ||
21344	 test ! -s conftest.err
21345       } && test -s conftest$ac_exeext && {
21346	 test "$cross_compiling" = yes ||
21347	 $as_test_x conftest$ac_exeext
21348       }; then
21349  ac_cv_search_socket=$ac_res
21350else
21351  $as_echo "$as_me: failed program was:" >&5
21352sed 's/^/| /' conftest.$ac_ext >&5
21353
21354
21355fi
21356
21357rm -rf conftest.dSYM
21358rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21359      conftest$ac_exeext
21360  if test "${ac_cv_search_socket+set}" = set; then
21361  break
21362fi
21363done
21364if test "${ac_cv_search_socket+set}" = set; then
21365  :
21366else
21367  ac_cv_search_socket=no
21368fi
21369rm conftest.$ac_ext
21370LIBS=$ac_func_search_save_LIBS
21371fi
21372{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
21373$as_echo "$ac_cv_search_socket" >&6; }
21374ac_res=$ac_cv_search_socket
21375if test "$ac_res" != no; then
21376  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21377
21378fi
21379
21380 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
21381$as_echo_n "checking for library containing gethostbyname... " >&6; }
21382if test "${ac_cv_search_gethostbyname+set}" = set; then
21383  $as_echo_n "(cached) " >&6
21384else
21385  ac_func_search_save_LIBS=$LIBS
21386cat >conftest.$ac_ext <<_ACEOF
21387/* confdefs.h.  */
21388_ACEOF
21389cat confdefs.h >>conftest.$ac_ext
21390cat >>conftest.$ac_ext <<_ACEOF
21391/* end confdefs.h.  */
21392
21393/* Override any GCC internal prototype to avoid an error.
21394   Use char because int might match the return type of a GCC
21395   builtin and then its argument prototype would still apply.  */
21396#ifdef __cplusplus
21397extern "C"
21398#endif
21399char gethostbyname ();
21400int
21401main ()
21402{
21403return gethostbyname ();
21404  ;
21405  return 0;
21406}
21407_ACEOF
21408for ac_lib in '' nsl; do
21409  if test -z "$ac_lib"; then
21410    ac_res="none required"
21411  else
21412    ac_res=-l$ac_lib
21413    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21414  fi
21415  rm -f conftest.$ac_objext conftest$ac_exeext
21416if { (ac_try="$ac_link"
21417case "(($ac_try" in
21418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21419  *) ac_try_echo=$ac_try;;
21420esac
21421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21422$as_echo "$ac_try_echo") >&5
21423  (eval "$ac_link") 2>conftest.er1
21424  ac_status=$?
21425  grep -v '^ *+' conftest.er1 >conftest.err
21426  rm -f conftest.er1
21427  cat conftest.err >&5
21428  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429  (exit $ac_status); } && {
21430	 test -z "$ac_c_werror_flag" ||
21431	 test ! -s conftest.err
21432       } && test -s conftest$ac_exeext && {
21433	 test "$cross_compiling" = yes ||
21434	 $as_test_x conftest$ac_exeext
21435       }; then
21436  ac_cv_search_gethostbyname=$ac_res
21437else
21438  $as_echo "$as_me: failed program was:" >&5
21439sed 's/^/| /' conftest.$ac_ext >&5
21440
21441
21442fi
21443
21444rm -rf conftest.dSYM
21445rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21446      conftest$ac_exeext
21447  if test "${ac_cv_search_gethostbyname+set}" = set; then
21448  break
21449fi
21450done
21451if test "${ac_cv_search_gethostbyname+set}" = set; then
21452  :
21453else
21454  ac_cv_search_gethostbyname=no
21455fi
21456rm conftest.$ac_ext
21457LIBS=$ac_func_search_save_LIBS
21458fi
21459{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
21460$as_echo "$ac_cv_search_gethostbyname" >&6; }
21461ac_res=$ac_cv_search_gethostbyname
21462if test "$ac_res" != no; then
21463  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21464
21465fi
21466
21467
21468 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
21469 # Check whether --enable-ipv6 was given.
21470if test "${enable_ipv6+set}" = set; then
21471  enableval=$enable_ipv6; IPV6CONN=$enableval
21472else
21473  { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
21474$as_echo_n "checking for getaddrinfo... " >&6; }
21475if test "${ac_cv_func_getaddrinfo+set}" = set; then
21476  $as_echo_n "(cached) " >&6
21477else
21478  cat >conftest.$ac_ext <<_ACEOF
21479/* confdefs.h.  */
21480_ACEOF
21481cat confdefs.h >>conftest.$ac_ext
21482cat >>conftest.$ac_ext <<_ACEOF
21483/* end confdefs.h.  */
21484/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
21485   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21486#define getaddrinfo innocuous_getaddrinfo
21487
21488/* System header to define __stub macros and hopefully few prototypes,
21489    which can conflict with char getaddrinfo (); below.
21490    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21491    <limits.h> exists even on freestanding compilers.  */
21492
21493#ifdef __STDC__
21494# include <limits.h>
21495#else
21496# include <assert.h>
21497#endif
21498
21499#undef getaddrinfo
21500
21501/* Override any GCC internal prototype to avoid an error.
21502   Use char because int might match the return type of a GCC
21503   builtin and then its argument prototype would still apply.  */
21504#ifdef __cplusplus
21505extern "C"
21506#endif
21507char getaddrinfo ();
21508/* The GNU C library defines this for functions which it implements
21509    to always fail with ENOSYS.  Some functions are actually named
21510    something starting with __ and the normal name is an alias.  */
21511#if defined __stub_getaddrinfo || defined __stub___getaddrinfo
21512choke me
21513#endif
21514
21515int
21516main ()
21517{
21518return getaddrinfo ();
21519  ;
21520  return 0;
21521}
21522_ACEOF
21523rm -f conftest.$ac_objext conftest$ac_exeext
21524if { (ac_try="$ac_link"
21525case "(($ac_try" in
21526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21527  *) ac_try_echo=$ac_try;;
21528esac
21529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21530$as_echo "$ac_try_echo") >&5
21531  (eval "$ac_link") 2>conftest.er1
21532  ac_status=$?
21533  grep -v '^ *+' conftest.er1 >conftest.err
21534  rm -f conftest.er1
21535  cat conftest.err >&5
21536  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537  (exit $ac_status); } && {
21538	 test -z "$ac_c_werror_flag" ||
21539	 test ! -s conftest.err
21540       } && test -s conftest$ac_exeext && {
21541	 test "$cross_compiling" = yes ||
21542	 $as_test_x conftest$ac_exeext
21543       }; then
21544  ac_cv_func_getaddrinfo=yes
21545else
21546  $as_echo "$as_me: failed program was:" >&5
21547sed 's/^/| /' conftest.$ac_ext >&5
21548
21549	ac_cv_func_getaddrinfo=no
21550fi
21551
21552rm -rf conftest.dSYM
21553rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21554      conftest$ac_exeext conftest.$ac_ext
21555fi
21556{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
21557$as_echo "$ac_cv_func_getaddrinfo" >&6; }
21558if test "x$ac_cv_func_getaddrinfo" = x""yes; then
21559  IPV6CONN=yes
21560else
21561  IPV6CONN=no
21562fi
21563
21564fi
21565
21566 { $as_echo "$as_me:$LINENO: checking if IPv6 support should be built" >&5
21567$as_echo_n "checking if IPv6 support should be built... " >&6; }
21568 if test "$IPV6CONN" = "yes"; then
21569
21570cat >>confdefs.h <<\_ACEOF
21571#define IPv6 1
21572_ACEOF
21573
21574 fi
21575 { $as_echo "$as_me:$LINENO: result: $IPV6CONN" >&5
21576$as_echo "$IPV6CONN" >&6; }
21577
21578 # 4.3BSD-Reno added a new member to struct sockaddr_in
21579 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
21580$as_echo_n "checking for struct sockaddr_in.sin_len... " >&6; }
21581if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
21582  $as_echo_n "(cached) " >&6
21583else
21584  cat >conftest.$ac_ext <<_ACEOF
21585/* confdefs.h.  */
21586_ACEOF
21587cat confdefs.h >>conftest.$ac_ext
21588cat >>conftest.$ac_ext <<_ACEOF
21589/* end confdefs.h.  */
21590
21591#include <sys/types.h>
21592#include <sys/socket.h>
21593#include <netinet/in.h>
21594
21595
21596int
21597main ()
21598{
21599static struct sockaddr_in ac_aggr;
21600if (ac_aggr.sin_len)
21601return 0;
21602  ;
21603  return 0;
21604}
21605_ACEOF
21606rm -f conftest.$ac_objext
21607if { (ac_try="$ac_compile"
21608case "(($ac_try" in
21609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21610  *) ac_try_echo=$ac_try;;
21611esac
21612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21613$as_echo "$ac_try_echo") >&5
21614  (eval "$ac_compile") 2>conftest.er1
21615  ac_status=$?
21616  grep -v '^ *+' conftest.er1 >conftest.err
21617  rm -f conftest.er1
21618  cat conftest.err >&5
21619  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620  (exit $ac_status); } && {
21621	 test -z "$ac_c_werror_flag" ||
21622	 test ! -s conftest.err
21623       } && test -s conftest.$ac_objext; then
21624  ac_cv_member_struct_sockaddr_in_sin_len=yes
21625else
21626  $as_echo "$as_me: failed program was:" >&5
21627sed 's/^/| /' conftest.$ac_ext >&5
21628
21629	cat >conftest.$ac_ext <<_ACEOF
21630/* confdefs.h.  */
21631_ACEOF
21632cat confdefs.h >>conftest.$ac_ext
21633cat >>conftest.$ac_ext <<_ACEOF
21634/* end confdefs.h.  */
21635
21636#include <sys/types.h>
21637#include <sys/socket.h>
21638#include <netinet/in.h>
21639
21640
21641int
21642main ()
21643{
21644static struct sockaddr_in ac_aggr;
21645if (sizeof ac_aggr.sin_len)
21646return 0;
21647  ;
21648  return 0;
21649}
21650_ACEOF
21651rm -f conftest.$ac_objext
21652if { (ac_try="$ac_compile"
21653case "(($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_compile") 2>conftest.er1
21660  ac_status=$?
21661  grep -v '^ *+' conftest.er1 >conftest.err
21662  rm -f conftest.er1
21663  cat conftest.err >&5
21664  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665  (exit $ac_status); } && {
21666	 test -z "$ac_c_werror_flag" ||
21667	 test ! -s conftest.err
21668       } && test -s conftest.$ac_objext; then
21669  ac_cv_member_struct_sockaddr_in_sin_len=yes
21670else
21671  $as_echo "$as_me: failed program was:" >&5
21672sed 's/^/| /' conftest.$ac_ext >&5
21673
21674	ac_cv_member_struct_sockaddr_in_sin_len=no
21675fi
21676
21677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21678fi
21679
21680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21681fi
21682{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
21683$as_echo "$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
21684if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then
21685
21686cat >>confdefs.h <<\_ACEOF
21687#define BSD44SOCKETS 1
21688_ACEOF
21689
21690fi
21691
21692
21693 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
21694 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
21695$as_echo_n "checking for socklen_t... " >&6; }
21696if test "${ac_cv_type_socklen_t+set}" = set; then
21697  $as_echo_n "(cached) " >&6
21698else
21699  ac_cv_type_socklen_t=no
21700cat >conftest.$ac_ext <<_ACEOF
21701/* confdefs.h.  */
21702_ACEOF
21703cat confdefs.h >>conftest.$ac_ext
21704cat >>conftest.$ac_ext <<_ACEOF
21705/* end confdefs.h.  */
21706
21707$ac_includes_default
21708#include <sys/socket.h>
21709
21710int
21711main ()
21712{
21713if (sizeof (socklen_t))
21714       return 0;
21715  ;
21716  return 0;
21717}
21718_ACEOF
21719rm -f conftest.$ac_objext
21720if { (ac_try="$ac_compile"
21721case "(($ac_try" in
21722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21723  *) ac_try_echo=$ac_try;;
21724esac
21725eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21726$as_echo "$ac_try_echo") >&5
21727  (eval "$ac_compile") 2>conftest.er1
21728  ac_status=$?
21729  grep -v '^ *+' conftest.er1 >conftest.err
21730  rm -f conftest.er1
21731  cat conftest.err >&5
21732  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733  (exit $ac_status); } && {
21734	 test -z "$ac_c_werror_flag" ||
21735	 test ! -s conftest.err
21736       } && test -s conftest.$ac_objext; then
21737  cat >conftest.$ac_ext <<_ACEOF
21738/* confdefs.h.  */
21739_ACEOF
21740cat confdefs.h >>conftest.$ac_ext
21741cat >>conftest.$ac_ext <<_ACEOF
21742/* end confdefs.h.  */
21743
21744$ac_includes_default
21745#include <sys/socket.h>
21746
21747int
21748main ()
21749{
21750if (sizeof ((socklen_t)))
21751	  return 0;
21752  ;
21753  return 0;
21754}
21755_ACEOF
21756rm -f conftest.$ac_objext
21757if { (ac_try="$ac_compile"
21758case "(($ac_try" in
21759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21760  *) ac_try_echo=$ac_try;;
21761esac
21762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21763$as_echo "$ac_try_echo") >&5
21764  (eval "$ac_compile") 2>conftest.er1
21765  ac_status=$?
21766  grep -v '^ *+' conftest.er1 >conftest.err
21767  rm -f conftest.er1
21768  cat conftest.err >&5
21769  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770  (exit $ac_status); } && {
21771	 test -z "$ac_c_werror_flag" ||
21772	 test ! -s conftest.err
21773       } && test -s conftest.$ac_objext; then
21774  :
21775else
21776  $as_echo "$as_me: failed program was:" >&5
21777sed 's/^/| /' conftest.$ac_ext >&5
21778
21779	ac_cv_type_socklen_t=yes
21780fi
21781
21782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21783else
21784  $as_echo "$as_me: failed program was:" >&5
21785sed 's/^/| /' conftest.$ac_ext >&5
21786
21787
21788fi
21789
21790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21791fi
21792{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21793$as_echo "$ac_cv_type_socklen_t" >&6; }
21794if test "x$ac_cv_type_socklen_t" = x""yes; then
21795
21796cat >>confdefs.h <<_ACEOF
21797#define HAVE_SOCKLEN_T 1
21798_ACEOF
21799
21800
21801fi
21802
21803
21804
21805 fi
21806 case $host_os in
21807	solaris*|sco*|sysv4*)	localdef="yes" ;;
21808	*)			localdef="no"  ;;
21809 esac
21810 # Check whether --enable-local-transport was given.
21811if test "${enable_local_transport+set}" = set; then
21812  enableval=$enable_local_transport; LOCALCONN=$enableval
21813else
21814  LOCALCONN=$localdef
21815fi
21816
21817 { $as_echo "$as_me:$LINENO: checking if Xtrans should support os-specific local connections" >&5
21818$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
21819 { $as_echo "$as_me:$LINENO: result: $LOCALCONN" >&5
21820$as_echo "$LOCALCONN" >&6; }
21821 if test "$LOCALCONN" = "yes"; then
21822
21823cat >>confdefs.h <<\_ACEOF
21824#define LOCALCONN 1
21825_ACEOF
21826
21827 fi
21828
21829
21830
21831cat >>confdefs.h <<\_ACEOF
21832#define ICE_t 1
21833_ACEOF
21834
21835
21836# Checks for libraries.
21837
21838# Checks for header files.
21839{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21840$as_echo_n "checking for ANSI C header files... " >&6; }
21841if test "${ac_cv_header_stdc+set}" = set; then
21842  $as_echo_n "(cached) " >&6
21843else
21844  cat >conftest.$ac_ext <<_ACEOF
21845/* confdefs.h.  */
21846_ACEOF
21847cat confdefs.h >>conftest.$ac_ext
21848cat >>conftest.$ac_ext <<_ACEOF
21849/* end confdefs.h.  */
21850#include <stdlib.h>
21851#include <stdarg.h>
21852#include <string.h>
21853#include <float.h>
21854
21855int
21856main ()
21857{
21858
21859  ;
21860  return 0;
21861}
21862_ACEOF
21863rm -f conftest.$ac_objext
21864if { (ac_try="$ac_compile"
21865case "(($ac_try" in
21866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867  *) ac_try_echo=$ac_try;;
21868esac
21869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21870$as_echo "$ac_try_echo") >&5
21871  (eval "$ac_compile") 2>conftest.er1
21872  ac_status=$?
21873  grep -v '^ *+' conftest.er1 >conftest.err
21874  rm -f conftest.er1
21875  cat conftest.err >&5
21876  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877  (exit $ac_status); } && {
21878	 test -z "$ac_c_werror_flag" ||
21879	 test ! -s conftest.err
21880       } && test -s conftest.$ac_objext; then
21881  ac_cv_header_stdc=yes
21882else
21883  $as_echo "$as_me: failed program was:" >&5
21884sed 's/^/| /' conftest.$ac_ext >&5
21885
21886	ac_cv_header_stdc=no
21887fi
21888
21889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21890
21891if test $ac_cv_header_stdc = yes; then
21892  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21893  cat >conftest.$ac_ext <<_ACEOF
21894/* confdefs.h.  */
21895_ACEOF
21896cat confdefs.h >>conftest.$ac_ext
21897cat >>conftest.$ac_ext <<_ACEOF
21898/* end confdefs.h.  */
21899#include <string.h>
21900
21901_ACEOF
21902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21903  $EGREP "memchr" >/dev/null 2>&1; then
21904  :
21905else
21906  ac_cv_header_stdc=no
21907fi
21908rm -f conftest*
21909
21910fi
21911
21912if test $ac_cv_header_stdc = yes; then
21913  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21914  cat >conftest.$ac_ext <<_ACEOF
21915/* confdefs.h.  */
21916_ACEOF
21917cat confdefs.h >>conftest.$ac_ext
21918cat >>conftest.$ac_ext <<_ACEOF
21919/* end confdefs.h.  */
21920#include <stdlib.h>
21921
21922_ACEOF
21923if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21924  $EGREP "free" >/dev/null 2>&1; then
21925  :
21926else
21927  ac_cv_header_stdc=no
21928fi
21929rm -f conftest*
21930
21931fi
21932
21933if test $ac_cv_header_stdc = yes; then
21934  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21935  if test "$cross_compiling" = yes; then
21936  :
21937else
21938  cat >conftest.$ac_ext <<_ACEOF
21939/* confdefs.h.  */
21940_ACEOF
21941cat confdefs.h >>conftest.$ac_ext
21942cat >>conftest.$ac_ext <<_ACEOF
21943/* end confdefs.h.  */
21944#include <ctype.h>
21945#include <stdlib.h>
21946#if ((' ' & 0x0FF) == 0x020)
21947# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21948# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21949#else
21950# define ISLOWER(c) \
21951		   (('a' <= (c) && (c) <= 'i') \
21952		     || ('j' <= (c) && (c) <= 'r') \
21953		     || ('s' <= (c) && (c) <= 'z'))
21954# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21955#endif
21956
21957#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21958int
21959main ()
21960{
21961  int i;
21962  for (i = 0; i < 256; i++)
21963    if (XOR (islower (i), ISLOWER (i))
21964	|| toupper (i) != TOUPPER (i))
21965      return 2;
21966  return 0;
21967}
21968_ACEOF
21969rm -f conftest$ac_exeext
21970if { (ac_try="$ac_link"
21971case "(($ac_try" in
21972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21973  *) ac_try_echo=$ac_try;;
21974esac
21975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21976$as_echo "$ac_try_echo") >&5
21977  (eval "$ac_link") 2>&5
21978  ac_status=$?
21979  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21981  { (case "(($ac_try" in
21982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983  *) ac_try_echo=$ac_try;;
21984esac
21985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21986$as_echo "$ac_try_echo") >&5
21987  (eval "$ac_try") 2>&5
21988  ac_status=$?
21989  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990  (exit $ac_status); }; }; then
21991  :
21992else
21993  $as_echo "$as_me: program exited with status $ac_status" >&5
21994$as_echo "$as_me: failed program was:" >&5
21995sed 's/^/| /' conftest.$ac_ext >&5
21996
21997( exit $ac_status )
21998ac_cv_header_stdc=no
21999fi
22000rm -rf conftest.dSYM
22001rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22002fi
22003
22004
22005fi
22006fi
22007{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22008$as_echo "$ac_cv_header_stdc" >&6; }
22009if test $ac_cv_header_stdc = yes; then
22010
22011cat >>confdefs.h <<\_ACEOF
22012#define STDC_HEADERS 1
22013_ACEOF
22014
22015fi
22016
22017
22018# Require xorg-macros at least 1.2.1
22019
22020	XORG_MACROS_needed_version=1.2.1
22021	XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
22022	XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
22023	{ $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
22024$as_echo_n "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... " >&6; }
22025	XORG_MACROS_version=1.2.1
22026	XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
22027	XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
22028	if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
22029		{ { $as_echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5
22030$as_echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;}
22031   { (exit 1); exit 1; }; }
22032	fi
22033	if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
22034		{ { $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
22035$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;}
22036   { (exit 1); exit 1; }; }
22037	fi
22038	{ $as_echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5
22039$as_echo "yes, $XORG_MACROS_version" >&6; }
22040
22041
22042
22043
22044
22045# Allow checking code with lint, sparse, etc.
22046
22047# Check whether --with-lint was given.
22048if test "${with_lint+set}" = set; then
22049  withval=$with_lint; use_lint=$withval
22050else
22051  use_lint=no
22052fi
22053
22054if test "x$use_lint" = "xyes" ; then
22055	LINT="lint"
22056else
22057	LINT="$use_lint"
22058fi
22059if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
22060    case $LINT in
22061	lint|*/lint)
22062	    case $host_os in
22063		solaris*)
22064			LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
22065			;;
22066	    esac
22067	    ;;
22068    esac
22069fi
22070
22071
22072
22073 if test x$LINT != xno; then
22074  LINT_TRUE=
22075  LINT_FALSE='#'
22076else
22077  LINT_TRUE='#'
22078  LINT_FALSE=
22079fi
22080
22081
22082
22083
22084
22085# Build lint "library" for more indepth checks of programs calling this library
22086# Check whether --enable-lint-library was given.
22087if test "${enable_lint_library+set}" = set; then
22088  enableval=$enable_lint_library; make_lint_lib=$enableval
22089else
22090  make_lint_lib=no
22091fi
22092
22093if test "x$make_lint_lib" != "xno" ; then
22094	if test "x$LINT" = "xno" ; then
22095		{ { $as_echo "$as_me:$LINENO: error: Cannot make lint library without --with-lint" >&5
22096$as_echo "$as_me: error: Cannot make lint library without --with-lint" >&2;}
22097   { (exit 1); exit 1; }; }
22098	fi
22099	if test "x$make_lint_lib" = "xyes" ; then
22100		LINTLIB=llib-lICE.ln
22101	else
22102		LINTLIB=$make_lint_lib
22103	fi
22104fi
22105
22106 if test x$make_lint_lib != xno; then
22107  MAKE_LINT_LIB_TRUE=
22108  MAKE_LINT_LIB_FALSE='#'
22109else
22110  MAKE_LINT_LIB_TRUE='#'
22111  MAKE_LINT_LIB_FALSE=
22112fi
22113
22114
22115
22116LINT_FLAGS="${LINT_FLAGS} ${ICE_CFLAGS} ${XTRANS_CFLAGS}"
22117
22118
22119CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
22120mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
22121echo 'git directory not found: installing possibly empty changelog.' >&2)"
22122
22123distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
22124
22125
22126
22127
22128
22129if  test "x$GCC" = xyes ; then
22130    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
22131-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
22132-Wbad-function-cast"
22133    case `gcc -dumpversion` in
22134    3.4.* | 4.*)
22135	CWARNFLAGS+=" -Wold-style-definition -Wdeclaration-after-statement"
22136	;;
22137    esac
22138else
22139    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
22140$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
22141if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
22142  $as_echo_n "(cached) " >&6
22143else
22144  cat >conftest.$ac_ext <<_ACEOF
22145/* confdefs.h.  */
22146_ACEOF
22147cat confdefs.h >>conftest.$ac_ext
22148cat >>conftest.$ac_ext <<_ACEOF
22149/* end confdefs.h.  */
22150$ac_includes_default
22151int
22152main ()
22153{
22154#ifndef __SUNPRO_C
22155  (void) __SUNPRO_C;
22156#endif
22157
22158  ;
22159  return 0;
22160}
22161_ACEOF
22162rm -f conftest.$ac_objext
22163if { (ac_try="$ac_compile"
22164case "(($ac_try" in
22165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22166  *) ac_try_echo=$ac_try;;
22167esac
22168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22169$as_echo "$ac_try_echo") >&5
22170  (eval "$ac_compile") 2>conftest.er1
22171  ac_status=$?
22172  grep -v '^ *+' conftest.er1 >conftest.err
22173  rm -f conftest.er1
22174  cat conftest.err >&5
22175  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176  (exit $ac_status); } && {
22177	 test -z "$ac_c_werror_flag" ||
22178	 test ! -s conftest.err
22179       } && test -s conftest.$ac_objext; then
22180  ac_cv_have_decl___SUNPRO_C=yes
22181else
22182  $as_echo "$as_me: failed program was:" >&5
22183sed 's/^/| /' conftest.$ac_ext >&5
22184
22185	ac_cv_have_decl___SUNPRO_C=no
22186fi
22187
22188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22189fi
22190{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
22191$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
22192if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
22193  SUNCC="yes"
22194else
22195  SUNCC="no"
22196fi
22197
22198    if test "x$SUNCC" = "xyes"; then
22199	CWARNFLAGS="-v"
22200    fi
22201fi
22202
22203
22204
22205
22206
22207# Check whether --with-release-version was given.
22208if test "${with_release_version+set}" = set; then
22209  withval=$with_release_version; RELEASE_VERSION="$withval"
22210else
22211  RELEASE_VERSION=""
22212fi
22213
22214	if test "x$RELEASE_VERSION" != "x"; then
22215		PACKAGE="$PACKAGE-$RELEASE_VERSION"
22216		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
22217		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
22218$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
22219	fi
22220
22221cat >>confdefs.h <<_ACEOF
22222#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
22223_ACEOF
22224
22225	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
22226	if test "x$PVM" = "x"; then
22227		PVM="0"
22228	fi
22229
22230cat >>confdefs.h <<_ACEOF
22231#define PACKAGE_VERSION_MINOR $PVM
22232_ACEOF
22233
22234	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
22235	if test "x$PVP" = "x"; then
22236		PVP="0"
22237	fi
22238
22239cat >>confdefs.h <<_ACEOF
22240#define PACKAGE_VERSION_PATCHLEVEL $PVP
22241_ACEOF
22242
22243
22244
22245ac_config_files="$ac_config_files Makefile src/Makefile ice.pc"
22246
22247cat >confcache <<\_ACEOF
22248# This file is a shell script that caches the results of configure
22249# tests run on this system so they can be shared between configure
22250# scripts and configure runs, see configure's option --config-cache.
22251# It is not useful on other systems.  If it contains results you don't
22252# want to keep, you may remove or edit it.
22253#
22254# config.status only pays attention to the cache file if you give it
22255# the --recheck option to rerun configure.
22256#
22257# `ac_cv_env_foo' variables (set or unset) will be overridden when
22258# loading this file, other *unset* `ac_cv_foo' will be assigned the
22259# following values.
22260
22261_ACEOF
22262
22263# The following way of writing the cache mishandles newlines in values,
22264# but we know of no workaround that is simple, portable, and efficient.
22265# So, we kill variables containing newlines.
22266# Ultrix sh set writes to stderr and can't be redirected directly,
22267# and sets the high bit in the cache file unless we assign to the vars.
22268(
22269  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22270    eval ac_val=\$$ac_var
22271    case $ac_val in #(
22272    *${as_nl}*)
22273      case $ac_var in #(
22274      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22275$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22276      esac
22277      case $ac_var in #(
22278      _ | IFS | as_nl) ;; #(
22279      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22280      *) $as_unset $ac_var ;;
22281      esac ;;
22282    esac
22283  done
22284
22285  (set) 2>&1 |
22286    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22287    *${as_nl}ac_space=\ *)
22288      # `set' does not quote correctly, so add quotes (double-quote
22289      # substitution turns \\\\ into \\, and sed turns \\ into \).
22290      sed -n \
22291	"s/'/'\\\\''/g;
22292	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22293      ;; #(
22294    *)
22295      # `set' quotes correctly as required by POSIX, so do not add quotes.
22296      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22297      ;;
22298    esac |
22299    sort
22300) |
22301  sed '
22302     /^ac_cv_env_/b end
22303     t clear
22304     :clear
22305     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22306     t end
22307     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22308     :end' >>confcache
22309if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22310  if test -w "$cache_file"; then
22311    test "x$cache_file" != "x/dev/null" &&
22312      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
22313$as_echo "$as_me: updating cache $cache_file" >&6;}
22314    cat confcache >$cache_file
22315  else
22316    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22317$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22318  fi
22319fi
22320rm -f confcache
22321
22322test "x$prefix" = xNONE && prefix=$ac_default_prefix
22323# Let make expand exec_prefix.
22324test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22325
22326DEFS=-DHAVE_CONFIG_H
22327
22328ac_libobjs=
22329ac_ltlibobjs=
22330for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22331  # 1. Remove the extension, and $U if already installed.
22332  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22333  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22334  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22335  #    will be set to the directory where LIBOBJS objects are built.
22336  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22337  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22338done
22339LIBOBJS=$ac_libobjs
22340
22341LTLIBOBJS=$ac_ltlibobjs
22342
22343
22344if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22345  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22346Usually this means the macro was only invoked conditionally." >&5
22347$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22348Usually this means the macro was only invoked conditionally." >&2;}
22349   { (exit 1); exit 1; }; }
22350fi
22351if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22352  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22353Usually this means the macro was only invoked conditionally." >&5
22354$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
22355Usually this means the macro was only invoked conditionally." >&2;}
22356   { (exit 1); exit 1; }; }
22357fi
22358if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22359  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22360Usually this means the macro was only invoked conditionally." >&5
22361$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22362Usually this means the macro was only invoked conditionally." >&2;}
22363   { (exit 1); exit 1; }; }
22364fi
22365if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22366  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22367Usually this means the macro was only invoked conditionally." >&5
22368$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22369Usually this means the macro was only invoked conditionally." >&2;}
22370   { (exit 1); exit 1; }; }
22371fi
22372if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22373  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22374Usually this means the macro was only invoked conditionally." >&5
22375$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22376Usually this means the macro was only invoked conditionally." >&2;}
22377   { (exit 1); exit 1; }; }
22378fi
22379if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
22380  { { $as_echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined.
22381Usually this means the macro was only invoked conditionally." >&5
22382$as_echo "$as_me: error: conditional \"LINT\" was never defined.
22383Usually this means the macro was only invoked conditionally." >&2;}
22384   { (exit 1); exit 1; }; }
22385fi
22386if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
22387  { { $as_echo "$as_me:$LINENO: error: conditional \"MAKE_LINT_LIB\" was never defined.
22388Usually this means the macro was only invoked conditionally." >&5
22389$as_echo "$as_me: error: conditional \"MAKE_LINT_LIB\" was never defined.
22390Usually this means the macro was only invoked conditionally." >&2;}
22391   { (exit 1); exit 1; }; }
22392fi
22393
22394: ${CONFIG_STATUS=./config.status}
22395ac_write_fail=0
22396ac_clean_files_save=$ac_clean_files
22397ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22398{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22399$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22400cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22401#! $SHELL
22402# Generated by $as_me.
22403# Run this file to recreate the current configuration.
22404# Compiler output produced by configure, useful for debugging
22405# configure, is in config.log if it exists.
22406
22407debug=false
22408ac_cs_recheck=false
22409ac_cs_silent=false
22410SHELL=\${CONFIG_SHELL-$SHELL}
22411_ACEOF
22412
22413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22414## --------------------- ##
22415## M4sh Initialization.  ##
22416## --------------------- ##
22417
22418# Be more Bourne compatible
22419DUALCASE=1; export DUALCASE # for MKS sh
22420if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22421  emulate sh
22422  NULLCMD=:
22423  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22424  # is contrary to our usage.  Disable this feature.
22425  alias -g '${1+"$@"}'='"$@"'
22426  setopt NO_GLOB_SUBST
22427else
22428  case `(set -o) 2>/dev/null` in
22429  *posix*) set -o posix ;;
22430esac
22431
22432fi
22433
22434
22435
22436
22437# PATH needs CR
22438# Avoid depending upon Character Ranges.
22439as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22440as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22441as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22442as_cr_digits='0123456789'
22443as_cr_alnum=$as_cr_Letters$as_cr_digits
22444
22445as_nl='
22446'
22447export as_nl
22448# Printing a long string crashes Solaris 7 /usr/bin/printf.
22449as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22450as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22451as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22452if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22453  as_echo='printf %s\n'
22454  as_echo_n='printf %s'
22455else
22456  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22457    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22458    as_echo_n='/usr/ucb/echo -n'
22459  else
22460    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22461    as_echo_n_body='eval
22462      arg=$1;
22463      case $arg in
22464      *"$as_nl"*)
22465	expr "X$arg" : "X\\(.*\\)$as_nl";
22466	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22467      esac;
22468      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22469    '
22470    export as_echo_n_body
22471    as_echo_n='sh -c $as_echo_n_body as_echo'
22472  fi
22473  export as_echo_body
22474  as_echo='sh -c $as_echo_body as_echo'
22475fi
22476
22477# The user is always right.
22478if test "${PATH_SEPARATOR+set}" != set; then
22479  PATH_SEPARATOR=:
22480  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22481    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22482      PATH_SEPARATOR=';'
22483  }
22484fi
22485
22486# Support unset when possible.
22487if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22488  as_unset=unset
22489else
22490  as_unset=false
22491fi
22492
22493
22494# IFS
22495# We need space, tab and new line, in precisely that order.  Quoting is
22496# there to prevent editors from complaining about space-tab.
22497# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22498# splitting by setting IFS to empty value.)
22499IFS=" ""	$as_nl"
22500
22501# Find who we are.  Look in the path if we contain no directory separator.
22502case $0 in
22503  *[\\/]* ) as_myself=$0 ;;
22504  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22505for as_dir in $PATH
22506do
22507  IFS=$as_save_IFS
22508  test -z "$as_dir" && as_dir=.
22509  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22510done
22511IFS=$as_save_IFS
22512
22513     ;;
22514esac
22515# We did not find ourselves, most probably we were run as `sh COMMAND'
22516# in which case we are not to be found in the path.
22517if test "x$as_myself" = x; then
22518  as_myself=$0
22519fi
22520if test ! -f "$as_myself"; then
22521  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22522  { (exit 1); exit 1; }
22523fi
22524
22525# Work around bugs in pre-3.0 UWIN ksh.
22526for as_var in ENV MAIL MAILPATH
22527do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22528done
22529PS1='$ '
22530PS2='> '
22531PS4='+ '
22532
22533# NLS nuisances.
22534LC_ALL=C
22535export LC_ALL
22536LANGUAGE=C
22537export LANGUAGE
22538
22539# Required to use basename.
22540if expr a : '\(a\)' >/dev/null 2>&1 &&
22541   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22542  as_expr=expr
22543else
22544  as_expr=false
22545fi
22546
22547if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22548  as_basename=basename
22549else
22550  as_basename=false
22551fi
22552
22553
22554# Name of the executable.
22555as_me=`$as_basename -- "$0" ||
22556$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22557	 X"$0" : 'X\(//\)$' \| \
22558	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22559$as_echo X/"$0" |
22560    sed '/^.*\/\([^/][^/]*\)\/*$/{
22561	    s//\1/
22562	    q
22563	  }
22564	  /^X\/\(\/\/\)$/{
22565	    s//\1/
22566	    q
22567	  }
22568	  /^X\/\(\/\).*/{
22569	    s//\1/
22570	    q
22571	  }
22572	  s/.*/./; q'`
22573
22574# CDPATH.
22575$as_unset CDPATH
22576
22577
22578
22579  as_lineno_1=$LINENO
22580  as_lineno_2=$LINENO
22581  test "x$as_lineno_1" != "x$as_lineno_2" &&
22582  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22583
22584  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22585  # uniformly replaced by the line number.  The first 'sed' inserts a
22586  # line-number line after each line using $LINENO; the second 'sed'
22587  # does the real work.  The second script uses 'N' to pair each
22588  # line-number line with the line containing $LINENO, and appends
22589  # trailing '-' during substitution so that $LINENO is not a special
22590  # case at line end.
22591  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22592  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22593  # E. McMahon (1931-1989) for sed's syntax.  :-)
22594  sed -n '
22595    p
22596    /[$]LINENO/=
22597  ' <$as_myself |
22598    sed '
22599      s/[$]LINENO.*/&-/
22600      t lineno
22601      b
22602      :lineno
22603      N
22604      :loop
22605      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22606      t loop
22607      s/-\n.*//
22608    ' >$as_me.lineno &&
22609  chmod +x "$as_me.lineno" ||
22610    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22611   { (exit 1); exit 1; }; }
22612
22613  # Don't try to exec as it changes $[0], causing all sort of problems
22614  # (the dirname of $[0] is not the place where we might find the
22615  # original and so on.  Autoconf is especially sensitive to this).
22616  . "./$as_me.lineno"
22617  # Exit status is that of the last command.
22618  exit
22619}
22620
22621
22622if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22623  as_dirname=dirname
22624else
22625  as_dirname=false
22626fi
22627
22628ECHO_C= ECHO_N= ECHO_T=
22629case `echo -n x` in
22630-n*)
22631  case `echo 'x\c'` in
22632  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22633  *)   ECHO_C='\c';;
22634  esac;;
22635*)
22636  ECHO_N='-n';;
22637esac
22638if expr a : '\(a\)' >/dev/null 2>&1 &&
22639   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22640  as_expr=expr
22641else
22642  as_expr=false
22643fi
22644
22645rm -f conf$$ conf$$.exe conf$$.file
22646if test -d conf$$.dir; then
22647  rm -f conf$$.dir/conf$$.file
22648else
22649  rm -f conf$$.dir
22650  mkdir conf$$.dir 2>/dev/null
22651fi
22652if (echo >conf$$.file) 2>/dev/null; then
22653  if ln -s conf$$.file conf$$ 2>/dev/null; then
22654    as_ln_s='ln -s'
22655    # ... but there are two gotchas:
22656    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22657    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22658    # In both cases, we have to default to `cp -p'.
22659    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22660      as_ln_s='cp -p'
22661  elif ln conf$$.file conf$$ 2>/dev/null; then
22662    as_ln_s=ln
22663  else
22664    as_ln_s='cp -p'
22665  fi
22666else
22667  as_ln_s='cp -p'
22668fi
22669rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22670rmdir conf$$.dir 2>/dev/null
22671
22672if mkdir -p . 2>/dev/null; then
22673  as_mkdir_p=:
22674else
22675  test -d ./-p && rmdir ./-p
22676  as_mkdir_p=false
22677fi
22678
22679if test -x / >/dev/null 2>&1; then
22680  as_test_x='test -x'
22681else
22682  if ls -dL / >/dev/null 2>&1; then
22683    as_ls_L_option=L
22684  else
22685    as_ls_L_option=
22686  fi
22687  as_test_x='
22688    eval sh -c '\''
22689      if test -d "$1"; then
22690	test -d "$1/.";
22691      else
22692	case $1 in
22693	-*)set "./$1";;
22694	esac;
22695	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22696	???[sx]*):;;*)false;;esac;fi
22697    '\'' sh
22698  '
22699fi
22700as_executable_p=$as_test_x
22701
22702# Sed expression to map a string onto a valid CPP name.
22703as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22704
22705# Sed expression to map a string onto a valid variable name.
22706as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22707
22708
22709exec 6>&1
22710
22711# Save the log message, to keep $[0] and so on meaningful, and to
22712# report actual input values of CONFIG_FILES etc. instead of their
22713# values after options handling.
22714ac_log="
22715This file was extended by libICE $as_me 1.0.5, which was
22716generated by GNU Autoconf 2.63.  Invocation command line was
22717
22718  CONFIG_FILES    = $CONFIG_FILES
22719  CONFIG_HEADERS  = $CONFIG_HEADERS
22720  CONFIG_LINKS    = $CONFIG_LINKS
22721  CONFIG_COMMANDS = $CONFIG_COMMANDS
22722  $ $0 $@
22723
22724on `(hostname || uname -n) 2>/dev/null | sed 1q`
22725"
22726
22727_ACEOF
22728
22729case $ac_config_files in *"
22730"*) set x $ac_config_files; shift; ac_config_files=$*;;
22731esac
22732
22733case $ac_config_headers in *"
22734"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22735esac
22736
22737
22738cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22739# Files that config.status was made for.
22740config_files="`echo $ac_config_files`"
22741config_headers="`echo $ac_config_headers`"
22742config_commands="`echo $ac_config_commands`"
22743
22744_ACEOF
22745
22746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22747ac_cs_usage="\
22748\`$as_me' instantiates files from templates according to the
22749current configuration.
22750
22751Usage: $0 [OPTION]... [FILE]...
22752
22753  -h, --help       print this help, then exit
22754  -V, --version    print version number and configuration settings, then exit
22755  -q, --quiet, --silent
22756                   do not print progress messages
22757  -d, --debug      don't remove temporary files
22758      --recheck    update $as_me by reconfiguring in the same conditions
22759      --file=FILE[:TEMPLATE]
22760                   instantiate the configuration file FILE
22761      --header=FILE[:TEMPLATE]
22762                   instantiate the configuration header FILE
22763
22764Configuration files:
22765$config_files
22766
22767Configuration headers:
22768$config_headers
22769
22770Configuration commands:
22771$config_commands
22772
22773Report bugs to <bug-autoconf@gnu.org>."
22774
22775_ACEOF
22776cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22777ac_cs_version="\\
22778libICE config.status 1.0.5
22779configured by $0, generated by GNU Autoconf 2.63,
22780  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22781
22782Copyright (C) 2008 Free Software Foundation, Inc.
22783This config.status script is free software; the Free Software Foundation
22784gives unlimited permission to copy, distribute and modify it."
22785
22786ac_pwd='$ac_pwd'
22787srcdir='$srcdir'
22788INSTALL='$INSTALL'
22789MKDIR_P='$MKDIR_P'
22790AWK='$AWK'
22791test -n "\$AWK" || AWK=awk
22792_ACEOF
22793
22794cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22795# The default lists apply if the user does not specify any file.
22796ac_need_defaults=:
22797while test $# != 0
22798do
22799  case $1 in
22800  --*=*)
22801    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22802    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22803    ac_shift=:
22804    ;;
22805  *)
22806    ac_option=$1
22807    ac_optarg=$2
22808    ac_shift=shift
22809    ;;
22810  esac
22811
22812  case $ac_option in
22813  # Handling of the options.
22814  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22815    ac_cs_recheck=: ;;
22816  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22817    $as_echo "$ac_cs_version"; exit ;;
22818  --debug | --debu | --deb | --de | --d | -d )
22819    debug=: ;;
22820  --file | --fil | --fi | --f )
22821    $ac_shift
22822    case $ac_optarg in
22823    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22824    esac
22825    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22826    ac_need_defaults=false;;
22827  --header | --heade | --head | --hea )
22828    $ac_shift
22829    case $ac_optarg in
22830    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22831    esac
22832    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22833    ac_need_defaults=false;;
22834  --he | --h)
22835    # Conflict between --help and --header
22836    { $as_echo "$as_me: error: ambiguous option: $1
22837Try \`$0 --help' for more information." >&2
22838   { (exit 1); exit 1; }; };;
22839  --help | --hel | -h )
22840    $as_echo "$ac_cs_usage"; exit ;;
22841  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22842  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22843    ac_cs_silent=: ;;
22844
22845  # This is an error.
22846  -*) { $as_echo "$as_me: error: unrecognized option: $1
22847Try \`$0 --help' for more information." >&2
22848   { (exit 1); exit 1; }; } ;;
22849
22850  *) ac_config_targets="$ac_config_targets $1"
22851     ac_need_defaults=false ;;
22852
22853  esac
22854  shift
22855done
22856
22857ac_configure_extra_args=
22858
22859if $ac_cs_silent; then
22860  exec 6>/dev/null
22861  ac_configure_extra_args="$ac_configure_extra_args --silent"
22862fi
22863
22864_ACEOF
22865cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22866if \$ac_cs_recheck; then
22867  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22868  shift
22869  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22870  CONFIG_SHELL='$SHELL'
22871  export CONFIG_SHELL
22872  exec "\$@"
22873fi
22874
22875_ACEOF
22876cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22877exec 5>>config.log
22878{
22879  echo
22880  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22881## Running $as_me. ##
22882_ASBOX
22883  $as_echo "$ac_log"
22884} >&5
22885
22886_ACEOF
22887cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22888#
22889# INIT-COMMANDS
22890#
22891AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22892
22893_ACEOF
22894
22895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22896
22897# Handling of arguments.
22898for ac_config_target in $ac_config_targets
22899do
22900  case $ac_config_target in
22901    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22902    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22903    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22904    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22905    "ice.pc") CONFIG_FILES="$CONFIG_FILES ice.pc" ;;
22906
22907  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22908$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22909   { (exit 1); exit 1; }; };;
22910  esac
22911done
22912
22913
22914# If the user did not use the arguments to specify the items to instantiate,
22915# then the envvar interface is used.  Set only those that are not.
22916# We use the long form for the default assignment because of an extremely
22917# bizarre bug on SunOS 4.1.3.
22918if $ac_need_defaults; then
22919  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22920  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22921  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22922fi
22923
22924# Have a temporary directory for convenience.  Make it in the build tree
22925# simply because there is no reason against having it here, and in addition,
22926# creating and moving files from /tmp can sometimes cause problems.
22927# Hook for its removal unless debugging.
22928# Note that there is a small window in which the directory will not be cleaned:
22929# after its creation but before its name has been assigned to `$tmp'.
22930$debug ||
22931{
22932  tmp=
22933  trap 'exit_status=$?
22934  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22935' 0
22936  trap '{ (exit 1); exit 1; }' 1 2 13 15
22937}
22938# Create a (secure) tmp directory for tmp files.
22939
22940{
22941  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22942  test -n "$tmp" && test -d "$tmp"
22943}  ||
22944{
22945  tmp=./conf$$-$RANDOM
22946  (umask 077 && mkdir "$tmp")
22947} ||
22948{
22949   $as_echo "$as_me: cannot create a temporary directory in ." >&2
22950   { (exit 1); exit 1; }
22951}
22952
22953# Set up the scripts for CONFIG_FILES section.
22954# No need to generate them if there are no CONFIG_FILES.
22955# This happens for instance with `./config.status config.h'.
22956if test -n "$CONFIG_FILES"; then
22957
22958
22959ac_cr='
22960'
22961ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22962if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22963  ac_cs_awk_cr='\\r'
22964else
22965  ac_cs_awk_cr=$ac_cr
22966fi
22967
22968echo 'BEGIN {' >"$tmp/subs1.awk" &&
22969_ACEOF
22970
22971
22972{
22973  echo "cat >conf$$subs.awk <<_ACEOF" &&
22974  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22975  echo "_ACEOF"
22976} >conf$$subs.sh ||
22977  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22978$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22979   { (exit 1); exit 1; }; }
22980ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22981ac_delim='%!_!# '
22982for ac_last_try in false false false false false :; do
22983  . ./conf$$subs.sh ||
22984    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22985$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22986   { (exit 1); exit 1; }; }
22987
22988  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22989  if test $ac_delim_n = $ac_delim_num; then
22990    break
22991  elif $ac_last_try; then
22992    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22993$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22994   { (exit 1); exit 1; }; }
22995  else
22996    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22997  fi
22998done
22999rm -f conf$$subs.sh
23000
23001cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23002cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23003_ACEOF
23004sed -n '
23005h
23006s/^/S["/; s/!.*/"]=/
23007p
23008g
23009s/^[^!]*!//
23010:repl
23011t repl
23012s/'"$ac_delim"'$//
23013t delim
23014:nl
23015h
23016s/\(.\{148\}\).*/\1/
23017t more1
23018s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23019p
23020n
23021b repl
23022:more1
23023s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23024p
23025g
23026s/.\{148\}//
23027t nl
23028:delim
23029h
23030s/\(.\{148\}\).*/\1/
23031t more2
23032s/["\\]/\\&/g; s/^/"/; s/$/"/
23033p
23034b
23035:more2
23036s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23037p
23038g
23039s/.\{148\}//
23040t delim
23041' <conf$$subs.awk | sed '
23042/^[^""]/{
23043  N
23044  s/\n//
23045}
23046' >>$CONFIG_STATUS || ac_write_fail=1
23047rm -f conf$$subs.awk
23048cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23049_ACAWK
23050cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23051  for (key in S) S_is_set[key] = 1
23052  FS = ""
23053
23054}
23055{
23056  line = $ 0
23057  nfields = split(line, field, "@")
23058  substed = 0
23059  len = length(field[1])
23060  for (i = 2; i < nfields; i++) {
23061    key = field[i]
23062    keylen = length(key)
23063    if (S_is_set[key]) {
23064      value = S[key]
23065      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23066      len += length(value) + length(field[++i])
23067      substed = 1
23068    } else
23069      len += 1 + keylen
23070  }
23071
23072  print line
23073}
23074
23075_ACAWK
23076_ACEOF
23077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23078if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23079  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23080else
23081  cat
23082fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23083  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
23084$as_echo "$as_me: error: could not setup config files machinery" >&2;}
23085   { (exit 1); exit 1; }; }
23086_ACEOF
23087
23088# VPATH may cause trouble with some makes, so we remove $(srcdir),
23089# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23090# trailing colons and then remove the whole line if VPATH becomes empty
23091# (actually we leave an empty line to preserve line numbers).
23092if test "x$srcdir" = x.; then
23093  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
23094s/:*\$(srcdir):*/:/
23095s/:*\${srcdir}:*/:/
23096s/:*@srcdir@:*/:/
23097s/^\([^=]*=[	 ]*\):*/\1/
23098s/:*$//
23099s/^[^=]*=[	 ]*$//
23100}'
23101fi
23102
23103cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23104fi # test -n "$CONFIG_FILES"
23105
23106# Set up the scripts for CONFIG_HEADERS section.
23107# No need to generate them if there are no CONFIG_HEADERS.
23108# This happens for instance with `./config.status Makefile'.
23109if test -n "$CONFIG_HEADERS"; then
23110cat >"$tmp/defines.awk" <<\_ACAWK ||
23111BEGIN {
23112_ACEOF
23113
23114# Transform confdefs.h into an awk script `defines.awk', embedded as
23115# here-document in config.status, that substitutes the proper values into
23116# config.h.in to produce config.h.
23117
23118# Create a delimiter string that does not exist in confdefs.h, to ease
23119# handling of long lines.
23120ac_delim='%!_!# '
23121for ac_last_try in false false :; do
23122  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23123  if test -z "$ac_t"; then
23124    break
23125  elif $ac_last_try; then
23126    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
23127$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
23128   { (exit 1); exit 1; }; }
23129  else
23130    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23131  fi
23132done
23133
23134# For the awk script, D is an array of macro values keyed by name,
23135# likewise P contains macro parameters if any.  Preserve backslash
23136# newline sequences.
23137
23138ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23139sed -n '
23140s/.\{148\}/&'"$ac_delim"'/g
23141t rset
23142:rset
23143s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
23144t def
23145d
23146:def
23147s/\\$//
23148t bsnl
23149s/["\\]/\\&/g
23150s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23151D["\1"]=" \3"/p
23152s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
23153d
23154:bsnl
23155s/["\\]/\\&/g
23156s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23157D["\1"]=" \3\\\\\\n"\\/p
23158t cont
23159s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23160t cont
23161d
23162:cont
23163n
23164s/.\{148\}/&'"$ac_delim"'/g
23165t clear
23166:clear
23167s/\\$//
23168t bsnlc
23169s/["\\]/\\&/g; s/^/"/; s/$/"/p
23170d
23171:bsnlc
23172s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23173b cont
23174' <confdefs.h | sed '
23175s/'"$ac_delim"'/"\\\
23176"/g' >>$CONFIG_STATUS || ac_write_fail=1
23177
23178cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23179  for (key in D) D_is_set[key] = 1
23180  FS = ""
23181}
23182/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23183  line = \$ 0
23184  split(line, arg, " ")
23185  if (arg[1] == "#") {
23186    defundef = arg[2]
23187    mac1 = arg[3]
23188  } else {
23189    defundef = substr(arg[1], 2)
23190    mac1 = arg[2]
23191  }
23192  split(mac1, mac2, "(") #)
23193  macro = mac2[1]
23194  prefix = substr(line, 1, index(line, defundef) - 1)
23195  if (D_is_set[macro]) {
23196    # Preserve the white space surrounding the "#".
23197    print prefix "define", macro P[macro] D[macro]
23198    next
23199  } else {
23200    # Replace #undef with comments.  This is necessary, for example,
23201    # in the case of _POSIX_SOURCE, which is predefined and required
23202    # on some systems where configure will not decide to define it.
23203    if (defundef == "undef") {
23204      print "/*", prefix defundef, macro, "*/"
23205      next
23206    }
23207  }
23208}
23209{ print }
23210_ACAWK
23211_ACEOF
23212cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23213  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
23214$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
23215   { (exit 1); exit 1; }; }
23216fi # test -n "$CONFIG_HEADERS"
23217
23218
23219eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23220shift
23221for ac_tag
23222do
23223  case $ac_tag in
23224  :[FHLC]) ac_mode=$ac_tag; continue;;
23225  esac
23226  case $ac_mode$ac_tag in
23227  :[FHL]*:*);;
23228  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
23229$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
23230   { (exit 1); exit 1; }; };;
23231  :[FH]-) ac_tag=-:-;;
23232  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23233  esac
23234  ac_save_IFS=$IFS
23235  IFS=:
23236  set x $ac_tag
23237  IFS=$ac_save_IFS
23238  shift
23239  ac_file=$1
23240  shift
23241
23242  case $ac_mode in
23243  :L) ac_source=$1;;
23244  :[FH])
23245    ac_file_inputs=
23246    for ac_f
23247    do
23248      case $ac_f in
23249      -) ac_f="$tmp/stdin";;
23250      *) # Look for the file first in the build tree, then in the source tree
23251	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23252	 # because $ac_f cannot contain `:'.
23253	 test -f "$ac_f" ||
23254	   case $ac_f in
23255	   [\\/$]*) false;;
23256	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23257	   esac ||
23258	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23259$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23260   { (exit 1); exit 1; }; };;
23261      esac
23262      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23263      ac_file_inputs="$ac_file_inputs '$ac_f'"
23264    done
23265
23266    # Let's still pretend it is `configure' which instantiates (i.e., don't
23267    # use $as_me), people would be surprised to read:
23268    #    /* config.h.  Generated by config.status.  */
23269    configure_input='Generated from '`
23270	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23271	`' by configure.'
23272    if test x"$ac_file" != x-; then
23273      configure_input="$ac_file.  $configure_input"
23274      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
23275$as_echo "$as_me: creating $ac_file" >&6;}
23276    fi
23277    # Neutralize special characters interpreted by sed in replacement strings.
23278    case $configure_input in #(
23279    *\&* | *\|* | *\\* )
23280       ac_sed_conf_input=`$as_echo "$configure_input" |
23281       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23282    *) ac_sed_conf_input=$configure_input;;
23283    esac
23284
23285    case $ac_tag in
23286    *:-:* | *:-) cat >"$tmp/stdin" \
23287      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23288$as_echo "$as_me: error: could not create $ac_file" >&2;}
23289   { (exit 1); exit 1; }; } ;;
23290    esac
23291    ;;
23292  esac
23293
23294  ac_dir=`$as_dirname -- "$ac_file" ||
23295$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23296	 X"$ac_file" : 'X\(//\)[^/]' \| \
23297	 X"$ac_file" : 'X\(//\)$' \| \
23298	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23299$as_echo X"$ac_file" |
23300    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23301	    s//\1/
23302	    q
23303	  }
23304	  /^X\(\/\/\)[^/].*/{
23305	    s//\1/
23306	    q
23307	  }
23308	  /^X\(\/\/\)$/{
23309	    s//\1/
23310	    q
23311	  }
23312	  /^X\(\/\).*/{
23313	    s//\1/
23314	    q
23315	  }
23316	  s/.*/./; q'`
23317  { as_dir="$ac_dir"
23318  case $as_dir in #(
23319  -*) as_dir=./$as_dir;;
23320  esac
23321  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23322    as_dirs=
23323    while :; do
23324      case $as_dir in #(
23325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23326      *) as_qdir=$as_dir;;
23327      esac
23328      as_dirs="'$as_qdir' $as_dirs"
23329      as_dir=`$as_dirname -- "$as_dir" ||
23330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23331	 X"$as_dir" : 'X\(//\)[^/]' \| \
23332	 X"$as_dir" : 'X\(//\)$' \| \
23333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23334$as_echo X"$as_dir" |
23335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23336	    s//\1/
23337	    q
23338	  }
23339	  /^X\(\/\/\)[^/].*/{
23340	    s//\1/
23341	    q
23342	  }
23343	  /^X\(\/\/\)$/{
23344	    s//\1/
23345	    q
23346	  }
23347	  /^X\(\/\).*/{
23348	    s//\1/
23349	    q
23350	  }
23351	  s/.*/./; q'`
23352      test -d "$as_dir" && break
23353    done
23354    test -z "$as_dirs" || eval "mkdir $as_dirs"
23355  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23356$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23357   { (exit 1); exit 1; }; }; }
23358  ac_builddir=.
23359
23360case "$ac_dir" in
23361.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23362*)
23363  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23364  # A ".." for each directory in $ac_dir_suffix.
23365  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23366  case $ac_top_builddir_sub in
23367  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23368  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23369  esac ;;
23370esac
23371ac_abs_top_builddir=$ac_pwd
23372ac_abs_builddir=$ac_pwd$ac_dir_suffix
23373# for backward compatibility:
23374ac_top_builddir=$ac_top_build_prefix
23375
23376case $srcdir in
23377  .)  # We are building in place.
23378    ac_srcdir=.
23379    ac_top_srcdir=$ac_top_builddir_sub
23380    ac_abs_top_srcdir=$ac_pwd ;;
23381  [\\/]* | ?:[\\/]* )  # Absolute name.
23382    ac_srcdir=$srcdir$ac_dir_suffix;
23383    ac_top_srcdir=$srcdir
23384    ac_abs_top_srcdir=$srcdir ;;
23385  *) # Relative name.
23386    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23387    ac_top_srcdir=$ac_top_build_prefix$srcdir
23388    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23389esac
23390ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23391
23392
23393  case $ac_mode in
23394  :F)
23395  #
23396  # CONFIG_FILE
23397  #
23398
23399  case $INSTALL in
23400  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23401  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23402  esac
23403  ac_MKDIR_P=$MKDIR_P
23404  case $MKDIR_P in
23405  [\\/$]* | ?:[\\/]* ) ;;
23406  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23407  esac
23408_ACEOF
23409
23410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23411# If the template does not know about datarootdir, expand it.
23412# FIXME: This hack should be removed a few years after 2.60.
23413ac_datarootdir_hack=; ac_datarootdir_seen=
23414
23415ac_sed_dataroot='
23416/datarootdir/ {
23417  p
23418  q
23419}
23420/@datadir@/p
23421/@docdir@/p
23422/@infodir@/p
23423/@localedir@/p
23424/@mandir@/p
23425'
23426case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23427*datarootdir*) ac_datarootdir_seen=yes;;
23428*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23429  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23430$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23431_ACEOF
23432cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23433  ac_datarootdir_hack='
23434  s&@datadir@&$datadir&g
23435  s&@docdir@&$docdir&g
23436  s&@infodir@&$infodir&g
23437  s&@localedir@&$localedir&g
23438  s&@mandir@&$mandir&g
23439    s&\\\${datarootdir}&$datarootdir&g' ;;
23440esac
23441_ACEOF
23442
23443# Neutralize VPATH when `$srcdir' = `.'.
23444# Shell code in configure.ac might set extrasub.
23445# FIXME: do we really want to maintain this feature?
23446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23447ac_sed_extra="$ac_vpsub
23448$extrasub
23449_ACEOF
23450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23451:t
23452/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23453s|@configure_input@|$ac_sed_conf_input|;t t
23454s&@top_builddir@&$ac_top_builddir_sub&;t t
23455s&@top_build_prefix@&$ac_top_build_prefix&;t t
23456s&@srcdir@&$ac_srcdir&;t t
23457s&@abs_srcdir@&$ac_abs_srcdir&;t t
23458s&@top_srcdir@&$ac_top_srcdir&;t t
23459s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23460s&@builddir@&$ac_builddir&;t t
23461s&@abs_builddir@&$ac_abs_builddir&;t t
23462s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23463s&@INSTALL@&$ac_INSTALL&;t t
23464s&@MKDIR_P@&$ac_MKDIR_P&;t t
23465$ac_datarootdir_hack
23466"
23467eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23468  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23469$as_echo "$as_me: error: could not create $ac_file" >&2;}
23470   { (exit 1); exit 1; }; }
23471
23472test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23473  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23474  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23475  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23476which seems to be undefined.  Please make sure it is defined." >&5
23477$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23478which seems to be undefined.  Please make sure it is defined." >&2;}
23479
23480  rm -f "$tmp/stdin"
23481  case $ac_file in
23482  -) cat "$tmp/out" && rm -f "$tmp/out";;
23483  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23484  esac \
23485  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23486$as_echo "$as_me: error: could not create $ac_file" >&2;}
23487   { (exit 1); exit 1; }; }
23488 ;;
23489  :H)
23490  #
23491  # CONFIG_HEADER
23492  #
23493  if test x"$ac_file" != x-; then
23494    {
23495      $as_echo "/* $configure_input  */" \
23496      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23497    } >"$tmp/config.h" \
23498      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23499$as_echo "$as_me: error: could not create $ac_file" >&2;}
23500   { (exit 1); exit 1; }; }
23501    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23502      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23503$as_echo "$as_me: $ac_file is unchanged" >&6;}
23504    else
23505      rm -f "$ac_file"
23506      mv "$tmp/config.h" "$ac_file" \
23507	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23508$as_echo "$as_me: error: could not create $ac_file" >&2;}
23509   { (exit 1); exit 1; }; }
23510    fi
23511  else
23512    $as_echo "/* $configure_input  */" \
23513      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23514      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23515$as_echo "$as_me: error: could not create -" >&2;}
23516   { (exit 1); exit 1; }; }
23517  fi
23518# Compute "$ac_file"'s index in $config_headers.
23519_am_arg="$ac_file"
23520_am_stamp_count=1
23521for _am_header in $config_headers :; do
23522  case $_am_header in
23523    $_am_arg | $_am_arg:* )
23524      break ;;
23525    * )
23526      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23527  esac
23528done
23529echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23530$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23531	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23532	 X"$_am_arg" : 'X\(//\)$' \| \
23533	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23534$as_echo X"$_am_arg" |
23535    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23536	    s//\1/
23537	    q
23538	  }
23539	  /^X\(\/\/\)[^/].*/{
23540	    s//\1/
23541	    q
23542	  }
23543	  /^X\(\/\/\)$/{
23544	    s//\1/
23545	    q
23546	  }
23547	  /^X\(\/\).*/{
23548	    s//\1/
23549	    q
23550	  }
23551	  s/.*/./; q'`/stamp-h$_am_stamp_count
23552 ;;
23553
23554  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23555$as_echo "$as_me: executing $ac_file commands" >&6;}
23556 ;;
23557  esac
23558
23559
23560  case $ac_file$ac_mode in
23561    "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
23562# are listed without --file.  Let's play safe and only enable the eval
23563# if we detect the quoting.
23564case $CONFIG_FILES in
23565*\'*) eval set x "$CONFIG_FILES" ;;
23566*)   set x $CONFIG_FILES ;;
23567esac
23568shift
23569for mf
23570do
23571  # Strip MF so we end up with the name of the file.
23572  mf=`echo "$mf" | sed -e 's/:.*$//'`
23573  # Check whether this is an Automake generated Makefile or not.
23574  # We used to match only the files named `Makefile.in', but
23575  # some people rename them; so instead we look at the file content.
23576  # Grep'ing the first line is not enough: some people post-process
23577  # each Makefile.in and add a new line on top of each file to say so.
23578  # Grep'ing the whole file is not good either: AIX grep has a line
23579  # limit of 2048, but all sed's we know have understand at least 4000.
23580  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23581    dirpart=`$as_dirname -- "$mf" ||
23582$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23583	 X"$mf" : 'X\(//\)[^/]' \| \
23584	 X"$mf" : 'X\(//\)$' \| \
23585	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23586$as_echo X"$mf" |
23587    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23588	    s//\1/
23589	    q
23590	  }
23591	  /^X\(\/\/\)[^/].*/{
23592	    s//\1/
23593	    q
23594	  }
23595	  /^X\(\/\/\)$/{
23596	    s//\1/
23597	    q
23598	  }
23599	  /^X\(\/\).*/{
23600	    s//\1/
23601	    q
23602	  }
23603	  s/.*/./; q'`
23604  else
23605    continue
23606  fi
23607  # Extract the definition of DEPDIR, am__include, and am__quote
23608  # from the Makefile without running `make'.
23609  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23610  test -z "$DEPDIR" && continue
23611  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23612  test -z "am__include" && continue
23613  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23614  # When using ansi2knr, U may be empty or an underscore; expand it
23615  U=`sed -n 's/^U = //p' < "$mf"`
23616  # Find all dependency output files, they are included files with
23617  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23618  # simplest approach to changing $(DEPDIR) to its actual value in the
23619  # expansion.
23620  for file in `sed -n "
23621    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23622       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23623    # Make sure the directory exists.
23624    test -f "$dirpart/$file" && continue
23625    fdir=`$as_dirname -- "$file" ||
23626$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23627	 X"$file" : 'X\(//\)[^/]' \| \
23628	 X"$file" : 'X\(//\)$' \| \
23629	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23630$as_echo X"$file" |
23631    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23632	    s//\1/
23633	    q
23634	  }
23635	  /^X\(\/\/\)[^/].*/{
23636	    s//\1/
23637	    q
23638	  }
23639	  /^X\(\/\/\)$/{
23640	    s//\1/
23641	    q
23642	  }
23643	  /^X\(\/\).*/{
23644	    s//\1/
23645	    q
23646	  }
23647	  s/.*/./; q'`
23648    { as_dir=$dirpart/$fdir
23649  case $as_dir in #(
23650  -*) as_dir=./$as_dir;;
23651  esac
23652  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23653    as_dirs=
23654    while :; do
23655      case $as_dir in #(
23656      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23657      *) as_qdir=$as_dir;;
23658      esac
23659      as_dirs="'$as_qdir' $as_dirs"
23660      as_dir=`$as_dirname -- "$as_dir" ||
23661$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23662	 X"$as_dir" : 'X\(//\)[^/]' \| \
23663	 X"$as_dir" : 'X\(//\)$' \| \
23664	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23665$as_echo X"$as_dir" |
23666    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23667	    s//\1/
23668	    q
23669	  }
23670	  /^X\(\/\/\)[^/].*/{
23671	    s//\1/
23672	    q
23673	  }
23674	  /^X\(\/\/\)$/{
23675	    s//\1/
23676	    q
23677	  }
23678	  /^X\(\/\).*/{
23679	    s//\1/
23680	    q
23681	  }
23682	  s/.*/./; q'`
23683      test -d "$as_dir" && break
23684    done
23685    test -z "$as_dirs" || eval "mkdir $as_dirs"
23686  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23687$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23688   { (exit 1); exit 1; }; }; }
23689    # echo "creating $dirpart/$file"
23690    echo '# dummy' > "$dirpart/$file"
23691  done
23692done
23693 ;;
23694
23695  esac
23696done # for ac_tag
23697
23698
23699{ (exit 0); exit 0; }
23700_ACEOF
23701chmod +x $CONFIG_STATUS
23702ac_clean_files=$ac_clean_files_save
23703
23704test $ac_write_fail = 0 ||
23705  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23706$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23707   { (exit 1); exit 1; }; }
23708
23709
23710# configure is writing to config.log, and then calls config.status.
23711# config.status does its own redirection, appending to config.log.
23712# Unfortunately, on DOS this fails, as config.log is still kept open
23713# by configure, so config.status won't be able to write to it; its
23714# output is simply discarded.  So we exec the FD to /dev/null,
23715# effectively closing config.log, so it can be properly (re)opened and
23716# appended to by config.status.  When coming back to configure, we
23717# need to make the FD available again.
23718if test "$no_create" != yes; then
23719  ac_cs_success=:
23720  ac_config_status_args=
23721  test "$silent" = yes &&
23722    ac_config_status_args="$ac_config_status_args --quiet"
23723  exec 5>/dev/null
23724  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23725  exec 5>>config.log
23726  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23727  # would make configure fail if this is the last instruction.
23728  $ac_cs_success || { (exit 1); exit 1; }
23729fi
23730if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23731  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23732$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23733fi
23734
23735