xref: /iperf/configure (revision 56a97f93)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for iperf 3.0a4.
4#
5# Report bugs to <[email protected]>.
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.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	# Preserve -v and -x to the replacement shell.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	case $- in # ((((
226	  *v*x* | *x*v* ) as_opts=-vx ;;
227	  *v* ) as_opts=-v ;;
228	  *x* ) as_opts=-x ;;
229	  * ) as_opts= ;;
230	esac
231	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell [email protected] and
242$0: [email protected] about your system,
243$0: including any error possibly output before this
244$0: message. Then install a modern shell, or manually run
245$0: the script under such a shell if you do have one."
246  fi
247  exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265  { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274  return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282  set +e
283  as_fn_set_status $1
284  exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293  case $as_dir in #(
294  -*) as_dir=./$as_dir;;
295  esac
296  test -d "$as_dir" || eval $as_mkdir_p || {
297    as_dirs=
298    while :; do
299      case $as_dir in #(
300      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301      *) as_qdir=$as_dir;;
302      esac
303      as_dirs="'$as_qdir' $as_dirs"
304      as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306	 X"$as_dir" : 'X\(//\)[^/]' \| \
307	 X"$as_dir" : 'X\(//\)$' \| \
308	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\/\)[^/].*/{
315	    s//\1/
316	    q
317	  }
318	  /^X\(\/\/\)$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\).*/{
323	    s//\1/
324	    q
325	  }
326	  s/.*/./; q'`
327      test -d "$as_dir" && break
328    done
329    test -z "$as_dirs" || eval "mkdir $as_dirs"
330  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341  eval 'as_fn_append ()
342  {
343    eval $1+=\$2
344  }'
345else
346  as_fn_append ()
347  {
348    eval $1=\$$1\$2
349  }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358  eval 'as_fn_arith ()
359  {
360    as_val=$(( $* ))
361  }'
362else
363  as_fn_arith ()
364  {
365    as_val=`expr "$@" || test $? -eq 1`
366  }
367fi # as_fn_arith
368
369
370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374# script with STATUS, using 1 if that was 0.
375as_fn_error ()
376{
377  as_status=$1; test $as_status -eq 0 && as_status=1
378  if test "$4"; then
379    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381  fi
382  $as_echo "$as_me: error: $2" >&2
383  as_fn_exit $as_status
384} # as_fn_error
385
386if expr a : '\(a\)' >/dev/null 2>&1 &&
387   test "X`expr 00001 : '.*\(...\)'`" = X001; then
388  as_expr=expr
389else
390  as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394  as_basename=basename
395else
396  as_basename=false
397fi
398
399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400  as_dirname=dirname
401else
402  as_dirname=false
403fi
404
405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407	 X"$0" : 'X\(//\)$' \| \
408	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410    sed '/^.*\/\([^/][^/]*\)\/*$/{
411	    s//\1/
412	    q
413	  }
414	  /^X\/\(\/\/\)$/{
415	    s//\1/
416	    q
417	  }
418	  /^X\/\(\/\).*/{
419	    s//\1/
420	    q
421	  }
422	  s/.*/./; q'`
423
424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432  as_lineno_1=$LINENO as_lineno_1a=$LINENO
433  as_lineno_2=$LINENO as_lineno_2a=$LINENO
434  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437  sed -n '
438    p
439    /[$]LINENO/=
440  ' <$as_myself |
441    sed '
442      s/[$]LINENO.*/&-/
443      t lineno
444      b
445      :lineno
446      N
447      :loop
448      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449      t loop
450      s/-\n.*//
451    ' >$as_me.lineno &&
452  chmod +x "$as_me.lineno" ||
453    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455  # Don't try to exec as it changes $[0], causing all sort of problems
456  # (the dirname of $[0] is not the place where we might find the
457  # original and so on.  Autoconf is especially sensitive to this).
458  . "./$as_me.lineno"
459  # Exit status is that of the last command.
460  exit
461}
462
463ECHO_C= ECHO_N= ECHO_T=
464case `echo -n x` in #(((((
465-n*)
466  case `echo 'xy\c'` in
467  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
468  xy)  ECHO_C='\c';;
469  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470       ECHO_T='	';;
471  esac;;
472*)
473  ECHO_N='-n';;
474esac
475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478  rm -f conf$$.dir/conf$$.file
479else
480  rm -f conf$$.dir
481  mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484  if ln -s conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s='ln -s'
486    # ... but there are two gotchas:
487    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489    # In both cases, we have to default to `cp -p'.
490    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491      as_ln_s='cp -p'
492  elif ln conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s=ln
494  else
495    as_ln_s='cp -p'
496  fi
497else
498  as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
504  as_mkdir_p='mkdir -p "$as_dir"'
505else
506  test -d ./-p && rmdir ./-p
507  as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511  as_test_x='test -x'
512else
513  if ls -dL / >/dev/null 2>&1; then
514    as_ls_L_option=L
515  else
516    as_ls_L_option=
517  fi
518  as_test_x='
519    eval sh -c '\''
520      if test -d "$1"; then
521	test -d "$1/.";
522      else
523	case $1 in #(
524	-*)set "./$1";;
525	esac;
526	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527	???[sx]*):;;*)false;;esac;fi
528    '\'' sh
529  '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541# Check that we are running under the correct shell.
542SHELL=${CONFIG_SHELL-/bin/sh}
543
544case X$ECHO in
545X*--fallback-echo)
546  # Remove one level of quotation (which was required for Make).
547  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
548  ;;
549esac
550
551echo=${ECHO-echo}
552if test "X$1" = X--no-reexec; then
553  # Discard the --no-reexec flag, and continue.
554  shift
555elif test "X$1" = X--fallback-echo; then
556  # Avoid inline document here, it may be left over
557  :
558elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
559  # Yippee, $echo works!
560  :
561else
562  # Restart under the correct shell.
563  exec $SHELL "$0" --no-reexec ${1+"$@"}
564fi
565
566if test "X$1" = X--fallback-echo; then
567  # used as fallback echo
568  shift
569  cat <<EOF
570$*
571EOF
572  exit 0
573fi
574
575# The HP-UX ksh and POSIX shell print the target directory to stdout
576# if CDPATH is set.
577(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
578
579if test -z "$ECHO"; then
580if test "X${echo_test_string+set}" != Xset; then
581# find a string as large as possible, as long as the shell can cope with it
582  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
583    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
584    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
585       echo_test_string=`eval $cmd` &&
586       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
587    then
588      break
589    fi
590  done
591fi
592
593if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
594   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
595   test "X$echo_testing_string" = "X$echo_test_string"; then
596  :
597else
598  # The Solaris, AIX, and Digital Unix default echo programs unquote
599  # backslashes.  This makes it impossible to quote backslashes using
600  #   echo "$something" | sed 's/\\/\\\\/g'
601  #
602  # So, first we look for a working echo in the user's PATH.
603
604  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
605  for dir in $PATH /usr/ucb; do
606    IFS="$lt_save_ifs"
607    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
608       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
609       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
610       test "X$echo_testing_string" = "X$echo_test_string"; then
611      echo="$dir/echo"
612      break
613    fi
614  done
615  IFS="$lt_save_ifs"
616
617  if test "X$echo" = Xecho; then
618    # We didn't find a better echo, so look for alternatives.
619    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
620       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
621       test "X$echo_testing_string" = "X$echo_test_string"; then
622      # This shell has a builtin print -r that does the trick.
623      echo='print -r'
624    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
625	 test "X$CONFIG_SHELL" != X/bin/ksh; then
626      # If we have ksh, try running configure again with it.
627      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
628      export ORIGINAL_CONFIG_SHELL
629      CONFIG_SHELL=/bin/ksh
630      export CONFIG_SHELL
631      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
632    else
633      # Try using printf.
634      echo='printf %s\n'
635      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
636	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
637	 test "X$echo_testing_string" = "X$echo_test_string"; then
638	# Cool, printf works
639	:
640      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641	   test "X$echo_testing_string" = 'X\t' &&
642	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643	   test "X$echo_testing_string" = "X$echo_test_string"; then
644	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
645	export CONFIG_SHELL
646	SHELL="$CONFIG_SHELL"
647	export SHELL
648	echo="$CONFIG_SHELL $0 --fallback-echo"
649      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
650	   test "X$echo_testing_string" = 'X\t' &&
651	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
652	   test "X$echo_testing_string" = "X$echo_test_string"; then
653	echo="$CONFIG_SHELL $0 --fallback-echo"
654      else
655	# maybe with a smaller string...
656	prev=:
657
658	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
659	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
660	  then
661	    break
662	  fi
663	  prev="$cmd"
664	done
665
666	if test "$prev" != 'sed 50q "$0"'; then
667	  echo_test_string=`eval $prev`
668	  export echo_test_string
669	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
670	else
671	  # Oops.  We lost completely, so just stick with echo.
672	  echo=echo
673	fi
674      fi
675    fi
676  fi
677fi
678fi
679
680# Copy echo and quote the copy suitably for passing to libtool from
681# the Makefile, instead of quoting the original, which is used later.
682ECHO=$echo
683if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
684   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
685fi
686
687
688
689
690tagnames=${tagnames+${tagnames},}CXX
691
692tagnames=${tagnames+${tagnames},}F77
693
694test -n "$DJDIR" || exec 7<&0 </dev/null
695exec 6>&1
696
697# Name of the host.
698# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
706ac_clean_files=
707ac_config_libobj_dir=.
708LIBOBJS=
709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713
714# Identity of this package.
715PACKAGE_NAME='iperf'
716PACKAGE_TARNAME='iperf'
717PACKAGE_VERSION='3.0a4'
718PACKAGE_STRING='iperf 3.0a4'
719PACKAGE_BUGREPORT='[email protected]'
720PACKAGE_URL=''
721
722# Factoring default headers for most tests.
723ac_includes_default="\
724#include <stdio.h>
725#ifdef HAVE_SYS_TYPES_H
726# include <sys/types.h>
727#endif
728#ifdef HAVE_SYS_STAT_H
729# include <sys/stat.h>
730#endif
731#ifdef STDC_HEADERS
732# include <stdlib.h>
733# include <stddef.h>
734#else
735# ifdef HAVE_STDLIB_H
736#  include <stdlib.h>
737# endif
738#endif
739#ifdef HAVE_STRING_H
740# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
741#  include <memory.h>
742# endif
743# include <string.h>
744#endif
745#ifdef HAVE_STRINGS_H
746# include <strings.h>
747#endif
748#ifdef HAVE_INTTYPES_H
749# include <inttypes.h>
750#endif
751#ifdef HAVE_STDINT_H
752# include <stdint.h>
753#endif
754#ifdef HAVE_UNISTD_H
755# include <unistd.h>
756#endif"
757
758ac_subst_vars='LTLIBOBJS
759LIBOBJS
760LINUX_FALSE
761LINUX_TRUE
762LIBTOOL
763ac_ct_F77
764FFLAGS
765F77
766CXXCPP
767am__fastdepCXX_FALSE
768am__fastdepCXX_TRUE
769CXXDEPMODE
770ac_ct_CXX
771CXXFLAGS
772CXX
773CPP
774AR
775ECHO
776EGREP
777GREP
778SED
779LN_S
780RANLIB
781am__fastdepCC_FALSE
782am__fastdepCC_TRUE
783CCDEPMODE
784AMDEPBACKSLASH
785AMDEP_FALSE
786AMDEP_TRUE
787am__quote
788am__include
789DEPDIR
790OBJEXT
791EXEEXT
792ac_ct_CC
793CPPFLAGS
794LDFLAGS
795CFLAGS
796CC
797host_os
798host_vendor
799host_cpu
800host
801build_os
802build_vendor
803build_cpu
804build
805am__untar
806am__tar
807AMTAR
808am__leading_dot
809SET_MAKE
810AWK
811mkdir_p
812INSTALL_STRIP_PROGRAM
813STRIP
814install_sh
815MAKEINFO
816AUTOHEADER
817AUTOMAKE
818AUTOCONF
819ACLOCAL
820VERSION
821PACKAGE
822CYGPATH_W
823INSTALL_DATA
824INSTALL_SCRIPT
825INSTALL_PROGRAM
826target_alias
827host_alias
828build_alias
829LIBS
830ECHO_T
831ECHO_N
832ECHO_C
833DEFS
834mandir
835localedir
836libdir
837psdir
838pdfdir
839dvidir
840htmldir
841infodir
842docdir
843oldincludedir
844includedir
845localstatedir
846sharedstatedir
847sysconfdir
848datadir
849datarootdir
850libexecdir
851sbindir
852bindir
853program_transform_name
854prefix
855exec_prefix
856PACKAGE_URL
857PACKAGE_BUGREPORT
858PACKAGE_STRING
859PACKAGE_VERSION
860PACKAGE_TARNAME
861PACKAGE_NAME
862PATH_SEPARATOR
863SHELL'
864ac_subst_files=''
865ac_user_opts='
866enable_option_checking
867enable_dependency_tracking
868enable_shared
869enable_static
870enable_fast_install
871with_gnu_ld
872enable_libtool_lock
873with_pic
874with_tags
875'
876      ac_precious_vars='build_alias
877host_alias
878target_alias
879CC
880CFLAGS
881LDFLAGS
882LIBS
883CPPFLAGS
884CPP
885CXX
886CXXFLAGS
887CCC
888CXXCPP
889F77
890FFLAGS'
891
892
893# Initialize some variables set by options.
894ac_init_help=
895ac_init_version=false
896ac_unrecognized_opts=
897ac_unrecognized_sep=
898# The variables have the same names as the options, with
899# dashes changed to underlines.
900cache_file=/dev/null
901exec_prefix=NONE
902no_create=
903no_recursion=
904prefix=NONE
905program_prefix=NONE
906program_suffix=NONE
907program_transform_name=s,x,x,
908silent=
909site=
910srcdir=
911verbose=
912x_includes=NONE
913x_libraries=NONE
914
915# Installation directory options.
916# These are left unexpanded so users can "make install exec_prefix=/foo"
917# and all the variables that are supposed to be based on exec_prefix
918# by default will actually change.
919# Use braces instead of parens because sh, perl, etc. also accept them.
920# (The list follows the same order as the GNU Coding Standards.)
921bindir='${exec_prefix}/bin'
922sbindir='${exec_prefix}/sbin'
923libexecdir='${exec_prefix}/libexec'
924datarootdir='${prefix}/share'
925datadir='${datarootdir}'
926sysconfdir='${prefix}/etc'
927sharedstatedir='${prefix}/com'
928localstatedir='${prefix}/var'
929includedir='${prefix}/include'
930oldincludedir='/usr/include'
931docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
932infodir='${datarootdir}/info'
933htmldir='${docdir}'
934dvidir='${docdir}'
935pdfdir='${docdir}'
936psdir='${docdir}'
937libdir='${exec_prefix}/lib'
938localedir='${datarootdir}/locale'
939mandir='${datarootdir}/man'
940
941ac_prev=
942ac_dashdash=
943for ac_option
944do
945  # If the previous option needs an argument, assign it.
946  if test -n "$ac_prev"; then
947    eval $ac_prev=\$ac_option
948    ac_prev=
949    continue
950  fi
951
952  case $ac_option in
953  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
954  *=)   ac_optarg= ;;
955  *)    ac_optarg=yes ;;
956  esac
957
958  # Accept the important Cygnus configure options, so we can diagnose typos.
959
960  case $ac_dashdash$ac_option in
961  --)
962    ac_dashdash=yes ;;
963
964  -bindir | --bindir | --bindi | --bind | --bin | --bi)
965    ac_prev=bindir ;;
966  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
967    bindir=$ac_optarg ;;
968
969  -build | --build | --buil | --bui | --bu)
970    ac_prev=build_alias ;;
971  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
972    build_alias=$ac_optarg ;;
973
974  -cache-file | --cache-file | --cache-fil | --cache-fi \
975  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
976    ac_prev=cache_file ;;
977  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
978  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
979    cache_file=$ac_optarg ;;
980
981  --config-cache | -C)
982    cache_file=config.cache ;;
983
984  -datadir | --datadir | --datadi | --datad)
985    ac_prev=datadir ;;
986  -datadir=* | --datadir=* | --datadi=* | --datad=*)
987    datadir=$ac_optarg ;;
988
989  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
990  | --dataroo | --dataro | --datar)
991    ac_prev=datarootdir ;;
992  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
993  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
994    datarootdir=$ac_optarg ;;
995
996  -disable-* | --disable-*)
997    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
998    # Reject names that are not valid shell variable names.
999    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000      as_fn_error $? "invalid feature name: $ac_useropt"
1001    ac_useropt_orig=$ac_useropt
1002    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003    case $ac_user_opts in
1004      *"
1005"enable_$ac_useropt"
1006"*) ;;
1007      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1008	 ac_unrecognized_sep=', ';;
1009    esac
1010    eval enable_$ac_useropt=no ;;
1011
1012  -docdir | --docdir | --docdi | --doc | --do)
1013    ac_prev=docdir ;;
1014  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1015    docdir=$ac_optarg ;;
1016
1017  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1018    ac_prev=dvidir ;;
1019  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1020    dvidir=$ac_optarg ;;
1021
1022  -enable-* | --enable-*)
1023    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1024    # Reject names that are not valid shell variable names.
1025    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1026      as_fn_error $? "invalid feature name: $ac_useropt"
1027    ac_useropt_orig=$ac_useropt
1028    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1029    case $ac_user_opts in
1030      *"
1031"enable_$ac_useropt"
1032"*) ;;
1033      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1034	 ac_unrecognized_sep=', ';;
1035    esac
1036    eval enable_$ac_useropt=\$ac_optarg ;;
1037
1038  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1039  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1040  | --exec | --exe | --ex)
1041    ac_prev=exec_prefix ;;
1042  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1043  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1044  | --exec=* | --exe=* | --ex=*)
1045    exec_prefix=$ac_optarg ;;
1046
1047  -gas | --gas | --ga | --g)
1048    # Obsolete; use --with-gas.
1049    with_gas=yes ;;
1050
1051  -help | --help | --hel | --he | -h)
1052    ac_init_help=long ;;
1053  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1054    ac_init_help=recursive ;;
1055  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1056    ac_init_help=short ;;
1057
1058  -host | --host | --hos | --ho)
1059    ac_prev=host_alias ;;
1060  -host=* | --host=* | --hos=* | --ho=*)
1061    host_alias=$ac_optarg ;;
1062
1063  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1064    ac_prev=htmldir ;;
1065  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1066  | --ht=*)
1067    htmldir=$ac_optarg ;;
1068
1069  -includedir | --includedir | --includedi | --included | --include \
1070  | --includ | --inclu | --incl | --inc)
1071    ac_prev=includedir ;;
1072  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1073  | --includ=* | --inclu=* | --incl=* | --inc=*)
1074    includedir=$ac_optarg ;;
1075
1076  -infodir | --infodir | --infodi | --infod | --info | --inf)
1077    ac_prev=infodir ;;
1078  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1079    infodir=$ac_optarg ;;
1080
1081  -libdir | --libdir | --libdi | --libd)
1082    ac_prev=libdir ;;
1083  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1084    libdir=$ac_optarg ;;
1085
1086  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1087  | --libexe | --libex | --libe)
1088    ac_prev=libexecdir ;;
1089  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1090  | --libexe=* | --libex=* | --libe=*)
1091    libexecdir=$ac_optarg ;;
1092
1093  -localedir | --localedir | --localedi | --localed | --locale)
1094    ac_prev=localedir ;;
1095  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1096    localedir=$ac_optarg ;;
1097
1098  -localstatedir | --localstatedir | --localstatedi | --localstated \
1099  | --localstate | --localstat | --localsta | --localst | --locals)
1100    ac_prev=localstatedir ;;
1101  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1102  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1103    localstatedir=$ac_optarg ;;
1104
1105  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1106    ac_prev=mandir ;;
1107  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1108    mandir=$ac_optarg ;;
1109
1110  -nfp | --nfp | --nf)
1111    # Obsolete; use --without-fp.
1112    with_fp=no ;;
1113
1114  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1115  | --no-cr | --no-c | -n)
1116    no_create=yes ;;
1117
1118  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1119  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1120    no_recursion=yes ;;
1121
1122  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1123  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1124  | --oldin | --oldi | --old | --ol | --o)
1125    ac_prev=oldincludedir ;;
1126  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1127  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1128  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1129    oldincludedir=$ac_optarg ;;
1130
1131  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1132    ac_prev=prefix ;;
1133  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1134    prefix=$ac_optarg ;;
1135
1136  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1137  | --program-pre | --program-pr | --program-p)
1138    ac_prev=program_prefix ;;
1139  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1140  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1141    program_prefix=$ac_optarg ;;
1142
1143  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1144  | --program-suf | --program-su | --program-s)
1145    ac_prev=program_suffix ;;
1146  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1147  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1148    program_suffix=$ac_optarg ;;
1149
1150  -program-transform-name | --program-transform-name \
1151  | --program-transform-nam | --program-transform-na \
1152  | --program-transform-n | --program-transform- \
1153  | --program-transform | --program-transfor \
1154  | --program-transfo | --program-transf \
1155  | --program-trans | --program-tran \
1156  | --progr-tra | --program-tr | --program-t)
1157    ac_prev=program_transform_name ;;
1158  -program-transform-name=* | --program-transform-name=* \
1159  | --program-transform-nam=* | --program-transform-na=* \
1160  | --program-transform-n=* | --program-transform-=* \
1161  | --program-transform=* | --program-transfor=* \
1162  | --program-transfo=* | --program-transf=* \
1163  | --program-trans=* | --program-tran=* \
1164  | --progr-tra=* | --program-tr=* | --program-t=*)
1165    program_transform_name=$ac_optarg ;;
1166
1167  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1168    ac_prev=pdfdir ;;
1169  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1170    pdfdir=$ac_optarg ;;
1171
1172  -psdir | --psdir | --psdi | --psd | --ps)
1173    ac_prev=psdir ;;
1174  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1175    psdir=$ac_optarg ;;
1176
1177  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1178  | -silent | --silent | --silen | --sile | --sil)
1179    silent=yes ;;
1180
1181  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1182    ac_prev=sbindir ;;
1183  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1184  | --sbi=* | --sb=*)
1185    sbindir=$ac_optarg ;;
1186
1187  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1188  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1189  | --sharedst | --shareds | --shared | --share | --shar \
1190  | --sha | --sh)
1191    ac_prev=sharedstatedir ;;
1192  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1193  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1194  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1195  | --sha=* | --sh=*)
1196    sharedstatedir=$ac_optarg ;;
1197
1198  -site | --site | --sit)
1199    ac_prev=site ;;
1200  -site=* | --site=* | --sit=*)
1201    site=$ac_optarg ;;
1202
1203  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1204    ac_prev=srcdir ;;
1205  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1206    srcdir=$ac_optarg ;;
1207
1208  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1209  | --syscon | --sysco | --sysc | --sys | --sy)
1210    ac_prev=sysconfdir ;;
1211  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1212  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1213    sysconfdir=$ac_optarg ;;
1214
1215  -target | --target | --targe | --targ | --tar | --ta | --t)
1216    ac_prev=target_alias ;;
1217  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1218    target_alias=$ac_optarg ;;
1219
1220  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1221    verbose=yes ;;
1222
1223  -version | --version | --versio | --versi | --vers | -V)
1224    ac_init_version=: ;;
1225
1226  -with-* | --with-*)
1227    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1228    # Reject names that are not valid shell variable names.
1229    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1230      as_fn_error $? "invalid package name: $ac_useropt"
1231    ac_useropt_orig=$ac_useropt
1232    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1233    case $ac_user_opts in
1234      *"
1235"with_$ac_useropt"
1236"*) ;;
1237      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1238	 ac_unrecognized_sep=', ';;
1239    esac
1240    eval with_$ac_useropt=\$ac_optarg ;;
1241
1242  -without-* | --without-*)
1243    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1244    # Reject names that are not valid shell variable names.
1245    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1246      as_fn_error $? "invalid package name: $ac_useropt"
1247    ac_useropt_orig=$ac_useropt
1248    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249    case $ac_user_opts in
1250      *"
1251"with_$ac_useropt"
1252"*) ;;
1253      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1254	 ac_unrecognized_sep=', ';;
1255    esac
1256    eval with_$ac_useropt=no ;;
1257
1258  --x)
1259    # Obsolete; use --with-x.
1260    with_x=yes ;;
1261
1262  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1263  | --x-incl | --x-inc | --x-in | --x-i)
1264    ac_prev=x_includes ;;
1265  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1266  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1267    x_includes=$ac_optarg ;;
1268
1269  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1270  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1271    ac_prev=x_libraries ;;
1272  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1273  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1274    x_libraries=$ac_optarg ;;
1275
1276  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1277Try \`$0 --help' for more information"
1278    ;;
1279
1280  *=*)
1281    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1282    # Reject names that are not valid shell variable names.
1283    case $ac_envvar in #(
1284      '' | [0-9]* | *[!_$as_cr_alnum]* )
1285      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1286    esac
1287    eval $ac_envvar=\$ac_optarg
1288    export $ac_envvar ;;
1289
1290  *)
1291    # FIXME: should be removed in autoconf 3.0.
1292    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1293    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1294      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1295    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1296    ;;
1297
1298  esac
1299done
1300
1301if test -n "$ac_prev"; then
1302  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1303  as_fn_error $? "missing argument to $ac_option"
1304fi
1305
1306if test -n "$ac_unrecognized_opts"; then
1307  case $enable_option_checking in
1308    no) ;;
1309    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1310    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1311  esac
1312fi
1313
1314# Check all directory arguments for consistency.
1315for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1316		datadir sysconfdir sharedstatedir localstatedir includedir \
1317		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1318		libdir localedir mandir
1319do
1320  eval ac_val=\$$ac_var
1321  # Remove trailing slashes.
1322  case $ac_val in
1323    */ )
1324      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1325      eval $ac_var=\$ac_val;;
1326  esac
1327  # Be sure to have absolute directory names.
1328  case $ac_val in
1329    [\\/$]* | ?:[\\/]* )  continue;;
1330    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1331  esac
1332  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1333done
1334
1335# There might be people who depend on the old broken behavior: `$host'
1336# used to hold the argument of --host etc.
1337# FIXME: To remove some day.
1338build=$build_alias
1339host=$host_alias
1340target=$target_alias
1341
1342# FIXME: To remove some day.
1343if test "x$host_alias" != x; then
1344  if test "x$build_alias" = x; then
1345    cross_compiling=maybe
1346    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1347    If a cross compiler is detected then cross compile mode will be used" >&2
1348  elif test "x$build_alias" != "x$host_alias"; then
1349    cross_compiling=yes
1350  fi
1351fi
1352
1353ac_tool_prefix=
1354test -n "$host_alias" && ac_tool_prefix=$host_alias-
1355
1356test "$silent" = yes && exec 6>/dev/null
1357
1358
1359ac_pwd=`pwd` && test -n "$ac_pwd" &&
1360ac_ls_di=`ls -di .` &&
1361ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1362  as_fn_error $? "working directory cannot be determined"
1363test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1364  as_fn_error $? "pwd does not report name of working directory"
1365
1366
1367# Find the source files, if location was not specified.
1368if test -z "$srcdir"; then
1369  ac_srcdir_defaulted=yes
1370  # Try the directory containing this script, then the parent directory.
1371  ac_confdir=`$as_dirname -- "$as_myself" ||
1372$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1373	 X"$as_myself" : 'X\(//\)[^/]' \| \
1374	 X"$as_myself" : 'X\(//\)$' \| \
1375	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1376$as_echo X"$as_myself" |
1377    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1378	    s//\1/
1379	    q
1380	  }
1381	  /^X\(\/\/\)[^/].*/{
1382	    s//\1/
1383	    q
1384	  }
1385	  /^X\(\/\/\)$/{
1386	    s//\1/
1387	    q
1388	  }
1389	  /^X\(\/\).*/{
1390	    s//\1/
1391	    q
1392	  }
1393	  s/.*/./; q'`
1394  srcdir=$ac_confdir
1395  if test ! -r "$srcdir/$ac_unique_file"; then
1396    srcdir=..
1397  fi
1398else
1399  ac_srcdir_defaulted=no
1400fi
1401if test ! -r "$srcdir/$ac_unique_file"; then
1402  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1403  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1404fi
1405ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1406ac_abs_confdir=`(
1407	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1408	pwd)`
1409# When building in place, set srcdir=.
1410if test "$ac_abs_confdir" = "$ac_pwd"; then
1411  srcdir=.
1412fi
1413# Remove unnecessary trailing slashes from srcdir.
1414# Double slashes in file names in object file debugging info
1415# mess up M-x gdb in Emacs.
1416case $srcdir in
1417*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1418esac
1419for ac_var in $ac_precious_vars; do
1420  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1421  eval ac_env_${ac_var}_value=\$${ac_var}
1422  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1423  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1424done
1425
1426#
1427# Report the --help message.
1428#
1429if test "$ac_init_help" = "long"; then
1430  # Omit some internal or obsolete options to make the list less imposing.
1431  # This message is too long to be a string in the A/UX 3.1 sh.
1432  cat <<_ACEOF
1433\`configure' configures iperf 3.0a4 to adapt to many kinds of systems.
1434
1435Usage: $0 [OPTION]... [VAR=VALUE]...
1436
1437To assign environment variables (e.g., CC, CFLAGS...), specify them as
1438VAR=VALUE.  See below for descriptions of some of the useful variables.
1439
1440Defaults for the options are specified in brackets.
1441
1442Configuration:
1443  -h, --help              display this help and exit
1444      --help=short        display options specific to this package
1445      --help=recursive    display the short help of all the included packages
1446  -V, --version           display version information and exit
1447  -q, --quiet, --silent   do not print \`checking ...' messages
1448      --cache-file=FILE   cache test results in FILE [disabled]
1449  -C, --config-cache      alias for \`--cache-file=config.cache'
1450  -n, --no-create         do not create output files
1451      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1452
1453Installation directories:
1454  --prefix=PREFIX         install architecture-independent files in PREFIX
1455                          [$ac_default_prefix]
1456  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1457                          [PREFIX]
1458
1459By default, \`make install' will install all the files in
1460\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1461an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1462for instance \`--prefix=\$HOME'.
1463
1464For better control, use the options below.
1465
1466Fine tuning of the installation directories:
1467  --bindir=DIR            user executables [EPREFIX/bin]
1468  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1469  --libexecdir=DIR        program executables [EPREFIX/libexec]
1470  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1471  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1472  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1473  --libdir=DIR            object code libraries [EPREFIX/lib]
1474  --includedir=DIR        C header files [PREFIX/include]
1475  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1476  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1477  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1478  --infodir=DIR           info documentation [DATAROOTDIR/info]
1479  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1480  --mandir=DIR            man documentation [DATAROOTDIR/man]
1481  --docdir=DIR            documentation root [DATAROOTDIR/doc/iperf]
1482  --htmldir=DIR           html documentation [DOCDIR]
1483  --dvidir=DIR            dvi documentation [DOCDIR]
1484  --pdfdir=DIR            pdf documentation [DOCDIR]
1485  --psdir=DIR             ps documentation [DOCDIR]
1486_ACEOF
1487
1488  cat <<\_ACEOF
1489
1490Program names:
1491  --program-prefix=PREFIX            prepend PREFIX to installed program names
1492  --program-suffix=SUFFIX            append SUFFIX to installed program names
1493  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1494
1495System types:
1496  --build=BUILD     configure for building on BUILD [guessed]
1497  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1498_ACEOF
1499fi
1500
1501if test -n "$ac_init_help"; then
1502  case $ac_init_help in
1503     short | recursive ) echo "Configuration of iperf 3.0a4:";;
1504   esac
1505  cat <<\_ACEOF
1506
1507Optional Features:
1508  --disable-option-checking  ignore unrecognized --enable/--with options
1509  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1510  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1511  --disable-dependency-tracking  speeds up one-time build
1512  --enable-dependency-tracking   do not reject slow dependency extractors
1513  --enable-shared[=PKGS]  build shared libraries [default=yes]
1514  --enable-static[=PKGS]  build static libraries [default=yes]
1515  --enable-fast-install[=PKGS]
1516                          optimize for fast installation [default=yes]
1517  --disable-libtool-lock  avoid locking (might break parallel builds)
1518
1519Optional Packages:
1520  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1521  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1522  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1523  --with-pic              try to use only PIC/non-PIC objects [default=use
1524                          both]
1525  --with-tags[=TAGS]      include additional configurations [automatic]
1526
1527Some influential environment variables:
1528  CC          C compiler command
1529  CFLAGS      C compiler flags
1530  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1531              nonstandard directory <lib dir>
1532  LIBS        libraries to pass to the linker, e.g. -l<library>
1533  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1534              you have headers in a nonstandard directory <include dir>
1535  CPP         C preprocessor
1536  CXX         C++ compiler command
1537  CXXFLAGS    C++ compiler flags
1538  CXXCPP      C++ preprocessor
1539  F77         Fortran 77 compiler command
1540  FFLAGS      Fortran 77 compiler flags
1541
1542Use these variables to override the choices made by `configure' or to help
1543it to find libraries and programs with nonstandard names/locations.
1544
1545Report bugs to <[email protected]>.
1546_ACEOF
1547ac_status=$?
1548fi
1549
1550if test "$ac_init_help" = "recursive"; then
1551  # If there are subdirs, report their specific --help.
1552  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1553    test -d "$ac_dir" ||
1554      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1555      continue
1556    ac_builddir=.
1557
1558case "$ac_dir" in
1559.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560*)
1561  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1562  # A ".." for each directory in $ac_dir_suffix.
1563  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1564  case $ac_top_builddir_sub in
1565  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1567  esac ;;
1568esac
1569ac_abs_top_builddir=$ac_pwd
1570ac_abs_builddir=$ac_pwd$ac_dir_suffix
1571# for backward compatibility:
1572ac_top_builddir=$ac_top_build_prefix
1573
1574case $srcdir in
1575  .)  # We are building in place.
1576    ac_srcdir=.
1577    ac_top_srcdir=$ac_top_builddir_sub
1578    ac_abs_top_srcdir=$ac_pwd ;;
1579  [\\/]* | ?:[\\/]* )  # Absolute name.
1580    ac_srcdir=$srcdir$ac_dir_suffix;
1581    ac_top_srcdir=$srcdir
1582    ac_abs_top_srcdir=$srcdir ;;
1583  *) # Relative name.
1584    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1585    ac_top_srcdir=$ac_top_build_prefix$srcdir
1586    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1587esac
1588ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1589
1590    cd "$ac_dir" || { ac_status=$?; continue; }
1591    # Check for guested configure.
1592    if test -f "$ac_srcdir/configure.gnu"; then
1593      echo &&
1594      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1595    elif test -f "$ac_srcdir/configure"; then
1596      echo &&
1597      $SHELL "$ac_srcdir/configure" --help=recursive
1598    else
1599      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1600    fi || ac_status=$?
1601    cd "$ac_pwd" || { ac_status=$?; break; }
1602  done
1603fi
1604
1605test -n "$ac_init_help" && exit $ac_status
1606if $ac_init_version; then
1607  cat <<\_ACEOF
1608iperf configure 3.0a4
1609generated by GNU Autoconf 2.68
1610
1611Copyright (C) 2010 Free Software Foundation, Inc.
1612This configure script is free software; the Free Software Foundation
1613gives unlimited permission to copy, distribute and modify it.
1614_ACEOF
1615  exit
1616fi
1617
1618## ------------------------ ##
1619## Autoconf initialization. ##
1620## ------------------------ ##
1621
1622# ac_fn_c_try_compile LINENO
1623# --------------------------
1624# Try to compile conftest.$ac_ext, and return whether this succeeded.
1625ac_fn_c_try_compile ()
1626{
1627  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628  rm -f conftest.$ac_objext
1629  if { { ac_try="$ac_compile"
1630case "(($ac_try" in
1631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632  *) ac_try_echo=$ac_try;;
1633esac
1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635$as_echo "$ac_try_echo"; } >&5
1636  (eval "$ac_compile") 2>conftest.err
1637  ac_status=$?
1638  if test -s conftest.err; then
1639    grep -v '^ *+' conftest.err >conftest.er1
1640    cat conftest.er1 >&5
1641    mv -f conftest.er1 conftest.err
1642  fi
1643  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644  test $ac_status = 0; } && {
1645	 test -z "$ac_c_werror_flag" ||
1646	 test ! -s conftest.err
1647       } && test -s conftest.$ac_objext; then :
1648  ac_retval=0
1649else
1650  $as_echo "$as_me: failed program was:" >&5
1651sed 's/^/| /' conftest.$ac_ext >&5
1652
1653	ac_retval=1
1654fi
1655  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656  as_fn_set_status $ac_retval
1657
1658} # ac_fn_c_try_compile
1659
1660# ac_fn_c_try_link LINENO
1661# -----------------------
1662# Try to link conftest.$ac_ext, and return whether this succeeded.
1663ac_fn_c_try_link ()
1664{
1665  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666  rm -f conftest.$ac_objext conftest$ac_exeext
1667  if { { ac_try="$ac_link"
1668case "(($ac_try" in
1669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670  *) ac_try_echo=$ac_try;;
1671esac
1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673$as_echo "$ac_try_echo"; } >&5
1674  (eval "$ac_link") 2>conftest.err
1675  ac_status=$?
1676  if test -s conftest.err; then
1677    grep -v '^ *+' conftest.err >conftest.er1
1678    cat conftest.er1 >&5
1679    mv -f conftest.er1 conftest.err
1680  fi
1681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682  test $ac_status = 0; } && {
1683	 test -z "$ac_c_werror_flag" ||
1684	 test ! -s conftest.err
1685       } && test -s conftest$ac_exeext && {
1686	 test "$cross_compiling" = yes ||
1687	 $as_test_x conftest$ac_exeext
1688       }; then :
1689  ac_retval=0
1690else
1691  $as_echo "$as_me: failed program was:" >&5
1692sed 's/^/| /' conftest.$ac_ext >&5
1693
1694	ac_retval=1
1695fi
1696  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1697  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1698  # interfere with the next link command; also delete a directory that is
1699  # left behind by Apple's compiler.  We do this before executing the actions.
1700  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702  as_fn_set_status $ac_retval
1703
1704} # ac_fn_c_try_link
1705
1706# ac_fn_c_try_cpp LINENO
1707# ----------------------
1708# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1709ac_fn_c_try_cpp ()
1710{
1711  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712  if { { ac_try="$ac_cpp conftest.$ac_ext"
1713case "(($ac_try" in
1714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715  *) ac_try_echo=$ac_try;;
1716esac
1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718$as_echo "$ac_try_echo"; } >&5
1719  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1720  ac_status=$?
1721  if test -s conftest.err; then
1722    grep -v '^ *+' conftest.err >conftest.er1
1723    cat conftest.er1 >&5
1724    mv -f conftest.er1 conftest.err
1725  fi
1726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727  test $ac_status = 0; } > conftest.i && {
1728	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1729	 test ! -s conftest.err
1730       }; then :
1731  ac_retval=0
1732else
1733  $as_echo "$as_me: failed program was:" >&5
1734sed 's/^/| /' conftest.$ac_ext >&5
1735
1736    ac_retval=1
1737fi
1738  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739  as_fn_set_status $ac_retval
1740
1741} # ac_fn_c_try_cpp
1742
1743# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1744# -------------------------------------------------------
1745# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1746# the include files in INCLUDES and setting the cache variable VAR
1747# accordingly.
1748ac_fn_c_check_header_mongrel ()
1749{
1750  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751  if eval \${$3+:} false; then :
1752  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753$as_echo_n "checking for $2... " >&6; }
1754if eval \${$3+:} false; then :
1755  $as_echo_n "(cached) " >&6
1756fi
1757eval ac_res=\$$3
1758	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759$as_echo "$ac_res" >&6; }
1760else
1761  # Is the header compilable?
1762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1763$as_echo_n "checking $2 usability... " >&6; }
1764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765/* end confdefs.h.  */
1766$4
1767#include <$2>
1768_ACEOF
1769if ac_fn_c_try_compile "$LINENO"; then :
1770  ac_header_compiler=yes
1771else
1772  ac_header_compiler=no
1773fi
1774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1776$as_echo "$ac_header_compiler" >&6; }
1777
1778# Is the header present?
1779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1780$as_echo_n "checking $2 presence... " >&6; }
1781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782/* end confdefs.h.  */
1783#include <$2>
1784_ACEOF
1785if ac_fn_c_try_cpp "$LINENO"; then :
1786  ac_header_preproc=yes
1787else
1788  ac_header_preproc=no
1789fi
1790rm -f conftest.err conftest.i conftest.$ac_ext
1791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1792$as_echo "$ac_header_preproc" >&6; }
1793
1794# So?  What about this header?
1795case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1796  yes:no: )
1797    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1798$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1799    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1800$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1801    ;;
1802  no:yes:* )
1803    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1804$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1805    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1806$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1807    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1808$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1809    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1810$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1811    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1812$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1813( $as_echo "## ------------------------------------------------ ##
1814## Report this to [email protected] ##
1815## ------------------------------------------------ ##"
1816     ) | sed "s/^/$as_me: WARNING:     /" >&2
1817    ;;
1818esac
1819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820$as_echo_n "checking for $2... " >&6; }
1821if eval \${$3+:} false; then :
1822  $as_echo_n "(cached) " >&6
1823else
1824  eval "$3=\$ac_header_compiler"
1825fi
1826eval ac_res=\$$3
1827	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828$as_echo "$ac_res" >&6; }
1829fi
1830  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831
1832} # ac_fn_c_check_header_mongrel
1833
1834# ac_fn_c_try_run LINENO
1835# ----------------------
1836# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1837# that executables *can* be run.
1838ac_fn_c_try_run ()
1839{
1840  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841  if { { ac_try="$ac_link"
1842case "(($ac_try" in
1843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844  *) ac_try_echo=$ac_try;;
1845esac
1846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847$as_echo "$ac_try_echo"; } >&5
1848  (eval "$ac_link") 2>&5
1849  ac_status=$?
1850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1852  { { case "(($ac_try" in
1853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854  *) ac_try_echo=$ac_try;;
1855esac
1856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857$as_echo "$ac_try_echo"; } >&5
1858  (eval "$ac_try") 2>&5
1859  ac_status=$?
1860  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861  test $ac_status = 0; }; }; then :
1862  ac_retval=0
1863else
1864  $as_echo "$as_me: program exited with status $ac_status" >&5
1865       $as_echo "$as_me: failed program was:" >&5
1866sed 's/^/| /' conftest.$ac_ext >&5
1867
1868       ac_retval=$ac_status
1869fi
1870  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872  as_fn_set_status $ac_retval
1873
1874} # ac_fn_c_try_run
1875
1876# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1877# -------------------------------------------------------
1878# Tests whether HEADER exists and can be compiled using the include files in
1879# INCLUDES, setting the cache variable VAR accordingly.
1880ac_fn_c_check_header_compile ()
1881{
1882  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884$as_echo_n "checking for $2... " >&6; }
1885if eval \${$3+:} false; then :
1886  $as_echo_n "(cached) " >&6
1887else
1888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889/* end confdefs.h.  */
1890$4
1891#include <$2>
1892_ACEOF
1893if ac_fn_c_try_compile "$LINENO"; then :
1894  eval "$3=yes"
1895else
1896  eval "$3=no"
1897fi
1898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899fi
1900eval ac_res=\$$3
1901	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902$as_echo "$ac_res" >&6; }
1903  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904
1905} # ac_fn_c_check_header_compile
1906
1907# ac_fn_c_check_func LINENO FUNC VAR
1908# ----------------------------------
1909# Tests whether FUNC exists, setting the cache variable VAR accordingly
1910ac_fn_c_check_func ()
1911{
1912  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914$as_echo_n "checking for $2... " >&6; }
1915if eval \${$3+:} false; then :
1916  $as_echo_n "(cached) " >&6
1917else
1918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h.  */
1920/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1921   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1922#define $2 innocuous_$2
1923
1924/* System header to define __stub macros and hopefully few prototypes,
1925    which can conflict with char $2 (); below.
1926    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1927    <limits.h> exists even on freestanding compilers.  */
1928
1929#ifdef __STDC__
1930# include <limits.h>
1931#else
1932# include <assert.h>
1933#endif
1934
1935#undef $2
1936
1937/* Override any GCC internal prototype to avoid an error.
1938   Use char because int might match the return type of a GCC
1939   builtin and then its argument prototype would still apply.  */
1940#ifdef __cplusplus
1941extern "C"
1942#endif
1943char $2 ();
1944/* The GNU C library defines this for functions which it implements
1945    to always fail with ENOSYS.  Some functions are actually named
1946    something starting with __ and the normal name is an alias.  */
1947#if defined __stub_$2 || defined __stub___$2
1948choke me
1949#endif
1950
1951int
1952main ()
1953{
1954return $2 ();
1955  ;
1956  return 0;
1957}
1958_ACEOF
1959if ac_fn_c_try_link "$LINENO"; then :
1960  eval "$3=yes"
1961else
1962  eval "$3=no"
1963fi
1964rm -f core conftest.err conftest.$ac_objext \
1965    conftest$ac_exeext conftest.$ac_ext
1966fi
1967eval ac_res=\$$3
1968	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969$as_echo "$ac_res" >&6; }
1970  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971
1972} # ac_fn_c_check_func
1973
1974# ac_fn_cxx_try_compile LINENO
1975# ----------------------------
1976# Try to compile conftest.$ac_ext, and return whether this succeeded.
1977ac_fn_cxx_try_compile ()
1978{
1979  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980  rm -f conftest.$ac_objext
1981  if { { ac_try="$ac_compile"
1982case "(($ac_try" in
1983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984  *) ac_try_echo=$ac_try;;
1985esac
1986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987$as_echo "$ac_try_echo"; } >&5
1988  (eval "$ac_compile") 2>conftest.err
1989  ac_status=$?
1990  if test -s conftest.err; then
1991    grep -v '^ *+' conftest.err >conftest.er1
1992    cat conftest.er1 >&5
1993    mv -f conftest.er1 conftest.err
1994  fi
1995  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996  test $ac_status = 0; } && {
1997	 test -z "$ac_cxx_werror_flag" ||
1998	 test ! -s conftest.err
1999       } && test -s conftest.$ac_objext; then :
2000  ac_retval=0
2001else
2002  $as_echo "$as_me: failed program was:" >&5
2003sed 's/^/| /' conftest.$ac_ext >&5
2004
2005	ac_retval=1
2006fi
2007  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008  as_fn_set_status $ac_retval
2009
2010} # ac_fn_cxx_try_compile
2011
2012# ac_fn_cxx_try_cpp LINENO
2013# ------------------------
2014# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2015ac_fn_cxx_try_cpp ()
2016{
2017  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018  if { { ac_try="$ac_cpp conftest.$ac_ext"
2019case "(($ac_try" in
2020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021  *) ac_try_echo=$ac_try;;
2022esac
2023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024$as_echo "$ac_try_echo"; } >&5
2025  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2026  ac_status=$?
2027  if test -s conftest.err; then
2028    grep -v '^ *+' conftest.err >conftest.er1
2029    cat conftest.er1 >&5
2030    mv -f conftest.er1 conftest.err
2031  fi
2032  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2033  test $ac_status = 0; } > conftest.i && {
2034	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2035	 test ! -s conftest.err
2036       }; then :
2037  ac_retval=0
2038else
2039  $as_echo "$as_me: failed program was:" >&5
2040sed 's/^/| /' conftest.$ac_ext >&5
2041
2042    ac_retval=1
2043fi
2044  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045  as_fn_set_status $ac_retval
2046
2047} # ac_fn_cxx_try_cpp
2048
2049# ac_fn_cxx_try_link LINENO
2050# -------------------------
2051# Try to link conftest.$ac_ext, and return whether this succeeded.
2052ac_fn_cxx_try_link ()
2053{
2054  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055  rm -f conftest.$ac_objext conftest$ac_exeext
2056  if { { ac_try="$ac_link"
2057case "(($ac_try" in
2058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059  *) ac_try_echo=$ac_try;;
2060esac
2061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062$as_echo "$ac_try_echo"; } >&5
2063  (eval "$ac_link") 2>conftest.err
2064  ac_status=$?
2065  if test -s conftest.err; then
2066    grep -v '^ *+' conftest.err >conftest.er1
2067    cat conftest.er1 >&5
2068    mv -f conftest.er1 conftest.err
2069  fi
2070  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071  test $ac_status = 0; } && {
2072	 test -z "$ac_cxx_werror_flag" ||
2073	 test ! -s conftest.err
2074       } && test -s conftest$ac_exeext && {
2075	 test "$cross_compiling" = yes ||
2076	 $as_test_x conftest$ac_exeext
2077       }; then :
2078  ac_retval=0
2079else
2080  $as_echo "$as_me: failed program was:" >&5
2081sed 's/^/| /' conftest.$ac_ext >&5
2082
2083	ac_retval=1
2084fi
2085  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2086  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2087  # interfere with the next link command; also delete a directory that is
2088  # left behind by Apple's compiler.  We do this before executing the actions.
2089  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2090  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091  as_fn_set_status $ac_retval
2092
2093} # ac_fn_cxx_try_link
2094
2095# ac_fn_f77_try_compile LINENO
2096# ----------------------------
2097# Try to compile conftest.$ac_ext, and return whether this succeeded.
2098ac_fn_f77_try_compile ()
2099{
2100  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101  rm -f conftest.$ac_objext
2102  if { { ac_try="$ac_compile"
2103case "(($ac_try" in
2104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105  *) ac_try_echo=$ac_try;;
2106esac
2107eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2108$as_echo "$ac_try_echo"; } >&5
2109  (eval "$ac_compile") 2>conftest.err
2110  ac_status=$?
2111  if test -s conftest.err; then
2112    grep -v '^ *+' conftest.err >conftest.er1
2113    cat conftest.er1 >&5
2114    mv -f conftest.er1 conftest.err
2115  fi
2116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2117  test $ac_status = 0; } && {
2118	 test -z "$ac_f77_werror_flag" ||
2119	 test ! -s conftest.err
2120       } && test -s conftest.$ac_objext; then :
2121  ac_retval=0
2122else
2123  $as_echo "$as_me: failed program was:" >&5
2124sed 's/^/| /' conftest.$ac_ext >&5
2125
2126	ac_retval=1
2127fi
2128  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129  as_fn_set_status $ac_retval
2130
2131} # ac_fn_f77_try_compile
2132
2133# ac_fn_f77_try_link LINENO
2134# -------------------------
2135# Try to link conftest.$ac_ext, and return whether this succeeded.
2136ac_fn_f77_try_link ()
2137{
2138  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139  rm -f conftest.$ac_objext conftest$ac_exeext
2140  if { { ac_try="$ac_link"
2141case "(($ac_try" in
2142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2143  *) ac_try_echo=$ac_try;;
2144esac
2145eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2146$as_echo "$ac_try_echo"; } >&5
2147  (eval "$ac_link") 2>conftest.err
2148  ac_status=$?
2149  if test -s conftest.err; then
2150    grep -v '^ *+' conftest.err >conftest.er1
2151    cat conftest.er1 >&5
2152    mv -f conftest.er1 conftest.err
2153  fi
2154  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2155  test $ac_status = 0; } && {
2156	 test -z "$ac_f77_werror_flag" ||
2157	 test ! -s conftest.err
2158       } && test -s conftest$ac_exeext && {
2159	 test "$cross_compiling" = yes ||
2160	 $as_test_x conftest$ac_exeext
2161       }; then :
2162  ac_retval=0
2163else
2164  $as_echo "$as_me: failed program was:" >&5
2165sed 's/^/| /' conftest.$ac_ext >&5
2166
2167	ac_retval=1
2168fi
2169  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2170  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2171  # interfere with the next link command; also delete a directory that is
2172  # left behind by Apple's compiler.  We do this before executing the actions.
2173  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2174  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175  as_fn_set_status $ac_retval
2176
2177} # ac_fn_f77_try_link
2178cat >config.log <<_ACEOF
2179This file contains any messages produced by compilers while
2180running configure, to aid debugging if configure makes a mistake.
2181
2182It was created by iperf $as_me 3.0a4, which was
2183generated by GNU Autoconf 2.68.  Invocation command line was
2184
2185  $ $0 $@
2186
2187_ACEOF
2188exec 5>>config.log
2189{
2190cat <<_ASUNAME
2191## --------- ##
2192## Platform. ##
2193## --------- ##
2194
2195hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2196uname -m = `(uname -m) 2>/dev/null || echo unknown`
2197uname -r = `(uname -r) 2>/dev/null || echo unknown`
2198uname -s = `(uname -s) 2>/dev/null || echo unknown`
2199uname -v = `(uname -v) 2>/dev/null || echo unknown`
2200
2201/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2202/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2203
2204/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2205/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2206/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2207/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2208/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2209/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2210/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2211
2212_ASUNAME
2213
2214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215for as_dir in $PATH
2216do
2217  IFS=$as_save_IFS
2218  test -z "$as_dir" && as_dir=.
2219    $as_echo "PATH: $as_dir"
2220  done
2221IFS=$as_save_IFS
2222
2223} >&5
2224
2225cat >&5 <<_ACEOF
2226
2227
2228## ----------- ##
2229## Core tests. ##
2230## ----------- ##
2231
2232_ACEOF
2233
2234
2235# Keep a trace of the command line.
2236# Strip out --no-create and --no-recursion so they do not pile up.
2237# Strip out --silent because we don't want to record it for future runs.
2238# Also quote any args containing shell meta-characters.
2239# Make two passes to allow for proper duplicate-argument suppression.
2240ac_configure_args=
2241ac_configure_args0=
2242ac_configure_args1=
2243ac_must_keep_next=false
2244for ac_pass in 1 2
2245do
2246  for ac_arg
2247  do
2248    case $ac_arg in
2249    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2250    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2251    | -silent | --silent | --silen | --sile | --sil)
2252      continue ;;
2253    *\'*)
2254      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2255    esac
2256    case $ac_pass in
2257    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2258    2)
2259      as_fn_append ac_configure_args1 " '$ac_arg'"
2260      if test $ac_must_keep_next = true; then
2261	ac_must_keep_next=false # Got value, back to normal.
2262      else
2263	case $ac_arg in
2264	  *=* | --config-cache | -C | -disable-* | --disable-* \
2265	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2266	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2267	  | -with-* | --with-* | -without-* | --without-* | --x)
2268	    case "$ac_configure_args0 " in
2269	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2270	    esac
2271	    ;;
2272	  -* ) ac_must_keep_next=true ;;
2273	esac
2274      fi
2275      as_fn_append ac_configure_args " '$ac_arg'"
2276      ;;
2277    esac
2278  done
2279done
2280{ ac_configure_args0=; unset ac_configure_args0;}
2281{ ac_configure_args1=; unset ac_configure_args1;}
2282
2283# When interrupted or exit'd, cleanup temporary files, and complete
2284# config.log.  We remove comments because anyway the quotes in there
2285# would cause problems or look ugly.
2286# WARNING: Use '\'' to represent an apostrophe within the trap.
2287# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2288trap 'exit_status=$?
2289  # Save into config.log some information that might help in debugging.
2290  {
2291    echo
2292
2293    $as_echo "## ---------------- ##
2294## Cache variables. ##
2295## ---------------- ##"
2296    echo
2297    # The following way of writing the cache mishandles newlines in values,
2298(
2299  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2300    eval ac_val=\$$ac_var
2301    case $ac_val in #(
2302    *${as_nl}*)
2303      case $ac_var in #(
2304      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2305$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2306      esac
2307      case $ac_var in #(
2308      _ | IFS | as_nl) ;; #(
2309      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2310      *) { eval $ac_var=; unset $ac_var;} ;;
2311      esac ;;
2312    esac
2313  done
2314  (set) 2>&1 |
2315    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2316    *${as_nl}ac_space=\ *)
2317      sed -n \
2318	"s/'\''/'\''\\\\'\'''\''/g;
2319	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2320      ;; #(
2321    *)
2322      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2323      ;;
2324    esac |
2325    sort
2326)
2327    echo
2328
2329    $as_echo "## ----------------- ##
2330## Output variables. ##
2331## ----------------- ##"
2332    echo
2333    for ac_var in $ac_subst_vars
2334    do
2335      eval ac_val=\$$ac_var
2336      case $ac_val in
2337      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2338      esac
2339      $as_echo "$ac_var='\''$ac_val'\''"
2340    done | sort
2341    echo
2342
2343    if test -n "$ac_subst_files"; then
2344      $as_echo "## ------------------- ##
2345## File substitutions. ##
2346## ------------------- ##"
2347      echo
2348      for ac_var in $ac_subst_files
2349      do
2350	eval ac_val=\$$ac_var
2351	case $ac_val in
2352	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2353	esac
2354	$as_echo "$ac_var='\''$ac_val'\''"
2355      done | sort
2356      echo
2357    fi
2358
2359    if test -s confdefs.h; then
2360      $as_echo "## ----------- ##
2361## confdefs.h. ##
2362## ----------- ##"
2363      echo
2364      cat confdefs.h
2365      echo
2366    fi
2367    test "$ac_signal" != 0 &&
2368      $as_echo "$as_me: caught signal $ac_signal"
2369    $as_echo "$as_me: exit $exit_status"
2370  } >&5
2371  rm -f core *.core core.conftest.* &&
2372    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2373    exit $exit_status
2374' 0
2375for ac_signal in 1 2 13 15; do
2376  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2377done
2378ac_signal=0
2379
2380# confdefs.h avoids OS command line length limits that DEFS can exceed.
2381rm -f -r conftest* confdefs.h
2382
2383$as_echo "/* confdefs.h */" > confdefs.h
2384
2385# Predefined preprocessor variables.
2386
2387cat >>confdefs.h <<_ACEOF
2388#define PACKAGE_NAME "$PACKAGE_NAME"
2389_ACEOF
2390
2391cat >>confdefs.h <<_ACEOF
2392#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2393_ACEOF
2394
2395cat >>confdefs.h <<_ACEOF
2396#define PACKAGE_VERSION "$PACKAGE_VERSION"
2397_ACEOF
2398
2399cat >>confdefs.h <<_ACEOF
2400#define PACKAGE_STRING "$PACKAGE_STRING"
2401_ACEOF
2402
2403cat >>confdefs.h <<_ACEOF
2404#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2405_ACEOF
2406
2407cat >>confdefs.h <<_ACEOF
2408#define PACKAGE_URL "$PACKAGE_URL"
2409_ACEOF
2410
2411
2412# Let the site file select an alternate cache file if it wants to.
2413# Prefer an explicitly selected file to automatically selected ones.
2414ac_site_file1=NONE
2415ac_site_file2=NONE
2416if test -n "$CONFIG_SITE"; then
2417  # We do not want a PATH search for config.site.
2418  case $CONFIG_SITE in #((
2419    -*)  ac_site_file1=./$CONFIG_SITE;;
2420    */*) ac_site_file1=$CONFIG_SITE;;
2421    *)   ac_site_file1=./$CONFIG_SITE;;
2422  esac
2423elif test "x$prefix" != xNONE; then
2424  ac_site_file1=$prefix/share/config.site
2425  ac_site_file2=$prefix/etc/config.site
2426else
2427  ac_site_file1=$ac_default_prefix/share/config.site
2428  ac_site_file2=$ac_default_prefix/etc/config.site
2429fi
2430for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2431do
2432  test "x$ac_site_file" = xNONE && continue
2433  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2434    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2435$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2436    sed 's/^/| /' "$ac_site_file" >&5
2437    . "$ac_site_file" \
2438      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2440as_fn_error $? "failed to load site script $ac_site_file
2441See \`config.log' for more details" "$LINENO" 5; }
2442  fi
2443done
2444
2445if test -r "$cache_file"; then
2446  # Some versions of bash will fail to source /dev/null (special files
2447  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2448  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2449    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2450$as_echo "$as_me: loading cache $cache_file" >&6;}
2451    case $cache_file in
2452      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2453      *)                      . "./$cache_file";;
2454    esac
2455  fi
2456else
2457  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2458$as_echo "$as_me: creating cache $cache_file" >&6;}
2459  >$cache_file
2460fi
2461
2462# Check that the precious variables saved in the cache have kept the same
2463# value.
2464ac_cache_corrupted=false
2465for ac_var in $ac_precious_vars; do
2466  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2467  eval ac_new_set=\$ac_env_${ac_var}_set
2468  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2469  eval ac_new_val=\$ac_env_${ac_var}_value
2470  case $ac_old_set,$ac_new_set in
2471    set,)
2472      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2473$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2474      ac_cache_corrupted=: ;;
2475    ,set)
2476      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2477$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2478      ac_cache_corrupted=: ;;
2479    ,);;
2480    *)
2481      if test "x$ac_old_val" != "x$ac_new_val"; then
2482	# differences in whitespace do not lead to failure.
2483	ac_old_val_w=`echo x $ac_old_val`
2484	ac_new_val_w=`echo x $ac_new_val`
2485	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2486	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2487$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2488	  ac_cache_corrupted=:
2489	else
2490	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2491$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2492	  eval $ac_var=\$ac_old_val
2493	fi
2494	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2495$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2496	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2497$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2498      fi;;
2499  esac
2500  # Pass precious variables to config.status.
2501  if test "$ac_new_set" = set; then
2502    case $ac_new_val in
2503    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2504    *) ac_arg=$ac_var=$ac_new_val ;;
2505    esac
2506    case " $ac_configure_args " in
2507      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2508      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2509    esac
2510  fi
2511done
2512if $ac_cache_corrupted; then
2513  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2515  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2516$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2517  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2518fi
2519## -------------------- ##
2520## Main body of script. ##
2521## -------------------- ##
2522
2523ac_ext=c
2524ac_cpp='$CPP $CPPFLAGS'
2525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2527ac_compiler_gnu=$ac_cv_c_compiler_gnu
2528
2529
2530
2531# Specify where the auxiliary files created by configure should go. The config
2532# directory is picked so that they don't clutter up more useful directories.
2533ac_aux_dir=
2534for ac_dir in config "$srcdir"/config; do
2535  if test -f "$ac_dir/install-sh"; then
2536    ac_aux_dir=$ac_dir
2537    ac_install_sh="$ac_aux_dir/install-sh -c"
2538    break
2539  elif test -f "$ac_dir/install.sh"; then
2540    ac_aux_dir=$ac_dir
2541    ac_install_sh="$ac_aux_dir/install.sh -c"
2542    break
2543  elif test -f "$ac_dir/shtool"; then
2544    ac_aux_dir=$ac_dir
2545    ac_install_sh="$ac_aux_dir/shtool install -c"
2546    break
2547  fi
2548done
2549if test -z "$ac_aux_dir"; then
2550  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2551fi
2552
2553# These three variables are undocumented and unsupported,
2554# and are intended to be withdrawn in a future Autoconf release.
2555# They can cause serious problems if a builder's source tree is in a directory
2556# whose full name contains unusual characters.
2557ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2558ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2559ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2560
2561
2562
2563
2564# Initialize the automake system
2565am__api_version="1.9"
2566# Find a good install program.  We prefer a C program (faster),
2567# so one script is as good as another.  But avoid the broken or
2568# incompatible versions:
2569# SysV /etc/install, /usr/sbin/install
2570# SunOS /usr/etc/install
2571# IRIX /sbin/install
2572# AIX /bin/install
2573# AmigaOS /C/install, which installs bootblocks on floppy discs
2574# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2575# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2576# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2577# OS/2's system install, which has a completely different semantic
2578# ./install, which can be erroneously created by make from ./install.sh.
2579# Reject install programs that cannot install multiple files.
2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2581$as_echo_n "checking for a BSD-compatible install... " >&6; }
2582if test -z "$INSTALL"; then
2583if ${ac_cv_path_install+:} false; then :
2584  $as_echo_n "(cached) " >&6
2585else
2586  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587for as_dir in $PATH
2588do
2589  IFS=$as_save_IFS
2590  test -z "$as_dir" && as_dir=.
2591    # Account for people who put trailing slashes in PATH elements.
2592case $as_dir/ in #((
2593  ./ | .// | /[cC]/* | \
2594  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2595  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2596  /usr/ucb/* ) ;;
2597  *)
2598    # OSF1 and SCO ODT 3.0 have their own names for install.
2599    # Don't use installbsd from OSF since it installs stuff as root
2600    # by default.
2601    for ac_prog in ginstall scoinst install; do
2602      for ac_exec_ext in '' $ac_executable_extensions; do
2603	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2604	  if test $ac_prog = install &&
2605	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2606	    # AIX install.  It has an incompatible calling convention.
2607	    :
2608	  elif test $ac_prog = install &&
2609	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2610	    # program-specific install script used by HP pwplus--don't use.
2611	    :
2612	  else
2613	    rm -rf conftest.one conftest.two conftest.dir
2614	    echo one > conftest.one
2615	    echo two > conftest.two
2616	    mkdir conftest.dir
2617	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2618	      test -s conftest.one && test -s conftest.two &&
2619	      test -s conftest.dir/conftest.one &&
2620	      test -s conftest.dir/conftest.two
2621	    then
2622	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2623	      break 3
2624	    fi
2625	  fi
2626	fi
2627      done
2628    done
2629    ;;
2630esac
2631
2632  done
2633IFS=$as_save_IFS
2634
2635rm -rf conftest.one conftest.two conftest.dir
2636
2637fi
2638  if test "${ac_cv_path_install+set}" = set; then
2639    INSTALL=$ac_cv_path_install
2640  else
2641    # As a last resort, use the slow shell script.  Don't cache a
2642    # value for INSTALL within a source directory, because that will
2643    # break other packages using the cache if that directory is
2644    # removed, or if the value is a relative name.
2645    INSTALL=$ac_install_sh
2646  fi
2647fi
2648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2649$as_echo "$INSTALL" >&6; }
2650
2651# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2652# It thinks the first close brace ends the variable substitution.
2653test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2654
2655test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2656
2657test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2658
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2660$as_echo_n "checking whether build environment is sane... " >&6; }
2661# Just in case
2662sleep 1
2663echo timestamp > conftest.file
2664# Do `set' in a subshell so we don't clobber the current shell's
2665# arguments.  Must try -L first in case configure is actually a
2666# symlink; some systems play weird games with the mod time of symlinks
2667# (eg FreeBSD returns the mod time of the symlink's containing
2668# directory).
2669if (
2670   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2671   if test "$*" = "X"; then
2672      # -L didn't work.
2673      set X `ls -t $srcdir/configure conftest.file`
2674   fi
2675   rm -f conftest.file
2676   if test "$*" != "X $srcdir/configure conftest.file" \
2677      && test "$*" != "X conftest.file $srcdir/configure"; then
2678
2679      # If neither matched, then we have a broken ls.  This can happen
2680      # if, for instance, CONFIG_SHELL is bash and it inherits a
2681      # broken ls alias from the environment.  This has actually
2682      # happened.  Such a system could not be considered "sane".
2683      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2684alias in your environment" "$LINENO" 5
2685   fi
2686
2687   test "$2" = conftest.file
2688   )
2689then
2690   # Ok.
2691   :
2692else
2693   as_fn_error $? "newly created file is older than distributed files!
2694Check your system clock" "$LINENO" 5
2695fi
2696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2697$as_echo "yes" >&6; }
2698test "$program_prefix" != NONE &&
2699  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2700# Use a double $ so make ignores it.
2701test "$program_suffix" != NONE &&
2702  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2703# Double any \ or $.
2704# By default was `s,x,x', remove it if useless.
2705ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2706program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2707
2708# expand $ac_aux_dir to an absolute path
2709am_aux_dir=`cd $ac_aux_dir && pwd`
2710
2711test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2712# Use eval to expand $SHELL
2713if eval "$MISSING --run true"; then
2714  am_missing_run="$MISSING --run "
2715else
2716  am_missing_run=
2717  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2718$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2719fi
2720
2721if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2722  # We used to keeping the `.' as first argument, in order to
2723  # allow $(mkdir_p) to be used without argument.  As in
2724  #   $(mkdir_p) $(somedir)
2725  # where $(somedir) is conditionally defined.  However this is wrong
2726  # for two reasons:
2727  #  1. if the package is installed by a user who cannot write `.'
2728  #     make install will fail,
2729  #  2. the above comment should most certainly read
2730  #     $(mkdir_p) $(DESTDIR)$(somedir)
2731  #     so it does not work when $(somedir) is undefined and
2732  #     $(DESTDIR) is not.
2733  #  To support the latter case, we have to write
2734  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2735  #  so the `.' trick is pointless.
2736  mkdir_p='mkdir -p --'
2737else
2738  # On NextStep and OpenStep, the `mkdir' command does not
2739  # recognize any option.  It will interpret all options as
2740  # directories to create, and then abort because `.' already
2741  # exists.
2742  for d in ./-p ./--version;
2743  do
2744    test -d $d && rmdir $d
2745  done
2746  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2747  if test -f "$ac_aux_dir/mkinstalldirs"; then
2748    mkdir_p='$(mkinstalldirs)'
2749  else
2750    mkdir_p='$(install_sh) -d'
2751  fi
2752fi
2753
2754for ac_prog in gawk mawk nawk awk
2755do
2756  # Extract the first word of "$ac_prog", so it can be a program name with args.
2757set dummy $ac_prog; ac_word=$2
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759$as_echo_n "checking for $ac_word... " >&6; }
2760if ${ac_cv_prog_AWK+:} false; then :
2761  $as_echo_n "(cached) " >&6
2762else
2763  if test -n "$AWK"; then
2764  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2765else
2766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767for as_dir in $PATH
2768do
2769  IFS=$as_save_IFS
2770  test -z "$as_dir" && as_dir=.
2771    for ac_exec_ext in '' $ac_executable_extensions; do
2772  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2773    ac_cv_prog_AWK="$ac_prog"
2774    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775    break 2
2776  fi
2777done
2778  done
2779IFS=$as_save_IFS
2780
2781fi
2782fi
2783AWK=$ac_cv_prog_AWK
2784if test -n "$AWK"; then
2785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2786$as_echo "$AWK" >&6; }
2787else
2788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789$as_echo "no" >&6; }
2790fi
2791
2792
2793  test -n "$AWK" && break
2794done
2795
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2797$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2798set x ${MAKE-make}
2799ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2800if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2801  $as_echo_n "(cached) " >&6
2802else
2803  cat >conftest.make <<\_ACEOF
2804SHELL = /bin/sh
2805all:
2806	@echo '@@@%%%=$(MAKE)=@@@%%%'
2807_ACEOF
2808# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2809case `${MAKE-make} -f conftest.make 2>/dev/null` in
2810  *@@@%%%=?*=@@@%%%*)
2811    eval ac_cv_prog_make_${ac_make}_set=yes;;
2812  *)
2813    eval ac_cv_prog_make_${ac_make}_set=no;;
2814esac
2815rm -f conftest.make
2816fi
2817if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2819$as_echo "yes" >&6; }
2820  SET_MAKE=
2821else
2822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823$as_echo "no" >&6; }
2824  SET_MAKE="MAKE=${MAKE-make}"
2825fi
2826
2827rm -rf .tst 2>/dev/null
2828mkdir .tst 2>/dev/null
2829if test -d .tst; then
2830  am__leading_dot=.
2831else
2832  am__leading_dot=_
2833fi
2834rmdir .tst 2>/dev/null
2835
2836# test to see if srcdir already configured
2837if test "`cd $srcdir && pwd`" != "`pwd`" &&
2838   test -f $srcdir/config.status; then
2839  as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2840fi
2841
2842# test whether we have cygpath
2843if test -z "$CYGPATH_W"; then
2844  if (cygpath --version) >/dev/null 2>/dev/null; then
2845    CYGPATH_W='cygpath -w'
2846  else
2847    CYGPATH_W=echo
2848  fi
2849fi
2850
2851
2852# Define the identity of the package.
2853 PACKAGE='iperf'
2854 VERSION='3.0a4'
2855
2856
2857cat >>confdefs.h <<_ACEOF
2858#define PACKAGE "$PACKAGE"
2859_ACEOF
2860
2861
2862cat >>confdefs.h <<_ACEOF
2863#define VERSION "$VERSION"
2864_ACEOF
2865
2866# Some tools Automake needs.
2867
2868ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2869
2870
2871AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2872
2873
2874AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2875
2876
2877AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2878
2879
2880MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2881
2882install_sh=${install_sh-"$am_aux_dir/install-sh"}
2883
2884# Installed binaries are usually stripped using `strip' when the user
2885# run `make install-strip'.  However `strip' might not be the right
2886# tool to use in cross-compilation environments, therefore Automake
2887# will honor the `STRIP' environment variable to overrule this program.
2888if test "$cross_compiling" != no; then
2889  if test -n "$ac_tool_prefix"; then
2890  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2891set dummy ${ac_tool_prefix}strip; ac_word=$2
2892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2893$as_echo_n "checking for $ac_word... " >&6; }
2894if ${ac_cv_prog_STRIP+:} false; then :
2895  $as_echo_n "(cached) " >&6
2896else
2897  if test -n "$STRIP"; then
2898  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2899else
2900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901for as_dir in $PATH
2902do
2903  IFS=$as_save_IFS
2904  test -z "$as_dir" && as_dir=.
2905    for ac_exec_ext in '' $ac_executable_extensions; do
2906  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2907    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2908    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2909    break 2
2910  fi
2911done
2912  done
2913IFS=$as_save_IFS
2914
2915fi
2916fi
2917STRIP=$ac_cv_prog_STRIP
2918if test -n "$STRIP"; then
2919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2920$as_echo "$STRIP" >&6; }
2921else
2922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923$as_echo "no" >&6; }
2924fi
2925
2926
2927fi
2928if test -z "$ac_cv_prog_STRIP"; then
2929  ac_ct_STRIP=$STRIP
2930  # Extract the first word of "strip", so it can be a program name with args.
2931set dummy strip; ac_word=$2
2932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933$as_echo_n "checking for $ac_word... " >&6; }
2934if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2935  $as_echo_n "(cached) " >&6
2936else
2937  if test -n "$ac_ct_STRIP"; then
2938  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2939else
2940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941for as_dir in $PATH
2942do
2943  IFS=$as_save_IFS
2944  test -z "$as_dir" && as_dir=.
2945    for ac_exec_ext in '' $ac_executable_extensions; do
2946  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947    ac_cv_prog_ac_ct_STRIP="strip"
2948    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949    break 2
2950  fi
2951done
2952  done
2953IFS=$as_save_IFS
2954
2955fi
2956fi
2957ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2958if test -n "$ac_ct_STRIP"; then
2959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2960$as_echo "$ac_ct_STRIP" >&6; }
2961else
2962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963$as_echo "no" >&6; }
2964fi
2965
2966  if test "x$ac_ct_STRIP" = x; then
2967    STRIP=":"
2968  else
2969    case $cross_compiling:$ac_tool_warned in
2970yes:)
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2973ac_tool_warned=yes ;;
2974esac
2975    STRIP=$ac_ct_STRIP
2976  fi
2977else
2978  STRIP="$ac_cv_prog_STRIP"
2979fi
2980
2981fi
2982INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2983
2984# We need awk for the "check" target.  The system "awk" is bad on
2985# some platforms.
2986# Always define AMTAR for backward compatibility.
2987
2988AMTAR=${AMTAR-"${am_missing_run}tar"}
2989
2990am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2991
2992
2993
2994
2995
2996
2997ac_config_headers="$ac_config_headers src/config.h"
2998
2999
3000# Make sure we can run config.sub.
3001$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3002  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3003
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3005$as_echo_n "checking build system type... " >&6; }
3006if ${ac_cv_build+:} false; then :
3007  $as_echo_n "(cached) " >&6
3008else
3009  ac_build_alias=$build_alias
3010test "x$ac_build_alias" = x &&
3011  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3012test "x$ac_build_alias" = x &&
3013  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3014ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3015  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3016
3017fi
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3019$as_echo "$ac_cv_build" >&6; }
3020case $ac_cv_build in
3021*-*-*) ;;
3022*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3023esac
3024build=$ac_cv_build
3025ac_save_IFS=$IFS; IFS='-'
3026set x $ac_cv_build
3027shift
3028build_cpu=$1
3029build_vendor=$2
3030shift; shift
3031# Remember, the first character of IFS is used to create $*,
3032# except with old shells:
3033build_os=$*
3034IFS=$ac_save_IFS
3035case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3036
3037
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3039$as_echo_n "checking host system type... " >&6; }
3040if ${ac_cv_host+:} false; then :
3041  $as_echo_n "(cached) " >&6
3042else
3043  if test "x$host_alias" = x; then
3044  ac_cv_host=$ac_cv_build
3045else
3046  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3047    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3048fi
3049
3050fi
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3052$as_echo "$ac_cv_host" >&6; }
3053case $ac_cv_host in
3054*-*-*) ;;
3055*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3056esac
3057host=$ac_cv_host
3058ac_save_IFS=$IFS; IFS='-'
3059set x $ac_cv_host
3060shift
3061host_cpu=$1
3062host_vendor=$2
3063shift; shift
3064# Remember, the first character of IFS is used to create $*,
3065# except with old shells:
3066host_os=$*
3067IFS=$ac_save_IFS
3068case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3069
3070
3071
3072# Checks for tools: c compiler, ranlib (used for creating static libraries),
3073# symlinks and libtool
3074ac_ext=c
3075ac_cpp='$CPP $CPPFLAGS'
3076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3078ac_compiler_gnu=$ac_cv_c_compiler_gnu
3079if test -n "$ac_tool_prefix"; then
3080  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3081set dummy ${ac_tool_prefix}gcc; ac_word=$2
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083$as_echo_n "checking for $ac_word... " >&6; }
3084if ${ac_cv_prog_CC+:} false; then :
3085  $as_echo_n "(cached) " >&6
3086else
3087  if test -n "$CC"; then
3088  ac_cv_prog_CC="$CC" # Let the user override the test.
3089else
3090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091for as_dir in $PATH
3092do
3093  IFS=$as_save_IFS
3094  test -z "$as_dir" && as_dir=.
3095    for ac_exec_ext in '' $ac_executable_extensions; do
3096  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3097    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3098    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099    break 2
3100  fi
3101done
3102  done
3103IFS=$as_save_IFS
3104
3105fi
3106fi
3107CC=$ac_cv_prog_CC
3108if test -n "$CC"; then
3109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3110$as_echo "$CC" >&6; }
3111else
3112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113$as_echo "no" >&6; }
3114fi
3115
3116
3117fi
3118if test -z "$ac_cv_prog_CC"; then
3119  ac_ct_CC=$CC
3120  # Extract the first word of "gcc", so it can be a program name with args.
3121set dummy gcc; ac_word=$2
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123$as_echo_n "checking for $ac_word... " >&6; }
3124if ${ac_cv_prog_ac_ct_CC+:} false; then :
3125  $as_echo_n "(cached) " >&6
3126else
3127  if test -n "$ac_ct_CC"; then
3128  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3129else
3130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131for as_dir in $PATH
3132do
3133  IFS=$as_save_IFS
3134  test -z "$as_dir" && as_dir=.
3135    for ac_exec_ext in '' $ac_executable_extensions; do
3136  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3137    ac_cv_prog_ac_ct_CC="gcc"
3138    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139    break 2
3140  fi
3141done
3142  done
3143IFS=$as_save_IFS
3144
3145fi
3146fi
3147ac_ct_CC=$ac_cv_prog_ac_ct_CC
3148if test -n "$ac_ct_CC"; then
3149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3150$as_echo "$ac_ct_CC" >&6; }
3151else
3152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153$as_echo "no" >&6; }
3154fi
3155
3156  if test "x$ac_ct_CC" = x; then
3157    CC=""
3158  else
3159    case $cross_compiling:$ac_tool_warned in
3160yes:)
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3163ac_tool_warned=yes ;;
3164esac
3165    CC=$ac_ct_CC
3166  fi
3167else
3168  CC="$ac_cv_prog_CC"
3169fi
3170
3171if test -z "$CC"; then
3172          if test -n "$ac_tool_prefix"; then
3173    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3174set dummy ${ac_tool_prefix}cc; ac_word=$2
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176$as_echo_n "checking for $ac_word... " >&6; }
3177if ${ac_cv_prog_CC+:} false; then :
3178  $as_echo_n "(cached) " >&6
3179else
3180  if test -n "$CC"; then
3181  ac_cv_prog_CC="$CC" # Let the user override the test.
3182else
3183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184for as_dir in $PATH
3185do
3186  IFS=$as_save_IFS
3187  test -z "$as_dir" && as_dir=.
3188    for ac_exec_ext in '' $ac_executable_extensions; do
3189  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3190    ac_cv_prog_CC="${ac_tool_prefix}cc"
3191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192    break 2
3193  fi
3194done
3195  done
3196IFS=$as_save_IFS
3197
3198fi
3199fi
3200CC=$ac_cv_prog_CC
3201if test -n "$CC"; then
3202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3203$as_echo "$CC" >&6; }
3204else
3205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206$as_echo "no" >&6; }
3207fi
3208
3209
3210  fi
3211fi
3212if test -z "$CC"; then
3213  # Extract the first word of "cc", so it can be a program name with args.
3214set dummy cc; ac_word=$2
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216$as_echo_n "checking for $ac_word... " >&6; }
3217if ${ac_cv_prog_CC+:} false; then :
3218  $as_echo_n "(cached) " >&6
3219else
3220  if test -n "$CC"; then
3221  ac_cv_prog_CC="$CC" # Let the user override the test.
3222else
3223  ac_prog_rejected=no
3224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225for as_dir in $PATH
3226do
3227  IFS=$as_save_IFS
3228  test -z "$as_dir" && as_dir=.
3229    for ac_exec_ext in '' $ac_executable_extensions; do
3230  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3232       ac_prog_rejected=yes
3233       continue
3234     fi
3235    ac_cv_prog_CC="cc"
3236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237    break 2
3238  fi
3239done
3240  done
3241IFS=$as_save_IFS
3242
3243if test $ac_prog_rejected = yes; then
3244  # We found a bogon in the path, so make sure we never use it.
3245  set dummy $ac_cv_prog_CC
3246  shift
3247  if test $# != 0; then
3248    # We chose a different compiler from the bogus one.
3249    # However, it has the same basename, so the bogon will be chosen
3250    # first if we set CC to just the basename; use the full file name.
3251    shift
3252    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3253  fi
3254fi
3255fi
3256fi
3257CC=$ac_cv_prog_CC
3258if test -n "$CC"; then
3259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3260$as_echo "$CC" >&6; }
3261else
3262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263$as_echo "no" >&6; }
3264fi
3265
3266
3267fi
3268if test -z "$CC"; then
3269  if test -n "$ac_tool_prefix"; then
3270  for ac_prog in cl.exe
3271  do
3272    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3273set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275$as_echo_n "checking for $ac_word... " >&6; }
3276if ${ac_cv_prog_CC+:} false; then :
3277  $as_echo_n "(cached) " >&6
3278else
3279  if test -n "$CC"; then
3280  ac_cv_prog_CC="$CC" # Let the user override the test.
3281else
3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283for as_dir in $PATH
3284do
3285  IFS=$as_save_IFS
3286  test -z "$as_dir" && as_dir=.
3287    for ac_exec_ext in '' $ac_executable_extensions; do
3288  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3289    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291    break 2
3292  fi
3293done
3294  done
3295IFS=$as_save_IFS
3296
3297fi
3298fi
3299CC=$ac_cv_prog_CC
3300if test -n "$CC"; then
3301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3302$as_echo "$CC" >&6; }
3303else
3304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305$as_echo "no" >&6; }
3306fi
3307
3308
3309    test -n "$CC" && break
3310  done
3311fi
3312if test -z "$CC"; then
3313  ac_ct_CC=$CC
3314  for ac_prog in cl.exe
3315do
3316  # Extract the first word of "$ac_prog", so it can be a program name with args.
3317set dummy $ac_prog; ac_word=$2
3318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3319$as_echo_n "checking for $ac_word... " >&6; }
3320if ${ac_cv_prog_ac_ct_CC+:} false; then :
3321  $as_echo_n "(cached) " >&6
3322else
3323  if test -n "$ac_ct_CC"; then
3324  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3325else
3326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327for as_dir in $PATH
3328do
3329  IFS=$as_save_IFS
3330  test -z "$as_dir" && as_dir=.
3331    for ac_exec_ext in '' $ac_executable_extensions; do
3332  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3333    ac_cv_prog_ac_ct_CC="$ac_prog"
3334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3335    break 2
3336  fi
3337done
3338  done
3339IFS=$as_save_IFS
3340
3341fi
3342fi
3343ac_ct_CC=$ac_cv_prog_ac_ct_CC
3344if test -n "$ac_ct_CC"; then
3345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3346$as_echo "$ac_ct_CC" >&6; }
3347else
3348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349$as_echo "no" >&6; }
3350fi
3351
3352
3353  test -n "$ac_ct_CC" && break
3354done
3355
3356  if test "x$ac_ct_CC" = x; then
3357    CC=""
3358  else
3359    case $cross_compiling:$ac_tool_warned in
3360yes:)
3361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3363ac_tool_warned=yes ;;
3364esac
3365    CC=$ac_ct_CC
3366  fi
3367fi
3368
3369fi
3370
3371
3372test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374as_fn_error $? "no acceptable C compiler found in \$PATH
3375See \`config.log' for more details" "$LINENO" 5; }
3376
3377# Provide some information about the compiler.
3378$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3379set X $ac_compile
3380ac_compiler=$2
3381for ac_option in --version -v -V -qversion; do
3382  { { ac_try="$ac_compiler $ac_option >&5"
3383case "(($ac_try" in
3384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385  *) ac_try_echo=$ac_try;;
3386esac
3387eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388$as_echo "$ac_try_echo"; } >&5
3389  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3390  ac_status=$?
3391  if test -s conftest.err; then
3392    sed '10a\
3393... rest of stderr output deleted ...
3394         10q' conftest.err >conftest.er1
3395    cat conftest.er1 >&5
3396  fi
3397  rm -f conftest.er1 conftest.err
3398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399  test $ac_status = 0; }
3400done
3401
3402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403/* end confdefs.h.  */
3404
3405int
3406main ()
3407{
3408
3409  ;
3410  return 0;
3411}
3412_ACEOF
3413ac_clean_files_save=$ac_clean_files
3414ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3415# Try to create an executable without -o first, disregard a.out.
3416# It will help us diagnose broken compilers, and finding out an intuition
3417# of exeext.
3418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3419$as_echo_n "checking whether the C compiler works... " >&6; }
3420ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3421
3422# The possible output files:
3423ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3424
3425ac_rmfiles=
3426for ac_file in $ac_files
3427do
3428  case $ac_file in
3429    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3430    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3431  esac
3432done
3433rm -f $ac_rmfiles
3434
3435if { { ac_try="$ac_link_default"
3436case "(($ac_try" in
3437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438  *) ac_try_echo=$ac_try;;
3439esac
3440eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441$as_echo "$ac_try_echo"; } >&5
3442  (eval "$ac_link_default") 2>&5
3443  ac_status=$?
3444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445  test $ac_status = 0; }; then :
3446  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3447# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3448# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3449# so that the user can short-circuit this test for compilers unknown to
3450# Autoconf.
3451for ac_file in $ac_files ''
3452do
3453  test -f "$ac_file" || continue
3454  case $ac_file in
3455    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3456	;;
3457    [ab].out )
3458	# We found the default executable, but exeext='' is most
3459	# certainly right.
3460	break;;
3461    *.* )
3462	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3463	then :; else
3464	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3465	fi
3466	# We set ac_cv_exeext here because the later test for it is not
3467	# safe: cross compilers may not add the suffix if given an `-o'
3468	# argument, so we may need to know it at that point already.
3469	# Even if this section looks crufty: it has the advantage of
3470	# actually working.
3471	break;;
3472    * )
3473	break;;
3474  esac
3475done
3476test "$ac_cv_exeext" = no && ac_cv_exeext=
3477
3478else
3479  ac_file=''
3480fi
3481if test -z "$ac_file"; then :
3482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483$as_echo "no" >&6; }
3484$as_echo "$as_me: failed program was:" >&5
3485sed 's/^/| /' conftest.$ac_ext >&5
3486
3487{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489as_fn_error 77 "C compiler cannot create executables
3490See \`config.log' for more details" "$LINENO" 5; }
3491else
3492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3493$as_echo "yes" >&6; }
3494fi
3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3496$as_echo_n "checking for C compiler default output file name... " >&6; }
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3498$as_echo "$ac_file" >&6; }
3499ac_exeext=$ac_cv_exeext
3500
3501rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3502ac_clean_files=$ac_clean_files_save
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3504$as_echo_n "checking for suffix of executables... " >&6; }
3505if { { ac_try="$ac_link"
3506case "(($ac_try" in
3507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508  *) ac_try_echo=$ac_try;;
3509esac
3510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511$as_echo "$ac_try_echo"; } >&5
3512  (eval "$ac_link") 2>&5
3513  ac_status=$?
3514  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515  test $ac_status = 0; }; then :
3516  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3517# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3518# work properly (i.e., refer to `conftest.exe'), while it won't with
3519# `rm'.
3520for ac_file in conftest.exe conftest conftest.*; do
3521  test -f "$ac_file" || continue
3522  case $ac_file in
3523    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3524    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3525	  break;;
3526    * ) break;;
3527  esac
3528done
3529else
3530  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3532as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3533See \`config.log' for more details" "$LINENO" 5; }
3534fi
3535rm -f conftest conftest$ac_cv_exeext
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3537$as_echo "$ac_cv_exeext" >&6; }
3538
3539rm -f conftest.$ac_ext
3540EXEEXT=$ac_cv_exeext
3541ac_exeext=$EXEEXT
3542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543/* end confdefs.h.  */
3544#include <stdio.h>
3545int
3546main ()
3547{
3548FILE *f = fopen ("conftest.out", "w");
3549 return ferror (f) || fclose (f) != 0;
3550
3551  ;
3552  return 0;
3553}
3554_ACEOF
3555ac_clean_files="$ac_clean_files conftest.out"
3556# Check that the compiler produces executables we can run.  If not, either
3557# the compiler is broken, or we cross compile.
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3559$as_echo_n "checking whether we are cross compiling... " >&6; }
3560if test "$cross_compiling" != yes; then
3561  { { ac_try="$ac_link"
3562case "(($ac_try" in
3563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564  *) ac_try_echo=$ac_try;;
3565esac
3566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3567$as_echo "$ac_try_echo"; } >&5
3568  (eval "$ac_link") 2>&5
3569  ac_status=$?
3570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3571  test $ac_status = 0; }
3572  if { ac_try='./conftest$ac_cv_exeext'
3573  { { case "(($ac_try" in
3574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575  *) ac_try_echo=$ac_try;;
3576esac
3577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3578$as_echo "$ac_try_echo"; } >&5
3579  (eval "$ac_try") 2>&5
3580  ac_status=$?
3581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582  test $ac_status = 0; }; }; then
3583    cross_compiling=no
3584  else
3585    if test "$cross_compiling" = maybe; then
3586	cross_compiling=yes
3587    else
3588	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590as_fn_error $? "cannot run C compiled programs.
3591If you meant to cross compile, use \`--host'.
3592See \`config.log' for more details" "$LINENO" 5; }
3593    fi
3594  fi
3595fi
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3597$as_echo "$cross_compiling" >&6; }
3598
3599rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3600ac_clean_files=$ac_clean_files_save
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3602$as_echo_n "checking for suffix of object files... " >&6; }
3603if ${ac_cv_objext+:} false; then :
3604  $as_echo_n "(cached) " >&6
3605else
3606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607/* end confdefs.h.  */
3608
3609int
3610main ()
3611{
3612
3613  ;
3614  return 0;
3615}
3616_ACEOF
3617rm -f conftest.o conftest.obj
3618if { { ac_try="$ac_compile"
3619case "(($ac_try" in
3620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621  *) ac_try_echo=$ac_try;;
3622esac
3623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3624$as_echo "$ac_try_echo"; } >&5
3625  (eval "$ac_compile") 2>&5
3626  ac_status=$?
3627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628  test $ac_status = 0; }; then :
3629  for ac_file in conftest.o conftest.obj conftest.*; do
3630  test -f "$ac_file" || continue;
3631  case $ac_file in
3632    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3633    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3634       break;;
3635  esac
3636done
3637else
3638  $as_echo "$as_me: failed program was:" >&5
3639sed 's/^/| /' conftest.$ac_ext >&5
3640
3641{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3643as_fn_error $? "cannot compute suffix of object files: cannot compile
3644See \`config.log' for more details" "$LINENO" 5; }
3645fi
3646rm -f conftest.$ac_cv_objext conftest.$ac_ext
3647fi
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3649$as_echo "$ac_cv_objext" >&6; }
3650OBJEXT=$ac_cv_objext
3651ac_objext=$OBJEXT
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3653$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3654if ${ac_cv_c_compiler_gnu+:} false; then :
3655  $as_echo_n "(cached) " >&6
3656else
3657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658/* end confdefs.h.  */
3659
3660int
3661main ()
3662{
3663#ifndef __GNUC__
3664       choke me
3665#endif
3666
3667  ;
3668  return 0;
3669}
3670_ACEOF
3671if ac_fn_c_try_compile "$LINENO"; then :
3672  ac_compiler_gnu=yes
3673else
3674  ac_compiler_gnu=no
3675fi
3676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677ac_cv_c_compiler_gnu=$ac_compiler_gnu
3678
3679fi
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3681$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3682if test $ac_compiler_gnu = yes; then
3683  GCC=yes
3684else
3685  GCC=
3686fi
3687ac_test_CFLAGS=${CFLAGS+set}
3688ac_save_CFLAGS=$CFLAGS
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3690$as_echo_n "checking whether $CC accepts -g... " >&6; }
3691if ${ac_cv_prog_cc_g+:} false; then :
3692  $as_echo_n "(cached) " >&6
3693else
3694  ac_save_c_werror_flag=$ac_c_werror_flag
3695   ac_c_werror_flag=yes
3696   ac_cv_prog_cc_g=no
3697   CFLAGS="-g"
3698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699/* end confdefs.h.  */
3700
3701int
3702main ()
3703{
3704
3705  ;
3706  return 0;
3707}
3708_ACEOF
3709if ac_fn_c_try_compile "$LINENO"; then :
3710  ac_cv_prog_cc_g=yes
3711else
3712  CFLAGS=""
3713      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714/* end confdefs.h.  */
3715
3716int
3717main ()
3718{
3719
3720  ;
3721  return 0;
3722}
3723_ACEOF
3724if ac_fn_c_try_compile "$LINENO"; then :
3725
3726else
3727  ac_c_werror_flag=$ac_save_c_werror_flag
3728	 CFLAGS="-g"
3729	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730/* end confdefs.h.  */
3731
3732int
3733main ()
3734{
3735
3736  ;
3737  return 0;
3738}
3739_ACEOF
3740if ac_fn_c_try_compile "$LINENO"; then :
3741  ac_cv_prog_cc_g=yes
3742fi
3743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744fi
3745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746fi
3747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748   ac_c_werror_flag=$ac_save_c_werror_flag
3749fi
3750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3751$as_echo "$ac_cv_prog_cc_g" >&6; }
3752if test "$ac_test_CFLAGS" = set; then
3753  CFLAGS=$ac_save_CFLAGS
3754elif test $ac_cv_prog_cc_g = yes; then
3755  if test "$GCC" = yes; then
3756    CFLAGS="-g -O2"
3757  else
3758    CFLAGS="-g"
3759  fi
3760else
3761  if test "$GCC" = yes; then
3762    CFLAGS="-O2"
3763  else
3764    CFLAGS=
3765  fi
3766fi
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3768$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3769if ${ac_cv_prog_cc_c89+:} false; then :
3770  $as_echo_n "(cached) " >&6
3771else
3772  ac_cv_prog_cc_c89=no
3773ac_save_CC=$CC
3774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775/* end confdefs.h.  */
3776#include <stdarg.h>
3777#include <stdio.h>
3778#include <sys/types.h>
3779#include <sys/stat.h>
3780/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3781struct buf { int x; };
3782FILE * (*rcsopen) (struct buf *, struct stat *, int);
3783static char *e (p, i)
3784     char **p;
3785     int i;
3786{
3787  return p[i];
3788}
3789static char *f (char * (*g) (char **, int), char **p, ...)
3790{
3791  char *s;
3792  va_list v;
3793  va_start (v,p);
3794  s = g (p, va_arg (v,int));
3795  va_end (v);
3796  return s;
3797}
3798
3799/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3800   function prototypes and stuff, but not '\xHH' hex character constants.
3801   These don't provoke an error unfortunately, instead are silently treated
3802   as 'x'.  The following induces an error, until -std is added to get
3803   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3804   array size at least.  It's necessary to write '\x00'==0 to get something
3805   that's true only with -std.  */
3806int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3807
3808/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3809   inside strings and character constants.  */
3810#define FOO(x) 'x'
3811int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3812
3813int test (int i, double x);
3814struct s1 {int (*f) (int a);};
3815struct s2 {int (*f) (double a);};
3816int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3817int argc;
3818char **argv;
3819int
3820main ()
3821{
3822return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3823  ;
3824  return 0;
3825}
3826_ACEOF
3827for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3828	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3829do
3830  CC="$ac_save_CC $ac_arg"
3831  if ac_fn_c_try_compile "$LINENO"; then :
3832  ac_cv_prog_cc_c89=$ac_arg
3833fi
3834rm -f core conftest.err conftest.$ac_objext
3835  test "x$ac_cv_prog_cc_c89" != "xno" && break
3836done
3837rm -f conftest.$ac_ext
3838CC=$ac_save_CC
3839
3840fi
3841# AC_CACHE_VAL
3842case "x$ac_cv_prog_cc_c89" in
3843  x)
3844    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3845$as_echo "none needed" >&6; } ;;
3846  xno)
3847    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3848$as_echo "unsupported" >&6; } ;;
3849  *)
3850    CC="$CC $ac_cv_prog_cc_c89"
3851    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3852$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3853esac
3854if test "x$ac_cv_prog_cc_c89" != xno; then :
3855
3856fi
3857
3858ac_ext=c
3859ac_cpp='$CPP $CPPFLAGS'
3860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862ac_compiler_gnu=$ac_cv_c_compiler_gnu
3863DEPDIR="${am__leading_dot}deps"
3864
3865ac_config_commands="$ac_config_commands depfiles"
3866
3867
3868am_make=${MAKE-make}
3869cat > confinc << 'END'
3870am__doit:
3871	@echo done
3872.PHONY: am__doit
3873END
3874# If we don't find an include directive, just comment out the code.
3875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3876$as_echo_n "checking for style of include used by $am_make... " >&6; }
3877am__include="#"
3878am__quote=
3879_am_result=none
3880# First try GNU make style include.
3881echo "include confinc" > confmf
3882# We grep out `Entering directory' and `Leaving directory'
3883# messages which can occur if `w' ends up in MAKEFLAGS.
3884# In particular we don't look at `^make:' because GNU make might
3885# be invoked under some other name (usually "gmake"), in which
3886# case it prints its new name instead of `make'.
3887if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3888   am__include=include
3889   am__quote=
3890   _am_result=GNU
3891fi
3892# Now try BSD make style include.
3893if test "$am__include" = "#"; then
3894   echo '.include "confinc"' > confmf
3895   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3896      am__include=.include
3897      am__quote="\""
3898      _am_result=BSD
3899   fi
3900fi
3901
3902
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3904$as_echo "$_am_result" >&6; }
3905rm -f confinc confmf
3906
3907# Check whether --enable-dependency-tracking was given.
3908if test "${enable_dependency_tracking+set}" = set; then :
3909  enableval=$enable_dependency_tracking;
3910fi
3911
3912if test "x$enable_dependency_tracking" != xno; then
3913  am_depcomp="$ac_aux_dir/depcomp"
3914  AMDEPBACKSLASH='\'
3915fi
3916
3917
3918if test "x$enable_dependency_tracking" != xno; then
3919  AMDEP_TRUE=
3920  AMDEP_FALSE='#'
3921else
3922  AMDEP_TRUE='#'
3923  AMDEP_FALSE=
3924fi
3925
3926
3927
3928
3929depcc="$CC"   am_compiler_list=
3930
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3932$as_echo_n "checking dependency style of $depcc... " >&6; }
3933if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3934  $as_echo_n "(cached) " >&6
3935else
3936  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3937  # We make a subdir and do the tests there.  Otherwise we can end up
3938  # making bogus files that we don't know about and never remove.  For
3939  # instance it was reported that on HP-UX the gcc test will end up
3940  # making a dummy file named `D' -- because `-MD' means `put the output
3941  # in D'.
3942  mkdir conftest.dir
3943  # Copy depcomp to subdir because otherwise we won't find it if we're
3944  # using a relative directory.
3945  cp "$am_depcomp" conftest.dir
3946  cd conftest.dir
3947  # We will build objects and dependencies in a subdirectory because
3948  # it helps to detect inapplicable dependency modes.  For instance
3949  # both Tru64's cc and ICC support -MD to output dependencies as a
3950  # side effect of compilation, but ICC will put the dependencies in
3951  # the current directory while Tru64 will put them in the object
3952  # directory.
3953  mkdir sub
3954
3955  am_cv_CC_dependencies_compiler_type=none
3956  if test "$am_compiler_list" = ""; then
3957     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3958  fi
3959  for depmode in $am_compiler_list; do
3960    # Setup a source with many dependencies, because some compilers
3961    # like to wrap large dependency lists on column 80 (with \), and
3962    # we should not choose a depcomp mode which is confused by this.
3963    #
3964    # We need to recreate these files for each test, as the compiler may
3965    # overwrite some of them when testing with obscure command lines.
3966    # This happens at least with the AIX C compiler.
3967    : > sub/conftest.c
3968    for i in 1 2 3 4 5 6; do
3969      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3970      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3971      # Solaris 8's {/usr,}/bin/sh.
3972      touch sub/conftst$i.h
3973    done
3974    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3975
3976    case $depmode in
3977    nosideeffect)
3978      # after this tag, mechanisms are not by side-effect, so they'll
3979      # only be used when explicitly requested
3980      if test "x$enable_dependency_tracking" = xyes; then
3981	continue
3982      else
3983	break
3984      fi
3985      ;;
3986    none) break ;;
3987    esac
3988    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3989    # mode.  It turns out that the SunPro C++ compiler does not properly
3990    # handle `-M -o', and we need to detect this.
3991    if depmode=$depmode \
3992       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3993       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3994       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3995         >/dev/null 2>conftest.err &&
3996       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3997       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3998       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3999      # icc doesn't choke on unknown options, it will just issue warnings
4000      # or remarks (even with -Werror).  So we grep stderr for any message
4001      # that says an option was ignored or not supported.
4002      # When given -MP, icc 7.0 and 7.1 complain thusly:
4003      #   icc: Command line warning: ignoring option '-M'; no argument required
4004      # The diagnosis changed in icc 8.0:
4005      #   icc: Command line remark: option '-MP' not supported
4006      if (grep 'ignoring option' conftest.err ||
4007          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4008        am_cv_CC_dependencies_compiler_type=$depmode
4009        break
4010      fi
4011    fi
4012  done
4013
4014  cd ..
4015  rm -rf conftest.dir
4016else
4017  am_cv_CC_dependencies_compiler_type=none
4018fi
4019
4020fi
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4022$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4023CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4024
4025
4026
4027if
4028  test "x$enable_dependency_tracking" != xno \
4029  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4030  am__fastdepCC_TRUE=
4031  am__fastdepCC_FALSE='#'
4032else
4033  am__fastdepCC_TRUE='#'
4034  am__fastdepCC_FALSE=
4035fi
4036
4037
4038if test -n "$ac_tool_prefix"; then
4039  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4040set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4042$as_echo_n "checking for $ac_word... " >&6; }
4043if ${ac_cv_prog_RANLIB+:} false; then :
4044  $as_echo_n "(cached) " >&6
4045else
4046  if test -n "$RANLIB"; then
4047  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4048else
4049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050for as_dir in $PATH
4051do
4052  IFS=$as_save_IFS
4053  test -z "$as_dir" && as_dir=.
4054    for ac_exec_ext in '' $ac_executable_extensions; do
4055  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4056    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4057    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4058    break 2
4059  fi
4060done
4061  done
4062IFS=$as_save_IFS
4063
4064fi
4065fi
4066RANLIB=$ac_cv_prog_RANLIB
4067if test -n "$RANLIB"; then
4068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4069$as_echo "$RANLIB" >&6; }
4070else
4071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4072$as_echo "no" >&6; }
4073fi
4074
4075
4076fi
4077if test -z "$ac_cv_prog_RANLIB"; then
4078  ac_ct_RANLIB=$RANLIB
4079  # Extract the first word of "ranlib", so it can be a program name with args.
4080set dummy ranlib; ac_word=$2
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4082$as_echo_n "checking for $ac_word... " >&6; }
4083if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4084  $as_echo_n "(cached) " >&6
4085else
4086  if test -n "$ac_ct_RANLIB"; then
4087  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4088else
4089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090for as_dir in $PATH
4091do
4092  IFS=$as_save_IFS
4093  test -z "$as_dir" && as_dir=.
4094    for ac_exec_ext in '' $ac_executable_extensions; do
4095  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4096    ac_cv_prog_ac_ct_RANLIB="ranlib"
4097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4098    break 2
4099  fi
4100done
4101  done
4102IFS=$as_save_IFS
4103
4104fi
4105fi
4106ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4107if test -n "$ac_ct_RANLIB"; then
4108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4109$as_echo "$ac_ct_RANLIB" >&6; }
4110else
4111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4112$as_echo "no" >&6; }
4113fi
4114
4115  if test "x$ac_ct_RANLIB" = x; then
4116    RANLIB=":"
4117  else
4118    case $cross_compiling:$ac_tool_warned in
4119yes:)
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4121$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4122ac_tool_warned=yes ;;
4123esac
4124    RANLIB=$ac_ct_RANLIB
4125  fi
4126else
4127  RANLIB="$ac_cv_prog_RANLIB"
4128fi
4129
4130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4131$as_echo_n "checking whether ln -s works... " >&6; }
4132LN_S=$as_ln_s
4133if test "$LN_S" = "ln -s"; then
4134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4135$as_echo "yes" >&6; }
4136else
4137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4138$as_echo "no, using $LN_S" >&6; }
4139fi
4140
4141# Check whether --enable-shared was given.
4142if test "${enable_shared+set}" = set; then :
4143  enableval=$enable_shared; p=${PACKAGE-default}
4144    case $enableval in
4145    yes) enable_shared=yes ;;
4146    no) enable_shared=no ;;
4147    *)
4148      enable_shared=no
4149      # Look at the argument we got.  We use all the common list separators.
4150      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4151      for pkg in $enableval; do
4152	IFS="$lt_save_ifs"
4153	if test "X$pkg" = "X$p"; then
4154	  enable_shared=yes
4155	fi
4156      done
4157      IFS="$lt_save_ifs"
4158      ;;
4159    esac
4160else
4161  enable_shared=yes
4162fi
4163
4164
4165# Check whether --enable-static was given.
4166if test "${enable_static+set}" = set; then :
4167  enableval=$enable_static; p=${PACKAGE-default}
4168    case $enableval in
4169    yes) enable_static=yes ;;
4170    no) enable_static=no ;;
4171    *)
4172     enable_static=no
4173      # Look at the argument we got.  We use all the common list separators.
4174      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4175      for pkg in $enableval; do
4176	IFS="$lt_save_ifs"
4177	if test "X$pkg" = "X$p"; then
4178	  enable_static=yes
4179	fi
4180      done
4181      IFS="$lt_save_ifs"
4182      ;;
4183    esac
4184else
4185  enable_static=yes
4186fi
4187
4188
4189# Check whether --enable-fast-install was given.
4190if test "${enable_fast_install+set}" = set; then :
4191  enableval=$enable_fast_install; p=${PACKAGE-default}
4192    case $enableval in
4193    yes) enable_fast_install=yes ;;
4194    no) enable_fast_install=no ;;
4195    *)
4196      enable_fast_install=no
4197      # Look at the argument we got.  We use all the common list separators.
4198      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4199      for pkg in $enableval; do
4200	IFS="$lt_save_ifs"
4201	if test "X$pkg" = "X$p"; then
4202	  enable_fast_install=yes
4203	fi
4204      done
4205      IFS="$lt_save_ifs"
4206      ;;
4207    esac
4208else
4209  enable_fast_install=yes
4210fi
4211
4212
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4214$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4215if ${lt_cv_path_SED+:} false; then :
4216  $as_echo_n "(cached) " >&6
4217else
4218  # Loop through the user's path and test for sed and gsed.
4219# Then use that list of sed's as ones to test for truncation.
4220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221for as_dir in $PATH
4222do
4223  IFS=$as_save_IFS
4224  test -z "$as_dir" && as_dir=.
4225  for lt_ac_prog in sed gsed; do
4226    for ac_exec_ext in '' $ac_executable_extensions; do
4227      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4228        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4229      fi
4230    done
4231  done
4232done
4233IFS=$as_save_IFS
4234lt_ac_max=0
4235lt_ac_count=0
4236# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4237# along with /bin/sed that truncates output.
4238for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4239  test ! -f $lt_ac_sed && continue
4240  cat /dev/null > conftest.in
4241  lt_ac_count=0
4242  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4243  # Check for GNU sed and select it if it is found.
4244  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4245    lt_cv_path_SED=$lt_ac_sed
4246    break
4247  fi
4248  while true; do
4249    cat conftest.in conftest.in >conftest.tmp
4250    mv conftest.tmp conftest.in
4251    cp conftest.in conftest.nl
4252    echo >>conftest.nl
4253    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4254    cmp -s conftest.out conftest.nl || break
4255    # 10000 chars as input seems more than enough
4256    test $lt_ac_count -gt 10 && break
4257    lt_ac_count=`expr $lt_ac_count + 1`
4258    if test $lt_ac_count -gt $lt_ac_max; then
4259      lt_ac_max=$lt_ac_count
4260      lt_cv_path_SED=$lt_ac_sed
4261    fi
4262  done
4263done
4264
4265fi
4266
4267SED=$lt_cv_path_SED
4268
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4270$as_echo "$SED" >&6; }
4271
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4273$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4274if ${ac_cv_path_GREP+:} false; then :
4275  $as_echo_n "(cached) " >&6
4276else
4277  if test -z "$GREP"; then
4278  ac_path_GREP_found=false
4279  # Loop through the user's path and test for each of PROGNAME-LIST
4280  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4282do
4283  IFS=$as_save_IFS
4284  test -z "$as_dir" && as_dir=.
4285    for ac_prog in grep ggrep; do
4286    for ac_exec_ext in '' $ac_executable_extensions; do
4287      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4288      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4289# Check for GNU ac_path_GREP and select it if it is found.
4290  # Check for GNU $ac_path_GREP
4291case `"$ac_path_GREP" --version 2>&1` in
4292*GNU*)
4293  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4294*)
4295  ac_count=0
4296  $as_echo_n 0123456789 >"conftest.in"
4297  while :
4298  do
4299    cat "conftest.in" "conftest.in" >"conftest.tmp"
4300    mv "conftest.tmp" "conftest.in"
4301    cp "conftest.in" "conftest.nl"
4302    $as_echo 'GREP' >> "conftest.nl"
4303    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4304    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4305    as_fn_arith $ac_count + 1 && ac_count=$as_val
4306    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4307      # Best one so far, save it but keep looking for a better one
4308      ac_cv_path_GREP="$ac_path_GREP"
4309      ac_path_GREP_max=$ac_count
4310    fi
4311    # 10*(2^10) chars as input seems more than enough
4312    test $ac_count -gt 10 && break
4313  done
4314  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4315esac
4316
4317      $ac_path_GREP_found && break 3
4318    done
4319  done
4320  done
4321IFS=$as_save_IFS
4322  if test -z "$ac_cv_path_GREP"; then
4323    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4324  fi
4325else
4326  ac_cv_path_GREP=$GREP
4327fi
4328
4329fi
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4331$as_echo "$ac_cv_path_GREP" >&6; }
4332 GREP="$ac_cv_path_GREP"
4333
4334
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4336$as_echo_n "checking for egrep... " >&6; }
4337if ${ac_cv_path_EGREP+:} false; then :
4338  $as_echo_n "(cached) " >&6
4339else
4340  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4341   then ac_cv_path_EGREP="$GREP -E"
4342   else
4343     if test -z "$EGREP"; then
4344  ac_path_EGREP_found=false
4345  # Loop through the user's path and test for each of PROGNAME-LIST
4346  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4348do
4349  IFS=$as_save_IFS
4350  test -z "$as_dir" && as_dir=.
4351    for ac_prog in egrep; do
4352    for ac_exec_ext in '' $ac_executable_extensions; do
4353      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4354      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4355# Check for GNU ac_path_EGREP and select it if it is found.
4356  # Check for GNU $ac_path_EGREP
4357case `"$ac_path_EGREP" --version 2>&1` in
4358*GNU*)
4359  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4360*)
4361  ac_count=0
4362  $as_echo_n 0123456789 >"conftest.in"
4363  while :
4364  do
4365    cat "conftest.in" "conftest.in" >"conftest.tmp"
4366    mv "conftest.tmp" "conftest.in"
4367    cp "conftest.in" "conftest.nl"
4368    $as_echo 'EGREP' >> "conftest.nl"
4369    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4370    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4371    as_fn_arith $ac_count + 1 && ac_count=$as_val
4372    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4373      # Best one so far, save it but keep looking for a better one
4374      ac_cv_path_EGREP="$ac_path_EGREP"
4375      ac_path_EGREP_max=$ac_count
4376    fi
4377    # 10*(2^10) chars as input seems more than enough
4378    test $ac_count -gt 10 && break
4379  done
4380  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4381esac
4382
4383      $ac_path_EGREP_found && break 3
4384    done
4385  done
4386  done
4387IFS=$as_save_IFS
4388  if test -z "$ac_cv_path_EGREP"; then
4389    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4390  fi
4391else
4392  ac_cv_path_EGREP=$EGREP
4393fi
4394
4395   fi
4396fi
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4398$as_echo "$ac_cv_path_EGREP" >&6; }
4399 EGREP="$ac_cv_path_EGREP"
4400
4401
4402
4403# Check whether --with-gnu-ld was given.
4404if test "${with_gnu_ld+set}" = set; then :
4405  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4406else
4407  with_gnu_ld=no
4408fi
4409
4410ac_prog=ld
4411if test "$GCC" = yes; then
4412  # Check if gcc -print-prog-name=ld gives a path.
4413  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4414$as_echo_n "checking for ld used by $CC... " >&6; }
4415  case $host in
4416  *-*-mingw*)
4417    # gcc leaves a trailing carriage return which upsets mingw
4418    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4419  *)
4420    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4421  esac
4422  case $ac_prog in
4423    # Accept absolute paths.
4424    [\\/]* | ?:[\\/]*)
4425      re_direlt='/[^/][^/]*/\.\./'
4426      # Canonicalize the pathname of ld
4427      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4428      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4429	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4430      done
4431      test -z "$LD" && LD="$ac_prog"
4432      ;;
4433  "")
4434    # If it fails, then pretend we aren't using GCC.
4435    ac_prog=ld
4436    ;;
4437  *)
4438    # If it is relative, then search for the first ld in PATH.
4439    with_gnu_ld=unknown
4440    ;;
4441  esac
4442elif test "$with_gnu_ld" = yes; then
4443  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4444$as_echo_n "checking for GNU ld... " >&6; }
4445else
4446  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4447$as_echo_n "checking for non-GNU ld... " >&6; }
4448fi
4449if ${lt_cv_path_LD+:} false; then :
4450  $as_echo_n "(cached) " >&6
4451else
4452  if test -z "$LD"; then
4453  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4454  for ac_dir in $PATH; do
4455    IFS="$lt_save_ifs"
4456    test -z "$ac_dir" && ac_dir=.
4457    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4458      lt_cv_path_LD="$ac_dir/$ac_prog"
4459      # Check to see if the program is GNU ld.  I'd rather use --version,
4460      # but apparently some variants of GNU ld only accept -v.
4461      # Break only if it was the GNU/non-GNU ld that we prefer.
4462      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4463      *GNU* | *'with BFD'*)
4464	test "$with_gnu_ld" != no && break
4465	;;
4466      *)
4467	test "$with_gnu_ld" != yes && break
4468	;;
4469      esac
4470    fi
4471  done
4472  IFS="$lt_save_ifs"
4473else
4474  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4475fi
4476fi
4477
4478LD="$lt_cv_path_LD"
4479if test -n "$LD"; then
4480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4481$as_echo "$LD" >&6; }
4482else
4483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484$as_echo "no" >&6; }
4485fi
4486test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4488$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4489if ${lt_cv_prog_gnu_ld+:} false; then :
4490  $as_echo_n "(cached) " >&6
4491else
4492  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4493case `$LD -v 2>&1 </dev/null` in
4494*GNU* | *'with BFD'*)
4495  lt_cv_prog_gnu_ld=yes
4496  ;;
4497*)
4498  lt_cv_prog_gnu_ld=no
4499  ;;
4500esac
4501fi
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4503$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4504with_gnu_ld=$lt_cv_prog_gnu_ld
4505
4506
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4508$as_echo_n "checking for $LD option to reload object files... " >&6; }
4509if ${lt_cv_ld_reload_flag+:} false; then :
4510  $as_echo_n "(cached) " >&6
4511else
4512  lt_cv_ld_reload_flag='-r'
4513fi
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4515$as_echo "$lt_cv_ld_reload_flag" >&6; }
4516reload_flag=$lt_cv_ld_reload_flag
4517case $reload_flag in
4518"" | " "*) ;;
4519*) reload_flag=" $reload_flag" ;;
4520esac
4521reload_cmds='$LD$reload_flag -o $output$reload_objs'
4522case $host_os in
4523  darwin*)
4524    if test "$GCC" = yes; then
4525      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4526    else
4527      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4528    fi
4529    ;;
4530esac
4531
4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4533$as_echo_n "checking for BSD-compatible nm... " >&6; }
4534if ${lt_cv_path_NM+:} false; then :
4535  $as_echo_n "(cached) " >&6
4536else
4537  if test -n "$NM"; then
4538  # Let the user override the test.
4539  lt_cv_path_NM="$NM"
4540else
4541  lt_nm_to_check="${ac_tool_prefix}nm"
4542  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4543    lt_nm_to_check="$lt_nm_to_check nm"
4544  fi
4545  for lt_tmp_nm in $lt_nm_to_check; do
4546    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4547    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4548      IFS="$lt_save_ifs"
4549      test -z "$ac_dir" && ac_dir=.
4550      tmp_nm="$ac_dir/$lt_tmp_nm"
4551      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4552	# Check to see if the nm accepts a BSD-compat flag.
4553	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4554	#   nm: unknown option "B" ignored
4555	# Tru64's nm complains that /dev/null is an invalid object file
4556	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4557	*/dev/null* | *'Invalid file or object type'*)
4558	  lt_cv_path_NM="$tmp_nm -B"
4559	  break
4560	  ;;
4561	*)
4562	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4563	  */dev/null*)
4564	    lt_cv_path_NM="$tmp_nm -p"
4565	    break
4566	    ;;
4567	  *)
4568	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4569	    continue # so that we can try to find one that supports BSD flags
4570	    ;;
4571	  esac
4572	  ;;
4573	esac
4574      fi
4575    done
4576    IFS="$lt_save_ifs"
4577  done
4578  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4579fi
4580fi
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4582$as_echo "$lt_cv_path_NM" >&6; }
4583NM="$lt_cv_path_NM"
4584
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
4586$as_echo_n "checking how to recognise dependent libraries... " >&6; }
4587if ${lt_cv_deplibs_check_method+:} false; then :
4588  $as_echo_n "(cached) " >&6
4589else
4590  lt_cv_file_magic_cmd='$MAGIC_CMD'
4591lt_cv_file_magic_test_file=
4592lt_cv_deplibs_check_method='unknown'
4593# Need to set the preceding variable on all platforms that support
4594# interlibrary dependencies.
4595# 'none' -- dependencies not supported.
4596# `unknown' -- same as none, but documents that we really don't know.
4597# 'pass_all' -- all dependencies passed with no checks.
4598# 'test_compile' -- check by making test program.
4599# 'file_magic [[regex]]' -- check by looking for files in library path
4600# which responds to the $file_magic_cmd with a given extended regex.
4601# If you have `file' or equivalent on your system and you're not sure
4602# whether `pass_all' will *always* work, you probably want this one.
4603
4604case $host_os in
4605aix4* | aix5*)
4606  lt_cv_deplibs_check_method=pass_all
4607  ;;
4608
4609beos*)
4610  lt_cv_deplibs_check_method=pass_all
4611  ;;
4612
4613bsdi[45]*)
4614  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4615  lt_cv_file_magic_cmd='/usr/bin/file -L'
4616  lt_cv_file_magic_test_file=/shlib/libc.so
4617  ;;
4618
4619cygwin*)
4620  # func_win32_libid is a shell function defined in ltmain.sh
4621  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4622  lt_cv_file_magic_cmd='func_win32_libid'
4623  ;;
4624
4625mingw* | pw32*)
4626  # Base MSYS/MinGW do not provide the 'file' command needed by
4627  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4628  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4629  lt_cv_file_magic_cmd='$OBJDUMP -f'
4630  ;;
4631
4632darwin* | rhapsody*)
4633  lt_cv_deplibs_check_method=pass_all
4634  ;;
4635
4636freebsd* | kfreebsd*-gnu | dragonfly*)
4637  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4638    case $host_cpu in
4639    i*86 )
4640      # Not sure whether the presence of OpenBSD here was a mistake.
4641      # Let's accept both of them until this is cleared up.
4642      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4643      lt_cv_file_magic_cmd=/usr/bin/file
4644      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4645      ;;
4646    esac
4647  else
4648    lt_cv_deplibs_check_method=pass_all
4649  fi
4650  ;;
4651
4652gnu*)
4653  lt_cv_deplibs_check_method=pass_all
4654  ;;
4655
4656hpux10.20* | hpux11*)
4657  lt_cv_file_magic_cmd=/usr/bin/file
4658  case $host_cpu in
4659  ia64*)
4660    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4661    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4662    ;;
4663  hppa*64*)
4664    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]'
4665    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4666    ;;
4667  *)
4668    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4669    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4670    ;;
4671  esac
4672  ;;
4673
4674interix3*)
4675  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4676  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4677  ;;
4678
4679irix5* | irix6* | nonstopux*)
4680  case $LD in
4681  *-32|*"-32 ") libmagic=32-bit;;
4682  *-n32|*"-n32 ") libmagic=N32;;
4683  *-64|*"-64 ") libmagic=64-bit;;
4684  *) libmagic=never-match;;
4685  esac
4686  lt_cv_deplibs_check_method=pass_all
4687  ;;
4688
4689# This must be Linux ELF.
4690linux*)
4691  lt_cv_deplibs_check_method=pass_all
4692  ;;
4693
4694netbsd*)
4695  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4696    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4697  else
4698    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4699  fi
4700  ;;
4701
4702newos6*)
4703  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4704  lt_cv_file_magic_cmd=/usr/bin/file
4705  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4706  ;;
4707
4708nto-qnx*)
4709  lt_cv_deplibs_check_method=unknown
4710  ;;
4711
4712openbsd*)
4713  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4714    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4715  else
4716    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4717  fi
4718  ;;
4719
4720osf3* | osf4* | osf5*)
4721  lt_cv_deplibs_check_method=pass_all
4722  ;;
4723
4724solaris*)
4725  lt_cv_deplibs_check_method=pass_all
4726  ;;
4727
4728sysv4 | sysv4.3*)
4729  case $host_vendor in
4730  motorola)
4731    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]'
4732    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4733    ;;
4734  ncr)
4735    lt_cv_deplibs_check_method=pass_all
4736    ;;
4737  sequent)
4738    lt_cv_file_magic_cmd='/bin/file'
4739    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4740    ;;
4741  sni)
4742    lt_cv_file_magic_cmd='/bin/file'
4743    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4744    lt_cv_file_magic_test_file=/lib/libc.so
4745    ;;
4746  siemens)
4747    lt_cv_deplibs_check_method=pass_all
4748    ;;
4749  pc)
4750    lt_cv_deplibs_check_method=pass_all
4751    ;;
4752  esac
4753  ;;
4754
4755sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4756  lt_cv_deplibs_check_method=pass_all
4757  ;;
4758esac
4759
4760fi
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4762$as_echo "$lt_cv_deplibs_check_method" >&6; }
4763file_magic_cmd=$lt_cv_file_magic_cmd
4764deplibs_check_method=$lt_cv_deplibs_check_method
4765test -z "$deplibs_check_method" && deplibs_check_method=unknown
4766
4767
4768
4769
4770# If no C compiler was specified, use CC.
4771LTCC=${LTCC-"$CC"}
4772
4773# If no C compiler flags were specified, use CFLAGS.
4774LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4775
4776# Allow CC to be a program name with arguments.
4777compiler=$CC
4778
4779
4780# Check whether --enable-libtool-lock was given.
4781if test "${enable_libtool_lock+set}" = set; then :
4782  enableval=$enable_libtool_lock;
4783fi
4784
4785test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4786
4787# Some flags need to be propagated to the compiler or linker for good
4788# libtool support.
4789case $host in
4790ia64-*-hpux*)
4791  # Find out which ABI we are using.
4792  echo 'int i;' > conftest.$ac_ext
4793  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4794  (eval $ac_compile) 2>&5
4795  ac_status=$?
4796  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4797  test $ac_status = 0; }; then
4798    case `/usr/bin/file conftest.$ac_objext` in
4799    *ELF-32*)
4800      HPUX_IA64_MODE="32"
4801      ;;
4802    *ELF-64*)
4803      HPUX_IA64_MODE="64"
4804      ;;
4805    esac
4806  fi
4807  rm -rf conftest*
4808  ;;
4809*-*-irix6*)
4810  # Find out which ABI we are using.
4811  echo '#line 4811 "configure"' > conftest.$ac_ext
4812  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4813  (eval $ac_compile) 2>&5
4814  ac_status=$?
4815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4816  test $ac_status = 0; }; then
4817   if test "$lt_cv_prog_gnu_ld" = yes; then
4818    case `/usr/bin/file conftest.$ac_objext` in
4819    *32-bit*)
4820      LD="${LD-ld} -melf32bsmip"
4821      ;;
4822    *N32*)
4823      LD="${LD-ld} -melf32bmipn32"
4824      ;;
4825    *64-bit*)
4826      LD="${LD-ld} -melf64bmip"
4827      ;;
4828    esac
4829   else
4830    case `/usr/bin/file conftest.$ac_objext` in
4831    *32-bit*)
4832      LD="${LD-ld} -32"
4833      ;;
4834    *N32*)
4835      LD="${LD-ld} -n32"
4836      ;;
4837    *64-bit*)
4838      LD="${LD-ld} -64"
4839      ;;
4840    esac
4841   fi
4842  fi
4843  rm -rf conftest*
4844  ;;
4845
4846x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4847  # Find out which ABI we are using.
4848  echo 'int i;' > conftest.$ac_ext
4849  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4850  (eval $ac_compile) 2>&5
4851  ac_status=$?
4852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4853  test $ac_status = 0; }; then
4854    case `/usr/bin/file conftest.o` in
4855    *32-bit*)
4856      case $host in
4857        x86_64-*linux*)
4858          LD="${LD-ld} -m elf_i386"
4859          ;;
4860        ppc64-*linux*|powerpc64-*linux*)
4861          LD="${LD-ld} -m elf32ppclinux"
4862          ;;
4863        s390x-*linux*)
4864          LD="${LD-ld} -m elf_s390"
4865          ;;
4866        sparc64-*linux*)
4867          LD="${LD-ld} -m elf32_sparc"
4868          ;;
4869      esac
4870      ;;
4871    *64-bit*)
4872      case $host in
4873        x86_64-*linux*)
4874          LD="${LD-ld} -m elf_x86_64"
4875          ;;
4876        ppc*-*linux*|powerpc*-*linux*)
4877          LD="${LD-ld} -m elf64ppc"
4878          ;;
4879        s390*-*linux*)
4880          LD="${LD-ld} -m elf64_s390"
4881          ;;
4882        sparc*-*linux*)
4883          LD="${LD-ld} -m elf64_sparc"
4884          ;;
4885      esac
4886      ;;
4887    esac
4888  fi
4889  rm -rf conftest*
4890  ;;
4891
4892*-*-sco3.2v5*)
4893  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4894  SAVE_CFLAGS="$CFLAGS"
4895  CFLAGS="$CFLAGS -belf"
4896  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
4897$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4898if ${lt_cv_cc_needs_belf+:} false; then :
4899  $as_echo_n "(cached) " >&6
4900else
4901  ac_ext=c
4902ac_cpp='$CPP $CPPFLAGS'
4903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4905ac_compiler_gnu=$ac_cv_c_compiler_gnu
4906
4907     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908/* end confdefs.h.  */
4909
4910int
4911main ()
4912{
4913
4914  ;
4915  return 0;
4916}
4917_ACEOF
4918if ac_fn_c_try_link "$LINENO"; then :
4919  lt_cv_cc_needs_belf=yes
4920else
4921  lt_cv_cc_needs_belf=no
4922fi
4923rm -f core conftest.err conftest.$ac_objext \
4924    conftest$ac_exeext conftest.$ac_ext
4925     ac_ext=c
4926ac_cpp='$CPP $CPPFLAGS'
4927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929ac_compiler_gnu=$ac_cv_c_compiler_gnu
4930
4931fi
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
4933$as_echo "$lt_cv_cc_needs_belf" >&6; }
4934  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4935    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4936    CFLAGS="$SAVE_CFLAGS"
4937  fi
4938  ;;
4939sparc*-*solaris*)
4940  # Find out which ABI we are using.
4941  echo 'int i;' > conftest.$ac_ext
4942  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4943  (eval $ac_compile) 2>&5
4944  ac_status=$?
4945  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4946  test $ac_status = 0; }; then
4947    case `/usr/bin/file conftest.o` in
4948    *64-bit*)
4949      case $lt_cv_prog_gnu_ld in
4950      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4951      *)    LD="${LD-ld} -64" ;;
4952      esac
4953      ;;
4954    esac
4955  fi
4956  rm -rf conftest*
4957  ;;
4958
4959
4960esac
4961
4962need_locks="$enable_libtool_lock"
4963
4964
4965ac_ext=c
4966ac_cpp='$CPP $CPPFLAGS'
4967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969ac_compiler_gnu=$ac_cv_c_compiler_gnu
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4971$as_echo_n "checking how to run the C preprocessor... " >&6; }
4972# On Suns, sometimes $CPP names a directory.
4973if test -n "$CPP" && test -d "$CPP"; then
4974  CPP=
4975fi
4976if test -z "$CPP"; then
4977  if ${ac_cv_prog_CPP+:} false; then :
4978  $as_echo_n "(cached) " >&6
4979else
4980      # Double quotes because CPP needs to be expanded
4981    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4982    do
4983      ac_preproc_ok=false
4984for ac_c_preproc_warn_flag in '' yes
4985do
4986  # Use a header file that comes with gcc, so configuring glibc
4987  # with a fresh cross-compiler works.
4988  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4989  # <limits.h> exists even on freestanding compilers.
4990  # On the NeXT, cc -E runs the code through the compiler's parser,
4991  # not just through cpp. "Syntax error" is here to catch this case.
4992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993/* end confdefs.h.  */
4994#ifdef __STDC__
4995# include <limits.h>
4996#else
4997# include <assert.h>
4998#endif
4999		     Syntax error
5000_ACEOF
5001if ac_fn_c_try_cpp "$LINENO"; then :
5002
5003else
5004  # Broken: fails on valid input.
5005continue
5006fi
5007rm -f conftest.err conftest.i conftest.$ac_ext
5008
5009  # OK, works on sane cases.  Now check whether nonexistent headers
5010  # can be detected and how.
5011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012/* end confdefs.h.  */
5013#include <ac_nonexistent.h>
5014_ACEOF
5015if ac_fn_c_try_cpp "$LINENO"; then :
5016  # Broken: success on invalid input.
5017continue
5018else
5019  # Passes both tests.
5020ac_preproc_ok=:
5021break
5022fi
5023rm -f conftest.err conftest.i conftest.$ac_ext
5024
5025done
5026# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5027rm -f conftest.i conftest.err conftest.$ac_ext
5028if $ac_preproc_ok; then :
5029  break
5030fi
5031
5032    done
5033    ac_cv_prog_CPP=$CPP
5034
5035fi
5036  CPP=$ac_cv_prog_CPP
5037else
5038  ac_cv_prog_CPP=$CPP
5039fi
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5041$as_echo "$CPP" >&6; }
5042ac_preproc_ok=false
5043for ac_c_preproc_warn_flag in '' yes
5044do
5045  # Use a header file that comes with gcc, so configuring glibc
5046  # with a fresh cross-compiler works.
5047  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5048  # <limits.h> exists even on freestanding compilers.
5049  # On the NeXT, cc -E runs the code through the compiler's parser,
5050  # not just through cpp. "Syntax error" is here to catch this case.
5051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052/* end confdefs.h.  */
5053#ifdef __STDC__
5054# include <limits.h>
5055#else
5056# include <assert.h>
5057#endif
5058		     Syntax error
5059_ACEOF
5060if ac_fn_c_try_cpp "$LINENO"; then :
5061
5062else
5063  # Broken: fails on valid input.
5064continue
5065fi
5066rm -f conftest.err conftest.i conftest.$ac_ext
5067
5068  # OK, works on sane cases.  Now check whether nonexistent headers
5069  # can be detected and how.
5070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071/* end confdefs.h.  */
5072#include <ac_nonexistent.h>
5073_ACEOF
5074if ac_fn_c_try_cpp "$LINENO"; then :
5075  # Broken: success on invalid input.
5076continue
5077else
5078  # Passes both tests.
5079ac_preproc_ok=:
5080break
5081fi
5082rm -f conftest.err conftest.i conftest.$ac_ext
5083
5084done
5085# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5086rm -f conftest.i conftest.err conftest.$ac_ext
5087if $ac_preproc_ok; then :
5088
5089else
5090  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5092as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5093See \`config.log' for more details" "$LINENO" 5; }
5094fi
5095
5096ac_ext=c
5097ac_cpp='$CPP $CPPFLAGS'
5098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100ac_compiler_gnu=$ac_cv_c_compiler_gnu
5101
5102
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5104$as_echo_n "checking for ANSI C header files... " >&6; }
5105if ${ac_cv_header_stdc+:} false; then :
5106  $as_echo_n "(cached) " >&6
5107else
5108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109/* end confdefs.h.  */
5110#include <stdlib.h>
5111#include <stdarg.h>
5112#include <string.h>
5113#include <float.h>
5114
5115int
5116main ()
5117{
5118
5119  ;
5120  return 0;
5121}
5122_ACEOF
5123if ac_fn_c_try_compile "$LINENO"; then :
5124  ac_cv_header_stdc=yes
5125else
5126  ac_cv_header_stdc=no
5127fi
5128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5129
5130if test $ac_cv_header_stdc = yes; then
5131  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133/* end confdefs.h.  */
5134#include <string.h>
5135
5136_ACEOF
5137if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5138  $EGREP "memchr" >/dev/null 2>&1; then :
5139
5140else
5141  ac_cv_header_stdc=no
5142fi
5143rm -f conftest*
5144
5145fi
5146
5147if test $ac_cv_header_stdc = yes; then
5148  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150/* end confdefs.h.  */
5151#include <stdlib.h>
5152
5153_ACEOF
5154if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5155  $EGREP "free" >/dev/null 2>&1; then :
5156
5157else
5158  ac_cv_header_stdc=no
5159fi
5160rm -f conftest*
5161
5162fi
5163
5164if test $ac_cv_header_stdc = yes; then
5165  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5166  if test "$cross_compiling" = yes; then :
5167  :
5168else
5169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170/* end confdefs.h.  */
5171#include <ctype.h>
5172#include <stdlib.h>
5173#if ((' ' & 0x0FF) == 0x020)
5174# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5175# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5176#else
5177# define ISLOWER(c) \
5178		   (('a' <= (c) && (c) <= 'i') \
5179		     || ('j' <= (c) && (c) <= 'r') \
5180		     || ('s' <= (c) && (c) <= 'z'))
5181# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5182#endif
5183
5184#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5185int
5186main ()
5187{
5188  int i;
5189  for (i = 0; i < 256; i++)
5190    if (XOR (islower (i), ISLOWER (i))
5191	|| toupper (i) != TOUPPER (i))
5192      return 2;
5193  return 0;
5194}
5195_ACEOF
5196if ac_fn_c_try_run "$LINENO"; then :
5197
5198else
5199  ac_cv_header_stdc=no
5200fi
5201rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5202  conftest.$ac_objext conftest.beam conftest.$ac_ext
5203fi
5204
5205fi
5206fi
5207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5208$as_echo "$ac_cv_header_stdc" >&6; }
5209if test $ac_cv_header_stdc = yes; then
5210
5211$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5212
5213fi
5214
5215# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5216for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5217		  inttypes.h stdint.h unistd.h
5218do :
5219  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5220ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5221"
5222if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5223  cat >>confdefs.h <<_ACEOF
5224#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5225_ACEOF
5226
5227fi
5228
5229done
5230
5231
5232for ac_header in dlfcn.h
5233do :
5234  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5235if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5236  cat >>confdefs.h <<_ACEOF
5237#define HAVE_DLFCN_H 1
5238_ACEOF
5239
5240fi
5241
5242done
5243
5244ac_ext=cpp
5245ac_cpp='$CXXCPP $CPPFLAGS'
5246ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5247ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5248ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5249if test -z "$CXX"; then
5250  if test -n "$CCC"; then
5251    CXX=$CCC
5252  else
5253    if test -n "$ac_tool_prefix"; then
5254  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5255  do
5256    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5257set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259$as_echo_n "checking for $ac_word... " >&6; }
5260if ${ac_cv_prog_CXX+:} false; then :
5261  $as_echo_n "(cached) " >&6
5262else
5263  if test -n "$CXX"; then
5264  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5265else
5266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267for as_dir in $PATH
5268do
5269  IFS=$as_save_IFS
5270  test -z "$as_dir" && as_dir=.
5271    for ac_exec_ext in '' $ac_executable_extensions; do
5272  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5273    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275    break 2
5276  fi
5277done
5278  done
5279IFS=$as_save_IFS
5280
5281fi
5282fi
5283CXX=$ac_cv_prog_CXX
5284if test -n "$CXX"; then
5285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5286$as_echo "$CXX" >&6; }
5287else
5288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289$as_echo "no" >&6; }
5290fi
5291
5292
5293    test -n "$CXX" && break
5294  done
5295fi
5296if test -z "$CXX"; then
5297  ac_ct_CXX=$CXX
5298  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5299do
5300  # Extract the first word of "$ac_prog", so it can be a program name with args.
5301set dummy $ac_prog; ac_word=$2
5302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5303$as_echo_n "checking for $ac_word... " >&6; }
5304if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5305  $as_echo_n "(cached) " >&6
5306else
5307  if test -n "$ac_ct_CXX"; then
5308  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5309else
5310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311for as_dir in $PATH
5312do
5313  IFS=$as_save_IFS
5314  test -z "$as_dir" && as_dir=.
5315    for ac_exec_ext in '' $ac_executable_extensions; do
5316  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5317    ac_cv_prog_ac_ct_CXX="$ac_prog"
5318    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5319    break 2
5320  fi
5321done
5322  done
5323IFS=$as_save_IFS
5324
5325fi
5326fi
5327ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5328if test -n "$ac_ct_CXX"; then
5329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5330$as_echo "$ac_ct_CXX" >&6; }
5331else
5332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333$as_echo "no" >&6; }
5334fi
5335
5336
5337  test -n "$ac_ct_CXX" && break
5338done
5339
5340  if test "x$ac_ct_CXX" = x; then
5341    CXX="g++"
5342  else
5343    case $cross_compiling:$ac_tool_warned in
5344yes:)
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5347ac_tool_warned=yes ;;
5348esac
5349    CXX=$ac_ct_CXX
5350  fi
5351fi
5352
5353  fi
5354fi
5355# Provide some information about the compiler.
5356$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5357set X $ac_compile
5358ac_compiler=$2
5359for ac_option in --version -v -V -qversion; do
5360  { { ac_try="$ac_compiler $ac_option >&5"
5361case "(($ac_try" in
5362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5363  *) ac_try_echo=$ac_try;;
5364esac
5365eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5366$as_echo "$ac_try_echo"; } >&5
5367  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5368  ac_status=$?
5369  if test -s conftest.err; then
5370    sed '10a\
5371... rest of stderr output deleted ...
5372         10q' conftest.err >conftest.er1
5373    cat conftest.er1 >&5
5374  fi
5375  rm -f conftest.er1 conftest.err
5376  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5377  test $ac_status = 0; }
5378done
5379
5380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5381$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5382if ${ac_cv_cxx_compiler_gnu+:} false; then :
5383  $as_echo_n "(cached) " >&6
5384else
5385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386/* end confdefs.h.  */
5387
5388int
5389main ()
5390{
5391#ifndef __GNUC__
5392       choke me
5393#endif
5394
5395  ;
5396  return 0;
5397}
5398_ACEOF
5399if ac_fn_cxx_try_compile "$LINENO"; then :
5400  ac_compiler_gnu=yes
5401else
5402  ac_compiler_gnu=no
5403fi
5404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5406
5407fi
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5409$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5410if test $ac_compiler_gnu = yes; then
5411  GXX=yes
5412else
5413  GXX=
5414fi
5415ac_test_CXXFLAGS=${CXXFLAGS+set}
5416ac_save_CXXFLAGS=$CXXFLAGS
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5418$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5419if ${ac_cv_prog_cxx_g+:} false; then :
5420  $as_echo_n "(cached) " >&6
5421else
5422  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5423   ac_cxx_werror_flag=yes
5424   ac_cv_prog_cxx_g=no
5425   CXXFLAGS="-g"
5426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427/* end confdefs.h.  */
5428
5429int
5430main ()
5431{
5432
5433  ;
5434  return 0;
5435}
5436_ACEOF
5437if ac_fn_cxx_try_compile "$LINENO"; then :
5438  ac_cv_prog_cxx_g=yes
5439else
5440  CXXFLAGS=""
5441      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442/* end confdefs.h.  */
5443
5444int
5445main ()
5446{
5447
5448  ;
5449  return 0;
5450}
5451_ACEOF
5452if ac_fn_cxx_try_compile "$LINENO"; then :
5453
5454else
5455  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5456	 CXXFLAGS="-g"
5457	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458/* end confdefs.h.  */
5459
5460int
5461main ()
5462{
5463
5464  ;
5465  return 0;
5466}
5467_ACEOF
5468if ac_fn_cxx_try_compile "$LINENO"; then :
5469  ac_cv_prog_cxx_g=yes
5470fi
5471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472fi
5473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5474fi
5475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5476   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5477fi
5478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5479$as_echo "$ac_cv_prog_cxx_g" >&6; }
5480if test "$ac_test_CXXFLAGS" = set; then
5481  CXXFLAGS=$ac_save_CXXFLAGS
5482elif test $ac_cv_prog_cxx_g = yes; then
5483  if test "$GXX" = yes; then
5484    CXXFLAGS="-g -O2"
5485  else
5486    CXXFLAGS="-g"
5487  fi
5488else
5489  if test "$GXX" = yes; then
5490    CXXFLAGS="-O2"
5491  else
5492    CXXFLAGS=
5493  fi
5494fi
5495ac_ext=cpp
5496ac_cpp='$CXXCPP $CPPFLAGS'
5497ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5498ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5499ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5500
5501depcc="$CXX"  am_compiler_list=
5502
5503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5504$as_echo_n "checking dependency style of $depcc... " >&6; }
5505if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5506  $as_echo_n "(cached) " >&6
5507else
5508  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5509  # We make a subdir and do the tests there.  Otherwise we can end up
5510  # making bogus files that we don't know about and never remove.  For
5511  # instance it was reported that on HP-UX the gcc test will end up
5512  # making a dummy file named `D' -- because `-MD' means `put the output
5513  # in D'.
5514  mkdir conftest.dir
5515  # Copy depcomp to subdir because otherwise we won't find it if we're
5516  # using a relative directory.
5517  cp "$am_depcomp" conftest.dir
5518  cd conftest.dir
5519  # We will build objects and dependencies in a subdirectory because
5520  # it helps to detect inapplicable dependency modes.  For instance
5521  # both Tru64's cc and ICC support -MD to output dependencies as a
5522  # side effect of compilation, but ICC will put the dependencies in
5523  # the current directory while Tru64 will put them in the object
5524  # directory.
5525  mkdir sub
5526
5527  am_cv_CXX_dependencies_compiler_type=none
5528  if test "$am_compiler_list" = ""; then
5529     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5530  fi
5531  for depmode in $am_compiler_list; do
5532    # Setup a source with many dependencies, because some compilers
5533    # like to wrap large dependency lists on column 80 (with \), and
5534    # we should not choose a depcomp mode which is confused by this.
5535    #
5536    # We need to recreate these files for each test, as the compiler may
5537    # overwrite some of them when testing with obscure command lines.
5538    # This happens at least with the AIX C compiler.
5539    : > sub/conftest.c
5540    for i in 1 2 3 4 5 6; do
5541      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5542      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5543      # Solaris 8's {/usr,}/bin/sh.
5544      touch sub/conftst$i.h
5545    done
5546    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5547
5548    case $depmode in
5549    nosideeffect)
5550      # after this tag, mechanisms are not by side-effect, so they'll
5551      # only be used when explicitly requested
5552      if test "x$enable_dependency_tracking" = xyes; then
5553	continue
5554      else
5555	break
5556      fi
5557      ;;
5558    none) break ;;
5559    esac
5560    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5561    # mode.  It turns out that the SunPro C++ compiler does not properly
5562    # handle `-M -o', and we need to detect this.
5563    if depmode=$depmode \
5564       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5565       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5566       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5567         >/dev/null 2>conftest.err &&
5568       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5569       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5570       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5571      # icc doesn't choke on unknown options, it will just issue warnings
5572      # or remarks (even with -Werror).  So we grep stderr for any message
5573      # that says an option was ignored or not supported.
5574      # When given -MP, icc 7.0 and 7.1 complain thusly:
5575      #   icc: Command line warning: ignoring option '-M'; no argument required
5576      # The diagnosis changed in icc 8.0:
5577      #   icc: Command line remark: option '-MP' not supported
5578      if (grep 'ignoring option' conftest.err ||
5579          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5580        am_cv_CXX_dependencies_compiler_type=$depmode
5581        break
5582      fi
5583    fi
5584  done
5585
5586  cd ..
5587  rm -rf conftest.dir
5588else
5589  am_cv_CXX_dependencies_compiler_type=none
5590fi
5591
5592fi
5593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5594$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5595CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5596
5597
5598
5599if
5600  test "x$enable_dependency_tracking" != xno \
5601  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5602  am__fastdepCXX_TRUE=
5603  am__fastdepCXX_FALSE='#'
5604else
5605  am__fastdepCXX_TRUE='#'
5606  am__fastdepCXX_FALSE=
5607fi
5608
5609
5610
5611
5612if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5613    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5614    (test "X$CXX" != "Xg++"))) ; then
5615  ac_ext=cpp
5616ac_cpp='$CXXCPP $CPPFLAGS'
5617ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5618ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5619ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5621$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5622if test -z "$CXXCPP"; then
5623  if ${ac_cv_prog_CXXCPP+:} false; then :
5624  $as_echo_n "(cached) " >&6
5625else
5626      # Double quotes because CXXCPP needs to be expanded
5627    for CXXCPP in "$CXX -E" "/lib/cpp"
5628    do
5629      ac_preproc_ok=false
5630for ac_cxx_preproc_warn_flag in '' yes
5631do
5632  # Use a header file that comes with gcc, so configuring glibc
5633  # with a fresh cross-compiler works.
5634  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5635  # <limits.h> exists even on freestanding compilers.
5636  # On the NeXT, cc -E runs the code through the compiler's parser,
5637  # not just through cpp. "Syntax error" is here to catch this case.
5638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639/* end confdefs.h.  */
5640#ifdef __STDC__
5641# include <limits.h>
5642#else
5643# include <assert.h>
5644#endif
5645		     Syntax error
5646_ACEOF
5647if ac_fn_cxx_try_cpp "$LINENO"; then :
5648
5649else
5650  # Broken: fails on valid input.
5651continue
5652fi
5653rm -f conftest.err conftest.i conftest.$ac_ext
5654
5655  # OK, works on sane cases.  Now check whether nonexistent headers
5656  # can be detected and how.
5657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658/* end confdefs.h.  */
5659#include <ac_nonexistent.h>
5660_ACEOF
5661if ac_fn_cxx_try_cpp "$LINENO"; then :
5662  # Broken: success on invalid input.
5663continue
5664else
5665  # Passes both tests.
5666ac_preproc_ok=:
5667break
5668fi
5669rm -f conftest.err conftest.i conftest.$ac_ext
5670
5671done
5672# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5673rm -f conftest.i conftest.err conftest.$ac_ext
5674if $ac_preproc_ok; then :
5675  break
5676fi
5677
5678    done
5679    ac_cv_prog_CXXCPP=$CXXCPP
5680
5681fi
5682  CXXCPP=$ac_cv_prog_CXXCPP
5683else
5684  ac_cv_prog_CXXCPP=$CXXCPP
5685fi
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5687$as_echo "$CXXCPP" >&6; }
5688ac_preproc_ok=false
5689for ac_cxx_preproc_warn_flag in '' yes
5690do
5691  # Use a header file that comes with gcc, so configuring glibc
5692  # with a fresh cross-compiler works.
5693  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5694  # <limits.h> exists even on freestanding compilers.
5695  # On the NeXT, cc -E runs the code through the compiler's parser,
5696  # not just through cpp. "Syntax error" is here to catch this case.
5697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698/* end confdefs.h.  */
5699#ifdef __STDC__
5700# include <limits.h>
5701#else
5702# include <assert.h>
5703#endif
5704		     Syntax error
5705_ACEOF
5706if ac_fn_cxx_try_cpp "$LINENO"; then :
5707
5708else
5709  # Broken: fails on valid input.
5710continue
5711fi
5712rm -f conftest.err conftest.i conftest.$ac_ext
5713
5714  # OK, works on sane cases.  Now check whether nonexistent headers
5715  # can be detected and how.
5716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717/* end confdefs.h.  */
5718#include <ac_nonexistent.h>
5719_ACEOF
5720if ac_fn_cxx_try_cpp "$LINENO"; then :
5721  # Broken: success on invalid input.
5722continue
5723else
5724  # Passes both tests.
5725ac_preproc_ok=:
5726break
5727fi
5728rm -f conftest.err conftest.i conftest.$ac_ext
5729
5730done
5731# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5732rm -f conftest.i conftest.err conftest.$ac_ext
5733if $ac_preproc_ok; then :
5734
5735else
5736  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5737$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5738as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5739See \`config.log' for more details" "$LINENO" 5; }
5740fi
5741
5742ac_ext=cpp
5743ac_cpp='$CXXCPP $CPPFLAGS'
5744ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5745ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5746ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5747
5748fi
5749
5750
5751ac_ext=f
5752ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5753ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5754ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5755if test -n "$ac_tool_prefix"; then
5756  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
5757  do
5758    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5759set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5761$as_echo_n "checking for $ac_word... " >&6; }
5762if ${ac_cv_prog_F77+:} false; then :
5763  $as_echo_n "(cached) " >&6
5764else
5765  if test -n "$F77"; then
5766  ac_cv_prog_F77="$F77" # Let the user override the test.
5767else
5768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769for as_dir in $PATH
5770do
5771  IFS=$as_save_IFS
5772  test -z "$as_dir" && as_dir=.
5773    for ac_exec_ext in '' $ac_executable_extensions; do
5774  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5775    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5776    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5777    break 2
5778  fi
5779done
5780  done
5781IFS=$as_save_IFS
5782
5783fi
5784fi
5785F77=$ac_cv_prog_F77
5786if test -n "$F77"; then
5787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5788$as_echo "$F77" >&6; }
5789else
5790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791$as_echo "no" >&6; }
5792fi
5793
5794
5795    test -n "$F77" && break
5796  done
5797fi
5798if test -z "$F77"; then
5799  ac_ct_F77=$F77
5800  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
5801do
5802  # Extract the first word of "$ac_prog", so it can be a program name with args.
5803set dummy $ac_prog; ac_word=$2
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5805$as_echo_n "checking for $ac_word... " >&6; }
5806if ${ac_cv_prog_ac_ct_F77+:} false; then :
5807  $as_echo_n "(cached) " >&6
5808else
5809  if test -n "$ac_ct_F77"; then
5810  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5811else
5812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813for as_dir in $PATH
5814do
5815  IFS=$as_save_IFS
5816  test -z "$as_dir" && as_dir=.
5817    for ac_exec_ext in '' $ac_executable_extensions; do
5818  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5819    ac_cv_prog_ac_ct_F77="$ac_prog"
5820    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821    break 2
5822  fi
5823done
5824  done
5825IFS=$as_save_IFS
5826
5827fi
5828fi
5829ac_ct_F77=$ac_cv_prog_ac_ct_F77
5830if test -n "$ac_ct_F77"; then
5831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5832$as_echo "$ac_ct_F77" >&6; }
5833else
5834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835$as_echo "no" >&6; }
5836fi
5837
5838
5839  test -n "$ac_ct_F77" && break
5840done
5841
5842  if test "x$ac_ct_F77" = x; then
5843    F77=""
5844  else
5845    case $cross_compiling:$ac_tool_warned in
5846yes:)
5847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5849ac_tool_warned=yes ;;
5850esac
5851    F77=$ac_ct_F77
5852  fi
5853fi
5854
5855
5856# Provide some information about the compiler.
5857$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
5858set X $ac_compile
5859ac_compiler=$2
5860for ac_option in --version -v -V -qversion; do
5861  { { ac_try="$ac_compiler $ac_option >&5"
5862case "(($ac_try" in
5863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864  *) ac_try_echo=$ac_try;;
5865esac
5866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5867$as_echo "$ac_try_echo"; } >&5
5868  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5869  ac_status=$?
5870  if test -s conftest.err; then
5871    sed '10a\
5872... rest of stderr output deleted ...
5873         10q' conftest.err >conftest.er1
5874    cat conftest.er1 >&5
5875  fi
5876  rm -f conftest.er1 conftest.err
5877  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5878  test $ac_status = 0; }
5879done
5880rm -f a.out
5881
5882# If we don't use `.F' as extension, the preprocessor is not run on the
5883# input file.  (Note that this only needs to work for GNU compilers.)
5884ac_save_ext=$ac_ext
5885ac_ext=F
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
5887$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5888if ${ac_cv_f77_compiler_gnu+:} false; then :
5889  $as_echo_n "(cached) " >&6
5890else
5891  cat > conftest.$ac_ext <<_ACEOF
5892      program main
5893#ifndef __GNUC__
5894       choke me
5895#endif
5896
5897      end
5898_ACEOF
5899if ac_fn_f77_try_compile "$LINENO"; then :
5900  ac_compiler_gnu=yes
5901else
5902  ac_compiler_gnu=no
5903fi
5904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5906
5907fi
5908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
5909$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5910ac_ext=$ac_save_ext
5911ac_test_FFLAGS=${FFLAGS+set}
5912ac_save_FFLAGS=$FFLAGS
5913FFLAGS=
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
5915$as_echo_n "checking whether $F77 accepts -g... " >&6; }
5916if ${ac_cv_prog_f77_g+:} false; then :
5917  $as_echo_n "(cached) " >&6
5918else
5919  FFLAGS=-g
5920cat > conftest.$ac_ext <<_ACEOF
5921      program main
5922
5923      end
5924_ACEOF
5925if ac_fn_f77_try_compile "$LINENO"; then :
5926  ac_cv_prog_f77_g=yes
5927else
5928  ac_cv_prog_f77_g=no
5929fi
5930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931
5932fi
5933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
5934$as_echo "$ac_cv_prog_f77_g" >&6; }
5935if test "$ac_test_FFLAGS" = set; then
5936  FFLAGS=$ac_save_FFLAGS
5937elif test $ac_cv_prog_f77_g = yes; then
5938  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5939    FFLAGS="-g -O2"
5940  else
5941    FFLAGS="-g"
5942  fi
5943else
5944  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5945    FFLAGS="-O2"
5946  else
5947    FFLAGS=
5948  fi
5949fi
5950
5951if test $ac_compiler_gnu = yes; then
5952  G77=yes
5953else
5954  G77=
5955fi
5956ac_ext=c
5957ac_cpp='$CPP $CPPFLAGS'
5958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5960ac_compiler_gnu=$ac_cv_c_compiler_gnu
5961
5962
5963
5964# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5965
5966# find the maximum length of command line arguments
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5968$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5969if ${lt_cv_sys_max_cmd_len+:} false; then :
5970  $as_echo_n "(cached) " >&6
5971else
5972    i=0
5973  teststring="ABCD"
5974
5975  case $build_os in
5976  msdosdjgpp*)
5977    # On DJGPP, this test can blow up pretty badly due to problems in libc
5978    # (any single argument exceeding 2000 bytes causes a buffer overrun
5979    # during glob expansion).  Even if it were fixed, the result of this
5980    # check would be larger than it should be.
5981    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5982    ;;
5983
5984  gnu*)
5985    # Under GNU Hurd, this test is not required because there is
5986    # no limit to the length of command line arguments.
5987    # Libtool will interpret -1 as no limit whatsoever
5988    lt_cv_sys_max_cmd_len=-1;
5989    ;;
5990
5991  cygwin* | mingw*)
5992    # On Win9x/ME, this test blows up -- it succeeds, but takes
5993    # about 5 minutes as the teststring grows exponentially.
5994    # Worse, since 9x/ME are not pre-emptively multitasking,
5995    # you end up with a "frozen" computer, even though with patience
5996    # the test eventually succeeds (with a max line length of 256k).
5997    # Instead, let's just punt: use the minimum linelength reported by
5998    # all of the supported platforms: 8192 (on NT/2K/XP).
5999    lt_cv_sys_max_cmd_len=8192;
6000    ;;
6001
6002  amigaos*)
6003    # On AmigaOS with pdksh, this test takes hours, literally.
6004    # So we just punt and use a minimum line length of 8192.
6005    lt_cv_sys_max_cmd_len=8192;
6006    ;;
6007
6008  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6009    # This has been around since 386BSD, at least.  Likely further.
6010    if test -x /sbin/sysctl; then
6011      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6012    elif test -x /usr/sbin/sysctl; then
6013      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6014    else
6015      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6016    fi
6017    # And add a safety zone
6018    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6019    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6020    ;;
6021
6022  interix*)
6023    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6024    lt_cv_sys_max_cmd_len=196608
6025    ;;
6026
6027  osf*)
6028    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6029    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6030    # nice to cause kernel panics so lets avoid the loop below.
6031    # First set a reasonable default.
6032    lt_cv_sys_max_cmd_len=16384
6033    #
6034    if test -x /sbin/sysconfig; then
6035      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6036        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6037      esac
6038    fi
6039    ;;
6040  sco3.2v5*)
6041    lt_cv_sys_max_cmd_len=102400
6042    ;;
6043  sysv5* | sco5v6* | sysv4.2uw2*)
6044    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6045    if test -n "$kargmax"; then
6046      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6047    else
6048      lt_cv_sys_max_cmd_len=32768
6049    fi
6050    ;;
6051  *)
6052    # If test is not a shell built-in, we'll probably end up computing a
6053    # maximum length that is only half of the actual maximum length, but
6054    # we can't tell.
6055    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6056    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6057	       = "XX$teststring") >/dev/null 2>&1 &&
6058	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6059	    lt_cv_sys_max_cmd_len=$new_result &&
6060	    test $i != 17 # 1/2 MB should be enough
6061    do
6062      i=`expr $i + 1`
6063      teststring=$teststring$teststring
6064    done
6065    teststring=
6066    # Add a significant safety factor because C++ compilers can tack on massive
6067    # amounts of additional arguments before passing them to the linker.
6068    # It appears as though 1/2 is a usable value.
6069    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6070    ;;
6071  esac
6072
6073fi
6074
6075if test -n $lt_cv_sys_max_cmd_len ; then
6076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6077$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6078else
6079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6080$as_echo "none" >&6; }
6081fi
6082
6083
6084
6085
6086# Check for command to grab the raw symbol name followed by C symbol from nm.
6087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6088$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6089if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6090  $as_echo_n "(cached) " >&6
6091else
6092
6093# These are sane defaults that work on at least a few old systems.
6094# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6095
6096# Character class describing NM global symbol codes.
6097symcode='[BCDEGRST]'
6098
6099# Regexp to match symbols that can be accessed directly from C.
6100sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6101
6102# Transform an extracted symbol line into a proper C declaration
6103lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6104
6105# Transform an extracted symbol line into symbol name and symbol address
6106lt_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'"
6107
6108# Define system-specific variables.
6109case $host_os in
6110aix*)
6111  symcode='[BCDT]'
6112  ;;
6113cygwin* | mingw* | pw32*)
6114  symcode='[ABCDGISTW]'
6115  ;;
6116hpux*) # Its linker distinguishes data from code symbols
6117  if test "$host_cpu" = ia64; then
6118    symcode='[ABCDEGRST]'
6119  fi
6120  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6121  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'"
6122  ;;
6123linux*)
6124  if test "$host_cpu" = ia64; then
6125    symcode='[ABCDGIRSTW]'
6126    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6127    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'"
6128  fi
6129  ;;
6130irix* | nonstopux*)
6131  symcode='[BCDEGRST]'
6132  ;;
6133osf*)
6134  symcode='[BCDEGQRST]'
6135  ;;
6136solaris*)
6137  symcode='[BDRT]'
6138  ;;
6139sco3.2v5*)
6140  symcode='[DT]'
6141  ;;
6142sysv4.2uw2*)
6143  symcode='[DT]'
6144  ;;
6145sysv5* | sco5v6* | unixware* | OpenUNIX*)
6146  symcode='[ABDT]'
6147  ;;
6148sysv4)
6149  symcode='[DFNSTU]'
6150  ;;
6151esac
6152
6153# Handle CRLF in mingw tool chain
6154opt_cr=
6155case $build_os in
6156mingw*)
6157  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6158  ;;
6159esac
6160
6161# If we're using GNU nm, then use its standard symbol codes.
6162case `$NM -V 2>&1` in
6163*GNU* | *'with BFD'*)
6164  symcode='[ABCDGIRSTW]' ;;
6165esac
6166
6167# Try without a prefix undercore, then with it.
6168for ac_symprfx in "" "_"; do
6169
6170  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6171  symxfrm="\\1 $ac_symprfx\\2 \\2"
6172
6173  # Write the raw and C identifiers.
6174  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6175
6176  # Check to see that the pipe works correctly.
6177  pipe_works=no
6178
6179  rm -f conftest*
6180  cat > conftest.$ac_ext <<EOF
6181#ifdef __cplusplus
6182extern "C" {
6183#endif
6184char nm_test_var;
6185void nm_test_func(){}
6186#ifdef __cplusplus
6187}
6188#endif
6189int main(){nm_test_var='a';nm_test_func();return(0);}
6190EOF
6191
6192  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6193  (eval $ac_compile) 2>&5
6194  ac_status=$?
6195  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6196  test $ac_status = 0; }; then
6197    # Now try to grab the symbols.
6198    nlist=conftest.nm
6199    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6200  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6201  ac_status=$?
6202  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6203  test $ac_status = 0; } && test -s "$nlist"; then
6204      # Try sorting and uniquifying the output.
6205      if sort "$nlist" | uniq > "$nlist"T; then
6206	mv -f "$nlist"T "$nlist"
6207      else
6208	rm -f "$nlist"T
6209      fi
6210
6211      # Make sure that we snagged all the symbols we need.
6212      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6213	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6214	  cat <<EOF > conftest.$ac_ext
6215#ifdef __cplusplus
6216extern "C" {
6217#endif
6218
6219EOF
6220	  # Now generate the symbol file.
6221	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6222
6223	  cat <<EOF >> conftest.$ac_ext
6224#if defined (__STDC__) && __STDC__
6225# define lt_ptr_t void *
6226#else
6227# define lt_ptr_t char *
6228# define const
6229#endif
6230
6231/* The mapping between symbol names and symbols. */
6232const struct {
6233  const char *name;
6234  lt_ptr_t address;
6235}
6236lt_preloaded_symbols[] =
6237{
6238EOF
6239	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6240	  cat <<\EOF >> conftest.$ac_ext
6241  {0, (lt_ptr_t) 0}
6242};
6243
6244#ifdef __cplusplus
6245}
6246#endif
6247EOF
6248	  # Now try linking the two files.
6249	  mv conftest.$ac_objext conftstm.$ac_objext
6250	  lt_save_LIBS="$LIBS"
6251	  lt_save_CFLAGS="$CFLAGS"
6252	  LIBS="conftstm.$ac_objext"
6253	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6254	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6255  (eval $ac_link) 2>&5
6256  ac_status=$?
6257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6258  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6259	    pipe_works=yes
6260	  fi
6261	  LIBS="$lt_save_LIBS"
6262	  CFLAGS="$lt_save_CFLAGS"
6263	else
6264	  echo "cannot find nm_test_func in $nlist" >&5
6265	fi
6266      else
6267	echo "cannot find nm_test_var in $nlist" >&5
6268      fi
6269    else
6270      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6271    fi
6272  else
6273    echo "$progname: failed program was:" >&5
6274    cat conftest.$ac_ext >&5
6275  fi
6276  rm -f conftest* conftst*
6277
6278  # Do not use the global_symbol_pipe unless it works.
6279  if test "$pipe_works" = yes; then
6280    break
6281  else
6282    lt_cv_sys_global_symbol_pipe=
6283  fi
6284done
6285
6286fi
6287
6288if test -z "$lt_cv_sys_global_symbol_pipe"; then
6289  lt_cv_sys_global_symbol_to_cdecl=
6290fi
6291if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6293$as_echo "failed" >&6; }
6294else
6295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6296$as_echo "ok" >&6; }
6297fi
6298
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6300$as_echo_n "checking for objdir... " >&6; }
6301if ${lt_cv_objdir+:} false; then :
6302  $as_echo_n "(cached) " >&6
6303else
6304  rm -f .libs 2>/dev/null
6305mkdir .libs 2>/dev/null
6306if test -d .libs; then
6307  lt_cv_objdir=.libs
6308else
6309  # MS-DOS does not allow filenames that begin with a dot.
6310  lt_cv_objdir=_libs
6311fi
6312rmdir .libs 2>/dev/null
6313fi
6314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6315$as_echo "$lt_cv_objdir" >&6; }
6316objdir=$lt_cv_objdir
6317
6318
6319
6320
6321
6322case $host_os in
6323aix3*)
6324  # AIX sometimes has problems with the GCC collect2 program.  For some
6325  # reason, if we set the COLLECT_NAMES environment variable, the problems
6326  # vanish in a puff of smoke.
6327  if test "X${COLLECT_NAMES+set}" != Xset; then
6328    COLLECT_NAMES=
6329    export COLLECT_NAMES
6330  fi
6331  ;;
6332esac
6333
6334# Sed substitution that helps us do robust quoting.  It backslashifies
6335# metacharacters that are still active within double-quoted strings.
6336Xsed='sed -e 1s/^X//'
6337sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6338
6339# Same as above, but do not quote variable references.
6340double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6341
6342# Sed substitution to delay expansion of an escaped shell variable in a
6343# double_quote_subst'ed string.
6344delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6345
6346# Sed substitution to avoid accidental globbing in evaled expressions
6347no_glob_subst='s/\*/\\\*/g'
6348
6349# Constants:
6350rm="rm -f"
6351
6352# Global variables:
6353default_ofile=libtool
6354can_build_shared=yes
6355
6356# All known linkers require a `.a' archive for static linking (except MSVC,
6357# which needs '.lib').
6358libext=a
6359ltmain="$ac_aux_dir/ltmain.sh"
6360ofile="$default_ofile"
6361with_gnu_ld="$lt_cv_prog_gnu_ld"
6362
6363if test -n "$ac_tool_prefix"; then
6364  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6365set dummy ${ac_tool_prefix}ar; ac_word=$2
6366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6367$as_echo_n "checking for $ac_word... " >&6; }
6368if ${ac_cv_prog_AR+:} false; then :
6369  $as_echo_n "(cached) " >&6
6370else
6371  if test -n "$AR"; then
6372  ac_cv_prog_AR="$AR" # Let the user override the test.
6373else
6374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375for as_dir in $PATH
6376do
6377  IFS=$as_save_IFS
6378  test -z "$as_dir" && as_dir=.
6379    for ac_exec_ext in '' $ac_executable_extensions; do
6380  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6381    ac_cv_prog_AR="${ac_tool_prefix}ar"
6382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6383    break 2
6384  fi
6385done
6386  done
6387IFS=$as_save_IFS
6388
6389fi
6390fi
6391AR=$ac_cv_prog_AR
6392if test -n "$AR"; then
6393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6394$as_echo "$AR" >&6; }
6395else
6396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397$as_echo "no" >&6; }
6398fi
6399
6400
6401fi
6402if test -z "$ac_cv_prog_AR"; then
6403  ac_ct_AR=$AR
6404  # Extract the first word of "ar", so it can be a program name with args.
6405set dummy ar; ac_word=$2
6406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407$as_echo_n "checking for $ac_word... " >&6; }
6408if ${ac_cv_prog_ac_ct_AR+:} false; then :
6409  $as_echo_n "(cached) " >&6
6410else
6411  if test -n "$ac_ct_AR"; then
6412  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6413else
6414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415for as_dir in $PATH
6416do
6417  IFS=$as_save_IFS
6418  test -z "$as_dir" && as_dir=.
6419    for ac_exec_ext in '' $ac_executable_extensions; do
6420  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6421    ac_cv_prog_ac_ct_AR="ar"
6422    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423    break 2
6424  fi
6425done
6426  done
6427IFS=$as_save_IFS
6428
6429fi
6430fi
6431ac_ct_AR=$ac_cv_prog_ac_ct_AR
6432if test -n "$ac_ct_AR"; then
6433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6434$as_echo "$ac_ct_AR" >&6; }
6435else
6436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437$as_echo "no" >&6; }
6438fi
6439
6440  if test "x$ac_ct_AR" = x; then
6441    AR="false"
6442  else
6443    case $cross_compiling:$ac_tool_warned in
6444yes:)
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6447ac_tool_warned=yes ;;
6448esac
6449    AR=$ac_ct_AR
6450  fi
6451else
6452  AR="$ac_cv_prog_AR"
6453fi
6454
6455if test -n "$ac_tool_prefix"; then
6456  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6457set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6459$as_echo_n "checking for $ac_word... " >&6; }
6460if ${ac_cv_prog_RANLIB+:} false; then :
6461  $as_echo_n "(cached) " >&6
6462else
6463  if test -n "$RANLIB"; then
6464  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6465else
6466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467for as_dir in $PATH
6468do
6469  IFS=$as_save_IFS
6470  test -z "$as_dir" && as_dir=.
6471    for ac_exec_ext in '' $ac_executable_extensions; do
6472  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6473    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6474    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6475    break 2
6476  fi
6477done
6478  done
6479IFS=$as_save_IFS
6480
6481fi
6482fi
6483RANLIB=$ac_cv_prog_RANLIB
6484if test -n "$RANLIB"; then
6485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6486$as_echo "$RANLIB" >&6; }
6487else
6488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489$as_echo "no" >&6; }
6490fi
6491
6492
6493fi
6494if test -z "$ac_cv_prog_RANLIB"; then
6495  ac_ct_RANLIB=$RANLIB
6496  # Extract the first word of "ranlib", so it can be a program name with args.
6497set dummy ranlib; ac_word=$2
6498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499$as_echo_n "checking for $ac_word... " >&6; }
6500if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6501  $as_echo_n "(cached) " >&6
6502else
6503  if test -n "$ac_ct_RANLIB"; then
6504  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6505else
6506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507for as_dir in $PATH
6508do
6509  IFS=$as_save_IFS
6510  test -z "$as_dir" && as_dir=.
6511    for ac_exec_ext in '' $ac_executable_extensions; do
6512  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6513    ac_cv_prog_ac_ct_RANLIB="ranlib"
6514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6515    break 2
6516  fi
6517done
6518  done
6519IFS=$as_save_IFS
6520
6521fi
6522fi
6523ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6524if test -n "$ac_ct_RANLIB"; then
6525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6526$as_echo "$ac_ct_RANLIB" >&6; }
6527else
6528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6529$as_echo "no" >&6; }
6530fi
6531
6532  if test "x$ac_ct_RANLIB" = x; then
6533    RANLIB=":"
6534  else
6535    case $cross_compiling:$ac_tool_warned in
6536yes:)
6537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6539ac_tool_warned=yes ;;
6540esac
6541    RANLIB=$ac_ct_RANLIB
6542  fi
6543else
6544  RANLIB="$ac_cv_prog_RANLIB"
6545fi
6546
6547if test -n "$ac_tool_prefix"; then
6548  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6549set dummy ${ac_tool_prefix}strip; ac_word=$2
6550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6551$as_echo_n "checking for $ac_word... " >&6; }
6552if ${ac_cv_prog_STRIP+:} false; then :
6553  $as_echo_n "(cached) " >&6
6554else
6555  if test -n "$STRIP"; then
6556  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6557else
6558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559for as_dir in $PATH
6560do
6561  IFS=$as_save_IFS
6562  test -z "$as_dir" && as_dir=.
6563    for ac_exec_ext in '' $ac_executable_extensions; do
6564  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6565    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6566    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6567    break 2
6568  fi
6569done
6570  done
6571IFS=$as_save_IFS
6572
6573fi
6574fi
6575STRIP=$ac_cv_prog_STRIP
6576if test -n "$STRIP"; then
6577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6578$as_echo "$STRIP" >&6; }
6579else
6580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6581$as_echo "no" >&6; }
6582fi
6583
6584
6585fi
6586if test -z "$ac_cv_prog_STRIP"; then
6587  ac_ct_STRIP=$STRIP
6588  # Extract the first word of "strip", so it can be a program name with args.
6589set dummy strip; ac_word=$2
6590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6591$as_echo_n "checking for $ac_word... " >&6; }
6592if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6593  $as_echo_n "(cached) " >&6
6594else
6595  if test -n "$ac_ct_STRIP"; then
6596  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6597else
6598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599for as_dir in $PATH
6600do
6601  IFS=$as_save_IFS
6602  test -z "$as_dir" && as_dir=.
6603    for ac_exec_ext in '' $ac_executable_extensions; do
6604  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6605    ac_cv_prog_ac_ct_STRIP="strip"
6606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6607    break 2
6608  fi
6609done
6610  done
6611IFS=$as_save_IFS
6612
6613fi
6614fi
6615ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6616if test -n "$ac_ct_STRIP"; then
6617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6618$as_echo "$ac_ct_STRIP" >&6; }
6619else
6620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621$as_echo "no" >&6; }
6622fi
6623
6624  if test "x$ac_ct_STRIP" = x; then
6625    STRIP=":"
6626  else
6627    case $cross_compiling:$ac_tool_warned in
6628yes:)
6629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6631ac_tool_warned=yes ;;
6632esac
6633    STRIP=$ac_ct_STRIP
6634  fi
6635else
6636  STRIP="$ac_cv_prog_STRIP"
6637fi
6638
6639
6640old_CC="$CC"
6641old_CFLAGS="$CFLAGS"
6642
6643# Set sane defaults for various variables
6644test -z "$AR" && AR=ar
6645test -z "$AR_FLAGS" && AR_FLAGS=cru
6646test -z "$AS" && AS=as
6647test -z "$CC" && CC=cc
6648test -z "$LTCC" && LTCC=$CC
6649test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6650test -z "$DLLTOOL" && DLLTOOL=dlltool
6651test -z "$LD" && LD=ld
6652test -z "$LN_S" && LN_S="ln -s"
6653test -z "$MAGIC_CMD" && MAGIC_CMD=file
6654test -z "$NM" && NM=nm
6655test -z "$SED" && SED=sed
6656test -z "$OBJDUMP" && OBJDUMP=objdump
6657test -z "$RANLIB" && RANLIB=:
6658test -z "$STRIP" && STRIP=:
6659test -z "$ac_objext" && ac_objext=o
6660
6661# Determine commands to create old-style static archives.
6662old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6663old_postinstall_cmds='chmod 644 $oldlib'
6664old_postuninstall_cmds=
6665
6666if test -n "$RANLIB"; then
6667  case $host_os in
6668  openbsd*)
6669    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6670    ;;
6671  *)
6672    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6673    ;;
6674  esac
6675  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6676fi
6677
6678for cc_temp in $compiler""; do
6679  case $cc_temp in
6680    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6681    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6682    \-*) ;;
6683    *) break;;
6684  esac
6685done
6686cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6687
6688
6689# Only perform the check for file, if the check method requires it
6690case $deplibs_check_method in
6691file_magic*)
6692  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6693    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6694$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6695if ${lt_cv_path_MAGIC_CMD+:} false; then :
6696  $as_echo_n "(cached) " >&6
6697else
6698  case $MAGIC_CMD in
6699[\\/*] |  ?:[\\/]*)
6700  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6701  ;;
6702*)
6703  lt_save_MAGIC_CMD="$MAGIC_CMD"
6704  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6705  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6706  for ac_dir in $ac_dummy; do
6707    IFS="$lt_save_ifs"
6708    test -z "$ac_dir" && ac_dir=.
6709    if test -f $ac_dir/${ac_tool_prefix}file; then
6710      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6711      if test -n "$file_magic_test_file"; then
6712	case $deplibs_check_method in
6713	"file_magic "*)
6714	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6715	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6716	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6717	    $EGREP "$file_magic_regex" > /dev/null; then
6718	    :
6719	  else
6720	    cat <<EOF 1>&2
6721
6722*** Warning: the command libtool uses to detect shared libraries,
6723*** $file_magic_cmd, produces output that libtool cannot recognize.
6724*** The result is that libtool may fail to recognize shared libraries
6725*** as such.  This will affect the creation of libtool libraries that
6726*** depend on shared libraries, but programs linked with such libtool
6727*** libraries will work regardless of this problem.  Nevertheless, you
6728*** may want to report the problem to your system manager and/or to
6729*** [email protected]
6730
6731EOF
6732	  fi ;;
6733	esac
6734      fi
6735      break
6736    fi
6737  done
6738  IFS="$lt_save_ifs"
6739  MAGIC_CMD="$lt_save_MAGIC_CMD"
6740  ;;
6741esac
6742fi
6743
6744MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6745if test -n "$MAGIC_CMD"; then
6746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6747$as_echo "$MAGIC_CMD" >&6; }
6748else
6749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750$as_echo "no" >&6; }
6751fi
6752
6753if test -z "$lt_cv_path_MAGIC_CMD"; then
6754  if test -n "$ac_tool_prefix"; then
6755    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6756$as_echo_n "checking for file... " >&6; }
6757if ${lt_cv_path_MAGIC_CMD+:} false; then :
6758  $as_echo_n "(cached) " >&6
6759else
6760  case $MAGIC_CMD in
6761[\\/*] |  ?:[\\/]*)
6762  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6763  ;;
6764*)
6765  lt_save_MAGIC_CMD="$MAGIC_CMD"
6766  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6767  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6768  for ac_dir in $ac_dummy; do
6769    IFS="$lt_save_ifs"
6770    test -z "$ac_dir" && ac_dir=.
6771    if test -f $ac_dir/file; then
6772      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6773      if test -n "$file_magic_test_file"; then
6774	case $deplibs_check_method in
6775	"file_magic "*)
6776	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6777	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6778	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6779	    $EGREP "$file_magic_regex" > /dev/null; then
6780	    :
6781	  else
6782	    cat <<EOF 1>&2
6783
6784*** Warning: the command libtool uses to detect shared libraries,
6785*** $file_magic_cmd, produces output that libtool cannot recognize.
6786*** The result is that libtool may fail to recognize shared libraries
6787*** as such.  This will affect the creation of libtool libraries that
6788*** depend on shared libraries, but programs linked with such libtool
6789*** libraries will work regardless of this problem.  Nevertheless, you
6790*** may want to report the problem to your system manager and/or to
6791*** [email protected]
6792
6793EOF
6794	  fi ;;
6795	esac
6796      fi
6797      break
6798    fi
6799  done
6800  IFS="$lt_save_ifs"
6801  MAGIC_CMD="$lt_save_MAGIC_CMD"
6802  ;;
6803esac
6804fi
6805
6806MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6807if test -n "$MAGIC_CMD"; then
6808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6809$as_echo "$MAGIC_CMD" >&6; }
6810else
6811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812$as_echo "no" >&6; }
6813fi
6814
6815  else
6816    MAGIC_CMD=:
6817  fi
6818fi
6819
6820  fi
6821  ;;
6822esac
6823
6824enable_dlopen=no
6825enable_win32_dll=no
6826
6827# Check whether --enable-libtool-lock was given.
6828if test "${enable_libtool_lock+set}" = set; then :
6829  enableval=$enable_libtool_lock;
6830fi
6831
6832test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6833
6834
6835# Check whether --with-pic was given.
6836if test "${with_pic+set}" = set; then :
6837  withval=$with_pic; pic_mode="$withval"
6838else
6839  pic_mode=default
6840fi
6841
6842test -z "$pic_mode" && pic_mode=default
6843
6844# Use C for the default configuration in the libtool script
6845tagname=
6846lt_save_CC="$CC"
6847ac_ext=c
6848ac_cpp='$CPP $CPPFLAGS'
6849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6851ac_compiler_gnu=$ac_cv_c_compiler_gnu
6852
6853
6854# Source file extension for C test sources.
6855ac_ext=c
6856
6857# Object file extension for compiled C test sources.
6858objext=o
6859objext=$objext
6860
6861# Code to be used in simple compile tests
6862lt_simple_compile_test_code="int some_variable = 0;\n"
6863
6864# Code to be used in simple link tests
6865lt_simple_link_test_code='int main(){return(0);}\n'
6866
6867
6868# If no C compiler was specified, use CC.
6869LTCC=${LTCC-"$CC"}
6870
6871# If no C compiler flags were specified, use CFLAGS.
6872LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6873
6874# Allow CC to be a program name with arguments.
6875compiler=$CC
6876
6877
6878# save warnings/boilerplate of simple test code
6879ac_outfile=conftest.$ac_objext
6880printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6881eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6882_lt_compiler_boilerplate=`cat conftest.err`
6883$rm conftest*
6884
6885ac_outfile=conftest.$ac_objext
6886printf "$lt_simple_link_test_code" >conftest.$ac_ext
6887eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6888_lt_linker_boilerplate=`cat conftest.err`
6889$rm conftest*
6890
6891
6892
6893lt_prog_compiler_no_builtin_flag=
6894
6895if test "$GCC" = yes; then
6896  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6897
6898
6899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6900$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6901if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6902  $as_echo_n "(cached) " >&6
6903else
6904  lt_cv_prog_compiler_rtti_exceptions=no
6905  ac_outfile=conftest.$ac_objext
6906   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6907   lt_compiler_flag="-fno-rtti -fno-exceptions"
6908   # Insert the option either (1) after the last *FLAGS variable, or
6909   # (2) before a word containing "conftest.", or (3) at the end.
6910   # Note that $ac_compile itself does not contain backslashes and begins
6911   # with a dollar sign (not a hyphen), so the echo should work correctly.
6912   # The option is referenced via a variable to avoid confusing sed.
6913   lt_compile=`echo "$ac_compile" | $SED \
6914   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6915   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6916   -e 's:$: $lt_compiler_flag:'`
6917   (eval echo "\"\$as_me:6917: $lt_compile\"" >&5)
6918   (eval "$lt_compile" 2>conftest.err)
6919   ac_status=$?
6920   cat conftest.err >&5
6921   echo "$as_me:6921: \$? = $ac_status" >&5
6922   if (exit $ac_status) && test -s "$ac_outfile"; then
6923     # The compiler can only warn and ignore the option if not recognized
6924     # So say no if there are warnings other than the usual output.
6925     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6926     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6927     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6928       lt_cv_prog_compiler_rtti_exceptions=yes
6929     fi
6930   fi
6931   $rm conftest*
6932
6933fi
6934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6935$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6936
6937if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6938    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6939else
6940    :
6941fi
6942
6943fi
6944
6945lt_prog_compiler_wl=
6946lt_prog_compiler_pic=
6947lt_prog_compiler_static=
6948
6949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6950$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6951
6952  if test "$GCC" = yes; then
6953    lt_prog_compiler_wl='-Wl,'
6954    lt_prog_compiler_static='-static'
6955
6956    case $host_os in
6957      aix*)
6958      # All AIX code is PIC.
6959      if test "$host_cpu" = ia64; then
6960	# AIX 5 now supports IA64 processor
6961	lt_prog_compiler_static='-Bstatic'
6962      fi
6963      ;;
6964
6965    amigaos*)
6966      # FIXME: we need at least 68020 code to build shared libraries, but
6967      # adding the `-m68020' flag to GCC prevents building anything better,
6968      # like `-m68040'.
6969      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6970      ;;
6971
6972    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6973      # PIC is the default for these OSes.
6974      ;;
6975
6976    mingw* | pw32* | os2*)
6977      # This hack is so that the source file can tell whether it is being
6978      # built for inclusion in a dll (and should export symbols for example).
6979      lt_prog_compiler_pic='-DDLL_EXPORT'
6980      ;;
6981
6982    darwin* | rhapsody*)
6983      # PIC is the default on this platform
6984      # Common symbols not allowed in MH_DYLIB files
6985      lt_prog_compiler_pic='-fno-common'
6986      ;;
6987
6988    interix3*)
6989      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6990      # Instead, we relocate shared libraries at runtime.
6991      ;;
6992
6993    msdosdjgpp*)
6994      # Just because we use GCC doesn't mean we suddenly get shared libraries
6995      # on systems that don't support them.
6996      lt_prog_compiler_can_build_shared=no
6997      enable_shared=no
6998      ;;
6999
7000    sysv4*MP*)
7001      if test -d /usr/nec; then
7002	lt_prog_compiler_pic=-Kconform_pic
7003      fi
7004      ;;
7005
7006    hpux*)
7007      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7008      # not for PA HP-UX.
7009      case $host_cpu in
7010      hppa*64*|ia64*)
7011	# +Z the default
7012	;;
7013      *)
7014	lt_prog_compiler_pic='-fPIC'
7015	;;
7016      esac
7017      ;;
7018
7019    *)
7020      lt_prog_compiler_pic='-fPIC'
7021      ;;
7022    esac
7023  else
7024    # PORTME Check for flag to pass linker flags through the system compiler.
7025    case $host_os in
7026    aix*)
7027      lt_prog_compiler_wl='-Wl,'
7028      if test "$host_cpu" = ia64; then
7029	# AIX 5 now supports IA64 processor
7030	lt_prog_compiler_static='-Bstatic'
7031      else
7032	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7033      fi
7034      ;;
7035      darwin*)
7036        # PIC is the default on this platform
7037        # Common symbols not allowed in MH_DYLIB files
7038       case $cc_basename in
7039         xlc*)
7040         lt_prog_compiler_pic='-qnocommon'
7041         lt_prog_compiler_wl='-Wl,'
7042         ;;
7043       esac
7044       ;;
7045
7046    mingw* | pw32* | os2*)
7047      # This hack is so that the source file can tell whether it is being
7048      # built for inclusion in a dll (and should export symbols for example).
7049      lt_prog_compiler_pic='-DDLL_EXPORT'
7050      ;;
7051
7052    hpux9* | hpux10* | hpux11*)
7053      lt_prog_compiler_wl='-Wl,'
7054      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7055      # not for PA HP-UX.
7056      case $host_cpu in
7057      hppa*64*|ia64*)
7058	# +Z the default
7059	;;
7060      *)
7061	lt_prog_compiler_pic='+Z'
7062	;;
7063      esac
7064      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7065      lt_prog_compiler_static='${wl}-a ${wl}archive'
7066      ;;
7067
7068    irix5* | irix6* | nonstopux*)
7069      lt_prog_compiler_wl='-Wl,'
7070      # PIC (with -KPIC) is the default.
7071      lt_prog_compiler_static='-non_shared'
7072      ;;
7073
7074    newsos6)
7075      lt_prog_compiler_pic='-KPIC'
7076      lt_prog_compiler_static='-Bstatic'
7077      ;;
7078
7079    linux*)
7080      case $cc_basename in
7081      icc* | ecc*)
7082	lt_prog_compiler_wl='-Wl,'
7083	lt_prog_compiler_pic='-KPIC'
7084	lt_prog_compiler_static='-static'
7085        ;;
7086      pgcc* | pgf77* | pgf90* | pgf95*)
7087        # Portland Group compilers (*not* the Pentium gcc compiler,
7088	# which looks to be a dead project)
7089	lt_prog_compiler_wl='-Wl,'
7090	lt_prog_compiler_pic='-fpic'
7091	lt_prog_compiler_static='-Bstatic'
7092        ;;
7093      ccc*)
7094        lt_prog_compiler_wl='-Wl,'
7095        # All Alpha code is PIC.
7096        lt_prog_compiler_static='-non_shared'
7097        ;;
7098      esac
7099      ;;
7100
7101    osf3* | osf4* | osf5*)
7102      lt_prog_compiler_wl='-Wl,'
7103      # All OSF/1 code is PIC.
7104      lt_prog_compiler_static='-non_shared'
7105      ;;
7106
7107    solaris*)
7108      lt_prog_compiler_pic='-KPIC'
7109      lt_prog_compiler_static='-Bstatic'
7110      case $cc_basename in
7111      f77* | f90* | f95*)
7112	lt_prog_compiler_wl='-Qoption ld ';;
7113      *)
7114	lt_prog_compiler_wl='-Wl,';;
7115      esac
7116      ;;
7117
7118    sunos4*)
7119      lt_prog_compiler_wl='-Qoption ld '
7120      lt_prog_compiler_pic='-PIC'
7121      lt_prog_compiler_static='-Bstatic'
7122      ;;
7123
7124    sysv4 | sysv4.2uw2* | sysv4.3*)
7125      lt_prog_compiler_wl='-Wl,'
7126      lt_prog_compiler_pic='-KPIC'
7127      lt_prog_compiler_static='-Bstatic'
7128      ;;
7129
7130    sysv4*MP*)
7131      if test -d /usr/nec ;then
7132	lt_prog_compiler_pic='-Kconform_pic'
7133	lt_prog_compiler_static='-Bstatic'
7134      fi
7135      ;;
7136
7137    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7138      lt_prog_compiler_wl='-Wl,'
7139      lt_prog_compiler_pic='-KPIC'
7140      lt_prog_compiler_static='-Bstatic'
7141      ;;
7142
7143    unicos*)
7144      lt_prog_compiler_wl='-Wl,'
7145      lt_prog_compiler_can_build_shared=no
7146      ;;
7147
7148    uts4*)
7149      lt_prog_compiler_pic='-pic'
7150      lt_prog_compiler_static='-Bstatic'
7151      ;;
7152
7153    *)
7154      lt_prog_compiler_can_build_shared=no
7155      ;;
7156    esac
7157  fi
7158
7159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7160$as_echo "$lt_prog_compiler_pic" >&6; }
7161
7162#
7163# Check to make sure the PIC flag actually works.
7164#
7165if test -n "$lt_prog_compiler_pic"; then
7166
7167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7168$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7169if ${lt_prog_compiler_pic_works+:} false; then :
7170  $as_echo_n "(cached) " >&6
7171else
7172  lt_prog_compiler_pic_works=no
7173  ac_outfile=conftest.$ac_objext
7174   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7175   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7176   # Insert the option either (1) after the last *FLAGS variable, or
7177   # (2) before a word containing "conftest.", or (3) at the end.
7178   # Note that $ac_compile itself does not contain backslashes and begins
7179   # with a dollar sign (not a hyphen), so the echo should work correctly.
7180   # The option is referenced via a variable to avoid confusing sed.
7181   lt_compile=`echo "$ac_compile" | $SED \
7182   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7183   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7184   -e 's:$: $lt_compiler_flag:'`
7185   (eval echo "\"\$as_me:7185: $lt_compile\"" >&5)
7186   (eval "$lt_compile" 2>conftest.err)
7187   ac_status=$?
7188   cat conftest.err >&5
7189   echo "$as_me:7189: \$? = $ac_status" >&5
7190   if (exit $ac_status) && test -s "$ac_outfile"; then
7191     # The compiler can only warn and ignore the option if not recognized
7192     # So say no if there are warnings other than the usual output.
7193     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7194     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7195     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7196       lt_prog_compiler_pic_works=yes
7197     fi
7198   fi
7199   $rm conftest*
7200
7201fi
7202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
7203$as_echo "$lt_prog_compiler_pic_works" >&6; }
7204
7205if test x"$lt_prog_compiler_pic_works" = xyes; then
7206    case $lt_prog_compiler_pic in
7207     "" | " "*) ;;
7208     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7209     esac
7210else
7211    lt_prog_compiler_pic=
7212     lt_prog_compiler_can_build_shared=no
7213fi
7214
7215fi
7216case $host_os in
7217  # For platforms which do not support PIC, -DPIC is meaningless:
7218  *djgpp*)
7219    lt_prog_compiler_pic=
7220    ;;
7221  *)
7222    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7223    ;;
7224esac
7225
7226#
7227# Check to make sure the static flag actually works.
7228#
7229wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7231$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7232if ${lt_prog_compiler_static_works+:} false; then :
7233  $as_echo_n "(cached) " >&6
7234else
7235  lt_prog_compiler_static_works=no
7236   save_LDFLAGS="$LDFLAGS"
7237   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7238   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7239   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7240     # The linker can only warn and ignore the option if not recognized
7241     # So say no if there are warnings
7242     if test -s conftest.err; then
7243       # Append any errors to the config.log.
7244       cat conftest.err 1>&5
7245       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7246       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7247       if diff conftest.exp conftest.er2 >/dev/null; then
7248         lt_prog_compiler_static_works=yes
7249       fi
7250     else
7251       lt_prog_compiler_static_works=yes
7252     fi
7253   fi
7254   $rm conftest*
7255   LDFLAGS="$save_LDFLAGS"
7256
7257fi
7258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
7259$as_echo "$lt_prog_compiler_static_works" >&6; }
7260
7261if test x"$lt_prog_compiler_static_works" = xyes; then
7262    :
7263else
7264    lt_prog_compiler_static=
7265fi
7266
7267
7268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7269$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7270if ${lt_cv_prog_compiler_c_o+:} false; then :
7271  $as_echo_n "(cached) " >&6
7272else
7273  lt_cv_prog_compiler_c_o=no
7274   $rm -r conftest 2>/dev/null
7275   mkdir conftest
7276   cd conftest
7277   mkdir out
7278   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7279
7280   lt_compiler_flag="-o out/conftest2.$ac_objext"
7281   # Insert the option either (1) after the last *FLAGS variable, or
7282   # (2) before a word containing "conftest.", or (3) at the end.
7283   # Note that $ac_compile itself does not contain backslashes and begins
7284   # with a dollar sign (not a hyphen), so the echo should work correctly.
7285   lt_compile=`echo "$ac_compile" | $SED \
7286   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7287   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7288   -e 's:$: $lt_compiler_flag:'`
7289   (eval echo "\"\$as_me:7289: $lt_compile\"" >&5)
7290   (eval "$lt_compile" 2>out/conftest.err)
7291   ac_status=$?
7292   cat out/conftest.err >&5
7293   echo "$as_me:7293: \$? = $ac_status" >&5
7294   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7295   then
7296     # The compiler can only warn and ignore the option if not recognized
7297     # So say no if there are warnings
7298     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7299     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7300     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7301       lt_cv_prog_compiler_c_o=yes
7302     fi
7303   fi
7304   chmod u+w . 2>&5
7305   $rm conftest*
7306   # SGI C++ compiler will create directory out/ii_files/ for
7307   # template instantiation
7308   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7309   $rm out/* && rmdir out
7310   cd ..
7311   rmdir conftest
7312   $rm conftest*
7313
7314fi
7315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7316$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7317
7318
7319hard_links="nottested"
7320if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7321  # do not overwrite the value of need_locks provided by the user
7322  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7323$as_echo_n "checking if we can lock with hard links... " >&6; }
7324  hard_links=yes
7325  $rm conftest*
7326  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7327  touch conftest.a
7328  ln conftest.a conftest.b 2>&5 || hard_links=no
7329  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7331$as_echo "$hard_links" >&6; }
7332  if test "$hard_links" = no; then
7333    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7334$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7335    need_locks=warn
7336  fi
7337else
7338  need_locks=no
7339fi
7340
7341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7342$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7343
7344  runpath_var=
7345  allow_undefined_flag=
7346  enable_shared_with_static_runtimes=no
7347  archive_cmds=
7348  archive_expsym_cmds=
7349  old_archive_From_new_cmds=
7350  old_archive_from_expsyms_cmds=
7351  export_dynamic_flag_spec=
7352  whole_archive_flag_spec=
7353  thread_safe_flag_spec=
7354  hardcode_libdir_flag_spec=
7355  hardcode_libdir_flag_spec_ld=
7356  hardcode_libdir_separator=
7357  hardcode_direct=no
7358  hardcode_minus_L=no
7359  hardcode_shlibpath_var=unsupported
7360  link_all_deplibs=unknown
7361  hardcode_automatic=no
7362  module_cmds=
7363  module_expsym_cmds=
7364  always_export_symbols=no
7365  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7366  # include_expsyms should be a list of space-separated symbols to be *always*
7367  # included in the symbol list
7368  include_expsyms=
7369  # exclude_expsyms can be an extended regexp of symbols to exclude
7370  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7371  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7372  # as well as any symbol that contains `d'.
7373  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7374  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7375  # platforms (ab)use it in PIC code, but their linkers get confused if
7376  # the symbol is explicitly referenced.  Since portable code cannot
7377  # rely on this symbol name, it's probably fine to never include it in
7378  # preloaded symbol tables.
7379  extract_expsyms_cmds=
7380  # Just being paranoid about ensuring that cc_basename is set.
7381  for cc_temp in $compiler""; do
7382  case $cc_temp in
7383    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7384    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7385    \-*) ;;
7386    *) break;;
7387  esac
7388done
7389cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7390
7391  case $host_os in
7392  cygwin* | mingw* | pw32*)
7393    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7394    # When not using gcc, we currently assume that we are using
7395    # Microsoft Visual C++.
7396    if test "$GCC" != yes; then
7397      with_gnu_ld=no
7398    fi
7399    ;;
7400  interix*)
7401    # we just hope/assume this is gcc and not c89 (= MSVC++)
7402    with_gnu_ld=yes
7403    ;;
7404  openbsd*)
7405    with_gnu_ld=no
7406    ;;
7407  esac
7408
7409  ld_shlibs=yes
7410  if test "$with_gnu_ld" = yes; then
7411    # If archive_cmds runs LD, not CC, wlarc should be empty
7412    wlarc='${wl}'
7413
7414    # Set some defaults for GNU ld with shared library support. These
7415    # are reset later if shared libraries are not supported. Putting them
7416    # here allows them to be overridden if necessary.
7417    runpath_var=LD_RUN_PATH
7418    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7419    export_dynamic_flag_spec='${wl}--export-dynamic'
7420    # ancient GNU ld didn't support --whole-archive et. al.
7421    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7422	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7423      else
7424  	whole_archive_flag_spec=
7425    fi
7426    supports_anon_versioning=no
7427    case `$LD -v 2>/dev/null` in
7428      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7429      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7430      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7431      *\ 2.11.*) ;; # other 2.11 versions
7432      *) supports_anon_versioning=yes ;;
7433    esac
7434
7435    # See if GNU ld supports shared libraries.
7436    case $host_os in
7437    aix3* | aix4* | aix5*)
7438      # On AIX/PPC, the GNU linker is very broken
7439      if test "$host_cpu" != ia64; then
7440	ld_shlibs=no
7441	cat <<EOF 1>&2
7442
7443*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7444*** to be unable to reliably create shared libraries on AIX.
7445*** Therefore, libtool is disabling shared libraries support.  If you
7446*** really care for shared libraries, you may want to modify your PATH
7447*** so that a non-GNU linker is found, and then restart.
7448
7449EOF
7450      fi
7451      ;;
7452
7453    amigaos*)
7454      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)'
7455      hardcode_libdir_flag_spec='-L$libdir'
7456      hardcode_minus_L=yes
7457
7458      # Samuel A. Falvo II <[email protected]> reports
7459      # that the semantics of dynamic libraries on AmigaOS, at least up
7460      # to version 4, is to share data among multiple programs linked
7461      # with the same dynamic library.  Since this doesn't match the
7462      # behavior of shared libraries on other platforms, we can't use
7463      # them.
7464      ld_shlibs=no
7465      ;;
7466
7467    beos*)
7468      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7469	allow_undefined_flag=unsupported
7470	# Joseph Beckenbach <[email protected]> says some releases of gcc
7471	# support --undefined.  This deserves some investigation.  FIXME
7472	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7473      else
7474	ld_shlibs=no
7475      fi
7476      ;;
7477
7478    cygwin* | mingw* | pw32*)
7479      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7480      # as there is no search path for DLLs.
7481      hardcode_libdir_flag_spec='-L$libdir'
7482      allow_undefined_flag=unsupported
7483      always_export_symbols=no
7484      enable_shared_with_static_runtimes=yes
7485      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7486
7487      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7488        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7489	# If the export-symbols file already is a .def file (1st line
7490	# is EXPORTS), use it as is; otherwise, prepend...
7491	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7492	  cp $export_symbols $output_objdir/$soname.def;
7493	else
7494	  echo EXPORTS > $output_objdir/$soname.def;
7495	  cat $export_symbols >> $output_objdir/$soname.def;
7496	fi~
7497	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7498      else
7499	ld_shlibs=no
7500      fi
7501      ;;
7502
7503    interix3*)
7504      hardcode_direct=no
7505      hardcode_shlibpath_var=no
7506      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7507      export_dynamic_flag_spec='${wl}-E'
7508      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7509      # Instead, shared libraries are loaded at an image base (0x10000000 by
7510      # default) and relocated if they conflict, which is a slow very memory
7511      # consuming and fragmenting process.  To avoid this, we pick a random,
7512      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7513      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7514      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7515      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'
7516      ;;
7517
7518    linux*)
7519      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7520	tmp_addflag=
7521	case $cc_basename,$host_cpu in
7522	pgcc*)				# Portland Group C compiler
7523	  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'
7524	  tmp_addflag=' $pic_flag'
7525	  ;;
7526	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7527	  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'
7528	  tmp_addflag=' $pic_flag -Mnomain' ;;
7529	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7530	  tmp_addflag=' -i_dynamic' ;;
7531	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7532	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7533	ifc* | ifort*)			# Intel Fortran compiler
7534	  tmp_addflag=' -nofor_main' ;;
7535	esac
7536	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7537
7538	if test $supports_anon_versioning = yes; then
7539	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7540  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7541  $echo "local: *; };" >> $output_objdir/$libname.ver~
7542	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7543	fi
7544      else
7545	ld_shlibs=no
7546      fi
7547      ;;
7548
7549    netbsd*)
7550      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7551	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7552	wlarc=
7553      else
7554	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7555	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7556      fi
7557      ;;
7558
7559    solaris*)
7560      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7561	ld_shlibs=no
7562	cat <<EOF 1>&2
7563
7564*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7565*** create shared libraries on Solaris systems.  Therefore, libtool
7566*** is disabling shared libraries support.  We urge you to upgrade GNU
7567*** binutils to release 2.9.1 or newer.  Another option is to modify
7568*** your PATH or compiler configuration so that the native linker is
7569*** used, and then restart.
7570
7571EOF
7572      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7573	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7574	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7575      else
7576	ld_shlibs=no
7577      fi
7578      ;;
7579
7580    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7581      case `$LD -v 2>&1` in
7582        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7583	ld_shlibs=no
7584	cat <<_LT_EOF 1>&2
7585
7586*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7587*** reliably create shared libraries on SCO systems.  Therefore, libtool
7588*** is disabling shared libraries support.  We urge you to upgrade GNU
7589*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7590*** your PATH or compiler configuration so that the native linker is
7591*** used, and then restart.
7592
7593_LT_EOF
7594	;;
7595	*)
7596	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7597	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7598	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7599	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7600	  else
7601	    ld_shlibs=no
7602	  fi
7603	;;
7604      esac
7605      ;;
7606
7607    sunos4*)
7608      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7609      wlarc=
7610      hardcode_direct=yes
7611      hardcode_shlibpath_var=no
7612      ;;
7613
7614    *)
7615      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7616	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7617	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7618      else
7619	ld_shlibs=no
7620      fi
7621      ;;
7622    esac
7623
7624    if test "$ld_shlibs" = no; then
7625      runpath_var=
7626      hardcode_libdir_flag_spec=
7627      export_dynamic_flag_spec=
7628      whole_archive_flag_spec=
7629    fi
7630  else
7631    # PORTME fill in a description of your system's linker (not GNU ld)
7632    case $host_os in
7633    aix3*)
7634      allow_undefined_flag=unsupported
7635      always_export_symbols=yes
7636      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'
7637      # Note: this linker hardcodes the directories in LIBPATH if there
7638      # are no directories specified by -L.
7639      hardcode_minus_L=yes
7640      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7641	# Neither direct hardcoding nor static linking is supported with a
7642	# broken collect2.
7643	hardcode_direct=unsupported
7644      fi
7645      ;;
7646
7647    aix4* | aix5*)
7648      if test "$host_cpu" = ia64; then
7649	# On IA64, the linker does run time linking by default, so we don't
7650	# have to do anything special.
7651	aix_use_runtimelinking=no
7652	exp_sym_flag='-Bexport'
7653	no_entry_flag=""
7654      else
7655	# If we're using GNU nm, then we don't want the "-C" option.
7656	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7657	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7658	  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'
7659	else
7660	  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'
7661	fi
7662	aix_use_runtimelinking=no
7663
7664	# Test if we are trying to use run time linking or normal
7665	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7666	# need to do runtime linking.
7667	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7668	  for ld_flag in $LDFLAGS; do
7669  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7670  	    aix_use_runtimelinking=yes
7671  	    break
7672  	  fi
7673	  done
7674	  ;;
7675	esac
7676
7677	exp_sym_flag='-bexport'
7678	no_entry_flag='-bnoentry'
7679      fi
7680
7681      # When large executables or shared objects are built, AIX ld can
7682      # have problems creating the table of contents.  If linking a library
7683      # or program results in "error TOC overflow" add -mminimal-toc to
7684      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7685      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7686
7687      archive_cmds=''
7688      hardcode_direct=yes
7689      hardcode_libdir_separator=':'
7690      link_all_deplibs=yes
7691
7692      if test "$GCC" = yes; then
7693	case $host_os in aix4.[012]|aix4.[012].*)
7694	# We only want to do this on AIX 4.2 and lower, the check
7695	# below for broken collect2 doesn't work under 4.3+
7696	  collect2name=`${CC} -print-prog-name=collect2`
7697	  if test -f "$collect2name" && \
7698  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7699	  then
7700  	  # We have reworked collect2
7701  	  hardcode_direct=yes
7702	  else
7703  	  # We have old collect2
7704  	  hardcode_direct=unsupported
7705  	  # It fails to find uninstalled libraries when the uninstalled
7706  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7707  	  # to unsupported forces relinking
7708  	  hardcode_minus_L=yes
7709  	  hardcode_libdir_flag_spec='-L$libdir'
7710  	  hardcode_libdir_separator=
7711	  fi
7712	  ;;
7713	esac
7714	shared_flag='-shared'
7715	if test "$aix_use_runtimelinking" = yes; then
7716	  shared_flag="$shared_flag "'${wl}-G'
7717	fi
7718      else
7719	# not using gcc
7720	if test "$host_cpu" = ia64; then
7721  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7722  	# chokes on -Wl,-G. The following line is correct:
7723	  shared_flag='-G'
7724	else
7725	  if test "$aix_use_runtimelinking" = yes; then
7726	    shared_flag='${wl}-G'
7727	  else
7728	    shared_flag='${wl}-bM:SRE'
7729	  fi
7730	fi
7731      fi
7732
7733      # It seems that -bexpall does not export symbols beginning with
7734      # underscore (_), so it is better to generate a list of symbols to export.
7735      always_export_symbols=yes
7736      if test "$aix_use_runtimelinking" = yes; then
7737	# Warning - without using the other runtime loading flags (-brtl),
7738	# -berok will link without error, but may produce a broken library.
7739	allow_undefined_flag='-berok'
7740       # Determine the default libpath from the value encoded in an empty executable.
7741       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742/* end confdefs.h.  */
7743
7744int
7745main ()
7746{
7747
7748  ;
7749  return 0;
7750}
7751_ACEOF
7752if ac_fn_c_try_link "$LINENO"; then :
7753
7754aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7755}'`
7756# Check for a 64-bit object if we didn't find anything.
7757if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7758}'`; fi
7759fi
7760rm -f core conftest.err conftest.$ac_objext \
7761    conftest$ac_exeext conftest.$ac_ext
7762if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7763
7764       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7765	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"
7766       else
7767	if test "$host_cpu" = ia64; then
7768	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7769	  allow_undefined_flag="-z nodefs"
7770	  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"
7771	else
7772	 # Determine the default libpath from the value encoded in an empty executable.
7773	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774/* end confdefs.h.  */
7775
7776int
7777main ()
7778{
7779
7780  ;
7781  return 0;
7782}
7783_ACEOF
7784if ac_fn_c_try_link "$LINENO"; then :
7785
7786aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7787}'`
7788# Check for a 64-bit object if we didn't find anything.
7789if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7790}'`; fi
7791fi
7792rm -f core conftest.err conftest.$ac_objext \
7793    conftest$ac_exeext conftest.$ac_ext
7794if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7795
7796	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7797	  # Warning - without using the other run time loading flags,
7798	  # -berok will link without error, but may produce a broken library.
7799	  no_undefined_flag=' ${wl}-bernotok'
7800	  allow_undefined_flag=' ${wl}-berok'
7801	  # Exported symbols can be pulled into shared objects from archives
7802	  whole_archive_flag_spec='$convenience'
7803	  archive_cmds_need_lc=yes
7804	  # This is similar to how AIX traditionally builds its shared libraries.
7805	  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'
7806	fi
7807      fi
7808      ;;
7809
7810    amigaos*)
7811      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)'
7812      hardcode_libdir_flag_spec='-L$libdir'
7813      hardcode_minus_L=yes
7814      # see comment about different semantics on the GNU ld section
7815      ld_shlibs=no
7816      ;;
7817
7818    bsdi[45]*)
7819      export_dynamic_flag_spec=-rdynamic
7820      ;;
7821
7822    cygwin* | mingw* | pw32*)
7823      # When not using gcc, we currently assume that we are using
7824      # Microsoft Visual C++.
7825      # hardcode_libdir_flag_spec is actually meaningless, as there is
7826      # no search path for DLLs.
7827      hardcode_libdir_flag_spec=' '
7828      allow_undefined_flag=unsupported
7829      # Tell ltmain to make .lib files, not .a files.
7830      libext=lib
7831      # Tell ltmain to make .dll files, not .so files.
7832      shrext_cmds=".dll"
7833      # FIXME: Setting linknames here is a bad hack.
7834      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7835      # The linker will automatically build a .lib file if we build a DLL.
7836      old_archive_From_new_cmds='true'
7837      # FIXME: Should let the user specify the lib program.
7838      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7839      fix_srcfile_path='`cygpath -w "$srcfile"`'
7840      enable_shared_with_static_runtimes=yes
7841      ;;
7842
7843    darwin* | rhapsody*)
7844      case $host_os in
7845        rhapsody* | darwin1.[012])
7846         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7847         ;;
7848       *) # Darwin 1.3 on
7849         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7850           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7851         else
7852           case ${MACOSX_DEPLOYMENT_TARGET} in
7853             10.[012])
7854               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7855               ;;
7856             10.*)
7857               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7858               ;;
7859           esac
7860         fi
7861         ;;
7862      esac
7863      archive_cmds_need_lc=no
7864      hardcode_direct=no
7865      hardcode_automatic=yes
7866      hardcode_shlibpath_var=unsupported
7867      whole_archive_flag_spec=''
7868      link_all_deplibs=yes
7869    if test "$GCC" = yes ; then
7870    	output_verbose_link_cmd='echo'
7871        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7872      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7873      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7874      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7875      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}'
7876    else
7877      case $cc_basename in
7878        xlc*)
7879         output_verbose_link_cmd='echo'
7880         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7881         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7882          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7883         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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7884          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}'
7885          ;;
7886       *)
7887         ld_shlibs=no
7888          ;;
7889      esac
7890    fi
7891      ;;
7892
7893    dgux*)
7894      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7895      hardcode_libdir_flag_spec='-L$libdir'
7896      hardcode_shlibpath_var=no
7897      ;;
7898
7899    freebsd1*)
7900      ld_shlibs=no
7901      ;;
7902
7903    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7904    # support.  Future versions do this automatically, but an explicit c++rt0.o
7905    # does not break anything, and helps significantly (at the cost of a little
7906    # extra space).
7907    freebsd2.2*)
7908      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7909      hardcode_libdir_flag_spec='-R$libdir'
7910      hardcode_direct=yes
7911      hardcode_shlibpath_var=no
7912      ;;
7913
7914    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7915    freebsd2*)
7916      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7917      hardcode_direct=yes
7918      hardcode_minus_L=yes
7919      hardcode_shlibpath_var=no
7920      ;;
7921
7922    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7923    freebsd* | kfreebsd*-gnu | dragonfly*)
7924      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7925      hardcode_libdir_flag_spec='-R$libdir'
7926      hardcode_direct=yes
7927      hardcode_shlibpath_var=no
7928      ;;
7929
7930    hpux9*)
7931      if test "$GCC" = yes; then
7932	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'
7933      else
7934	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'
7935      fi
7936      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7937      hardcode_libdir_separator=:
7938      hardcode_direct=yes
7939
7940      # hardcode_minus_L: Not really in the search PATH,
7941      # but as the default location of the library.
7942      hardcode_minus_L=yes
7943      export_dynamic_flag_spec='${wl}-E'
7944      ;;
7945
7946    hpux10*)
7947      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7948	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7949      else
7950	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7951      fi
7952      if test "$with_gnu_ld" = no; then
7953	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7954	hardcode_libdir_separator=:
7955
7956	hardcode_direct=yes
7957	export_dynamic_flag_spec='${wl}-E'
7958
7959	# hardcode_minus_L: Not really in the search PATH,
7960	# but as the default location of the library.
7961	hardcode_minus_L=yes
7962      fi
7963      ;;
7964
7965    hpux11*)
7966      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7967	case $host_cpu in
7968	hppa*64*)
7969	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7970	  ;;
7971	ia64*)
7972	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7973	  ;;
7974	*)
7975	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7976	  ;;
7977	esac
7978      else
7979	case $host_cpu in
7980	hppa*64*)
7981	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7982	  ;;
7983	ia64*)
7984	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7985	  ;;
7986	*)
7987	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7988	  ;;
7989	esac
7990      fi
7991      if test "$with_gnu_ld" = no; then
7992	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7993	hardcode_libdir_separator=:
7994
7995	case $host_cpu in
7996	hppa*64*|ia64*)
7997	  hardcode_libdir_flag_spec_ld='+b $libdir'
7998	  hardcode_direct=no
7999	  hardcode_shlibpath_var=no
8000	  ;;
8001	*)
8002	  hardcode_direct=yes
8003	  export_dynamic_flag_spec='${wl}-E'
8004
8005	  # hardcode_minus_L: Not really in the search PATH,
8006	  # but as the default location of the library.
8007	  hardcode_minus_L=yes
8008	  ;;
8009	esac
8010      fi
8011      ;;
8012
8013    irix5* | irix6* | nonstopux*)
8014      if test "$GCC" = yes; then
8015	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'
8016      else
8017	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'
8018	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8019      fi
8020      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8021      hardcode_libdir_separator=:
8022      link_all_deplibs=yes
8023      ;;
8024
8025    netbsd*)
8026      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8027	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8028      else
8029	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8030      fi
8031      hardcode_libdir_flag_spec='-R$libdir'
8032      hardcode_direct=yes
8033      hardcode_shlibpath_var=no
8034      ;;
8035
8036    newsos6)
8037      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8038      hardcode_direct=yes
8039      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8040      hardcode_libdir_separator=:
8041      hardcode_shlibpath_var=no
8042      ;;
8043
8044    openbsd*)
8045      hardcode_direct=yes
8046      hardcode_shlibpath_var=no
8047      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8048	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8049	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8050	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8051	export_dynamic_flag_spec='${wl}-E'
8052      else
8053       case $host_os in
8054	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8055	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8056	   hardcode_libdir_flag_spec='-R$libdir'
8057	   ;;
8058	 *)
8059	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8060	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8061	   ;;
8062       esac
8063      fi
8064      ;;
8065
8066    os2*)
8067      hardcode_libdir_flag_spec='-L$libdir'
8068      hardcode_minus_L=yes
8069      allow_undefined_flag=unsupported
8070      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'
8071      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8072      ;;
8073
8074    osf3*)
8075      if test "$GCC" = yes; then
8076	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8077	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'
8078      else
8079	allow_undefined_flag=' -expect_unresolved \*'
8080	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'
8081      fi
8082      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8083      hardcode_libdir_separator=:
8084      ;;
8085
8086    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8087      if test "$GCC" = yes; then
8088	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8089	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'
8090	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8091      else
8092	allow_undefined_flag=' -expect_unresolved \*'
8093	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'
8094	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8095	$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'
8096
8097	# Both c and cxx compiler support -rpath directly
8098	hardcode_libdir_flag_spec='-rpath $libdir'
8099      fi
8100      hardcode_libdir_separator=:
8101      ;;
8102
8103    solaris*)
8104      no_undefined_flag=' -z text'
8105      if test "$GCC" = yes; then
8106	wlarc='${wl}'
8107	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8108	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8109	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8110      else
8111	wlarc=''
8112	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8113	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8114  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8115      fi
8116      hardcode_libdir_flag_spec='-R$libdir'
8117      hardcode_shlibpath_var=no
8118      case $host_os in
8119      solaris2.[0-5] | solaris2.[0-5].*) ;;
8120      *)
8121 	# The compiler driver will combine linker options so we
8122 	# cannot just pass the convience library names through
8123 	# without $wl, iff we do not link with $LD.
8124 	# Luckily, gcc supports the same syntax we need for Sun Studio.
8125 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8126 	case $wlarc in
8127 	'')
8128 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8129 	*)
8130 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8131 	esac ;;
8132      esac
8133      link_all_deplibs=yes
8134      ;;
8135
8136    sunos4*)
8137      if test "x$host_vendor" = xsequent; then
8138	# Use $CC to link under sequent, because it throws in some extra .o
8139	# files that make .init and .fini sections work.
8140	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8141      else
8142	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8143      fi
8144      hardcode_libdir_flag_spec='-L$libdir'
8145      hardcode_direct=yes
8146      hardcode_minus_L=yes
8147      hardcode_shlibpath_var=no
8148      ;;
8149
8150    sysv4)
8151      case $host_vendor in
8152	sni)
8153	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8154	  hardcode_direct=yes # is this really true???
8155	;;
8156	siemens)
8157	  ## LD is ld it makes a PLAMLIB
8158	  ## CC just makes a GrossModule.
8159	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8160	  reload_cmds='$CC -r -o $output$reload_objs'
8161	  hardcode_direct=no
8162        ;;
8163	motorola)
8164	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8165	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8166	;;
8167      esac
8168      runpath_var='LD_RUN_PATH'
8169      hardcode_shlibpath_var=no
8170      ;;
8171
8172    sysv4.3*)
8173      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8174      hardcode_shlibpath_var=no
8175      export_dynamic_flag_spec='-Bexport'
8176      ;;
8177
8178    sysv4*MP*)
8179      if test -d /usr/nec; then
8180	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8181	hardcode_shlibpath_var=no
8182	runpath_var=LD_RUN_PATH
8183	hardcode_runpath_var=yes
8184	ld_shlibs=yes
8185      fi
8186      ;;
8187
8188    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8189      no_undefined_flag='${wl}-z,text'
8190      archive_cmds_need_lc=no
8191      hardcode_shlibpath_var=no
8192      runpath_var='LD_RUN_PATH'
8193
8194      if test "$GCC" = yes; then
8195	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8196	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8197      else
8198	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8199	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8200      fi
8201      ;;
8202
8203    sysv5* | sco3.2v5* | sco5v6*)
8204      # Note: We can NOT use -z defs as we might desire, because we do not
8205      # link with -lc, and that would cause any symbols used from libc to
8206      # always be unresolved, which means just about no library would
8207      # ever link correctly.  If we're not using GNU ld we use -z text
8208      # though, which does catch some bad symbols but isn't as heavy-handed
8209      # as -z defs.
8210      no_undefined_flag='${wl}-z,text'
8211      allow_undefined_flag='${wl}-z,nodefs'
8212      archive_cmds_need_lc=no
8213      hardcode_shlibpath_var=no
8214      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8215      hardcode_libdir_separator=':'
8216      link_all_deplibs=yes
8217      export_dynamic_flag_spec='${wl}-Bexport'
8218      runpath_var='LD_RUN_PATH'
8219
8220      if test "$GCC" = yes; then
8221	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8222	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8223      else
8224	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8225	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8226      fi
8227      ;;
8228
8229    uts4*)
8230      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8231      hardcode_libdir_flag_spec='-L$libdir'
8232      hardcode_shlibpath_var=no
8233      ;;
8234
8235    *)
8236      ld_shlibs=no
8237      ;;
8238    esac
8239  fi
8240
8241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8242$as_echo "$ld_shlibs" >&6; }
8243test "$ld_shlibs" = no && can_build_shared=no
8244
8245#
8246# Do we need to explicitly link libc?
8247#
8248case "x$archive_cmds_need_lc" in
8249x|xyes)
8250  # Assume -lc should be added
8251  archive_cmds_need_lc=yes
8252
8253  if test "$enable_shared" = yes && test "$GCC" = yes; then
8254    case $archive_cmds in
8255    *'~'*)
8256      # FIXME: we may have to deal with multi-command sequences.
8257      ;;
8258    '$CC '*)
8259      # Test whether the compiler implicitly links with -lc since on some
8260      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8261      # to ld, don't add -lc before -lgcc.
8262      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8263$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8264      $rm conftest*
8265      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8266
8267      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8268  (eval $ac_compile) 2>&5
8269  ac_status=$?
8270  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8271  test $ac_status = 0; } 2>conftest.err; then
8272        soname=conftest
8273        lib=conftest
8274        libobjs=conftest.$ac_objext
8275        deplibs=
8276        wl=$lt_prog_compiler_wl
8277	pic_flag=$lt_prog_compiler_pic
8278        compiler_flags=-v
8279        linker_flags=-v
8280        verstring=
8281        output_objdir=.
8282        libname=conftest
8283        lt_save_allow_undefined_flag=$allow_undefined_flag
8284        allow_undefined_flag=
8285        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8286  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8287  ac_status=$?
8288  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8289  test $ac_status = 0; }
8290        then
8291	  archive_cmds_need_lc=no
8292        else
8293	  archive_cmds_need_lc=yes
8294        fi
8295        allow_undefined_flag=$lt_save_allow_undefined_flag
8296      else
8297        cat conftest.err 1>&5
8298      fi
8299      $rm conftest*
8300      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8301$as_echo "$archive_cmds_need_lc" >&6; }
8302      ;;
8303    esac
8304  fi
8305  ;;
8306esac
8307
8308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8309$as_echo_n "checking dynamic linker characteristics... " >&6; }
8310library_names_spec=
8311libname_spec='lib$name'
8312soname_spec=
8313shrext_cmds=".so"
8314postinstall_cmds=
8315postuninstall_cmds=
8316finish_cmds=
8317finish_eval=
8318shlibpath_var=
8319shlibpath_overrides_runpath=unknown
8320version_type=none
8321dynamic_linker="$host_os ld.so"
8322sys_lib_dlsearch_path_spec="/lib /usr/lib"
8323if test "$GCC" = yes; then
8324  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8325  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8326    # if the path contains ";" then we assume it to be the separator
8327    # otherwise default to the standard path separator (i.e. ":") - it is
8328    # assumed that no part of a normal pathname contains ";" but that should
8329    # okay in the real world where ";" in dirpaths is itself problematic.
8330    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8331  else
8332    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8333  fi
8334else
8335  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8336fi
8337need_lib_prefix=unknown
8338hardcode_into_libs=no
8339
8340# when you set need_version to no, make sure it does not cause -set_version
8341# flags to be left without arguments
8342need_version=unknown
8343
8344case $host_os in
8345aix3*)
8346  version_type=linux
8347  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8348  shlibpath_var=LIBPATH
8349
8350  # AIX 3 has no versioning support, so we append a major version to the name.
8351  soname_spec='${libname}${release}${shared_ext}$major'
8352  ;;
8353
8354aix4* | aix5*)
8355  version_type=linux
8356  need_lib_prefix=no
8357  need_version=no
8358  hardcode_into_libs=yes
8359  if test "$host_cpu" = ia64; then
8360    # AIX 5 supports IA64
8361    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8362    shlibpath_var=LD_LIBRARY_PATH
8363  else
8364    # With GCC up to 2.95.x, collect2 would create an import file
8365    # for dependence libraries.  The import file would start with
8366    # the line `#! .'.  This would cause the generated library to
8367    # depend on `.', always an invalid library.  This was fixed in
8368    # development snapshots of GCC prior to 3.0.
8369    case $host_os in
8370      aix4 | aix4.[01] | aix4.[01].*)
8371      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8372	   echo ' yes '
8373	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8374	:
8375      else
8376	can_build_shared=no
8377      fi
8378      ;;
8379    esac
8380    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8381    # soname into executable. Probably we can add versioning support to
8382    # collect2, so additional links can be useful in future.
8383    if test "$aix_use_runtimelinking" = yes; then
8384      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8385      # instead of lib<name>.a to let people know that these are not
8386      # typical AIX shared libraries.
8387      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8388    else
8389      # We preserve .a as extension for shared libraries through AIX4.2
8390      # and later when we are not doing run time linking.
8391      library_names_spec='${libname}${release}.a $libname.a'
8392      soname_spec='${libname}${release}${shared_ext}$major'
8393    fi
8394    shlibpath_var=LIBPATH
8395  fi
8396  ;;
8397
8398amigaos*)
8399  library_names_spec='$libname.ixlibrary $libname.a'
8400  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8401  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'
8402  ;;
8403
8404beos*)
8405  library_names_spec='${libname}${shared_ext}'
8406  dynamic_linker="$host_os ld.so"
8407  shlibpath_var=LIBRARY_PATH
8408  ;;
8409
8410bsdi[45]*)
8411  version_type=linux
8412  need_version=no
8413  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8414  soname_spec='${libname}${release}${shared_ext}$major'
8415  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8416  shlibpath_var=LD_LIBRARY_PATH
8417  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8418  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8419  # the default ld.so.conf also contains /usr/contrib/lib and
8420  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8421  # libtool to hard-code these into programs
8422  ;;
8423
8424cygwin* | mingw* | pw32*)
8425  version_type=windows
8426  shrext_cmds=".dll"
8427  need_version=no
8428  need_lib_prefix=no
8429
8430  case $GCC,$host_os in
8431  yes,cygwin* | yes,mingw* | yes,pw32*)
8432    library_names_spec='$libname.dll.a'
8433    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8434    postinstall_cmds='base_file=`basename \${file}`~
8435      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8436      dldir=$destdir/`dirname \$dlpath`~
8437      test -d \$dldir || mkdir -p \$dldir~
8438      $install_prog $dir/$dlname \$dldir/$dlname~
8439      chmod a+x \$dldir/$dlname'
8440    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8441      dlpath=$dir/\$dldll~
8442       $rm \$dlpath'
8443    shlibpath_overrides_runpath=yes
8444
8445    case $host_os in
8446    cygwin*)
8447      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8448      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8449      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8450      ;;
8451    mingw*)
8452      # MinGW DLLs use traditional 'lib' prefix
8453      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8454      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8455      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8456        # It is most probably a Windows format PATH printed by
8457        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8458        # path with ; separators, and with drive letters. We can handle the
8459        # drive letters (cygwin fileutils understands them), so leave them,
8460        # especially as we might pass files found there to a mingw objdump,
8461        # which wouldn't understand a cygwinified path. Ahh.
8462        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8463      else
8464        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8465      fi
8466      ;;
8467    pw32*)
8468      # pw32 DLLs use 'pw' prefix rather than 'lib'
8469      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8470      ;;
8471    esac
8472    ;;
8473
8474  *)
8475    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8476    ;;
8477  esac
8478  dynamic_linker='Win32 ld.exe'
8479  # FIXME: first we should search . and the directory the executable is in
8480  shlibpath_var=PATH
8481  ;;
8482
8483darwin* | rhapsody*)
8484  dynamic_linker="$host_os dyld"
8485  version_type=darwin
8486  need_lib_prefix=no
8487  need_version=no
8488  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8489  soname_spec='${libname}${release}${major}$shared_ext'
8490  shlibpath_overrides_runpath=yes
8491  shlibpath_var=DYLD_LIBRARY_PATH
8492  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8493  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8494  if test "$GCC" = yes; then
8495    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8496  else
8497    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8498  fi
8499  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8500  ;;
8501
8502dgux*)
8503  version_type=linux
8504  need_lib_prefix=no
8505  need_version=no
8506  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8507  soname_spec='${libname}${release}${shared_ext}$major'
8508  shlibpath_var=LD_LIBRARY_PATH
8509  ;;
8510
8511freebsd1*)
8512  dynamic_linker=no
8513  ;;
8514
8515kfreebsd*-gnu)
8516  version_type=linux
8517  need_lib_prefix=no
8518  need_version=no
8519  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8520  soname_spec='${libname}${release}${shared_ext}$major'
8521  shlibpath_var=LD_LIBRARY_PATH
8522  shlibpath_overrides_runpath=no
8523  hardcode_into_libs=yes
8524  dynamic_linker='GNU ld.so'
8525  ;;
8526
8527freebsd* | dragonfly*)
8528  # DragonFly does not have aout.  When/if they implement a new
8529  # versioning mechanism, adjust this.
8530  if test -x /usr/bin/objformat; then
8531    objformat=`/usr/bin/objformat`
8532  else
8533    case $host_os in
8534    freebsd[123]*) objformat=aout ;;
8535    *) objformat=elf ;;
8536    esac
8537  fi
8538  version_type=freebsd-$objformat
8539  case $version_type in
8540    freebsd-elf*)
8541      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8542      need_version=no
8543      need_lib_prefix=no
8544      ;;
8545    freebsd-*)
8546      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8547      need_version=yes
8548      ;;
8549  esac
8550  shlibpath_var=LD_LIBRARY_PATH
8551  case $host_os in
8552  freebsd2*)
8553    shlibpath_overrides_runpath=yes
8554    ;;
8555  freebsd3.[01]* | freebsdelf3.[01]*)
8556    shlibpath_overrides_runpath=yes
8557    hardcode_into_libs=yes
8558    ;;
8559  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8560  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8561    shlibpath_overrides_runpath=no
8562    hardcode_into_libs=yes
8563    ;;
8564  freebsd*) # from 4.6 on
8565    shlibpath_overrides_runpath=yes
8566    hardcode_into_libs=yes
8567    ;;
8568  esac
8569  ;;
8570
8571gnu*)
8572  version_type=linux
8573  need_lib_prefix=no
8574  need_version=no
8575  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8576  soname_spec='${libname}${release}${shared_ext}$major'
8577  shlibpath_var=LD_LIBRARY_PATH
8578  hardcode_into_libs=yes
8579  ;;
8580
8581hpux9* | hpux10* | hpux11*)
8582  # Give a soname corresponding to the major version so that dld.sl refuses to
8583  # link against other versions.
8584  version_type=sunos
8585  need_lib_prefix=no
8586  need_version=no
8587  case $host_cpu in
8588  ia64*)
8589    shrext_cmds='.so'
8590    hardcode_into_libs=yes
8591    dynamic_linker="$host_os dld.so"
8592    shlibpath_var=LD_LIBRARY_PATH
8593    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8594    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8595    soname_spec='${libname}${release}${shared_ext}$major'
8596    if test "X$HPUX_IA64_MODE" = X32; then
8597      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8598    else
8599      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8600    fi
8601    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8602    ;;
8603   hppa*64*)
8604     shrext_cmds='.sl'
8605     hardcode_into_libs=yes
8606     dynamic_linker="$host_os dld.sl"
8607     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8608     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8609     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8610     soname_spec='${libname}${release}${shared_ext}$major'
8611     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8612     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8613     ;;
8614   *)
8615    shrext_cmds='.sl'
8616    dynamic_linker="$host_os dld.sl"
8617    shlibpath_var=SHLIB_PATH
8618    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8619    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8620    soname_spec='${libname}${release}${shared_ext}$major'
8621    ;;
8622  esac
8623  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8624  postinstall_cmds='chmod 555 $lib'
8625  ;;
8626
8627interix3*)
8628  version_type=linux
8629  need_lib_prefix=no
8630  need_version=no
8631  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8632  soname_spec='${libname}${release}${shared_ext}$major'
8633  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8634  shlibpath_var=LD_LIBRARY_PATH
8635  shlibpath_overrides_runpath=no
8636  hardcode_into_libs=yes
8637  ;;
8638
8639irix5* | irix6* | nonstopux*)
8640  case $host_os in
8641    nonstopux*) version_type=nonstopux ;;
8642    *)
8643	if test "$lt_cv_prog_gnu_ld" = yes; then
8644		version_type=linux
8645	else
8646		version_type=irix
8647	fi ;;
8648  esac
8649  need_lib_prefix=no
8650  need_version=no
8651  soname_spec='${libname}${release}${shared_ext}$major'
8652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8653  case $host_os in
8654  irix5* | nonstopux*)
8655    libsuff= shlibsuff=
8656    ;;
8657  *)
8658    case $LD in # libtool.m4 will add one of these switches to LD
8659    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8660      libsuff= shlibsuff= libmagic=32-bit;;
8661    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8662      libsuff=32 shlibsuff=N32 libmagic=N32;;
8663    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8664      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8665    *) libsuff= shlibsuff= libmagic=never-match;;
8666    esac
8667    ;;
8668  esac
8669  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8670  shlibpath_overrides_runpath=no
8671  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8672  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8673  hardcode_into_libs=yes
8674  ;;
8675
8676# No shared lib support for Linux oldld, aout, or coff.
8677linux*oldld* | linux*aout* | linux*coff*)
8678  dynamic_linker=no
8679  ;;
8680
8681# This must be Linux ELF.
8682linux*)
8683  version_type=linux
8684  need_lib_prefix=no
8685  need_version=no
8686  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8687  soname_spec='${libname}${release}${shared_ext}$major'
8688  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8689  shlibpath_var=LD_LIBRARY_PATH
8690  shlibpath_overrides_runpath=no
8691  # This implies no fast_install, which is unacceptable.
8692  # Some rework will be needed to allow for fast_install
8693  # before this can be enabled.
8694  hardcode_into_libs=yes
8695
8696  # find out which ABI we are using
8697  libsuff=
8698  case "$host_cpu" in
8699  x86_64*|s390x*|powerpc64*)
8700    echo '#line 8700 "configure"' > conftest.$ac_ext
8701    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8702  (eval $ac_compile) 2>&5
8703  ac_status=$?
8704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8705  test $ac_status = 0; }; then
8706      case `/usr/bin/file conftest.$ac_objext` in
8707      *64-bit*)
8708        libsuff=64
8709        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8710        ;;
8711      esac
8712    fi
8713    rm -rf conftest*
8714    ;;
8715  esac
8716
8717  # Append ld.so.conf contents to the search path
8718  if test -f /etc/ld.so.conf; then
8719    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/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8720    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8721  fi
8722
8723  # We used to test for /lib/ld.so.1 and disable shared libraries on
8724  # powerpc, because MkLinux only supported shared libraries with the
8725  # GNU dynamic linker.  Since this was broken with cross compilers,
8726  # most powerpc-linux boxes support dynamic linking these days and
8727  # people can always --disable-shared, the test was removed, and we
8728  # assume the GNU/Linux dynamic linker is in use.
8729  dynamic_linker='GNU/Linux ld.so'
8730  ;;
8731
8732knetbsd*-gnu)
8733  version_type=linux
8734  need_lib_prefix=no
8735  need_version=no
8736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8737  soname_spec='${libname}${release}${shared_ext}$major'
8738  shlibpath_var=LD_LIBRARY_PATH
8739  shlibpath_overrides_runpath=no
8740  hardcode_into_libs=yes
8741  dynamic_linker='GNU ld.so'
8742  ;;
8743
8744netbsd*)
8745  version_type=sunos
8746  need_lib_prefix=no
8747  need_version=no
8748  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8749    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8750    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8751    dynamic_linker='NetBSD (a.out) ld.so'
8752  else
8753    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8754    soname_spec='${libname}${release}${shared_ext}$major'
8755    dynamic_linker='NetBSD ld.elf_so'
8756  fi
8757  shlibpath_var=LD_LIBRARY_PATH
8758  shlibpath_overrides_runpath=yes
8759  hardcode_into_libs=yes
8760  ;;
8761
8762newsos6)
8763  version_type=linux
8764  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8765  shlibpath_var=LD_LIBRARY_PATH
8766  shlibpath_overrides_runpath=yes
8767  ;;
8768
8769nto-qnx*)
8770  version_type=linux
8771  need_lib_prefix=no
8772  need_version=no
8773  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8774  soname_spec='${libname}${release}${shared_ext}$major'
8775  shlibpath_var=LD_LIBRARY_PATH
8776  shlibpath_overrides_runpath=yes
8777  ;;
8778
8779openbsd*)
8780  version_type=sunos
8781  sys_lib_dlsearch_path_spec="/usr/lib"
8782  need_lib_prefix=no
8783  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8784  case $host_os in
8785    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8786    *)                         need_version=no  ;;
8787  esac
8788  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8789  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8790  shlibpath_var=LD_LIBRARY_PATH
8791  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8792    case $host_os in
8793      openbsd2.[89] | openbsd2.[89].*)
8794	shlibpath_overrides_runpath=no
8795	;;
8796      *)
8797	shlibpath_overrides_runpath=yes
8798	;;
8799      esac
8800  else
8801    shlibpath_overrides_runpath=yes
8802  fi
8803  ;;
8804
8805os2*)
8806  libname_spec='$name'
8807  shrext_cmds=".dll"
8808  need_lib_prefix=no
8809  library_names_spec='$libname${shared_ext} $libname.a'
8810  dynamic_linker='OS/2 ld.exe'
8811  shlibpath_var=LIBPATH
8812  ;;
8813
8814osf3* | osf4* | osf5*)
8815  version_type=osf
8816  need_lib_prefix=no
8817  need_version=no
8818  soname_spec='${libname}${release}${shared_ext}$major'
8819  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8820  shlibpath_var=LD_LIBRARY_PATH
8821  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8822  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8823  ;;
8824
8825solaris*)
8826  version_type=linux
8827  need_lib_prefix=no
8828  need_version=no
8829  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8830  soname_spec='${libname}${release}${shared_ext}$major'
8831  shlibpath_var=LD_LIBRARY_PATH
8832  shlibpath_overrides_runpath=yes
8833  hardcode_into_libs=yes
8834  # ldd complains unless libraries are executable
8835  postinstall_cmds='chmod +x $lib'
8836  ;;
8837
8838sunos4*)
8839  version_type=sunos
8840  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8841  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8842  shlibpath_var=LD_LIBRARY_PATH
8843  shlibpath_overrides_runpath=yes
8844  if test "$with_gnu_ld" = yes; then
8845    need_lib_prefix=no
8846  fi
8847  need_version=yes
8848  ;;
8849
8850sysv4 | sysv4.3*)
8851  version_type=linux
8852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8853  soname_spec='${libname}${release}${shared_ext}$major'
8854  shlibpath_var=LD_LIBRARY_PATH
8855  case $host_vendor in
8856    sni)
8857      shlibpath_overrides_runpath=no
8858      need_lib_prefix=no
8859      export_dynamic_flag_spec='${wl}-Blargedynsym'
8860      runpath_var=LD_RUN_PATH
8861      ;;
8862    siemens)
8863      need_lib_prefix=no
8864      ;;
8865    motorola)
8866      need_lib_prefix=no
8867      need_version=no
8868      shlibpath_overrides_runpath=no
8869      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8870      ;;
8871  esac
8872  ;;
8873
8874sysv4*MP*)
8875  if test -d /usr/nec ;then
8876    version_type=linux
8877    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8878    soname_spec='$libname${shared_ext}.$major'
8879    shlibpath_var=LD_LIBRARY_PATH
8880  fi
8881  ;;
8882
8883sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8884  version_type=freebsd-elf
8885  need_lib_prefix=no
8886  need_version=no
8887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8888  soname_spec='${libname}${release}${shared_ext}$major'
8889  shlibpath_var=LD_LIBRARY_PATH
8890  hardcode_into_libs=yes
8891  if test "$with_gnu_ld" = yes; then
8892    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8893    shlibpath_overrides_runpath=no
8894  else
8895    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8896    shlibpath_overrides_runpath=yes
8897    case $host_os in
8898      sco3.2v5*)
8899        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8900	;;
8901    esac
8902  fi
8903  sys_lib_dlsearch_path_spec='/usr/lib'
8904  ;;
8905
8906uts4*)
8907  version_type=linux
8908  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8909  soname_spec='${libname}${release}${shared_ext}$major'
8910  shlibpath_var=LD_LIBRARY_PATH
8911  ;;
8912
8913*)
8914  dynamic_linker=no
8915  ;;
8916esac
8917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8918$as_echo "$dynamic_linker" >&6; }
8919test "$dynamic_linker" = no && can_build_shared=no
8920
8921variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8922if test "$GCC" = yes; then
8923  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8924fi
8925
8926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8927$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
8928hardcode_action=
8929if test -n "$hardcode_libdir_flag_spec" || \
8930   test -n "$runpath_var" || \
8931   test "X$hardcode_automatic" = "Xyes" ; then
8932
8933  # We can hardcode non-existant directories.
8934  if test "$hardcode_direct" != no &&
8935     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8936     # have to relink, otherwise we might link with an installed library
8937     # when we should be linking with a yet-to-be-installed one
8938     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8939     test "$hardcode_minus_L" != no; then
8940    # Linking always hardcodes the temporary library directory.
8941    hardcode_action=relink
8942  else
8943    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8944    hardcode_action=immediate
8945  fi
8946else
8947  # We cannot hardcode anything, or else we can only hardcode existing
8948  # directories.
8949  hardcode_action=unsupported
8950fi
8951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8952$as_echo "$hardcode_action" >&6; }
8953
8954if test "$hardcode_action" = relink; then
8955  # Fast installation is not supported
8956  enable_fast_install=no
8957elif test "$shlibpath_overrides_runpath" = yes ||
8958     test "$enable_shared" = no; then
8959  # Fast installation is not necessary
8960  enable_fast_install=needless
8961fi
8962
8963striplib=
8964old_striplib=
8965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8966$as_echo_n "checking whether stripping libraries is possible... " >&6; }
8967if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8968  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8969  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8971$as_echo "yes" >&6; }
8972else
8973# FIXME - insert some real tests, host_os isn't really good enough
8974  case $host_os in
8975   darwin*)
8976       if test -n "$STRIP" ; then
8977         striplib="$STRIP -x"
8978         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8979$as_echo "yes" >&6; }
8980       else
8981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8982$as_echo "no" >&6; }
8983fi
8984       ;;
8985   *)
8986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8987$as_echo "no" >&6; }
8988    ;;
8989  esac
8990fi
8991
8992if test "x$enable_dlopen" != xyes; then
8993  enable_dlopen=unknown
8994  enable_dlopen_self=unknown
8995  enable_dlopen_self_static=unknown
8996else
8997  lt_cv_dlopen=no
8998  lt_cv_dlopen_libs=
8999
9000  case $host_os in
9001  beos*)
9002    lt_cv_dlopen="load_add_on"
9003    lt_cv_dlopen_libs=
9004    lt_cv_dlopen_self=yes
9005    ;;
9006
9007  mingw* | pw32*)
9008    lt_cv_dlopen="LoadLibrary"
9009    lt_cv_dlopen_libs=
9010   ;;
9011
9012  cygwin*)
9013    lt_cv_dlopen="dlopen"
9014    lt_cv_dlopen_libs=
9015   ;;
9016
9017  darwin*)
9018  # if libdl is installed we need to link against it
9019    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9020$as_echo_n "checking for dlopen in -ldl... " >&6; }
9021if ${ac_cv_lib_dl_dlopen+:} false; then :
9022  $as_echo_n "(cached) " >&6
9023else
9024  ac_check_lib_save_LIBS=$LIBS
9025LIBS="-ldl  $LIBS"
9026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027/* end confdefs.h.  */
9028
9029/* Override any GCC internal prototype to avoid an error.
9030   Use char because int might match the return type of a GCC
9031   builtin and then its argument prototype would still apply.  */
9032#ifdef __cplusplus
9033extern "C"
9034#endif
9035char dlopen ();
9036int
9037main ()
9038{
9039return dlopen ();
9040  ;
9041  return 0;
9042}
9043_ACEOF
9044if ac_fn_c_try_link "$LINENO"; then :
9045  ac_cv_lib_dl_dlopen=yes
9046else
9047  ac_cv_lib_dl_dlopen=no
9048fi
9049rm -f core conftest.err conftest.$ac_objext \
9050    conftest$ac_exeext conftest.$ac_ext
9051LIBS=$ac_check_lib_save_LIBS
9052fi
9053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9054$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9055if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9056  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9057else
9058
9059    lt_cv_dlopen="dyld"
9060    lt_cv_dlopen_libs=
9061    lt_cv_dlopen_self=yes
9062
9063fi
9064
9065   ;;
9066
9067  *)
9068    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9069if test "x$ac_cv_func_shl_load" = xyes; then :
9070  lt_cv_dlopen="shl_load"
9071else
9072  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9073$as_echo_n "checking for shl_load in -ldld... " >&6; }
9074if ${ac_cv_lib_dld_shl_load+:} false; then :
9075  $as_echo_n "(cached) " >&6
9076else
9077  ac_check_lib_save_LIBS=$LIBS
9078LIBS="-ldld  $LIBS"
9079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9080/* end confdefs.h.  */
9081
9082/* Override any GCC internal prototype to avoid an error.
9083   Use char because int might match the return type of a GCC
9084   builtin and then its argument prototype would still apply.  */
9085#ifdef __cplusplus
9086extern "C"
9087#endif
9088char shl_load ();
9089int
9090main ()
9091{
9092return shl_load ();
9093  ;
9094  return 0;
9095}
9096_ACEOF
9097if ac_fn_c_try_link "$LINENO"; then :
9098  ac_cv_lib_dld_shl_load=yes
9099else
9100  ac_cv_lib_dld_shl_load=no
9101fi
9102rm -f core conftest.err conftest.$ac_objext \
9103    conftest$ac_exeext conftest.$ac_ext
9104LIBS=$ac_check_lib_save_LIBS
9105fi
9106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9107$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9108if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9109  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9110else
9111  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9112if test "x$ac_cv_func_dlopen" = xyes; then :
9113  lt_cv_dlopen="dlopen"
9114else
9115  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9116$as_echo_n "checking for dlopen in -ldl... " >&6; }
9117if ${ac_cv_lib_dl_dlopen+:} false; then :
9118  $as_echo_n "(cached) " >&6
9119else
9120  ac_check_lib_save_LIBS=$LIBS
9121LIBS="-ldl  $LIBS"
9122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9123/* end confdefs.h.  */
9124
9125/* Override any GCC internal prototype to avoid an error.
9126   Use char because int might match the return type of a GCC
9127   builtin and then its argument prototype would still apply.  */
9128#ifdef __cplusplus
9129extern "C"
9130#endif
9131char dlopen ();
9132int
9133main ()
9134{
9135return dlopen ();
9136  ;
9137  return 0;
9138}
9139_ACEOF
9140if ac_fn_c_try_link "$LINENO"; then :
9141  ac_cv_lib_dl_dlopen=yes
9142else
9143  ac_cv_lib_dl_dlopen=no
9144fi
9145rm -f core conftest.err conftest.$ac_objext \
9146    conftest$ac_exeext conftest.$ac_ext
9147LIBS=$ac_check_lib_save_LIBS
9148fi
9149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9150$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9151if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9152  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9153else
9154  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9155$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9156if ${ac_cv_lib_svld_dlopen+:} false; then :
9157  $as_echo_n "(cached) " >&6
9158else
9159  ac_check_lib_save_LIBS=$LIBS
9160LIBS="-lsvld  $LIBS"
9161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162/* end confdefs.h.  */
9163
9164/* Override any GCC internal prototype to avoid an error.
9165   Use char because int might match the return type of a GCC
9166   builtin and then its argument prototype would still apply.  */
9167#ifdef __cplusplus
9168extern "C"
9169#endif
9170char dlopen ();
9171int
9172main ()
9173{
9174return dlopen ();
9175  ;
9176  return 0;
9177}
9178_ACEOF
9179if ac_fn_c_try_link "$LINENO"; then :
9180  ac_cv_lib_svld_dlopen=yes
9181else
9182  ac_cv_lib_svld_dlopen=no
9183fi
9184rm -f core conftest.err conftest.$ac_objext \
9185    conftest$ac_exeext conftest.$ac_ext
9186LIBS=$ac_check_lib_save_LIBS
9187fi
9188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9189$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9190if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9191  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9192else
9193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9194$as_echo_n "checking for dld_link in -ldld... " >&6; }
9195if ${ac_cv_lib_dld_dld_link+:} false; then :
9196  $as_echo_n "(cached) " >&6
9197else
9198  ac_check_lib_save_LIBS=$LIBS
9199LIBS="-ldld  $LIBS"
9200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201/* end confdefs.h.  */
9202
9203/* Override any GCC internal prototype to avoid an error.
9204   Use char because int might match the return type of a GCC
9205   builtin and then its argument prototype would still apply.  */
9206#ifdef __cplusplus
9207extern "C"
9208#endif
9209char dld_link ();
9210int
9211main ()
9212{
9213return dld_link ();
9214  ;
9215  return 0;
9216}
9217_ACEOF
9218if ac_fn_c_try_link "$LINENO"; then :
9219  ac_cv_lib_dld_dld_link=yes
9220else
9221  ac_cv_lib_dld_dld_link=no
9222fi
9223rm -f core conftest.err conftest.$ac_objext \
9224    conftest$ac_exeext conftest.$ac_ext
9225LIBS=$ac_check_lib_save_LIBS
9226fi
9227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9228$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9229if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9230  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9231fi
9232
9233
9234fi
9235
9236
9237fi
9238
9239
9240fi
9241
9242
9243fi
9244
9245
9246fi
9247
9248    ;;
9249  esac
9250
9251  if test "x$lt_cv_dlopen" != xno; then
9252    enable_dlopen=yes
9253  else
9254    enable_dlopen=no
9255  fi
9256
9257  case $lt_cv_dlopen in
9258  dlopen)
9259    save_CPPFLAGS="$CPPFLAGS"
9260    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9261
9262    save_LDFLAGS="$LDFLAGS"
9263    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9264
9265    save_LIBS="$LIBS"
9266    LIBS="$lt_cv_dlopen_libs $LIBS"
9267
9268    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9269$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9270if ${lt_cv_dlopen_self+:} false; then :
9271  $as_echo_n "(cached) " >&6
9272else
9273  	  if test "$cross_compiling" = yes; then :
9274  lt_cv_dlopen_self=cross
9275else
9276  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9277  lt_status=$lt_dlunknown
9278  cat > conftest.$ac_ext <<EOF
9279#line 9279 "configure"
9280#include "confdefs.h"
9281
9282#if HAVE_DLFCN_H
9283#include <dlfcn.h>
9284#endif
9285
9286#include <stdio.h>
9287
9288#ifdef RTLD_GLOBAL
9289#  define LT_DLGLOBAL		RTLD_GLOBAL
9290#else
9291#  ifdef DL_GLOBAL
9292#    define LT_DLGLOBAL		DL_GLOBAL
9293#  else
9294#    define LT_DLGLOBAL		0
9295#  endif
9296#endif
9297
9298/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9299   find out it does not work in some platform. */
9300#ifndef LT_DLLAZY_OR_NOW
9301#  ifdef RTLD_LAZY
9302#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9303#  else
9304#    ifdef DL_LAZY
9305#      define LT_DLLAZY_OR_NOW		DL_LAZY
9306#    else
9307#      ifdef RTLD_NOW
9308#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9309#      else
9310#        ifdef DL_NOW
9311#          define LT_DLLAZY_OR_NOW	DL_NOW
9312#        else
9313#          define LT_DLLAZY_OR_NOW	0
9314#        endif
9315#      endif
9316#    endif
9317#  endif
9318#endif
9319
9320#ifdef __cplusplus
9321extern "C" void exit (int);
9322#endif
9323
9324void fnord() { int i=42;}
9325int main ()
9326{
9327  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9328  int status = $lt_dlunknown;
9329
9330  if (self)
9331    {
9332      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9333      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9334      /* dlclose (self); */
9335    }
9336  else
9337    puts (dlerror ());
9338
9339    exit (status);
9340}
9341EOF
9342  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9343  (eval $ac_link) 2>&5
9344  ac_status=$?
9345  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9346  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9347    (./conftest; exit; ) >&5 2>/dev/null
9348    lt_status=$?
9349    case x$lt_status in
9350      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9351      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9352      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9353    esac
9354  else :
9355    # compilation failed
9356    lt_cv_dlopen_self=no
9357  fi
9358fi
9359rm -fr conftest*
9360
9361
9362fi
9363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9364$as_echo "$lt_cv_dlopen_self" >&6; }
9365
9366    if test "x$lt_cv_dlopen_self" = xyes; then
9367      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9368      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9369$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9370if ${lt_cv_dlopen_self_static+:} false; then :
9371  $as_echo_n "(cached) " >&6
9372else
9373  	  if test "$cross_compiling" = yes; then :
9374  lt_cv_dlopen_self_static=cross
9375else
9376  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9377  lt_status=$lt_dlunknown
9378  cat > conftest.$ac_ext <<EOF
9379#line 9379 "configure"
9380#include "confdefs.h"
9381
9382#if HAVE_DLFCN_H
9383#include <dlfcn.h>
9384#endif
9385
9386#include <stdio.h>
9387
9388#ifdef RTLD_GLOBAL
9389#  define LT_DLGLOBAL		RTLD_GLOBAL
9390#else
9391#  ifdef DL_GLOBAL
9392#    define LT_DLGLOBAL		DL_GLOBAL
9393#  else
9394#    define LT_DLGLOBAL		0
9395#  endif
9396#endif
9397
9398/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9399   find out it does not work in some platform. */
9400#ifndef LT_DLLAZY_OR_NOW
9401#  ifdef RTLD_LAZY
9402#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9403#  else
9404#    ifdef DL_LAZY
9405#      define LT_DLLAZY_OR_NOW		DL_LAZY
9406#    else
9407#      ifdef RTLD_NOW
9408#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9409#      else
9410#        ifdef DL_NOW
9411#          define LT_DLLAZY_OR_NOW	DL_NOW
9412#        else
9413#          define LT_DLLAZY_OR_NOW	0
9414#        endif
9415#      endif
9416#    endif
9417#  endif
9418#endif
9419
9420#ifdef __cplusplus
9421extern "C" void exit (int);
9422#endif
9423
9424void fnord() { int i=42;}
9425int main ()
9426{
9427  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9428  int status = $lt_dlunknown;
9429
9430  if (self)
9431    {
9432      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9433      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9434      /* dlclose (self); */
9435    }
9436  else
9437    puts (dlerror ());
9438
9439    exit (status);
9440}
9441EOF
9442  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9443  (eval $ac_link) 2>&5
9444  ac_status=$?
9445  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9446  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9447    (./conftest; exit; ) >&5 2>/dev/null
9448    lt_status=$?
9449    case x$lt_status in
9450      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9451      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9452      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9453    esac
9454  else :
9455    # compilation failed
9456    lt_cv_dlopen_self_static=no
9457  fi
9458fi
9459rm -fr conftest*
9460
9461
9462fi
9463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9464$as_echo "$lt_cv_dlopen_self_static" >&6; }
9465    fi
9466
9467    CPPFLAGS="$save_CPPFLAGS"
9468    LDFLAGS="$save_LDFLAGS"
9469    LIBS="$save_LIBS"
9470    ;;
9471  esac
9472
9473  case $lt_cv_dlopen_self in
9474  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9475  *) enable_dlopen_self=unknown ;;
9476  esac
9477
9478  case $lt_cv_dlopen_self_static in
9479  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9480  *) enable_dlopen_self_static=unknown ;;
9481  esac
9482fi
9483
9484
9485# Report which library types will actually be built
9486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9487$as_echo_n "checking if libtool supports shared libraries... " >&6; }
9488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9489$as_echo "$can_build_shared" >&6; }
9490
9491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9492$as_echo_n "checking whether to build shared libraries... " >&6; }
9493test "$can_build_shared" = "no" && enable_shared=no
9494
9495# On AIX, shared libraries and static libraries use the same namespace, and
9496# are all built from PIC.
9497case $host_os in
9498aix3*)
9499  test "$enable_shared" = yes && enable_static=no
9500  if test -n "$RANLIB"; then
9501    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9502    postinstall_cmds='$RANLIB $lib'
9503  fi
9504  ;;
9505
9506aix4* | aix5*)
9507  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9508    test "$enable_shared" = yes && enable_static=no
9509  fi
9510    ;;
9511esac
9512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9513$as_echo "$enable_shared" >&6; }
9514
9515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9516$as_echo_n "checking whether to build static libraries... " >&6; }
9517# Make sure either enable_shared or enable_static is yes.
9518test "$enable_shared" = yes || enable_static=yes
9519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9520$as_echo "$enable_static" >&6; }
9521
9522# The else clause should only fire when bootstrapping the
9523# libtool distribution, otherwise you forgot to ship ltmain.sh
9524# with your package, and you will get complaints that there are
9525# no rules to generate ltmain.sh.
9526if test -f "$ltmain"; then
9527  # See if we are running on zsh, and set the options which allow our commands through
9528  # without removal of \ escapes.
9529  if test -n "${ZSH_VERSION+set}" ; then
9530    setopt NO_GLOB_SUBST
9531  fi
9532  # Now quote all the things that may contain metacharacters while being
9533  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9534  # variables and quote the copies for generation of the libtool script.
9535  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9536    SED SHELL STRIP \
9537    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9538    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9539    deplibs_check_method reload_flag reload_cmds need_locks \
9540    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9541    lt_cv_sys_global_symbol_to_c_name_address \
9542    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9543    old_postinstall_cmds old_postuninstall_cmds \
9544    compiler \
9545    CC \
9546    LD \
9547    lt_prog_compiler_wl \
9548    lt_prog_compiler_pic \
9549    lt_prog_compiler_static \
9550    lt_prog_compiler_no_builtin_flag \
9551    export_dynamic_flag_spec \
9552    thread_safe_flag_spec \
9553    whole_archive_flag_spec \
9554    enable_shared_with_static_runtimes \
9555    old_archive_cmds \
9556    old_archive_from_new_cmds \
9557    predep_objects \
9558    postdep_objects \
9559    predeps \
9560    postdeps \
9561    compiler_lib_search_path \
9562    archive_cmds \
9563    archive_expsym_cmds \
9564    postinstall_cmds \
9565    postuninstall_cmds \
9566    old_archive_from_expsyms_cmds \
9567    allow_undefined_flag \
9568    no_undefined_flag \
9569    export_symbols_cmds \
9570    hardcode_libdir_flag_spec \
9571    hardcode_libdir_flag_spec_ld \
9572    hardcode_libdir_separator \
9573    hardcode_automatic \
9574    module_cmds \
9575    module_expsym_cmds \
9576    lt_cv_prog_compiler_c_o \
9577    exclude_expsyms \
9578    include_expsyms; do
9579
9580    case $var in
9581    old_archive_cmds | \
9582    old_archive_from_new_cmds | \
9583    archive_cmds | \
9584    archive_expsym_cmds | \
9585    module_cmds | \
9586    module_expsym_cmds | \
9587    old_archive_from_expsyms_cmds | \
9588    export_symbols_cmds | \
9589    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9590    postinstall_cmds | postuninstall_cmds | \
9591    old_postinstall_cmds | old_postuninstall_cmds | \
9592    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9593      # Double-quote double-evaled strings.
9594      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9595      ;;
9596    *)
9597      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9598      ;;
9599    esac
9600  done
9601
9602  case $lt_echo in
9603  *'\$0 --fallback-echo"')
9604    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9605    ;;
9606  esac
9607
9608cfgfile="${ofile}T"
9609  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9610  $rm -f "$cfgfile"
9611  { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
9612$as_echo "$as_me: creating $ofile" >&6;}
9613
9614  cat <<__EOF__ >> "$cfgfile"
9615#! $SHELL
9616
9617# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9618# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9619# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9620#
9621# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9622# Free Software Foundation, Inc.
9623#
9624# This file is part of GNU Libtool:
9625# Originally by Gordon Matzigkeit <[email protected]>, 1996
9626#
9627# This program is free software; you can redistribute it and/or modify
9628# it under the terms of the GNU General Public License as published by
9629# the Free Software Foundation; either version 2 of the License, or
9630# (at your option) any later version.
9631#
9632# This program is distributed in the hope that it will be useful, but
9633# WITHOUT ANY WARRANTY; without even the implied warranty of
9634# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9635# General Public License for more details.
9636#
9637# You should have received a copy of the GNU General Public License
9638# along with this program; if not, write to the Free Software
9639# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9640#
9641# As a special exception to the GNU General Public License, if you
9642# distribute this file as part of a program that contains a
9643# configuration script generated by Autoconf, you may include it under
9644# the same distribution terms that you use for the rest of that program.
9645
9646# A sed program that does not truncate output.
9647SED=$lt_SED
9648
9649# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9650Xsed="$SED -e 1s/^X//"
9651
9652# The HP-UX ksh and POSIX shell print the target directory to stdout
9653# if CDPATH is set.
9654(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9655
9656# The names of the tagged configurations supported by this script.
9657available_tags=
9658
9659# ### BEGIN LIBTOOL CONFIG
9660
9661# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9662
9663# Shell to use when invoking shell scripts.
9664SHELL=$lt_SHELL
9665
9666# Whether or not to build shared libraries.
9667build_libtool_libs=$enable_shared
9668
9669# Whether or not to build static libraries.
9670build_old_libs=$enable_static
9671
9672# Whether or not to add -lc for building shared libraries.
9673build_libtool_need_lc=$archive_cmds_need_lc
9674
9675# Whether or not to disallow shared libs when runtime libs are static
9676allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9677
9678# Whether or not to optimize for fast installation.
9679fast_install=$enable_fast_install
9680
9681# The host system.
9682host_alias=$host_alias
9683host=$host
9684host_os=$host_os
9685
9686# The build system.
9687build_alias=$build_alias
9688build=$build
9689build_os=$build_os
9690
9691# An echo program that does not interpret backslashes.
9692echo=$lt_echo
9693
9694# The archiver.
9695AR=$lt_AR
9696AR_FLAGS=$lt_AR_FLAGS
9697
9698# A C compiler.
9699LTCC=$lt_LTCC
9700
9701# LTCC compiler flags.
9702LTCFLAGS=$lt_LTCFLAGS
9703
9704# A language-specific compiler.
9705CC=$lt_compiler
9706
9707# Is the compiler the GNU C compiler?
9708with_gcc=$GCC
9709
9710gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9711gcc_ver=\`gcc -dumpversion\`
9712
9713# An ERE matcher.
9714EGREP=$lt_EGREP
9715
9716# The linker used to build libraries.
9717LD=$lt_LD
9718
9719# Whether we need hard or soft links.
9720LN_S=$lt_LN_S
9721
9722# A BSD-compatible nm program.
9723NM=$lt_NM
9724
9725# A symbol stripping program
9726STRIP=$lt_STRIP
9727
9728# Used to examine libraries when file_magic_cmd begins "file"
9729MAGIC_CMD=$MAGIC_CMD
9730
9731# Used on cygwin: DLL creation program.
9732DLLTOOL="$DLLTOOL"
9733
9734# Used on cygwin: object dumper.
9735OBJDUMP="$OBJDUMP"
9736
9737# Used on cygwin: assembler.
9738AS="$AS"
9739
9740# The name of the directory that contains temporary libtool files.
9741objdir=$objdir
9742
9743# How to create reloadable object files.
9744reload_flag=$lt_reload_flag
9745reload_cmds=$lt_reload_cmds
9746
9747# How to pass a linker flag through the compiler.
9748wl=$lt_lt_prog_compiler_wl
9749
9750# Object file suffix (normally "o").
9751objext="$ac_objext"
9752
9753# Old archive suffix (normally "a").
9754libext="$libext"
9755
9756# Shared library suffix (normally ".so").
9757shrext_cmds='$shrext_cmds'
9758
9759# Executable file suffix (normally "").
9760exeext="$exeext"
9761
9762# Additional compiler flags for building library objects.
9763pic_flag=$lt_lt_prog_compiler_pic
9764pic_mode=$pic_mode
9765
9766# What is the maximum length of a command?
9767max_cmd_len=$lt_cv_sys_max_cmd_len
9768
9769# Does compiler simultaneously support -c and -o options?
9770compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9771
9772# Must we lock files when doing compilation?
9773need_locks=$lt_need_locks
9774
9775# Do we need the lib prefix for modules?
9776need_lib_prefix=$need_lib_prefix
9777
9778# Do we need a version for libraries?
9779need_version=$need_version
9780
9781# Whether dlopen is supported.
9782dlopen_support=$enable_dlopen
9783
9784# Whether dlopen of programs is supported.
9785dlopen_self=$enable_dlopen_self
9786
9787# Whether dlopen of statically linked programs is supported.
9788dlopen_self_static=$enable_dlopen_self_static
9789
9790# Compiler flag to prevent dynamic linking.
9791link_static_flag=$lt_lt_prog_compiler_static
9792
9793# Compiler flag to turn off builtin functions.
9794no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9795
9796# Compiler flag to allow reflexive dlopens.
9797export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9798
9799# Compiler flag to generate shared objects directly from archives.
9800whole_archive_flag_spec=$lt_whole_archive_flag_spec
9801
9802# Compiler flag to generate thread-safe objects.
9803thread_safe_flag_spec=$lt_thread_safe_flag_spec
9804
9805# Library versioning type.
9806version_type=$version_type
9807
9808# Format of library name prefix.
9809libname_spec=$lt_libname_spec
9810
9811# List of archive names.  First name is the real one, the rest are links.
9812# The last name is the one that the linker finds with -lNAME.
9813library_names_spec=$lt_library_names_spec
9814
9815# The coded name of the library, if different from the real name.
9816soname_spec=$lt_soname_spec
9817
9818# Commands used to build and install an old-style archive.
9819RANLIB=$lt_RANLIB
9820old_archive_cmds=$lt_old_archive_cmds
9821old_postinstall_cmds=$lt_old_postinstall_cmds
9822old_postuninstall_cmds=$lt_old_postuninstall_cmds
9823
9824# Create an old-style archive from a shared archive.
9825old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9826
9827# Create a temporary old-style archive to link instead of a shared archive.
9828old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9829
9830# Commands used to build and install a shared archive.
9831archive_cmds=$lt_archive_cmds
9832archive_expsym_cmds=$lt_archive_expsym_cmds
9833postinstall_cmds=$lt_postinstall_cmds
9834postuninstall_cmds=$lt_postuninstall_cmds
9835
9836# Commands used to build a loadable module (assumed same as above if empty)
9837module_cmds=$lt_module_cmds
9838module_expsym_cmds=$lt_module_expsym_cmds
9839
9840# Commands to strip libraries.
9841old_striplib=$lt_old_striplib
9842striplib=$lt_striplib
9843
9844# Dependencies to place before the objects being linked to create a
9845# shared library.
9846predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9847
9848# Dependencies to place after the objects being linked to create a
9849# shared library.
9850postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9851
9852# Dependencies to place before the objects being linked to create a
9853# shared library.
9854predeps=$lt_predeps
9855
9856# Dependencies to place after the objects being linked to create a
9857# shared library.
9858postdeps=$lt_postdeps
9859
9860# The library search path used internally by the compiler when linking
9861# a shared library.
9862compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9863
9864# Method to check whether dependent libraries are shared objects.
9865deplibs_check_method=$lt_deplibs_check_method
9866
9867# Command to use when deplibs_check_method == file_magic.
9868file_magic_cmd=$lt_file_magic_cmd
9869
9870# Flag that allows shared libraries with undefined symbols to be built.
9871allow_undefined_flag=$lt_allow_undefined_flag
9872
9873# Flag that forces no undefined symbols.
9874no_undefined_flag=$lt_no_undefined_flag
9875
9876# Commands used to finish a libtool library installation in a directory.
9877finish_cmds=$lt_finish_cmds
9878
9879# Same as above, but a single script fragment to be evaled but not shown.
9880finish_eval=$lt_finish_eval
9881
9882# Take the output of nm and produce a listing of raw symbols and C names.
9883global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9884
9885# Transform the output of nm in a proper C declaration
9886global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9887
9888# Transform the output of nm in a C name address pair
9889global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9890
9891# This is the shared library runtime path variable.
9892runpath_var=$runpath_var
9893
9894# This is the shared library path variable.
9895shlibpath_var=$shlibpath_var
9896
9897# Is shlibpath searched before the hard-coded library search path?
9898shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9899
9900# How to hardcode a shared library path into an executable.
9901hardcode_action=$hardcode_action
9902
9903# Whether we should hardcode library paths into libraries.
9904hardcode_into_libs=$hardcode_into_libs
9905
9906# Flag to hardcode \$libdir into a binary during linking.
9907# This must work even if \$libdir does not exist.
9908hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9909
9910# If ld is used when linking, flag to hardcode \$libdir into
9911# a binary during linking. This must work even if \$libdir does
9912# not exist.
9913hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9914
9915# Whether we need a single -rpath flag with a separated argument.
9916hardcode_libdir_separator=$lt_hardcode_libdir_separator
9917
9918# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9919# resulting binary.
9920hardcode_direct=$hardcode_direct
9921
9922# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9923# resulting binary.
9924hardcode_minus_L=$hardcode_minus_L
9925
9926# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9927# the resulting binary.
9928hardcode_shlibpath_var=$hardcode_shlibpath_var
9929
9930# Set to yes if building a shared library automatically hardcodes DIR into the library
9931# and all subsequent libraries and executables linked against it.
9932hardcode_automatic=$hardcode_automatic
9933
9934# Variables whose values should be saved in libtool wrapper scripts and
9935# restored at relink time.
9936variables_saved_for_relink="$variables_saved_for_relink"
9937
9938# Whether libtool must link a program against all its dependency libraries.
9939link_all_deplibs=$link_all_deplibs
9940
9941# Compile-time system search path for libraries
9942sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9943
9944# Run-time system search path for libraries
9945sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9946
9947# Fix the shell variable \$srcfile for the compiler.
9948fix_srcfile_path="$fix_srcfile_path"
9949
9950# Set to yes if exported symbols are required.
9951always_export_symbols=$always_export_symbols
9952
9953# The commands to list exported symbols.
9954export_symbols_cmds=$lt_export_symbols_cmds
9955
9956# The commands to extract the exported symbol list from a shared archive.
9957extract_expsyms_cmds=$lt_extract_expsyms_cmds
9958
9959# Symbols that should not be listed in the preloaded symbols.
9960exclude_expsyms=$lt_exclude_expsyms
9961
9962# Symbols that must always be exported.
9963include_expsyms=$lt_include_expsyms
9964
9965# ### END LIBTOOL CONFIG
9966
9967__EOF__
9968
9969
9970  case $host_os in
9971  aix3*)
9972    cat <<\EOF >> "$cfgfile"
9973
9974# AIX sometimes has problems with the GCC collect2 program.  For some
9975# reason, if we set the COLLECT_NAMES environment variable, the problems
9976# vanish in a puff of smoke.
9977if test "X${COLLECT_NAMES+set}" != Xset; then
9978  COLLECT_NAMES=
9979  export COLLECT_NAMES
9980fi
9981EOF
9982    ;;
9983  esac
9984
9985  # We use sed instead of cat because bash on DJGPP gets confused if
9986  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9987  # text mode, it properly converts lines to CR/LF.  This bash problem
9988  # is reportedly fixed, but why not run on old versions too?
9989  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9990
9991  mv -f "$cfgfile" "$ofile" || \
9992    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9993  chmod +x "$ofile"
9994
9995else
9996  # If there is no Makefile yet, we rely on a make rule to execute
9997  # `config.status --recheck' to rerun these tests and create the
9998  # libtool script then.
9999  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10000  if test -f "$ltmain_in"; then
10001    test -f Makefile && make "$ltmain"
10002  fi
10003fi
10004
10005
10006ac_ext=c
10007ac_cpp='$CPP $CPPFLAGS'
10008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10010ac_compiler_gnu=$ac_cv_c_compiler_gnu
10011
10012CC="$lt_save_CC"
10013
10014
10015# Check whether --with-tags was given.
10016if test "${with_tags+set}" = set; then :
10017  withval=$with_tags; tagnames="$withval"
10018fi
10019
10020
10021if test -f "$ltmain" && test -n "$tagnames"; then
10022  if test ! -f "${ofile}"; then
10023    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10024$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10025  fi
10026
10027  if test -z "$LTCC"; then
10028    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10029    if test -z "$LTCC"; then
10030      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10031$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10032    else
10033      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10034$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10035    fi
10036  fi
10037  if test -z "$LTCFLAGS"; then
10038    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10039  fi
10040
10041  # Extract list of available tagged configurations in $ofile.
10042  # Note that this assumes the entire list is on one line.
10043  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10044
10045  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10046  for tagname in $tagnames; do
10047    IFS="$lt_save_ifs"
10048    # Check whether tagname contains only valid characters
10049    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10050    "") ;;
10051    *)  as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10052	;;
10053    esac
10054
10055    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10056    then
10057      as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10058    fi
10059
10060    # Update the list of available tags.
10061    if test -n "$tagname"; then
10062      echo appending configuration tag \"$tagname\" to $ofile
10063
10064      case $tagname in
10065      CXX)
10066	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10067	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10068	    (test "X$CXX" != "Xg++"))) ; then
10069	  ac_ext=cpp
10070ac_cpp='$CXXCPP $CPPFLAGS'
10071ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10072ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10073ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10074
10075
10076
10077
10078archive_cmds_need_lc_CXX=no
10079allow_undefined_flag_CXX=
10080always_export_symbols_CXX=no
10081archive_expsym_cmds_CXX=
10082export_dynamic_flag_spec_CXX=
10083hardcode_direct_CXX=no
10084hardcode_libdir_flag_spec_CXX=
10085hardcode_libdir_flag_spec_ld_CXX=
10086hardcode_libdir_separator_CXX=
10087hardcode_minus_L_CXX=no
10088hardcode_shlibpath_var_CXX=unsupported
10089hardcode_automatic_CXX=no
10090module_cmds_CXX=
10091module_expsym_cmds_CXX=
10092link_all_deplibs_CXX=unknown
10093old_archive_cmds_CXX=$old_archive_cmds
10094no_undefined_flag_CXX=
10095whole_archive_flag_spec_CXX=
10096enable_shared_with_static_runtimes_CXX=no
10097
10098# Dependencies to place before and after the object being linked:
10099predep_objects_CXX=
10100postdep_objects_CXX=
10101predeps_CXX=
10102postdeps_CXX=
10103compiler_lib_search_path_CXX=
10104
10105# Source file extension for C++ test sources.
10106ac_ext=cpp
10107
10108# Object file extension for compiled C++ test sources.
10109objext=o
10110objext_CXX=$objext
10111
10112# Code to be used in simple compile tests
10113lt_simple_compile_test_code="int some_variable = 0;\n"
10114
10115# Code to be used in simple link tests
10116lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10117
10118# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10119
10120# If no C compiler was specified, use CC.
10121LTCC=${LTCC-"$CC"}
10122
10123# If no C compiler flags were specified, use CFLAGS.
10124LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10125
10126# Allow CC to be a program name with arguments.
10127compiler=$CC
10128
10129
10130# save warnings/boilerplate of simple test code
10131ac_outfile=conftest.$ac_objext
10132printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10133eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10134_lt_compiler_boilerplate=`cat conftest.err`
10135$rm conftest*
10136
10137ac_outfile=conftest.$ac_objext
10138printf "$lt_simple_link_test_code" >conftest.$ac_ext
10139eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10140_lt_linker_boilerplate=`cat conftest.err`
10141$rm conftest*
10142
10143
10144# Allow CC to be a program name with arguments.
10145lt_save_CC=$CC
10146lt_save_LD=$LD
10147lt_save_GCC=$GCC
10148GCC=$GXX
10149lt_save_with_gnu_ld=$with_gnu_ld
10150lt_save_path_LD=$lt_cv_path_LD
10151if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10152  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10153else
10154  $as_unset lt_cv_prog_gnu_ld
10155fi
10156if test -n "${lt_cv_path_LDCXX+set}"; then
10157  lt_cv_path_LD=$lt_cv_path_LDCXX
10158else
10159  $as_unset lt_cv_path_LD
10160fi
10161test -z "${LDCXX+set}" || LD=$LDCXX
10162CC=${CXX-"c++"}
10163compiler=$CC
10164compiler_CXX=$CC
10165for cc_temp in $compiler""; do
10166  case $cc_temp in
10167    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10168    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10169    \-*) ;;
10170    *) break;;
10171  esac
10172done
10173cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10174
10175
10176# We don't want -fno-exception wen compiling C++ code, so set the
10177# no_builtin_flag separately
10178if test "$GXX" = yes; then
10179  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10180else
10181  lt_prog_compiler_no_builtin_flag_CXX=
10182fi
10183
10184if test "$GXX" = yes; then
10185  # Set up default GNU C++ configuration
10186
10187
10188# Check whether --with-gnu-ld was given.
10189if test "${with_gnu_ld+set}" = set; then :
10190  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10191else
10192  with_gnu_ld=no
10193fi
10194
10195ac_prog=ld
10196if test "$GCC" = yes; then
10197  # Check if gcc -print-prog-name=ld gives a path.
10198  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10199$as_echo_n "checking for ld used by $CC... " >&6; }
10200  case $host in
10201  *-*-mingw*)
10202    # gcc leaves a trailing carriage return which upsets mingw
10203    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10204  *)
10205    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10206  esac
10207  case $ac_prog in
10208    # Accept absolute paths.
10209    [\\/]* | ?:[\\/]*)
10210      re_direlt='/[^/][^/]*/\.\./'
10211      # Canonicalize the pathname of ld
10212      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10213      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10214	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10215      done
10216      test -z "$LD" && LD="$ac_prog"
10217      ;;
10218  "")
10219    # If it fails, then pretend we aren't using GCC.
10220    ac_prog=ld
10221    ;;
10222  *)
10223    # If it is relative, then search for the first ld in PATH.
10224    with_gnu_ld=unknown
10225    ;;
10226  esac
10227elif test "$with_gnu_ld" = yes; then
10228  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10229$as_echo_n "checking for GNU ld... " >&6; }
10230else
10231  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10232$as_echo_n "checking for non-GNU ld... " >&6; }
10233fi
10234if ${lt_cv_path_LD+:} false; then :
10235  $as_echo_n "(cached) " >&6
10236else
10237  if test -z "$LD"; then
10238  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10239  for ac_dir in $PATH; do
10240    IFS="$lt_save_ifs"
10241    test -z "$ac_dir" && ac_dir=.
10242    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10243      lt_cv_path_LD="$ac_dir/$ac_prog"
10244      # Check to see if the program is GNU ld.  I'd rather use --version,
10245      # but apparently some variants of GNU ld only accept -v.
10246      # Break only if it was the GNU/non-GNU ld that we prefer.
10247      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10248      *GNU* | *'with BFD'*)
10249	test "$with_gnu_ld" != no && break
10250	;;
10251      *)
10252	test "$with_gnu_ld" != yes && break
10253	;;
10254      esac
10255    fi
10256  done
10257  IFS="$lt_save_ifs"
10258else
10259  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10260fi
10261fi
10262
10263LD="$lt_cv_path_LD"
10264if test -n "$LD"; then
10265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10266$as_echo "$LD" >&6; }
10267else
10268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10269$as_echo "no" >&6; }
10270fi
10271test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10273$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10274if ${lt_cv_prog_gnu_ld+:} false; then :
10275  $as_echo_n "(cached) " >&6
10276else
10277  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10278case `$LD -v 2>&1 </dev/null` in
10279*GNU* | *'with BFD'*)
10280  lt_cv_prog_gnu_ld=yes
10281  ;;
10282*)
10283  lt_cv_prog_gnu_ld=no
10284  ;;
10285esac
10286fi
10287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10288$as_echo "$lt_cv_prog_gnu_ld" >&6; }
10289with_gnu_ld=$lt_cv_prog_gnu_ld
10290
10291
10292
10293  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10294  # archiving commands below assume that GNU ld is being used.
10295  if test "$with_gnu_ld" = yes; then
10296    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10297    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'
10298
10299    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10300    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10301
10302    # If archive_cmds runs LD, not CC, wlarc should be empty
10303    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10304    #     investigate it a little bit more. (MM)
10305    wlarc='${wl}'
10306
10307    # ancient GNU ld didn't support --whole-archive et. al.
10308    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10309	grep 'no-whole-archive' > /dev/null; then
10310      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10311    else
10312      whole_archive_flag_spec_CXX=
10313    fi
10314  else
10315    with_gnu_ld=no
10316    wlarc=
10317
10318    # A generic and very simple default shared library creation
10319    # command for GNU C++ for the case where it uses the native
10320    # linker, instead of GNU ld.  If possible, this setting should
10321    # overridden to take advantage of the native linker features on
10322    # the platform it is being used on.
10323    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10324  fi
10325
10326  # Commands to make compiler produce verbose output that lists
10327  # what "hidden" libraries, object files and flags are used when
10328  # linking a shared library.
10329  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10330
10331else
10332  GXX=no
10333  with_gnu_ld=no
10334  wlarc=
10335fi
10336
10337# PORTME: fill in a description of your system's C++ link characteristics
10338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10339$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10340ld_shlibs_CXX=yes
10341case $host_os in
10342  aix3*)
10343    # FIXME: insert proper C++ library support
10344    ld_shlibs_CXX=no
10345    ;;
10346  aix4* | aix5*)
10347    if test "$host_cpu" = ia64; then
10348      # On IA64, the linker does run time linking by default, so we don't
10349      # have to do anything special.
10350      aix_use_runtimelinking=no
10351      exp_sym_flag='-Bexport'
10352      no_entry_flag=""
10353    else
10354      aix_use_runtimelinking=no
10355
10356      # Test if we are trying to use run time linking or normal
10357      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10358      # need to do runtime linking.
10359      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10360	for ld_flag in $LDFLAGS; do
10361	  case $ld_flag in
10362	  *-brtl*)
10363	    aix_use_runtimelinking=yes
10364	    break
10365	    ;;
10366	  esac
10367	done
10368	;;
10369      esac
10370
10371      exp_sym_flag='-bexport'
10372      no_entry_flag='-bnoentry'
10373    fi
10374
10375    # When large executables or shared objects are built, AIX ld can
10376    # have problems creating the table of contents.  If linking a library
10377    # or program results in "error TOC overflow" add -mminimal-toc to
10378    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10379    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10380
10381    archive_cmds_CXX=''
10382    hardcode_direct_CXX=yes
10383    hardcode_libdir_separator_CXX=':'
10384    link_all_deplibs_CXX=yes
10385
10386    if test "$GXX" = yes; then
10387      case $host_os in aix4.[012]|aix4.[012].*)
10388      # We only want to do this on AIX 4.2 and lower, the check
10389      # below for broken collect2 doesn't work under 4.3+
10390	collect2name=`${CC} -print-prog-name=collect2`
10391	if test -f "$collect2name" && \
10392	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10393	then
10394	  # We have reworked collect2
10395	  hardcode_direct_CXX=yes
10396	else
10397	  # We have old collect2
10398	  hardcode_direct_CXX=unsupported
10399	  # It fails to find uninstalled libraries when the uninstalled
10400	  # path is not listed in the libpath.  Setting hardcode_minus_L
10401	  # to unsupported forces relinking
10402	  hardcode_minus_L_CXX=yes
10403	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10404	  hardcode_libdir_separator_CXX=
10405	fi
10406	;;
10407      esac
10408      shared_flag='-shared'
10409      if test "$aix_use_runtimelinking" = yes; then
10410	shared_flag="$shared_flag "'${wl}-G'
10411      fi
10412    else
10413      # not using gcc
10414      if test "$host_cpu" = ia64; then
10415	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10416	# chokes on -Wl,-G. The following line is correct:
10417	shared_flag='-G'
10418      else
10419	if test "$aix_use_runtimelinking" = yes; then
10420	  shared_flag='${wl}-G'
10421	else
10422	  shared_flag='${wl}-bM:SRE'
10423	fi
10424      fi
10425    fi
10426
10427    # It seems that -bexpall does not export symbols beginning with
10428    # underscore (_), so it is better to generate a list of symbols to export.
10429    always_export_symbols_CXX=yes
10430    if test "$aix_use_runtimelinking" = yes; then
10431      # Warning - without using the other runtime loading flags (-brtl),
10432      # -berok will link without error, but may produce a broken library.
10433      allow_undefined_flag_CXX='-berok'
10434      # Determine the default libpath from the value encoded in an empty executable.
10435      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436/* end confdefs.h.  */
10437
10438int
10439main ()
10440{
10441
10442  ;
10443  return 0;
10444}
10445_ACEOF
10446if ac_fn_cxx_try_link "$LINENO"; then :
10447
10448aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10449}'`
10450# Check for a 64-bit object if we didn't find anything.
10451if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10452}'`; fi
10453fi
10454rm -f core conftest.err conftest.$ac_objext \
10455    conftest$ac_exeext conftest.$ac_ext
10456if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10457
10458      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10459
10460      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"
10461     else
10462      if test "$host_cpu" = ia64; then
10463	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10464	allow_undefined_flag_CXX="-z nodefs"
10465	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"
10466      else
10467	# Determine the default libpath from the value encoded in an empty executable.
10468	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10469/* end confdefs.h.  */
10470
10471int
10472main ()
10473{
10474
10475  ;
10476  return 0;
10477}
10478_ACEOF
10479if ac_fn_cxx_try_link "$LINENO"; then :
10480
10481aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10482}'`
10483# Check for a 64-bit object if we didn't find anything.
10484if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10485}'`; fi
10486fi
10487rm -f core conftest.err conftest.$ac_objext \
10488    conftest$ac_exeext conftest.$ac_ext
10489if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10490
10491	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10492	# Warning - without using the other run time loading flags,
10493	# -berok will link without error, but may produce a broken library.
10494	no_undefined_flag_CXX=' ${wl}-bernotok'
10495	allow_undefined_flag_CXX=' ${wl}-berok'
10496	# Exported symbols can be pulled into shared objects from archives
10497	whole_archive_flag_spec_CXX='$convenience'
10498	archive_cmds_need_lc_CXX=yes
10499	# This is similar to how AIX traditionally builds its shared libraries.
10500	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'
10501      fi
10502    fi
10503    ;;
10504
10505  beos*)
10506    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10507      allow_undefined_flag_CXX=unsupported
10508      # Joseph Beckenbach <[email protected]> says some releases of gcc
10509      # support --undefined.  This deserves some investigation.  FIXME
10510      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10511    else
10512      ld_shlibs_CXX=no
10513    fi
10514    ;;
10515
10516  chorus*)
10517    case $cc_basename in
10518      *)
10519	# FIXME: insert proper C++ library support
10520	ld_shlibs_CXX=no
10521	;;
10522    esac
10523    ;;
10524
10525  cygwin* | mingw* | pw32*)
10526    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10527    # as there is no search path for DLLs.
10528    hardcode_libdir_flag_spec_CXX='-L$libdir'
10529    allow_undefined_flag_CXX=unsupported
10530    always_export_symbols_CXX=no
10531    enable_shared_with_static_runtimes_CXX=yes
10532
10533    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10534      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'
10535      # If the export-symbols file already is a .def file (1st line
10536      # is EXPORTS), use it as is; otherwise, prepend...
10537      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10538	cp $export_symbols $output_objdir/$soname.def;
10539      else
10540	echo EXPORTS > $output_objdir/$soname.def;
10541	cat $export_symbols >> $output_objdir/$soname.def;
10542      fi~
10543      $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'
10544    else
10545      ld_shlibs_CXX=no
10546    fi
10547  ;;
10548      darwin* | rhapsody*)
10549        case $host_os in
10550        rhapsody* | darwin1.[012])
10551         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10552         ;;
10553       *) # Darwin 1.3 on
10554         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10555           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10556         else
10557           case ${MACOSX_DEPLOYMENT_TARGET} in
10558             10.[012])
10559               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10560               ;;
10561             10.*)
10562               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10563               ;;
10564           esac
10565         fi
10566         ;;
10567        esac
10568      archive_cmds_need_lc_CXX=no
10569      hardcode_direct_CXX=no
10570      hardcode_automatic_CXX=yes
10571      hardcode_shlibpath_var_CXX=unsupported
10572      whole_archive_flag_spec_CXX=''
10573      link_all_deplibs_CXX=yes
10574
10575    if test "$GXX" = yes ; then
10576      lt_int_apple_cc_single_mod=no
10577      output_verbose_link_cmd='echo'
10578      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10579       lt_int_apple_cc_single_mod=yes
10580      fi
10581      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10582       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10583      else
10584          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'
10585        fi
10586        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10587        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10588          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10589            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10590          else
10591            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10592          fi
10593            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}'
10594      else
10595      case $cc_basename in
10596        xlc*)
10597         output_verbose_link_cmd='echo'
10598          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10599          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10600          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10601          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10602          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}'
10603          ;;
10604       *)
10605         ld_shlibs_CXX=no
10606          ;;
10607      esac
10608      fi
10609        ;;
10610
10611  dgux*)
10612    case $cc_basename in
10613      ec++*)
10614	# FIXME: insert proper C++ library support
10615	ld_shlibs_CXX=no
10616	;;
10617      ghcx*)
10618	# Green Hills C++ Compiler
10619	# FIXME: insert proper C++ library support
10620	ld_shlibs_CXX=no
10621	;;
10622      *)
10623	# FIXME: insert proper C++ library support
10624	ld_shlibs_CXX=no
10625	;;
10626    esac
10627    ;;
10628  freebsd[12]*)
10629    # C++ shared libraries reported to be fairly broken before switch to ELF
10630    ld_shlibs_CXX=no
10631    ;;
10632  freebsd-elf*)
10633    archive_cmds_need_lc_CXX=no
10634    ;;
10635  freebsd* | kfreebsd*-gnu | dragonfly*)
10636    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10637    # conventions
10638    ld_shlibs_CXX=yes
10639    ;;
10640  gnu*)
10641    ;;
10642  hpux9*)
10643    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10644    hardcode_libdir_separator_CXX=:
10645    export_dynamic_flag_spec_CXX='${wl}-E'
10646    hardcode_direct_CXX=yes
10647    hardcode_minus_L_CXX=yes # Not in the search PATH,
10648				# but as the default
10649				# location of the library.
10650
10651    case $cc_basename in
10652    CC*)
10653      # FIXME: insert proper C++ library support
10654      ld_shlibs_CXX=no
10655      ;;
10656    aCC*)
10657      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'
10658      # Commands to make compiler produce verbose output that lists
10659      # what "hidden" libraries, object files and flags are used when
10660      # linking a shared library.
10661      #
10662      # There doesn't appear to be a way to prevent this compiler from
10663      # explicitly linking system object files so we need to strip them
10664      # from the output so that they don't get included in the library
10665      # dependencies.
10666      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'
10667      ;;
10668    *)
10669      if test "$GXX" = yes; then
10670        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'
10671      else
10672        # FIXME: insert proper C++ library support
10673        ld_shlibs_CXX=no
10674      fi
10675      ;;
10676    esac
10677    ;;
10678  hpux10*|hpux11*)
10679    if test $with_gnu_ld = no; then
10680      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10681      hardcode_libdir_separator_CXX=:
10682
10683      case $host_cpu in
10684      hppa*64*|ia64*)
10685	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10686        ;;
10687      *)
10688	export_dynamic_flag_spec_CXX='${wl}-E'
10689        ;;
10690      esac
10691    fi
10692    case $host_cpu in
10693    hppa*64*|ia64*)
10694      hardcode_direct_CXX=no
10695      hardcode_shlibpath_var_CXX=no
10696      ;;
10697    *)
10698      hardcode_direct_CXX=yes
10699      hardcode_minus_L_CXX=yes # Not in the search PATH,
10700					      # but as the default
10701					      # location of the library.
10702      ;;
10703    esac
10704
10705    case $cc_basename in
10706      CC*)
10707	# FIXME: insert proper C++ library support
10708	ld_shlibs_CXX=no
10709	;;
10710      aCC*)
10711	case $host_cpu in
10712	hppa*64*)
10713	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10714	  ;;
10715	ia64*)
10716	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10717	  ;;
10718	*)
10719	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10720	  ;;
10721	esac
10722	# Commands to make compiler produce verbose output that lists
10723	# what "hidden" libraries, object files and flags are used when
10724	# linking a shared library.
10725	#
10726	# There doesn't appear to be a way to prevent this compiler from
10727	# explicitly linking system object files so we need to strip them
10728	# from the output so that they don't get included in the library
10729	# dependencies.
10730	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'
10731	;;
10732      *)
10733	if test "$GXX" = yes; then
10734	  if test $with_gnu_ld = no; then
10735	    case $host_cpu in
10736	    hppa*64*)
10737	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10738	      ;;
10739	    ia64*)
10740	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10741	      ;;
10742	    *)
10743	      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'
10744	      ;;
10745	    esac
10746	  fi
10747	else
10748	  # FIXME: insert proper C++ library support
10749	  ld_shlibs_CXX=no
10750	fi
10751	;;
10752    esac
10753    ;;
10754  interix3*)
10755    hardcode_direct_CXX=no
10756    hardcode_shlibpath_var_CXX=no
10757    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10758    export_dynamic_flag_spec_CXX='${wl}-E'
10759    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10760    # Instead, shared libraries are loaded at an image base (0x10000000 by
10761    # default) and relocated if they conflict, which is a slow very memory
10762    # consuming and fragmenting process.  To avoid this, we pick a random,
10763    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10764    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10765    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'
10766    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'
10767    ;;
10768  irix5* | irix6*)
10769    case $cc_basename in
10770      CC*)
10771	# SGI C++
10772	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'
10773
10774	# Archives containing C++ object files must be created using
10775	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10776	# necessary to make sure instantiated templates are included
10777	# in the archive.
10778	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10779	;;
10780      *)
10781	if test "$GXX" = yes; then
10782	  if test "$with_gnu_ld" = no; then
10783	    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'
10784	  else
10785	    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'
10786	  fi
10787	fi
10788	link_all_deplibs_CXX=yes
10789	;;
10790    esac
10791    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10792    hardcode_libdir_separator_CXX=:
10793    ;;
10794  linux*)
10795    case $cc_basename in
10796      KCC*)
10797	# Kuck and Associates, Inc. (KAI) C++ Compiler
10798
10799	# KCC will only create a shared library if the output file
10800	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10801	# to its proper name (with version) after linking.
10802	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'
10803	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'
10804	# Commands to make compiler produce verbose output that lists
10805	# what "hidden" libraries, object files and flags are used when
10806	# linking a shared library.
10807	#
10808	# There doesn't appear to be a way to prevent this compiler from
10809	# explicitly linking system object files so we need to strip them
10810	# from the output so that they don't get included in the library
10811	# dependencies.
10812	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'
10813
10814	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10815	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10816
10817	# Archives containing C++ object files must be created using
10818	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10819	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10820	;;
10821      icpc*)
10822	# Intel C++
10823	with_gnu_ld=yes
10824	# version 8.0 and above of icpc choke on multiply defined symbols
10825	# if we add $predep_objects and $postdep_objects, however 7.1 and
10826	# earlier do not add the objects themselves.
10827	case `$CC -V 2>&1` in
10828	*"Version 7."*)
10829  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10830  	  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'
10831	  ;;
10832	*)  # Version 8.0 or newer
10833	  tmp_idyn=
10834	  case $host_cpu in
10835	    ia64*) tmp_idyn=' -i_dynamic';;
10836	  esac
10837  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10838	  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'
10839	  ;;
10840	esac
10841	archive_cmds_need_lc_CXX=no
10842	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10843	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10844	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10845	;;
10846      pgCC*)
10847        # Portland Group C++ compiler
10848	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10849  	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'
10850
10851	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10852	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10853	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'
10854        ;;
10855      cxx*)
10856	# Compaq C++
10857	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10858	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'
10859
10860	runpath_var=LD_RUN_PATH
10861	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10862	hardcode_libdir_separator_CXX=:
10863
10864	# Commands to make compiler produce verbose output that lists
10865	# what "hidden" libraries, object files and flags are used when
10866	# linking a shared library.
10867	#
10868	# There doesn't appear to be a way to prevent this compiler from
10869	# explicitly linking system object files so we need to strip them
10870	# from the output so that they don't get included in the library
10871	# dependencies.
10872	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'
10873	;;
10874    esac
10875    ;;
10876  lynxos*)
10877    # FIXME: insert proper C++ library support
10878    ld_shlibs_CXX=no
10879    ;;
10880  m88k*)
10881    # FIXME: insert proper C++ library support
10882    ld_shlibs_CXX=no
10883    ;;
10884  mvs*)
10885    case $cc_basename in
10886      cxx*)
10887	# FIXME: insert proper C++ library support
10888	ld_shlibs_CXX=no
10889	;;
10890      *)
10891	# FIXME: insert proper C++ library support
10892	ld_shlibs_CXX=no
10893	;;
10894    esac
10895    ;;
10896  netbsd*)
10897    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10898      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10899      wlarc=
10900      hardcode_libdir_flag_spec_CXX='-R$libdir'
10901      hardcode_direct_CXX=yes
10902      hardcode_shlibpath_var_CXX=no
10903    fi
10904    # Workaround some broken pre-1.5 toolchains
10905    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10906    ;;
10907  openbsd2*)
10908    # C++ shared libraries are fairly broken
10909    ld_shlibs_CXX=no
10910    ;;
10911  openbsd*)
10912    hardcode_direct_CXX=yes
10913    hardcode_shlibpath_var_CXX=no
10914    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10915    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10916    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10917      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10918      export_dynamic_flag_spec_CXX='${wl}-E'
10919      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10920    fi
10921    output_verbose_link_cmd='echo'
10922    ;;
10923  osf3*)
10924    case $cc_basename in
10925      KCC*)
10926	# Kuck and Associates, Inc. (KAI) C++ Compiler
10927
10928	# KCC will only create a shared library if the output file
10929	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10930	# to its proper name (with version) after linking.
10931	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'
10932
10933	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10934	hardcode_libdir_separator_CXX=:
10935
10936	# Archives containing C++ object files must be created using
10937	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10938	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10939
10940	;;
10941      RCC*)
10942	# Rational C++ 2.4.1
10943	# FIXME: insert proper C++ library support
10944	ld_shlibs_CXX=no
10945	;;
10946      cxx*)
10947	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10948	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'
10949
10950	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10951	hardcode_libdir_separator_CXX=:
10952
10953	# Commands to make compiler produce verbose output that lists
10954	# what "hidden" libraries, object files and flags are used when
10955	# linking a shared library.
10956	#
10957	# There doesn't appear to be a way to prevent this compiler from
10958	# explicitly linking system object files so we need to strip them
10959	# from the output so that they don't get included in the library
10960	# dependencies.
10961	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'
10962	;;
10963      *)
10964	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10965	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10966	  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'
10967
10968	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10969	  hardcode_libdir_separator_CXX=:
10970
10971	  # Commands to make compiler produce verbose output that lists
10972	  # what "hidden" libraries, object files and flags are used when
10973	  # linking a shared library.
10974	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10975
10976	else
10977	  # FIXME: insert proper C++ library support
10978	  ld_shlibs_CXX=no
10979	fi
10980	;;
10981    esac
10982    ;;
10983  osf4* | osf5*)
10984    case $cc_basename in
10985      KCC*)
10986	# Kuck and Associates, Inc. (KAI) C++ Compiler
10987
10988	# KCC will only create a shared library if the output file
10989	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10990	# to its proper name (with version) after linking.
10991	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'
10992
10993	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10994	hardcode_libdir_separator_CXX=:
10995
10996	# Archives containing C++ object files must be created using
10997	# the KAI C++ compiler.
10998	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10999	;;
11000      RCC*)
11001	# Rational C++ 2.4.1
11002	# FIXME: insert proper C++ library support
11003	ld_shlibs_CXX=no
11004	;;
11005      cxx*)
11006	allow_undefined_flag_CXX=' -expect_unresolved \*'
11007	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'
11008	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11009	  echo "-hidden">> $lib.exp~
11010	  $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~
11011	  $rm $lib.exp'
11012
11013	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11014	hardcode_libdir_separator_CXX=:
11015
11016	# Commands to make compiler produce verbose output that lists
11017	# what "hidden" libraries, object files and flags are used when
11018	# linking a shared library.
11019	#
11020	# There doesn't appear to be a way to prevent this compiler from
11021	# explicitly linking system object files so we need to strip them
11022	# from the output so that they don't get included in the library
11023	# dependencies.
11024	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'
11025	;;
11026      *)
11027	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11028	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11029	 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'
11030
11031	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11032	  hardcode_libdir_separator_CXX=:
11033
11034	  # Commands to make compiler produce verbose output that lists
11035	  # what "hidden" libraries, object files and flags are used when
11036	  # linking a shared library.
11037	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11038
11039	else
11040	  # FIXME: insert proper C++ library support
11041	  ld_shlibs_CXX=no
11042	fi
11043	;;
11044    esac
11045    ;;
11046  psos*)
11047    # FIXME: insert proper C++ library support
11048    ld_shlibs_CXX=no
11049    ;;
11050  sunos4*)
11051    case $cc_basename in
11052      CC*)
11053	# Sun C++ 4.x
11054	# FIXME: insert proper C++ library support
11055	ld_shlibs_CXX=no
11056	;;
11057      lcc*)
11058	# Lucid
11059	# FIXME: insert proper C++ library support
11060	ld_shlibs_CXX=no
11061	;;
11062      *)
11063	# FIXME: insert proper C++ library support
11064	ld_shlibs_CXX=no
11065	;;
11066    esac
11067    ;;
11068  solaris*)
11069    case $cc_basename in
11070      CC*)
11071	# Sun C++ 4.2, 5.x and Centerline C++
11072        archive_cmds_need_lc_CXX=yes
11073	no_undefined_flag_CXX=' -zdefs'
11074	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11075	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11076	$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'
11077
11078	hardcode_libdir_flag_spec_CXX='-R$libdir'
11079	hardcode_shlibpath_var_CXX=no
11080	case $host_os in
11081	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11082	  *)
11083	    # The C++ compiler is used as linker so we must use $wl
11084	    # flag to pass the commands to the underlying system
11085	    # linker. We must also pass each convience library through
11086	    # to the system linker between allextract/defaultextract.
11087	    # The C++ compiler will combine linker options so we
11088	    # cannot just pass the convience library names through
11089	    # without $wl.
11090	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11091	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11092	    ;;
11093	esac
11094	link_all_deplibs_CXX=yes
11095
11096	output_verbose_link_cmd='echo'
11097
11098	# Archives containing C++ object files must be created using
11099	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11100	# necessary to make sure instantiated templates are included
11101	# in the archive.
11102	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11103	;;
11104      gcx*)
11105	# Green Hills C++ Compiler
11106	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11107
11108	# The C++ compiler must be used to create the archive.
11109	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11110	;;
11111      *)
11112	# GNU C++ compiler with Solaris linker
11113	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11114	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11115	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11116	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11117	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11118		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11119
11120	    # Commands to make compiler produce verbose output that lists
11121	    # what "hidden" libraries, object files and flags are used when
11122	    # linking a shared library.
11123	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11124	  else
11125	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11126	    # platform.
11127	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11128	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11129		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11130
11131	    # Commands to make compiler produce verbose output that lists
11132	    # what "hidden" libraries, object files and flags are used when
11133	    # linking a shared library.
11134	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11135	  fi
11136
11137	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11138	fi
11139	;;
11140    esac
11141    ;;
11142  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11143    no_undefined_flag_CXX='${wl}-z,text'
11144    archive_cmds_need_lc_CXX=no
11145    hardcode_shlibpath_var_CXX=no
11146    runpath_var='LD_RUN_PATH'
11147
11148    case $cc_basename in
11149      CC*)
11150	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11151	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11152	;;
11153      *)
11154	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11155	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11156	;;
11157    esac
11158    ;;
11159  sysv5* | sco3.2v5* | sco5v6*)
11160    # Note: We can NOT use -z defs as we might desire, because we do not
11161    # link with -lc, and that would cause any symbols used from libc to
11162    # always be unresolved, which means just about no library would
11163    # ever link correctly.  If we're not using GNU ld we use -z text
11164    # though, which does catch some bad symbols but isn't as heavy-handed
11165    # as -z defs.
11166    # For security reasons, it is highly recommended that you always
11167    # use absolute paths for naming shared libraries, and exclude the
11168    # DT_RUNPATH tag from executables and libraries.  But doing so
11169    # requires that you compile everything twice, which is a pain.
11170    # So that behaviour is only enabled if SCOABSPATH is set to a
11171    # non-empty value in the environment.  Most likely only useful for
11172    # creating official distributions of packages.
11173    # This is a hack until libtool officially supports absolute path
11174    # names for shared libraries.
11175    no_undefined_flag_CXX='${wl}-z,text'
11176    allow_undefined_flag_CXX='${wl}-z,nodefs'
11177    archive_cmds_need_lc_CXX=no
11178    hardcode_shlibpath_var_CXX=no
11179    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11180    hardcode_libdir_separator_CXX=':'
11181    link_all_deplibs_CXX=yes
11182    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11183    runpath_var='LD_RUN_PATH'
11184
11185    case $cc_basename in
11186      CC*)
11187	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11188	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11189	;;
11190      *)
11191	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11192	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11193	;;
11194    esac
11195    ;;
11196  tandem*)
11197    case $cc_basename in
11198      NCC*)
11199	# NonStop-UX NCC 3.20
11200	# FIXME: insert proper C++ library support
11201	ld_shlibs_CXX=no
11202	;;
11203      *)
11204	# FIXME: insert proper C++ library support
11205	ld_shlibs_CXX=no
11206	;;
11207    esac
11208    ;;
11209  vxworks*)
11210    # FIXME: insert proper C++ library support
11211    ld_shlibs_CXX=no
11212    ;;
11213  *)
11214    # FIXME: insert proper C++ library support
11215    ld_shlibs_CXX=no
11216    ;;
11217esac
11218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11219$as_echo "$ld_shlibs_CXX" >&6; }
11220test "$ld_shlibs_CXX" = no && can_build_shared=no
11221
11222GCC_CXX="$GXX"
11223LD_CXX="$LD"
11224
11225
11226cat > conftest.$ac_ext <<EOF
11227class Foo
11228{
11229public:
11230  Foo (void) { a = 0; }
11231private:
11232  int a;
11233};
11234EOF
11235
11236if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11237  (eval $ac_compile) 2>&5
11238  ac_status=$?
11239  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11240  test $ac_status = 0; }; then
11241  # Parse the compiler output and extract the necessary
11242  # objects, libraries and library flags.
11243
11244  # Sentinel used to keep track of whether or not we are before
11245  # the conftest object file.
11246  pre_test_object_deps_done=no
11247
11248  # The `*' in the case matches for architectures that use `case' in
11249  # $output_verbose_cmd can trigger glob expansion during the loop
11250  # eval without this substitution.
11251  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11252
11253  for p in `eval $output_verbose_link_cmd`; do
11254    case $p in
11255
11256    -L* | -R* | -l*)
11257       # Some compilers place space between "-{L,R}" and the path.
11258       # Remove the space.
11259       if test $p = "-L" \
11260	  || test $p = "-R"; then
11261	 prev=$p
11262	 continue
11263       else
11264	 prev=
11265       fi
11266
11267       if test "$pre_test_object_deps_done" = no; then
11268	 case $p in
11269	 -L* | -R*)
11270	   # Internal compiler library paths should come after those
11271	   # provided the user.  The postdeps already come after the
11272	   # user supplied libs so there is no need to process them.
11273	   if test -z "$compiler_lib_search_path_CXX"; then
11274	     compiler_lib_search_path_CXX="${prev}${p}"
11275	   else
11276	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11277	   fi
11278	   ;;
11279	 # The "-l" case would never come before the object being
11280	 # linked, so don't bother handling this case.
11281	 esac
11282       else
11283	 if test -z "$postdeps_CXX"; then
11284	   postdeps_CXX="${prev}${p}"
11285	 else
11286	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11287	 fi
11288       fi
11289       ;;
11290
11291    *.$objext)
11292       # This assumes that the test object file only shows up
11293       # once in the compiler output.
11294       if test "$p" = "conftest.$objext"; then
11295	 pre_test_object_deps_done=yes
11296	 continue
11297       fi
11298
11299       if test "$pre_test_object_deps_done" = no; then
11300	 if test -z "$predep_objects_CXX"; then
11301	   predep_objects_CXX="$p"
11302	 else
11303	   predep_objects_CXX="$predep_objects_CXX $p"
11304	 fi
11305       else
11306	 if test -z "$postdep_objects_CXX"; then
11307	   postdep_objects_CXX="$p"
11308	 else
11309	   postdep_objects_CXX="$postdep_objects_CXX $p"
11310	 fi
11311       fi
11312       ;;
11313
11314    *) ;; # Ignore the rest.
11315
11316    esac
11317  done
11318
11319  # Clean up.
11320  rm -f a.out a.exe
11321else
11322  echo "libtool.m4: error: problem compiling CXX test program"
11323fi
11324
11325$rm -f confest.$objext
11326
11327# PORTME: override above test on systems where it is broken
11328case $host_os in
11329interix3*)
11330  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11331  # hack all around it, let's just trust "g++" to DTRT.
11332  predep_objects_CXX=
11333  postdep_objects_CXX=
11334  postdeps_CXX=
11335  ;;
11336
11337solaris*)
11338  case $cc_basename in
11339  CC*)
11340    # Adding this requires a known-good setup of shared libraries for
11341    # Sun compiler versions before 5.6, else PIC objects from an old
11342    # archive will be linked into the output, leading to subtle bugs.
11343    postdeps_CXX='-lCstd -lCrun'
11344    ;;
11345  esac
11346  ;;
11347esac
11348
11349
11350case " $postdeps_CXX " in
11351*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11352esac
11353
11354lt_prog_compiler_wl_CXX=
11355lt_prog_compiler_pic_CXX=
11356lt_prog_compiler_static_CXX=
11357
11358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11359$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11360
11361  # C++ specific cases for pic, static, wl, etc.
11362  if test "$GXX" = yes; then
11363    lt_prog_compiler_wl_CXX='-Wl,'
11364    lt_prog_compiler_static_CXX='-static'
11365
11366    case $host_os in
11367    aix*)
11368      # All AIX code is PIC.
11369      if test "$host_cpu" = ia64; then
11370	# AIX 5 now supports IA64 processor
11371	lt_prog_compiler_static_CXX='-Bstatic'
11372      fi
11373      ;;
11374    amigaos*)
11375      # FIXME: we need at least 68020 code to build shared libraries, but
11376      # adding the `-m68020' flag to GCC prevents building anything better,
11377      # like `-m68040'.
11378      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11379      ;;
11380    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11381      # PIC is the default for these OSes.
11382      ;;
11383    mingw* | os2* | pw32*)
11384      # This hack is so that the source file can tell whether it is being
11385      # built for inclusion in a dll (and should export symbols for example).
11386      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11387      ;;
11388    darwin* | rhapsody*)
11389      # PIC is the default on this platform
11390      # Common symbols not allowed in MH_DYLIB files
11391      lt_prog_compiler_pic_CXX='-fno-common'
11392      ;;
11393    *djgpp*)
11394      # DJGPP does not support shared libraries at all
11395      lt_prog_compiler_pic_CXX=
11396      ;;
11397    interix3*)
11398      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11399      # Instead, we relocate shared libraries at runtime.
11400      ;;
11401    sysv4*MP*)
11402      if test -d /usr/nec; then
11403	lt_prog_compiler_pic_CXX=-Kconform_pic
11404      fi
11405      ;;
11406    hpux*)
11407      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11408      # not for PA HP-UX.
11409      case $host_cpu in
11410      hppa*64*|ia64*)
11411	;;
11412      *)
11413	lt_prog_compiler_pic_CXX='-fPIC'
11414	;;
11415      esac
11416      ;;
11417    *)
11418      lt_prog_compiler_pic_CXX='-fPIC'
11419      ;;
11420    esac
11421  else
11422    case $host_os in
11423      aix4* | aix5*)
11424	# All AIX code is PIC.
11425	if test "$host_cpu" = ia64; then
11426	  # AIX 5 now supports IA64 processor
11427	  lt_prog_compiler_static_CXX='-Bstatic'
11428	else
11429	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11430	fi
11431	;;
11432      chorus*)
11433	case $cc_basename in
11434	cxch68*)
11435	  # Green Hills C++ Compiler
11436	  # _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"
11437	  ;;
11438	esac
11439	;;
11440       darwin*)
11441         # PIC is the default on this platform
11442         # Common symbols not allowed in MH_DYLIB files
11443         case $cc_basename in
11444           xlc*)
11445           lt_prog_compiler_pic_CXX='-qnocommon'
11446           lt_prog_compiler_wl_CXX='-Wl,'
11447           ;;
11448         esac
11449       ;;
11450      dgux*)
11451	case $cc_basename in
11452	  ec++*)
11453	    lt_prog_compiler_pic_CXX='-KPIC'
11454	    ;;
11455	  ghcx*)
11456	    # Green Hills C++ Compiler
11457	    lt_prog_compiler_pic_CXX='-pic'
11458	    ;;
11459	  *)
11460	    ;;
11461	esac
11462	;;
11463      freebsd* | kfreebsd*-gnu | dragonfly*)
11464	# FreeBSD uses GNU C++
11465	;;
11466      hpux9* | hpux10* | hpux11*)
11467	case $cc_basename in
11468	  CC*)
11469	    lt_prog_compiler_wl_CXX='-Wl,'
11470	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11471	    if test "$host_cpu" != ia64; then
11472	      lt_prog_compiler_pic_CXX='+Z'
11473	    fi
11474	    ;;
11475	  aCC*)
11476	    lt_prog_compiler_wl_CXX='-Wl,'
11477	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11478	    case $host_cpu in
11479	    hppa*64*|ia64*)
11480	      # +Z the default
11481	      ;;
11482	    *)
11483	      lt_prog_compiler_pic_CXX='+Z'
11484	      ;;
11485	    esac
11486	    ;;
11487	  *)
11488	    ;;
11489	esac
11490	;;
11491      interix*)
11492	# This is c89, which is MS Visual C++ (no shared libs)
11493	# Anyone wants to do a port?
11494	;;
11495      irix5* | irix6* | nonstopux*)
11496	case $cc_basename in
11497	  CC*)
11498	    lt_prog_compiler_wl_CXX='-Wl,'
11499	    lt_prog_compiler_static_CXX='-non_shared'
11500	    # CC pic flag -KPIC is the default.
11501	    ;;
11502	  *)
11503	    ;;
11504	esac
11505	;;
11506      linux*)
11507	case $cc_basename in
11508	  KCC*)
11509	    # KAI C++ Compiler
11510	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11511	    lt_prog_compiler_pic_CXX='-fPIC'
11512	    ;;
11513	  icpc* | ecpc*)
11514	    # Intel C++
11515	    lt_prog_compiler_wl_CXX='-Wl,'
11516	    lt_prog_compiler_pic_CXX='-KPIC'
11517	    lt_prog_compiler_static_CXX='-static'
11518	    ;;
11519	  pgCC*)
11520	    # Portland Group C++ compiler.
11521	    lt_prog_compiler_wl_CXX='-Wl,'
11522	    lt_prog_compiler_pic_CXX='-fpic'
11523	    lt_prog_compiler_static_CXX='-Bstatic'
11524	    ;;
11525	  cxx*)
11526	    # Compaq C++
11527	    # Make sure the PIC flag is empty.  It appears that all Alpha
11528	    # Linux and Compaq Tru64 Unix objects are PIC.
11529	    lt_prog_compiler_pic_CXX=
11530	    lt_prog_compiler_static_CXX='-non_shared'
11531	    ;;
11532	  *)
11533	    ;;
11534	esac
11535	;;
11536      lynxos*)
11537	;;
11538      m88k*)
11539	;;
11540      mvs*)
11541	case $cc_basename in
11542	  cxx*)
11543	    lt_prog_compiler_pic_CXX='-W c,exportall'
11544	    ;;
11545	  *)
11546	    ;;
11547	esac
11548	;;
11549      netbsd*)
11550	;;
11551      osf3* | osf4* | osf5*)
11552	case $cc_basename in
11553	  KCC*)
11554	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11555	    ;;
11556	  RCC*)
11557	    # Rational C++ 2.4.1
11558	    lt_prog_compiler_pic_CXX='-pic'
11559	    ;;
11560	  cxx*)
11561	    # Digital/Compaq C++
11562	    lt_prog_compiler_wl_CXX='-Wl,'
11563	    # Make sure the PIC flag is empty.  It appears that all Alpha
11564	    # Linux and Compaq Tru64 Unix objects are PIC.
11565	    lt_prog_compiler_pic_CXX=
11566	    lt_prog_compiler_static_CXX='-non_shared'
11567	    ;;
11568	  *)
11569	    ;;
11570	esac
11571	;;
11572      psos*)
11573	;;
11574      solaris*)
11575	case $cc_basename in
11576	  CC*)
11577	    # Sun C++ 4.2, 5.x and Centerline C++
11578	    lt_prog_compiler_pic_CXX='-KPIC'
11579	    lt_prog_compiler_static_CXX='-Bstatic'
11580	    lt_prog_compiler_wl_CXX='-Qoption ld '
11581	    ;;
11582	  gcx*)
11583	    # Green Hills C++ Compiler
11584	    lt_prog_compiler_pic_CXX='-PIC'
11585	    ;;
11586	  *)
11587	    ;;
11588	esac
11589	;;
11590      sunos4*)
11591	case $cc_basename in
11592	  CC*)
11593	    # Sun C++ 4.x
11594	    lt_prog_compiler_pic_CXX='-pic'
11595	    lt_prog_compiler_static_CXX='-Bstatic'
11596	    ;;
11597	  lcc*)
11598	    # Lucid
11599	    lt_prog_compiler_pic_CXX='-pic'
11600	    ;;
11601	  *)
11602	    ;;
11603	esac
11604	;;
11605      tandem*)
11606	case $cc_basename in
11607	  NCC*)
11608	    # NonStop-UX NCC 3.20
11609	    lt_prog_compiler_pic_CXX='-KPIC'
11610	    ;;
11611	  *)
11612	    ;;
11613	esac
11614	;;
11615      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11616	case $cc_basename in
11617	  CC*)
11618	    lt_prog_compiler_wl_CXX='-Wl,'
11619	    lt_prog_compiler_pic_CXX='-KPIC'
11620	    lt_prog_compiler_static_CXX='-Bstatic'
11621	    ;;
11622	esac
11623	;;
11624      vxworks*)
11625	;;
11626      *)
11627	lt_prog_compiler_can_build_shared_CXX=no
11628	;;
11629    esac
11630  fi
11631
11632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
11633$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
11634
11635#
11636# Check to make sure the PIC flag actually works.
11637#
11638if test -n "$lt_prog_compiler_pic_CXX"; then
11639
11640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11641$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
11642if ${lt_prog_compiler_pic_works_CXX+:} false; then :
11643  $as_echo_n "(cached) " >&6
11644else
11645  lt_prog_compiler_pic_works_CXX=no
11646  ac_outfile=conftest.$ac_objext
11647   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11648   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11649   # Insert the option either (1) after the last *FLAGS variable, or
11650   # (2) before a word containing "conftest.", or (3) at the end.
11651   # Note that $ac_compile itself does not contain backslashes and begins
11652   # with a dollar sign (not a hyphen), so the echo should work correctly.
11653   # The option is referenced via a variable to avoid confusing sed.
11654   lt_compile=`echo "$ac_compile" | $SED \
11655   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11656   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11657   -e 's:$: $lt_compiler_flag:'`
11658   (eval echo "\"\$as_me:11658: $lt_compile\"" >&5)
11659   (eval "$lt_compile" 2>conftest.err)
11660   ac_status=$?
11661   cat conftest.err >&5
11662   echo "$as_me:11662: \$? = $ac_status" >&5
11663   if (exit $ac_status) && test -s "$ac_outfile"; then
11664     # The compiler can only warn and ignore the option if not recognized
11665     # So say no if there are warnings other than the usual output.
11666     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11667     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11668     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11669       lt_prog_compiler_pic_works_CXX=yes
11670     fi
11671   fi
11672   $rm conftest*
11673
11674fi
11675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
11676$as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
11677
11678if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11679    case $lt_prog_compiler_pic_CXX in
11680     "" | " "*) ;;
11681     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11682     esac
11683else
11684    lt_prog_compiler_pic_CXX=
11685     lt_prog_compiler_can_build_shared_CXX=no
11686fi
11687
11688fi
11689case $host_os in
11690  # For platforms which do not support PIC, -DPIC is meaningless:
11691  *djgpp*)
11692    lt_prog_compiler_pic_CXX=
11693    ;;
11694  *)
11695    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11696    ;;
11697esac
11698
11699#
11700# Check to make sure the static flag actually works.
11701#
11702wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11704$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11705if ${lt_prog_compiler_static_works_CXX+:} false; then :
11706  $as_echo_n "(cached) " >&6
11707else
11708  lt_prog_compiler_static_works_CXX=no
11709   save_LDFLAGS="$LDFLAGS"
11710   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11711   printf "$lt_simple_link_test_code" > conftest.$ac_ext
11712   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11713     # The linker can only warn and ignore the option if not recognized
11714     # So say no if there are warnings
11715     if test -s conftest.err; then
11716       # Append any errors to the config.log.
11717       cat conftest.err 1>&5
11718       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11719       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11720       if diff conftest.exp conftest.er2 >/dev/null; then
11721         lt_prog_compiler_static_works_CXX=yes
11722       fi
11723     else
11724       lt_prog_compiler_static_works_CXX=yes
11725     fi
11726   fi
11727   $rm conftest*
11728   LDFLAGS="$save_LDFLAGS"
11729
11730fi
11731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_CXX" >&5
11732$as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
11733
11734if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11735    :
11736else
11737    lt_prog_compiler_static_CXX=
11738fi
11739
11740
11741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11742$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11743if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
11744  $as_echo_n "(cached) " >&6
11745else
11746  lt_cv_prog_compiler_c_o_CXX=no
11747   $rm -r conftest 2>/dev/null
11748   mkdir conftest
11749   cd conftest
11750   mkdir out
11751   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11752
11753   lt_compiler_flag="-o out/conftest2.$ac_objext"
11754   # Insert the option either (1) after the last *FLAGS variable, or
11755   # (2) before a word containing "conftest.", or (3) at the end.
11756   # Note that $ac_compile itself does not contain backslashes and begins
11757   # with a dollar sign (not a hyphen), so the echo should work correctly.
11758   lt_compile=`echo "$ac_compile" | $SED \
11759   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11760   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11761   -e 's:$: $lt_compiler_flag:'`
11762   (eval echo "\"\$as_me:11762: $lt_compile\"" >&5)
11763   (eval "$lt_compile" 2>out/conftest.err)
11764   ac_status=$?
11765   cat out/conftest.err >&5
11766   echo "$as_me:11766: \$? = $ac_status" >&5
11767   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11768   then
11769     # The compiler can only warn and ignore the option if not recognized
11770     # So say no if there are warnings
11771     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11772     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11773     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11774       lt_cv_prog_compiler_c_o_CXX=yes
11775     fi
11776   fi
11777   chmod u+w . 2>&5
11778   $rm conftest*
11779   # SGI C++ compiler will create directory out/ii_files/ for
11780   # template instantiation
11781   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11782   $rm out/* && rmdir out
11783   cd ..
11784   rmdir conftest
11785   $rm conftest*
11786
11787fi
11788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11789$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
11790
11791
11792hard_links="nottested"
11793if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11794  # do not overwrite the value of need_locks provided by the user
11795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11796$as_echo_n "checking if we can lock with hard links... " >&6; }
11797  hard_links=yes
11798  $rm conftest*
11799  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11800  touch conftest.a
11801  ln conftest.a conftest.b 2>&5 || hard_links=no
11802  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11804$as_echo "$hard_links" >&6; }
11805  if test "$hard_links" = no; then
11806    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11807$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11808    need_locks=warn
11809  fi
11810else
11811  need_locks=no
11812fi
11813
11814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11815$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11816
11817  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11818  case $host_os in
11819  aix4* | aix5*)
11820    # If we're using GNU nm, then we don't want the "-C" option.
11821    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11822    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11823      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'
11824    else
11825      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'
11826    fi
11827    ;;
11828  pw32*)
11829    export_symbols_cmds_CXX="$ltdll_cmds"
11830  ;;
11831  cygwin* | mingw*)
11832    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'
11833  ;;
11834  *)
11835    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11836  ;;
11837  esac
11838
11839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11840$as_echo "$ld_shlibs_CXX" >&6; }
11841test "$ld_shlibs_CXX" = no && can_build_shared=no
11842
11843#
11844# Do we need to explicitly link libc?
11845#
11846case "x$archive_cmds_need_lc_CXX" in
11847x|xyes)
11848  # Assume -lc should be added
11849  archive_cmds_need_lc_CXX=yes
11850
11851  if test "$enable_shared" = yes && test "$GCC" = yes; then
11852    case $archive_cmds_CXX in
11853    *'~'*)
11854      # FIXME: we may have to deal with multi-command sequences.
11855      ;;
11856    '$CC '*)
11857      # Test whether the compiler implicitly links with -lc since on some
11858      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11859      # to ld, don't add -lc before -lgcc.
11860      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11861$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11862      $rm conftest*
11863      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11864
11865      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11866  (eval $ac_compile) 2>&5
11867  ac_status=$?
11868  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11869  test $ac_status = 0; } 2>conftest.err; then
11870        soname=conftest
11871        lib=conftest
11872        libobjs=conftest.$ac_objext
11873        deplibs=
11874        wl=$lt_prog_compiler_wl_CXX
11875	pic_flag=$lt_prog_compiler_pic_CXX
11876        compiler_flags=-v
11877        linker_flags=-v
11878        verstring=
11879        output_objdir=.
11880        libname=conftest
11881        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11882        allow_undefined_flag_CXX=
11883        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11884  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11885  ac_status=$?
11886  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11887  test $ac_status = 0; }
11888        then
11889	  archive_cmds_need_lc_CXX=no
11890        else
11891	  archive_cmds_need_lc_CXX=yes
11892        fi
11893        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11894      else
11895        cat conftest.err 1>&5
11896      fi
11897      $rm conftest*
11898      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
11899$as_echo "$archive_cmds_need_lc_CXX" >&6; }
11900      ;;
11901    esac
11902  fi
11903  ;;
11904esac
11905
11906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11907$as_echo_n "checking dynamic linker characteristics... " >&6; }
11908library_names_spec=
11909libname_spec='lib$name'
11910soname_spec=
11911shrext_cmds=".so"
11912postinstall_cmds=
11913postuninstall_cmds=
11914finish_cmds=
11915finish_eval=
11916shlibpath_var=
11917shlibpath_overrides_runpath=unknown
11918version_type=none
11919dynamic_linker="$host_os ld.so"
11920sys_lib_dlsearch_path_spec="/lib /usr/lib"
11921if test "$GCC" = yes; then
11922  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11923  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11924    # if the path contains ";" then we assume it to be the separator
11925    # otherwise default to the standard path separator (i.e. ":") - it is
11926    # assumed that no part of a normal pathname contains ";" but that should
11927    # okay in the real world where ";" in dirpaths is itself problematic.
11928    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11929  else
11930    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11931  fi
11932else
11933  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11934fi
11935need_lib_prefix=unknown
11936hardcode_into_libs=no
11937
11938# when you set need_version to no, make sure it does not cause -set_version
11939# flags to be left without arguments
11940need_version=unknown
11941
11942case $host_os in
11943aix3*)
11944  version_type=linux
11945  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11946  shlibpath_var=LIBPATH
11947
11948  # AIX 3 has no versioning support, so we append a major version to the name.
11949  soname_spec='${libname}${release}${shared_ext}$major'
11950  ;;
11951
11952aix4* | aix5*)
11953  version_type=linux
11954  need_lib_prefix=no
11955  need_version=no
11956  hardcode_into_libs=yes
11957  if test "$host_cpu" = ia64; then
11958    # AIX 5 supports IA64
11959    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11960    shlibpath_var=LD_LIBRARY_PATH
11961  else
11962    # With GCC up to 2.95.x, collect2 would create an import file
11963    # for dependence libraries.  The import file would start with
11964    # the line `#! .'.  This would cause the generated library to
11965    # depend on `.', always an invalid library.  This was fixed in
11966    # development snapshots of GCC prior to 3.0.
11967    case $host_os in
11968      aix4 | aix4.[01] | aix4.[01].*)
11969      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11970	   echo ' yes '
11971	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11972	:
11973      else
11974	can_build_shared=no
11975      fi
11976      ;;
11977    esac
11978    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11979    # soname into executable. Probably we can add versioning support to
11980    # collect2, so additional links can be useful in future.
11981    if test "$aix_use_runtimelinking" = yes; then
11982      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11983      # instead of lib<name>.a to let people know that these are not
11984      # typical AIX shared libraries.
11985      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11986    else
11987      # We preserve .a as extension for shared libraries through AIX4.2
11988      # and later when we are not doing run time linking.
11989      library_names_spec='${libname}${release}.a $libname.a'
11990      soname_spec='${libname}${release}${shared_ext}$major'
11991    fi
11992    shlibpath_var=LIBPATH
11993  fi
11994  ;;
11995
11996amigaos*)
11997  library_names_spec='$libname.ixlibrary $libname.a'
11998  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11999  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'
12000  ;;
12001
12002beos*)
12003  library_names_spec='${libname}${shared_ext}'
12004  dynamic_linker="$host_os ld.so"
12005  shlibpath_var=LIBRARY_PATH
12006  ;;
12007
12008bsdi[45]*)
12009  version_type=linux
12010  need_version=no
12011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12012  soname_spec='${libname}${release}${shared_ext}$major'
12013  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12014  shlibpath_var=LD_LIBRARY_PATH
12015  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12016  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12017  # the default ld.so.conf also contains /usr/contrib/lib and
12018  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12019  # libtool to hard-code these into programs
12020  ;;
12021
12022cygwin* | mingw* | pw32*)
12023  version_type=windows
12024  shrext_cmds=".dll"
12025  need_version=no
12026  need_lib_prefix=no
12027
12028  case $GCC,$host_os in
12029  yes,cygwin* | yes,mingw* | yes,pw32*)
12030    library_names_spec='$libname.dll.a'
12031    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12032    postinstall_cmds='base_file=`basename \${file}`~
12033      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12034      dldir=$destdir/`dirname \$dlpath`~
12035      test -d \$dldir || mkdir -p \$dldir~
12036      $install_prog $dir/$dlname \$dldir/$dlname~
12037      chmod a+x \$dldir/$dlname'
12038    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12039      dlpath=$dir/\$dldll~
12040       $rm \$dlpath'
12041    shlibpath_overrides_runpath=yes
12042
12043    case $host_os in
12044    cygwin*)
12045      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12046      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12047      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12048      ;;
12049    mingw*)
12050      # MinGW DLLs use traditional 'lib' prefix
12051      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12052      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12053      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12054        # It is most probably a Windows format PATH printed by
12055        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12056        # path with ; separators, and with drive letters. We can handle the
12057        # drive letters (cygwin fileutils understands them), so leave them,
12058        # especially as we might pass files found there to a mingw objdump,
12059        # which wouldn't understand a cygwinified path. Ahh.
12060        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12061      else
12062        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12063      fi
12064      ;;
12065    pw32*)
12066      # pw32 DLLs use 'pw' prefix rather than 'lib'
12067      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12068      ;;
12069    esac
12070    ;;
12071
12072  *)
12073    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12074    ;;
12075  esac
12076  dynamic_linker='Win32 ld.exe'
12077  # FIXME: first we should search . and the directory the executable is in
12078  shlibpath_var=PATH
12079  ;;
12080
12081darwin* | rhapsody*)
12082  dynamic_linker="$host_os dyld"
12083  version_type=darwin
12084  need_lib_prefix=no
12085  need_version=no
12086  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12087  soname_spec='${libname}${release}${major}$shared_ext'
12088  shlibpath_overrides_runpath=yes
12089  shlibpath_var=DYLD_LIBRARY_PATH
12090  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12091  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12092  if test "$GCC" = yes; then
12093    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12094  else
12095    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12096  fi
12097  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12098  ;;
12099
12100dgux*)
12101  version_type=linux
12102  need_lib_prefix=no
12103  need_version=no
12104  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12105  soname_spec='${libname}${release}${shared_ext}$major'
12106  shlibpath_var=LD_LIBRARY_PATH
12107  ;;
12108
12109freebsd1*)
12110  dynamic_linker=no
12111  ;;
12112
12113kfreebsd*-gnu)
12114  version_type=linux
12115  need_lib_prefix=no
12116  need_version=no
12117  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12118  soname_spec='${libname}${release}${shared_ext}$major'
12119  shlibpath_var=LD_LIBRARY_PATH
12120  shlibpath_overrides_runpath=no
12121  hardcode_into_libs=yes
12122  dynamic_linker='GNU ld.so'
12123  ;;
12124
12125freebsd* | dragonfly*)
12126  # DragonFly does not have aout.  When/if they implement a new
12127  # versioning mechanism, adjust this.
12128  if test -x /usr/bin/objformat; then
12129    objformat=`/usr/bin/objformat`
12130  else
12131    case $host_os in
12132    freebsd[123]*) objformat=aout ;;
12133    *) objformat=elf ;;
12134    esac
12135  fi
12136  version_type=freebsd-$objformat
12137  case $version_type in
12138    freebsd-elf*)
12139      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12140      need_version=no
12141      need_lib_prefix=no
12142      ;;
12143    freebsd-*)
12144      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12145      need_version=yes
12146      ;;
12147  esac
12148  shlibpath_var=LD_LIBRARY_PATH
12149  case $host_os in
12150  freebsd2*)
12151    shlibpath_overrides_runpath=yes
12152    ;;
12153  freebsd3.[01]* | freebsdelf3.[01]*)
12154    shlibpath_overrides_runpath=yes
12155    hardcode_into_libs=yes
12156    ;;
12157  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12158  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12159    shlibpath_overrides_runpath=no
12160    hardcode_into_libs=yes
12161    ;;
12162  freebsd*) # from 4.6 on
12163    shlibpath_overrides_runpath=yes
12164    hardcode_into_libs=yes
12165    ;;
12166  esac
12167  ;;
12168
12169gnu*)
12170  version_type=linux
12171  need_lib_prefix=no
12172  need_version=no
12173  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12174  soname_spec='${libname}${release}${shared_ext}$major'
12175  shlibpath_var=LD_LIBRARY_PATH
12176  hardcode_into_libs=yes
12177  ;;
12178
12179hpux9* | hpux10* | hpux11*)
12180  # Give a soname corresponding to the major version so that dld.sl refuses to
12181  # link against other versions.
12182  version_type=sunos
12183  need_lib_prefix=no
12184  need_version=no
12185  case $host_cpu in
12186  ia64*)
12187    shrext_cmds='.so'
12188    hardcode_into_libs=yes
12189    dynamic_linker="$host_os dld.so"
12190    shlibpath_var=LD_LIBRARY_PATH
12191    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12192    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12193    soname_spec='${libname}${release}${shared_ext}$major'
12194    if test "X$HPUX_IA64_MODE" = X32; then
12195      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12196    else
12197      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12198    fi
12199    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12200    ;;
12201   hppa*64*)
12202     shrext_cmds='.sl'
12203     hardcode_into_libs=yes
12204     dynamic_linker="$host_os dld.sl"
12205     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12206     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12207     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12208     soname_spec='${libname}${release}${shared_ext}$major'
12209     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12210     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12211     ;;
12212   *)
12213    shrext_cmds='.sl'
12214    dynamic_linker="$host_os dld.sl"
12215    shlibpath_var=SHLIB_PATH
12216    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12217    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12218    soname_spec='${libname}${release}${shared_ext}$major'
12219    ;;
12220  esac
12221  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12222  postinstall_cmds='chmod 555 $lib'
12223  ;;
12224
12225interix3*)
12226  version_type=linux
12227  need_lib_prefix=no
12228  need_version=no
12229  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12230  soname_spec='${libname}${release}${shared_ext}$major'
12231  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12232  shlibpath_var=LD_LIBRARY_PATH
12233  shlibpath_overrides_runpath=no
12234  hardcode_into_libs=yes
12235  ;;
12236
12237irix5* | irix6* | nonstopux*)
12238  case $host_os in
12239    nonstopux*) version_type=nonstopux ;;
12240    *)
12241	if test "$lt_cv_prog_gnu_ld" = yes; then
12242		version_type=linux
12243	else
12244		version_type=irix
12245	fi ;;
12246  esac
12247  need_lib_prefix=no
12248  need_version=no
12249  soname_spec='${libname}${release}${shared_ext}$major'
12250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12251  case $host_os in
12252  irix5* | nonstopux*)
12253    libsuff= shlibsuff=
12254    ;;
12255  *)
12256    case $LD in # libtool.m4 will add one of these switches to LD
12257    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12258      libsuff= shlibsuff= libmagic=32-bit;;
12259    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12260      libsuff=32 shlibsuff=N32 libmagic=N32;;
12261    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12262      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12263    *) libsuff= shlibsuff= libmagic=never-match;;
12264    esac
12265    ;;
12266  esac
12267  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12268  shlibpath_overrides_runpath=no
12269  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12270  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12271  hardcode_into_libs=yes
12272  ;;
12273
12274# No shared lib support for Linux oldld, aout, or coff.
12275linux*oldld* | linux*aout* | linux*coff*)
12276  dynamic_linker=no
12277  ;;
12278
12279# This must be Linux ELF.
12280linux*)
12281  version_type=linux
12282  need_lib_prefix=no
12283  need_version=no
12284  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12285  soname_spec='${libname}${release}${shared_ext}$major'
12286  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12287  shlibpath_var=LD_LIBRARY_PATH
12288  shlibpath_overrides_runpath=no
12289  # This implies no fast_install, which is unacceptable.
12290  # Some rework will be needed to allow for fast_install
12291  # before this can be enabled.
12292  hardcode_into_libs=yes
12293
12294  # find out which ABI we are using
12295  libsuff=
12296  case "$host_cpu" in
12297  x86_64*|s390x*|powerpc64*)
12298    echo '#line 12298 "configure"' > conftest.$ac_ext
12299    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12300  (eval $ac_compile) 2>&5
12301  ac_status=$?
12302  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12303  test $ac_status = 0; }; then
12304      case `/usr/bin/file conftest.$ac_objext` in
12305      *64-bit*)
12306        libsuff=64
12307        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12308        ;;
12309      esac
12310    fi
12311    rm -rf conftest*
12312    ;;
12313  esac
12314
12315  # Append ld.so.conf contents to the search path
12316  if test -f /etc/ld.so.conf; then
12317    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/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12318    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12319  fi
12320
12321  # We used to test for /lib/ld.so.1 and disable shared libraries on
12322  # powerpc, because MkLinux only supported shared libraries with the
12323  # GNU dynamic linker.  Since this was broken with cross compilers,
12324  # most powerpc-linux boxes support dynamic linking these days and
12325  # people can always --disable-shared, the test was removed, and we
12326  # assume the GNU/Linux dynamic linker is in use.
12327  dynamic_linker='GNU/Linux ld.so'
12328  ;;
12329
12330knetbsd*-gnu)
12331  version_type=linux
12332  need_lib_prefix=no
12333  need_version=no
12334  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12335  soname_spec='${libname}${release}${shared_ext}$major'
12336  shlibpath_var=LD_LIBRARY_PATH
12337  shlibpath_overrides_runpath=no
12338  hardcode_into_libs=yes
12339  dynamic_linker='GNU ld.so'
12340  ;;
12341
12342netbsd*)
12343  version_type=sunos
12344  need_lib_prefix=no
12345  need_version=no
12346  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12347    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12348    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12349    dynamic_linker='NetBSD (a.out) ld.so'
12350  else
12351    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12352    soname_spec='${libname}${release}${shared_ext}$major'
12353    dynamic_linker='NetBSD ld.elf_so'
12354  fi
12355  shlibpath_var=LD_LIBRARY_PATH
12356  shlibpath_overrides_runpath=yes
12357  hardcode_into_libs=yes
12358  ;;
12359
12360newsos6)
12361  version_type=linux
12362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12363  shlibpath_var=LD_LIBRARY_PATH
12364  shlibpath_overrides_runpath=yes
12365  ;;
12366
12367nto-qnx*)
12368  version_type=linux
12369  need_lib_prefix=no
12370  need_version=no
12371  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12372  soname_spec='${libname}${release}${shared_ext}$major'
12373  shlibpath_var=LD_LIBRARY_PATH
12374  shlibpath_overrides_runpath=yes
12375  ;;
12376
12377openbsd*)
12378  version_type=sunos
12379  sys_lib_dlsearch_path_spec="/usr/lib"
12380  need_lib_prefix=no
12381  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12382  case $host_os in
12383    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12384    *)                         need_version=no  ;;
12385  esac
12386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12387  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12388  shlibpath_var=LD_LIBRARY_PATH
12389  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12390    case $host_os in
12391      openbsd2.[89] | openbsd2.[89].*)
12392	shlibpath_overrides_runpath=no
12393	;;
12394      *)
12395	shlibpath_overrides_runpath=yes
12396	;;
12397      esac
12398  else
12399    shlibpath_overrides_runpath=yes
12400  fi
12401  ;;
12402
12403os2*)
12404  libname_spec='$name'
12405  shrext_cmds=".dll"
12406  need_lib_prefix=no
12407  library_names_spec='$libname${shared_ext} $libname.a'
12408  dynamic_linker='OS/2 ld.exe'
12409  shlibpath_var=LIBPATH
12410  ;;
12411
12412osf3* | osf4* | osf5*)
12413  version_type=osf
12414  need_lib_prefix=no
12415  need_version=no
12416  soname_spec='${libname}${release}${shared_ext}$major'
12417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12418  shlibpath_var=LD_LIBRARY_PATH
12419  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12420  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12421  ;;
12422
12423solaris*)
12424  version_type=linux
12425  need_lib_prefix=no
12426  need_version=no
12427  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12428  soname_spec='${libname}${release}${shared_ext}$major'
12429  shlibpath_var=LD_LIBRARY_PATH
12430  shlibpath_overrides_runpath=yes
12431  hardcode_into_libs=yes
12432  # ldd complains unless libraries are executable
12433  postinstall_cmds='chmod +x $lib'
12434  ;;
12435
12436sunos4*)
12437  version_type=sunos
12438  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12439  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12440  shlibpath_var=LD_LIBRARY_PATH
12441  shlibpath_overrides_runpath=yes
12442  if test "$with_gnu_ld" = yes; then
12443    need_lib_prefix=no
12444  fi
12445  need_version=yes
12446  ;;
12447
12448sysv4 | sysv4.3*)
12449  version_type=linux
12450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12451  soname_spec='${libname}${release}${shared_ext}$major'
12452  shlibpath_var=LD_LIBRARY_PATH
12453  case $host_vendor in
12454    sni)
12455      shlibpath_overrides_runpath=no
12456      need_lib_prefix=no
12457      export_dynamic_flag_spec='${wl}-Blargedynsym'
12458      runpath_var=LD_RUN_PATH
12459      ;;
12460    siemens)
12461      need_lib_prefix=no
12462      ;;
12463    motorola)
12464      need_lib_prefix=no
12465      need_version=no
12466      shlibpath_overrides_runpath=no
12467      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12468      ;;
12469  esac
12470  ;;
12471
12472sysv4*MP*)
12473  if test -d /usr/nec ;then
12474    version_type=linux
12475    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12476    soname_spec='$libname${shared_ext}.$major'
12477    shlibpath_var=LD_LIBRARY_PATH
12478  fi
12479  ;;
12480
12481sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12482  version_type=freebsd-elf
12483  need_lib_prefix=no
12484  need_version=no
12485  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12486  soname_spec='${libname}${release}${shared_ext}$major'
12487  shlibpath_var=LD_LIBRARY_PATH
12488  hardcode_into_libs=yes
12489  if test "$with_gnu_ld" = yes; then
12490    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12491    shlibpath_overrides_runpath=no
12492  else
12493    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12494    shlibpath_overrides_runpath=yes
12495    case $host_os in
12496      sco3.2v5*)
12497        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12498	;;
12499    esac
12500  fi
12501  sys_lib_dlsearch_path_spec='/usr/lib'
12502  ;;
12503
12504uts4*)
12505  version_type=linux
12506  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12507  soname_spec='${libname}${release}${shared_ext}$major'
12508  shlibpath_var=LD_LIBRARY_PATH
12509  ;;
12510
12511*)
12512  dynamic_linker=no
12513  ;;
12514esac
12515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12516$as_echo "$dynamic_linker" >&6; }
12517test "$dynamic_linker" = no && can_build_shared=no
12518
12519variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12520if test "$GCC" = yes; then
12521  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12522fi
12523
12524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12525$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12526hardcode_action_CXX=
12527if test -n "$hardcode_libdir_flag_spec_CXX" || \
12528   test -n "$runpath_var_CXX" || \
12529   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12530
12531  # We can hardcode non-existant directories.
12532  if test "$hardcode_direct_CXX" != no &&
12533     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12534     # have to relink, otherwise we might link with an installed library
12535     # when we should be linking with a yet-to-be-installed one
12536     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12537     test "$hardcode_minus_L_CXX" != no; then
12538    # Linking always hardcodes the temporary library directory.
12539    hardcode_action_CXX=relink
12540  else
12541    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12542    hardcode_action_CXX=immediate
12543  fi
12544else
12545  # We cannot hardcode anything, or else we can only hardcode existing
12546  # directories.
12547  hardcode_action_CXX=unsupported
12548fi
12549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
12550$as_echo "$hardcode_action_CXX" >&6; }
12551
12552if test "$hardcode_action_CXX" = relink; then
12553  # Fast installation is not supported
12554  enable_fast_install=no
12555elif test "$shlibpath_overrides_runpath" = yes ||
12556     test "$enable_shared" = no; then
12557  # Fast installation is not necessary
12558  enable_fast_install=needless
12559fi
12560
12561
12562# The else clause should only fire when bootstrapping the
12563# libtool distribution, otherwise you forgot to ship ltmain.sh
12564# with your package, and you will get complaints that there are
12565# no rules to generate ltmain.sh.
12566if test -f "$ltmain"; then
12567  # See if we are running on zsh, and set the options which allow our commands through
12568  # without removal of \ escapes.
12569  if test -n "${ZSH_VERSION+set}" ; then
12570    setopt NO_GLOB_SUBST
12571  fi
12572  # Now quote all the things that may contain metacharacters while being
12573  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12574  # variables and quote the copies for generation of the libtool script.
12575  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12576    SED SHELL STRIP \
12577    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12578    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12579    deplibs_check_method reload_flag reload_cmds need_locks \
12580    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12581    lt_cv_sys_global_symbol_to_c_name_address \
12582    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12583    old_postinstall_cmds old_postuninstall_cmds \
12584    compiler_CXX \
12585    CC_CXX \
12586    LD_CXX \
12587    lt_prog_compiler_wl_CXX \
12588    lt_prog_compiler_pic_CXX \
12589    lt_prog_compiler_static_CXX \
12590    lt_prog_compiler_no_builtin_flag_CXX \
12591    export_dynamic_flag_spec_CXX \
12592    thread_safe_flag_spec_CXX \
12593    whole_archive_flag_spec_CXX \
12594    enable_shared_with_static_runtimes_CXX \
12595    old_archive_cmds_CXX \
12596    old_archive_from_new_cmds_CXX \
12597    predep_objects_CXX \
12598    postdep_objects_CXX \
12599    predeps_CXX \
12600    postdeps_CXX \
12601    compiler_lib_search_path_CXX \
12602    archive_cmds_CXX \
12603    archive_expsym_cmds_CXX \
12604    postinstall_cmds_CXX \
12605    postuninstall_cmds_CXX \
12606    old_archive_from_expsyms_cmds_CXX \
12607    allow_undefined_flag_CXX \
12608    no_undefined_flag_CXX \
12609    export_symbols_cmds_CXX \
12610    hardcode_libdir_flag_spec_CXX \
12611    hardcode_libdir_flag_spec_ld_CXX \
12612    hardcode_libdir_separator_CXX \
12613    hardcode_automatic_CXX \
12614    module_cmds_CXX \
12615    module_expsym_cmds_CXX \
12616    lt_cv_prog_compiler_c_o_CXX \
12617    exclude_expsyms_CXX \
12618    include_expsyms_CXX; do
12619
12620    case $var in
12621    old_archive_cmds_CXX | \
12622    old_archive_from_new_cmds_CXX | \
12623    archive_cmds_CXX | \
12624    archive_expsym_cmds_CXX | \
12625    module_cmds_CXX | \
12626    module_expsym_cmds_CXX | \
12627    old_archive_from_expsyms_cmds_CXX | \
12628    export_symbols_cmds_CXX | \
12629    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12630    postinstall_cmds | postuninstall_cmds | \
12631    old_postinstall_cmds | old_postuninstall_cmds | \
12632    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12633      # Double-quote double-evaled strings.
12634      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12635      ;;
12636    *)
12637      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12638      ;;
12639    esac
12640  done
12641
12642  case $lt_echo in
12643  *'\$0 --fallback-echo"')
12644    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12645    ;;
12646  esac
12647
12648cfgfile="$ofile"
12649
12650  cat <<__EOF__ >> "$cfgfile"
12651# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12652
12653# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12654
12655# Shell to use when invoking shell scripts.
12656SHELL=$lt_SHELL
12657
12658# Whether or not to build shared libraries.
12659build_libtool_libs=$enable_shared
12660
12661# Whether or not to build static libraries.
12662build_old_libs=$enable_static
12663
12664# Whether or not to add -lc for building shared libraries.
12665build_libtool_need_lc=$archive_cmds_need_lc_CXX
12666
12667# Whether or not to disallow shared libs when runtime libs are static
12668allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12669
12670# Whether or not to optimize for fast installation.
12671fast_install=$enable_fast_install
12672
12673# The host system.
12674host_alias=$host_alias
12675host=$host
12676host_os=$host_os
12677
12678# The build system.
12679build_alias=$build_alias
12680build=$build
12681build_os=$build_os
12682
12683# An echo program that does not interpret backslashes.
12684echo=$lt_echo
12685
12686# The archiver.
12687AR=$lt_AR
12688AR_FLAGS=$lt_AR_FLAGS
12689
12690# A C compiler.
12691LTCC=$lt_LTCC
12692
12693# LTCC compiler flags.
12694LTCFLAGS=$lt_LTCFLAGS
12695
12696# A language-specific compiler.
12697CC=$lt_compiler_CXX
12698
12699# Is the compiler the GNU C compiler?
12700with_gcc=$GCC_CXX
12701
12702gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12703gcc_ver=\`gcc -dumpversion\`
12704
12705# An ERE matcher.
12706EGREP=$lt_EGREP
12707
12708# The linker used to build libraries.
12709LD=$lt_LD_CXX
12710
12711# Whether we need hard or soft links.
12712LN_S=$lt_LN_S
12713
12714# A BSD-compatible nm program.
12715NM=$lt_NM
12716
12717# A symbol stripping program
12718STRIP=$lt_STRIP
12719
12720# Used to examine libraries when file_magic_cmd begins "file"
12721MAGIC_CMD=$MAGIC_CMD
12722
12723# Used on cygwin: DLL creation program.
12724DLLTOOL="$DLLTOOL"
12725
12726# Used on cygwin: object dumper.
12727OBJDUMP="$OBJDUMP"
12728
12729# Used on cygwin: assembler.
12730AS="$AS"
12731
12732# The name of the directory that contains temporary libtool files.
12733objdir=$objdir
12734
12735# How to create reloadable object files.
12736reload_flag=$lt_reload_flag
12737reload_cmds=$lt_reload_cmds
12738
12739# How to pass a linker flag through the compiler.
12740wl=$lt_lt_prog_compiler_wl_CXX
12741
12742# Object file suffix (normally "o").
12743objext="$ac_objext"
12744
12745# Old archive suffix (normally "a").
12746libext="$libext"
12747
12748# Shared library suffix (normally ".so").
12749shrext_cmds='$shrext_cmds'
12750
12751# Executable file suffix (normally "").
12752exeext="$exeext"
12753
12754# Additional compiler flags for building library objects.
12755pic_flag=$lt_lt_prog_compiler_pic_CXX
12756pic_mode=$pic_mode
12757
12758# What is the maximum length of a command?
12759max_cmd_len=$lt_cv_sys_max_cmd_len
12760
12761# Does compiler simultaneously support -c and -o options?
12762compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12763
12764# Must we lock files when doing compilation?
12765need_locks=$lt_need_locks
12766
12767# Do we need the lib prefix for modules?
12768need_lib_prefix=$need_lib_prefix
12769
12770# Do we need a version for libraries?
12771need_version=$need_version
12772
12773# Whether dlopen is supported.
12774dlopen_support=$enable_dlopen
12775
12776# Whether dlopen of programs is supported.
12777dlopen_self=$enable_dlopen_self
12778
12779# Whether dlopen of statically linked programs is supported.
12780dlopen_self_static=$enable_dlopen_self_static
12781
12782# Compiler flag to prevent dynamic linking.
12783link_static_flag=$lt_lt_prog_compiler_static_CXX
12784
12785# Compiler flag to turn off builtin functions.
12786no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12787
12788# Compiler flag to allow reflexive dlopens.
12789export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12790
12791# Compiler flag to generate shared objects directly from archives.
12792whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12793
12794# Compiler flag to generate thread-safe objects.
12795thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12796
12797# Library versioning type.
12798version_type=$version_type
12799
12800# Format of library name prefix.
12801libname_spec=$lt_libname_spec
12802
12803# List of archive names.  First name is the real one, the rest are links.
12804# The last name is the one that the linker finds with -lNAME.
12805library_names_spec=$lt_library_names_spec
12806
12807# The coded name of the library, if different from the real name.
12808soname_spec=$lt_soname_spec
12809
12810# Commands used to build and install an old-style archive.
12811RANLIB=$lt_RANLIB
12812old_archive_cmds=$lt_old_archive_cmds_CXX
12813old_postinstall_cmds=$lt_old_postinstall_cmds
12814old_postuninstall_cmds=$lt_old_postuninstall_cmds
12815
12816# Create an old-style archive from a shared archive.
12817old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12818
12819# Create a temporary old-style archive to link instead of a shared archive.
12820old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12821
12822# Commands used to build and install a shared archive.
12823archive_cmds=$lt_archive_cmds_CXX
12824archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12825postinstall_cmds=$lt_postinstall_cmds
12826postuninstall_cmds=$lt_postuninstall_cmds
12827
12828# Commands used to build a loadable module (assumed same as above if empty)
12829module_cmds=$lt_module_cmds_CXX
12830module_expsym_cmds=$lt_module_expsym_cmds_CXX
12831
12832# Commands to strip libraries.
12833old_striplib=$lt_old_striplib
12834striplib=$lt_striplib
12835
12836# Dependencies to place before the objects being linked to create a
12837# shared library.
12838predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12839
12840# Dependencies to place after the objects being linked to create a
12841# shared library.
12842postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12843
12844# Dependencies to place before the objects being linked to create a
12845# shared library.
12846predeps=$lt_predeps_CXX
12847
12848# Dependencies to place after the objects being linked to create a
12849# shared library.
12850postdeps=$lt_postdeps_CXX
12851
12852# The library search path used internally by the compiler when linking
12853# a shared library.
12854compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12855
12856# Method to check whether dependent libraries are shared objects.
12857deplibs_check_method=$lt_deplibs_check_method
12858
12859# Command to use when deplibs_check_method == file_magic.
12860file_magic_cmd=$lt_file_magic_cmd
12861
12862# Flag that allows shared libraries with undefined symbols to be built.
12863allow_undefined_flag=$lt_allow_undefined_flag_CXX
12864
12865# Flag that forces no undefined symbols.
12866no_undefined_flag=$lt_no_undefined_flag_CXX
12867
12868# Commands used to finish a libtool library installation in a directory.
12869finish_cmds=$lt_finish_cmds
12870
12871# Same as above, but a single script fragment to be evaled but not shown.
12872finish_eval=$lt_finish_eval
12873
12874# Take the output of nm and produce a listing of raw symbols and C names.
12875global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12876
12877# Transform the output of nm in a proper C declaration
12878global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12879
12880# Transform the output of nm in a C name address pair
12881global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12882
12883# This is the shared library runtime path variable.
12884runpath_var=$runpath_var
12885
12886# This is the shared library path variable.
12887shlibpath_var=$shlibpath_var
12888
12889# Is shlibpath searched before the hard-coded library search path?
12890shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12891
12892# How to hardcode a shared library path into an executable.
12893hardcode_action=$hardcode_action_CXX
12894
12895# Whether we should hardcode library paths into libraries.
12896hardcode_into_libs=$hardcode_into_libs
12897
12898# Flag to hardcode \$libdir into a binary during linking.
12899# This must work even if \$libdir does not exist.
12900hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12901
12902# If ld is used when linking, flag to hardcode \$libdir into
12903# a binary during linking. This must work even if \$libdir does
12904# not exist.
12905hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12906
12907# Whether we need a single -rpath flag with a separated argument.
12908hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12909
12910# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12911# resulting binary.
12912hardcode_direct=$hardcode_direct_CXX
12913
12914# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12915# resulting binary.
12916hardcode_minus_L=$hardcode_minus_L_CXX
12917
12918# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12919# the resulting binary.
12920hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12921
12922# Set to yes if building a shared library automatically hardcodes DIR into the library
12923# and all subsequent libraries and executables linked against it.
12924hardcode_automatic=$hardcode_automatic_CXX
12925
12926# Variables whose values should be saved in libtool wrapper scripts and
12927# restored at relink time.
12928variables_saved_for_relink="$variables_saved_for_relink"
12929
12930# Whether libtool must link a program against all its dependency libraries.
12931link_all_deplibs=$link_all_deplibs_CXX
12932
12933# Compile-time system search path for libraries
12934sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12935
12936# Run-time system search path for libraries
12937sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12938
12939# Fix the shell variable \$srcfile for the compiler.
12940fix_srcfile_path="$fix_srcfile_path_CXX"
12941
12942# Set to yes if exported symbols are required.
12943always_export_symbols=$always_export_symbols_CXX
12944
12945# The commands to list exported symbols.
12946export_symbols_cmds=$lt_export_symbols_cmds_CXX
12947
12948# The commands to extract the exported symbol list from a shared archive.
12949extract_expsyms_cmds=$lt_extract_expsyms_cmds
12950
12951# Symbols that should not be listed in the preloaded symbols.
12952exclude_expsyms=$lt_exclude_expsyms_CXX
12953
12954# Symbols that must always be exported.
12955include_expsyms=$lt_include_expsyms_CXX
12956
12957# ### END LIBTOOL TAG CONFIG: $tagname
12958
12959__EOF__
12960
12961
12962else
12963  # If there is no Makefile yet, we rely on a make rule to execute
12964  # `config.status --recheck' to rerun these tests and create the
12965  # libtool script then.
12966  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12967  if test -f "$ltmain_in"; then
12968    test -f Makefile && make "$ltmain"
12969  fi
12970fi
12971
12972
12973ac_ext=c
12974ac_cpp='$CPP $CPPFLAGS'
12975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12977ac_compiler_gnu=$ac_cv_c_compiler_gnu
12978
12979CC=$lt_save_CC
12980LDCXX=$LD
12981LD=$lt_save_LD
12982GCC=$lt_save_GCC
12983with_gnu_ldcxx=$with_gnu_ld
12984with_gnu_ld=$lt_save_with_gnu_ld
12985lt_cv_path_LDCXX=$lt_cv_path_LD
12986lt_cv_path_LD=$lt_save_path_LD
12987lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12988lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12989
12990	else
12991	  tagname=""
12992	fi
12993	;;
12994
12995      F77)
12996	if test -n "$F77" && test "X$F77" != "Xno"; then
12997
12998ac_ext=f
12999ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13000ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13001ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13002
13003
13004archive_cmds_need_lc_F77=no
13005allow_undefined_flag_F77=
13006always_export_symbols_F77=no
13007archive_expsym_cmds_F77=
13008export_dynamic_flag_spec_F77=
13009hardcode_direct_F77=no
13010hardcode_libdir_flag_spec_F77=
13011hardcode_libdir_flag_spec_ld_F77=
13012hardcode_libdir_separator_F77=
13013hardcode_minus_L_F77=no
13014hardcode_automatic_F77=no
13015module_cmds_F77=
13016module_expsym_cmds_F77=
13017link_all_deplibs_F77=unknown
13018old_archive_cmds_F77=$old_archive_cmds
13019no_undefined_flag_F77=
13020whole_archive_flag_spec_F77=
13021enable_shared_with_static_runtimes_F77=no
13022
13023# Source file extension for f77 test sources.
13024ac_ext=f
13025
13026# Object file extension for compiled f77 test sources.
13027objext=o
13028objext_F77=$objext
13029
13030# Code to be used in simple compile tests
13031lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13032
13033# Code to be used in simple link tests
13034lt_simple_link_test_code="      program t\n      end\n"
13035
13036# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13037
13038# If no C compiler was specified, use CC.
13039LTCC=${LTCC-"$CC"}
13040
13041# If no C compiler flags were specified, use CFLAGS.
13042LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13043
13044# Allow CC to be a program name with arguments.
13045compiler=$CC
13046
13047
13048# save warnings/boilerplate of simple test code
13049ac_outfile=conftest.$ac_objext
13050printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13051eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13052_lt_compiler_boilerplate=`cat conftest.err`
13053$rm conftest*
13054
13055ac_outfile=conftest.$ac_objext
13056printf "$lt_simple_link_test_code" >conftest.$ac_ext
13057eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13058_lt_linker_boilerplate=`cat conftest.err`
13059$rm conftest*
13060
13061
13062# Allow CC to be a program name with arguments.
13063lt_save_CC="$CC"
13064CC=${F77-"f77"}
13065compiler=$CC
13066compiler_F77=$CC
13067for cc_temp in $compiler""; do
13068  case $cc_temp in
13069    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13070    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13071    \-*) ;;
13072    *) break;;
13073  esac
13074done
13075cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13076
13077
13078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13079$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13081$as_echo "$can_build_shared" >&6; }
13082
13083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13084$as_echo_n "checking whether to build shared libraries... " >&6; }
13085test "$can_build_shared" = "no" && enable_shared=no
13086
13087# On AIX, shared libraries and static libraries use the same namespace, and
13088# are all built from PIC.
13089case $host_os in
13090aix3*)
13091  test "$enable_shared" = yes && enable_static=no
13092  if test -n "$RANLIB"; then
13093    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13094    postinstall_cmds='$RANLIB $lib'
13095  fi
13096  ;;
13097aix4* | aix5*)
13098  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13099    test "$enable_shared" = yes && enable_static=no
13100  fi
13101  ;;
13102esac
13103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13104$as_echo "$enable_shared" >&6; }
13105
13106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13107$as_echo_n "checking whether to build static libraries... " >&6; }
13108# Make sure either enable_shared or enable_static is yes.
13109test "$enable_shared" = yes || enable_static=yes
13110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13111$as_echo "$enable_static" >&6; }
13112
13113GCC_F77="$G77"
13114LD_F77="$LD"
13115
13116lt_prog_compiler_wl_F77=
13117lt_prog_compiler_pic_F77=
13118lt_prog_compiler_static_F77=
13119
13120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13121$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13122
13123  if test "$GCC" = yes; then
13124    lt_prog_compiler_wl_F77='-Wl,'
13125    lt_prog_compiler_static_F77='-static'
13126
13127    case $host_os in
13128      aix*)
13129      # All AIX code is PIC.
13130      if test "$host_cpu" = ia64; then
13131	# AIX 5 now supports IA64 processor
13132	lt_prog_compiler_static_F77='-Bstatic'
13133      fi
13134      ;;
13135
13136    amigaos*)
13137      # FIXME: we need at least 68020 code to build shared libraries, but
13138      # adding the `-m68020' flag to GCC prevents building anything better,
13139      # like `-m68040'.
13140      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13141      ;;
13142
13143    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13144      # PIC is the default for these OSes.
13145      ;;
13146
13147    mingw* | pw32* | os2*)
13148      # This hack is so that the source file can tell whether it is being
13149      # built for inclusion in a dll (and should export symbols for example).
13150      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13151      ;;
13152
13153    darwin* | rhapsody*)
13154      # PIC is the default on this platform
13155      # Common symbols not allowed in MH_DYLIB files
13156      lt_prog_compiler_pic_F77='-fno-common'
13157      ;;
13158
13159    interix3*)
13160      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13161      # Instead, we relocate shared libraries at runtime.
13162      ;;
13163
13164    msdosdjgpp*)
13165      # Just because we use GCC doesn't mean we suddenly get shared libraries
13166      # on systems that don't support them.
13167      lt_prog_compiler_can_build_shared_F77=no
13168      enable_shared=no
13169      ;;
13170
13171    sysv4*MP*)
13172      if test -d /usr/nec; then
13173	lt_prog_compiler_pic_F77=-Kconform_pic
13174      fi
13175      ;;
13176
13177    hpux*)
13178      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13179      # not for PA HP-UX.
13180      case $host_cpu in
13181      hppa*64*|ia64*)
13182	# +Z the default
13183	;;
13184      *)
13185	lt_prog_compiler_pic_F77='-fPIC'
13186	;;
13187      esac
13188      ;;
13189
13190    *)
13191      lt_prog_compiler_pic_F77='-fPIC'
13192      ;;
13193    esac
13194  else
13195    # PORTME Check for flag to pass linker flags through the system compiler.
13196    case $host_os in
13197    aix*)
13198      lt_prog_compiler_wl_F77='-Wl,'
13199      if test "$host_cpu" = ia64; then
13200	# AIX 5 now supports IA64 processor
13201	lt_prog_compiler_static_F77='-Bstatic'
13202      else
13203	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13204      fi
13205      ;;
13206      darwin*)
13207        # PIC is the default on this platform
13208        # Common symbols not allowed in MH_DYLIB files
13209       case $cc_basename in
13210         xlc*)
13211         lt_prog_compiler_pic_F77='-qnocommon'
13212         lt_prog_compiler_wl_F77='-Wl,'
13213         ;;
13214       esac
13215       ;;
13216
13217    mingw* | pw32* | os2*)
13218      # This hack is so that the source file can tell whether it is being
13219      # built for inclusion in a dll (and should export symbols for example).
13220      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13221      ;;
13222
13223    hpux9* | hpux10* | hpux11*)
13224      lt_prog_compiler_wl_F77='-Wl,'
13225      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13226      # not for PA HP-UX.
13227      case $host_cpu in
13228      hppa*64*|ia64*)
13229	# +Z the default
13230	;;
13231      *)
13232	lt_prog_compiler_pic_F77='+Z'
13233	;;
13234      esac
13235      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13236      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13237      ;;
13238
13239    irix5* | irix6* | nonstopux*)
13240      lt_prog_compiler_wl_F77='-Wl,'
13241      # PIC (with -KPIC) is the default.
13242      lt_prog_compiler_static_F77='-non_shared'
13243      ;;
13244
13245    newsos6)
13246      lt_prog_compiler_pic_F77='-KPIC'
13247      lt_prog_compiler_static_F77='-Bstatic'
13248      ;;
13249
13250    linux*)
13251      case $cc_basename in
13252      icc* | ecc*)
13253	lt_prog_compiler_wl_F77='-Wl,'
13254	lt_prog_compiler_pic_F77='-KPIC'
13255	lt_prog_compiler_static_F77='-static'
13256        ;;
13257      pgcc* | pgf77* | pgf90* | pgf95*)
13258        # Portland Group compilers (*not* the Pentium gcc compiler,
13259	# which looks to be a dead project)
13260	lt_prog_compiler_wl_F77='-Wl,'
13261	lt_prog_compiler_pic_F77='-fpic'
13262	lt_prog_compiler_static_F77='-Bstatic'
13263        ;;
13264      ccc*)
13265        lt_prog_compiler_wl_F77='-Wl,'
13266        # All Alpha code is PIC.
13267        lt_prog_compiler_static_F77='-non_shared'
13268        ;;
13269      esac
13270      ;;
13271
13272    osf3* | osf4* | osf5*)
13273      lt_prog_compiler_wl_F77='-Wl,'
13274      # All OSF/1 code is PIC.
13275      lt_prog_compiler_static_F77='-non_shared'
13276      ;;
13277
13278    solaris*)
13279      lt_prog_compiler_pic_F77='-KPIC'
13280      lt_prog_compiler_static_F77='-Bstatic'
13281      case $cc_basename in
13282      f77* | f90* | f95*)
13283	lt_prog_compiler_wl_F77='-Qoption ld ';;
13284      *)
13285	lt_prog_compiler_wl_F77='-Wl,';;
13286      esac
13287      ;;
13288
13289    sunos4*)
13290      lt_prog_compiler_wl_F77='-Qoption ld '
13291      lt_prog_compiler_pic_F77='-PIC'
13292      lt_prog_compiler_static_F77='-Bstatic'
13293      ;;
13294
13295    sysv4 | sysv4.2uw2* | sysv4.3*)
13296      lt_prog_compiler_wl_F77='-Wl,'
13297      lt_prog_compiler_pic_F77='-KPIC'
13298      lt_prog_compiler_static_F77='-Bstatic'
13299      ;;
13300
13301    sysv4*MP*)
13302      if test -d /usr/nec ;then
13303	lt_prog_compiler_pic_F77='-Kconform_pic'
13304	lt_prog_compiler_static_F77='-Bstatic'
13305      fi
13306      ;;
13307
13308    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13309      lt_prog_compiler_wl_F77='-Wl,'
13310      lt_prog_compiler_pic_F77='-KPIC'
13311      lt_prog_compiler_static_F77='-Bstatic'
13312      ;;
13313
13314    unicos*)
13315      lt_prog_compiler_wl_F77='-Wl,'
13316      lt_prog_compiler_can_build_shared_F77=no
13317      ;;
13318
13319    uts4*)
13320      lt_prog_compiler_pic_F77='-pic'
13321      lt_prog_compiler_static_F77='-Bstatic'
13322      ;;
13323
13324    *)
13325      lt_prog_compiler_can_build_shared_F77=no
13326      ;;
13327    esac
13328  fi
13329
13330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13331$as_echo "$lt_prog_compiler_pic_F77" >&6; }
13332
13333#
13334# Check to make sure the PIC flag actually works.
13335#
13336if test -n "$lt_prog_compiler_pic_F77"; then
13337
13338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13339$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13340if ${lt_prog_compiler_pic_works_F77+:} false; then :
13341  $as_echo_n "(cached) " >&6
13342else
13343  lt_prog_compiler_pic_works_F77=no
13344  ac_outfile=conftest.$ac_objext
13345   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13346   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13347   # Insert the option either (1) after the last *FLAGS variable, or
13348   # (2) before a word containing "conftest.", or (3) at the end.
13349   # Note that $ac_compile itself does not contain backslashes and begins
13350   # with a dollar sign (not a hyphen), so the echo should work correctly.
13351   # The option is referenced via a variable to avoid confusing sed.
13352   lt_compile=`echo "$ac_compile" | $SED \
13353   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13354   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13355   -e 's:$: $lt_compiler_flag:'`
13356   (eval echo "\"\$as_me:13356: $lt_compile\"" >&5)
13357   (eval "$lt_compile" 2>conftest.err)
13358   ac_status=$?
13359   cat conftest.err >&5
13360   echo "$as_me:13360: \$? = $ac_status" >&5
13361   if (exit $ac_status) && test -s "$ac_outfile"; then
13362     # The compiler can only warn and ignore the option if not recognized
13363     # So say no if there are warnings other than the usual output.
13364     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13365     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13366     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13367       lt_prog_compiler_pic_works_F77=yes
13368     fi
13369   fi
13370   $rm conftest*
13371
13372fi
13373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
13374$as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
13375
13376if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13377    case $lt_prog_compiler_pic_F77 in
13378     "" | " "*) ;;
13379     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13380     esac
13381else
13382    lt_prog_compiler_pic_F77=
13383     lt_prog_compiler_can_build_shared_F77=no
13384fi
13385
13386fi
13387case $host_os in
13388  # For platforms which do not support PIC, -DPIC is meaningless:
13389  *djgpp*)
13390    lt_prog_compiler_pic_F77=
13391    ;;
13392  *)
13393    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13394    ;;
13395esac
13396
13397#
13398# Check to make sure the static flag actually works.
13399#
13400wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13402$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13403if ${lt_prog_compiler_static_works_F77+:} false; then :
13404  $as_echo_n "(cached) " >&6
13405else
13406  lt_prog_compiler_static_works_F77=no
13407   save_LDFLAGS="$LDFLAGS"
13408   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13409   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13410   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13411     # The linker can only warn and ignore the option if not recognized
13412     # So say no if there are warnings
13413     if test -s conftest.err; then
13414       # Append any errors to the config.log.
13415       cat conftest.err 1>&5
13416       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13417       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13418       if diff conftest.exp conftest.er2 >/dev/null; then
13419         lt_prog_compiler_static_works_F77=yes
13420       fi
13421     else
13422       lt_prog_compiler_static_works_F77=yes
13423     fi
13424   fi
13425   $rm conftest*
13426   LDFLAGS="$save_LDFLAGS"
13427
13428fi
13429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_F77" >&5
13430$as_echo "$lt_prog_compiler_static_works_F77" >&6; }
13431
13432if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13433    :
13434else
13435    lt_prog_compiler_static_F77=
13436fi
13437
13438
13439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13440$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13441if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
13442  $as_echo_n "(cached) " >&6
13443else
13444  lt_cv_prog_compiler_c_o_F77=no
13445   $rm -r conftest 2>/dev/null
13446   mkdir conftest
13447   cd conftest
13448   mkdir out
13449   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13450
13451   lt_compiler_flag="-o out/conftest2.$ac_objext"
13452   # Insert the option either (1) after the last *FLAGS variable, or
13453   # (2) before a word containing "conftest.", or (3) at the end.
13454   # Note that $ac_compile itself does not contain backslashes and begins
13455   # with a dollar sign (not a hyphen), so the echo should work correctly.
13456   lt_compile=`echo "$ac_compile" | $SED \
13457   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13458   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13459   -e 's:$: $lt_compiler_flag:'`
13460   (eval echo "\"\$as_me:13460: $lt_compile\"" >&5)
13461   (eval "$lt_compile" 2>out/conftest.err)
13462   ac_status=$?
13463   cat out/conftest.err >&5
13464   echo "$as_me:13464: \$? = $ac_status" >&5
13465   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13466   then
13467     # The compiler can only warn and ignore the option if not recognized
13468     # So say no if there are warnings
13469     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13470     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13471     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13472       lt_cv_prog_compiler_c_o_F77=yes
13473     fi
13474   fi
13475   chmod u+w . 2>&5
13476   $rm conftest*
13477   # SGI C++ compiler will create directory out/ii_files/ for
13478   # template instantiation
13479   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13480   $rm out/* && rmdir out
13481   cd ..
13482   rmdir conftest
13483   $rm conftest*
13484
13485fi
13486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13487$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13488
13489
13490hard_links="nottested"
13491if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13492  # do not overwrite the value of need_locks provided by the user
13493  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13494$as_echo_n "checking if we can lock with hard links... " >&6; }
13495  hard_links=yes
13496  $rm conftest*
13497  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13498  touch conftest.a
13499  ln conftest.a conftest.b 2>&5 || hard_links=no
13500  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13502$as_echo "$hard_links" >&6; }
13503  if test "$hard_links" = no; then
13504    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13505$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13506    need_locks=warn
13507  fi
13508else
13509  need_locks=no
13510fi
13511
13512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13513$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13514
13515  runpath_var=
13516  allow_undefined_flag_F77=
13517  enable_shared_with_static_runtimes_F77=no
13518  archive_cmds_F77=
13519  archive_expsym_cmds_F77=
13520  old_archive_From_new_cmds_F77=
13521  old_archive_from_expsyms_cmds_F77=
13522  export_dynamic_flag_spec_F77=
13523  whole_archive_flag_spec_F77=
13524  thread_safe_flag_spec_F77=
13525  hardcode_libdir_flag_spec_F77=
13526  hardcode_libdir_flag_spec_ld_F77=
13527  hardcode_libdir_separator_F77=
13528  hardcode_direct_F77=no
13529  hardcode_minus_L_F77=no
13530  hardcode_shlibpath_var_F77=unsupported
13531  link_all_deplibs_F77=unknown
13532  hardcode_automatic_F77=no
13533  module_cmds_F77=
13534  module_expsym_cmds_F77=
13535  always_export_symbols_F77=no
13536  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13537  # include_expsyms should be a list of space-separated symbols to be *always*
13538  # included in the symbol list
13539  include_expsyms_F77=
13540  # exclude_expsyms can be an extended regexp of symbols to exclude
13541  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13542  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13543  # as well as any symbol that contains `d'.
13544  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13545  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13546  # platforms (ab)use it in PIC code, but their linkers get confused if
13547  # the symbol is explicitly referenced.  Since portable code cannot
13548  # rely on this symbol name, it's probably fine to never include it in
13549  # preloaded symbol tables.
13550  extract_expsyms_cmds=
13551  # Just being paranoid about ensuring that cc_basename is set.
13552  for cc_temp in $compiler""; do
13553  case $cc_temp in
13554    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13555    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13556    \-*) ;;
13557    *) break;;
13558  esac
13559done
13560cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13561
13562  case $host_os in
13563  cygwin* | mingw* | pw32*)
13564    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13565    # When not using gcc, we currently assume that we are using
13566    # Microsoft Visual C++.
13567    if test "$GCC" != yes; then
13568      with_gnu_ld=no
13569    fi
13570    ;;
13571  interix*)
13572    # we just hope/assume this is gcc and not c89 (= MSVC++)
13573    with_gnu_ld=yes
13574    ;;
13575  openbsd*)
13576    with_gnu_ld=no
13577    ;;
13578  esac
13579
13580  ld_shlibs_F77=yes
13581  if test "$with_gnu_ld" = yes; then
13582    # If archive_cmds runs LD, not CC, wlarc should be empty
13583    wlarc='${wl}'
13584
13585    # Set some defaults for GNU ld with shared library support. These
13586    # are reset later if shared libraries are not supported. Putting them
13587    # here allows them to be overridden if necessary.
13588    runpath_var=LD_RUN_PATH
13589    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13590    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13591    # ancient GNU ld didn't support --whole-archive et. al.
13592    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13593	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13594      else
13595  	whole_archive_flag_spec_F77=
13596    fi
13597    supports_anon_versioning=no
13598    case `$LD -v 2>/dev/null` in
13599      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13600      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13601      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13602      *\ 2.11.*) ;; # other 2.11 versions
13603      *) supports_anon_versioning=yes ;;
13604    esac
13605
13606    # See if GNU ld supports shared libraries.
13607    case $host_os in
13608    aix3* | aix4* | aix5*)
13609      # On AIX/PPC, the GNU linker is very broken
13610      if test "$host_cpu" != ia64; then
13611	ld_shlibs_F77=no
13612	cat <<EOF 1>&2
13613
13614*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13615*** to be unable to reliably create shared libraries on AIX.
13616*** Therefore, libtool is disabling shared libraries support.  If you
13617*** really care for shared libraries, you may want to modify your PATH
13618*** so that a non-GNU linker is found, and then restart.
13619
13620EOF
13621      fi
13622      ;;
13623
13624    amigaos*)
13625      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)'
13626      hardcode_libdir_flag_spec_F77='-L$libdir'
13627      hardcode_minus_L_F77=yes
13628
13629      # Samuel A. Falvo II <[email protected]> reports
13630      # that the semantics of dynamic libraries on AmigaOS, at least up
13631      # to version 4, is to share data among multiple programs linked
13632      # with the same dynamic library.  Since this doesn't match the
13633      # behavior of shared libraries on other platforms, we can't use
13634      # them.
13635      ld_shlibs_F77=no
13636      ;;
13637
13638    beos*)
13639      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13640	allow_undefined_flag_F77=unsupported
13641	# Joseph Beckenbach <[email protected]> says some releases of gcc
13642	# support --undefined.  This deserves some investigation.  FIXME
13643	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13644      else
13645	ld_shlibs_F77=no
13646      fi
13647      ;;
13648
13649    cygwin* | mingw* | pw32*)
13650      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13651      # as there is no search path for DLLs.
13652      hardcode_libdir_flag_spec_F77='-L$libdir'
13653      allow_undefined_flag_F77=unsupported
13654      always_export_symbols_F77=no
13655      enable_shared_with_static_runtimes_F77=yes
13656      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13657
13658      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13659        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13660	# If the export-symbols file already is a .def file (1st line
13661	# is EXPORTS), use it as is; otherwise, prepend...
13662	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13663	  cp $export_symbols $output_objdir/$soname.def;
13664	else
13665	  echo EXPORTS > $output_objdir/$soname.def;
13666	  cat $export_symbols >> $output_objdir/$soname.def;
13667	fi~
13668	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13669      else
13670	ld_shlibs_F77=no
13671      fi
13672      ;;
13673
13674    interix3*)
13675      hardcode_direct_F77=no
13676      hardcode_shlibpath_var_F77=no
13677      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13678      export_dynamic_flag_spec_F77='${wl}-E'
13679      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13680      # Instead, shared libraries are loaded at an image base (0x10000000 by
13681      # default) and relocated if they conflict, which is a slow very memory
13682      # consuming and fragmenting process.  To avoid this, we pick a random,
13683      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13684      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13685      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'
13686      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'
13687      ;;
13688
13689    linux*)
13690      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13691	tmp_addflag=
13692	case $cc_basename,$host_cpu in
13693	pgcc*)				# Portland Group C compiler
13694	  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'
13695	  tmp_addflag=' $pic_flag'
13696	  ;;
13697	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
13698	  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'
13699	  tmp_addflag=' $pic_flag -Mnomain' ;;
13700	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
13701	  tmp_addflag=' -i_dynamic' ;;
13702	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13703	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13704	ifc* | ifort*)			# Intel Fortran compiler
13705	  tmp_addflag=' -nofor_main' ;;
13706	esac
13707	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13708
13709	if test $supports_anon_versioning = yes; then
13710	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13711  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13712  $echo "local: *; };" >> $output_objdir/$libname.ver~
13713	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13714	fi
13715      else
13716	ld_shlibs_F77=no
13717      fi
13718      ;;
13719
13720    netbsd*)
13721      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13722	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13723	wlarc=
13724      else
13725	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13726	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13727      fi
13728      ;;
13729
13730    solaris*)
13731      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13732	ld_shlibs_F77=no
13733	cat <<EOF 1>&2
13734
13735*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13736*** create shared libraries on Solaris systems.  Therefore, libtool
13737*** is disabling shared libraries support.  We urge you to upgrade GNU
13738*** binutils to release 2.9.1 or newer.  Another option is to modify
13739*** your PATH or compiler configuration so that the native linker is
13740*** used, and then restart.
13741
13742EOF
13743      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13744	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13745	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13746      else
13747	ld_shlibs_F77=no
13748      fi
13749      ;;
13750
13751    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13752      case `$LD -v 2>&1` in
13753        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13754	ld_shlibs_F77=no
13755	cat <<_LT_EOF 1>&2
13756
13757*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13758*** reliably create shared libraries on SCO systems.  Therefore, libtool
13759*** is disabling shared libraries support.  We urge you to upgrade GNU
13760*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13761*** your PATH or compiler configuration so that the native linker is
13762*** used, and then restart.
13763
13764_LT_EOF
13765	;;
13766	*)
13767	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13768	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13769	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13770	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13771	  else
13772	    ld_shlibs_F77=no
13773	  fi
13774	;;
13775      esac
13776      ;;
13777
13778    sunos4*)
13779      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13780      wlarc=
13781      hardcode_direct_F77=yes
13782      hardcode_shlibpath_var_F77=no
13783      ;;
13784
13785    *)
13786      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13787	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13788	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13789      else
13790	ld_shlibs_F77=no
13791      fi
13792      ;;
13793    esac
13794
13795    if test "$ld_shlibs_F77" = no; then
13796      runpath_var=
13797      hardcode_libdir_flag_spec_F77=
13798      export_dynamic_flag_spec_F77=
13799      whole_archive_flag_spec_F77=
13800    fi
13801  else
13802    # PORTME fill in a description of your system's linker (not GNU ld)
13803    case $host_os in
13804    aix3*)
13805      allow_undefined_flag_F77=unsupported
13806      always_export_symbols_F77=yes
13807      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'
13808      # Note: this linker hardcodes the directories in LIBPATH if there
13809      # are no directories specified by -L.
13810      hardcode_minus_L_F77=yes
13811      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13812	# Neither direct hardcoding nor static linking is supported with a
13813	# broken collect2.
13814	hardcode_direct_F77=unsupported
13815      fi
13816      ;;
13817
13818    aix4* | aix5*)
13819      if test "$host_cpu" = ia64; then
13820	# On IA64, the linker does run time linking by default, so we don't
13821	# have to do anything special.
13822	aix_use_runtimelinking=no
13823	exp_sym_flag='-Bexport'
13824	no_entry_flag=""
13825      else
13826	# If we're using GNU nm, then we don't want the "-C" option.
13827	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13828	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13829	  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'
13830	else
13831	  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'
13832	fi
13833	aix_use_runtimelinking=no
13834
13835	# Test if we are trying to use run time linking or normal
13836	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13837	# need to do runtime linking.
13838	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13839	  for ld_flag in $LDFLAGS; do
13840  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13841  	    aix_use_runtimelinking=yes
13842  	    break
13843  	  fi
13844	  done
13845	  ;;
13846	esac
13847
13848	exp_sym_flag='-bexport'
13849	no_entry_flag='-bnoentry'
13850      fi
13851
13852      # When large executables or shared objects are built, AIX ld can
13853      # have problems creating the table of contents.  If linking a library
13854      # or program results in "error TOC overflow" add -mminimal-toc to
13855      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13856      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13857
13858      archive_cmds_F77=''
13859      hardcode_direct_F77=yes
13860      hardcode_libdir_separator_F77=':'
13861      link_all_deplibs_F77=yes
13862
13863      if test "$GCC" = yes; then
13864	case $host_os in aix4.[012]|aix4.[012].*)
13865	# We only want to do this on AIX 4.2 and lower, the check
13866	# below for broken collect2 doesn't work under 4.3+
13867	  collect2name=`${CC} -print-prog-name=collect2`
13868	  if test -f "$collect2name" && \
13869  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13870	  then
13871  	  # We have reworked collect2
13872  	  hardcode_direct_F77=yes
13873	  else
13874  	  # We have old collect2
13875  	  hardcode_direct_F77=unsupported
13876  	  # It fails to find uninstalled libraries when the uninstalled
13877  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13878  	  # to unsupported forces relinking
13879  	  hardcode_minus_L_F77=yes
13880  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13881  	  hardcode_libdir_separator_F77=
13882	  fi
13883	  ;;
13884	esac
13885	shared_flag='-shared'
13886	if test "$aix_use_runtimelinking" = yes; then
13887	  shared_flag="$shared_flag "'${wl}-G'
13888	fi
13889      else
13890	# not using gcc
13891	if test "$host_cpu" = ia64; then
13892  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13893  	# chokes on -Wl,-G. The following line is correct:
13894	  shared_flag='-G'
13895	else
13896	  if test "$aix_use_runtimelinking" = yes; then
13897	    shared_flag='${wl}-G'
13898	  else
13899	    shared_flag='${wl}-bM:SRE'
13900	  fi
13901	fi
13902      fi
13903
13904      # It seems that -bexpall does not export symbols beginning with
13905      # underscore (_), so it is better to generate a list of symbols to export.
13906      always_export_symbols_F77=yes
13907      if test "$aix_use_runtimelinking" = yes; then
13908	# Warning - without using the other runtime loading flags (-brtl),
13909	# -berok will link without error, but may produce a broken library.
13910	allow_undefined_flag_F77='-berok'
13911       # Determine the default libpath from the value encoded in an empty executable.
13912       cat > conftest.$ac_ext <<_ACEOF
13913      program main
13914
13915      end
13916_ACEOF
13917if ac_fn_f77_try_link "$LINENO"; then :
13918
13919aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13920}'`
13921# Check for a 64-bit object if we didn't find anything.
13922if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13923}'`; fi
13924fi
13925rm -f core conftest.err conftest.$ac_objext \
13926    conftest$ac_exeext conftest.$ac_ext
13927if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13928
13929       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13930	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"
13931       else
13932	if test "$host_cpu" = ia64; then
13933	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13934	  allow_undefined_flag_F77="-z nodefs"
13935	  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"
13936	else
13937	 # Determine the default libpath from the value encoded in an empty executable.
13938	 cat > conftest.$ac_ext <<_ACEOF
13939      program main
13940
13941      end
13942_ACEOF
13943if ac_fn_f77_try_link "$LINENO"; then :
13944
13945aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13946}'`
13947# Check for a 64-bit object if we didn't find anything.
13948if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13949}'`; fi
13950fi
13951rm -f core conftest.err conftest.$ac_objext \
13952    conftest$ac_exeext conftest.$ac_ext
13953if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13954
13955	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13956	  # Warning - without using the other run time loading flags,
13957	  # -berok will link without error, but may produce a broken library.
13958	  no_undefined_flag_F77=' ${wl}-bernotok'
13959	  allow_undefined_flag_F77=' ${wl}-berok'
13960	  # Exported symbols can be pulled into shared objects from archives
13961	  whole_archive_flag_spec_F77='$convenience'
13962	  archive_cmds_need_lc_F77=yes
13963	  # This is similar to how AIX traditionally builds its shared libraries.
13964	  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'
13965	fi
13966      fi
13967      ;;
13968
13969    amigaos*)
13970      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)'
13971      hardcode_libdir_flag_spec_F77='-L$libdir'
13972      hardcode_minus_L_F77=yes
13973      # see comment about different semantics on the GNU ld section
13974      ld_shlibs_F77=no
13975      ;;
13976
13977    bsdi[45]*)
13978      export_dynamic_flag_spec_F77=-rdynamic
13979      ;;
13980
13981    cygwin* | mingw* | pw32*)
13982      # When not using gcc, we currently assume that we are using
13983      # Microsoft Visual C++.
13984      # hardcode_libdir_flag_spec is actually meaningless, as there is
13985      # no search path for DLLs.
13986      hardcode_libdir_flag_spec_F77=' '
13987      allow_undefined_flag_F77=unsupported
13988      # Tell ltmain to make .lib files, not .a files.
13989      libext=lib
13990      # Tell ltmain to make .dll files, not .so files.
13991      shrext_cmds=".dll"
13992      # FIXME: Setting linknames here is a bad hack.
13993      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13994      # The linker will automatically build a .lib file if we build a DLL.
13995      old_archive_From_new_cmds_F77='true'
13996      # FIXME: Should let the user specify the lib program.
13997      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13998      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13999      enable_shared_with_static_runtimes_F77=yes
14000      ;;
14001
14002    darwin* | rhapsody*)
14003      case $host_os in
14004        rhapsody* | darwin1.[012])
14005         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14006         ;;
14007       *) # Darwin 1.3 on
14008         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14009           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14010         else
14011           case ${MACOSX_DEPLOYMENT_TARGET} in
14012             10.[012])
14013               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14014               ;;
14015             10.*)
14016               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14017               ;;
14018           esac
14019         fi
14020         ;;
14021      esac
14022      archive_cmds_need_lc_F77=no
14023      hardcode_direct_F77=no
14024      hardcode_automatic_F77=yes
14025      hardcode_shlibpath_var_F77=unsupported
14026      whole_archive_flag_spec_F77=''
14027      link_all_deplibs_F77=yes
14028    if test "$GCC" = yes ; then
14029    	output_verbose_link_cmd='echo'
14030        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14031      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14032      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14033      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14034      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}'
14035    else
14036      case $cc_basename in
14037        xlc*)
14038         output_verbose_link_cmd='echo'
14039         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14040         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14041          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14042         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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14043          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}'
14044          ;;
14045       *)
14046         ld_shlibs_F77=no
14047          ;;
14048      esac
14049    fi
14050      ;;
14051
14052    dgux*)
14053      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14054      hardcode_libdir_flag_spec_F77='-L$libdir'
14055      hardcode_shlibpath_var_F77=no
14056      ;;
14057
14058    freebsd1*)
14059      ld_shlibs_F77=no
14060      ;;
14061
14062    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14063    # support.  Future versions do this automatically, but an explicit c++rt0.o
14064    # does not break anything, and helps significantly (at the cost of a little
14065    # extra space).
14066    freebsd2.2*)
14067      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14068      hardcode_libdir_flag_spec_F77='-R$libdir'
14069      hardcode_direct_F77=yes
14070      hardcode_shlibpath_var_F77=no
14071      ;;
14072
14073    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14074    freebsd2*)
14075      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14076      hardcode_direct_F77=yes
14077      hardcode_minus_L_F77=yes
14078      hardcode_shlibpath_var_F77=no
14079      ;;
14080
14081    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14082    freebsd* | kfreebsd*-gnu | dragonfly*)
14083      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14084      hardcode_libdir_flag_spec_F77='-R$libdir'
14085      hardcode_direct_F77=yes
14086      hardcode_shlibpath_var_F77=no
14087      ;;
14088
14089    hpux9*)
14090      if test "$GCC" = yes; then
14091	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'
14092      else
14093	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'
14094      fi
14095      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14096      hardcode_libdir_separator_F77=:
14097      hardcode_direct_F77=yes
14098
14099      # hardcode_minus_L: Not really in the search PATH,
14100      # but as the default location of the library.
14101      hardcode_minus_L_F77=yes
14102      export_dynamic_flag_spec_F77='${wl}-E'
14103      ;;
14104
14105    hpux10*)
14106      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14107	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14108      else
14109	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14110      fi
14111      if test "$with_gnu_ld" = no; then
14112	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14113	hardcode_libdir_separator_F77=:
14114
14115	hardcode_direct_F77=yes
14116	export_dynamic_flag_spec_F77='${wl}-E'
14117
14118	# hardcode_minus_L: Not really in the search PATH,
14119	# but as the default location of the library.
14120	hardcode_minus_L_F77=yes
14121      fi
14122      ;;
14123
14124    hpux11*)
14125      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14126	case $host_cpu in
14127	hppa*64*)
14128	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14129	  ;;
14130	ia64*)
14131	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14132	  ;;
14133	*)
14134	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14135	  ;;
14136	esac
14137      else
14138	case $host_cpu in
14139	hppa*64*)
14140	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14141	  ;;
14142	ia64*)
14143	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14144	  ;;
14145	*)
14146	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14147	  ;;
14148	esac
14149      fi
14150      if test "$with_gnu_ld" = no; then
14151	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14152	hardcode_libdir_separator_F77=:
14153
14154	case $host_cpu in
14155	hppa*64*|ia64*)
14156	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14157	  hardcode_direct_F77=no
14158	  hardcode_shlibpath_var_F77=no
14159	  ;;
14160	*)
14161	  hardcode_direct_F77=yes
14162	  export_dynamic_flag_spec_F77='${wl}-E'
14163
14164	  # hardcode_minus_L: Not really in the search PATH,
14165	  # but as the default location of the library.
14166	  hardcode_minus_L_F77=yes
14167	  ;;
14168	esac
14169      fi
14170      ;;
14171
14172    irix5* | irix6* | nonstopux*)
14173      if test "$GCC" = yes; then
14174	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'
14175      else
14176	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'
14177	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14178      fi
14179      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14180      hardcode_libdir_separator_F77=:
14181      link_all_deplibs_F77=yes
14182      ;;
14183
14184    netbsd*)
14185      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14186	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14187      else
14188	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14189      fi
14190      hardcode_libdir_flag_spec_F77='-R$libdir'
14191      hardcode_direct_F77=yes
14192      hardcode_shlibpath_var_F77=no
14193      ;;
14194
14195    newsos6)
14196      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14197      hardcode_direct_F77=yes
14198      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14199      hardcode_libdir_separator_F77=:
14200      hardcode_shlibpath_var_F77=no
14201      ;;
14202
14203    openbsd*)
14204      hardcode_direct_F77=yes
14205      hardcode_shlibpath_var_F77=no
14206      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14207	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14208	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14209	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14210	export_dynamic_flag_spec_F77='${wl}-E'
14211      else
14212       case $host_os in
14213	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14214	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14215	   hardcode_libdir_flag_spec_F77='-R$libdir'
14216	   ;;
14217	 *)
14218	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14219	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14220	   ;;
14221       esac
14222      fi
14223      ;;
14224
14225    os2*)
14226      hardcode_libdir_flag_spec_F77='-L$libdir'
14227      hardcode_minus_L_F77=yes
14228      allow_undefined_flag_F77=unsupported
14229      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'
14230      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14231      ;;
14232
14233    osf3*)
14234      if test "$GCC" = yes; then
14235	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14236	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'
14237      else
14238	allow_undefined_flag_F77=' -expect_unresolved \*'
14239	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'
14240      fi
14241      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14242      hardcode_libdir_separator_F77=:
14243      ;;
14244
14245    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14246      if test "$GCC" = yes; then
14247	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14248	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'
14249	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14250      else
14251	allow_undefined_flag_F77=' -expect_unresolved \*'
14252	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'
14253	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~
14254	$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'
14255
14256	# Both c and cxx compiler support -rpath directly
14257	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14258      fi
14259      hardcode_libdir_separator_F77=:
14260      ;;
14261
14262    solaris*)
14263      no_undefined_flag_F77=' -z text'
14264      if test "$GCC" = yes; then
14265	wlarc='${wl}'
14266	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14267	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14268	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14269      else
14270	wlarc=''
14271	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14272	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14273  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14274      fi
14275      hardcode_libdir_flag_spec_F77='-R$libdir'
14276      hardcode_shlibpath_var_F77=no
14277      case $host_os in
14278      solaris2.[0-5] | solaris2.[0-5].*) ;;
14279      *)
14280 	# The compiler driver will combine linker options so we
14281 	# cannot just pass the convience library names through
14282 	# without $wl, iff we do not link with $LD.
14283 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14284 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14285 	case $wlarc in
14286 	'')
14287 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14288 	*)
14289 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14290 	esac ;;
14291      esac
14292      link_all_deplibs_F77=yes
14293      ;;
14294
14295    sunos4*)
14296      if test "x$host_vendor" = xsequent; then
14297	# Use $CC to link under sequent, because it throws in some extra .o
14298	# files that make .init and .fini sections work.
14299	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14300      else
14301	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14302      fi
14303      hardcode_libdir_flag_spec_F77='-L$libdir'
14304      hardcode_direct_F77=yes
14305      hardcode_minus_L_F77=yes
14306      hardcode_shlibpath_var_F77=no
14307      ;;
14308
14309    sysv4)
14310      case $host_vendor in
14311	sni)
14312	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14313	  hardcode_direct_F77=yes # is this really true???
14314	;;
14315	siemens)
14316	  ## LD is ld it makes a PLAMLIB
14317	  ## CC just makes a GrossModule.
14318	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14319	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14320	  hardcode_direct_F77=no
14321        ;;
14322	motorola)
14323	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14324	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14325	;;
14326      esac
14327      runpath_var='LD_RUN_PATH'
14328      hardcode_shlibpath_var_F77=no
14329      ;;
14330
14331    sysv4.3*)
14332      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14333      hardcode_shlibpath_var_F77=no
14334      export_dynamic_flag_spec_F77='-Bexport'
14335      ;;
14336
14337    sysv4*MP*)
14338      if test -d /usr/nec; then
14339	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14340	hardcode_shlibpath_var_F77=no
14341	runpath_var=LD_RUN_PATH
14342	hardcode_runpath_var=yes
14343	ld_shlibs_F77=yes
14344      fi
14345      ;;
14346
14347    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14348      no_undefined_flag_F77='${wl}-z,text'
14349      archive_cmds_need_lc_F77=no
14350      hardcode_shlibpath_var_F77=no
14351      runpath_var='LD_RUN_PATH'
14352
14353      if test "$GCC" = yes; then
14354	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14355	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14356      else
14357	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14358	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14359      fi
14360      ;;
14361
14362    sysv5* | sco3.2v5* | sco5v6*)
14363      # Note: We can NOT use -z defs as we might desire, because we do not
14364      # link with -lc, and that would cause any symbols used from libc to
14365      # always be unresolved, which means just about no library would
14366      # ever link correctly.  If we're not using GNU ld we use -z text
14367      # though, which does catch some bad symbols but isn't as heavy-handed
14368      # as -z defs.
14369      no_undefined_flag_F77='${wl}-z,text'
14370      allow_undefined_flag_F77='${wl}-z,nodefs'
14371      archive_cmds_need_lc_F77=no
14372      hardcode_shlibpath_var_F77=no
14373      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14374      hardcode_libdir_separator_F77=':'
14375      link_all_deplibs_F77=yes
14376      export_dynamic_flag_spec_F77='${wl}-Bexport'
14377      runpath_var='LD_RUN_PATH'
14378
14379      if test "$GCC" = yes; then
14380	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14381	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14382      else
14383	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14384	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14385      fi
14386      ;;
14387
14388    uts4*)
14389      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14390      hardcode_libdir_flag_spec_F77='-L$libdir'
14391      hardcode_shlibpath_var_F77=no
14392      ;;
14393
14394    *)
14395      ld_shlibs_F77=no
14396      ;;
14397    esac
14398  fi
14399
14400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14401$as_echo "$ld_shlibs_F77" >&6; }
14402test "$ld_shlibs_F77" = no && can_build_shared=no
14403
14404#
14405# Do we need to explicitly link libc?
14406#
14407case "x$archive_cmds_need_lc_F77" in
14408x|xyes)
14409  # Assume -lc should be added
14410  archive_cmds_need_lc_F77=yes
14411
14412  if test "$enable_shared" = yes && test "$GCC" = yes; then
14413    case $archive_cmds_F77 in
14414    *'~'*)
14415      # FIXME: we may have to deal with multi-command sequences.
14416      ;;
14417    '$CC '*)
14418      # Test whether the compiler implicitly links with -lc since on some
14419      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14420      # to ld, don't add -lc before -lgcc.
14421      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14422$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14423      $rm conftest*
14424      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14425
14426      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14427  (eval $ac_compile) 2>&5
14428  ac_status=$?
14429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14430  test $ac_status = 0; } 2>conftest.err; then
14431        soname=conftest
14432        lib=conftest
14433        libobjs=conftest.$ac_objext
14434        deplibs=
14435        wl=$lt_prog_compiler_wl_F77
14436	pic_flag=$lt_prog_compiler_pic_F77
14437        compiler_flags=-v
14438        linker_flags=-v
14439        verstring=
14440        output_objdir=.
14441        libname=conftest
14442        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14443        allow_undefined_flag_F77=
14444        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14445  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14446  ac_status=$?
14447  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14448  test $ac_status = 0; }
14449        then
14450	  archive_cmds_need_lc_F77=no
14451        else
14452	  archive_cmds_need_lc_F77=yes
14453        fi
14454        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14455      else
14456        cat conftest.err 1>&5
14457      fi
14458      $rm conftest*
14459      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
14460$as_echo "$archive_cmds_need_lc_F77" >&6; }
14461      ;;
14462    esac
14463  fi
14464  ;;
14465esac
14466
14467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14468$as_echo_n "checking dynamic linker characteristics... " >&6; }
14469library_names_spec=
14470libname_spec='lib$name'
14471soname_spec=
14472shrext_cmds=".so"
14473postinstall_cmds=
14474postuninstall_cmds=
14475finish_cmds=
14476finish_eval=
14477shlibpath_var=
14478shlibpath_overrides_runpath=unknown
14479version_type=none
14480dynamic_linker="$host_os ld.so"
14481sys_lib_dlsearch_path_spec="/lib /usr/lib"
14482if test "$GCC" = yes; then
14483  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14484  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14485    # if the path contains ";" then we assume it to be the separator
14486    # otherwise default to the standard path separator (i.e. ":") - it is
14487    # assumed that no part of a normal pathname contains ";" but that should
14488    # okay in the real world where ";" in dirpaths is itself problematic.
14489    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14490  else
14491    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14492  fi
14493else
14494  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14495fi
14496need_lib_prefix=unknown
14497hardcode_into_libs=no
14498
14499# when you set need_version to no, make sure it does not cause -set_version
14500# flags to be left without arguments
14501need_version=unknown
14502
14503case $host_os in
14504aix3*)
14505  version_type=linux
14506  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14507  shlibpath_var=LIBPATH
14508
14509  # AIX 3 has no versioning support, so we append a major version to the name.
14510  soname_spec='${libname}${release}${shared_ext}$major'
14511  ;;
14512
14513aix4* | aix5*)
14514  version_type=linux
14515  need_lib_prefix=no
14516  need_version=no
14517  hardcode_into_libs=yes
14518  if test "$host_cpu" = ia64; then
14519    # AIX 5 supports IA64
14520    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14521    shlibpath_var=LD_LIBRARY_PATH
14522  else
14523    # With GCC up to 2.95.x, collect2 would create an import file
14524    # for dependence libraries.  The import file would start with
14525    # the line `#! .'.  This would cause the generated library to
14526    # depend on `.', always an invalid library.  This was fixed in
14527    # development snapshots of GCC prior to 3.0.
14528    case $host_os in
14529      aix4 | aix4.[01] | aix4.[01].*)
14530      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14531	   echo ' yes '
14532	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14533	:
14534      else
14535	can_build_shared=no
14536      fi
14537      ;;
14538    esac
14539    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14540    # soname into executable. Probably we can add versioning support to
14541    # collect2, so additional links can be useful in future.
14542    if test "$aix_use_runtimelinking" = yes; then
14543      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14544      # instead of lib<name>.a to let people know that these are not
14545      # typical AIX shared libraries.
14546      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14547    else
14548      # We preserve .a as extension for shared libraries through AIX4.2
14549      # and later when we are not doing run time linking.
14550      library_names_spec='${libname}${release}.a $libname.a'
14551      soname_spec='${libname}${release}${shared_ext}$major'
14552    fi
14553    shlibpath_var=LIBPATH
14554  fi
14555  ;;
14556
14557amigaos*)
14558  library_names_spec='$libname.ixlibrary $libname.a'
14559  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14560  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'
14561  ;;
14562
14563beos*)
14564  library_names_spec='${libname}${shared_ext}'
14565  dynamic_linker="$host_os ld.so"
14566  shlibpath_var=LIBRARY_PATH
14567  ;;
14568
14569bsdi[45]*)
14570  version_type=linux
14571  need_version=no
14572  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14573  soname_spec='${libname}${release}${shared_ext}$major'
14574  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14575  shlibpath_var=LD_LIBRARY_PATH
14576  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14577  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14578  # the default ld.so.conf also contains /usr/contrib/lib and
14579  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14580  # libtool to hard-code these into programs
14581  ;;
14582
14583cygwin* | mingw* | pw32*)
14584  version_type=windows
14585  shrext_cmds=".dll"
14586  need_version=no
14587  need_lib_prefix=no
14588
14589  case $GCC,$host_os in
14590  yes,cygwin* | yes,mingw* | yes,pw32*)
14591    library_names_spec='$libname.dll.a'
14592    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14593    postinstall_cmds='base_file=`basename \${file}`~
14594      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14595      dldir=$destdir/`dirname \$dlpath`~
14596      test -d \$dldir || mkdir -p \$dldir~
14597      $install_prog $dir/$dlname \$dldir/$dlname~
14598      chmod a+x \$dldir/$dlname'
14599    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14600      dlpath=$dir/\$dldll~
14601       $rm \$dlpath'
14602    shlibpath_overrides_runpath=yes
14603
14604    case $host_os in
14605    cygwin*)
14606      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14607      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14608      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14609      ;;
14610    mingw*)
14611      # MinGW DLLs use traditional 'lib' prefix
14612      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14613      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14614      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14615        # It is most probably a Windows format PATH printed by
14616        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14617        # path with ; separators, and with drive letters. We can handle the
14618        # drive letters (cygwin fileutils understands them), so leave them,
14619        # especially as we might pass files found there to a mingw objdump,
14620        # which wouldn't understand a cygwinified path. Ahh.
14621        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14622      else
14623        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14624      fi
14625      ;;
14626    pw32*)
14627      # pw32 DLLs use 'pw' prefix rather than 'lib'
14628      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14629      ;;
14630    esac
14631    ;;
14632
14633  *)
14634    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14635    ;;
14636  esac
14637  dynamic_linker='Win32 ld.exe'
14638  # FIXME: first we should search . and the directory the executable is in
14639  shlibpath_var=PATH
14640  ;;
14641
14642darwin* | rhapsody*)
14643  dynamic_linker="$host_os dyld"
14644  version_type=darwin
14645  need_lib_prefix=no
14646  need_version=no
14647  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14648  soname_spec='${libname}${release}${major}$shared_ext'
14649  shlibpath_overrides_runpath=yes
14650  shlibpath_var=DYLD_LIBRARY_PATH
14651  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14652  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14653  if test "$GCC" = yes; then
14654    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14655  else
14656    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14657  fi
14658  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14659  ;;
14660
14661dgux*)
14662  version_type=linux
14663  need_lib_prefix=no
14664  need_version=no
14665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14666  soname_spec='${libname}${release}${shared_ext}$major'
14667  shlibpath_var=LD_LIBRARY_PATH
14668  ;;
14669
14670freebsd1*)
14671  dynamic_linker=no
14672  ;;
14673
14674kfreebsd*-gnu)
14675  version_type=linux
14676  need_lib_prefix=no
14677  need_version=no
14678  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14679  soname_spec='${libname}${release}${shared_ext}$major'
14680  shlibpath_var=LD_LIBRARY_PATH
14681  shlibpath_overrides_runpath=no
14682  hardcode_into_libs=yes
14683  dynamic_linker='GNU ld.so'
14684  ;;
14685
14686freebsd* | dragonfly*)
14687  # DragonFly does not have aout.  When/if they implement a new
14688  # versioning mechanism, adjust this.
14689  if test -x /usr/bin/objformat; then
14690    objformat=`/usr/bin/objformat`
14691  else
14692    case $host_os in
14693    freebsd[123]*) objformat=aout ;;
14694    *) objformat=elf ;;
14695    esac
14696  fi
14697  version_type=freebsd-$objformat
14698  case $version_type in
14699    freebsd-elf*)
14700      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14701      need_version=no
14702      need_lib_prefix=no
14703      ;;
14704    freebsd-*)
14705      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14706      need_version=yes
14707      ;;
14708  esac
14709  shlibpath_var=LD_LIBRARY_PATH
14710  case $host_os in
14711  freebsd2*)
14712    shlibpath_overrides_runpath=yes
14713    ;;
14714  freebsd3.[01]* | freebsdelf3.[01]*)
14715    shlibpath_overrides_runpath=yes
14716    hardcode_into_libs=yes
14717    ;;
14718  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14719  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14720    shlibpath_overrides_runpath=no
14721    hardcode_into_libs=yes
14722    ;;
14723  freebsd*) # from 4.6 on
14724    shlibpath_overrides_runpath=yes
14725    hardcode_into_libs=yes
14726    ;;
14727  esac
14728  ;;
14729
14730gnu*)
14731  version_type=linux
14732  need_lib_prefix=no
14733  need_version=no
14734  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14735  soname_spec='${libname}${release}${shared_ext}$major'
14736  shlibpath_var=LD_LIBRARY_PATH
14737  hardcode_into_libs=yes
14738  ;;
14739
14740hpux9* | hpux10* | hpux11*)
14741  # Give a soname corresponding to the major version so that dld.sl refuses to
14742  # link against other versions.
14743  version_type=sunos
14744  need_lib_prefix=no
14745  need_version=no
14746  case $host_cpu in
14747  ia64*)
14748    shrext_cmds='.so'
14749    hardcode_into_libs=yes
14750    dynamic_linker="$host_os dld.so"
14751    shlibpath_var=LD_LIBRARY_PATH
14752    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14753    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14754    soname_spec='${libname}${release}${shared_ext}$major'
14755    if test "X$HPUX_IA64_MODE" = X32; then
14756      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14757    else
14758      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14759    fi
14760    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14761    ;;
14762   hppa*64*)
14763     shrext_cmds='.sl'
14764     hardcode_into_libs=yes
14765     dynamic_linker="$host_os dld.sl"
14766     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14767     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14768     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14769     soname_spec='${libname}${release}${shared_ext}$major'
14770     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14771     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14772     ;;
14773   *)
14774    shrext_cmds='.sl'
14775    dynamic_linker="$host_os dld.sl"
14776    shlibpath_var=SHLIB_PATH
14777    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14778    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14779    soname_spec='${libname}${release}${shared_ext}$major'
14780    ;;
14781  esac
14782  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14783  postinstall_cmds='chmod 555 $lib'
14784  ;;
14785
14786interix3*)
14787  version_type=linux
14788  need_lib_prefix=no
14789  need_version=no
14790  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14791  soname_spec='${libname}${release}${shared_ext}$major'
14792  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14793  shlibpath_var=LD_LIBRARY_PATH
14794  shlibpath_overrides_runpath=no
14795  hardcode_into_libs=yes
14796  ;;
14797
14798irix5* | irix6* | nonstopux*)
14799  case $host_os in
14800    nonstopux*) version_type=nonstopux ;;
14801    *)
14802	if test "$lt_cv_prog_gnu_ld" = yes; then
14803		version_type=linux
14804	else
14805		version_type=irix
14806	fi ;;
14807  esac
14808  need_lib_prefix=no
14809  need_version=no
14810  soname_spec='${libname}${release}${shared_ext}$major'
14811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14812  case $host_os in
14813  irix5* | nonstopux*)
14814    libsuff= shlibsuff=
14815    ;;
14816  *)
14817    case $LD in # libtool.m4 will add one of these switches to LD
14818    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14819      libsuff= shlibsuff= libmagic=32-bit;;
14820    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14821      libsuff=32 shlibsuff=N32 libmagic=N32;;
14822    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14823      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14824    *) libsuff= shlibsuff= libmagic=never-match;;
14825    esac
14826    ;;
14827  esac
14828  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14829  shlibpath_overrides_runpath=no
14830  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14831  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14832  hardcode_into_libs=yes
14833  ;;
14834
14835# No shared lib support for Linux oldld, aout, or coff.
14836linux*oldld* | linux*aout* | linux*coff*)
14837  dynamic_linker=no
14838  ;;
14839
14840# This must be Linux ELF.
14841linux*)
14842  version_type=linux
14843  need_lib_prefix=no
14844  need_version=no
14845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14846  soname_spec='${libname}${release}${shared_ext}$major'
14847  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14848  shlibpath_var=LD_LIBRARY_PATH
14849  shlibpath_overrides_runpath=no
14850  # This implies no fast_install, which is unacceptable.
14851  # Some rework will be needed to allow for fast_install
14852  # before this can be enabled.
14853  hardcode_into_libs=yes
14854
14855  # find out which ABI we are using
14856  libsuff=
14857  case "$host_cpu" in
14858  x86_64*|s390x*|powerpc64*)
14859    echo '#line 14859 "configure"' > conftest.$ac_ext
14860    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14861  (eval $ac_compile) 2>&5
14862  ac_status=$?
14863  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14864  test $ac_status = 0; }; then
14865      case `/usr/bin/file conftest.$ac_objext` in
14866      *64-bit*)
14867        libsuff=64
14868        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14869        ;;
14870      esac
14871    fi
14872    rm -rf conftest*
14873    ;;
14874  esac
14875
14876  # Append ld.so.conf contents to the search path
14877  if test -f /etc/ld.so.conf; then
14878    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/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14879    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14880  fi
14881
14882  # We used to test for /lib/ld.so.1 and disable shared libraries on
14883  # powerpc, because MkLinux only supported shared libraries with the
14884  # GNU dynamic linker.  Since this was broken with cross compilers,
14885  # most powerpc-linux boxes support dynamic linking these days and
14886  # people can always --disable-shared, the test was removed, and we
14887  # assume the GNU/Linux dynamic linker is in use.
14888  dynamic_linker='GNU/Linux ld.so'
14889  ;;
14890
14891knetbsd*-gnu)
14892  version_type=linux
14893  need_lib_prefix=no
14894  need_version=no
14895  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14896  soname_spec='${libname}${release}${shared_ext}$major'
14897  shlibpath_var=LD_LIBRARY_PATH
14898  shlibpath_overrides_runpath=no
14899  hardcode_into_libs=yes
14900  dynamic_linker='GNU ld.so'
14901  ;;
14902
14903netbsd*)
14904  version_type=sunos
14905  need_lib_prefix=no
14906  need_version=no
14907  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14908    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14909    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14910    dynamic_linker='NetBSD (a.out) ld.so'
14911  else
14912    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14913    soname_spec='${libname}${release}${shared_ext}$major'
14914    dynamic_linker='NetBSD ld.elf_so'
14915  fi
14916  shlibpath_var=LD_LIBRARY_PATH
14917  shlibpath_overrides_runpath=yes
14918  hardcode_into_libs=yes
14919  ;;
14920
14921newsos6)
14922  version_type=linux
14923  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14924  shlibpath_var=LD_LIBRARY_PATH
14925  shlibpath_overrides_runpath=yes
14926  ;;
14927
14928nto-qnx*)
14929  version_type=linux
14930  need_lib_prefix=no
14931  need_version=no
14932  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14933  soname_spec='${libname}${release}${shared_ext}$major'
14934  shlibpath_var=LD_LIBRARY_PATH
14935  shlibpath_overrides_runpath=yes
14936  ;;
14937
14938openbsd*)
14939  version_type=sunos
14940  sys_lib_dlsearch_path_spec="/usr/lib"
14941  need_lib_prefix=no
14942  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14943  case $host_os in
14944    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14945    *)                         need_version=no  ;;
14946  esac
14947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14948  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14949  shlibpath_var=LD_LIBRARY_PATH
14950  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14951    case $host_os in
14952      openbsd2.[89] | openbsd2.[89].*)
14953	shlibpath_overrides_runpath=no
14954	;;
14955      *)
14956	shlibpath_overrides_runpath=yes
14957	;;
14958      esac
14959  else
14960    shlibpath_overrides_runpath=yes
14961  fi
14962  ;;
14963
14964os2*)
14965  libname_spec='$name'
14966  shrext_cmds=".dll"
14967  need_lib_prefix=no
14968  library_names_spec='$libname${shared_ext} $libname.a'
14969  dynamic_linker='OS/2 ld.exe'
14970  shlibpath_var=LIBPATH
14971  ;;
14972
14973osf3* | osf4* | osf5*)
14974  version_type=osf
14975  need_lib_prefix=no
14976  need_version=no
14977  soname_spec='${libname}${release}${shared_ext}$major'
14978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14979  shlibpath_var=LD_LIBRARY_PATH
14980  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14981  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14982  ;;
14983
14984solaris*)
14985  version_type=linux
14986  need_lib_prefix=no
14987  need_version=no
14988  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14989  soname_spec='${libname}${release}${shared_ext}$major'
14990  shlibpath_var=LD_LIBRARY_PATH
14991  shlibpath_overrides_runpath=yes
14992  hardcode_into_libs=yes
14993  # ldd complains unless libraries are executable
14994  postinstall_cmds='chmod +x $lib'
14995  ;;
14996
14997sunos4*)
14998  version_type=sunos
14999  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15000  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15001  shlibpath_var=LD_LIBRARY_PATH
15002  shlibpath_overrides_runpath=yes
15003  if test "$with_gnu_ld" = yes; then
15004    need_lib_prefix=no
15005  fi
15006  need_version=yes
15007  ;;
15008
15009sysv4 | sysv4.3*)
15010  version_type=linux
15011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15012  soname_spec='${libname}${release}${shared_ext}$major'
15013  shlibpath_var=LD_LIBRARY_PATH
15014  case $host_vendor in
15015    sni)
15016      shlibpath_overrides_runpath=no
15017      need_lib_prefix=no
15018      export_dynamic_flag_spec='${wl}-Blargedynsym'
15019      runpath_var=LD_RUN_PATH
15020      ;;
15021    siemens)
15022      need_lib_prefix=no
15023      ;;
15024    motorola)
15025      need_lib_prefix=no
15026      need_version=no
15027      shlibpath_overrides_runpath=no
15028      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15029      ;;
15030  esac
15031  ;;
15032
15033sysv4*MP*)
15034  if test -d /usr/nec ;then
15035    version_type=linux
15036    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15037    soname_spec='$libname${shared_ext}.$major'
15038    shlibpath_var=LD_LIBRARY_PATH
15039  fi
15040  ;;
15041
15042sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15043  version_type=freebsd-elf
15044  need_lib_prefix=no
15045  need_version=no
15046  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15047  soname_spec='${libname}${release}${shared_ext}$major'
15048  shlibpath_var=LD_LIBRARY_PATH
15049  hardcode_into_libs=yes
15050  if test "$with_gnu_ld" = yes; then
15051    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15052    shlibpath_overrides_runpath=no
15053  else
15054    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15055    shlibpath_overrides_runpath=yes
15056    case $host_os in
15057      sco3.2v5*)
15058        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15059	;;
15060    esac
15061  fi
15062  sys_lib_dlsearch_path_spec='/usr/lib'
15063  ;;
15064
15065uts4*)
15066  version_type=linux
15067  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15068  soname_spec='${libname}${release}${shared_ext}$major'
15069  shlibpath_var=LD_LIBRARY_PATH
15070  ;;
15071
15072*)
15073  dynamic_linker=no
15074  ;;
15075esac
15076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15077$as_echo "$dynamic_linker" >&6; }
15078test "$dynamic_linker" = no && can_build_shared=no
15079
15080variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15081if test "$GCC" = yes; then
15082  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15083fi
15084
15085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15086$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15087hardcode_action_F77=
15088if test -n "$hardcode_libdir_flag_spec_F77" || \
15089   test -n "$runpath_var_F77" || \
15090   test "X$hardcode_automatic_F77" = "Xyes" ; then
15091
15092  # We can hardcode non-existant directories.
15093  if test "$hardcode_direct_F77" != no &&
15094     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15095     # have to relink, otherwise we might link with an installed library
15096     # when we should be linking with a yet-to-be-installed one
15097     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15098     test "$hardcode_minus_L_F77" != no; then
15099    # Linking always hardcodes the temporary library directory.
15100    hardcode_action_F77=relink
15101  else
15102    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15103    hardcode_action_F77=immediate
15104  fi
15105else
15106  # We cannot hardcode anything, or else we can only hardcode existing
15107  # directories.
15108  hardcode_action_F77=unsupported
15109fi
15110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15111$as_echo "$hardcode_action_F77" >&6; }
15112
15113if test "$hardcode_action_F77" = relink; then
15114  # Fast installation is not supported
15115  enable_fast_install=no
15116elif test "$shlibpath_overrides_runpath" = yes ||
15117     test "$enable_shared" = no; then
15118  # Fast installation is not necessary
15119  enable_fast_install=needless
15120fi
15121
15122
15123# The else clause should only fire when bootstrapping the
15124# libtool distribution, otherwise you forgot to ship ltmain.sh
15125# with your package, and you will get complaints that there are
15126# no rules to generate ltmain.sh.
15127if test -f "$ltmain"; then
15128  # See if we are running on zsh, and set the options which allow our commands through
15129  # without removal of \ escapes.
15130  if test -n "${ZSH_VERSION+set}" ; then
15131    setopt NO_GLOB_SUBST
15132  fi
15133  # Now quote all the things that may contain metacharacters while being
15134  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15135  # variables and quote the copies for generation of the libtool script.
15136  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15137    SED SHELL STRIP \
15138    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15139    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15140    deplibs_check_method reload_flag reload_cmds need_locks \
15141    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15142    lt_cv_sys_global_symbol_to_c_name_address \
15143    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15144    old_postinstall_cmds old_postuninstall_cmds \
15145    compiler_F77 \
15146    CC_F77 \
15147    LD_F77 \
15148    lt_prog_compiler_wl_F77 \
15149    lt_prog_compiler_pic_F77 \
15150    lt_prog_compiler_static_F77 \
15151    lt_prog_compiler_no_builtin_flag_F77 \
15152    export_dynamic_flag_spec_F77 \
15153    thread_safe_flag_spec_F77 \
15154    whole_archive_flag_spec_F77 \
15155    enable_shared_with_static_runtimes_F77 \
15156    old_archive_cmds_F77 \
15157    old_archive_from_new_cmds_F77 \
15158    predep_objects_F77 \
15159    postdep_objects_F77 \
15160    predeps_F77 \
15161    postdeps_F77 \
15162    compiler_lib_search_path_F77 \
15163    archive_cmds_F77 \
15164    archive_expsym_cmds_F77 \
15165    postinstall_cmds_F77 \
15166    postuninstall_cmds_F77 \
15167    old_archive_from_expsyms_cmds_F77 \
15168    allow_undefined_flag_F77 \
15169    no_undefined_flag_F77 \
15170    export_symbols_cmds_F77 \
15171    hardcode_libdir_flag_spec_F77 \
15172    hardcode_libdir_flag_spec_ld_F77 \
15173    hardcode_libdir_separator_F77 \
15174    hardcode_automatic_F77 \
15175    module_cmds_F77 \
15176    module_expsym_cmds_F77 \
15177    lt_cv_prog_compiler_c_o_F77 \
15178    exclude_expsyms_F77 \
15179    include_expsyms_F77; do
15180
15181    case $var in
15182    old_archive_cmds_F77 | \
15183    old_archive_from_new_cmds_F77 | \
15184    archive_cmds_F77 | \
15185    archive_expsym_cmds_F77 | \
15186    module_cmds_F77 | \
15187    module_expsym_cmds_F77 | \
15188    old_archive_from_expsyms_cmds_F77 | \
15189    export_symbols_cmds_F77 | \
15190    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15191    postinstall_cmds | postuninstall_cmds | \
15192    old_postinstall_cmds | old_postuninstall_cmds | \
15193    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15194      # Double-quote double-evaled strings.
15195      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15196      ;;
15197    *)
15198      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15199      ;;
15200    esac
15201  done
15202
15203  case $lt_echo in
15204  *'\$0 --fallback-echo"')
15205    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15206    ;;
15207  esac
15208
15209cfgfile="$ofile"
15210
15211  cat <<__EOF__ >> "$cfgfile"
15212# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15213
15214# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15215
15216# Shell to use when invoking shell scripts.
15217SHELL=$lt_SHELL
15218
15219# Whether or not to build shared libraries.
15220build_libtool_libs=$enable_shared
15221
15222# Whether or not to build static libraries.
15223build_old_libs=$enable_static
15224
15225# Whether or not to add -lc for building shared libraries.
15226build_libtool_need_lc=$archive_cmds_need_lc_F77
15227
15228# Whether or not to disallow shared libs when runtime libs are static
15229allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15230
15231# Whether or not to optimize for fast installation.
15232fast_install=$enable_fast_install
15233
15234# The host system.
15235host_alias=$host_alias
15236host=$host
15237host_os=$host_os
15238
15239# The build system.
15240build_alias=$build_alias
15241build=$build
15242build_os=$build_os
15243
15244# An echo program that does not interpret backslashes.
15245echo=$lt_echo
15246
15247# The archiver.
15248AR=$lt_AR
15249AR_FLAGS=$lt_AR_FLAGS
15250
15251# A C compiler.
15252LTCC=$lt_LTCC
15253
15254# LTCC compiler flags.
15255LTCFLAGS=$lt_LTCFLAGS
15256
15257# A language-specific compiler.
15258CC=$lt_compiler_F77
15259
15260# Is the compiler the GNU C compiler?
15261with_gcc=$GCC_F77
15262
15263gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15264gcc_ver=\`gcc -dumpversion\`
15265
15266# An ERE matcher.
15267EGREP=$lt_EGREP
15268
15269# The linker used to build libraries.
15270LD=$lt_LD_F77
15271
15272# Whether we need hard or soft links.
15273LN_S=$lt_LN_S
15274
15275# A BSD-compatible nm program.
15276NM=$lt_NM
15277
15278# A symbol stripping program
15279STRIP=$lt_STRIP
15280
15281# Used to examine libraries when file_magic_cmd begins "file"
15282MAGIC_CMD=$MAGIC_CMD
15283
15284# Used on cygwin: DLL creation program.
15285DLLTOOL="$DLLTOOL"
15286
15287# Used on cygwin: object dumper.
15288OBJDUMP="$OBJDUMP"
15289
15290# Used on cygwin: assembler.
15291AS="$AS"
15292
15293# The name of the directory that contains temporary libtool files.
15294objdir=$objdir
15295
15296# How to create reloadable object files.
15297reload_flag=$lt_reload_flag
15298reload_cmds=$lt_reload_cmds
15299
15300# How to pass a linker flag through the compiler.
15301wl=$lt_lt_prog_compiler_wl_F77
15302
15303# Object file suffix (normally "o").
15304objext="$ac_objext"
15305
15306# Old archive suffix (normally "a").
15307libext="$libext"
15308
15309# Shared library suffix (normally ".so").
15310shrext_cmds='$shrext_cmds'
15311
15312# Executable file suffix (normally "").
15313exeext="$exeext"
15314
15315# Additional compiler flags for building library objects.
15316pic_flag=$lt_lt_prog_compiler_pic_F77
15317pic_mode=$pic_mode
15318
15319# What is the maximum length of a command?
15320max_cmd_len=$lt_cv_sys_max_cmd_len
15321
15322# Does compiler simultaneously support -c and -o options?
15323compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15324
15325# Must we lock files when doing compilation?
15326need_locks=$lt_need_locks
15327
15328# Do we need the lib prefix for modules?
15329need_lib_prefix=$need_lib_prefix
15330
15331# Do we need a version for libraries?
15332need_version=$need_version
15333
15334# Whether dlopen is supported.
15335dlopen_support=$enable_dlopen
15336
15337# Whether dlopen of programs is supported.
15338dlopen_self=$enable_dlopen_self
15339
15340# Whether dlopen of statically linked programs is supported.
15341dlopen_self_static=$enable_dlopen_self_static
15342
15343# Compiler flag to prevent dynamic linking.
15344link_static_flag=$lt_lt_prog_compiler_static_F77
15345
15346# Compiler flag to turn off builtin functions.
15347no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15348
15349# Compiler flag to allow reflexive dlopens.
15350export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15351
15352# Compiler flag to generate shared objects directly from archives.
15353whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15354
15355# Compiler flag to generate thread-safe objects.
15356thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15357
15358# Library versioning type.
15359version_type=$version_type
15360
15361# Format of library name prefix.
15362libname_spec=$lt_libname_spec
15363
15364# List of archive names.  First name is the real one, the rest are links.
15365# The last name is the one that the linker finds with -lNAME.
15366library_names_spec=$lt_library_names_spec
15367
15368# The coded name of the library, if different from the real name.
15369soname_spec=$lt_soname_spec
15370
15371# Commands used to build and install an old-style archive.
15372RANLIB=$lt_RANLIB
15373old_archive_cmds=$lt_old_archive_cmds_F77
15374old_postinstall_cmds=$lt_old_postinstall_cmds
15375old_postuninstall_cmds=$lt_old_postuninstall_cmds
15376
15377# Create an old-style archive from a shared archive.
15378old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15379
15380# Create a temporary old-style archive to link instead of a shared archive.
15381old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15382
15383# Commands used to build and install a shared archive.
15384archive_cmds=$lt_archive_cmds_F77
15385archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15386postinstall_cmds=$lt_postinstall_cmds
15387postuninstall_cmds=$lt_postuninstall_cmds
15388
15389# Commands used to build a loadable module (assumed same as above if empty)
15390module_cmds=$lt_module_cmds_F77
15391module_expsym_cmds=$lt_module_expsym_cmds_F77
15392
15393# Commands to strip libraries.
15394old_striplib=$lt_old_striplib
15395striplib=$lt_striplib
15396
15397# Dependencies to place before the objects being linked to create a
15398# shared library.
15399predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15400
15401# Dependencies to place after the objects being linked to create a
15402# shared library.
15403postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15404
15405# Dependencies to place before the objects being linked to create a
15406# shared library.
15407predeps=$lt_predeps_F77
15408
15409# Dependencies to place after the objects being linked to create a
15410# shared library.
15411postdeps=$lt_postdeps_F77
15412
15413# The library search path used internally by the compiler when linking
15414# a shared library.
15415compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15416
15417# Method to check whether dependent libraries are shared objects.
15418deplibs_check_method=$lt_deplibs_check_method
15419
15420# Command to use when deplibs_check_method == file_magic.
15421file_magic_cmd=$lt_file_magic_cmd
15422
15423# Flag that allows shared libraries with undefined symbols to be built.
15424allow_undefined_flag=$lt_allow_undefined_flag_F77
15425
15426# Flag that forces no undefined symbols.
15427no_undefined_flag=$lt_no_undefined_flag_F77
15428
15429# Commands used to finish a libtool library installation in a directory.
15430finish_cmds=$lt_finish_cmds
15431
15432# Same as above, but a single script fragment to be evaled but not shown.
15433finish_eval=$lt_finish_eval
15434
15435# Take the output of nm and produce a listing of raw symbols and C names.
15436global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15437
15438# Transform the output of nm in a proper C declaration
15439global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15440
15441# Transform the output of nm in a C name address pair
15442global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15443
15444# This is the shared library runtime path variable.
15445runpath_var=$runpath_var
15446
15447# This is the shared library path variable.
15448shlibpath_var=$shlibpath_var
15449
15450# Is shlibpath searched before the hard-coded library search path?
15451shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15452
15453# How to hardcode a shared library path into an executable.
15454hardcode_action=$hardcode_action_F77
15455
15456# Whether we should hardcode library paths into libraries.
15457hardcode_into_libs=$hardcode_into_libs
15458
15459# Flag to hardcode \$libdir into a binary during linking.
15460# This must work even if \$libdir does not exist.
15461hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15462
15463# If ld is used when linking, flag to hardcode \$libdir into
15464# a binary during linking. This must work even if \$libdir does
15465# not exist.
15466hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15467
15468# Whether we need a single -rpath flag with a separated argument.
15469hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15470
15471# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15472# resulting binary.
15473hardcode_direct=$hardcode_direct_F77
15474
15475# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15476# resulting binary.
15477hardcode_minus_L=$hardcode_minus_L_F77
15478
15479# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15480# the resulting binary.
15481hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15482
15483# Set to yes if building a shared library automatically hardcodes DIR into the library
15484# and all subsequent libraries and executables linked against it.
15485hardcode_automatic=$hardcode_automatic_F77
15486
15487# Variables whose values should be saved in libtool wrapper scripts and
15488# restored at relink time.
15489variables_saved_for_relink="$variables_saved_for_relink"
15490
15491# Whether libtool must link a program against all its dependency libraries.
15492link_all_deplibs=$link_all_deplibs_F77
15493
15494# Compile-time system search path for libraries
15495sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15496
15497# Run-time system search path for libraries
15498sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15499
15500# Fix the shell variable \$srcfile for the compiler.
15501fix_srcfile_path="$fix_srcfile_path_F77"
15502
15503# Set to yes if exported symbols are required.
15504always_export_symbols=$always_export_symbols_F77
15505
15506# The commands to list exported symbols.
15507export_symbols_cmds=$lt_export_symbols_cmds_F77
15508
15509# The commands to extract the exported symbol list from a shared archive.
15510extract_expsyms_cmds=$lt_extract_expsyms_cmds
15511
15512# Symbols that should not be listed in the preloaded symbols.
15513exclude_expsyms=$lt_exclude_expsyms_F77
15514
15515# Symbols that must always be exported.
15516include_expsyms=$lt_include_expsyms_F77
15517
15518# ### END LIBTOOL TAG CONFIG: $tagname
15519
15520__EOF__
15521
15522
15523else
15524  # If there is no Makefile yet, we rely on a make rule to execute
15525  # `config.status --recheck' to rerun these tests and create the
15526  # libtool script then.
15527  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15528  if test -f "$ltmain_in"; then
15529    test -f Makefile && make "$ltmain"
15530  fi
15531fi
15532
15533
15534ac_ext=c
15535ac_cpp='$CPP $CPPFLAGS'
15536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15538ac_compiler_gnu=$ac_cv_c_compiler_gnu
15539
15540CC="$lt_save_CC"
15541
15542	else
15543	  tagname=""
15544	fi
15545	;;
15546
15547      GCJ)
15548	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15549
15550
15551# Source file extension for Java test sources.
15552ac_ext=java
15553
15554# Object file extension for compiled Java test sources.
15555objext=o
15556objext_GCJ=$objext
15557
15558# Code to be used in simple compile tests
15559lt_simple_compile_test_code="class foo {}\n"
15560
15561# Code to be used in simple link tests
15562lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15563
15564# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15565
15566# If no C compiler was specified, use CC.
15567LTCC=${LTCC-"$CC"}
15568
15569# If no C compiler flags were specified, use CFLAGS.
15570LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15571
15572# Allow CC to be a program name with arguments.
15573compiler=$CC
15574
15575
15576# save warnings/boilerplate of simple test code
15577ac_outfile=conftest.$ac_objext
15578printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15579eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15580_lt_compiler_boilerplate=`cat conftest.err`
15581$rm conftest*
15582
15583ac_outfile=conftest.$ac_objext
15584printf "$lt_simple_link_test_code" >conftest.$ac_ext
15585eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15586_lt_linker_boilerplate=`cat conftest.err`
15587$rm conftest*
15588
15589
15590# Allow CC to be a program name with arguments.
15591lt_save_CC="$CC"
15592CC=${GCJ-"gcj"}
15593compiler=$CC
15594compiler_GCJ=$CC
15595for cc_temp in $compiler""; do
15596  case $cc_temp in
15597    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15598    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15599    \-*) ;;
15600    *) break;;
15601  esac
15602done
15603cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15604
15605
15606# GCJ did not exist at the time GCC didn't implicitly link libc in.
15607archive_cmds_need_lc_GCJ=no
15608
15609old_archive_cmds_GCJ=$old_archive_cmds
15610
15611
15612lt_prog_compiler_no_builtin_flag_GCJ=
15613
15614if test "$GCC" = yes; then
15615  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15616
15617
15618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15619$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15620if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15621  $as_echo_n "(cached) " >&6
15622else
15623  lt_cv_prog_compiler_rtti_exceptions=no
15624  ac_outfile=conftest.$ac_objext
15625   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15626   lt_compiler_flag="-fno-rtti -fno-exceptions"
15627   # Insert the option either (1) after the last *FLAGS variable, or
15628   # (2) before a word containing "conftest.", or (3) at the end.
15629   # Note that $ac_compile itself does not contain backslashes and begins
15630   # with a dollar sign (not a hyphen), so the echo should work correctly.
15631   # The option is referenced via a variable to avoid confusing sed.
15632   lt_compile=`echo "$ac_compile" | $SED \
15633   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15634   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15635   -e 's:$: $lt_compiler_flag:'`
15636   (eval echo "\"\$as_me:15636: $lt_compile\"" >&5)
15637   (eval "$lt_compile" 2>conftest.err)
15638   ac_status=$?
15639   cat conftest.err >&5
15640   echo "$as_me:15640: \$? = $ac_status" >&5
15641   if (exit $ac_status) && test -s "$ac_outfile"; then
15642     # The compiler can only warn and ignore the option if not recognized
15643     # So say no if there are warnings other than the usual output.
15644     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15645     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15646     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15647       lt_cv_prog_compiler_rtti_exceptions=yes
15648     fi
15649   fi
15650   $rm conftest*
15651
15652fi
15653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15654$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15655
15656if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15657    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15658else
15659    :
15660fi
15661
15662fi
15663
15664lt_prog_compiler_wl_GCJ=
15665lt_prog_compiler_pic_GCJ=
15666lt_prog_compiler_static_GCJ=
15667
15668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15669$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15670
15671  if test "$GCC" = yes; then
15672    lt_prog_compiler_wl_GCJ='-Wl,'
15673    lt_prog_compiler_static_GCJ='-static'
15674
15675    case $host_os in
15676      aix*)
15677      # All AIX code is PIC.
15678      if test "$host_cpu" = ia64; then
15679	# AIX 5 now supports IA64 processor
15680	lt_prog_compiler_static_GCJ='-Bstatic'
15681      fi
15682      ;;
15683
15684    amigaos*)
15685      # FIXME: we need at least 68020 code to build shared libraries, but
15686      # adding the `-m68020' flag to GCC prevents building anything better,
15687      # like `-m68040'.
15688      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15689      ;;
15690
15691    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15692      # PIC is the default for these OSes.
15693      ;;
15694
15695    mingw* | pw32* | os2*)
15696      # This hack is so that the source file can tell whether it is being
15697      # built for inclusion in a dll (and should export symbols for example).
15698      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15699      ;;
15700
15701    darwin* | rhapsody*)
15702      # PIC is the default on this platform
15703      # Common symbols not allowed in MH_DYLIB files
15704      lt_prog_compiler_pic_GCJ='-fno-common'
15705      ;;
15706
15707    interix3*)
15708      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15709      # Instead, we relocate shared libraries at runtime.
15710      ;;
15711
15712    msdosdjgpp*)
15713      # Just because we use GCC doesn't mean we suddenly get shared libraries
15714      # on systems that don't support them.
15715      lt_prog_compiler_can_build_shared_GCJ=no
15716      enable_shared=no
15717      ;;
15718
15719    sysv4*MP*)
15720      if test -d /usr/nec; then
15721	lt_prog_compiler_pic_GCJ=-Kconform_pic
15722      fi
15723      ;;
15724
15725    hpux*)
15726      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15727      # not for PA HP-UX.
15728      case $host_cpu in
15729      hppa*64*|ia64*)
15730	# +Z the default
15731	;;
15732      *)
15733	lt_prog_compiler_pic_GCJ='-fPIC'
15734	;;
15735      esac
15736      ;;
15737
15738    *)
15739      lt_prog_compiler_pic_GCJ='-fPIC'
15740      ;;
15741    esac
15742  else
15743    # PORTME Check for flag to pass linker flags through the system compiler.
15744    case $host_os in
15745    aix*)
15746      lt_prog_compiler_wl_GCJ='-Wl,'
15747      if test "$host_cpu" = ia64; then
15748	# AIX 5 now supports IA64 processor
15749	lt_prog_compiler_static_GCJ='-Bstatic'
15750      else
15751	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15752      fi
15753      ;;
15754      darwin*)
15755        # PIC is the default on this platform
15756        # Common symbols not allowed in MH_DYLIB files
15757       case $cc_basename in
15758         xlc*)
15759         lt_prog_compiler_pic_GCJ='-qnocommon'
15760         lt_prog_compiler_wl_GCJ='-Wl,'
15761         ;;
15762       esac
15763       ;;
15764
15765    mingw* | pw32* | os2*)
15766      # This hack is so that the source file can tell whether it is being
15767      # built for inclusion in a dll (and should export symbols for example).
15768      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15769      ;;
15770
15771    hpux9* | hpux10* | hpux11*)
15772      lt_prog_compiler_wl_GCJ='-Wl,'
15773      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15774      # not for PA HP-UX.
15775      case $host_cpu in
15776      hppa*64*|ia64*)
15777	# +Z the default
15778	;;
15779      *)
15780	lt_prog_compiler_pic_GCJ='+Z'
15781	;;
15782      esac
15783      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15784      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15785      ;;
15786
15787    irix5* | irix6* | nonstopux*)
15788      lt_prog_compiler_wl_GCJ='-Wl,'
15789      # PIC (with -KPIC) is the default.
15790      lt_prog_compiler_static_GCJ='-non_shared'
15791      ;;
15792
15793    newsos6)
15794      lt_prog_compiler_pic_GCJ='-KPIC'
15795      lt_prog_compiler_static_GCJ='-Bstatic'
15796      ;;
15797
15798    linux*)
15799      case $cc_basename in
15800      icc* | ecc*)
15801	lt_prog_compiler_wl_GCJ='-Wl,'
15802	lt_prog_compiler_pic_GCJ='-KPIC'
15803	lt_prog_compiler_static_GCJ='-static'
15804        ;;
15805      pgcc* | pgf77* | pgf90* | pgf95*)
15806        # Portland Group compilers (*not* the Pentium gcc compiler,
15807	# which looks to be a dead project)
15808	lt_prog_compiler_wl_GCJ='-Wl,'
15809	lt_prog_compiler_pic_GCJ='-fpic'
15810	lt_prog_compiler_static_GCJ='-Bstatic'
15811        ;;
15812      ccc*)
15813        lt_prog_compiler_wl_GCJ='-Wl,'
15814        # All Alpha code is PIC.
15815        lt_prog_compiler_static_GCJ='-non_shared'
15816        ;;
15817      esac
15818      ;;
15819
15820    osf3* | osf4* | osf5*)
15821      lt_prog_compiler_wl_GCJ='-Wl,'
15822      # All OSF/1 code is PIC.
15823      lt_prog_compiler_static_GCJ='-non_shared'
15824      ;;
15825
15826    solaris*)
15827      lt_prog_compiler_pic_GCJ='-KPIC'
15828      lt_prog_compiler_static_GCJ='-Bstatic'
15829      case $cc_basename in
15830      f77* | f90* | f95*)
15831	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15832      *)
15833	lt_prog_compiler_wl_GCJ='-Wl,';;
15834      esac
15835      ;;
15836
15837    sunos4*)
15838      lt_prog_compiler_wl_GCJ='-Qoption ld '
15839      lt_prog_compiler_pic_GCJ='-PIC'
15840      lt_prog_compiler_static_GCJ='-Bstatic'
15841      ;;
15842
15843    sysv4 | sysv4.2uw2* | sysv4.3*)
15844      lt_prog_compiler_wl_GCJ='-Wl,'
15845      lt_prog_compiler_pic_GCJ='-KPIC'
15846      lt_prog_compiler_static_GCJ='-Bstatic'
15847      ;;
15848
15849    sysv4*MP*)
15850      if test -d /usr/nec ;then
15851	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15852	lt_prog_compiler_static_GCJ='-Bstatic'
15853      fi
15854      ;;
15855
15856    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15857      lt_prog_compiler_wl_GCJ='-Wl,'
15858      lt_prog_compiler_pic_GCJ='-KPIC'
15859      lt_prog_compiler_static_GCJ='-Bstatic'
15860      ;;
15861
15862    unicos*)
15863      lt_prog_compiler_wl_GCJ='-Wl,'
15864      lt_prog_compiler_can_build_shared_GCJ=no
15865      ;;
15866
15867    uts4*)
15868      lt_prog_compiler_pic_GCJ='-pic'
15869      lt_prog_compiler_static_GCJ='-Bstatic'
15870      ;;
15871
15872    *)
15873      lt_prog_compiler_can_build_shared_GCJ=no
15874      ;;
15875    esac
15876  fi
15877
15878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
15879$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
15880
15881#
15882# Check to make sure the PIC flag actually works.
15883#
15884if test -n "$lt_prog_compiler_pic_GCJ"; then
15885
15886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15887$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
15888if ${lt_prog_compiler_pic_works_GCJ+:} false; then :
15889  $as_echo_n "(cached) " >&6
15890else
15891  lt_prog_compiler_pic_works_GCJ=no
15892  ac_outfile=conftest.$ac_objext
15893   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15894   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15895   # Insert the option either (1) after the last *FLAGS variable, or
15896   # (2) before a word containing "conftest.", or (3) at the end.
15897   # Note that $ac_compile itself does not contain backslashes and begins
15898   # with a dollar sign (not a hyphen), so the echo should work correctly.
15899   # The option is referenced via a variable to avoid confusing sed.
15900   lt_compile=`echo "$ac_compile" | $SED \
15901   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15902   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15903   -e 's:$: $lt_compiler_flag:'`
15904   (eval echo "\"\$as_me:15904: $lt_compile\"" >&5)
15905   (eval "$lt_compile" 2>conftest.err)
15906   ac_status=$?
15907   cat conftest.err >&5
15908   echo "$as_me:15908: \$? = $ac_status" >&5
15909   if (exit $ac_status) && test -s "$ac_outfile"; then
15910     # The compiler can only warn and ignore the option if not recognized
15911     # So say no if there are warnings other than the usual output.
15912     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15913     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15914     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15915       lt_prog_compiler_pic_works_GCJ=yes
15916     fi
15917   fi
15918   $rm conftest*
15919
15920fi
15921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
15922$as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
15923
15924if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15925    case $lt_prog_compiler_pic_GCJ in
15926     "" | " "*) ;;
15927     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15928     esac
15929else
15930    lt_prog_compiler_pic_GCJ=
15931     lt_prog_compiler_can_build_shared_GCJ=no
15932fi
15933
15934fi
15935case $host_os in
15936  # For platforms which do not support PIC, -DPIC is meaningless:
15937  *djgpp*)
15938    lt_prog_compiler_pic_GCJ=
15939    ;;
15940  *)
15941    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15942    ;;
15943esac
15944
15945#
15946# Check to make sure the static flag actually works.
15947#
15948wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15950$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15951if ${lt_prog_compiler_static_works_GCJ+:} false; then :
15952  $as_echo_n "(cached) " >&6
15953else
15954  lt_prog_compiler_static_works_GCJ=no
15955   save_LDFLAGS="$LDFLAGS"
15956   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15957   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15958   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15959     # The linker can only warn and ignore the option if not recognized
15960     # So say no if there are warnings
15961     if test -s conftest.err; then
15962       # Append any errors to the config.log.
15963       cat conftest.err 1>&5
15964       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15965       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15966       if diff conftest.exp conftest.er2 >/dev/null; then
15967         lt_prog_compiler_static_works_GCJ=yes
15968       fi
15969     else
15970       lt_prog_compiler_static_works_GCJ=yes
15971     fi
15972   fi
15973   $rm conftest*
15974   LDFLAGS="$save_LDFLAGS"
15975
15976fi
15977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_GCJ" >&5
15978$as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
15979
15980if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15981    :
15982else
15983    lt_prog_compiler_static_GCJ=
15984fi
15985
15986
15987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15988$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15989if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
15990  $as_echo_n "(cached) " >&6
15991else
15992  lt_cv_prog_compiler_c_o_GCJ=no
15993   $rm -r conftest 2>/dev/null
15994   mkdir conftest
15995   cd conftest
15996   mkdir out
15997   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15998
15999   lt_compiler_flag="-o out/conftest2.$ac_objext"
16000   # Insert the option either (1) after the last *FLAGS variable, or
16001   # (2) before a word containing "conftest.", or (3) at the end.
16002   # Note that $ac_compile itself does not contain backslashes and begins
16003   # with a dollar sign (not a hyphen), so the echo should work correctly.
16004   lt_compile=`echo "$ac_compile" | $SED \
16005   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16006   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16007   -e 's:$: $lt_compiler_flag:'`
16008   (eval echo "\"\$as_me:16008: $lt_compile\"" >&5)
16009   (eval "$lt_compile" 2>out/conftest.err)
16010   ac_status=$?
16011   cat out/conftest.err >&5
16012   echo "$as_me:16012: \$? = $ac_status" >&5
16013   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16014   then
16015     # The compiler can only warn and ignore the option if not recognized
16016     # So say no if there are warnings
16017     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16018     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16019     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16020       lt_cv_prog_compiler_c_o_GCJ=yes
16021     fi
16022   fi
16023   chmod u+w . 2>&5
16024   $rm conftest*
16025   # SGI C++ compiler will create directory out/ii_files/ for
16026   # template instantiation
16027   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16028   $rm out/* && rmdir out
16029   cd ..
16030   rmdir conftest
16031   $rm conftest*
16032
16033fi
16034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16035$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16036
16037
16038hard_links="nottested"
16039if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16040  # do not overwrite the value of need_locks provided by the user
16041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16042$as_echo_n "checking if we can lock with hard links... " >&6; }
16043  hard_links=yes
16044  $rm conftest*
16045  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16046  touch conftest.a
16047  ln conftest.a conftest.b 2>&5 || hard_links=no
16048  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16050$as_echo "$hard_links" >&6; }
16051  if test "$hard_links" = no; then
16052    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16053$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16054    need_locks=warn
16055  fi
16056else
16057  need_locks=no
16058fi
16059
16060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16061$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16062
16063  runpath_var=
16064  allow_undefined_flag_GCJ=
16065  enable_shared_with_static_runtimes_GCJ=no
16066  archive_cmds_GCJ=
16067  archive_expsym_cmds_GCJ=
16068  old_archive_From_new_cmds_GCJ=
16069  old_archive_from_expsyms_cmds_GCJ=
16070  export_dynamic_flag_spec_GCJ=
16071  whole_archive_flag_spec_GCJ=
16072  thread_safe_flag_spec_GCJ=
16073  hardcode_libdir_flag_spec_GCJ=
16074  hardcode_libdir_flag_spec_ld_GCJ=
16075  hardcode_libdir_separator_GCJ=
16076  hardcode_direct_GCJ=no
16077  hardcode_minus_L_GCJ=no
16078  hardcode_shlibpath_var_GCJ=unsupported
16079  link_all_deplibs_GCJ=unknown
16080  hardcode_automatic_GCJ=no
16081  module_cmds_GCJ=
16082  module_expsym_cmds_GCJ=
16083  always_export_symbols_GCJ=no
16084  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16085  # include_expsyms should be a list of space-separated symbols to be *always*
16086  # included in the symbol list
16087  include_expsyms_GCJ=
16088  # exclude_expsyms can be an extended regexp of symbols to exclude
16089  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16090  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16091  # as well as any symbol that contains `d'.
16092  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16093  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16094  # platforms (ab)use it in PIC code, but their linkers get confused if
16095  # the symbol is explicitly referenced.  Since portable code cannot
16096  # rely on this symbol name, it's probably fine to never include it in
16097  # preloaded symbol tables.
16098  extract_expsyms_cmds=
16099  # Just being paranoid about ensuring that cc_basename is set.
16100  for cc_temp in $compiler""; do
16101  case $cc_temp in
16102    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16103    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16104    \-*) ;;
16105    *) break;;
16106  esac
16107done
16108cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16109
16110  case $host_os in
16111  cygwin* | mingw* | pw32*)
16112    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16113    # When not using gcc, we currently assume that we are using
16114    # Microsoft Visual C++.
16115    if test "$GCC" != yes; then
16116      with_gnu_ld=no
16117    fi
16118    ;;
16119  interix*)
16120    # we just hope/assume this is gcc and not c89 (= MSVC++)
16121    with_gnu_ld=yes
16122    ;;
16123  openbsd*)
16124    with_gnu_ld=no
16125    ;;
16126  esac
16127
16128  ld_shlibs_GCJ=yes
16129  if test "$with_gnu_ld" = yes; then
16130    # If archive_cmds runs LD, not CC, wlarc should be empty
16131    wlarc='${wl}'
16132
16133    # Set some defaults for GNU ld with shared library support. These
16134    # are reset later if shared libraries are not supported. Putting them
16135    # here allows them to be overridden if necessary.
16136    runpath_var=LD_RUN_PATH
16137    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16138    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16139    # ancient GNU ld didn't support --whole-archive et. al.
16140    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16141	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16142      else
16143  	whole_archive_flag_spec_GCJ=
16144    fi
16145    supports_anon_versioning=no
16146    case `$LD -v 2>/dev/null` in
16147      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16148      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16149      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16150      *\ 2.11.*) ;; # other 2.11 versions
16151      *) supports_anon_versioning=yes ;;
16152    esac
16153
16154    # See if GNU ld supports shared libraries.
16155    case $host_os in
16156    aix3* | aix4* | aix5*)
16157      # On AIX/PPC, the GNU linker is very broken
16158      if test "$host_cpu" != ia64; then
16159	ld_shlibs_GCJ=no
16160	cat <<EOF 1>&2
16161
16162*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16163*** to be unable to reliably create shared libraries on AIX.
16164*** Therefore, libtool is disabling shared libraries support.  If you
16165*** really care for shared libraries, you may want to modify your PATH
16166*** so that a non-GNU linker is found, and then restart.
16167
16168EOF
16169      fi
16170      ;;
16171
16172    amigaos*)
16173      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)'
16174      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16175      hardcode_minus_L_GCJ=yes
16176
16177      # Samuel A. Falvo II <[email protected]> reports
16178      # that the semantics of dynamic libraries on AmigaOS, at least up
16179      # to version 4, is to share data among multiple programs linked
16180      # with the same dynamic library.  Since this doesn't match the
16181      # behavior of shared libraries on other platforms, we can't use
16182      # them.
16183      ld_shlibs_GCJ=no
16184      ;;
16185
16186    beos*)
16187      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16188	allow_undefined_flag_GCJ=unsupported
16189	# Joseph Beckenbach <[email protected]> says some releases of gcc
16190	# support --undefined.  This deserves some investigation.  FIXME
16191	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16192      else
16193	ld_shlibs_GCJ=no
16194      fi
16195      ;;
16196
16197    cygwin* | mingw* | pw32*)
16198      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16199      # as there is no search path for DLLs.
16200      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16201      allow_undefined_flag_GCJ=unsupported
16202      always_export_symbols_GCJ=no
16203      enable_shared_with_static_runtimes_GCJ=yes
16204      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16205
16206      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16207        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16208	# If the export-symbols file already is a .def file (1st line
16209	# is EXPORTS), use it as is; otherwise, prepend...
16210	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16211	  cp $export_symbols $output_objdir/$soname.def;
16212	else
16213	  echo EXPORTS > $output_objdir/$soname.def;
16214	  cat $export_symbols >> $output_objdir/$soname.def;
16215	fi~
16216	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16217      else
16218	ld_shlibs_GCJ=no
16219      fi
16220      ;;
16221
16222    interix3*)
16223      hardcode_direct_GCJ=no
16224      hardcode_shlibpath_var_GCJ=no
16225      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16226      export_dynamic_flag_spec_GCJ='${wl}-E'
16227      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16228      # Instead, shared libraries are loaded at an image base (0x10000000 by
16229      # default) and relocated if they conflict, which is a slow very memory
16230      # consuming and fragmenting process.  To avoid this, we pick a random,
16231      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16232      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16233      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'
16234      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'
16235      ;;
16236
16237    linux*)
16238      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16239	tmp_addflag=
16240	case $cc_basename,$host_cpu in
16241	pgcc*)				# Portland Group C compiler
16242	  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'
16243	  tmp_addflag=' $pic_flag'
16244	  ;;
16245	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16246	  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'
16247	  tmp_addflag=' $pic_flag -Mnomain' ;;
16248	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16249	  tmp_addflag=' -i_dynamic' ;;
16250	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16251	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16252	ifc* | ifort*)			# Intel Fortran compiler
16253	  tmp_addflag=' -nofor_main' ;;
16254	esac
16255	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16256
16257	if test $supports_anon_versioning = yes; then
16258	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16259  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16260  $echo "local: *; };" >> $output_objdir/$libname.ver~
16261	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16262	fi
16263      else
16264	ld_shlibs_GCJ=no
16265      fi
16266      ;;
16267
16268    netbsd*)
16269      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16270	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16271	wlarc=
16272      else
16273	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16274	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16275      fi
16276      ;;
16277
16278    solaris*)
16279      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16280	ld_shlibs_GCJ=no
16281	cat <<EOF 1>&2
16282
16283*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16284*** create shared libraries on Solaris systems.  Therefore, libtool
16285*** is disabling shared libraries support.  We urge you to upgrade GNU
16286*** binutils to release 2.9.1 or newer.  Another option is to modify
16287*** your PATH or compiler configuration so that the native linker is
16288*** used, and then restart.
16289
16290EOF
16291      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16292	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16293	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16294      else
16295	ld_shlibs_GCJ=no
16296      fi
16297      ;;
16298
16299    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16300      case `$LD -v 2>&1` in
16301        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16302	ld_shlibs_GCJ=no
16303	cat <<_LT_EOF 1>&2
16304
16305*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16306*** reliably create shared libraries on SCO systems.  Therefore, libtool
16307*** is disabling shared libraries support.  We urge you to upgrade GNU
16308*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16309*** your PATH or compiler configuration so that the native linker is
16310*** used, and then restart.
16311
16312_LT_EOF
16313	;;
16314	*)
16315	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16316	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16317	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16318	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16319	  else
16320	    ld_shlibs_GCJ=no
16321	  fi
16322	;;
16323      esac
16324      ;;
16325
16326    sunos4*)
16327      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16328      wlarc=
16329      hardcode_direct_GCJ=yes
16330      hardcode_shlibpath_var_GCJ=no
16331      ;;
16332
16333    *)
16334      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16335	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16336	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16337      else
16338	ld_shlibs_GCJ=no
16339      fi
16340      ;;
16341    esac
16342
16343    if test "$ld_shlibs_GCJ" = no; then
16344      runpath_var=
16345      hardcode_libdir_flag_spec_GCJ=
16346      export_dynamic_flag_spec_GCJ=
16347      whole_archive_flag_spec_GCJ=
16348    fi
16349  else
16350    # PORTME fill in a description of your system's linker (not GNU ld)
16351    case $host_os in
16352    aix3*)
16353      allow_undefined_flag_GCJ=unsupported
16354      always_export_symbols_GCJ=yes
16355      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'
16356      # Note: this linker hardcodes the directories in LIBPATH if there
16357      # are no directories specified by -L.
16358      hardcode_minus_L_GCJ=yes
16359      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16360	# Neither direct hardcoding nor static linking is supported with a
16361	# broken collect2.
16362	hardcode_direct_GCJ=unsupported
16363      fi
16364      ;;
16365
16366    aix4* | aix5*)
16367      if test "$host_cpu" = ia64; then
16368	# On IA64, the linker does run time linking by default, so we don't
16369	# have to do anything special.
16370	aix_use_runtimelinking=no
16371	exp_sym_flag='-Bexport'
16372	no_entry_flag=""
16373      else
16374	# If we're using GNU nm, then we don't want the "-C" option.
16375	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16376	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16377	  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'
16378	else
16379	  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'
16380	fi
16381	aix_use_runtimelinking=no
16382
16383	# Test if we are trying to use run time linking or normal
16384	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16385	# need to do runtime linking.
16386	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16387	  for ld_flag in $LDFLAGS; do
16388  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16389  	    aix_use_runtimelinking=yes
16390  	    break
16391  	  fi
16392	  done
16393	  ;;
16394	esac
16395
16396	exp_sym_flag='-bexport'
16397	no_entry_flag='-bnoentry'
16398      fi
16399
16400      # When large executables or shared objects are built, AIX ld can
16401      # have problems creating the table of contents.  If linking a library
16402      # or program results in "error TOC overflow" add -mminimal-toc to
16403      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16404      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16405
16406      archive_cmds_GCJ=''
16407      hardcode_direct_GCJ=yes
16408      hardcode_libdir_separator_GCJ=':'
16409      link_all_deplibs_GCJ=yes
16410
16411      if test "$GCC" = yes; then
16412	case $host_os in aix4.[012]|aix4.[012].*)
16413	# We only want to do this on AIX 4.2 and lower, the check
16414	# below for broken collect2 doesn't work under 4.3+
16415	  collect2name=`${CC} -print-prog-name=collect2`
16416	  if test -f "$collect2name" && \
16417  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16418	  then
16419  	  # We have reworked collect2
16420  	  hardcode_direct_GCJ=yes
16421	  else
16422  	  # We have old collect2
16423  	  hardcode_direct_GCJ=unsupported
16424  	  # It fails to find uninstalled libraries when the uninstalled
16425  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16426  	  # to unsupported forces relinking
16427  	  hardcode_minus_L_GCJ=yes
16428  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16429  	  hardcode_libdir_separator_GCJ=
16430	  fi
16431	  ;;
16432	esac
16433	shared_flag='-shared'
16434	if test "$aix_use_runtimelinking" = yes; then
16435	  shared_flag="$shared_flag "'${wl}-G'
16436	fi
16437      else
16438	# not using gcc
16439	if test "$host_cpu" = ia64; then
16440  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16441  	# chokes on -Wl,-G. The following line is correct:
16442	  shared_flag='-G'
16443	else
16444	  if test "$aix_use_runtimelinking" = yes; then
16445	    shared_flag='${wl}-G'
16446	  else
16447	    shared_flag='${wl}-bM:SRE'
16448	  fi
16449	fi
16450      fi
16451
16452      # It seems that -bexpall does not export symbols beginning with
16453      # underscore (_), so it is better to generate a list of symbols to export.
16454      always_export_symbols_GCJ=yes
16455      if test "$aix_use_runtimelinking" = yes; then
16456	# Warning - without using the other runtime loading flags (-brtl),
16457	# -berok will link without error, but may produce a broken library.
16458	allow_undefined_flag_GCJ='-berok'
16459       # Determine the default libpath from the value encoded in an empty executable.
16460       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16461/* end confdefs.h.  */
16462
16463int
16464main ()
16465{
16466
16467  ;
16468  return 0;
16469}
16470_ACEOF
16471if ac_fn_c_try_link "$LINENO"; then :
16472
16473aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16474}'`
16475# Check for a 64-bit object if we didn't find anything.
16476if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16477}'`; fi
16478fi
16479rm -f core conftest.err conftest.$ac_objext \
16480    conftest$ac_exeext conftest.$ac_ext
16481if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16482
16483       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16484	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"
16485       else
16486	if test "$host_cpu" = ia64; then
16487	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16488	  allow_undefined_flag_GCJ="-z nodefs"
16489	  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"
16490	else
16491	 # Determine the default libpath from the value encoded in an empty executable.
16492	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16493/* end confdefs.h.  */
16494
16495int
16496main ()
16497{
16498
16499  ;
16500  return 0;
16501}
16502_ACEOF
16503if ac_fn_c_try_link "$LINENO"; then :
16504
16505aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16506}'`
16507# Check for a 64-bit object if we didn't find anything.
16508if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16509}'`; fi
16510fi
16511rm -f core conftest.err conftest.$ac_objext \
16512    conftest$ac_exeext conftest.$ac_ext
16513if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16514
16515	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16516	  # Warning - without using the other run time loading flags,
16517	  # -berok will link without error, but may produce a broken library.
16518	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16519	  allow_undefined_flag_GCJ=' ${wl}-berok'
16520	  # Exported symbols can be pulled into shared objects from archives
16521	  whole_archive_flag_spec_GCJ='$convenience'
16522	  archive_cmds_need_lc_GCJ=yes
16523	  # This is similar to how AIX traditionally builds its shared libraries.
16524	  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'
16525	fi
16526      fi
16527      ;;
16528
16529    amigaos*)
16530      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)'
16531      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16532      hardcode_minus_L_GCJ=yes
16533      # see comment about different semantics on the GNU ld section
16534      ld_shlibs_GCJ=no
16535      ;;
16536
16537    bsdi[45]*)
16538      export_dynamic_flag_spec_GCJ=-rdynamic
16539      ;;
16540
16541    cygwin* | mingw* | pw32*)
16542      # When not using gcc, we currently assume that we are using
16543      # Microsoft Visual C++.
16544      # hardcode_libdir_flag_spec is actually meaningless, as there is
16545      # no search path for DLLs.
16546      hardcode_libdir_flag_spec_GCJ=' '
16547      allow_undefined_flag_GCJ=unsupported
16548      # Tell ltmain to make .lib files, not .a files.
16549      libext=lib
16550      # Tell ltmain to make .dll files, not .so files.
16551      shrext_cmds=".dll"
16552      # FIXME: Setting linknames here is a bad hack.
16553      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16554      # The linker will automatically build a .lib file if we build a DLL.
16555      old_archive_From_new_cmds_GCJ='true'
16556      # FIXME: Should let the user specify the lib program.
16557      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16558      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16559      enable_shared_with_static_runtimes_GCJ=yes
16560      ;;
16561
16562    darwin* | rhapsody*)
16563      case $host_os in
16564        rhapsody* | darwin1.[012])
16565         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16566         ;;
16567       *) # Darwin 1.3 on
16568         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16569           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16570         else
16571           case ${MACOSX_DEPLOYMENT_TARGET} in
16572             10.[012])
16573               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16574               ;;
16575             10.*)
16576               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16577               ;;
16578           esac
16579         fi
16580         ;;
16581      esac
16582      archive_cmds_need_lc_GCJ=no
16583      hardcode_direct_GCJ=no
16584      hardcode_automatic_GCJ=yes
16585      hardcode_shlibpath_var_GCJ=unsupported
16586      whole_archive_flag_spec_GCJ=''
16587      link_all_deplibs_GCJ=yes
16588    if test "$GCC" = yes ; then
16589    	output_verbose_link_cmd='echo'
16590        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16591      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16592      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16593      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16594      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}'
16595    else
16596      case $cc_basename in
16597        xlc*)
16598         output_verbose_link_cmd='echo'
16599         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16600         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16601          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16602         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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16603          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}'
16604          ;;
16605       *)
16606         ld_shlibs_GCJ=no
16607          ;;
16608      esac
16609    fi
16610      ;;
16611
16612    dgux*)
16613      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16614      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16615      hardcode_shlibpath_var_GCJ=no
16616      ;;
16617
16618    freebsd1*)
16619      ld_shlibs_GCJ=no
16620      ;;
16621
16622    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16623    # support.  Future versions do this automatically, but an explicit c++rt0.o
16624    # does not break anything, and helps significantly (at the cost of a little
16625    # extra space).
16626    freebsd2.2*)
16627      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16628      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16629      hardcode_direct_GCJ=yes
16630      hardcode_shlibpath_var_GCJ=no
16631      ;;
16632
16633    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16634    freebsd2*)
16635      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16636      hardcode_direct_GCJ=yes
16637      hardcode_minus_L_GCJ=yes
16638      hardcode_shlibpath_var_GCJ=no
16639      ;;
16640
16641    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16642    freebsd* | kfreebsd*-gnu | dragonfly*)
16643      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16644      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16645      hardcode_direct_GCJ=yes
16646      hardcode_shlibpath_var_GCJ=no
16647      ;;
16648
16649    hpux9*)
16650      if test "$GCC" = yes; then
16651	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'
16652      else
16653	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'
16654      fi
16655      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16656      hardcode_libdir_separator_GCJ=:
16657      hardcode_direct_GCJ=yes
16658
16659      # hardcode_minus_L: Not really in the search PATH,
16660      # but as the default location of the library.
16661      hardcode_minus_L_GCJ=yes
16662      export_dynamic_flag_spec_GCJ='${wl}-E'
16663      ;;
16664
16665    hpux10*)
16666      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16667	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16668      else
16669	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16670      fi
16671      if test "$with_gnu_ld" = no; then
16672	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16673	hardcode_libdir_separator_GCJ=:
16674
16675	hardcode_direct_GCJ=yes
16676	export_dynamic_flag_spec_GCJ='${wl}-E'
16677
16678	# hardcode_minus_L: Not really in the search PATH,
16679	# but as the default location of the library.
16680	hardcode_minus_L_GCJ=yes
16681      fi
16682      ;;
16683
16684    hpux11*)
16685      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16686	case $host_cpu in
16687	hppa*64*)
16688	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16689	  ;;
16690	ia64*)
16691	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16692	  ;;
16693	*)
16694	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16695	  ;;
16696	esac
16697      else
16698	case $host_cpu in
16699	hppa*64*)
16700	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16701	  ;;
16702	ia64*)
16703	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16704	  ;;
16705	*)
16706	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16707	  ;;
16708	esac
16709      fi
16710      if test "$with_gnu_ld" = no; then
16711	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16712	hardcode_libdir_separator_GCJ=:
16713
16714	case $host_cpu in
16715	hppa*64*|ia64*)
16716	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16717	  hardcode_direct_GCJ=no
16718	  hardcode_shlibpath_var_GCJ=no
16719	  ;;
16720	*)
16721	  hardcode_direct_GCJ=yes
16722	  export_dynamic_flag_spec_GCJ='${wl}-E'
16723
16724	  # hardcode_minus_L: Not really in the search PATH,
16725	  # but as the default location of the library.
16726	  hardcode_minus_L_GCJ=yes
16727	  ;;
16728	esac
16729      fi
16730      ;;
16731
16732    irix5* | irix6* | nonstopux*)
16733      if test "$GCC" = yes; then
16734	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'
16735      else
16736	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'
16737	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16738      fi
16739      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16740      hardcode_libdir_separator_GCJ=:
16741      link_all_deplibs_GCJ=yes
16742      ;;
16743
16744    netbsd*)
16745      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16746	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16747      else
16748	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16749      fi
16750      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16751      hardcode_direct_GCJ=yes
16752      hardcode_shlibpath_var_GCJ=no
16753      ;;
16754
16755    newsos6)
16756      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16757      hardcode_direct_GCJ=yes
16758      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16759      hardcode_libdir_separator_GCJ=:
16760      hardcode_shlibpath_var_GCJ=no
16761      ;;
16762
16763    openbsd*)
16764      hardcode_direct_GCJ=yes
16765      hardcode_shlibpath_var_GCJ=no
16766      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16767	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16768	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16769	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16770	export_dynamic_flag_spec_GCJ='${wl}-E'
16771      else
16772       case $host_os in
16773	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16774	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16775	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16776	   ;;
16777	 *)
16778	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16779	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16780	   ;;
16781       esac
16782      fi
16783      ;;
16784
16785    os2*)
16786      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16787      hardcode_minus_L_GCJ=yes
16788      allow_undefined_flag_GCJ=unsupported
16789      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'
16790      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16791      ;;
16792
16793    osf3*)
16794      if test "$GCC" = yes; then
16795	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16796	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'
16797      else
16798	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16799	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'
16800      fi
16801      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16802      hardcode_libdir_separator_GCJ=:
16803      ;;
16804
16805    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16806      if test "$GCC" = yes; then
16807	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16808	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'
16809	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16810      else
16811	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16812	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'
16813	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~
16814	$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'
16815
16816	# Both c and cxx compiler support -rpath directly
16817	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16818      fi
16819      hardcode_libdir_separator_GCJ=:
16820      ;;
16821
16822    solaris*)
16823      no_undefined_flag_GCJ=' -z text'
16824      if test "$GCC" = yes; then
16825	wlarc='${wl}'
16826	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16827	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16828	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16829      else
16830	wlarc=''
16831	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16832	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16833  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16834      fi
16835      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16836      hardcode_shlibpath_var_GCJ=no
16837      case $host_os in
16838      solaris2.[0-5] | solaris2.[0-5].*) ;;
16839      *)
16840 	# The compiler driver will combine linker options so we
16841 	# cannot just pass the convience library names through
16842 	# without $wl, iff we do not link with $LD.
16843 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16844 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16845 	case $wlarc in
16846 	'')
16847 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16848 	*)
16849 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16850 	esac ;;
16851      esac
16852      link_all_deplibs_GCJ=yes
16853      ;;
16854
16855    sunos4*)
16856      if test "x$host_vendor" = xsequent; then
16857	# Use $CC to link under sequent, because it throws in some extra .o
16858	# files that make .init and .fini sections work.
16859	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16860      else
16861	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16862      fi
16863      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16864      hardcode_direct_GCJ=yes
16865      hardcode_minus_L_GCJ=yes
16866      hardcode_shlibpath_var_GCJ=no
16867      ;;
16868
16869    sysv4)
16870      case $host_vendor in
16871	sni)
16872	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16873	  hardcode_direct_GCJ=yes # is this really true???
16874	;;
16875	siemens)
16876	  ## LD is ld it makes a PLAMLIB
16877	  ## CC just makes a GrossModule.
16878	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16879	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16880	  hardcode_direct_GCJ=no
16881        ;;
16882	motorola)
16883	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16884	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16885	;;
16886      esac
16887      runpath_var='LD_RUN_PATH'
16888      hardcode_shlibpath_var_GCJ=no
16889      ;;
16890
16891    sysv4.3*)
16892      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16893      hardcode_shlibpath_var_GCJ=no
16894      export_dynamic_flag_spec_GCJ='-Bexport'
16895      ;;
16896
16897    sysv4*MP*)
16898      if test -d /usr/nec; then
16899	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16900	hardcode_shlibpath_var_GCJ=no
16901	runpath_var=LD_RUN_PATH
16902	hardcode_runpath_var=yes
16903	ld_shlibs_GCJ=yes
16904      fi
16905      ;;
16906
16907    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16908      no_undefined_flag_GCJ='${wl}-z,text'
16909      archive_cmds_need_lc_GCJ=no
16910      hardcode_shlibpath_var_GCJ=no
16911      runpath_var='LD_RUN_PATH'
16912
16913      if test "$GCC" = yes; then
16914	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16915	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16916      else
16917	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16918	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16919      fi
16920      ;;
16921
16922    sysv5* | sco3.2v5* | sco5v6*)
16923      # Note: We can NOT use -z defs as we might desire, because we do not
16924      # link with -lc, and that would cause any symbols used from libc to
16925      # always be unresolved, which means just about no library would
16926      # ever link correctly.  If we're not using GNU ld we use -z text
16927      # though, which does catch some bad symbols but isn't as heavy-handed
16928      # as -z defs.
16929      no_undefined_flag_GCJ='${wl}-z,text'
16930      allow_undefined_flag_GCJ='${wl}-z,nodefs'
16931      archive_cmds_need_lc_GCJ=no
16932      hardcode_shlibpath_var_GCJ=no
16933      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16934      hardcode_libdir_separator_GCJ=':'
16935      link_all_deplibs_GCJ=yes
16936      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16937      runpath_var='LD_RUN_PATH'
16938
16939      if test "$GCC" = yes; then
16940	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16941	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16942      else
16943	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16944	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16945      fi
16946      ;;
16947
16948    uts4*)
16949      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16950      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16951      hardcode_shlibpath_var_GCJ=no
16952      ;;
16953
16954    *)
16955      ld_shlibs_GCJ=no
16956      ;;
16957    esac
16958  fi
16959
16960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
16961$as_echo "$ld_shlibs_GCJ" >&6; }
16962test "$ld_shlibs_GCJ" = no && can_build_shared=no
16963
16964#
16965# Do we need to explicitly link libc?
16966#
16967case "x$archive_cmds_need_lc_GCJ" in
16968x|xyes)
16969  # Assume -lc should be added
16970  archive_cmds_need_lc_GCJ=yes
16971
16972  if test "$enable_shared" = yes && test "$GCC" = yes; then
16973    case $archive_cmds_GCJ in
16974    *'~'*)
16975      # FIXME: we may have to deal with multi-command sequences.
16976      ;;
16977    '$CC '*)
16978      # Test whether the compiler implicitly links with -lc since on some
16979      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16980      # to ld, don't add -lc before -lgcc.
16981      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16982$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16983      $rm conftest*
16984      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16985
16986      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16987  (eval $ac_compile) 2>&5
16988  ac_status=$?
16989  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16990  test $ac_status = 0; } 2>conftest.err; then
16991        soname=conftest
16992        lib=conftest
16993        libobjs=conftest.$ac_objext
16994        deplibs=
16995        wl=$lt_prog_compiler_wl_GCJ
16996	pic_flag=$lt_prog_compiler_pic_GCJ
16997        compiler_flags=-v
16998        linker_flags=-v
16999        verstring=
17000        output_objdir=.
17001        libname=conftest
17002        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17003        allow_undefined_flag_GCJ=
17004        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17005  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17006  ac_status=$?
17007  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17008  test $ac_status = 0; }
17009        then
17010	  archive_cmds_need_lc_GCJ=no
17011        else
17012	  archive_cmds_need_lc_GCJ=yes
17013        fi
17014        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17015      else
17016        cat conftest.err 1>&5
17017      fi
17018      $rm conftest*
17019      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17020$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17021      ;;
17022    esac
17023  fi
17024  ;;
17025esac
17026
17027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17028$as_echo_n "checking dynamic linker characteristics... " >&6; }
17029library_names_spec=
17030libname_spec='lib$name'
17031soname_spec=
17032shrext_cmds=".so"
17033postinstall_cmds=
17034postuninstall_cmds=
17035finish_cmds=
17036finish_eval=
17037shlibpath_var=
17038shlibpath_overrides_runpath=unknown
17039version_type=none
17040dynamic_linker="$host_os ld.so"
17041sys_lib_dlsearch_path_spec="/lib /usr/lib"
17042if test "$GCC" = yes; then
17043  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17044  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17045    # if the path contains ";" then we assume it to be the separator
17046    # otherwise default to the standard path separator (i.e. ":") - it is
17047    # assumed that no part of a normal pathname contains ";" but that should
17048    # okay in the real world where ";" in dirpaths is itself problematic.
17049    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17050  else
17051    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17052  fi
17053else
17054  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17055fi
17056need_lib_prefix=unknown
17057hardcode_into_libs=no
17058
17059# when you set need_version to no, make sure it does not cause -set_version
17060# flags to be left without arguments
17061need_version=unknown
17062
17063case $host_os in
17064aix3*)
17065  version_type=linux
17066  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17067  shlibpath_var=LIBPATH
17068
17069  # AIX 3 has no versioning support, so we append a major version to the name.
17070  soname_spec='${libname}${release}${shared_ext}$major'
17071  ;;
17072
17073aix4* | aix5*)
17074  version_type=linux
17075  need_lib_prefix=no
17076  need_version=no
17077  hardcode_into_libs=yes
17078  if test "$host_cpu" = ia64; then
17079    # AIX 5 supports IA64
17080    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17081    shlibpath_var=LD_LIBRARY_PATH
17082  else
17083    # With GCC up to 2.95.x, collect2 would create an import file
17084    # for dependence libraries.  The import file would start with
17085    # the line `#! .'.  This would cause the generated library to
17086    # depend on `.', always an invalid library.  This was fixed in
17087    # development snapshots of GCC prior to 3.0.
17088    case $host_os in
17089      aix4 | aix4.[01] | aix4.[01].*)
17090      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17091	   echo ' yes '
17092	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17093	:
17094      else
17095	can_build_shared=no
17096      fi
17097      ;;
17098    esac
17099    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17100    # soname into executable. Probably we can add versioning support to
17101    # collect2, so additional links can be useful in future.
17102    if test "$aix_use_runtimelinking" = yes; then
17103      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17104      # instead of lib<name>.a to let people know that these are not
17105      # typical AIX shared libraries.
17106      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17107    else
17108      # We preserve .a as extension for shared libraries through AIX4.2
17109      # and later when we are not doing run time linking.
17110      library_names_spec='${libname}${release}.a $libname.a'
17111      soname_spec='${libname}${release}${shared_ext}$major'
17112    fi
17113    shlibpath_var=LIBPATH
17114  fi
17115  ;;
17116
17117amigaos*)
17118  library_names_spec='$libname.ixlibrary $libname.a'
17119  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17120  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'
17121  ;;
17122
17123beos*)
17124  library_names_spec='${libname}${shared_ext}'
17125  dynamic_linker="$host_os ld.so"
17126  shlibpath_var=LIBRARY_PATH
17127  ;;
17128
17129bsdi[45]*)
17130  version_type=linux
17131  need_version=no
17132  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17133  soname_spec='${libname}${release}${shared_ext}$major'
17134  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17135  shlibpath_var=LD_LIBRARY_PATH
17136  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17137  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17138  # the default ld.so.conf also contains /usr/contrib/lib and
17139  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17140  # libtool to hard-code these into programs
17141  ;;
17142
17143cygwin* | mingw* | pw32*)
17144  version_type=windows
17145  shrext_cmds=".dll"
17146  need_version=no
17147  need_lib_prefix=no
17148
17149  case $GCC,$host_os in
17150  yes,cygwin* | yes,mingw* | yes,pw32*)
17151    library_names_spec='$libname.dll.a'
17152    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17153    postinstall_cmds='base_file=`basename \${file}`~
17154      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17155      dldir=$destdir/`dirname \$dlpath`~
17156      test -d \$dldir || mkdir -p \$dldir~
17157      $install_prog $dir/$dlname \$dldir/$dlname~
17158      chmod a+x \$dldir/$dlname'
17159    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17160      dlpath=$dir/\$dldll~
17161       $rm \$dlpath'
17162    shlibpath_overrides_runpath=yes
17163
17164    case $host_os in
17165    cygwin*)
17166      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17167      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17168      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17169      ;;
17170    mingw*)
17171      # MinGW DLLs use traditional 'lib' prefix
17172      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17173      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17174      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17175        # It is most probably a Windows format PATH printed by
17176        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17177        # path with ; separators, and with drive letters. We can handle the
17178        # drive letters (cygwin fileutils understands them), so leave them,
17179        # especially as we might pass files found there to a mingw objdump,
17180        # which wouldn't understand a cygwinified path. Ahh.
17181        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17182      else
17183        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17184      fi
17185      ;;
17186    pw32*)
17187      # pw32 DLLs use 'pw' prefix rather than 'lib'
17188      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17189      ;;
17190    esac
17191    ;;
17192
17193  *)
17194    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17195    ;;
17196  esac
17197  dynamic_linker='Win32 ld.exe'
17198  # FIXME: first we should search . and the directory the executable is in
17199  shlibpath_var=PATH
17200  ;;
17201
17202darwin* | rhapsody*)
17203  dynamic_linker="$host_os dyld"
17204  version_type=darwin
17205  need_lib_prefix=no
17206  need_version=no
17207  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17208  soname_spec='${libname}${release}${major}$shared_ext'
17209  shlibpath_overrides_runpath=yes
17210  shlibpath_var=DYLD_LIBRARY_PATH
17211  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17212  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17213  if test "$GCC" = yes; then
17214    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17215  else
17216    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17217  fi
17218  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17219  ;;
17220
17221dgux*)
17222  version_type=linux
17223  need_lib_prefix=no
17224  need_version=no
17225  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17226  soname_spec='${libname}${release}${shared_ext}$major'
17227  shlibpath_var=LD_LIBRARY_PATH
17228  ;;
17229
17230freebsd1*)
17231  dynamic_linker=no
17232  ;;
17233
17234kfreebsd*-gnu)
17235  version_type=linux
17236  need_lib_prefix=no
17237  need_version=no
17238  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17239  soname_spec='${libname}${release}${shared_ext}$major'
17240  shlibpath_var=LD_LIBRARY_PATH
17241  shlibpath_overrides_runpath=no
17242  hardcode_into_libs=yes
17243  dynamic_linker='GNU ld.so'
17244  ;;
17245
17246freebsd* | dragonfly*)
17247  # DragonFly does not have aout.  When/if they implement a new
17248  # versioning mechanism, adjust this.
17249  if test -x /usr/bin/objformat; then
17250    objformat=`/usr/bin/objformat`
17251  else
17252    case $host_os in
17253    freebsd[123]*) objformat=aout ;;
17254    *) objformat=elf ;;
17255    esac
17256  fi
17257  version_type=freebsd-$objformat
17258  case $version_type in
17259    freebsd-elf*)
17260      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17261      need_version=no
17262      need_lib_prefix=no
17263      ;;
17264    freebsd-*)
17265      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17266      need_version=yes
17267      ;;
17268  esac
17269  shlibpath_var=LD_LIBRARY_PATH
17270  case $host_os in
17271  freebsd2*)
17272    shlibpath_overrides_runpath=yes
17273    ;;
17274  freebsd3.[01]* | freebsdelf3.[01]*)
17275    shlibpath_overrides_runpath=yes
17276    hardcode_into_libs=yes
17277    ;;
17278  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17279  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17280    shlibpath_overrides_runpath=no
17281    hardcode_into_libs=yes
17282    ;;
17283  freebsd*) # from 4.6 on
17284    shlibpath_overrides_runpath=yes
17285    hardcode_into_libs=yes
17286    ;;
17287  esac
17288  ;;
17289
17290gnu*)
17291  version_type=linux
17292  need_lib_prefix=no
17293  need_version=no
17294  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17295  soname_spec='${libname}${release}${shared_ext}$major'
17296  shlibpath_var=LD_LIBRARY_PATH
17297  hardcode_into_libs=yes
17298  ;;
17299
17300hpux9* | hpux10* | hpux11*)
17301  # Give a soname corresponding to the major version so that dld.sl refuses to
17302  # link against other versions.
17303  version_type=sunos
17304  need_lib_prefix=no
17305  need_version=no
17306  case $host_cpu in
17307  ia64*)
17308    shrext_cmds='.so'
17309    hardcode_into_libs=yes
17310    dynamic_linker="$host_os dld.so"
17311    shlibpath_var=LD_LIBRARY_PATH
17312    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17313    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17314    soname_spec='${libname}${release}${shared_ext}$major'
17315    if test "X$HPUX_IA64_MODE" = X32; then
17316      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17317    else
17318      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17319    fi
17320    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17321    ;;
17322   hppa*64*)
17323     shrext_cmds='.sl'
17324     hardcode_into_libs=yes
17325     dynamic_linker="$host_os dld.sl"
17326     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17327     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17328     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17329     soname_spec='${libname}${release}${shared_ext}$major'
17330     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17331     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17332     ;;
17333   *)
17334    shrext_cmds='.sl'
17335    dynamic_linker="$host_os dld.sl"
17336    shlibpath_var=SHLIB_PATH
17337    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17338    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17339    soname_spec='${libname}${release}${shared_ext}$major'
17340    ;;
17341  esac
17342  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17343  postinstall_cmds='chmod 555 $lib'
17344  ;;
17345
17346interix3*)
17347  version_type=linux
17348  need_lib_prefix=no
17349  need_version=no
17350  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17351  soname_spec='${libname}${release}${shared_ext}$major'
17352  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17353  shlibpath_var=LD_LIBRARY_PATH
17354  shlibpath_overrides_runpath=no
17355  hardcode_into_libs=yes
17356  ;;
17357
17358irix5* | irix6* | nonstopux*)
17359  case $host_os in
17360    nonstopux*) version_type=nonstopux ;;
17361    *)
17362	if test "$lt_cv_prog_gnu_ld" = yes; then
17363		version_type=linux
17364	else
17365		version_type=irix
17366	fi ;;
17367  esac
17368  need_lib_prefix=no
17369  need_version=no
17370  soname_spec='${libname}${release}${shared_ext}$major'
17371  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17372  case $host_os in
17373  irix5* | nonstopux*)
17374    libsuff= shlibsuff=
17375    ;;
17376  *)
17377    case $LD in # libtool.m4 will add one of these switches to LD
17378    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17379      libsuff= shlibsuff= libmagic=32-bit;;
17380    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17381      libsuff=32 shlibsuff=N32 libmagic=N32;;
17382    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17383      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17384    *) libsuff= shlibsuff= libmagic=never-match;;
17385    esac
17386    ;;
17387  esac
17388  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17389  shlibpath_overrides_runpath=no
17390  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17391  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17392  hardcode_into_libs=yes
17393  ;;
17394
17395# No shared lib support for Linux oldld, aout, or coff.
17396linux*oldld* | linux*aout* | linux*coff*)
17397  dynamic_linker=no
17398  ;;
17399
17400# This must be Linux ELF.
17401linux*)
17402  version_type=linux
17403  need_lib_prefix=no
17404  need_version=no
17405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17406  soname_spec='${libname}${release}${shared_ext}$major'
17407  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17408  shlibpath_var=LD_LIBRARY_PATH
17409  shlibpath_overrides_runpath=no
17410  # This implies no fast_install, which is unacceptable.
17411  # Some rework will be needed to allow for fast_install
17412  # before this can be enabled.
17413  hardcode_into_libs=yes
17414
17415  # find out which ABI we are using
17416  libsuff=
17417  case "$host_cpu" in
17418  x86_64*|s390x*|powerpc64*)
17419    echo '#line 17419 "configure"' > conftest.$ac_ext
17420    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17421  (eval $ac_compile) 2>&5
17422  ac_status=$?
17423  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17424  test $ac_status = 0; }; then
17425      case `/usr/bin/file conftest.$ac_objext` in
17426      *64-bit*)
17427        libsuff=64
17428        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17429        ;;
17430      esac
17431    fi
17432    rm -rf conftest*
17433    ;;
17434  esac
17435
17436  # Append ld.so.conf contents to the search path
17437  if test -f /etc/ld.so.conf; then
17438    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/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17439    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17440  fi
17441
17442  # We used to test for /lib/ld.so.1 and disable shared libraries on
17443  # powerpc, because MkLinux only supported shared libraries with the
17444  # GNU dynamic linker.  Since this was broken with cross compilers,
17445  # most powerpc-linux boxes support dynamic linking these days and
17446  # people can always --disable-shared, the test was removed, and we
17447  # assume the GNU/Linux dynamic linker is in use.
17448  dynamic_linker='GNU/Linux ld.so'
17449  ;;
17450
17451knetbsd*-gnu)
17452  version_type=linux
17453  need_lib_prefix=no
17454  need_version=no
17455  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17456  soname_spec='${libname}${release}${shared_ext}$major'
17457  shlibpath_var=LD_LIBRARY_PATH
17458  shlibpath_overrides_runpath=no
17459  hardcode_into_libs=yes
17460  dynamic_linker='GNU ld.so'
17461  ;;
17462
17463netbsd*)
17464  version_type=sunos
17465  need_lib_prefix=no
17466  need_version=no
17467  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17468    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17469    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17470    dynamic_linker='NetBSD (a.out) ld.so'
17471  else
17472    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17473    soname_spec='${libname}${release}${shared_ext}$major'
17474    dynamic_linker='NetBSD ld.elf_so'
17475  fi
17476  shlibpath_var=LD_LIBRARY_PATH
17477  shlibpath_overrides_runpath=yes
17478  hardcode_into_libs=yes
17479  ;;
17480
17481newsos6)
17482  version_type=linux
17483  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17484  shlibpath_var=LD_LIBRARY_PATH
17485  shlibpath_overrides_runpath=yes
17486  ;;
17487
17488nto-qnx*)
17489  version_type=linux
17490  need_lib_prefix=no
17491  need_version=no
17492  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17493  soname_spec='${libname}${release}${shared_ext}$major'
17494  shlibpath_var=LD_LIBRARY_PATH
17495  shlibpath_overrides_runpath=yes
17496  ;;
17497
17498openbsd*)
17499  version_type=sunos
17500  sys_lib_dlsearch_path_spec="/usr/lib"
17501  need_lib_prefix=no
17502  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17503  case $host_os in
17504    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17505    *)                         need_version=no  ;;
17506  esac
17507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17508  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17509  shlibpath_var=LD_LIBRARY_PATH
17510  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17511    case $host_os in
17512      openbsd2.[89] | openbsd2.[89].*)
17513	shlibpath_overrides_runpath=no
17514	;;
17515      *)
17516	shlibpath_overrides_runpath=yes
17517	;;
17518      esac
17519  else
17520    shlibpath_overrides_runpath=yes
17521  fi
17522  ;;
17523
17524os2*)
17525  libname_spec='$name'
17526  shrext_cmds=".dll"
17527  need_lib_prefix=no
17528  library_names_spec='$libname${shared_ext} $libname.a'
17529  dynamic_linker='OS/2 ld.exe'
17530  shlibpath_var=LIBPATH
17531  ;;
17532
17533osf3* | osf4* | osf5*)
17534  version_type=osf
17535  need_lib_prefix=no
17536  need_version=no
17537  soname_spec='${libname}${release}${shared_ext}$major'
17538  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17539  shlibpath_var=LD_LIBRARY_PATH
17540  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17541  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17542  ;;
17543
17544solaris*)
17545  version_type=linux
17546  need_lib_prefix=no
17547  need_version=no
17548  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17549  soname_spec='${libname}${release}${shared_ext}$major'
17550  shlibpath_var=LD_LIBRARY_PATH
17551  shlibpath_overrides_runpath=yes
17552  hardcode_into_libs=yes
17553  # ldd complains unless libraries are executable
17554  postinstall_cmds='chmod +x $lib'
17555  ;;
17556
17557sunos4*)
17558  version_type=sunos
17559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17560  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17561  shlibpath_var=LD_LIBRARY_PATH
17562  shlibpath_overrides_runpath=yes
17563  if test "$with_gnu_ld" = yes; then
17564    need_lib_prefix=no
17565  fi
17566  need_version=yes
17567  ;;
17568
17569sysv4 | sysv4.3*)
17570  version_type=linux
17571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17572  soname_spec='${libname}${release}${shared_ext}$major'
17573  shlibpath_var=LD_LIBRARY_PATH
17574  case $host_vendor in
17575    sni)
17576      shlibpath_overrides_runpath=no
17577      need_lib_prefix=no
17578      export_dynamic_flag_spec='${wl}-Blargedynsym'
17579      runpath_var=LD_RUN_PATH
17580      ;;
17581    siemens)
17582      need_lib_prefix=no
17583      ;;
17584    motorola)
17585      need_lib_prefix=no
17586      need_version=no
17587      shlibpath_overrides_runpath=no
17588      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17589      ;;
17590  esac
17591  ;;
17592
17593sysv4*MP*)
17594  if test -d /usr/nec ;then
17595    version_type=linux
17596    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17597    soname_spec='$libname${shared_ext}.$major'
17598    shlibpath_var=LD_LIBRARY_PATH
17599  fi
17600  ;;
17601
17602sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17603  version_type=freebsd-elf
17604  need_lib_prefix=no
17605  need_version=no
17606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17607  soname_spec='${libname}${release}${shared_ext}$major'
17608  shlibpath_var=LD_LIBRARY_PATH
17609  hardcode_into_libs=yes
17610  if test "$with_gnu_ld" = yes; then
17611    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17612    shlibpath_overrides_runpath=no
17613  else
17614    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17615    shlibpath_overrides_runpath=yes
17616    case $host_os in
17617      sco3.2v5*)
17618        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17619	;;
17620    esac
17621  fi
17622  sys_lib_dlsearch_path_spec='/usr/lib'
17623  ;;
17624
17625uts4*)
17626  version_type=linux
17627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17628  soname_spec='${libname}${release}${shared_ext}$major'
17629  shlibpath_var=LD_LIBRARY_PATH
17630  ;;
17631
17632*)
17633  dynamic_linker=no
17634  ;;
17635esac
17636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17637$as_echo "$dynamic_linker" >&6; }
17638test "$dynamic_linker" = no && can_build_shared=no
17639
17640variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17641if test "$GCC" = yes; then
17642  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17643fi
17644
17645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17646$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17647hardcode_action_GCJ=
17648if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17649   test -n "$runpath_var_GCJ" || \
17650   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17651
17652  # We can hardcode non-existant directories.
17653  if test "$hardcode_direct_GCJ" != no &&
17654     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17655     # have to relink, otherwise we might link with an installed library
17656     # when we should be linking with a yet-to-be-installed one
17657     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17658     test "$hardcode_minus_L_GCJ" != no; then
17659    # Linking always hardcodes the temporary library directory.
17660    hardcode_action_GCJ=relink
17661  else
17662    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17663    hardcode_action_GCJ=immediate
17664  fi
17665else
17666  # We cannot hardcode anything, or else we can only hardcode existing
17667  # directories.
17668  hardcode_action_GCJ=unsupported
17669fi
17670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
17671$as_echo "$hardcode_action_GCJ" >&6; }
17672
17673if test "$hardcode_action_GCJ" = relink; then
17674  # Fast installation is not supported
17675  enable_fast_install=no
17676elif test "$shlibpath_overrides_runpath" = yes ||
17677     test "$enable_shared" = no; then
17678  # Fast installation is not necessary
17679  enable_fast_install=needless
17680fi
17681
17682
17683# The else clause should only fire when bootstrapping the
17684# libtool distribution, otherwise you forgot to ship ltmain.sh
17685# with your package, and you will get complaints that there are
17686# no rules to generate ltmain.sh.
17687if test -f "$ltmain"; then
17688  # See if we are running on zsh, and set the options which allow our commands through
17689  # without removal of \ escapes.
17690  if test -n "${ZSH_VERSION+set}" ; then
17691    setopt NO_GLOB_SUBST
17692  fi
17693  # Now quote all the things that may contain metacharacters while being
17694  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17695  # variables and quote the copies for generation of the libtool script.
17696  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17697    SED SHELL STRIP \
17698    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17699    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17700    deplibs_check_method reload_flag reload_cmds need_locks \
17701    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17702    lt_cv_sys_global_symbol_to_c_name_address \
17703    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17704    old_postinstall_cmds old_postuninstall_cmds \
17705    compiler_GCJ \
17706    CC_GCJ \
17707    LD_GCJ \
17708    lt_prog_compiler_wl_GCJ \
17709    lt_prog_compiler_pic_GCJ \
17710    lt_prog_compiler_static_GCJ \
17711    lt_prog_compiler_no_builtin_flag_GCJ \
17712    export_dynamic_flag_spec_GCJ \
17713    thread_safe_flag_spec_GCJ \
17714    whole_archive_flag_spec_GCJ \
17715    enable_shared_with_static_runtimes_GCJ \
17716    old_archive_cmds_GCJ \
17717    old_archive_from_new_cmds_GCJ \
17718    predep_objects_GCJ \
17719    postdep_objects_GCJ \
17720    predeps_GCJ \
17721    postdeps_GCJ \
17722    compiler_lib_search_path_GCJ \
17723    archive_cmds_GCJ \
17724    archive_expsym_cmds_GCJ \
17725    postinstall_cmds_GCJ \
17726    postuninstall_cmds_GCJ \
17727    old_archive_from_expsyms_cmds_GCJ \
17728    allow_undefined_flag_GCJ \
17729    no_undefined_flag_GCJ \
17730    export_symbols_cmds_GCJ \
17731    hardcode_libdir_flag_spec_GCJ \
17732    hardcode_libdir_flag_spec_ld_GCJ \
17733    hardcode_libdir_separator_GCJ \
17734    hardcode_automatic_GCJ \
17735    module_cmds_GCJ \
17736    module_expsym_cmds_GCJ \
17737    lt_cv_prog_compiler_c_o_GCJ \
17738    exclude_expsyms_GCJ \
17739    include_expsyms_GCJ; do
17740
17741    case $var in
17742    old_archive_cmds_GCJ | \
17743    old_archive_from_new_cmds_GCJ | \
17744    archive_cmds_GCJ | \
17745    archive_expsym_cmds_GCJ | \
17746    module_cmds_GCJ | \
17747    module_expsym_cmds_GCJ | \
17748    old_archive_from_expsyms_cmds_GCJ | \
17749    export_symbols_cmds_GCJ | \
17750    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17751    postinstall_cmds | postuninstall_cmds | \
17752    old_postinstall_cmds | old_postuninstall_cmds | \
17753    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17754      # Double-quote double-evaled strings.
17755      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17756      ;;
17757    *)
17758      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17759      ;;
17760    esac
17761  done
17762
17763  case $lt_echo in
17764  *'\$0 --fallback-echo"')
17765    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17766    ;;
17767  esac
17768
17769cfgfile="$ofile"
17770
17771  cat <<__EOF__ >> "$cfgfile"
17772# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17773
17774# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17775
17776# Shell to use when invoking shell scripts.
17777SHELL=$lt_SHELL
17778
17779# Whether or not to build shared libraries.
17780build_libtool_libs=$enable_shared
17781
17782# Whether or not to build static libraries.
17783build_old_libs=$enable_static
17784
17785# Whether or not to add -lc for building shared libraries.
17786build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17787
17788# Whether or not to disallow shared libs when runtime libs are static
17789allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17790
17791# Whether or not to optimize for fast installation.
17792fast_install=$enable_fast_install
17793
17794# The host system.
17795host_alias=$host_alias
17796host=$host
17797host_os=$host_os
17798
17799# The build system.
17800build_alias=$build_alias
17801build=$build
17802build_os=$build_os
17803
17804# An echo program that does not interpret backslashes.
17805echo=$lt_echo
17806
17807# The archiver.
17808AR=$lt_AR
17809AR_FLAGS=$lt_AR_FLAGS
17810
17811# A C compiler.
17812LTCC=$lt_LTCC
17813
17814# LTCC compiler flags.
17815LTCFLAGS=$lt_LTCFLAGS
17816
17817# A language-specific compiler.
17818CC=$lt_compiler_GCJ
17819
17820# Is the compiler the GNU C compiler?
17821with_gcc=$GCC_GCJ
17822
17823gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
17824gcc_ver=\`gcc -dumpversion\`
17825
17826# An ERE matcher.
17827EGREP=$lt_EGREP
17828
17829# The linker used to build libraries.
17830LD=$lt_LD_GCJ
17831
17832# Whether we need hard or soft links.
17833LN_S=$lt_LN_S
17834
17835# A BSD-compatible nm program.
17836NM=$lt_NM
17837
17838# A symbol stripping program
17839STRIP=$lt_STRIP
17840
17841# Used to examine libraries when file_magic_cmd begins "file"
17842MAGIC_CMD=$MAGIC_CMD
17843
17844# Used on cygwin: DLL creation program.
17845DLLTOOL="$DLLTOOL"
17846
17847# Used on cygwin: object dumper.
17848OBJDUMP="$OBJDUMP"
17849
17850# Used on cygwin: assembler.
17851AS="$AS"
17852
17853# The name of the directory that contains temporary libtool files.
17854objdir=$objdir
17855
17856# How to create reloadable object files.
17857reload_flag=$lt_reload_flag
17858reload_cmds=$lt_reload_cmds
17859
17860# How to pass a linker flag through the compiler.
17861wl=$lt_lt_prog_compiler_wl_GCJ
17862
17863# Object file suffix (normally "o").
17864objext="$ac_objext"
17865
17866# Old archive suffix (normally "a").
17867libext="$libext"
17868
17869# Shared library suffix (normally ".so").
17870shrext_cmds='$shrext_cmds'
17871
17872# Executable file suffix (normally "").
17873exeext="$exeext"
17874
17875# Additional compiler flags for building library objects.
17876pic_flag=$lt_lt_prog_compiler_pic_GCJ
17877pic_mode=$pic_mode
17878
17879# What is the maximum length of a command?
17880max_cmd_len=$lt_cv_sys_max_cmd_len
17881
17882# Does compiler simultaneously support -c and -o options?
17883compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17884
17885# Must we lock files when doing compilation?
17886need_locks=$lt_need_locks
17887
17888# Do we need the lib prefix for modules?
17889need_lib_prefix=$need_lib_prefix
17890
17891# Do we need a version for libraries?
17892need_version=$need_version
17893
17894# Whether dlopen is supported.
17895dlopen_support=$enable_dlopen
17896
17897# Whether dlopen of programs is supported.
17898dlopen_self=$enable_dlopen_self
17899
17900# Whether dlopen of statically linked programs is supported.
17901dlopen_self_static=$enable_dlopen_self_static
17902
17903# Compiler flag to prevent dynamic linking.
17904link_static_flag=$lt_lt_prog_compiler_static_GCJ
17905
17906# Compiler flag to turn off builtin functions.
17907no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17908
17909# Compiler flag to allow reflexive dlopens.
17910export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17911
17912# Compiler flag to generate shared objects directly from archives.
17913whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17914
17915# Compiler flag to generate thread-safe objects.
17916thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17917
17918# Library versioning type.
17919version_type=$version_type
17920
17921# Format of library name prefix.
17922libname_spec=$lt_libname_spec
17923
17924# List of archive names.  First name is the real one, the rest are links.
17925# The last name is the one that the linker finds with -lNAME.
17926library_names_spec=$lt_library_names_spec
17927
17928# The coded name of the library, if different from the real name.
17929soname_spec=$lt_soname_spec
17930
17931# Commands used to build and install an old-style archive.
17932RANLIB=$lt_RANLIB
17933old_archive_cmds=$lt_old_archive_cmds_GCJ
17934old_postinstall_cmds=$lt_old_postinstall_cmds
17935old_postuninstall_cmds=$lt_old_postuninstall_cmds
17936
17937# Create an old-style archive from a shared archive.
17938old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17939
17940# Create a temporary old-style archive to link instead of a shared archive.
17941old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17942
17943# Commands used to build and install a shared archive.
17944archive_cmds=$lt_archive_cmds_GCJ
17945archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17946postinstall_cmds=$lt_postinstall_cmds
17947postuninstall_cmds=$lt_postuninstall_cmds
17948
17949# Commands used to build a loadable module (assumed same as above if empty)
17950module_cmds=$lt_module_cmds_GCJ
17951module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17952
17953# Commands to strip libraries.
17954old_striplib=$lt_old_striplib
17955striplib=$lt_striplib
17956
17957# Dependencies to place before the objects being linked to create a
17958# shared library.
17959predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17960
17961# Dependencies to place after the objects being linked to create a
17962# shared library.
17963postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17964
17965# Dependencies to place before the objects being linked to create a
17966# shared library.
17967predeps=$lt_predeps_GCJ
17968
17969# Dependencies to place after the objects being linked to create a
17970# shared library.
17971postdeps=$lt_postdeps_GCJ
17972
17973# The library search path used internally by the compiler when linking
17974# a shared library.
17975compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17976
17977# Method to check whether dependent libraries are shared objects.
17978deplibs_check_method=$lt_deplibs_check_method
17979
17980# Command to use when deplibs_check_method == file_magic.
17981file_magic_cmd=$lt_file_magic_cmd
17982
17983# Flag that allows shared libraries with undefined symbols to be built.
17984allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17985
17986# Flag that forces no undefined symbols.
17987no_undefined_flag=$lt_no_undefined_flag_GCJ
17988
17989# Commands used to finish a libtool library installation in a directory.
17990finish_cmds=$lt_finish_cmds
17991
17992# Same as above, but a single script fragment to be evaled but not shown.
17993finish_eval=$lt_finish_eval
17994
17995# Take the output of nm and produce a listing of raw symbols and C names.
17996global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17997
17998# Transform the output of nm in a proper C declaration
17999global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18000
18001# Transform the output of nm in a C name address pair
18002global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18003
18004# This is the shared library runtime path variable.
18005runpath_var=$runpath_var
18006
18007# This is the shared library path variable.
18008shlibpath_var=$shlibpath_var
18009
18010# Is shlibpath searched before the hard-coded library search path?
18011shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18012
18013# How to hardcode a shared library path into an executable.
18014hardcode_action=$hardcode_action_GCJ
18015
18016# Whether we should hardcode library paths into libraries.
18017hardcode_into_libs=$hardcode_into_libs
18018
18019# Flag to hardcode \$libdir into a binary during linking.
18020# This must work even if \$libdir does not exist.
18021hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18022
18023# If ld is used when linking, flag to hardcode \$libdir into
18024# a binary during linking. This must work even if \$libdir does
18025# not exist.
18026hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18027
18028# Whether we need a single -rpath flag with a separated argument.
18029hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18030
18031# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18032# resulting binary.
18033hardcode_direct=$hardcode_direct_GCJ
18034
18035# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18036# resulting binary.
18037hardcode_minus_L=$hardcode_minus_L_GCJ
18038
18039# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18040# the resulting binary.
18041hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18042
18043# Set to yes if building a shared library automatically hardcodes DIR into the library
18044# and all subsequent libraries and executables linked against it.
18045hardcode_automatic=$hardcode_automatic_GCJ
18046
18047# Variables whose values should be saved in libtool wrapper scripts and
18048# restored at relink time.
18049variables_saved_for_relink="$variables_saved_for_relink"
18050
18051# Whether libtool must link a program against all its dependency libraries.
18052link_all_deplibs=$link_all_deplibs_GCJ
18053
18054# Compile-time system search path for libraries
18055sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18056
18057# Run-time system search path for libraries
18058sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18059
18060# Fix the shell variable \$srcfile for the compiler.
18061fix_srcfile_path="$fix_srcfile_path_GCJ"
18062
18063# Set to yes if exported symbols are required.
18064always_export_symbols=$always_export_symbols_GCJ
18065
18066# The commands to list exported symbols.
18067export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18068
18069# The commands to extract the exported symbol list from a shared archive.
18070extract_expsyms_cmds=$lt_extract_expsyms_cmds
18071
18072# Symbols that should not be listed in the preloaded symbols.
18073exclude_expsyms=$lt_exclude_expsyms_GCJ
18074
18075# Symbols that must always be exported.
18076include_expsyms=$lt_include_expsyms_GCJ
18077
18078# ### END LIBTOOL TAG CONFIG: $tagname
18079
18080__EOF__
18081
18082
18083else
18084  # If there is no Makefile yet, we rely on a make rule to execute
18085  # `config.status --recheck' to rerun these tests and create the
18086  # libtool script then.
18087  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18088  if test -f "$ltmain_in"; then
18089    test -f Makefile && make "$ltmain"
18090  fi
18091fi
18092
18093
18094ac_ext=c
18095ac_cpp='$CPP $CPPFLAGS'
18096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18098ac_compiler_gnu=$ac_cv_c_compiler_gnu
18099
18100CC="$lt_save_CC"
18101
18102	else
18103	  tagname=""
18104	fi
18105	;;
18106
18107      RC)
18108
18109
18110# Source file extension for RC test sources.
18111ac_ext=rc
18112
18113# Object file extension for compiled RC test sources.
18114objext=o
18115objext_RC=$objext
18116
18117# Code to be used in simple compile tests
18118lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18119
18120# Code to be used in simple link tests
18121lt_simple_link_test_code="$lt_simple_compile_test_code"
18122
18123# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18124
18125# If no C compiler was specified, use CC.
18126LTCC=${LTCC-"$CC"}
18127
18128# If no C compiler flags were specified, use CFLAGS.
18129LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18130
18131# Allow CC to be a program name with arguments.
18132compiler=$CC
18133
18134
18135# save warnings/boilerplate of simple test code
18136ac_outfile=conftest.$ac_objext
18137printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18138eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18139_lt_compiler_boilerplate=`cat conftest.err`
18140$rm conftest*
18141
18142ac_outfile=conftest.$ac_objext
18143printf "$lt_simple_link_test_code" >conftest.$ac_ext
18144eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18145_lt_linker_boilerplate=`cat conftest.err`
18146$rm conftest*
18147
18148
18149# Allow CC to be a program name with arguments.
18150lt_save_CC="$CC"
18151CC=${RC-"windres"}
18152compiler=$CC
18153compiler_RC=$CC
18154for cc_temp in $compiler""; do
18155  case $cc_temp in
18156    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18157    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18158    \-*) ;;
18159    *) break;;
18160  esac
18161done
18162cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18163
18164lt_cv_prog_compiler_c_o_RC=yes
18165
18166# The else clause should only fire when bootstrapping the
18167# libtool distribution, otherwise you forgot to ship ltmain.sh
18168# with your package, and you will get complaints that there are
18169# no rules to generate ltmain.sh.
18170if test -f "$ltmain"; then
18171  # See if we are running on zsh, and set the options which allow our commands through
18172  # without removal of \ escapes.
18173  if test -n "${ZSH_VERSION+set}" ; then
18174    setopt NO_GLOB_SUBST
18175  fi
18176  # Now quote all the things that may contain metacharacters while being
18177  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18178  # variables and quote the copies for generation of the libtool script.
18179  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18180    SED SHELL STRIP \
18181    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18182    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18183    deplibs_check_method reload_flag reload_cmds need_locks \
18184    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18185    lt_cv_sys_global_symbol_to_c_name_address \
18186    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18187    old_postinstall_cmds old_postuninstall_cmds \
18188    compiler_RC \
18189    CC_RC \
18190    LD_RC \
18191    lt_prog_compiler_wl_RC \
18192    lt_prog_compiler_pic_RC \
18193    lt_prog_compiler_static_RC \
18194    lt_prog_compiler_no_builtin_flag_RC \
18195    export_dynamic_flag_spec_RC \
18196    thread_safe_flag_spec_RC \
18197    whole_archive_flag_spec_RC \
18198    enable_shared_with_static_runtimes_RC \
18199    old_archive_cmds_RC \
18200    old_archive_from_new_cmds_RC \
18201    predep_objects_RC \
18202    postdep_objects_RC \
18203    predeps_RC \
18204    postdeps_RC \
18205    compiler_lib_search_path_RC \
18206    archive_cmds_RC \
18207    archive_expsym_cmds_RC \
18208    postinstall_cmds_RC \
18209    postuninstall_cmds_RC \
18210    old_archive_from_expsyms_cmds_RC \
18211    allow_undefined_flag_RC \
18212    no_undefined_flag_RC \
18213    export_symbols_cmds_RC \
18214    hardcode_libdir_flag_spec_RC \
18215    hardcode_libdir_flag_spec_ld_RC \
18216    hardcode_libdir_separator_RC \
18217    hardcode_automatic_RC \
18218    module_cmds_RC \
18219    module_expsym_cmds_RC \
18220    lt_cv_prog_compiler_c_o_RC \
18221    exclude_expsyms_RC \
18222    include_expsyms_RC; do
18223
18224    case $var in
18225    old_archive_cmds_RC | \
18226    old_archive_from_new_cmds_RC | \
18227    archive_cmds_RC | \
18228    archive_expsym_cmds_RC | \
18229    module_cmds_RC | \
18230    module_expsym_cmds_RC | \
18231    old_archive_from_expsyms_cmds_RC | \
18232    export_symbols_cmds_RC | \
18233    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18234    postinstall_cmds | postuninstall_cmds | \
18235    old_postinstall_cmds | old_postuninstall_cmds | \
18236    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18237      # Double-quote double-evaled strings.
18238      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18239      ;;
18240    *)
18241      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18242      ;;
18243    esac
18244  done
18245
18246  case $lt_echo in
18247  *'\$0 --fallback-echo"')
18248    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18249    ;;
18250  esac
18251
18252cfgfile="$ofile"
18253
18254  cat <<__EOF__ >> "$cfgfile"
18255# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18256
18257# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18258
18259# Shell to use when invoking shell scripts.
18260SHELL=$lt_SHELL
18261
18262# Whether or not to build shared libraries.
18263build_libtool_libs=$enable_shared
18264
18265# Whether or not to build static libraries.
18266build_old_libs=$enable_static
18267
18268# Whether or not to add -lc for building shared libraries.
18269build_libtool_need_lc=$archive_cmds_need_lc_RC
18270
18271# Whether or not to disallow shared libs when runtime libs are static
18272allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18273
18274# Whether or not to optimize for fast installation.
18275fast_install=$enable_fast_install
18276
18277# The host system.
18278host_alias=$host_alias
18279host=$host
18280host_os=$host_os
18281
18282# The build system.
18283build_alias=$build_alias
18284build=$build
18285build_os=$build_os
18286
18287# An echo program that does not interpret backslashes.
18288echo=$lt_echo
18289
18290# The archiver.
18291AR=$lt_AR
18292AR_FLAGS=$lt_AR_FLAGS
18293
18294# A C compiler.
18295LTCC=$lt_LTCC
18296
18297# LTCC compiler flags.
18298LTCFLAGS=$lt_LTCFLAGS
18299
18300# A language-specific compiler.
18301CC=$lt_compiler_RC
18302
18303# Is the compiler the GNU C compiler?
18304with_gcc=$GCC_RC
18305
18306gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18307gcc_ver=\`gcc -dumpversion\`
18308
18309# An ERE matcher.
18310EGREP=$lt_EGREP
18311
18312# The linker used to build libraries.
18313LD=$lt_LD_RC
18314
18315# Whether we need hard or soft links.
18316LN_S=$lt_LN_S
18317
18318# A BSD-compatible nm program.
18319NM=$lt_NM
18320
18321# A symbol stripping program
18322STRIP=$lt_STRIP
18323
18324# Used to examine libraries when file_magic_cmd begins "file"
18325MAGIC_CMD=$MAGIC_CMD
18326
18327# Used on cygwin: DLL creation program.
18328DLLTOOL="$DLLTOOL"
18329
18330# Used on cygwin: object dumper.
18331OBJDUMP="$OBJDUMP"
18332
18333# Used on cygwin: assembler.
18334AS="$AS"
18335
18336# The name of the directory that contains temporary libtool files.
18337objdir=$objdir
18338
18339# How to create reloadable object files.
18340reload_flag=$lt_reload_flag
18341reload_cmds=$lt_reload_cmds
18342
18343# How to pass a linker flag through the compiler.
18344wl=$lt_lt_prog_compiler_wl_RC
18345
18346# Object file suffix (normally "o").
18347objext="$ac_objext"
18348
18349# Old archive suffix (normally "a").
18350libext="$libext"
18351
18352# Shared library suffix (normally ".so").
18353shrext_cmds='$shrext_cmds'
18354
18355# Executable file suffix (normally "").
18356exeext="$exeext"
18357
18358# Additional compiler flags for building library objects.
18359pic_flag=$lt_lt_prog_compiler_pic_RC
18360pic_mode=$pic_mode
18361
18362# What is the maximum length of a command?
18363max_cmd_len=$lt_cv_sys_max_cmd_len
18364
18365# Does compiler simultaneously support -c and -o options?
18366compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18367
18368# Must we lock files when doing compilation?
18369need_locks=$lt_need_locks
18370
18371# Do we need the lib prefix for modules?
18372need_lib_prefix=$need_lib_prefix
18373
18374# Do we need a version for libraries?
18375need_version=$need_version
18376
18377# Whether dlopen is supported.
18378dlopen_support=$enable_dlopen
18379
18380# Whether dlopen of programs is supported.
18381dlopen_self=$enable_dlopen_self
18382
18383# Whether dlopen of statically linked programs is supported.
18384dlopen_self_static=$enable_dlopen_self_static
18385
18386# Compiler flag to prevent dynamic linking.
18387link_static_flag=$lt_lt_prog_compiler_static_RC
18388
18389# Compiler flag to turn off builtin functions.
18390no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18391
18392# Compiler flag to allow reflexive dlopens.
18393export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18394
18395# Compiler flag to generate shared objects directly from archives.
18396whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18397
18398# Compiler flag to generate thread-safe objects.
18399thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18400
18401# Library versioning type.
18402version_type=$version_type
18403
18404# Format of library name prefix.
18405libname_spec=$lt_libname_spec
18406
18407# List of archive names.  First name is the real one, the rest are links.
18408# The last name is the one that the linker finds with -lNAME.
18409library_names_spec=$lt_library_names_spec
18410
18411# The coded name of the library, if different from the real name.
18412soname_spec=$lt_soname_spec
18413
18414# Commands used to build and install an old-style archive.
18415RANLIB=$lt_RANLIB
18416old_archive_cmds=$lt_old_archive_cmds_RC
18417old_postinstall_cmds=$lt_old_postinstall_cmds
18418old_postuninstall_cmds=$lt_old_postuninstall_cmds
18419
18420# Create an old-style archive from a shared archive.
18421old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18422
18423# Create a temporary old-style archive to link instead of a shared archive.
18424old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18425
18426# Commands used to build and install a shared archive.
18427archive_cmds=$lt_archive_cmds_RC
18428archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18429postinstall_cmds=$lt_postinstall_cmds
18430postuninstall_cmds=$lt_postuninstall_cmds
18431
18432# Commands used to build a loadable module (assumed same as above if empty)
18433module_cmds=$lt_module_cmds_RC
18434module_expsym_cmds=$lt_module_expsym_cmds_RC
18435
18436# Commands to strip libraries.
18437old_striplib=$lt_old_striplib
18438striplib=$lt_striplib
18439
18440# Dependencies to place before the objects being linked to create a
18441# shared library.
18442predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18443
18444# Dependencies to place after the objects being linked to create a
18445# shared library.
18446postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18447
18448# Dependencies to place before the objects being linked to create a
18449# shared library.
18450predeps=$lt_predeps_RC
18451
18452# Dependencies to place after the objects being linked to create a
18453# shared library.
18454postdeps=$lt_postdeps_RC
18455
18456# The library search path used internally by the compiler when linking
18457# a shared library.
18458compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18459
18460# Method to check whether dependent libraries are shared objects.
18461deplibs_check_method=$lt_deplibs_check_method
18462
18463# Command to use when deplibs_check_method == file_magic.
18464file_magic_cmd=$lt_file_magic_cmd
18465
18466# Flag that allows shared libraries with undefined symbols to be built.
18467allow_undefined_flag=$lt_allow_undefined_flag_RC
18468
18469# Flag that forces no undefined symbols.
18470no_undefined_flag=$lt_no_undefined_flag_RC
18471
18472# Commands used to finish a libtool library installation in a directory.
18473finish_cmds=$lt_finish_cmds
18474
18475# Same as above, but a single script fragment to be evaled but not shown.
18476finish_eval=$lt_finish_eval
18477
18478# Take the output of nm and produce a listing of raw symbols and C names.
18479global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18480
18481# Transform the output of nm in a proper C declaration
18482global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18483
18484# Transform the output of nm in a C name address pair
18485global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18486
18487# This is the shared library runtime path variable.
18488runpath_var=$runpath_var
18489
18490# This is the shared library path variable.
18491shlibpath_var=$shlibpath_var
18492
18493# Is shlibpath searched before the hard-coded library search path?
18494shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18495
18496# How to hardcode a shared library path into an executable.
18497hardcode_action=$hardcode_action_RC
18498
18499# Whether we should hardcode library paths into libraries.
18500hardcode_into_libs=$hardcode_into_libs
18501
18502# Flag to hardcode \$libdir into a binary during linking.
18503# This must work even if \$libdir does not exist.
18504hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18505
18506# If ld is used when linking, flag to hardcode \$libdir into
18507# a binary during linking. This must work even if \$libdir does
18508# not exist.
18509hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18510
18511# Whether we need a single -rpath flag with a separated argument.
18512hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18513
18514# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18515# resulting binary.
18516hardcode_direct=$hardcode_direct_RC
18517
18518# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18519# resulting binary.
18520hardcode_minus_L=$hardcode_minus_L_RC
18521
18522# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18523# the resulting binary.
18524hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18525
18526# Set to yes if building a shared library automatically hardcodes DIR into the library
18527# and all subsequent libraries and executables linked against it.
18528hardcode_automatic=$hardcode_automatic_RC
18529
18530# Variables whose values should be saved in libtool wrapper scripts and
18531# restored at relink time.
18532variables_saved_for_relink="$variables_saved_for_relink"
18533
18534# Whether libtool must link a program against all its dependency libraries.
18535link_all_deplibs=$link_all_deplibs_RC
18536
18537# Compile-time system search path for libraries
18538sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18539
18540# Run-time system search path for libraries
18541sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18542
18543# Fix the shell variable \$srcfile for the compiler.
18544fix_srcfile_path="$fix_srcfile_path_RC"
18545
18546# Set to yes if exported symbols are required.
18547always_export_symbols=$always_export_symbols_RC
18548
18549# The commands to list exported symbols.
18550export_symbols_cmds=$lt_export_symbols_cmds_RC
18551
18552# The commands to extract the exported symbol list from a shared archive.
18553extract_expsyms_cmds=$lt_extract_expsyms_cmds
18554
18555# Symbols that should not be listed in the preloaded symbols.
18556exclude_expsyms=$lt_exclude_expsyms_RC
18557
18558# Symbols that must always be exported.
18559include_expsyms=$lt_include_expsyms_RC
18560
18561# ### END LIBTOOL TAG CONFIG: $tagname
18562
18563__EOF__
18564
18565
18566else
18567  # If there is no Makefile yet, we rely on a make rule to execute
18568  # `config.status --recheck' to rerun these tests and create the
18569  # libtool script then.
18570  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18571  if test -f "$ltmain_in"; then
18572    test -f Makefile && make "$ltmain"
18573  fi
18574fi
18575
18576
18577ac_ext=c
18578ac_cpp='$CPP $CPPFLAGS'
18579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18581ac_compiler_gnu=$ac_cv_c_compiler_gnu
18582
18583CC="$lt_save_CC"
18584
18585	;;
18586
18587      *)
18588	as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
18589	;;
18590      esac
18591
18592      # Append the new tag name to the list of available tags.
18593      if test -n "$tagname" ; then
18594      available_tags="$available_tags $tagname"
18595    fi
18596    fi
18597  done
18598  IFS="$lt_save_ifs"
18599
18600  # Now substitute the updated list of available tags.
18601  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18602    mv "${ofile}T" "$ofile"
18603    chmod +x "$ofile"
18604  else
18605    rm -f "${ofile}T"
18606    as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
18607  fi
18608fi
18609
18610
18611
18612# This can be used to rebuild libtool when needed
18613LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18614
18615# Always use our own libtool.
18616LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18617
18618# Prevent multiple expansion
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641# Sets a conditional makefile variable so that certain Makefile tasks will be
18642# performed only on linux (currently, add -luuid to LD_FLAGS)
18643
18644
18645if case $host_os in linux*) true;; *) false;; esac; then
18646  LINUX_TRUE=
18647  LINUX_FALSE='#'
18648else
18649  LINUX_TRUE='#'
18650  LINUX_FALSE=
18651fi
18652
18653
18654# Checks for header files.
18655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18656$as_echo_n "checking for ANSI C header files... " >&6; }
18657if ${ac_cv_header_stdc+:} false; then :
18658  $as_echo_n "(cached) " >&6
18659else
18660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18661/* end confdefs.h.  */
18662#include <stdlib.h>
18663#include <stdarg.h>
18664#include <string.h>
18665#include <float.h>
18666
18667int
18668main ()
18669{
18670
18671  ;
18672  return 0;
18673}
18674_ACEOF
18675if ac_fn_c_try_compile "$LINENO"; then :
18676  ac_cv_header_stdc=yes
18677else
18678  ac_cv_header_stdc=no
18679fi
18680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18681
18682if test $ac_cv_header_stdc = yes; then
18683  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18685/* end confdefs.h.  */
18686#include <string.h>
18687
18688_ACEOF
18689if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18690  $EGREP "memchr" >/dev/null 2>&1; then :
18691
18692else
18693  ac_cv_header_stdc=no
18694fi
18695rm -f conftest*
18696
18697fi
18698
18699if test $ac_cv_header_stdc = yes; then
18700  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18702/* end confdefs.h.  */
18703#include <stdlib.h>
18704
18705_ACEOF
18706if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18707  $EGREP "free" >/dev/null 2>&1; then :
18708
18709else
18710  ac_cv_header_stdc=no
18711fi
18712rm -f conftest*
18713
18714fi
18715
18716if test $ac_cv_header_stdc = yes; then
18717  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18718  if test "$cross_compiling" = yes; then :
18719  :
18720else
18721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18722/* end confdefs.h.  */
18723#include <ctype.h>
18724#include <stdlib.h>
18725#if ((' ' & 0x0FF) == 0x020)
18726# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18727# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18728#else
18729# define ISLOWER(c) \
18730		   (('a' <= (c) && (c) <= 'i') \
18731		     || ('j' <= (c) && (c) <= 'r') \
18732		     || ('s' <= (c) && (c) <= 'z'))
18733# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18734#endif
18735
18736#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18737int
18738main ()
18739{
18740  int i;
18741  for (i = 0; i < 256; i++)
18742    if (XOR (islower (i), ISLOWER (i))
18743	|| toupper (i) != TOUPPER (i))
18744      return 2;
18745  return 0;
18746}
18747_ACEOF
18748if ac_fn_c_try_run "$LINENO"; then :
18749
18750else
18751  ac_cv_header_stdc=no
18752fi
18753rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18754  conftest.$ac_objext conftest.beam conftest.$ac_ext
18755fi
18756
18757fi
18758fi
18759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18760$as_echo "$ac_cv_header_stdc" >&6; }
18761if test $ac_cv_header_stdc = yes; then
18762
18763$as_echo "#define STDC_HEADERS 1" >>confdefs.h
18764
18765fi
18766
18767
18768# Check for systems which need -lsocket and -lnsl
18769#AX_LIB_SOCKET_NSL
18770
18771# Solaris puts nanosleep in -lrt
18772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
18773$as_echo_n "checking for library containing nanosleep... " >&6; }
18774if ${ac_cv_search_nanosleep+:} false; then :
18775  $as_echo_n "(cached) " >&6
18776else
18777  ac_func_search_save_LIBS=$LIBS
18778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18779/* end confdefs.h.  */
18780
18781/* Override any GCC internal prototype to avoid an error.
18782   Use char because int might match the return type of a GCC
18783   builtin and then its argument prototype would still apply.  */
18784#ifdef __cplusplus
18785extern "C"
18786#endif
18787char nanosleep ();
18788int
18789main ()
18790{
18791return nanosleep ();
18792  ;
18793  return 0;
18794}
18795_ACEOF
18796for ac_lib in '' rt; do
18797  if test -z "$ac_lib"; then
18798    ac_res="none required"
18799  else
18800    ac_res=-l$ac_lib
18801    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18802  fi
18803  if ac_fn_c_try_link "$LINENO"; then :
18804  ac_cv_search_nanosleep=$ac_res
18805fi
18806rm -f core conftest.err conftest.$ac_objext \
18807    conftest$ac_exeext
18808  if ${ac_cv_search_nanosleep+:} false; then :
18809  break
18810fi
18811done
18812if ${ac_cv_search_nanosleep+:} false; then :
18813
18814else
18815  ac_cv_search_nanosleep=no
18816fi
18817rm conftest.$ac_ext
18818LIBS=$ac_func_search_save_LIBS
18819fi
18820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
18821$as_echo "$ac_cv_search_nanosleep" >&6; }
18822ac_res=$ac_cv_search_nanosleep
18823if test "$ac_res" != no; then :
18824  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18825
18826else
18827
18828echo "nanosleep() required for timing operations."
18829exit 1
18830
18831fi
18832
18833
18834# Solaris puts hstrerror in -lresolv
18835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
18836$as_echo_n "checking for library containing hstrerror... " >&6; }
18837if ${ac_cv_search_hstrerror+:} false; then :
18838  $as_echo_n "(cached) " >&6
18839else
18840  ac_func_search_save_LIBS=$LIBS
18841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18842/* end confdefs.h.  */
18843
18844/* Override any GCC internal prototype to avoid an error.
18845   Use char because int might match the return type of a GCC
18846   builtin and then its argument prototype would still apply.  */
18847#ifdef __cplusplus
18848extern "C"
18849#endif
18850char hstrerror ();
18851int
18852main ()
18853{
18854return hstrerror ();
18855  ;
18856  return 0;
18857}
18858_ACEOF
18859for ac_lib in '' resolv; do
18860  if test -z "$ac_lib"; then
18861    ac_res="none required"
18862  else
18863    ac_res=-l$ac_lib
18864    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18865  fi
18866  if ac_fn_c_try_link "$LINENO"; then :
18867  ac_cv_search_hstrerror=$ac_res
18868fi
18869rm -f core conftest.err conftest.$ac_objext \
18870    conftest$ac_exeext
18871  if ${ac_cv_search_hstrerror+:} false; then :
18872  break
18873fi
18874done
18875if ${ac_cv_search_hstrerror+:} false; then :
18876
18877else
18878  ac_cv_search_hstrerror=no
18879fi
18880rm conftest.$ac_ext
18881LIBS=$ac_func_search_save_LIBS
18882fi
18883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
18884$as_echo "$ac_cv_search_hstrerror" >&6; }
18885ac_res=$ac_cv_search_hstrerror
18886if test "$ac_res" != no; then :
18887  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18888
18889else
18890
18891echo "nanosleep() required for timing operations."
18892exit 1
18893
18894fi
18895
18896
18897# Checks for typedefs, structures, and compiler characteristics.
18898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18899$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18900if ${ac_cv_c_const+:} false; then :
18901  $as_echo_n "(cached) " >&6
18902else
18903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18904/* end confdefs.h.  */
18905
18906int
18907main ()
18908{
18909/* FIXME: Include the comments suggested by Paul. */
18910#ifndef __cplusplus
18911  /* Ultrix mips cc rejects this.  */
18912  typedef int charset[2];
18913  const charset cs;
18914  /* SunOS 4.1.1 cc rejects this.  */
18915  char const *const *pcpcc;
18916  char **ppc;
18917  /* NEC SVR4.0.2 mips cc rejects this.  */
18918  struct point {int x, y;};
18919  static struct point const zero = {0,0};
18920  /* AIX XL C 1.02.0.0 rejects this.
18921     It does not let you subtract one const X* pointer from another in
18922     an arm of an if-expression whose if-part is not a constant
18923     expression */
18924  const char *g = "string";
18925  pcpcc = &g + (g ? g-g : 0);
18926  /* HPUX 7.0 cc rejects these. */
18927  ++pcpcc;
18928  ppc = (char**) pcpcc;
18929  pcpcc = (char const *const *) ppc;
18930  { /* SCO 3.2v4 cc rejects this.  */
18931    char *t;
18932    char const *s = 0 ? (char *) 0 : (char const *) 0;
18933
18934    *t++ = 0;
18935    if (s) return 0;
18936  }
18937  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18938    int x[] = {25, 17};
18939    const int *foo = &x[0];
18940    ++foo;
18941  }
18942  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18943    typedef const int *iptr;
18944    iptr p = 0;
18945    ++p;
18946  }
18947  { /* AIX XL C 1.02.0.0 rejects this saying
18948       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18949    struct s { int j; const int *ap[3]; };
18950    struct s *b; b->j = 5;
18951  }
18952  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18953    const int foo = 10;
18954    if (!foo) return 0;
18955  }
18956  return !cs[0] && !zero.x;
18957#endif
18958
18959  ;
18960  return 0;
18961}
18962_ACEOF
18963if ac_fn_c_try_compile "$LINENO"; then :
18964  ac_cv_c_const=yes
18965else
18966  ac_cv_c_const=no
18967fi
18968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18969fi
18970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18971$as_echo "$ac_cv_c_const" >&6; }
18972if test $ac_cv_c_const = no; then
18973
18974$as_echo "#define const /**/" >>confdefs.h
18975
18976fi
18977
18978
18979ac_config_files="$ac_config_files Makefile src/Makefile"
18980
18981cat >confcache <<\_ACEOF
18982# This file is a shell script that caches the results of configure
18983# tests run on this system so they can be shared between configure
18984# scripts and configure runs, see configure's option --config-cache.
18985# It is not useful on other systems.  If it contains results you don't
18986# want to keep, you may remove or edit it.
18987#
18988# config.status only pays attention to the cache file if you give it
18989# the --recheck option to rerun configure.
18990#
18991# `ac_cv_env_foo' variables (set or unset) will be overridden when
18992# loading this file, other *unset* `ac_cv_foo' will be assigned the
18993# following values.
18994
18995_ACEOF
18996
18997# The following way of writing the cache mishandles newlines in values,
18998# but we know of no workaround that is simple, portable, and efficient.
18999# So, we kill variables containing newlines.
19000# Ultrix sh set writes to stderr and can't be redirected directly,
19001# and sets the high bit in the cache file unless we assign to the vars.
19002(
19003  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19004    eval ac_val=\$$ac_var
19005    case $ac_val in #(
19006    *${as_nl}*)
19007      case $ac_var in #(
19008      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19009$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19010      esac
19011      case $ac_var in #(
19012      _ | IFS | as_nl) ;; #(
19013      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19014      *) { eval $ac_var=; unset $ac_var;} ;;
19015      esac ;;
19016    esac
19017  done
19018
19019  (set) 2>&1 |
19020    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19021    *${as_nl}ac_space=\ *)
19022      # `set' does not quote correctly, so add quotes: double-quote
19023      # substitution turns \\\\ into \\, and sed turns \\ into \.
19024      sed -n \
19025	"s/'/'\\\\''/g;
19026	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19027      ;; #(
19028    *)
19029      # `set' quotes correctly as required by POSIX, so do not add quotes.
19030      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19031      ;;
19032    esac |
19033    sort
19034) |
19035  sed '
19036     /^ac_cv_env_/b end
19037     t clear
19038     :clear
19039     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19040     t end
19041     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19042     :end' >>confcache
19043if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19044  if test -w "$cache_file"; then
19045    if test "x$cache_file" != "x/dev/null"; then
19046      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19047$as_echo "$as_me: updating cache $cache_file" >&6;}
19048      if test ! -f "$cache_file" || test -h "$cache_file"; then
19049	cat confcache >"$cache_file"
19050      else
19051        case $cache_file in #(
19052        */* | ?:*)
19053	  mv -f confcache "$cache_file"$$ &&
19054	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19055        *)
19056	  mv -f confcache "$cache_file" ;;
19057	esac
19058      fi
19059    fi
19060  else
19061    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19062$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19063  fi
19064fi
19065rm -f confcache
19066
19067test "x$prefix" = xNONE && prefix=$ac_default_prefix
19068# Let make expand exec_prefix.
19069test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19070
19071DEFS=-DHAVE_CONFIG_H
19072
19073ac_libobjs=
19074ac_ltlibobjs=
19075U=
19076for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19077  # 1. Remove the extension, and $U if already installed.
19078  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19079  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19080  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19081  #    will be set to the directory where LIBOBJS objects are built.
19082  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19083  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19084done
19085LIBOBJS=$ac_libobjs
19086
19087LTLIBOBJS=$ac_ltlibobjs
19088
19089
19090if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19091  as_fn_error $? "conditional \"AMDEP\" was never defined.
19092Usually this means the macro was only invoked conditionally." "$LINENO" 5
19093fi
19094if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19095  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19096Usually this means the macro was only invoked conditionally." "$LINENO" 5
19097fi
19098if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19099  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19100Usually this means the macro was only invoked conditionally." "$LINENO" 5
19101fi
19102if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
19103  as_fn_error $? "conditional \"LINUX\" was never defined.
19104Usually this means the macro was only invoked conditionally." "$LINENO" 5
19105fi
19106
19107: "${CONFIG_STATUS=./config.status}"
19108ac_write_fail=0
19109ac_clean_files_save=$ac_clean_files
19110ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19111{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19112$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19113as_write_fail=0
19114cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19115#! $SHELL
19116# Generated by $as_me.
19117# Run this file to recreate the current configuration.
19118# Compiler output produced by configure, useful for debugging
19119# configure, is in config.log if it exists.
19120
19121debug=false
19122ac_cs_recheck=false
19123ac_cs_silent=false
19124
19125SHELL=\${CONFIG_SHELL-$SHELL}
19126export SHELL
19127_ASEOF
19128cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19129## -------------------- ##
19130## M4sh Initialization. ##
19131## -------------------- ##
19132
19133# Be more Bourne compatible
19134DUALCASE=1; export DUALCASE # for MKS sh
19135if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19136  emulate sh
19137  NULLCMD=:
19138  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19139  # is contrary to our usage.  Disable this feature.
19140  alias -g '${1+"$@"}'='"$@"'
19141  setopt NO_GLOB_SUBST
19142else
19143  case `(set -o) 2>/dev/null` in #(
19144  *posix*) :
19145    set -o posix ;; #(
19146  *) :
19147     ;;
19148esac
19149fi
19150
19151
19152as_nl='
19153'
19154export as_nl
19155# Printing a long string crashes Solaris 7 /usr/bin/printf.
19156as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19157as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19158as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19159# Prefer a ksh shell builtin over an external printf program on Solaris,
19160# but without wasting forks for bash or zsh.
19161if test -z "$BASH_VERSION$ZSH_VERSION" \
19162    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19163  as_echo='print -r --'
19164  as_echo_n='print -rn --'
19165elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19166  as_echo='printf %s\n'
19167  as_echo_n='printf %s'
19168else
19169  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19170    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19171    as_echo_n='/usr/ucb/echo -n'
19172  else
19173    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19174    as_echo_n_body='eval
19175      arg=$1;
19176      case $arg in #(
19177      *"$as_nl"*)
19178	expr "X$arg" : "X\\(.*\\)$as_nl";
19179	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19180      esac;
19181      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19182    '
19183    export as_echo_n_body
19184    as_echo_n='sh -c $as_echo_n_body as_echo'
19185  fi
19186  export as_echo_body
19187  as_echo='sh -c $as_echo_body as_echo'
19188fi
19189
19190# The user is always right.
19191if test "${PATH_SEPARATOR+set}" != set; then
19192  PATH_SEPARATOR=:
19193  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19194    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19195      PATH_SEPARATOR=';'
19196  }
19197fi
19198
19199
19200# IFS
19201# We need space, tab and new line, in precisely that order.  Quoting is
19202# there to prevent editors from complaining about space-tab.
19203# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19204# splitting by setting IFS to empty value.)
19205IFS=" ""	$as_nl"
19206
19207# Find who we are.  Look in the path if we contain no directory separator.
19208as_myself=
19209case $0 in #((
19210  *[\\/]* ) as_myself=$0 ;;
19211  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19212for as_dir in $PATH
19213do
19214  IFS=$as_save_IFS
19215  test -z "$as_dir" && as_dir=.
19216    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19217  done
19218IFS=$as_save_IFS
19219
19220     ;;
19221esac
19222# We did not find ourselves, most probably we were run as `sh COMMAND'
19223# in which case we are not to be found in the path.
19224if test "x$as_myself" = x; then
19225  as_myself=$0
19226fi
19227if test ! -f "$as_myself"; then
19228  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19229  exit 1
19230fi
19231
19232# Unset variables that we do not need and which cause bugs (e.g. in
19233# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19234# suppresses any "Segmentation fault" message there.  '((' could
19235# trigger a bug in pdksh 5.2.14.
19236for as_var in BASH_ENV ENV MAIL MAILPATH
19237do eval test x\${$as_var+set} = xset \
19238  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19239done
19240PS1='$ '
19241PS2='> '
19242PS4='+ '
19243
19244# NLS nuisances.
19245LC_ALL=C
19246export LC_ALL
19247LANGUAGE=C
19248export LANGUAGE
19249
19250# CDPATH.
19251(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19252
19253
19254# as_fn_error STATUS ERROR [LINENO LOG_FD]
19255# ----------------------------------------
19256# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19257# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19258# script with STATUS, using 1 if that was 0.
19259as_fn_error ()
19260{
19261  as_status=$1; test $as_status -eq 0 && as_status=1
19262  if test "$4"; then
19263    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19264    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19265  fi
19266  $as_echo "$as_me: error: $2" >&2
19267  as_fn_exit $as_status
19268} # as_fn_error
19269
19270
19271# as_fn_set_status STATUS
19272# -----------------------
19273# Set $? to STATUS, without forking.
19274as_fn_set_status ()
19275{
19276  return $1
19277} # as_fn_set_status
19278
19279# as_fn_exit STATUS
19280# -----------------
19281# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19282as_fn_exit ()
19283{
19284  set +e
19285  as_fn_set_status $1
19286  exit $1
19287} # as_fn_exit
19288
19289# as_fn_unset VAR
19290# ---------------
19291# Portably unset VAR.
19292as_fn_unset ()
19293{
19294  { eval $1=; unset $1;}
19295}
19296as_unset=as_fn_unset
19297# as_fn_append VAR VALUE
19298# ----------------------
19299# Append the text in VALUE to the end of the definition contained in VAR. Take
19300# advantage of any shell optimizations that allow amortized linear growth over
19301# repeated appends, instead of the typical quadratic growth present in naive
19302# implementations.
19303if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19304  eval 'as_fn_append ()
19305  {
19306    eval $1+=\$2
19307  }'
19308else
19309  as_fn_append ()
19310  {
19311    eval $1=\$$1\$2
19312  }
19313fi # as_fn_append
19314
19315# as_fn_arith ARG...
19316# ------------------
19317# Perform arithmetic evaluation on the ARGs, and store the result in the
19318# global $as_val. Take advantage of shells that can avoid forks. The arguments
19319# must be portable across $(()) and expr.
19320if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19321  eval 'as_fn_arith ()
19322  {
19323    as_val=$(( $* ))
19324  }'
19325else
19326  as_fn_arith ()
19327  {
19328    as_val=`expr "$@" || test $? -eq 1`
19329  }
19330fi # as_fn_arith
19331
19332
19333if expr a : '\(a\)' >/dev/null 2>&1 &&
19334   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19335  as_expr=expr
19336else
19337  as_expr=false
19338fi
19339
19340if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19341  as_basename=basename
19342else
19343  as_basename=false
19344fi
19345
19346if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19347  as_dirname=dirname
19348else
19349  as_dirname=false
19350fi
19351
19352as_me=`$as_basename -- "$0" ||
19353$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19354	 X"$0" : 'X\(//\)$' \| \
19355	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19356$as_echo X/"$0" |
19357    sed '/^.*\/\([^/][^/]*\)\/*$/{
19358	    s//\1/
19359	    q
19360	  }
19361	  /^X\/\(\/\/\)$/{
19362	    s//\1/
19363	    q
19364	  }
19365	  /^X\/\(\/\).*/{
19366	    s//\1/
19367	    q
19368	  }
19369	  s/.*/./; q'`
19370
19371# Avoid depending upon Character Ranges.
19372as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19373as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19374as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19375as_cr_digits='0123456789'
19376as_cr_alnum=$as_cr_Letters$as_cr_digits
19377
19378ECHO_C= ECHO_N= ECHO_T=
19379case `echo -n x` in #(((((
19380-n*)
19381  case `echo 'xy\c'` in
19382  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19383  xy)  ECHO_C='\c';;
19384  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19385       ECHO_T='	';;
19386  esac;;
19387*)
19388  ECHO_N='-n';;
19389esac
19390
19391rm -f conf$$ conf$$.exe conf$$.file
19392if test -d conf$$.dir; then
19393  rm -f conf$$.dir/conf$$.file
19394else
19395  rm -f conf$$.dir
19396  mkdir conf$$.dir 2>/dev/null
19397fi
19398if (echo >conf$$.file) 2>/dev/null; then
19399  if ln -s conf$$.file conf$$ 2>/dev/null; then
19400    as_ln_s='ln -s'
19401    # ... but there are two gotchas:
19402    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19403    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19404    # In both cases, we have to default to `cp -p'.
19405    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19406      as_ln_s='cp -p'
19407  elif ln conf$$.file conf$$ 2>/dev/null; then
19408    as_ln_s=ln
19409  else
19410    as_ln_s='cp -p'
19411  fi
19412else
19413  as_ln_s='cp -p'
19414fi
19415rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19416rmdir conf$$.dir 2>/dev/null
19417
19418
19419# as_fn_mkdir_p
19420# -------------
19421# Create "$as_dir" as a directory, including parents if necessary.
19422as_fn_mkdir_p ()
19423{
19424
19425  case $as_dir in #(
19426  -*) as_dir=./$as_dir;;
19427  esac
19428  test -d "$as_dir" || eval $as_mkdir_p || {
19429    as_dirs=
19430    while :; do
19431      case $as_dir in #(
19432      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19433      *) as_qdir=$as_dir;;
19434      esac
19435      as_dirs="'$as_qdir' $as_dirs"
19436      as_dir=`$as_dirname -- "$as_dir" ||
19437$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19438	 X"$as_dir" : 'X\(//\)[^/]' \| \
19439	 X"$as_dir" : 'X\(//\)$' \| \
19440	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19441$as_echo X"$as_dir" |
19442    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19443	    s//\1/
19444	    q
19445	  }
19446	  /^X\(\/\/\)[^/].*/{
19447	    s//\1/
19448	    q
19449	  }
19450	  /^X\(\/\/\)$/{
19451	    s//\1/
19452	    q
19453	  }
19454	  /^X\(\/\).*/{
19455	    s//\1/
19456	    q
19457	  }
19458	  s/.*/./; q'`
19459      test -d "$as_dir" && break
19460    done
19461    test -z "$as_dirs" || eval "mkdir $as_dirs"
19462  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19463
19464
19465} # as_fn_mkdir_p
19466if mkdir -p . 2>/dev/null; then
19467  as_mkdir_p='mkdir -p "$as_dir"'
19468else
19469  test -d ./-p && rmdir ./-p
19470  as_mkdir_p=false
19471fi
19472
19473if test -x / >/dev/null 2>&1; then
19474  as_test_x='test -x'
19475else
19476  if ls -dL / >/dev/null 2>&1; then
19477    as_ls_L_option=L
19478  else
19479    as_ls_L_option=
19480  fi
19481  as_test_x='
19482    eval sh -c '\''
19483      if test -d "$1"; then
19484	test -d "$1/.";
19485      else
19486	case $1 in #(
19487	-*)set "./$1";;
19488	esac;
19489	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19490	???[sx]*):;;*)false;;esac;fi
19491    '\'' sh
19492  '
19493fi
19494as_executable_p=$as_test_x
19495
19496# Sed expression to map a string onto a valid CPP name.
19497as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19498
19499# Sed expression to map a string onto a valid variable name.
19500as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19501
19502
19503exec 6>&1
19504## ----------------------------------- ##
19505## Main body of $CONFIG_STATUS script. ##
19506## ----------------------------------- ##
19507_ASEOF
19508test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19509
19510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19511# Save the log message, to keep $0 and so on meaningful, and to
19512# report actual input values of CONFIG_FILES etc. instead of their
19513# values after options handling.
19514ac_log="
19515This file was extended by iperf $as_me 3.0a4, which was
19516generated by GNU Autoconf 2.68.  Invocation command line was
19517
19518  CONFIG_FILES    = $CONFIG_FILES
19519  CONFIG_HEADERS  = $CONFIG_HEADERS
19520  CONFIG_LINKS    = $CONFIG_LINKS
19521  CONFIG_COMMANDS = $CONFIG_COMMANDS
19522  $ $0 $@
19523
19524on `(hostname || uname -n) 2>/dev/null | sed 1q`
19525"
19526
19527_ACEOF
19528
19529case $ac_config_files in *"
19530"*) set x $ac_config_files; shift; ac_config_files=$*;;
19531esac
19532
19533case $ac_config_headers in *"
19534"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19535esac
19536
19537
19538cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19539# Files that config.status was made for.
19540config_files="$ac_config_files"
19541config_headers="$ac_config_headers"
19542config_commands="$ac_config_commands"
19543
19544_ACEOF
19545
19546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19547ac_cs_usage="\
19548\`$as_me' instantiates files and other configuration actions
19549from templates according to the current configuration.  Unless the files
19550and actions are specified as TAGs, all are instantiated by default.
19551
19552Usage: $0 [OPTION]... [TAG]...
19553
19554  -h, --help       print this help, then exit
19555  -V, --version    print version number and configuration settings, then exit
19556      --config     print configuration, then exit
19557  -q, --quiet, --silent
19558                   do not print progress messages
19559  -d, --debug      don't remove temporary files
19560      --recheck    update $as_me by reconfiguring in the same conditions
19561      --file=FILE[:TEMPLATE]
19562                   instantiate the configuration file FILE
19563      --header=FILE[:TEMPLATE]
19564                   instantiate the configuration header FILE
19565
19566Configuration files:
19567$config_files
19568
19569Configuration headers:
19570$config_headers
19571
19572Configuration commands:
19573$config_commands
19574
19575Report bugs to <[email protected]>."
19576
19577_ACEOF
19578cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19579ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19580ac_cs_version="\\
19581iperf config.status 3.0a4
19582configured by $0, generated by GNU Autoconf 2.68,
19583  with options \\"\$ac_cs_config\\"
19584
19585Copyright (C) 2010 Free Software Foundation, Inc.
19586This config.status script is free software; the Free Software Foundation
19587gives unlimited permission to copy, distribute and modify it."
19588
19589ac_pwd='$ac_pwd'
19590srcdir='$srcdir'
19591INSTALL='$INSTALL'
19592AWK='$AWK'
19593test -n "\$AWK" || AWK=awk
19594_ACEOF
19595
19596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19597# The default lists apply if the user does not specify any file.
19598ac_need_defaults=:
19599while test $# != 0
19600do
19601  case $1 in
19602  --*=?*)
19603    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19604    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19605    ac_shift=:
19606    ;;
19607  --*=)
19608    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19609    ac_optarg=
19610    ac_shift=:
19611    ;;
19612  *)
19613    ac_option=$1
19614    ac_optarg=$2
19615    ac_shift=shift
19616    ;;
19617  esac
19618
19619  case $ac_option in
19620  # Handling of the options.
19621  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19622    ac_cs_recheck=: ;;
19623  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19624    $as_echo "$ac_cs_version"; exit ;;
19625  --config | --confi | --conf | --con | --co | --c )
19626    $as_echo "$ac_cs_config"; exit ;;
19627  --debug | --debu | --deb | --de | --d | -d )
19628    debug=: ;;
19629  --file | --fil | --fi | --f )
19630    $ac_shift
19631    case $ac_optarg in
19632    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19633    '') as_fn_error $? "missing file argument" ;;
19634    esac
19635    as_fn_append CONFIG_FILES " '$ac_optarg'"
19636    ac_need_defaults=false;;
19637  --header | --heade | --head | --hea )
19638    $ac_shift
19639    case $ac_optarg in
19640    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19641    esac
19642    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19643    ac_need_defaults=false;;
19644  --he | --h)
19645    # Conflict between --help and --header
19646    as_fn_error $? "ambiguous option: \`$1'
19647Try \`$0 --help' for more information.";;
19648  --help | --hel | -h )
19649    $as_echo "$ac_cs_usage"; exit ;;
19650  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19651  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19652    ac_cs_silent=: ;;
19653
19654  # This is an error.
19655  -*) as_fn_error $? "unrecognized option: \`$1'
19656Try \`$0 --help' for more information." ;;
19657
19658  *) as_fn_append ac_config_targets " $1"
19659     ac_need_defaults=false ;;
19660
19661  esac
19662  shift
19663done
19664
19665ac_configure_extra_args=
19666
19667if $ac_cs_silent; then
19668  exec 6>/dev/null
19669  ac_configure_extra_args="$ac_configure_extra_args --silent"
19670fi
19671
19672_ACEOF
19673cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19674if \$ac_cs_recheck; then
19675  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19676  shift
19677  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19678  CONFIG_SHELL='$SHELL'
19679  export CONFIG_SHELL
19680  exec "\$@"
19681fi
19682
19683_ACEOF
19684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19685exec 5>>config.log
19686{
19687  echo
19688  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19689## Running $as_me. ##
19690_ASBOX
19691  $as_echo "$ac_log"
19692} >&5
19693
19694_ACEOF
19695cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19696#
19697# INIT-COMMANDS
19698#
19699AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19700
19701_ACEOF
19702
19703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19704
19705# Handling of arguments.
19706for ac_config_target in $ac_config_targets
19707do
19708  case $ac_config_target in
19709    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
19710    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19711    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19712    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19713
19714  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19715  esac
19716done
19717
19718
19719# If the user did not use the arguments to specify the items to instantiate,
19720# then the envvar interface is used.  Set only those that are not.
19721# We use the long form for the default assignment because of an extremely
19722# bizarre bug on SunOS 4.1.3.
19723if $ac_need_defaults; then
19724  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19725  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19726  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19727fi
19728
19729# Have a temporary directory for convenience.  Make it in the build tree
19730# simply because there is no reason against having it here, and in addition,
19731# creating and moving files from /tmp can sometimes cause problems.
19732# Hook for its removal unless debugging.
19733# Note that there is a small window in which the directory will not be cleaned:
19734# after its creation but before its name has been assigned to `$tmp'.
19735$debug ||
19736{
19737  tmp= ac_tmp=
19738  trap 'exit_status=$?
19739  : "${ac_tmp:=$tmp}"
19740  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19741' 0
19742  trap 'as_fn_exit 1' 1 2 13 15
19743}
19744# Create a (secure) tmp directory for tmp files.
19745
19746{
19747  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19748  test -d "$tmp"
19749}  ||
19750{
19751  tmp=./conf$$-$RANDOM
19752  (umask 077 && mkdir "$tmp")
19753} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19754ac_tmp=$tmp
19755
19756# Set up the scripts for CONFIG_FILES section.
19757# No need to generate them if there are no CONFIG_FILES.
19758# This happens for instance with `./config.status config.h'.
19759if test -n "$CONFIG_FILES"; then
19760
19761
19762ac_cr=`echo X | tr X '\015'`
19763# On cygwin, bash can eat \r inside `` if the user requested igncr.
19764# But we know of no other shell where ac_cr would be empty at this
19765# point, so we can use a bashism as a fallback.
19766if test "x$ac_cr" = x; then
19767  eval ac_cr=\$\'\\r\'
19768fi
19769ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19770if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19771  ac_cs_awk_cr='\\r'
19772else
19773  ac_cs_awk_cr=$ac_cr
19774fi
19775
19776echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19777_ACEOF
19778
19779
19780{
19781  echo "cat >conf$$subs.awk <<_ACEOF" &&
19782  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19783  echo "_ACEOF"
19784} >conf$$subs.sh ||
19785  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19786ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19787ac_delim='%!_!# '
19788for ac_last_try in false false false false false :; do
19789  . ./conf$$subs.sh ||
19790    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19791
19792  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19793  if test $ac_delim_n = $ac_delim_num; then
19794    break
19795  elif $ac_last_try; then
19796    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19797  else
19798    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19799  fi
19800done
19801rm -f conf$$subs.sh
19802
19803cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19804cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19805_ACEOF
19806sed -n '
19807h
19808s/^/S["/; s/!.*/"]=/
19809p
19810g
19811s/^[^!]*!//
19812:repl
19813t repl
19814s/'"$ac_delim"'$//
19815t delim
19816:nl
19817h
19818s/\(.\{148\}\)..*/\1/
19819t more1
19820s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19821p
19822n
19823b repl
19824:more1
19825s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19826p
19827g
19828s/.\{148\}//
19829t nl
19830:delim
19831h
19832s/\(.\{148\}\)..*/\1/
19833t more2
19834s/["\\]/\\&/g; s/^/"/; s/$/"/
19835p
19836b
19837:more2
19838s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19839p
19840g
19841s/.\{148\}//
19842t delim
19843' <conf$$subs.awk | sed '
19844/^[^""]/{
19845  N
19846  s/\n//
19847}
19848' >>$CONFIG_STATUS || ac_write_fail=1
19849rm -f conf$$subs.awk
19850cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19851_ACAWK
19852cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19853  for (key in S) S_is_set[key] = 1
19854  FS = ""
19855
19856}
19857{
19858  line = $ 0
19859  nfields = split(line, field, "@")
19860  substed = 0
19861  len = length(field[1])
19862  for (i = 2; i < nfields; i++) {
19863    key = field[i]
19864    keylen = length(key)
19865    if (S_is_set[key]) {
19866      value = S[key]
19867      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19868      len += length(value) + length(field[++i])
19869      substed = 1
19870    } else
19871      len += 1 + keylen
19872  }
19873
19874  print line
19875}
19876
19877_ACAWK
19878_ACEOF
19879cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19880if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19881  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19882else
19883  cat
19884fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19885  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19886_ACEOF
19887
19888# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19889# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19890# trailing colons and then remove the whole line if VPATH becomes empty
19891# (actually we leave an empty line to preserve line numbers).
19892if test "x$srcdir" = x.; then
19893  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19894h
19895s///
19896s/^/:/
19897s/[	 ]*$/:/
19898s/:\$(srcdir):/:/g
19899s/:\${srcdir}:/:/g
19900s/:@srcdir@:/:/g
19901s/^:*//
19902s/:*$//
19903x
19904s/\(=[	 ]*\).*/\1/
19905G
19906s/\n//
19907s/^[^=]*=[	 ]*$//
19908}'
19909fi
19910
19911cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19912fi # test -n "$CONFIG_FILES"
19913
19914# Set up the scripts for CONFIG_HEADERS section.
19915# No need to generate them if there are no CONFIG_HEADERS.
19916# This happens for instance with `./config.status Makefile'.
19917if test -n "$CONFIG_HEADERS"; then
19918cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19919BEGIN {
19920_ACEOF
19921
19922# Transform confdefs.h into an awk script `defines.awk', embedded as
19923# here-document in config.status, that substitutes the proper values into
19924# config.h.in to produce config.h.
19925
19926# Create a delimiter string that does not exist in confdefs.h, to ease
19927# handling of long lines.
19928ac_delim='%!_!# '
19929for ac_last_try in false false :; do
19930  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19931  if test -z "$ac_tt"; then
19932    break
19933  elif $ac_last_try; then
19934    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19935  else
19936    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19937  fi
19938done
19939
19940# For the awk script, D is an array of macro values keyed by name,
19941# likewise P contains macro parameters if any.  Preserve backslash
19942# newline sequences.
19943
19944ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19945sed -n '
19946s/.\{148\}/&'"$ac_delim"'/g
19947t rset
19948:rset
19949s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19950t def
19951d
19952:def
19953s/\\$//
19954t bsnl
19955s/["\\]/\\&/g
19956s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19957D["\1"]=" \3"/p
19958s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19959d
19960:bsnl
19961s/["\\]/\\&/g
19962s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19963D["\1"]=" \3\\\\\\n"\\/p
19964t cont
19965s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19966t cont
19967d
19968:cont
19969n
19970s/.\{148\}/&'"$ac_delim"'/g
19971t clear
19972:clear
19973s/\\$//
19974t bsnlc
19975s/["\\]/\\&/g; s/^/"/; s/$/"/p
19976d
19977:bsnlc
19978s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19979b cont
19980' <confdefs.h | sed '
19981s/'"$ac_delim"'/"\\\
19982"/g' >>$CONFIG_STATUS || ac_write_fail=1
19983
19984cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19985  for (key in D) D_is_set[key] = 1
19986  FS = ""
19987}
19988/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19989  line = \$ 0
19990  split(line, arg, " ")
19991  if (arg[1] == "#") {
19992    defundef = arg[2]
19993    mac1 = arg[3]
19994  } else {
19995    defundef = substr(arg[1], 2)
19996    mac1 = arg[2]
19997  }
19998  split(mac1, mac2, "(") #)
19999  macro = mac2[1]
20000  prefix = substr(line, 1, index(line, defundef) - 1)
20001  if (D_is_set[macro]) {
20002    # Preserve the white space surrounding the "#".
20003    print prefix "define", macro P[macro] D[macro]
20004    next
20005  } else {
20006    # Replace #undef with comments.  This is necessary, for example,
20007    # in the case of _POSIX_SOURCE, which is predefined and required
20008    # on some systems where configure will not decide to define it.
20009    if (defundef == "undef") {
20010      print "/*", prefix defundef, macro, "*/"
20011      next
20012    }
20013  }
20014}
20015{ print }
20016_ACAWK
20017_ACEOF
20018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20019  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20020fi # test -n "$CONFIG_HEADERS"
20021
20022
20023eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20024shift
20025for ac_tag
20026do
20027  case $ac_tag in
20028  :[FHLC]) ac_mode=$ac_tag; continue;;
20029  esac
20030  case $ac_mode$ac_tag in
20031  :[FHL]*:*);;
20032  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20033  :[FH]-) ac_tag=-:-;;
20034  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20035  esac
20036  ac_save_IFS=$IFS
20037  IFS=:
20038  set x $ac_tag
20039  IFS=$ac_save_IFS
20040  shift
20041  ac_file=$1
20042  shift
20043
20044  case $ac_mode in
20045  :L) ac_source=$1;;
20046  :[FH])
20047    ac_file_inputs=
20048    for ac_f
20049    do
20050      case $ac_f in
20051      -) ac_f="$ac_tmp/stdin";;
20052      *) # Look for the file first in the build tree, then in the source tree
20053	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20054	 # because $ac_f cannot contain `:'.
20055	 test -f "$ac_f" ||
20056	   case $ac_f in
20057	   [\\/$]*) false;;
20058	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20059	   esac ||
20060	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20061      esac
20062      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20063      as_fn_append ac_file_inputs " '$ac_f'"
20064    done
20065
20066    # Let's still pretend it is `configure' which instantiates (i.e., don't
20067    # use $as_me), people would be surprised to read:
20068    #    /* config.h.  Generated by config.status.  */
20069    configure_input='Generated from '`
20070	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20071	`' by configure.'
20072    if test x"$ac_file" != x-; then
20073      configure_input="$ac_file.  $configure_input"
20074      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20075$as_echo "$as_me: creating $ac_file" >&6;}
20076    fi
20077    # Neutralize special characters interpreted by sed in replacement strings.
20078    case $configure_input in #(
20079    *\&* | *\|* | *\\* )
20080       ac_sed_conf_input=`$as_echo "$configure_input" |
20081       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20082    *) ac_sed_conf_input=$configure_input;;
20083    esac
20084
20085    case $ac_tag in
20086    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20087      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20088    esac
20089    ;;
20090  esac
20091
20092  ac_dir=`$as_dirname -- "$ac_file" ||
20093$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20094	 X"$ac_file" : 'X\(//\)[^/]' \| \
20095	 X"$ac_file" : 'X\(//\)$' \| \
20096	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20097$as_echo X"$ac_file" |
20098    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20099	    s//\1/
20100	    q
20101	  }
20102	  /^X\(\/\/\)[^/].*/{
20103	    s//\1/
20104	    q
20105	  }
20106	  /^X\(\/\/\)$/{
20107	    s//\1/
20108	    q
20109	  }
20110	  /^X\(\/\).*/{
20111	    s//\1/
20112	    q
20113	  }
20114	  s/.*/./; q'`
20115  as_dir="$ac_dir"; as_fn_mkdir_p
20116  ac_builddir=.
20117
20118case "$ac_dir" in
20119.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20120*)
20121  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20122  # A ".." for each directory in $ac_dir_suffix.
20123  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20124  case $ac_top_builddir_sub in
20125  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20126  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20127  esac ;;
20128esac
20129ac_abs_top_builddir=$ac_pwd
20130ac_abs_builddir=$ac_pwd$ac_dir_suffix
20131# for backward compatibility:
20132ac_top_builddir=$ac_top_build_prefix
20133
20134case $srcdir in
20135  .)  # We are building in place.
20136    ac_srcdir=.
20137    ac_top_srcdir=$ac_top_builddir_sub
20138    ac_abs_top_srcdir=$ac_pwd ;;
20139  [\\/]* | ?:[\\/]* )  # Absolute name.
20140    ac_srcdir=$srcdir$ac_dir_suffix;
20141    ac_top_srcdir=$srcdir
20142    ac_abs_top_srcdir=$srcdir ;;
20143  *) # Relative name.
20144    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20145    ac_top_srcdir=$ac_top_build_prefix$srcdir
20146    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20147esac
20148ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20149
20150
20151  case $ac_mode in
20152  :F)
20153  #
20154  # CONFIG_FILE
20155  #
20156
20157  case $INSTALL in
20158  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20159  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20160  esac
20161_ACEOF
20162
20163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20164# If the template does not know about datarootdir, expand it.
20165# FIXME: This hack should be removed a few years after 2.60.
20166ac_datarootdir_hack=; ac_datarootdir_seen=
20167ac_sed_dataroot='
20168/datarootdir/ {
20169  p
20170  q
20171}
20172/@datadir@/p
20173/@docdir@/p
20174/@infodir@/p
20175/@localedir@/p
20176/@mandir@/p'
20177case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20178*datarootdir*) ac_datarootdir_seen=yes;;
20179*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20180  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20181$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20182_ACEOF
20183cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20184  ac_datarootdir_hack='
20185  s&@datadir@&$datadir&g
20186  s&@docdir@&$docdir&g
20187  s&@infodir@&$infodir&g
20188  s&@localedir@&$localedir&g
20189  s&@mandir@&$mandir&g
20190  s&\\\${datarootdir}&$datarootdir&g' ;;
20191esac
20192_ACEOF
20193
20194# Neutralize VPATH when `$srcdir' = `.'.
20195# Shell code in configure.ac might set extrasub.
20196# FIXME: do we really want to maintain this feature?
20197cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20198ac_sed_extra="$ac_vpsub
20199$extrasub
20200_ACEOF
20201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20202:t
20203/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20204s|@configure_input@|$ac_sed_conf_input|;t t
20205s&@top_builddir@&$ac_top_builddir_sub&;t t
20206s&@top_build_prefix@&$ac_top_build_prefix&;t t
20207s&@srcdir@&$ac_srcdir&;t t
20208s&@abs_srcdir@&$ac_abs_srcdir&;t t
20209s&@top_srcdir@&$ac_top_srcdir&;t t
20210s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20211s&@builddir@&$ac_builddir&;t t
20212s&@abs_builddir@&$ac_abs_builddir&;t t
20213s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20214s&@INSTALL@&$ac_INSTALL&;t t
20215$ac_datarootdir_hack
20216"
20217eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20218  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20219
20220test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20221  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20222  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20223      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20224  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20225which seems to be undefined.  Please make sure it is defined" >&5
20226$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20227which seems to be undefined.  Please make sure it is defined" >&2;}
20228
20229  rm -f "$ac_tmp/stdin"
20230  case $ac_file in
20231  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20232  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20233  esac \
20234  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20235 ;;
20236  :H)
20237  #
20238  # CONFIG_HEADER
20239  #
20240  if test x"$ac_file" != x-; then
20241    {
20242      $as_echo "/* $configure_input  */" \
20243      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20244    } >"$ac_tmp/config.h" \
20245      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20246    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20247      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20248$as_echo "$as_me: $ac_file is unchanged" >&6;}
20249    else
20250      rm -f "$ac_file"
20251      mv "$ac_tmp/config.h" "$ac_file" \
20252	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20253    fi
20254  else
20255    $as_echo "/* $configure_input  */" \
20256      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20257      || as_fn_error $? "could not create -" "$LINENO" 5
20258  fi
20259# Compute "$ac_file"'s index in $config_headers.
20260_am_stamp_count=1
20261for _am_header in $config_headers :; do
20262  case $_am_header in
20263    "$ac_file" | "$ac_file":* )
20264      break ;;
20265    * )
20266      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20267  esac
20268done
20269echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
20270$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20271	 X"$ac_file" : 'X\(//\)[^/]' \| \
20272	 X"$ac_file" : 'X\(//\)$' \| \
20273	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20274$as_echo X"$ac_file" |
20275    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20276	    s//\1/
20277	    q
20278	  }
20279	  /^X\(\/\/\)[^/].*/{
20280	    s//\1/
20281	    q
20282	  }
20283	  /^X\(\/\/\)$/{
20284	    s//\1/
20285	    q
20286	  }
20287	  /^X\(\/\).*/{
20288	    s//\1/
20289	    q
20290	  }
20291	  s/.*/./; q'`/stamp-h$_am_stamp_count
20292 ;;
20293
20294  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20295$as_echo "$as_me: executing $ac_file commands" >&6;}
20296 ;;
20297  esac
20298
20299
20300  case $ac_file$ac_mode in
20301    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20302  # Strip MF so we end up with the name of the file.
20303  mf=`echo "$mf" | sed -e 's/:.*$//'`
20304  # Check whether this is an Automake generated Makefile or not.
20305  # We used to match only the files named `Makefile.in', but
20306  # some people rename them; so instead we look at the file content.
20307  # Grep'ing the first line is not enough: some people post-process
20308  # each Makefile.in and add a new line on top of each file to say so.
20309  # So let's grep whole file.
20310  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20311    dirpart=`$as_dirname -- "$mf" ||
20312$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20313	 X"$mf" : 'X\(//\)[^/]' \| \
20314	 X"$mf" : 'X\(//\)$' \| \
20315	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20316$as_echo X"$mf" |
20317    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20318	    s//\1/
20319	    q
20320	  }
20321	  /^X\(\/\/\)[^/].*/{
20322	    s//\1/
20323	    q
20324	  }
20325	  /^X\(\/\/\)$/{
20326	    s//\1/
20327	    q
20328	  }
20329	  /^X\(\/\).*/{
20330	    s//\1/
20331	    q
20332	  }
20333	  s/.*/./; q'`
20334  else
20335    continue
20336  fi
20337  # Extract the definition of DEPDIR, am__include, and am__quote
20338  # from the Makefile without running `make'.
20339  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20340  test -z "$DEPDIR" && continue
20341  am__include=`sed -n 's/^am__include = //p' < "$mf"`
20342  test -z "am__include" && continue
20343  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20344  # When using ansi2knr, U may be empty or an underscore; expand it
20345  U=`sed -n 's/^U = //p' < "$mf"`
20346  # Find all dependency output files, they are included files with
20347  # $(DEPDIR) in their names.  We invoke sed twice because it is the
20348  # simplest approach to changing $(DEPDIR) to its actual value in the
20349  # expansion.
20350  for file in `sed -n "
20351    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20352       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20353    # Make sure the directory exists.
20354    test -f "$dirpart/$file" && continue
20355    fdir=`$as_dirname -- "$file" ||
20356$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20357	 X"$file" : 'X\(//\)[^/]' \| \
20358	 X"$file" : 'X\(//\)$' \| \
20359	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20360$as_echo X"$file" |
20361    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20362	    s//\1/
20363	    q
20364	  }
20365	  /^X\(\/\/\)[^/].*/{
20366	    s//\1/
20367	    q
20368	  }
20369	  /^X\(\/\/\)$/{
20370	    s//\1/
20371	    q
20372	  }
20373	  /^X\(\/\).*/{
20374	    s//\1/
20375	    q
20376	  }
20377	  s/.*/./; q'`
20378    as_dir=$dirpart/$fdir; as_fn_mkdir_p
20379    # echo "creating $dirpart/$file"
20380    echo '# dummy' > "$dirpart/$file"
20381  done
20382done
20383 ;;
20384
20385  esac
20386done # for ac_tag
20387
20388
20389as_fn_exit 0
20390_ACEOF
20391ac_clean_files=$ac_clean_files_save
20392
20393test $ac_write_fail = 0 ||
20394  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20395
20396
20397# configure is writing to config.log, and then calls config.status.
20398# config.status does its own redirection, appending to config.log.
20399# Unfortunately, on DOS this fails, as config.log is still kept open
20400# by configure, so config.status won't be able to write to it; its
20401# output is simply discarded.  So we exec the FD to /dev/null,
20402# effectively closing config.log, so it can be properly (re)opened and
20403# appended to by config.status.  When coming back to configure, we
20404# need to make the FD available again.
20405if test "$no_create" != yes; then
20406  ac_cs_success=:
20407  ac_config_status_args=
20408  test "$silent" = yes &&
20409    ac_config_status_args="$ac_config_status_args --quiet"
20410  exec 5>/dev/null
20411  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20412  exec 5>>config.log
20413  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20414  # would make configure fail if this is the last instruction.
20415  $ac_cs_success || as_fn_exit 1
20416fi
20417if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20418  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20419$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20420fi
20421
20422