1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.67 for expat 1.95.7.
4#
5# Report bugs to <expat-bugs@mail.libexpat.org>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177  if (eval "$as_required") 2>/dev/null; then :
178  as_have_required=yes
179else
180  as_have_required=no
181fi
182  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189  IFS=$as_save_IFS
190  test -z "$as_dir" && as_dir=.
191  as_found=:
192  case $as_dir in #(
193	 /*)
194	   for as_base in sh bash ksh sh5; do
195	     # Try only shells that exist, to save several forks.
196	     as_shell=$as_dir/$as_base
197	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  CONFIG_SHELL=$as_shell as_have_required=yes
200		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201  break 2
202fi
203fi
204	   done;;
205       esac
206  as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210  CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215      if test "x$CONFIG_SHELL" != x; then :
216  # We cannot yet assume a decent shell, so we have to provide a
217	# neutralization value for shells without unset; and this also
218	# works around shells that cannot unset nonexistent variables.
219	BASH_ENV=/dev/null
220	ENV=/dev/null
221	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222	export CONFIG_SHELL
223	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226    if test x$as_have_required = xno; then :
227  $as_echo "$0: This script requires a shell more modern than all"
228  $as_echo "$0: the shells that I found on your system."
229  if test x${ZSH_VERSION+set} = xset ; then
230    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232  else
233    $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: expat-bugs@mail.libexpat.org about your system,
235$0: including any error possibly output before this
236$0: message. Then install a modern shell, or manually run
237$0: the script under such a shell if you do have one."
238  fi
239  exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257  { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266  return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274  set +e
275  as_fn_set_status $1
276  exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285  case $as_dir in #(
286  -*) as_dir=./$as_dir;;
287  esac
288  test -d "$as_dir" || eval $as_mkdir_p || {
289    as_dirs=
290    while :; do
291      case $as_dir in #(
292      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293      *) as_qdir=$as_dir;;
294      esac
295      as_dirs="'$as_qdir' $as_dirs"
296      as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298	 X"$as_dir" : 'X\(//\)[^/]' \| \
299	 X"$as_dir" : 'X\(//\)$' \| \
300	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303	    s//\1/
304	    q
305	  }
306	  /^X\(\/\/\)[^/].*/{
307	    s//\1/
308	    q
309	  }
310	  /^X\(\/\/\)$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\).*/{
315	    s//\1/
316	    q
317	  }
318	  s/.*/./; q'`
319      test -d "$as_dir" && break
320    done
321    test -z "$as_dirs" || eval "mkdir $as_dirs"
322  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333  eval 'as_fn_append ()
334  {
335    eval $1+=\$2
336  }'
337else
338  as_fn_append ()
339  {
340    eval $1=\$$1\$2
341  }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350  eval 'as_fn_arith ()
351  {
352    as_val=$(( $* ))
353  }'
354else
355  as_fn_arith ()
356  {
357    as_val=`expr "$@" || test $? -eq 1`
358  }
359fi # as_fn_arith
360
361
362# as_fn_error STATUS ERROR [LINENO LOG_FD]
363# ----------------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with STATUS, using 1 if that was 0.
367as_fn_error ()
368{
369  as_status=$1; test $as_status -eq 0 && as_status=1
370  if test "$4"; then
371    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373  fi
374  $as_echo "$as_me: error: $2" >&2
375  as_fn_exit $as_status
376} # as_fn_error
377
378if expr a : '\(a\)' >/dev/null 2>&1 &&
379   test "X`expr 00001 : '.*\(...\)'`" = X001; then
380  as_expr=expr
381else
382  as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386  as_basename=basename
387else
388  as_basename=false
389fi
390
391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392  as_dirname=dirname
393else
394  as_dirname=false
395fi
396
397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399	 X"$0" : 'X\(//\)$' \| \
400	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402    sed '/^.*\/\([^/][^/]*\)\/*$/{
403	    s//\1/
404	    q
405	  }
406	  /^X\/\(\/\/\)$/{
407	    s//\1/
408	    q
409	  }
410	  /^X\/\(\/\).*/{
411	    s//\1/
412	    q
413	  }
414	  s/.*/./; q'`
415
416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424  as_lineno_1=$LINENO as_lineno_1a=$LINENO
425  as_lineno_2=$LINENO as_lineno_2a=$LINENO
426  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429  sed -n '
430    p
431    /[$]LINENO/=
432  ' <$as_myself |
433    sed '
434      s/[$]LINENO.*/&-/
435      t lineno
436      b
437      :lineno
438      N
439      :loop
440      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441      t loop
442      s/-\n.*//
443    ' >$as_me.lineno &&
444  chmod +x "$as_me.lineno" ||
445    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447  # Don't try to exec as it changes $[0], causing all sort of problems
448  # (the dirname of $[0] is not the place where we might find the
449  # original and so on.  Autoconf is especially sensitive to this).
450  . "./$as_me.lineno"
451  # Exit status is that of the last command.
452  exit
453}
454
455ECHO_C= ECHO_N= ECHO_T=
456case `echo -n x` in #(((((
457-n*)
458  case `echo 'xy\c'` in
459  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
460  xy)  ECHO_C='\c';;
461  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462       ECHO_T='	';;
463  esac;;
464*)
465  ECHO_N='-n';;
466esac
467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470  rm -f conf$$.dir/conf$$.file
471else
472  rm -f conf$$.dir
473  mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476  if ln -s conf$$.file conf$$ 2>/dev/null; then
477    as_ln_s='ln -s'
478    # ... but there are two gotchas:
479    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481    # In both cases, we have to default to `cp -p'.
482    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483      as_ln_s='cp -p'
484  elif ln conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s=ln
486  else
487    as_ln_s='cp -p'
488  fi
489else
490  as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
496  as_mkdir_p='mkdir -p "$as_dir"'
497else
498  test -d ./-p && rmdir ./-p
499  as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503  as_test_x='test -x'
504else
505  if ls -dL / >/dev/null 2>&1; then
506    as_ls_L_option=L
507  else
508    as_ls_L_option=
509  fi
510  as_test_x='
511    eval sh -c '\''
512      if test -d "$1"; then
513	test -d "$1/.";
514      else
515	case $1 in #(
516	-*)set "./$1";;
517	esac;
518	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519	???[sx]*):;;*)false;;esac;fi
520    '\'' sh
521  '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533# Check that we are running under the correct shell.
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536case X$ECHO in
537X*--fallback-echo)
538  # Remove one level of quotation (which was required for Make).
539  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
540  ;;
541esac
542
543echo=${ECHO-echo}
544if test "X$1" = X--no-reexec; then
545  # Discard the --no-reexec flag, and continue.
546  shift
547elif test "X$1" = X--fallback-echo; then
548  # Avoid inline document here, it may be left over
549  :
550elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
551  # Yippee, $echo works!
552  :
553else
554  # Restart under the correct shell.
555  exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559  # used as fallback echo
560  shift
561  cat <<EOF
562$*
563EOF
564  exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$ECHO"; then
572if test "X${echo_test_string+set}" != Xset; then
573# find a string as large as possible, as long as the shell can cope with it
574  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
577       echo_test_string=`eval $cmd` &&
578       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
579    then
580      break
581    fi
582  done
583fi
584
585if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
586   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
587   test "X$echo_testing_string" = "X$echo_test_string"; then
588  :
589else
590  # The Solaris, AIX, and Digital Unix default echo programs unquote
591  # backslashes.  This makes it impossible to quote backslashes using
592  #   echo "$something" | sed 's/\\/\\\\/g'
593  #
594  # So, first we look for a working echo in the user's PATH.
595
596  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597  for dir in $PATH /usr/ucb; do
598    IFS="$lt_save_ifs"
599    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602       test "X$echo_testing_string" = "X$echo_test_string"; then
603      echo="$dir/echo"
604      break
605    fi
606  done
607  IFS="$lt_save_ifs"
608
609  if test "X$echo" = Xecho; then
610    # We didn't find a better echo, so look for alternatives.
611    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
612       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
613       test "X$echo_testing_string" = "X$echo_test_string"; then
614      # This shell has a builtin print -r that does the trick.
615      echo='print -r'
616    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
617	 test "X$CONFIG_SHELL" != X/bin/ksh; then
618      # If we have ksh, try running configure again with it.
619      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620      export ORIGINAL_CONFIG_SHELL
621      CONFIG_SHELL=/bin/ksh
622      export CONFIG_SHELL
623      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624    else
625      # Try using printf.
626      echo='printf %s\n'
627      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
628	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
629	 test "X$echo_testing_string" = "X$echo_test_string"; then
630	# Cool, printf works
631	:
632      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633	   test "X$echo_testing_string" = 'X\t' &&
634	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635	   test "X$echo_testing_string" = "X$echo_test_string"; then
636	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637	export CONFIG_SHELL
638	SHELL="$CONFIG_SHELL"
639	export SHELL
640	echo="$CONFIG_SHELL $0 --fallback-echo"
641      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642	   test "X$echo_testing_string" = 'X\t' &&
643	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644	   test "X$echo_testing_string" = "X$echo_test_string"; then
645	echo="$CONFIG_SHELL $0 --fallback-echo"
646      else
647	# maybe with a smaller string...
648	prev=:
649
650	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
652	  then
653	    break
654	  fi
655	  prev="$cmd"
656	done
657
658	if test "$prev" != 'sed 50q "$0"'; then
659	  echo_test_string=`eval $prev`
660	  export echo_test_string
661	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662	else
663	  # Oops.  We lost completely, so just stick with echo.
664	  echo=echo
665	fi
666      fi
667    fi
668  fi
669fi
670fi
671
672# Copy echo and quote the copy suitably for passing to libtool from
673# the Makefile, instead of quoting the original, which is used later.
674ECHO=$echo
675if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677fi
678
679
680
681
682tagnames=${tagnames+${tagnames},}CXX
683
684tagnames=${tagnames+${tagnames},}F77
685
686test -n "$DJDIR" || exec 7<&0 </dev/null
687exec 6>&1
688
689# Name of the host.
690# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
691# so uname gets run too.
692ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
693
694#
695# Initializations.
696#
697ac_default_prefix=/usr/local
698ac_clean_files=
699ac_config_libobj_dir=.
700LIBOBJS=
701cross_compiling=no
702subdirs=
703MFLAGS=
704MAKEFLAGS=
705
706# Identity of this package.
707PACKAGE_NAME='expat'
708PACKAGE_TARNAME='expat'
709PACKAGE_VERSION='1.95.7'
710PACKAGE_STRING='expat 1.95.7'
711PACKAGE_BUGREPORT='expat-bugs@mail.libexpat.org'
712PACKAGE_URL=''
713
714ac_unique_file="Makefile.in"
715# Factoring default headers for most tests.
716ac_includes_default="\
717#include <stdio.h>
718#ifdef HAVE_SYS_TYPES_H
719# include <sys/types.h>
720#endif
721#ifdef HAVE_SYS_STAT_H
722# include <sys/stat.h>
723#endif
724#ifdef STDC_HEADERS
725# include <stdlib.h>
726# include <stddef.h>
727#else
728# ifdef HAVE_STDLIB_H
729#  include <stdlib.h>
730# endif
731#endif
732#ifdef HAVE_STRING_H
733# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734#  include <memory.h>
735# endif
736# include <string.h>
737#endif
738#ifdef HAVE_STRINGS_H
739# include <strings.h>
740#endif
741#ifdef HAVE_INTTYPES_H
742# include <inttypes.h>
743#endif
744#ifdef HAVE_STDINT_H
745# include <stdint.h>
746#endif
747#ifdef HAVE_UNISTD_H
748# include <unistd.h>
749#endif"
750
751ac_subst_vars='LTLIBOBJS
752LIBOBJS
753INSTALL_DATA
754INSTALL_SCRIPT
755INSTALL_PROGRAM
756LIBAGE
757LIBREVISION
758LIBCURRENT
759LIBTOOL
760ac_ct_F77
761FFLAGS
762F77
763CXXCPP
764ac_ct_CXX
765CXXFLAGS
766CXX
767CPP
768OBJDUMP
769AS
770DLLTOOL
771NMEDIT
772DSYMUTIL
773STRIP
774RANLIB
775AR
776ECHO
777LN_S
778EGREP
779GREP
780SED
781OBJEXT
782EXEEXT
783ac_ct_CC
784CPPFLAGS
785LDFLAGS
786CFLAGS
787CC
788target_os
789target_vendor
790target_cpu
791target
792host_os
793host_vendor
794host_cpu
795host
796build_os
797build_vendor
798build_cpu
799build
800target_alias
801host_alias
802build_alias
803LIBS
804ECHO_T
805ECHO_N
806ECHO_C
807DEFS
808mandir
809localedir
810libdir
811psdir
812pdfdir
813dvidir
814htmldir
815infodir
816docdir
817oldincludedir
818includedir
819localstatedir
820sharedstatedir
821sysconfdir
822datadir
823datarootdir
824libexecdir
825sbindir
826bindir
827program_transform_name
828prefix
829exec_prefix
830PACKAGE_URL
831PACKAGE_BUGREPORT
832PACKAGE_STRING
833PACKAGE_VERSION
834PACKAGE_TARNAME
835PACKAGE_NAME
836PATH_SEPARATOR
837SHELL'
838ac_subst_files=''
839ac_user_opts='
840enable_option_checking
841enable_shared
842enable_static
843enable_fast_install
844with_gnu_ld
845enable_libtool_lock
846with_pic
847with_tags
848'
849      ac_precious_vars='build_alias
850host_alias
851target_alias
852CC
853CFLAGS
854LDFLAGS
855LIBS
856CPPFLAGS
857CPP
858CXX
859CXXFLAGS
860CCC
861CXXCPP
862F77
863FFLAGS'
864
865
866# Initialize some variables set by options.
867ac_init_help=
868ac_init_version=false
869ac_unrecognized_opts=
870ac_unrecognized_sep=
871# The variables have the same names as the options, with
872# dashes changed to underlines.
873cache_file=/dev/null
874exec_prefix=NONE
875no_create=
876no_recursion=
877prefix=NONE
878program_prefix=NONE
879program_suffix=NONE
880program_transform_name=s,x,x,
881silent=
882site=
883srcdir=
884verbose=
885x_includes=NONE
886x_libraries=NONE
887
888# Installation directory options.
889# These are left unexpanded so users can "make install exec_prefix=/foo"
890# and all the variables that are supposed to be based on exec_prefix
891# by default will actually change.
892# Use braces instead of parens because sh, perl, etc. also accept them.
893# (The list follows the same order as the GNU Coding Standards.)
894bindir='${exec_prefix}/bin'
895sbindir='${exec_prefix}/sbin'
896libexecdir='${exec_prefix}/libexec'
897datarootdir='${prefix}/share'
898datadir='${datarootdir}'
899sysconfdir='${prefix}/etc'
900sharedstatedir='${prefix}/com'
901localstatedir='${prefix}/var'
902includedir='${prefix}/include'
903oldincludedir='/usr/include'
904docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905infodir='${datarootdir}/info'
906htmldir='${docdir}'
907dvidir='${docdir}'
908pdfdir='${docdir}'
909psdir='${docdir}'
910libdir='${exec_prefix}/lib'
911localedir='${datarootdir}/locale'
912mandir='${datarootdir}/man'
913
914ac_prev=
915ac_dashdash=
916for ac_option
917do
918  # If the previous option needs an argument, assign it.
919  if test -n "$ac_prev"; then
920    eval $ac_prev=\$ac_option
921    ac_prev=
922    continue
923  fi
924
925  case $ac_option in
926  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927  *=)   ac_optarg= ;;
928  *)    ac_optarg=yes ;;
929  esac
930
931  # Accept the important Cygnus configure options, so we can diagnose typos.
932
933  case $ac_dashdash$ac_option in
934  --)
935    ac_dashdash=yes ;;
936
937  -bindir | --bindir | --bindi | --bind | --bin | --bi)
938    ac_prev=bindir ;;
939  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
940    bindir=$ac_optarg ;;
941
942  -build | --build | --buil | --bui | --bu)
943    ac_prev=build_alias ;;
944  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
945    build_alias=$ac_optarg ;;
946
947  -cache-file | --cache-file | --cache-fil | --cache-fi \
948  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
949    ac_prev=cache_file ;;
950  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
951  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
952    cache_file=$ac_optarg ;;
953
954  --config-cache | -C)
955    cache_file=config.cache ;;
956
957  -datadir | --datadir | --datadi | --datad)
958    ac_prev=datadir ;;
959  -datadir=* | --datadir=* | --datadi=* | --datad=*)
960    datadir=$ac_optarg ;;
961
962  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
963  | --dataroo | --dataro | --datar)
964    ac_prev=datarootdir ;;
965  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
966  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
967    datarootdir=$ac_optarg ;;
968
969  -disable-* | --disable-*)
970    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
971    # Reject names that are not valid shell variable names.
972    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973      as_fn_error $? "invalid feature name: $ac_useropt"
974    ac_useropt_orig=$ac_useropt
975    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976    case $ac_user_opts in
977      *"
978"enable_$ac_useropt"
979"*) ;;
980      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981	 ac_unrecognized_sep=', ';;
982    esac
983    eval enable_$ac_useropt=no ;;
984
985  -docdir | --docdir | --docdi | --doc | --do)
986    ac_prev=docdir ;;
987  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988    docdir=$ac_optarg ;;
989
990  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991    ac_prev=dvidir ;;
992  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993    dvidir=$ac_optarg ;;
994
995  -enable-* | --enable-*)
996    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997    # Reject names that are not valid shell variable names.
998    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999      as_fn_error $? "invalid feature name: $ac_useropt"
1000    ac_useropt_orig=$ac_useropt
1001    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002    case $ac_user_opts in
1003      *"
1004"enable_$ac_useropt"
1005"*) ;;
1006      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007	 ac_unrecognized_sep=', ';;
1008    esac
1009    eval enable_$ac_useropt=\$ac_optarg ;;
1010
1011  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013  | --exec | --exe | --ex)
1014    ac_prev=exec_prefix ;;
1015  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017  | --exec=* | --exe=* | --ex=*)
1018    exec_prefix=$ac_optarg ;;
1019
1020  -gas | --gas | --ga | --g)
1021    # Obsolete; use --with-gas.
1022    with_gas=yes ;;
1023
1024  -help | --help | --hel | --he | -h)
1025    ac_init_help=long ;;
1026  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027    ac_init_help=recursive ;;
1028  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029    ac_init_help=short ;;
1030
1031  -host | --host | --hos | --ho)
1032    ac_prev=host_alias ;;
1033  -host=* | --host=* | --hos=* | --ho=*)
1034    host_alias=$ac_optarg ;;
1035
1036  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037    ac_prev=htmldir ;;
1038  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039  | --ht=*)
1040    htmldir=$ac_optarg ;;
1041
1042  -includedir | --includedir | --includedi | --included | --include \
1043  | --includ | --inclu | --incl | --inc)
1044    ac_prev=includedir ;;
1045  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046  | --includ=* | --inclu=* | --incl=* | --inc=*)
1047    includedir=$ac_optarg ;;
1048
1049  -infodir | --infodir | --infodi | --infod | --info | --inf)
1050    ac_prev=infodir ;;
1051  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052    infodir=$ac_optarg ;;
1053
1054  -libdir | --libdir | --libdi | --libd)
1055    ac_prev=libdir ;;
1056  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057    libdir=$ac_optarg ;;
1058
1059  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060  | --libexe | --libex | --libe)
1061    ac_prev=libexecdir ;;
1062  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063  | --libexe=* | --libex=* | --libe=*)
1064    libexecdir=$ac_optarg ;;
1065
1066  -localedir | --localedir | --localedi | --localed | --locale)
1067    ac_prev=localedir ;;
1068  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069    localedir=$ac_optarg ;;
1070
1071  -localstatedir | --localstatedir | --localstatedi | --localstated \
1072  | --localstate | --localstat | --localsta | --localst | --locals)
1073    ac_prev=localstatedir ;;
1074  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076    localstatedir=$ac_optarg ;;
1077
1078  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079    ac_prev=mandir ;;
1080  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081    mandir=$ac_optarg ;;
1082
1083  -nfp | --nfp | --nf)
1084    # Obsolete; use --without-fp.
1085    with_fp=no ;;
1086
1087  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088  | --no-cr | --no-c | -n)
1089    no_create=yes ;;
1090
1091  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093    no_recursion=yes ;;
1094
1095  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097  | --oldin | --oldi | --old | --ol | --o)
1098    ac_prev=oldincludedir ;;
1099  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102    oldincludedir=$ac_optarg ;;
1103
1104  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105    ac_prev=prefix ;;
1106  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107    prefix=$ac_optarg ;;
1108
1109  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110  | --program-pre | --program-pr | --program-p)
1111    ac_prev=program_prefix ;;
1112  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114    program_prefix=$ac_optarg ;;
1115
1116  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117  | --program-suf | --program-su | --program-s)
1118    ac_prev=program_suffix ;;
1119  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121    program_suffix=$ac_optarg ;;
1122
1123  -program-transform-name | --program-transform-name \
1124  | --program-transform-nam | --program-transform-na \
1125  | --program-transform-n | --program-transform- \
1126  | --program-transform | --program-transfor \
1127  | --program-transfo | --program-transf \
1128  | --program-trans | --program-tran \
1129  | --progr-tra | --program-tr | --program-t)
1130    ac_prev=program_transform_name ;;
1131  -program-transform-name=* | --program-transform-name=* \
1132  | --program-transform-nam=* | --program-transform-na=* \
1133  | --program-transform-n=* | --program-transform-=* \
1134  | --program-transform=* | --program-transfor=* \
1135  | --program-transfo=* | --program-transf=* \
1136  | --program-trans=* | --program-tran=* \
1137  | --progr-tra=* | --program-tr=* | --program-t=*)
1138    program_transform_name=$ac_optarg ;;
1139
1140  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141    ac_prev=pdfdir ;;
1142  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143    pdfdir=$ac_optarg ;;
1144
1145  -psdir | --psdir | --psdi | --psd | --ps)
1146    ac_prev=psdir ;;
1147  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148    psdir=$ac_optarg ;;
1149
1150  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151  | -silent | --silent | --silen | --sile | --sil)
1152    silent=yes ;;
1153
1154  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155    ac_prev=sbindir ;;
1156  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157  | --sbi=* | --sb=*)
1158    sbindir=$ac_optarg ;;
1159
1160  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162  | --sharedst | --shareds | --shared | --share | --shar \
1163  | --sha | --sh)
1164    ac_prev=sharedstatedir ;;
1165  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168  | --sha=* | --sh=*)
1169    sharedstatedir=$ac_optarg ;;
1170
1171  -site | --site | --sit)
1172    ac_prev=site ;;
1173  -site=* | --site=* | --sit=*)
1174    site=$ac_optarg ;;
1175
1176  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177    ac_prev=srcdir ;;
1178  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179    srcdir=$ac_optarg ;;
1180
1181  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182  | --syscon | --sysco | --sysc | --sys | --sy)
1183    ac_prev=sysconfdir ;;
1184  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186    sysconfdir=$ac_optarg ;;
1187
1188  -target | --target | --targe | --targ | --tar | --ta | --t)
1189    ac_prev=target_alias ;;
1190  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191    target_alias=$ac_optarg ;;
1192
1193  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194    verbose=yes ;;
1195
1196  -version | --version | --versio | --versi | --vers | -V)
1197    ac_init_version=: ;;
1198
1199  -with-* | --with-*)
1200    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201    # Reject names that are not valid shell variable names.
1202    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203      as_fn_error $? "invalid package name: $ac_useropt"
1204    ac_useropt_orig=$ac_useropt
1205    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206    case $ac_user_opts in
1207      *"
1208"with_$ac_useropt"
1209"*) ;;
1210      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1211	 ac_unrecognized_sep=', ';;
1212    esac
1213    eval with_$ac_useropt=\$ac_optarg ;;
1214
1215  -without-* | --without-*)
1216    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217    # Reject names that are not valid shell variable names.
1218    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219      as_fn_error $? "invalid package name: $ac_useropt"
1220    ac_useropt_orig=$ac_useropt
1221    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222    case $ac_user_opts in
1223      *"
1224"with_$ac_useropt"
1225"*) ;;
1226      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227	 ac_unrecognized_sep=', ';;
1228    esac
1229    eval with_$ac_useropt=no ;;
1230
1231  --x)
1232    # Obsolete; use --with-x.
1233    with_x=yes ;;
1234
1235  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236  | --x-incl | --x-inc | --x-in | --x-i)
1237    ac_prev=x_includes ;;
1238  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240    x_includes=$ac_optarg ;;
1241
1242  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244    ac_prev=x_libraries ;;
1245  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247    x_libraries=$ac_optarg ;;
1248
1249  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1250Try \`$0 --help' for more information"
1251    ;;
1252
1253  *=*)
1254    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255    # Reject names that are not valid shell variable names.
1256    case $ac_envvar in #(
1257      '' | [0-9]* | *[!_$as_cr_alnum]* )
1258      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1259    esac
1260    eval $ac_envvar=\$ac_optarg
1261    export $ac_envvar ;;
1262
1263  *)
1264    # FIXME: should be removed in autoconf 3.0.
1265    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1269    ;;
1270
1271  esac
1272done
1273
1274if test -n "$ac_prev"; then
1275  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276  as_fn_error $? "missing argument to $ac_option"
1277fi
1278
1279if test -n "$ac_unrecognized_opts"; then
1280  case $enable_option_checking in
1281    no) ;;
1282    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1283    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1284  esac
1285fi
1286
1287# Check all directory arguments for consistency.
1288for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289		datadir sysconfdir sharedstatedir localstatedir includedir \
1290		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291		libdir localedir mandir
1292do
1293  eval ac_val=\$$ac_var
1294  # Remove trailing slashes.
1295  case $ac_val in
1296    */ )
1297      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1298      eval $ac_var=\$ac_val;;
1299  esac
1300  # Be sure to have absolute directory names.
1301  case $ac_val in
1302    [\\/$]* | ?:[\\/]* )  continue;;
1303    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304  esac
1305  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1306done
1307
1308# There might be people who depend on the old broken behavior: `$host'
1309# used to hold the argument of --host etc.
1310# FIXME: To remove some day.
1311build=$build_alias
1312host=$host_alias
1313target=$target_alias
1314
1315# FIXME: To remove some day.
1316if test "x$host_alias" != x; then
1317  if test "x$build_alias" = x; then
1318    cross_compiling=maybe
1319    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1320    If a cross compiler is detected then cross compile mode will be used" >&2
1321  elif test "x$build_alias" != "x$host_alias"; then
1322    cross_compiling=yes
1323  fi
1324fi
1325
1326ac_tool_prefix=
1327test -n "$host_alias" && ac_tool_prefix=$host_alias-
1328
1329test "$silent" = yes && exec 6>/dev/null
1330
1331
1332ac_pwd=`pwd` && test -n "$ac_pwd" &&
1333ac_ls_di=`ls -di .` &&
1334ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1335  as_fn_error $? "working directory cannot be determined"
1336test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1337  as_fn_error $? "pwd does not report name of working directory"
1338
1339
1340# Find the source files, if location was not specified.
1341if test -z "$srcdir"; then
1342  ac_srcdir_defaulted=yes
1343  # Try the directory containing this script, then the parent directory.
1344  ac_confdir=`$as_dirname -- "$as_myself" ||
1345$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1346	 X"$as_myself" : 'X\(//\)[^/]' \| \
1347	 X"$as_myself" : 'X\(//\)$' \| \
1348	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1349$as_echo X"$as_myself" |
1350    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351	    s//\1/
1352	    q
1353	  }
1354	  /^X\(\/\/\)[^/].*/{
1355	    s//\1/
1356	    q
1357	  }
1358	  /^X\(\/\/\)$/{
1359	    s//\1/
1360	    q
1361	  }
1362	  /^X\(\/\).*/{
1363	    s//\1/
1364	    q
1365	  }
1366	  s/.*/./; q'`
1367  srcdir=$ac_confdir
1368  if test ! -r "$srcdir/$ac_unique_file"; then
1369    srcdir=..
1370  fi
1371else
1372  ac_srcdir_defaulted=no
1373fi
1374if test ! -r "$srcdir/$ac_unique_file"; then
1375  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1376  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1377fi
1378ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1379ac_abs_confdir=`(
1380	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1381	pwd)`
1382# When building in place, set srcdir=.
1383if test "$ac_abs_confdir" = "$ac_pwd"; then
1384  srcdir=.
1385fi
1386# Remove unnecessary trailing slashes from srcdir.
1387# Double slashes in file names in object file debugging info
1388# mess up M-x gdb in Emacs.
1389case $srcdir in
1390*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1391esac
1392for ac_var in $ac_precious_vars; do
1393  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1394  eval ac_env_${ac_var}_value=\$${ac_var}
1395  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1396  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1397done
1398
1399#
1400# Report the --help message.
1401#
1402if test "$ac_init_help" = "long"; then
1403  # Omit some internal or obsolete options to make the list less imposing.
1404  # This message is too long to be a string in the A/UX 3.1 sh.
1405  cat <<_ACEOF
1406\`configure' configures expat 1.95.7 to adapt to many kinds of systems.
1407
1408Usage: $0 [OPTION]... [VAR=VALUE]...
1409
1410To assign environment variables (e.g., CC, CFLAGS...), specify them as
1411VAR=VALUE.  See below for descriptions of some of the useful variables.
1412
1413Defaults for the options are specified in brackets.
1414
1415Configuration:
1416  -h, --help              display this help and exit
1417      --help=short        display options specific to this package
1418      --help=recursive    display the short help of all the included packages
1419  -V, --version           display version information and exit
1420  -q, --quiet, --silent   do not print \`checking ...' messages
1421      --cache-file=FILE   cache test results in FILE [disabled]
1422  -C, --config-cache      alias for \`--cache-file=config.cache'
1423  -n, --no-create         do not create output files
1424      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1425
1426Installation directories:
1427  --prefix=PREFIX         install architecture-independent files in PREFIX
1428                          [$ac_default_prefix]
1429  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1430                          [PREFIX]
1431
1432By default, \`make install' will install all the files in
1433\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1434an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1435for instance \`--prefix=\$HOME'.
1436
1437For better control, use the options below.
1438
1439Fine tuning of the installation directories:
1440  --bindir=DIR            user executables [EPREFIX/bin]
1441  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1442  --libexecdir=DIR        program executables [EPREFIX/libexec]
1443  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1444  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1445  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1446  --libdir=DIR            object code libraries [EPREFIX/lib]
1447  --includedir=DIR        C header files [PREFIX/include]
1448  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1449  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1450  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1451  --infodir=DIR           info documentation [DATAROOTDIR/info]
1452  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1453  --mandir=DIR            man documentation [DATAROOTDIR/man]
1454  --docdir=DIR            documentation root [DATAROOTDIR/doc/expat]
1455  --htmldir=DIR           html documentation [DOCDIR]
1456  --dvidir=DIR            dvi documentation [DOCDIR]
1457  --pdfdir=DIR            pdf documentation [DOCDIR]
1458  --psdir=DIR             ps documentation [DOCDIR]
1459_ACEOF
1460
1461  cat <<\_ACEOF
1462
1463System types:
1464  --build=BUILD     configure for building on BUILD [guessed]
1465  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1466  --target=TARGET   configure for building compilers for TARGET [HOST]
1467_ACEOF
1468fi
1469
1470if test -n "$ac_init_help"; then
1471  case $ac_init_help in
1472     short | recursive ) echo "Configuration of expat 1.95.7:";;
1473   esac
1474  cat <<\_ACEOF
1475
1476Optional Features:
1477  --disable-option-checking  ignore unrecognized --enable/--with options
1478  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1479  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1480  --enable-shared[=PKGS]  build shared libraries [default=yes]
1481  --enable-static[=PKGS]  build static libraries [default=yes]
1482  --enable-fast-install[=PKGS]
1483                          optimize for fast installation [default=yes]
1484  --disable-libtool-lock  avoid locking (might break parallel builds)
1485
1486Optional Packages:
1487  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1488  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1489  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1490  --with-pic              try to use only PIC/non-PIC objects [default=use
1491                          both]
1492  --with-tags[=TAGS]      include additional configurations [automatic]
1493
1494Some influential environment variables:
1495  CC          C compiler command
1496  CFLAGS      C compiler flags
1497  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1498              nonstandard directory <lib dir>
1499  LIBS        libraries to pass to the linker, e.g. -l<library>
1500  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1501              you have headers in a nonstandard directory <include dir>
1502  CPP         C preprocessor
1503  CXX         C++ compiler command
1504  CXXFLAGS    C++ compiler flags
1505  CXXCPP      C++ preprocessor
1506  F77         Fortran 77 compiler command
1507  FFLAGS      Fortran 77 compiler flags
1508
1509Use these variables to override the choices made by `configure' or to help
1510it to find libraries and programs with nonstandard names/locations.
1511
1512Report bugs to <expat-bugs@mail.libexpat.org>.
1513_ACEOF
1514ac_status=$?
1515fi
1516
1517if test "$ac_init_help" = "recursive"; then
1518  # If there are subdirs, report their specific --help.
1519  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1520    test -d "$ac_dir" ||
1521      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1522      continue
1523    ac_builddir=.
1524
1525case "$ac_dir" in
1526.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527*)
1528  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1529  # A ".." for each directory in $ac_dir_suffix.
1530  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1531  case $ac_top_builddir_sub in
1532  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534  esac ;;
1535esac
1536ac_abs_top_builddir=$ac_pwd
1537ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538# for backward compatibility:
1539ac_top_builddir=$ac_top_build_prefix
1540
1541case $srcdir in
1542  .)  # We are building in place.
1543    ac_srcdir=.
1544    ac_top_srcdir=$ac_top_builddir_sub
1545    ac_abs_top_srcdir=$ac_pwd ;;
1546  [\\/]* | ?:[\\/]* )  # Absolute name.
1547    ac_srcdir=$srcdir$ac_dir_suffix;
1548    ac_top_srcdir=$srcdir
1549    ac_abs_top_srcdir=$srcdir ;;
1550  *) # Relative name.
1551    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552    ac_top_srcdir=$ac_top_build_prefix$srcdir
1553    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1554esac
1555ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1556
1557    cd "$ac_dir" || { ac_status=$?; continue; }
1558    # Check for guested configure.
1559    if test -f "$ac_srcdir/configure.gnu"; then
1560      echo &&
1561      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562    elif test -f "$ac_srcdir/configure"; then
1563      echo &&
1564      $SHELL "$ac_srcdir/configure" --help=recursive
1565    else
1566      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1567    fi || ac_status=$?
1568    cd "$ac_pwd" || { ac_status=$?; break; }
1569  done
1570fi
1571
1572test -n "$ac_init_help" && exit $ac_status
1573if $ac_init_version; then
1574  cat <<\_ACEOF
1575expat configure 1.95.7
1576generated by GNU Autoconf 2.67
1577
1578Copyright (C) 2010 Free Software Foundation, Inc.
1579This configure script is free software; the Free Software Foundation
1580gives unlimited permission to copy, distribute and modify it.
1581_ACEOF
1582  exit
1583fi
1584
1585## ------------------------ ##
1586## Autoconf initialization. ##
1587## ------------------------ ##
1588
1589# ac_fn_c_try_compile LINENO
1590# --------------------------
1591# Try to compile conftest.$ac_ext, and return whether this succeeded.
1592ac_fn_c_try_compile ()
1593{
1594  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595  rm -f conftest.$ac_objext
1596  if { { ac_try="$ac_compile"
1597case "(($ac_try" in
1598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599  *) ac_try_echo=$ac_try;;
1600esac
1601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602$as_echo "$ac_try_echo"; } >&5
1603  (eval "$ac_compile") 2>conftest.err
1604  ac_status=$?
1605  if test -s conftest.err; then
1606    grep -v '^ *+' conftest.err >conftest.er1
1607    cat conftest.er1 >&5
1608    mv -f conftest.er1 conftest.err
1609  fi
1610  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611  test $ac_status = 0; } && {
1612	 test -z "$ac_c_werror_flag" ||
1613	 test ! -s conftest.err
1614       } && test -s conftest.$ac_objext; then :
1615  ac_retval=0
1616else
1617  $as_echo "$as_me: failed program was:" >&5
1618sed 's/^/| /' conftest.$ac_ext >&5
1619
1620	ac_retval=1
1621fi
1622  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1623  as_fn_set_status $ac_retval
1624
1625} # ac_fn_c_try_compile
1626
1627# ac_fn_c_try_link LINENO
1628# -----------------------
1629# Try to link conftest.$ac_ext, and return whether this succeeded.
1630ac_fn_c_try_link ()
1631{
1632  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633  rm -f conftest.$ac_objext conftest$ac_exeext
1634  if { { ac_try="$ac_link"
1635case "(($ac_try" in
1636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637  *) ac_try_echo=$ac_try;;
1638esac
1639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640$as_echo "$ac_try_echo"; } >&5
1641  (eval "$ac_link") 2>conftest.err
1642  ac_status=$?
1643  if test -s conftest.err; then
1644    grep -v '^ *+' conftest.err >conftest.er1
1645    cat conftest.er1 >&5
1646    mv -f conftest.er1 conftest.err
1647  fi
1648  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649  test $ac_status = 0; } && {
1650	 test -z "$ac_c_werror_flag" ||
1651	 test ! -s conftest.err
1652       } && test -s conftest$ac_exeext && {
1653	 test "$cross_compiling" = yes ||
1654	 $as_test_x conftest$ac_exeext
1655       }; then :
1656  ac_retval=0
1657else
1658  $as_echo "$as_me: failed program was:" >&5
1659sed 's/^/| /' conftest.$ac_ext >&5
1660
1661	ac_retval=1
1662fi
1663  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1664  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1665  # interfere with the next link command; also delete a directory that is
1666  # left behind by Apple's compiler.  We do this before executing the actions.
1667  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1668  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669  as_fn_set_status $ac_retval
1670
1671} # ac_fn_c_try_link
1672
1673# ac_fn_c_try_cpp LINENO
1674# ----------------------
1675# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1676ac_fn_c_try_cpp ()
1677{
1678  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679  if { { ac_try="$ac_cpp conftest.$ac_ext"
1680case "(($ac_try" in
1681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682  *) ac_try_echo=$ac_try;;
1683esac
1684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685$as_echo "$ac_try_echo"; } >&5
1686  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1687  ac_status=$?
1688  if test -s conftest.err; then
1689    grep -v '^ *+' conftest.err >conftest.er1
1690    cat conftest.er1 >&5
1691    mv -f conftest.er1 conftest.err
1692  fi
1693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694  test $ac_status = 0; } > conftest.i && {
1695	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1696	 test ! -s conftest.err
1697       }; then :
1698  ac_retval=0
1699else
1700  $as_echo "$as_me: failed program was:" >&5
1701sed 's/^/| /' conftest.$ac_ext >&5
1702
1703    ac_retval=1
1704fi
1705  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1706  as_fn_set_status $ac_retval
1707
1708} # ac_fn_c_try_cpp
1709
1710# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1711# -------------------------------------------------------
1712# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1713# the include files in INCLUDES and setting the cache variable VAR
1714# accordingly.
1715ac_fn_c_check_header_mongrel ()
1716{
1717  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718  if eval "test \"\${$3+set}\"" = set; then :
1719  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720$as_echo_n "checking for $2... " >&6; }
1721if eval "test \"\${$3+set}\"" = set; then :
1722  $as_echo_n "(cached) " >&6
1723fi
1724eval ac_res=\$$3
1725	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726$as_echo "$ac_res" >&6; }
1727else
1728  # Is the header compilable?
1729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1730$as_echo_n "checking $2 usability... " >&6; }
1731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732/* end confdefs.h.  */
1733$4
1734#include <$2>
1735_ACEOF
1736if ac_fn_c_try_compile "$LINENO"; then :
1737  ac_header_compiler=yes
1738else
1739  ac_header_compiler=no
1740fi
1741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1743$as_echo "$ac_header_compiler" >&6; }
1744
1745# Is the header present?
1746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1747$as_echo_n "checking $2 presence... " >&6; }
1748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749/* end confdefs.h.  */
1750#include <$2>
1751_ACEOF
1752if ac_fn_c_try_cpp "$LINENO"; then :
1753  ac_header_preproc=yes
1754else
1755  ac_header_preproc=no
1756fi
1757rm -f conftest.err conftest.i conftest.$ac_ext
1758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1759$as_echo "$ac_header_preproc" >&6; }
1760
1761# So?  What about this header?
1762case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1763  yes:no: )
1764    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1765$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1766    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1767$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1768    ;;
1769  no:yes:* )
1770    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1771$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1772    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1773$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1774    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1775$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1776    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1777$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1778    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1779$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1780( $as_echo "## ------------------------------------------- ##
1781## Report this to expat-bugs@mail.libexpat.org ##
1782## ------------------------------------------- ##"
1783     ) | sed "s/^/$as_me: WARNING:     /" >&2
1784    ;;
1785esac
1786  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787$as_echo_n "checking for $2... " >&6; }
1788if eval "test \"\${$3+set}\"" = set; then :
1789  $as_echo_n "(cached) " >&6
1790else
1791  eval "$3=\$ac_header_compiler"
1792fi
1793eval ac_res=\$$3
1794	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795$as_echo "$ac_res" >&6; }
1796fi
1797  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798
1799} # ac_fn_c_check_header_mongrel
1800
1801# ac_fn_c_try_run LINENO
1802# ----------------------
1803# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1804# that executables *can* be run.
1805ac_fn_c_try_run ()
1806{
1807  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808  if { { ac_try="$ac_link"
1809case "(($ac_try" in
1810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811  *) ac_try_echo=$ac_try;;
1812esac
1813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814$as_echo "$ac_try_echo"; } >&5
1815  (eval "$ac_link") 2>&5
1816  ac_status=$?
1817  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1819  { { case "(($ac_try" in
1820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821  *) ac_try_echo=$ac_try;;
1822esac
1823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824$as_echo "$ac_try_echo"; } >&5
1825  (eval "$ac_try") 2>&5
1826  ac_status=$?
1827  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828  test $ac_status = 0; }; }; then :
1829  ac_retval=0
1830else
1831  $as_echo "$as_me: program exited with status $ac_status" >&5
1832       $as_echo "$as_me: failed program was:" >&5
1833sed 's/^/| /' conftest.$ac_ext >&5
1834
1835       ac_retval=$ac_status
1836fi
1837  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1838  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1839  as_fn_set_status $ac_retval
1840
1841} # ac_fn_c_try_run
1842
1843# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1844# -------------------------------------------------------
1845# Tests whether HEADER exists and can be compiled using the include files in
1846# INCLUDES, setting the cache variable VAR accordingly.
1847ac_fn_c_check_header_compile ()
1848{
1849  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851$as_echo_n "checking for $2... " >&6; }
1852if eval "test \"\${$3+set}\"" = set; then :
1853  $as_echo_n "(cached) " >&6
1854else
1855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856/* end confdefs.h.  */
1857$4
1858#include <$2>
1859_ACEOF
1860if ac_fn_c_try_compile "$LINENO"; then :
1861  eval "$3=yes"
1862else
1863  eval "$3=no"
1864fi
1865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1866fi
1867eval ac_res=\$$3
1868	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869$as_echo "$ac_res" >&6; }
1870  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871
1872} # ac_fn_c_check_header_compile
1873
1874# ac_fn_c_check_func LINENO FUNC VAR
1875# ----------------------------------
1876# Tests whether FUNC exists, setting the cache variable VAR accordingly
1877ac_fn_c_check_func ()
1878{
1879  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881$as_echo_n "checking for $2... " >&6; }
1882if eval "test \"\${$3+set}\"" = set; then :
1883  $as_echo_n "(cached) " >&6
1884else
1885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886/* end confdefs.h.  */
1887/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1888   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1889#define $2 innocuous_$2
1890
1891/* System header to define __stub macros and hopefully few prototypes,
1892    which can conflict with char $2 (); below.
1893    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1894    <limits.h> exists even on freestanding compilers.  */
1895
1896#ifdef __STDC__
1897# include <limits.h>
1898#else
1899# include <assert.h>
1900#endif
1901
1902#undef $2
1903
1904/* Override any GCC internal prototype to avoid an error.
1905   Use char because int might match the return type of a GCC
1906   builtin and then its argument prototype would still apply.  */
1907#ifdef __cplusplus
1908extern "C"
1909#endif
1910char $2 ();
1911/* The GNU C library defines this for functions which it implements
1912    to always fail with ENOSYS.  Some functions are actually named
1913    something starting with __ and the normal name is an alias.  */
1914#if defined __stub_$2 || defined __stub___$2
1915choke me
1916#endif
1917
1918int
1919main ()
1920{
1921return $2 ();
1922  ;
1923  return 0;
1924}
1925_ACEOF
1926if ac_fn_c_try_link "$LINENO"; then :
1927  eval "$3=yes"
1928else
1929  eval "$3=no"
1930fi
1931rm -f core conftest.err conftest.$ac_objext \
1932    conftest$ac_exeext conftest.$ac_ext
1933fi
1934eval ac_res=\$$3
1935	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936$as_echo "$ac_res" >&6; }
1937  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938
1939} # ac_fn_c_check_func
1940
1941# ac_fn_cxx_try_compile LINENO
1942# ----------------------------
1943# Try to compile conftest.$ac_ext, and return whether this succeeded.
1944ac_fn_cxx_try_compile ()
1945{
1946  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947  rm -f conftest.$ac_objext
1948  if { { ac_try="$ac_compile"
1949case "(($ac_try" in
1950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951  *) ac_try_echo=$ac_try;;
1952esac
1953eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954$as_echo "$ac_try_echo"; } >&5
1955  (eval "$ac_compile") 2>conftest.err
1956  ac_status=$?
1957  if test -s conftest.err; then
1958    grep -v '^ *+' conftest.err >conftest.er1
1959    cat conftest.er1 >&5
1960    mv -f conftest.er1 conftest.err
1961  fi
1962  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963  test $ac_status = 0; } && {
1964	 test -z "$ac_cxx_werror_flag" ||
1965	 test ! -s conftest.err
1966       } && test -s conftest.$ac_objext; then :
1967  ac_retval=0
1968else
1969  $as_echo "$as_me: failed program was:" >&5
1970sed 's/^/| /' conftest.$ac_ext >&5
1971
1972	ac_retval=1
1973fi
1974  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1975  as_fn_set_status $ac_retval
1976
1977} # ac_fn_cxx_try_compile
1978
1979# ac_fn_cxx_try_cpp LINENO
1980# ------------------------
1981# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1982ac_fn_cxx_try_cpp ()
1983{
1984  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985  if { { ac_try="$ac_cpp conftest.$ac_ext"
1986case "(($ac_try" in
1987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988  *) ac_try_echo=$ac_try;;
1989esac
1990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991$as_echo "$ac_try_echo"; } >&5
1992  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1993  ac_status=$?
1994  if test -s conftest.err; then
1995    grep -v '^ *+' conftest.err >conftest.er1
1996    cat conftest.er1 >&5
1997    mv -f conftest.er1 conftest.err
1998  fi
1999  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000  test $ac_status = 0; } > conftest.i && {
2001	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2002	 test ! -s conftest.err
2003       }; then :
2004  ac_retval=0
2005else
2006  $as_echo "$as_me: failed program was:" >&5
2007sed 's/^/| /' conftest.$ac_ext >&5
2008
2009    ac_retval=1
2010fi
2011  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2012  as_fn_set_status $ac_retval
2013
2014} # ac_fn_cxx_try_cpp
2015
2016# ac_fn_cxx_try_link LINENO
2017# -------------------------
2018# Try to link conftest.$ac_ext, and return whether this succeeded.
2019ac_fn_cxx_try_link ()
2020{
2021  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022  rm -f conftest.$ac_objext conftest$ac_exeext
2023  if { { ac_try="$ac_link"
2024case "(($ac_try" in
2025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026  *) ac_try_echo=$ac_try;;
2027esac
2028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029$as_echo "$ac_try_echo"; } >&5
2030  (eval "$ac_link") 2>conftest.err
2031  ac_status=$?
2032  if test -s conftest.err; then
2033    grep -v '^ *+' conftest.err >conftest.er1
2034    cat conftest.er1 >&5
2035    mv -f conftest.er1 conftest.err
2036  fi
2037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038  test $ac_status = 0; } && {
2039	 test -z "$ac_cxx_werror_flag" ||
2040	 test ! -s conftest.err
2041       } && test -s conftest$ac_exeext && {
2042	 test "$cross_compiling" = yes ||
2043	 $as_test_x conftest$ac_exeext
2044       }; then :
2045  ac_retval=0
2046else
2047  $as_echo "$as_me: failed program was:" >&5
2048sed 's/^/| /' conftest.$ac_ext >&5
2049
2050	ac_retval=1
2051fi
2052  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2053  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2054  # interfere with the next link command; also delete a directory that is
2055  # left behind by Apple's compiler.  We do this before executing the actions.
2056  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2057  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058  as_fn_set_status $ac_retval
2059
2060} # ac_fn_cxx_try_link
2061
2062# ac_fn_f77_try_compile LINENO
2063# ----------------------------
2064# Try to compile conftest.$ac_ext, and return whether this succeeded.
2065ac_fn_f77_try_compile ()
2066{
2067  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068  rm -f conftest.$ac_objext
2069  if { { ac_try="$ac_compile"
2070case "(($ac_try" in
2071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2072  *) ac_try_echo=$ac_try;;
2073esac
2074eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2075$as_echo "$ac_try_echo"; } >&5
2076  (eval "$ac_compile") 2>conftest.err
2077  ac_status=$?
2078  if test -s conftest.err; then
2079    grep -v '^ *+' conftest.err >conftest.er1
2080    cat conftest.er1 >&5
2081    mv -f conftest.er1 conftest.err
2082  fi
2083  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2084  test $ac_status = 0; } && {
2085	 test -z "$ac_f77_werror_flag" ||
2086	 test ! -s conftest.err
2087       } && test -s conftest.$ac_objext; then :
2088  ac_retval=0
2089else
2090  $as_echo "$as_me: failed program was:" >&5
2091sed 's/^/| /' conftest.$ac_ext >&5
2092
2093	ac_retval=1
2094fi
2095  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2096  as_fn_set_status $ac_retval
2097
2098} # ac_fn_f77_try_compile
2099
2100# ac_fn_f77_try_link LINENO
2101# -------------------------
2102# Try to link conftest.$ac_ext, and return whether this succeeded.
2103ac_fn_f77_try_link ()
2104{
2105  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2106  rm -f conftest.$ac_objext conftest$ac_exeext
2107  if { { ac_try="$ac_link"
2108case "(($ac_try" in
2109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2110  *) ac_try_echo=$ac_try;;
2111esac
2112eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2113$as_echo "$ac_try_echo"; } >&5
2114  (eval "$ac_link") 2>conftest.err
2115  ac_status=$?
2116  if test -s conftest.err; then
2117    grep -v '^ *+' conftest.err >conftest.er1
2118    cat conftest.er1 >&5
2119    mv -f conftest.er1 conftest.err
2120  fi
2121  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2122  test $ac_status = 0; } && {
2123	 test -z "$ac_f77_werror_flag" ||
2124	 test ! -s conftest.err
2125       } && test -s conftest$ac_exeext && {
2126	 test "$cross_compiling" = yes ||
2127	 $as_test_x conftest$ac_exeext
2128       }; then :
2129  ac_retval=0
2130else
2131  $as_echo "$as_me: failed program was:" >&5
2132sed 's/^/| /' conftest.$ac_ext >&5
2133
2134	ac_retval=1
2135fi
2136  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2137  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2138  # interfere with the next link command; also delete a directory that is
2139  # left behind by Apple's compiler.  We do this before executing the actions.
2140  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2141  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2142  as_fn_set_status $ac_retval
2143
2144} # ac_fn_f77_try_link
2145
2146# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2147# -------------------------------------------
2148# Tests whether TYPE exists after having included INCLUDES, setting cache
2149# variable VAR accordingly.
2150ac_fn_c_check_type ()
2151{
2152  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2154$as_echo_n "checking for $2... " >&6; }
2155if eval "test \"\${$3+set}\"" = set; then :
2156  $as_echo_n "(cached) " >&6
2157else
2158  eval "$3=no"
2159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160/* end confdefs.h.  */
2161$4
2162int
2163main ()
2164{
2165if (sizeof ($2))
2166	 return 0;
2167  ;
2168  return 0;
2169}
2170_ACEOF
2171if ac_fn_c_try_compile "$LINENO"; then :
2172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173/* end confdefs.h.  */
2174$4
2175int
2176main ()
2177{
2178if (sizeof (($2)))
2179	    return 0;
2180  ;
2181  return 0;
2182}
2183_ACEOF
2184if ac_fn_c_try_compile "$LINENO"; then :
2185
2186else
2187  eval "$3=yes"
2188fi
2189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190fi
2191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192fi
2193eval ac_res=\$$3
2194	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195$as_echo "$ac_res" >&6; }
2196  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2197
2198} # ac_fn_c_check_type
2199cat >config.log <<_ACEOF
2200This file contains any messages produced by compilers while
2201running configure, to aid debugging if configure makes a mistake.
2202
2203It was created by expat $as_me 1.95.7, which was
2204generated by GNU Autoconf 2.67.  Invocation command line was
2205
2206  $ $0 $@
2207
2208_ACEOF
2209exec 5>>config.log
2210{
2211cat <<_ASUNAME
2212## --------- ##
2213## Platform. ##
2214## --------- ##
2215
2216hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2217uname -m = `(uname -m) 2>/dev/null || echo unknown`
2218uname -r = `(uname -r) 2>/dev/null || echo unknown`
2219uname -s = `(uname -s) 2>/dev/null || echo unknown`
2220uname -v = `(uname -v) 2>/dev/null || echo unknown`
2221
2222/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2223/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2224
2225/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2226/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2227/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2228/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2229/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2230/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2231/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2232
2233_ASUNAME
2234
2235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236for as_dir in $PATH
2237do
2238  IFS=$as_save_IFS
2239  test -z "$as_dir" && as_dir=.
2240    $as_echo "PATH: $as_dir"
2241  done
2242IFS=$as_save_IFS
2243
2244} >&5
2245
2246cat >&5 <<_ACEOF
2247
2248
2249## ----------- ##
2250## Core tests. ##
2251## ----------- ##
2252
2253_ACEOF
2254
2255
2256# Keep a trace of the command line.
2257# Strip out --no-create and --no-recursion so they do not pile up.
2258# Strip out --silent because we don't want to record it for future runs.
2259# Also quote any args containing shell meta-characters.
2260# Make two passes to allow for proper duplicate-argument suppression.
2261ac_configure_args=
2262ac_configure_args0=
2263ac_configure_args1=
2264ac_must_keep_next=false
2265for ac_pass in 1 2
2266do
2267  for ac_arg
2268  do
2269    case $ac_arg in
2270    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2271    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2272    | -silent | --silent | --silen | --sile | --sil)
2273      continue ;;
2274    *\'*)
2275      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2276    esac
2277    case $ac_pass in
2278    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2279    2)
2280      as_fn_append ac_configure_args1 " '$ac_arg'"
2281      if test $ac_must_keep_next = true; then
2282	ac_must_keep_next=false # Got value, back to normal.
2283      else
2284	case $ac_arg in
2285	  *=* | --config-cache | -C | -disable-* | --disable-* \
2286	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2287	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2288	  | -with-* | --with-* | -without-* | --without-* | --x)
2289	    case "$ac_configure_args0 " in
2290	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2291	    esac
2292	    ;;
2293	  -* ) ac_must_keep_next=true ;;
2294	esac
2295      fi
2296      as_fn_append ac_configure_args " '$ac_arg'"
2297      ;;
2298    esac
2299  done
2300done
2301{ ac_configure_args0=; unset ac_configure_args0;}
2302{ ac_configure_args1=; unset ac_configure_args1;}
2303
2304# When interrupted or exit'd, cleanup temporary files, and complete
2305# config.log.  We remove comments because anyway the quotes in there
2306# would cause problems or look ugly.
2307# WARNING: Use '\'' to represent an apostrophe within the trap.
2308# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2309trap 'exit_status=$?
2310  # Save into config.log some information that might help in debugging.
2311  {
2312    echo
2313
2314    $as_echo "## ---------------- ##
2315## Cache variables. ##
2316## ---------------- ##"
2317    echo
2318    # The following way of writing the cache mishandles newlines in values,
2319(
2320  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2321    eval ac_val=\$$ac_var
2322    case $ac_val in #(
2323    *${as_nl}*)
2324      case $ac_var in #(
2325      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2326$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2327      esac
2328      case $ac_var in #(
2329      _ | IFS | as_nl) ;; #(
2330      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2331      *) { eval $ac_var=; unset $ac_var;} ;;
2332      esac ;;
2333    esac
2334  done
2335  (set) 2>&1 |
2336    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2337    *${as_nl}ac_space=\ *)
2338      sed -n \
2339	"s/'\''/'\''\\\\'\'''\''/g;
2340	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2341      ;; #(
2342    *)
2343      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2344      ;;
2345    esac |
2346    sort
2347)
2348    echo
2349
2350    $as_echo "## ----------------- ##
2351## Output variables. ##
2352## ----------------- ##"
2353    echo
2354    for ac_var in $ac_subst_vars
2355    do
2356      eval ac_val=\$$ac_var
2357      case $ac_val in
2358      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2359      esac
2360      $as_echo "$ac_var='\''$ac_val'\''"
2361    done | sort
2362    echo
2363
2364    if test -n "$ac_subst_files"; then
2365      $as_echo "## ------------------- ##
2366## File substitutions. ##
2367## ------------------- ##"
2368      echo
2369      for ac_var in $ac_subst_files
2370      do
2371	eval ac_val=\$$ac_var
2372	case $ac_val in
2373	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2374	esac
2375	$as_echo "$ac_var='\''$ac_val'\''"
2376      done | sort
2377      echo
2378    fi
2379
2380    if test -s confdefs.h; then
2381      $as_echo "## ----------- ##
2382## confdefs.h. ##
2383## ----------- ##"
2384      echo
2385      cat confdefs.h
2386      echo
2387    fi
2388    test "$ac_signal" != 0 &&
2389      $as_echo "$as_me: caught signal $ac_signal"
2390    $as_echo "$as_me: exit $exit_status"
2391  } >&5
2392  rm -f core *.core core.conftest.* &&
2393    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2394    exit $exit_status
2395' 0
2396for ac_signal in 1 2 13 15; do
2397  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2398done
2399ac_signal=0
2400
2401# confdefs.h avoids OS command line length limits that DEFS can exceed.
2402rm -f -r conftest* confdefs.h
2403
2404$as_echo "/* confdefs.h */" > confdefs.h
2405
2406# Predefined preprocessor variables.
2407
2408cat >>confdefs.h <<_ACEOF
2409#define PACKAGE_NAME "$PACKAGE_NAME"
2410_ACEOF
2411
2412cat >>confdefs.h <<_ACEOF
2413#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2414_ACEOF
2415
2416cat >>confdefs.h <<_ACEOF
2417#define PACKAGE_VERSION "$PACKAGE_VERSION"
2418_ACEOF
2419
2420cat >>confdefs.h <<_ACEOF
2421#define PACKAGE_STRING "$PACKAGE_STRING"
2422_ACEOF
2423
2424cat >>confdefs.h <<_ACEOF
2425#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2426_ACEOF
2427
2428cat >>confdefs.h <<_ACEOF
2429#define PACKAGE_URL "$PACKAGE_URL"
2430_ACEOF
2431
2432
2433# Let the site file select an alternate cache file if it wants to.
2434# Prefer an explicitly selected file to automatically selected ones.
2435ac_site_file1=NONE
2436ac_site_file2=NONE
2437if test -n "$CONFIG_SITE"; then
2438  # We do not want a PATH search for config.site.
2439  case $CONFIG_SITE in #((
2440    -*)  ac_site_file1=./$CONFIG_SITE;;
2441    */*) ac_site_file1=$CONFIG_SITE;;
2442    *)   ac_site_file1=./$CONFIG_SITE;;
2443  esac
2444elif test "x$prefix" != xNONE; then
2445  ac_site_file1=$prefix/share/config.site
2446  ac_site_file2=$prefix/etc/config.site
2447else
2448  ac_site_file1=$ac_default_prefix/share/config.site
2449  ac_site_file2=$ac_default_prefix/etc/config.site
2450fi
2451for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2452do
2453  test "x$ac_site_file" = xNONE && continue
2454  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2455    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2456$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2457    sed 's/^/| /' "$ac_site_file" >&5
2458    . "$ac_site_file" \
2459      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2461as_fn_error $? "failed to load site script $ac_site_file
2462See \`config.log' for more details" "$LINENO" 5; }
2463  fi
2464done
2465
2466if test -r "$cache_file"; then
2467  # Some versions of bash will fail to source /dev/null (special files
2468  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2469  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2470    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2471$as_echo "$as_me: loading cache $cache_file" >&6;}
2472    case $cache_file in
2473      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2474      *)                      . "./$cache_file";;
2475    esac
2476  fi
2477else
2478  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2479$as_echo "$as_me: creating cache $cache_file" >&6;}
2480  >$cache_file
2481fi
2482
2483# Check that the precious variables saved in the cache have kept the same
2484# value.
2485ac_cache_corrupted=false
2486for ac_var in $ac_precious_vars; do
2487  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2488  eval ac_new_set=\$ac_env_${ac_var}_set
2489  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2490  eval ac_new_val=\$ac_env_${ac_var}_value
2491  case $ac_old_set,$ac_new_set in
2492    set,)
2493      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2494$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2495      ac_cache_corrupted=: ;;
2496    ,set)
2497      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2498$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2499      ac_cache_corrupted=: ;;
2500    ,);;
2501    *)
2502      if test "x$ac_old_val" != "x$ac_new_val"; then
2503	# differences in whitespace do not lead to failure.
2504	ac_old_val_w=`echo x $ac_old_val`
2505	ac_new_val_w=`echo x $ac_new_val`
2506	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2507	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2508$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2509	  ac_cache_corrupted=:
2510	else
2511	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2512$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2513	  eval $ac_var=\$ac_old_val
2514	fi
2515	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2516$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2517	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2518$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2519      fi;;
2520  esac
2521  # Pass precious variables to config.status.
2522  if test "$ac_new_set" = set; then
2523    case $ac_new_val in
2524    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2525    *) ac_arg=$ac_var=$ac_new_val ;;
2526    esac
2527    case " $ac_configure_args " in
2528      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2529      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2530    esac
2531  fi
2532done
2533if $ac_cache_corrupted; then
2534  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2536  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2537$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2538  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2539fi
2540## -------------------- ##
2541## Main body of script. ##
2542## -------------------- ##
2543
2544ac_ext=c
2545ac_cpp='$CPP $CPPFLAGS'
2546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2548ac_compiler_gnu=$ac_cv_c_compiler_gnu
2549
2550
2551
2552
2553ac_aux_dir=
2554for ac_dir in conftools "$srcdir"/conftools; do
2555  if test -f "$ac_dir/install-sh"; then
2556    ac_aux_dir=$ac_dir
2557    ac_install_sh="$ac_aux_dir/install-sh -c"
2558    break
2559  elif test -f "$ac_dir/install.sh"; then
2560    ac_aux_dir=$ac_dir
2561    ac_install_sh="$ac_aux_dir/install.sh -c"
2562    break
2563  elif test -f "$ac_dir/shtool"; then
2564    ac_aux_dir=$ac_dir
2565    ac_install_sh="$ac_aux_dir/shtool install -c"
2566    break
2567  fi
2568done
2569if test -z "$ac_aux_dir"; then
2570  as_fn_error $? "cannot find install-sh, install.sh, or shtool in conftools \"$srcdir\"/conftools" "$LINENO" 5
2571fi
2572
2573# These three variables are undocumented and unsupported,
2574# and are intended to be withdrawn in a future Autoconf release.
2575# They can cause serious problems if a builder's source tree is in a directory
2576# whose full name contains unusual characters.
2577ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2578ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2579ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2580
2581
2582
2583
2584
2585LIBCURRENT=5
2586LIBREVISION=0
2587LIBAGE=5
2588
2589ac_config_headers="$ac_config_headers expat_config.h"
2590
2591
2592
2593
2594# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2595## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007,
2596## 2008  Free Software Foundation, Inc.
2597## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
2598##
2599## This file is free software; the Free Software Foundation gives
2600## unlimited permission to copy and/or distribute it, with or without
2601## modifications, as long as this notice is preserved.
2602
2603# serial 52 AC_PROG_LIBTOOL
2604
2605
2606# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
2607# -----------------------------------------------------------
2608# If this macro is not defined by Autoconf, define it here.
2609
2610
2611
2612# AC_PROG_LIBTOOL
2613# ---------------
2614# AC_PROG_LIBTOOL
2615
2616
2617# _AC_PROG_LIBTOOL
2618# ----------------
2619# _AC_PROG_LIBTOOL
2620
2621
2622# AC_LIBTOOL_SETUP
2623# ----------------
2624# AC_LIBTOOL_SETUP
2625
2626
2627# _LT_AC_SYS_COMPILER
2628# -------------------
2629# _LT_AC_SYS_COMPILER
2630
2631
2632# _LT_CC_BASENAME(CC)
2633# -------------------
2634# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
2635
2636
2637
2638# _LT_COMPILER_BOILERPLATE
2639# ------------------------
2640# Check for compiler boilerplate output or warnings with
2641# the simple compiler test code.
2642# _LT_COMPILER_BOILERPLATE
2643
2644
2645# _LT_LINKER_BOILERPLATE
2646# ----------------------
2647# Check for linker boilerplate output or warnings with
2648# the simple link test code.
2649# _LT_LINKER_BOILERPLATE
2650
2651# _LT_REQUIRED_DARWIN_CHECKS
2652# --------------------------
2653# Check for some things on darwin
2654
2655
2656# _LT_AC_SYS_LIBPATH_AIX
2657# ----------------------
2658# Links a minimal program and checks the executable
2659# for the system default hardcoded library path. In most cases,
2660# this is /usr/lib:/lib, but when the MPI compilers are used
2661# the location of the communication and MPI libs are included too.
2662# If we don't find anything, use the default library path according
2663# to the aix ld manual.
2664# _LT_AC_SYS_LIBPATH_AIX
2665
2666
2667# _LT_AC_SHELL_INIT(ARG)
2668# ----------------------
2669# _LT_AC_SHELL_INIT
2670
2671
2672# _LT_AC_PROG_ECHO_BACKSLASH
2673# --------------------------
2674# Add some code to the start of the generated configure script which
2675# will find an echo command which doesn't interpret backslashes.
2676# _LT_AC_PROG_ECHO_BACKSLASH
2677
2678
2679# _LT_AC_LOCK
2680# -----------
2681# _LT_AC_LOCK
2682
2683
2684# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2685#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2686# ----------------------------------------------------------------
2687# Check whether the given compiler option works
2688# AC_LIBTOOL_COMPILER_OPTION
2689
2690
2691# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2692#                          [ACTION-SUCCESS], [ACTION-FAILURE])
2693# ------------------------------------------------------------
2694# Check whether the given compiler option works
2695# AC_LIBTOOL_LINKER_OPTION
2696
2697
2698# AC_LIBTOOL_SYS_MAX_CMD_LEN
2699# --------------------------
2700# AC_LIBTOOL_SYS_MAX_CMD_LEN
2701
2702
2703# _LT_AC_CHECK_DLFCN
2704# ------------------
2705# _LT_AC_CHECK_DLFCN
2706
2707
2708# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2709#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2710# ---------------------------------------------------------------------
2711# _LT_AC_TRY_DLOPEN_SELF
2712
2713
2714# AC_LIBTOOL_DLOPEN_SELF
2715# ----------------------
2716# AC_LIBTOOL_DLOPEN_SELF
2717
2718
2719# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
2720# ---------------------------------
2721# Check to see if options -c and -o are simultaneously supported by compiler
2722# AC_LIBTOOL_PROG_CC_C_O
2723
2724
2725# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
2726# -----------------------------------------
2727# Check to see if we can do hard links to lock some files if needed
2728# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
2729
2730
2731# AC_LIBTOOL_OBJDIR
2732# -----------------
2733# AC_LIBTOOL_OBJDIR
2734
2735
2736# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2737# ----------------------------------------------
2738# Check hardcoding attributes.
2739# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2740
2741
2742# AC_LIBTOOL_SYS_LIB_STRIP
2743# ------------------------
2744# AC_LIBTOOL_SYS_LIB_STRIP
2745
2746
2747# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2748# -----------------------------
2749# PORTME Fill in your ld.so characteristics
2750# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2751
2752
2753# _LT_AC_TAGCONFIG
2754# ----------------
2755# _LT_AC_TAGCONFIG
2756
2757
2758# AC_LIBTOOL_DLOPEN
2759# -----------------
2760# enable checks for dlopen support
2761# AC_LIBTOOL_DLOPEN
2762
2763
2764# AC_LIBTOOL_WIN32_DLL
2765# --------------------
2766# declare package support for building win32 DLLs
2767# AC_LIBTOOL_WIN32_DLL
2768
2769
2770# AC_ENABLE_SHARED([DEFAULT])
2771# ---------------------------
2772# implement the --enable-shared flag
2773# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2774# AC_ENABLE_SHARED
2775
2776
2777# AC_DISABLE_SHARED
2778# -----------------
2779# set the default shared flag to --disable-shared
2780# AC_DISABLE_SHARED
2781
2782
2783# AC_ENABLE_STATIC([DEFAULT])
2784# ---------------------------
2785# implement the --enable-static flag
2786# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2787# AC_ENABLE_STATIC
2788
2789
2790# AC_DISABLE_STATIC
2791# -----------------
2792# set the default static flag to --disable-static
2793# AC_DISABLE_STATIC
2794
2795
2796# AC_ENABLE_FAST_INSTALL([DEFAULT])
2797# ---------------------------------
2798# implement the --enable-fast-install flag
2799# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2800# AC_ENABLE_FAST_INSTALL
2801
2802
2803# AC_DISABLE_FAST_INSTALL
2804# -----------------------
2805# set the default to --disable-fast-install
2806# AC_DISABLE_FAST_INSTALL
2807
2808
2809# AC_LIBTOOL_PICMODE([MODE])
2810# --------------------------
2811# implement the --with-pic flag
2812# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
2813# AC_LIBTOOL_PICMODE
2814
2815
2816# AC_PROG_EGREP
2817# -------------
2818# This is predefined starting with Autoconf 2.54, so this conditional
2819# definition can be removed once we require Autoconf 2.54 or later.
2820
2821
2822
2823# AC_PATH_TOOL_PREFIX
2824# -------------------
2825# find a file program which can recognize shared library
2826# AC_PATH_TOOL_PREFIX
2827
2828
2829# AC_PATH_MAGIC
2830# -------------
2831# find a file program which can recognize a shared library
2832# AC_PATH_MAGIC
2833
2834
2835# AC_PROG_LD
2836# ----------
2837# find the pathname to the GNU or non-GNU linker
2838# AC_PROG_LD
2839
2840
2841# AC_PROG_LD_GNU
2842# --------------
2843# AC_PROG_LD_GNU
2844
2845
2846# AC_PROG_LD_RELOAD_FLAG
2847# ----------------------
2848# find reload flag for linker
2849#   -- PORTME Some linkers may need a different reload flag.
2850# AC_PROG_LD_RELOAD_FLAG
2851
2852
2853# AC_DEPLIBS_CHECK_METHOD
2854# -----------------------
2855# how to check for library dependencies
2856#  -- PORTME fill in with the dynamic library characteristics
2857# AC_DEPLIBS_CHECK_METHOD
2858
2859
2860# AC_PROG_NM
2861# ----------
2862# find the pathname to a BSD-compatible name lister
2863# AC_PROG_NM
2864
2865
2866# AC_CHECK_LIBM
2867# -------------
2868# check for math library
2869# AC_CHECK_LIBM
2870
2871
2872# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2873# -----------------------------------
2874# sets LIBLTDL to the link flags for the libltdl convenience library and
2875# LTDLINCL to the include flags for the libltdl header and adds
2876# --enable-ltdl-convenience to the configure arguments.  Note that
2877# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
2878# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
2879# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2880# (note the single quotes!).  If your package is not flat and you're not
2881# using automake, define top_builddir and top_srcdir appropriately in
2882# the Makefiles.
2883# AC_LIBLTDL_CONVENIENCE
2884
2885
2886# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2887# -----------------------------------
2888# sets LIBLTDL to the link flags for the libltdl installable library and
2889# LTDLINCL to the include flags for the libltdl header and adds
2890# --enable-ltdl-install to the configure arguments.  Note that
2891# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
2892# and an installed libltdl is not found, it is assumed to be `libltdl'.
2893# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2894# '${top_srcdir}/' (note the single quotes!).  If your package is not
2895# flat and you're not using automake, define top_builddir and top_srcdir
2896# appropriately in the Makefiles.
2897# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2898# AC_LIBLTDL_INSTALLABLE
2899
2900
2901# AC_LIBTOOL_CXX
2902# --------------
2903# enable support for C++ libraries
2904# AC_LIBTOOL_CXX
2905
2906
2907# _LT_AC_LANG_CXX
2908# ---------------
2909# _LT_AC_LANG_CXX
2910
2911# _LT_AC_PROG_CXXCPP
2912# ------------------
2913# _LT_AC_PROG_CXXCPP
2914
2915# AC_LIBTOOL_F77
2916# --------------
2917# enable support for Fortran 77 libraries
2918# AC_LIBTOOL_F77
2919
2920
2921# _LT_AC_LANG_F77
2922# ---------------
2923# _LT_AC_LANG_F77
2924
2925
2926# AC_LIBTOOL_GCJ
2927# --------------
2928# enable support for GCJ libraries
2929# AC_LIBTOOL_GCJ
2930
2931
2932# _LT_AC_LANG_GCJ
2933# ---------------
2934# _LT_AC_LANG_GCJ
2935
2936
2937# AC_LIBTOOL_RC
2938# -------------
2939# enable support for Windows resource files
2940# AC_LIBTOOL_RC
2941
2942
2943# AC_LIBTOOL_LANG_C_CONFIG
2944# ------------------------
2945# Ensure that the configuration vars for the C compiler are
2946# suitably defined.  Those variables are subsequently used by
2947# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2948
2949# AC_LIBTOOL_LANG_C_CONFIG
2950
2951
2952# AC_LIBTOOL_LANG_CXX_CONFIG
2953# --------------------------
2954# Ensure that the configuration vars for the C compiler are
2955# suitably defined.  Those variables are subsequently used by
2956# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2957
2958# AC_LIBTOOL_LANG_CXX_CONFIG
2959
2960# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
2961# ------------------------------------
2962# Figure out "hidden" library dependencies from verbose
2963# compiler output when linking a shared library.
2964# Parse the compiler output and extract the necessary
2965# objects, libraries and library flags.
2966# AC_LIBTOOL_POSTDEP_PREDEP
2967
2968# AC_LIBTOOL_LANG_F77_CONFIG
2969# --------------------------
2970# Ensure that the configuration vars for the C compiler are
2971# suitably defined.  Those variables are subsequently used by
2972# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2973
2974# AC_LIBTOOL_LANG_F77_CONFIG
2975
2976
2977# AC_LIBTOOL_LANG_GCJ_CONFIG
2978# --------------------------
2979# Ensure that the configuration vars for the C compiler are
2980# suitably defined.  Those variables are subsequently used by
2981# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2982
2983# AC_LIBTOOL_LANG_GCJ_CONFIG
2984
2985
2986# AC_LIBTOOL_LANG_RC_CONFIG
2987# -------------------------
2988# Ensure that the configuration vars for the Windows resource compiler are
2989# suitably defined.  Those variables are subsequently used by
2990# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2991
2992# AC_LIBTOOL_LANG_RC_CONFIG
2993
2994
2995# AC_LIBTOOL_CONFIG([TAGNAME])
2996# ----------------------------
2997# If TAGNAME is not passed, then create an initial libtool script
2998# with a default configuration from the untagged config vars.  Otherwise
2999# add code to config.status for appending the configuration named by
3000# TAGNAME from the matching tagged config vars.
3001# AC_LIBTOOL_CONFIG
3002
3003
3004# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
3005# -------------------------------------------
3006# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
3007
3008
3009# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3010# ---------------------------------
3011 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3012
3013
3014# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
3015# ---------------------------------------
3016
3017
3018
3019# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
3020# ------------------------------------
3021# See if the linker supports building shared libraries.
3022# AC_LIBTOOL_PROG_LD_SHLIBS
3023
3024
3025# _LT_AC_FILE_LTDLL_C
3026# -------------------
3027# Be careful that the start marker always follows a newline.
3028# _LT_AC_FILE_LTDLL_C
3029
3030
3031# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
3032# ---------------------------------
3033
3034
3035
3036# old names
3037
3038
3039
3040
3041
3042
3043
3044
3045# This is just to silence aclocal about the macro not being used
3046
3047
3048
3049
3050
3051
3052
3053# Cheap backport of AS_EXECUTABLE_P and required macros
3054# from Autoconf 2.59; we should not use $as_executable_p directly.
3055
3056# _AS_TEST_PREPARE
3057# ----------------
3058# _AS_TEST_PREPARE
3059
3060# AS_EXECUTABLE_P
3061# ---------------
3062# Check whether a file is executable.
3063# AS_EXECUTABLE_P
3064
3065############################################################
3066# NOTE: This macro has been submitted for inclusion into   #
3067#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
3068#  a released version of Autoconf we should remove this    #
3069#  macro and use it instead.                               #
3070############################################################
3071# LT_AC_PROG_SED
3072# --------------
3073# Check for a fully-functional sed program, that truncates
3074# as few characters as possible.  Prefer GNU sed if found.
3075
3076
3077
3078
3079
3080
3081
3082
3083# Make sure we can run config.sub.
3084$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3085  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3086
3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3088$as_echo_n "checking build system type... " >&6; }
3089if test "${ac_cv_build+set}" = set; then :
3090  $as_echo_n "(cached) " >&6
3091else
3092  ac_build_alias=$build_alias
3093test "x$ac_build_alias" = x &&
3094  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3095test "x$ac_build_alias" = x &&
3096  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3097ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3098  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3099
3100fi
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3102$as_echo "$ac_cv_build" >&6; }
3103case $ac_cv_build in
3104*-*-*) ;;
3105*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3106esac
3107build=$ac_cv_build
3108ac_save_IFS=$IFS; IFS='-'
3109set x $ac_cv_build
3110shift
3111build_cpu=$1
3112build_vendor=$2
3113shift; shift
3114# Remember, the first character of IFS is used to create $*,
3115# except with old shells:
3116build_os=$*
3117IFS=$ac_save_IFS
3118case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3119
3120
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3122$as_echo_n "checking host system type... " >&6; }
3123if test "${ac_cv_host+set}" = set; then :
3124  $as_echo_n "(cached) " >&6
3125else
3126  if test "x$host_alias" = x; then
3127  ac_cv_host=$ac_cv_build
3128else
3129  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3130    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3131fi
3132
3133fi
3134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3135$as_echo "$ac_cv_host" >&6; }
3136case $ac_cv_host in
3137*-*-*) ;;
3138*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3139esac
3140host=$ac_cv_host
3141ac_save_IFS=$IFS; IFS='-'
3142set x $ac_cv_host
3143shift
3144host_cpu=$1
3145host_vendor=$2
3146shift; shift
3147# Remember, the first character of IFS is used to create $*,
3148# except with old shells:
3149host_os=$*
3150IFS=$ac_save_IFS
3151case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3152
3153
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3155$as_echo_n "checking target system type... " >&6; }
3156if test "${ac_cv_target+set}" = set; then :
3157  $as_echo_n "(cached) " >&6
3158else
3159  if test "x$target_alias" = x; then
3160  ac_cv_target=$ac_cv_host
3161else
3162  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3163    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3164fi
3165
3166fi
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3168$as_echo "$ac_cv_target" >&6; }
3169case $ac_cv_target in
3170*-*-*) ;;
3171*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3172esac
3173target=$ac_cv_target
3174ac_save_IFS=$IFS; IFS='-'
3175set x $ac_cv_target
3176shift
3177target_cpu=$1
3178target_vendor=$2
3179shift; shift
3180# Remember, the first character of IFS is used to create $*,
3181# except with old shells:
3182target_os=$*
3183IFS=$ac_save_IFS
3184case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3185
3186
3187# The aliases save the names the user supplied, while $host etc.
3188# will get canonicalized.
3189test -n "$target_alias" &&
3190  test "$program_prefix$program_suffix$program_transform_name" = \
3191    NONENONEs,x,x, &&
3192  program_prefix=${target_alias}-
3193
3194
3195case "$host_os" in
3196*os2*)
3197    # Use a custom made libtool replacement
3198    echo Using aplibtool
3199    LIBTOOL="$srcdir/../../../apr/build/aplibtool"
3200    ;;
3201*)
3202
3203
3204# Check whether --enable-shared was given.
3205if test "${enable_shared+set}" = set; then :
3206  enableval=$enable_shared; p=${PACKAGE-default}
3207    case $enableval in
3208    yes) enable_shared=yes ;;
3209    no) enable_shared=no ;;
3210    *)
3211      enable_shared=no
3212      # Look at the argument we got.  We use all the common list separators.
3213      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3214      for pkg in $enableval; do
3215	IFS="$lt_save_ifs"
3216	if test "X$pkg" = "X$p"; then
3217	  enable_shared=yes
3218	fi
3219      done
3220      IFS="$lt_save_ifs"
3221      ;;
3222    esac
3223else
3224  enable_shared=yes
3225fi
3226
3227
3228# Check whether --enable-static was given.
3229if test "${enable_static+set}" = set; then :
3230  enableval=$enable_static; p=${PACKAGE-default}
3231    case $enableval in
3232    yes) enable_static=yes ;;
3233    no) enable_static=no ;;
3234    *)
3235     enable_static=no
3236      # Look at the argument we got.  We use all the common list separators.
3237      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3238      for pkg in $enableval; do
3239	IFS="$lt_save_ifs"
3240	if test "X$pkg" = "X$p"; then
3241	  enable_static=yes
3242	fi
3243      done
3244      IFS="$lt_save_ifs"
3245      ;;
3246    esac
3247else
3248  enable_static=yes
3249fi
3250
3251
3252# Check whether --enable-fast-install was given.
3253if test "${enable_fast_install+set}" = set; then :
3254  enableval=$enable_fast_install; p=${PACKAGE-default}
3255    case $enableval in
3256    yes) enable_fast_install=yes ;;
3257    no) enable_fast_install=no ;;
3258    *)
3259      enable_fast_install=no
3260      # Look at the argument we got.  We use all the common list separators.
3261      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3262      for pkg in $enableval; do
3263	IFS="$lt_save_ifs"
3264	if test "X$pkg" = "X$p"; then
3265	  enable_fast_install=yes
3266	fi
3267      done
3268      IFS="$lt_save_ifs"
3269      ;;
3270    esac
3271else
3272  enable_fast_install=yes
3273fi
3274
3275
3276ac_ext=c
3277ac_cpp='$CPP $CPPFLAGS'
3278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3280ac_compiler_gnu=$ac_cv_c_compiler_gnu
3281if test -n "$ac_tool_prefix"; then
3282  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3283set dummy ${ac_tool_prefix}gcc; ac_word=$2
3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3285$as_echo_n "checking for $ac_word... " >&6; }
3286if test "${ac_cv_prog_CC+set}" = set; then :
3287  $as_echo_n "(cached) " >&6
3288else
3289  if test -n "$CC"; then
3290  ac_cv_prog_CC="$CC" # Let the user override the test.
3291else
3292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293for as_dir in $PATH
3294do
3295  IFS=$as_save_IFS
3296  test -z "$as_dir" && as_dir=.
3297    for ac_exec_ext in '' $ac_executable_extensions; do
3298  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3299    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3300    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301    break 2
3302  fi
3303done
3304  done
3305IFS=$as_save_IFS
3306
3307fi
3308fi
3309CC=$ac_cv_prog_CC
3310if test -n "$CC"; then
3311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3312$as_echo "$CC" >&6; }
3313else
3314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315$as_echo "no" >&6; }
3316fi
3317
3318
3319fi
3320if test -z "$ac_cv_prog_CC"; then
3321  ac_ct_CC=$CC
3322  # Extract the first word of "gcc", so it can be a program name with args.
3323set dummy gcc; ac_word=$2
3324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3325$as_echo_n "checking for $ac_word... " >&6; }
3326if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3327  $as_echo_n "(cached) " >&6
3328else
3329  if test -n "$ac_ct_CC"; then
3330  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3331else
3332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333for as_dir in $PATH
3334do
3335  IFS=$as_save_IFS
3336  test -z "$as_dir" && as_dir=.
3337    for ac_exec_ext in '' $ac_executable_extensions; do
3338  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3339    ac_cv_prog_ac_ct_CC="gcc"
3340    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3341    break 2
3342  fi
3343done
3344  done
3345IFS=$as_save_IFS
3346
3347fi
3348fi
3349ac_ct_CC=$ac_cv_prog_ac_ct_CC
3350if test -n "$ac_ct_CC"; then
3351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3352$as_echo "$ac_ct_CC" >&6; }
3353else
3354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355$as_echo "no" >&6; }
3356fi
3357
3358  if test "x$ac_ct_CC" = x; then
3359    CC=""
3360  else
3361    case $cross_compiling:$ac_tool_warned in
3362yes:)
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3365ac_tool_warned=yes ;;
3366esac
3367    CC=$ac_ct_CC
3368  fi
3369else
3370  CC="$ac_cv_prog_CC"
3371fi
3372
3373if test -z "$CC"; then
3374          if test -n "$ac_tool_prefix"; then
3375    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3376set dummy ${ac_tool_prefix}cc; ac_word=$2
3377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378$as_echo_n "checking for $ac_word... " >&6; }
3379if test "${ac_cv_prog_CC+set}" = set; then :
3380  $as_echo_n "(cached) " >&6
3381else
3382  if test -n "$CC"; then
3383  ac_cv_prog_CC="$CC" # Let the user override the test.
3384else
3385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386for as_dir in $PATH
3387do
3388  IFS=$as_save_IFS
3389  test -z "$as_dir" && as_dir=.
3390    for ac_exec_ext in '' $ac_executable_extensions; do
3391  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3392    ac_cv_prog_CC="${ac_tool_prefix}cc"
3393    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394    break 2
3395  fi
3396done
3397  done
3398IFS=$as_save_IFS
3399
3400fi
3401fi
3402CC=$ac_cv_prog_CC
3403if test -n "$CC"; then
3404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3405$as_echo "$CC" >&6; }
3406else
3407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408$as_echo "no" >&6; }
3409fi
3410
3411
3412  fi
3413fi
3414if test -z "$CC"; then
3415  # Extract the first word of "cc", so it can be a program name with args.
3416set dummy cc; ac_word=$2
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418$as_echo_n "checking for $ac_word... " >&6; }
3419if test "${ac_cv_prog_CC+set}" = set; then :
3420  $as_echo_n "(cached) " >&6
3421else
3422  if test -n "$CC"; then
3423  ac_cv_prog_CC="$CC" # Let the user override the test.
3424else
3425  ac_prog_rejected=no
3426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427for as_dir in $PATH
3428do
3429  IFS=$as_save_IFS
3430  test -z "$as_dir" && as_dir=.
3431    for ac_exec_ext in '' $ac_executable_extensions; do
3432  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3433    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3434       ac_prog_rejected=yes
3435       continue
3436     fi
3437    ac_cv_prog_CC="cc"
3438    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439    break 2
3440  fi
3441done
3442  done
3443IFS=$as_save_IFS
3444
3445if test $ac_prog_rejected = yes; then
3446  # We found a bogon in the path, so make sure we never use it.
3447  set dummy $ac_cv_prog_CC
3448  shift
3449  if test $# != 0; then
3450    # We chose a different compiler from the bogus one.
3451    # However, it has the same basename, so the bogon will be chosen
3452    # first if we set CC to just the basename; use the full file name.
3453    shift
3454    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3455  fi
3456fi
3457fi
3458fi
3459CC=$ac_cv_prog_CC
3460if test -n "$CC"; then
3461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3462$as_echo "$CC" >&6; }
3463else
3464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465$as_echo "no" >&6; }
3466fi
3467
3468
3469fi
3470if test -z "$CC"; then
3471  if test -n "$ac_tool_prefix"; then
3472  for ac_prog in cl.exe
3473  do
3474    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3475set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3477$as_echo_n "checking for $ac_word... " >&6; }
3478if test "${ac_cv_prog_CC+set}" = set; then :
3479  $as_echo_n "(cached) " >&6
3480else
3481  if test -n "$CC"; then
3482  ac_cv_prog_CC="$CC" # Let the user override the test.
3483else
3484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485for as_dir in $PATH
3486do
3487  IFS=$as_save_IFS
3488  test -z "$as_dir" && as_dir=.
3489    for ac_exec_ext in '' $ac_executable_extensions; do
3490  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3491    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3492    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3493    break 2
3494  fi
3495done
3496  done
3497IFS=$as_save_IFS
3498
3499fi
3500fi
3501CC=$ac_cv_prog_CC
3502if test -n "$CC"; then
3503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3504$as_echo "$CC" >&6; }
3505else
3506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507$as_echo "no" >&6; }
3508fi
3509
3510
3511    test -n "$CC" && break
3512  done
3513fi
3514if test -z "$CC"; then
3515  ac_ct_CC=$CC
3516  for ac_prog in cl.exe
3517do
3518  # Extract the first word of "$ac_prog", so it can be a program name with args.
3519set dummy $ac_prog; ac_word=$2
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521$as_echo_n "checking for $ac_word... " >&6; }
3522if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3523  $as_echo_n "(cached) " >&6
3524else
3525  if test -n "$ac_ct_CC"; then
3526  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3527else
3528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529for as_dir in $PATH
3530do
3531  IFS=$as_save_IFS
3532  test -z "$as_dir" && as_dir=.
3533    for ac_exec_ext in '' $ac_executable_extensions; do
3534  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3535    ac_cv_prog_ac_ct_CC="$ac_prog"
3536    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537    break 2
3538  fi
3539done
3540  done
3541IFS=$as_save_IFS
3542
3543fi
3544fi
3545ac_ct_CC=$ac_cv_prog_ac_ct_CC
3546if test -n "$ac_ct_CC"; then
3547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3548$as_echo "$ac_ct_CC" >&6; }
3549else
3550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551$as_echo "no" >&6; }
3552fi
3553
3554
3555  test -n "$ac_ct_CC" && break
3556done
3557
3558  if test "x$ac_ct_CC" = x; then
3559    CC=""
3560  else
3561    case $cross_compiling:$ac_tool_warned in
3562yes:)
3563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3565ac_tool_warned=yes ;;
3566esac
3567    CC=$ac_ct_CC
3568  fi
3569fi
3570
3571fi
3572
3573
3574test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576as_fn_error $? "no acceptable C compiler found in \$PATH
3577See \`config.log' for more details" "$LINENO" 5; }
3578
3579# Provide some information about the compiler.
3580$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3581set X $ac_compile
3582ac_compiler=$2
3583for ac_option in --version -v -V -qversion; do
3584  { { ac_try="$ac_compiler $ac_option >&5"
3585case "(($ac_try" in
3586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587  *) ac_try_echo=$ac_try;;
3588esac
3589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590$as_echo "$ac_try_echo"; } >&5
3591  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3592  ac_status=$?
3593  if test -s conftest.err; then
3594    sed '10a\
3595... rest of stderr output deleted ...
3596         10q' conftest.err >conftest.er1
3597    cat conftest.er1 >&5
3598  fi
3599  rm -f conftest.er1 conftest.err
3600  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601  test $ac_status = 0; }
3602done
3603
3604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605/* end confdefs.h.  */
3606
3607int
3608main ()
3609{
3610
3611  ;
3612  return 0;
3613}
3614_ACEOF
3615ac_clean_files_save=$ac_clean_files
3616ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3617# Try to create an executable without -o first, disregard a.out.
3618# It will help us diagnose broken compilers, and finding out an intuition
3619# of exeext.
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3621$as_echo_n "checking whether the C compiler works... " >&6; }
3622ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3623
3624# The possible output files:
3625ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3626
3627ac_rmfiles=
3628for ac_file in $ac_files
3629do
3630  case $ac_file in
3631    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3632    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3633  esac
3634done
3635rm -f $ac_rmfiles
3636
3637if { { ac_try="$ac_link_default"
3638case "(($ac_try" in
3639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640  *) ac_try_echo=$ac_try;;
3641esac
3642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3643$as_echo "$ac_try_echo"; } >&5
3644  (eval "$ac_link_default") 2>&5
3645  ac_status=$?
3646  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647  test $ac_status = 0; }; then :
3648  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3649# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3650# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3651# so that the user can short-circuit this test for compilers unknown to
3652# Autoconf.
3653for ac_file in $ac_files ''
3654do
3655  test -f "$ac_file" || continue
3656  case $ac_file in
3657    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3658	;;
3659    [ab].out )
3660	# We found the default executable, but exeext='' is most
3661	# certainly right.
3662	break;;
3663    *.* )
3664	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3665	then :; else
3666	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3667	fi
3668	# We set ac_cv_exeext here because the later test for it is not
3669	# safe: cross compilers may not add the suffix if given an `-o'
3670	# argument, so we may need to know it at that point already.
3671	# Even if this section looks crufty: it has the advantage of
3672	# actually working.
3673	break;;
3674    * )
3675	break;;
3676  esac
3677done
3678test "$ac_cv_exeext" = no && ac_cv_exeext=
3679
3680else
3681  ac_file=''
3682fi
3683if test -z "$ac_file"; then :
3684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685$as_echo "no" >&6; }
3686$as_echo "$as_me: failed program was:" >&5
3687sed 's/^/| /' conftest.$ac_ext >&5
3688
3689{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691as_fn_error 77 "C compiler cannot create executables
3692See \`config.log' for more details" "$LINENO" 5; }
3693else
3694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3695$as_echo "yes" >&6; }
3696fi
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3698$as_echo_n "checking for C compiler default output file name... " >&6; }
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3700$as_echo "$ac_file" >&6; }
3701ac_exeext=$ac_cv_exeext
3702
3703rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3704ac_clean_files=$ac_clean_files_save
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3706$as_echo_n "checking for suffix of executables... " >&6; }
3707if { { ac_try="$ac_link"
3708case "(($ac_try" in
3709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710  *) ac_try_echo=$ac_try;;
3711esac
3712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713$as_echo "$ac_try_echo"; } >&5
3714  (eval "$ac_link") 2>&5
3715  ac_status=$?
3716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717  test $ac_status = 0; }; then :
3718  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3719# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3720# work properly (i.e., refer to `conftest.exe'), while it won't with
3721# `rm'.
3722for ac_file in conftest.exe conftest conftest.*; do
3723  test -f "$ac_file" || continue
3724  case $ac_file in
3725    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3726    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3727	  break;;
3728    * ) break;;
3729  esac
3730done
3731else
3732  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3733$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3734as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3735See \`config.log' for more details" "$LINENO" 5; }
3736fi
3737rm -f conftest conftest$ac_cv_exeext
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3739$as_echo "$ac_cv_exeext" >&6; }
3740
3741rm -f conftest.$ac_ext
3742EXEEXT=$ac_cv_exeext
3743ac_exeext=$EXEEXT
3744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745/* end confdefs.h.  */
3746#include <stdio.h>
3747int
3748main ()
3749{
3750FILE *f = fopen ("conftest.out", "w");
3751 return ferror (f) || fclose (f) != 0;
3752
3753  ;
3754  return 0;
3755}
3756_ACEOF
3757ac_clean_files="$ac_clean_files conftest.out"
3758# Check that the compiler produces executables we can run.  If not, either
3759# the compiler is broken, or we cross compile.
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3761$as_echo_n "checking whether we are cross compiling... " >&6; }
3762if test "$cross_compiling" != yes; then
3763  { { ac_try="$ac_link"
3764case "(($ac_try" in
3765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766  *) ac_try_echo=$ac_try;;
3767esac
3768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769$as_echo "$ac_try_echo"; } >&5
3770  (eval "$ac_link") 2>&5
3771  ac_status=$?
3772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773  test $ac_status = 0; }
3774  if { ac_try='./conftest$ac_cv_exeext'
3775  { { case "(($ac_try" in
3776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777  *) ac_try_echo=$ac_try;;
3778esac
3779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780$as_echo "$ac_try_echo"; } >&5
3781  (eval "$ac_try") 2>&5
3782  ac_status=$?
3783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784  test $ac_status = 0; }; }; then
3785    cross_compiling=no
3786  else
3787    if test "$cross_compiling" = maybe; then
3788	cross_compiling=yes
3789    else
3790	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3792as_fn_error $? "cannot run C compiled programs.
3793If you meant to cross compile, use \`--host'.
3794See \`config.log' for more details" "$LINENO" 5; }
3795    fi
3796  fi
3797fi
3798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3799$as_echo "$cross_compiling" >&6; }
3800
3801rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3802ac_clean_files=$ac_clean_files_save
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3804$as_echo_n "checking for suffix of object files... " >&6; }
3805if test "${ac_cv_objext+set}" = set; then :
3806  $as_echo_n "(cached) " >&6
3807else
3808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809/* end confdefs.h.  */
3810
3811int
3812main ()
3813{
3814
3815  ;
3816  return 0;
3817}
3818_ACEOF
3819rm -f conftest.o conftest.obj
3820if { { ac_try="$ac_compile"
3821case "(($ac_try" in
3822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823  *) ac_try_echo=$ac_try;;
3824esac
3825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826$as_echo "$ac_try_echo"; } >&5
3827  (eval "$ac_compile") 2>&5
3828  ac_status=$?
3829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3830  test $ac_status = 0; }; then :
3831  for ac_file in conftest.o conftest.obj conftest.*; do
3832  test -f "$ac_file" || continue;
3833  case $ac_file in
3834    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3835    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3836       break;;
3837  esac
3838done
3839else
3840  $as_echo "$as_me: failed program was:" >&5
3841sed 's/^/| /' conftest.$ac_ext >&5
3842
3843{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3844$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3845as_fn_error $? "cannot compute suffix of object files: cannot compile
3846See \`config.log' for more details" "$LINENO" 5; }
3847fi
3848rm -f conftest.$ac_cv_objext conftest.$ac_ext
3849fi
3850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3851$as_echo "$ac_cv_objext" >&6; }
3852OBJEXT=$ac_cv_objext
3853ac_objext=$OBJEXT
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3855$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3856if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3857  $as_echo_n "(cached) " >&6
3858else
3859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860/* end confdefs.h.  */
3861
3862int
3863main ()
3864{
3865#ifndef __GNUC__
3866       choke me
3867#endif
3868
3869  ;
3870  return 0;
3871}
3872_ACEOF
3873if ac_fn_c_try_compile "$LINENO"; then :
3874  ac_compiler_gnu=yes
3875else
3876  ac_compiler_gnu=no
3877fi
3878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3879ac_cv_c_compiler_gnu=$ac_compiler_gnu
3880
3881fi
3882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3883$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3884if test $ac_compiler_gnu = yes; then
3885  GCC=yes
3886else
3887  GCC=
3888fi
3889ac_test_CFLAGS=${CFLAGS+set}
3890ac_save_CFLAGS=$CFLAGS
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3892$as_echo_n "checking whether $CC accepts -g... " >&6; }
3893if test "${ac_cv_prog_cc_g+set}" = set; then :
3894  $as_echo_n "(cached) " >&6
3895else
3896  ac_save_c_werror_flag=$ac_c_werror_flag
3897   ac_c_werror_flag=yes
3898   ac_cv_prog_cc_g=no
3899   CFLAGS="-g"
3900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901/* end confdefs.h.  */
3902
3903int
3904main ()
3905{
3906
3907  ;
3908  return 0;
3909}
3910_ACEOF
3911if ac_fn_c_try_compile "$LINENO"; then :
3912  ac_cv_prog_cc_g=yes
3913else
3914  CFLAGS=""
3915      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916/* end confdefs.h.  */
3917
3918int
3919main ()
3920{
3921
3922  ;
3923  return 0;
3924}
3925_ACEOF
3926if ac_fn_c_try_compile "$LINENO"; then :
3927
3928else
3929  ac_c_werror_flag=$ac_save_c_werror_flag
3930	 CFLAGS="-g"
3931	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932/* end confdefs.h.  */
3933
3934int
3935main ()
3936{
3937
3938  ;
3939  return 0;
3940}
3941_ACEOF
3942if ac_fn_c_try_compile "$LINENO"; then :
3943  ac_cv_prog_cc_g=yes
3944fi
3945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946fi
3947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3948fi
3949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950   ac_c_werror_flag=$ac_save_c_werror_flag
3951fi
3952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3953$as_echo "$ac_cv_prog_cc_g" >&6; }
3954if test "$ac_test_CFLAGS" = set; then
3955  CFLAGS=$ac_save_CFLAGS
3956elif test $ac_cv_prog_cc_g = yes; then
3957  if test "$GCC" = yes; then
3958    CFLAGS="-g -O2"
3959  else
3960    CFLAGS="-g"
3961  fi
3962else
3963  if test "$GCC" = yes; then
3964    CFLAGS="-O2"
3965  else
3966    CFLAGS=
3967  fi
3968fi
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3970$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3971if test "${ac_cv_prog_cc_c89+set}" = set; then :
3972  $as_echo_n "(cached) " >&6
3973else
3974  ac_cv_prog_cc_c89=no
3975ac_save_CC=$CC
3976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977/* end confdefs.h.  */
3978#include <stdarg.h>
3979#include <stdio.h>
3980#include <sys/types.h>
3981#include <sys/stat.h>
3982/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3983struct buf { int x; };
3984FILE * (*rcsopen) (struct buf *, struct stat *, int);
3985static char *e (p, i)
3986     char **p;
3987     int i;
3988{
3989  return p[i];
3990}
3991static char *f (char * (*g) (char **, int), char **p, ...)
3992{
3993  char *s;
3994  va_list v;
3995  va_start (v,p);
3996  s = g (p, va_arg (v,int));
3997  va_end (v);
3998  return s;
3999}
4000
4001/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4002   function prototypes and stuff, but not '\xHH' hex character constants.
4003   These don't provoke an error unfortunately, instead are silently treated
4004   as 'x'.  The following induces an error, until -std is added to get
4005   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4006   array size at least.  It's necessary to write '\x00'==0 to get something
4007   that's true only with -std.  */
4008int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4009
4010/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4011   inside strings and character constants.  */
4012#define FOO(x) 'x'
4013int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4014
4015int test (int i, double x);
4016struct s1 {int (*f) (int a);};
4017struct s2 {int (*f) (double a);};
4018int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4019int argc;
4020char **argv;
4021int
4022main ()
4023{
4024return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4025  ;
4026  return 0;
4027}
4028_ACEOF
4029for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4030	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4031do
4032  CC="$ac_save_CC $ac_arg"
4033  if ac_fn_c_try_compile "$LINENO"; then :
4034  ac_cv_prog_cc_c89=$ac_arg
4035fi
4036rm -f core conftest.err conftest.$ac_objext
4037  test "x$ac_cv_prog_cc_c89" != "xno" && break
4038done
4039rm -f conftest.$ac_ext
4040CC=$ac_save_CC
4041
4042fi
4043# AC_CACHE_VAL
4044case "x$ac_cv_prog_cc_c89" in
4045  x)
4046    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4047$as_echo "none needed" >&6; } ;;
4048  xno)
4049    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4050$as_echo "unsupported" >&6; } ;;
4051  *)
4052    CC="$CC $ac_cv_prog_cc_c89"
4053    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4054$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4055esac
4056if test "x$ac_cv_prog_cc_c89" != xno; then :
4057
4058fi
4059
4060ac_ext=c
4061ac_cpp='$CPP $CPPFLAGS'
4062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4064ac_compiler_gnu=$ac_cv_c_compiler_gnu
4065
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4067$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4068if test "${lt_cv_path_SED+set}" = set; then :
4069  $as_echo_n "(cached) " >&6
4070else
4071  # Loop through the user's path and test for sed and gsed.
4072# Then use that list of sed's as ones to test for truncation.
4073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074for as_dir in $PATH
4075do
4076  IFS=$as_save_IFS
4077  test -z "$as_dir" && as_dir=.
4078  for lt_ac_prog in sed gsed; do
4079    for ac_exec_ext in '' $ac_executable_extensions; do
4080      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4081        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4082      fi
4083    done
4084  done
4085done
4086IFS=$as_save_IFS
4087lt_ac_max=0
4088lt_ac_count=0
4089# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4090# along with /bin/sed that truncates output.
4091for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4092  test ! -f $lt_ac_sed && continue
4093  cat /dev/null > conftest.in
4094  lt_ac_count=0
4095  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4096  # Check for GNU sed and select it if it is found.
4097  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4098    lt_cv_path_SED=$lt_ac_sed
4099    break
4100  fi
4101  while true; do
4102    cat conftest.in conftest.in >conftest.tmp
4103    mv conftest.tmp conftest.in
4104    cp conftest.in conftest.nl
4105    echo >>conftest.nl
4106    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4107    cmp -s conftest.out conftest.nl || break
4108    # 10000 chars as input seems more than enough
4109    test $lt_ac_count -gt 10 && break
4110    lt_ac_count=`expr $lt_ac_count + 1`
4111    if test $lt_ac_count -gt $lt_ac_max; then
4112      lt_ac_max=$lt_ac_count
4113      lt_cv_path_SED=$lt_ac_sed
4114    fi
4115  done
4116done
4117
4118fi
4119
4120SED=$lt_cv_path_SED
4121
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4123$as_echo "$SED" >&6; }
4124
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4126$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4127if test "${ac_cv_path_GREP+set}" = set; then :
4128  $as_echo_n "(cached) " >&6
4129else
4130  if test -z "$GREP"; then
4131  ac_path_GREP_found=false
4132  # Loop through the user's path and test for each of PROGNAME-LIST
4133  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4135do
4136  IFS=$as_save_IFS
4137  test -z "$as_dir" && as_dir=.
4138    for ac_prog in grep ggrep; do
4139    for ac_exec_ext in '' $ac_executable_extensions; do
4140      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4141      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4142# Check for GNU ac_path_GREP and select it if it is found.
4143  # Check for GNU $ac_path_GREP
4144case `"$ac_path_GREP" --version 2>&1` in
4145*GNU*)
4146  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4147*)
4148  ac_count=0
4149  $as_echo_n 0123456789 >"conftest.in"
4150  while :
4151  do
4152    cat "conftest.in" "conftest.in" >"conftest.tmp"
4153    mv "conftest.tmp" "conftest.in"
4154    cp "conftest.in" "conftest.nl"
4155    $as_echo 'GREP' >> "conftest.nl"
4156    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4157    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4158    as_fn_arith $ac_count + 1 && ac_count=$as_val
4159    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4160      # Best one so far, save it but keep looking for a better one
4161      ac_cv_path_GREP="$ac_path_GREP"
4162      ac_path_GREP_max=$ac_count
4163    fi
4164    # 10*(2^10) chars as input seems more than enough
4165    test $ac_count -gt 10 && break
4166  done
4167  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4168esac
4169
4170      $ac_path_GREP_found && break 3
4171    done
4172  done
4173  done
4174IFS=$as_save_IFS
4175  if test -z "$ac_cv_path_GREP"; then
4176    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4177  fi
4178else
4179  ac_cv_path_GREP=$GREP
4180fi
4181
4182fi
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4184$as_echo "$ac_cv_path_GREP" >&6; }
4185 GREP="$ac_cv_path_GREP"
4186
4187
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4189$as_echo_n "checking for egrep... " >&6; }
4190if test "${ac_cv_path_EGREP+set}" = set; then :
4191  $as_echo_n "(cached) " >&6
4192else
4193  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4194   then ac_cv_path_EGREP="$GREP -E"
4195   else
4196     if test -z "$EGREP"; then
4197  ac_path_EGREP_found=false
4198  # Loop through the user's path and test for each of PROGNAME-LIST
4199  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4201do
4202  IFS=$as_save_IFS
4203  test -z "$as_dir" && as_dir=.
4204    for ac_prog in egrep; do
4205    for ac_exec_ext in '' $ac_executable_extensions; do
4206      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4207      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4208# Check for GNU ac_path_EGREP and select it if it is found.
4209  # Check for GNU $ac_path_EGREP
4210case `"$ac_path_EGREP" --version 2>&1` in
4211*GNU*)
4212  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4213*)
4214  ac_count=0
4215  $as_echo_n 0123456789 >"conftest.in"
4216  while :
4217  do
4218    cat "conftest.in" "conftest.in" >"conftest.tmp"
4219    mv "conftest.tmp" "conftest.in"
4220    cp "conftest.in" "conftest.nl"
4221    $as_echo 'EGREP' >> "conftest.nl"
4222    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4223    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4224    as_fn_arith $ac_count + 1 && ac_count=$as_val
4225    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4226      # Best one so far, save it but keep looking for a better one
4227      ac_cv_path_EGREP="$ac_path_EGREP"
4228      ac_path_EGREP_max=$ac_count
4229    fi
4230    # 10*(2^10) chars as input seems more than enough
4231    test $ac_count -gt 10 && break
4232  done
4233  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4234esac
4235
4236      $ac_path_EGREP_found && break 3
4237    done
4238  done
4239  done
4240IFS=$as_save_IFS
4241  if test -z "$ac_cv_path_EGREP"; then
4242    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4243  fi
4244else
4245  ac_cv_path_EGREP=$EGREP
4246fi
4247
4248   fi
4249fi
4250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4251$as_echo "$ac_cv_path_EGREP" >&6; }
4252 EGREP="$ac_cv_path_EGREP"
4253
4254
4255
4256# Check whether --with-gnu-ld was given.
4257if test "${with_gnu_ld+set}" = set; then :
4258  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4259else
4260  with_gnu_ld=no
4261fi
4262
4263ac_prog=ld
4264if test "$GCC" = yes; then
4265  # Check if gcc -print-prog-name=ld gives a path.
4266  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4267$as_echo_n "checking for ld used by $CC... " >&6; }
4268  case $host in
4269  *-*-mingw*)
4270    # gcc leaves a trailing carriage return which upsets mingw
4271    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4272  *)
4273    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4274  esac
4275  case $ac_prog in
4276    # Accept absolute paths.
4277    [\\/]* | ?:[\\/]*)
4278      re_direlt='/[^/][^/]*/\.\./'
4279      # Canonicalize the pathname of ld
4280      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4281      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4282	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4283      done
4284      test -z "$LD" && LD="$ac_prog"
4285      ;;
4286  "")
4287    # If it fails, then pretend we aren't using GCC.
4288    ac_prog=ld
4289    ;;
4290  *)
4291    # If it is relative, then search for the first ld in PATH.
4292    with_gnu_ld=unknown
4293    ;;
4294  esac
4295elif test "$with_gnu_ld" = yes; then
4296  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4297$as_echo_n "checking for GNU ld... " >&6; }
4298else
4299  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4300$as_echo_n "checking for non-GNU ld... " >&6; }
4301fi
4302if test "${lt_cv_path_LD+set}" = set; then :
4303  $as_echo_n "(cached) " >&6
4304else
4305  if test -z "$LD"; then
4306  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4307  for ac_dir in $PATH; do
4308    IFS="$lt_save_ifs"
4309    test -z "$ac_dir" && ac_dir=.
4310    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4311      lt_cv_path_LD="$ac_dir/$ac_prog"
4312      # Check to see if the program is GNU ld.  I'd rather use --version,
4313      # but apparently some variants of GNU ld only accept -v.
4314      # Break only if it was the GNU/non-GNU ld that we prefer.
4315      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4316      *GNU* | *'with BFD'*)
4317	test "$with_gnu_ld" != no && break
4318	;;
4319      *)
4320	test "$with_gnu_ld" != yes && break
4321	;;
4322      esac
4323    fi
4324  done
4325  IFS="$lt_save_ifs"
4326else
4327  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4328fi
4329fi
4330
4331LD="$lt_cv_path_LD"
4332if test -n "$LD"; then
4333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4334$as_echo "$LD" >&6; }
4335else
4336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337$as_echo "no" >&6; }
4338fi
4339test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4341$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4342if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4343  $as_echo_n "(cached) " >&6
4344else
4345  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4346case `$LD -v 2>&1 </dev/null` in
4347*GNU* | *'with BFD'*)
4348  lt_cv_prog_gnu_ld=yes
4349  ;;
4350*)
4351  lt_cv_prog_gnu_ld=no
4352  ;;
4353esac
4354fi
4355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4356$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4357with_gnu_ld=$lt_cv_prog_gnu_ld
4358
4359
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4361$as_echo_n "checking for $LD option to reload object files... " >&6; }
4362if test "${lt_cv_ld_reload_flag+set}" = set; then :
4363  $as_echo_n "(cached) " >&6
4364else
4365  lt_cv_ld_reload_flag='-r'
4366fi
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4368$as_echo "$lt_cv_ld_reload_flag" >&6; }
4369reload_flag=$lt_cv_ld_reload_flag
4370case $reload_flag in
4371"" | " "*) ;;
4372*) reload_flag=" $reload_flag" ;;
4373esac
4374reload_cmds='$LD$reload_flag -o $output$reload_objs'
4375case $host_os in
4376  darwin*)
4377    if test "$GCC" = yes; then
4378      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4379    else
4380      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4381    fi
4382    ;;
4383esac
4384
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4386$as_echo_n "checking for BSD-compatible nm... " >&6; }
4387if test "${lt_cv_path_NM+set}" = set; then :
4388  $as_echo_n "(cached) " >&6
4389else
4390  if test -n "$NM"; then
4391  # Let the user override the test.
4392  lt_cv_path_NM="$NM"
4393else
4394  lt_nm_to_check="${ac_tool_prefix}nm"
4395  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4396    lt_nm_to_check="$lt_nm_to_check nm"
4397  fi
4398  for lt_tmp_nm in $lt_nm_to_check; do
4399    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4400    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4401      IFS="$lt_save_ifs"
4402      test -z "$ac_dir" && ac_dir=.
4403      tmp_nm="$ac_dir/$lt_tmp_nm"
4404      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4405	# Check to see if the nm accepts a BSD-compat flag.
4406	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4407	#   nm: unknown option "B" ignored
4408	# Tru64's nm complains that /dev/null is an invalid object file
4409	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4410	*/dev/null* | *'Invalid file or object type'*)
4411	  lt_cv_path_NM="$tmp_nm -B"
4412	  break
4413	  ;;
4414	*)
4415	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4416	  */dev/null*)
4417	    lt_cv_path_NM="$tmp_nm -p"
4418	    break
4419	    ;;
4420	  *)
4421	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4422	    continue # so that we can try to find one that supports BSD flags
4423	    ;;
4424	  esac
4425	  ;;
4426	esac
4427      fi
4428    done
4429    IFS="$lt_save_ifs"
4430  done
4431  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4432fi
4433fi
4434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4435$as_echo "$lt_cv_path_NM" >&6; }
4436NM="$lt_cv_path_NM"
4437
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4439$as_echo_n "checking whether ln -s works... " >&6; }
4440LN_S=$as_ln_s
4441if test "$LN_S" = "ln -s"; then
4442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4443$as_echo "yes" >&6; }
4444else
4445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4446$as_echo "no, using $LN_S" >&6; }
4447fi
4448
4449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4450$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4451if test "${lt_cv_deplibs_check_method+set}" = set; then :
4452  $as_echo_n "(cached) " >&6
4453else
4454  lt_cv_file_magic_cmd='$MAGIC_CMD'
4455lt_cv_file_magic_test_file=
4456lt_cv_deplibs_check_method='unknown'
4457# Need to set the preceding variable on all platforms that support
4458# interlibrary dependencies.
4459# 'none' -- dependencies not supported.
4460# `unknown' -- same as none, but documents that we really don't know.
4461# 'pass_all' -- all dependencies passed with no checks.
4462# 'test_compile' -- check by making test program.
4463# 'file_magic [[regex]]' -- check by looking for files in library path
4464# which responds to the $file_magic_cmd with a given extended regex.
4465# If you have `file' or equivalent on your system and you're not sure
4466# whether `pass_all' will *always* work, you probably want this one.
4467
4468case $host_os in
4469aix[4-9]*)
4470  lt_cv_deplibs_check_method=pass_all
4471  ;;
4472
4473beos*)
4474  lt_cv_deplibs_check_method=pass_all
4475  ;;
4476
4477bsdi[45]*)
4478  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4479  lt_cv_file_magic_cmd='/usr/bin/file -L'
4480  lt_cv_file_magic_test_file=/shlib/libc.so
4481  ;;
4482
4483cygwin*)
4484  # func_win32_libid is a shell function defined in ltmain.sh
4485  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4486  lt_cv_file_magic_cmd='func_win32_libid'
4487  ;;
4488
4489mingw* | pw32*)
4490  # Base MSYS/MinGW do not provide the 'file' command needed by
4491  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4492  # unless we find 'file', for example because we are cross-compiling.
4493  if ( file / ) >/dev/null 2>&1; then
4494    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4495    lt_cv_file_magic_cmd='func_win32_libid'
4496  else
4497    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4498    lt_cv_file_magic_cmd='$OBJDUMP -f'
4499  fi
4500  ;;
4501
4502darwin* | rhapsody*)
4503  lt_cv_deplibs_check_method=pass_all
4504  ;;
4505
4506freebsd* | dragonfly*)
4507  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4508    case $host_cpu in
4509    i*86 )
4510      # Not sure whether the presence of OpenBSD here was a mistake.
4511      # Let's accept both of them until this is cleared up.
4512      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4513      lt_cv_file_magic_cmd=/usr/bin/file
4514      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4515      ;;
4516    esac
4517  else
4518    lt_cv_deplibs_check_method=pass_all
4519  fi
4520  ;;
4521
4522gnu*)
4523  lt_cv_deplibs_check_method=pass_all
4524  ;;
4525
4526hpux10.20* | hpux11*)
4527  lt_cv_file_magic_cmd=/usr/bin/file
4528  case $host_cpu in
4529  ia64*)
4530    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4531    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4532    ;;
4533  hppa*64*)
4534    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]'
4535    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4536    ;;
4537  *)
4538    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4539    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4540    ;;
4541  esac
4542  ;;
4543
4544interix[3-9]*)
4545  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4546  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4547  ;;
4548
4549irix5* | irix6* | nonstopux*)
4550  case $LD in
4551  *-32|*"-32 ") libmagic=32-bit;;
4552  *-n32|*"-n32 ") libmagic=N32;;
4553  *-64|*"-64 ") libmagic=64-bit;;
4554  *) libmagic=never-match;;
4555  esac
4556  lt_cv_deplibs_check_method=pass_all
4557  ;;
4558
4559# This must be Linux ELF.
4560linux* | k*bsd*-gnu)
4561  lt_cv_deplibs_check_method=pass_all
4562  ;;
4563
4564netbsd*)
4565  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4566    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4567  else
4568    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4569  fi
4570  ;;
4571
4572newos6*)
4573  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4574  lt_cv_file_magic_cmd=/usr/bin/file
4575  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4576  ;;
4577
4578nto-qnx*)
4579  lt_cv_deplibs_check_method=unknown
4580  ;;
4581
4582openbsd*)
4583  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4584    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4585  else
4586    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4587  fi
4588  ;;
4589
4590osf3* | osf4* | osf5*)
4591  lt_cv_deplibs_check_method=pass_all
4592  ;;
4593
4594rdos*)
4595  lt_cv_deplibs_check_method=pass_all
4596  ;;
4597
4598solaris*)
4599  lt_cv_deplibs_check_method=pass_all
4600  ;;
4601
4602sysv4 | sysv4.3*)
4603  case $host_vendor in
4604  motorola)
4605    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]'
4606    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4607    ;;
4608  ncr)
4609    lt_cv_deplibs_check_method=pass_all
4610    ;;
4611  sequent)
4612    lt_cv_file_magic_cmd='/bin/file'
4613    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4614    ;;
4615  sni)
4616    lt_cv_file_magic_cmd='/bin/file'
4617    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4618    lt_cv_file_magic_test_file=/lib/libc.so
4619    ;;
4620  siemens)
4621    lt_cv_deplibs_check_method=pass_all
4622    ;;
4623  pc)
4624    lt_cv_deplibs_check_method=pass_all
4625    ;;
4626  esac
4627  ;;
4628
4629sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4630  lt_cv_deplibs_check_method=pass_all
4631  ;;
4632esac
4633
4634fi
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4636$as_echo "$lt_cv_deplibs_check_method" >&6; }
4637file_magic_cmd=$lt_cv_file_magic_cmd
4638deplibs_check_method=$lt_cv_deplibs_check_method
4639test -z "$deplibs_check_method" && deplibs_check_method=unknown
4640
4641
4642
4643
4644# If no C compiler was specified, use CC.
4645LTCC=${LTCC-"$CC"}
4646
4647# If no C compiler flags were specified, use CFLAGS.
4648LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4649
4650# Allow CC to be a program name with arguments.
4651compiler=$CC
4652
4653
4654# Check whether --enable-libtool-lock was given.
4655if test "${enable_libtool_lock+set}" = set; then :
4656  enableval=$enable_libtool_lock;
4657fi
4658
4659test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4660
4661# Some flags need to be propagated to the compiler or linker for good
4662# libtool support.
4663case $host in
4664ia64-*-hpux*)
4665  # Find out which ABI we are using.
4666  echo 'int i;' > conftest.$ac_ext
4667  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4668  (eval $ac_compile) 2>&5
4669  ac_status=$?
4670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4671  test $ac_status = 0; }; then
4672    case `/usr/bin/file conftest.$ac_objext` in
4673    *ELF-32*)
4674      HPUX_IA64_MODE="32"
4675      ;;
4676    *ELF-64*)
4677      HPUX_IA64_MODE="64"
4678      ;;
4679    esac
4680  fi
4681  rm -rf conftest*
4682  ;;
4683*-*-irix6*)
4684  # Find out which ABI we are using.
4685  echo '#line 4685 "configure"' > conftest.$ac_ext
4686  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4687  (eval $ac_compile) 2>&5
4688  ac_status=$?
4689  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4690  test $ac_status = 0; }; then
4691   if test "$lt_cv_prog_gnu_ld" = yes; then
4692    case `/usr/bin/file conftest.$ac_objext` in
4693    *32-bit*)
4694      LD="${LD-ld} -melf32bsmip"
4695      ;;
4696    *N32*)
4697      LD="${LD-ld} -melf32bmipn32"
4698      ;;
4699    *64-bit*)
4700      LD="${LD-ld} -melf64bmip"
4701      ;;
4702    esac
4703   else
4704    case `/usr/bin/file conftest.$ac_objext` in
4705    *32-bit*)
4706      LD="${LD-ld} -32"
4707      ;;
4708    *N32*)
4709      LD="${LD-ld} -n32"
4710      ;;
4711    *64-bit*)
4712      LD="${LD-ld} -64"
4713      ;;
4714    esac
4715   fi
4716  fi
4717  rm -rf conftest*
4718  ;;
4719
4720x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4721s390*-*linux*|sparc*-*linux*)
4722  # Find out which ABI we are using.
4723  echo 'int i;' > conftest.$ac_ext
4724  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4725  (eval $ac_compile) 2>&5
4726  ac_status=$?
4727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4728  test $ac_status = 0; }; then
4729    case `/usr/bin/file conftest.o` in
4730    *32-bit*)
4731      case $host in
4732        x86_64-*kfreebsd*-gnu)
4733          LD="${LD-ld} -m elf_i386_fbsd"
4734          ;;
4735        x86_64-*linux*)
4736          LD="${LD-ld} -m elf_i386"
4737          ;;
4738        ppc64-*linux*|powerpc64-*linux*)
4739          LD="${LD-ld} -m elf32ppclinux"
4740          ;;
4741        s390x-*linux*)
4742          LD="${LD-ld} -m elf_s390"
4743          ;;
4744        sparc64-*linux*)
4745          LD="${LD-ld} -m elf32_sparc"
4746          ;;
4747      esac
4748      ;;
4749    *64-bit*)
4750      case $host in
4751        x86_64-*kfreebsd*-gnu)
4752          LD="${LD-ld} -m elf_x86_64_fbsd"
4753          ;;
4754        x86_64-*linux*)
4755          LD="${LD-ld} -m elf_x86_64"
4756          ;;
4757        ppc*-*linux*|powerpc*-*linux*)
4758          LD="${LD-ld} -m elf64ppc"
4759          ;;
4760        s390*-*linux*)
4761          LD="${LD-ld} -m elf64_s390"
4762          ;;
4763        sparc*-*linux*)
4764          LD="${LD-ld} -m elf64_sparc"
4765          ;;
4766      esac
4767      ;;
4768    esac
4769  fi
4770  rm -rf conftest*
4771  ;;
4772
4773*-*-sco3.2v5*)
4774  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4775  SAVE_CFLAGS="$CFLAGS"
4776  CFLAGS="$CFLAGS -belf"
4777  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
4778$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4779if test "${lt_cv_cc_needs_belf+set}" = set; then :
4780  $as_echo_n "(cached) " >&6
4781else
4782  ac_ext=c
4783ac_cpp='$CPP $CPPFLAGS'
4784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786ac_compiler_gnu=$ac_cv_c_compiler_gnu
4787
4788     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789/* end confdefs.h.  */
4790
4791int
4792main ()
4793{
4794
4795  ;
4796  return 0;
4797}
4798_ACEOF
4799if ac_fn_c_try_link "$LINENO"; then :
4800  lt_cv_cc_needs_belf=yes
4801else
4802  lt_cv_cc_needs_belf=no
4803fi
4804rm -f core conftest.err conftest.$ac_objext \
4805    conftest$ac_exeext conftest.$ac_ext
4806     ac_ext=c
4807ac_cpp='$CPP $CPPFLAGS'
4808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811
4812fi
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
4814$as_echo "$lt_cv_cc_needs_belf" >&6; }
4815  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4816    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4817    CFLAGS="$SAVE_CFLAGS"
4818  fi
4819  ;;
4820sparc*-*solaris*)
4821  # Find out which ABI we are using.
4822  echo 'int i;' > conftest.$ac_ext
4823  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4824  (eval $ac_compile) 2>&5
4825  ac_status=$?
4826  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4827  test $ac_status = 0; }; then
4828    case `/usr/bin/file conftest.o` in
4829    *64-bit*)
4830      case $lt_cv_prog_gnu_ld in
4831      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4832      *)
4833        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4834	  LD="${LD-ld} -64"
4835	fi
4836	;;
4837      esac
4838      ;;
4839    esac
4840  fi
4841  rm -rf conftest*
4842  ;;
4843
4844*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4845  if test -n "$ac_tool_prefix"; then
4846  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4847set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849$as_echo_n "checking for $ac_word... " >&6; }
4850if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
4851  $as_echo_n "(cached) " >&6
4852else
4853  if test -n "$DLLTOOL"; then
4854  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4855else
4856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857for as_dir in $PATH
4858do
4859  IFS=$as_save_IFS
4860  test -z "$as_dir" && as_dir=.
4861    for ac_exec_ext in '' $ac_executable_extensions; do
4862  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4863    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4864    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4865    break 2
4866  fi
4867done
4868  done
4869IFS=$as_save_IFS
4870
4871fi
4872fi
4873DLLTOOL=$ac_cv_prog_DLLTOOL
4874if test -n "$DLLTOOL"; then
4875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4876$as_echo "$DLLTOOL" >&6; }
4877else
4878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879$as_echo "no" >&6; }
4880fi
4881
4882
4883fi
4884if test -z "$ac_cv_prog_DLLTOOL"; then
4885  ac_ct_DLLTOOL=$DLLTOOL
4886  # Extract the first word of "dlltool", so it can be a program name with args.
4887set dummy dlltool; ac_word=$2
4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4889$as_echo_n "checking for $ac_word... " >&6; }
4890if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
4891  $as_echo_n "(cached) " >&6
4892else
4893  if test -n "$ac_ct_DLLTOOL"; then
4894  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4895else
4896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897for as_dir in $PATH
4898do
4899  IFS=$as_save_IFS
4900  test -z "$as_dir" && as_dir=.
4901    for ac_exec_ext in '' $ac_executable_extensions; do
4902  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4903    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4904    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4905    break 2
4906  fi
4907done
4908  done
4909IFS=$as_save_IFS
4910
4911fi
4912fi
4913ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4914if test -n "$ac_ct_DLLTOOL"; then
4915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4916$as_echo "$ac_ct_DLLTOOL" >&6; }
4917else
4918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4919$as_echo "no" >&6; }
4920fi
4921
4922  if test "x$ac_ct_DLLTOOL" = x; then
4923    DLLTOOL="false"
4924  else
4925    case $cross_compiling:$ac_tool_warned in
4926yes:)
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4928$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4929ac_tool_warned=yes ;;
4930esac
4931    DLLTOOL=$ac_ct_DLLTOOL
4932  fi
4933else
4934  DLLTOOL="$ac_cv_prog_DLLTOOL"
4935fi
4936
4937  if test -n "$ac_tool_prefix"; then
4938  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4939set dummy ${ac_tool_prefix}as; ac_word=$2
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4941$as_echo_n "checking for $ac_word... " >&6; }
4942if test "${ac_cv_prog_AS+set}" = set; then :
4943  $as_echo_n "(cached) " >&6
4944else
4945  if test -n "$AS"; then
4946  ac_cv_prog_AS="$AS" # Let the user override the test.
4947else
4948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949for as_dir in $PATH
4950do
4951  IFS=$as_save_IFS
4952  test -z "$as_dir" && as_dir=.
4953    for ac_exec_ext in '' $ac_executable_extensions; do
4954  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4955    ac_cv_prog_AS="${ac_tool_prefix}as"
4956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4957    break 2
4958  fi
4959done
4960  done
4961IFS=$as_save_IFS
4962
4963fi
4964fi
4965AS=$ac_cv_prog_AS
4966if test -n "$AS"; then
4967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4968$as_echo "$AS" >&6; }
4969else
4970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4971$as_echo "no" >&6; }
4972fi
4973
4974
4975fi
4976if test -z "$ac_cv_prog_AS"; then
4977  ac_ct_AS=$AS
4978  # Extract the first word of "as", so it can be a program name with args.
4979set dummy as; ac_word=$2
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4981$as_echo_n "checking for $ac_word... " >&6; }
4982if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
4983  $as_echo_n "(cached) " >&6
4984else
4985  if test -n "$ac_ct_AS"; then
4986  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4987else
4988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989for as_dir in $PATH
4990do
4991  IFS=$as_save_IFS
4992  test -z "$as_dir" && as_dir=.
4993    for ac_exec_ext in '' $ac_executable_extensions; do
4994  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995    ac_cv_prog_ac_ct_AS="as"
4996    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4997    break 2
4998  fi
4999done
5000  done
5001IFS=$as_save_IFS
5002
5003fi
5004fi
5005ac_ct_AS=$ac_cv_prog_ac_ct_AS
5006if test -n "$ac_ct_AS"; then
5007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5008$as_echo "$ac_ct_AS" >&6; }
5009else
5010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011$as_echo "no" >&6; }
5012fi
5013
5014  if test "x$ac_ct_AS" = x; then
5015    AS="false"
5016  else
5017    case $cross_compiling:$ac_tool_warned in
5018yes:)
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5021ac_tool_warned=yes ;;
5022esac
5023    AS=$ac_ct_AS
5024  fi
5025else
5026  AS="$ac_cv_prog_AS"
5027fi
5028
5029  if test -n "$ac_tool_prefix"; then
5030  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5031set dummy ${ac_tool_prefix}objdump; ac_word=$2
5032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5033$as_echo_n "checking for $ac_word... " >&6; }
5034if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5035  $as_echo_n "(cached) " >&6
5036else
5037  if test -n "$OBJDUMP"; then
5038  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5039else
5040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041for as_dir in $PATH
5042do
5043  IFS=$as_save_IFS
5044  test -z "$as_dir" && as_dir=.
5045    for ac_exec_ext in '' $ac_executable_extensions; do
5046  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5047    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5048    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5049    break 2
5050  fi
5051done
5052  done
5053IFS=$as_save_IFS
5054
5055fi
5056fi
5057OBJDUMP=$ac_cv_prog_OBJDUMP
5058if test -n "$OBJDUMP"; then
5059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5060$as_echo "$OBJDUMP" >&6; }
5061else
5062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063$as_echo "no" >&6; }
5064fi
5065
5066
5067fi
5068if test -z "$ac_cv_prog_OBJDUMP"; then
5069  ac_ct_OBJDUMP=$OBJDUMP
5070  # Extract the first word of "objdump", so it can be a program name with args.
5071set dummy objdump; ac_word=$2
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073$as_echo_n "checking for $ac_word... " >&6; }
5074if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5075  $as_echo_n "(cached) " >&6
5076else
5077  if test -n "$ac_ct_OBJDUMP"; then
5078  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5079else
5080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081for as_dir in $PATH
5082do
5083  IFS=$as_save_IFS
5084  test -z "$as_dir" && as_dir=.
5085    for ac_exec_ext in '' $ac_executable_extensions; do
5086  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5087    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5089    break 2
5090  fi
5091done
5092  done
5093IFS=$as_save_IFS
5094
5095fi
5096fi
5097ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5098if test -n "$ac_ct_OBJDUMP"; then
5099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5100$as_echo "$ac_ct_OBJDUMP" >&6; }
5101else
5102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103$as_echo "no" >&6; }
5104fi
5105
5106  if test "x$ac_ct_OBJDUMP" = x; then
5107    OBJDUMP="false"
5108  else
5109    case $cross_compiling:$ac_tool_warned in
5110yes:)
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5113ac_tool_warned=yes ;;
5114esac
5115    OBJDUMP=$ac_ct_OBJDUMP
5116  fi
5117else
5118  OBJDUMP="$ac_cv_prog_OBJDUMP"
5119fi
5120
5121  ;;
5122
5123esac
5124
5125need_locks="$enable_libtool_lock"
5126
5127
5128ac_ext=c
5129ac_cpp='$CPP $CPPFLAGS'
5130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132ac_compiler_gnu=$ac_cv_c_compiler_gnu
5133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5134$as_echo_n "checking how to run the C preprocessor... " >&6; }
5135# On Suns, sometimes $CPP names a directory.
5136if test -n "$CPP" && test -d "$CPP"; then
5137  CPP=
5138fi
5139if test -z "$CPP"; then
5140  if test "${ac_cv_prog_CPP+set}" = set; then :
5141  $as_echo_n "(cached) " >&6
5142else
5143      # Double quotes because CPP needs to be expanded
5144    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5145    do
5146      ac_preproc_ok=false
5147for ac_c_preproc_warn_flag in '' yes
5148do
5149  # Use a header file that comes with gcc, so configuring glibc
5150  # with a fresh cross-compiler works.
5151  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5152  # <limits.h> exists even on freestanding compilers.
5153  # On the NeXT, cc -E runs the code through the compiler's parser,
5154  # not just through cpp. "Syntax error" is here to catch this case.
5155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156/* end confdefs.h.  */
5157#ifdef __STDC__
5158# include <limits.h>
5159#else
5160# include <assert.h>
5161#endif
5162		     Syntax error
5163_ACEOF
5164if ac_fn_c_try_cpp "$LINENO"; then :
5165
5166else
5167  # Broken: fails on valid input.
5168continue
5169fi
5170rm -f conftest.err conftest.i conftest.$ac_ext
5171
5172  # OK, works on sane cases.  Now check whether nonexistent headers
5173  # can be detected and how.
5174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175/* end confdefs.h.  */
5176#include <ac_nonexistent.h>
5177_ACEOF
5178if ac_fn_c_try_cpp "$LINENO"; then :
5179  # Broken: success on invalid input.
5180continue
5181else
5182  # Passes both tests.
5183ac_preproc_ok=:
5184break
5185fi
5186rm -f conftest.err conftest.i conftest.$ac_ext
5187
5188done
5189# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5190rm -f conftest.i conftest.err conftest.$ac_ext
5191if $ac_preproc_ok; then :
5192  break
5193fi
5194
5195    done
5196    ac_cv_prog_CPP=$CPP
5197
5198fi
5199  CPP=$ac_cv_prog_CPP
5200else
5201  ac_cv_prog_CPP=$CPP
5202fi
5203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5204$as_echo "$CPP" >&6; }
5205ac_preproc_ok=false
5206for ac_c_preproc_warn_flag in '' yes
5207do
5208  # Use a header file that comes with gcc, so configuring glibc
5209  # with a fresh cross-compiler works.
5210  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5211  # <limits.h> exists even on freestanding compilers.
5212  # On the NeXT, cc -E runs the code through the compiler's parser,
5213  # not just through cpp. "Syntax error" is here to catch this case.
5214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215/* end confdefs.h.  */
5216#ifdef __STDC__
5217# include <limits.h>
5218#else
5219# include <assert.h>
5220#endif
5221		     Syntax error
5222_ACEOF
5223if ac_fn_c_try_cpp "$LINENO"; then :
5224
5225else
5226  # Broken: fails on valid input.
5227continue
5228fi
5229rm -f conftest.err conftest.i conftest.$ac_ext
5230
5231  # OK, works on sane cases.  Now check whether nonexistent headers
5232  # can be detected and how.
5233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234/* end confdefs.h.  */
5235#include <ac_nonexistent.h>
5236_ACEOF
5237if ac_fn_c_try_cpp "$LINENO"; then :
5238  # Broken: success on invalid input.
5239continue
5240else
5241  # Passes both tests.
5242ac_preproc_ok=:
5243break
5244fi
5245rm -f conftest.err conftest.i conftest.$ac_ext
5246
5247done
5248# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5249rm -f conftest.i conftest.err conftest.$ac_ext
5250if $ac_preproc_ok; then :
5251
5252else
5253  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5255as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5256See \`config.log' for more details" "$LINENO" 5; }
5257fi
5258
5259ac_ext=c
5260ac_cpp='$CPP $CPPFLAGS'
5261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5263ac_compiler_gnu=$ac_cv_c_compiler_gnu
5264
5265
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5267$as_echo_n "checking for ANSI C header files... " >&6; }
5268if test "${ac_cv_header_stdc+set}" = set; then :
5269  $as_echo_n "(cached) " >&6
5270else
5271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272/* end confdefs.h.  */
5273#include <stdlib.h>
5274#include <stdarg.h>
5275#include <string.h>
5276#include <float.h>
5277
5278int
5279main ()
5280{
5281
5282  ;
5283  return 0;
5284}
5285_ACEOF
5286if ac_fn_c_try_compile "$LINENO"; then :
5287  ac_cv_header_stdc=yes
5288else
5289  ac_cv_header_stdc=no
5290fi
5291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292
5293if test $ac_cv_header_stdc = yes; then
5294  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296/* end confdefs.h.  */
5297#include <string.h>
5298
5299_ACEOF
5300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5301  $EGREP "memchr" >/dev/null 2>&1; then :
5302
5303else
5304  ac_cv_header_stdc=no
5305fi
5306rm -f conftest*
5307
5308fi
5309
5310if test $ac_cv_header_stdc = yes; then
5311  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313/* end confdefs.h.  */
5314#include <stdlib.h>
5315
5316_ACEOF
5317if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5318  $EGREP "free" >/dev/null 2>&1; then :
5319
5320else
5321  ac_cv_header_stdc=no
5322fi
5323rm -f conftest*
5324
5325fi
5326
5327if test $ac_cv_header_stdc = yes; then
5328  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5329  if test "$cross_compiling" = yes; then :
5330  :
5331else
5332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333/* end confdefs.h.  */
5334#include <ctype.h>
5335#include <stdlib.h>
5336#if ((' ' & 0x0FF) == 0x020)
5337# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5338# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5339#else
5340# define ISLOWER(c) \
5341		   (('a' <= (c) && (c) <= 'i') \
5342		     || ('j' <= (c) && (c) <= 'r') \
5343		     || ('s' <= (c) && (c) <= 'z'))
5344# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5345#endif
5346
5347#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5348int
5349main ()
5350{
5351  int i;
5352  for (i = 0; i < 256; i++)
5353    if (XOR (islower (i), ISLOWER (i))
5354	|| toupper (i) != TOUPPER (i))
5355      return 2;
5356  return 0;
5357}
5358_ACEOF
5359if ac_fn_c_try_run "$LINENO"; then :
5360
5361else
5362  ac_cv_header_stdc=no
5363fi
5364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5365  conftest.$ac_objext conftest.beam conftest.$ac_ext
5366fi
5367
5368fi
5369fi
5370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5371$as_echo "$ac_cv_header_stdc" >&6; }
5372if test $ac_cv_header_stdc = yes; then
5373
5374$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5375
5376fi
5377
5378# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5379for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5380		  inttypes.h stdint.h unistd.h
5381do :
5382  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5383ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5384"
5385if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5386  cat >>confdefs.h <<_ACEOF
5387#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5388_ACEOF
5389
5390fi
5391
5392done
5393
5394
5395for ac_header in dlfcn.h
5396do :
5397  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5398if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
5399  cat >>confdefs.h <<_ACEOF
5400#define HAVE_DLFCN_H 1
5401_ACEOF
5402
5403fi
5404
5405done
5406
5407ac_ext=cpp
5408ac_cpp='$CXXCPP $CPPFLAGS'
5409ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5410ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5411ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5412if test -z "$CXX"; then
5413  if test -n "$CCC"; then
5414    CXX=$CCC
5415  else
5416    if test -n "$ac_tool_prefix"; then
5417  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5418  do
5419    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5420set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422$as_echo_n "checking for $ac_word... " >&6; }
5423if test "${ac_cv_prog_CXX+set}" = set; then :
5424  $as_echo_n "(cached) " >&6
5425else
5426  if test -n "$CXX"; then
5427  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5428else
5429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430for as_dir in $PATH
5431do
5432  IFS=$as_save_IFS
5433  test -z "$as_dir" && as_dir=.
5434    for ac_exec_ext in '' $ac_executable_extensions; do
5435  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5436    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5438    break 2
5439  fi
5440done
5441  done
5442IFS=$as_save_IFS
5443
5444fi
5445fi
5446CXX=$ac_cv_prog_CXX
5447if test -n "$CXX"; then
5448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5449$as_echo "$CXX" >&6; }
5450else
5451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452$as_echo "no" >&6; }
5453fi
5454
5455
5456    test -n "$CXX" && break
5457  done
5458fi
5459if test -z "$CXX"; then
5460  ac_ct_CXX=$CXX
5461  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5462do
5463  # Extract the first word of "$ac_prog", so it can be a program name with args.
5464set dummy $ac_prog; ac_word=$2
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5466$as_echo_n "checking for $ac_word... " >&6; }
5467if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5468  $as_echo_n "(cached) " >&6
5469else
5470  if test -n "$ac_ct_CXX"; then
5471  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5472else
5473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474for as_dir in $PATH
5475do
5476  IFS=$as_save_IFS
5477  test -z "$as_dir" && as_dir=.
5478    for ac_exec_ext in '' $ac_executable_extensions; do
5479  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5480    ac_cv_prog_ac_ct_CXX="$ac_prog"
5481    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5482    break 2
5483  fi
5484done
5485  done
5486IFS=$as_save_IFS
5487
5488fi
5489fi
5490ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5491if test -n "$ac_ct_CXX"; then
5492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5493$as_echo "$ac_ct_CXX" >&6; }
5494else
5495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496$as_echo "no" >&6; }
5497fi
5498
5499
5500  test -n "$ac_ct_CXX" && break
5501done
5502
5503  if test "x$ac_ct_CXX" = x; then
5504    CXX="g++"
5505  else
5506    case $cross_compiling:$ac_tool_warned in
5507yes:)
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5509$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5510ac_tool_warned=yes ;;
5511esac
5512    CXX=$ac_ct_CXX
5513  fi
5514fi
5515
5516  fi
5517fi
5518# Provide some information about the compiler.
5519$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5520set X $ac_compile
5521ac_compiler=$2
5522for ac_option in --version -v -V -qversion; do
5523  { { ac_try="$ac_compiler $ac_option >&5"
5524case "(($ac_try" in
5525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526  *) ac_try_echo=$ac_try;;
5527esac
5528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5529$as_echo "$ac_try_echo"; } >&5
5530  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5531  ac_status=$?
5532  if test -s conftest.err; then
5533    sed '10a\
5534... rest of stderr output deleted ...
5535         10q' conftest.err >conftest.er1
5536    cat conftest.er1 >&5
5537  fi
5538  rm -f conftest.er1 conftest.err
5539  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5540  test $ac_status = 0; }
5541done
5542
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5544$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5545if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5546  $as_echo_n "(cached) " >&6
5547else
5548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549/* end confdefs.h.  */
5550
5551int
5552main ()
5553{
5554#ifndef __GNUC__
5555       choke me
5556#endif
5557
5558  ;
5559  return 0;
5560}
5561_ACEOF
5562if ac_fn_cxx_try_compile "$LINENO"; then :
5563  ac_compiler_gnu=yes
5564else
5565  ac_compiler_gnu=no
5566fi
5567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5569
5570fi
5571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5572$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5573if test $ac_compiler_gnu = yes; then
5574  GXX=yes
5575else
5576  GXX=
5577fi
5578ac_test_CXXFLAGS=${CXXFLAGS+set}
5579ac_save_CXXFLAGS=$CXXFLAGS
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5581$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5582if test "${ac_cv_prog_cxx_g+set}" = set; then :
5583  $as_echo_n "(cached) " >&6
5584else
5585  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5586   ac_cxx_werror_flag=yes
5587   ac_cv_prog_cxx_g=no
5588   CXXFLAGS="-g"
5589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590/* end confdefs.h.  */
5591
5592int
5593main ()
5594{
5595
5596  ;
5597  return 0;
5598}
5599_ACEOF
5600if ac_fn_cxx_try_compile "$LINENO"; then :
5601  ac_cv_prog_cxx_g=yes
5602else
5603  CXXFLAGS=""
5604      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605/* end confdefs.h.  */
5606
5607int
5608main ()
5609{
5610
5611  ;
5612  return 0;
5613}
5614_ACEOF
5615if ac_fn_cxx_try_compile "$LINENO"; then :
5616
5617else
5618  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5619	 CXXFLAGS="-g"
5620	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621/* end confdefs.h.  */
5622
5623int
5624main ()
5625{
5626
5627  ;
5628  return 0;
5629}
5630_ACEOF
5631if ac_fn_cxx_try_compile "$LINENO"; then :
5632  ac_cv_prog_cxx_g=yes
5633fi
5634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5635fi
5636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5637fi
5638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5640fi
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5642$as_echo "$ac_cv_prog_cxx_g" >&6; }
5643if test "$ac_test_CXXFLAGS" = set; then
5644  CXXFLAGS=$ac_save_CXXFLAGS
5645elif test $ac_cv_prog_cxx_g = yes; then
5646  if test "$GXX" = yes; then
5647    CXXFLAGS="-g -O2"
5648  else
5649    CXXFLAGS="-g"
5650  fi
5651else
5652  if test "$GXX" = yes; then
5653    CXXFLAGS="-O2"
5654  else
5655    CXXFLAGS=
5656  fi
5657fi
5658ac_ext=cpp
5659ac_cpp='$CXXCPP $CPPFLAGS'
5660ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5661ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5662ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5663
5664
5665
5666if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5667    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5668    (test "X$CXX" != "Xg++"))) ; then
5669  ac_ext=cpp
5670ac_cpp='$CXXCPP $CPPFLAGS'
5671ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5672ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5673ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5675$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5676if test -z "$CXXCPP"; then
5677  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5678  $as_echo_n "(cached) " >&6
5679else
5680      # Double quotes because CXXCPP needs to be expanded
5681    for CXXCPP in "$CXX -E" "/lib/cpp"
5682    do
5683      ac_preproc_ok=false
5684for ac_cxx_preproc_warn_flag in '' yes
5685do
5686  # Use a header file that comes with gcc, so configuring glibc
5687  # with a fresh cross-compiler works.
5688  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5689  # <limits.h> exists even on freestanding compilers.
5690  # On the NeXT, cc -E runs the code through the compiler's parser,
5691  # not just through cpp. "Syntax error" is here to catch this case.
5692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693/* end confdefs.h.  */
5694#ifdef __STDC__
5695# include <limits.h>
5696#else
5697# include <assert.h>
5698#endif
5699		     Syntax error
5700_ACEOF
5701if ac_fn_cxx_try_cpp "$LINENO"; then :
5702
5703else
5704  # Broken: fails on valid input.
5705continue
5706fi
5707rm -f conftest.err conftest.i conftest.$ac_ext
5708
5709  # OK, works on sane cases.  Now check whether nonexistent headers
5710  # can be detected and how.
5711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712/* end confdefs.h.  */
5713#include <ac_nonexistent.h>
5714_ACEOF
5715if ac_fn_cxx_try_cpp "$LINENO"; then :
5716  # Broken: success on invalid input.
5717continue
5718else
5719  # Passes both tests.
5720ac_preproc_ok=:
5721break
5722fi
5723rm -f conftest.err conftest.i conftest.$ac_ext
5724
5725done
5726# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5727rm -f conftest.i conftest.err conftest.$ac_ext
5728if $ac_preproc_ok; then :
5729  break
5730fi
5731
5732    done
5733    ac_cv_prog_CXXCPP=$CXXCPP
5734
5735fi
5736  CXXCPP=$ac_cv_prog_CXXCPP
5737else
5738  ac_cv_prog_CXXCPP=$CXXCPP
5739fi
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5741$as_echo "$CXXCPP" >&6; }
5742ac_preproc_ok=false
5743for ac_cxx_preproc_warn_flag in '' yes
5744do
5745  # Use a header file that comes with gcc, so configuring glibc
5746  # with a fresh cross-compiler works.
5747  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5748  # <limits.h> exists even on freestanding compilers.
5749  # On the NeXT, cc -E runs the code through the compiler's parser,
5750  # not just through cpp. "Syntax error" is here to catch this case.
5751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752/* end confdefs.h.  */
5753#ifdef __STDC__
5754# include <limits.h>
5755#else
5756# include <assert.h>
5757#endif
5758		     Syntax error
5759_ACEOF
5760if ac_fn_cxx_try_cpp "$LINENO"; then :
5761
5762else
5763  # Broken: fails on valid input.
5764continue
5765fi
5766rm -f conftest.err conftest.i conftest.$ac_ext
5767
5768  # OK, works on sane cases.  Now check whether nonexistent headers
5769  # can be detected and how.
5770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771/* end confdefs.h.  */
5772#include <ac_nonexistent.h>
5773_ACEOF
5774if ac_fn_cxx_try_cpp "$LINENO"; then :
5775  # Broken: success on invalid input.
5776continue
5777else
5778  # Passes both tests.
5779ac_preproc_ok=:
5780break
5781fi
5782rm -f conftest.err conftest.i conftest.$ac_ext
5783
5784done
5785# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5786rm -f conftest.i conftest.err conftest.$ac_ext
5787if $ac_preproc_ok; then :
5788
5789else
5790  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5792as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5793See \`config.log' for more details" "$LINENO" 5; }
5794fi
5795
5796ac_ext=cpp
5797ac_cpp='$CXXCPP $CPPFLAGS'
5798ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5799ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5800ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5801
5802fi
5803
5804
5805ac_ext=f
5806ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5807ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5808ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5809if test -n "$ac_tool_prefix"; then
5810  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 pgfortran pgf95 lf95 ftn
5811  do
5812    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5813set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5815$as_echo_n "checking for $ac_word... " >&6; }
5816if test "${ac_cv_prog_F77+set}" = set; then :
5817  $as_echo_n "(cached) " >&6
5818else
5819  if test -n "$F77"; then
5820  ac_cv_prog_F77="$F77" # Let the user override the test.
5821else
5822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823for as_dir in $PATH
5824do
5825  IFS=$as_save_IFS
5826  test -z "$as_dir" && as_dir=.
5827    for ac_exec_ext in '' $ac_executable_extensions; do
5828  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5829    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5830    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5831    break 2
5832  fi
5833done
5834  done
5835IFS=$as_save_IFS
5836
5837fi
5838fi
5839F77=$ac_cv_prog_F77
5840if test -n "$F77"; then
5841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5842$as_echo "$F77" >&6; }
5843else
5844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845$as_echo "no" >&6; }
5846fi
5847
5848
5849    test -n "$F77" && break
5850  done
5851fi
5852if test -z "$F77"; then
5853  ac_ct_F77=$F77
5854  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 pgfortran pgf95 lf95 ftn
5855do
5856  # Extract the first word of "$ac_prog", so it can be a program name with args.
5857set dummy $ac_prog; ac_word=$2
5858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5859$as_echo_n "checking for $ac_word... " >&6; }
5860if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
5861  $as_echo_n "(cached) " >&6
5862else
5863  if test -n "$ac_ct_F77"; then
5864  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5865else
5866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867for as_dir in $PATH
5868do
5869  IFS=$as_save_IFS
5870  test -z "$as_dir" && as_dir=.
5871    for ac_exec_ext in '' $ac_executable_extensions; do
5872  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5873    ac_cv_prog_ac_ct_F77="$ac_prog"
5874    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5875    break 2
5876  fi
5877done
5878  done
5879IFS=$as_save_IFS
5880
5881fi
5882fi
5883ac_ct_F77=$ac_cv_prog_ac_ct_F77
5884if test -n "$ac_ct_F77"; then
5885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5886$as_echo "$ac_ct_F77" >&6; }
5887else
5888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889$as_echo "no" >&6; }
5890fi
5891
5892
5893  test -n "$ac_ct_F77" && break
5894done
5895
5896  if test "x$ac_ct_F77" = x; then
5897    F77=""
5898  else
5899    case $cross_compiling:$ac_tool_warned in
5900yes:)
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5902$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5903ac_tool_warned=yes ;;
5904esac
5905    F77=$ac_ct_F77
5906  fi
5907fi
5908
5909
5910# Provide some information about the compiler.
5911$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
5912set X $ac_compile
5913ac_compiler=$2
5914for ac_option in --version -v -V -qversion; do
5915  { { ac_try="$ac_compiler $ac_option >&5"
5916case "(($ac_try" in
5917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918  *) ac_try_echo=$ac_try;;
5919esac
5920eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5921$as_echo "$ac_try_echo"; } >&5
5922  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5923  ac_status=$?
5924  if test -s conftest.err; then
5925    sed '10a\
5926... rest of stderr output deleted ...
5927         10q' conftest.err >conftest.er1
5928    cat conftest.er1 >&5
5929  fi
5930  rm -f conftest.er1 conftest.err
5931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5932  test $ac_status = 0; }
5933done
5934rm -f a.out
5935
5936# If we don't use `.F' as extension, the preprocessor is not run on the
5937# input file.  (Note that this only needs to work for GNU compilers.)
5938ac_save_ext=$ac_ext
5939ac_ext=F
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
5941$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5942if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
5943  $as_echo_n "(cached) " >&6
5944else
5945  cat > conftest.$ac_ext <<_ACEOF
5946      program main
5947#ifndef __GNUC__
5948       choke me
5949#endif
5950
5951      end
5952_ACEOF
5953if ac_fn_f77_try_compile "$LINENO"; then :
5954  ac_compiler_gnu=yes
5955else
5956  ac_compiler_gnu=no
5957fi
5958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5960
5961fi
5962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
5963$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5964ac_ext=$ac_save_ext
5965ac_test_FFLAGS=${FFLAGS+set}
5966ac_save_FFLAGS=$FFLAGS
5967FFLAGS=
5968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
5969$as_echo_n "checking whether $F77 accepts -g... " >&6; }
5970if test "${ac_cv_prog_f77_g+set}" = set; then :
5971  $as_echo_n "(cached) " >&6
5972else
5973  FFLAGS=-g
5974cat > conftest.$ac_ext <<_ACEOF
5975      program main
5976
5977      end
5978_ACEOF
5979if ac_fn_f77_try_compile "$LINENO"; then :
5980  ac_cv_prog_f77_g=yes
5981else
5982  ac_cv_prog_f77_g=no
5983fi
5984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5985
5986fi
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
5988$as_echo "$ac_cv_prog_f77_g" >&6; }
5989if test "$ac_test_FFLAGS" = set; then
5990  FFLAGS=$ac_save_FFLAGS
5991elif test $ac_cv_prog_f77_g = yes; then
5992  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5993    FFLAGS="-g -O2"
5994  else
5995    FFLAGS="-g"
5996  fi
5997else
5998  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5999    FFLAGS="-O2"
6000  else
6001    FFLAGS=
6002  fi
6003fi
6004
6005if test $ac_compiler_gnu = yes; then
6006  G77=yes
6007else
6008  G77=
6009fi
6010ac_ext=c
6011ac_cpp='$CPP $CPPFLAGS'
6012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6014ac_compiler_gnu=$ac_cv_c_compiler_gnu
6015
6016
6017
6018# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6019# find the maximum length of command line arguments
6020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6021$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6022if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6023  $as_echo_n "(cached) " >&6
6024else
6025    i=0
6026  teststring="ABCD"
6027
6028  case $build_os in
6029  msdosdjgpp*)
6030    # On DJGPP, this test can blow up pretty badly due to problems in libc
6031    # (any single argument exceeding 2000 bytes causes a buffer overrun
6032    # during glob expansion).  Even if it were fixed, the result of this
6033    # check would be larger than it should be.
6034    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6035    ;;
6036
6037  gnu*)
6038    # Under GNU Hurd, this test is not required because there is
6039    # no limit to the length of command line arguments.
6040    # Libtool will interpret -1 as no limit whatsoever
6041    lt_cv_sys_max_cmd_len=-1;
6042    ;;
6043
6044  cygwin* | mingw*)
6045    # On Win9x/ME, this test blows up -- it succeeds, but takes
6046    # about 5 minutes as the teststring grows exponentially.
6047    # Worse, since 9x/ME are not pre-emptively multitasking,
6048    # you end up with a "frozen" computer, even though with patience
6049    # the test eventually succeeds (with a max line length of 256k).
6050    # Instead, let's just punt: use the minimum linelength reported by
6051    # all of the supported platforms: 8192 (on NT/2K/XP).
6052    lt_cv_sys_max_cmd_len=8192;
6053    ;;
6054
6055  amigaos*)
6056    # On AmigaOS with pdksh, this test takes hours, literally.
6057    # So we just punt and use a minimum line length of 8192.
6058    lt_cv_sys_max_cmd_len=8192;
6059    ;;
6060
6061  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6062    # This has been around since 386BSD, at least.  Likely further.
6063    if test -x /sbin/sysctl; then
6064      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6065    elif test -x /usr/sbin/sysctl; then
6066      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6067    else
6068      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6069    fi
6070    # And add a safety zone
6071    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6072    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6073    ;;
6074
6075  interix*)
6076    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6077    lt_cv_sys_max_cmd_len=196608
6078    ;;
6079
6080  osf*)
6081    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6082    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6083    # nice to cause kernel panics so lets avoid the loop below.
6084    # First set a reasonable default.
6085    lt_cv_sys_max_cmd_len=16384
6086    #
6087    if test -x /sbin/sysconfig; then
6088      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6089        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6090      esac
6091    fi
6092    ;;
6093  sco3.2v5*)
6094    lt_cv_sys_max_cmd_len=102400
6095    ;;
6096  sysv5* | sco5v6* | sysv4.2uw2*)
6097    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6098    if test -n "$kargmax"; then
6099      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6100    else
6101      lt_cv_sys_max_cmd_len=32768
6102    fi
6103    ;;
6104  *)
6105    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6106    if test -n "$lt_cv_sys_max_cmd_len"; then
6107      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6108      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6109    else
6110      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6111      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6112	       = "XX$teststring") >/dev/null 2>&1 &&
6113	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6114	      lt_cv_sys_max_cmd_len=$new_result &&
6115	      test $i != 17 # 1/2 MB should be enough
6116      do
6117        i=`expr $i + 1`
6118        teststring=$teststring$teststring
6119      done
6120      teststring=
6121      # Add a significant safety factor because C++ compilers can tack on massive
6122      # amounts of additional arguments before passing them to the linker.
6123      # It appears as though 1/2 is a usable value.
6124      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6125    fi
6126    ;;
6127  esac
6128
6129fi
6130
6131if test -n $lt_cv_sys_max_cmd_len ; then
6132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6133$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6134else
6135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6136$as_echo "none" >&6; }
6137fi
6138
6139
6140
6141
6142
6143# Check for command to grab the raw symbol name followed by C symbol from nm.
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6145$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6146if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6147  $as_echo_n "(cached) " >&6
6148else
6149
6150# These are sane defaults that work on at least a few old systems.
6151# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6152
6153# Character class describing NM global symbol codes.
6154symcode='[BCDEGRST]'
6155
6156# Regexp to match symbols that can be accessed directly from C.
6157sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6158
6159# Transform an extracted symbol line into a proper C declaration
6160lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6161
6162# Transform an extracted symbol line into symbol name and symbol address
6163lt_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'"
6164
6165# Define system-specific variables.
6166case $host_os in
6167aix*)
6168  symcode='[BCDT]'
6169  ;;
6170cygwin* | mingw* | pw32*)
6171  symcode='[ABCDGISTW]'
6172  ;;
6173hpux*) # Its linker distinguishes data from code symbols
6174  if test "$host_cpu" = ia64; then
6175    symcode='[ABCDEGRST]'
6176  fi
6177  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6178  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'"
6179  ;;
6180linux* | k*bsd*-gnu)
6181  if test "$host_cpu" = ia64; then
6182    symcode='[ABCDGIRSTW]'
6183    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6184    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'"
6185  fi
6186  ;;
6187irix* | nonstopux*)
6188  symcode='[BCDEGRST]'
6189  ;;
6190osf*)
6191  symcode='[BCDEGQRST]'
6192  ;;
6193solaris*)
6194  symcode='[BDRT]'
6195  ;;
6196sco3.2v5*)
6197  symcode='[DT]'
6198  ;;
6199sysv4.2uw2*)
6200  symcode='[DT]'
6201  ;;
6202sysv5* | sco5v6* | unixware* | OpenUNIX*)
6203  symcode='[ABDT]'
6204  ;;
6205sysv4)
6206  symcode='[DFNSTU]'
6207  ;;
6208esac
6209
6210# Handle CRLF in mingw tool chain
6211opt_cr=
6212case $build_os in
6213mingw*)
6214  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6215  ;;
6216esac
6217
6218# If we're using GNU nm, then use its standard symbol codes.
6219case `$NM -V 2>&1` in
6220*GNU* | *'with BFD'*)
6221  symcode='[ABCDGIRSTW]' ;;
6222esac
6223
6224# Try without a prefix undercore, then with it.
6225for ac_symprfx in "" "_"; do
6226
6227  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6228  symxfrm="\\1 $ac_symprfx\\2 \\2"
6229
6230  # Write the raw and C identifiers.
6231  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6232
6233  # Check to see that the pipe works correctly.
6234  pipe_works=no
6235
6236  rm -f conftest*
6237  cat > conftest.$ac_ext <<EOF
6238#ifdef __cplusplus
6239extern "C" {
6240#endif
6241char nm_test_var;
6242void nm_test_func(){}
6243#ifdef __cplusplus
6244}
6245#endif
6246int main(){nm_test_var='a';nm_test_func();return(0);}
6247EOF
6248
6249  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6250  (eval $ac_compile) 2>&5
6251  ac_status=$?
6252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6253  test $ac_status = 0; }; then
6254    # Now try to grab the symbols.
6255    nlist=conftest.nm
6256    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6257  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6258  ac_status=$?
6259  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6260  test $ac_status = 0; } && test -s "$nlist"; then
6261      # Try sorting and uniquifying the output.
6262      if sort "$nlist" | uniq > "$nlist"T; then
6263	mv -f "$nlist"T "$nlist"
6264      else
6265	rm -f "$nlist"T
6266      fi
6267
6268      # Make sure that we snagged all the symbols we need.
6269      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6270	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6271	  cat <<EOF > conftest.$ac_ext
6272#ifdef __cplusplus
6273extern "C" {
6274#endif
6275
6276EOF
6277	  # Now generate the symbol file.
6278	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6279
6280	  cat <<EOF >> conftest.$ac_ext
6281#if defined (__STDC__) && __STDC__
6282# define lt_ptr_t void *
6283#else
6284# define lt_ptr_t char *
6285# define const
6286#endif
6287
6288/* The mapping between symbol names and symbols. */
6289const struct {
6290  const char *name;
6291  lt_ptr_t address;
6292}
6293lt_preloaded_symbols[] =
6294{
6295EOF
6296	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6297	  cat <<\EOF >> conftest.$ac_ext
6298  {0, (lt_ptr_t) 0}
6299};
6300
6301#ifdef __cplusplus
6302}
6303#endif
6304EOF
6305	  # Now try linking the two files.
6306	  mv conftest.$ac_objext conftstm.$ac_objext
6307	  lt_save_LIBS="$LIBS"
6308	  lt_save_CFLAGS="$CFLAGS"
6309	  LIBS="conftstm.$ac_objext"
6310	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6311	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6312  (eval $ac_link) 2>&5
6313  ac_status=$?
6314  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6315  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6316	    pipe_works=yes
6317	  fi
6318	  LIBS="$lt_save_LIBS"
6319	  CFLAGS="$lt_save_CFLAGS"
6320	else
6321	  echo "cannot find nm_test_func in $nlist" >&5
6322	fi
6323      else
6324	echo "cannot find nm_test_var in $nlist" >&5
6325      fi
6326    else
6327      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6328    fi
6329  else
6330    echo "$progname: failed program was:" >&5
6331    cat conftest.$ac_ext >&5
6332  fi
6333  rm -rf conftest* conftst*
6334
6335  # Do not use the global_symbol_pipe unless it works.
6336  if test "$pipe_works" = yes; then
6337    break
6338  else
6339    lt_cv_sys_global_symbol_pipe=
6340  fi
6341done
6342
6343fi
6344
6345if test -z "$lt_cv_sys_global_symbol_pipe"; then
6346  lt_cv_sys_global_symbol_to_cdecl=
6347fi
6348if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6350$as_echo "failed" >&6; }
6351else
6352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6353$as_echo "ok" >&6; }
6354fi
6355
6356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6357$as_echo_n "checking for objdir... " >&6; }
6358if test "${lt_cv_objdir+set}" = set; then :
6359  $as_echo_n "(cached) " >&6
6360else
6361  rm -f .libs 2>/dev/null
6362mkdir .libs 2>/dev/null
6363if test -d .libs; then
6364  lt_cv_objdir=.libs
6365else
6366  # MS-DOS does not allow filenames that begin with a dot.
6367  lt_cv_objdir=_libs
6368fi
6369rmdir .libs 2>/dev/null
6370fi
6371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6372$as_echo "$lt_cv_objdir" >&6; }
6373objdir=$lt_cv_objdir
6374
6375
6376
6377
6378
6379case $host_os in
6380aix3*)
6381  # AIX sometimes has problems with the GCC collect2 program.  For some
6382  # reason, if we set the COLLECT_NAMES environment variable, the problems
6383  # vanish in a puff of smoke.
6384  if test "X${COLLECT_NAMES+set}" != Xset; then
6385    COLLECT_NAMES=
6386    export COLLECT_NAMES
6387  fi
6388  ;;
6389esac
6390
6391# Sed substitution that helps us do robust quoting.  It backslashifies
6392# metacharacters that are still active within double-quoted strings.
6393Xsed='sed -e 1s/^X//'
6394sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6395
6396# Same as above, but do not quote variable references.
6397double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6398
6399# Sed substitution to delay expansion of an escaped shell variable in a
6400# double_quote_subst'ed string.
6401delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6402
6403# Sed substitution to avoid accidental globbing in evaled expressions
6404no_glob_subst='s/\*/\\\*/g'
6405
6406# Constants:
6407rm="rm -f"
6408
6409# Global variables:
6410default_ofile=libtool
6411can_build_shared=yes
6412
6413# All known linkers require a `.a' archive for static linking (except MSVC,
6414# which needs '.lib').
6415libext=a
6416ltmain="$ac_aux_dir/ltmain.sh"
6417ofile="$default_ofile"
6418with_gnu_ld="$lt_cv_prog_gnu_ld"
6419
6420if test -n "$ac_tool_prefix"; then
6421  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6422set dummy ${ac_tool_prefix}ar; ac_word=$2
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424$as_echo_n "checking for $ac_word... " >&6; }
6425if test "${ac_cv_prog_AR+set}" = set; then :
6426  $as_echo_n "(cached) " >&6
6427else
6428  if test -n "$AR"; then
6429  ac_cv_prog_AR="$AR" # Let the user override the test.
6430else
6431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432for as_dir in $PATH
6433do
6434  IFS=$as_save_IFS
6435  test -z "$as_dir" && as_dir=.
6436    for ac_exec_ext in '' $ac_executable_extensions; do
6437  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6438    ac_cv_prog_AR="${ac_tool_prefix}ar"
6439    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440    break 2
6441  fi
6442done
6443  done
6444IFS=$as_save_IFS
6445
6446fi
6447fi
6448AR=$ac_cv_prog_AR
6449if test -n "$AR"; then
6450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6451$as_echo "$AR" >&6; }
6452else
6453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454$as_echo "no" >&6; }
6455fi
6456
6457
6458fi
6459if test -z "$ac_cv_prog_AR"; then
6460  ac_ct_AR=$AR
6461  # Extract the first word of "ar", so it can be a program name with args.
6462set dummy ar; ac_word=$2
6463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464$as_echo_n "checking for $ac_word... " >&6; }
6465if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6466  $as_echo_n "(cached) " >&6
6467else
6468  if test -n "$ac_ct_AR"; then
6469  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6470else
6471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472for as_dir in $PATH
6473do
6474  IFS=$as_save_IFS
6475  test -z "$as_dir" && as_dir=.
6476    for ac_exec_ext in '' $ac_executable_extensions; do
6477  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6478    ac_cv_prog_ac_ct_AR="ar"
6479    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6480    break 2
6481  fi
6482done
6483  done
6484IFS=$as_save_IFS
6485
6486fi
6487fi
6488ac_ct_AR=$ac_cv_prog_ac_ct_AR
6489if test -n "$ac_ct_AR"; then
6490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6491$as_echo "$ac_ct_AR" >&6; }
6492else
6493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494$as_echo "no" >&6; }
6495fi
6496
6497  if test "x$ac_ct_AR" = x; then
6498    AR="false"
6499  else
6500    case $cross_compiling:$ac_tool_warned in
6501yes:)
6502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6504ac_tool_warned=yes ;;
6505esac
6506    AR=$ac_ct_AR
6507  fi
6508else
6509  AR="$ac_cv_prog_AR"
6510fi
6511
6512if test -n "$ac_tool_prefix"; then
6513  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6514set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516$as_echo_n "checking for $ac_word... " >&6; }
6517if test "${ac_cv_prog_RANLIB+set}" = set; then :
6518  $as_echo_n "(cached) " >&6
6519else
6520  if test -n "$RANLIB"; then
6521  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6522else
6523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524for as_dir in $PATH
6525do
6526  IFS=$as_save_IFS
6527  test -z "$as_dir" && as_dir=.
6528    for ac_exec_ext in '' $ac_executable_extensions; do
6529  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6530    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6531    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6532    break 2
6533  fi
6534done
6535  done
6536IFS=$as_save_IFS
6537
6538fi
6539fi
6540RANLIB=$ac_cv_prog_RANLIB
6541if test -n "$RANLIB"; then
6542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6543$as_echo "$RANLIB" >&6; }
6544else
6545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546$as_echo "no" >&6; }
6547fi
6548
6549
6550fi
6551if test -z "$ac_cv_prog_RANLIB"; then
6552  ac_ct_RANLIB=$RANLIB
6553  # Extract the first word of "ranlib", so it can be a program name with args.
6554set dummy ranlib; ac_word=$2
6555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556$as_echo_n "checking for $ac_word... " >&6; }
6557if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6558  $as_echo_n "(cached) " >&6
6559else
6560  if test -n "$ac_ct_RANLIB"; then
6561  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6562else
6563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564for as_dir in $PATH
6565do
6566  IFS=$as_save_IFS
6567  test -z "$as_dir" && as_dir=.
6568    for ac_exec_ext in '' $ac_executable_extensions; do
6569  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6570    ac_cv_prog_ac_ct_RANLIB="ranlib"
6571    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6572    break 2
6573  fi
6574done
6575  done
6576IFS=$as_save_IFS
6577
6578fi
6579fi
6580ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6581if test -n "$ac_ct_RANLIB"; then
6582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6583$as_echo "$ac_ct_RANLIB" >&6; }
6584else
6585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586$as_echo "no" >&6; }
6587fi
6588
6589  if test "x$ac_ct_RANLIB" = x; then
6590    RANLIB=":"
6591  else
6592    case $cross_compiling:$ac_tool_warned in
6593yes:)
6594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6596ac_tool_warned=yes ;;
6597esac
6598    RANLIB=$ac_ct_RANLIB
6599  fi
6600else
6601  RANLIB="$ac_cv_prog_RANLIB"
6602fi
6603
6604if test -n "$ac_tool_prefix"; then
6605  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6606set dummy ${ac_tool_prefix}strip; ac_word=$2
6607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6608$as_echo_n "checking for $ac_word... " >&6; }
6609if test "${ac_cv_prog_STRIP+set}" = set; then :
6610  $as_echo_n "(cached) " >&6
6611else
6612  if test -n "$STRIP"; then
6613  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6614else
6615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616for as_dir in $PATH
6617do
6618  IFS=$as_save_IFS
6619  test -z "$as_dir" && as_dir=.
6620    for ac_exec_ext in '' $ac_executable_extensions; do
6621  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6622    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6623    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6624    break 2
6625  fi
6626done
6627  done
6628IFS=$as_save_IFS
6629
6630fi
6631fi
6632STRIP=$ac_cv_prog_STRIP
6633if test -n "$STRIP"; then
6634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6635$as_echo "$STRIP" >&6; }
6636else
6637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6638$as_echo "no" >&6; }
6639fi
6640
6641
6642fi
6643if test -z "$ac_cv_prog_STRIP"; then
6644  ac_ct_STRIP=$STRIP
6645  # Extract the first word of "strip", so it can be a program name with args.
6646set dummy strip; ac_word=$2
6647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6648$as_echo_n "checking for $ac_word... " >&6; }
6649if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6650  $as_echo_n "(cached) " >&6
6651else
6652  if test -n "$ac_ct_STRIP"; then
6653  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6654else
6655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656for as_dir in $PATH
6657do
6658  IFS=$as_save_IFS
6659  test -z "$as_dir" && as_dir=.
6660    for ac_exec_ext in '' $ac_executable_extensions; do
6661  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6662    ac_cv_prog_ac_ct_STRIP="strip"
6663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6664    break 2
6665  fi
6666done
6667  done
6668IFS=$as_save_IFS
6669
6670fi
6671fi
6672ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6673if test -n "$ac_ct_STRIP"; then
6674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6675$as_echo "$ac_ct_STRIP" >&6; }
6676else
6677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6678$as_echo "no" >&6; }
6679fi
6680
6681  if test "x$ac_ct_STRIP" = x; then
6682    STRIP=":"
6683  else
6684    case $cross_compiling:$ac_tool_warned in
6685yes:)
6686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6688ac_tool_warned=yes ;;
6689esac
6690    STRIP=$ac_ct_STRIP
6691  fi
6692else
6693  STRIP="$ac_cv_prog_STRIP"
6694fi
6695
6696
6697old_CC="$CC"
6698old_CFLAGS="$CFLAGS"
6699
6700# Set sane defaults for various variables
6701test -z "$AR" && AR=ar
6702test -z "$AR_FLAGS" && AR_FLAGS=cru
6703test -z "$AS" && AS=as
6704test -z "$CC" && CC=cc
6705test -z "$LTCC" && LTCC=$CC
6706test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6707test -z "$DLLTOOL" && DLLTOOL=dlltool
6708test -z "$LD" && LD=ld
6709test -z "$LN_S" && LN_S="ln -s"
6710test -z "$MAGIC_CMD" && MAGIC_CMD=file
6711test -z "$NM" && NM=nm
6712test -z "$SED" && SED=sed
6713test -z "$OBJDUMP" && OBJDUMP=objdump
6714test -z "$RANLIB" && RANLIB=:
6715test -z "$STRIP" && STRIP=:
6716test -z "$ac_objext" && ac_objext=o
6717
6718# Determine commands to create old-style static archives.
6719old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6720old_postinstall_cmds='chmod 644 $oldlib'
6721old_postuninstall_cmds=
6722
6723if test -n "$RANLIB"; then
6724  case $host_os in
6725  openbsd*)
6726    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6727    ;;
6728  *)
6729    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6730    ;;
6731  esac
6732  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6733fi
6734
6735for cc_temp in $compiler""; do
6736  case $cc_temp in
6737    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6738    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6739    \-*) ;;
6740    *) break;;
6741  esac
6742done
6743cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6744
6745
6746# Only perform the check for file, if the check method requires it
6747case $deplibs_check_method in
6748file_magic*)
6749  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6750    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6751$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6752if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6753  $as_echo_n "(cached) " >&6
6754else
6755  case $MAGIC_CMD in
6756[\\/*] |  ?:[\\/]*)
6757  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6758  ;;
6759*)
6760  lt_save_MAGIC_CMD="$MAGIC_CMD"
6761  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6762  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6763  for ac_dir in $ac_dummy; do
6764    IFS="$lt_save_ifs"
6765    test -z "$ac_dir" && ac_dir=.
6766    if test -f $ac_dir/${ac_tool_prefix}file; then
6767      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6768      if test -n "$file_magic_test_file"; then
6769	case $deplibs_check_method in
6770	"file_magic "*)
6771	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6772	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6773	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6774	    $EGREP "$file_magic_regex" > /dev/null; then
6775	    :
6776	  else
6777	    cat <<EOF 1>&2
6778
6779*** Warning: the command libtool uses to detect shared libraries,
6780*** $file_magic_cmd, produces output that libtool cannot recognize.
6781*** The result is that libtool may fail to recognize shared libraries
6782*** as such.  This will affect the creation of libtool libraries that
6783*** depend on shared libraries, but programs linked with such libtool
6784*** libraries will work regardless of this problem.  Nevertheless, you
6785*** may want to report the problem to your system manager and/or to
6786*** bug-libtool@gnu.org
6787
6788EOF
6789	  fi ;;
6790	esac
6791      fi
6792      break
6793    fi
6794  done
6795  IFS="$lt_save_ifs"
6796  MAGIC_CMD="$lt_save_MAGIC_CMD"
6797  ;;
6798esac
6799fi
6800
6801MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6802if test -n "$MAGIC_CMD"; then
6803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6804$as_echo "$MAGIC_CMD" >&6; }
6805else
6806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807$as_echo "no" >&6; }
6808fi
6809
6810if test -z "$lt_cv_path_MAGIC_CMD"; then
6811  if test -n "$ac_tool_prefix"; then
6812    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6813$as_echo_n "checking for file... " >&6; }
6814if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6815  $as_echo_n "(cached) " >&6
6816else
6817  case $MAGIC_CMD in
6818[\\/*] |  ?:[\\/]*)
6819  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6820  ;;
6821*)
6822  lt_save_MAGIC_CMD="$MAGIC_CMD"
6823  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6824  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6825  for ac_dir in $ac_dummy; do
6826    IFS="$lt_save_ifs"
6827    test -z "$ac_dir" && ac_dir=.
6828    if test -f $ac_dir/file; then
6829      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6830      if test -n "$file_magic_test_file"; then
6831	case $deplibs_check_method in
6832	"file_magic "*)
6833	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6834	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6835	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6836	    $EGREP "$file_magic_regex" > /dev/null; then
6837	    :
6838	  else
6839	    cat <<EOF 1>&2
6840
6841*** Warning: the command libtool uses to detect shared libraries,
6842*** $file_magic_cmd, produces output that libtool cannot recognize.
6843*** The result is that libtool may fail to recognize shared libraries
6844*** as such.  This will affect the creation of libtool libraries that
6845*** depend on shared libraries, but programs linked with such libtool
6846*** libraries will work regardless of this problem.  Nevertheless, you
6847*** may want to report the problem to your system manager and/or to
6848*** bug-libtool@gnu.org
6849
6850EOF
6851	  fi ;;
6852	esac
6853      fi
6854      break
6855    fi
6856  done
6857  IFS="$lt_save_ifs"
6858  MAGIC_CMD="$lt_save_MAGIC_CMD"
6859  ;;
6860esac
6861fi
6862
6863MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6864if test -n "$MAGIC_CMD"; then
6865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6866$as_echo "$MAGIC_CMD" >&6; }
6867else
6868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869$as_echo "no" >&6; }
6870fi
6871
6872  else
6873    MAGIC_CMD=:
6874  fi
6875fi
6876
6877  fi
6878  ;;
6879esac
6880
6881
6882  case $host_os in
6883    rhapsody* | darwin*)
6884    if test -n "$ac_tool_prefix"; then
6885  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6886set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888$as_echo_n "checking for $ac_word... " >&6; }
6889if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6890  $as_echo_n "(cached) " >&6
6891else
6892  if test -n "$DSYMUTIL"; then
6893  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6894else
6895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896for as_dir in $PATH
6897do
6898  IFS=$as_save_IFS
6899  test -z "$as_dir" && as_dir=.
6900    for ac_exec_ext in '' $ac_executable_extensions; do
6901  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6902    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6904    break 2
6905  fi
6906done
6907  done
6908IFS=$as_save_IFS
6909
6910fi
6911fi
6912DSYMUTIL=$ac_cv_prog_DSYMUTIL
6913if test -n "$DSYMUTIL"; then
6914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6915$as_echo "$DSYMUTIL" >&6; }
6916else
6917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918$as_echo "no" >&6; }
6919fi
6920
6921
6922fi
6923if test -z "$ac_cv_prog_DSYMUTIL"; then
6924  ac_ct_DSYMUTIL=$DSYMUTIL
6925  # Extract the first word of "dsymutil", so it can be a program name with args.
6926set dummy dsymutil; ac_word=$2
6927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6928$as_echo_n "checking for $ac_word... " >&6; }
6929if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6930  $as_echo_n "(cached) " >&6
6931else
6932  if test -n "$ac_ct_DSYMUTIL"; then
6933  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6934else
6935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936for as_dir in $PATH
6937do
6938  IFS=$as_save_IFS
6939  test -z "$as_dir" && as_dir=.
6940    for ac_exec_ext in '' $ac_executable_extensions; do
6941  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6942    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6943    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6944    break 2
6945  fi
6946done
6947  done
6948IFS=$as_save_IFS
6949
6950fi
6951fi
6952ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6953if test -n "$ac_ct_DSYMUTIL"; then
6954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6955$as_echo "$ac_ct_DSYMUTIL" >&6; }
6956else
6957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958$as_echo "no" >&6; }
6959fi
6960
6961  if test "x$ac_ct_DSYMUTIL" = x; then
6962    DSYMUTIL=":"
6963  else
6964    case $cross_compiling:$ac_tool_warned in
6965yes:)
6966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6968ac_tool_warned=yes ;;
6969esac
6970    DSYMUTIL=$ac_ct_DSYMUTIL
6971  fi
6972else
6973  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6974fi
6975
6976    if test -n "$ac_tool_prefix"; then
6977  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6978set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6980$as_echo_n "checking for $ac_word... " >&6; }
6981if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6982  $as_echo_n "(cached) " >&6
6983else
6984  if test -n "$NMEDIT"; then
6985  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6986else
6987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988for as_dir in $PATH
6989do
6990  IFS=$as_save_IFS
6991  test -z "$as_dir" && as_dir=.
6992    for ac_exec_ext in '' $ac_executable_extensions; do
6993  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6994    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6995    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6996    break 2
6997  fi
6998done
6999  done
7000IFS=$as_save_IFS
7001
7002fi
7003fi
7004NMEDIT=$ac_cv_prog_NMEDIT
7005if test -n "$NMEDIT"; then
7006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7007$as_echo "$NMEDIT" >&6; }
7008else
7009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010$as_echo "no" >&6; }
7011fi
7012
7013
7014fi
7015if test -z "$ac_cv_prog_NMEDIT"; then
7016  ac_ct_NMEDIT=$NMEDIT
7017  # Extract the first word of "nmedit", so it can be a program name with args.
7018set dummy nmedit; ac_word=$2
7019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020$as_echo_n "checking for $ac_word... " >&6; }
7021if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7022  $as_echo_n "(cached) " >&6
7023else
7024  if test -n "$ac_ct_NMEDIT"; then
7025  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7026else
7027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028for as_dir in $PATH
7029do
7030  IFS=$as_save_IFS
7031  test -z "$as_dir" && as_dir=.
7032    for ac_exec_ext in '' $ac_executable_extensions; do
7033  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7034    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7035    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036    break 2
7037  fi
7038done
7039  done
7040IFS=$as_save_IFS
7041
7042fi
7043fi
7044ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7045if test -n "$ac_ct_NMEDIT"; then
7046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7047$as_echo "$ac_ct_NMEDIT" >&6; }
7048else
7049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050$as_echo "no" >&6; }
7051fi
7052
7053  if test "x$ac_ct_NMEDIT" = x; then
7054    NMEDIT=":"
7055  else
7056    case $cross_compiling:$ac_tool_warned in
7057yes:)
7058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7060ac_tool_warned=yes ;;
7061esac
7062    NMEDIT=$ac_ct_NMEDIT
7063  fi
7064else
7065  NMEDIT="$ac_cv_prog_NMEDIT"
7066fi
7067
7068
7069    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7070$as_echo_n "checking for -single_module linker flag... " >&6; }
7071if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7072  $as_echo_n "(cached) " >&6
7073else
7074  lt_cv_apple_cc_single_mod=no
7075      if test -z "${LT_MULTI_MODULE}"; then
7076   # By default we will add the -single_module flag. You can override
7077   # by either setting the environment variable LT_MULTI_MODULE
7078   # non-empty at configure time, or by adding -multi_module to the
7079   # link flags.
7080   echo "int foo(void){return 1;}" > conftest.c
7081   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7082     -dynamiclib ${wl}-single_module conftest.c
7083   if test -f libconftest.dylib; then
7084     lt_cv_apple_cc_single_mod=yes
7085     rm -rf libconftest.dylib*
7086   fi
7087   rm conftest.c
7088      fi
7089fi
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7091$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7092    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7093$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7094if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7095  $as_echo_n "(cached) " >&6
7096else
7097  lt_cv_ld_exported_symbols_list=no
7098      save_LDFLAGS=$LDFLAGS
7099      echo "_main" > conftest.sym
7100      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7101      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102/* end confdefs.h.  */
7103
7104int
7105main ()
7106{
7107
7108  ;
7109  return 0;
7110}
7111_ACEOF
7112if ac_fn_c_try_link "$LINENO"; then :
7113  lt_cv_ld_exported_symbols_list=yes
7114else
7115  lt_cv_ld_exported_symbols_list=no
7116fi
7117rm -f core conftest.err conftest.$ac_objext \
7118    conftest$ac_exeext conftest.$ac_ext
7119   LDFLAGS="$save_LDFLAGS"
7120
7121fi
7122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7123$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7124    case $host_os in
7125    rhapsody* | darwin1.[0123])
7126      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7127    darwin1.*)
7128     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7129    darwin*)
7130      # if running on 10.5 or later, the deployment target defaults
7131      # to the OS version, if on x86, and 10.4, the deployment
7132      # target defaults to 10.4. Don't you love it?
7133      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7134   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7135     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7136   10.[012]*)
7137     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7138   10.*)
7139     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7140      esac
7141    ;;
7142  esac
7143    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7144      _lt_dar_single_mod='$single_module'
7145    fi
7146    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7147      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7148    else
7149      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7150    fi
7151    if test "$DSYMUTIL" != ":"; then
7152      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7153    else
7154      _lt_dsymutil=
7155    fi
7156    ;;
7157  esac
7158
7159
7160enable_dlopen=no
7161enable_win32_dll=yes
7162
7163# Check whether --enable-libtool-lock was given.
7164if test "${enable_libtool_lock+set}" = set; then :
7165  enableval=$enable_libtool_lock;
7166fi
7167
7168test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7169
7170
7171# Check whether --with-pic was given.
7172if test "${with_pic+set}" = set; then :
7173  withval=$with_pic; pic_mode="$withval"
7174else
7175  pic_mode=default
7176fi
7177
7178test -z "$pic_mode" && pic_mode=default
7179
7180# Use C for the default configuration in the libtool script
7181tagname=
7182lt_save_CC="$CC"
7183ac_ext=c
7184ac_cpp='$CPP $CPPFLAGS'
7185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7187ac_compiler_gnu=$ac_cv_c_compiler_gnu
7188
7189
7190# Source file extension for C test sources.
7191ac_ext=c
7192
7193# Object file extension for compiled C test sources.
7194objext=o
7195objext=$objext
7196
7197# Code to be used in simple compile tests
7198lt_simple_compile_test_code="int some_variable = 0;"
7199
7200# Code to be used in simple link tests
7201lt_simple_link_test_code='int main(){return(0);}'
7202
7203
7204# If no C compiler was specified, use CC.
7205LTCC=${LTCC-"$CC"}
7206
7207# If no C compiler flags were specified, use CFLAGS.
7208LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7209
7210# Allow CC to be a program name with arguments.
7211compiler=$CC
7212
7213
7214# save warnings/boilerplate of simple test code
7215ac_outfile=conftest.$ac_objext
7216echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7217eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7218_lt_compiler_boilerplate=`cat conftest.err`
7219$rm conftest*
7220
7221ac_outfile=conftest.$ac_objext
7222echo "$lt_simple_link_test_code" >conftest.$ac_ext
7223eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7224_lt_linker_boilerplate=`cat conftest.err`
7225$rm -r conftest*
7226
7227
7228## CAVEAT EMPTOR:
7229## There is no encapsulation within the following macros, do not change
7230## the running order or otherwise move them around unless you know exactly
7231## what you are doing...
7232
7233lt_prog_compiler_no_builtin_flag=
7234
7235if test "$GCC" = yes; then
7236  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7237
7238
7239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7240$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7241if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7242  $as_echo_n "(cached) " >&6
7243else
7244  lt_cv_prog_compiler_rtti_exceptions=no
7245  ac_outfile=conftest.$ac_objext
7246   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7247   lt_compiler_flag="-fno-rtti -fno-exceptions"
7248   # Insert the option either (1) after the last *FLAGS variable, or
7249   # (2) before a word containing "conftest.", or (3) at the end.
7250   # Note that $ac_compile itself does not contain backslashes and begins
7251   # with a dollar sign (not a hyphen), so the echo should work correctly.
7252   # The option is referenced via a variable to avoid confusing sed.
7253   lt_compile=`echo "$ac_compile" | $SED \
7254   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7255   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7256   -e 's:$: $lt_compiler_flag:'`
7257   (eval echo "\"\$as_me:7257: $lt_compile\"" >&5)
7258   (eval "$lt_compile" 2>conftest.err)
7259   ac_status=$?
7260   cat conftest.err >&5
7261   echo "$as_me:7261: \$? = $ac_status" >&5
7262   if (exit $ac_status) && test -s "$ac_outfile"; then
7263     # The compiler can only warn and ignore the option if not recognized
7264     # So say no if there are warnings other than the usual output.
7265     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7266     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7267     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7268       lt_cv_prog_compiler_rtti_exceptions=yes
7269     fi
7270   fi
7271   $rm conftest*
7272
7273fi
7274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7275$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7276
7277if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7278    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7279else
7280    :
7281fi
7282
7283fi
7284
7285lt_prog_compiler_wl=
7286lt_prog_compiler_pic=
7287lt_prog_compiler_static=
7288
7289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7290$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7291
7292  if test "$GCC" = yes; then
7293    lt_prog_compiler_wl='-Wl,'
7294    lt_prog_compiler_static='-static'
7295
7296    case $host_os in
7297      aix*)
7298      # All AIX code is PIC.
7299      if test "$host_cpu" = ia64; then
7300	# AIX 5 now supports IA64 processor
7301	lt_prog_compiler_static='-Bstatic'
7302      fi
7303      ;;
7304
7305    amigaos*)
7306      # FIXME: we need at least 68020 code to build shared libraries, but
7307      # adding the `-m68020' flag to GCC prevents building anything better,
7308      # like `-m68040'.
7309      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7310      ;;
7311
7312    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7313      # PIC is the default for these OSes.
7314      ;;
7315
7316    mingw* | cygwin* | pw32* | os2*)
7317      # This hack is so that the source file can tell whether it is being
7318      # built for inclusion in a dll (and should export symbols for example).
7319      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7320      # (--disable-auto-import) libraries
7321      lt_prog_compiler_pic='-DDLL_EXPORT'
7322      ;;
7323
7324    darwin* | rhapsody*)
7325      # PIC is the default on this platform
7326      # Common symbols not allowed in MH_DYLIB files
7327      lt_prog_compiler_pic='-fno-common'
7328      ;;
7329
7330    interix[3-9]*)
7331      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7332      # Instead, we relocate shared libraries at runtime.
7333      ;;
7334
7335    msdosdjgpp*)
7336      # Just because we use GCC doesn't mean we suddenly get shared libraries
7337      # on systems that don't support them.
7338      lt_prog_compiler_can_build_shared=no
7339      enable_shared=no
7340      ;;
7341
7342    sysv4*MP*)
7343      if test -d /usr/nec; then
7344	lt_prog_compiler_pic=-Kconform_pic
7345      fi
7346      ;;
7347
7348    hpux*)
7349      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7350      # not for PA HP-UX.
7351      case $host_cpu in
7352      hppa*64*|ia64*)
7353	# +Z the default
7354	;;
7355      *)
7356	lt_prog_compiler_pic='-fPIC'
7357	;;
7358      esac
7359      ;;
7360
7361    *)
7362      lt_prog_compiler_pic='-fPIC'
7363      ;;
7364    esac
7365  else
7366    # PORTME Check for flag to pass linker flags through the system compiler.
7367    case $host_os in
7368    aix*)
7369      lt_prog_compiler_wl='-Wl,'
7370      if test "$host_cpu" = ia64; then
7371	# AIX 5 now supports IA64 processor
7372	lt_prog_compiler_static='-Bstatic'
7373      else
7374	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7375      fi
7376      ;;
7377      darwin*)
7378        # PIC is the default on this platform
7379        # Common symbols not allowed in MH_DYLIB files
7380       case $cc_basename in
7381         xlc*)
7382         lt_prog_compiler_pic='-qnocommon'
7383         lt_prog_compiler_wl='-Wl,'
7384         ;;
7385       esac
7386       ;;
7387
7388    mingw* | cygwin* | pw32* | os2*)
7389      # This hack is so that the source file can tell whether it is being
7390      # built for inclusion in a dll (and should export symbols for example).
7391      lt_prog_compiler_pic='-DDLL_EXPORT'
7392      ;;
7393
7394    hpux9* | hpux10* | hpux11*)
7395      lt_prog_compiler_wl='-Wl,'
7396      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7397      # not for PA HP-UX.
7398      case $host_cpu in
7399      hppa*64*|ia64*)
7400	# +Z the default
7401	;;
7402      *)
7403	lt_prog_compiler_pic='+Z'
7404	;;
7405      esac
7406      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7407      lt_prog_compiler_static='${wl}-a ${wl}archive'
7408      ;;
7409
7410    irix5* | irix6* | nonstopux*)
7411      lt_prog_compiler_wl='-Wl,'
7412      # PIC (with -KPIC) is the default.
7413      lt_prog_compiler_static='-non_shared'
7414      ;;
7415
7416    newsos6)
7417      lt_prog_compiler_pic='-KPIC'
7418      lt_prog_compiler_static='-Bstatic'
7419      ;;
7420
7421    linux* | k*bsd*-gnu)
7422      case $cc_basename in
7423      icc* | ecc*)
7424	lt_prog_compiler_wl='-Wl,'
7425	lt_prog_compiler_pic='-KPIC'
7426	lt_prog_compiler_static='-static'
7427        ;;
7428      pgcc* | pgf77* | pgf90* | pgf95*)
7429        # Portland Group compilers (*not* the Pentium gcc compiler,
7430	# which looks to be a dead project)
7431	lt_prog_compiler_wl='-Wl,'
7432	lt_prog_compiler_pic='-fpic'
7433	lt_prog_compiler_static='-Bstatic'
7434        ;;
7435      ccc*)
7436        lt_prog_compiler_wl='-Wl,'
7437        # All Alpha code is PIC.
7438        lt_prog_compiler_static='-non_shared'
7439        ;;
7440      *)
7441        case `$CC -V 2>&1 | sed 5q` in
7442	*Sun\ C*)
7443	  # Sun C 5.9
7444	  lt_prog_compiler_pic='-KPIC'
7445	  lt_prog_compiler_static='-Bstatic'
7446	  lt_prog_compiler_wl='-Wl,'
7447	  ;;
7448	*Sun\ F*)
7449	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7450	  lt_prog_compiler_pic='-KPIC'
7451	  lt_prog_compiler_static='-Bstatic'
7452	  lt_prog_compiler_wl=''
7453	  ;;
7454	esac
7455	;;
7456      esac
7457      ;;
7458
7459    osf3* | osf4* | osf5*)
7460      lt_prog_compiler_wl='-Wl,'
7461      # All OSF/1 code is PIC.
7462      lt_prog_compiler_static='-non_shared'
7463      ;;
7464
7465    rdos*)
7466      lt_prog_compiler_static='-non_shared'
7467      ;;
7468
7469    solaris*)
7470      lt_prog_compiler_pic='-KPIC'
7471      lt_prog_compiler_static='-Bstatic'
7472      case $cc_basename in
7473      f77* | f90* | f95*)
7474	lt_prog_compiler_wl='-Qoption ld ';;
7475      *)
7476	lt_prog_compiler_wl='-Wl,';;
7477      esac
7478      ;;
7479
7480    sunos4*)
7481      lt_prog_compiler_wl='-Qoption ld '
7482      lt_prog_compiler_pic='-PIC'
7483      lt_prog_compiler_static='-Bstatic'
7484      ;;
7485
7486    sysv4 | sysv4.2uw2* | sysv4.3*)
7487      lt_prog_compiler_wl='-Wl,'
7488      lt_prog_compiler_pic='-KPIC'
7489      lt_prog_compiler_static='-Bstatic'
7490      ;;
7491
7492    sysv4*MP*)
7493      if test -d /usr/nec ;then
7494	lt_prog_compiler_pic='-Kconform_pic'
7495	lt_prog_compiler_static='-Bstatic'
7496      fi
7497      ;;
7498
7499    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7500      lt_prog_compiler_wl='-Wl,'
7501      lt_prog_compiler_pic='-KPIC'
7502      lt_prog_compiler_static='-Bstatic'
7503      ;;
7504
7505    unicos*)
7506      lt_prog_compiler_wl='-Wl,'
7507      lt_prog_compiler_can_build_shared=no
7508      ;;
7509
7510    uts4*)
7511      lt_prog_compiler_pic='-pic'
7512      lt_prog_compiler_static='-Bstatic'
7513      ;;
7514
7515    *)
7516      lt_prog_compiler_can_build_shared=no
7517      ;;
7518    esac
7519  fi
7520
7521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7522$as_echo "$lt_prog_compiler_pic" >&6; }
7523
7524#
7525# Check to make sure the PIC flag actually works.
7526#
7527if test -n "$lt_prog_compiler_pic"; then
7528
7529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7530$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7531if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7532  $as_echo_n "(cached) " >&6
7533else
7534  lt_cv_prog_compiler_pic_works=no
7535  ac_outfile=conftest.$ac_objext
7536   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7537   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7538   # Insert the option either (1) after the last *FLAGS variable, or
7539   # (2) before a word containing "conftest.", or (3) at the end.
7540   # Note that $ac_compile itself does not contain backslashes and begins
7541   # with a dollar sign (not a hyphen), so the echo should work correctly.
7542   # The option is referenced via a variable to avoid confusing sed.
7543   lt_compile=`echo "$ac_compile" | $SED \
7544   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7545   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7546   -e 's:$: $lt_compiler_flag:'`
7547   (eval echo "\"\$as_me:7547: $lt_compile\"" >&5)
7548   (eval "$lt_compile" 2>conftest.err)
7549   ac_status=$?
7550   cat conftest.err >&5
7551   echo "$as_me:7551: \$? = $ac_status" >&5
7552   if (exit $ac_status) && test -s "$ac_outfile"; then
7553     # The compiler can only warn and ignore the option if not recognized
7554     # So say no if there are warnings other than the usual output.
7555     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7556     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7557     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7558       lt_cv_prog_compiler_pic_works=yes
7559     fi
7560   fi
7561   $rm conftest*
7562
7563fi
7564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7565$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7566
7567if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7568    case $lt_prog_compiler_pic in
7569     "" | " "*) ;;
7570     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7571     esac
7572else
7573    lt_prog_compiler_pic=
7574     lt_prog_compiler_can_build_shared=no
7575fi
7576
7577fi
7578case $host_os in
7579  # For platforms which do not support PIC, -DPIC is meaningless:
7580  *djgpp*)
7581    lt_prog_compiler_pic=
7582    ;;
7583  *)
7584    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7585    ;;
7586esac
7587
7588#
7589# Check to make sure the static flag actually works.
7590#
7591wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7593$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7594if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7595  $as_echo_n "(cached) " >&6
7596else
7597  lt_cv_prog_compiler_static_works=no
7598   save_LDFLAGS="$LDFLAGS"
7599   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7600   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7601   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7602     # The linker can only warn and ignore the option if not recognized
7603     # So say no if there are warnings
7604     if test -s conftest.err; then
7605       # Append any errors to the config.log.
7606       cat conftest.err 1>&5
7607       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7608       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7609       if diff conftest.exp conftest.er2 >/dev/null; then
7610         lt_cv_prog_compiler_static_works=yes
7611       fi
7612     else
7613       lt_cv_prog_compiler_static_works=yes
7614     fi
7615   fi
7616   $rm -r conftest*
7617   LDFLAGS="$save_LDFLAGS"
7618
7619fi
7620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7621$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7622
7623if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7624    :
7625else
7626    lt_prog_compiler_static=
7627fi
7628
7629
7630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7631$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7632if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7633  $as_echo_n "(cached) " >&6
7634else
7635  lt_cv_prog_compiler_c_o=no
7636   $rm -r conftest 2>/dev/null
7637   mkdir conftest
7638   cd conftest
7639   mkdir out
7640   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7641
7642   lt_compiler_flag="-o out/conftest2.$ac_objext"
7643   # Insert the option either (1) after the last *FLAGS variable, or
7644   # (2) before a word containing "conftest.", or (3) at the end.
7645   # Note that $ac_compile itself does not contain backslashes and begins
7646   # with a dollar sign (not a hyphen), so the echo should work correctly.
7647   lt_compile=`echo "$ac_compile" | $SED \
7648   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7649   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7650   -e 's:$: $lt_compiler_flag:'`
7651   (eval echo "\"\$as_me:7651: $lt_compile\"" >&5)
7652   (eval "$lt_compile" 2>out/conftest.err)
7653   ac_status=$?
7654   cat out/conftest.err >&5
7655   echo "$as_me:7655: \$? = $ac_status" >&5
7656   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7657   then
7658     # The compiler can only warn and ignore the option if not recognized
7659     # So say no if there are warnings
7660     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7661     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7662     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7663       lt_cv_prog_compiler_c_o=yes
7664     fi
7665   fi
7666   chmod u+w . 2>&5
7667   $rm conftest*
7668   # SGI C++ compiler will create directory out/ii_files/ for
7669   # template instantiation
7670   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7671   $rm out/* && rmdir out
7672   cd ..
7673   rmdir conftest
7674   $rm conftest*
7675
7676fi
7677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7678$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7679
7680
7681hard_links="nottested"
7682if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7683  # do not overwrite the value of need_locks provided by the user
7684  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7685$as_echo_n "checking if we can lock with hard links... " >&6; }
7686  hard_links=yes
7687  $rm conftest*
7688  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7689  touch conftest.a
7690  ln conftest.a conftest.b 2>&5 || hard_links=no
7691  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7693$as_echo "$hard_links" >&6; }
7694  if test "$hard_links" = no; then
7695    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7696$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7697    need_locks=warn
7698  fi
7699else
7700  need_locks=no
7701fi
7702
7703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7704$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7705
7706  runpath_var=
7707  allow_undefined_flag=
7708  enable_shared_with_static_runtimes=no
7709  archive_cmds=
7710  archive_expsym_cmds=
7711  old_archive_From_new_cmds=
7712  old_archive_from_expsyms_cmds=
7713  export_dynamic_flag_spec=
7714  whole_archive_flag_spec=
7715  thread_safe_flag_spec=
7716  hardcode_libdir_flag_spec=
7717  hardcode_libdir_flag_spec_ld=
7718  hardcode_libdir_separator=
7719  hardcode_direct=no
7720  hardcode_minus_L=no
7721  hardcode_shlibpath_var=unsupported
7722  link_all_deplibs=unknown
7723  hardcode_automatic=no
7724  module_cmds=
7725  module_expsym_cmds=
7726  always_export_symbols=no
7727  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7728  # include_expsyms should be a list of space-separated symbols to be *always*
7729  # included in the symbol list
7730  include_expsyms=
7731  # exclude_expsyms can be an extended regexp of symbols to exclude
7732  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7733  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7734  # as well as any symbol that contains `d'.
7735  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7736  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7737  # platforms (ab)use it in PIC code, but their linkers get confused if
7738  # the symbol is explicitly referenced.  Since portable code cannot
7739  # rely on this symbol name, it's probably fine to never include it in
7740  # preloaded symbol tables.
7741  # Exclude shared library initialization/finalization symbols.
7742  extract_expsyms_cmds=
7743  # Just being paranoid about ensuring that cc_basename is set.
7744  for cc_temp in $compiler""; do
7745  case $cc_temp in
7746    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7747    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7748    \-*) ;;
7749    *) break;;
7750  esac
7751done
7752cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7753
7754  case $host_os in
7755  cygwin* | mingw* | pw32*)
7756    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7757    # When not using gcc, we currently assume that we are using
7758    # Microsoft Visual C++.
7759    if test "$GCC" != yes; then
7760      with_gnu_ld=no
7761    fi
7762    ;;
7763  interix*)
7764    # we just hope/assume this is gcc and not c89 (= MSVC++)
7765    with_gnu_ld=yes
7766    ;;
7767  openbsd*)
7768    with_gnu_ld=no
7769    ;;
7770  esac
7771
7772  ld_shlibs=yes
7773  if test "$with_gnu_ld" = yes; then
7774    # If archive_cmds runs LD, not CC, wlarc should be empty
7775    wlarc='${wl}'
7776
7777    # Set some defaults for GNU ld with shared library support. These
7778    # are reset later if shared libraries are not supported. Putting them
7779    # here allows them to be overridden if necessary.
7780    runpath_var=LD_RUN_PATH
7781    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7782    export_dynamic_flag_spec='${wl}--export-dynamic'
7783    # ancient GNU ld didn't support --whole-archive et. al.
7784    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7785	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7786      else
7787  	whole_archive_flag_spec=
7788    fi
7789    supports_anon_versioning=no
7790    case `$LD -v 2>/dev/null` in
7791      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7792      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7793      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7794      *\ 2.11.*) ;; # other 2.11 versions
7795      *) supports_anon_versioning=yes ;;
7796    esac
7797
7798    # See if GNU ld supports shared libraries.
7799    case $host_os in
7800    aix[3-9]*)
7801      # On AIX/PPC, the GNU linker is very broken
7802      if test "$host_cpu" != ia64; then
7803	ld_shlibs=no
7804	cat <<EOF 1>&2
7805
7806*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7807*** to be unable to reliably create shared libraries on AIX.
7808*** Therefore, libtool is disabling shared libraries support.  If you
7809*** really care for shared libraries, you may want to modify your PATH
7810*** so that a non-GNU linker is found, and then restart.
7811
7812EOF
7813      fi
7814      ;;
7815
7816    amigaos*)
7817      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)'
7818      hardcode_libdir_flag_spec='-L$libdir'
7819      hardcode_minus_L=yes
7820
7821      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7822      # that the semantics of dynamic libraries on AmigaOS, at least up
7823      # to version 4, is to share data among multiple programs linked
7824      # with the same dynamic library.  Since this doesn't match the
7825      # behavior of shared libraries on other platforms, we can't use
7826      # them.
7827      ld_shlibs=no
7828      ;;
7829
7830    beos*)
7831      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7832	allow_undefined_flag=unsupported
7833	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7834	# support --undefined.  This deserves some investigation.  FIXME
7835	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7836      else
7837	ld_shlibs=no
7838      fi
7839      ;;
7840
7841    cygwin* | mingw* | pw32*)
7842      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7843      # as there is no search path for DLLs.
7844      hardcode_libdir_flag_spec='-L$libdir'
7845      allow_undefined_flag=unsupported
7846      always_export_symbols=no
7847      enable_shared_with_static_runtimes=yes
7848      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7849
7850      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7851        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7852	# If the export-symbols file already is a .def file (1st line
7853	# is EXPORTS), use it as is; otherwise, prepend...
7854	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7855	  cp $export_symbols $output_objdir/$soname.def;
7856	else
7857	  echo EXPORTS > $output_objdir/$soname.def;
7858	  cat $export_symbols >> $output_objdir/$soname.def;
7859	fi~
7860	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7861      else
7862	ld_shlibs=no
7863      fi
7864      ;;
7865
7866    interix[3-9]*)
7867      hardcode_direct=no
7868      hardcode_shlibpath_var=no
7869      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7870      export_dynamic_flag_spec='${wl}-E'
7871      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7872      # Instead, shared libraries are loaded at an image base (0x10000000 by
7873      # default) and relocated if they conflict, which is a slow very memory
7874      # consuming and fragmenting process.  To avoid this, we pick a random,
7875      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7876      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7877      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7878      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'
7879      ;;
7880
7881    gnu* | linux* | k*bsd*-gnu)
7882      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7883	tmp_addflag=
7884	case $cc_basename,$host_cpu in
7885	pgcc*)				# Portland Group C compiler
7886	  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'
7887	  tmp_addflag=' $pic_flag'
7888	  ;;
7889	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7890	  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'
7891	  tmp_addflag=' $pic_flag -Mnomain' ;;
7892	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7893	  tmp_addflag=' -i_dynamic' ;;
7894	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7895	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7896	ifc* | ifort*)			# Intel Fortran compiler
7897	  tmp_addflag=' -nofor_main' ;;
7898	esac
7899	case `$CC -V 2>&1 | sed 5q` in
7900	*Sun\ C*)			# Sun C 5.9
7901	  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'
7902	  tmp_sharedflag='-G' ;;
7903	*Sun\ F*)			# Sun Fortran 8.3
7904	  tmp_sharedflag='-G' ;;
7905	*)
7906	  tmp_sharedflag='-shared' ;;
7907	esac
7908	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7909
7910	if test $supports_anon_versioning = yes; then
7911	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7912  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7913  $echo "local: *; };" >> $output_objdir/$libname.ver~
7914	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7915	fi
7916      else
7917	ld_shlibs=no
7918      fi
7919      ;;
7920
7921    netbsd*)
7922      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7923	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7924	wlarc=
7925      else
7926	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7927	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7928      fi
7929      ;;
7930
7931    solaris*)
7932      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7933	ld_shlibs=no
7934	cat <<EOF 1>&2
7935
7936*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7937*** create shared libraries on Solaris systems.  Therefore, libtool
7938*** is disabling shared libraries support.  We urge you to upgrade GNU
7939*** binutils to release 2.9.1 or newer.  Another option is to modify
7940*** your PATH or compiler configuration so that the native linker is
7941*** used, and then restart.
7942
7943EOF
7944      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7945	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7946	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7947      else
7948	ld_shlibs=no
7949      fi
7950      ;;
7951
7952    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7953      case `$LD -v 2>&1` in
7954        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7955	ld_shlibs=no
7956	cat <<_LT_EOF 1>&2
7957
7958*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7959*** reliably create shared libraries on SCO systems.  Therefore, libtool
7960*** is disabling shared libraries support.  We urge you to upgrade GNU
7961*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7962*** your PATH or compiler configuration so that the native linker is
7963*** used, and then restart.
7964
7965_LT_EOF
7966	;;
7967	*)
7968	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7969	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7970	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7971	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7972	  else
7973	    ld_shlibs=no
7974	  fi
7975	;;
7976      esac
7977      ;;
7978
7979    sunos4*)
7980      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7981      wlarc=
7982      hardcode_direct=yes
7983      hardcode_shlibpath_var=no
7984      ;;
7985
7986    *)
7987      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7988	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7989	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7990      else
7991	ld_shlibs=no
7992      fi
7993      ;;
7994    esac
7995
7996    if test "$ld_shlibs" = no; then
7997      runpath_var=
7998      hardcode_libdir_flag_spec=
7999      export_dynamic_flag_spec=
8000      whole_archive_flag_spec=
8001    fi
8002  else
8003    # PORTME fill in a description of your system's linker (not GNU ld)
8004    case $host_os in
8005    aix3*)
8006      allow_undefined_flag=unsupported
8007      always_export_symbols=yes
8008      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'
8009      # Note: this linker hardcodes the directories in LIBPATH if there
8010      # are no directories specified by -L.
8011      hardcode_minus_L=yes
8012      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8013	# Neither direct hardcoding nor static linking is supported with a
8014	# broken collect2.
8015	hardcode_direct=unsupported
8016      fi
8017      ;;
8018
8019    aix[4-9]*)
8020      if test "$host_cpu" = ia64; then
8021	# On IA64, the linker does run time linking by default, so we don't
8022	# have to do anything special.
8023	aix_use_runtimelinking=no
8024	exp_sym_flag='-Bexport'
8025	no_entry_flag=""
8026      else
8027	# If we're using GNU nm, then we don't want the "-C" option.
8028	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8029	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8030	  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'
8031	else
8032	  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'
8033	fi
8034	aix_use_runtimelinking=no
8035
8036	# Test if we are trying to use run time linking or normal
8037	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8038	# need to do runtime linking.
8039	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8040	  for ld_flag in $LDFLAGS; do
8041  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8042  	    aix_use_runtimelinking=yes
8043  	    break
8044  	  fi
8045	  done
8046	  ;;
8047	esac
8048
8049	exp_sym_flag='-bexport'
8050	no_entry_flag='-bnoentry'
8051      fi
8052
8053      # When large executables or shared objects are built, AIX ld can
8054      # have problems creating the table of contents.  If linking a library
8055      # or program results in "error TOC overflow" add -mminimal-toc to
8056      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8057      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8058
8059      archive_cmds=''
8060      hardcode_direct=yes
8061      hardcode_libdir_separator=':'
8062      link_all_deplibs=yes
8063
8064      if test "$GCC" = yes; then
8065	case $host_os in aix4.[012]|aix4.[012].*)
8066	# We only want to do this on AIX 4.2 and lower, the check
8067	# below for broken collect2 doesn't work under 4.3+
8068	  collect2name=`${CC} -print-prog-name=collect2`
8069	  if test -f "$collect2name" && \
8070  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8071	  then
8072  	  # We have reworked collect2
8073  	  :
8074	  else
8075  	  # We have old collect2
8076  	  hardcode_direct=unsupported
8077  	  # It fails to find uninstalled libraries when the uninstalled
8078  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8079  	  # to unsupported forces relinking
8080  	  hardcode_minus_L=yes
8081  	  hardcode_libdir_flag_spec='-L$libdir'
8082  	  hardcode_libdir_separator=
8083	  fi
8084	  ;;
8085	esac
8086	shared_flag='-shared'
8087	if test "$aix_use_runtimelinking" = yes; then
8088	  shared_flag="$shared_flag "'${wl}-G'
8089	fi
8090      else
8091	# not using gcc
8092	if test "$host_cpu" = ia64; then
8093  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8094  	# chokes on -Wl,-G. The following line is correct:
8095	  shared_flag='-G'
8096	else
8097	  if test "$aix_use_runtimelinking" = yes; then
8098	    shared_flag='${wl}-G'
8099	  else
8100	    shared_flag='${wl}-bM:SRE'
8101	  fi
8102	fi
8103      fi
8104
8105      # It seems that -bexpall does not export symbols beginning with
8106      # underscore (_), so it is better to generate a list of symbols to export.
8107      always_export_symbols=yes
8108      if test "$aix_use_runtimelinking" = yes; then
8109	# Warning - without using the other runtime loading flags (-brtl),
8110	# -berok will link without error, but may produce a broken library.
8111	allow_undefined_flag='-berok'
8112       # Determine the default libpath from the value encoded in an empty executable.
8113       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114/* end confdefs.h.  */
8115
8116int
8117main ()
8118{
8119
8120  ;
8121  return 0;
8122}
8123_ACEOF
8124if ac_fn_c_try_link "$LINENO"; then :
8125
8126lt_aix_libpath_sed='
8127    /Import File Strings/,/^$/ {
8128	/^0/ {
8129	    s/^0  *\(.*\)$/\1/
8130	    p
8131	}
8132    }'
8133aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8134# Check for a 64-bit object if we didn't find anything.
8135if test -z "$aix_libpath"; then
8136  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8137fi
8138fi
8139rm -f core conftest.err conftest.$ac_objext \
8140    conftest$ac_exeext conftest.$ac_ext
8141if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8142
8143       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8144	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"
8145       else
8146	if test "$host_cpu" = ia64; then
8147	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8148	  allow_undefined_flag="-z nodefs"
8149	  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"
8150	else
8151	 # Determine the default libpath from the value encoded in an empty executable.
8152	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153/* end confdefs.h.  */
8154
8155int
8156main ()
8157{
8158
8159  ;
8160  return 0;
8161}
8162_ACEOF
8163if ac_fn_c_try_link "$LINENO"; then :
8164
8165lt_aix_libpath_sed='
8166    /Import File Strings/,/^$/ {
8167	/^0/ {
8168	    s/^0  *\(.*\)$/\1/
8169	    p
8170	}
8171    }'
8172aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8173# Check for a 64-bit object if we didn't find anything.
8174if test -z "$aix_libpath"; then
8175  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8176fi
8177fi
8178rm -f core conftest.err conftest.$ac_objext \
8179    conftest$ac_exeext conftest.$ac_ext
8180if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8181
8182	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8183	  # Warning - without using the other run time loading flags,
8184	  # -berok will link without error, but may produce a broken library.
8185	  no_undefined_flag=' ${wl}-bernotok'
8186	  allow_undefined_flag=' ${wl}-berok'
8187	  # Exported symbols can be pulled into shared objects from archives
8188	  whole_archive_flag_spec='$convenience'
8189	  archive_cmds_need_lc=yes
8190	  # This is similar to how AIX traditionally builds its shared libraries.
8191	  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'
8192	fi
8193      fi
8194      ;;
8195
8196    amigaos*)
8197      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)'
8198      hardcode_libdir_flag_spec='-L$libdir'
8199      hardcode_minus_L=yes
8200      # see comment about different semantics on the GNU ld section
8201      ld_shlibs=no
8202      ;;
8203
8204    bsdi[45]*)
8205      export_dynamic_flag_spec=-rdynamic
8206      ;;
8207
8208    cygwin* | mingw* | pw32*)
8209      # When not using gcc, we currently assume that we are using
8210      # Microsoft Visual C++.
8211      # hardcode_libdir_flag_spec is actually meaningless, as there is
8212      # no search path for DLLs.
8213      hardcode_libdir_flag_spec=' '
8214      allow_undefined_flag=unsupported
8215      # Tell ltmain to make .lib files, not .a files.
8216      libext=lib
8217      # Tell ltmain to make .dll files, not .so files.
8218      shrext_cmds=".dll"
8219      # FIXME: Setting linknames here is a bad hack.
8220      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8221      # The linker will automatically build a .lib file if we build a DLL.
8222      old_archive_From_new_cmds='true'
8223      # FIXME: Should let the user specify the lib program.
8224      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8225      fix_srcfile_path='`cygpath -w "$srcfile"`'
8226      enable_shared_with_static_runtimes=yes
8227      ;;
8228
8229    darwin* | rhapsody*)
8230      case $host_os in
8231        rhapsody* | darwin1.[012])
8232         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8233         ;;
8234       *) # Darwin 1.3 on
8235         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8236           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8237         else
8238           case ${MACOSX_DEPLOYMENT_TARGET} in
8239             10.[012])
8240               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8241               ;;
8242             10.*)
8243               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8244               ;;
8245           esac
8246         fi
8247         ;;
8248      esac
8249      archive_cmds_need_lc=no
8250      hardcode_direct=no
8251      hardcode_automatic=yes
8252      hardcode_shlibpath_var=unsupported
8253      whole_archive_flag_spec=''
8254      link_all_deplibs=yes
8255    if test "$GCC" = yes ; then
8256    	output_verbose_link_cmd='echo'
8257        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8258        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8259        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}"
8260        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}"
8261    else
8262      case $cc_basename in
8263        xlc*)
8264         output_verbose_link_cmd='echo'
8265         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8266         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8267          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8268         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}'
8269          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}'
8270          ;;
8271       *)
8272         ld_shlibs=no
8273          ;;
8274      esac
8275    fi
8276      ;;
8277
8278    dgux*)
8279      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8280      hardcode_libdir_flag_spec='-L$libdir'
8281      hardcode_shlibpath_var=no
8282      ;;
8283
8284    freebsd1*)
8285      ld_shlibs=no
8286      ;;
8287
8288    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8289    # support.  Future versions do this automatically, but an explicit c++rt0.o
8290    # does not break anything, and helps significantly (at the cost of a little
8291    # extra space).
8292    freebsd2.2*)
8293      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8294      hardcode_libdir_flag_spec='-R$libdir'
8295      hardcode_direct=yes
8296      hardcode_shlibpath_var=no
8297      ;;
8298
8299    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8300    freebsd2*)
8301      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8302      hardcode_direct=yes
8303      hardcode_minus_L=yes
8304      hardcode_shlibpath_var=no
8305      ;;
8306
8307    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8308    freebsd* | dragonfly*)
8309      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8310      hardcode_libdir_flag_spec='-R$libdir'
8311      hardcode_direct=yes
8312      hardcode_shlibpath_var=no
8313      ;;
8314
8315    hpux9*)
8316      if test "$GCC" = yes; then
8317	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'
8318      else
8319	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'
8320      fi
8321      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8322      hardcode_libdir_separator=:
8323      hardcode_direct=yes
8324
8325      # hardcode_minus_L: Not really in the search PATH,
8326      # but as the default location of the library.
8327      hardcode_minus_L=yes
8328      export_dynamic_flag_spec='${wl}-E'
8329      ;;
8330
8331    hpux10*)
8332      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8333	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8334      else
8335	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8336      fi
8337      if test "$with_gnu_ld" = no; then
8338	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8339	hardcode_libdir_separator=:
8340
8341	hardcode_direct=yes
8342	export_dynamic_flag_spec='${wl}-E'
8343
8344	# hardcode_minus_L: Not really in the search PATH,
8345	# but as the default location of the library.
8346	hardcode_minus_L=yes
8347      fi
8348      ;;
8349
8350    hpux11*)
8351      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8352	case $host_cpu in
8353	hppa*64*)
8354	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8355	  ;;
8356	ia64*)
8357	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8358	  ;;
8359	*)
8360	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8361	  ;;
8362	esac
8363      else
8364	case $host_cpu in
8365	hppa*64*)
8366	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8367	  ;;
8368	ia64*)
8369	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8370	  ;;
8371	*)
8372	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8373	  ;;
8374	esac
8375      fi
8376      if test "$with_gnu_ld" = no; then
8377	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8378	hardcode_libdir_separator=:
8379
8380	case $host_cpu in
8381	hppa*64*|ia64*)
8382	  hardcode_libdir_flag_spec_ld='+b $libdir'
8383	  hardcode_direct=no
8384	  hardcode_shlibpath_var=no
8385	  ;;
8386	*)
8387	  hardcode_direct=yes
8388	  export_dynamic_flag_spec='${wl}-E'
8389
8390	  # hardcode_minus_L: Not really in the search PATH,
8391	  # but as the default location of the library.
8392	  hardcode_minus_L=yes
8393	  ;;
8394	esac
8395      fi
8396      ;;
8397
8398    irix5* | irix6* | nonstopux*)
8399      if test "$GCC" = yes; then
8400	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'
8401      else
8402	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'
8403	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8404      fi
8405      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8406      hardcode_libdir_separator=:
8407      link_all_deplibs=yes
8408      ;;
8409
8410    netbsd*)
8411      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8412	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8413      else
8414	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8415      fi
8416      hardcode_libdir_flag_spec='-R$libdir'
8417      hardcode_direct=yes
8418      hardcode_shlibpath_var=no
8419      ;;
8420
8421    newsos6)
8422      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8423      hardcode_direct=yes
8424      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8425      hardcode_libdir_separator=:
8426      hardcode_shlibpath_var=no
8427      ;;
8428
8429    openbsd*)
8430      if test -f /usr/libexec/ld.so; then
8431	hardcode_direct=yes
8432	hardcode_shlibpath_var=no
8433	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8434	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8435	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8436	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8437	  export_dynamic_flag_spec='${wl}-E'
8438	else
8439	  case $host_os in
8440	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8441	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8442	     hardcode_libdir_flag_spec='-R$libdir'
8443	     ;;
8444	   *)
8445	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8446	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8447	     ;;
8448	  esac
8449        fi
8450      else
8451	ld_shlibs=no
8452      fi
8453      ;;
8454
8455    os2*)
8456      hardcode_libdir_flag_spec='-L$libdir'
8457      hardcode_minus_L=yes
8458      allow_undefined_flag=unsupported
8459      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'
8460      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8461      ;;
8462
8463    osf3*)
8464      if test "$GCC" = yes; then
8465	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8466	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'
8467      else
8468	allow_undefined_flag=' -expect_unresolved \*'
8469	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'
8470      fi
8471      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8472      hardcode_libdir_separator=:
8473      ;;
8474
8475    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8476      if test "$GCC" = yes; then
8477	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8478	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'
8479	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8480      else
8481	allow_undefined_flag=' -expect_unresolved \*'
8482	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'
8483	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8484	$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'
8485
8486	# Both c and cxx compiler support -rpath directly
8487	hardcode_libdir_flag_spec='-rpath $libdir'
8488      fi
8489      hardcode_libdir_separator=:
8490      ;;
8491
8492    solaris*)
8493      no_undefined_flag=' -z text'
8494      if test "$GCC" = yes; then
8495	wlarc='${wl}'
8496	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8497	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8498	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8499      else
8500	wlarc=''
8501	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8502	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8503  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8504      fi
8505      hardcode_libdir_flag_spec='-R$libdir'
8506      hardcode_shlibpath_var=no
8507      case $host_os in
8508      solaris2.[0-5] | solaris2.[0-5].*) ;;
8509      *)
8510	# The compiler driver will combine and reorder linker options,
8511	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8512	# but is careful enough not to reorder.
8513 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8514	if test "$GCC" = yes; then
8515	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8516	else
8517	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8518	fi
8519	;;
8520      esac
8521      link_all_deplibs=yes
8522      ;;
8523
8524    sunos4*)
8525      if test "x$host_vendor" = xsequent; then
8526	# Use $CC to link under sequent, because it throws in some extra .o
8527	# files that make .init and .fini sections work.
8528	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8529      else
8530	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8531      fi
8532      hardcode_libdir_flag_spec='-L$libdir'
8533      hardcode_direct=yes
8534      hardcode_minus_L=yes
8535      hardcode_shlibpath_var=no
8536      ;;
8537
8538    sysv4)
8539      case $host_vendor in
8540	sni)
8541	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8542	  hardcode_direct=yes # is this really true???
8543	;;
8544	siemens)
8545	  ## LD is ld it makes a PLAMLIB
8546	  ## CC just makes a GrossModule.
8547	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8548	  reload_cmds='$CC -r -o $output$reload_objs'
8549	  hardcode_direct=no
8550        ;;
8551	motorola)
8552	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8553	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8554	;;
8555      esac
8556      runpath_var='LD_RUN_PATH'
8557      hardcode_shlibpath_var=no
8558      ;;
8559
8560    sysv4.3*)
8561      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8562      hardcode_shlibpath_var=no
8563      export_dynamic_flag_spec='-Bexport'
8564      ;;
8565
8566    sysv4*MP*)
8567      if test -d /usr/nec; then
8568	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8569	hardcode_shlibpath_var=no
8570	runpath_var=LD_RUN_PATH
8571	hardcode_runpath_var=yes
8572	ld_shlibs=yes
8573      fi
8574      ;;
8575
8576    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8577      no_undefined_flag='${wl}-z,text'
8578      archive_cmds_need_lc=no
8579      hardcode_shlibpath_var=no
8580      runpath_var='LD_RUN_PATH'
8581
8582      if test "$GCC" = yes; then
8583	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8584	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8585      else
8586	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8587	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8588      fi
8589      ;;
8590
8591    sysv5* | sco3.2v5* | sco5v6*)
8592      # Note: We can NOT use -z defs as we might desire, because we do not
8593      # link with -lc, and that would cause any symbols used from libc to
8594      # always be unresolved, which means just about no library would
8595      # ever link correctly.  If we're not using GNU ld we use -z text
8596      # though, which does catch some bad symbols but isn't as heavy-handed
8597      # as -z defs.
8598      no_undefined_flag='${wl}-z,text'
8599      allow_undefined_flag='${wl}-z,nodefs'
8600      archive_cmds_need_lc=no
8601      hardcode_shlibpath_var=no
8602      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8603      hardcode_libdir_separator=':'
8604      link_all_deplibs=yes
8605      export_dynamic_flag_spec='${wl}-Bexport'
8606      runpath_var='LD_RUN_PATH'
8607
8608      if test "$GCC" = yes; then
8609	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8610	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8611      else
8612	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8613	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8614      fi
8615      ;;
8616
8617    uts4*)
8618      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8619      hardcode_libdir_flag_spec='-L$libdir'
8620      hardcode_shlibpath_var=no
8621      ;;
8622
8623    *)
8624      ld_shlibs=no
8625      ;;
8626    esac
8627  fi
8628
8629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8630$as_echo "$ld_shlibs" >&6; }
8631test "$ld_shlibs" = no && can_build_shared=no
8632
8633#
8634# Do we need to explicitly link libc?
8635#
8636case "x$archive_cmds_need_lc" in
8637x|xyes)
8638  # Assume -lc should be added
8639  archive_cmds_need_lc=yes
8640
8641  if test "$enable_shared" = yes && test "$GCC" = yes; then
8642    case $archive_cmds in
8643    *'~'*)
8644      # FIXME: we may have to deal with multi-command sequences.
8645      ;;
8646    '$CC '*)
8647      # Test whether the compiler implicitly links with -lc since on some
8648      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8649      # to ld, don't add -lc before -lgcc.
8650      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8651$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8652      $rm conftest*
8653      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8654
8655      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8656  (eval $ac_compile) 2>&5
8657  ac_status=$?
8658  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8659  test $ac_status = 0; } 2>conftest.err; then
8660        soname=conftest
8661        lib=conftest
8662        libobjs=conftest.$ac_objext
8663        deplibs=
8664        wl=$lt_prog_compiler_wl
8665	pic_flag=$lt_prog_compiler_pic
8666        compiler_flags=-v
8667        linker_flags=-v
8668        verstring=
8669        output_objdir=.
8670        libname=conftest
8671        lt_save_allow_undefined_flag=$allow_undefined_flag
8672        allow_undefined_flag=
8673        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8674  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8675  ac_status=$?
8676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8677  test $ac_status = 0; }
8678        then
8679	  archive_cmds_need_lc=no
8680        else
8681	  archive_cmds_need_lc=yes
8682        fi
8683        allow_undefined_flag=$lt_save_allow_undefined_flag
8684      else
8685        cat conftest.err 1>&5
8686      fi
8687      $rm conftest*
8688      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8689$as_echo "$archive_cmds_need_lc" >&6; }
8690      ;;
8691    esac
8692  fi
8693  ;;
8694esac
8695
8696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8697$as_echo_n "checking dynamic linker characteristics... " >&6; }
8698library_names_spec=
8699libname_spec='lib$name'
8700soname_spec=
8701shrext_cmds=".so"
8702postinstall_cmds=
8703postuninstall_cmds=
8704finish_cmds=
8705finish_eval=
8706shlibpath_var=
8707shlibpath_overrides_runpath=unknown
8708version_type=none
8709dynamic_linker="$host_os ld.so"
8710sys_lib_dlsearch_path_spec="/lib /usr/lib"
8711
8712if test "$GCC" = yes; then
8713  case $host_os in
8714    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8715    *) lt_awk_arg="/^libraries:/" ;;
8716  esac
8717  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8718  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8719    # if the path contains ";" then we assume it to be the separator
8720    # otherwise default to the standard path separator (i.e. ":") - it is
8721    # assumed that no part of a normal pathname contains ";" but that should
8722    # okay in the real world where ";" in dirpaths is itself problematic.
8723    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8724  else
8725    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8726  fi
8727  # Ok, now we have the path, separated by spaces, we can step through it
8728  # and add multilib dir if necessary.
8729  lt_tmp_lt_search_path_spec=
8730  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8731  for lt_sys_path in $lt_search_path_spec; do
8732    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8733      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8734    else
8735      test -d "$lt_sys_path" && \
8736	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8737    fi
8738  done
8739  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8740BEGIN {RS=" "; FS="/|\n";} {
8741  lt_foo="";
8742  lt_count=0;
8743  for (lt_i = NF; lt_i > 0; lt_i--) {
8744    if ($lt_i != "" && $lt_i != ".") {
8745      if ($lt_i == "..") {
8746        lt_count++;
8747      } else {
8748        if (lt_count == 0) {
8749          lt_foo="/" $lt_i lt_foo;
8750        } else {
8751          lt_count--;
8752        }
8753      }
8754    }
8755  }
8756  if (lt_foo != "") { lt_freq[lt_foo]++; }
8757  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8758}'`
8759  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8760else
8761  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8762fi
8763need_lib_prefix=unknown
8764hardcode_into_libs=no
8765
8766# when you set need_version to no, make sure it does not cause -set_version
8767# flags to be left without arguments
8768need_version=unknown
8769
8770case $host_os in
8771aix3*)
8772  version_type=linux
8773  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8774  shlibpath_var=LIBPATH
8775
8776  # AIX 3 has no versioning support, so we append a major version to the name.
8777  soname_spec='${libname}${release}${shared_ext}$major'
8778  ;;
8779
8780aix[4-9]*)
8781  version_type=linux
8782  need_lib_prefix=no
8783  need_version=no
8784  hardcode_into_libs=yes
8785  if test "$host_cpu" = ia64; then
8786    # AIX 5 supports IA64
8787    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8788    shlibpath_var=LD_LIBRARY_PATH
8789  else
8790    # With GCC up to 2.95.x, collect2 would create an import file
8791    # for dependence libraries.  The import file would start with
8792    # the line `#! .'.  This would cause the generated library to
8793    # depend on `.', always an invalid library.  This was fixed in
8794    # development snapshots of GCC prior to 3.0.
8795    case $host_os in
8796      aix4 | aix4.[01] | aix4.[01].*)
8797      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8798	   echo ' yes '
8799	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8800	:
8801      else
8802	can_build_shared=no
8803      fi
8804      ;;
8805    esac
8806    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8807    # soname into executable. Probably we can add versioning support to
8808    # collect2, so additional links can be useful in future.
8809    if test "$aix_use_runtimelinking" = yes; then
8810      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8811      # instead of lib<name>.a to let people know that these are not
8812      # typical AIX shared libraries.
8813      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8814    else
8815      # We preserve .a as extension for shared libraries through AIX4.2
8816      # and later when we are not doing run time linking.
8817      library_names_spec='${libname}${release}.a $libname.a'
8818      soname_spec='${libname}${release}${shared_ext}$major'
8819    fi
8820    shlibpath_var=LIBPATH
8821  fi
8822  ;;
8823
8824amigaos*)
8825  library_names_spec='$libname.ixlibrary $libname.a'
8826  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8827  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'
8828  ;;
8829
8830beos*)
8831  library_names_spec='${libname}${shared_ext}'
8832  dynamic_linker="$host_os ld.so"
8833  shlibpath_var=LIBRARY_PATH
8834  ;;
8835
8836bsdi[45]*)
8837  version_type=linux
8838  need_version=no
8839  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8840  soname_spec='${libname}${release}${shared_ext}$major'
8841  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8842  shlibpath_var=LD_LIBRARY_PATH
8843  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8844  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8845  # the default ld.so.conf also contains /usr/contrib/lib and
8846  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8847  # libtool to hard-code these into programs
8848  ;;
8849
8850cygwin* | mingw* | pw32*)
8851  version_type=windows
8852  shrext_cmds=".dll"
8853  need_version=no
8854  need_lib_prefix=no
8855
8856  case $GCC,$host_os in
8857  yes,cygwin* | yes,mingw* | yes,pw32*)
8858    library_names_spec='$libname.dll.a'
8859    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8860    postinstall_cmds='base_file=`basename \${file}`~
8861      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8862      dldir=$destdir/`dirname \$dlpath`~
8863      test -d \$dldir || mkdir -p \$dldir~
8864      $install_prog $dir/$dlname \$dldir/$dlname~
8865      chmod a+x \$dldir/$dlname'
8866    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8867      dlpath=$dir/\$dldll~
8868       $rm \$dlpath'
8869    shlibpath_overrides_runpath=yes
8870
8871    case $host_os in
8872    cygwin*)
8873      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8874      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8875      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8876      ;;
8877    mingw*)
8878      # MinGW DLLs use traditional 'lib' prefix
8879      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8880      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8881      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8882        # It is most probably a Windows format PATH printed by
8883        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8884        # path with ; separators, and with drive letters. We can handle the
8885        # drive letters (cygwin fileutils understands them), so leave them,
8886        # especially as we might pass files found there to a mingw objdump,
8887        # which wouldn't understand a cygwinified path. Ahh.
8888        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8889      else
8890        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8891      fi
8892      ;;
8893    pw32*)
8894      # pw32 DLLs use 'pw' prefix rather than 'lib'
8895      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8896      ;;
8897    esac
8898    ;;
8899
8900  *)
8901    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8902    ;;
8903  esac
8904  dynamic_linker='Win32 ld.exe'
8905  # FIXME: first we should search . and the directory the executable is in
8906  shlibpath_var=PATH
8907  ;;
8908
8909darwin* | rhapsody*)
8910  dynamic_linker="$host_os dyld"
8911  version_type=darwin
8912  need_lib_prefix=no
8913  need_version=no
8914  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8915  soname_spec='${libname}${release}${major}$shared_ext'
8916  shlibpath_overrides_runpath=yes
8917  shlibpath_var=DYLD_LIBRARY_PATH
8918  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8919
8920  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8921  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8922  ;;
8923
8924dgux*)
8925  version_type=linux
8926  need_lib_prefix=no
8927  need_version=no
8928  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8929  soname_spec='${libname}${release}${shared_ext}$major'
8930  shlibpath_var=LD_LIBRARY_PATH
8931  ;;
8932
8933freebsd1*)
8934  dynamic_linker=no
8935  ;;
8936
8937freebsd* | dragonfly*)
8938  # DragonFly does not have aout.  When/if they implement a new
8939  # versioning mechanism, adjust this.
8940  if test -x /usr/bin/objformat; then
8941    objformat=`/usr/bin/objformat`
8942  else
8943    case $host_os in
8944    freebsd[123]*) objformat=aout ;;
8945    *) objformat=elf ;;
8946    esac
8947  fi
8948  version_type=freebsd-$objformat
8949  case $version_type in
8950    freebsd-elf*)
8951      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8952      need_version=no
8953      need_lib_prefix=no
8954      ;;
8955    freebsd-*)
8956      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8957      need_version=yes
8958      ;;
8959  esac
8960  shlibpath_var=LD_LIBRARY_PATH
8961  case $host_os in
8962  freebsd2*)
8963    shlibpath_overrides_runpath=yes
8964    ;;
8965  freebsd3.[01]* | freebsdelf3.[01]*)
8966    shlibpath_overrides_runpath=yes
8967    hardcode_into_libs=yes
8968    ;;
8969  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8970  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8971    shlibpath_overrides_runpath=no
8972    hardcode_into_libs=yes
8973    ;;
8974  *) # from 4.6 on, and DragonFly
8975    shlibpath_overrides_runpath=yes
8976    hardcode_into_libs=yes
8977    ;;
8978  esac
8979  ;;
8980
8981gnu*)
8982  version_type=linux
8983  need_lib_prefix=no
8984  need_version=no
8985  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8986  soname_spec='${libname}${release}${shared_ext}$major'
8987  shlibpath_var=LD_LIBRARY_PATH
8988  hardcode_into_libs=yes
8989  ;;
8990
8991hpux9* | hpux10* | hpux11*)
8992  # Give a soname corresponding to the major version so that dld.sl refuses to
8993  # link against other versions.
8994  version_type=sunos
8995  need_lib_prefix=no
8996  need_version=no
8997  case $host_cpu in
8998  ia64*)
8999    shrext_cmds='.so'
9000    hardcode_into_libs=yes
9001    dynamic_linker="$host_os dld.so"
9002    shlibpath_var=LD_LIBRARY_PATH
9003    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9004    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9005    soname_spec='${libname}${release}${shared_ext}$major'
9006    if test "X$HPUX_IA64_MODE" = X32; then
9007      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9008    else
9009      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9010    fi
9011    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9012    ;;
9013   hppa*64*)
9014     shrext_cmds='.sl'
9015     hardcode_into_libs=yes
9016     dynamic_linker="$host_os dld.sl"
9017     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9018     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9019     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9020     soname_spec='${libname}${release}${shared_ext}$major'
9021     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9022     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9023     ;;
9024   *)
9025    shrext_cmds='.sl'
9026    dynamic_linker="$host_os dld.sl"
9027    shlibpath_var=SHLIB_PATH
9028    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9029    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030    soname_spec='${libname}${release}${shared_ext}$major'
9031    ;;
9032  esac
9033  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9034  postinstall_cmds='chmod 555 $lib'
9035  ;;
9036
9037interix[3-9]*)
9038  version_type=linux
9039  need_lib_prefix=no
9040  need_version=no
9041  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9042  soname_spec='${libname}${release}${shared_ext}$major'
9043  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9044  shlibpath_var=LD_LIBRARY_PATH
9045  shlibpath_overrides_runpath=no
9046  hardcode_into_libs=yes
9047  ;;
9048
9049irix5* | irix6* | nonstopux*)
9050  case $host_os in
9051    nonstopux*) version_type=nonstopux ;;
9052    *)
9053	if test "$lt_cv_prog_gnu_ld" = yes; then
9054		version_type=linux
9055	else
9056		version_type=irix
9057	fi ;;
9058  esac
9059  need_lib_prefix=no
9060  need_version=no
9061  soname_spec='${libname}${release}${shared_ext}$major'
9062  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9063  case $host_os in
9064  irix5* | nonstopux*)
9065    libsuff= shlibsuff=
9066    ;;
9067  *)
9068    case $LD in # libtool.m4 will add one of these switches to LD
9069    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9070      libsuff= shlibsuff= libmagic=32-bit;;
9071    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9072      libsuff=32 shlibsuff=N32 libmagic=N32;;
9073    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9074      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9075    *) libsuff= shlibsuff= libmagic=never-match;;
9076    esac
9077    ;;
9078  esac
9079  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9080  shlibpath_overrides_runpath=no
9081  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9082  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9083  hardcode_into_libs=yes
9084  ;;
9085
9086# No shared lib support for Linux oldld, aout, or coff.
9087linux*oldld* | linux*aout* | linux*coff*)
9088  dynamic_linker=no
9089  ;;
9090
9091# This must be Linux ELF.
9092linux* | k*bsd*-gnu)
9093  version_type=linux
9094  need_lib_prefix=no
9095  need_version=no
9096  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9097  soname_spec='${libname}${release}${shared_ext}$major'
9098  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9099  shlibpath_var=LD_LIBRARY_PATH
9100  shlibpath_overrides_runpath=no
9101  # This implies no fast_install, which is unacceptable.
9102  # Some rework will be needed to allow for fast_install
9103  # before this can be enabled.
9104  hardcode_into_libs=yes
9105
9106  # Append ld.so.conf contents to the search path
9107  if test -f /etc/ld.so.conf; then
9108    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' ' '`
9109    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9110  fi
9111
9112  # We used to test for /lib/ld.so.1 and disable shared libraries on
9113  # powerpc, because MkLinux only supported shared libraries with the
9114  # GNU dynamic linker.  Since this was broken with cross compilers,
9115  # most powerpc-linux boxes support dynamic linking these days and
9116  # people can always --disable-shared, the test was removed, and we
9117  # assume the GNU/Linux dynamic linker is in use.
9118  dynamic_linker='GNU/Linux ld.so'
9119  ;;
9120
9121netbsd*)
9122  version_type=sunos
9123  need_lib_prefix=no
9124  need_version=no
9125  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9126    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9127    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9128    dynamic_linker='NetBSD (a.out) ld.so'
9129  else
9130    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9131    soname_spec='${libname}${release}${shared_ext}$major'
9132    dynamic_linker='NetBSD ld.elf_so'
9133  fi
9134  shlibpath_var=LD_LIBRARY_PATH
9135  shlibpath_overrides_runpath=yes
9136  hardcode_into_libs=yes
9137  ;;
9138
9139newsos6)
9140  version_type=linux
9141  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142  shlibpath_var=LD_LIBRARY_PATH
9143  shlibpath_overrides_runpath=yes
9144  ;;
9145
9146nto-qnx*)
9147  version_type=linux
9148  need_lib_prefix=no
9149  need_version=no
9150  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151  soname_spec='${libname}${release}${shared_ext}$major'
9152  shlibpath_var=LD_LIBRARY_PATH
9153  shlibpath_overrides_runpath=yes
9154  ;;
9155
9156openbsd*)
9157  version_type=sunos
9158  sys_lib_dlsearch_path_spec="/usr/lib"
9159  need_lib_prefix=no
9160  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9161  case $host_os in
9162    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9163    *)                         need_version=no  ;;
9164  esac
9165  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9166  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9167  shlibpath_var=LD_LIBRARY_PATH
9168  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9169    case $host_os in
9170      openbsd2.[89] | openbsd2.[89].*)
9171	shlibpath_overrides_runpath=no
9172	;;
9173      *)
9174	shlibpath_overrides_runpath=yes
9175	;;
9176      esac
9177  else
9178    shlibpath_overrides_runpath=yes
9179  fi
9180  ;;
9181
9182os2*)
9183  libname_spec='$name'
9184  shrext_cmds=".dll"
9185  need_lib_prefix=no
9186  library_names_spec='$libname${shared_ext} $libname.a'
9187  dynamic_linker='OS/2 ld.exe'
9188  shlibpath_var=LIBPATH
9189  ;;
9190
9191osf3* | osf4* | osf5*)
9192  version_type=osf
9193  need_lib_prefix=no
9194  need_version=no
9195  soname_spec='${libname}${release}${shared_ext}$major'
9196  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9197  shlibpath_var=LD_LIBRARY_PATH
9198  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9199  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9200  ;;
9201
9202rdos*)
9203  dynamic_linker=no
9204  ;;
9205
9206solaris*)
9207  version_type=linux
9208  need_lib_prefix=no
9209  need_version=no
9210  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9211  soname_spec='${libname}${release}${shared_ext}$major'
9212  shlibpath_var=LD_LIBRARY_PATH
9213  shlibpath_overrides_runpath=yes
9214  hardcode_into_libs=yes
9215  # ldd complains unless libraries are executable
9216  postinstall_cmds='chmod +x $lib'
9217  ;;
9218
9219sunos4*)
9220  version_type=sunos
9221  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9222  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9223  shlibpath_var=LD_LIBRARY_PATH
9224  shlibpath_overrides_runpath=yes
9225  if test "$with_gnu_ld" = yes; then
9226    need_lib_prefix=no
9227  fi
9228  need_version=yes
9229  ;;
9230
9231sysv4 | sysv4.3*)
9232  version_type=linux
9233  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234  soname_spec='${libname}${release}${shared_ext}$major'
9235  shlibpath_var=LD_LIBRARY_PATH
9236  case $host_vendor in
9237    sni)
9238      shlibpath_overrides_runpath=no
9239      need_lib_prefix=no
9240      export_dynamic_flag_spec='${wl}-Blargedynsym'
9241      runpath_var=LD_RUN_PATH
9242      ;;
9243    siemens)
9244      need_lib_prefix=no
9245      ;;
9246    motorola)
9247      need_lib_prefix=no
9248      need_version=no
9249      shlibpath_overrides_runpath=no
9250      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9251      ;;
9252  esac
9253  ;;
9254
9255sysv4*MP*)
9256  if test -d /usr/nec ;then
9257    version_type=linux
9258    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9259    soname_spec='$libname${shared_ext}.$major'
9260    shlibpath_var=LD_LIBRARY_PATH
9261  fi
9262  ;;
9263
9264sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9265  version_type=freebsd-elf
9266  need_lib_prefix=no
9267  need_version=no
9268  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9269  soname_spec='${libname}${release}${shared_ext}$major'
9270  shlibpath_var=LD_LIBRARY_PATH
9271  hardcode_into_libs=yes
9272  if test "$with_gnu_ld" = yes; then
9273    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9274    shlibpath_overrides_runpath=no
9275  else
9276    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9277    shlibpath_overrides_runpath=yes
9278    case $host_os in
9279      sco3.2v5*)
9280        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9281	;;
9282    esac
9283  fi
9284  sys_lib_dlsearch_path_spec='/usr/lib'
9285  ;;
9286
9287uts4*)
9288  version_type=linux
9289  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290  soname_spec='${libname}${release}${shared_ext}$major'
9291  shlibpath_var=LD_LIBRARY_PATH
9292  ;;
9293
9294*)
9295  dynamic_linker=no
9296  ;;
9297esac
9298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9299$as_echo "$dynamic_linker" >&6; }
9300test "$dynamic_linker" = no && can_build_shared=no
9301
9302if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
9303  $as_echo_n "(cached) " >&6
9304else
9305  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9306fi
9307
9308sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9309if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
9310  $as_echo_n "(cached) " >&6
9311else
9312  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9313fi
9314
9315sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9316
9317variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9318if test "$GCC" = yes; then
9319  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9320fi
9321
9322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9323$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9324hardcode_action=
9325if test -n "$hardcode_libdir_flag_spec" || \
9326   test -n "$runpath_var" || \
9327   test "X$hardcode_automatic" = "Xyes" ; then
9328
9329  # We can hardcode non-existant directories.
9330  if test "$hardcode_direct" != no &&
9331     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9332     # have to relink, otherwise we might link with an installed library
9333     # when we should be linking with a yet-to-be-installed one
9334     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9335     test "$hardcode_minus_L" != no; then
9336    # Linking always hardcodes the temporary library directory.
9337    hardcode_action=relink
9338  else
9339    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9340    hardcode_action=immediate
9341  fi
9342else
9343  # We cannot hardcode anything, or else we can only hardcode existing
9344  # directories.
9345  hardcode_action=unsupported
9346fi
9347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9348$as_echo "$hardcode_action" >&6; }
9349
9350if test "$hardcode_action" = relink; then
9351  # Fast installation is not supported
9352  enable_fast_install=no
9353elif test "$shlibpath_overrides_runpath" = yes ||
9354     test "$enable_shared" = no; then
9355  # Fast installation is not necessary
9356  enable_fast_install=needless
9357fi
9358
9359striplib=
9360old_striplib=
9361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9362$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9363if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9364  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9365  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9367$as_echo "yes" >&6; }
9368else
9369# FIXME - insert some real tests, host_os isn't really good enough
9370  case $host_os in
9371   darwin*)
9372       if test -n "$STRIP" ; then
9373         striplib="$STRIP -x"
9374         old_striplib="$STRIP -S"
9375         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9376$as_echo "yes" >&6; }
9377       else
9378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9379$as_echo "no" >&6; }
9380fi
9381       ;;
9382   *)
9383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9384$as_echo "no" >&6; }
9385    ;;
9386  esac
9387fi
9388
9389if test "x$enable_dlopen" != xyes; then
9390  enable_dlopen=unknown
9391  enable_dlopen_self=unknown
9392  enable_dlopen_self_static=unknown
9393else
9394  lt_cv_dlopen=no
9395  lt_cv_dlopen_libs=
9396
9397  case $host_os in
9398  beos*)
9399    lt_cv_dlopen="load_add_on"
9400    lt_cv_dlopen_libs=
9401    lt_cv_dlopen_self=yes
9402    ;;
9403
9404  mingw* | pw32*)
9405    lt_cv_dlopen="LoadLibrary"
9406    lt_cv_dlopen_libs=
9407   ;;
9408
9409  cygwin*)
9410    lt_cv_dlopen="dlopen"
9411    lt_cv_dlopen_libs=
9412   ;;
9413
9414  darwin*)
9415  # if libdl is installed we need to link against it
9416    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9417$as_echo_n "checking for dlopen in -ldl... " >&6; }
9418if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9419  $as_echo_n "(cached) " >&6
9420else
9421  ac_check_lib_save_LIBS=$LIBS
9422LIBS="-ldl  $LIBS"
9423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424/* end confdefs.h.  */
9425
9426/* Override any GCC internal prototype to avoid an error.
9427   Use char because int might match the return type of a GCC
9428   builtin and then its argument prototype would still apply.  */
9429#ifdef __cplusplus
9430extern "C"
9431#endif
9432char dlopen ();
9433int
9434main ()
9435{
9436return dlopen ();
9437  ;
9438  return 0;
9439}
9440_ACEOF
9441if ac_fn_c_try_link "$LINENO"; then :
9442  ac_cv_lib_dl_dlopen=yes
9443else
9444  ac_cv_lib_dl_dlopen=no
9445fi
9446rm -f core conftest.err conftest.$ac_objext \
9447    conftest$ac_exeext conftest.$ac_ext
9448LIBS=$ac_check_lib_save_LIBS
9449fi
9450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9451$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9452if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9453  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9454else
9455
9456    lt_cv_dlopen="dyld"
9457    lt_cv_dlopen_libs=
9458    lt_cv_dlopen_self=yes
9459
9460fi
9461
9462   ;;
9463
9464  *)
9465    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9466if test "x$ac_cv_func_shl_load" = x""yes; then :
9467  lt_cv_dlopen="shl_load"
9468else
9469  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9470$as_echo_n "checking for shl_load in -ldld... " >&6; }
9471if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9472  $as_echo_n "(cached) " >&6
9473else
9474  ac_check_lib_save_LIBS=$LIBS
9475LIBS="-ldld  $LIBS"
9476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477/* end confdefs.h.  */
9478
9479/* Override any GCC internal prototype to avoid an error.
9480   Use char because int might match the return type of a GCC
9481   builtin and then its argument prototype would still apply.  */
9482#ifdef __cplusplus
9483extern "C"
9484#endif
9485char shl_load ();
9486int
9487main ()
9488{
9489return shl_load ();
9490  ;
9491  return 0;
9492}
9493_ACEOF
9494if ac_fn_c_try_link "$LINENO"; then :
9495  ac_cv_lib_dld_shl_load=yes
9496else
9497  ac_cv_lib_dld_shl_load=no
9498fi
9499rm -f core conftest.err conftest.$ac_objext \
9500    conftest$ac_exeext conftest.$ac_ext
9501LIBS=$ac_check_lib_save_LIBS
9502fi
9503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9504$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9505if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9506  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9507else
9508  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9509if test "x$ac_cv_func_dlopen" = x""yes; then :
9510  lt_cv_dlopen="dlopen"
9511else
9512  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9513$as_echo_n "checking for dlopen in -ldl... " >&6; }
9514if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9515  $as_echo_n "(cached) " >&6
9516else
9517  ac_check_lib_save_LIBS=$LIBS
9518LIBS="-ldl  $LIBS"
9519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9520/* end confdefs.h.  */
9521
9522/* Override any GCC internal prototype to avoid an error.
9523   Use char because int might match the return type of a GCC
9524   builtin and then its argument prototype would still apply.  */
9525#ifdef __cplusplus
9526extern "C"
9527#endif
9528char dlopen ();
9529int
9530main ()
9531{
9532return dlopen ();
9533  ;
9534  return 0;
9535}
9536_ACEOF
9537if ac_fn_c_try_link "$LINENO"; then :
9538  ac_cv_lib_dl_dlopen=yes
9539else
9540  ac_cv_lib_dl_dlopen=no
9541fi
9542rm -f core conftest.err conftest.$ac_objext \
9543    conftest$ac_exeext conftest.$ac_ext
9544LIBS=$ac_check_lib_save_LIBS
9545fi
9546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9547$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9548if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9549  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9550else
9551  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9552$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9553if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9554  $as_echo_n "(cached) " >&6
9555else
9556  ac_check_lib_save_LIBS=$LIBS
9557LIBS="-lsvld  $LIBS"
9558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559/* end confdefs.h.  */
9560
9561/* Override any GCC internal prototype to avoid an error.
9562   Use char because int might match the return type of a GCC
9563   builtin and then its argument prototype would still apply.  */
9564#ifdef __cplusplus
9565extern "C"
9566#endif
9567char dlopen ();
9568int
9569main ()
9570{
9571return dlopen ();
9572  ;
9573  return 0;
9574}
9575_ACEOF
9576if ac_fn_c_try_link "$LINENO"; then :
9577  ac_cv_lib_svld_dlopen=yes
9578else
9579  ac_cv_lib_svld_dlopen=no
9580fi
9581rm -f core conftest.err conftest.$ac_objext \
9582    conftest$ac_exeext conftest.$ac_ext
9583LIBS=$ac_check_lib_save_LIBS
9584fi
9585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9586$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9587if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9588  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9589else
9590  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9591$as_echo_n "checking for dld_link in -ldld... " >&6; }
9592if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9593  $as_echo_n "(cached) " >&6
9594else
9595  ac_check_lib_save_LIBS=$LIBS
9596LIBS="-ldld  $LIBS"
9597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598/* end confdefs.h.  */
9599
9600/* Override any GCC internal prototype to avoid an error.
9601   Use char because int might match the return type of a GCC
9602   builtin and then its argument prototype would still apply.  */
9603#ifdef __cplusplus
9604extern "C"
9605#endif
9606char dld_link ();
9607int
9608main ()
9609{
9610return dld_link ();
9611  ;
9612  return 0;
9613}
9614_ACEOF
9615if ac_fn_c_try_link "$LINENO"; then :
9616  ac_cv_lib_dld_dld_link=yes
9617else
9618  ac_cv_lib_dld_dld_link=no
9619fi
9620rm -f core conftest.err conftest.$ac_objext \
9621    conftest$ac_exeext conftest.$ac_ext
9622LIBS=$ac_check_lib_save_LIBS
9623fi
9624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9625$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9626if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9627  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9628fi
9629
9630
9631fi
9632
9633
9634fi
9635
9636
9637fi
9638
9639
9640fi
9641
9642
9643fi
9644
9645    ;;
9646  esac
9647
9648  if test "x$lt_cv_dlopen" != xno; then
9649    enable_dlopen=yes
9650  else
9651    enable_dlopen=no
9652  fi
9653
9654  case $lt_cv_dlopen in
9655  dlopen)
9656    save_CPPFLAGS="$CPPFLAGS"
9657    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9658
9659    save_LDFLAGS="$LDFLAGS"
9660    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9661
9662    save_LIBS="$LIBS"
9663    LIBS="$lt_cv_dlopen_libs $LIBS"
9664
9665    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9666$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9667if test "${lt_cv_dlopen_self+set}" = set; then :
9668  $as_echo_n "(cached) " >&6
9669else
9670  	  if test "$cross_compiling" = yes; then :
9671  lt_cv_dlopen_self=cross
9672else
9673  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9674  lt_status=$lt_dlunknown
9675  cat > conftest.$ac_ext <<EOF
9676#line 9676 "configure"
9677#include "confdefs.h"
9678
9679#if HAVE_DLFCN_H
9680#include <dlfcn.h>
9681#endif
9682
9683#include <stdio.h>
9684
9685#ifdef RTLD_GLOBAL
9686#  define LT_DLGLOBAL		RTLD_GLOBAL
9687#else
9688#  ifdef DL_GLOBAL
9689#    define LT_DLGLOBAL		DL_GLOBAL
9690#  else
9691#    define LT_DLGLOBAL		0
9692#  endif
9693#endif
9694
9695/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9696   find out it does not work in some platform. */
9697#ifndef LT_DLLAZY_OR_NOW
9698#  ifdef RTLD_LAZY
9699#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9700#  else
9701#    ifdef DL_LAZY
9702#      define LT_DLLAZY_OR_NOW		DL_LAZY
9703#    else
9704#      ifdef RTLD_NOW
9705#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9706#      else
9707#        ifdef DL_NOW
9708#          define LT_DLLAZY_OR_NOW	DL_NOW
9709#        else
9710#          define LT_DLLAZY_OR_NOW	0
9711#        endif
9712#      endif
9713#    endif
9714#  endif
9715#endif
9716
9717#ifdef __cplusplus
9718extern "C" void exit (int);
9719#endif
9720
9721void fnord() { int i=42;}
9722int main ()
9723{
9724  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9725  int status = $lt_dlunknown;
9726
9727  if (self)
9728    {
9729      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9730      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9731      /* dlclose (self); */
9732    }
9733  else
9734    puts (dlerror ());
9735
9736    exit (status);
9737}
9738EOF
9739  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9740  (eval $ac_link) 2>&5
9741  ac_status=$?
9742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9743  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9744    (./conftest; exit; ) >&5 2>/dev/null
9745    lt_status=$?
9746    case x$lt_status in
9747      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9748      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9749      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9750    esac
9751  else :
9752    # compilation failed
9753    lt_cv_dlopen_self=no
9754  fi
9755fi
9756rm -fr conftest*
9757
9758
9759fi
9760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9761$as_echo "$lt_cv_dlopen_self" >&6; }
9762
9763    if test "x$lt_cv_dlopen_self" = xyes; then
9764      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9765      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9766$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9767if test "${lt_cv_dlopen_self_static+set}" = set; then :
9768  $as_echo_n "(cached) " >&6
9769else
9770  	  if test "$cross_compiling" = yes; then :
9771  lt_cv_dlopen_self_static=cross
9772else
9773  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9774  lt_status=$lt_dlunknown
9775  cat > conftest.$ac_ext <<EOF
9776#line 9776 "configure"
9777#include "confdefs.h"
9778
9779#if HAVE_DLFCN_H
9780#include <dlfcn.h>
9781#endif
9782
9783#include <stdio.h>
9784
9785#ifdef RTLD_GLOBAL
9786#  define LT_DLGLOBAL		RTLD_GLOBAL
9787#else
9788#  ifdef DL_GLOBAL
9789#    define LT_DLGLOBAL		DL_GLOBAL
9790#  else
9791#    define LT_DLGLOBAL		0
9792#  endif
9793#endif
9794
9795/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9796   find out it does not work in some platform. */
9797#ifndef LT_DLLAZY_OR_NOW
9798#  ifdef RTLD_LAZY
9799#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9800#  else
9801#    ifdef DL_LAZY
9802#      define LT_DLLAZY_OR_NOW		DL_LAZY
9803#    else
9804#      ifdef RTLD_NOW
9805#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9806#      else
9807#        ifdef DL_NOW
9808#          define LT_DLLAZY_OR_NOW	DL_NOW
9809#        else
9810#          define LT_DLLAZY_OR_NOW	0
9811#        endif
9812#      endif
9813#    endif
9814#  endif
9815#endif
9816
9817#ifdef __cplusplus
9818extern "C" void exit (int);
9819#endif
9820
9821void fnord() { int i=42;}
9822int main ()
9823{
9824  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9825  int status = $lt_dlunknown;
9826
9827  if (self)
9828    {
9829      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9830      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9831      /* dlclose (self); */
9832    }
9833  else
9834    puts (dlerror ());
9835
9836    exit (status);
9837}
9838EOF
9839  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9840  (eval $ac_link) 2>&5
9841  ac_status=$?
9842  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9843  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9844    (./conftest; exit; ) >&5 2>/dev/null
9845    lt_status=$?
9846    case x$lt_status in
9847      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9848      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9849      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9850    esac
9851  else :
9852    # compilation failed
9853    lt_cv_dlopen_self_static=no
9854  fi
9855fi
9856rm -fr conftest*
9857
9858
9859fi
9860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9861$as_echo "$lt_cv_dlopen_self_static" >&6; }
9862    fi
9863
9864    CPPFLAGS="$save_CPPFLAGS"
9865    LDFLAGS="$save_LDFLAGS"
9866    LIBS="$save_LIBS"
9867    ;;
9868  esac
9869
9870  case $lt_cv_dlopen_self in
9871  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9872  *) enable_dlopen_self=unknown ;;
9873  esac
9874
9875  case $lt_cv_dlopen_self_static in
9876  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9877  *) enable_dlopen_self_static=unknown ;;
9878  esac
9879fi
9880
9881
9882# Report which library types will actually be built
9883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9884$as_echo_n "checking if libtool supports shared libraries... " >&6; }
9885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9886$as_echo "$can_build_shared" >&6; }
9887
9888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9889$as_echo_n "checking whether to build shared libraries... " >&6; }
9890test "$can_build_shared" = "no" && enable_shared=no
9891
9892# On AIX, shared libraries and static libraries use the same namespace, and
9893# are all built from PIC.
9894case $host_os in
9895aix3*)
9896  test "$enable_shared" = yes && enable_static=no
9897  if test -n "$RANLIB"; then
9898    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9899    postinstall_cmds='$RANLIB $lib'
9900  fi
9901  ;;
9902
9903aix[4-9]*)
9904  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9905    test "$enable_shared" = yes && enable_static=no
9906  fi
9907    ;;
9908esac
9909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9910$as_echo "$enable_shared" >&6; }
9911
9912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9913$as_echo_n "checking whether to build static libraries... " >&6; }
9914# Make sure either enable_shared or enable_static is yes.
9915test "$enable_shared" = yes || enable_static=yes
9916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9917$as_echo "$enable_static" >&6; }
9918
9919# The else clause should only fire when bootstrapping the
9920# libtool distribution, otherwise you forgot to ship ltmain.sh
9921# with your package, and you will get complaints that there are
9922# no rules to generate ltmain.sh.
9923if test -f "$ltmain"; then
9924  # See if we are running on zsh, and set the options which allow our commands through
9925  # without removal of \ escapes.
9926  if test -n "${ZSH_VERSION+set}" ; then
9927    setopt NO_GLOB_SUBST
9928  fi
9929  # Now quote all the things that may contain metacharacters while being
9930  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9931  # variables and quote the copies for generation of the libtool script.
9932  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9933    SED SHELL STRIP \
9934    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9935    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9936    deplibs_check_method reload_flag reload_cmds need_locks \
9937    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9938    lt_cv_sys_global_symbol_to_c_name_address \
9939    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9940    old_postinstall_cmds old_postuninstall_cmds \
9941    compiler \
9942    CC \
9943    LD \
9944    lt_prog_compiler_wl \
9945    lt_prog_compiler_pic \
9946    lt_prog_compiler_static \
9947    lt_prog_compiler_no_builtin_flag \
9948    export_dynamic_flag_spec \
9949    thread_safe_flag_spec \
9950    whole_archive_flag_spec \
9951    enable_shared_with_static_runtimes \
9952    old_archive_cmds \
9953    old_archive_from_new_cmds \
9954    predep_objects \
9955    postdep_objects \
9956    predeps \
9957    postdeps \
9958    compiler_lib_search_path \
9959    compiler_lib_search_dirs \
9960    archive_cmds \
9961    archive_expsym_cmds \
9962    postinstall_cmds \
9963    postuninstall_cmds \
9964    old_archive_from_expsyms_cmds \
9965    allow_undefined_flag \
9966    no_undefined_flag \
9967    export_symbols_cmds \
9968    hardcode_libdir_flag_spec \
9969    hardcode_libdir_flag_spec_ld \
9970    hardcode_libdir_separator \
9971    hardcode_automatic \
9972    module_cmds \
9973    module_expsym_cmds \
9974    lt_cv_prog_compiler_c_o \
9975    fix_srcfile_path \
9976    exclude_expsyms \
9977    include_expsyms; do
9978
9979    case $var in
9980    old_archive_cmds | \
9981    old_archive_from_new_cmds | \
9982    archive_cmds | \
9983    archive_expsym_cmds | \
9984    module_cmds | \
9985    module_expsym_cmds | \
9986    old_archive_from_expsyms_cmds | \
9987    export_symbols_cmds | \
9988    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9989    postinstall_cmds | postuninstall_cmds | \
9990    old_postinstall_cmds | old_postuninstall_cmds | \
9991    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9992      # Double-quote double-evaled strings.
9993      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9994      ;;
9995    *)
9996      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9997      ;;
9998    esac
9999  done
10000
10001  case $lt_echo in
10002  *'\$0 --fallback-echo"')
10003    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10004    ;;
10005  esac
10006
10007cfgfile="${ofile}T"
10008  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10009  $rm -f "$cfgfile"
10010  { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10011$as_echo "$as_me: creating $ofile" >&6;}
10012
10013  cat <<__EOF__ >> "$cfgfile"
10014#! $SHELL
10015
10016# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10017# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10018# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10019#
10020# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10021# Free Software Foundation, Inc.
10022#
10023# This file is part of GNU Libtool:
10024# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10025#
10026# This program is free software; you can redistribute it and/or modify
10027# it under the terms of the GNU General Public License as published by
10028# the Free Software Foundation; either version 2 of the License, or
10029# (at your option) any later version.
10030#
10031# This program is distributed in the hope that it will be useful, but
10032# WITHOUT ANY WARRANTY; without even the implied warranty of
10033# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10034# General Public License for more details.
10035#
10036# You should have received a copy of the GNU General Public License
10037# along with this program; if not, write to the Free Software
10038# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10039#
10040# As a special exception to the GNU General Public License, if you
10041# distribute this file as part of a program that contains a
10042# configuration script generated by Autoconf, you may include it under
10043# the same distribution terms that you use for the rest of that program.
10044
10045# A sed program that does not truncate output.
10046SED=$lt_SED
10047
10048# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10049Xsed="$SED -e 1s/^X//"
10050
10051# The HP-UX ksh and POSIX shell print the target directory to stdout
10052# if CDPATH is set.
10053(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10054
10055# The names of the tagged configurations supported by this script.
10056available_tags=
10057
10058# ### BEGIN LIBTOOL CONFIG
10059
10060# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10061
10062# Shell to use when invoking shell scripts.
10063SHELL=$lt_SHELL
10064
10065# Whether or not to build shared libraries.
10066build_libtool_libs=$enable_shared
10067
10068# Whether or not to build static libraries.
10069build_old_libs=$enable_static
10070
10071# Whether or not to add -lc for building shared libraries.
10072build_libtool_need_lc=$archive_cmds_need_lc
10073
10074# Whether or not to disallow shared libs when runtime libs are static
10075allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10076
10077# Whether or not to optimize for fast installation.
10078fast_install=$enable_fast_install
10079
10080# The host system.
10081host_alias=$host_alias
10082host=$host
10083host_os=$host_os
10084
10085# The build system.
10086build_alias=$build_alias
10087build=$build
10088build_os=$build_os
10089
10090# An echo program that does not interpret backslashes.
10091echo=$lt_echo
10092
10093# The archiver.
10094AR=$lt_AR
10095AR_FLAGS=$lt_AR_FLAGS
10096
10097# A C compiler.
10098LTCC=$lt_LTCC
10099
10100# LTCC compiler flags.
10101LTCFLAGS=$lt_LTCFLAGS
10102
10103# A language-specific compiler.
10104CC=$lt_compiler
10105
10106# Is the compiler the GNU C compiler?
10107with_gcc=$GCC
10108
10109# An ERE matcher.
10110EGREP=$lt_EGREP
10111
10112# The linker used to build libraries.
10113LD=$lt_LD
10114
10115# Whether we need hard or soft links.
10116LN_S=$lt_LN_S
10117
10118# A BSD-compatible nm program.
10119NM=$lt_NM
10120
10121# A symbol stripping program
10122STRIP=$lt_STRIP
10123
10124# Used to examine libraries when file_magic_cmd begins "file"
10125MAGIC_CMD=$MAGIC_CMD
10126
10127# Used on cygwin: DLL creation program.
10128DLLTOOL="$DLLTOOL"
10129
10130# Used on cygwin: object dumper.
10131OBJDUMP="$OBJDUMP"
10132
10133# Used on cygwin: assembler.
10134AS="$AS"
10135
10136# The name of the directory that contains temporary libtool files.
10137objdir=$objdir
10138
10139# How to create reloadable object files.
10140reload_flag=$lt_reload_flag
10141reload_cmds=$lt_reload_cmds
10142
10143# How to pass a linker flag through the compiler.
10144wl=$lt_lt_prog_compiler_wl
10145
10146# Object file suffix (normally "o").
10147objext="$ac_objext"
10148
10149# Old archive suffix (normally "a").
10150libext="$libext"
10151
10152# Shared library suffix (normally ".so").
10153shrext_cmds='$shrext_cmds'
10154
10155# Executable file suffix (normally "").
10156exeext="$exeext"
10157
10158# Additional compiler flags for building library objects.
10159pic_flag=$lt_lt_prog_compiler_pic
10160pic_mode=$pic_mode
10161
10162# What is the maximum length of a command?
10163max_cmd_len=$lt_cv_sys_max_cmd_len
10164
10165# Does compiler simultaneously support -c and -o options?
10166compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10167
10168# Must we lock files when doing compilation?
10169need_locks=$lt_need_locks
10170
10171# Do we need the lib prefix for modules?
10172need_lib_prefix=$need_lib_prefix
10173
10174# Do we need a version for libraries?
10175need_version=$need_version
10176
10177# Whether dlopen is supported.
10178dlopen_support=$enable_dlopen
10179
10180# Whether dlopen of programs is supported.
10181dlopen_self=$enable_dlopen_self
10182
10183# Whether dlopen of statically linked programs is supported.
10184dlopen_self_static=$enable_dlopen_self_static
10185
10186# Compiler flag to prevent dynamic linking.
10187link_static_flag=$lt_lt_prog_compiler_static
10188
10189# Compiler flag to turn off builtin functions.
10190no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10191
10192# Compiler flag to allow reflexive dlopens.
10193export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10194
10195# Compiler flag to generate shared objects directly from archives.
10196whole_archive_flag_spec=$lt_whole_archive_flag_spec
10197
10198# Compiler flag to generate thread-safe objects.
10199thread_safe_flag_spec=$lt_thread_safe_flag_spec
10200
10201# Library versioning type.
10202version_type=$version_type
10203
10204# Format of library name prefix.
10205libname_spec=$lt_libname_spec
10206
10207# List of archive names.  First name is the real one, the rest are links.
10208# The last name is the one that the linker finds with -lNAME.
10209library_names_spec=$lt_library_names_spec
10210
10211# The coded name of the library, if different from the real name.
10212soname_spec=$lt_soname_spec
10213
10214# Commands used to build and install an old-style archive.
10215RANLIB=$lt_RANLIB
10216old_archive_cmds=$lt_old_archive_cmds
10217old_postinstall_cmds=$lt_old_postinstall_cmds
10218old_postuninstall_cmds=$lt_old_postuninstall_cmds
10219
10220# Create an old-style archive from a shared archive.
10221old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10222
10223# Create a temporary old-style archive to link instead of a shared archive.
10224old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10225
10226# Commands used to build and install a shared archive.
10227archive_cmds=$lt_archive_cmds
10228archive_expsym_cmds=$lt_archive_expsym_cmds
10229postinstall_cmds=$lt_postinstall_cmds
10230postuninstall_cmds=$lt_postuninstall_cmds
10231
10232# Commands used to build a loadable module (assumed same as above if empty)
10233module_cmds=$lt_module_cmds
10234module_expsym_cmds=$lt_module_expsym_cmds
10235
10236# Commands to strip libraries.
10237old_striplib=$lt_old_striplib
10238striplib=$lt_striplib
10239
10240# Dependencies to place before the objects being linked to create a
10241# shared library.
10242predep_objects=$lt_predep_objects
10243
10244# Dependencies to place after the objects being linked to create a
10245# shared library.
10246postdep_objects=$lt_postdep_objects
10247
10248# Dependencies to place before the objects being linked to create a
10249# shared library.
10250predeps=$lt_predeps
10251
10252# Dependencies to place after the objects being linked to create a
10253# shared library.
10254postdeps=$lt_postdeps
10255
10256# The directories searched by this compiler when creating a shared
10257# library
10258compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10259
10260# The library search path used internally by the compiler when linking
10261# a shared library.
10262compiler_lib_search_path=$lt_compiler_lib_search_path
10263
10264# Method to check whether dependent libraries are shared objects.
10265deplibs_check_method=$lt_deplibs_check_method
10266
10267# Command to use when deplibs_check_method == file_magic.
10268file_magic_cmd=$lt_file_magic_cmd
10269
10270# Flag that allows shared libraries with undefined symbols to be built.
10271allow_undefined_flag=$lt_allow_undefined_flag
10272
10273# Flag that forces no undefined symbols.
10274no_undefined_flag=$lt_no_undefined_flag
10275
10276# Commands used to finish a libtool library installation in a directory.
10277finish_cmds=$lt_finish_cmds
10278
10279# Same as above, but a single script fragment to be evaled but not shown.
10280finish_eval=$lt_finish_eval
10281
10282# Take the output of nm and produce a listing of raw symbols and C names.
10283global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10284
10285# Transform the output of nm in a proper C declaration
10286global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10287
10288# Transform the output of nm in a C name address pair
10289global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10290
10291# This is the shared library runtime path variable.
10292runpath_var=$runpath_var
10293
10294# This is the shared library path variable.
10295shlibpath_var=$shlibpath_var
10296
10297# Is shlibpath searched before the hard-coded library search path?
10298shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10299
10300# How to hardcode a shared library path into an executable.
10301hardcode_action=$hardcode_action
10302
10303# Whether we should hardcode library paths into libraries.
10304hardcode_into_libs=$hardcode_into_libs
10305
10306# Flag to hardcode \$libdir into a binary during linking.
10307# This must work even if \$libdir does not exist.
10308hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10309
10310# If ld is used when linking, flag to hardcode \$libdir into
10311# a binary during linking. This must work even if \$libdir does
10312# not exist.
10313hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10314
10315# Whether we need a single -rpath flag with a separated argument.
10316hardcode_libdir_separator=$lt_hardcode_libdir_separator
10317
10318# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10319# resulting binary.
10320hardcode_direct=$hardcode_direct
10321
10322# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10323# resulting binary.
10324hardcode_minus_L=$hardcode_minus_L
10325
10326# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10327# the resulting binary.
10328hardcode_shlibpath_var=$hardcode_shlibpath_var
10329
10330# Set to yes if building a shared library automatically hardcodes DIR into the library
10331# and all subsequent libraries and executables linked against it.
10332hardcode_automatic=$hardcode_automatic
10333
10334# Variables whose values should be saved in libtool wrapper scripts and
10335# restored at relink time.
10336variables_saved_for_relink="$variables_saved_for_relink"
10337
10338# Whether libtool must link a program against all its dependency libraries.
10339link_all_deplibs=$link_all_deplibs
10340
10341# Compile-time system search path for libraries
10342sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10343
10344# Run-time system search path for libraries
10345sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10346
10347# Fix the shell variable \$srcfile for the compiler.
10348fix_srcfile_path=$lt_fix_srcfile_path
10349
10350# Set to yes if exported symbols are required.
10351always_export_symbols=$always_export_symbols
10352
10353# The commands to list exported symbols.
10354export_symbols_cmds=$lt_export_symbols_cmds
10355
10356# The commands to extract the exported symbol list from a shared archive.
10357extract_expsyms_cmds=$lt_extract_expsyms_cmds
10358
10359# Symbols that should not be listed in the preloaded symbols.
10360exclude_expsyms=$lt_exclude_expsyms
10361
10362# Symbols that must always be exported.
10363include_expsyms=$lt_include_expsyms
10364
10365# ### END LIBTOOL CONFIG
10366
10367__EOF__
10368
10369
10370  case $host_os in
10371  aix3*)
10372    cat <<\EOF >> "$cfgfile"
10373
10374# AIX sometimes has problems with the GCC collect2 program.  For some
10375# reason, if we set the COLLECT_NAMES environment variable, the problems
10376# vanish in a puff of smoke.
10377if test "X${COLLECT_NAMES+set}" != Xset; then
10378  COLLECT_NAMES=
10379  export COLLECT_NAMES
10380fi
10381EOF
10382    ;;
10383  esac
10384
10385  # We use sed instead of cat because bash on DJGPP gets confused if
10386  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10387  # text mode, it properly converts lines to CR/LF.  This bash problem
10388  # is reportedly fixed, but why not run on old versions too?
10389  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10390
10391  mv -f "$cfgfile" "$ofile" || \
10392    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10393  chmod +x "$ofile"
10394
10395else
10396  # If there is no Makefile yet, we rely on a make rule to execute
10397  # `config.status --recheck' to rerun these tests and create the
10398  # libtool script then.
10399  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10400  if test -f "$ltmain_in"; then
10401    test -f Makefile && make "$ltmain"
10402  fi
10403fi
10404
10405
10406ac_ext=c
10407ac_cpp='$CPP $CPPFLAGS'
10408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10410ac_compiler_gnu=$ac_cv_c_compiler_gnu
10411
10412CC="$lt_save_CC"
10413
10414
10415# Check whether --with-tags was given.
10416if test "${with_tags+set}" = set; then :
10417  withval=$with_tags; tagnames="$withval"
10418fi
10419
10420
10421if test -f "$ltmain" && test -n "$tagnames"; then
10422  if test ! -f "${ofile}"; then
10423    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10424$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10425  fi
10426
10427  if test -z "$LTCC"; then
10428    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10429    if test -z "$LTCC"; then
10430      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10431$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10432    else
10433      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10434$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10435    fi
10436  fi
10437  if test -z "$LTCFLAGS"; then
10438    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10439  fi
10440
10441  # Extract list of available tagged configurations in $ofile.
10442  # Note that this assumes the entire list is on one line.
10443  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10444
10445  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10446  for tagname in $tagnames; do
10447    IFS="$lt_save_ifs"
10448    # Check whether tagname contains only valid characters
10449    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10450    "") ;;
10451    *)  as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10452	;;
10453    esac
10454
10455    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10456    then
10457      as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10458    fi
10459
10460    # Update the list of available tags.
10461    if test -n "$tagname"; then
10462      echo appending configuration tag \"$tagname\" to $ofile
10463
10464      case $tagname in
10465      CXX)
10466	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10467	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10468	    (test "X$CXX" != "Xg++"))) ; then
10469	  ac_ext=cpp
10470ac_cpp='$CXXCPP $CPPFLAGS'
10471ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10472ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10473ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10474
10475
10476
10477
10478archive_cmds_need_lc_CXX=no
10479allow_undefined_flag_CXX=
10480always_export_symbols_CXX=no
10481archive_expsym_cmds_CXX=
10482export_dynamic_flag_spec_CXX=
10483hardcode_direct_CXX=no
10484hardcode_libdir_flag_spec_CXX=
10485hardcode_libdir_flag_spec_ld_CXX=
10486hardcode_libdir_separator_CXX=
10487hardcode_minus_L_CXX=no
10488hardcode_shlibpath_var_CXX=unsupported
10489hardcode_automatic_CXX=no
10490module_cmds_CXX=
10491module_expsym_cmds_CXX=
10492link_all_deplibs_CXX=unknown
10493old_archive_cmds_CXX=$old_archive_cmds
10494no_undefined_flag_CXX=
10495whole_archive_flag_spec_CXX=
10496enable_shared_with_static_runtimes_CXX=no
10497
10498# Dependencies to place before and after the object being linked:
10499predep_objects_CXX=
10500postdep_objects_CXX=
10501predeps_CXX=
10502postdeps_CXX=
10503compiler_lib_search_path_CXX=
10504compiler_lib_search_dirs_CXX=
10505
10506# Source file extension for C++ test sources.
10507ac_ext=cpp
10508
10509# Object file extension for compiled C++ test sources.
10510objext=o
10511objext_CXX=$objext
10512
10513# Code to be used in simple compile tests
10514lt_simple_compile_test_code="int some_variable = 0;"
10515
10516# Code to be used in simple link tests
10517lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10518
10519# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10520
10521# If no C compiler was specified, use CC.
10522LTCC=${LTCC-"$CC"}
10523
10524# If no C compiler flags were specified, use CFLAGS.
10525LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10526
10527# Allow CC to be a program name with arguments.
10528compiler=$CC
10529
10530
10531# save warnings/boilerplate of simple test code
10532ac_outfile=conftest.$ac_objext
10533echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10534eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10535_lt_compiler_boilerplate=`cat conftest.err`
10536$rm conftest*
10537
10538ac_outfile=conftest.$ac_objext
10539echo "$lt_simple_link_test_code" >conftest.$ac_ext
10540eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10541_lt_linker_boilerplate=`cat conftest.err`
10542$rm -r conftest*
10543
10544
10545# Allow CC to be a program name with arguments.
10546lt_save_CC=$CC
10547lt_save_LD=$LD
10548lt_save_GCC=$GCC
10549GCC=$GXX
10550lt_save_with_gnu_ld=$with_gnu_ld
10551lt_save_path_LD=$lt_cv_path_LD
10552if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10553  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10554else
10555  $as_unset lt_cv_prog_gnu_ld
10556fi
10557if test -n "${lt_cv_path_LDCXX+set}"; then
10558  lt_cv_path_LD=$lt_cv_path_LDCXX
10559else
10560  $as_unset lt_cv_path_LD
10561fi
10562test -z "${LDCXX+set}" || LD=$LDCXX
10563CC=${CXX-"c++"}
10564compiler=$CC
10565compiler_CXX=$CC
10566for cc_temp in $compiler""; do
10567  case $cc_temp in
10568    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10569    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10570    \-*) ;;
10571    *) break;;
10572  esac
10573done
10574cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10575
10576
10577# We don't want -fno-exception wen compiling C++ code, so set the
10578# no_builtin_flag separately
10579if test "$GXX" = yes; then
10580  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10581else
10582  lt_prog_compiler_no_builtin_flag_CXX=
10583fi
10584
10585if test "$GXX" = yes; then
10586  # Set up default GNU C++ configuration
10587
10588
10589# Check whether --with-gnu-ld was given.
10590if test "${with_gnu_ld+set}" = set; then :
10591  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10592else
10593  with_gnu_ld=no
10594fi
10595
10596ac_prog=ld
10597if test "$GCC" = yes; then
10598  # Check if gcc -print-prog-name=ld gives a path.
10599  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10600$as_echo_n "checking for ld used by $CC... " >&6; }
10601  case $host in
10602  *-*-mingw*)
10603    # gcc leaves a trailing carriage return which upsets mingw
10604    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10605  *)
10606    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10607  esac
10608  case $ac_prog in
10609    # Accept absolute paths.
10610    [\\/]* | ?:[\\/]*)
10611      re_direlt='/[^/][^/]*/\.\./'
10612      # Canonicalize the pathname of ld
10613      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10614      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10615	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10616      done
10617      test -z "$LD" && LD="$ac_prog"
10618      ;;
10619  "")
10620    # If it fails, then pretend we aren't using GCC.
10621    ac_prog=ld
10622    ;;
10623  *)
10624    # If it is relative, then search for the first ld in PATH.
10625    with_gnu_ld=unknown
10626    ;;
10627  esac
10628elif test "$with_gnu_ld" = yes; then
10629  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10630$as_echo_n "checking for GNU ld... " >&6; }
10631else
10632  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10633$as_echo_n "checking for non-GNU ld... " >&6; }
10634fi
10635if test "${lt_cv_path_LD+set}" = set; then :
10636  $as_echo_n "(cached) " >&6
10637else
10638  if test -z "$LD"; then
10639  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10640  for ac_dir in $PATH; do
10641    IFS="$lt_save_ifs"
10642    test -z "$ac_dir" && ac_dir=.
10643    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10644      lt_cv_path_LD="$ac_dir/$ac_prog"
10645      # Check to see if the program is GNU ld.  I'd rather use --version,
10646      # but apparently some variants of GNU ld only accept -v.
10647      # Break only if it was the GNU/non-GNU ld that we prefer.
10648      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10649      *GNU* | *'with BFD'*)
10650	test "$with_gnu_ld" != no && break
10651	;;
10652      *)
10653	test "$with_gnu_ld" != yes && break
10654	;;
10655      esac
10656    fi
10657  done
10658  IFS="$lt_save_ifs"
10659else
10660  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10661fi
10662fi
10663
10664LD="$lt_cv_path_LD"
10665if test -n "$LD"; then
10666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10667$as_echo "$LD" >&6; }
10668else
10669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670$as_echo "no" >&6; }
10671fi
10672test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10674$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10675if test "${lt_cv_prog_gnu_ld+set}" = set; then :
10676  $as_echo_n "(cached) " >&6
10677else
10678  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10679case `$LD -v 2>&1 </dev/null` in
10680*GNU* | *'with BFD'*)
10681  lt_cv_prog_gnu_ld=yes
10682  ;;
10683*)
10684  lt_cv_prog_gnu_ld=no
10685  ;;
10686esac
10687fi
10688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10689$as_echo "$lt_cv_prog_gnu_ld" >&6; }
10690with_gnu_ld=$lt_cv_prog_gnu_ld
10691
10692
10693
10694  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10695  # archiving commands below assume that GNU ld is being used.
10696  if test "$with_gnu_ld" = yes; then
10697    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10698    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'
10699
10700    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10701    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10702
10703    # If archive_cmds runs LD, not CC, wlarc should be empty
10704    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10705    #     investigate it a little bit more. (MM)
10706    wlarc='${wl}'
10707
10708    # ancient GNU ld didn't support --whole-archive et. al.
10709    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10710	grep 'no-whole-archive' > /dev/null; then
10711      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10712    else
10713      whole_archive_flag_spec_CXX=
10714    fi
10715  else
10716    with_gnu_ld=no
10717    wlarc=
10718
10719    # A generic and very simple default shared library creation
10720    # command for GNU C++ for the case where it uses the native
10721    # linker, instead of GNU ld.  If possible, this setting should
10722    # overridden to take advantage of the native linker features on
10723    # the platform it is being used on.
10724    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10725  fi
10726
10727  # Commands to make compiler produce verbose output that lists
10728  # what "hidden" libraries, object files and flags are used when
10729  # linking a shared library.
10730  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10731
10732else
10733  GXX=no
10734  with_gnu_ld=no
10735  wlarc=
10736fi
10737
10738# PORTME: fill in a description of your system's C++ link characteristics
10739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10740$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10741ld_shlibs_CXX=yes
10742case $host_os in
10743  aix3*)
10744    # FIXME: insert proper C++ library support
10745    ld_shlibs_CXX=no
10746    ;;
10747  aix[4-9]*)
10748    if test "$host_cpu" = ia64; then
10749      # On IA64, the linker does run time linking by default, so we don't
10750      # have to do anything special.
10751      aix_use_runtimelinking=no
10752      exp_sym_flag='-Bexport'
10753      no_entry_flag=""
10754    else
10755      aix_use_runtimelinking=no
10756
10757      # Test if we are trying to use run time linking or normal
10758      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10759      # need to do runtime linking.
10760      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10761	for ld_flag in $LDFLAGS; do
10762	  case $ld_flag in
10763	  *-brtl*)
10764	    aix_use_runtimelinking=yes
10765	    break
10766	    ;;
10767	  esac
10768	done
10769	;;
10770      esac
10771
10772      exp_sym_flag='-bexport'
10773      no_entry_flag='-bnoentry'
10774    fi
10775
10776    # When large executables or shared objects are built, AIX ld can
10777    # have problems creating the table of contents.  If linking a library
10778    # or program results in "error TOC overflow" add -mminimal-toc to
10779    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10780    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10781
10782    archive_cmds_CXX=''
10783    hardcode_direct_CXX=yes
10784    hardcode_libdir_separator_CXX=':'
10785    link_all_deplibs_CXX=yes
10786
10787    if test "$GXX" = yes; then
10788      case $host_os in aix4.[012]|aix4.[012].*)
10789      # We only want to do this on AIX 4.2 and lower, the check
10790      # below for broken collect2 doesn't work under 4.3+
10791	collect2name=`${CC} -print-prog-name=collect2`
10792	if test -f "$collect2name" && \
10793	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10794	then
10795	  # We have reworked collect2
10796	  :
10797	else
10798	  # We have old collect2
10799	  hardcode_direct_CXX=unsupported
10800	  # It fails to find uninstalled libraries when the uninstalled
10801	  # path is not listed in the libpath.  Setting hardcode_minus_L
10802	  # to unsupported forces relinking
10803	  hardcode_minus_L_CXX=yes
10804	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10805	  hardcode_libdir_separator_CXX=
10806	fi
10807	;;
10808      esac
10809      shared_flag='-shared'
10810      if test "$aix_use_runtimelinking" = yes; then
10811	shared_flag="$shared_flag "'${wl}-G'
10812      fi
10813    else
10814      # not using gcc
10815      if test "$host_cpu" = ia64; then
10816	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10817	# chokes on -Wl,-G. The following line is correct:
10818	shared_flag='-G'
10819      else
10820	if test "$aix_use_runtimelinking" = yes; then
10821	  shared_flag='${wl}-G'
10822	else
10823	  shared_flag='${wl}-bM:SRE'
10824	fi
10825      fi
10826    fi
10827
10828    # It seems that -bexpall does not export symbols beginning with
10829    # underscore (_), so it is better to generate a list of symbols to export.
10830    always_export_symbols_CXX=yes
10831    if test "$aix_use_runtimelinking" = yes; then
10832      # Warning - without using the other runtime loading flags (-brtl),
10833      # -berok will link without error, but may produce a broken library.
10834      allow_undefined_flag_CXX='-berok'
10835      # Determine the default libpath from the value encoded in an empty executable.
10836      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837/* end confdefs.h.  */
10838
10839int
10840main ()
10841{
10842
10843  ;
10844  return 0;
10845}
10846_ACEOF
10847if ac_fn_cxx_try_link "$LINENO"; then :
10848
10849lt_aix_libpath_sed='
10850    /Import File Strings/,/^$/ {
10851	/^0/ {
10852	    s/^0  *\(.*\)$/\1/
10853	    p
10854	}
10855    }'
10856aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10857# Check for a 64-bit object if we didn't find anything.
10858if test -z "$aix_libpath"; then
10859  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10860fi
10861fi
10862rm -f core conftest.err conftest.$ac_objext \
10863    conftest$ac_exeext conftest.$ac_ext
10864if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10865
10866      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10867
10868      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"
10869     else
10870      if test "$host_cpu" = ia64; then
10871	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10872	allow_undefined_flag_CXX="-z nodefs"
10873	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"
10874      else
10875	# Determine the default libpath from the value encoded in an empty executable.
10876	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877/* end confdefs.h.  */
10878
10879int
10880main ()
10881{
10882
10883  ;
10884  return 0;
10885}
10886_ACEOF
10887if ac_fn_cxx_try_link "$LINENO"; then :
10888
10889lt_aix_libpath_sed='
10890    /Import File Strings/,/^$/ {
10891	/^0/ {
10892	    s/^0  *\(.*\)$/\1/
10893	    p
10894	}
10895    }'
10896aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10897# Check for a 64-bit object if we didn't find anything.
10898if test -z "$aix_libpath"; then
10899  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10900fi
10901fi
10902rm -f core conftest.err conftest.$ac_objext \
10903    conftest$ac_exeext conftest.$ac_ext
10904if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10905
10906	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10907	# Warning - without using the other run time loading flags,
10908	# -berok will link without error, but may produce a broken library.
10909	no_undefined_flag_CXX=' ${wl}-bernotok'
10910	allow_undefined_flag_CXX=' ${wl}-berok'
10911	# Exported symbols can be pulled into shared objects from archives
10912	whole_archive_flag_spec_CXX='$convenience'
10913	archive_cmds_need_lc_CXX=yes
10914	# This is similar to how AIX traditionally builds its shared libraries.
10915	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'
10916      fi
10917    fi
10918    ;;
10919
10920  beos*)
10921    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10922      allow_undefined_flag_CXX=unsupported
10923      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10924      # support --undefined.  This deserves some investigation.  FIXME
10925      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10926    else
10927      ld_shlibs_CXX=no
10928    fi
10929    ;;
10930
10931  chorus*)
10932    case $cc_basename in
10933      *)
10934	# FIXME: insert proper C++ library support
10935	ld_shlibs_CXX=no
10936	;;
10937    esac
10938    ;;
10939
10940  cygwin* | mingw* | pw32*)
10941    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10942    # as there is no search path for DLLs.
10943    hardcode_libdir_flag_spec_CXX='-L$libdir'
10944    allow_undefined_flag_CXX=unsupported
10945    always_export_symbols_CXX=no
10946    enable_shared_with_static_runtimes_CXX=yes
10947
10948    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10949      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'
10950      # If the export-symbols file already is a .def file (1st line
10951      # is EXPORTS), use it as is; otherwise, prepend...
10952      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10953	cp $export_symbols $output_objdir/$soname.def;
10954      else
10955	echo EXPORTS > $output_objdir/$soname.def;
10956	cat $export_symbols >> $output_objdir/$soname.def;
10957      fi~
10958      $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'
10959    else
10960      ld_shlibs_CXX=no
10961    fi
10962  ;;
10963      darwin* | rhapsody*)
10964      archive_cmds_need_lc_CXX=no
10965      hardcode_direct_CXX=no
10966      hardcode_automatic_CXX=yes
10967      hardcode_shlibpath_var_CXX=unsupported
10968      whole_archive_flag_spec_CXX=''
10969      link_all_deplibs_CXX=yes
10970      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
10971      if test "$GXX" = yes ; then
10972      output_verbose_link_cmd='echo'
10973      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}"
10974      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10975      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}"
10976      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}"
10977      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
10978        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}"
10979        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}"
10980      fi
10981      else
10982      case $cc_basename in
10983        xlc*)
10984         output_verbose_link_cmd='echo'
10985          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'
10986          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10987          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10988          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}'
10989          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}'
10990          ;;
10991       *)
10992         ld_shlibs_CXX=no
10993          ;;
10994      esac
10995      fi
10996        ;;
10997
10998  dgux*)
10999    case $cc_basename in
11000      ec++*)
11001	# FIXME: insert proper C++ library support
11002	ld_shlibs_CXX=no
11003	;;
11004      ghcx*)
11005	# Green Hills C++ Compiler
11006	# FIXME: insert proper C++ library support
11007	ld_shlibs_CXX=no
11008	;;
11009      *)
11010	# FIXME: insert proper C++ library support
11011	ld_shlibs_CXX=no
11012	;;
11013    esac
11014    ;;
11015  freebsd[12]*)
11016    # C++ shared libraries reported to be fairly broken before switch to ELF
11017    ld_shlibs_CXX=no
11018    ;;
11019  freebsd-elf*)
11020    archive_cmds_need_lc_CXX=no
11021    ;;
11022  freebsd* | dragonfly*)
11023    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11024    # conventions
11025    ld_shlibs_CXX=yes
11026    ;;
11027  gnu*)
11028    ;;
11029  hpux9*)
11030    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11031    hardcode_libdir_separator_CXX=:
11032    export_dynamic_flag_spec_CXX='${wl}-E'
11033    hardcode_direct_CXX=yes
11034    hardcode_minus_L_CXX=yes # Not in the search PATH,
11035				# but as the default
11036				# location of the library.
11037
11038    case $cc_basename in
11039    CC*)
11040      # FIXME: insert proper C++ library support
11041      ld_shlibs_CXX=no
11042      ;;
11043    aCC*)
11044      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'
11045      # Commands to make compiler produce verbose output that lists
11046      # what "hidden" libraries, object files and flags are used when
11047      # linking a shared library.
11048      #
11049      # There doesn't appear to be a way to prevent this compiler from
11050      # explicitly linking system object files so we need to strip them
11051      # from the output so that they don't get included in the library
11052      # dependencies.
11053      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'
11054      ;;
11055    *)
11056      if test "$GXX" = yes; then
11057        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'
11058      else
11059        # FIXME: insert proper C++ library support
11060        ld_shlibs_CXX=no
11061      fi
11062      ;;
11063    esac
11064    ;;
11065  hpux10*|hpux11*)
11066    if test $with_gnu_ld = no; then
11067      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11068      hardcode_libdir_separator_CXX=:
11069
11070      case $host_cpu in
11071      hppa*64*|ia64*) ;;
11072      *)
11073	export_dynamic_flag_spec_CXX='${wl}-E'
11074        ;;
11075      esac
11076    fi
11077    case $host_cpu in
11078    hppa*64*|ia64*)
11079      hardcode_direct_CXX=no
11080      hardcode_shlibpath_var_CXX=no
11081      ;;
11082    *)
11083      hardcode_direct_CXX=yes
11084      hardcode_minus_L_CXX=yes # Not in the search PATH,
11085					      # but as the default
11086					      # location of the library.
11087      ;;
11088    esac
11089
11090    case $cc_basename in
11091      CC*)
11092	# FIXME: insert proper C++ library support
11093	ld_shlibs_CXX=no
11094	;;
11095      aCC*)
11096	case $host_cpu in
11097	hppa*64*)
11098	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11099	  ;;
11100	ia64*)
11101	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11102	  ;;
11103	*)
11104	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11105	  ;;
11106	esac
11107	# Commands to make compiler produce verbose output that lists
11108	# what "hidden" libraries, object files and flags are used when
11109	# linking a shared library.
11110	#
11111	# There doesn't appear to be a way to prevent this compiler from
11112	# explicitly linking system object files so we need to strip them
11113	# from the output so that they don't get included in the library
11114	# dependencies.
11115	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'
11116	;;
11117      *)
11118	if test "$GXX" = yes; then
11119	  if test $with_gnu_ld = no; then
11120	    case $host_cpu in
11121	    hppa*64*)
11122	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11123	      ;;
11124	    ia64*)
11125	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11126	      ;;
11127	    *)
11128	      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'
11129	      ;;
11130	    esac
11131	  fi
11132	else
11133	  # FIXME: insert proper C++ library support
11134	  ld_shlibs_CXX=no
11135	fi
11136	;;
11137    esac
11138    ;;
11139  interix[3-9]*)
11140    hardcode_direct_CXX=no
11141    hardcode_shlibpath_var_CXX=no
11142    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11143    export_dynamic_flag_spec_CXX='${wl}-E'
11144    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11145    # Instead, shared libraries are loaded at an image base (0x10000000 by
11146    # default) and relocated if they conflict, which is a slow very memory
11147    # consuming and fragmenting process.  To avoid this, we pick a random,
11148    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11149    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11150    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'
11151    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'
11152    ;;
11153  irix5* | irix6*)
11154    case $cc_basename in
11155      CC*)
11156	# SGI C++
11157	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'
11158
11159	# Archives containing C++ object files must be created using
11160	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11161	# necessary to make sure instantiated templates are included
11162	# in the archive.
11163	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11164	;;
11165      *)
11166	if test "$GXX" = yes; then
11167	  if test "$with_gnu_ld" = no; then
11168	    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'
11169	  else
11170	    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'
11171	  fi
11172	fi
11173	link_all_deplibs_CXX=yes
11174	;;
11175    esac
11176    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11177    hardcode_libdir_separator_CXX=:
11178    ;;
11179  linux* | k*bsd*-gnu)
11180    case $cc_basename in
11181      KCC*)
11182	# Kuck and Associates, Inc. (KAI) C++ Compiler
11183
11184	# KCC will only create a shared library if the output file
11185	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11186	# to its proper name (with version) after linking.
11187	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'
11188	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'
11189	# Commands to make compiler produce verbose output that lists
11190	# what "hidden" libraries, object files and flags are used when
11191	# linking a shared library.
11192	#
11193	# There doesn't appear to be a way to prevent this compiler from
11194	# explicitly linking system object files so we need to strip them
11195	# from the output so that they don't get included in the library
11196	# dependencies.
11197	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'
11198
11199	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11200	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11201
11202	# Archives containing C++ object files must be created using
11203	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11204	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11205	;;
11206      icpc*)
11207	# Intel C++
11208	with_gnu_ld=yes
11209	# version 8.0 and above of icpc choke on multiply defined symbols
11210	# if we add $predep_objects and $postdep_objects, however 7.1 and
11211	# earlier do not add the objects themselves.
11212	case `$CC -V 2>&1` in
11213	*"Version 7."*)
11214  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11215  	  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'
11216	  ;;
11217	*)  # Version 8.0 or newer
11218	  tmp_idyn=
11219	  case $host_cpu in
11220	    ia64*) tmp_idyn=' -i_dynamic';;
11221	  esac
11222  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11223	  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'
11224	  ;;
11225	esac
11226	archive_cmds_need_lc_CXX=no
11227	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11228	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11229	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11230	;;
11231      pgCC* | pgcpp*)
11232        # Portland Group C++ compiler
11233	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11234  	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'
11235
11236	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11237	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11238	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'
11239        ;;
11240      cxx*)
11241	# Compaq C++
11242	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11243	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'
11244
11245	runpath_var=LD_RUN_PATH
11246	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11247	hardcode_libdir_separator_CXX=:
11248
11249	# Commands to make compiler produce verbose output that lists
11250	# what "hidden" libraries, object files and flags are used when
11251	# linking a shared library.
11252	#
11253	# There doesn't appear to be a way to prevent this compiler from
11254	# explicitly linking system object files so we need to strip them
11255	# from the output so that they don't get included in the library
11256	# dependencies.
11257	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'
11258	;;
11259      *)
11260	case `$CC -V 2>&1 | sed 5q` in
11261	*Sun\ C*)
11262	  # Sun C++ 5.9
11263	  no_undefined_flag_CXX=' -zdefs'
11264	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11265	  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'
11266	  hardcode_libdir_flag_spec_CXX='-R$libdir'
11267	  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'
11268
11269	  # Not sure whether something based on
11270	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11271	  # would be better.
11272	  output_verbose_link_cmd='echo'
11273
11274	  # Archives containing C++ object files must be created using
11275	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11276	  # necessary to make sure instantiated templates are included
11277	  # in the archive.
11278	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11279	  ;;
11280	esac
11281	;;
11282    esac
11283    ;;
11284  lynxos*)
11285    # FIXME: insert proper C++ library support
11286    ld_shlibs_CXX=no
11287    ;;
11288  m88k*)
11289    # FIXME: insert proper C++ library support
11290    ld_shlibs_CXX=no
11291    ;;
11292  mvs*)
11293    case $cc_basename in
11294      cxx*)
11295	# FIXME: insert proper C++ library support
11296	ld_shlibs_CXX=no
11297	;;
11298      *)
11299	# FIXME: insert proper C++ library support
11300	ld_shlibs_CXX=no
11301	;;
11302    esac
11303    ;;
11304  netbsd*)
11305    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11306      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11307      wlarc=
11308      hardcode_libdir_flag_spec_CXX='-R$libdir'
11309      hardcode_direct_CXX=yes
11310      hardcode_shlibpath_var_CXX=no
11311    fi
11312    # Workaround some broken pre-1.5 toolchains
11313    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11314    ;;
11315  openbsd2*)
11316    # C++ shared libraries are fairly broken
11317    ld_shlibs_CXX=no
11318    ;;
11319  openbsd*)
11320    if test -f /usr/libexec/ld.so; then
11321      hardcode_direct_CXX=yes
11322      hardcode_shlibpath_var_CXX=no
11323      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11324      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11325      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11326	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11327	export_dynamic_flag_spec_CXX='${wl}-E'
11328	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11329      fi
11330      output_verbose_link_cmd='echo'
11331    else
11332      ld_shlibs_CXX=no
11333    fi
11334    ;;
11335  osf3*)
11336    case $cc_basename in
11337      KCC*)
11338	# Kuck and Associates, Inc. (KAI) C++ Compiler
11339
11340	# KCC will only create a shared library if the output file
11341	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11342	# to its proper name (with version) after linking.
11343	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'
11344
11345	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11346	hardcode_libdir_separator_CXX=:
11347
11348	# Archives containing C++ object files must be created using
11349	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11350	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11351
11352	;;
11353      RCC*)
11354	# Rational C++ 2.4.1
11355	# FIXME: insert proper C++ library support
11356	ld_shlibs_CXX=no
11357	;;
11358      cxx*)
11359	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11360	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'
11361
11362	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11363	hardcode_libdir_separator_CXX=:
11364
11365	# Commands to make compiler produce verbose output that lists
11366	# what "hidden" libraries, object files and flags are used when
11367	# linking a shared library.
11368	#
11369	# There doesn't appear to be a way to prevent this compiler from
11370	# explicitly linking system object files so we need to strip them
11371	# from the output so that they don't get included in the library
11372	# dependencies.
11373	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'
11374	;;
11375      *)
11376	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11377	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11378	  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'
11379
11380	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11381	  hardcode_libdir_separator_CXX=:
11382
11383	  # Commands to make compiler produce verbose output that lists
11384	  # what "hidden" libraries, object files and flags are used when
11385	  # linking a shared library.
11386	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11387
11388	else
11389	  # FIXME: insert proper C++ library support
11390	  ld_shlibs_CXX=no
11391	fi
11392	;;
11393    esac
11394    ;;
11395  osf4* | osf5*)
11396    case $cc_basename in
11397      KCC*)
11398	# Kuck and Associates, Inc. (KAI) C++ Compiler
11399
11400	# KCC will only create a shared library if the output file
11401	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11402	# to its proper name (with version) after linking.
11403	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'
11404
11405	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11406	hardcode_libdir_separator_CXX=:
11407
11408	# Archives containing C++ object files must be created using
11409	# the KAI C++ compiler.
11410	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11411	;;
11412      RCC*)
11413	# Rational C++ 2.4.1
11414	# FIXME: insert proper C++ library support
11415	ld_shlibs_CXX=no
11416	;;
11417      cxx*)
11418	allow_undefined_flag_CXX=' -expect_unresolved \*'
11419	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'
11420	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11421	  echo "-hidden">> $lib.exp~
11422	  $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~
11423	  $rm $lib.exp'
11424
11425	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11426	hardcode_libdir_separator_CXX=:
11427
11428	# Commands to make compiler produce verbose output that lists
11429	# what "hidden" libraries, object files and flags are used when
11430	# linking a shared library.
11431	#
11432	# There doesn't appear to be a way to prevent this compiler from
11433	# explicitly linking system object files so we need to strip them
11434	# from the output so that they don't get included in the library
11435	# dependencies.
11436	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'
11437	;;
11438      *)
11439	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11440	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11441	 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'
11442
11443	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11444	  hardcode_libdir_separator_CXX=:
11445
11446	  # Commands to make compiler produce verbose output that lists
11447	  # what "hidden" libraries, object files and flags are used when
11448	  # linking a shared library.
11449	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11450
11451	else
11452	  # FIXME: insert proper C++ library support
11453	  ld_shlibs_CXX=no
11454	fi
11455	;;
11456    esac
11457    ;;
11458  psos*)
11459    # FIXME: insert proper C++ library support
11460    ld_shlibs_CXX=no
11461    ;;
11462  sunos4*)
11463    case $cc_basename in
11464      CC*)
11465	# Sun C++ 4.x
11466	# FIXME: insert proper C++ library support
11467	ld_shlibs_CXX=no
11468	;;
11469      lcc*)
11470	# Lucid
11471	# FIXME: insert proper C++ library support
11472	ld_shlibs_CXX=no
11473	;;
11474      *)
11475	# FIXME: insert proper C++ library support
11476	ld_shlibs_CXX=no
11477	;;
11478    esac
11479    ;;
11480  solaris*)
11481    case $cc_basename in
11482      CC*)
11483	# Sun C++ 4.2, 5.x and Centerline C++
11484        archive_cmds_need_lc_CXX=yes
11485	no_undefined_flag_CXX=' -zdefs'
11486	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11487	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11488	$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'
11489
11490	hardcode_libdir_flag_spec_CXX='-R$libdir'
11491	hardcode_shlibpath_var_CXX=no
11492	case $host_os in
11493	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11494	  *)
11495	    # The compiler driver will combine and reorder linker options,
11496	    # but understands `-z linker_flag'.
11497	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11498	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11499	    ;;
11500	esac
11501	link_all_deplibs_CXX=yes
11502
11503	output_verbose_link_cmd='echo'
11504
11505	# Archives containing C++ object files must be created using
11506	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11507	# necessary to make sure instantiated templates are included
11508	# in the archive.
11509	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11510	;;
11511      gcx*)
11512	# Green Hills C++ Compiler
11513	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11514
11515	# The C++ compiler must be used to create the archive.
11516	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11517	;;
11518      *)
11519	# GNU C++ compiler with Solaris linker
11520	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11521	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11522	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11523	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11524	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11525		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11526
11527	    # Commands to make compiler produce verbose output that lists
11528	    # what "hidden" libraries, object files and flags are used when
11529	    # linking a shared library.
11530	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11531	  else
11532	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11533	    # platform.
11534	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11535	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11536		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11537
11538	    # Commands to make compiler produce verbose output that lists
11539	    # what "hidden" libraries, object files and flags are used when
11540	    # linking a shared library.
11541	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11542	  fi
11543
11544	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11545	  case $host_os in
11546	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11547	  *)
11548	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11549	    ;;
11550	  esac
11551	fi
11552	;;
11553    esac
11554    ;;
11555  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11556    no_undefined_flag_CXX='${wl}-z,text'
11557    archive_cmds_need_lc_CXX=no
11558    hardcode_shlibpath_var_CXX=no
11559    runpath_var='LD_RUN_PATH'
11560
11561    case $cc_basename in
11562      CC*)
11563	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11564	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11565	;;
11566      *)
11567	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11568	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11569	;;
11570    esac
11571    ;;
11572  sysv5* | sco3.2v5* | sco5v6*)
11573    # Note: We can NOT use -z defs as we might desire, because we do not
11574    # link with -lc, and that would cause any symbols used from libc to
11575    # always be unresolved, which means just about no library would
11576    # ever link correctly.  If we're not using GNU ld we use -z text
11577    # though, which does catch some bad symbols but isn't as heavy-handed
11578    # as -z defs.
11579    # For security reasons, it is highly recommended that you always
11580    # use absolute paths for naming shared libraries, and exclude the
11581    # DT_RUNPATH tag from executables and libraries.  But doing so
11582    # requires that you compile everything twice, which is a pain.
11583    # So that behaviour is only enabled if SCOABSPATH is set to a
11584    # non-empty value in the environment.  Most likely only useful for
11585    # creating official distributions of packages.
11586    # This is a hack until libtool officially supports absolute path
11587    # names for shared libraries.
11588    no_undefined_flag_CXX='${wl}-z,text'
11589    allow_undefined_flag_CXX='${wl}-z,nodefs'
11590    archive_cmds_need_lc_CXX=no
11591    hardcode_shlibpath_var_CXX=no
11592    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11593    hardcode_libdir_separator_CXX=':'
11594    link_all_deplibs_CXX=yes
11595    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11596    runpath_var='LD_RUN_PATH'
11597
11598    case $cc_basename in
11599      CC*)
11600	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11601	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11602	;;
11603      *)
11604	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11605	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11606	;;
11607    esac
11608    ;;
11609  tandem*)
11610    case $cc_basename in
11611      NCC*)
11612	# NonStop-UX NCC 3.20
11613	# FIXME: insert proper C++ library support
11614	ld_shlibs_CXX=no
11615	;;
11616      *)
11617	# FIXME: insert proper C++ library support
11618	ld_shlibs_CXX=no
11619	;;
11620    esac
11621    ;;
11622  vxworks*)
11623    # FIXME: insert proper C++ library support
11624    ld_shlibs_CXX=no
11625    ;;
11626  *)
11627    # FIXME: insert proper C++ library support
11628    ld_shlibs_CXX=no
11629    ;;
11630esac
11631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11632$as_echo "$ld_shlibs_CXX" >&6; }
11633test "$ld_shlibs_CXX" = no && can_build_shared=no
11634
11635GCC_CXX="$GXX"
11636LD_CXX="$LD"
11637
11638## CAVEAT EMPTOR:
11639## There is no encapsulation within the following macros, do not change
11640## the running order or otherwise move them around unless you know exactly
11641## what you are doing...
11642cat > conftest.$ac_ext <<EOF
11643class Foo
11644{
11645public:
11646  Foo (void) { a = 0; }
11647private:
11648  int a;
11649};
11650EOF
11651
11652if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11653  (eval $ac_compile) 2>&5
11654  ac_status=$?
11655  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11656  test $ac_status = 0; }; then
11657  # Parse the compiler output and extract the necessary
11658  # objects, libraries and library flags.
11659
11660  # Sentinel used to keep track of whether or not we are before
11661  # the conftest object file.
11662  pre_test_object_deps_done=no
11663
11664  # The `*' in the case matches for architectures that use `case' in
11665  # $output_verbose_cmd can trigger glob expansion during the loop
11666  # eval without this substitution.
11667  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11668
11669  for p in `eval $output_verbose_link_cmd`; do
11670    case $p in
11671
11672    -L* | -R* | -l*)
11673       # Some compilers place space between "-{L,R}" and the path.
11674       # Remove the space.
11675       if test $p = "-L" \
11676	  || test $p = "-R"; then
11677	 prev=$p
11678	 continue
11679       else
11680	 prev=
11681       fi
11682
11683       if test "$pre_test_object_deps_done" = no; then
11684	 case $p in
11685	 -L* | -R*)
11686	   # Internal compiler library paths should come after those
11687	   # provided the user.  The postdeps already come after the
11688	   # user supplied libs so there is no need to process them.
11689	   if test -z "$compiler_lib_search_path_CXX"; then
11690	     compiler_lib_search_path_CXX="${prev}${p}"
11691	   else
11692	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11693	   fi
11694	   ;;
11695	 # The "-l" case would never come before the object being
11696	 # linked, so don't bother handling this case.
11697	 esac
11698       else
11699	 if test -z "$postdeps_CXX"; then
11700	   postdeps_CXX="${prev}${p}"
11701	 else
11702	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11703	 fi
11704       fi
11705       ;;
11706
11707    *.$objext)
11708       # This assumes that the test object file only shows up
11709       # once in the compiler output.
11710       if test "$p" = "conftest.$objext"; then
11711	 pre_test_object_deps_done=yes
11712	 continue
11713       fi
11714
11715       if test "$pre_test_object_deps_done" = no; then
11716	 if test -z "$predep_objects_CXX"; then
11717	   predep_objects_CXX="$p"
11718	 else
11719	   predep_objects_CXX="$predep_objects_CXX $p"
11720	 fi
11721       else
11722	 if test -z "$postdep_objects_CXX"; then
11723	   postdep_objects_CXX="$p"
11724	 else
11725	   postdep_objects_CXX="$postdep_objects_CXX $p"
11726	 fi
11727       fi
11728       ;;
11729
11730    *) ;; # Ignore the rest.
11731
11732    esac
11733  done
11734
11735  # Clean up.
11736  rm -f a.out a.exe
11737else
11738  echo "libtool.m4: error: problem compiling CXX test program"
11739fi
11740
11741$rm -f confest.$objext
11742
11743compiler_lib_search_dirs_CXX=
11744if test -n "$compiler_lib_search_path_CXX"; then
11745  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11746fi
11747
11748# PORTME: override above test on systems where it is broken
11749case $host_os in
11750interix[3-9]*)
11751  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11752  # hack all around it, let's just trust "g++" to DTRT.
11753  predep_objects_CXX=
11754  postdep_objects_CXX=
11755  postdeps_CXX=
11756  ;;
11757
11758linux*)
11759  case `$CC -V 2>&1 | sed 5q` in
11760  *Sun\ C*)
11761    # Sun C++ 5.9
11762    #
11763    # The more standards-conforming stlport4 library is
11764    # incompatible with the Cstd library. Avoid specifying
11765    # it if it's in CXXFLAGS. Ignore libCrun as
11766    # -library=stlport4 depends on it.
11767    case " $CXX $CXXFLAGS " in
11768    *" -library=stlport4 "*)
11769      solaris_use_stlport4=yes
11770      ;;
11771    esac
11772    if test "$solaris_use_stlport4" != yes; then
11773      postdeps_CXX='-library=Cstd -library=Crun'
11774    fi
11775    ;;
11776  esac
11777  ;;
11778
11779solaris*)
11780  case $cc_basename in
11781  CC*)
11782    # The more standards-conforming stlport4 library is
11783    # incompatible with the Cstd library. Avoid specifying
11784    # it if it's in CXXFLAGS. Ignore libCrun as
11785    # -library=stlport4 depends on it.
11786    case " $CXX $CXXFLAGS " in
11787    *" -library=stlport4 "*)
11788      solaris_use_stlport4=yes
11789      ;;
11790    esac
11791
11792    # Adding this requires a known-good setup of shared libraries for
11793    # Sun compiler versions before 5.6, else PIC objects from an old
11794    # archive will be linked into the output, leading to subtle bugs.
11795    if test "$solaris_use_stlport4" != yes; then
11796      postdeps_CXX='-library=Cstd -library=Crun'
11797    fi
11798    ;;
11799  esac
11800  ;;
11801esac
11802
11803case " $postdeps_CXX " in
11804*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11805esac
11806
11807lt_prog_compiler_wl_CXX=
11808lt_prog_compiler_pic_CXX=
11809lt_prog_compiler_static_CXX=
11810
11811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11812$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11813
11814  # C++ specific cases for pic, static, wl, etc.
11815  if test "$GXX" = yes; then
11816    lt_prog_compiler_wl_CXX='-Wl,'
11817    lt_prog_compiler_static_CXX='-static'
11818
11819    case $host_os in
11820    aix*)
11821      # All AIX code is PIC.
11822      if test "$host_cpu" = ia64; then
11823	# AIX 5 now supports IA64 processor
11824	lt_prog_compiler_static_CXX='-Bstatic'
11825      fi
11826      ;;
11827    amigaos*)
11828      # FIXME: we need at least 68020 code to build shared libraries, but
11829      # adding the `-m68020' flag to GCC prevents building anything better,
11830      # like `-m68040'.
11831      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11832      ;;
11833    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11834      # PIC is the default for these OSes.
11835      ;;
11836    mingw* | cygwin* | os2* | pw32*)
11837      # This hack is so that the source file can tell whether it is being
11838      # built for inclusion in a dll (and should export symbols for example).
11839      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11840      # (--disable-auto-import) libraries
11841      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11842      ;;
11843    darwin* | rhapsody*)
11844      # PIC is the default on this platform
11845      # Common symbols not allowed in MH_DYLIB files
11846      lt_prog_compiler_pic_CXX='-fno-common'
11847      ;;
11848    *djgpp*)
11849      # DJGPP does not support shared libraries at all
11850      lt_prog_compiler_pic_CXX=
11851      ;;
11852    interix[3-9]*)
11853      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11854      # Instead, we relocate shared libraries at runtime.
11855      ;;
11856    sysv4*MP*)
11857      if test -d /usr/nec; then
11858	lt_prog_compiler_pic_CXX=-Kconform_pic
11859      fi
11860      ;;
11861    hpux*)
11862      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11863      # not for PA HP-UX.
11864      case $host_cpu in
11865      hppa*64*|ia64*)
11866	;;
11867      *)
11868	lt_prog_compiler_pic_CXX='-fPIC'
11869	;;
11870      esac
11871      ;;
11872    *)
11873      lt_prog_compiler_pic_CXX='-fPIC'
11874      ;;
11875    esac
11876  else
11877    case $host_os in
11878      aix[4-9]*)
11879	# All AIX code is PIC.
11880	if test "$host_cpu" = ia64; then
11881	  # AIX 5 now supports IA64 processor
11882	  lt_prog_compiler_static_CXX='-Bstatic'
11883	else
11884	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11885	fi
11886	;;
11887      chorus*)
11888	case $cc_basename in
11889	cxch68*)
11890	  # Green Hills C++ Compiler
11891	  # _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"
11892	  ;;
11893	esac
11894	;;
11895       darwin*)
11896         # PIC is the default on this platform
11897         # Common symbols not allowed in MH_DYLIB files
11898         case $cc_basename in
11899           xlc*)
11900           lt_prog_compiler_pic_CXX='-qnocommon'
11901           lt_prog_compiler_wl_CXX='-Wl,'
11902           ;;
11903         esac
11904       ;;
11905      dgux*)
11906	case $cc_basename in
11907	  ec++*)
11908	    lt_prog_compiler_pic_CXX='-KPIC'
11909	    ;;
11910	  ghcx*)
11911	    # Green Hills C++ Compiler
11912	    lt_prog_compiler_pic_CXX='-pic'
11913	    ;;
11914	  *)
11915	    ;;
11916	esac
11917	;;
11918      freebsd* | dragonfly*)
11919	# FreeBSD uses GNU C++
11920	;;
11921      hpux9* | hpux10* | hpux11*)
11922	case $cc_basename in
11923	  CC*)
11924	    lt_prog_compiler_wl_CXX='-Wl,'
11925	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11926	    if test "$host_cpu" != ia64; then
11927	      lt_prog_compiler_pic_CXX='+Z'
11928	    fi
11929	    ;;
11930	  aCC*)
11931	    lt_prog_compiler_wl_CXX='-Wl,'
11932	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11933	    case $host_cpu in
11934	    hppa*64*|ia64*)
11935	      # +Z the default
11936	      ;;
11937	    *)
11938	      lt_prog_compiler_pic_CXX='+Z'
11939	      ;;
11940	    esac
11941	    ;;
11942	  *)
11943	    ;;
11944	esac
11945	;;
11946      interix*)
11947	# This is c89, which is MS Visual C++ (no shared libs)
11948	# Anyone wants to do a port?
11949	;;
11950      irix5* | irix6* | nonstopux*)
11951	case $cc_basename in
11952	  CC*)
11953	    lt_prog_compiler_wl_CXX='-Wl,'
11954	    lt_prog_compiler_static_CXX='-non_shared'
11955	    # CC pic flag -KPIC is the default.
11956	    ;;
11957	  *)
11958	    ;;
11959	esac
11960	;;
11961      linux* | k*bsd*-gnu)
11962	case $cc_basename in
11963	  KCC*)
11964	    # KAI C++ Compiler
11965	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11966	    lt_prog_compiler_pic_CXX='-fPIC'
11967	    ;;
11968	  icpc* | ecpc*)
11969	    # Intel C++
11970	    lt_prog_compiler_wl_CXX='-Wl,'
11971	    lt_prog_compiler_pic_CXX='-KPIC'
11972	    lt_prog_compiler_static_CXX='-static'
11973	    ;;
11974	  pgCC* | pgcpp*)
11975	    # Portland Group C++ compiler.
11976	    lt_prog_compiler_wl_CXX='-Wl,'
11977	    lt_prog_compiler_pic_CXX='-fpic'
11978	    lt_prog_compiler_static_CXX='-Bstatic'
11979	    ;;
11980	  cxx*)
11981	    # Compaq C++
11982	    # Make sure the PIC flag is empty.  It appears that all Alpha
11983	    # Linux and Compaq Tru64 Unix objects are PIC.
11984	    lt_prog_compiler_pic_CXX=
11985	    lt_prog_compiler_static_CXX='-non_shared'
11986	    ;;
11987	  *)
11988	    case `$CC -V 2>&1 | sed 5q` in
11989	    *Sun\ C*)
11990	      # Sun C++ 5.9
11991	      lt_prog_compiler_pic_CXX='-KPIC'
11992	      lt_prog_compiler_static_CXX='-Bstatic'
11993	      lt_prog_compiler_wl_CXX='-Qoption ld '
11994	      ;;
11995	    esac
11996	    ;;
11997	esac
11998	;;
11999      lynxos*)
12000	;;
12001      m88k*)
12002	;;
12003      mvs*)
12004	case $cc_basename in
12005	  cxx*)
12006	    lt_prog_compiler_pic_CXX='-W c,exportall'
12007	    ;;
12008	  *)
12009	    ;;
12010	esac
12011	;;
12012      netbsd*)
12013	;;
12014      osf3* | osf4* | osf5*)
12015	case $cc_basename in
12016	  KCC*)
12017	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12018	    ;;
12019	  RCC*)
12020	    # Rational C++ 2.4.1
12021	    lt_prog_compiler_pic_CXX='-pic'
12022	    ;;
12023	  cxx*)
12024	    # Digital/Compaq C++
12025	    lt_prog_compiler_wl_CXX='-Wl,'
12026	    # Make sure the PIC flag is empty.  It appears that all Alpha
12027	    # Linux and Compaq Tru64 Unix objects are PIC.
12028	    lt_prog_compiler_pic_CXX=
12029	    lt_prog_compiler_static_CXX='-non_shared'
12030	    ;;
12031	  *)
12032	    ;;
12033	esac
12034	;;
12035      psos*)
12036	;;
12037      solaris*)
12038	case $cc_basename in
12039	  CC*)
12040	    # Sun C++ 4.2, 5.x and Centerline C++
12041	    lt_prog_compiler_pic_CXX='-KPIC'
12042	    lt_prog_compiler_static_CXX='-Bstatic'
12043	    lt_prog_compiler_wl_CXX='-Qoption ld '
12044	    ;;
12045	  gcx*)
12046	    # Green Hills C++ Compiler
12047	    lt_prog_compiler_pic_CXX='-PIC'
12048	    ;;
12049	  *)
12050	    ;;
12051	esac
12052	;;
12053      sunos4*)
12054	case $cc_basename in
12055	  CC*)
12056	    # Sun C++ 4.x
12057	    lt_prog_compiler_pic_CXX='-pic'
12058	    lt_prog_compiler_static_CXX='-Bstatic'
12059	    ;;
12060	  lcc*)
12061	    # Lucid
12062	    lt_prog_compiler_pic_CXX='-pic'
12063	    ;;
12064	  *)
12065	    ;;
12066	esac
12067	;;
12068      tandem*)
12069	case $cc_basename in
12070	  NCC*)
12071	    # NonStop-UX NCC 3.20
12072	    lt_prog_compiler_pic_CXX='-KPIC'
12073	    ;;
12074	  *)
12075	    ;;
12076	esac
12077	;;
12078      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12079	case $cc_basename in
12080	  CC*)
12081	    lt_prog_compiler_wl_CXX='-Wl,'
12082	    lt_prog_compiler_pic_CXX='-KPIC'
12083	    lt_prog_compiler_static_CXX='-Bstatic'
12084	    ;;
12085	esac
12086	;;
12087      vxworks*)
12088	;;
12089      *)
12090	lt_prog_compiler_can_build_shared_CXX=no
12091	;;
12092    esac
12093  fi
12094
12095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12096$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12097
12098#
12099# Check to make sure the PIC flag actually works.
12100#
12101if test -n "$lt_prog_compiler_pic_CXX"; then
12102
12103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12104$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12105if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
12106  $as_echo_n "(cached) " >&6
12107else
12108  lt_cv_prog_compiler_pic_works_CXX=no
12109  ac_outfile=conftest.$ac_objext
12110   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12111   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12112   # Insert the option either (1) after the last *FLAGS variable, or
12113   # (2) before a word containing "conftest.", or (3) at the end.
12114   # Note that $ac_compile itself does not contain backslashes and begins
12115   # with a dollar sign (not a hyphen), so the echo should work correctly.
12116   # The option is referenced via a variable to avoid confusing sed.
12117   lt_compile=`echo "$ac_compile" | $SED \
12118   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12119   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12120   -e 's:$: $lt_compiler_flag:'`
12121   (eval echo "\"\$as_me:12121: $lt_compile\"" >&5)
12122   (eval "$lt_compile" 2>conftest.err)
12123   ac_status=$?
12124   cat conftest.err >&5
12125   echo "$as_me:12125: \$? = $ac_status" >&5
12126   if (exit $ac_status) && test -s "$ac_outfile"; then
12127     # The compiler can only warn and ignore the option if not recognized
12128     # So say no if there are warnings other than the usual output.
12129     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12130     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12131     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12132       lt_cv_prog_compiler_pic_works_CXX=yes
12133     fi
12134   fi
12135   $rm conftest*
12136
12137fi
12138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12139$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12140
12141if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12142    case $lt_prog_compiler_pic_CXX in
12143     "" | " "*) ;;
12144     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12145     esac
12146else
12147    lt_prog_compiler_pic_CXX=
12148     lt_prog_compiler_can_build_shared_CXX=no
12149fi
12150
12151fi
12152case $host_os in
12153  # For platforms which do not support PIC, -DPIC is meaningless:
12154  *djgpp*)
12155    lt_prog_compiler_pic_CXX=
12156    ;;
12157  *)
12158    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12159    ;;
12160esac
12161
12162#
12163# Check to make sure the static flag actually works.
12164#
12165wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12167$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12168if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
12169  $as_echo_n "(cached) " >&6
12170else
12171  lt_cv_prog_compiler_static_works_CXX=no
12172   save_LDFLAGS="$LDFLAGS"
12173   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12174   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12175   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12176     # The linker can only warn and ignore the option if not recognized
12177     # So say no if there are warnings
12178     if test -s conftest.err; then
12179       # Append any errors to the config.log.
12180       cat conftest.err 1>&5
12181       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12182       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12183       if diff conftest.exp conftest.er2 >/dev/null; then
12184         lt_cv_prog_compiler_static_works_CXX=yes
12185       fi
12186     else
12187       lt_cv_prog_compiler_static_works_CXX=yes
12188     fi
12189   fi
12190   $rm -r conftest*
12191   LDFLAGS="$save_LDFLAGS"
12192
12193fi
12194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12195$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12196
12197if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12198    :
12199else
12200    lt_prog_compiler_static_CXX=
12201fi
12202
12203
12204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12205$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12206if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
12207  $as_echo_n "(cached) " >&6
12208else
12209  lt_cv_prog_compiler_c_o_CXX=no
12210   $rm -r conftest 2>/dev/null
12211   mkdir conftest
12212   cd conftest
12213   mkdir out
12214   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12215
12216   lt_compiler_flag="-o out/conftest2.$ac_objext"
12217   # Insert the option either (1) after the last *FLAGS variable, or
12218   # (2) before a word containing "conftest.", or (3) at the end.
12219   # Note that $ac_compile itself does not contain backslashes and begins
12220   # with a dollar sign (not a hyphen), so the echo should work correctly.
12221   lt_compile=`echo "$ac_compile" | $SED \
12222   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12223   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12224   -e 's:$: $lt_compiler_flag:'`
12225   (eval echo "\"\$as_me:12225: $lt_compile\"" >&5)
12226   (eval "$lt_compile" 2>out/conftest.err)
12227   ac_status=$?
12228   cat out/conftest.err >&5
12229   echo "$as_me:12229: \$? = $ac_status" >&5
12230   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12231   then
12232     # The compiler can only warn and ignore the option if not recognized
12233     # So say no if there are warnings
12234     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12235     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12236     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12237       lt_cv_prog_compiler_c_o_CXX=yes
12238     fi
12239   fi
12240   chmod u+w . 2>&5
12241   $rm conftest*
12242   # SGI C++ compiler will create directory out/ii_files/ for
12243   # template instantiation
12244   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12245   $rm out/* && rmdir out
12246   cd ..
12247   rmdir conftest
12248   $rm conftest*
12249
12250fi
12251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12252$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12253
12254
12255hard_links="nottested"
12256if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12257  # do not overwrite the value of need_locks provided by the user
12258  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12259$as_echo_n "checking if we can lock with hard links... " >&6; }
12260  hard_links=yes
12261  $rm conftest*
12262  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12263  touch conftest.a
12264  ln conftest.a conftest.b 2>&5 || hard_links=no
12265  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12267$as_echo "$hard_links" >&6; }
12268  if test "$hard_links" = no; then
12269    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12270$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12271    need_locks=warn
12272  fi
12273else
12274  need_locks=no
12275fi
12276
12277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12278$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12279
12280  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12281  case $host_os in
12282  aix[4-9]*)
12283    # If we're using GNU nm, then we don't want the "-C" option.
12284    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12285    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12286      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'
12287    else
12288      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'
12289    fi
12290    ;;
12291  pw32*)
12292    export_symbols_cmds_CXX="$ltdll_cmds"
12293  ;;
12294  cygwin* | mingw*)
12295    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'
12296  ;;
12297  *)
12298    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12299  ;;
12300  esac
12301  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12302
12303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12304$as_echo "$ld_shlibs_CXX" >&6; }
12305test "$ld_shlibs_CXX" = no && can_build_shared=no
12306
12307#
12308# Do we need to explicitly link libc?
12309#
12310case "x$archive_cmds_need_lc_CXX" in
12311x|xyes)
12312  # Assume -lc should be added
12313  archive_cmds_need_lc_CXX=yes
12314
12315  if test "$enable_shared" = yes && test "$GCC" = yes; then
12316    case $archive_cmds_CXX in
12317    *'~'*)
12318      # FIXME: we may have to deal with multi-command sequences.
12319      ;;
12320    '$CC '*)
12321      # Test whether the compiler implicitly links with -lc since on some
12322      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12323      # to ld, don't add -lc before -lgcc.
12324      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12325$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12326      $rm conftest*
12327      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12328
12329      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12330  (eval $ac_compile) 2>&5
12331  ac_status=$?
12332  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12333  test $ac_status = 0; } 2>conftest.err; then
12334        soname=conftest
12335        lib=conftest
12336        libobjs=conftest.$ac_objext
12337        deplibs=
12338        wl=$lt_prog_compiler_wl_CXX
12339	pic_flag=$lt_prog_compiler_pic_CXX
12340        compiler_flags=-v
12341        linker_flags=-v
12342        verstring=
12343        output_objdir=.
12344        libname=conftest
12345        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12346        allow_undefined_flag_CXX=
12347        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12348  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12349  ac_status=$?
12350  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12351  test $ac_status = 0; }
12352        then
12353	  archive_cmds_need_lc_CXX=no
12354        else
12355	  archive_cmds_need_lc_CXX=yes
12356        fi
12357        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12358      else
12359        cat conftest.err 1>&5
12360      fi
12361      $rm conftest*
12362      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12363$as_echo "$archive_cmds_need_lc_CXX" >&6; }
12364      ;;
12365    esac
12366  fi
12367  ;;
12368esac
12369
12370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12371$as_echo_n "checking dynamic linker characteristics... " >&6; }
12372library_names_spec=
12373libname_spec='lib$name'
12374soname_spec=
12375shrext_cmds=".so"
12376postinstall_cmds=
12377postuninstall_cmds=
12378finish_cmds=
12379finish_eval=
12380shlibpath_var=
12381shlibpath_overrides_runpath=unknown
12382version_type=none
12383dynamic_linker="$host_os ld.so"
12384sys_lib_dlsearch_path_spec="/lib /usr/lib"
12385
12386need_lib_prefix=unknown
12387hardcode_into_libs=no
12388
12389# when you set need_version to no, make sure it does not cause -set_version
12390# flags to be left without arguments
12391need_version=unknown
12392
12393case $host_os in
12394aix3*)
12395  version_type=linux
12396  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12397  shlibpath_var=LIBPATH
12398
12399  # AIX 3 has no versioning support, so we append a major version to the name.
12400  soname_spec='${libname}${release}${shared_ext}$major'
12401  ;;
12402
12403aix[4-9]*)
12404  version_type=linux
12405  need_lib_prefix=no
12406  need_version=no
12407  hardcode_into_libs=yes
12408  if test "$host_cpu" = ia64; then
12409    # AIX 5 supports IA64
12410    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12411    shlibpath_var=LD_LIBRARY_PATH
12412  else
12413    # With GCC up to 2.95.x, collect2 would create an import file
12414    # for dependence libraries.  The import file would start with
12415    # the line `#! .'.  This would cause the generated library to
12416    # depend on `.', always an invalid library.  This was fixed in
12417    # development snapshots of GCC prior to 3.0.
12418    case $host_os in
12419      aix4 | aix4.[01] | aix4.[01].*)
12420      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12421	   echo ' yes '
12422	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12423	:
12424      else
12425	can_build_shared=no
12426      fi
12427      ;;
12428    esac
12429    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12430    # soname into executable. Probably we can add versioning support to
12431    # collect2, so additional links can be useful in future.
12432    if test "$aix_use_runtimelinking" = yes; then
12433      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12434      # instead of lib<name>.a to let people know that these are not
12435      # typical AIX shared libraries.
12436      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12437    else
12438      # We preserve .a as extension for shared libraries through AIX4.2
12439      # and later when we are not doing run time linking.
12440      library_names_spec='${libname}${release}.a $libname.a'
12441      soname_spec='${libname}${release}${shared_ext}$major'
12442    fi
12443    shlibpath_var=LIBPATH
12444  fi
12445  ;;
12446
12447amigaos*)
12448  library_names_spec='$libname.ixlibrary $libname.a'
12449  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12450  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'
12451  ;;
12452
12453beos*)
12454  library_names_spec='${libname}${shared_ext}'
12455  dynamic_linker="$host_os ld.so"
12456  shlibpath_var=LIBRARY_PATH
12457  ;;
12458
12459bsdi[45]*)
12460  version_type=linux
12461  need_version=no
12462  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12463  soname_spec='${libname}${release}${shared_ext}$major'
12464  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12465  shlibpath_var=LD_LIBRARY_PATH
12466  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12467  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12468  # the default ld.so.conf also contains /usr/contrib/lib and
12469  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12470  # libtool to hard-code these into programs
12471  ;;
12472
12473cygwin* | mingw* | pw32*)
12474  version_type=windows
12475  shrext_cmds=".dll"
12476  need_version=no
12477  need_lib_prefix=no
12478
12479  case $GCC,$host_os in
12480  yes,cygwin* | yes,mingw* | yes,pw32*)
12481    library_names_spec='$libname.dll.a'
12482    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12483    postinstall_cmds='base_file=`basename \${file}`~
12484      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12485      dldir=$destdir/`dirname \$dlpath`~
12486      test -d \$dldir || mkdir -p \$dldir~
12487      $install_prog $dir/$dlname \$dldir/$dlname~
12488      chmod a+x \$dldir/$dlname'
12489    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12490      dlpath=$dir/\$dldll~
12491       $rm \$dlpath'
12492    shlibpath_overrides_runpath=yes
12493
12494    case $host_os in
12495    cygwin*)
12496      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12497      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12498      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12499      ;;
12500    mingw*)
12501      # MinGW DLLs use traditional 'lib' prefix
12502      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12503      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12504      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12505        # It is most probably a Windows format PATH printed by
12506        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12507        # path with ; separators, and with drive letters. We can handle the
12508        # drive letters (cygwin fileutils understands them), so leave them,
12509        # especially as we might pass files found there to a mingw objdump,
12510        # which wouldn't understand a cygwinified path. Ahh.
12511        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12512      else
12513        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12514      fi
12515      ;;
12516    pw32*)
12517      # pw32 DLLs use 'pw' prefix rather than 'lib'
12518      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12519      ;;
12520    esac
12521    ;;
12522
12523  *)
12524    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12525    ;;
12526  esac
12527  dynamic_linker='Win32 ld.exe'
12528  # FIXME: first we should search . and the directory the executable is in
12529  shlibpath_var=PATH
12530  ;;
12531
12532darwin* | rhapsody*)
12533  dynamic_linker="$host_os dyld"
12534  version_type=darwin
12535  need_lib_prefix=no
12536  need_version=no
12537  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12538  soname_spec='${libname}${release}${major}$shared_ext'
12539  shlibpath_overrides_runpath=yes
12540  shlibpath_var=DYLD_LIBRARY_PATH
12541  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12542
12543  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12544  ;;
12545
12546dgux*)
12547  version_type=linux
12548  need_lib_prefix=no
12549  need_version=no
12550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12551  soname_spec='${libname}${release}${shared_ext}$major'
12552  shlibpath_var=LD_LIBRARY_PATH
12553  ;;
12554
12555freebsd1*)
12556  dynamic_linker=no
12557  ;;
12558
12559freebsd* | dragonfly*)
12560  # DragonFly does not have aout.  When/if they implement a new
12561  # versioning mechanism, adjust this.
12562  if test -x /usr/bin/objformat; then
12563    objformat=`/usr/bin/objformat`
12564  else
12565    case $host_os in
12566    freebsd[123]*) objformat=aout ;;
12567    *) objformat=elf ;;
12568    esac
12569  fi
12570  version_type=freebsd-$objformat
12571  case $version_type in
12572    freebsd-elf*)
12573      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12574      need_version=no
12575      need_lib_prefix=no
12576      ;;
12577    freebsd-*)
12578      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12579      need_version=yes
12580      ;;
12581  esac
12582  shlibpath_var=LD_LIBRARY_PATH
12583  case $host_os in
12584  freebsd2*)
12585    shlibpath_overrides_runpath=yes
12586    ;;
12587  freebsd3.[01]* | freebsdelf3.[01]*)
12588    shlibpath_overrides_runpath=yes
12589    hardcode_into_libs=yes
12590    ;;
12591  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12592  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12593    shlibpath_overrides_runpath=no
12594    hardcode_into_libs=yes
12595    ;;
12596  *) # from 4.6 on, and DragonFly
12597    shlibpath_overrides_runpath=yes
12598    hardcode_into_libs=yes
12599    ;;
12600  esac
12601  ;;
12602
12603gnu*)
12604  version_type=linux
12605  need_lib_prefix=no
12606  need_version=no
12607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12608  soname_spec='${libname}${release}${shared_ext}$major'
12609  shlibpath_var=LD_LIBRARY_PATH
12610  hardcode_into_libs=yes
12611  ;;
12612
12613hpux9* | hpux10* | hpux11*)
12614  # Give a soname corresponding to the major version so that dld.sl refuses to
12615  # link against other versions.
12616  version_type=sunos
12617  need_lib_prefix=no
12618  need_version=no
12619  case $host_cpu in
12620  ia64*)
12621    shrext_cmds='.so'
12622    hardcode_into_libs=yes
12623    dynamic_linker="$host_os dld.so"
12624    shlibpath_var=LD_LIBRARY_PATH
12625    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12626    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12627    soname_spec='${libname}${release}${shared_ext}$major'
12628    if test "X$HPUX_IA64_MODE" = X32; then
12629      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12630    else
12631      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12632    fi
12633    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12634    ;;
12635   hppa*64*)
12636     shrext_cmds='.sl'
12637     hardcode_into_libs=yes
12638     dynamic_linker="$host_os dld.sl"
12639     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12640     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12641     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12642     soname_spec='${libname}${release}${shared_ext}$major'
12643     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12644     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12645     ;;
12646   *)
12647    shrext_cmds='.sl'
12648    dynamic_linker="$host_os dld.sl"
12649    shlibpath_var=SHLIB_PATH
12650    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12651    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12652    soname_spec='${libname}${release}${shared_ext}$major'
12653    ;;
12654  esac
12655  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12656  postinstall_cmds='chmod 555 $lib'
12657  ;;
12658
12659interix[3-9]*)
12660  version_type=linux
12661  need_lib_prefix=no
12662  need_version=no
12663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12664  soname_spec='${libname}${release}${shared_ext}$major'
12665  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12666  shlibpath_var=LD_LIBRARY_PATH
12667  shlibpath_overrides_runpath=no
12668  hardcode_into_libs=yes
12669  ;;
12670
12671irix5* | irix6* | nonstopux*)
12672  case $host_os in
12673    nonstopux*) version_type=nonstopux ;;
12674    *)
12675	if test "$lt_cv_prog_gnu_ld" = yes; then
12676		version_type=linux
12677	else
12678		version_type=irix
12679	fi ;;
12680  esac
12681  need_lib_prefix=no
12682  need_version=no
12683  soname_spec='${libname}${release}${shared_ext}$major'
12684  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12685  case $host_os in
12686  irix5* | nonstopux*)
12687    libsuff= shlibsuff=
12688    ;;
12689  *)
12690    case $LD in # libtool.m4 will add one of these switches to LD
12691    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12692      libsuff= shlibsuff= libmagic=32-bit;;
12693    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12694      libsuff=32 shlibsuff=N32 libmagic=N32;;
12695    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12696      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12697    *) libsuff= shlibsuff= libmagic=never-match;;
12698    esac
12699    ;;
12700  esac
12701  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12702  shlibpath_overrides_runpath=no
12703  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12704  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12705  hardcode_into_libs=yes
12706  ;;
12707
12708# No shared lib support for Linux oldld, aout, or coff.
12709linux*oldld* | linux*aout* | linux*coff*)
12710  dynamic_linker=no
12711  ;;
12712
12713# This must be Linux ELF.
12714linux* | k*bsd*-gnu)
12715  version_type=linux
12716  need_lib_prefix=no
12717  need_version=no
12718  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12719  soname_spec='${libname}${release}${shared_ext}$major'
12720  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12721  shlibpath_var=LD_LIBRARY_PATH
12722  shlibpath_overrides_runpath=no
12723  # This implies no fast_install, which is unacceptable.
12724  # Some rework will be needed to allow for fast_install
12725  # before this can be enabled.
12726  hardcode_into_libs=yes
12727
12728  # Append ld.so.conf contents to the search path
12729  if test -f /etc/ld.so.conf; then
12730    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' ' '`
12731    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12732  fi
12733
12734  # We used to test for /lib/ld.so.1 and disable shared libraries on
12735  # powerpc, because MkLinux only supported shared libraries with the
12736  # GNU dynamic linker.  Since this was broken with cross compilers,
12737  # most powerpc-linux boxes support dynamic linking these days and
12738  # people can always --disable-shared, the test was removed, and we
12739  # assume the GNU/Linux dynamic linker is in use.
12740  dynamic_linker='GNU/Linux ld.so'
12741  ;;
12742
12743netbsd*)
12744  version_type=sunos
12745  need_lib_prefix=no
12746  need_version=no
12747  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12748    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12749    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12750    dynamic_linker='NetBSD (a.out) ld.so'
12751  else
12752    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12753    soname_spec='${libname}${release}${shared_ext}$major'
12754    dynamic_linker='NetBSD ld.elf_so'
12755  fi
12756  shlibpath_var=LD_LIBRARY_PATH
12757  shlibpath_overrides_runpath=yes
12758  hardcode_into_libs=yes
12759  ;;
12760
12761newsos6)
12762  version_type=linux
12763  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12764  shlibpath_var=LD_LIBRARY_PATH
12765  shlibpath_overrides_runpath=yes
12766  ;;
12767
12768nto-qnx*)
12769  version_type=linux
12770  need_lib_prefix=no
12771  need_version=no
12772  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12773  soname_spec='${libname}${release}${shared_ext}$major'
12774  shlibpath_var=LD_LIBRARY_PATH
12775  shlibpath_overrides_runpath=yes
12776  ;;
12777
12778openbsd*)
12779  version_type=sunos
12780  sys_lib_dlsearch_path_spec="/usr/lib"
12781  need_lib_prefix=no
12782  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12783  case $host_os in
12784    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12785    *)                         need_version=no  ;;
12786  esac
12787  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12788  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12789  shlibpath_var=LD_LIBRARY_PATH
12790  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12791    case $host_os in
12792      openbsd2.[89] | openbsd2.[89].*)
12793	shlibpath_overrides_runpath=no
12794	;;
12795      *)
12796	shlibpath_overrides_runpath=yes
12797	;;
12798      esac
12799  else
12800    shlibpath_overrides_runpath=yes
12801  fi
12802  ;;
12803
12804os2*)
12805  libname_spec='$name'
12806  shrext_cmds=".dll"
12807  need_lib_prefix=no
12808  library_names_spec='$libname${shared_ext} $libname.a'
12809  dynamic_linker='OS/2 ld.exe'
12810  shlibpath_var=LIBPATH
12811  ;;
12812
12813osf3* | osf4* | osf5*)
12814  version_type=osf
12815  need_lib_prefix=no
12816  need_version=no
12817  soname_spec='${libname}${release}${shared_ext}$major'
12818  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12819  shlibpath_var=LD_LIBRARY_PATH
12820  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12821  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12822  ;;
12823
12824rdos*)
12825  dynamic_linker=no
12826  ;;
12827
12828solaris*)
12829  version_type=linux
12830  need_lib_prefix=no
12831  need_version=no
12832  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12833  soname_spec='${libname}${release}${shared_ext}$major'
12834  shlibpath_var=LD_LIBRARY_PATH
12835  shlibpath_overrides_runpath=yes
12836  hardcode_into_libs=yes
12837  # ldd complains unless libraries are executable
12838  postinstall_cmds='chmod +x $lib'
12839  ;;
12840
12841sunos4*)
12842  version_type=sunos
12843  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12844  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12845  shlibpath_var=LD_LIBRARY_PATH
12846  shlibpath_overrides_runpath=yes
12847  if test "$with_gnu_ld" = yes; then
12848    need_lib_prefix=no
12849  fi
12850  need_version=yes
12851  ;;
12852
12853sysv4 | sysv4.3*)
12854  version_type=linux
12855  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12856  soname_spec='${libname}${release}${shared_ext}$major'
12857  shlibpath_var=LD_LIBRARY_PATH
12858  case $host_vendor in
12859    sni)
12860      shlibpath_overrides_runpath=no
12861      need_lib_prefix=no
12862      export_dynamic_flag_spec='${wl}-Blargedynsym'
12863      runpath_var=LD_RUN_PATH
12864      ;;
12865    siemens)
12866      need_lib_prefix=no
12867      ;;
12868    motorola)
12869      need_lib_prefix=no
12870      need_version=no
12871      shlibpath_overrides_runpath=no
12872      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12873      ;;
12874  esac
12875  ;;
12876
12877sysv4*MP*)
12878  if test -d /usr/nec ;then
12879    version_type=linux
12880    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12881    soname_spec='$libname${shared_ext}.$major'
12882    shlibpath_var=LD_LIBRARY_PATH
12883  fi
12884  ;;
12885
12886sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12887  version_type=freebsd-elf
12888  need_lib_prefix=no
12889  need_version=no
12890  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12891  soname_spec='${libname}${release}${shared_ext}$major'
12892  shlibpath_var=LD_LIBRARY_PATH
12893  hardcode_into_libs=yes
12894  if test "$with_gnu_ld" = yes; then
12895    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12896    shlibpath_overrides_runpath=no
12897  else
12898    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12899    shlibpath_overrides_runpath=yes
12900    case $host_os in
12901      sco3.2v5*)
12902        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12903	;;
12904    esac
12905  fi
12906  sys_lib_dlsearch_path_spec='/usr/lib'
12907  ;;
12908
12909uts4*)
12910  version_type=linux
12911  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12912  soname_spec='${libname}${release}${shared_ext}$major'
12913  shlibpath_var=LD_LIBRARY_PATH
12914  ;;
12915
12916*)
12917  dynamic_linker=no
12918  ;;
12919esac
12920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12921$as_echo "$dynamic_linker" >&6; }
12922test "$dynamic_linker" = no && can_build_shared=no
12923
12924if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
12925  $as_echo_n "(cached) " >&6
12926else
12927  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
12928fi
12929
12930sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12931if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
12932  $as_echo_n "(cached) " >&6
12933else
12934  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
12935fi
12936
12937sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12938
12939variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12940if test "$GCC" = yes; then
12941  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12942fi
12943
12944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12945$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12946hardcode_action_CXX=
12947if test -n "$hardcode_libdir_flag_spec_CXX" || \
12948   test -n "$runpath_var_CXX" || \
12949   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12950
12951  # We can hardcode non-existant directories.
12952  if test "$hardcode_direct_CXX" != no &&
12953     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12954     # have to relink, otherwise we might link with an installed library
12955     # when we should be linking with a yet-to-be-installed one
12956     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12957     test "$hardcode_minus_L_CXX" != no; then
12958    # Linking always hardcodes the temporary library directory.
12959    hardcode_action_CXX=relink
12960  else
12961    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12962    hardcode_action_CXX=immediate
12963  fi
12964else
12965  # We cannot hardcode anything, or else we can only hardcode existing
12966  # directories.
12967  hardcode_action_CXX=unsupported
12968fi
12969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
12970$as_echo "$hardcode_action_CXX" >&6; }
12971
12972if test "$hardcode_action_CXX" = relink; then
12973  # Fast installation is not supported
12974  enable_fast_install=no
12975elif test "$shlibpath_overrides_runpath" = yes ||
12976     test "$enable_shared" = no; then
12977  # Fast installation is not necessary
12978  enable_fast_install=needless
12979fi
12980
12981
12982# The else clause should only fire when bootstrapping the
12983# libtool distribution, otherwise you forgot to ship ltmain.sh
12984# with your package, and you will get complaints that there are
12985# no rules to generate ltmain.sh.
12986if test -f "$ltmain"; then
12987  # See if we are running on zsh, and set the options which allow our commands through
12988  # without removal of \ escapes.
12989  if test -n "${ZSH_VERSION+set}" ; then
12990    setopt NO_GLOB_SUBST
12991  fi
12992  # Now quote all the things that may contain metacharacters while being
12993  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12994  # variables and quote the copies for generation of the libtool script.
12995  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12996    SED SHELL STRIP \
12997    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12998    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12999    deplibs_check_method reload_flag reload_cmds need_locks \
13000    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13001    lt_cv_sys_global_symbol_to_c_name_address \
13002    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13003    old_postinstall_cmds old_postuninstall_cmds \
13004    compiler_CXX \
13005    CC_CXX \
13006    LD_CXX \
13007    lt_prog_compiler_wl_CXX \
13008    lt_prog_compiler_pic_CXX \
13009    lt_prog_compiler_static_CXX \
13010    lt_prog_compiler_no_builtin_flag_CXX \
13011    export_dynamic_flag_spec_CXX \
13012    thread_safe_flag_spec_CXX \
13013    whole_archive_flag_spec_CXX \
13014    enable_shared_with_static_runtimes_CXX \
13015    old_archive_cmds_CXX \
13016    old_archive_from_new_cmds_CXX \
13017    predep_objects_CXX \
13018    postdep_objects_CXX \
13019    predeps_CXX \
13020    postdeps_CXX \
13021    compiler_lib_search_path_CXX \
13022    compiler_lib_search_dirs_CXX \
13023    archive_cmds_CXX \
13024    archive_expsym_cmds_CXX \
13025    postinstall_cmds_CXX \
13026    postuninstall_cmds_CXX \
13027    old_archive_from_expsyms_cmds_CXX \
13028    allow_undefined_flag_CXX \
13029    no_undefined_flag_CXX \
13030    export_symbols_cmds_CXX \
13031    hardcode_libdir_flag_spec_CXX \
13032    hardcode_libdir_flag_spec_ld_CXX \
13033    hardcode_libdir_separator_CXX \
13034    hardcode_automatic_CXX \
13035    module_cmds_CXX \
13036    module_expsym_cmds_CXX \
13037    lt_cv_prog_compiler_c_o_CXX \
13038    fix_srcfile_path_CXX \
13039    exclude_expsyms_CXX \
13040    include_expsyms_CXX; do
13041
13042    case $var in
13043    old_archive_cmds_CXX | \
13044    old_archive_from_new_cmds_CXX | \
13045    archive_cmds_CXX | \
13046    archive_expsym_cmds_CXX | \
13047    module_cmds_CXX | \
13048    module_expsym_cmds_CXX | \
13049    old_archive_from_expsyms_cmds_CXX | \
13050    export_symbols_cmds_CXX | \
13051    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13052    postinstall_cmds | postuninstall_cmds | \
13053    old_postinstall_cmds | old_postuninstall_cmds | \
13054    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13055      # Double-quote double-evaled strings.
13056      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13057      ;;
13058    *)
13059      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13060      ;;
13061    esac
13062  done
13063
13064  case $lt_echo in
13065  *'\$0 --fallback-echo"')
13066    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13067    ;;
13068  esac
13069
13070cfgfile="$ofile"
13071
13072  cat <<__EOF__ >> "$cfgfile"
13073# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13074
13075# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13076
13077# Shell to use when invoking shell scripts.
13078SHELL=$lt_SHELL
13079
13080# Whether or not to build shared libraries.
13081build_libtool_libs=$enable_shared
13082
13083# Whether or not to build static libraries.
13084build_old_libs=$enable_static
13085
13086# Whether or not to add -lc for building shared libraries.
13087build_libtool_need_lc=$archive_cmds_need_lc_CXX
13088
13089# Whether or not to disallow shared libs when runtime libs are static
13090allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13091
13092# Whether or not to optimize for fast installation.
13093fast_install=$enable_fast_install
13094
13095# The host system.
13096host_alias=$host_alias
13097host=$host
13098host_os=$host_os
13099
13100# The build system.
13101build_alias=$build_alias
13102build=$build
13103build_os=$build_os
13104
13105# An echo program that does not interpret backslashes.
13106echo=$lt_echo
13107
13108# The archiver.
13109AR=$lt_AR
13110AR_FLAGS=$lt_AR_FLAGS
13111
13112# A C compiler.
13113LTCC=$lt_LTCC
13114
13115# LTCC compiler flags.
13116LTCFLAGS=$lt_LTCFLAGS
13117
13118# A language-specific compiler.
13119CC=$lt_compiler_CXX
13120
13121# Is the compiler the GNU C compiler?
13122with_gcc=$GCC_CXX
13123
13124# An ERE matcher.
13125EGREP=$lt_EGREP
13126
13127# The linker used to build libraries.
13128LD=$lt_LD_CXX
13129
13130# Whether we need hard or soft links.
13131LN_S=$lt_LN_S
13132
13133# A BSD-compatible nm program.
13134NM=$lt_NM
13135
13136# A symbol stripping program
13137STRIP=$lt_STRIP
13138
13139# Used to examine libraries when file_magic_cmd begins "file"
13140MAGIC_CMD=$MAGIC_CMD
13141
13142# Used on cygwin: DLL creation program.
13143DLLTOOL="$DLLTOOL"
13144
13145# Used on cygwin: object dumper.
13146OBJDUMP="$OBJDUMP"
13147
13148# Used on cygwin: assembler.
13149AS="$AS"
13150
13151# The name of the directory that contains temporary libtool files.
13152objdir=$objdir
13153
13154# How to create reloadable object files.
13155reload_flag=$lt_reload_flag
13156reload_cmds=$lt_reload_cmds
13157
13158# How to pass a linker flag through the compiler.
13159wl=$lt_lt_prog_compiler_wl_CXX
13160
13161# Object file suffix (normally "o").
13162objext="$ac_objext"
13163
13164# Old archive suffix (normally "a").
13165libext="$libext"
13166
13167# Shared library suffix (normally ".so").
13168shrext_cmds='$shrext_cmds'
13169
13170# Executable file suffix (normally "").
13171exeext="$exeext"
13172
13173# Additional compiler flags for building library objects.
13174pic_flag=$lt_lt_prog_compiler_pic_CXX
13175pic_mode=$pic_mode
13176
13177# What is the maximum length of a command?
13178max_cmd_len=$lt_cv_sys_max_cmd_len
13179
13180# Does compiler simultaneously support -c and -o options?
13181compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13182
13183# Must we lock files when doing compilation?
13184need_locks=$lt_need_locks
13185
13186# Do we need the lib prefix for modules?
13187need_lib_prefix=$need_lib_prefix
13188
13189# Do we need a version for libraries?
13190need_version=$need_version
13191
13192# Whether dlopen is supported.
13193dlopen_support=$enable_dlopen
13194
13195# Whether dlopen of programs is supported.
13196dlopen_self=$enable_dlopen_self
13197
13198# Whether dlopen of statically linked programs is supported.
13199dlopen_self_static=$enable_dlopen_self_static
13200
13201# Compiler flag to prevent dynamic linking.
13202link_static_flag=$lt_lt_prog_compiler_static_CXX
13203
13204# Compiler flag to turn off builtin functions.
13205no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13206
13207# Compiler flag to allow reflexive dlopens.
13208export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13209
13210# Compiler flag to generate shared objects directly from archives.
13211whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13212
13213# Compiler flag to generate thread-safe objects.
13214thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13215
13216# Library versioning type.
13217version_type=$version_type
13218
13219# Format of library name prefix.
13220libname_spec=$lt_libname_spec
13221
13222# List of archive names.  First name is the real one, the rest are links.
13223# The last name is the one that the linker finds with -lNAME.
13224library_names_spec=$lt_library_names_spec
13225
13226# The coded name of the library, if different from the real name.
13227soname_spec=$lt_soname_spec
13228
13229# Commands used to build and install an old-style archive.
13230RANLIB=$lt_RANLIB
13231old_archive_cmds=$lt_old_archive_cmds_CXX
13232old_postinstall_cmds=$lt_old_postinstall_cmds
13233old_postuninstall_cmds=$lt_old_postuninstall_cmds
13234
13235# Create an old-style archive from a shared archive.
13236old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13237
13238# Create a temporary old-style archive to link instead of a shared archive.
13239old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13240
13241# Commands used to build and install a shared archive.
13242archive_cmds=$lt_archive_cmds_CXX
13243archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13244postinstall_cmds=$lt_postinstall_cmds
13245postuninstall_cmds=$lt_postuninstall_cmds
13246
13247# Commands used to build a loadable module (assumed same as above if empty)
13248module_cmds=$lt_module_cmds_CXX
13249module_expsym_cmds=$lt_module_expsym_cmds_CXX
13250
13251# Commands to strip libraries.
13252old_striplib=$lt_old_striplib
13253striplib=$lt_striplib
13254
13255# Dependencies to place before the objects being linked to create a
13256# shared library.
13257predep_objects=$lt_predep_objects_CXX
13258
13259# Dependencies to place after the objects being linked to create a
13260# shared library.
13261postdep_objects=$lt_postdep_objects_CXX
13262
13263# Dependencies to place before the objects being linked to create a
13264# shared library.
13265predeps=$lt_predeps_CXX
13266
13267# Dependencies to place after the objects being linked to create a
13268# shared library.
13269postdeps=$lt_postdeps_CXX
13270
13271# The directories searched by this compiler when creating a shared
13272# library
13273compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13274
13275# The library search path used internally by the compiler when linking
13276# a shared library.
13277compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13278
13279# Method to check whether dependent libraries are shared objects.
13280deplibs_check_method=$lt_deplibs_check_method
13281
13282# Command to use when deplibs_check_method == file_magic.
13283file_magic_cmd=$lt_file_magic_cmd
13284
13285# Flag that allows shared libraries with undefined symbols to be built.
13286allow_undefined_flag=$lt_allow_undefined_flag_CXX
13287
13288# Flag that forces no undefined symbols.
13289no_undefined_flag=$lt_no_undefined_flag_CXX
13290
13291# Commands used to finish a libtool library installation in a directory.
13292finish_cmds=$lt_finish_cmds
13293
13294# Same as above, but a single script fragment to be evaled but not shown.
13295finish_eval=$lt_finish_eval
13296
13297# Take the output of nm and produce a listing of raw symbols and C names.
13298global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13299
13300# Transform the output of nm in a proper C declaration
13301global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13302
13303# Transform the output of nm in a C name address pair
13304global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13305
13306# This is the shared library runtime path variable.
13307runpath_var=$runpath_var
13308
13309# This is the shared library path variable.
13310shlibpath_var=$shlibpath_var
13311
13312# Is shlibpath searched before the hard-coded library search path?
13313shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13314
13315# How to hardcode a shared library path into an executable.
13316hardcode_action=$hardcode_action_CXX
13317
13318# Whether we should hardcode library paths into libraries.
13319hardcode_into_libs=$hardcode_into_libs
13320
13321# Flag to hardcode \$libdir into a binary during linking.
13322# This must work even if \$libdir does not exist.
13323hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13324
13325# If ld is used when linking, flag to hardcode \$libdir into
13326# a binary during linking. This must work even if \$libdir does
13327# not exist.
13328hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13329
13330# Whether we need a single -rpath flag with a separated argument.
13331hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13332
13333# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13334# resulting binary.
13335hardcode_direct=$hardcode_direct_CXX
13336
13337# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13338# resulting binary.
13339hardcode_minus_L=$hardcode_minus_L_CXX
13340
13341# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13342# the resulting binary.
13343hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13344
13345# Set to yes if building a shared library automatically hardcodes DIR into the library
13346# and all subsequent libraries and executables linked against it.
13347hardcode_automatic=$hardcode_automatic_CXX
13348
13349# Variables whose values should be saved in libtool wrapper scripts and
13350# restored at relink time.
13351variables_saved_for_relink="$variables_saved_for_relink"
13352
13353# Whether libtool must link a program against all its dependency libraries.
13354link_all_deplibs=$link_all_deplibs_CXX
13355
13356# Compile-time system search path for libraries
13357sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13358
13359# Run-time system search path for libraries
13360sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13361
13362# Fix the shell variable \$srcfile for the compiler.
13363fix_srcfile_path=$lt_fix_srcfile_path
13364
13365# Set to yes if exported symbols are required.
13366always_export_symbols=$always_export_symbols_CXX
13367
13368# The commands to list exported symbols.
13369export_symbols_cmds=$lt_export_symbols_cmds_CXX
13370
13371# The commands to extract the exported symbol list from a shared archive.
13372extract_expsyms_cmds=$lt_extract_expsyms_cmds
13373
13374# Symbols that should not be listed in the preloaded symbols.
13375exclude_expsyms=$lt_exclude_expsyms_CXX
13376
13377# Symbols that must always be exported.
13378include_expsyms=$lt_include_expsyms_CXX
13379
13380# ### END LIBTOOL TAG CONFIG: $tagname
13381
13382__EOF__
13383
13384
13385else
13386  # If there is no Makefile yet, we rely on a make rule to execute
13387  # `config.status --recheck' to rerun these tests and create the
13388  # libtool script then.
13389  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13390  if test -f "$ltmain_in"; then
13391    test -f Makefile && make "$ltmain"
13392  fi
13393fi
13394
13395
13396ac_ext=c
13397ac_cpp='$CPP $CPPFLAGS'
13398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13400ac_compiler_gnu=$ac_cv_c_compiler_gnu
13401
13402CC=$lt_save_CC
13403LDCXX=$LD
13404LD=$lt_save_LD
13405GCC=$lt_save_GCC
13406with_gnu_ldcxx=$with_gnu_ld
13407with_gnu_ld=$lt_save_with_gnu_ld
13408lt_cv_path_LDCXX=$lt_cv_path_LD
13409lt_cv_path_LD=$lt_save_path_LD
13410lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13411lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13412
13413	else
13414	  tagname=""
13415	fi
13416	;;
13417
13418      F77)
13419	if test -n "$F77" && test "X$F77" != "Xno"; then
13420
13421ac_ext=f
13422ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13423ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13424ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13425
13426
13427archive_cmds_need_lc_F77=no
13428allow_undefined_flag_F77=
13429always_export_symbols_F77=no
13430archive_expsym_cmds_F77=
13431export_dynamic_flag_spec_F77=
13432hardcode_direct_F77=no
13433hardcode_libdir_flag_spec_F77=
13434hardcode_libdir_flag_spec_ld_F77=
13435hardcode_libdir_separator_F77=
13436hardcode_minus_L_F77=no
13437hardcode_automatic_F77=no
13438module_cmds_F77=
13439module_expsym_cmds_F77=
13440link_all_deplibs_F77=unknown
13441old_archive_cmds_F77=$old_archive_cmds
13442no_undefined_flag_F77=
13443whole_archive_flag_spec_F77=
13444enable_shared_with_static_runtimes_F77=no
13445
13446# Source file extension for f77 test sources.
13447ac_ext=f
13448
13449# Object file extension for compiled f77 test sources.
13450objext=o
13451objext_F77=$objext
13452
13453# Code to be used in simple compile tests
13454lt_simple_compile_test_code="\
13455      subroutine t
13456      return
13457      end
13458"
13459
13460# Code to be used in simple link tests
13461lt_simple_link_test_code="\
13462      program t
13463      end
13464"
13465
13466# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13467
13468# If no C compiler was specified, use CC.
13469LTCC=${LTCC-"$CC"}
13470
13471# If no C compiler flags were specified, use CFLAGS.
13472LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13473
13474# Allow CC to be a program name with arguments.
13475compiler=$CC
13476
13477
13478# save warnings/boilerplate of simple test code
13479ac_outfile=conftest.$ac_objext
13480echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13481eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13482_lt_compiler_boilerplate=`cat conftest.err`
13483$rm conftest*
13484
13485ac_outfile=conftest.$ac_objext
13486echo "$lt_simple_link_test_code" >conftest.$ac_ext
13487eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13488_lt_linker_boilerplate=`cat conftest.err`
13489$rm -r conftest*
13490
13491
13492# Allow CC to be a program name with arguments.
13493lt_save_CC="$CC"
13494CC=${F77-"f77"}
13495compiler=$CC
13496compiler_F77=$CC
13497for cc_temp in $compiler""; do
13498  case $cc_temp in
13499    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13500    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13501    \-*) ;;
13502    *) break;;
13503  esac
13504done
13505cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13506
13507
13508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13509$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13511$as_echo "$can_build_shared" >&6; }
13512
13513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13514$as_echo_n "checking whether to build shared libraries... " >&6; }
13515test "$can_build_shared" = "no" && enable_shared=no
13516
13517# On AIX, shared libraries and static libraries use the same namespace, and
13518# are all built from PIC.
13519case $host_os in
13520aix3*)
13521  test "$enable_shared" = yes && enable_static=no
13522  if test -n "$RANLIB"; then
13523    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13524    postinstall_cmds='$RANLIB $lib'
13525  fi
13526  ;;
13527aix[4-9]*)
13528  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13529    test "$enable_shared" = yes && enable_static=no
13530  fi
13531  ;;
13532esac
13533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13534$as_echo "$enable_shared" >&6; }
13535
13536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13537$as_echo_n "checking whether to build static libraries... " >&6; }
13538# Make sure either enable_shared or enable_static is yes.
13539test "$enable_shared" = yes || enable_static=yes
13540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13541$as_echo "$enable_static" >&6; }
13542
13543GCC_F77="$G77"
13544LD_F77="$LD"
13545
13546lt_prog_compiler_wl_F77=
13547lt_prog_compiler_pic_F77=
13548lt_prog_compiler_static_F77=
13549
13550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13551$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13552
13553  if test "$GCC" = yes; then
13554    lt_prog_compiler_wl_F77='-Wl,'
13555    lt_prog_compiler_static_F77='-static'
13556
13557    case $host_os in
13558      aix*)
13559      # All AIX code is PIC.
13560      if test "$host_cpu" = ia64; then
13561	# AIX 5 now supports IA64 processor
13562	lt_prog_compiler_static_F77='-Bstatic'
13563      fi
13564      ;;
13565
13566    amigaos*)
13567      # FIXME: we need at least 68020 code to build shared libraries, but
13568      # adding the `-m68020' flag to GCC prevents building anything better,
13569      # like `-m68040'.
13570      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13571      ;;
13572
13573    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13574      # PIC is the default for these OSes.
13575      ;;
13576
13577    mingw* | cygwin* | pw32* | os2*)
13578      # This hack is so that the source file can tell whether it is being
13579      # built for inclusion in a dll (and should export symbols for example).
13580      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13581      # (--disable-auto-import) libraries
13582      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13583      ;;
13584
13585    darwin* | rhapsody*)
13586      # PIC is the default on this platform
13587      # Common symbols not allowed in MH_DYLIB files
13588      lt_prog_compiler_pic_F77='-fno-common'
13589      ;;
13590
13591    interix[3-9]*)
13592      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13593      # Instead, we relocate shared libraries at runtime.
13594      ;;
13595
13596    msdosdjgpp*)
13597      # Just because we use GCC doesn't mean we suddenly get shared libraries
13598      # on systems that don't support them.
13599      lt_prog_compiler_can_build_shared_F77=no
13600      enable_shared=no
13601      ;;
13602
13603    sysv4*MP*)
13604      if test -d /usr/nec; then
13605	lt_prog_compiler_pic_F77=-Kconform_pic
13606      fi
13607      ;;
13608
13609    hpux*)
13610      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13611      # not for PA HP-UX.
13612      case $host_cpu in
13613      hppa*64*|ia64*)
13614	# +Z the default
13615	;;
13616      *)
13617	lt_prog_compiler_pic_F77='-fPIC'
13618	;;
13619      esac
13620      ;;
13621
13622    *)
13623      lt_prog_compiler_pic_F77='-fPIC'
13624      ;;
13625    esac
13626  else
13627    # PORTME Check for flag to pass linker flags through the system compiler.
13628    case $host_os in
13629    aix*)
13630      lt_prog_compiler_wl_F77='-Wl,'
13631      if test "$host_cpu" = ia64; then
13632	# AIX 5 now supports IA64 processor
13633	lt_prog_compiler_static_F77='-Bstatic'
13634      else
13635	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13636      fi
13637      ;;
13638      darwin*)
13639        # PIC is the default on this platform
13640        # Common symbols not allowed in MH_DYLIB files
13641       case $cc_basename in
13642         xlc*)
13643         lt_prog_compiler_pic_F77='-qnocommon'
13644         lt_prog_compiler_wl_F77='-Wl,'
13645         ;;
13646       esac
13647       ;;
13648
13649    mingw* | cygwin* | pw32* | os2*)
13650      # This hack is so that the source file can tell whether it is being
13651      # built for inclusion in a dll (and should export symbols for example).
13652      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13653      ;;
13654
13655    hpux9* | hpux10* | hpux11*)
13656      lt_prog_compiler_wl_F77='-Wl,'
13657      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13658      # not for PA HP-UX.
13659      case $host_cpu in
13660      hppa*64*|ia64*)
13661	# +Z the default
13662	;;
13663      *)
13664	lt_prog_compiler_pic_F77='+Z'
13665	;;
13666      esac
13667      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13668      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13669      ;;
13670
13671    irix5* | irix6* | nonstopux*)
13672      lt_prog_compiler_wl_F77='-Wl,'
13673      # PIC (with -KPIC) is the default.
13674      lt_prog_compiler_static_F77='-non_shared'
13675      ;;
13676
13677    newsos6)
13678      lt_prog_compiler_pic_F77='-KPIC'
13679      lt_prog_compiler_static_F77='-Bstatic'
13680      ;;
13681
13682    linux* | k*bsd*-gnu)
13683      case $cc_basename in
13684      icc* | ecc*)
13685	lt_prog_compiler_wl_F77='-Wl,'
13686	lt_prog_compiler_pic_F77='-KPIC'
13687	lt_prog_compiler_static_F77='-static'
13688        ;;
13689      pgcc* | pgf77* | pgf90* | pgf95*)
13690        # Portland Group compilers (*not* the Pentium gcc compiler,
13691	# which looks to be a dead project)
13692	lt_prog_compiler_wl_F77='-Wl,'
13693	lt_prog_compiler_pic_F77='-fpic'
13694	lt_prog_compiler_static_F77='-Bstatic'
13695        ;;
13696      ccc*)
13697        lt_prog_compiler_wl_F77='-Wl,'
13698        # All Alpha code is PIC.
13699        lt_prog_compiler_static_F77='-non_shared'
13700        ;;
13701      *)
13702        case `$CC -V 2>&1 | sed 5q` in
13703	*Sun\ C*)
13704	  # Sun C 5.9
13705	  lt_prog_compiler_pic_F77='-KPIC'
13706	  lt_prog_compiler_static_F77='-Bstatic'
13707	  lt_prog_compiler_wl_F77='-Wl,'
13708	  ;;
13709	*Sun\ F*)
13710	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
13711	  lt_prog_compiler_pic_F77='-KPIC'
13712	  lt_prog_compiler_static_F77='-Bstatic'
13713	  lt_prog_compiler_wl_F77=''
13714	  ;;
13715	esac
13716	;;
13717      esac
13718      ;;
13719
13720    osf3* | osf4* | osf5*)
13721      lt_prog_compiler_wl_F77='-Wl,'
13722      # All OSF/1 code is PIC.
13723      lt_prog_compiler_static_F77='-non_shared'
13724      ;;
13725
13726    rdos*)
13727      lt_prog_compiler_static_F77='-non_shared'
13728      ;;
13729
13730    solaris*)
13731      lt_prog_compiler_pic_F77='-KPIC'
13732      lt_prog_compiler_static_F77='-Bstatic'
13733      case $cc_basename in
13734      f77* | f90* | f95*)
13735	lt_prog_compiler_wl_F77='-Qoption ld ';;
13736      *)
13737	lt_prog_compiler_wl_F77='-Wl,';;
13738      esac
13739      ;;
13740
13741    sunos4*)
13742      lt_prog_compiler_wl_F77='-Qoption ld '
13743      lt_prog_compiler_pic_F77='-PIC'
13744      lt_prog_compiler_static_F77='-Bstatic'
13745      ;;
13746
13747    sysv4 | sysv4.2uw2* | sysv4.3*)
13748      lt_prog_compiler_wl_F77='-Wl,'
13749      lt_prog_compiler_pic_F77='-KPIC'
13750      lt_prog_compiler_static_F77='-Bstatic'
13751      ;;
13752
13753    sysv4*MP*)
13754      if test -d /usr/nec ;then
13755	lt_prog_compiler_pic_F77='-Kconform_pic'
13756	lt_prog_compiler_static_F77='-Bstatic'
13757      fi
13758      ;;
13759
13760    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13761      lt_prog_compiler_wl_F77='-Wl,'
13762      lt_prog_compiler_pic_F77='-KPIC'
13763      lt_prog_compiler_static_F77='-Bstatic'
13764      ;;
13765
13766    unicos*)
13767      lt_prog_compiler_wl_F77='-Wl,'
13768      lt_prog_compiler_can_build_shared_F77=no
13769      ;;
13770
13771    uts4*)
13772      lt_prog_compiler_pic_F77='-pic'
13773      lt_prog_compiler_static_F77='-Bstatic'
13774      ;;
13775
13776    *)
13777      lt_prog_compiler_can_build_shared_F77=no
13778      ;;
13779    esac
13780  fi
13781
13782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13783$as_echo "$lt_prog_compiler_pic_F77" >&6; }
13784
13785#
13786# Check to make sure the PIC flag actually works.
13787#
13788if test -n "$lt_prog_compiler_pic_F77"; then
13789
13790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13791$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13792if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then :
13793  $as_echo_n "(cached) " >&6
13794else
13795  lt_cv_prog_compiler_pic_works_F77=no
13796  ac_outfile=conftest.$ac_objext
13797   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13798   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13799   # Insert the option either (1) after the last *FLAGS variable, or
13800   # (2) before a word containing "conftest.", or (3) at the end.
13801   # Note that $ac_compile itself does not contain backslashes and begins
13802   # with a dollar sign (not a hyphen), so the echo should work correctly.
13803   # The option is referenced via a variable to avoid confusing sed.
13804   lt_compile=`echo "$ac_compile" | $SED \
13805   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13806   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13807   -e 's:$: $lt_compiler_flag:'`
13808   (eval echo "\"\$as_me:13808: $lt_compile\"" >&5)
13809   (eval "$lt_compile" 2>conftest.err)
13810   ac_status=$?
13811   cat conftest.err >&5
13812   echo "$as_me:13812: \$? = $ac_status" >&5
13813   if (exit $ac_status) && test -s "$ac_outfile"; then
13814     # The compiler can only warn and ignore the option if not recognized
13815     # So say no if there are warnings other than the usual output.
13816     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13817     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13818     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13819       lt_cv_prog_compiler_pic_works_F77=yes
13820     fi
13821   fi
13822   $rm conftest*
13823
13824fi
13825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
13826$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
13827
13828if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
13829    case $lt_prog_compiler_pic_F77 in
13830     "" | " "*) ;;
13831     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13832     esac
13833else
13834    lt_prog_compiler_pic_F77=
13835     lt_prog_compiler_can_build_shared_F77=no
13836fi
13837
13838fi
13839case $host_os in
13840  # For platforms which do not support PIC, -DPIC is meaningless:
13841  *djgpp*)
13842    lt_prog_compiler_pic_F77=
13843    ;;
13844  *)
13845    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13846    ;;
13847esac
13848
13849#
13850# Check to make sure the static flag actually works.
13851#
13852wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13854$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13855if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then :
13856  $as_echo_n "(cached) " >&6
13857else
13858  lt_cv_prog_compiler_static_works_F77=no
13859   save_LDFLAGS="$LDFLAGS"
13860   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13861   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13862   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13863     # The linker can only warn and ignore the option if not recognized
13864     # So say no if there are warnings
13865     if test -s conftest.err; then
13866       # Append any errors to the config.log.
13867       cat conftest.err 1>&5
13868       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13869       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13870       if diff conftest.exp conftest.er2 >/dev/null; then
13871         lt_cv_prog_compiler_static_works_F77=yes
13872       fi
13873     else
13874       lt_cv_prog_compiler_static_works_F77=yes
13875     fi
13876   fi
13877   $rm -r conftest*
13878   LDFLAGS="$save_LDFLAGS"
13879
13880fi
13881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
13882$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
13883
13884if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
13885    :
13886else
13887    lt_prog_compiler_static_F77=
13888fi
13889
13890
13891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13892$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13893if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
13894  $as_echo_n "(cached) " >&6
13895else
13896  lt_cv_prog_compiler_c_o_F77=no
13897   $rm -r conftest 2>/dev/null
13898   mkdir conftest
13899   cd conftest
13900   mkdir out
13901   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13902
13903   lt_compiler_flag="-o out/conftest2.$ac_objext"
13904   # Insert the option either (1) after the last *FLAGS variable, or
13905   # (2) before a word containing "conftest.", or (3) at the end.
13906   # Note that $ac_compile itself does not contain backslashes and begins
13907   # with a dollar sign (not a hyphen), so the echo should work correctly.
13908   lt_compile=`echo "$ac_compile" | $SED \
13909   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13910   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13911   -e 's:$: $lt_compiler_flag:'`
13912   (eval echo "\"\$as_me:13912: $lt_compile\"" >&5)
13913   (eval "$lt_compile" 2>out/conftest.err)
13914   ac_status=$?
13915   cat out/conftest.err >&5
13916   echo "$as_me:13916: \$? = $ac_status" >&5
13917   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13918   then
13919     # The compiler can only warn and ignore the option if not recognized
13920     # So say no if there are warnings
13921     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13922     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13923     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13924       lt_cv_prog_compiler_c_o_F77=yes
13925     fi
13926   fi
13927   chmod u+w . 2>&5
13928   $rm conftest*
13929   # SGI C++ compiler will create directory out/ii_files/ for
13930   # template instantiation
13931   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13932   $rm out/* && rmdir out
13933   cd ..
13934   rmdir conftest
13935   $rm conftest*
13936
13937fi
13938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13939$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13940
13941
13942hard_links="nottested"
13943if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13944  # do not overwrite the value of need_locks provided by the user
13945  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13946$as_echo_n "checking if we can lock with hard links... " >&6; }
13947  hard_links=yes
13948  $rm conftest*
13949  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13950  touch conftest.a
13951  ln conftest.a conftest.b 2>&5 || hard_links=no
13952  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13954$as_echo "$hard_links" >&6; }
13955  if test "$hard_links" = no; then
13956    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13957$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13958    need_locks=warn
13959  fi
13960else
13961  need_locks=no
13962fi
13963
13964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13965$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13966
13967  runpath_var=
13968  allow_undefined_flag_F77=
13969  enable_shared_with_static_runtimes_F77=no
13970  archive_cmds_F77=
13971  archive_expsym_cmds_F77=
13972  old_archive_From_new_cmds_F77=
13973  old_archive_from_expsyms_cmds_F77=
13974  export_dynamic_flag_spec_F77=
13975  whole_archive_flag_spec_F77=
13976  thread_safe_flag_spec_F77=
13977  hardcode_libdir_flag_spec_F77=
13978  hardcode_libdir_flag_spec_ld_F77=
13979  hardcode_libdir_separator_F77=
13980  hardcode_direct_F77=no
13981  hardcode_minus_L_F77=no
13982  hardcode_shlibpath_var_F77=unsupported
13983  link_all_deplibs_F77=unknown
13984  hardcode_automatic_F77=no
13985  module_cmds_F77=
13986  module_expsym_cmds_F77=
13987  always_export_symbols_F77=no
13988  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13989  # include_expsyms should be a list of space-separated symbols to be *always*
13990  # included in the symbol list
13991  include_expsyms_F77=
13992  # exclude_expsyms can be an extended regexp of symbols to exclude
13993  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13994  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13995  # as well as any symbol that contains `d'.
13996  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13997  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13998  # platforms (ab)use it in PIC code, but their linkers get confused if
13999  # the symbol is explicitly referenced.  Since portable code cannot
14000  # rely on this symbol name, it's probably fine to never include it in
14001  # preloaded symbol tables.
14002  # Exclude shared library initialization/finalization symbols.
14003  extract_expsyms_cmds=
14004  # Just being paranoid about ensuring that cc_basename is set.
14005  for cc_temp in $compiler""; do
14006  case $cc_temp in
14007    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14008    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14009    \-*) ;;
14010    *) break;;
14011  esac
14012done
14013cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14014
14015  case $host_os in
14016  cygwin* | mingw* | pw32*)
14017    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14018    # When not using gcc, we currently assume that we are using
14019    # Microsoft Visual C++.
14020    if test "$GCC" != yes; then
14021      with_gnu_ld=no
14022    fi
14023    ;;
14024  interix*)
14025    # we just hope/assume this is gcc and not c89 (= MSVC++)
14026    with_gnu_ld=yes
14027    ;;
14028  openbsd*)
14029    with_gnu_ld=no
14030    ;;
14031  esac
14032
14033  ld_shlibs_F77=yes
14034  if test "$with_gnu_ld" = yes; then
14035    # If archive_cmds runs LD, not CC, wlarc should be empty
14036    wlarc='${wl}'
14037
14038    # Set some defaults for GNU ld with shared library support. These
14039    # are reset later if shared libraries are not supported. Putting them
14040    # here allows them to be overridden if necessary.
14041    runpath_var=LD_RUN_PATH
14042    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14043    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14044    # ancient GNU ld didn't support --whole-archive et. al.
14045    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14046	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14047      else
14048  	whole_archive_flag_spec_F77=
14049    fi
14050    supports_anon_versioning=no
14051    case `$LD -v 2>/dev/null` in
14052      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14053      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14054      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14055      *\ 2.11.*) ;; # other 2.11 versions
14056      *) supports_anon_versioning=yes ;;
14057    esac
14058
14059    # See if GNU ld supports shared libraries.
14060    case $host_os in
14061    aix[3-9]*)
14062      # On AIX/PPC, the GNU linker is very broken
14063      if test "$host_cpu" != ia64; then
14064	ld_shlibs_F77=no
14065	cat <<EOF 1>&2
14066
14067*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14068*** to be unable to reliably create shared libraries on AIX.
14069*** Therefore, libtool is disabling shared libraries support.  If you
14070*** really care for shared libraries, you may want to modify your PATH
14071*** so that a non-GNU linker is found, and then restart.
14072
14073EOF
14074      fi
14075      ;;
14076
14077    amigaos*)
14078      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)'
14079      hardcode_libdir_flag_spec_F77='-L$libdir'
14080      hardcode_minus_L_F77=yes
14081
14082      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14083      # that the semantics of dynamic libraries on AmigaOS, at least up
14084      # to version 4, is to share data among multiple programs linked
14085      # with the same dynamic library.  Since this doesn't match the
14086      # behavior of shared libraries on other platforms, we can't use
14087      # them.
14088      ld_shlibs_F77=no
14089      ;;
14090
14091    beos*)
14092      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14093	allow_undefined_flag_F77=unsupported
14094	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14095	# support --undefined.  This deserves some investigation.  FIXME
14096	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14097      else
14098	ld_shlibs_F77=no
14099      fi
14100      ;;
14101
14102    cygwin* | mingw* | pw32*)
14103      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14104      # as there is no search path for DLLs.
14105      hardcode_libdir_flag_spec_F77='-L$libdir'
14106      allow_undefined_flag_F77=unsupported
14107      always_export_symbols_F77=no
14108      enable_shared_with_static_runtimes_F77=yes
14109      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14110
14111      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14112        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14113	# If the export-symbols file already is a .def file (1st line
14114	# is EXPORTS), use it as is; otherwise, prepend...
14115	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14116	  cp $export_symbols $output_objdir/$soname.def;
14117	else
14118	  echo EXPORTS > $output_objdir/$soname.def;
14119	  cat $export_symbols >> $output_objdir/$soname.def;
14120	fi~
14121	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14122      else
14123	ld_shlibs_F77=no
14124      fi
14125      ;;
14126
14127    interix[3-9]*)
14128      hardcode_direct_F77=no
14129      hardcode_shlibpath_var_F77=no
14130      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14131      export_dynamic_flag_spec_F77='${wl}-E'
14132      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14133      # Instead, shared libraries are loaded at an image base (0x10000000 by
14134      # default) and relocated if they conflict, which is a slow very memory
14135      # consuming and fragmenting process.  To avoid this, we pick a random,
14136      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14137      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14138      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'
14139      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'
14140      ;;
14141
14142    gnu* | linux* | k*bsd*-gnu)
14143      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14144	tmp_addflag=
14145	case $cc_basename,$host_cpu in
14146	pgcc*)				# Portland Group C compiler
14147	  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'
14148	  tmp_addflag=' $pic_flag'
14149	  ;;
14150	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14151	  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'
14152	  tmp_addflag=' $pic_flag -Mnomain' ;;
14153	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14154	  tmp_addflag=' -i_dynamic' ;;
14155	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14156	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14157	ifc* | ifort*)			# Intel Fortran compiler
14158	  tmp_addflag=' -nofor_main' ;;
14159	esac
14160	case `$CC -V 2>&1 | sed 5q` in
14161	*Sun\ C*)			# Sun C 5.9
14162	  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'
14163	  tmp_sharedflag='-G' ;;
14164	*Sun\ F*)			# Sun Fortran 8.3
14165	  tmp_sharedflag='-G' ;;
14166	*)
14167	  tmp_sharedflag='-shared' ;;
14168	esac
14169	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14170
14171	if test $supports_anon_versioning = yes; then
14172	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14173  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14174  $echo "local: *; };" >> $output_objdir/$libname.ver~
14175	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14176	fi
14177      else
14178	ld_shlibs_F77=no
14179      fi
14180      ;;
14181
14182    netbsd*)
14183      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14184	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14185	wlarc=
14186      else
14187	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14188	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14189      fi
14190      ;;
14191
14192    solaris*)
14193      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14194	ld_shlibs_F77=no
14195	cat <<EOF 1>&2
14196
14197*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14198*** create shared libraries on Solaris systems.  Therefore, libtool
14199*** is disabling shared libraries support.  We urge you to upgrade GNU
14200*** binutils to release 2.9.1 or newer.  Another option is to modify
14201*** your PATH or compiler configuration so that the native linker is
14202*** used, and then restart.
14203
14204EOF
14205      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14206	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14207	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14208      else
14209	ld_shlibs_F77=no
14210      fi
14211      ;;
14212
14213    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14214      case `$LD -v 2>&1` in
14215        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14216	ld_shlibs_F77=no
14217	cat <<_LT_EOF 1>&2
14218
14219*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14220*** reliably create shared libraries on SCO systems.  Therefore, libtool
14221*** is disabling shared libraries support.  We urge you to upgrade GNU
14222*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14223*** your PATH or compiler configuration so that the native linker is
14224*** used, and then restart.
14225
14226_LT_EOF
14227	;;
14228	*)
14229	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14230	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14231	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14232	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14233	  else
14234	    ld_shlibs_F77=no
14235	  fi
14236	;;
14237      esac
14238      ;;
14239
14240    sunos4*)
14241      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14242      wlarc=
14243      hardcode_direct_F77=yes
14244      hardcode_shlibpath_var_F77=no
14245      ;;
14246
14247    *)
14248      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14249	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14250	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14251      else
14252	ld_shlibs_F77=no
14253      fi
14254      ;;
14255    esac
14256
14257    if test "$ld_shlibs_F77" = no; then
14258      runpath_var=
14259      hardcode_libdir_flag_spec_F77=
14260      export_dynamic_flag_spec_F77=
14261      whole_archive_flag_spec_F77=
14262    fi
14263  else
14264    # PORTME fill in a description of your system's linker (not GNU ld)
14265    case $host_os in
14266    aix3*)
14267      allow_undefined_flag_F77=unsupported
14268      always_export_symbols_F77=yes
14269      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'
14270      # Note: this linker hardcodes the directories in LIBPATH if there
14271      # are no directories specified by -L.
14272      hardcode_minus_L_F77=yes
14273      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14274	# Neither direct hardcoding nor static linking is supported with a
14275	# broken collect2.
14276	hardcode_direct_F77=unsupported
14277      fi
14278      ;;
14279
14280    aix[4-9]*)
14281      if test "$host_cpu" = ia64; then
14282	# On IA64, the linker does run time linking by default, so we don't
14283	# have to do anything special.
14284	aix_use_runtimelinking=no
14285	exp_sym_flag='-Bexport'
14286	no_entry_flag=""
14287      else
14288	# If we're using GNU nm, then we don't want the "-C" option.
14289	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14290	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14291	  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'
14292	else
14293	  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'
14294	fi
14295	aix_use_runtimelinking=no
14296
14297	# Test if we are trying to use run time linking or normal
14298	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14299	# need to do runtime linking.
14300	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14301	  for ld_flag in $LDFLAGS; do
14302  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14303  	    aix_use_runtimelinking=yes
14304  	    break
14305  	  fi
14306	  done
14307	  ;;
14308	esac
14309
14310	exp_sym_flag='-bexport'
14311	no_entry_flag='-bnoentry'
14312      fi
14313
14314      # When large executables or shared objects are built, AIX ld can
14315      # have problems creating the table of contents.  If linking a library
14316      # or program results in "error TOC overflow" add -mminimal-toc to
14317      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14318      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14319
14320      archive_cmds_F77=''
14321      hardcode_direct_F77=yes
14322      hardcode_libdir_separator_F77=':'
14323      link_all_deplibs_F77=yes
14324
14325      if test "$GCC" = yes; then
14326	case $host_os in aix4.[012]|aix4.[012].*)
14327	# We only want to do this on AIX 4.2 and lower, the check
14328	# below for broken collect2 doesn't work under 4.3+
14329	  collect2name=`${CC} -print-prog-name=collect2`
14330	  if test -f "$collect2name" && \
14331  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14332	  then
14333  	  # We have reworked collect2
14334  	  :
14335	  else
14336  	  # We have old collect2
14337  	  hardcode_direct_F77=unsupported
14338  	  # It fails to find uninstalled libraries when the uninstalled
14339  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14340  	  # to unsupported forces relinking
14341  	  hardcode_minus_L_F77=yes
14342  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14343  	  hardcode_libdir_separator_F77=
14344	  fi
14345	  ;;
14346	esac
14347	shared_flag='-shared'
14348	if test "$aix_use_runtimelinking" = yes; then
14349	  shared_flag="$shared_flag "'${wl}-G'
14350	fi
14351      else
14352	# not using gcc
14353	if test "$host_cpu" = ia64; then
14354  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14355  	# chokes on -Wl,-G. The following line is correct:
14356	  shared_flag='-G'
14357	else
14358	  if test "$aix_use_runtimelinking" = yes; then
14359	    shared_flag='${wl}-G'
14360	  else
14361	    shared_flag='${wl}-bM:SRE'
14362	  fi
14363	fi
14364      fi
14365
14366      # It seems that -bexpall does not export symbols beginning with
14367      # underscore (_), so it is better to generate a list of symbols to export.
14368      always_export_symbols_F77=yes
14369      if test "$aix_use_runtimelinking" = yes; then
14370	# Warning - without using the other runtime loading flags (-brtl),
14371	# -berok will link without error, but may produce a broken library.
14372	allow_undefined_flag_F77='-berok'
14373       # Determine the default libpath from the value encoded in an empty executable.
14374       cat > conftest.$ac_ext <<_ACEOF
14375      program main
14376
14377      end
14378_ACEOF
14379if ac_fn_f77_try_link "$LINENO"; then :
14380
14381lt_aix_libpath_sed='
14382    /Import File Strings/,/^$/ {
14383	/^0/ {
14384	    s/^0  *\(.*\)$/\1/
14385	    p
14386	}
14387    }'
14388aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14389# Check for a 64-bit object if we didn't find anything.
14390if test -z "$aix_libpath"; then
14391  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14392fi
14393fi
14394rm -f core conftest.err conftest.$ac_objext \
14395    conftest$ac_exeext conftest.$ac_ext
14396if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14397
14398       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14399	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"
14400       else
14401	if test "$host_cpu" = ia64; then
14402	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14403	  allow_undefined_flag_F77="-z nodefs"
14404	  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"
14405	else
14406	 # Determine the default libpath from the value encoded in an empty executable.
14407	 cat > conftest.$ac_ext <<_ACEOF
14408      program main
14409
14410      end
14411_ACEOF
14412if ac_fn_f77_try_link "$LINENO"; then :
14413
14414lt_aix_libpath_sed='
14415    /Import File Strings/,/^$/ {
14416	/^0/ {
14417	    s/^0  *\(.*\)$/\1/
14418	    p
14419	}
14420    }'
14421aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14422# Check for a 64-bit object if we didn't find anything.
14423if test -z "$aix_libpath"; then
14424  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14425fi
14426fi
14427rm -f core conftest.err conftest.$ac_objext \
14428    conftest$ac_exeext conftest.$ac_ext
14429if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14430
14431	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14432	  # Warning - without using the other run time loading flags,
14433	  # -berok will link without error, but may produce a broken library.
14434	  no_undefined_flag_F77=' ${wl}-bernotok'
14435	  allow_undefined_flag_F77=' ${wl}-berok'
14436	  # Exported symbols can be pulled into shared objects from archives
14437	  whole_archive_flag_spec_F77='$convenience'
14438	  archive_cmds_need_lc_F77=yes
14439	  # This is similar to how AIX traditionally builds its shared libraries.
14440	  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'
14441	fi
14442      fi
14443      ;;
14444
14445    amigaos*)
14446      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)'
14447      hardcode_libdir_flag_spec_F77='-L$libdir'
14448      hardcode_minus_L_F77=yes
14449      # see comment about different semantics on the GNU ld section
14450      ld_shlibs_F77=no
14451      ;;
14452
14453    bsdi[45]*)
14454      export_dynamic_flag_spec_F77=-rdynamic
14455      ;;
14456
14457    cygwin* | mingw* | pw32*)
14458      # When not using gcc, we currently assume that we are using
14459      # Microsoft Visual C++.
14460      # hardcode_libdir_flag_spec is actually meaningless, as there is
14461      # no search path for DLLs.
14462      hardcode_libdir_flag_spec_F77=' '
14463      allow_undefined_flag_F77=unsupported
14464      # Tell ltmain to make .lib files, not .a files.
14465      libext=lib
14466      # Tell ltmain to make .dll files, not .so files.
14467      shrext_cmds=".dll"
14468      # FIXME: Setting linknames here is a bad hack.
14469      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14470      # The linker will automatically build a .lib file if we build a DLL.
14471      old_archive_From_new_cmds_F77='true'
14472      # FIXME: Should let the user specify the lib program.
14473      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14474      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14475      enable_shared_with_static_runtimes_F77=yes
14476      ;;
14477
14478    darwin* | rhapsody*)
14479      case $host_os in
14480        rhapsody* | darwin1.[012])
14481         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14482         ;;
14483       *) # Darwin 1.3 on
14484         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14485           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14486         else
14487           case ${MACOSX_DEPLOYMENT_TARGET} in
14488             10.[012])
14489               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14490               ;;
14491             10.*)
14492               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14493               ;;
14494           esac
14495         fi
14496         ;;
14497      esac
14498      archive_cmds_need_lc_F77=no
14499      hardcode_direct_F77=no
14500      hardcode_automatic_F77=yes
14501      hardcode_shlibpath_var_F77=unsupported
14502      whole_archive_flag_spec_F77=''
14503      link_all_deplibs_F77=yes
14504    if test "$GCC" = yes ; then
14505    	output_verbose_link_cmd='echo'
14506        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}"
14507        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14508        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}"
14509        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}"
14510    else
14511      case $cc_basename in
14512        xlc*)
14513         output_verbose_link_cmd='echo'
14514         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14515         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14516          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14517         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}'
14518          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}'
14519          ;;
14520       *)
14521         ld_shlibs_F77=no
14522          ;;
14523      esac
14524    fi
14525      ;;
14526
14527    dgux*)
14528      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14529      hardcode_libdir_flag_spec_F77='-L$libdir'
14530      hardcode_shlibpath_var_F77=no
14531      ;;
14532
14533    freebsd1*)
14534      ld_shlibs_F77=no
14535      ;;
14536
14537    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14538    # support.  Future versions do this automatically, but an explicit c++rt0.o
14539    # does not break anything, and helps significantly (at the cost of a little
14540    # extra space).
14541    freebsd2.2*)
14542      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14543      hardcode_libdir_flag_spec_F77='-R$libdir'
14544      hardcode_direct_F77=yes
14545      hardcode_shlibpath_var_F77=no
14546      ;;
14547
14548    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14549    freebsd2*)
14550      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14551      hardcode_direct_F77=yes
14552      hardcode_minus_L_F77=yes
14553      hardcode_shlibpath_var_F77=no
14554      ;;
14555
14556    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14557    freebsd* | dragonfly*)
14558      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14559      hardcode_libdir_flag_spec_F77='-R$libdir'
14560      hardcode_direct_F77=yes
14561      hardcode_shlibpath_var_F77=no
14562      ;;
14563
14564    hpux9*)
14565      if test "$GCC" = yes; then
14566	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'
14567      else
14568	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'
14569      fi
14570      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14571      hardcode_libdir_separator_F77=:
14572      hardcode_direct_F77=yes
14573
14574      # hardcode_minus_L: Not really in the search PATH,
14575      # but as the default location of the library.
14576      hardcode_minus_L_F77=yes
14577      export_dynamic_flag_spec_F77='${wl}-E'
14578      ;;
14579
14580    hpux10*)
14581      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14582	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14583      else
14584	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14585      fi
14586      if test "$with_gnu_ld" = no; then
14587	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14588	hardcode_libdir_separator_F77=:
14589
14590	hardcode_direct_F77=yes
14591	export_dynamic_flag_spec_F77='${wl}-E'
14592
14593	# hardcode_minus_L: Not really in the search PATH,
14594	# but as the default location of the library.
14595	hardcode_minus_L_F77=yes
14596      fi
14597      ;;
14598
14599    hpux11*)
14600      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14601	case $host_cpu in
14602	hppa*64*)
14603	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14604	  ;;
14605	ia64*)
14606	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14607	  ;;
14608	*)
14609	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14610	  ;;
14611	esac
14612      else
14613	case $host_cpu in
14614	hppa*64*)
14615	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14616	  ;;
14617	ia64*)
14618	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14619	  ;;
14620	*)
14621	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14622	  ;;
14623	esac
14624      fi
14625      if test "$with_gnu_ld" = no; then
14626	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14627	hardcode_libdir_separator_F77=:
14628
14629	case $host_cpu in
14630	hppa*64*|ia64*)
14631	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14632	  hardcode_direct_F77=no
14633	  hardcode_shlibpath_var_F77=no
14634	  ;;
14635	*)
14636	  hardcode_direct_F77=yes
14637	  export_dynamic_flag_spec_F77='${wl}-E'
14638
14639	  # hardcode_minus_L: Not really in the search PATH,
14640	  # but as the default location of the library.
14641	  hardcode_minus_L_F77=yes
14642	  ;;
14643	esac
14644      fi
14645      ;;
14646
14647    irix5* | irix6* | nonstopux*)
14648      if test "$GCC" = yes; then
14649	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'
14650      else
14651	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'
14652	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14653      fi
14654      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14655      hardcode_libdir_separator_F77=:
14656      link_all_deplibs_F77=yes
14657      ;;
14658
14659    netbsd*)
14660      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14661	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14662      else
14663	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14664      fi
14665      hardcode_libdir_flag_spec_F77='-R$libdir'
14666      hardcode_direct_F77=yes
14667      hardcode_shlibpath_var_F77=no
14668      ;;
14669
14670    newsos6)
14671      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14672      hardcode_direct_F77=yes
14673      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14674      hardcode_libdir_separator_F77=:
14675      hardcode_shlibpath_var_F77=no
14676      ;;
14677
14678    openbsd*)
14679      if test -f /usr/libexec/ld.so; then
14680	hardcode_direct_F77=yes
14681	hardcode_shlibpath_var_F77=no
14682	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14683	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14684	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14685	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14686	  export_dynamic_flag_spec_F77='${wl}-E'
14687	else
14688	  case $host_os in
14689	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14690	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14691	     hardcode_libdir_flag_spec_F77='-R$libdir'
14692	     ;;
14693	   *)
14694	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14695	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14696	     ;;
14697	  esac
14698        fi
14699      else
14700	ld_shlibs_F77=no
14701      fi
14702      ;;
14703
14704    os2*)
14705      hardcode_libdir_flag_spec_F77='-L$libdir'
14706      hardcode_minus_L_F77=yes
14707      allow_undefined_flag_F77=unsupported
14708      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'
14709      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14710      ;;
14711
14712    osf3*)
14713      if test "$GCC" = yes; then
14714	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14715	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'
14716      else
14717	allow_undefined_flag_F77=' -expect_unresolved \*'
14718	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'
14719      fi
14720      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14721      hardcode_libdir_separator_F77=:
14722      ;;
14723
14724    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14725      if test "$GCC" = yes; then
14726	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14727	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'
14728	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14729      else
14730	allow_undefined_flag_F77=' -expect_unresolved \*'
14731	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'
14732	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~
14733	$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'
14734
14735	# Both c and cxx compiler support -rpath directly
14736	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14737      fi
14738      hardcode_libdir_separator_F77=:
14739      ;;
14740
14741    solaris*)
14742      no_undefined_flag_F77=' -z text'
14743      if test "$GCC" = yes; then
14744	wlarc='${wl}'
14745	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14746	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14747	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14748      else
14749	wlarc=''
14750	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14751	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14752  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14753      fi
14754      hardcode_libdir_flag_spec_F77='-R$libdir'
14755      hardcode_shlibpath_var_F77=no
14756      case $host_os in
14757      solaris2.[0-5] | solaris2.[0-5].*) ;;
14758      *)
14759	# The compiler driver will combine and reorder linker options,
14760	# but understands `-z linker_flag'.  GCC discards it without `$wl',
14761	# but is careful enough not to reorder.
14762 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14763	if test "$GCC" = yes; then
14764	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14765	else
14766	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14767	fi
14768	;;
14769      esac
14770      link_all_deplibs_F77=yes
14771      ;;
14772
14773    sunos4*)
14774      if test "x$host_vendor" = xsequent; then
14775	# Use $CC to link under sequent, because it throws in some extra .o
14776	# files that make .init and .fini sections work.
14777	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14778      else
14779	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14780      fi
14781      hardcode_libdir_flag_spec_F77='-L$libdir'
14782      hardcode_direct_F77=yes
14783      hardcode_minus_L_F77=yes
14784      hardcode_shlibpath_var_F77=no
14785      ;;
14786
14787    sysv4)
14788      case $host_vendor in
14789	sni)
14790	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14791	  hardcode_direct_F77=yes # is this really true???
14792	;;
14793	siemens)
14794	  ## LD is ld it makes a PLAMLIB
14795	  ## CC just makes a GrossModule.
14796	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14797	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14798	  hardcode_direct_F77=no
14799        ;;
14800	motorola)
14801	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14802	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14803	;;
14804      esac
14805      runpath_var='LD_RUN_PATH'
14806      hardcode_shlibpath_var_F77=no
14807      ;;
14808
14809    sysv4.3*)
14810      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14811      hardcode_shlibpath_var_F77=no
14812      export_dynamic_flag_spec_F77='-Bexport'
14813      ;;
14814
14815    sysv4*MP*)
14816      if test -d /usr/nec; then
14817	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14818	hardcode_shlibpath_var_F77=no
14819	runpath_var=LD_RUN_PATH
14820	hardcode_runpath_var=yes
14821	ld_shlibs_F77=yes
14822      fi
14823      ;;
14824
14825    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14826      no_undefined_flag_F77='${wl}-z,text'
14827      archive_cmds_need_lc_F77=no
14828      hardcode_shlibpath_var_F77=no
14829      runpath_var='LD_RUN_PATH'
14830
14831      if test "$GCC" = yes; then
14832	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14833	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14834      else
14835	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14836	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14837      fi
14838      ;;
14839
14840    sysv5* | sco3.2v5* | sco5v6*)
14841      # Note: We can NOT use -z defs as we might desire, because we do not
14842      # link with -lc, and that would cause any symbols used from libc to
14843      # always be unresolved, which means just about no library would
14844      # ever link correctly.  If we're not using GNU ld we use -z text
14845      # though, which does catch some bad symbols but isn't as heavy-handed
14846      # as -z defs.
14847      no_undefined_flag_F77='${wl}-z,text'
14848      allow_undefined_flag_F77='${wl}-z,nodefs'
14849      archive_cmds_need_lc_F77=no
14850      hardcode_shlibpath_var_F77=no
14851      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14852      hardcode_libdir_separator_F77=':'
14853      link_all_deplibs_F77=yes
14854      export_dynamic_flag_spec_F77='${wl}-Bexport'
14855      runpath_var='LD_RUN_PATH'
14856
14857      if test "$GCC" = yes; then
14858	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14859	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14860      else
14861	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14862	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14863      fi
14864      ;;
14865
14866    uts4*)
14867      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14868      hardcode_libdir_flag_spec_F77='-L$libdir'
14869      hardcode_shlibpath_var_F77=no
14870      ;;
14871
14872    *)
14873      ld_shlibs_F77=no
14874      ;;
14875    esac
14876  fi
14877
14878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14879$as_echo "$ld_shlibs_F77" >&6; }
14880test "$ld_shlibs_F77" = no && can_build_shared=no
14881
14882#
14883# Do we need to explicitly link libc?
14884#
14885case "x$archive_cmds_need_lc_F77" in
14886x|xyes)
14887  # Assume -lc should be added
14888  archive_cmds_need_lc_F77=yes
14889
14890  if test "$enable_shared" = yes && test "$GCC" = yes; then
14891    case $archive_cmds_F77 in
14892    *'~'*)
14893      # FIXME: we may have to deal with multi-command sequences.
14894      ;;
14895    '$CC '*)
14896      # Test whether the compiler implicitly links with -lc since on some
14897      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14898      # to ld, don't add -lc before -lgcc.
14899      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14900$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14901      $rm conftest*
14902      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14903
14904      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14905  (eval $ac_compile) 2>&5
14906  ac_status=$?
14907  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14908  test $ac_status = 0; } 2>conftest.err; then
14909        soname=conftest
14910        lib=conftest
14911        libobjs=conftest.$ac_objext
14912        deplibs=
14913        wl=$lt_prog_compiler_wl_F77
14914	pic_flag=$lt_prog_compiler_pic_F77
14915        compiler_flags=-v
14916        linker_flags=-v
14917        verstring=
14918        output_objdir=.
14919        libname=conftest
14920        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14921        allow_undefined_flag_F77=
14922        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14923  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14924  ac_status=$?
14925  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14926  test $ac_status = 0; }
14927        then
14928	  archive_cmds_need_lc_F77=no
14929        else
14930	  archive_cmds_need_lc_F77=yes
14931        fi
14932        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14933      else
14934        cat conftest.err 1>&5
14935      fi
14936      $rm conftest*
14937      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
14938$as_echo "$archive_cmds_need_lc_F77" >&6; }
14939      ;;
14940    esac
14941  fi
14942  ;;
14943esac
14944
14945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14946$as_echo_n "checking dynamic linker characteristics... " >&6; }
14947library_names_spec=
14948libname_spec='lib$name'
14949soname_spec=
14950shrext_cmds=".so"
14951postinstall_cmds=
14952postuninstall_cmds=
14953finish_cmds=
14954finish_eval=
14955shlibpath_var=
14956shlibpath_overrides_runpath=unknown
14957version_type=none
14958dynamic_linker="$host_os ld.so"
14959sys_lib_dlsearch_path_spec="/lib /usr/lib"
14960
14961need_lib_prefix=unknown
14962hardcode_into_libs=no
14963
14964# when you set need_version to no, make sure it does not cause -set_version
14965# flags to be left without arguments
14966need_version=unknown
14967
14968case $host_os in
14969aix3*)
14970  version_type=linux
14971  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14972  shlibpath_var=LIBPATH
14973
14974  # AIX 3 has no versioning support, so we append a major version to the name.
14975  soname_spec='${libname}${release}${shared_ext}$major'
14976  ;;
14977
14978aix[4-9]*)
14979  version_type=linux
14980  need_lib_prefix=no
14981  need_version=no
14982  hardcode_into_libs=yes
14983  if test "$host_cpu" = ia64; then
14984    # AIX 5 supports IA64
14985    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14986    shlibpath_var=LD_LIBRARY_PATH
14987  else
14988    # With GCC up to 2.95.x, collect2 would create an import file
14989    # for dependence libraries.  The import file would start with
14990    # the line `#! .'.  This would cause the generated library to
14991    # depend on `.', always an invalid library.  This was fixed in
14992    # development snapshots of GCC prior to 3.0.
14993    case $host_os in
14994      aix4 | aix4.[01] | aix4.[01].*)
14995      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14996	   echo ' yes '
14997	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14998	:
14999      else
15000	can_build_shared=no
15001      fi
15002      ;;
15003    esac
15004    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15005    # soname into executable. Probably we can add versioning support to
15006    # collect2, so additional links can be useful in future.
15007    if test "$aix_use_runtimelinking" = yes; then
15008      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15009      # instead of lib<name>.a to let people know that these are not
15010      # typical AIX shared libraries.
15011      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15012    else
15013      # We preserve .a as extension for shared libraries through AIX4.2
15014      # and later when we are not doing run time linking.
15015      library_names_spec='${libname}${release}.a $libname.a'
15016      soname_spec='${libname}${release}${shared_ext}$major'
15017    fi
15018    shlibpath_var=LIBPATH
15019  fi
15020  ;;
15021
15022amigaos*)
15023  library_names_spec='$libname.ixlibrary $libname.a'
15024  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15025  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'
15026  ;;
15027
15028beos*)
15029  library_names_spec='${libname}${shared_ext}'
15030  dynamic_linker="$host_os ld.so"
15031  shlibpath_var=LIBRARY_PATH
15032  ;;
15033
15034bsdi[45]*)
15035  version_type=linux
15036  need_version=no
15037  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15038  soname_spec='${libname}${release}${shared_ext}$major'
15039  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15040  shlibpath_var=LD_LIBRARY_PATH
15041  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15042  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15043  # the default ld.so.conf also contains /usr/contrib/lib and
15044  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15045  # libtool to hard-code these into programs
15046  ;;
15047
15048cygwin* | mingw* | pw32*)
15049  version_type=windows
15050  shrext_cmds=".dll"
15051  need_version=no
15052  need_lib_prefix=no
15053
15054  case $GCC,$host_os in
15055  yes,cygwin* | yes,mingw* | yes,pw32*)
15056    library_names_spec='$libname.dll.a'
15057    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15058    postinstall_cmds='base_file=`basename \${file}`~
15059      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15060      dldir=$destdir/`dirname \$dlpath`~
15061      test -d \$dldir || mkdir -p \$dldir~
15062      $install_prog $dir/$dlname \$dldir/$dlname~
15063      chmod a+x \$dldir/$dlname'
15064    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15065      dlpath=$dir/\$dldll~
15066       $rm \$dlpath'
15067    shlibpath_overrides_runpath=yes
15068
15069    case $host_os in
15070    cygwin*)
15071      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15072      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15073      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15074      ;;
15075    mingw*)
15076      # MinGW DLLs use traditional 'lib' prefix
15077      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15078      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15079      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15080        # It is most probably a Windows format PATH printed by
15081        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15082        # path with ; separators, and with drive letters. We can handle the
15083        # drive letters (cygwin fileutils understands them), so leave them,
15084        # especially as we might pass files found there to a mingw objdump,
15085        # which wouldn't understand a cygwinified path. Ahh.
15086        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15087      else
15088        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15089      fi
15090      ;;
15091    pw32*)
15092      # pw32 DLLs use 'pw' prefix rather than 'lib'
15093      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15094      ;;
15095    esac
15096    ;;
15097
15098  *)
15099    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15100    ;;
15101  esac
15102  dynamic_linker='Win32 ld.exe'
15103  # FIXME: first we should search . and the directory the executable is in
15104  shlibpath_var=PATH
15105  ;;
15106
15107darwin* | rhapsody*)
15108  dynamic_linker="$host_os dyld"
15109  version_type=darwin
15110  need_lib_prefix=no
15111  need_version=no
15112  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15113  soname_spec='${libname}${release}${major}$shared_ext'
15114  shlibpath_overrides_runpath=yes
15115  shlibpath_var=DYLD_LIBRARY_PATH
15116  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15117
15118  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15119  ;;
15120
15121dgux*)
15122  version_type=linux
15123  need_lib_prefix=no
15124  need_version=no
15125  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15126  soname_spec='${libname}${release}${shared_ext}$major'
15127  shlibpath_var=LD_LIBRARY_PATH
15128  ;;
15129
15130freebsd1*)
15131  dynamic_linker=no
15132  ;;
15133
15134freebsd* | dragonfly*)
15135  # DragonFly does not have aout.  When/if they implement a new
15136  # versioning mechanism, adjust this.
15137  if test -x /usr/bin/objformat; then
15138    objformat=`/usr/bin/objformat`
15139  else
15140    case $host_os in
15141    freebsd[123]*) objformat=aout ;;
15142    *) objformat=elf ;;
15143    esac
15144  fi
15145  version_type=freebsd-$objformat
15146  case $version_type in
15147    freebsd-elf*)
15148      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15149      need_version=no
15150      need_lib_prefix=no
15151      ;;
15152    freebsd-*)
15153      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15154      need_version=yes
15155      ;;
15156  esac
15157  shlibpath_var=LD_LIBRARY_PATH
15158  case $host_os in
15159  freebsd2*)
15160    shlibpath_overrides_runpath=yes
15161    ;;
15162  freebsd3.[01]* | freebsdelf3.[01]*)
15163    shlibpath_overrides_runpath=yes
15164    hardcode_into_libs=yes
15165    ;;
15166  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15167  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15168    shlibpath_overrides_runpath=no
15169    hardcode_into_libs=yes
15170    ;;
15171  *) # from 4.6 on, and DragonFly
15172    shlibpath_overrides_runpath=yes
15173    hardcode_into_libs=yes
15174    ;;
15175  esac
15176  ;;
15177
15178gnu*)
15179  version_type=linux
15180  need_lib_prefix=no
15181  need_version=no
15182  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15183  soname_spec='${libname}${release}${shared_ext}$major'
15184  shlibpath_var=LD_LIBRARY_PATH
15185  hardcode_into_libs=yes
15186  ;;
15187
15188hpux9* | hpux10* | hpux11*)
15189  # Give a soname corresponding to the major version so that dld.sl refuses to
15190  # link against other versions.
15191  version_type=sunos
15192  need_lib_prefix=no
15193  need_version=no
15194  case $host_cpu in
15195  ia64*)
15196    shrext_cmds='.so'
15197    hardcode_into_libs=yes
15198    dynamic_linker="$host_os dld.so"
15199    shlibpath_var=LD_LIBRARY_PATH
15200    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15201    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15202    soname_spec='${libname}${release}${shared_ext}$major'
15203    if test "X$HPUX_IA64_MODE" = X32; then
15204      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15205    else
15206      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15207    fi
15208    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15209    ;;
15210   hppa*64*)
15211     shrext_cmds='.sl'
15212     hardcode_into_libs=yes
15213     dynamic_linker="$host_os dld.sl"
15214     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15215     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15216     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15217     soname_spec='${libname}${release}${shared_ext}$major'
15218     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15219     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15220     ;;
15221   *)
15222    shrext_cmds='.sl'
15223    dynamic_linker="$host_os dld.sl"
15224    shlibpath_var=SHLIB_PATH
15225    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15226    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15227    soname_spec='${libname}${release}${shared_ext}$major'
15228    ;;
15229  esac
15230  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15231  postinstall_cmds='chmod 555 $lib'
15232  ;;
15233
15234interix[3-9]*)
15235  version_type=linux
15236  need_lib_prefix=no
15237  need_version=no
15238  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15239  soname_spec='${libname}${release}${shared_ext}$major'
15240  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15241  shlibpath_var=LD_LIBRARY_PATH
15242  shlibpath_overrides_runpath=no
15243  hardcode_into_libs=yes
15244  ;;
15245
15246irix5* | irix6* | nonstopux*)
15247  case $host_os in
15248    nonstopux*) version_type=nonstopux ;;
15249    *)
15250	if test "$lt_cv_prog_gnu_ld" = yes; then
15251		version_type=linux
15252	else
15253		version_type=irix
15254	fi ;;
15255  esac
15256  need_lib_prefix=no
15257  need_version=no
15258  soname_spec='${libname}${release}${shared_ext}$major'
15259  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15260  case $host_os in
15261  irix5* | nonstopux*)
15262    libsuff= shlibsuff=
15263    ;;
15264  *)
15265    case $LD in # libtool.m4 will add one of these switches to LD
15266    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15267      libsuff= shlibsuff= libmagic=32-bit;;
15268    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15269      libsuff=32 shlibsuff=N32 libmagic=N32;;
15270    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15271      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15272    *) libsuff= shlibsuff= libmagic=never-match;;
15273    esac
15274    ;;
15275  esac
15276  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15277  shlibpath_overrides_runpath=no
15278  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15279  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15280  hardcode_into_libs=yes
15281  ;;
15282
15283# No shared lib support for Linux oldld, aout, or coff.
15284linux*oldld* | linux*aout* | linux*coff*)
15285  dynamic_linker=no
15286  ;;
15287
15288# This must be Linux ELF.
15289linux* | k*bsd*-gnu)
15290  version_type=linux
15291  need_lib_prefix=no
15292  need_version=no
15293  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15294  soname_spec='${libname}${release}${shared_ext}$major'
15295  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15296  shlibpath_var=LD_LIBRARY_PATH
15297  shlibpath_overrides_runpath=no
15298  # This implies no fast_install, which is unacceptable.
15299  # Some rework will be needed to allow for fast_install
15300  # before this can be enabled.
15301  hardcode_into_libs=yes
15302
15303  # Append ld.so.conf contents to the search path
15304  if test -f /etc/ld.so.conf; then
15305    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' ' '`
15306    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15307  fi
15308
15309  # We used to test for /lib/ld.so.1 and disable shared libraries on
15310  # powerpc, because MkLinux only supported shared libraries with the
15311  # GNU dynamic linker.  Since this was broken with cross compilers,
15312  # most powerpc-linux boxes support dynamic linking these days and
15313  # people can always --disable-shared, the test was removed, and we
15314  # assume the GNU/Linux dynamic linker is in use.
15315  dynamic_linker='GNU/Linux ld.so'
15316  ;;
15317
15318netbsd*)
15319  version_type=sunos
15320  need_lib_prefix=no
15321  need_version=no
15322  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15323    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15324    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15325    dynamic_linker='NetBSD (a.out) ld.so'
15326  else
15327    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15328    soname_spec='${libname}${release}${shared_ext}$major'
15329    dynamic_linker='NetBSD ld.elf_so'
15330  fi
15331  shlibpath_var=LD_LIBRARY_PATH
15332  shlibpath_overrides_runpath=yes
15333  hardcode_into_libs=yes
15334  ;;
15335
15336newsos6)
15337  version_type=linux
15338  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15339  shlibpath_var=LD_LIBRARY_PATH
15340  shlibpath_overrides_runpath=yes
15341  ;;
15342
15343nto-qnx*)
15344  version_type=linux
15345  need_lib_prefix=no
15346  need_version=no
15347  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15348  soname_spec='${libname}${release}${shared_ext}$major'
15349  shlibpath_var=LD_LIBRARY_PATH
15350  shlibpath_overrides_runpath=yes
15351  ;;
15352
15353openbsd*)
15354  version_type=sunos
15355  sys_lib_dlsearch_path_spec="/usr/lib"
15356  need_lib_prefix=no
15357  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15358  case $host_os in
15359    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15360    *)                         need_version=no  ;;
15361  esac
15362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15363  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15364  shlibpath_var=LD_LIBRARY_PATH
15365  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15366    case $host_os in
15367      openbsd2.[89] | openbsd2.[89].*)
15368	shlibpath_overrides_runpath=no
15369	;;
15370      *)
15371	shlibpath_overrides_runpath=yes
15372	;;
15373      esac
15374  else
15375    shlibpath_overrides_runpath=yes
15376  fi
15377  ;;
15378
15379os2*)
15380  libname_spec='$name'
15381  shrext_cmds=".dll"
15382  need_lib_prefix=no
15383  library_names_spec='$libname${shared_ext} $libname.a'
15384  dynamic_linker='OS/2 ld.exe'
15385  shlibpath_var=LIBPATH
15386  ;;
15387
15388osf3* | osf4* | osf5*)
15389  version_type=osf
15390  need_lib_prefix=no
15391  need_version=no
15392  soname_spec='${libname}${release}${shared_ext}$major'
15393  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15394  shlibpath_var=LD_LIBRARY_PATH
15395  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15396  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15397  ;;
15398
15399rdos*)
15400  dynamic_linker=no
15401  ;;
15402
15403solaris*)
15404  version_type=linux
15405  need_lib_prefix=no
15406  need_version=no
15407  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15408  soname_spec='${libname}${release}${shared_ext}$major'
15409  shlibpath_var=LD_LIBRARY_PATH
15410  shlibpath_overrides_runpath=yes
15411  hardcode_into_libs=yes
15412  # ldd complains unless libraries are executable
15413  postinstall_cmds='chmod +x $lib'
15414  ;;
15415
15416sunos4*)
15417  version_type=sunos
15418  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15419  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15420  shlibpath_var=LD_LIBRARY_PATH
15421  shlibpath_overrides_runpath=yes
15422  if test "$with_gnu_ld" = yes; then
15423    need_lib_prefix=no
15424  fi
15425  need_version=yes
15426  ;;
15427
15428sysv4 | sysv4.3*)
15429  version_type=linux
15430  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15431  soname_spec='${libname}${release}${shared_ext}$major'
15432  shlibpath_var=LD_LIBRARY_PATH
15433  case $host_vendor in
15434    sni)
15435      shlibpath_overrides_runpath=no
15436      need_lib_prefix=no
15437      export_dynamic_flag_spec='${wl}-Blargedynsym'
15438      runpath_var=LD_RUN_PATH
15439      ;;
15440    siemens)
15441      need_lib_prefix=no
15442      ;;
15443    motorola)
15444      need_lib_prefix=no
15445      need_version=no
15446      shlibpath_overrides_runpath=no
15447      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15448      ;;
15449  esac
15450  ;;
15451
15452sysv4*MP*)
15453  if test -d /usr/nec ;then
15454    version_type=linux
15455    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15456    soname_spec='$libname${shared_ext}.$major'
15457    shlibpath_var=LD_LIBRARY_PATH
15458  fi
15459  ;;
15460
15461sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15462  version_type=freebsd-elf
15463  need_lib_prefix=no
15464  need_version=no
15465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15466  soname_spec='${libname}${release}${shared_ext}$major'
15467  shlibpath_var=LD_LIBRARY_PATH
15468  hardcode_into_libs=yes
15469  if test "$with_gnu_ld" = yes; then
15470    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15471    shlibpath_overrides_runpath=no
15472  else
15473    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15474    shlibpath_overrides_runpath=yes
15475    case $host_os in
15476      sco3.2v5*)
15477        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15478	;;
15479    esac
15480  fi
15481  sys_lib_dlsearch_path_spec='/usr/lib'
15482  ;;
15483
15484uts4*)
15485  version_type=linux
15486  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15487  soname_spec='${libname}${release}${shared_ext}$major'
15488  shlibpath_var=LD_LIBRARY_PATH
15489  ;;
15490
15491*)
15492  dynamic_linker=no
15493  ;;
15494esac
15495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15496$as_echo "$dynamic_linker" >&6; }
15497test "$dynamic_linker" = no && can_build_shared=no
15498
15499if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
15500  $as_echo_n "(cached) " >&6
15501else
15502  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15503fi
15504
15505sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15506if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
15507  $as_echo_n "(cached) " >&6
15508else
15509  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15510fi
15511
15512sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15513
15514variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15515if test "$GCC" = yes; then
15516  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15517fi
15518
15519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15520$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15521hardcode_action_F77=
15522if test -n "$hardcode_libdir_flag_spec_F77" || \
15523   test -n "$runpath_var_F77" || \
15524   test "X$hardcode_automatic_F77" = "Xyes" ; then
15525
15526  # We can hardcode non-existant directories.
15527  if test "$hardcode_direct_F77" != no &&
15528     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15529     # have to relink, otherwise we might link with an installed library
15530     # when we should be linking with a yet-to-be-installed one
15531     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15532     test "$hardcode_minus_L_F77" != no; then
15533    # Linking always hardcodes the temporary library directory.
15534    hardcode_action_F77=relink
15535  else
15536    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15537    hardcode_action_F77=immediate
15538  fi
15539else
15540  # We cannot hardcode anything, or else we can only hardcode existing
15541  # directories.
15542  hardcode_action_F77=unsupported
15543fi
15544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15545$as_echo "$hardcode_action_F77" >&6; }
15546
15547if test "$hardcode_action_F77" = relink; then
15548  # Fast installation is not supported
15549  enable_fast_install=no
15550elif test "$shlibpath_overrides_runpath" = yes ||
15551     test "$enable_shared" = no; then
15552  # Fast installation is not necessary
15553  enable_fast_install=needless
15554fi
15555
15556
15557# The else clause should only fire when bootstrapping the
15558# libtool distribution, otherwise you forgot to ship ltmain.sh
15559# with your package, and you will get complaints that there are
15560# no rules to generate ltmain.sh.
15561if test -f "$ltmain"; then
15562  # See if we are running on zsh, and set the options which allow our commands through
15563  # without removal of \ escapes.
15564  if test -n "${ZSH_VERSION+set}" ; then
15565    setopt NO_GLOB_SUBST
15566  fi
15567  # Now quote all the things that may contain metacharacters while being
15568  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15569  # variables and quote the copies for generation of the libtool script.
15570  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15571    SED SHELL STRIP \
15572    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15573    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15574    deplibs_check_method reload_flag reload_cmds need_locks \
15575    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15576    lt_cv_sys_global_symbol_to_c_name_address \
15577    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15578    old_postinstall_cmds old_postuninstall_cmds \
15579    compiler_F77 \
15580    CC_F77 \
15581    LD_F77 \
15582    lt_prog_compiler_wl_F77 \
15583    lt_prog_compiler_pic_F77 \
15584    lt_prog_compiler_static_F77 \
15585    lt_prog_compiler_no_builtin_flag_F77 \
15586    export_dynamic_flag_spec_F77 \
15587    thread_safe_flag_spec_F77 \
15588    whole_archive_flag_spec_F77 \
15589    enable_shared_with_static_runtimes_F77 \
15590    old_archive_cmds_F77 \
15591    old_archive_from_new_cmds_F77 \
15592    predep_objects_F77 \
15593    postdep_objects_F77 \
15594    predeps_F77 \
15595    postdeps_F77 \
15596    compiler_lib_search_path_F77 \
15597    compiler_lib_search_dirs_F77 \
15598    archive_cmds_F77 \
15599    archive_expsym_cmds_F77 \
15600    postinstall_cmds_F77 \
15601    postuninstall_cmds_F77 \
15602    old_archive_from_expsyms_cmds_F77 \
15603    allow_undefined_flag_F77 \
15604    no_undefined_flag_F77 \
15605    export_symbols_cmds_F77 \
15606    hardcode_libdir_flag_spec_F77 \
15607    hardcode_libdir_flag_spec_ld_F77 \
15608    hardcode_libdir_separator_F77 \
15609    hardcode_automatic_F77 \
15610    module_cmds_F77 \
15611    module_expsym_cmds_F77 \
15612    lt_cv_prog_compiler_c_o_F77 \
15613    fix_srcfile_path_F77 \
15614    exclude_expsyms_F77 \
15615    include_expsyms_F77; do
15616
15617    case $var in
15618    old_archive_cmds_F77 | \
15619    old_archive_from_new_cmds_F77 | \
15620    archive_cmds_F77 | \
15621    archive_expsym_cmds_F77 | \
15622    module_cmds_F77 | \
15623    module_expsym_cmds_F77 | \
15624    old_archive_from_expsyms_cmds_F77 | \
15625    export_symbols_cmds_F77 | \
15626    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15627    postinstall_cmds | postuninstall_cmds | \
15628    old_postinstall_cmds | old_postuninstall_cmds | \
15629    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15630      # Double-quote double-evaled strings.
15631      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15632      ;;
15633    *)
15634      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15635      ;;
15636    esac
15637  done
15638
15639  case $lt_echo in
15640  *'\$0 --fallback-echo"')
15641    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15642    ;;
15643  esac
15644
15645cfgfile="$ofile"
15646
15647  cat <<__EOF__ >> "$cfgfile"
15648# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15649
15650# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15651
15652# Shell to use when invoking shell scripts.
15653SHELL=$lt_SHELL
15654
15655# Whether or not to build shared libraries.
15656build_libtool_libs=$enable_shared
15657
15658# Whether or not to build static libraries.
15659build_old_libs=$enable_static
15660
15661# Whether or not to add -lc for building shared libraries.
15662build_libtool_need_lc=$archive_cmds_need_lc_F77
15663
15664# Whether or not to disallow shared libs when runtime libs are static
15665allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15666
15667# Whether or not to optimize for fast installation.
15668fast_install=$enable_fast_install
15669
15670# The host system.
15671host_alias=$host_alias
15672host=$host
15673host_os=$host_os
15674
15675# The build system.
15676build_alias=$build_alias
15677build=$build
15678build_os=$build_os
15679
15680# An echo program that does not interpret backslashes.
15681echo=$lt_echo
15682
15683# The archiver.
15684AR=$lt_AR
15685AR_FLAGS=$lt_AR_FLAGS
15686
15687# A C compiler.
15688LTCC=$lt_LTCC
15689
15690# LTCC compiler flags.
15691LTCFLAGS=$lt_LTCFLAGS
15692
15693# A language-specific compiler.
15694CC=$lt_compiler_F77
15695
15696# Is the compiler the GNU C compiler?
15697with_gcc=$GCC_F77
15698
15699# An ERE matcher.
15700EGREP=$lt_EGREP
15701
15702# The linker used to build libraries.
15703LD=$lt_LD_F77
15704
15705# Whether we need hard or soft links.
15706LN_S=$lt_LN_S
15707
15708# A BSD-compatible nm program.
15709NM=$lt_NM
15710
15711# A symbol stripping program
15712STRIP=$lt_STRIP
15713
15714# Used to examine libraries when file_magic_cmd begins "file"
15715MAGIC_CMD=$MAGIC_CMD
15716
15717# Used on cygwin: DLL creation program.
15718DLLTOOL="$DLLTOOL"
15719
15720# Used on cygwin: object dumper.
15721OBJDUMP="$OBJDUMP"
15722
15723# Used on cygwin: assembler.
15724AS="$AS"
15725
15726# The name of the directory that contains temporary libtool files.
15727objdir=$objdir
15728
15729# How to create reloadable object files.
15730reload_flag=$lt_reload_flag
15731reload_cmds=$lt_reload_cmds
15732
15733# How to pass a linker flag through the compiler.
15734wl=$lt_lt_prog_compiler_wl_F77
15735
15736# Object file suffix (normally "o").
15737objext="$ac_objext"
15738
15739# Old archive suffix (normally "a").
15740libext="$libext"
15741
15742# Shared library suffix (normally ".so").
15743shrext_cmds='$shrext_cmds'
15744
15745# Executable file suffix (normally "").
15746exeext="$exeext"
15747
15748# Additional compiler flags for building library objects.
15749pic_flag=$lt_lt_prog_compiler_pic_F77
15750pic_mode=$pic_mode
15751
15752# What is the maximum length of a command?
15753max_cmd_len=$lt_cv_sys_max_cmd_len
15754
15755# Does compiler simultaneously support -c and -o options?
15756compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15757
15758# Must we lock files when doing compilation?
15759need_locks=$lt_need_locks
15760
15761# Do we need the lib prefix for modules?
15762need_lib_prefix=$need_lib_prefix
15763
15764# Do we need a version for libraries?
15765need_version=$need_version
15766
15767# Whether dlopen is supported.
15768dlopen_support=$enable_dlopen
15769
15770# Whether dlopen of programs is supported.
15771dlopen_self=$enable_dlopen_self
15772
15773# Whether dlopen of statically linked programs is supported.
15774dlopen_self_static=$enable_dlopen_self_static
15775
15776# Compiler flag to prevent dynamic linking.
15777link_static_flag=$lt_lt_prog_compiler_static_F77
15778
15779# Compiler flag to turn off builtin functions.
15780no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15781
15782# Compiler flag to allow reflexive dlopens.
15783export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15784
15785# Compiler flag to generate shared objects directly from archives.
15786whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15787
15788# Compiler flag to generate thread-safe objects.
15789thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15790
15791# Library versioning type.
15792version_type=$version_type
15793
15794# Format of library name prefix.
15795libname_spec=$lt_libname_spec
15796
15797# List of archive names.  First name is the real one, the rest are links.
15798# The last name is the one that the linker finds with -lNAME.
15799library_names_spec=$lt_library_names_spec
15800
15801# The coded name of the library, if different from the real name.
15802soname_spec=$lt_soname_spec
15803
15804# Commands used to build and install an old-style archive.
15805RANLIB=$lt_RANLIB
15806old_archive_cmds=$lt_old_archive_cmds_F77
15807old_postinstall_cmds=$lt_old_postinstall_cmds
15808old_postuninstall_cmds=$lt_old_postuninstall_cmds
15809
15810# Create an old-style archive from a shared archive.
15811old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15812
15813# Create a temporary old-style archive to link instead of a shared archive.
15814old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15815
15816# Commands used to build and install a shared archive.
15817archive_cmds=$lt_archive_cmds_F77
15818archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15819postinstall_cmds=$lt_postinstall_cmds
15820postuninstall_cmds=$lt_postuninstall_cmds
15821
15822# Commands used to build a loadable module (assumed same as above if empty)
15823module_cmds=$lt_module_cmds_F77
15824module_expsym_cmds=$lt_module_expsym_cmds_F77
15825
15826# Commands to strip libraries.
15827old_striplib=$lt_old_striplib
15828striplib=$lt_striplib
15829
15830# Dependencies to place before the objects being linked to create a
15831# shared library.
15832predep_objects=$lt_predep_objects_F77
15833
15834# Dependencies to place after the objects being linked to create a
15835# shared library.
15836postdep_objects=$lt_postdep_objects_F77
15837
15838# Dependencies to place before the objects being linked to create a
15839# shared library.
15840predeps=$lt_predeps_F77
15841
15842# Dependencies to place after the objects being linked to create a
15843# shared library.
15844postdeps=$lt_postdeps_F77
15845
15846# The directories searched by this compiler when creating a shared
15847# library
15848compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
15849
15850# The library search path used internally by the compiler when linking
15851# a shared library.
15852compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15853
15854# Method to check whether dependent libraries are shared objects.
15855deplibs_check_method=$lt_deplibs_check_method
15856
15857# Command to use when deplibs_check_method == file_magic.
15858file_magic_cmd=$lt_file_magic_cmd
15859
15860# Flag that allows shared libraries with undefined symbols to be built.
15861allow_undefined_flag=$lt_allow_undefined_flag_F77
15862
15863# Flag that forces no undefined symbols.
15864no_undefined_flag=$lt_no_undefined_flag_F77
15865
15866# Commands used to finish a libtool library installation in a directory.
15867finish_cmds=$lt_finish_cmds
15868
15869# Same as above, but a single script fragment to be evaled but not shown.
15870finish_eval=$lt_finish_eval
15871
15872# Take the output of nm and produce a listing of raw symbols and C names.
15873global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15874
15875# Transform the output of nm in a proper C declaration
15876global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15877
15878# Transform the output of nm in a C name address pair
15879global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15880
15881# This is the shared library runtime path variable.
15882runpath_var=$runpath_var
15883
15884# This is the shared library path variable.
15885shlibpath_var=$shlibpath_var
15886
15887# Is shlibpath searched before the hard-coded library search path?
15888shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15889
15890# How to hardcode a shared library path into an executable.
15891hardcode_action=$hardcode_action_F77
15892
15893# Whether we should hardcode library paths into libraries.
15894hardcode_into_libs=$hardcode_into_libs
15895
15896# Flag to hardcode \$libdir into a binary during linking.
15897# This must work even if \$libdir does not exist.
15898hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15899
15900# If ld is used when linking, flag to hardcode \$libdir into
15901# a binary during linking. This must work even if \$libdir does
15902# not exist.
15903hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15904
15905# Whether we need a single -rpath flag with a separated argument.
15906hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15907
15908# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15909# resulting binary.
15910hardcode_direct=$hardcode_direct_F77
15911
15912# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15913# resulting binary.
15914hardcode_minus_L=$hardcode_minus_L_F77
15915
15916# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15917# the resulting binary.
15918hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15919
15920# Set to yes if building a shared library automatically hardcodes DIR into the library
15921# and all subsequent libraries and executables linked against it.
15922hardcode_automatic=$hardcode_automatic_F77
15923
15924# Variables whose values should be saved in libtool wrapper scripts and
15925# restored at relink time.
15926variables_saved_for_relink="$variables_saved_for_relink"
15927
15928# Whether libtool must link a program against all its dependency libraries.
15929link_all_deplibs=$link_all_deplibs_F77
15930
15931# Compile-time system search path for libraries
15932sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15933
15934# Run-time system search path for libraries
15935sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15936
15937# Fix the shell variable \$srcfile for the compiler.
15938fix_srcfile_path=$lt_fix_srcfile_path
15939
15940# Set to yes if exported symbols are required.
15941always_export_symbols=$always_export_symbols_F77
15942
15943# The commands to list exported symbols.
15944export_symbols_cmds=$lt_export_symbols_cmds_F77
15945
15946# The commands to extract the exported symbol list from a shared archive.
15947extract_expsyms_cmds=$lt_extract_expsyms_cmds
15948
15949# Symbols that should not be listed in the preloaded symbols.
15950exclude_expsyms=$lt_exclude_expsyms_F77
15951
15952# Symbols that must always be exported.
15953include_expsyms=$lt_include_expsyms_F77
15954
15955# ### END LIBTOOL TAG CONFIG: $tagname
15956
15957__EOF__
15958
15959
15960else
15961  # If there is no Makefile yet, we rely on a make rule to execute
15962  # `config.status --recheck' to rerun these tests and create the
15963  # libtool script then.
15964  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15965  if test -f "$ltmain_in"; then
15966    test -f Makefile && make "$ltmain"
15967  fi
15968fi
15969
15970
15971ac_ext=c
15972ac_cpp='$CPP $CPPFLAGS'
15973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15975ac_compiler_gnu=$ac_cv_c_compiler_gnu
15976
15977CC="$lt_save_CC"
15978
15979	else
15980	  tagname=""
15981	fi
15982	;;
15983
15984      GCJ)
15985	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15986
15987
15988# Source file extension for Java test sources.
15989ac_ext=java
15990
15991# Object file extension for compiled Java test sources.
15992objext=o
15993objext_GCJ=$objext
15994
15995# Code to be used in simple compile tests
15996lt_simple_compile_test_code="class foo {}"
15997
15998# Code to be used in simple link tests
15999lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16000
16001# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16002
16003# If no C compiler was specified, use CC.
16004LTCC=${LTCC-"$CC"}
16005
16006# If no C compiler flags were specified, use CFLAGS.
16007LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16008
16009# Allow CC to be a program name with arguments.
16010compiler=$CC
16011
16012
16013# save warnings/boilerplate of simple test code
16014ac_outfile=conftest.$ac_objext
16015echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16016eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16017_lt_compiler_boilerplate=`cat conftest.err`
16018$rm conftest*
16019
16020ac_outfile=conftest.$ac_objext
16021echo "$lt_simple_link_test_code" >conftest.$ac_ext
16022eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16023_lt_linker_boilerplate=`cat conftest.err`
16024$rm -r conftest*
16025
16026
16027# Allow CC to be a program name with arguments.
16028lt_save_CC="$CC"
16029CC=${GCJ-"gcj"}
16030compiler=$CC
16031compiler_GCJ=$CC
16032for cc_temp in $compiler""; do
16033  case $cc_temp in
16034    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16035    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16036    \-*) ;;
16037    *) break;;
16038  esac
16039done
16040cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16041
16042
16043# GCJ did not exist at the time GCC didn't implicitly link libc in.
16044archive_cmds_need_lc_GCJ=no
16045
16046old_archive_cmds_GCJ=$old_archive_cmds
16047
16048## CAVEAT EMPTOR:
16049## There is no encapsulation within the following macros, do not change
16050## the running order or otherwise move them around unless you know exactly
16051## what you are doing...
16052
16053lt_prog_compiler_no_builtin_flag_GCJ=
16054
16055if test "$GCC" = yes; then
16056  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16057
16058
16059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16060$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16061if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
16062  $as_echo_n "(cached) " >&6
16063else
16064  lt_cv_prog_compiler_rtti_exceptions=no
16065  ac_outfile=conftest.$ac_objext
16066   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16067   lt_compiler_flag="-fno-rtti -fno-exceptions"
16068   # Insert the option either (1) after the last *FLAGS variable, or
16069   # (2) before a word containing "conftest.", or (3) at the end.
16070   # Note that $ac_compile itself does not contain backslashes and begins
16071   # with a dollar sign (not a hyphen), so the echo should work correctly.
16072   # The option is referenced via a variable to avoid confusing sed.
16073   lt_compile=`echo "$ac_compile" | $SED \
16074   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16075   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16076   -e 's:$: $lt_compiler_flag:'`
16077   (eval echo "\"\$as_me:16077: $lt_compile\"" >&5)
16078   (eval "$lt_compile" 2>conftest.err)
16079   ac_status=$?
16080   cat conftest.err >&5
16081   echo "$as_me:16081: \$? = $ac_status" >&5
16082   if (exit $ac_status) && test -s "$ac_outfile"; then
16083     # The compiler can only warn and ignore the option if not recognized
16084     # So say no if there are warnings other than the usual output.
16085     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16086     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16087     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16088       lt_cv_prog_compiler_rtti_exceptions=yes
16089     fi
16090   fi
16091   $rm conftest*
16092
16093fi
16094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16095$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16096
16097if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16098    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16099else
16100    :
16101fi
16102
16103fi
16104
16105lt_prog_compiler_wl_GCJ=
16106lt_prog_compiler_pic_GCJ=
16107lt_prog_compiler_static_GCJ=
16108
16109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16110$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16111
16112  if test "$GCC" = yes; then
16113    lt_prog_compiler_wl_GCJ='-Wl,'
16114    lt_prog_compiler_static_GCJ='-static'
16115
16116    case $host_os in
16117      aix*)
16118      # All AIX code is PIC.
16119      if test "$host_cpu" = ia64; then
16120	# AIX 5 now supports IA64 processor
16121	lt_prog_compiler_static_GCJ='-Bstatic'
16122      fi
16123      ;;
16124
16125    amigaos*)
16126      # FIXME: we need at least 68020 code to build shared libraries, but
16127      # adding the `-m68020' flag to GCC prevents building anything better,
16128      # like `-m68040'.
16129      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16130      ;;
16131
16132    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16133      # PIC is the default for these OSes.
16134      ;;
16135
16136    mingw* | cygwin* | pw32* | os2*)
16137      # This hack is so that the source file can tell whether it is being
16138      # built for inclusion in a dll (and should export symbols for example).
16139      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16140      # (--disable-auto-import) libraries
16141
16142      ;;
16143
16144    darwin* | rhapsody*)
16145      # PIC is the default on this platform
16146      # Common symbols not allowed in MH_DYLIB files
16147      lt_prog_compiler_pic_GCJ='-fno-common'
16148      ;;
16149
16150    interix[3-9]*)
16151      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16152      # Instead, we relocate shared libraries at runtime.
16153      ;;
16154
16155    msdosdjgpp*)
16156      # Just because we use GCC doesn't mean we suddenly get shared libraries
16157      # on systems that don't support them.
16158      lt_prog_compiler_can_build_shared_GCJ=no
16159      enable_shared=no
16160      ;;
16161
16162    sysv4*MP*)
16163      if test -d /usr/nec; then
16164	lt_prog_compiler_pic_GCJ=-Kconform_pic
16165      fi
16166      ;;
16167
16168    hpux*)
16169      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16170      # not for PA HP-UX.
16171      case $host_cpu in
16172      hppa*64*|ia64*)
16173	# +Z the default
16174	;;
16175      *)
16176	lt_prog_compiler_pic_GCJ='-fPIC'
16177	;;
16178      esac
16179      ;;
16180
16181    *)
16182      lt_prog_compiler_pic_GCJ='-fPIC'
16183      ;;
16184    esac
16185  else
16186    # PORTME Check for flag to pass linker flags through the system compiler.
16187    case $host_os in
16188    aix*)
16189      lt_prog_compiler_wl_GCJ='-Wl,'
16190      if test "$host_cpu" = ia64; then
16191	# AIX 5 now supports IA64 processor
16192	lt_prog_compiler_static_GCJ='-Bstatic'
16193      else
16194	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16195      fi
16196      ;;
16197      darwin*)
16198        # PIC is the default on this platform
16199        # Common symbols not allowed in MH_DYLIB files
16200       case $cc_basename in
16201         xlc*)
16202         lt_prog_compiler_pic_GCJ='-qnocommon'
16203         lt_prog_compiler_wl_GCJ='-Wl,'
16204         ;;
16205       esac
16206       ;;
16207
16208    mingw* | cygwin* | pw32* | os2*)
16209      # This hack is so that the source file can tell whether it is being
16210      # built for inclusion in a dll (and should export symbols for example).
16211
16212      ;;
16213
16214    hpux9* | hpux10* | hpux11*)
16215      lt_prog_compiler_wl_GCJ='-Wl,'
16216      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16217      # not for PA HP-UX.
16218      case $host_cpu in
16219      hppa*64*|ia64*)
16220	# +Z the default
16221	;;
16222      *)
16223	lt_prog_compiler_pic_GCJ='+Z'
16224	;;
16225      esac
16226      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16227      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16228      ;;
16229
16230    irix5* | irix6* | nonstopux*)
16231      lt_prog_compiler_wl_GCJ='-Wl,'
16232      # PIC (with -KPIC) is the default.
16233      lt_prog_compiler_static_GCJ='-non_shared'
16234      ;;
16235
16236    newsos6)
16237      lt_prog_compiler_pic_GCJ='-KPIC'
16238      lt_prog_compiler_static_GCJ='-Bstatic'
16239      ;;
16240
16241    linux* | k*bsd*-gnu)
16242      case $cc_basename in
16243      icc* | ecc*)
16244	lt_prog_compiler_wl_GCJ='-Wl,'
16245	lt_prog_compiler_pic_GCJ='-KPIC'
16246	lt_prog_compiler_static_GCJ='-static'
16247        ;;
16248      pgcc* | pgf77* | pgf90* | pgf95*)
16249        # Portland Group compilers (*not* the Pentium gcc compiler,
16250	# which looks to be a dead project)
16251	lt_prog_compiler_wl_GCJ='-Wl,'
16252	lt_prog_compiler_pic_GCJ='-fpic'
16253	lt_prog_compiler_static_GCJ='-Bstatic'
16254        ;;
16255      ccc*)
16256        lt_prog_compiler_wl_GCJ='-Wl,'
16257        # All Alpha code is PIC.
16258        lt_prog_compiler_static_GCJ='-non_shared'
16259        ;;
16260      *)
16261        case `$CC -V 2>&1 | sed 5q` in
16262	*Sun\ C*)
16263	  # Sun C 5.9
16264	  lt_prog_compiler_pic_GCJ='-KPIC'
16265	  lt_prog_compiler_static_GCJ='-Bstatic'
16266	  lt_prog_compiler_wl_GCJ='-Wl,'
16267	  ;;
16268	*Sun\ F*)
16269	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16270	  lt_prog_compiler_pic_GCJ='-KPIC'
16271	  lt_prog_compiler_static_GCJ='-Bstatic'
16272	  lt_prog_compiler_wl_GCJ=''
16273	  ;;
16274	esac
16275	;;
16276      esac
16277      ;;
16278
16279    osf3* | osf4* | osf5*)
16280      lt_prog_compiler_wl_GCJ='-Wl,'
16281      # All OSF/1 code is PIC.
16282      lt_prog_compiler_static_GCJ='-non_shared'
16283      ;;
16284
16285    rdos*)
16286      lt_prog_compiler_static_GCJ='-non_shared'
16287      ;;
16288
16289    solaris*)
16290      lt_prog_compiler_pic_GCJ='-KPIC'
16291      lt_prog_compiler_static_GCJ='-Bstatic'
16292      case $cc_basename in
16293      f77* | f90* | f95*)
16294	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16295      *)
16296	lt_prog_compiler_wl_GCJ='-Wl,';;
16297      esac
16298      ;;
16299
16300    sunos4*)
16301      lt_prog_compiler_wl_GCJ='-Qoption ld '
16302      lt_prog_compiler_pic_GCJ='-PIC'
16303      lt_prog_compiler_static_GCJ='-Bstatic'
16304      ;;
16305
16306    sysv4 | sysv4.2uw2* | sysv4.3*)
16307      lt_prog_compiler_wl_GCJ='-Wl,'
16308      lt_prog_compiler_pic_GCJ='-KPIC'
16309      lt_prog_compiler_static_GCJ='-Bstatic'
16310      ;;
16311
16312    sysv4*MP*)
16313      if test -d /usr/nec ;then
16314	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16315	lt_prog_compiler_static_GCJ='-Bstatic'
16316      fi
16317      ;;
16318
16319    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16320      lt_prog_compiler_wl_GCJ='-Wl,'
16321      lt_prog_compiler_pic_GCJ='-KPIC'
16322      lt_prog_compiler_static_GCJ='-Bstatic'
16323      ;;
16324
16325    unicos*)
16326      lt_prog_compiler_wl_GCJ='-Wl,'
16327      lt_prog_compiler_can_build_shared_GCJ=no
16328      ;;
16329
16330    uts4*)
16331      lt_prog_compiler_pic_GCJ='-pic'
16332      lt_prog_compiler_static_GCJ='-Bstatic'
16333      ;;
16334
16335    *)
16336      lt_prog_compiler_can_build_shared_GCJ=no
16337      ;;
16338    esac
16339  fi
16340
16341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16342$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16343
16344#
16345# Check to make sure the PIC flag actually works.
16346#
16347if test -n "$lt_prog_compiler_pic_GCJ"; then
16348
16349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16350$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16351if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
16352  $as_echo_n "(cached) " >&6
16353else
16354  lt_cv_prog_compiler_pic_works_GCJ=no
16355  ac_outfile=conftest.$ac_objext
16356   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16357   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16358   # Insert the option either (1) after the last *FLAGS variable, or
16359   # (2) before a word containing "conftest.", or (3) at the end.
16360   # Note that $ac_compile itself does not contain backslashes and begins
16361   # with a dollar sign (not a hyphen), so the echo should work correctly.
16362   # The option is referenced via a variable to avoid confusing sed.
16363   lt_compile=`echo "$ac_compile" | $SED \
16364   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16365   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16366   -e 's:$: $lt_compiler_flag:'`
16367   (eval echo "\"\$as_me:16367: $lt_compile\"" >&5)
16368   (eval "$lt_compile" 2>conftest.err)
16369   ac_status=$?
16370   cat conftest.err >&5
16371   echo "$as_me:16371: \$? = $ac_status" >&5
16372   if (exit $ac_status) && test -s "$ac_outfile"; then
16373     # The compiler can only warn and ignore the option if not recognized
16374     # So say no if there are warnings other than the usual output.
16375     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16376     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16377     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16378       lt_cv_prog_compiler_pic_works_GCJ=yes
16379     fi
16380   fi
16381   $rm conftest*
16382
16383fi
16384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16385$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16386
16387if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16388    case $lt_prog_compiler_pic_GCJ in
16389     "" | " "*) ;;
16390     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16391     esac
16392else
16393    lt_prog_compiler_pic_GCJ=
16394     lt_prog_compiler_can_build_shared_GCJ=no
16395fi
16396
16397fi
16398case $host_os in
16399  # For platforms which do not support PIC, -DPIC is meaningless:
16400  *djgpp*)
16401    lt_prog_compiler_pic_GCJ=
16402    ;;
16403  *)
16404    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16405    ;;
16406esac
16407
16408#
16409# Check to make sure the static flag actually works.
16410#
16411wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16413$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16414if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
16415  $as_echo_n "(cached) " >&6
16416else
16417  lt_cv_prog_compiler_static_works_GCJ=no
16418   save_LDFLAGS="$LDFLAGS"
16419   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16420   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16421   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16422     # The linker can only warn and ignore the option if not recognized
16423     # So say no if there are warnings
16424     if test -s conftest.err; then
16425       # Append any errors to the config.log.
16426       cat conftest.err 1>&5
16427       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16428       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16429       if diff conftest.exp conftest.er2 >/dev/null; then
16430         lt_cv_prog_compiler_static_works_GCJ=yes
16431       fi
16432     else
16433       lt_cv_prog_compiler_static_works_GCJ=yes
16434     fi
16435   fi
16436   $rm -r conftest*
16437   LDFLAGS="$save_LDFLAGS"
16438
16439fi
16440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16441$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16442
16443if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16444    :
16445else
16446    lt_prog_compiler_static_GCJ=
16447fi
16448
16449
16450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16451$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16452if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
16453  $as_echo_n "(cached) " >&6
16454else
16455  lt_cv_prog_compiler_c_o_GCJ=no
16456   $rm -r conftest 2>/dev/null
16457   mkdir conftest
16458   cd conftest
16459   mkdir out
16460   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16461
16462   lt_compiler_flag="-o out/conftest2.$ac_objext"
16463   # Insert the option either (1) after the last *FLAGS variable, or
16464   # (2) before a word containing "conftest.", or (3) at the end.
16465   # Note that $ac_compile itself does not contain backslashes and begins
16466   # with a dollar sign (not a hyphen), so the echo should work correctly.
16467   lt_compile=`echo "$ac_compile" | $SED \
16468   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16469   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16470   -e 's:$: $lt_compiler_flag:'`
16471   (eval echo "\"\$as_me:16471: $lt_compile\"" >&5)
16472   (eval "$lt_compile" 2>out/conftest.err)
16473   ac_status=$?
16474   cat out/conftest.err >&5
16475   echo "$as_me:16475: \$? = $ac_status" >&5
16476   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16477   then
16478     # The compiler can only warn and ignore the option if not recognized
16479     # So say no if there are warnings
16480     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16481     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16482     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16483       lt_cv_prog_compiler_c_o_GCJ=yes
16484     fi
16485   fi
16486   chmod u+w . 2>&5
16487   $rm conftest*
16488   # SGI C++ compiler will create directory out/ii_files/ for
16489   # template instantiation
16490   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16491   $rm out/* && rmdir out
16492   cd ..
16493   rmdir conftest
16494   $rm conftest*
16495
16496fi
16497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16498$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16499
16500
16501hard_links="nottested"
16502if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16503  # do not overwrite the value of need_locks provided by the user
16504  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16505$as_echo_n "checking if we can lock with hard links... " >&6; }
16506  hard_links=yes
16507  $rm conftest*
16508  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16509  touch conftest.a
16510  ln conftest.a conftest.b 2>&5 || hard_links=no
16511  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16513$as_echo "$hard_links" >&6; }
16514  if test "$hard_links" = no; then
16515    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16516$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16517    need_locks=warn
16518  fi
16519else
16520  need_locks=no
16521fi
16522
16523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16524$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16525
16526  runpath_var=
16527  allow_undefined_flag_GCJ=
16528  enable_shared_with_static_runtimes_GCJ=no
16529  archive_cmds_GCJ=
16530  archive_expsym_cmds_GCJ=
16531  old_archive_From_new_cmds_GCJ=
16532  old_archive_from_expsyms_cmds_GCJ=
16533  export_dynamic_flag_spec_GCJ=
16534  whole_archive_flag_spec_GCJ=
16535  thread_safe_flag_spec_GCJ=
16536  hardcode_libdir_flag_spec_GCJ=
16537  hardcode_libdir_flag_spec_ld_GCJ=
16538  hardcode_libdir_separator_GCJ=
16539  hardcode_direct_GCJ=no
16540  hardcode_minus_L_GCJ=no
16541  hardcode_shlibpath_var_GCJ=unsupported
16542  link_all_deplibs_GCJ=unknown
16543  hardcode_automatic_GCJ=no
16544  module_cmds_GCJ=
16545  module_expsym_cmds_GCJ=
16546  always_export_symbols_GCJ=no
16547  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16548  # include_expsyms should be a list of space-separated symbols to be *always*
16549  # included in the symbol list
16550  include_expsyms_GCJ=
16551  # exclude_expsyms can be an extended regexp of symbols to exclude
16552  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16553  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16554  # as well as any symbol that contains `d'.
16555  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16556  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16557  # platforms (ab)use it in PIC code, but their linkers get confused if
16558  # the symbol is explicitly referenced.  Since portable code cannot
16559  # rely on this symbol name, it's probably fine to never include it in
16560  # preloaded symbol tables.
16561  # Exclude shared library initialization/finalization symbols.
16562  extract_expsyms_cmds=
16563  # Just being paranoid about ensuring that cc_basename is set.
16564  for cc_temp in $compiler""; do
16565  case $cc_temp in
16566    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16567    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16568    \-*) ;;
16569    *) break;;
16570  esac
16571done
16572cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16573
16574  case $host_os in
16575  cygwin* | mingw* | pw32*)
16576    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16577    # When not using gcc, we currently assume that we are using
16578    # Microsoft Visual C++.
16579    if test "$GCC" != yes; then
16580      with_gnu_ld=no
16581    fi
16582    ;;
16583  interix*)
16584    # we just hope/assume this is gcc and not c89 (= MSVC++)
16585    with_gnu_ld=yes
16586    ;;
16587  openbsd*)
16588    with_gnu_ld=no
16589    ;;
16590  esac
16591
16592  ld_shlibs_GCJ=yes
16593  if test "$with_gnu_ld" = yes; then
16594    # If archive_cmds runs LD, not CC, wlarc should be empty
16595    wlarc='${wl}'
16596
16597    # Set some defaults for GNU ld with shared library support. These
16598    # are reset later if shared libraries are not supported. Putting them
16599    # here allows them to be overridden if necessary.
16600    runpath_var=LD_RUN_PATH
16601    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16602    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16603    # ancient GNU ld didn't support --whole-archive et. al.
16604    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16605	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16606      else
16607  	whole_archive_flag_spec_GCJ=
16608    fi
16609    supports_anon_versioning=no
16610    case `$LD -v 2>/dev/null` in
16611      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16612      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16613      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16614      *\ 2.11.*) ;; # other 2.11 versions
16615      *) supports_anon_versioning=yes ;;
16616    esac
16617
16618    # See if GNU ld supports shared libraries.
16619    case $host_os in
16620    aix[3-9]*)
16621      # On AIX/PPC, the GNU linker is very broken
16622      if test "$host_cpu" != ia64; then
16623	ld_shlibs_GCJ=no
16624	cat <<EOF 1>&2
16625
16626*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16627*** to be unable to reliably create shared libraries on AIX.
16628*** Therefore, libtool is disabling shared libraries support.  If you
16629*** really care for shared libraries, you may want to modify your PATH
16630*** so that a non-GNU linker is found, and then restart.
16631
16632EOF
16633      fi
16634      ;;
16635
16636    amigaos*)
16637      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)'
16638      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16639      hardcode_minus_L_GCJ=yes
16640
16641      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16642      # that the semantics of dynamic libraries on AmigaOS, at least up
16643      # to version 4, is to share data among multiple programs linked
16644      # with the same dynamic library.  Since this doesn't match the
16645      # behavior of shared libraries on other platforms, we can't use
16646      # them.
16647      ld_shlibs_GCJ=no
16648      ;;
16649
16650    beos*)
16651      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16652	allow_undefined_flag_GCJ=unsupported
16653	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16654	# support --undefined.  This deserves some investigation.  FIXME
16655	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16656      else
16657	ld_shlibs_GCJ=no
16658      fi
16659      ;;
16660
16661    cygwin* | mingw* | pw32*)
16662      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16663      # as there is no search path for DLLs.
16664      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16665      allow_undefined_flag_GCJ=unsupported
16666      always_export_symbols_GCJ=no
16667      enable_shared_with_static_runtimes_GCJ=yes
16668      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16669
16670      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16671        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16672	# If the export-symbols file already is a .def file (1st line
16673	# is EXPORTS), use it as is; otherwise, prepend...
16674	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16675	  cp $export_symbols $output_objdir/$soname.def;
16676	else
16677	  echo EXPORTS > $output_objdir/$soname.def;
16678	  cat $export_symbols >> $output_objdir/$soname.def;
16679	fi~
16680	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16681      else
16682	ld_shlibs_GCJ=no
16683      fi
16684      ;;
16685
16686    interix[3-9]*)
16687      hardcode_direct_GCJ=no
16688      hardcode_shlibpath_var_GCJ=no
16689      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16690      export_dynamic_flag_spec_GCJ='${wl}-E'
16691      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16692      # Instead, shared libraries are loaded at an image base (0x10000000 by
16693      # default) and relocated if they conflict, which is a slow very memory
16694      # consuming and fragmenting process.  To avoid this, we pick a random,
16695      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16696      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16697      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'
16698      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'
16699      ;;
16700
16701    gnu* | linux* | k*bsd*-gnu)
16702      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16703	tmp_addflag=
16704	case $cc_basename,$host_cpu in
16705	pgcc*)				# Portland Group C compiler
16706	  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'
16707	  tmp_addflag=' $pic_flag'
16708	  ;;
16709	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16710	  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'
16711	  tmp_addflag=' $pic_flag -Mnomain' ;;
16712	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16713	  tmp_addflag=' -i_dynamic' ;;
16714	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16715	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16716	ifc* | ifort*)			# Intel Fortran compiler
16717	  tmp_addflag=' -nofor_main' ;;
16718	esac
16719	case `$CC -V 2>&1 | sed 5q` in
16720	*Sun\ C*)			# Sun C 5.9
16721	  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'
16722	  tmp_sharedflag='-G' ;;
16723	*Sun\ F*)			# Sun Fortran 8.3
16724	  tmp_sharedflag='-G' ;;
16725	*)
16726	  tmp_sharedflag='-shared' ;;
16727	esac
16728	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16729
16730	if test $supports_anon_versioning = yes; then
16731	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16732  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16733  $echo "local: *; };" >> $output_objdir/$libname.ver~
16734	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16735	fi
16736      else
16737	ld_shlibs_GCJ=no
16738      fi
16739      ;;
16740
16741    netbsd*)
16742      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16743	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16744	wlarc=
16745      else
16746	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16747	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16748      fi
16749      ;;
16750
16751    solaris*)
16752      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16753	ld_shlibs_GCJ=no
16754	cat <<EOF 1>&2
16755
16756*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16757*** create shared libraries on Solaris systems.  Therefore, libtool
16758*** is disabling shared libraries support.  We urge you to upgrade GNU
16759*** binutils to release 2.9.1 or newer.  Another option is to modify
16760*** your PATH or compiler configuration so that the native linker is
16761*** used, and then restart.
16762
16763EOF
16764      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16765	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16766	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16767      else
16768	ld_shlibs_GCJ=no
16769      fi
16770      ;;
16771
16772    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16773      case `$LD -v 2>&1` in
16774        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16775	ld_shlibs_GCJ=no
16776	cat <<_LT_EOF 1>&2
16777
16778*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16779*** reliably create shared libraries on SCO systems.  Therefore, libtool
16780*** is disabling shared libraries support.  We urge you to upgrade GNU
16781*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16782*** your PATH or compiler configuration so that the native linker is
16783*** used, and then restart.
16784
16785_LT_EOF
16786	;;
16787	*)
16788	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16789	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16790	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16791	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16792	  else
16793	    ld_shlibs_GCJ=no
16794	  fi
16795	;;
16796      esac
16797      ;;
16798
16799    sunos4*)
16800      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16801      wlarc=
16802      hardcode_direct_GCJ=yes
16803      hardcode_shlibpath_var_GCJ=no
16804      ;;
16805
16806    *)
16807      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16808	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16809	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16810      else
16811	ld_shlibs_GCJ=no
16812      fi
16813      ;;
16814    esac
16815
16816    if test "$ld_shlibs_GCJ" = no; then
16817      runpath_var=
16818      hardcode_libdir_flag_spec_GCJ=
16819      export_dynamic_flag_spec_GCJ=
16820      whole_archive_flag_spec_GCJ=
16821    fi
16822  else
16823    # PORTME fill in a description of your system's linker (not GNU ld)
16824    case $host_os in
16825    aix3*)
16826      allow_undefined_flag_GCJ=unsupported
16827      always_export_symbols_GCJ=yes
16828      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'
16829      # Note: this linker hardcodes the directories in LIBPATH if there
16830      # are no directories specified by -L.
16831      hardcode_minus_L_GCJ=yes
16832      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16833	# Neither direct hardcoding nor static linking is supported with a
16834	# broken collect2.
16835	hardcode_direct_GCJ=unsupported
16836      fi
16837      ;;
16838
16839    aix[4-9]*)
16840      if test "$host_cpu" = ia64; then
16841	# On IA64, the linker does run time linking by default, so we don't
16842	# have to do anything special.
16843	aix_use_runtimelinking=no
16844	exp_sym_flag='-Bexport'
16845	no_entry_flag=""
16846      else
16847	# If we're using GNU nm, then we don't want the "-C" option.
16848	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16849	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16850	  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'
16851	else
16852	  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'
16853	fi
16854	aix_use_runtimelinking=no
16855
16856	# Test if we are trying to use run time linking or normal
16857	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16858	# need to do runtime linking.
16859	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16860	  for ld_flag in $LDFLAGS; do
16861  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16862  	    aix_use_runtimelinking=yes
16863  	    break
16864  	  fi
16865	  done
16866	  ;;
16867	esac
16868
16869	exp_sym_flag='-bexport'
16870	no_entry_flag='-bnoentry'
16871      fi
16872
16873      # When large executables or shared objects are built, AIX ld can
16874      # have problems creating the table of contents.  If linking a library
16875      # or program results in "error TOC overflow" add -mminimal-toc to
16876      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16877      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16878
16879      archive_cmds_GCJ=''
16880      hardcode_direct_GCJ=yes
16881      hardcode_libdir_separator_GCJ=':'
16882      link_all_deplibs_GCJ=yes
16883
16884      if test "$GCC" = yes; then
16885	case $host_os in aix4.[012]|aix4.[012].*)
16886	# We only want to do this on AIX 4.2 and lower, the check
16887	# below for broken collect2 doesn't work under 4.3+
16888	  collect2name=`${CC} -print-prog-name=collect2`
16889	  if test -f "$collect2name" && \
16890  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16891	  then
16892  	  # We have reworked collect2
16893  	  :
16894	  else
16895  	  # We have old collect2
16896  	  hardcode_direct_GCJ=unsupported
16897  	  # It fails to find uninstalled libraries when the uninstalled
16898  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16899  	  # to unsupported forces relinking
16900  	  hardcode_minus_L_GCJ=yes
16901  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16902  	  hardcode_libdir_separator_GCJ=
16903	  fi
16904	  ;;
16905	esac
16906	shared_flag='-shared'
16907	if test "$aix_use_runtimelinking" = yes; then
16908	  shared_flag="$shared_flag "'${wl}-G'
16909	fi
16910      else
16911	# not using gcc
16912	if test "$host_cpu" = ia64; then
16913  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16914  	# chokes on -Wl,-G. The following line is correct:
16915	  shared_flag='-G'
16916	else
16917	  if test "$aix_use_runtimelinking" = yes; then
16918	    shared_flag='${wl}-G'
16919	  else
16920	    shared_flag='${wl}-bM:SRE'
16921	  fi
16922	fi
16923      fi
16924
16925      # It seems that -bexpall does not export symbols beginning with
16926      # underscore (_), so it is better to generate a list of symbols to export.
16927      always_export_symbols_GCJ=yes
16928      if test "$aix_use_runtimelinking" = yes; then
16929	# Warning - without using the other runtime loading flags (-brtl),
16930	# -berok will link without error, but may produce a broken library.
16931	allow_undefined_flag_GCJ='-berok'
16932       # Determine the default libpath from the value encoded in an empty executable.
16933       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16934/* end confdefs.h.  */
16935
16936int
16937main ()
16938{
16939
16940  ;
16941  return 0;
16942}
16943_ACEOF
16944if ac_fn_c_try_link "$LINENO"; then :
16945
16946lt_aix_libpath_sed='
16947    /Import File Strings/,/^$/ {
16948	/^0/ {
16949	    s/^0  *\(.*\)$/\1/
16950	    p
16951	}
16952    }'
16953aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16954# Check for a 64-bit object if we didn't find anything.
16955if test -z "$aix_libpath"; then
16956  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16957fi
16958fi
16959rm -f core conftest.err conftest.$ac_objext \
16960    conftest$ac_exeext conftest.$ac_ext
16961if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16962
16963       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16964	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"
16965       else
16966	if test "$host_cpu" = ia64; then
16967	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16968	  allow_undefined_flag_GCJ="-z nodefs"
16969	  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"
16970	else
16971	 # Determine the default libpath from the value encoded in an empty executable.
16972	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16973/* end confdefs.h.  */
16974
16975int
16976main ()
16977{
16978
16979  ;
16980  return 0;
16981}
16982_ACEOF
16983if ac_fn_c_try_link "$LINENO"; then :
16984
16985lt_aix_libpath_sed='
16986    /Import File Strings/,/^$/ {
16987	/^0/ {
16988	    s/^0  *\(.*\)$/\1/
16989	    p
16990	}
16991    }'
16992aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16993# Check for a 64-bit object if we didn't find anything.
16994if test -z "$aix_libpath"; then
16995  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16996fi
16997fi
16998rm -f core conftest.err conftest.$ac_objext \
16999    conftest$ac_exeext conftest.$ac_ext
17000if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17001
17002	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17003	  # Warning - without using the other run time loading flags,
17004	  # -berok will link without error, but may produce a broken library.
17005	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17006	  allow_undefined_flag_GCJ=' ${wl}-berok'
17007	  # Exported symbols can be pulled into shared objects from archives
17008	  whole_archive_flag_spec_GCJ='$convenience'
17009	  archive_cmds_need_lc_GCJ=yes
17010	  # This is similar to how AIX traditionally builds its shared libraries.
17011	  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'
17012	fi
17013      fi
17014      ;;
17015
17016    amigaos*)
17017      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)'
17018      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17019      hardcode_minus_L_GCJ=yes
17020      # see comment about different semantics on the GNU ld section
17021      ld_shlibs_GCJ=no
17022      ;;
17023
17024    bsdi[45]*)
17025      export_dynamic_flag_spec_GCJ=-rdynamic
17026      ;;
17027
17028    cygwin* | mingw* | pw32*)
17029      # When not using gcc, we currently assume that we are using
17030      # Microsoft Visual C++.
17031      # hardcode_libdir_flag_spec is actually meaningless, as there is
17032      # no search path for DLLs.
17033      hardcode_libdir_flag_spec_GCJ=' '
17034      allow_undefined_flag_GCJ=unsupported
17035      # Tell ltmain to make .lib files, not .a files.
17036      libext=lib
17037      # Tell ltmain to make .dll files, not .so files.
17038      shrext_cmds=".dll"
17039      # FIXME: Setting linknames here is a bad hack.
17040      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17041      # The linker will automatically build a .lib file if we build a DLL.
17042      old_archive_From_new_cmds_GCJ='true'
17043      # FIXME: Should let the user specify the lib program.
17044      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17045      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17046      enable_shared_with_static_runtimes_GCJ=yes
17047      ;;
17048
17049    darwin* | rhapsody*)
17050      case $host_os in
17051        rhapsody* | darwin1.[012])
17052         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17053         ;;
17054       *) # Darwin 1.3 on
17055         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17056           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17057         else
17058           case ${MACOSX_DEPLOYMENT_TARGET} in
17059             10.[012])
17060               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17061               ;;
17062             10.*)
17063               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17064               ;;
17065           esac
17066         fi
17067         ;;
17068      esac
17069      archive_cmds_need_lc_GCJ=no
17070      hardcode_direct_GCJ=no
17071      hardcode_automatic_GCJ=yes
17072      hardcode_shlibpath_var_GCJ=unsupported
17073      whole_archive_flag_spec_GCJ=''
17074      link_all_deplibs_GCJ=yes
17075    if test "$GCC" = yes ; then
17076    	output_verbose_link_cmd='echo'
17077        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}"
17078        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17079        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}"
17080        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}"
17081    else
17082      case $cc_basename in
17083        xlc*)
17084         output_verbose_link_cmd='echo'
17085         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17086         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17087          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17088         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}'
17089          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}'
17090          ;;
17091       *)
17092         ld_shlibs_GCJ=no
17093          ;;
17094      esac
17095    fi
17096      ;;
17097
17098    dgux*)
17099      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17100      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17101      hardcode_shlibpath_var_GCJ=no
17102      ;;
17103
17104    freebsd1*)
17105      ld_shlibs_GCJ=no
17106      ;;
17107
17108    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17109    # support.  Future versions do this automatically, but an explicit c++rt0.o
17110    # does not break anything, and helps significantly (at the cost of a little
17111    # extra space).
17112    freebsd2.2*)
17113      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17114      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17115      hardcode_direct_GCJ=yes
17116      hardcode_shlibpath_var_GCJ=no
17117      ;;
17118
17119    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17120    freebsd2*)
17121      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17122      hardcode_direct_GCJ=yes
17123      hardcode_minus_L_GCJ=yes
17124      hardcode_shlibpath_var_GCJ=no
17125      ;;
17126
17127    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17128    freebsd* | dragonfly*)
17129      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17130      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17131      hardcode_direct_GCJ=yes
17132      hardcode_shlibpath_var_GCJ=no
17133      ;;
17134
17135    hpux9*)
17136      if test "$GCC" = yes; then
17137	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'
17138      else
17139	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'
17140      fi
17141      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17142      hardcode_libdir_separator_GCJ=:
17143      hardcode_direct_GCJ=yes
17144
17145      # hardcode_minus_L: Not really in the search PATH,
17146      # but as the default location of the library.
17147      hardcode_minus_L_GCJ=yes
17148      export_dynamic_flag_spec_GCJ='${wl}-E'
17149      ;;
17150
17151    hpux10*)
17152      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17153	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17154      else
17155	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17156      fi
17157      if test "$with_gnu_ld" = no; then
17158	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17159	hardcode_libdir_separator_GCJ=:
17160
17161	hardcode_direct_GCJ=yes
17162	export_dynamic_flag_spec_GCJ='${wl}-E'
17163
17164	# hardcode_minus_L: Not really in the search PATH,
17165	# but as the default location of the library.
17166	hardcode_minus_L_GCJ=yes
17167      fi
17168      ;;
17169
17170    hpux11*)
17171      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17172	case $host_cpu in
17173	hppa*64*)
17174	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17175	  ;;
17176	ia64*)
17177	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17178	  ;;
17179	*)
17180	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17181	  ;;
17182	esac
17183      else
17184	case $host_cpu in
17185	hppa*64*)
17186	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17187	  ;;
17188	ia64*)
17189	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17190	  ;;
17191	*)
17192	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17193	  ;;
17194	esac
17195      fi
17196      if test "$with_gnu_ld" = no; then
17197	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17198	hardcode_libdir_separator_GCJ=:
17199
17200	case $host_cpu in
17201	hppa*64*|ia64*)
17202	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17203	  hardcode_direct_GCJ=no
17204	  hardcode_shlibpath_var_GCJ=no
17205	  ;;
17206	*)
17207	  hardcode_direct_GCJ=yes
17208	  export_dynamic_flag_spec_GCJ='${wl}-E'
17209
17210	  # hardcode_minus_L: Not really in the search PATH,
17211	  # but as the default location of the library.
17212	  hardcode_minus_L_GCJ=yes
17213	  ;;
17214	esac
17215      fi
17216      ;;
17217
17218    irix5* | irix6* | nonstopux*)
17219      if test "$GCC" = yes; then
17220	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'
17221      else
17222	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'
17223	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17224      fi
17225      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17226      hardcode_libdir_separator_GCJ=:
17227      link_all_deplibs_GCJ=yes
17228      ;;
17229
17230    netbsd*)
17231      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17232	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17233      else
17234	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17235      fi
17236      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17237      hardcode_direct_GCJ=yes
17238      hardcode_shlibpath_var_GCJ=no
17239      ;;
17240
17241    newsos6)
17242      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17243      hardcode_direct_GCJ=yes
17244      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17245      hardcode_libdir_separator_GCJ=:
17246      hardcode_shlibpath_var_GCJ=no
17247      ;;
17248
17249    openbsd*)
17250      if test -f /usr/libexec/ld.so; then
17251	hardcode_direct_GCJ=yes
17252	hardcode_shlibpath_var_GCJ=no
17253	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17254	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17255	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17256	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17257	  export_dynamic_flag_spec_GCJ='${wl}-E'
17258	else
17259	  case $host_os in
17260	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17261	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17262	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
17263	     ;;
17264	   *)
17265	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17266	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17267	     ;;
17268	  esac
17269        fi
17270      else
17271	ld_shlibs_GCJ=no
17272      fi
17273      ;;
17274
17275    os2*)
17276      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17277      hardcode_minus_L_GCJ=yes
17278      allow_undefined_flag_GCJ=unsupported
17279      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'
17280      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17281      ;;
17282
17283    osf3*)
17284      if test "$GCC" = yes; then
17285	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17286	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'
17287      else
17288	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17289	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'
17290      fi
17291      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17292      hardcode_libdir_separator_GCJ=:
17293      ;;
17294
17295    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17296      if test "$GCC" = yes; then
17297	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17298	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'
17299	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17300      else
17301	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17302	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'
17303	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~
17304	$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'
17305
17306	# Both c and cxx compiler support -rpath directly
17307	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17308      fi
17309      hardcode_libdir_separator_GCJ=:
17310      ;;
17311
17312    solaris*)
17313      no_undefined_flag_GCJ=' -z text'
17314      if test "$GCC" = yes; then
17315	wlarc='${wl}'
17316	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17317	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17318	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17319      else
17320	wlarc=''
17321	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17322	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17323  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17324      fi
17325      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17326      hardcode_shlibpath_var_GCJ=no
17327      case $host_os in
17328      solaris2.[0-5] | solaris2.[0-5].*) ;;
17329      *)
17330	# The compiler driver will combine and reorder linker options,
17331	# but understands `-z linker_flag'.  GCC discards it without `$wl',
17332	# but is careful enough not to reorder.
17333 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17334	if test "$GCC" = yes; then
17335	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17336	else
17337	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17338	fi
17339	;;
17340      esac
17341      link_all_deplibs_GCJ=yes
17342      ;;
17343
17344    sunos4*)
17345      if test "x$host_vendor" = xsequent; then
17346	# Use $CC to link under sequent, because it throws in some extra .o
17347	# files that make .init and .fini sections work.
17348	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17349      else
17350	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17351      fi
17352      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17353      hardcode_direct_GCJ=yes
17354      hardcode_minus_L_GCJ=yes
17355      hardcode_shlibpath_var_GCJ=no
17356      ;;
17357
17358    sysv4)
17359      case $host_vendor in
17360	sni)
17361	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17362	  hardcode_direct_GCJ=yes # is this really true???
17363	;;
17364	siemens)
17365	  ## LD is ld it makes a PLAMLIB
17366	  ## CC just makes a GrossModule.
17367	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17368	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17369	  hardcode_direct_GCJ=no
17370        ;;
17371	motorola)
17372	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17373	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17374	;;
17375      esac
17376      runpath_var='LD_RUN_PATH'
17377      hardcode_shlibpath_var_GCJ=no
17378      ;;
17379
17380    sysv4.3*)
17381      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17382      hardcode_shlibpath_var_GCJ=no
17383      export_dynamic_flag_spec_GCJ='-Bexport'
17384      ;;
17385
17386    sysv4*MP*)
17387      if test -d /usr/nec; then
17388	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17389	hardcode_shlibpath_var_GCJ=no
17390	runpath_var=LD_RUN_PATH
17391	hardcode_runpath_var=yes
17392	ld_shlibs_GCJ=yes
17393      fi
17394      ;;
17395
17396    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17397      no_undefined_flag_GCJ='${wl}-z,text'
17398      archive_cmds_need_lc_GCJ=no
17399      hardcode_shlibpath_var_GCJ=no
17400      runpath_var='LD_RUN_PATH'
17401
17402      if test "$GCC" = yes; then
17403	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17404	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17405      else
17406	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17407	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17408      fi
17409      ;;
17410
17411    sysv5* | sco3.2v5* | sco5v6*)
17412      # Note: We can NOT use -z defs as we might desire, because we do not
17413      # link with -lc, and that would cause any symbols used from libc to
17414      # always be unresolved, which means just about no library would
17415      # ever link correctly.  If we're not using GNU ld we use -z text
17416      # though, which does catch some bad symbols but isn't as heavy-handed
17417      # as -z defs.
17418      no_undefined_flag_GCJ='${wl}-z,text'
17419      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17420      archive_cmds_need_lc_GCJ=no
17421      hardcode_shlibpath_var_GCJ=no
17422      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17423      hardcode_libdir_separator_GCJ=':'
17424      link_all_deplibs_GCJ=yes
17425      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17426      runpath_var='LD_RUN_PATH'
17427
17428      if test "$GCC" = yes; then
17429	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17430	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17431      else
17432	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17433	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17434      fi
17435      ;;
17436
17437    uts4*)
17438      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17439      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17440      hardcode_shlibpath_var_GCJ=no
17441      ;;
17442
17443    *)
17444      ld_shlibs_GCJ=no
17445      ;;
17446    esac
17447  fi
17448
17449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17450$as_echo "$ld_shlibs_GCJ" >&6; }
17451test "$ld_shlibs_GCJ" = no && can_build_shared=no
17452
17453#
17454# Do we need to explicitly link libc?
17455#
17456case "x$archive_cmds_need_lc_GCJ" in
17457x|xyes)
17458  # Assume -lc should be added
17459  archive_cmds_need_lc_GCJ=yes
17460
17461  if test "$enable_shared" = yes && test "$GCC" = yes; then
17462    case $archive_cmds_GCJ in
17463    *'~'*)
17464      # FIXME: we may have to deal with multi-command sequences.
17465      ;;
17466    '$CC '*)
17467      # Test whether the compiler implicitly links with -lc since on some
17468      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17469      # to ld, don't add -lc before -lgcc.
17470      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17471$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17472      $rm conftest*
17473      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17474
17475      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17476  (eval $ac_compile) 2>&5
17477  ac_status=$?
17478  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17479  test $ac_status = 0; } 2>conftest.err; then
17480        soname=conftest
17481        lib=conftest
17482        libobjs=conftest.$ac_objext
17483        deplibs=
17484        wl=$lt_prog_compiler_wl_GCJ
17485	pic_flag=$lt_prog_compiler_pic_GCJ
17486        compiler_flags=-v
17487        linker_flags=-v
17488        verstring=
17489        output_objdir=.
17490        libname=conftest
17491        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17492        allow_undefined_flag_GCJ=
17493        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17494  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17495  ac_status=$?
17496  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17497  test $ac_status = 0; }
17498        then
17499	  archive_cmds_need_lc_GCJ=no
17500        else
17501	  archive_cmds_need_lc_GCJ=yes
17502        fi
17503        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17504      else
17505        cat conftest.err 1>&5
17506      fi
17507      $rm conftest*
17508      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17509$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17510      ;;
17511    esac
17512  fi
17513  ;;
17514esac
17515
17516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17517$as_echo_n "checking dynamic linker characteristics... " >&6; }
17518library_names_spec=
17519libname_spec='lib$name'
17520soname_spec=
17521shrext_cmds=".so"
17522postinstall_cmds=
17523postuninstall_cmds=
17524finish_cmds=
17525finish_eval=
17526shlibpath_var=
17527shlibpath_overrides_runpath=unknown
17528version_type=none
17529dynamic_linker="$host_os ld.so"
17530sys_lib_dlsearch_path_spec="/lib /usr/lib"
17531
17532need_lib_prefix=unknown
17533hardcode_into_libs=no
17534
17535# when you set need_version to no, make sure it does not cause -set_version
17536# flags to be left without arguments
17537need_version=unknown
17538
17539case $host_os in
17540aix3*)
17541  version_type=linux
17542  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17543  shlibpath_var=LIBPATH
17544
17545  # AIX 3 has no versioning support, so we append a major version to the name.
17546  soname_spec='${libname}${release}${shared_ext}$major'
17547  ;;
17548
17549aix[4-9]*)
17550  version_type=linux
17551  need_lib_prefix=no
17552  need_version=no
17553  hardcode_into_libs=yes
17554  if test "$host_cpu" = ia64; then
17555    # AIX 5 supports IA64
17556    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17557    shlibpath_var=LD_LIBRARY_PATH
17558  else
17559    # With GCC up to 2.95.x, collect2 would create an import file
17560    # for dependence libraries.  The import file would start with
17561    # the line `#! .'.  This would cause the generated library to
17562    # depend on `.', always an invalid library.  This was fixed in
17563    # development snapshots of GCC prior to 3.0.
17564    case $host_os in
17565      aix4 | aix4.[01] | aix4.[01].*)
17566      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17567	   echo ' yes '
17568	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17569	:
17570      else
17571	can_build_shared=no
17572      fi
17573      ;;
17574    esac
17575    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17576    # soname into executable. Probably we can add versioning support to
17577    # collect2, so additional links can be useful in future.
17578    if test "$aix_use_runtimelinking" = yes; then
17579      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17580      # instead of lib<name>.a to let people know that these are not
17581      # typical AIX shared libraries.
17582      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17583    else
17584      # We preserve .a as extension for shared libraries through AIX4.2
17585      # and later when we are not doing run time linking.
17586      library_names_spec='${libname}${release}.a $libname.a'
17587      soname_spec='${libname}${release}${shared_ext}$major'
17588    fi
17589    shlibpath_var=LIBPATH
17590  fi
17591  ;;
17592
17593amigaos*)
17594  library_names_spec='$libname.ixlibrary $libname.a'
17595  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17596  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'
17597  ;;
17598
17599beos*)
17600  library_names_spec='${libname}${shared_ext}'
17601  dynamic_linker="$host_os ld.so"
17602  shlibpath_var=LIBRARY_PATH
17603  ;;
17604
17605bsdi[45]*)
17606  version_type=linux
17607  need_version=no
17608  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17609  soname_spec='${libname}${release}${shared_ext}$major'
17610  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17611  shlibpath_var=LD_LIBRARY_PATH
17612  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17613  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17614  # the default ld.so.conf also contains /usr/contrib/lib and
17615  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17616  # libtool to hard-code these into programs
17617  ;;
17618
17619cygwin* | mingw* | pw32*)
17620  version_type=windows
17621  shrext_cmds=".dll"
17622  need_version=no
17623  need_lib_prefix=no
17624
17625  case $GCC,$host_os in
17626  yes,cygwin* | yes,mingw* | yes,pw32*)
17627    library_names_spec='$libname.dll.a'
17628    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17629    postinstall_cmds='base_file=`basename \${file}`~
17630      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17631      dldir=$destdir/`dirname \$dlpath`~
17632      test -d \$dldir || mkdir -p \$dldir~
17633      $install_prog $dir/$dlname \$dldir/$dlname~
17634      chmod a+x \$dldir/$dlname'
17635    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17636      dlpath=$dir/\$dldll~
17637       $rm \$dlpath'
17638    shlibpath_overrides_runpath=yes
17639
17640    case $host_os in
17641    cygwin*)
17642      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17643      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17644      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17645      ;;
17646    mingw*)
17647      # MinGW DLLs use traditional 'lib' prefix
17648      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17649      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17650      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17651        # It is most probably a Windows format PATH printed by
17652        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17653        # path with ; separators, and with drive letters. We can handle the
17654        # drive letters (cygwin fileutils understands them), so leave them,
17655        # especially as we might pass files found there to a mingw objdump,
17656        # which wouldn't understand a cygwinified path. Ahh.
17657        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17658      else
17659        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17660      fi
17661      ;;
17662    pw32*)
17663      # pw32 DLLs use 'pw' prefix rather than 'lib'
17664      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17665      ;;
17666    esac
17667    ;;
17668
17669  *)
17670    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17671    ;;
17672  esac
17673  dynamic_linker='Win32 ld.exe'
17674  # FIXME: first we should search . and the directory the executable is in
17675  shlibpath_var=PATH
17676  ;;
17677
17678darwin* | rhapsody*)
17679  dynamic_linker="$host_os dyld"
17680  version_type=darwin
17681  need_lib_prefix=no
17682  need_version=no
17683  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17684  soname_spec='${libname}${release}${major}$shared_ext'
17685  shlibpath_overrides_runpath=yes
17686  shlibpath_var=DYLD_LIBRARY_PATH
17687  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17688
17689  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17690  ;;
17691
17692dgux*)
17693  version_type=linux
17694  need_lib_prefix=no
17695  need_version=no
17696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17697  soname_spec='${libname}${release}${shared_ext}$major'
17698  shlibpath_var=LD_LIBRARY_PATH
17699  ;;
17700
17701freebsd1*)
17702  dynamic_linker=no
17703  ;;
17704
17705freebsd* | dragonfly*)
17706  # DragonFly does not have aout.  When/if they implement a new
17707  # versioning mechanism, adjust this.
17708  if test -x /usr/bin/objformat; then
17709    objformat=`/usr/bin/objformat`
17710  else
17711    case $host_os in
17712    freebsd[123]*) objformat=aout ;;
17713    *) objformat=elf ;;
17714    esac
17715  fi
17716  version_type=freebsd-$objformat
17717  case $version_type in
17718    freebsd-elf*)
17719      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17720      need_version=no
17721      need_lib_prefix=no
17722      ;;
17723    freebsd-*)
17724      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17725      need_version=yes
17726      ;;
17727  esac
17728  shlibpath_var=LD_LIBRARY_PATH
17729  case $host_os in
17730  freebsd2*)
17731    shlibpath_overrides_runpath=yes
17732    ;;
17733  freebsd3.[01]* | freebsdelf3.[01]*)
17734    shlibpath_overrides_runpath=yes
17735    hardcode_into_libs=yes
17736    ;;
17737  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17738  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17739    shlibpath_overrides_runpath=no
17740    hardcode_into_libs=yes
17741    ;;
17742  *) # from 4.6 on, and DragonFly
17743    shlibpath_overrides_runpath=yes
17744    hardcode_into_libs=yes
17745    ;;
17746  esac
17747  ;;
17748
17749gnu*)
17750  version_type=linux
17751  need_lib_prefix=no
17752  need_version=no
17753  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17754  soname_spec='${libname}${release}${shared_ext}$major'
17755  shlibpath_var=LD_LIBRARY_PATH
17756  hardcode_into_libs=yes
17757  ;;
17758
17759hpux9* | hpux10* | hpux11*)
17760  # Give a soname corresponding to the major version so that dld.sl refuses to
17761  # link against other versions.
17762  version_type=sunos
17763  need_lib_prefix=no
17764  need_version=no
17765  case $host_cpu in
17766  ia64*)
17767    shrext_cmds='.so'
17768    hardcode_into_libs=yes
17769    dynamic_linker="$host_os dld.so"
17770    shlibpath_var=LD_LIBRARY_PATH
17771    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17772    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17773    soname_spec='${libname}${release}${shared_ext}$major'
17774    if test "X$HPUX_IA64_MODE" = X32; then
17775      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17776    else
17777      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17778    fi
17779    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17780    ;;
17781   hppa*64*)
17782     shrext_cmds='.sl'
17783     hardcode_into_libs=yes
17784     dynamic_linker="$host_os dld.sl"
17785     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17786     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17787     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17788     soname_spec='${libname}${release}${shared_ext}$major'
17789     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17790     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17791     ;;
17792   *)
17793    shrext_cmds='.sl'
17794    dynamic_linker="$host_os dld.sl"
17795    shlibpath_var=SHLIB_PATH
17796    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17797    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17798    soname_spec='${libname}${release}${shared_ext}$major'
17799    ;;
17800  esac
17801  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17802  postinstall_cmds='chmod 555 $lib'
17803  ;;
17804
17805interix[3-9]*)
17806  version_type=linux
17807  need_lib_prefix=no
17808  need_version=no
17809  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17810  soname_spec='${libname}${release}${shared_ext}$major'
17811  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17812  shlibpath_var=LD_LIBRARY_PATH
17813  shlibpath_overrides_runpath=no
17814  hardcode_into_libs=yes
17815  ;;
17816
17817irix5* | irix6* | nonstopux*)
17818  case $host_os in
17819    nonstopux*) version_type=nonstopux ;;
17820    *)
17821	if test "$lt_cv_prog_gnu_ld" = yes; then
17822		version_type=linux
17823	else
17824		version_type=irix
17825	fi ;;
17826  esac
17827  need_lib_prefix=no
17828  need_version=no
17829  soname_spec='${libname}${release}${shared_ext}$major'
17830  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17831  case $host_os in
17832  irix5* | nonstopux*)
17833    libsuff= shlibsuff=
17834    ;;
17835  *)
17836    case $LD in # libtool.m4 will add one of these switches to LD
17837    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17838      libsuff= shlibsuff= libmagic=32-bit;;
17839    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17840      libsuff=32 shlibsuff=N32 libmagic=N32;;
17841    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17842      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17843    *) libsuff= shlibsuff= libmagic=never-match;;
17844    esac
17845    ;;
17846  esac
17847  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17848  shlibpath_overrides_runpath=no
17849  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17850  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17851  hardcode_into_libs=yes
17852  ;;
17853
17854# No shared lib support for Linux oldld, aout, or coff.
17855linux*oldld* | linux*aout* | linux*coff*)
17856  dynamic_linker=no
17857  ;;
17858
17859# This must be Linux ELF.
17860linux* | k*bsd*-gnu)
17861  version_type=linux
17862  need_lib_prefix=no
17863  need_version=no
17864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17865  soname_spec='${libname}${release}${shared_ext}$major'
17866  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17867  shlibpath_var=LD_LIBRARY_PATH
17868  shlibpath_overrides_runpath=no
17869  # This implies no fast_install, which is unacceptable.
17870  # Some rework will be needed to allow for fast_install
17871  # before this can be enabled.
17872  hardcode_into_libs=yes
17873
17874  # Append ld.so.conf contents to the search path
17875  if test -f /etc/ld.so.conf; then
17876    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' ' '`
17877    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17878  fi
17879
17880  # We used to test for /lib/ld.so.1 and disable shared libraries on
17881  # powerpc, because MkLinux only supported shared libraries with the
17882  # GNU dynamic linker.  Since this was broken with cross compilers,
17883  # most powerpc-linux boxes support dynamic linking these days and
17884  # people can always --disable-shared, the test was removed, and we
17885  # assume the GNU/Linux dynamic linker is in use.
17886  dynamic_linker='GNU/Linux ld.so'
17887  ;;
17888
17889netbsd*)
17890  version_type=sunos
17891  need_lib_prefix=no
17892  need_version=no
17893  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17894    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17895    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17896    dynamic_linker='NetBSD (a.out) ld.so'
17897  else
17898    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17899    soname_spec='${libname}${release}${shared_ext}$major'
17900    dynamic_linker='NetBSD ld.elf_so'
17901  fi
17902  shlibpath_var=LD_LIBRARY_PATH
17903  shlibpath_overrides_runpath=yes
17904  hardcode_into_libs=yes
17905  ;;
17906
17907newsos6)
17908  version_type=linux
17909  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17910  shlibpath_var=LD_LIBRARY_PATH
17911  shlibpath_overrides_runpath=yes
17912  ;;
17913
17914nto-qnx*)
17915  version_type=linux
17916  need_lib_prefix=no
17917  need_version=no
17918  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17919  soname_spec='${libname}${release}${shared_ext}$major'
17920  shlibpath_var=LD_LIBRARY_PATH
17921  shlibpath_overrides_runpath=yes
17922  ;;
17923
17924openbsd*)
17925  version_type=sunos
17926  sys_lib_dlsearch_path_spec="/usr/lib"
17927  need_lib_prefix=no
17928  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17929  case $host_os in
17930    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17931    *)                         need_version=no  ;;
17932  esac
17933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17934  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17935  shlibpath_var=LD_LIBRARY_PATH
17936  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17937    case $host_os in
17938      openbsd2.[89] | openbsd2.[89].*)
17939	shlibpath_overrides_runpath=no
17940	;;
17941      *)
17942	shlibpath_overrides_runpath=yes
17943	;;
17944      esac
17945  else
17946    shlibpath_overrides_runpath=yes
17947  fi
17948  ;;
17949
17950os2*)
17951  libname_spec='$name'
17952  shrext_cmds=".dll"
17953  need_lib_prefix=no
17954  library_names_spec='$libname${shared_ext} $libname.a'
17955  dynamic_linker='OS/2 ld.exe'
17956  shlibpath_var=LIBPATH
17957  ;;
17958
17959osf3* | osf4* | osf5*)
17960  version_type=osf
17961  need_lib_prefix=no
17962  need_version=no
17963  soname_spec='${libname}${release}${shared_ext}$major'
17964  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17965  shlibpath_var=LD_LIBRARY_PATH
17966  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17967  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17968  ;;
17969
17970rdos*)
17971  dynamic_linker=no
17972  ;;
17973
17974solaris*)
17975  version_type=linux
17976  need_lib_prefix=no
17977  need_version=no
17978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17979  soname_spec='${libname}${release}${shared_ext}$major'
17980  shlibpath_var=LD_LIBRARY_PATH
17981  shlibpath_overrides_runpath=yes
17982  hardcode_into_libs=yes
17983  # ldd complains unless libraries are executable
17984  postinstall_cmds='chmod +x $lib'
17985  ;;
17986
17987sunos4*)
17988  version_type=sunos
17989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17990  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17991  shlibpath_var=LD_LIBRARY_PATH
17992  shlibpath_overrides_runpath=yes
17993  if test "$with_gnu_ld" = yes; then
17994    need_lib_prefix=no
17995  fi
17996  need_version=yes
17997  ;;
17998
17999sysv4 | sysv4.3*)
18000  version_type=linux
18001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18002  soname_spec='${libname}${release}${shared_ext}$major'
18003  shlibpath_var=LD_LIBRARY_PATH
18004  case $host_vendor in
18005    sni)
18006      shlibpath_overrides_runpath=no
18007      need_lib_prefix=no
18008      export_dynamic_flag_spec='${wl}-Blargedynsym'
18009      runpath_var=LD_RUN_PATH
18010      ;;
18011    siemens)
18012      need_lib_prefix=no
18013      ;;
18014    motorola)
18015      need_lib_prefix=no
18016      need_version=no
18017      shlibpath_overrides_runpath=no
18018      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18019      ;;
18020  esac
18021  ;;
18022
18023sysv4*MP*)
18024  if test -d /usr/nec ;then
18025    version_type=linux
18026    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18027    soname_spec='$libname${shared_ext}.$major'
18028    shlibpath_var=LD_LIBRARY_PATH
18029  fi
18030  ;;
18031
18032sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18033  version_type=freebsd-elf
18034  need_lib_prefix=no
18035  need_version=no
18036  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18037  soname_spec='${libname}${release}${shared_ext}$major'
18038  shlibpath_var=LD_LIBRARY_PATH
18039  hardcode_into_libs=yes
18040  if test "$with_gnu_ld" = yes; then
18041    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18042    shlibpath_overrides_runpath=no
18043  else
18044    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18045    shlibpath_overrides_runpath=yes
18046    case $host_os in
18047      sco3.2v5*)
18048        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18049	;;
18050    esac
18051  fi
18052  sys_lib_dlsearch_path_spec='/usr/lib'
18053  ;;
18054
18055uts4*)
18056  version_type=linux
18057  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18058  soname_spec='${libname}${release}${shared_ext}$major'
18059  shlibpath_var=LD_LIBRARY_PATH
18060  ;;
18061
18062*)
18063  dynamic_linker=no
18064  ;;
18065esac
18066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18067$as_echo "$dynamic_linker" >&6; }
18068test "$dynamic_linker" = no && can_build_shared=no
18069
18070if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
18071  $as_echo_n "(cached) " >&6
18072else
18073  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18074fi
18075
18076sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18077if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
18078  $as_echo_n "(cached) " >&6
18079else
18080  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18081fi
18082
18083sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18084
18085variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18086if test "$GCC" = yes; then
18087  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18088fi
18089
18090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18091$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18092hardcode_action_GCJ=
18093if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18094   test -n "$runpath_var_GCJ" || \
18095   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18096
18097  # We can hardcode non-existant directories.
18098  if test "$hardcode_direct_GCJ" != no &&
18099     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18100     # have to relink, otherwise we might link with an installed library
18101     # when we should be linking with a yet-to-be-installed one
18102     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18103     test "$hardcode_minus_L_GCJ" != no; then
18104    # Linking always hardcodes the temporary library directory.
18105    hardcode_action_GCJ=relink
18106  else
18107    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18108    hardcode_action_GCJ=immediate
18109  fi
18110else
18111  # We cannot hardcode anything, or else we can only hardcode existing
18112  # directories.
18113  hardcode_action_GCJ=unsupported
18114fi
18115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18116$as_echo "$hardcode_action_GCJ" >&6; }
18117
18118if test "$hardcode_action_GCJ" = relink; then
18119  # Fast installation is not supported
18120  enable_fast_install=no
18121elif test "$shlibpath_overrides_runpath" = yes ||
18122     test "$enable_shared" = no; then
18123  # Fast installation is not necessary
18124  enable_fast_install=needless
18125fi
18126
18127
18128# The else clause should only fire when bootstrapping the
18129# libtool distribution, otherwise you forgot to ship ltmain.sh
18130# with your package, and you will get complaints that there are
18131# no rules to generate ltmain.sh.
18132if test -f "$ltmain"; then
18133  # See if we are running on zsh, and set the options which allow our commands through
18134  # without removal of \ escapes.
18135  if test -n "${ZSH_VERSION+set}" ; then
18136    setopt NO_GLOB_SUBST
18137  fi
18138  # Now quote all the things that may contain metacharacters while being
18139  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18140  # variables and quote the copies for generation of the libtool script.
18141  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18142    SED SHELL STRIP \
18143    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18144    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18145    deplibs_check_method reload_flag reload_cmds need_locks \
18146    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18147    lt_cv_sys_global_symbol_to_c_name_address \
18148    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18149    old_postinstall_cmds old_postuninstall_cmds \
18150    compiler_GCJ \
18151    CC_GCJ \
18152    LD_GCJ \
18153    lt_prog_compiler_wl_GCJ \
18154    lt_prog_compiler_pic_GCJ \
18155    lt_prog_compiler_static_GCJ \
18156    lt_prog_compiler_no_builtin_flag_GCJ \
18157    export_dynamic_flag_spec_GCJ \
18158    thread_safe_flag_spec_GCJ \
18159    whole_archive_flag_spec_GCJ \
18160    enable_shared_with_static_runtimes_GCJ \
18161    old_archive_cmds_GCJ \
18162    old_archive_from_new_cmds_GCJ \
18163    predep_objects_GCJ \
18164    postdep_objects_GCJ \
18165    predeps_GCJ \
18166    postdeps_GCJ \
18167    compiler_lib_search_path_GCJ \
18168    compiler_lib_search_dirs_GCJ \
18169    archive_cmds_GCJ \
18170    archive_expsym_cmds_GCJ \
18171    postinstall_cmds_GCJ \
18172    postuninstall_cmds_GCJ \
18173    old_archive_from_expsyms_cmds_GCJ \
18174    allow_undefined_flag_GCJ \
18175    no_undefined_flag_GCJ \
18176    export_symbols_cmds_GCJ \
18177    hardcode_libdir_flag_spec_GCJ \
18178    hardcode_libdir_flag_spec_ld_GCJ \
18179    hardcode_libdir_separator_GCJ \
18180    hardcode_automatic_GCJ \
18181    module_cmds_GCJ \
18182    module_expsym_cmds_GCJ \
18183    lt_cv_prog_compiler_c_o_GCJ \
18184    fix_srcfile_path_GCJ \
18185    exclude_expsyms_GCJ \
18186    include_expsyms_GCJ; do
18187
18188    case $var in
18189    old_archive_cmds_GCJ | \
18190    old_archive_from_new_cmds_GCJ | \
18191    archive_cmds_GCJ | \
18192    archive_expsym_cmds_GCJ | \
18193    module_cmds_GCJ | \
18194    module_expsym_cmds_GCJ | \
18195    old_archive_from_expsyms_cmds_GCJ | \
18196    export_symbols_cmds_GCJ | \
18197    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18198    postinstall_cmds | postuninstall_cmds | \
18199    old_postinstall_cmds | old_postuninstall_cmds | \
18200    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18201      # Double-quote double-evaled strings.
18202      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18203      ;;
18204    *)
18205      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18206      ;;
18207    esac
18208  done
18209
18210  case $lt_echo in
18211  *'\$0 --fallback-echo"')
18212    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18213    ;;
18214  esac
18215
18216cfgfile="$ofile"
18217
18218  cat <<__EOF__ >> "$cfgfile"
18219# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18220
18221# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18222
18223# Shell to use when invoking shell scripts.
18224SHELL=$lt_SHELL
18225
18226# Whether or not to build shared libraries.
18227build_libtool_libs=$enable_shared
18228
18229# Whether or not to build static libraries.
18230build_old_libs=$enable_static
18231
18232# Whether or not to add -lc for building shared libraries.
18233build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18234
18235# Whether or not to disallow shared libs when runtime libs are static
18236allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18237
18238# Whether or not to optimize for fast installation.
18239fast_install=$enable_fast_install
18240
18241# The host system.
18242host_alias=$host_alias
18243host=$host
18244host_os=$host_os
18245
18246# The build system.
18247build_alias=$build_alias
18248build=$build
18249build_os=$build_os
18250
18251# An echo program that does not interpret backslashes.
18252echo=$lt_echo
18253
18254# The archiver.
18255AR=$lt_AR
18256AR_FLAGS=$lt_AR_FLAGS
18257
18258# A C compiler.
18259LTCC=$lt_LTCC
18260
18261# LTCC compiler flags.
18262LTCFLAGS=$lt_LTCFLAGS
18263
18264# A language-specific compiler.
18265CC=$lt_compiler_GCJ
18266
18267# Is the compiler the GNU C compiler?
18268with_gcc=$GCC_GCJ
18269
18270# An ERE matcher.
18271EGREP=$lt_EGREP
18272
18273# The linker used to build libraries.
18274LD=$lt_LD_GCJ
18275
18276# Whether we need hard or soft links.
18277LN_S=$lt_LN_S
18278
18279# A BSD-compatible nm program.
18280NM=$lt_NM
18281
18282# A symbol stripping program
18283STRIP=$lt_STRIP
18284
18285# Used to examine libraries when file_magic_cmd begins "file"
18286MAGIC_CMD=$MAGIC_CMD
18287
18288# Used on cygwin: DLL creation program.
18289DLLTOOL="$DLLTOOL"
18290
18291# Used on cygwin: object dumper.
18292OBJDUMP="$OBJDUMP"
18293
18294# Used on cygwin: assembler.
18295AS="$AS"
18296
18297# The name of the directory that contains temporary libtool files.
18298objdir=$objdir
18299
18300# How to create reloadable object files.
18301reload_flag=$lt_reload_flag
18302reload_cmds=$lt_reload_cmds
18303
18304# How to pass a linker flag through the compiler.
18305wl=$lt_lt_prog_compiler_wl_GCJ
18306
18307# Object file suffix (normally "o").
18308objext="$ac_objext"
18309
18310# Old archive suffix (normally "a").
18311libext="$libext"
18312
18313# Shared library suffix (normally ".so").
18314shrext_cmds='$shrext_cmds'
18315
18316# Executable file suffix (normally "").
18317exeext="$exeext"
18318
18319# Additional compiler flags for building library objects.
18320pic_flag=$lt_lt_prog_compiler_pic_GCJ
18321pic_mode=$pic_mode
18322
18323# What is the maximum length of a command?
18324max_cmd_len=$lt_cv_sys_max_cmd_len
18325
18326# Does compiler simultaneously support -c and -o options?
18327compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18328
18329# Must we lock files when doing compilation?
18330need_locks=$lt_need_locks
18331
18332# Do we need the lib prefix for modules?
18333need_lib_prefix=$need_lib_prefix
18334
18335# Do we need a version for libraries?
18336need_version=$need_version
18337
18338# Whether dlopen is supported.
18339dlopen_support=$enable_dlopen
18340
18341# Whether dlopen of programs is supported.
18342dlopen_self=$enable_dlopen_self
18343
18344# Whether dlopen of statically linked programs is supported.
18345dlopen_self_static=$enable_dlopen_self_static
18346
18347# Compiler flag to prevent dynamic linking.
18348link_static_flag=$lt_lt_prog_compiler_static_GCJ
18349
18350# Compiler flag to turn off builtin functions.
18351no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18352
18353# Compiler flag to allow reflexive dlopens.
18354export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18355
18356# Compiler flag to generate shared objects directly from archives.
18357whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18358
18359# Compiler flag to generate thread-safe objects.
18360thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18361
18362# Library versioning type.
18363version_type=$version_type
18364
18365# Format of library name prefix.
18366libname_spec=$lt_libname_spec
18367
18368# List of archive names.  First name is the real one, the rest are links.
18369# The last name is the one that the linker finds with -lNAME.
18370library_names_spec=$lt_library_names_spec
18371
18372# The coded name of the library, if different from the real name.
18373soname_spec=$lt_soname_spec
18374
18375# Commands used to build and install an old-style archive.
18376RANLIB=$lt_RANLIB
18377old_archive_cmds=$lt_old_archive_cmds_GCJ
18378old_postinstall_cmds=$lt_old_postinstall_cmds
18379old_postuninstall_cmds=$lt_old_postuninstall_cmds
18380
18381# Create an old-style archive from a shared archive.
18382old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18383
18384# Create a temporary old-style archive to link instead of a shared archive.
18385old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18386
18387# Commands used to build and install a shared archive.
18388archive_cmds=$lt_archive_cmds_GCJ
18389archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18390postinstall_cmds=$lt_postinstall_cmds
18391postuninstall_cmds=$lt_postuninstall_cmds
18392
18393# Commands used to build a loadable module (assumed same as above if empty)
18394module_cmds=$lt_module_cmds_GCJ
18395module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18396
18397# Commands to strip libraries.
18398old_striplib=$lt_old_striplib
18399striplib=$lt_striplib
18400
18401# Dependencies to place before the objects being linked to create a
18402# shared library.
18403predep_objects=$lt_predep_objects_GCJ
18404
18405# Dependencies to place after the objects being linked to create a
18406# shared library.
18407postdep_objects=$lt_postdep_objects_GCJ
18408
18409# Dependencies to place before the objects being linked to create a
18410# shared library.
18411predeps=$lt_predeps_GCJ
18412
18413# Dependencies to place after the objects being linked to create a
18414# shared library.
18415postdeps=$lt_postdeps_GCJ
18416
18417# The directories searched by this compiler when creating a shared
18418# library
18419compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18420
18421# The library search path used internally by the compiler when linking
18422# a shared library.
18423compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18424
18425# Method to check whether dependent libraries are shared objects.
18426deplibs_check_method=$lt_deplibs_check_method
18427
18428# Command to use when deplibs_check_method == file_magic.
18429file_magic_cmd=$lt_file_magic_cmd
18430
18431# Flag that allows shared libraries with undefined symbols to be built.
18432allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18433
18434# Flag that forces no undefined symbols.
18435no_undefined_flag=$lt_no_undefined_flag_GCJ
18436
18437# Commands used to finish a libtool library installation in a directory.
18438finish_cmds=$lt_finish_cmds
18439
18440# Same as above, but a single script fragment to be evaled but not shown.
18441finish_eval=$lt_finish_eval
18442
18443# Take the output of nm and produce a listing of raw symbols and C names.
18444global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18445
18446# Transform the output of nm in a proper C declaration
18447global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18448
18449# Transform the output of nm in a C name address pair
18450global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18451
18452# This is the shared library runtime path variable.
18453runpath_var=$runpath_var
18454
18455# This is the shared library path variable.
18456shlibpath_var=$shlibpath_var
18457
18458# Is shlibpath searched before the hard-coded library search path?
18459shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18460
18461# How to hardcode a shared library path into an executable.
18462hardcode_action=$hardcode_action_GCJ
18463
18464# Whether we should hardcode library paths into libraries.
18465hardcode_into_libs=$hardcode_into_libs
18466
18467# Flag to hardcode \$libdir into a binary during linking.
18468# This must work even if \$libdir does not exist.
18469hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18470
18471# If ld is used when linking, flag to hardcode \$libdir into
18472# a binary during linking. This must work even if \$libdir does
18473# not exist.
18474hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18475
18476# Whether we need a single -rpath flag with a separated argument.
18477hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18478
18479# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18480# resulting binary.
18481hardcode_direct=$hardcode_direct_GCJ
18482
18483# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18484# resulting binary.
18485hardcode_minus_L=$hardcode_minus_L_GCJ
18486
18487# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18488# the resulting binary.
18489hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18490
18491# Set to yes if building a shared library automatically hardcodes DIR into the library
18492# and all subsequent libraries and executables linked against it.
18493hardcode_automatic=$hardcode_automatic_GCJ
18494
18495# Variables whose values should be saved in libtool wrapper scripts and
18496# restored at relink time.
18497variables_saved_for_relink="$variables_saved_for_relink"
18498
18499# Whether libtool must link a program against all its dependency libraries.
18500link_all_deplibs=$link_all_deplibs_GCJ
18501
18502# Compile-time system search path for libraries
18503sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18504
18505# Run-time system search path for libraries
18506sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18507
18508# Fix the shell variable \$srcfile for the compiler.
18509fix_srcfile_path=$lt_fix_srcfile_path
18510
18511# Set to yes if exported symbols are required.
18512always_export_symbols=$always_export_symbols_GCJ
18513
18514# The commands to list exported symbols.
18515export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18516
18517# The commands to extract the exported symbol list from a shared archive.
18518extract_expsyms_cmds=$lt_extract_expsyms_cmds
18519
18520# Symbols that should not be listed in the preloaded symbols.
18521exclude_expsyms=$lt_exclude_expsyms_GCJ
18522
18523# Symbols that must always be exported.
18524include_expsyms=$lt_include_expsyms_GCJ
18525
18526# ### END LIBTOOL TAG CONFIG: $tagname
18527
18528__EOF__
18529
18530
18531else
18532  # If there is no Makefile yet, we rely on a make rule to execute
18533  # `config.status --recheck' to rerun these tests and create the
18534  # libtool script then.
18535  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18536  if test -f "$ltmain_in"; then
18537    test -f Makefile && make "$ltmain"
18538  fi
18539fi
18540
18541
18542ac_ext=c
18543ac_cpp='$CPP $CPPFLAGS'
18544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18546ac_compiler_gnu=$ac_cv_c_compiler_gnu
18547
18548CC="$lt_save_CC"
18549
18550	else
18551	  tagname=""
18552	fi
18553	;;
18554
18555      RC)
18556
18557
18558# Source file extension for RC test sources.
18559ac_ext=rc
18560
18561# Object file extension for compiled RC test sources.
18562objext=o
18563objext_RC=$objext
18564
18565# Code to be used in simple compile tests
18566lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18567
18568# Code to be used in simple link tests
18569lt_simple_link_test_code="$lt_simple_compile_test_code"
18570
18571# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18572
18573# If no C compiler was specified, use CC.
18574LTCC=${LTCC-"$CC"}
18575
18576# If no C compiler flags were specified, use CFLAGS.
18577LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18578
18579# Allow CC to be a program name with arguments.
18580compiler=$CC
18581
18582
18583# save warnings/boilerplate of simple test code
18584ac_outfile=conftest.$ac_objext
18585echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18586eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18587_lt_compiler_boilerplate=`cat conftest.err`
18588$rm conftest*
18589
18590ac_outfile=conftest.$ac_objext
18591echo "$lt_simple_link_test_code" >conftest.$ac_ext
18592eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18593_lt_linker_boilerplate=`cat conftest.err`
18594$rm -r conftest*
18595
18596
18597# Allow CC to be a program name with arguments.
18598lt_save_CC="$CC"
18599CC=${RC-"windres"}
18600compiler=$CC
18601compiler_RC=$CC
18602for cc_temp in $compiler""; do
18603  case $cc_temp in
18604    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18605    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18606    \-*) ;;
18607    *) break;;
18608  esac
18609done
18610cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18611
18612lt_cv_prog_compiler_c_o_RC=yes
18613
18614# The else clause should only fire when bootstrapping the
18615# libtool distribution, otherwise you forgot to ship ltmain.sh
18616# with your package, and you will get complaints that there are
18617# no rules to generate ltmain.sh.
18618if test -f "$ltmain"; then
18619  # See if we are running on zsh, and set the options which allow our commands through
18620  # without removal of \ escapes.
18621  if test -n "${ZSH_VERSION+set}" ; then
18622    setopt NO_GLOB_SUBST
18623  fi
18624  # Now quote all the things that may contain metacharacters while being
18625  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18626  # variables and quote the copies for generation of the libtool script.
18627  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18628    SED SHELL STRIP \
18629    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18630    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18631    deplibs_check_method reload_flag reload_cmds need_locks \
18632    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18633    lt_cv_sys_global_symbol_to_c_name_address \
18634    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18635    old_postinstall_cmds old_postuninstall_cmds \
18636    compiler_RC \
18637    CC_RC \
18638    LD_RC \
18639    lt_prog_compiler_wl_RC \
18640    lt_prog_compiler_pic_RC \
18641    lt_prog_compiler_static_RC \
18642    lt_prog_compiler_no_builtin_flag_RC \
18643    export_dynamic_flag_spec_RC \
18644    thread_safe_flag_spec_RC \
18645    whole_archive_flag_spec_RC \
18646    enable_shared_with_static_runtimes_RC \
18647    old_archive_cmds_RC \
18648    old_archive_from_new_cmds_RC \
18649    predep_objects_RC \
18650    postdep_objects_RC \
18651    predeps_RC \
18652    postdeps_RC \
18653    compiler_lib_search_path_RC \
18654    compiler_lib_search_dirs_RC \
18655    archive_cmds_RC \
18656    archive_expsym_cmds_RC \
18657    postinstall_cmds_RC \
18658    postuninstall_cmds_RC \
18659    old_archive_from_expsyms_cmds_RC \
18660    allow_undefined_flag_RC \
18661    no_undefined_flag_RC \
18662    export_symbols_cmds_RC \
18663    hardcode_libdir_flag_spec_RC \
18664    hardcode_libdir_flag_spec_ld_RC \
18665    hardcode_libdir_separator_RC \
18666    hardcode_automatic_RC \
18667    module_cmds_RC \
18668    module_expsym_cmds_RC \
18669    lt_cv_prog_compiler_c_o_RC \
18670    fix_srcfile_path_RC \
18671    exclude_expsyms_RC \
18672    include_expsyms_RC; do
18673
18674    case $var in
18675    old_archive_cmds_RC | \
18676    old_archive_from_new_cmds_RC | \
18677    archive_cmds_RC | \
18678    archive_expsym_cmds_RC | \
18679    module_cmds_RC | \
18680    module_expsym_cmds_RC | \
18681    old_archive_from_expsyms_cmds_RC | \
18682    export_symbols_cmds_RC | \
18683    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18684    postinstall_cmds | postuninstall_cmds | \
18685    old_postinstall_cmds | old_postuninstall_cmds | \
18686    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18687      # Double-quote double-evaled strings.
18688      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18689      ;;
18690    *)
18691      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18692      ;;
18693    esac
18694  done
18695
18696  case $lt_echo in
18697  *'\$0 --fallback-echo"')
18698    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18699    ;;
18700  esac
18701
18702cfgfile="$ofile"
18703
18704  cat <<__EOF__ >> "$cfgfile"
18705# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18706
18707# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18708
18709# Shell to use when invoking shell scripts.
18710SHELL=$lt_SHELL
18711
18712# Whether or not to build shared libraries.
18713build_libtool_libs=$enable_shared
18714
18715# Whether or not to build static libraries.
18716build_old_libs=$enable_static
18717
18718# Whether or not to add -lc for building shared libraries.
18719build_libtool_need_lc=$archive_cmds_need_lc_RC
18720
18721# Whether or not to disallow shared libs when runtime libs are static
18722allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18723
18724# Whether or not to optimize for fast installation.
18725fast_install=$enable_fast_install
18726
18727# The host system.
18728host_alias=$host_alias
18729host=$host
18730host_os=$host_os
18731
18732# The build system.
18733build_alias=$build_alias
18734build=$build
18735build_os=$build_os
18736
18737# An echo program that does not interpret backslashes.
18738echo=$lt_echo
18739
18740# The archiver.
18741AR=$lt_AR
18742AR_FLAGS=$lt_AR_FLAGS
18743
18744# A C compiler.
18745LTCC=$lt_LTCC
18746
18747# LTCC compiler flags.
18748LTCFLAGS=$lt_LTCFLAGS
18749
18750# A language-specific compiler.
18751CC=$lt_compiler_RC
18752
18753# Is the compiler the GNU C compiler?
18754with_gcc=$GCC_RC
18755
18756# An ERE matcher.
18757EGREP=$lt_EGREP
18758
18759# The linker used to build libraries.
18760LD=$lt_LD_RC
18761
18762# Whether we need hard or soft links.
18763LN_S=$lt_LN_S
18764
18765# A BSD-compatible nm program.
18766NM=$lt_NM
18767
18768# A symbol stripping program
18769STRIP=$lt_STRIP
18770
18771# Used to examine libraries when file_magic_cmd begins "file"
18772MAGIC_CMD=$MAGIC_CMD
18773
18774# Used on cygwin: DLL creation program.
18775DLLTOOL="$DLLTOOL"
18776
18777# Used on cygwin: object dumper.
18778OBJDUMP="$OBJDUMP"
18779
18780# Used on cygwin: assembler.
18781AS="$AS"
18782
18783# The name of the directory that contains temporary libtool files.
18784objdir=$objdir
18785
18786# How to create reloadable object files.
18787reload_flag=$lt_reload_flag
18788reload_cmds=$lt_reload_cmds
18789
18790# How to pass a linker flag through the compiler.
18791wl=$lt_lt_prog_compiler_wl_RC
18792
18793# Object file suffix (normally "o").
18794objext="$ac_objext"
18795
18796# Old archive suffix (normally "a").
18797libext="$libext"
18798
18799# Shared library suffix (normally ".so").
18800shrext_cmds='$shrext_cmds'
18801
18802# Executable file suffix (normally "").
18803exeext="$exeext"
18804
18805# Additional compiler flags for building library objects.
18806pic_flag=$lt_lt_prog_compiler_pic_RC
18807pic_mode=$pic_mode
18808
18809# What is the maximum length of a command?
18810max_cmd_len=$lt_cv_sys_max_cmd_len
18811
18812# Does compiler simultaneously support -c and -o options?
18813compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18814
18815# Must we lock files when doing compilation?
18816need_locks=$lt_need_locks
18817
18818# Do we need the lib prefix for modules?
18819need_lib_prefix=$need_lib_prefix
18820
18821# Do we need a version for libraries?
18822need_version=$need_version
18823
18824# Whether dlopen is supported.
18825dlopen_support=$enable_dlopen
18826
18827# Whether dlopen of programs is supported.
18828dlopen_self=$enable_dlopen_self
18829
18830# Whether dlopen of statically linked programs is supported.
18831dlopen_self_static=$enable_dlopen_self_static
18832
18833# Compiler flag to prevent dynamic linking.
18834link_static_flag=$lt_lt_prog_compiler_static_RC
18835
18836# Compiler flag to turn off builtin functions.
18837no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18838
18839# Compiler flag to allow reflexive dlopens.
18840export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18841
18842# Compiler flag to generate shared objects directly from archives.
18843whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18844
18845# Compiler flag to generate thread-safe objects.
18846thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18847
18848# Library versioning type.
18849version_type=$version_type
18850
18851# Format of library name prefix.
18852libname_spec=$lt_libname_spec
18853
18854# List of archive names.  First name is the real one, the rest are links.
18855# The last name is the one that the linker finds with -lNAME.
18856library_names_spec=$lt_library_names_spec
18857
18858# The coded name of the library, if different from the real name.
18859soname_spec=$lt_soname_spec
18860
18861# Commands used to build and install an old-style archive.
18862RANLIB=$lt_RANLIB
18863old_archive_cmds=$lt_old_archive_cmds_RC
18864old_postinstall_cmds=$lt_old_postinstall_cmds
18865old_postuninstall_cmds=$lt_old_postuninstall_cmds
18866
18867# Create an old-style archive from a shared archive.
18868old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18869
18870# Create a temporary old-style archive to link instead of a shared archive.
18871old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18872
18873# Commands used to build and install a shared archive.
18874archive_cmds=$lt_archive_cmds_RC
18875archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18876postinstall_cmds=$lt_postinstall_cmds
18877postuninstall_cmds=$lt_postuninstall_cmds
18878
18879# Commands used to build a loadable module (assumed same as above if empty)
18880module_cmds=$lt_module_cmds_RC
18881module_expsym_cmds=$lt_module_expsym_cmds_RC
18882
18883# Commands to strip libraries.
18884old_striplib=$lt_old_striplib
18885striplib=$lt_striplib
18886
18887# Dependencies to place before the objects being linked to create a
18888# shared library.
18889predep_objects=$lt_predep_objects_RC
18890
18891# Dependencies to place after the objects being linked to create a
18892# shared library.
18893postdep_objects=$lt_postdep_objects_RC
18894
18895# Dependencies to place before the objects being linked to create a
18896# shared library.
18897predeps=$lt_predeps_RC
18898
18899# Dependencies to place after the objects being linked to create a
18900# shared library.
18901postdeps=$lt_postdeps_RC
18902
18903# The directories searched by this compiler when creating a shared
18904# library
18905compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
18906
18907# The library search path used internally by the compiler when linking
18908# a shared library.
18909compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18910
18911# Method to check whether dependent libraries are shared objects.
18912deplibs_check_method=$lt_deplibs_check_method
18913
18914# Command to use when deplibs_check_method == file_magic.
18915file_magic_cmd=$lt_file_magic_cmd
18916
18917# Flag that allows shared libraries with undefined symbols to be built.
18918allow_undefined_flag=$lt_allow_undefined_flag_RC
18919
18920# Flag that forces no undefined symbols.
18921no_undefined_flag=$lt_no_undefined_flag_RC
18922
18923# Commands used to finish a libtool library installation in a directory.
18924finish_cmds=$lt_finish_cmds
18925
18926# Same as above, but a single script fragment to be evaled but not shown.
18927finish_eval=$lt_finish_eval
18928
18929# Take the output of nm and produce a listing of raw symbols and C names.
18930global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18931
18932# Transform the output of nm in a proper C declaration
18933global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18934
18935# Transform the output of nm in a C name address pair
18936global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18937
18938# This is the shared library runtime path variable.
18939runpath_var=$runpath_var
18940
18941# This is the shared library path variable.
18942shlibpath_var=$shlibpath_var
18943
18944# Is shlibpath searched before the hard-coded library search path?
18945shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18946
18947# How to hardcode a shared library path into an executable.
18948hardcode_action=$hardcode_action_RC
18949
18950# Whether we should hardcode library paths into libraries.
18951hardcode_into_libs=$hardcode_into_libs
18952
18953# Flag to hardcode \$libdir into a binary during linking.
18954# This must work even if \$libdir does not exist.
18955hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18956
18957# If ld is used when linking, flag to hardcode \$libdir into
18958# a binary during linking. This must work even if \$libdir does
18959# not exist.
18960hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18961
18962# Whether we need a single -rpath flag with a separated argument.
18963hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18964
18965# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18966# resulting binary.
18967hardcode_direct=$hardcode_direct_RC
18968
18969# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18970# resulting binary.
18971hardcode_minus_L=$hardcode_minus_L_RC
18972
18973# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18974# the resulting binary.
18975hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18976
18977# Set to yes if building a shared library automatically hardcodes DIR into the library
18978# and all subsequent libraries and executables linked against it.
18979hardcode_automatic=$hardcode_automatic_RC
18980
18981# Variables whose values should be saved in libtool wrapper scripts and
18982# restored at relink time.
18983variables_saved_for_relink="$variables_saved_for_relink"
18984
18985# Whether libtool must link a program against all its dependency libraries.
18986link_all_deplibs=$link_all_deplibs_RC
18987
18988# Compile-time system search path for libraries
18989sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18990
18991# Run-time system search path for libraries
18992sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18993
18994# Fix the shell variable \$srcfile for the compiler.
18995fix_srcfile_path=$lt_fix_srcfile_path
18996
18997# Set to yes if exported symbols are required.
18998always_export_symbols=$always_export_symbols_RC
18999
19000# The commands to list exported symbols.
19001export_symbols_cmds=$lt_export_symbols_cmds_RC
19002
19003# The commands to extract the exported symbol list from a shared archive.
19004extract_expsyms_cmds=$lt_extract_expsyms_cmds
19005
19006# Symbols that should not be listed in the preloaded symbols.
19007exclude_expsyms=$lt_exclude_expsyms_RC
19008
19009# Symbols that must always be exported.
19010include_expsyms=$lt_include_expsyms_RC
19011
19012# ### END LIBTOOL TAG CONFIG: $tagname
19013
19014__EOF__
19015
19016
19017else
19018  # If there is no Makefile yet, we rely on a make rule to execute
19019  # `config.status --recheck' to rerun these tests and create the
19020  # libtool script then.
19021  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19022  if test -f "$ltmain_in"; then
19023    test -f Makefile && make "$ltmain"
19024  fi
19025fi
19026
19027
19028ac_ext=c
19029ac_cpp='$CPP $CPPFLAGS'
19030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19032ac_compiler_gnu=$ac_cv_c_compiler_gnu
19033
19034CC="$lt_save_CC"
19035
19036	;;
19037
19038      *)
19039	as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19040	;;
19041      esac
19042
19043      # Append the new tag name to the list of available tags.
19044      if test -n "$tagname" ; then
19045      available_tags="$available_tags $tagname"
19046    fi
19047    fi
19048  done
19049  IFS="$lt_save_ifs"
19050
19051  # Now substitute the updated list of available tags.
19052  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19053    mv "${ofile}T" "$ofile"
19054    chmod +x "$ofile"
19055  else
19056    rm -f "${ofile}T"
19057    as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19058  fi
19059fi
19060
19061
19062
19063# This can be used to rebuild libtool when needed
19064LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19065
19066# Always use our own libtool.
19067LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19068
19069# Prevent multiple expansion
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090    ;;
19091esac
19092
19093
19094
19095
19096
19097ac_ext=c
19098ac_cpp='$CPP $CPPFLAGS'
19099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19101ac_compiler_gnu=$ac_cv_c_compiler_gnu
19102if test -n "$ac_tool_prefix"; then
19103  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19104set dummy ${ac_tool_prefix}gcc; ac_word=$2
19105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19106$as_echo_n "checking for $ac_word... " >&6; }
19107if test "${ac_cv_prog_CC+set}" = set; then :
19108  $as_echo_n "(cached) " >&6
19109else
19110  if test -n "$CC"; then
19111  ac_cv_prog_CC="$CC" # Let the user override the test.
19112else
19113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19114for as_dir in $PATH
19115do
19116  IFS=$as_save_IFS
19117  test -z "$as_dir" && as_dir=.
19118    for ac_exec_ext in '' $ac_executable_extensions; do
19119  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19120    ac_cv_prog_CC="${ac_tool_prefix}gcc"
19121    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19122    break 2
19123  fi
19124done
19125  done
19126IFS=$as_save_IFS
19127
19128fi
19129fi
19130CC=$ac_cv_prog_CC
19131if test -n "$CC"; then
19132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19133$as_echo "$CC" >&6; }
19134else
19135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19136$as_echo "no" >&6; }
19137fi
19138
19139
19140fi
19141if test -z "$ac_cv_prog_CC"; then
19142  ac_ct_CC=$CC
19143  # Extract the first word of "gcc", so it can be a program name with args.
19144set dummy gcc; ac_word=$2
19145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19146$as_echo_n "checking for $ac_word... " >&6; }
19147if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
19148  $as_echo_n "(cached) " >&6
19149else
19150  if test -n "$ac_ct_CC"; then
19151  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19152else
19153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19154for as_dir in $PATH
19155do
19156  IFS=$as_save_IFS
19157  test -z "$as_dir" && as_dir=.
19158    for ac_exec_ext in '' $ac_executable_extensions; do
19159  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19160    ac_cv_prog_ac_ct_CC="gcc"
19161    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19162    break 2
19163  fi
19164done
19165  done
19166IFS=$as_save_IFS
19167
19168fi
19169fi
19170ac_ct_CC=$ac_cv_prog_ac_ct_CC
19171if test -n "$ac_ct_CC"; then
19172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
19173$as_echo "$ac_ct_CC" >&6; }
19174else
19175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19176$as_echo "no" >&6; }
19177fi
19178
19179  if test "x$ac_ct_CC" = x; then
19180    CC=""
19181  else
19182    case $cross_compiling:$ac_tool_warned in
19183yes:)
19184{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19185$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19186ac_tool_warned=yes ;;
19187esac
19188    CC=$ac_ct_CC
19189  fi
19190else
19191  CC="$ac_cv_prog_CC"
19192fi
19193
19194if test -z "$CC"; then
19195          if test -n "$ac_tool_prefix"; then
19196    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19197set dummy ${ac_tool_prefix}cc; ac_word=$2
19198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19199$as_echo_n "checking for $ac_word... " >&6; }
19200if test "${ac_cv_prog_CC+set}" = set; then :
19201  $as_echo_n "(cached) " >&6
19202else
19203  if test -n "$CC"; then
19204  ac_cv_prog_CC="$CC" # Let the user override the test.
19205else
19206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19207for as_dir in $PATH
19208do
19209  IFS=$as_save_IFS
19210  test -z "$as_dir" && as_dir=.
19211    for ac_exec_ext in '' $ac_executable_extensions; do
19212  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19213    ac_cv_prog_CC="${ac_tool_prefix}cc"
19214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19215    break 2
19216  fi
19217done
19218  done
19219IFS=$as_save_IFS
19220
19221fi
19222fi
19223CC=$ac_cv_prog_CC
19224if test -n "$CC"; then
19225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19226$as_echo "$CC" >&6; }
19227else
19228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19229$as_echo "no" >&6; }
19230fi
19231
19232
19233  fi
19234fi
19235if test -z "$CC"; then
19236  # Extract the first word of "cc", so it can be a program name with args.
19237set dummy cc; ac_word=$2
19238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19239$as_echo_n "checking for $ac_word... " >&6; }
19240if test "${ac_cv_prog_CC+set}" = set; then :
19241  $as_echo_n "(cached) " >&6
19242else
19243  if test -n "$CC"; then
19244  ac_cv_prog_CC="$CC" # Let the user override the test.
19245else
19246  ac_prog_rejected=no
19247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19248for as_dir in $PATH
19249do
19250  IFS=$as_save_IFS
19251  test -z "$as_dir" && as_dir=.
19252    for ac_exec_ext in '' $ac_executable_extensions; do
19253  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19254    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19255       ac_prog_rejected=yes
19256       continue
19257     fi
19258    ac_cv_prog_CC="cc"
19259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19260    break 2
19261  fi
19262done
19263  done
19264IFS=$as_save_IFS
19265
19266if test $ac_prog_rejected = yes; then
19267  # We found a bogon in the path, so make sure we never use it.
19268  set dummy $ac_cv_prog_CC
19269  shift
19270  if test $# != 0; then
19271    # We chose a different compiler from the bogus one.
19272    # However, it has the same basename, so the bogon will be chosen
19273    # first if we set CC to just the basename; use the full file name.
19274    shift
19275    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19276  fi
19277fi
19278fi
19279fi
19280CC=$ac_cv_prog_CC
19281if test -n "$CC"; then
19282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19283$as_echo "$CC" >&6; }
19284else
19285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19286$as_echo "no" >&6; }
19287fi
19288
19289
19290fi
19291if test -z "$CC"; then
19292  if test -n "$ac_tool_prefix"; then
19293  for ac_prog in cl.exe
19294  do
19295    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19296set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19298$as_echo_n "checking for $ac_word... " >&6; }
19299if test "${ac_cv_prog_CC+set}" = set; then :
19300  $as_echo_n "(cached) " >&6
19301else
19302  if test -n "$CC"; then
19303  ac_cv_prog_CC="$CC" # Let the user override the test.
19304else
19305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19306for as_dir in $PATH
19307do
19308  IFS=$as_save_IFS
19309  test -z "$as_dir" && as_dir=.
19310    for ac_exec_ext in '' $ac_executable_extensions; do
19311  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19312    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19313    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19314    break 2
19315  fi
19316done
19317  done
19318IFS=$as_save_IFS
19319
19320fi
19321fi
19322CC=$ac_cv_prog_CC
19323if test -n "$CC"; then
19324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19325$as_echo "$CC" >&6; }
19326else
19327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19328$as_echo "no" >&6; }
19329fi
19330
19331
19332    test -n "$CC" && break
19333  done
19334fi
19335if test -z "$CC"; then
19336  ac_ct_CC=$CC
19337  for ac_prog in cl.exe
19338do
19339  # Extract the first word of "$ac_prog", so it can be a program name with args.
19340set dummy $ac_prog; ac_word=$2
19341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19342$as_echo_n "checking for $ac_word... " >&6; }
19343if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
19344  $as_echo_n "(cached) " >&6
19345else
19346  if test -n "$ac_ct_CC"; then
19347  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19348else
19349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19350for as_dir in $PATH
19351do
19352  IFS=$as_save_IFS
19353  test -z "$as_dir" && as_dir=.
19354    for ac_exec_ext in '' $ac_executable_extensions; do
19355  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19356    ac_cv_prog_ac_ct_CC="$ac_prog"
19357    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19358    break 2
19359  fi
19360done
19361  done
19362IFS=$as_save_IFS
19363
19364fi
19365fi
19366ac_ct_CC=$ac_cv_prog_ac_ct_CC
19367if test -n "$ac_ct_CC"; then
19368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
19369$as_echo "$ac_ct_CC" >&6; }
19370else
19371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19372$as_echo "no" >&6; }
19373fi
19374
19375
19376  test -n "$ac_ct_CC" && break
19377done
19378
19379  if test "x$ac_ct_CC" = x; then
19380    CC=""
19381  else
19382    case $cross_compiling:$ac_tool_warned in
19383yes:)
19384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19386ac_tool_warned=yes ;;
19387esac
19388    CC=$ac_ct_CC
19389  fi
19390fi
19391
19392fi
19393
19394
19395test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19397as_fn_error $? "no acceptable C compiler found in \$PATH
19398See \`config.log' for more details" "$LINENO" 5; }
19399
19400# Provide some information about the compiler.
19401$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
19402set X $ac_compile
19403ac_compiler=$2
19404for ac_option in --version -v -V -qversion; do
19405  { { ac_try="$ac_compiler $ac_option >&5"
19406case "(($ac_try" in
19407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408  *) ac_try_echo=$ac_try;;
19409esac
19410eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19411$as_echo "$ac_try_echo"; } >&5
19412  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
19413  ac_status=$?
19414  if test -s conftest.err; then
19415    sed '10a\
19416... rest of stderr output deleted ...
19417         10q' conftest.err >conftest.er1
19418    cat conftest.er1 >&5
19419  fi
19420  rm -f conftest.er1 conftest.err
19421  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19422  test $ac_status = 0; }
19423done
19424
19425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
19426$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
19427if test "${ac_cv_c_compiler_gnu+set}" = set; then :
19428  $as_echo_n "(cached) " >&6
19429else
19430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19431/* end confdefs.h.  */
19432
19433int
19434main ()
19435{
19436#ifndef __GNUC__
19437       choke me
19438#endif
19439
19440  ;
19441  return 0;
19442}
19443_ACEOF
19444if ac_fn_c_try_compile "$LINENO"; then :
19445  ac_compiler_gnu=yes
19446else
19447  ac_compiler_gnu=no
19448fi
19449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19450ac_cv_c_compiler_gnu=$ac_compiler_gnu
19451
19452fi
19453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
19454$as_echo "$ac_cv_c_compiler_gnu" >&6; }
19455if test $ac_compiler_gnu = yes; then
19456  GCC=yes
19457else
19458  GCC=
19459fi
19460ac_test_CFLAGS=${CFLAGS+set}
19461ac_save_CFLAGS=$CFLAGS
19462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
19463$as_echo_n "checking whether $CC accepts -g... " >&6; }
19464if test "${ac_cv_prog_cc_g+set}" = set; then :
19465  $as_echo_n "(cached) " >&6
19466else
19467  ac_save_c_werror_flag=$ac_c_werror_flag
19468   ac_c_werror_flag=yes
19469   ac_cv_prog_cc_g=no
19470   CFLAGS="-g"
19471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19472/* end confdefs.h.  */
19473
19474int
19475main ()
19476{
19477
19478  ;
19479  return 0;
19480}
19481_ACEOF
19482if ac_fn_c_try_compile "$LINENO"; then :
19483  ac_cv_prog_cc_g=yes
19484else
19485  CFLAGS=""
19486      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19487/* end confdefs.h.  */
19488
19489int
19490main ()
19491{
19492
19493  ;
19494  return 0;
19495}
19496_ACEOF
19497if ac_fn_c_try_compile "$LINENO"; then :
19498
19499else
19500  ac_c_werror_flag=$ac_save_c_werror_flag
19501	 CFLAGS="-g"
19502	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19503/* end confdefs.h.  */
19504
19505int
19506main ()
19507{
19508
19509  ;
19510  return 0;
19511}
19512_ACEOF
19513if ac_fn_c_try_compile "$LINENO"; then :
19514  ac_cv_prog_cc_g=yes
19515fi
19516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19517fi
19518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19519fi
19520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19521   ac_c_werror_flag=$ac_save_c_werror_flag
19522fi
19523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
19524$as_echo "$ac_cv_prog_cc_g" >&6; }
19525if test "$ac_test_CFLAGS" = set; then
19526  CFLAGS=$ac_save_CFLAGS
19527elif test $ac_cv_prog_cc_g = yes; then
19528  if test "$GCC" = yes; then
19529    CFLAGS="-g -O2"
19530  else
19531    CFLAGS="-g"
19532  fi
19533else
19534  if test "$GCC" = yes; then
19535    CFLAGS="-O2"
19536  else
19537    CFLAGS=
19538  fi
19539fi
19540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
19541$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
19542if test "${ac_cv_prog_cc_c89+set}" = set; then :
19543  $as_echo_n "(cached) " >&6
19544else
19545  ac_cv_prog_cc_c89=no
19546ac_save_CC=$CC
19547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19548/* end confdefs.h.  */
19549#include <stdarg.h>
19550#include <stdio.h>
19551#include <sys/types.h>
19552#include <sys/stat.h>
19553/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19554struct buf { int x; };
19555FILE * (*rcsopen) (struct buf *, struct stat *, int);
19556static char *e (p, i)
19557     char **p;
19558     int i;
19559{
19560  return p[i];
19561}
19562static char *f (char * (*g) (char **, int), char **p, ...)
19563{
19564  char *s;
19565  va_list v;
19566  va_start (v,p);
19567  s = g (p, va_arg (v,int));
19568  va_end (v);
19569  return s;
19570}
19571
19572/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19573   function prototypes and stuff, but not '\xHH' hex character constants.
19574   These don't provoke an error unfortunately, instead are silently treated
19575   as 'x'.  The following induces an error, until -std is added to get
19576   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19577   array size at least.  It's necessary to write '\x00'==0 to get something
19578   that's true only with -std.  */
19579int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19580
19581/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19582   inside strings and character constants.  */
19583#define FOO(x) 'x'
19584int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19585
19586int test (int i, double x);
19587struct s1 {int (*f) (int a);};
19588struct s2 {int (*f) (double a);};
19589int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19590int argc;
19591char **argv;
19592int
19593main ()
19594{
19595return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19596  ;
19597  return 0;
19598}
19599_ACEOF
19600for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19601	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19602do
19603  CC="$ac_save_CC $ac_arg"
19604  if ac_fn_c_try_compile "$LINENO"; then :
19605  ac_cv_prog_cc_c89=$ac_arg
19606fi
19607rm -f core conftest.err conftest.$ac_objext
19608  test "x$ac_cv_prog_cc_c89" != "xno" && break
19609done
19610rm -f conftest.$ac_ext
19611CC=$ac_save_CC
19612
19613fi
19614# AC_CACHE_VAL
19615case "x$ac_cv_prog_cc_c89" in
19616  x)
19617    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19618$as_echo "none needed" >&6; } ;;
19619  xno)
19620    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19621$as_echo "unsupported" >&6; } ;;
19622  *)
19623    CC="$CC $ac_cv_prog_cc_c89"
19624    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
19625$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
19626esac
19627if test "x$ac_cv_prog_cc_c89" != xno; then :
19628
19629fi
19630
19631ac_ext=c
19632ac_cpp='$CPP $CPPFLAGS'
19633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19635ac_compiler_gnu=$ac_cv_c_compiler_gnu
19636
19637# Find a good install program.  We prefer a C program (faster),
19638# so one script is as good as another.  But avoid the broken or
19639# incompatible versions:
19640# SysV /etc/install, /usr/sbin/install
19641# SunOS /usr/etc/install
19642# IRIX /sbin/install
19643# AIX /bin/install
19644# AmigaOS /C/install, which installs bootblocks on floppy discs
19645# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19646# AFS /usr/afsws/bin/install, which mishandles nonexistent args
19647# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19648# OS/2's system install, which has a completely different semantic
19649# ./install, which can be erroneously created by make from ./install.sh.
19650# Reject install programs that cannot install multiple files.
19651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
19652$as_echo_n "checking for a BSD-compatible install... " >&6; }
19653if test -z "$INSTALL"; then
19654if test "${ac_cv_path_install+set}" = set; then :
19655  $as_echo_n "(cached) " >&6
19656else
19657  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19658for as_dir in $PATH
19659do
19660  IFS=$as_save_IFS
19661  test -z "$as_dir" && as_dir=.
19662    # Account for people who put trailing slashes in PATH elements.
19663case $as_dir/ in #((
19664  ./ | .// | /[cC]/* | \
19665  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19666  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
19667  /usr/ucb/* ) ;;
19668  *)
19669    # OSF1 and SCO ODT 3.0 have their own names for install.
19670    # Don't use installbsd from OSF since it installs stuff as root
19671    # by default.
19672    for ac_prog in ginstall scoinst install; do
19673      for ac_exec_ext in '' $ac_executable_extensions; do
19674	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19675	  if test $ac_prog = install &&
19676	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19677	    # AIX install.  It has an incompatible calling convention.
19678	    :
19679	  elif test $ac_prog = install &&
19680	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19681	    # program-specific install script used by HP pwplus--don't use.
19682	    :
19683	  else
19684	    rm -rf conftest.one conftest.two conftest.dir
19685	    echo one > conftest.one
19686	    echo two > conftest.two
19687	    mkdir conftest.dir
19688	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
19689	      test -s conftest.one && test -s conftest.two &&
19690	      test -s conftest.dir/conftest.one &&
19691	      test -s conftest.dir/conftest.two
19692	    then
19693	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19694	      break 3
19695	    fi
19696	  fi
19697	fi
19698      done
19699    done
19700    ;;
19701esac
19702
19703  done
19704IFS=$as_save_IFS
19705
19706rm -rf conftest.one conftest.two conftest.dir
19707
19708fi
19709  if test "${ac_cv_path_install+set}" = set; then
19710    INSTALL=$ac_cv_path_install
19711  else
19712    # As a last resort, use the slow shell script.  Don't cache a
19713    # value for INSTALL within a source directory, because that will
19714    # break other packages using the cache if that directory is
19715    # removed, or if the value is a relative name.
19716    INSTALL=$ac_install_sh
19717  fi
19718fi
19719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
19720$as_echo "$INSTALL" >&6; }
19721
19722# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19723# It thinks the first close brace ends the variable substitution.
19724test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19725
19726test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19727
19728test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19729
19730
19731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19732$as_echo_n "checking for ANSI C header files... " >&6; }
19733if test "${ac_cv_header_stdc+set}" = set; then :
19734  $as_echo_n "(cached) " >&6
19735else
19736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19737/* end confdefs.h.  */
19738#include <stdlib.h>
19739#include <stdarg.h>
19740#include <string.h>
19741#include <float.h>
19742
19743int
19744main ()
19745{
19746
19747  ;
19748  return 0;
19749}
19750_ACEOF
19751if ac_fn_c_try_compile "$LINENO"; then :
19752  ac_cv_header_stdc=yes
19753else
19754  ac_cv_header_stdc=no
19755fi
19756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19757
19758if test $ac_cv_header_stdc = yes; then
19759  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19761/* end confdefs.h.  */
19762#include <string.h>
19763
19764_ACEOF
19765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19766  $EGREP "memchr" >/dev/null 2>&1; then :
19767
19768else
19769  ac_cv_header_stdc=no
19770fi
19771rm -f conftest*
19772
19773fi
19774
19775if test $ac_cv_header_stdc = yes; then
19776  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19778/* end confdefs.h.  */
19779#include <stdlib.h>
19780
19781_ACEOF
19782if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19783  $EGREP "free" >/dev/null 2>&1; then :
19784
19785else
19786  ac_cv_header_stdc=no
19787fi
19788rm -f conftest*
19789
19790fi
19791
19792if test $ac_cv_header_stdc = yes; then
19793  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19794  if test "$cross_compiling" = yes; then :
19795  :
19796else
19797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19798/* end confdefs.h.  */
19799#include <ctype.h>
19800#include <stdlib.h>
19801#if ((' ' & 0x0FF) == 0x020)
19802# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19803# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19804#else
19805# define ISLOWER(c) \
19806		   (('a' <= (c) && (c) <= 'i') \
19807		     || ('j' <= (c) && (c) <= 'r') \
19808		     || ('s' <= (c) && (c) <= 'z'))
19809# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19810#endif
19811
19812#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19813int
19814main ()
19815{
19816  int i;
19817  for (i = 0; i < 256; i++)
19818    if (XOR (islower (i), ISLOWER (i))
19819	|| toupper (i) != TOUPPER (i))
19820      return 2;
19821  return 0;
19822}
19823_ACEOF
19824if ac_fn_c_try_run "$LINENO"; then :
19825
19826else
19827  ac_cv_header_stdc=no
19828fi
19829rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19830  conftest.$ac_objext conftest.beam conftest.$ac_ext
19831fi
19832
19833fi
19834fi
19835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19836$as_echo "$ac_cv_header_stdc" >&6; }
19837if test $ac_cv_header_stdc = yes; then
19838
19839$as_echo "#define STDC_HEADERS 1" >>confdefs.h
19840
19841fi
19842
19843
19844if test "$cross_compiling" = "no"; then
19845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
19846$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
19847if test "${ac_cv_c_bigendian+set}" = set; then :
19848  $as_echo_n "(cached) " >&6
19849else
19850  ac_cv_c_bigendian=unknown
19851    # See if we're dealing with a universal compiler.
19852    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19853/* end confdefs.h.  */
19854#ifndef __APPLE_CC__
19855	       not a universal capable compiler
19856	     #endif
19857	     typedef int dummy;
19858
19859_ACEOF
19860if ac_fn_c_try_compile "$LINENO"; then :
19861
19862	# Check for potential -arch flags.  It is not universal unless
19863	# there are at least two -arch flags with different values.
19864	ac_arch=
19865	ac_prev=
19866	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
19867	 if test -n "$ac_prev"; then
19868	   case $ac_word in
19869	     i?86 | x86_64 | ppc | ppc64)
19870	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
19871		 ac_arch=$ac_word
19872	       else
19873		 ac_cv_c_bigendian=universal
19874		 break
19875	       fi
19876	       ;;
19877	   esac
19878	   ac_prev=
19879	 elif test "x$ac_word" = "x-arch"; then
19880	   ac_prev=arch
19881	 fi
19882       done
19883fi
19884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19885    if test $ac_cv_c_bigendian = unknown; then
19886      # See if sys/param.h defines the BYTE_ORDER macro.
19887      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19888/* end confdefs.h.  */
19889#include <sys/types.h>
19890	     #include <sys/param.h>
19891
19892int
19893main ()
19894{
19895#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
19896		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
19897		     && LITTLE_ENDIAN)
19898	      bogus endian macros
19899	     #endif
19900
19901  ;
19902  return 0;
19903}
19904_ACEOF
19905if ac_fn_c_try_compile "$LINENO"; then :
19906  # It does; now see whether it defined to BIG_ENDIAN or not.
19907	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19908/* end confdefs.h.  */
19909#include <sys/types.h>
19910		#include <sys/param.h>
19911
19912int
19913main ()
19914{
19915#if BYTE_ORDER != BIG_ENDIAN
19916		 not big endian
19917		#endif
19918
19919  ;
19920  return 0;
19921}
19922_ACEOF
19923if ac_fn_c_try_compile "$LINENO"; then :
19924  ac_cv_c_bigendian=yes
19925else
19926  ac_cv_c_bigendian=no
19927fi
19928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19929fi
19930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19931    fi
19932    if test $ac_cv_c_bigendian = unknown; then
19933      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
19934      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19935/* end confdefs.h.  */
19936#include <limits.h>
19937
19938int
19939main ()
19940{
19941#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
19942	      bogus endian macros
19943	     #endif
19944
19945  ;
19946  return 0;
19947}
19948_ACEOF
19949if ac_fn_c_try_compile "$LINENO"; then :
19950  # It does; now see whether it defined to _BIG_ENDIAN or not.
19951	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19952/* end confdefs.h.  */
19953#include <limits.h>
19954
19955int
19956main ()
19957{
19958#ifndef _BIG_ENDIAN
19959		 not big endian
19960		#endif
19961
19962  ;
19963  return 0;
19964}
19965_ACEOF
19966if ac_fn_c_try_compile "$LINENO"; then :
19967  ac_cv_c_bigendian=yes
19968else
19969  ac_cv_c_bigendian=no
19970fi
19971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19972fi
19973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19974    fi
19975    if test $ac_cv_c_bigendian = unknown; then
19976      # Compile a test program.
19977      if test "$cross_compiling" = yes; then :
19978  # Try to guess by grepping values from an object file.
19979	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19980/* end confdefs.h.  */
19981short int ascii_mm[] =
19982		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19983		short int ascii_ii[] =
19984		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19985		int use_ascii (int i) {
19986		  return ascii_mm[i] + ascii_ii[i];
19987		}
19988		short int ebcdic_ii[] =
19989		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19990		short int ebcdic_mm[] =
19991		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19992		int use_ebcdic (int i) {
19993		  return ebcdic_mm[i] + ebcdic_ii[i];
19994		}
19995		extern int foo;
19996
19997int
19998main ()
19999{
20000return use_ascii (foo) == use_ebcdic (foo);
20001  ;
20002  return 0;
20003}
20004_ACEOF
20005if ac_fn_c_try_compile "$LINENO"; then :
20006  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20007	      ac_cv_c_bigendian=yes
20008	    fi
20009	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20010	      if test "$ac_cv_c_bigendian" = unknown; then
20011		ac_cv_c_bigendian=no
20012	      else
20013		# finding both strings is unlikely to happen, but who knows?
20014		ac_cv_c_bigendian=unknown
20015	      fi
20016	    fi
20017fi
20018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20019else
20020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20021/* end confdefs.h.  */
20022$ac_includes_default
20023int
20024main ()
20025{
20026
20027	     /* Are we little or big endian?  From Harbison&Steele.  */
20028	     union
20029	     {
20030	       long int l;
20031	       char c[sizeof (long int)];
20032	     } u;
20033	     u.l = 1;
20034	     return u.c[sizeof (long int) - 1] == 1;
20035
20036  ;
20037  return 0;
20038}
20039_ACEOF
20040if ac_fn_c_try_run "$LINENO"; then :
20041  ac_cv_c_bigendian=no
20042else
20043  ac_cv_c_bigendian=yes
20044fi
20045rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20046  conftest.$ac_objext conftest.beam conftest.$ac_ext
20047fi
20048
20049    fi
20050fi
20051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
20052$as_echo "$ac_cv_c_bigendian" >&6; }
20053 case $ac_cv_c_bigendian in #(
20054   yes)
20055     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
20056;; #(
20057   no)
20058      ;; #(
20059   universal)
20060
20061$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20062
20063     ;; #(
20064   *)
20065     as_fn_error $? "unknown endianness
20066 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
20067 esac
20068
20069else
20070
20071$as_echo "#define AP_UNKNOWN_BYTE_ORDER 1" >>confdefs.h
20072
20073fi
20074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20075$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20076if test "${ac_cv_c_const+set}" = set; then :
20077  $as_echo_n "(cached) " >&6
20078else
20079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20080/* end confdefs.h.  */
20081
20082int
20083main ()
20084{
20085/* FIXME: Include the comments suggested by Paul. */
20086#ifndef __cplusplus
20087  /* Ultrix mips cc rejects this.  */
20088  typedef int charset[2];
20089  const charset cs;
20090  /* SunOS 4.1.1 cc rejects this.  */
20091  char const *const *pcpcc;
20092  char **ppc;
20093  /* NEC SVR4.0.2 mips cc rejects this.  */
20094  struct point {int x, y;};
20095  static struct point const zero = {0,0};
20096  /* AIX XL C 1.02.0.0 rejects this.
20097     It does not let you subtract one const X* pointer from another in
20098     an arm of an if-expression whose if-part is not a constant
20099     expression */
20100  const char *g = "string";
20101  pcpcc = &g + (g ? g-g : 0);
20102  /* HPUX 7.0 cc rejects these. */
20103  ++pcpcc;
20104  ppc = (char**) pcpcc;
20105  pcpcc = (char const *const *) ppc;
20106  { /* SCO 3.2v4 cc rejects this.  */
20107    char *t;
20108    char const *s = 0 ? (char *) 0 : (char const *) 0;
20109
20110    *t++ = 0;
20111    if (s) return 0;
20112  }
20113  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20114    int x[] = {25, 17};
20115    const int *foo = &x[0];
20116    ++foo;
20117  }
20118  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20119    typedef const int *iptr;
20120    iptr p = 0;
20121    ++p;
20122  }
20123  { /* AIX XL C 1.02.0.0 rejects this saying
20124       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20125    struct s { int j; const int *ap[3]; };
20126    struct s *b; b->j = 5;
20127  }
20128  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20129    const int foo = 10;
20130    if (!foo) return 0;
20131  }
20132  return !cs[0] && !zero.x;
20133#endif
20134
20135  ;
20136  return 0;
20137}
20138_ACEOF
20139if ac_fn_c_try_compile "$LINENO"; then :
20140  ac_cv_c_const=yes
20141else
20142  ac_cv_c_const=no
20143fi
20144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20145fi
20146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20147$as_echo "$ac_cv_c_const" >&6; }
20148if test $ac_cv_c_const = no; then
20149
20150$as_echo "#define const /**/" >>confdefs.h
20151
20152fi
20153
20154ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20155if test "x$ac_cv_type_size_t" = x""yes; then :
20156
20157else
20158
20159cat >>confdefs.h <<_ACEOF
20160#define size_t unsigned int
20161_ACEOF
20162
20163fi
20164
20165for ac_func in memmove bcopy
20166do :
20167  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20168ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20169if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20170  cat >>confdefs.h <<_ACEOF
20171#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20172_ACEOF
20173
20174fi
20175done
20176
20177
20178for ac_header in check.h
20179do :
20180  ac_fn_c_check_header_mongrel "$LINENO" "check.h" "ac_cv_header_check_h" "$ac_includes_default"
20181if test "x$ac_cv_header_check_h" = x""yes; then :
20182  cat >>confdefs.h <<_ACEOF
20183#define HAVE_CHECK_H 1
20184_ACEOF
20185
20186fi
20187
20188done
20189
20190
20191
20192$as_echo "#define XML_NS 1" >>confdefs.h
20193
20194
20195$as_echo "#define XML_DTD 1" >>confdefs.h
20196
20197
20198$as_echo "#define XML_CONTEXT_BYTES 1024" >>confdefs.h
20199
20200
20201ac_config_files="$ac_config_files Makefile"
20202
20203cat >confcache <<\_ACEOF
20204# This file is a shell script that caches the results of configure
20205# tests run on this system so they can be shared between configure
20206# scripts and configure runs, see configure's option --config-cache.
20207# It is not useful on other systems.  If it contains results you don't
20208# want to keep, you may remove or edit it.
20209#
20210# config.status only pays attention to the cache file if you give it
20211# the --recheck option to rerun configure.
20212#
20213# `ac_cv_env_foo' variables (set or unset) will be overridden when
20214# loading this file, other *unset* `ac_cv_foo' will be assigned the
20215# following values.
20216
20217_ACEOF
20218
20219# The following way of writing the cache mishandles newlines in values,
20220# but we know of no workaround that is simple, portable, and efficient.
20221# So, we kill variables containing newlines.
20222# Ultrix sh set writes to stderr and can't be redirected directly,
20223# and sets the high bit in the cache file unless we assign to the vars.
20224(
20225  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20226    eval ac_val=\$$ac_var
20227    case $ac_val in #(
20228    *${as_nl}*)
20229      case $ac_var in #(
20230      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20231$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20232      esac
20233      case $ac_var in #(
20234      _ | IFS | as_nl) ;; #(
20235      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20236      *) { eval $ac_var=; unset $ac_var;} ;;
20237      esac ;;
20238    esac
20239  done
20240
20241  (set) 2>&1 |
20242    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20243    *${as_nl}ac_space=\ *)
20244      # `set' does not quote correctly, so add quotes: double-quote
20245      # substitution turns \\\\ into \\, and sed turns \\ into \.
20246      sed -n \
20247	"s/'/'\\\\''/g;
20248	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20249      ;; #(
20250    *)
20251      # `set' quotes correctly as required by POSIX, so do not add quotes.
20252      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20253      ;;
20254    esac |
20255    sort
20256) |
20257  sed '
20258     /^ac_cv_env_/b end
20259     t clear
20260     :clear
20261     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20262     t end
20263     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20264     :end' >>confcache
20265if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20266  if test -w "$cache_file"; then
20267    test "x$cache_file" != "x/dev/null" &&
20268      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20269$as_echo "$as_me: updating cache $cache_file" >&6;}
20270    cat confcache >$cache_file
20271  else
20272    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20273$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20274  fi
20275fi
20276rm -f confcache
20277
20278test "x$prefix" = xNONE && prefix=$ac_default_prefix
20279# Let make expand exec_prefix.
20280test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20281
20282DEFS=-DHAVE_CONFIG_H
20283
20284ac_libobjs=
20285ac_ltlibobjs=
20286U=
20287for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20288  # 1. Remove the extension, and $U if already installed.
20289  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20290  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20291  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20292  #    will be set to the directory where LIBOBJS objects are built.
20293  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20294  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20295done
20296LIBOBJS=$ac_libobjs
20297
20298LTLIBOBJS=$ac_ltlibobjs
20299
20300
20301
20302
20303: ${CONFIG_STATUS=./config.status}
20304ac_write_fail=0
20305ac_clean_files_save=$ac_clean_files
20306ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20307{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20308$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20309as_write_fail=0
20310cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20311#! $SHELL
20312# Generated by $as_me.
20313# Run this file to recreate the current configuration.
20314# Compiler output produced by configure, useful for debugging
20315# configure, is in config.log if it exists.
20316
20317debug=false
20318ac_cs_recheck=false
20319ac_cs_silent=false
20320
20321SHELL=\${CONFIG_SHELL-$SHELL}
20322export SHELL
20323_ASEOF
20324cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20325## -------------------- ##
20326## M4sh Initialization. ##
20327## -------------------- ##
20328
20329# Be more Bourne compatible
20330DUALCASE=1; export DUALCASE # for MKS sh
20331if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20332  emulate sh
20333  NULLCMD=:
20334  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20335  # is contrary to our usage.  Disable this feature.
20336  alias -g '${1+"$@"}'='"$@"'
20337  setopt NO_GLOB_SUBST
20338else
20339  case `(set -o) 2>/dev/null` in #(
20340  *posix*) :
20341    set -o posix ;; #(
20342  *) :
20343     ;;
20344esac
20345fi
20346
20347
20348as_nl='
20349'
20350export as_nl
20351# Printing a long string crashes Solaris 7 /usr/bin/printf.
20352as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20353as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20354as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20355# Prefer a ksh shell builtin over an external printf program on Solaris,
20356# but without wasting forks for bash or zsh.
20357if test -z "$BASH_VERSION$ZSH_VERSION" \
20358    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20359  as_echo='print -r --'
20360  as_echo_n='print -rn --'
20361elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20362  as_echo='printf %s\n'
20363  as_echo_n='printf %s'
20364else
20365  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20366    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20367    as_echo_n='/usr/ucb/echo -n'
20368  else
20369    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20370    as_echo_n_body='eval
20371      arg=$1;
20372      case $arg in #(
20373      *"$as_nl"*)
20374	expr "X$arg" : "X\\(.*\\)$as_nl";
20375	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20376      esac;
20377      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20378    '
20379    export as_echo_n_body
20380    as_echo_n='sh -c $as_echo_n_body as_echo'
20381  fi
20382  export as_echo_body
20383  as_echo='sh -c $as_echo_body as_echo'
20384fi
20385
20386# The user is always right.
20387if test "${PATH_SEPARATOR+set}" != set; then
20388  PATH_SEPARATOR=:
20389  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20390    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20391      PATH_SEPARATOR=';'
20392  }
20393fi
20394
20395
20396# IFS
20397# We need space, tab and new line, in precisely that order.  Quoting is
20398# there to prevent editors from complaining about space-tab.
20399# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20400# splitting by setting IFS to empty value.)
20401IFS=" ""	$as_nl"
20402
20403# Find who we are.  Look in the path if we contain no directory separator.
20404case $0 in #((
20405  *[\\/]* ) as_myself=$0 ;;
20406  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20407for as_dir in $PATH
20408do
20409  IFS=$as_save_IFS
20410  test -z "$as_dir" && as_dir=.
20411    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20412  done
20413IFS=$as_save_IFS
20414
20415     ;;
20416esac
20417# We did not find ourselves, most probably we were run as `sh COMMAND'
20418# in which case we are not to be found in the path.
20419if test "x$as_myself" = x; then
20420  as_myself=$0
20421fi
20422if test ! -f "$as_myself"; then
20423  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20424  exit 1
20425fi
20426
20427# Unset variables that we do not need and which cause bugs (e.g. in
20428# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20429# suppresses any "Segmentation fault" message there.  '((' could
20430# trigger a bug in pdksh 5.2.14.
20431for as_var in BASH_ENV ENV MAIL MAILPATH
20432do eval test x\${$as_var+set} = xset \
20433  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20434done
20435PS1='$ '
20436PS2='> '
20437PS4='+ '
20438
20439# NLS nuisances.
20440LC_ALL=C
20441export LC_ALL
20442LANGUAGE=C
20443export LANGUAGE
20444
20445# CDPATH.
20446(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20447
20448
20449# as_fn_error STATUS ERROR [LINENO LOG_FD]
20450# ----------------------------------------
20451# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20452# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20453# script with STATUS, using 1 if that was 0.
20454as_fn_error ()
20455{
20456  as_status=$1; test $as_status -eq 0 && as_status=1
20457  if test "$4"; then
20458    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20459    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20460  fi
20461  $as_echo "$as_me: error: $2" >&2
20462  as_fn_exit $as_status
20463} # as_fn_error
20464
20465
20466# as_fn_set_status STATUS
20467# -----------------------
20468# Set $? to STATUS, without forking.
20469as_fn_set_status ()
20470{
20471  return $1
20472} # as_fn_set_status
20473
20474# as_fn_exit STATUS
20475# -----------------
20476# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20477as_fn_exit ()
20478{
20479  set +e
20480  as_fn_set_status $1
20481  exit $1
20482} # as_fn_exit
20483
20484# as_fn_unset VAR
20485# ---------------
20486# Portably unset VAR.
20487as_fn_unset ()
20488{
20489  { eval $1=; unset $1;}
20490}
20491as_unset=as_fn_unset
20492# as_fn_append VAR VALUE
20493# ----------------------
20494# Append the text in VALUE to the end of the definition contained in VAR. Take
20495# advantage of any shell optimizations that allow amortized linear growth over
20496# repeated appends, instead of the typical quadratic growth present in naive
20497# implementations.
20498if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20499  eval 'as_fn_append ()
20500  {
20501    eval $1+=\$2
20502  }'
20503else
20504  as_fn_append ()
20505  {
20506    eval $1=\$$1\$2
20507  }
20508fi # as_fn_append
20509
20510# as_fn_arith ARG...
20511# ------------------
20512# Perform arithmetic evaluation on the ARGs, and store the result in the
20513# global $as_val. Take advantage of shells that can avoid forks. The arguments
20514# must be portable across $(()) and expr.
20515if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20516  eval 'as_fn_arith ()
20517  {
20518    as_val=$(( $* ))
20519  }'
20520else
20521  as_fn_arith ()
20522  {
20523    as_val=`expr "$@" || test $? -eq 1`
20524  }
20525fi # as_fn_arith
20526
20527
20528if expr a : '\(a\)' >/dev/null 2>&1 &&
20529   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20530  as_expr=expr
20531else
20532  as_expr=false
20533fi
20534
20535if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20536  as_basename=basename
20537else
20538  as_basename=false
20539fi
20540
20541if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20542  as_dirname=dirname
20543else
20544  as_dirname=false
20545fi
20546
20547as_me=`$as_basename -- "$0" ||
20548$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20549	 X"$0" : 'X\(//\)$' \| \
20550	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20551$as_echo X/"$0" |
20552    sed '/^.*\/\([^/][^/]*\)\/*$/{
20553	    s//\1/
20554	    q
20555	  }
20556	  /^X\/\(\/\/\)$/{
20557	    s//\1/
20558	    q
20559	  }
20560	  /^X\/\(\/\).*/{
20561	    s//\1/
20562	    q
20563	  }
20564	  s/.*/./; q'`
20565
20566# Avoid depending upon Character Ranges.
20567as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20568as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20569as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20570as_cr_digits='0123456789'
20571as_cr_alnum=$as_cr_Letters$as_cr_digits
20572
20573ECHO_C= ECHO_N= ECHO_T=
20574case `echo -n x` in #(((((
20575-n*)
20576  case `echo 'xy\c'` in
20577  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20578  xy)  ECHO_C='\c';;
20579  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20580       ECHO_T='	';;
20581  esac;;
20582*)
20583  ECHO_N='-n';;
20584esac
20585
20586rm -f conf$$ conf$$.exe conf$$.file
20587if test -d conf$$.dir; then
20588  rm -f conf$$.dir/conf$$.file
20589else
20590  rm -f conf$$.dir
20591  mkdir conf$$.dir 2>/dev/null
20592fi
20593if (echo >conf$$.file) 2>/dev/null; then
20594  if ln -s conf$$.file conf$$ 2>/dev/null; then
20595    as_ln_s='ln -s'
20596    # ... but there are two gotchas:
20597    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20598    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20599    # In both cases, we have to default to `cp -p'.
20600    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20601      as_ln_s='cp -p'
20602  elif ln conf$$.file conf$$ 2>/dev/null; then
20603    as_ln_s=ln
20604  else
20605    as_ln_s='cp -p'
20606  fi
20607else
20608  as_ln_s='cp -p'
20609fi
20610rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20611rmdir conf$$.dir 2>/dev/null
20612
20613
20614# as_fn_mkdir_p
20615# -------------
20616# Create "$as_dir" as a directory, including parents if necessary.
20617as_fn_mkdir_p ()
20618{
20619
20620  case $as_dir in #(
20621  -*) as_dir=./$as_dir;;
20622  esac
20623  test -d "$as_dir" || eval $as_mkdir_p || {
20624    as_dirs=
20625    while :; do
20626      case $as_dir in #(
20627      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20628      *) as_qdir=$as_dir;;
20629      esac
20630      as_dirs="'$as_qdir' $as_dirs"
20631      as_dir=`$as_dirname -- "$as_dir" ||
20632$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20633	 X"$as_dir" : 'X\(//\)[^/]' \| \
20634	 X"$as_dir" : 'X\(//\)$' \| \
20635	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20636$as_echo X"$as_dir" |
20637    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20638	    s//\1/
20639	    q
20640	  }
20641	  /^X\(\/\/\)[^/].*/{
20642	    s//\1/
20643	    q
20644	  }
20645	  /^X\(\/\/\)$/{
20646	    s//\1/
20647	    q
20648	  }
20649	  /^X\(\/\).*/{
20650	    s//\1/
20651	    q
20652	  }
20653	  s/.*/./; q'`
20654      test -d "$as_dir" && break
20655    done
20656    test -z "$as_dirs" || eval "mkdir $as_dirs"
20657  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20658
20659
20660} # as_fn_mkdir_p
20661if mkdir -p . 2>/dev/null; then
20662  as_mkdir_p='mkdir -p "$as_dir"'
20663else
20664  test -d ./-p && rmdir ./-p
20665  as_mkdir_p=false
20666fi
20667
20668if test -x / >/dev/null 2>&1; then
20669  as_test_x='test -x'
20670else
20671  if ls -dL / >/dev/null 2>&1; then
20672    as_ls_L_option=L
20673  else
20674    as_ls_L_option=
20675  fi
20676  as_test_x='
20677    eval sh -c '\''
20678      if test -d "$1"; then
20679	test -d "$1/.";
20680      else
20681	case $1 in #(
20682	-*)set "./$1";;
20683	esac;
20684	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20685	???[sx]*):;;*)false;;esac;fi
20686    '\'' sh
20687  '
20688fi
20689as_executable_p=$as_test_x
20690
20691# Sed expression to map a string onto a valid CPP name.
20692as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20693
20694# Sed expression to map a string onto a valid variable name.
20695as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20696
20697
20698exec 6>&1
20699## ----------------------------------- ##
20700## Main body of $CONFIG_STATUS script. ##
20701## ----------------------------------- ##
20702_ASEOF
20703test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20704
20705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20706# Save the log message, to keep $0 and so on meaningful, and to
20707# report actual input values of CONFIG_FILES etc. instead of their
20708# values after options handling.
20709ac_log="
20710This file was extended by expat $as_me 1.95.7, which was
20711generated by GNU Autoconf 2.67.  Invocation command line was
20712
20713  CONFIG_FILES    = $CONFIG_FILES
20714  CONFIG_HEADERS  = $CONFIG_HEADERS
20715  CONFIG_LINKS    = $CONFIG_LINKS
20716  CONFIG_COMMANDS = $CONFIG_COMMANDS
20717  $ $0 $@
20718
20719on `(hostname || uname -n) 2>/dev/null | sed 1q`
20720"
20721
20722_ACEOF
20723
20724case $ac_config_files in *"
20725"*) set x $ac_config_files; shift; ac_config_files=$*;;
20726esac
20727
20728case $ac_config_headers in *"
20729"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20730esac
20731
20732
20733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20734# Files that config.status was made for.
20735config_files="$ac_config_files"
20736config_headers="$ac_config_headers"
20737
20738_ACEOF
20739
20740cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20741ac_cs_usage="\
20742\`$as_me' instantiates files and other configuration actions
20743from templates according to the current configuration.  Unless the files
20744and actions are specified as TAGs, all are instantiated by default.
20745
20746Usage: $0 [OPTION]... [TAG]...
20747
20748  -h, --help       print this help, then exit
20749  -V, --version    print version number and configuration settings, then exit
20750      --config     print configuration, then exit
20751  -q, --quiet, --silent
20752                   do not print progress messages
20753  -d, --debug      don't remove temporary files
20754      --recheck    update $as_me by reconfiguring in the same conditions
20755      --file=FILE[:TEMPLATE]
20756                   instantiate the configuration file FILE
20757      --header=FILE[:TEMPLATE]
20758                   instantiate the configuration header FILE
20759
20760Configuration files:
20761$config_files
20762
20763Configuration headers:
20764$config_headers
20765
20766Report bugs to <expat-bugs@mail.libexpat.org>."
20767
20768_ACEOF
20769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20770ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20771ac_cs_version="\\
20772expat config.status 1.95.7
20773configured by $0, generated by GNU Autoconf 2.67,
20774  with options \\"\$ac_cs_config\\"
20775
20776Copyright (C) 2010 Free Software Foundation, Inc.
20777This config.status script is free software; the Free Software Foundation
20778gives unlimited permission to copy, distribute and modify it."
20779
20780ac_pwd='$ac_pwd'
20781srcdir='$srcdir'
20782INSTALL='$INSTALL'
20783test -n "\$AWK" || AWK=awk
20784_ACEOF
20785
20786cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20787# The default lists apply if the user does not specify any file.
20788ac_need_defaults=:
20789while test $# != 0
20790do
20791  case $1 in
20792  --*=?*)
20793    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20794    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20795    ac_shift=:
20796    ;;
20797  --*=)
20798    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20799    ac_optarg=
20800    ac_shift=:
20801    ;;
20802  *)
20803    ac_option=$1
20804    ac_optarg=$2
20805    ac_shift=shift
20806    ;;
20807  esac
20808
20809  case $ac_option in
20810  # Handling of the options.
20811  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20812    ac_cs_recheck=: ;;
20813  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20814    $as_echo "$ac_cs_version"; exit ;;
20815  --config | --confi | --conf | --con | --co | --c )
20816    $as_echo "$ac_cs_config"; exit ;;
20817  --debug | --debu | --deb | --de | --d | -d )
20818    debug=: ;;
20819  --file | --fil | --fi | --f )
20820    $ac_shift
20821    case $ac_optarg in
20822    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20823    '') as_fn_error $? "missing file argument" ;;
20824    esac
20825    as_fn_append CONFIG_FILES " '$ac_optarg'"
20826    ac_need_defaults=false;;
20827  --header | --heade | --head | --hea )
20828    $ac_shift
20829    case $ac_optarg in
20830    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20831    esac
20832    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20833    ac_need_defaults=false;;
20834  --he | --h)
20835    # Conflict between --help and --header
20836    as_fn_error $? "ambiguous option: \`$1'
20837Try \`$0 --help' for more information.";;
20838  --help | --hel | -h )
20839    $as_echo "$ac_cs_usage"; exit ;;
20840  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20841  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20842    ac_cs_silent=: ;;
20843
20844  # This is an error.
20845  -*) as_fn_error $? "unrecognized option: \`$1'
20846Try \`$0 --help' for more information." ;;
20847
20848  *) as_fn_append ac_config_targets " $1"
20849     ac_need_defaults=false ;;
20850
20851  esac
20852  shift
20853done
20854
20855ac_configure_extra_args=
20856
20857if $ac_cs_silent; then
20858  exec 6>/dev/null
20859  ac_configure_extra_args="$ac_configure_extra_args --silent"
20860fi
20861
20862_ACEOF
20863cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20864if \$ac_cs_recheck; then
20865  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20866  shift
20867  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20868  CONFIG_SHELL='$SHELL'
20869  export CONFIG_SHELL
20870  exec "\$@"
20871fi
20872
20873_ACEOF
20874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20875exec 5>>config.log
20876{
20877  echo
20878  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20879## Running $as_me. ##
20880_ASBOX
20881  $as_echo "$ac_log"
20882} >&5
20883
20884_ACEOF
20885cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20886_ACEOF
20887
20888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20889
20890# Handling of arguments.
20891for ac_config_target in $ac_config_targets
20892do
20893  case $ac_config_target in
20894    "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
20895    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20896
20897  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20898  esac
20899done
20900
20901
20902# If the user did not use the arguments to specify the items to instantiate,
20903# then the envvar interface is used.  Set only those that are not.
20904# We use the long form for the default assignment because of an extremely
20905# bizarre bug on SunOS 4.1.3.
20906if $ac_need_defaults; then
20907  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20908  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20909fi
20910
20911# Have a temporary directory for convenience.  Make it in the build tree
20912# simply because there is no reason against having it here, and in addition,
20913# creating and moving files from /tmp can sometimes cause problems.
20914# Hook for its removal unless debugging.
20915# Note that there is a small window in which the directory will not be cleaned:
20916# after its creation but before its name has been assigned to `$tmp'.
20917$debug ||
20918{
20919  tmp=
20920  trap 'exit_status=$?
20921  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20922' 0
20923  trap 'as_fn_exit 1' 1 2 13 15
20924}
20925# Create a (secure) tmp directory for tmp files.
20926
20927{
20928  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20929  test -n "$tmp" && test -d "$tmp"
20930}  ||
20931{
20932  tmp=./conf$$-$RANDOM
20933  (umask 077 && mkdir "$tmp")
20934} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20935
20936# Set up the scripts for CONFIG_FILES section.
20937# No need to generate them if there are no CONFIG_FILES.
20938# This happens for instance with `./config.status config.h'.
20939if test -n "$CONFIG_FILES"; then
20940
20941
20942ac_cr=`echo X | tr X '\015'`
20943# On cygwin, bash can eat \r inside `` if the user requested igncr.
20944# But we know of no other shell where ac_cr would be empty at this
20945# point, so we can use a bashism as a fallback.
20946if test "x$ac_cr" = x; then
20947  eval ac_cr=\$\'\\r\'
20948fi
20949ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20950if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20951  ac_cs_awk_cr='\\r'
20952else
20953  ac_cs_awk_cr=$ac_cr
20954fi
20955
20956echo 'BEGIN {' >"$tmp/subs1.awk" &&
20957_ACEOF
20958
20959
20960{
20961  echo "cat >conf$$subs.awk <<_ACEOF" &&
20962  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20963  echo "_ACEOF"
20964} >conf$$subs.sh ||
20965  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20966ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20967ac_delim='%!_!# '
20968for ac_last_try in false false false false false :; do
20969  . ./conf$$subs.sh ||
20970    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20971
20972  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20973  if test $ac_delim_n = $ac_delim_num; then
20974    break
20975  elif $ac_last_try; then
20976    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20977  else
20978    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20979  fi
20980done
20981rm -f conf$$subs.sh
20982
20983cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20984cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20985_ACEOF
20986sed -n '
20987h
20988s/^/S["/; s/!.*/"]=/
20989p
20990g
20991s/^[^!]*!//
20992:repl
20993t repl
20994s/'"$ac_delim"'$//
20995t delim
20996:nl
20997h
20998s/\(.\{148\}\)..*/\1/
20999t more1
21000s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21001p
21002n
21003b repl
21004:more1
21005s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21006p
21007g
21008s/.\{148\}//
21009t nl
21010:delim
21011h
21012s/\(.\{148\}\)..*/\1/
21013t more2
21014s/["\\]/\\&/g; s/^/"/; s/$/"/
21015p
21016b
21017:more2
21018s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21019p
21020g
21021s/.\{148\}//
21022t delim
21023' <conf$$subs.awk | sed '
21024/^[^""]/{
21025  N
21026  s/\n//
21027}
21028' >>$CONFIG_STATUS || ac_write_fail=1
21029rm -f conf$$subs.awk
21030cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21031_ACAWK
21032cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21033  for (key in S) S_is_set[key] = 1
21034  FS = ""
21035
21036}
21037{
21038  line = $ 0
21039  nfields = split(line, field, "@")
21040  substed = 0
21041  len = length(field[1])
21042  for (i = 2; i < nfields; i++) {
21043    key = field[i]
21044    keylen = length(key)
21045    if (S_is_set[key]) {
21046      value = S[key]
21047      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21048      len += length(value) + length(field[++i])
21049      substed = 1
21050    } else
21051      len += 1 + keylen
21052  }
21053
21054  print line
21055}
21056
21057_ACAWK
21058_ACEOF
21059cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21060if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21061  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21062else
21063  cat
21064fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21065  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21066_ACEOF
21067
21068# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21069# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21070# trailing colons and then remove the whole line if VPATH becomes empty
21071# (actually we leave an empty line to preserve line numbers).
21072if test "x$srcdir" = x.; then
21073  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21074h
21075s///
21076s/^/:/
21077s/[	 ]*$/:/
21078s/:\$(srcdir):/:/g
21079s/:\${srcdir}:/:/g
21080s/:@srcdir@:/:/g
21081s/^:*//
21082s/:*$//
21083x
21084s/\(=[	 ]*\).*/\1/
21085G
21086s/\n//
21087s/^[^=]*=[	 ]*$//
21088}'
21089fi
21090
21091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21092fi # test -n "$CONFIG_FILES"
21093
21094# Set up the scripts for CONFIG_HEADERS section.
21095# No need to generate them if there are no CONFIG_HEADERS.
21096# This happens for instance with `./config.status Makefile'.
21097if test -n "$CONFIG_HEADERS"; then
21098cat >"$tmp/defines.awk" <<\_ACAWK ||
21099BEGIN {
21100_ACEOF
21101
21102# Transform confdefs.h into an awk script `defines.awk', embedded as
21103# here-document in config.status, that substitutes the proper values into
21104# config.h.in to produce config.h.
21105
21106# Create a delimiter string that does not exist in confdefs.h, to ease
21107# handling of long lines.
21108ac_delim='%!_!# '
21109for ac_last_try in false false :; do
21110  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21111  if test -z "$ac_t"; then
21112    break
21113  elif $ac_last_try; then
21114    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21115  else
21116    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21117  fi
21118done
21119
21120# For the awk script, D is an array of macro values keyed by name,
21121# likewise P contains macro parameters if any.  Preserve backslash
21122# newline sequences.
21123
21124ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21125sed -n '
21126s/.\{148\}/&'"$ac_delim"'/g
21127t rset
21128:rset
21129s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21130t def
21131d
21132:def
21133s/\\$//
21134t bsnl
21135s/["\\]/\\&/g
21136s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21137D["\1"]=" \3"/p
21138s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21139d
21140:bsnl
21141s/["\\]/\\&/g
21142s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21143D["\1"]=" \3\\\\\\n"\\/p
21144t cont
21145s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21146t cont
21147d
21148:cont
21149n
21150s/.\{148\}/&'"$ac_delim"'/g
21151t clear
21152:clear
21153s/\\$//
21154t bsnlc
21155s/["\\]/\\&/g; s/^/"/; s/$/"/p
21156d
21157:bsnlc
21158s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21159b cont
21160' <confdefs.h | sed '
21161s/'"$ac_delim"'/"\\\
21162"/g' >>$CONFIG_STATUS || ac_write_fail=1
21163
21164cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21165  for (key in D) D_is_set[key] = 1
21166  FS = ""
21167}
21168/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21169  line = \$ 0
21170  split(line, arg, " ")
21171  if (arg[1] == "#") {
21172    defundef = arg[2]
21173    mac1 = arg[3]
21174  } else {
21175    defundef = substr(arg[1], 2)
21176    mac1 = arg[2]
21177  }
21178  split(mac1, mac2, "(") #)
21179  macro = mac2[1]
21180  prefix = substr(line, 1, index(line, defundef) - 1)
21181  if (D_is_set[macro]) {
21182    # Preserve the white space surrounding the "#".
21183    print prefix "define", macro P[macro] D[macro]
21184    next
21185  } else {
21186    # Replace #undef with comments.  This is necessary, for example,
21187    # in the case of _POSIX_SOURCE, which is predefined and required
21188    # on some systems where configure will not decide to define it.
21189    if (defundef == "undef") {
21190      print "/*", prefix defundef, macro, "*/"
21191      next
21192    }
21193  }
21194}
21195{ print }
21196_ACAWK
21197_ACEOF
21198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21199  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21200fi # test -n "$CONFIG_HEADERS"
21201
21202
21203eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
21204shift
21205for ac_tag
21206do
21207  case $ac_tag in
21208  :[FHLC]) ac_mode=$ac_tag; continue;;
21209  esac
21210  case $ac_mode$ac_tag in
21211  :[FHL]*:*);;
21212  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21213  :[FH]-) ac_tag=-:-;;
21214  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21215  esac
21216  ac_save_IFS=$IFS
21217  IFS=:
21218  set x $ac_tag
21219  IFS=$ac_save_IFS
21220  shift
21221  ac_file=$1
21222  shift
21223
21224  case $ac_mode in
21225  :L) ac_source=$1;;
21226  :[FH])
21227    ac_file_inputs=
21228    for ac_f
21229    do
21230      case $ac_f in
21231      -) ac_f="$tmp/stdin";;
21232      *) # Look for the file first in the build tree, then in the source tree
21233	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21234	 # because $ac_f cannot contain `:'.
21235	 test -f "$ac_f" ||
21236	   case $ac_f in
21237	   [\\/$]*) false;;
21238	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21239	   esac ||
21240	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21241      esac
21242      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21243      as_fn_append ac_file_inputs " '$ac_f'"
21244    done
21245
21246    # Let's still pretend it is `configure' which instantiates (i.e., don't
21247    # use $as_me), people would be surprised to read:
21248    #    /* config.h.  Generated by config.status.  */
21249    configure_input='Generated from '`
21250	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21251	`' by configure.'
21252    if test x"$ac_file" != x-; then
21253      configure_input="$ac_file.  $configure_input"
21254      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21255$as_echo "$as_me: creating $ac_file" >&6;}
21256    fi
21257    # Neutralize special characters interpreted by sed in replacement strings.
21258    case $configure_input in #(
21259    *\&* | *\|* | *\\* )
21260       ac_sed_conf_input=`$as_echo "$configure_input" |
21261       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21262    *) ac_sed_conf_input=$configure_input;;
21263    esac
21264
21265    case $ac_tag in
21266    *:-:* | *:-) cat >"$tmp/stdin" \
21267      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21268    esac
21269    ;;
21270  esac
21271
21272  ac_dir=`$as_dirname -- "$ac_file" ||
21273$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21274	 X"$ac_file" : 'X\(//\)[^/]' \| \
21275	 X"$ac_file" : 'X\(//\)$' \| \
21276	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21277$as_echo X"$ac_file" |
21278    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21279	    s//\1/
21280	    q
21281	  }
21282	  /^X\(\/\/\)[^/].*/{
21283	    s//\1/
21284	    q
21285	  }
21286	  /^X\(\/\/\)$/{
21287	    s//\1/
21288	    q
21289	  }
21290	  /^X\(\/\).*/{
21291	    s//\1/
21292	    q
21293	  }
21294	  s/.*/./; q'`
21295  as_dir="$ac_dir"; as_fn_mkdir_p
21296  ac_builddir=.
21297
21298case "$ac_dir" in
21299.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21300*)
21301  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21302  # A ".." for each directory in $ac_dir_suffix.
21303  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21304  case $ac_top_builddir_sub in
21305  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21306  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21307  esac ;;
21308esac
21309ac_abs_top_builddir=$ac_pwd
21310ac_abs_builddir=$ac_pwd$ac_dir_suffix
21311# for backward compatibility:
21312ac_top_builddir=$ac_top_build_prefix
21313
21314case $srcdir in
21315  .)  # We are building in place.
21316    ac_srcdir=.
21317    ac_top_srcdir=$ac_top_builddir_sub
21318    ac_abs_top_srcdir=$ac_pwd ;;
21319  [\\/]* | ?:[\\/]* )  # Absolute name.
21320    ac_srcdir=$srcdir$ac_dir_suffix;
21321    ac_top_srcdir=$srcdir
21322    ac_abs_top_srcdir=$srcdir ;;
21323  *) # Relative name.
21324    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21325    ac_top_srcdir=$ac_top_build_prefix$srcdir
21326    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21327esac
21328ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21329
21330
21331  case $ac_mode in
21332  :F)
21333  #
21334  # CONFIG_FILE
21335  #
21336
21337  case $INSTALL in
21338  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21339  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21340  esac
21341_ACEOF
21342
21343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21344# If the template does not know about datarootdir, expand it.
21345# FIXME: This hack should be removed a few years after 2.60.
21346ac_datarootdir_hack=; ac_datarootdir_seen=
21347ac_sed_dataroot='
21348/datarootdir/ {
21349  p
21350  q
21351}
21352/@datadir@/p
21353/@docdir@/p
21354/@infodir@/p
21355/@localedir@/p
21356/@mandir@/p'
21357case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21358*datarootdir*) ac_datarootdir_seen=yes;;
21359*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21360  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21361$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21362_ACEOF
21363cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21364  ac_datarootdir_hack='
21365  s&@datadir@&$datadir&g
21366  s&@docdir@&$docdir&g
21367  s&@infodir@&$infodir&g
21368  s&@localedir@&$localedir&g
21369  s&@mandir@&$mandir&g
21370  s&\\\${datarootdir}&$datarootdir&g' ;;
21371esac
21372_ACEOF
21373
21374# Neutralize VPATH when `$srcdir' = `.'.
21375# Shell code in configure.ac might set extrasub.
21376# FIXME: do we really want to maintain this feature?
21377cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21378ac_sed_extra="$ac_vpsub
21379$extrasub
21380_ACEOF
21381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21382:t
21383/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21384s|@configure_input@|$ac_sed_conf_input|;t t
21385s&@top_builddir@&$ac_top_builddir_sub&;t t
21386s&@top_build_prefix@&$ac_top_build_prefix&;t t
21387s&@srcdir@&$ac_srcdir&;t t
21388s&@abs_srcdir@&$ac_abs_srcdir&;t t
21389s&@top_srcdir@&$ac_top_srcdir&;t t
21390s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21391s&@builddir@&$ac_builddir&;t t
21392s&@abs_builddir@&$ac_abs_builddir&;t t
21393s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21394s&@INSTALL@&$ac_INSTALL&;t t
21395$ac_datarootdir_hack
21396"
21397eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21398  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21399
21400test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21401  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21402  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21403  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21404which seems to be undefined.  Please make sure it is defined" >&5
21405$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21406which seems to be undefined.  Please make sure it is defined" >&2;}
21407
21408  rm -f "$tmp/stdin"
21409  case $ac_file in
21410  -) cat "$tmp/out" && rm -f "$tmp/out";;
21411  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21412  esac \
21413  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21414 ;;
21415  :H)
21416  #
21417  # CONFIG_HEADER
21418  #
21419  if test x"$ac_file" != x-; then
21420    {
21421      $as_echo "/* $configure_input  */" \
21422      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21423    } >"$tmp/config.h" \
21424      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21425    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21426      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21427$as_echo "$as_me: $ac_file is unchanged" >&6;}
21428    else
21429      rm -f "$ac_file"
21430      mv "$tmp/config.h" "$ac_file" \
21431	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21432    fi
21433  else
21434    $as_echo "/* $configure_input  */" \
21435      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21436      || as_fn_error $? "could not create -" "$LINENO" 5
21437  fi
21438 ;;
21439
21440
21441  esac
21442
21443done # for ac_tag
21444
21445
21446as_fn_exit 0
21447_ACEOF
21448ac_clean_files=$ac_clean_files_save
21449
21450test $ac_write_fail = 0 ||
21451  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21452
21453
21454# configure is writing to config.log, and then calls config.status.
21455# config.status does its own redirection, appending to config.log.
21456# Unfortunately, on DOS this fails, as config.log is still kept open
21457# by configure, so config.status won't be able to write to it; its
21458# output is simply discarded.  So we exec the FD to /dev/null,
21459# effectively closing config.log, so it can be properly (re)opened and
21460# appended to by config.status.  When coming back to configure, we
21461# need to make the FD available again.
21462if test "$no_create" != yes; then
21463  ac_cs_success=:
21464  ac_config_status_args=
21465  test "$silent" = yes &&
21466    ac_config_status_args="$ac_config_status_args --quiet"
21467  exec 5>/dev/null
21468  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21469  exec 5>>config.log
21470  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21471  # would make configure fail if this is the last instruction.
21472  $ac_cs_success || as_fn_exit 1
21473fi
21474if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21475  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21476$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21477fi
21478
21479
21480abs_srcdir="`cd $srcdir && pwd`"
21481abs_builddir="`pwd`"
21482if test "$abs_srcdir" != "$abs_builddir"; then
21483  mkdir lib
21484fi
21485
21486