xref: /minix/external/bsd/bind/dist/unit/atf-src/configure (revision bb9622b5)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for Automated Testing Framework 0.17.
4#
5# Report bugs to <atf-devel@NetBSD.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13#
14# Copyright (c) 2007-2012 The NetBSD Foundation, Inc.
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
139# Use a proper internal environment variable to ensure we don't fall
140  # into an infinite loop, continuously re-executing ourselves.
141  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142    _as_can_reexec=no; export _as_can_reexec;
143    # We cannot yet assume a decent shell, so we have to provide a
144# neutralization value for shells without unset; and this also
145# works around shells that cannot unset nonexistent variables.
146# Preserve -v and -x to the replacement shell.
147BASH_ENV=/dev/null
148ENV=/dev/null
149(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150case $- in # ((((
151  *v*x* | *x*v* ) as_opts=-vx ;;
152  *v* ) as_opts=-v ;;
153  *x* ) as_opts=-x ;;
154  * ) as_opts= ;;
155esac
156exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157# Admittedly, this is quite paranoid, since all the known shells bail
158# out after a failed `exec'.
159$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160as_fn_exit 255
161  fi
162  # We don't want this to propagate to other subprocesses.
163          { _as_can_reexec=; unset _as_can_reexec;}
164if test "x$CONFIG_SHELL" = x; then
165  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166  emulate sh
167  NULLCMD=:
168  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169  # is contrary to our usage.  Disable this feature.
170  alias -g '\${1+\"\$@\"}'='\"\$@\"'
171  setopt NO_GLOB_SUBST
172else
173  case \`(set -o) 2>/dev/null\` in #(
174  *posix*) :
175    set -o posix ;; #(
176  *) :
177     ;;
178esac
179fi
180"
181  as_required="as_fn_return () { (exit \$1); }
182as_fn_success () { as_fn_return 0; }
183as_fn_failure () { as_fn_return 1; }
184as_fn_ret_success () { return 0; }
185as_fn_ret_failure () { return 1; }
186
187exitcode=0
188as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
194else
195  exitcode=1; echo positional parameters were not saved.
196fi
197test x\$exitcode = x0 || exit 1
198test -x / || exit 1"
199  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203test \$(( 1 + 1 )) = 2 || exit 1"
204  if (eval "$as_required") 2>/dev/null; then :
205  as_have_required=yes
206else
207  as_have_required=no
208fi
209  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210
211else
212  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
213as_found=false
214for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215do
216  IFS=$as_save_IFS
217  test -z "$as_dir" && as_dir=.
218  as_found=:
219  case $as_dir in #(
220	 /*)
221	   for as_base in sh bash ksh sh5; do
222	     # Try only shells that exist, to save several forks.
223	     as_shell=$as_dir/$as_base
224	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
225		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  CONFIG_SHELL=$as_shell as_have_required=yes
227		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
228  break 2
229fi
230fi
231	   done;;
232       esac
233  as_found=false
234done
235$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
236	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
237  CONFIG_SHELL=$SHELL as_have_required=yes
238fi; }
239IFS=$as_save_IFS
240
241
242      if test "x$CONFIG_SHELL" != x; then :
243  export CONFIG_SHELL
244             # We cannot yet assume a decent shell, so we have to provide a
245# neutralization value for shells without unset; and this also
246# works around shells that cannot unset nonexistent variables.
247# Preserve -v and -x to the replacement shell.
248BASH_ENV=/dev/null
249ENV=/dev/null
250(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
251case $- in # ((((
252  *v*x* | *x*v* ) as_opts=-vx ;;
253  *v* ) as_opts=-v ;;
254  *x* ) as_opts=-x ;;
255  * ) as_opts= ;;
256esac
257exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
258# Admittedly, this is quite paranoid, since all the known shells bail
259# out after a failed `exec'.
260$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
261exit 255
262fi
263
264    if test x$as_have_required = xno; then :
265  $as_echo "$0: This script requires a shell more modern than all"
266  $as_echo "$0: the shells that I found on your system."
267  if test x${ZSH_VERSION+set} = xset ; then
268    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
269    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
270  else
271    $as_echo "$0: Please tell bug-autoconf@gnu.org and
272$0: atf-devel@NetBSD.org about your system, including any
273$0: error possibly output before this message. Then install
274$0: a modern shell, or manually run the script under such a
275$0: shell if you do have one."
276  fi
277  exit 1
278fi
279fi
280fi
281SHELL=${CONFIG_SHELL-/bin/sh}
282export SHELL
283# Unset more variables known to interfere with behavior of common tools.
284CLICOLOR_FORCE= GREP_OPTIONS=
285unset CLICOLOR_FORCE GREP_OPTIONS
286
287## --------------------- ##
288## M4sh Shell Functions. ##
289## --------------------- ##
290# as_fn_unset VAR
291# ---------------
292# Portably unset VAR.
293as_fn_unset ()
294{
295  { eval $1=; unset $1;}
296}
297as_unset=as_fn_unset
298
299# as_fn_set_status STATUS
300# -----------------------
301# Set $? to STATUS, without forking.
302as_fn_set_status ()
303{
304  return $1
305} # as_fn_set_status
306
307# as_fn_exit STATUS
308# -----------------
309# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310as_fn_exit ()
311{
312  set +e
313  as_fn_set_status $1
314  exit $1
315} # as_fn_exit
316
317# as_fn_mkdir_p
318# -------------
319# Create "$as_dir" as a directory, including parents if necessary.
320as_fn_mkdir_p ()
321{
322
323  case $as_dir in #(
324  -*) as_dir=./$as_dir;;
325  esac
326  test -d "$as_dir" || eval $as_mkdir_p || {
327    as_dirs=
328    while :; do
329      case $as_dir in #(
330      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331      *) as_qdir=$as_dir;;
332      esac
333      as_dirs="'$as_qdir' $as_dirs"
334      as_dir=`$as_dirname -- "$as_dir" ||
335$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
336	 X"$as_dir" : 'X\(//\)[^/]' \| \
337	 X"$as_dir" : 'X\(//\)$' \| \
338	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
339$as_echo X"$as_dir" |
340    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
341	    s//\1/
342	    q
343	  }
344	  /^X\(\/\/\)[^/].*/{
345	    s//\1/
346	    q
347	  }
348	  /^X\(\/\/\)$/{
349	    s//\1/
350	    q
351	  }
352	  /^X\(\/\).*/{
353	    s//\1/
354	    q
355	  }
356	  s/.*/./; q'`
357      test -d "$as_dir" && break
358    done
359    test -z "$as_dirs" || eval "mkdir $as_dirs"
360  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361
362
363} # as_fn_mkdir_p
364
365# as_fn_executable_p FILE
366# -----------------------
367# Test if FILE is an executable regular file.
368as_fn_executable_p ()
369{
370  test -f "$1" && test -x "$1"
371} # as_fn_executable_p
372# as_fn_append VAR VALUE
373# ----------------------
374# Append the text in VALUE to the end of the definition contained in VAR. Take
375# advantage of any shell optimizations that allow amortized linear growth over
376# repeated appends, instead of the typical quadratic growth present in naive
377# implementations.
378if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
379  eval 'as_fn_append ()
380  {
381    eval $1+=\$2
382  }'
383else
384  as_fn_append ()
385  {
386    eval $1=\$$1\$2
387  }
388fi # as_fn_append
389
390# as_fn_arith ARG...
391# ------------------
392# Perform arithmetic evaluation on the ARGs, and store the result in the
393# global $as_val. Take advantage of shells that can avoid forks. The arguments
394# must be portable across $(()) and expr.
395if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
396  eval 'as_fn_arith ()
397  {
398    as_val=$(( $* ))
399  }'
400else
401  as_fn_arith ()
402  {
403    as_val=`expr "$@" || test $? -eq 1`
404  }
405fi # as_fn_arith
406
407
408# as_fn_error STATUS ERROR [LINENO LOG_FD]
409# ----------------------------------------
410# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
411# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
412# script with STATUS, using 1 if that was 0.
413as_fn_error ()
414{
415  as_status=$1; test $as_status -eq 0 && as_status=1
416  if test "$4"; then
417    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
418    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
419  fi
420  $as_echo "$as_me: error: $2" >&2
421  as_fn_exit $as_status
422} # as_fn_error
423
424if expr a : '\(a\)' >/dev/null 2>&1 &&
425   test "X`expr 00001 : '.*\(...\)'`" = X001; then
426  as_expr=expr
427else
428  as_expr=false
429fi
430
431if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432  as_basename=basename
433else
434  as_basename=false
435fi
436
437if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438  as_dirname=dirname
439else
440  as_dirname=false
441fi
442
443as_me=`$as_basename -- "$0" ||
444$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
445	 X"$0" : 'X\(//\)$' \| \
446	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
447$as_echo X/"$0" |
448    sed '/^.*\/\([^/][^/]*\)\/*$/{
449	    s//\1/
450	    q
451	  }
452	  /^X\/\(\/\/\)$/{
453	    s//\1/
454	    q
455	  }
456	  /^X\/\(\/\).*/{
457	    s//\1/
458	    q
459	  }
460	  s/.*/./; q'`
461
462# Avoid depending upon Character Ranges.
463as_cr_letters='abcdefghijklmnopqrstuvwxyz'
464as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
465as_cr_Letters=$as_cr_letters$as_cr_LETTERS
466as_cr_digits='0123456789'
467as_cr_alnum=$as_cr_Letters$as_cr_digits
468
469
470  as_lineno_1=$LINENO as_lineno_1a=$LINENO
471  as_lineno_2=$LINENO as_lineno_2a=$LINENO
472  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
473  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
474  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
475  sed -n '
476    p
477    /[$]LINENO/=
478  ' <$as_myself |
479    sed '
480      s/[$]LINENO.*/&-/
481      t lineno
482      b
483      :lineno
484      N
485      :loop
486      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
487      t loop
488      s/-\n.*//
489    ' >$as_me.lineno &&
490  chmod +x "$as_me.lineno" ||
491    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
492
493  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
494  # already done that, so ensure we don't try to do so again and fall
495  # in an infinite loop.  This has already happened in practice.
496  _as_can_reexec=no; export _as_can_reexec
497  # Don't try to exec as it changes $[0], causing all sort of problems
498  # (the dirname of $[0] is not the place where we might find the
499  # original and so on.  Autoconf is especially sensitive to this).
500  . "./$as_me.lineno"
501  # Exit status is that of the last command.
502  exit
503}
504
505ECHO_C= ECHO_N= ECHO_T=
506case `echo -n x` in #(((((
507-n*)
508  case `echo 'xy\c'` in
509  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
510  xy)  ECHO_C='\c';;
511  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
512       ECHO_T='	';;
513  esac;;
514*)
515  ECHO_N='-n';;
516esac
517
518rm -f conf$$ conf$$.exe conf$$.file
519if test -d conf$$.dir; then
520  rm -f conf$$.dir/conf$$.file
521else
522  rm -f conf$$.dir
523  mkdir conf$$.dir 2>/dev/null
524fi
525if (echo >conf$$.file) 2>/dev/null; then
526  if ln -s conf$$.file conf$$ 2>/dev/null; then
527    as_ln_s='ln -s'
528    # ... but there are two gotchas:
529    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
530    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
531    # In both cases, we have to default to `cp -pR'.
532    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
533      as_ln_s='cp -pR'
534  elif ln conf$$.file conf$$ 2>/dev/null; then
535    as_ln_s=ln
536  else
537    as_ln_s='cp -pR'
538  fi
539else
540  as_ln_s='cp -pR'
541fi
542rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
543rmdir conf$$.dir 2>/dev/null
544
545if mkdir -p . 2>/dev/null; then
546  as_mkdir_p='mkdir -p "$as_dir"'
547else
548  test -d ./-p && rmdir ./-p
549  as_mkdir_p=false
550fi
551
552as_test_x='test -x'
553as_executable_p=as_fn_executable_p
554
555# Sed expression to map a string onto a valid CPP name.
556as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
557
558# Sed expression to map a string onto a valid variable name.
559as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560
561
562
563# Check that we are running under the correct shell.
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566case X$lt_ECHO in
567X*--fallback-echo)
568  # Remove one level of quotation (which was required for Make).
569  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
570  ;;
571esac
572
573ECHO=${lt_ECHO-echo}
574if test "X$1" = X--no-reexec; then
575  # Discard the --no-reexec flag, and continue.
576  shift
577elif test "X$1" = X--fallback-echo; then
578  # Avoid inline document here, it may be left over
579  :
580elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
581  # Yippee, $ECHO works!
582  :
583else
584  # Restart under the correct shell.
585  exec $SHELL "$0" --no-reexec ${1+"$@"}
586fi
587
588if test "X$1" = X--fallback-echo; then
589  # used as fallback echo
590  shift
591  cat <<_LT_EOF
592$*
593_LT_EOF
594  exit 0
595fi
596
597# The HP-UX ksh and POSIX shell print the target directory to stdout
598# if CDPATH is set.
599(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
600
601if test -z "$lt_ECHO"; then
602  if test "X${echo_test_string+set}" != Xset; then
603    # find a string as large as possible, as long as the shell can cope with it
604    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
605      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
606      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
607	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
608      then
609        break
610      fi
611    done
612  fi
613
614  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
615     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
616     test "X$echo_testing_string" = "X$echo_test_string"; then
617    :
618  else
619    # The Solaris, AIX, and Digital Unix default echo programs unquote
620    # backslashes.  This makes it impossible to quote backslashes using
621    #   echo "$something" | sed 's/\\/\\\\/g'
622    #
623    # So, first we look for a working echo in the user's PATH.
624
625    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
626    for dir in $PATH /usr/ucb; do
627      IFS="$lt_save_ifs"
628      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
629         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
630         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
631         test "X$echo_testing_string" = "X$echo_test_string"; then
632        ECHO="$dir/echo"
633        break
634      fi
635    done
636    IFS="$lt_save_ifs"
637
638    if test "X$ECHO" = Xecho; then
639      # We didn't find a better echo, so look for alternatives.
640      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
641         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
642         test "X$echo_testing_string" = "X$echo_test_string"; then
643        # This shell has a builtin print -r that does the trick.
644        ECHO='print -r'
645      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
646	   test "X$CONFIG_SHELL" != X/bin/ksh; then
647        # If we have ksh, try running configure again with it.
648        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
649        export ORIGINAL_CONFIG_SHELL
650        CONFIG_SHELL=/bin/ksh
651        export CONFIG_SHELL
652        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
653      else
654        # Try using printf.
655        ECHO='printf %s\n'
656        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
657	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
658	   test "X$echo_testing_string" = "X$echo_test_string"; then
659	  # Cool, printf works
660	  :
661        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662	     test "X$echo_testing_string" = 'X\t' &&
663	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664	     test "X$echo_testing_string" = "X$echo_test_string"; then
665	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
666	  export CONFIG_SHELL
667	  SHELL="$CONFIG_SHELL"
668	  export SHELL
669	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
670        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
671	     test "X$echo_testing_string" = 'X\t' &&
672	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
673	     test "X$echo_testing_string" = "X$echo_test_string"; then
674	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
675        else
676	  # maybe with a smaller string...
677	  prev=:
678
679	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
680	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
681	    then
682	      break
683	    fi
684	    prev="$cmd"
685	  done
686
687	  if test "$prev" != 'sed 50q "$0"'; then
688	    echo_test_string=`eval $prev`
689	    export echo_test_string
690	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
691	  else
692	    # Oops.  We lost completely, so just stick with echo.
693	    ECHO=echo
694	  fi
695        fi
696      fi
697    fi
698  fi
699fi
700
701# Copy echo and quote the copy suitably for passing to libtool from
702# the Makefile, instead of quoting the original, which is used later.
703lt_ECHO=$ECHO
704if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
705   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
706fi
707
708
709
710
711test -n "$DJDIR" || exec 7<&0 </dev/null
712exec 6>&1
713
714# Name of the host.
715# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
716# so uname gets run too.
717ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718
719#
720# Initializations.
721#
722ac_default_prefix=/usr/local
723ac_clean_files=
724ac_config_libobj_dir=.
725LIBOBJS=
726cross_compiling=no
727subdirs=
728MFLAGS=
729MAKEFLAGS=
730
731# Identity of this package.
732PACKAGE_NAME='Automated Testing Framework'
733PACKAGE_TARNAME='atf'
734PACKAGE_VERSION='0.17'
735PACKAGE_STRING='Automated Testing Framework 0.17'
736PACKAGE_BUGREPORT='atf-devel@NetBSD.org'
737PACKAGE_URL='http://code.google.com/p/kyua/wiki/ATF'
738
739ac_unique_file="atf-c.h"
740# Factoring default headers for most tests.
741ac_includes_default="\
742#include <stdio.h>
743#ifdef HAVE_SYS_TYPES_H
744# include <sys/types.h>
745#endif
746#ifdef HAVE_SYS_STAT_H
747# include <sys/stat.h>
748#endif
749#ifdef STDC_HEADERS
750# include <stdlib.h>
751# include <stddef.h>
752#else
753# ifdef HAVE_STDLIB_H
754#  include <stdlib.h>
755# endif
756#endif
757#ifdef HAVE_STRING_H
758# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759#  include <memory.h>
760# endif
761# include <string.h>
762#endif
763#ifdef HAVE_STRINGS_H
764# include <strings.h>
765#endif
766#ifdef HAVE_INTTYPES_H
767# include <inttypes.h>
768#endif
769#ifdef HAVE_STDINT_H
770# include <stdint.h>
771#endif
772#ifdef HAVE_UNISTD_H
773# include <unistd.h>
774#endif"
775
776ac_subst_vars='am__EXEEXT_FALSE
777am__EXEEXT_TRUE
778LTLIBOBJS
779LIBOBJS
780GIT
781HAVE_KYUA_FALSE
782HAVE_KYUA_TRUE
783KYUA
784GDB
785ATF_SHELL
786atf_xsldir
787atf_pkgconfigdir
788atf_egdir
789atf_dtddir
790atf_cssdir
791atf_aclocaldir
792ATF_WORKDIR
793atf_confdir
794ATF_CONFSUBDIR
795atf_machine
796atf_arch
797target_srcdir
798ATF_BUILD_CXXFLAGS
799ATF_BUILD_CXX
800ATF_BUILD_CPPFLAGS
801ATF_BUILD_CPP
802ATF_BUILD_CFLAGS
803ATF_BUILD_CC
804ATTRIBUTE_UNUSED
805ATTRIBUTE_NORETURN
806ATTRIBUTE_FORMAT_PRINTF
807CXXCPP
808am__fastdepCXX_FALSE
809am__fastdepCXX_TRUE
810CXXDEPMODE
811ac_ct_CXX
812CXXFLAGS
813CXX
814ENABLE_TOOLS_FALSE
815ENABLE_TOOLS_TRUE
816ENABLE_TOOLS
817CPP
818OTOOL64
819OTOOL
820LIPO
821NMEDIT
822DSYMUTIL
823lt_ECHO
824RANLIB
825AR
826OBJDUMP
827LN_S
828NM
829ac_ct_DUMPBIN
830DUMPBIN
831LD
832FGREP
833EGREP
834GREP
835SED
836am__fastdepCC_FALSE
837am__fastdepCC_TRUE
838CCDEPMODE
839am__nodep
840AMDEPBACKSLASH
841AMDEP_FALSE
842AMDEP_TRUE
843am__quote
844am__include
845DEPDIR
846OBJEXT
847EXEEXT
848ac_ct_CC
849CPPFLAGS
850LDFLAGS
851CFLAGS
852CC
853LIBTOOL
854am__untar
855am__tar
856AMTAR
857am__leading_dot
858SET_MAKE
859AWK
860mkdir_p
861MKDIR_P
862INSTALL_STRIP_PROGRAM
863STRIP
864install_sh
865MAKEINFO
866AUTOHEADER
867AUTOMAKE
868AUTOCONF
869ACLOCAL
870VERSION
871PACKAGE
872CYGPATH_W
873am__isrc
874INSTALL_DATA
875INSTALL_SCRIPT
876INSTALL_PROGRAM
877target_os
878target_vendor
879target_cpu
880target
881host_os
882host_vendor
883host_cpu
884host
885build_os
886build_vendor
887build_cpu
888build
889target_alias
890host_alias
891build_alias
892LIBS
893ECHO_T
894ECHO_N
895ECHO_C
896DEFS
897mandir
898localedir
899libdir
900psdir
901pdfdir
902dvidir
903htmldir
904infodir
905docdir
906oldincludedir
907includedir
908localstatedir
909sharedstatedir
910sysconfdir
911datadir
912datarootdir
913libexecdir
914sbindir
915bindir
916program_transform_name
917prefix
918exec_prefix
919PACKAGE_URL
920PACKAGE_BUGREPORT
921PACKAGE_STRING
922PACKAGE_VERSION
923PACKAGE_TARNAME
924PACKAGE_NAME
925PATH_SEPARATOR
926SHELL'
927ac_subst_files=''
928ac_user_opts='
929enable_option_checking
930enable_shared
931enable_static
932with_pic
933enable_fast_install
934enable_dependency_tracking
935with_gnu_ld
936enable_libtool_lock
937enable_tools
938enable_developer
939'
940      ac_precious_vars='build_alias
941host_alias
942target_alias
943CC
944CFLAGS
945LDFLAGS
946LIBS
947CPPFLAGS
948CPP
949CXX
950CXXFLAGS
951CCC
952CXXCPP
953ATF_BUILD_CC
954ATF_BUILD_CFLAGS
955ATF_BUILD_CPP
956ATF_BUILD_CPPFLAGS
957ATF_BUILD_CXX
958ATF_BUILD_CXXFLAGS
959ATF_CONFSUBDIR
960ATF_WORKDIR
961ATF_SHELL'
962
963
964# Initialize some variables set by options.
965ac_init_help=
966ac_init_version=false
967ac_unrecognized_opts=
968ac_unrecognized_sep=
969# The variables have the same names as the options, with
970# dashes changed to underlines.
971cache_file=/dev/null
972exec_prefix=NONE
973no_create=
974no_recursion=
975prefix=NONE
976program_prefix=NONE
977program_suffix=NONE
978program_transform_name=s,x,x,
979silent=
980site=
981srcdir=
982verbose=
983x_includes=NONE
984x_libraries=NONE
985
986# Installation directory options.
987# These are left unexpanded so users can "make install exec_prefix=/foo"
988# and all the variables that are supposed to be based on exec_prefix
989# by default will actually change.
990# Use braces instead of parens because sh, perl, etc. also accept them.
991# (The list follows the same order as the GNU Coding Standards.)
992bindir='${exec_prefix}/bin'
993sbindir='${exec_prefix}/sbin'
994libexecdir='${exec_prefix}/libexec'
995datarootdir='${prefix}/share'
996datadir='${datarootdir}'
997sysconfdir='${prefix}/etc'
998sharedstatedir='${prefix}/com'
999localstatedir='${prefix}/var'
1000includedir='${prefix}/include'
1001oldincludedir='/usr/include'
1002docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1003infodir='${datarootdir}/info'
1004htmldir='${docdir}'
1005dvidir='${docdir}'
1006pdfdir='${docdir}'
1007psdir='${docdir}'
1008libdir='${exec_prefix}/lib'
1009localedir='${datarootdir}/locale'
1010mandir='${datarootdir}/man'
1011
1012ac_prev=
1013ac_dashdash=
1014for ac_option
1015do
1016  # If the previous option needs an argument, assign it.
1017  if test -n "$ac_prev"; then
1018    eval $ac_prev=\$ac_option
1019    ac_prev=
1020    continue
1021  fi
1022
1023  case $ac_option in
1024  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1025  *=)   ac_optarg= ;;
1026  *)    ac_optarg=yes ;;
1027  esac
1028
1029  # Accept the important Cygnus configure options, so we can diagnose typos.
1030
1031  case $ac_dashdash$ac_option in
1032  --)
1033    ac_dashdash=yes ;;
1034
1035  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1036    ac_prev=bindir ;;
1037  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1038    bindir=$ac_optarg ;;
1039
1040  -build | --build | --buil | --bui | --bu)
1041    ac_prev=build_alias ;;
1042  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1043    build_alias=$ac_optarg ;;
1044
1045  -cache-file | --cache-file | --cache-fil | --cache-fi \
1046  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1047    ac_prev=cache_file ;;
1048  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1049  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1050    cache_file=$ac_optarg ;;
1051
1052  --config-cache | -C)
1053    cache_file=config.cache ;;
1054
1055  -datadir | --datadir | --datadi | --datad)
1056    ac_prev=datadir ;;
1057  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1058    datadir=$ac_optarg ;;
1059
1060  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1061  | --dataroo | --dataro | --datar)
1062    ac_prev=datarootdir ;;
1063  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1064  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1065    datarootdir=$ac_optarg ;;
1066
1067  -disable-* | --disable-*)
1068    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069    # Reject names that are not valid shell variable names.
1070    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071      as_fn_error $? "invalid feature name: $ac_useropt"
1072    ac_useropt_orig=$ac_useropt
1073    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074    case $ac_user_opts in
1075      *"
1076"enable_$ac_useropt"
1077"*) ;;
1078      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1079	 ac_unrecognized_sep=', ';;
1080    esac
1081    eval enable_$ac_useropt=no ;;
1082
1083  -docdir | --docdir | --docdi | --doc | --do)
1084    ac_prev=docdir ;;
1085  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1086    docdir=$ac_optarg ;;
1087
1088  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1089    ac_prev=dvidir ;;
1090  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1091    dvidir=$ac_optarg ;;
1092
1093  -enable-* | --enable-*)
1094    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1095    # Reject names that are not valid shell variable names.
1096    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097      as_fn_error $? "invalid feature name: $ac_useropt"
1098    ac_useropt_orig=$ac_useropt
1099    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100    case $ac_user_opts in
1101      *"
1102"enable_$ac_useropt"
1103"*) ;;
1104      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1105	 ac_unrecognized_sep=', ';;
1106    esac
1107    eval enable_$ac_useropt=\$ac_optarg ;;
1108
1109  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1110  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1111  | --exec | --exe | --ex)
1112    ac_prev=exec_prefix ;;
1113  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1114  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1115  | --exec=* | --exe=* | --ex=*)
1116    exec_prefix=$ac_optarg ;;
1117
1118  -gas | --gas | --ga | --g)
1119    # Obsolete; use --with-gas.
1120    with_gas=yes ;;
1121
1122  -help | --help | --hel | --he | -h)
1123    ac_init_help=long ;;
1124  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1125    ac_init_help=recursive ;;
1126  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1127    ac_init_help=short ;;
1128
1129  -host | --host | --hos | --ho)
1130    ac_prev=host_alias ;;
1131  -host=* | --host=* | --hos=* | --ho=*)
1132    host_alias=$ac_optarg ;;
1133
1134  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1135    ac_prev=htmldir ;;
1136  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1137  | --ht=*)
1138    htmldir=$ac_optarg ;;
1139
1140  -includedir | --includedir | --includedi | --included | --include \
1141  | --includ | --inclu | --incl | --inc)
1142    ac_prev=includedir ;;
1143  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1144  | --includ=* | --inclu=* | --incl=* | --inc=*)
1145    includedir=$ac_optarg ;;
1146
1147  -infodir | --infodir | --infodi | --infod | --info | --inf)
1148    ac_prev=infodir ;;
1149  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1150    infodir=$ac_optarg ;;
1151
1152  -libdir | --libdir | --libdi | --libd)
1153    ac_prev=libdir ;;
1154  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1155    libdir=$ac_optarg ;;
1156
1157  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1158  | --libexe | --libex | --libe)
1159    ac_prev=libexecdir ;;
1160  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1161  | --libexe=* | --libex=* | --libe=*)
1162    libexecdir=$ac_optarg ;;
1163
1164  -localedir | --localedir | --localedi | --localed | --locale)
1165    ac_prev=localedir ;;
1166  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1167    localedir=$ac_optarg ;;
1168
1169  -localstatedir | --localstatedir | --localstatedi | --localstated \
1170  | --localstate | --localstat | --localsta | --localst | --locals)
1171    ac_prev=localstatedir ;;
1172  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1173  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1174    localstatedir=$ac_optarg ;;
1175
1176  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1177    ac_prev=mandir ;;
1178  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1179    mandir=$ac_optarg ;;
1180
1181  -nfp | --nfp | --nf)
1182    # Obsolete; use --without-fp.
1183    with_fp=no ;;
1184
1185  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1186  | --no-cr | --no-c | -n)
1187    no_create=yes ;;
1188
1189  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1190  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1191    no_recursion=yes ;;
1192
1193  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1194  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1195  | --oldin | --oldi | --old | --ol | --o)
1196    ac_prev=oldincludedir ;;
1197  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1198  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1199  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1200    oldincludedir=$ac_optarg ;;
1201
1202  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1203    ac_prev=prefix ;;
1204  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1205    prefix=$ac_optarg ;;
1206
1207  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1208  | --program-pre | --program-pr | --program-p)
1209    ac_prev=program_prefix ;;
1210  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1211  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1212    program_prefix=$ac_optarg ;;
1213
1214  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1215  | --program-suf | --program-su | --program-s)
1216    ac_prev=program_suffix ;;
1217  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1218  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1219    program_suffix=$ac_optarg ;;
1220
1221  -program-transform-name | --program-transform-name \
1222  | --program-transform-nam | --program-transform-na \
1223  | --program-transform-n | --program-transform- \
1224  | --program-transform | --program-transfor \
1225  | --program-transfo | --program-transf \
1226  | --program-trans | --program-tran \
1227  | --progr-tra | --program-tr | --program-t)
1228    ac_prev=program_transform_name ;;
1229  -program-transform-name=* | --program-transform-name=* \
1230  | --program-transform-nam=* | --program-transform-na=* \
1231  | --program-transform-n=* | --program-transform-=* \
1232  | --program-transform=* | --program-transfor=* \
1233  | --program-transfo=* | --program-transf=* \
1234  | --program-trans=* | --program-tran=* \
1235  | --progr-tra=* | --program-tr=* | --program-t=*)
1236    program_transform_name=$ac_optarg ;;
1237
1238  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1239    ac_prev=pdfdir ;;
1240  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1241    pdfdir=$ac_optarg ;;
1242
1243  -psdir | --psdir | --psdi | --psd | --ps)
1244    ac_prev=psdir ;;
1245  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1246    psdir=$ac_optarg ;;
1247
1248  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249  | -silent | --silent | --silen | --sile | --sil)
1250    silent=yes ;;
1251
1252  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1253    ac_prev=sbindir ;;
1254  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1255  | --sbi=* | --sb=*)
1256    sbindir=$ac_optarg ;;
1257
1258  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1259  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1260  | --sharedst | --shareds | --shared | --share | --shar \
1261  | --sha | --sh)
1262    ac_prev=sharedstatedir ;;
1263  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1264  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1265  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1266  | --sha=* | --sh=*)
1267    sharedstatedir=$ac_optarg ;;
1268
1269  -site | --site | --sit)
1270    ac_prev=site ;;
1271  -site=* | --site=* | --sit=*)
1272    site=$ac_optarg ;;
1273
1274  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1275    ac_prev=srcdir ;;
1276  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1277    srcdir=$ac_optarg ;;
1278
1279  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1280  | --syscon | --sysco | --sysc | --sys | --sy)
1281    ac_prev=sysconfdir ;;
1282  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1283  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1284    sysconfdir=$ac_optarg ;;
1285
1286  -target | --target | --targe | --targ | --tar | --ta | --t)
1287    ac_prev=target_alias ;;
1288  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1289    target_alias=$ac_optarg ;;
1290
1291  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1292    verbose=yes ;;
1293
1294  -version | --version | --versio | --versi | --vers | -V)
1295    ac_init_version=: ;;
1296
1297  -with-* | --with-*)
1298    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1299    # Reject names that are not valid shell variable names.
1300    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301      as_fn_error $? "invalid package name: $ac_useropt"
1302    ac_useropt_orig=$ac_useropt
1303    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304    case $ac_user_opts in
1305      *"
1306"with_$ac_useropt"
1307"*) ;;
1308      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1309	 ac_unrecognized_sep=', ';;
1310    esac
1311    eval with_$ac_useropt=\$ac_optarg ;;
1312
1313  -without-* | --without-*)
1314    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1315    # Reject names that are not valid shell variable names.
1316    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317      as_fn_error $? "invalid package name: $ac_useropt"
1318    ac_useropt_orig=$ac_useropt
1319    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1320    case $ac_user_opts in
1321      *"
1322"with_$ac_useropt"
1323"*) ;;
1324      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1325	 ac_unrecognized_sep=', ';;
1326    esac
1327    eval with_$ac_useropt=no ;;
1328
1329  --x)
1330    # Obsolete; use --with-x.
1331    with_x=yes ;;
1332
1333  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1334  | --x-incl | --x-inc | --x-in | --x-i)
1335    ac_prev=x_includes ;;
1336  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1337  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1338    x_includes=$ac_optarg ;;
1339
1340  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1341  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1342    ac_prev=x_libraries ;;
1343  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1344  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1345    x_libraries=$ac_optarg ;;
1346
1347  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1348Try \`$0 --help' for more information"
1349    ;;
1350
1351  *=*)
1352    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1353    # Reject names that are not valid shell variable names.
1354    case $ac_envvar in #(
1355      '' | [0-9]* | *[!_$as_cr_alnum]* )
1356      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1357    esac
1358    eval $ac_envvar=\$ac_optarg
1359    export $ac_envvar ;;
1360
1361  *)
1362    # FIXME: should be removed in autoconf 3.0.
1363    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1364    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1365      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1366    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1367    ;;
1368
1369  esac
1370done
1371
1372if test -n "$ac_prev"; then
1373  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1374  as_fn_error $? "missing argument to $ac_option"
1375fi
1376
1377if test -n "$ac_unrecognized_opts"; then
1378  case $enable_option_checking in
1379    no) ;;
1380    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1381    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1382  esac
1383fi
1384
1385# Check all directory arguments for consistency.
1386for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1387		datadir sysconfdir sharedstatedir localstatedir includedir \
1388		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1389		libdir localedir mandir
1390do
1391  eval ac_val=\$$ac_var
1392  # Remove trailing slashes.
1393  case $ac_val in
1394    */ )
1395      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1396      eval $ac_var=\$ac_val;;
1397  esac
1398  # Be sure to have absolute directory names.
1399  case $ac_val in
1400    [\\/$]* | ?:[\\/]* )  continue;;
1401    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1402  esac
1403  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1404done
1405
1406# There might be people who depend on the old broken behavior: `$host'
1407# used to hold the argument of --host etc.
1408# FIXME: To remove some day.
1409build=$build_alias
1410host=$host_alias
1411target=$target_alias
1412
1413# FIXME: To remove some day.
1414if test "x$host_alias" != x; then
1415  if test "x$build_alias" = x; then
1416    cross_compiling=maybe
1417  elif test "x$build_alias" != "x$host_alias"; then
1418    cross_compiling=yes
1419  fi
1420fi
1421
1422ac_tool_prefix=
1423test -n "$host_alias" && ac_tool_prefix=$host_alias-
1424
1425test "$silent" = yes && exec 6>/dev/null
1426
1427
1428ac_pwd=`pwd` && test -n "$ac_pwd" &&
1429ac_ls_di=`ls -di .` &&
1430ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1431  as_fn_error $? "working directory cannot be determined"
1432test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1433  as_fn_error $? "pwd does not report name of working directory"
1434
1435
1436# Find the source files, if location was not specified.
1437if test -z "$srcdir"; then
1438  ac_srcdir_defaulted=yes
1439  # Try the directory containing this script, then the parent directory.
1440  ac_confdir=`$as_dirname -- "$as_myself" ||
1441$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1442	 X"$as_myself" : 'X\(//\)[^/]' \| \
1443	 X"$as_myself" : 'X\(//\)$' \| \
1444	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1445$as_echo X"$as_myself" |
1446    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1447	    s//\1/
1448	    q
1449	  }
1450	  /^X\(\/\/\)[^/].*/{
1451	    s//\1/
1452	    q
1453	  }
1454	  /^X\(\/\/\)$/{
1455	    s//\1/
1456	    q
1457	  }
1458	  /^X\(\/\).*/{
1459	    s//\1/
1460	    q
1461	  }
1462	  s/.*/./; q'`
1463  srcdir=$ac_confdir
1464  if test ! -r "$srcdir/$ac_unique_file"; then
1465    srcdir=..
1466  fi
1467else
1468  ac_srcdir_defaulted=no
1469fi
1470if test ! -r "$srcdir/$ac_unique_file"; then
1471  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1472  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1473fi
1474ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1475ac_abs_confdir=`(
1476	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1477	pwd)`
1478# When building in place, set srcdir=.
1479if test "$ac_abs_confdir" = "$ac_pwd"; then
1480  srcdir=.
1481fi
1482# Remove unnecessary trailing slashes from srcdir.
1483# Double slashes in file names in object file debugging info
1484# mess up M-x gdb in Emacs.
1485case $srcdir in
1486*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1487esac
1488for ac_var in $ac_precious_vars; do
1489  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1490  eval ac_env_${ac_var}_value=\$${ac_var}
1491  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1492  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1493done
1494
1495#
1496# Report the --help message.
1497#
1498if test "$ac_init_help" = "long"; then
1499  # Omit some internal or obsolete options to make the list less imposing.
1500  # This message is too long to be a string in the A/UX 3.1 sh.
1501  cat <<_ACEOF
1502\`configure' configures Automated Testing Framework 0.17 to adapt to many kinds of systems.
1503
1504Usage: $0 [OPTION]... [VAR=VALUE]...
1505
1506To assign environment variables (e.g., CC, CFLAGS...), specify them as
1507VAR=VALUE.  See below for descriptions of some of the useful variables.
1508
1509Defaults for the options are specified in brackets.
1510
1511Configuration:
1512  -h, --help              display this help and exit
1513      --help=short        display options specific to this package
1514      --help=recursive    display the short help of all the included packages
1515  -V, --version           display version information and exit
1516  -q, --quiet, --silent   do not print \`checking ...' messages
1517      --cache-file=FILE   cache test results in FILE [disabled]
1518  -C, --config-cache      alias for \`--cache-file=config.cache'
1519  -n, --no-create         do not create output files
1520      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1521
1522Installation directories:
1523  --prefix=PREFIX         install architecture-independent files in PREFIX
1524                          [$ac_default_prefix]
1525  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1526                          [PREFIX]
1527
1528By default, \`make install' will install all the files in
1529\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1530an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1531for instance \`--prefix=\$HOME'.
1532
1533For better control, use the options below.
1534
1535Fine tuning of the installation directories:
1536  --bindir=DIR            user executables [EPREFIX/bin]
1537  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1538  --libexecdir=DIR        program executables [EPREFIX/libexec]
1539  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1540  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1541  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1542  --libdir=DIR            object code libraries [EPREFIX/lib]
1543  --includedir=DIR        C header files [PREFIX/include]
1544  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1545  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1546  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1547  --infodir=DIR           info documentation [DATAROOTDIR/info]
1548  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1549  --mandir=DIR            man documentation [DATAROOTDIR/man]
1550  --docdir=DIR            documentation root [DATAROOTDIR/doc/atf]
1551  --htmldir=DIR           html documentation [DOCDIR]
1552  --dvidir=DIR            dvi documentation [DOCDIR]
1553  --pdfdir=DIR            pdf documentation [DOCDIR]
1554  --psdir=DIR             ps documentation [DOCDIR]
1555_ACEOF
1556
1557  cat <<\_ACEOF
1558
1559Program names:
1560  --program-prefix=PREFIX            prepend PREFIX to installed program names
1561  --program-suffix=SUFFIX            append SUFFIX to installed program names
1562  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1563
1564System types:
1565  --build=BUILD     configure for building on BUILD [guessed]
1566  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1567  --target=TARGET   configure for building compilers for TARGET [HOST]
1568_ACEOF
1569fi
1570
1571if test -n "$ac_init_help"; then
1572  case $ac_init_help in
1573     short | recursive ) echo "Configuration of Automated Testing Framework 0.17:";;
1574   esac
1575  cat <<\_ACEOF
1576
1577Optional Features:
1578  --disable-option-checking  ignore unrecognized --enable/--with options
1579  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1580  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1581  --enable-shared[=PKGS]  build shared libraries [default=yes]
1582  --enable-static[=PKGS]  build static libraries [default=yes]
1583  --enable-fast-install[=PKGS]
1584                          optimize for fast installation [default=yes]
1585  --enable-dependency-tracking
1586                          do not reject slow dependency extractors
1587  --disable-dependency-tracking
1588                          speeds up one-time build
1589  --disable-libtool-lock  avoid locking (might break parallel builds)
1590  --enable-tools          Enables the build of the deprecated ATF tools
1591  --enable-developer      enable developer features
1592
1593Optional Packages:
1594  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1595  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1596  --with-pic              try to use only PIC/non-PIC objects [default=use
1597                          both]
1598  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1599
1600Some influential environment variables:
1601  CC          C compiler command
1602  CFLAGS      C compiler flags
1603  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1604              nonstandard directory <lib dir>
1605  LIBS        libraries to pass to the linker, e.g. -l<library>
1606  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1607              you have headers in a nonstandard directory <include dir>
1608  CPP         C preprocessor
1609  CXX         C++ compiler command
1610  CXXFLAGS    C++ compiler flags
1611  CXXCPP      C++ preprocessor
1612  ATF_BUILD_CC
1613              C compiler to use at runtime
1614  ATF_BUILD_CFLAGS
1615              C compiler flags to use at runtime
1616  ATF_BUILD_CPP
1617              C/C++ preprocessor to use at runtime
1618  ATF_BUILD_CPPFLAGS
1619              C/C++ preprocessor flags to use at runtime
1620  ATF_BUILD_CXX
1621              C++ compiler to use at runtime
1622  ATF_BUILD_CXXFLAGS
1623              C++ compiler flags to use at runtime
1624  ATF_CONFSUBDIR
1625              Subdirectory of sysconfdir under which to look for files
1626  ATF_WORKDIR Default location to use for ATF work directories
1627  ATF_SHELL   Location of the POSIX shell interpreter to use
1628
1629Use these variables to override the choices made by `configure' or to help
1630it to find libraries and programs with nonstandard names/locations.
1631
1632Report bugs to <atf-devel@NetBSD.org>.
1633Automated Testing Framework home page: <http://code.google.com/p/kyua/wiki/ATF>.
1634_ACEOF
1635ac_status=$?
1636fi
1637
1638if test "$ac_init_help" = "recursive"; then
1639  # If there are subdirs, report their specific --help.
1640  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1641    test -d "$ac_dir" ||
1642      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1643      continue
1644    ac_builddir=.
1645
1646case "$ac_dir" in
1647.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648*)
1649  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1650  # A ".." for each directory in $ac_dir_suffix.
1651  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1652  case $ac_top_builddir_sub in
1653  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1655  esac ;;
1656esac
1657ac_abs_top_builddir=$ac_pwd
1658ac_abs_builddir=$ac_pwd$ac_dir_suffix
1659# for backward compatibility:
1660ac_top_builddir=$ac_top_build_prefix
1661
1662case $srcdir in
1663  .)  # We are building in place.
1664    ac_srcdir=.
1665    ac_top_srcdir=$ac_top_builddir_sub
1666    ac_abs_top_srcdir=$ac_pwd ;;
1667  [\\/]* | ?:[\\/]* )  # Absolute name.
1668    ac_srcdir=$srcdir$ac_dir_suffix;
1669    ac_top_srcdir=$srcdir
1670    ac_abs_top_srcdir=$srcdir ;;
1671  *) # Relative name.
1672    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1673    ac_top_srcdir=$ac_top_build_prefix$srcdir
1674    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1675esac
1676ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1677
1678    cd "$ac_dir" || { ac_status=$?; continue; }
1679    # Check for guested configure.
1680    if test -f "$ac_srcdir/configure.gnu"; then
1681      echo &&
1682      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1683    elif test -f "$ac_srcdir/configure"; then
1684      echo &&
1685      $SHELL "$ac_srcdir/configure" --help=recursive
1686    else
1687      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1688    fi || ac_status=$?
1689    cd "$ac_pwd" || { ac_status=$?; break; }
1690  done
1691fi
1692
1693test -n "$ac_init_help" && exit $ac_status
1694if $ac_init_version; then
1695  cat <<\_ACEOF
1696Automated Testing Framework configure 0.17
1697generated by GNU Autoconf 2.69
1698
1699Copyright (C) 2012 Free Software Foundation, Inc.
1700This configure script is free software; the Free Software Foundation
1701gives unlimited permission to copy, distribute and modify it.
1702
1703Copyright (c) 2007-2012 The NetBSD Foundation, Inc.
1704_ACEOF
1705  exit
1706fi
1707
1708## ------------------------ ##
1709## Autoconf initialization. ##
1710## ------------------------ ##
1711
1712# ac_fn_c_try_compile LINENO
1713# --------------------------
1714# Try to compile conftest.$ac_ext, and return whether this succeeded.
1715ac_fn_c_try_compile ()
1716{
1717  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718  rm -f conftest.$ac_objext
1719  if { { ac_try="$ac_compile"
1720case "(($ac_try" in
1721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722  *) ac_try_echo=$ac_try;;
1723esac
1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725$as_echo "$ac_try_echo"; } >&5
1726  (eval "$ac_compile") 2>conftest.err
1727  ac_status=$?
1728  if test -s conftest.err; then
1729    grep -v '^ *+' conftest.err >conftest.er1
1730    cat conftest.er1 >&5
1731    mv -f conftest.er1 conftest.err
1732  fi
1733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734  test $ac_status = 0; } && {
1735	 test -z "$ac_c_werror_flag" ||
1736	 test ! -s conftest.err
1737       } && test -s conftest.$ac_objext; then :
1738  ac_retval=0
1739else
1740  $as_echo "$as_me: failed program was:" >&5
1741sed 's/^/| /' conftest.$ac_ext >&5
1742
1743	ac_retval=1
1744fi
1745  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746  as_fn_set_status $ac_retval
1747
1748} # ac_fn_c_try_compile
1749
1750# ac_fn_c_try_link LINENO
1751# -----------------------
1752# Try to link conftest.$ac_ext, and return whether this succeeded.
1753ac_fn_c_try_link ()
1754{
1755  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756  rm -f conftest.$ac_objext conftest$ac_exeext
1757  if { { ac_try="$ac_link"
1758case "(($ac_try" in
1759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760  *) ac_try_echo=$ac_try;;
1761esac
1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763$as_echo "$ac_try_echo"; } >&5
1764  (eval "$ac_link") 2>conftest.err
1765  ac_status=$?
1766  if test -s conftest.err; then
1767    grep -v '^ *+' conftest.err >conftest.er1
1768    cat conftest.er1 >&5
1769    mv -f conftest.er1 conftest.err
1770  fi
1771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772  test $ac_status = 0; } && {
1773	 test -z "$ac_c_werror_flag" ||
1774	 test ! -s conftest.err
1775       } && test -s conftest$ac_exeext && {
1776	 test "$cross_compiling" = yes ||
1777	 test -x conftest$ac_exeext
1778       }; then :
1779  ac_retval=0
1780else
1781  $as_echo "$as_me: failed program was:" >&5
1782sed 's/^/| /' conftest.$ac_ext >&5
1783
1784	ac_retval=1
1785fi
1786  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1787  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1788  # interfere with the next link command; also delete a directory that is
1789  # left behind by Apple's compiler.  We do this before executing the actions.
1790  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792  as_fn_set_status $ac_retval
1793
1794} # ac_fn_c_try_link
1795
1796# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1797# -------------------------------------------------------
1798# Tests whether HEADER exists and can be compiled using the include files in
1799# INCLUDES, setting the cache variable VAR accordingly.
1800ac_fn_c_check_header_compile ()
1801{
1802  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804$as_echo_n "checking for $2... " >&6; }
1805if eval \${$3+:} false; then :
1806  $as_echo_n "(cached) " >&6
1807else
1808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809/* end confdefs.h.  */
1810$4
1811#include <$2>
1812_ACEOF
1813if ac_fn_c_try_compile "$LINENO"; then :
1814  eval "$3=yes"
1815else
1816  eval "$3=no"
1817fi
1818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819fi
1820eval ac_res=\$$3
1821	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822$as_echo "$ac_res" >&6; }
1823  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824
1825} # ac_fn_c_check_header_compile
1826
1827# ac_fn_c_try_cpp LINENO
1828# ----------------------
1829# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1830ac_fn_c_try_cpp ()
1831{
1832  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833  if { { ac_try="$ac_cpp conftest.$ac_ext"
1834case "(($ac_try" in
1835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836  *) ac_try_echo=$ac_try;;
1837esac
1838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839$as_echo "$ac_try_echo"; } >&5
1840  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1841  ac_status=$?
1842  if test -s conftest.err; then
1843    grep -v '^ *+' conftest.err >conftest.er1
1844    cat conftest.er1 >&5
1845    mv -f conftest.er1 conftest.err
1846  fi
1847  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848  test $ac_status = 0; } > conftest.i && {
1849	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1850	 test ! -s conftest.err
1851       }; then :
1852  ac_retval=0
1853else
1854  $as_echo "$as_me: failed program was:" >&5
1855sed 's/^/| /' conftest.$ac_ext >&5
1856
1857    ac_retval=1
1858fi
1859  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860  as_fn_set_status $ac_retval
1861
1862} # ac_fn_c_try_cpp
1863
1864# ac_fn_c_try_run LINENO
1865# ----------------------
1866# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1867# that executables *can* be run.
1868ac_fn_c_try_run ()
1869{
1870  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871  if { { ac_try="$ac_link"
1872case "(($ac_try" in
1873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874  *) ac_try_echo=$ac_try;;
1875esac
1876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877$as_echo "$ac_try_echo"; } >&5
1878  (eval "$ac_link") 2>&5
1879  ac_status=$?
1880  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1882  { { case "(($ac_try" in
1883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884  *) ac_try_echo=$ac_try;;
1885esac
1886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887$as_echo "$ac_try_echo"; } >&5
1888  (eval "$ac_try") 2>&5
1889  ac_status=$?
1890  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891  test $ac_status = 0; }; }; then :
1892  ac_retval=0
1893else
1894  $as_echo "$as_me: program exited with status $ac_status" >&5
1895       $as_echo "$as_me: failed program was:" >&5
1896sed 's/^/| /' conftest.$ac_ext >&5
1897
1898       ac_retval=$ac_status
1899fi
1900  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902  as_fn_set_status $ac_retval
1903
1904} # ac_fn_c_try_run
1905
1906# ac_fn_c_check_func LINENO FUNC VAR
1907# ----------------------------------
1908# Tests whether FUNC exists, setting the cache variable VAR accordingly
1909ac_fn_c_check_func ()
1910{
1911  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913$as_echo_n "checking for $2... " >&6; }
1914if eval \${$3+:} false; then :
1915  $as_echo_n "(cached) " >&6
1916else
1917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918/* end confdefs.h.  */
1919/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1920   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1921#define $2 innocuous_$2
1922
1923/* System header to define __stub macros and hopefully few prototypes,
1924    which can conflict with char $2 (); below.
1925    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1926    <limits.h> exists even on freestanding compilers.  */
1927
1928#ifdef __STDC__
1929# include <limits.h>
1930#else
1931# include <assert.h>
1932#endif
1933
1934#undef $2
1935
1936/* Override any GCC internal prototype to avoid an error.
1937   Use char because int might match the return type of a GCC
1938   builtin and then its argument prototype would still apply.  */
1939#ifdef __cplusplus
1940extern "C"
1941#endif
1942char $2 ();
1943/* The GNU C library defines this for functions which it implements
1944    to always fail with ENOSYS.  Some functions are actually named
1945    something starting with __ and the normal name is an alias.  */
1946#if defined __stub_$2 || defined __stub___$2
1947choke me
1948#endif
1949
1950int
1951main ()
1952{
1953return $2 ();
1954  ;
1955  return 0;
1956}
1957_ACEOF
1958if ac_fn_c_try_link "$LINENO"; then :
1959  eval "$3=yes"
1960else
1961  eval "$3=no"
1962fi
1963rm -f core conftest.err conftest.$ac_objext \
1964    conftest$ac_exeext conftest.$ac_ext
1965fi
1966eval ac_res=\$$3
1967	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968$as_echo "$ac_res" >&6; }
1969  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970
1971} # ac_fn_c_check_func
1972
1973# ac_fn_cxx_try_compile LINENO
1974# ----------------------------
1975# Try to compile conftest.$ac_ext, and return whether this succeeded.
1976ac_fn_cxx_try_compile ()
1977{
1978  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979  rm -f conftest.$ac_objext
1980  if { { ac_try="$ac_compile"
1981case "(($ac_try" in
1982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983  *) ac_try_echo=$ac_try;;
1984esac
1985eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986$as_echo "$ac_try_echo"; } >&5
1987  (eval "$ac_compile") 2>conftest.err
1988  ac_status=$?
1989  if test -s conftest.err; then
1990    grep -v '^ *+' conftest.err >conftest.er1
1991    cat conftest.er1 >&5
1992    mv -f conftest.er1 conftest.err
1993  fi
1994  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995  test $ac_status = 0; } && {
1996	 test -z "$ac_cxx_werror_flag" ||
1997	 test ! -s conftest.err
1998       } && test -s conftest.$ac_objext; then :
1999  ac_retval=0
2000else
2001  $as_echo "$as_me: failed program was:" >&5
2002sed 's/^/| /' conftest.$ac_ext >&5
2003
2004	ac_retval=1
2005fi
2006  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007  as_fn_set_status $ac_retval
2008
2009} # ac_fn_cxx_try_compile
2010
2011# ac_fn_cxx_try_cpp LINENO
2012# ------------------------
2013# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2014ac_fn_cxx_try_cpp ()
2015{
2016  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017  if { { ac_try="$ac_cpp conftest.$ac_ext"
2018case "(($ac_try" in
2019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2020  *) ac_try_echo=$ac_try;;
2021esac
2022eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2023$as_echo "$ac_try_echo"; } >&5
2024  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2025  ac_status=$?
2026  if test -s conftest.err; then
2027    grep -v '^ *+' conftest.err >conftest.er1
2028    cat conftest.er1 >&5
2029    mv -f conftest.er1 conftest.err
2030  fi
2031  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032  test $ac_status = 0; } > conftest.i && {
2033	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2034	 test ! -s conftest.err
2035       }; then :
2036  ac_retval=0
2037else
2038  $as_echo "$as_me: failed program was:" >&5
2039sed 's/^/| /' conftest.$ac_ext >&5
2040
2041    ac_retval=1
2042fi
2043  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044  as_fn_set_status $ac_retval
2045
2046} # ac_fn_cxx_try_cpp
2047
2048# ac_fn_cxx_try_link LINENO
2049# -------------------------
2050# Try to link conftest.$ac_ext, and return whether this succeeded.
2051ac_fn_cxx_try_link ()
2052{
2053  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054  rm -f conftest.$ac_objext conftest$ac_exeext
2055  if { { ac_try="$ac_link"
2056case "(($ac_try" in
2057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058  *) ac_try_echo=$ac_try;;
2059esac
2060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061$as_echo "$ac_try_echo"; } >&5
2062  (eval "$ac_link") 2>conftest.err
2063  ac_status=$?
2064  if test -s conftest.err; then
2065    grep -v '^ *+' conftest.err >conftest.er1
2066    cat conftest.er1 >&5
2067    mv -f conftest.er1 conftest.err
2068  fi
2069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070  test $ac_status = 0; } && {
2071	 test -z "$ac_cxx_werror_flag" ||
2072	 test ! -s conftest.err
2073       } && test -s conftest$ac_exeext && {
2074	 test "$cross_compiling" = yes ||
2075	 test -x conftest$ac_exeext
2076       }; then :
2077  ac_retval=0
2078else
2079  $as_echo "$as_me: failed program was:" >&5
2080sed 's/^/| /' conftest.$ac_ext >&5
2081
2082	ac_retval=1
2083fi
2084  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2085  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2086  # interfere with the next link command; also delete a directory that is
2087  # left behind by Apple's compiler.  We do this before executing the actions.
2088  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2089  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090  as_fn_set_status $ac_retval
2091
2092} # ac_fn_cxx_try_link
2093
2094# ac_fn_cxx_try_run LINENO
2095# ------------------------
2096# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2097# that executables *can* be run.
2098ac_fn_cxx_try_run ()
2099{
2100  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101  if { { ac_try="$ac_link"
2102case "(($ac_try" in
2103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104  *) ac_try_echo=$ac_try;;
2105esac
2106eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2107$as_echo "$ac_try_echo"; } >&5
2108  (eval "$ac_link") 2>&5
2109  ac_status=$?
2110  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2111  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2112  { { case "(($ac_try" in
2113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114  *) ac_try_echo=$ac_try;;
2115esac
2116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2117$as_echo "$ac_try_echo"; } >&5
2118  (eval "$ac_try") 2>&5
2119  ac_status=$?
2120  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2121  test $ac_status = 0; }; }; then :
2122  ac_retval=0
2123else
2124  $as_echo "$as_me: program exited with status $ac_status" >&5
2125       $as_echo "$as_me: failed program was:" >&5
2126sed 's/^/| /' conftest.$ac_ext >&5
2127
2128       ac_retval=$ac_status
2129fi
2130  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2131  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132  as_fn_set_status $ac_retval
2133
2134} # ac_fn_cxx_try_run
2135
2136# ac_fn_cxx_check_func LINENO FUNC VAR
2137# ------------------------------------
2138# Tests whether FUNC exists, setting the cache variable VAR accordingly
2139ac_fn_cxx_check_func ()
2140{
2141  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2143$as_echo_n "checking for $2... " >&6; }
2144if eval \${$3+:} false; then :
2145  $as_echo_n "(cached) " >&6
2146else
2147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148/* end confdefs.h.  */
2149/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2150   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2151#define $2 innocuous_$2
2152
2153/* System header to define __stub macros and hopefully few prototypes,
2154    which can conflict with char $2 (); below.
2155    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2156    <limits.h> exists even on freestanding compilers.  */
2157
2158#ifdef __STDC__
2159# include <limits.h>
2160#else
2161# include <assert.h>
2162#endif
2163
2164#undef $2
2165
2166/* Override any GCC internal prototype to avoid an error.
2167   Use char because int might match the return type of a GCC
2168   builtin and then its argument prototype would still apply.  */
2169#ifdef __cplusplus
2170extern "C"
2171#endif
2172char $2 ();
2173/* The GNU C library defines this for functions which it implements
2174    to always fail with ENOSYS.  Some functions are actually named
2175    something starting with __ and the normal name is an alias.  */
2176#if defined __stub_$2 || defined __stub___$2
2177choke me
2178#endif
2179
2180int
2181main ()
2182{
2183return $2 ();
2184  ;
2185  return 0;
2186}
2187_ACEOF
2188if ac_fn_cxx_try_link "$LINENO"; then :
2189  eval "$3=yes"
2190else
2191  eval "$3=no"
2192fi
2193rm -f core conftest.err conftest.$ac_objext \
2194    conftest$ac_exeext conftest.$ac_ext
2195fi
2196eval ac_res=\$$3
2197	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2198$as_echo "$ac_res" >&6; }
2199  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2200
2201} # ac_fn_cxx_check_func
2202
2203# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2204# ---------------------------------------------
2205# Tests whether TYPE exists after having included INCLUDES, setting cache
2206# variable VAR accordingly.
2207ac_fn_cxx_check_type ()
2208{
2209  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2210  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2211$as_echo_n "checking for $2... " >&6; }
2212if eval \${$3+:} false; then :
2213  $as_echo_n "(cached) " >&6
2214else
2215  eval "$3=no"
2216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217/* end confdefs.h.  */
2218$4
2219int
2220main ()
2221{
2222if (sizeof ($2))
2223	 return 0;
2224  ;
2225  return 0;
2226}
2227_ACEOF
2228if ac_fn_cxx_try_compile "$LINENO"; then :
2229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230/* end confdefs.h.  */
2231$4
2232int
2233main ()
2234{
2235if (sizeof (($2)))
2236	    return 0;
2237  ;
2238  return 0;
2239}
2240_ACEOF
2241if ac_fn_cxx_try_compile "$LINENO"; then :
2242
2243else
2244  eval "$3=yes"
2245fi
2246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247fi
2248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249fi
2250eval ac_res=\$$3
2251	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2252$as_echo "$ac_res" >&6; }
2253  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254
2255} # ac_fn_cxx_check_type
2256cat >config.log <<_ACEOF
2257This file contains any messages produced by compilers while
2258running configure, to aid debugging if configure makes a mistake.
2259
2260It was created by Automated Testing Framework $as_me 0.17, which was
2261generated by GNU Autoconf 2.69.  Invocation command line was
2262
2263  $ $0 $@
2264
2265_ACEOF
2266exec 5>>config.log
2267{
2268cat <<_ASUNAME
2269## --------- ##
2270## Platform. ##
2271## --------- ##
2272
2273hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2274uname -m = `(uname -m) 2>/dev/null || echo unknown`
2275uname -r = `(uname -r) 2>/dev/null || echo unknown`
2276uname -s = `(uname -s) 2>/dev/null || echo unknown`
2277uname -v = `(uname -v) 2>/dev/null || echo unknown`
2278
2279/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2280/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2281
2282/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2283/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2284/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2285/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2286/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2287/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2288/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2289
2290_ASUNAME
2291
2292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293for as_dir in $PATH
2294do
2295  IFS=$as_save_IFS
2296  test -z "$as_dir" && as_dir=.
2297    $as_echo "PATH: $as_dir"
2298  done
2299IFS=$as_save_IFS
2300
2301} >&5
2302
2303cat >&5 <<_ACEOF
2304
2305
2306## ----------- ##
2307## Core tests. ##
2308## ----------- ##
2309
2310_ACEOF
2311
2312
2313# Keep a trace of the command line.
2314# Strip out --no-create and --no-recursion so they do not pile up.
2315# Strip out --silent because we don't want to record it for future runs.
2316# Also quote any args containing shell meta-characters.
2317# Make two passes to allow for proper duplicate-argument suppression.
2318ac_configure_args=
2319ac_configure_args0=
2320ac_configure_args1=
2321ac_must_keep_next=false
2322for ac_pass in 1 2
2323do
2324  for ac_arg
2325  do
2326    case $ac_arg in
2327    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2328    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2329    | -silent | --silent | --silen | --sile | --sil)
2330      continue ;;
2331    *\'*)
2332      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2333    esac
2334    case $ac_pass in
2335    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2336    2)
2337      as_fn_append ac_configure_args1 " '$ac_arg'"
2338      if test $ac_must_keep_next = true; then
2339	ac_must_keep_next=false # Got value, back to normal.
2340      else
2341	case $ac_arg in
2342	  *=* | --config-cache | -C | -disable-* | --disable-* \
2343	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2344	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2345	  | -with-* | --with-* | -without-* | --without-* | --x)
2346	    case "$ac_configure_args0 " in
2347	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2348	    esac
2349	    ;;
2350	  -* ) ac_must_keep_next=true ;;
2351	esac
2352      fi
2353      as_fn_append ac_configure_args " '$ac_arg'"
2354      ;;
2355    esac
2356  done
2357done
2358{ ac_configure_args0=; unset ac_configure_args0;}
2359{ ac_configure_args1=; unset ac_configure_args1;}
2360
2361# When interrupted or exit'd, cleanup temporary files, and complete
2362# config.log.  We remove comments because anyway the quotes in there
2363# would cause problems or look ugly.
2364# WARNING: Use '\'' to represent an apostrophe within the trap.
2365# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2366trap 'exit_status=$?
2367  # Save into config.log some information that might help in debugging.
2368  {
2369    echo
2370
2371    $as_echo "## ---------------- ##
2372## Cache variables. ##
2373## ---------------- ##"
2374    echo
2375    # The following way of writing the cache mishandles newlines in values,
2376(
2377  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2378    eval ac_val=\$$ac_var
2379    case $ac_val in #(
2380    *${as_nl}*)
2381      case $ac_var in #(
2382      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2383$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2384      esac
2385      case $ac_var in #(
2386      _ | IFS | as_nl) ;; #(
2387      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2388      *) { eval $ac_var=; unset $ac_var;} ;;
2389      esac ;;
2390    esac
2391  done
2392  (set) 2>&1 |
2393    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2394    *${as_nl}ac_space=\ *)
2395      sed -n \
2396	"s/'\''/'\''\\\\'\'''\''/g;
2397	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2398      ;; #(
2399    *)
2400      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2401      ;;
2402    esac |
2403    sort
2404)
2405    echo
2406
2407    $as_echo "## ----------------- ##
2408## Output variables. ##
2409## ----------------- ##"
2410    echo
2411    for ac_var in $ac_subst_vars
2412    do
2413      eval ac_val=\$$ac_var
2414      case $ac_val in
2415      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2416      esac
2417      $as_echo "$ac_var='\''$ac_val'\''"
2418    done | sort
2419    echo
2420
2421    if test -n "$ac_subst_files"; then
2422      $as_echo "## ------------------- ##
2423## File substitutions. ##
2424## ------------------- ##"
2425      echo
2426      for ac_var in $ac_subst_files
2427      do
2428	eval ac_val=\$$ac_var
2429	case $ac_val in
2430	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2431	esac
2432	$as_echo "$ac_var='\''$ac_val'\''"
2433      done | sort
2434      echo
2435    fi
2436
2437    if test -s confdefs.h; then
2438      $as_echo "## ----------- ##
2439## confdefs.h. ##
2440## ----------- ##"
2441      echo
2442      cat confdefs.h
2443      echo
2444    fi
2445    test "$ac_signal" != 0 &&
2446      $as_echo "$as_me: caught signal $ac_signal"
2447    $as_echo "$as_me: exit $exit_status"
2448  } >&5
2449  rm -f core *.core core.conftest.* &&
2450    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2451    exit $exit_status
2452' 0
2453for ac_signal in 1 2 13 15; do
2454  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2455done
2456ac_signal=0
2457
2458# confdefs.h avoids OS command line length limits that DEFS can exceed.
2459rm -f -r conftest* confdefs.h
2460
2461$as_echo "/* confdefs.h */" > confdefs.h
2462
2463# Predefined preprocessor variables.
2464
2465cat >>confdefs.h <<_ACEOF
2466#define PACKAGE_NAME "$PACKAGE_NAME"
2467_ACEOF
2468
2469cat >>confdefs.h <<_ACEOF
2470#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2471_ACEOF
2472
2473cat >>confdefs.h <<_ACEOF
2474#define PACKAGE_VERSION "$PACKAGE_VERSION"
2475_ACEOF
2476
2477cat >>confdefs.h <<_ACEOF
2478#define PACKAGE_STRING "$PACKAGE_STRING"
2479_ACEOF
2480
2481cat >>confdefs.h <<_ACEOF
2482#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2483_ACEOF
2484
2485cat >>confdefs.h <<_ACEOF
2486#define PACKAGE_URL "$PACKAGE_URL"
2487_ACEOF
2488
2489
2490# Let the site file select an alternate cache file if it wants to.
2491# Prefer an explicitly selected file to automatically selected ones.
2492ac_site_file1=NONE
2493ac_site_file2=NONE
2494if test -n "$CONFIG_SITE"; then
2495  # We do not want a PATH search for config.site.
2496  case $CONFIG_SITE in #((
2497    -*)  ac_site_file1=./$CONFIG_SITE;;
2498    */*) ac_site_file1=$CONFIG_SITE;;
2499    *)   ac_site_file1=./$CONFIG_SITE;;
2500  esac
2501elif test "x$prefix" != xNONE; then
2502  ac_site_file1=$prefix/share/config.site
2503  ac_site_file2=$prefix/etc/config.site
2504else
2505  ac_site_file1=$ac_default_prefix/share/config.site
2506  ac_site_file2=$ac_default_prefix/etc/config.site
2507fi
2508for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2509do
2510  test "x$ac_site_file" = xNONE && continue
2511  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2512    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2513$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2514    sed 's/^/| /' "$ac_site_file" >&5
2515    . "$ac_site_file" \
2516      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2517$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2518as_fn_error $? "failed to load site script $ac_site_file
2519See \`config.log' for more details" "$LINENO" 5; }
2520  fi
2521done
2522
2523if test -r "$cache_file"; then
2524  # Some versions of bash will fail to source /dev/null (special files
2525  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2526  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2527    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2528$as_echo "$as_me: loading cache $cache_file" >&6;}
2529    case $cache_file in
2530      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2531      *)                      . "./$cache_file";;
2532    esac
2533  fi
2534else
2535  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2536$as_echo "$as_me: creating cache $cache_file" >&6;}
2537  >$cache_file
2538fi
2539
2540# Check that the precious variables saved in the cache have kept the same
2541# value.
2542ac_cache_corrupted=false
2543for ac_var in $ac_precious_vars; do
2544  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2545  eval ac_new_set=\$ac_env_${ac_var}_set
2546  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2547  eval ac_new_val=\$ac_env_${ac_var}_value
2548  case $ac_old_set,$ac_new_set in
2549    set,)
2550      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2551$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2552      ac_cache_corrupted=: ;;
2553    ,set)
2554      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2555$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2556      ac_cache_corrupted=: ;;
2557    ,);;
2558    *)
2559      if test "x$ac_old_val" != "x$ac_new_val"; then
2560	# differences in whitespace do not lead to failure.
2561	ac_old_val_w=`echo x $ac_old_val`
2562	ac_new_val_w=`echo x $ac_new_val`
2563	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2564	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2565$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2566	  ac_cache_corrupted=:
2567	else
2568	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2569$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2570	  eval $ac_var=\$ac_old_val
2571	fi
2572	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2573$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2574	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2575$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2576      fi;;
2577  esac
2578  # Pass precious variables to config.status.
2579  if test "$ac_new_set" = set; then
2580    case $ac_new_val in
2581    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2582    *) ac_arg=$ac_var=$ac_new_val ;;
2583    esac
2584    case " $ac_configure_args " in
2585      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2586      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2587    esac
2588  fi
2589done
2590if $ac_cache_corrupted; then
2591  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2593  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2594$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2595  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2596fi
2597## -------------------- ##
2598## Main body of script. ##
2599## -------------------- ##
2600
2601ac_ext=c
2602ac_cpp='$CPP $CPPFLAGS'
2603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606
2607
2608
2609
2610
2611$as_echo "#define PACKAGE_COPYRIGHT \"Copyright (c) 2007-2012 The NetBSD Foundation, Inc.\"" >>confdefs.h
2612
2613ac_aux_dir=
2614for ac_dir in admin "$srcdir"/admin; do
2615  if test -f "$ac_dir/install-sh"; then
2616    ac_aux_dir=$ac_dir
2617    ac_install_sh="$ac_aux_dir/install-sh -c"
2618    break
2619  elif test -f "$ac_dir/install.sh"; then
2620    ac_aux_dir=$ac_dir
2621    ac_install_sh="$ac_aux_dir/install.sh -c"
2622    break
2623  elif test -f "$ac_dir/shtool"; then
2624    ac_aux_dir=$ac_dir
2625    ac_install_sh="$ac_aux_dir/shtool install -c"
2626    break
2627  fi
2628done
2629if test -z "$ac_aux_dir"; then
2630  as_fn_error $? "cannot find install-sh, install.sh, or shtool in admin \"$srcdir\"/admin" "$LINENO" 5
2631fi
2632
2633# These three variables are undocumented and unsupported,
2634# and are intended to be withdrawn in a future Autoconf release.
2635# They can cause serious problems if a builder's source tree is in a directory
2636# whose full name contains unusual characters.
2637ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2638ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2639ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2640
2641
2642ac_config_headers="$ac_config_headers bconfig.h"
2643
2644
2645
2646ac_config_commands="$ac_config_commands bootstrap/atconfig"
2647
2648
2649# Make sure we can run config.sub.
2650$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2651  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2652
2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2654$as_echo_n "checking build system type... " >&6; }
2655if ${ac_cv_build+:} false; then :
2656  $as_echo_n "(cached) " >&6
2657else
2658  ac_build_alias=$build_alias
2659test "x$ac_build_alias" = x &&
2660  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2661test "x$ac_build_alias" = x &&
2662  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2663ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2664  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2665
2666fi
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2668$as_echo "$ac_cv_build" >&6; }
2669case $ac_cv_build in
2670*-*-*) ;;
2671*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2672esac
2673build=$ac_cv_build
2674ac_save_IFS=$IFS; IFS='-'
2675set x $ac_cv_build
2676shift
2677build_cpu=$1
2678build_vendor=$2
2679shift; shift
2680# Remember, the first character of IFS is used to create $*,
2681# except with old shells:
2682build_os=$*
2683IFS=$ac_save_IFS
2684case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2685
2686
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2688$as_echo_n "checking host system type... " >&6; }
2689if ${ac_cv_host+:} false; then :
2690  $as_echo_n "(cached) " >&6
2691else
2692  if test "x$host_alias" = x; then
2693  ac_cv_host=$ac_cv_build
2694else
2695  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2696    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2697fi
2698
2699fi
2700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2701$as_echo "$ac_cv_host" >&6; }
2702case $ac_cv_host in
2703*-*-*) ;;
2704*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2705esac
2706host=$ac_cv_host
2707ac_save_IFS=$IFS; IFS='-'
2708set x $ac_cv_host
2709shift
2710host_cpu=$1
2711host_vendor=$2
2712shift; shift
2713# Remember, the first character of IFS is used to create $*,
2714# except with old shells:
2715host_os=$*
2716IFS=$ac_save_IFS
2717case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2718
2719
2720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2721$as_echo_n "checking target system type... " >&6; }
2722if ${ac_cv_target+:} false; then :
2723  $as_echo_n "(cached) " >&6
2724else
2725  if test "x$target_alias" = x; then
2726  ac_cv_target=$ac_cv_host
2727else
2728  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2729    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2730fi
2731
2732fi
2733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2734$as_echo "$ac_cv_target" >&6; }
2735case $ac_cv_target in
2736*-*-*) ;;
2737*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2738esac
2739target=$ac_cv_target
2740ac_save_IFS=$IFS; IFS='-'
2741set x $ac_cv_target
2742shift
2743target_cpu=$1
2744target_vendor=$2
2745shift; shift
2746# Remember, the first character of IFS is used to create $*,
2747# except with old shells:
2748target_os=$*
2749IFS=$ac_save_IFS
2750case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2751
2752
2753# The aliases save the names the user supplied, while $host etc.
2754# will get canonicalized.
2755test -n "$target_alias" &&
2756  test "$program_prefix$program_suffix$program_transform_name" = \
2757    NONENONEs,x,x, &&
2758  program_prefix=${target_alias}-
2759
2760am__api_version='1.12'
2761
2762# Find a good install program.  We prefer a C program (faster),
2763# so one script is as good as another.  But avoid the broken or
2764# incompatible versions:
2765# SysV /etc/install, /usr/sbin/install
2766# SunOS /usr/etc/install
2767# IRIX /sbin/install
2768# AIX /bin/install
2769# AmigaOS /C/install, which installs bootblocks on floppy discs
2770# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2771# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2772# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2773# OS/2's system install, which has a completely different semantic
2774# ./install, which can be erroneously created by make from ./install.sh.
2775# Reject install programs that cannot install multiple files.
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2777$as_echo_n "checking for a BSD-compatible install... " >&6; }
2778if test -z "$INSTALL"; then
2779if ${ac_cv_path_install+:} false; then :
2780  $as_echo_n "(cached) " >&6
2781else
2782  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783for as_dir in $PATH
2784do
2785  IFS=$as_save_IFS
2786  test -z "$as_dir" && as_dir=.
2787    # Account for people who put trailing slashes in PATH elements.
2788case $as_dir/ in #((
2789  ./ | .// | /[cC]/* | \
2790  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2791  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2792  /usr/ucb/* ) ;;
2793  *)
2794    # OSF1 and SCO ODT 3.0 have their own names for install.
2795    # Don't use installbsd from OSF since it installs stuff as root
2796    # by default.
2797    for ac_prog in ginstall scoinst install; do
2798      for ac_exec_ext in '' $ac_executable_extensions; do
2799	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2800	  if test $ac_prog = install &&
2801	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2802	    # AIX install.  It has an incompatible calling convention.
2803	    :
2804	  elif test $ac_prog = install &&
2805	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2806	    # program-specific install script used by HP pwplus--don't use.
2807	    :
2808	  else
2809	    rm -rf conftest.one conftest.two conftest.dir
2810	    echo one > conftest.one
2811	    echo two > conftest.two
2812	    mkdir conftest.dir
2813	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2814	      test -s conftest.one && test -s conftest.two &&
2815	      test -s conftest.dir/conftest.one &&
2816	      test -s conftest.dir/conftest.two
2817	    then
2818	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2819	      break 3
2820	    fi
2821	  fi
2822	fi
2823      done
2824    done
2825    ;;
2826esac
2827
2828  done
2829IFS=$as_save_IFS
2830
2831rm -rf conftest.one conftest.two conftest.dir
2832
2833fi
2834  if test "${ac_cv_path_install+set}" = set; then
2835    INSTALL=$ac_cv_path_install
2836  else
2837    # As a last resort, use the slow shell script.  Don't cache a
2838    # value for INSTALL within a source directory, because that will
2839    # break other packages using the cache if that directory is
2840    # removed, or if the value is a relative name.
2841    INSTALL=$ac_install_sh
2842  fi
2843fi
2844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2845$as_echo "$INSTALL" >&6; }
2846
2847# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2848# It thinks the first close brace ends the variable substitution.
2849test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2850
2851test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2852
2853test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2854
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2856$as_echo_n "checking whether build environment is sane... " >&6; }
2857# Reject unsafe characters in $srcdir or the absolute working directory
2858# name.  Accept space and tab only in the latter.
2859am_lf='
2860'
2861case `pwd` in
2862  *[\\\"\#\$\&\'\`$am_lf]*)
2863    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2864esac
2865case $srcdir in
2866  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2867    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2868esac
2869
2870# Do 'set' in a subshell so we don't clobber the current shell's
2871# arguments.  Must try -L first in case configure is actually a
2872# symlink; some systems play weird games with the mod time of symlinks
2873# (eg FreeBSD returns the mod time of the symlink's containing
2874# directory).
2875if (
2876   am_has_slept=no
2877   for am_try in 1 2; do
2878     echo "timestamp, slept: $am_has_slept" > conftest.file
2879     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2880     if test "$*" = "X"; then
2881	# -L didn't work.
2882	set X `ls -t "$srcdir/configure" conftest.file`
2883     fi
2884     if test "$*" != "X $srcdir/configure conftest.file" \
2885	&& test "$*" != "X conftest.file $srcdir/configure"; then
2886
2887	# If neither matched, then we have a broken ls.  This can happen
2888	# if, for instance, CONFIG_SHELL is bash and it inherits a
2889	# broken ls alias from the environment.  This has actually
2890	# happened.  Such a system could not be considered "sane".
2891	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2892  alias in your environment" "$LINENO" 5
2893     fi
2894     if test "$2" = conftest.file || test $am_try -eq 2; then
2895       break
2896     fi
2897     # Just in case.
2898     sleep 1
2899     am_has_slept=yes
2900   done
2901   test "$2" = conftest.file
2902   )
2903then
2904   # Ok.
2905   :
2906else
2907   as_fn_error $? "newly created file is older than distributed files!
2908Check your system clock" "$LINENO" 5
2909fi
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2911$as_echo "yes" >&6; }
2912# If we didn't sleep, we still need to ensure time stamps of config.status and
2913# generated files are strictly newer.
2914am_sleep_pid=
2915if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2916  ( sleep 1 ) &
2917  am_sleep_pid=$!
2918fi
2919
2920rm -f conftest.file
2921
2922test "$program_prefix" != NONE &&
2923  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2924# Use a double $ so make ignores it.
2925test "$program_suffix" != NONE &&
2926  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2927# Double any \ or $.
2928# By default was `s,x,x', remove it if useless.
2929ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2930program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2931
2932# expand $ac_aux_dir to an absolute path
2933am_aux_dir=`cd $ac_aux_dir && pwd`
2934
2935if test x"${MISSING+set}" != xset; then
2936  case $am_aux_dir in
2937  *\ * | *\	*)
2938    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2939  *)
2940    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2941  esac
2942fi
2943# Use eval to expand $SHELL
2944if eval "$MISSING --run true"; then
2945  am_missing_run="$MISSING --run "
2946else
2947  am_missing_run=
2948  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2949$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2950fi
2951
2952if test x"${install_sh}" != xset; then
2953  case $am_aux_dir in
2954  *\ * | *\	*)
2955    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2956  *)
2957    install_sh="\${SHELL} $am_aux_dir/install-sh"
2958  esac
2959fi
2960
2961# Installed binaries are usually stripped using 'strip' when the user
2962# run "make install-strip".  However 'strip' might not be the right
2963# tool to use in cross-compilation environments, therefore Automake
2964# will honor the 'STRIP' environment variable to overrule this program.
2965if test "$cross_compiling" != no; then
2966  if test -n "$ac_tool_prefix"; then
2967  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2968set dummy ${ac_tool_prefix}strip; ac_word=$2
2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970$as_echo_n "checking for $ac_word... " >&6; }
2971if ${ac_cv_prog_STRIP+:} false; then :
2972  $as_echo_n "(cached) " >&6
2973else
2974  if test -n "$STRIP"; then
2975  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2976else
2977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978for as_dir in $PATH
2979do
2980  IFS=$as_save_IFS
2981  test -z "$as_dir" && as_dir=.
2982    for ac_exec_ext in '' $ac_executable_extensions; do
2983  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986    break 2
2987  fi
2988done
2989  done
2990IFS=$as_save_IFS
2991
2992fi
2993fi
2994STRIP=$ac_cv_prog_STRIP
2995if test -n "$STRIP"; then
2996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2997$as_echo "$STRIP" >&6; }
2998else
2999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000$as_echo "no" >&6; }
3001fi
3002
3003
3004fi
3005if test -z "$ac_cv_prog_STRIP"; then
3006  ac_ct_STRIP=$STRIP
3007  # Extract the first word of "strip", so it can be a program name with args.
3008set dummy strip; ac_word=$2
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010$as_echo_n "checking for $ac_word... " >&6; }
3011if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3012  $as_echo_n "(cached) " >&6
3013else
3014  if test -n "$ac_ct_STRIP"; then
3015  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3016else
3017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018for as_dir in $PATH
3019do
3020  IFS=$as_save_IFS
3021  test -z "$as_dir" && as_dir=.
3022    for ac_exec_ext in '' $ac_executable_extensions; do
3023  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3024    ac_cv_prog_ac_ct_STRIP="strip"
3025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026    break 2
3027  fi
3028done
3029  done
3030IFS=$as_save_IFS
3031
3032fi
3033fi
3034ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3035if test -n "$ac_ct_STRIP"; then
3036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3037$as_echo "$ac_ct_STRIP" >&6; }
3038else
3039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040$as_echo "no" >&6; }
3041fi
3042
3043  if test "x$ac_ct_STRIP" = x; then
3044    STRIP=":"
3045  else
3046    case $cross_compiling:$ac_tool_warned in
3047yes:)
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3050ac_tool_warned=yes ;;
3051esac
3052    STRIP=$ac_ct_STRIP
3053  fi
3054else
3055  STRIP="$ac_cv_prog_STRIP"
3056fi
3057
3058fi
3059INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3060
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3062$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3063if test -z "$MKDIR_P"; then
3064  if ${ac_cv_path_mkdir+:} false; then :
3065  $as_echo_n "(cached) " >&6
3066else
3067  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3069do
3070  IFS=$as_save_IFS
3071  test -z "$as_dir" && as_dir=.
3072    for ac_prog in mkdir gmkdir; do
3073	 for ac_exec_ext in '' $ac_executable_extensions; do
3074	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3075	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3076	     'mkdir (GNU coreutils) '* | \
3077	     'mkdir (coreutils) '* | \
3078	     'mkdir (fileutils) '4.1*)
3079	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3080	       break 3;;
3081	   esac
3082	 done
3083       done
3084  done
3085IFS=$as_save_IFS
3086
3087fi
3088
3089  test -d ./--version && rmdir ./--version
3090  if test "${ac_cv_path_mkdir+set}" = set; then
3091    MKDIR_P="$ac_cv_path_mkdir -p"
3092  else
3093    # As a last resort, use the slow shell script.  Don't cache a
3094    # value for MKDIR_P within a source directory, because that will
3095    # break other packages using the cache if that directory is
3096    # removed, or if the value is a relative name.
3097    MKDIR_P="$ac_install_sh -d"
3098  fi
3099fi
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3101$as_echo "$MKDIR_P" >&6; }
3102
3103for ac_prog in gawk mawk nawk awk
3104do
3105  # Extract the first word of "$ac_prog", so it can be a program name with args.
3106set dummy $ac_prog; ac_word=$2
3107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108$as_echo_n "checking for $ac_word... " >&6; }
3109if ${ac_cv_prog_AWK+:} false; then :
3110  $as_echo_n "(cached) " >&6
3111else
3112  if test -n "$AWK"; then
3113  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3114else
3115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116for as_dir in $PATH
3117do
3118  IFS=$as_save_IFS
3119  test -z "$as_dir" && as_dir=.
3120    for ac_exec_ext in '' $ac_executable_extensions; do
3121  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122    ac_cv_prog_AWK="$ac_prog"
3123    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124    break 2
3125  fi
3126done
3127  done
3128IFS=$as_save_IFS
3129
3130fi
3131fi
3132AWK=$ac_cv_prog_AWK
3133if test -n "$AWK"; then
3134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3135$as_echo "$AWK" >&6; }
3136else
3137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138$as_echo "no" >&6; }
3139fi
3140
3141
3142  test -n "$AWK" && break
3143done
3144
3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3146$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3147set x ${MAKE-make}
3148ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3149if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3150  $as_echo_n "(cached) " >&6
3151else
3152  cat >conftest.make <<\_ACEOF
3153SHELL = /bin/sh
3154all:
3155	@echo '@@@%%%=$(MAKE)=@@@%%%'
3156_ACEOF
3157# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3158case `${MAKE-make} -f conftest.make 2>/dev/null` in
3159  *@@@%%%=?*=@@@%%%*)
3160    eval ac_cv_prog_make_${ac_make}_set=yes;;
3161  *)
3162    eval ac_cv_prog_make_${ac_make}_set=no;;
3163esac
3164rm -f conftest.make
3165fi
3166if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3168$as_echo "yes" >&6; }
3169  SET_MAKE=
3170else
3171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172$as_echo "no" >&6; }
3173  SET_MAKE="MAKE=${MAKE-make}"
3174fi
3175
3176rm -rf .tst 2>/dev/null
3177mkdir .tst 2>/dev/null
3178if test -d .tst; then
3179  am__leading_dot=.
3180else
3181  am__leading_dot=_
3182fi
3183rmdir .tst 2>/dev/null
3184
3185if test "`cd $srcdir && pwd`" != "`pwd`"; then
3186  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3187  # is not polluted with repeated "-I."
3188  am__isrc=' -I$(srcdir)'
3189  # test to see if srcdir already configured
3190  if test -f $srcdir/config.status; then
3191    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3192  fi
3193fi
3194
3195# test whether we have cygpath
3196if test -z "$CYGPATH_W"; then
3197  if (cygpath --version) >/dev/null 2>/dev/null; then
3198    CYGPATH_W='cygpath -w'
3199  else
3200    CYGPATH_W=echo
3201  fi
3202fi
3203
3204
3205# Define the identity of the package.
3206 PACKAGE='atf'
3207 VERSION='0.17'
3208
3209
3210cat >>confdefs.h <<_ACEOF
3211#define PACKAGE "$PACKAGE"
3212_ACEOF
3213
3214
3215cat >>confdefs.h <<_ACEOF
3216#define VERSION "$VERSION"
3217_ACEOF
3218
3219# Some tools Automake needs.
3220
3221ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3222
3223
3224AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3225
3226
3227AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3228
3229
3230AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3231
3232
3233MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3234
3235# For better backward compatibility.  To be removed once Automake 1.9.x
3236# dies out for good.  For more background, see:
3237# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3238# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3239mkdir_p='$(MKDIR_P)'
3240
3241# We need awk for the "check" target.  The system "awk" is bad on
3242# some platforms.
3243# Always define AMTAR for backward compatibility.  Yes, it's still used
3244# in the wild :-(  We should find a proper way to deprecate it ...
3245AMTAR='$${TAR-tar}'
3246
3247am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3248
3249
3250
3251
3252
3253
3254case `pwd` in
3255  *\ * | *\	*)
3256    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3257$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3258esac
3259
3260
3261
3262macro_version='2.2.6b'
3263macro_revision='1.3017'
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277ltmain="$ac_aux_dir/ltmain.sh"
3278
3279DEPDIR="${am__leading_dot}deps"
3280
3281ac_config_commands="$ac_config_commands depfiles"
3282
3283
3284am_make=${MAKE-make}
3285cat > confinc << 'END'
3286am__doit:
3287	@echo this is the am__doit target
3288.PHONY: am__doit
3289END
3290# If we don't find an include directive, just comment out the code.
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3292$as_echo_n "checking for style of include used by $am_make... " >&6; }
3293am__include="#"
3294am__quote=
3295_am_result=none
3296# First try GNU make style include.
3297echo "include confinc" > confmf
3298# Ignore all kinds of additional output from 'make'.
3299case `$am_make -s -f confmf 2> /dev/null` in #(
3300*the\ am__doit\ target*)
3301  am__include=include
3302  am__quote=
3303  _am_result=GNU
3304  ;;
3305esac
3306# Now try BSD make style include.
3307if test "$am__include" = "#"; then
3308   echo '.include "confinc"' > confmf
3309   case `$am_make -s -f confmf 2> /dev/null` in #(
3310   *the\ am__doit\ target*)
3311     am__include=.include
3312     am__quote="\""
3313     _am_result=BSD
3314     ;;
3315   esac
3316fi
3317
3318
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3320$as_echo "$_am_result" >&6; }
3321rm -f confinc confmf
3322
3323# Check whether --enable-dependency-tracking was given.
3324if test "${enable_dependency_tracking+set}" = set; then :
3325  enableval=$enable_dependency_tracking;
3326fi
3327
3328if test "x$enable_dependency_tracking" != xno; then
3329  am_depcomp="$ac_aux_dir/depcomp"
3330  AMDEPBACKSLASH='\'
3331  am__nodep='_no'
3332fi
3333 if test "x$enable_dependency_tracking" != xno; then
3334  AMDEP_TRUE=
3335  AMDEP_FALSE='#'
3336else
3337  AMDEP_TRUE='#'
3338  AMDEP_FALSE=
3339fi
3340
3341
3342ac_ext=c
3343ac_cpp='$CPP $CPPFLAGS'
3344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347if test -n "$ac_tool_prefix"; then
3348  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3349set dummy ${ac_tool_prefix}gcc; ac_word=$2
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351$as_echo_n "checking for $ac_word... " >&6; }
3352if ${ac_cv_prog_CC+:} false; then :
3353  $as_echo_n "(cached) " >&6
3354else
3355  if test -n "$CC"; then
3356  ac_cv_prog_CC="$CC" # Let the user override the test.
3357else
3358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359for as_dir in $PATH
3360do
3361  IFS=$as_save_IFS
3362  test -z "$as_dir" && as_dir=.
3363    for ac_exec_ext in '' $ac_executable_extensions; do
3364  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3365    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3366    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3367    break 2
3368  fi
3369done
3370  done
3371IFS=$as_save_IFS
3372
3373fi
3374fi
3375CC=$ac_cv_prog_CC
3376if test -n "$CC"; then
3377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3378$as_echo "$CC" >&6; }
3379else
3380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381$as_echo "no" >&6; }
3382fi
3383
3384
3385fi
3386if test -z "$ac_cv_prog_CC"; then
3387  ac_ct_CC=$CC
3388  # Extract the first word of "gcc", so it can be a program name with args.
3389set dummy gcc; ac_word=$2
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391$as_echo_n "checking for $ac_word... " >&6; }
3392if ${ac_cv_prog_ac_ct_CC+:} false; then :
3393  $as_echo_n "(cached) " >&6
3394else
3395  if test -n "$ac_ct_CC"; then
3396  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3397else
3398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399for as_dir in $PATH
3400do
3401  IFS=$as_save_IFS
3402  test -z "$as_dir" && as_dir=.
3403    for ac_exec_ext in '' $ac_executable_extensions; do
3404  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405    ac_cv_prog_ac_ct_CC="gcc"
3406    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407    break 2
3408  fi
3409done
3410  done
3411IFS=$as_save_IFS
3412
3413fi
3414fi
3415ac_ct_CC=$ac_cv_prog_ac_ct_CC
3416if test -n "$ac_ct_CC"; then
3417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3418$as_echo "$ac_ct_CC" >&6; }
3419else
3420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421$as_echo "no" >&6; }
3422fi
3423
3424  if test "x$ac_ct_CC" = x; then
3425    CC=""
3426  else
3427    case $cross_compiling:$ac_tool_warned in
3428yes:)
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3431ac_tool_warned=yes ;;
3432esac
3433    CC=$ac_ct_CC
3434  fi
3435else
3436  CC="$ac_cv_prog_CC"
3437fi
3438
3439if test -z "$CC"; then
3440          if test -n "$ac_tool_prefix"; then
3441    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3442set dummy ${ac_tool_prefix}cc; ac_word=$2
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3444$as_echo_n "checking for $ac_word... " >&6; }
3445if ${ac_cv_prog_CC+:} false; then :
3446  $as_echo_n "(cached) " >&6
3447else
3448  if test -n "$CC"; then
3449  ac_cv_prog_CC="$CC" # Let the user override the test.
3450else
3451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452for as_dir in $PATH
3453do
3454  IFS=$as_save_IFS
3455  test -z "$as_dir" && as_dir=.
3456    for ac_exec_ext in '' $ac_executable_extensions; do
3457  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3458    ac_cv_prog_CC="${ac_tool_prefix}cc"
3459    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3460    break 2
3461  fi
3462done
3463  done
3464IFS=$as_save_IFS
3465
3466fi
3467fi
3468CC=$ac_cv_prog_CC
3469if test -n "$CC"; then
3470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3471$as_echo "$CC" >&6; }
3472else
3473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474$as_echo "no" >&6; }
3475fi
3476
3477
3478  fi
3479fi
3480if test -z "$CC"; then
3481  # Extract the first word of "cc", so it can be a program name with args.
3482set dummy cc; ac_word=$2
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484$as_echo_n "checking for $ac_word... " >&6; }
3485if ${ac_cv_prog_CC+:} false; then :
3486  $as_echo_n "(cached) " >&6
3487else
3488  if test -n "$CC"; then
3489  ac_cv_prog_CC="$CC" # Let the user override the test.
3490else
3491  ac_prog_rejected=no
3492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493for as_dir in $PATH
3494do
3495  IFS=$as_save_IFS
3496  test -z "$as_dir" && as_dir=.
3497    for ac_exec_ext in '' $ac_executable_extensions; do
3498  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3499    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3500       ac_prog_rejected=yes
3501       continue
3502     fi
3503    ac_cv_prog_CC="cc"
3504    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3505    break 2
3506  fi
3507done
3508  done
3509IFS=$as_save_IFS
3510
3511if test $ac_prog_rejected = yes; then
3512  # We found a bogon in the path, so make sure we never use it.
3513  set dummy $ac_cv_prog_CC
3514  shift
3515  if test $# != 0; then
3516    # We chose a different compiler from the bogus one.
3517    # However, it has the same basename, so the bogon will be chosen
3518    # first if we set CC to just the basename; use the full file name.
3519    shift
3520    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3521  fi
3522fi
3523fi
3524fi
3525CC=$ac_cv_prog_CC
3526if test -n "$CC"; then
3527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3528$as_echo "$CC" >&6; }
3529else
3530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531$as_echo "no" >&6; }
3532fi
3533
3534
3535fi
3536if test -z "$CC"; then
3537  if test -n "$ac_tool_prefix"; then
3538  for ac_prog in cl.exe
3539  do
3540    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3541set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543$as_echo_n "checking for $ac_word... " >&6; }
3544if ${ac_cv_prog_CC+:} false; then :
3545  $as_echo_n "(cached) " >&6
3546else
3547  if test -n "$CC"; then
3548  ac_cv_prog_CC="$CC" # Let the user override the test.
3549else
3550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551for as_dir in $PATH
3552do
3553  IFS=$as_save_IFS
3554  test -z "$as_dir" && as_dir=.
3555    for ac_exec_ext in '' $ac_executable_extensions; do
3556  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3558    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3559    break 2
3560  fi
3561done
3562  done
3563IFS=$as_save_IFS
3564
3565fi
3566fi
3567CC=$ac_cv_prog_CC
3568if test -n "$CC"; then
3569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3570$as_echo "$CC" >&6; }
3571else
3572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573$as_echo "no" >&6; }
3574fi
3575
3576
3577    test -n "$CC" && break
3578  done
3579fi
3580if test -z "$CC"; then
3581  ac_ct_CC=$CC
3582  for ac_prog in cl.exe
3583do
3584  # Extract the first word of "$ac_prog", so it can be a program name with args.
3585set dummy $ac_prog; ac_word=$2
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587$as_echo_n "checking for $ac_word... " >&6; }
3588if ${ac_cv_prog_ac_ct_CC+:} false; then :
3589  $as_echo_n "(cached) " >&6
3590else
3591  if test -n "$ac_ct_CC"; then
3592  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3593else
3594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595for as_dir in $PATH
3596do
3597  IFS=$as_save_IFS
3598  test -z "$as_dir" && as_dir=.
3599    for ac_exec_ext in '' $ac_executable_extensions; do
3600  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3601    ac_cv_prog_ac_ct_CC="$ac_prog"
3602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603    break 2
3604  fi
3605done
3606  done
3607IFS=$as_save_IFS
3608
3609fi
3610fi
3611ac_ct_CC=$ac_cv_prog_ac_ct_CC
3612if test -n "$ac_ct_CC"; then
3613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3614$as_echo "$ac_ct_CC" >&6; }
3615else
3616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617$as_echo "no" >&6; }
3618fi
3619
3620
3621  test -n "$ac_ct_CC" && break
3622done
3623
3624  if test "x$ac_ct_CC" = x; then
3625    CC=""
3626  else
3627    case $cross_compiling:$ac_tool_warned in
3628yes:)
3629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3631ac_tool_warned=yes ;;
3632esac
3633    CC=$ac_ct_CC
3634  fi
3635fi
3636
3637fi
3638
3639
3640test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3642as_fn_error $? "no acceptable C compiler found in \$PATH
3643See \`config.log' for more details" "$LINENO" 5; }
3644
3645# Provide some information about the compiler.
3646$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3647set X $ac_compile
3648ac_compiler=$2
3649for ac_option in --version -v -V -qversion; do
3650  { { ac_try="$ac_compiler $ac_option >&5"
3651case "(($ac_try" in
3652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653  *) ac_try_echo=$ac_try;;
3654esac
3655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656$as_echo "$ac_try_echo"; } >&5
3657  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3658  ac_status=$?
3659  if test -s conftest.err; then
3660    sed '10a\
3661... rest of stderr output deleted ...
3662         10q' conftest.err >conftest.er1
3663    cat conftest.er1 >&5
3664  fi
3665  rm -f conftest.er1 conftest.err
3666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667  test $ac_status = 0; }
3668done
3669
3670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671/* end confdefs.h.  */
3672
3673int
3674main ()
3675{
3676
3677  ;
3678  return 0;
3679}
3680_ACEOF
3681ac_clean_files_save=$ac_clean_files
3682ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3683# Try to create an executable without -o first, disregard a.out.
3684# It will help us diagnose broken compilers, and finding out an intuition
3685# of exeext.
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3687$as_echo_n "checking whether the C compiler works... " >&6; }
3688ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3689
3690# The possible output files:
3691ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3692
3693ac_rmfiles=
3694for ac_file in $ac_files
3695do
3696  case $ac_file in
3697    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3698    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3699  esac
3700done
3701rm -f $ac_rmfiles
3702
3703if { { ac_try="$ac_link_default"
3704case "(($ac_try" in
3705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706  *) ac_try_echo=$ac_try;;
3707esac
3708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3709$as_echo "$ac_try_echo"; } >&5
3710  (eval "$ac_link_default") 2>&5
3711  ac_status=$?
3712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3713  test $ac_status = 0; }; then :
3714  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3715# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3716# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3717# so that the user can short-circuit this test for compilers unknown to
3718# Autoconf.
3719for ac_file in $ac_files ''
3720do
3721  test -f "$ac_file" || continue
3722  case $ac_file in
3723    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3724	;;
3725    [ab].out )
3726	# We found the default executable, but exeext='' is most
3727	# certainly right.
3728	break;;
3729    *.* )
3730	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3731	then :; else
3732	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3733	fi
3734	# We set ac_cv_exeext here because the later test for it is not
3735	# safe: cross compilers may not add the suffix if given an `-o'
3736	# argument, so we may need to know it at that point already.
3737	# Even if this section looks crufty: it has the advantage of
3738	# actually working.
3739	break;;
3740    * )
3741	break;;
3742  esac
3743done
3744test "$ac_cv_exeext" = no && ac_cv_exeext=
3745
3746else
3747  ac_file=''
3748fi
3749if test -z "$ac_file"; then :
3750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751$as_echo "no" >&6; }
3752$as_echo "$as_me: failed program was:" >&5
3753sed 's/^/| /' conftest.$ac_ext >&5
3754
3755{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3756$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3757as_fn_error 77 "C compiler cannot create executables
3758See \`config.log' for more details" "$LINENO" 5; }
3759else
3760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3761$as_echo "yes" >&6; }
3762fi
3763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3764$as_echo_n "checking for C compiler default output file name... " >&6; }
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3766$as_echo "$ac_file" >&6; }
3767ac_exeext=$ac_cv_exeext
3768
3769rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3770ac_clean_files=$ac_clean_files_save
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3772$as_echo_n "checking for suffix of executables... " >&6; }
3773if { { ac_try="$ac_link"
3774case "(($ac_try" in
3775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776  *) ac_try_echo=$ac_try;;
3777esac
3778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3779$as_echo "$ac_try_echo"; } >&5
3780  (eval "$ac_link") 2>&5
3781  ac_status=$?
3782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3783  test $ac_status = 0; }; then :
3784  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3785# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3786# work properly (i.e., refer to `conftest.exe'), while it won't with
3787# `rm'.
3788for ac_file in conftest.exe conftest conftest.*; do
3789  test -f "$ac_file" || continue
3790  case $ac_file in
3791    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3792    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3793	  break;;
3794    * ) break;;
3795  esac
3796done
3797else
3798  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3800as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3801See \`config.log' for more details" "$LINENO" 5; }
3802fi
3803rm -f conftest conftest$ac_cv_exeext
3804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3805$as_echo "$ac_cv_exeext" >&6; }
3806
3807rm -f conftest.$ac_ext
3808EXEEXT=$ac_cv_exeext
3809ac_exeext=$EXEEXT
3810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811/* end confdefs.h.  */
3812#include <stdio.h>
3813int
3814main ()
3815{
3816FILE *f = fopen ("conftest.out", "w");
3817 return ferror (f) || fclose (f) != 0;
3818
3819  ;
3820  return 0;
3821}
3822_ACEOF
3823ac_clean_files="$ac_clean_files conftest.out"
3824# Check that the compiler produces executables we can run.  If not, either
3825# the compiler is broken, or we cross compile.
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3827$as_echo_n "checking whether we are cross compiling... " >&6; }
3828if test "$cross_compiling" != yes; then
3829  { { ac_try="$ac_link"
3830case "(($ac_try" in
3831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832  *) ac_try_echo=$ac_try;;
3833esac
3834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3835$as_echo "$ac_try_echo"; } >&5
3836  (eval "$ac_link") 2>&5
3837  ac_status=$?
3838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3839  test $ac_status = 0; }
3840  if { ac_try='./conftest$ac_cv_exeext'
3841  { { case "(($ac_try" in
3842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843  *) ac_try_echo=$ac_try;;
3844esac
3845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846$as_echo "$ac_try_echo"; } >&5
3847  (eval "$ac_try") 2>&5
3848  ac_status=$?
3849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3850  test $ac_status = 0; }; }; then
3851    cross_compiling=no
3852  else
3853    if test "$cross_compiling" = maybe; then
3854	cross_compiling=yes
3855    else
3856	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3857$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3858as_fn_error $? "cannot run C compiled programs.
3859If you meant to cross compile, use \`--host'.
3860See \`config.log' for more details" "$LINENO" 5; }
3861    fi
3862  fi
3863fi
3864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3865$as_echo "$cross_compiling" >&6; }
3866
3867rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3868ac_clean_files=$ac_clean_files_save
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3870$as_echo_n "checking for suffix of object files... " >&6; }
3871if ${ac_cv_objext+:} false; then :
3872  $as_echo_n "(cached) " >&6
3873else
3874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875/* end confdefs.h.  */
3876
3877int
3878main ()
3879{
3880
3881  ;
3882  return 0;
3883}
3884_ACEOF
3885rm -f conftest.o conftest.obj
3886if { { ac_try="$ac_compile"
3887case "(($ac_try" in
3888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889  *) ac_try_echo=$ac_try;;
3890esac
3891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3892$as_echo "$ac_try_echo"; } >&5
3893  (eval "$ac_compile") 2>&5
3894  ac_status=$?
3895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3896  test $ac_status = 0; }; then :
3897  for ac_file in conftest.o conftest.obj conftest.*; do
3898  test -f "$ac_file" || continue;
3899  case $ac_file in
3900    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3901    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3902       break;;
3903  esac
3904done
3905else
3906  $as_echo "$as_me: failed program was:" >&5
3907sed 's/^/| /' conftest.$ac_ext >&5
3908
3909{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3911as_fn_error $? "cannot compute suffix of object files: cannot compile
3912See \`config.log' for more details" "$LINENO" 5; }
3913fi
3914rm -f conftest.$ac_cv_objext conftest.$ac_ext
3915fi
3916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3917$as_echo "$ac_cv_objext" >&6; }
3918OBJEXT=$ac_cv_objext
3919ac_objext=$OBJEXT
3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3921$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3922if ${ac_cv_c_compiler_gnu+:} false; then :
3923  $as_echo_n "(cached) " >&6
3924else
3925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926/* end confdefs.h.  */
3927
3928int
3929main ()
3930{
3931#ifndef __GNUC__
3932       choke me
3933#endif
3934
3935  ;
3936  return 0;
3937}
3938_ACEOF
3939if ac_fn_c_try_compile "$LINENO"; then :
3940  ac_compiler_gnu=yes
3941else
3942  ac_compiler_gnu=no
3943fi
3944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945ac_cv_c_compiler_gnu=$ac_compiler_gnu
3946
3947fi
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3949$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3950if test $ac_compiler_gnu = yes; then
3951  GCC=yes
3952else
3953  GCC=
3954fi
3955ac_test_CFLAGS=${CFLAGS+set}
3956ac_save_CFLAGS=$CFLAGS
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3958$as_echo_n "checking whether $CC accepts -g... " >&6; }
3959if ${ac_cv_prog_cc_g+:} false; then :
3960  $as_echo_n "(cached) " >&6
3961else
3962  ac_save_c_werror_flag=$ac_c_werror_flag
3963   ac_c_werror_flag=yes
3964   ac_cv_prog_cc_g=no
3965   CFLAGS="-g"
3966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967/* end confdefs.h.  */
3968
3969int
3970main ()
3971{
3972
3973  ;
3974  return 0;
3975}
3976_ACEOF
3977if ac_fn_c_try_compile "$LINENO"; then :
3978  ac_cv_prog_cc_g=yes
3979else
3980  CFLAGS=""
3981      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982/* end confdefs.h.  */
3983
3984int
3985main ()
3986{
3987
3988  ;
3989  return 0;
3990}
3991_ACEOF
3992if ac_fn_c_try_compile "$LINENO"; then :
3993
3994else
3995  ac_c_werror_flag=$ac_save_c_werror_flag
3996	 CFLAGS="-g"
3997	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998/* end confdefs.h.  */
3999
4000int
4001main ()
4002{
4003
4004  ;
4005  return 0;
4006}
4007_ACEOF
4008if ac_fn_c_try_compile "$LINENO"; then :
4009  ac_cv_prog_cc_g=yes
4010fi
4011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012fi
4013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014fi
4015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016   ac_c_werror_flag=$ac_save_c_werror_flag
4017fi
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4019$as_echo "$ac_cv_prog_cc_g" >&6; }
4020if test "$ac_test_CFLAGS" = set; then
4021  CFLAGS=$ac_save_CFLAGS
4022elif test $ac_cv_prog_cc_g = yes; then
4023  if test "$GCC" = yes; then
4024    CFLAGS="-g -O2"
4025  else
4026    CFLAGS="-g"
4027  fi
4028else
4029  if test "$GCC" = yes; then
4030    CFLAGS="-O2"
4031  else
4032    CFLAGS=
4033  fi
4034fi
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4036$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4037if ${ac_cv_prog_cc_c89+:} false; then :
4038  $as_echo_n "(cached) " >&6
4039else
4040  ac_cv_prog_cc_c89=no
4041ac_save_CC=$CC
4042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043/* end confdefs.h.  */
4044#include <stdarg.h>
4045#include <stdio.h>
4046struct stat;
4047/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4048struct buf { int x; };
4049FILE * (*rcsopen) (struct buf *, struct stat *, int);
4050static char *e (p, i)
4051     char **p;
4052     int i;
4053{
4054  return p[i];
4055}
4056static char *f (char * (*g) (char **, int), char **p, ...)
4057{
4058  char *s;
4059  va_list v;
4060  va_start (v,p);
4061  s = g (p, va_arg (v,int));
4062  va_end (v);
4063  return s;
4064}
4065
4066/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4067   function prototypes and stuff, but not '\xHH' hex character constants.
4068   These don't provoke an error unfortunately, instead are silently treated
4069   as 'x'.  The following induces an error, until -std is added to get
4070   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4071   array size at least.  It's necessary to write '\x00'==0 to get something
4072   that's true only with -std.  */
4073int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4074
4075/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4076   inside strings and character constants.  */
4077#define FOO(x) 'x'
4078int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4079
4080int test (int i, double x);
4081struct s1 {int (*f) (int a);};
4082struct s2 {int (*f) (double a);};
4083int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4084int argc;
4085char **argv;
4086int
4087main ()
4088{
4089return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4090  ;
4091  return 0;
4092}
4093_ACEOF
4094for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4095	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4096do
4097  CC="$ac_save_CC $ac_arg"
4098  if ac_fn_c_try_compile "$LINENO"; then :
4099  ac_cv_prog_cc_c89=$ac_arg
4100fi
4101rm -f core conftest.err conftest.$ac_objext
4102  test "x$ac_cv_prog_cc_c89" != "xno" && break
4103done
4104rm -f conftest.$ac_ext
4105CC=$ac_save_CC
4106
4107fi
4108# AC_CACHE_VAL
4109case "x$ac_cv_prog_cc_c89" in
4110  x)
4111    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4112$as_echo "none needed" >&6; } ;;
4113  xno)
4114    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4115$as_echo "unsupported" >&6; } ;;
4116  *)
4117    CC="$CC $ac_cv_prog_cc_c89"
4118    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4119$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4120esac
4121if test "x$ac_cv_prog_cc_c89" != xno; then :
4122
4123fi
4124
4125ac_ext=c
4126ac_cpp='$CPP $CPPFLAGS'
4127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4129ac_compiler_gnu=$ac_cv_c_compiler_gnu
4130
4131depcc="$CC"   am_compiler_list=
4132
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4134$as_echo_n "checking dependency style of $depcc... " >&6; }
4135if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4136  $as_echo_n "(cached) " >&6
4137else
4138  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4139  # We make a subdir and do the tests there.  Otherwise we can end up
4140  # making bogus files that we don't know about and never remove.  For
4141  # instance it was reported that on HP-UX the gcc test will end up
4142  # making a dummy file named 'D' -- because '-MD' means "put the output
4143  # in D".
4144  rm -rf conftest.dir
4145  mkdir conftest.dir
4146  # Copy depcomp to subdir because otherwise we won't find it if we're
4147  # using a relative directory.
4148  cp "$am_depcomp" conftest.dir
4149  cd conftest.dir
4150  # We will build objects and dependencies in a subdirectory because
4151  # it helps to detect inapplicable dependency modes.  For instance
4152  # both Tru64's cc and ICC support -MD to output dependencies as a
4153  # side effect of compilation, but ICC will put the dependencies in
4154  # the current directory while Tru64 will put them in the object
4155  # directory.
4156  mkdir sub
4157
4158  am_cv_CC_dependencies_compiler_type=none
4159  if test "$am_compiler_list" = ""; then
4160     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4161  fi
4162  am__universal=false
4163  case " $depcc " in #(
4164     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4165     esac
4166
4167  for depmode in $am_compiler_list; do
4168    # Setup a source with many dependencies, because some compilers
4169    # like to wrap large dependency lists on column 80 (with \), and
4170    # we should not choose a depcomp mode which is confused by this.
4171    #
4172    # We need to recreate these files for each test, as the compiler may
4173    # overwrite some of them when testing with obscure command lines.
4174    # This happens at least with the AIX C compiler.
4175    : > sub/conftest.c
4176    for i in 1 2 3 4 5 6; do
4177      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4178      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4179      # Solaris 10 /bin/sh.
4180      echo '/* dummy */' > sub/conftst$i.h
4181    done
4182    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4183
4184    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4185    # mode.  It turns out that the SunPro C++ compiler does not properly
4186    # handle '-M -o', and we need to detect this.  Also, some Intel
4187    # versions had trouble with output in subdirs.
4188    am__obj=sub/conftest.${OBJEXT-o}
4189    am__minus_obj="-o $am__obj"
4190    case $depmode in
4191    gcc)
4192      # This depmode causes a compiler race in universal mode.
4193      test "$am__universal" = false || continue
4194      ;;
4195    nosideeffect)
4196      # After this tag, mechanisms are not by side-effect, so they'll
4197      # only be used when explicitly requested.
4198      if test "x$enable_dependency_tracking" = xyes; then
4199	continue
4200      else
4201	break
4202      fi
4203      ;;
4204    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4205      # This compiler won't grok '-c -o', but also, the minuso test has
4206      # not run yet.  These depmodes are late enough in the game, and
4207      # so weak that their functioning should not be impacted.
4208      am__obj=conftest.${OBJEXT-o}
4209      am__minus_obj=
4210      ;;
4211    none) break ;;
4212    esac
4213    if depmode=$depmode \
4214       source=sub/conftest.c object=$am__obj \
4215       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4216       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4217         >/dev/null 2>conftest.err &&
4218       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4219       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4220       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4221       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4222      # icc doesn't choke on unknown options, it will just issue warnings
4223      # or remarks (even with -Werror).  So we grep stderr for any message
4224      # that says an option was ignored or not supported.
4225      # When given -MP, icc 7.0 and 7.1 complain thusly:
4226      #   icc: Command line warning: ignoring option '-M'; no argument required
4227      # The diagnosis changed in icc 8.0:
4228      #   icc: Command line remark: option '-MP' not supported
4229      if (grep 'ignoring option' conftest.err ||
4230          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4231        am_cv_CC_dependencies_compiler_type=$depmode
4232        break
4233      fi
4234    fi
4235  done
4236
4237  cd ..
4238  rm -rf conftest.dir
4239else
4240  am_cv_CC_dependencies_compiler_type=none
4241fi
4242
4243fi
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4245$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4246CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4247
4248 if
4249  test "x$enable_dependency_tracking" != xno \
4250  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4251  am__fastdepCC_TRUE=
4252  am__fastdepCC_FALSE='#'
4253else
4254  am__fastdepCC_TRUE='#'
4255  am__fastdepCC_FALSE=
4256fi
4257
4258
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4260$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4261if ${ac_cv_path_SED+:} false; then :
4262  $as_echo_n "(cached) " >&6
4263else
4264            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4265     for ac_i in 1 2 3 4 5 6 7; do
4266       ac_script="$ac_script$as_nl$ac_script"
4267     done
4268     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4269     { ac_script=; unset ac_script;}
4270     if test -z "$SED"; then
4271  ac_path_SED_found=false
4272  # Loop through the user's path and test for each of PROGNAME-LIST
4273  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274for as_dir in $PATH
4275do
4276  IFS=$as_save_IFS
4277  test -z "$as_dir" && as_dir=.
4278    for ac_prog in sed gsed; do
4279    for ac_exec_ext in '' $ac_executable_extensions; do
4280      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4281      as_fn_executable_p "$ac_path_SED" || continue
4282# Check for GNU ac_path_SED and select it if it is found.
4283  # Check for GNU $ac_path_SED
4284case `"$ac_path_SED" --version 2>&1` in
4285*GNU*)
4286  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4287*)
4288  ac_count=0
4289  $as_echo_n 0123456789 >"conftest.in"
4290  while :
4291  do
4292    cat "conftest.in" "conftest.in" >"conftest.tmp"
4293    mv "conftest.tmp" "conftest.in"
4294    cp "conftest.in" "conftest.nl"
4295    $as_echo '' >> "conftest.nl"
4296    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4297    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4298    as_fn_arith $ac_count + 1 && ac_count=$as_val
4299    if test $ac_count -gt ${ac_path_SED_max-0}; then
4300      # Best one so far, save it but keep looking for a better one
4301      ac_cv_path_SED="$ac_path_SED"
4302      ac_path_SED_max=$ac_count
4303    fi
4304    # 10*(2^10) chars as input seems more than enough
4305    test $ac_count -gt 10 && break
4306  done
4307  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4308esac
4309
4310      $ac_path_SED_found && break 3
4311    done
4312  done
4313  done
4314IFS=$as_save_IFS
4315  if test -z "$ac_cv_path_SED"; then
4316    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4317  fi
4318else
4319  ac_cv_path_SED=$SED
4320fi
4321
4322fi
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4324$as_echo "$ac_cv_path_SED" >&6; }
4325 SED="$ac_cv_path_SED"
4326  rm -f conftest.sed
4327
4328test -z "$SED" && SED=sed
4329Xsed="$SED -e 1s/^X//"
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4342$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4343if ${ac_cv_path_GREP+:} false; then :
4344  $as_echo_n "(cached) " >&6
4345else
4346  if test -z "$GREP"; then
4347  ac_path_GREP_found=false
4348  # Loop through the user's path and test for each of PROGNAME-LIST
4349  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4351do
4352  IFS=$as_save_IFS
4353  test -z "$as_dir" && as_dir=.
4354    for ac_prog in grep ggrep; do
4355    for ac_exec_ext in '' $ac_executable_extensions; do
4356      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4357      as_fn_executable_p "$ac_path_GREP" || continue
4358# Check for GNU ac_path_GREP and select it if it is found.
4359  # Check for GNU $ac_path_GREP
4360case `"$ac_path_GREP" --version 2>&1` in
4361*GNU*)
4362  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4363*)
4364  ac_count=0
4365  $as_echo_n 0123456789 >"conftest.in"
4366  while :
4367  do
4368    cat "conftest.in" "conftest.in" >"conftest.tmp"
4369    mv "conftest.tmp" "conftest.in"
4370    cp "conftest.in" "conftest.nl"
4371    $as_echo 'GREP' >> "conftest.nl"
4372    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4373    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4374    as_fn_arith $ac_count + 1 && ac_count=$as_val
4375    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4376      # Best one so far, save it but keep looking for a better one
4377      ac_cv_path_GREP="$ac_path_GREP"
4378      ac_path_GREP_max=$ac_count
4379    fi
4380    # 10*(2^10) chars as input seems more than enough
4381    test $ac_count -gt 10 && break
4382  done
4383  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4384esac
4385
4386      $ac_path_GREP_found && break 3
4387    done
4388  done
4389  done
4390IFS=$as_save_IFS
4391  if test -z "$ac_cv_path_GREP"; then
4392    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4393  fi
4394else
4395  ac_cv_path_GREP=$GREP
4396fi
4397
4398fi
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4400$as_echo "$ac_cv_path_GREP" >&6; }
4401 GREP="$ac_cv_path_GREP"
4402
4403
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4405$as_echo_n "checking for egrep... " >&6; }
4406if ${ac_cv_path_EGREP+:} false; then :
4407  $as_echo_n "(cached) " >&6
4408else
4409  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4410   then ac_cv_path_EGREP="$GREP -E"
4411   else
4412     if test -z "$EGREP"; then
4413  ac_path_EGREP_found=false
4414  # Loop through the user's path and test for each of PROGNAME-LIST
4415  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4417do
4418  IFS=$as_save_IFS
4419  test -z "$as_dir" && as_dir=.
4420    for ac_prog in egrep; do
4421    for ac_exec_ext in '' $ac_executable_extensions; do
4422      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4423      as_fn_executable_p "$ac_path_EGREP" || continue
4424# Check for GNU ac_path_EGREP and select it if it is found.
4425  # Check for GNU $ac_path_EGREP
4426case `"$ac_path_EGREP" --version 2>&1` in
4427*GNU*)
4428  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4429*)
4430  ac_count=0
4431  $as_echo_n 0123456789 >"conftest.in"
4432  while :
4433  do
4434    cat "conftest.in" "conftest.in" >"conftest.tmp"
4435    mv "conftest.tmp" "conftest.in"
4436    cp "conftest.in" "conftest.nl"
4437    $as_echo 'EGREP' >> "conftest.nl"
4438    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4439    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4440    as_fn_arith $ac_count + 1 && ac_count=$as_val
4441    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4442      # Best one so far, save it but keep looking for a better one
4443      ac_cv_path_EGREP="$ac_path_EGREP"
4444      ac_path_EGREP_max=$ac_count
4445    fi
4446    # 10*(2^10) chars as input seems more than enough
4447    test $ac_count -gt 10 && break
4448  done
4449  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4450esac
4451
4452      $ac_path_EGREP_found && break 3
4453    done
4454  done
4455  done
4456IFS=$as_save_IFS
4457  if test -z "$ac_cv_path_EGREP"; then
4458    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4459  fi
4460else
4461  ac_cv_path_EGREP=$EGREP
4462fi
4463
4464   fi
4465fi
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4467$as_echo "$ac_cv_path_EGREP" >&6; }
4468 EGREP="$ac_cv_path_EGREP"
4469
4470
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4472$as_echo_n "checking for fgrep... " >&6; }
4473if ${ac_cv_path_FGREP+:} false; then :
4474  $as_echo_n "(cached) " >&6
4475else
4476  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4477   then ac_cv_path_FGREP="$GREP -F"
4478   else
4479     if test -z "$FGREP"; then
4480  ac_path_FGREP_found=false
4481  # Loop through the user's path and test for each of PROGNAME-LIST
4482  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4484do
4485  IFS=$as_save_IFS
4486  test -z "$as_dir" && as_dir=.
4487    for ac_prog in fgrep; do
4488    for ac_exec_ext in '' $ac_executable_extensions; do
4489      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4490      as_fn_executable_p "$ac_path_FGREP" || continue
4491# Check for GNU ac_path_FGREP and select it if it is found.
4492  # Check for GNU $ac_path_FGREP
4493case `"$ac_path_FGREP" --version 2>&1` in
4494*GNU*)
4495  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4496*)
4497  ac_count=0
4498  $as_echo_n 0123456789 >"conftest.in"
4499  while :
4500  do
4501    cat "conftest.in" "conftest.in" >"conftest.tmp"
4502    mv "conftest.tmp" "conftest.in"
4503    cp "conftest.in" "conftest.nl"
4504    $as_echo 'FGREP' >> "conftest.nl"
4505    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4506    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4507    as_fn_arith $ac_count + 1 && ac_count=$as_val
4508    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4509      # Best one so far, save it but keep looking for a better one
4510      ac_cv_path_FGREP="$ac_path_FGREP"
4511      ac_path_FGREP_max=$ac_count
4512    fi
4513    # 10*(2^10) chars as input seems more than enough
4514    test $ac_count -gt 10 && break
4515  done
4516  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4517esac
4518
4519      $ac_path_FGREP_found && break 3
4520    done
4521  done
4522  done
4523IFS=$as_save_IFS
4524  if test -z "$ac_cv_path_FGREP"; then
4525    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4526  fi
4527else
4528  ac_cv_path_FGREP=$FGREP
4529fi
4530
4531   fi
4532fi
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4534$as_echo "$ac_cv_path_FGREP" >&6; }
4535 FGREP="$ac_cv_path_FGREP"
4536
4537
4538test -z "$GREP" && GREP=grep
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558# Check whether --with-gnu-ld was given.
4559if test "${with_gnu_ld+set}" = set; then :
4560  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4561else
4562  with_gnu_ld=no
4563fi
4564
4565ac_prog=ld
4566if test "$GCC" = yes; then
4567  # Check if gcc -print-prog-name=ld gives a path.
4568  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4569$as_echo_n "checking for ld used by $CC... " >&6; }
4570  case $host in
4571  *-*-mingw*)
4572    # gcc leaves a trailing carriage return which upsets mingw
4573    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4574  *)
4575    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4576  esac
4577  case $ac_prog in
4578    # Accept absolute paths.
4579    [\\/]* | ?:[\\/]*)
4580      re_direlt='/[^/][^/]*/\.\./'
4581      # Canonicalize the pathname of ld
4582      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4583      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4584	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4585      done
4586      test -z "$LD" && LD="$ac_prog"
4587      ;;
4588  "")
4589    # If it fails, then pretend we aren't using GCC.
4590    ac_prog=ld
4591    ;;
4592  *)
4593    # If it is relative, then search for the first ld in PATH.
4594    with_gnu_ld=unknown
4595    ;;
4596  esac
4597elif test "$with_gnu_ld" = yes; then
4598  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4599$as_echo_n "checking for GNU ld... " >&6; }
4600else
4601  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4602$as_echo_n "checking for non-GNU ld... " >&6; }
4603fi
4604if ${lt_cv_path_LD+:} false; then :
4605  $as_echo_n "(cached) " >&6
4606else
4607  if test -z "$LD"; then
4608  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4609  for ac_dir in $PATH; do
4610    IFS="$lt_save_ifs"
4611    test -z "$ac_dir" && ac_dir=.
4612    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4613      lt_cv_path_LD="$ac_dir/$ac_prog"
4614      # Check to see if the program is GNU ld.  I'd rather use --version,
4615      # but apparently some variants of GNU ld only accept -v.
4616      # Break only if it was the GNU/non-GNU ld that we prefer.
4617      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4618      *GNU* | *'with BFD'*)
4619	test "$with_gnu_ld" != no && break
4620	;;
4621      *)
4622	test "$with_gnu_ld" != yes && break
4623	;;
4624      esac
4625    fi
4626  done
4627  IFS="$lt_save_ifs"
4628else
4629  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4630fi
4631fi
4632
4633LD="$lt_cv_path_LD"
4634if test -n "$LD"; then
4635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4636$as_echo "$LD" >&6; }
4637else
4638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639$as_echo "no" >&6; }
4640fi
4641test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4643$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4644if ${lt_cv_prog_gnu_ld+:} false; then :
4645  $as_echo_n "(cached) " >&6
4646else
4647  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4648case `$LD -v 2>&1 </dev/null` in
4649*GNU* | *'with BFD'*)
4650  lt_cv_prog_gnu_ld=yes
4651  ;;
4652*)
4653  lt_cv_prog_gnu_ld=no
4654  ;;
4655esac
4656fi
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4658$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4659with_gnu_ld=$lt_cv_prog_gnu_ld
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4670$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4671if ${lt_cv_path_NM+:} false; then :
4672  $as_echo_n "(cached) " >&6
4673else
4674  if test -n "$NM"; then
4675  # Let the user override the test.
4676  lt_cv_path_NM="$NM"
4677else
4678  lt_nm_to_check="${ac_tool_prefix}nm"
4679  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4680    lt_nm_to_check="$lt_nm_to_check nm"
4681  fi
4682  for lt_tmp_nm in $lt_nm_to_check; do
4683    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4684    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4685      IFS="$lt_save_ifs"
4686      test -z "$ac_dir" && ac_dir=.
4687      tmp_nm="$ac_dir/$lt_tmp_nm"
4688      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4689	# Check to see if the nm accepts a BSD-compat flag.
4690	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4691	#   nm: unknown option "B" ignored
4692	# Tru64's nm complains that /dev/null is an invalid object file
4693	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4694	*/dev/null* | *'Invalid file or object type'*)
4695	  lt_cv_path_NM="$tmp_nm -B"
4696	  break
4697	  ;;
4698	*)
4699	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4700	  */dev/null*)
4701	    lt_cv_path_NM="$tmp_nm -p"
4702	    break
4703	    ;;
4704	  *)
4705	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4706	    continue # so that we can try to find one that supports BSD flags
4707	    ;;
4708	  esac
4709	  ;;
4710	esac
4711      fi
4712    done
4713    IFS="$lt_save_ifs"
4714  done
4715  : ${lt_cv_path_NM=no}
4716fi
4717fi
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4719$as_echo "$lt_cv_path_NM" >&6; }
4720if test "$lt_cv_path_NM" != "no"; then
4721  NM="$lt_cv_path_NM"
4722else
4723  # Didn't find any BSD compatible name lister, look for dumpbin.
4724  if test -n "$ac_tool_prefix"; then
4725  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4726  do
4727    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4728set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4730$as_echo_n "checking for $ac_word... " >&6; }
4731if ${ac_cv_prog_DUMPBIN+:} false; then :
4732  $as_echo_n "(cached) " >&6
4733else
4734  if test -n "$DUMPBIN"; then
4735  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4736else
4737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738for as_dir in $PATH
4739do
4740  IFS=$as_save_IFS
4741  test -z "$as_dir" && as_dir=.
4742    for ac_exec_ext in '' $ac_executable_extensions; do
4743  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4744    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4746    break 2
4747  fi
4748done
4749  done
4750IFS=$as_save_IFS
4751
4752fi
4753fi
4754DUMPBIN=$ac_cv_prog_DUMPBIN
4755if test -n "$DUMPBIN"; then
4756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4757$as_echo "$DUMPBIN" >&6; }
4758else
4759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4760$as_echo "no" >&6; }
4761fi
4762
4763
4764    test -n "$DUMPBIN" && break
4765  done
4766fi
4767if test -z "$DUMPBIN"; then
4768  ac_ct_DUMPBIN=$DUMPBIN
4769  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4770do
4771  # Extract the first word of "$ac_prog", so it can be a program name with args.
4772set dummy $ac_prog; ac_word=$2
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774$as_echo_n "checking for $ac_word... " >&6; }
4775if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4776  $as_echo_n "(cached) " >&6
4777else
4778  if test -n "$ac_ct_DUMPBIN"; then
4779  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4780else
4781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782for as_dir in $PATH
4783do
4784  IFS=$as_save_IFS
4785  test -z "$as_dir" && as_dir=.
4786    for ac_exec_ext in '' $ac_executable_extensions; do
4787  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4788    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4789    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790    break 2
4791  fi
4792done
4793  done
4794IFS=$as_save_IFS
4795
4796fi
4797fi
4798ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4799if test -n "$ac_ct_DUMPBIN"; then
4800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4801$as_echo "$ac_ct_DUMPBIN" >&6; }
4802else
4803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804$as_echo "no" >&6; }
4805fi
4806
4807
4808  test -n "$ac_ct_DUMPBIN" && break
4809done
4810
4811  if test "x$ac_ct_DUMPBIN" = x; then
4812    DUMPBIN=":"
4813  else
4814    case $cross_compiling:$ac_tool_warned in
4815yes:)
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4818ac_tool_warned=yes ;;
4819esac
4820    DUMPBIN=$ac_ct_DUMPBIN
4821  fi
4822fi
4823
4824
4825  if test "$DUMPBIN" != ":"; then
4826    NM="$DUMPBIN"
4827  fi
4828fi
4829test -z "$NM" && NM=nm
4830
4831
4832
4833
4834
4835
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4837$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4838if ${lt_cv_nm_interface+:} false; then :
4839  $as_echo_n "(cached) " >&6
4840else
4841  lt_cv_nm_interface="BSD nm"
4842  echo "int some_variable = 0;" > conftest.$ac_ext
4843  (eval echo "\"\$as_me:4843: $ac_compile\"" >&5)
4844  (eval "$ac_compile" 2>conftest.err)
4845  cat conftest.err >&5
4846  (eval echo "\"\$as_me:4846: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4847  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4848  cat conftest.err >&5
4849  (eval echo "\"\$as_me:4849: output\"" >&5)
4850  cat conftest.out >&5
4851  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4852    lt_cv_nm_interface="MS dumpbin"
4853  fi
4854  rm -f conftest*
4855fi
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4857$as_echo "$lt_cv_nm_interface" >&6; }
4858
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4860$as_echo_n "checking whether ln -s works... " >&6; }
4861LN_S=$as_ln_s
4862if test "$LN_S" = "ln -s"; then
4863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4864$as_echo "yes" >&6; }
4865else
4866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4867$as_echo "no, using $LN_S" >&6; }
4868fi
4869
4870# find the maximum length of command line arguments
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4872$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4873if ${lt_cv_sys_max_cmd_len+:} false; then :
4874  $as_echo_n "(cached) " >&6
4875else
4876    i=0
4877  teststring="ABCD"
4878
4879  case $build_os in
4880  msdosdjgpp*)
4881    # On DJGPP, this test can blow up pretty badly due to problems in libc
4882    # (any single argument exceeding 2000 bytes causes a buffer overrun
4883    # during glob expansion).  Even if it were fixed, the result of this
4884    # check would be larger than it should be.
4885    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4886    ;;
4887
4888  gnu*)
4889    # Under GNU Hurd, this test is not required because there is
4890    # no limit to the length of command line arguments.
4891    # Libtool will interpret -1 as no limit whatsoever
4892    lt_cv_sys_max_cmd_len=-1;
4893    ;;
4894
4895  cygwin* | mingw* | cegcc*)
4896    # On Win9x/ME, this test blows up -- it succeeds, but takes
4897    # about 5 minutes as the teststring grows exponentially.
4898    # Worse, since 9x/ME are not pre-emptively multitasking,
4899    # you end up with a "frozen" computer, even though with patience
4900    # the test eventually succeeds (with a max line length of 256k).
4901    # Instead, let's just punt: use the minimum linelength reported by
4902    # all of the supported platforms: 8192 (on NT/2K/XP).
4903    lt_cv_sys_max_cmd_len=8192;
4904    ;;
4905
4906  amigaos*)
4907    # On AmigaOS with pdksh, this test takes hours, literally.
4908    # So we just punt and use a minimum line length of 8192.
4909    lt_cv_sys_max_cmd_len=8192;
4910    ;;
4911
4912  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4913    # This has been around since 386BSD, at least.  Likely further.
4914    if test -x /sbin/sysctl; then
4915      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4916    elif test -x /usr/sbin/sysctl; then
4917      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4918    else
4919      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4920    fi
4921    # And add a safety zone
4922    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4923    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4924    ;;
4925
4926  interix*)
4927    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4928    lt_cv_sys_max_cmd_len=196608
4929    ;;
4930
4931  osf*)
4932    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4933    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4934    # nice to cause kernel panics so lets avoid the loop below.
4935    # First set a reasonable default.
4936    lt_cv_sys_max_cmd_len=16384
4937    #
4938    if test -x /sbin/sysconfig; then
4939      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4940        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4941      esac
4942    fi
4943    ;;
4944  sco3.2v5*)
4945    lt_cv_sys_max_cmd_len=102400
4946    ;;
4947  sysv5* | sco5v6* | sysv4.2uw2*)
4948    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4949    if test -n "$kargmax"; then
4950      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4951    else
4952      lt_cv_sys_max_cmd_len=32768
4953    fi
4954    ;;
4955  *)
4956    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4957    if test -n "$lt_cv_sys_max_cmd_len"; then
4958      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4959      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4960    else
4961      # Make teststring a little bigger before we do anything with it.
4962      # a 1K string should be a reasonable start.
4963      for i in 1 2 3 4 5 6 7 8 ; do
4964        teststring=$teststring$teststring
4965      done
4966      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4967      # If test is not a shell built-in, we'll probably end up computing a
4968      # maximum length that is only half of the actual maximum length, but
4969      # we can't tell.
4970      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4971	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4972	      test $i != 17 # 1/2 MB should be enough
4973      do
4974        i=`expr $i + 1`
4975        teststring=$teststring$teststring
4976      done
4977      # Only check the string length outside the loop.
4978      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4979      teststring=
4980      # Add a significant safety factor because C++ compilers can tack on
4981      # massive amounts of additional arguments before passing them to the
4982      # linker.  It appears as though 1/2 is a usable value.
4983      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4984    fi
4985    ;;
4986  esac
4987
4988fi
4989
4990if test -n $lt_cv_sys_max_cmd_len ; then
4991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4992$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4993else
4994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4995$as_echo "none" >&6; }
4996fi
4997max_cmd_len=$lt_cv_sys_max_cmd_len
4998
4999
5000
5001
5002
5003
5004: ${CP="cp -f"}
5005: ${MV="mv -f"}
5006: ${RM="rm -f"}
5007
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5009$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5010# Try some XSI features
5011xsi_shell=no
5012( _lt_dummy="a/b/c"
5013  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5014      = c,a/b,, \
5015    && eval 'test $(( 1 + 1 )) -eq 2 \
5016    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5017  && xsi_shell=yes
5018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5019$as_echo "$xsi_shell" >&6; }
5020
5021
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5023$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5024lt_shell_append=no
5025( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5026    >/dev/null 2>&1 \
5027  && lt_shell_append=yes
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5029$as_echo "$lt_shell_append" >&6; }
5030
5031
5032if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5033  lt_unset=unset
5034else
5035  lt_unset=false
5036fi
5037
5038
5039
5040
5041
5042# test EBCDIC or ASCII
5043case `echo X|tr X '\101'` in
5044 A) # ASCII based system
5045    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5046  lt_SP2NL='tr \040 \012'
5047  lt_NL2SP='tr \015\012 \040\040'
5048  ;;
5049 *) # EBCDIC based system
5050  lt_SP2NL='tr \100 \n'
5051  lt_NL2SP='tr \r\n \100\100'
5052  ;;
5053esac
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5064$as_echo_n "checking for $LD option to reload object files... " >&6; }
5065if ${lt_cv_ld_reload_flag+:} false; then :
5066  $as_echo_n "(cached) " >&6
5067else
5068  lt_cv_ld_reload_flag='-r'
5069fi
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5071$as_echo "$lt_cv_ld_reload_flag" >&6; }
5072reload_flag=$lt_cv_ld_reload_flag
5073case $reload_flag in
5074"" | " "*) ;;
5075*) reload_flag=" $reload_flag" ;;
5076esac
5077reload_cmds='$LD$reload_flag -o $output$reload_objs'
5078case $host_os in
5079  darwin*)
5080    if test "$GCC" = yes; then
5081      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5082    else
5083      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5084    fi
5085    ;;
5086esac
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096if test -n "$ac_tool_prefix"; then
5097  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5098set dummy ${ac_tool_prefix}objdump; ac_word=$2
5099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5100$as_echo_n "checking for $ac_word... " >&6; }
5101if ${ac_cv_prog_OBJDUMP+:} false; then :
5102  $as_echo_n "(cached) " >&6
5103else
5104  if test -n "$OBJDUMP"; then
5105  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5106else
5107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108for as_dir in $PATH
5109do
5110  IFS=$as_save_IFS
5111  test -z "$as_dir" && as_dir=.
5112    for ac_exec_ext in '' $ac_executable_extensions; do
5113  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5114    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5115    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5116    break 2
5117  fi
5118done
5119  done
5120IFS=$as_save_IFS
5121
5122fi
5123fi
5124OBJDUMP=$ac_cv_prog_OBJDUMP
5125if test -n "$OBJDUMP"; then
5126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5127$as_echo "$OBJDUMP" >&6; }
5128else
5129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130$as_echo "no" >&6; }
5131fi
5132
5133
5134fi
5135if test -z "$ac_cv_prog_OBJDUMP"; then
5136  ac_ct_OBJDUMP=$OBJDUMP
5137  # Extract the first word of "objdump", so it can be a program name with args.
5138set dummy objdump; ac_word=$2
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5140$as_echo_n "checking for $ac_word... " >&6; }
5141if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5142  $as_echo_n "(cached) " >&6
5143else
5144  if test -n "$ac_ct_OBJDUMP"; then
5145  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5146else
5147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148for as_dir in $PATH
5149do
5150  IFS=$as_save_IFS
5151  test -z "$as_dir" && as_dir=.
5152    for ac_exec_ext in '' $ac_executable_extensions; do
5153  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5154    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5156    break 2
5157  fi
5158done
5159  done
5160IFS=$as_save_IFS
5161
5162fi
5163fi
5164ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5165if test -n "$ac_ct_OBJDUMP"; then
5166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5167$as_echo "$ac_ct_OBJDUMP" >&6; }
5168else
5169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170$as_echo "no" >&6; }
5171fi
5172
5173  if test "x$ac_ct_OBJDUMP" = x; then
5174    OBJDUMP="false"
5175  else
5176    case $cross_compiling:$ac_tool_warned in
5177yes:)
5178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5180ac_tool_warned=yes ;;
5181esac
5182    OBJDUMP=$ac_ct_OBJDUMP
5183  fi
5184else
5185  OBJDUMP="$ac_cv_prog_OBJDUMP"
5186fi
5187
5188test -z "$OBJDUMP" && OBJDUMP=objdump
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5199$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5200if ${lt_cv_deplibs_check_method+:} false; then :
5201  $as_echo_n "(cached) " >&6
5202else
5203  lt_cv_file_magic_cmd='$MAGIC_CMD'
5204lt_cv_file_magic_test_file=
5205lt_cv_deplibs_check_method='unknown'
5206# Need to set the preceding variable on all platforms that support
5207# interlibrary dependencies.
5208# 'none' -- dependencies not supported.
5209# `unknown' -- same as none, but documents that we really don't know.
5210# 'pass_all' -- all dependencies passed with no checks.
5211# 'test_compile' -- check by making test program.
5212# 'file_magic [[regex]]' -- check by looking for files in library path
5213# which responds to the $file_magic_cmd with a given extended regex.
5214# If you have `file' or equivalent on your system and you're not sure
5215# whether `pass_all' will *always* work, you probably want this one.
5216
5217case $host_os in
5218aix[4-9]*)
5219  lt_cv_deplibs_check_method=pass_all
5220  ;;
5221
5222beos*)
5223  lt_cv_deplibs_check_method=pass_all
5224  ;;
5225
5226bsdi[45]*)
5227  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5228  lt_cv_file_magic_cmd='/usr/bin/file -L'
5229  lt_cv_file_magic_test_file=/shlib/libc.so
5230  ;;
5231
5232cygwin*)
5233  # func_win32_libid is a shell function defined in ltmain.sh
5234  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5235  lt_cv_file_magic_cmd='func_win32_libid'
5236  ;;
5237
5238mingw* | pw32*)
5239  # Base MSYS/MinGW do not provide the 'file' command needed by
5240  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5241  # unless we find 'file', for example because we are cross-compiling.
5242  if ( file / ) >/dev/null 2>&1; then
5243    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5244    lt_cv_file_magic_cmd='func_win32_libid'
5245  else
5246    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5247    lt_cv_file_magic_cmd='$OBJDUMP -f'
5248  fi
5249  ;;
5250
5251cegcc)
5252  # use the weaker test based on 'objdump'. See mingw*.
5253  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5254  lt_cv_file_magic_cmd='$OBJDUMP -f'
5255  ;;
5256
5257darwin* | rhapsody*)
5258  lt_cv_deplibs_check_method=pass_all
5259  ;;
5260
5261freebsd* | dragonfly*)
5262  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5263    case $host_cpu in
5264    i*86 )
5265      # Not sure whether the presence of OpenBSD here was a mistake.
5266      # Let's accept both of them until this is cleared up.
5267      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5268      lt_cv_file_magic_cmd=/usr/bin/file
5269      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5270      ;;
5271    esac
5272  else
5273    lt_cv_deplibs_check_method=pass_all
5274  fi
5275  ;;
5276
5277gnu*)
5278  lt_cv_deplibs_check_method=pass_all
5279  ;;
5280
5281hpux10.20* | hpux11*)
5282  lt_cv_file_magic_cmd=/usr/bin/file
5283  case $host_cpu in
5284  ia64*)
5285    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5286    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5287    ;;
5288  hppa*64*)
5289    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]'
5290    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5291    ;;
5292  *)
5293    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5294    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5295    ;;
5296  esac
5297  ;;
5298
5299interix[3-9]*)
5300  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5301  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5302  ;;
5303
5304irix5* | irix6* | nonstopux*)
5305  case $LD in
5306  *-32|*"-32 ") libmagic=32-bit;;
5307  *-n32|*"-n32 ") libmagic=N32;;
5308  *-64|*"-64 ") libmagic=64-bit;;
5309  *) libmagic=never-match;;
5310  esac
5311  lt_cv_deplibs_check_method=pass_all
5312  ;;
5313
5314# This must be Linux ELF.
5315linux* | k*bsd*-gnu)
5316  lt_cv_deplibs_check_method=pass_all
5317  ;;
5318
5319netbsd*)
5320  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5321    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5322  else
5323    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5324  fi
5325  ;;
5326
5327newos6*)
5328  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5329  lt_cv_file_magic_cmd=/usr/bin/file
5330  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5331  ;;
5332
5333*nto* | *qnx*)
5334  lt_cv_deplibs_check_method=pass_all
5335  ;;
5336
5337openbsd*)
5338  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5339    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5340  else
5341    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5342  fi
5343  ;;
5344
5345osf3* | osf4* | osf5*)
5346  lt_cv_deplibs_check_method=pass_all
5347  ;;
5348
5349rdos*)
5350  lt_cv_deplibs_check_method=pass_all
5351  ;;
5352
5353solaris*)
5354  lt_cv_deplibs_check_method=pass_all
5355  ;;
5356
5357sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5358  lt_cv_deplibs_check_method=pass_all
5359  ;;
5360
5361sysv4 | sysv4.3*)
5362  case $host_vendor in
5363  motorola)
5364    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]'
5365    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5366    ;;
5367  ncr)
5368    lt_cv_deplibs_check_method=pass_all
5369    ;;
5370  sequent)
5371    lt_cv_file_magic_cmd='/bin/file'
5372    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5373    ;;
5374  sni)
5375    lt_cv_file_magic_cmd='/bin/file'
5376    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5377    lt_cv_file_magic_test_file=/lib/libc.so
5378    ;;
5379  siemens)
5380    lt_cv_deplibs_check_method=pass_all
5381    ;;
5382  pc)
5383    lt_cv_deplibs_check_method=pass_all
5384    ;;
5385  esac
5386  ;;
5387
5388tpf*)
5389  lt_cv_deplibs_check_method=pass_all
5390  ;;
5391esac
5392
5393fi
5394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5395$as_echo "$lt_cv_deplibs_check_method" >&6; }
5396file_magic_cmd=$lt_cv_file_magic_cmd
5397deplibs_check_method=$lt_cv_deplibs_check_method
5398test -z "$deplibs_check_method" && deplibs_check_method=unknown
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411if test -n "$ac_tool_prefix"; then
5412  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5413set dummy ${ac_tool_prefix}ar; ac_word=$2
5414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415$as_echo_n "checking for $ac_word... " >&6; }
5416if ${ac_cv_prog_AR+:} false; then :
5417  $as_echo_n "(cached) " >&6
5418else
5419  if test -n "$AR"; then
5420  ac_cv_prog_AR="$AR" # Let the user override the test.
5421else
5422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423for as_dir in $PATH
5424do
5425  IFS=$as_save_IFS
5426  test -z "$as_dir" && as_dir=.
5427    for ac_exec_ext in '' $ac_executable_extensions; do
5428  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5429    ac_cv_prog_AR="${ac_tool_prefix}ar"
5430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5431    break 2
5432  fi
5433done
5434  done
5435IFS=$as_save_IFS
5436
5437fi
5438fi
5439AR=$ac_cv_prog_AR
5440if test -n "$AR"; then
5441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5442$as_echo "$AR" >&6; }
5443else
5444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445$as_echo "no" >&6; }
5446fi
5447
5448
5449fi
5450if test -z "$ac_cv_prog_AR"; then
5451  ac_ct_AR=$AR
5452  # Extract the first word of "ar", so it can be a program name with args.
5453set dummy ar; ac_word=$2
5454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455$as_echo_n "checking for $ac_word... " >&6; }
5456if ${ac_cv_prog_ac_ct_AR+:} false; then :
5457  $as_echo_n "(cached) " >&6
5458else
5459  if test -n "$ac_ct_AR"; then
5460  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5461else
5462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463for as_dir in $PATH
5464do
5465  IFS=$as_save_IFS
5466  test -z "$as_dir" && as_dir=.
5467    for ac_exec_ext in '' $ac_executable_extensions; do
5468  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5469    ac_cv_prog_ac_ct_AR="ar"
5470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471    break 2
5472  fi
5473done
5474  done
5475IFS=$as_save_IFS
5476
5477fi
5478fi
5479ac_ct_AR=$ac_cv_prog_ac_ct_AR
5480if test -n "$ac_ct_AR"; then
5481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5482$as_echo "$ac_ct_AR" >&6; }
5483else
5484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485$as_echo "no" >&6; }
5486fi
5487
5488  if test "x$ac_ct_AR" = x; then
5489    AR="false"
5490  else
5491    case $cross_compiling:$ac_tool_warned in
5492yes:)
5493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5495ac_tool_warned=yes ;;
5496esac
5497    AR=$ac_ct_AR
5498  fi
5499else
5500  AR="$ac_cv_prog_AR"
5501fi
5502
5503test -z "$AR" && AR=ar
5504test -z "$AR_FLAGS" && AR_FLAGS=cru
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516if test -n "$ac_tool_prefix"; then
5517  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5518set dummy ${ac_tool_prefix}strip; ac_word=$2
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520$as_echo_n "checking for $ac_word... " >&6; }
5521if ${ac_cv_prog_STRIP+:} false; then :
5522  $as_echo_n "(cached) " >&6
5523else
5524  if test -n "$STRIP"; then
5525  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5526else
5527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528for as_dir in $PATH
5529do
5530  IFS=$as_save_IFS
5531  test -z "$as_dir" && as_dir=.
5532    for ac_exec_ext in '' $ac_executable_extensions; do
5533  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536    break 2
5537  fi
5538done
5539  done
5540IFS=$as_save_IFS
5541
5542fi
5543fi
5544STRIP=$ac_cv_prog_STRIP
5545if test -n "$STRIP"; then
5546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5547$as_echo "$STRIP" >&6; }
5548else
5549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550$as_echo "no" >&6; }
5551fi
5552
5553
5554fi
5555if test -z "$ac_cv_prog_STRIP"; then
5556  ac_ct_STRIP=$STRIP
5557  # Extract the first word of "strip", so it can be a program name with args.
5558set dummy strip; ac_word=$2
5559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5560$as_echo_n "checking for $ac_word... " >&6; }
5561if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5562  $as_echo_n "(cached) " >&6
5563else
5564  if test -n "$ac_ct_STRIP"; then
5565  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5566else
5567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568for as_dir in $PATH
5569do
5570  IFS=$as_save_IFS
5571  test -z "$as_dir" && as_dir=.
5572    for ac_exec_ext in '' $ac_executable_extensions; do
5573  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5574    ac_cv_prog_ac_ct_STRIP="strip"
5575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5576    break 2
5577  fi
5578done
5579  done
5580IFS=$as_save_IFS
5581
5582fi
5583fi
5584ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5585if test -n "$ac_ct_STRIP"; then
5586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5587$as_echo "$ac_ct_STRIP" >&6; }
5588else
5589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5590$as_echo "no" >&6; }
5591fi
5592
5593  if test "x$ac_ct_STRIP" = x; then
5594    STRIP=":"
5595  else
5596    case $cross_compiling:$ac_tool_warned in
5597yes:)
5598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5600ac_tool_warned=yes ;;
5601esac
5602    STRIP=$ac_ct_STRIP
5603  fi
5604else
5605  STRIP="$ac_cv_prog_STRIP"
5606fi
5607
5608test -z "$STRIP" && STRIP=:
5609
5610
5611
5612
5613
5614
5615if test -n "$ac_tool_prefix"; then
5616  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5617set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619$as_echo_n "checking for $ac_word... " >&6; }
5620if ${ac_cv_prog_RANLIB+:} false; then :
5621  $as_echo_n "(cached) " >&6
5622else
5623  if test -n "$RANLIB"; then
5624  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5625else
5626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627for as_dir in $PATH
5628do
5629  IFS=$as_save_IFS
5630  test -z "$as_dir" && as_dir=.
5631    for ac_exec_ext in '' $ac_executable_extensions; do
5632  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5634    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635    break 2
5636  fi
5637done
5638  done
5639IFS=$as_save_IFS
5640
5641fi
5642fi
5643RANLIB=$ac_cv_prog_RANLIB
5644if test -n "$RANLIB"; then
5645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5646$as_echo "$RANLIB" >&6; }
5647else
5648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649$as_echo "no" >&6; }
5650fi
5651
5652
5653fi
5654if test -z "$ac_cv_prog_RANLIB"; then
5655  ac_ct_RANLIB=$RANLIB
5656  # Extract the first word of "ranlib", so it can be a program name with args.
5657set dummy ranlib; ac_word=$2
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659$as_echo_n "checking for $ac_word... " >&6; }
5660if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5661  $as_echo_n "(cached) " >&6
5662else
5663  if test -n "$ac_ct_RANLIB"; then
5664  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5665else
5666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667for as_dir in $PATH
5668do
5669  IFS=$as_save_IFS
5670  test -z "$as_dir" && as_dir=.
5671    for ac_exec_ext in '' $ac_executable_extensions; do
5672  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673    ac_cv_prog_ac_ct_RANLIB="ranlib"
5674    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675    break 2
5676  fi
5677done
5678  done
5679IFS=$as_save_IFS
5680
5681fi
5682fi
5683ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5684if test -n "$ac_ct_RANLIB"; then
5685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5686$as_echo "$ac_ct_RANLIB" >&6; }
5687else
5688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689$as_echo "no" >&6; }
5690fi
5691
5692  if test "x$ac_ct_RANLIB" = x; then
5693    RANLIB=":"
5694  else
5695    case $cross_compiling:$ac_tool_warned in
5696yes:)
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5699ac_tool_warned=yes ;;
5700esac
5701    RANLIB=$ac_ct_RANLIB
5702  fi
5703else
5704  RANLIB="$ac_cv_prog_RANLIB"
5705fi
5706
5707test -z "$RANLIB" && RANLIB=:
5708
5709
5710
5711
5712
5713
5714# Determine commands to create old-style static archives.
5715old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5716old_postinstall_cmds='chmod 644 $oldlib'
5717old_postuninstall_cmds=
5718
5719if test -n "$RANLIB"; then
5720  case $host_os in
5721  openbsd*)
5722    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5723    ;;
5724  *)
5725    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5726    ;;
5727  esac
5728  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5729fi
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764# If no C compiler was specified, use CC.
5765LTCC=${LTCC-"$CC"}
5766
5767# If no C compiler flags were specified, use CFLAGS.
5768LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5769
5770# Allow CC to be a program name with arguments.
5771compiler=$CC
5772
5773
5774# Check for command to grab the raw symbol name followed by C symbol from nm.
5775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5776$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5777if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5778  $as_echo_n "(cached) " >&6
5779else
5780
5781# These are sane defaults that work on at least a few old systems.
5782# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5783
5784# Character class describing NM global symbol codes.
5785symcode='[BCDEGRST]'
5786
5787# Regexp to match symbols that can be accessed directly from C.
5788sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5789
5790# Define system-specific variables.
5791case $host_os in
5792aix*)
5793  symcode='[BCDT]'
5794  ;;
5795cygwin* | mingw* | pw32* | cegcc*)
5796  symcode='[ABCDGISTW]'
5797  ;;
5798hpux*)
5799  if test "$host_cpu" = ia64; then
5800    symcode='[ABCDEGRST]'
5801  fi
5802  ;;
5803irix* | nonstopux*)
5804  symcode='[BCDEGRST]'
5805  ;;
5806osf*)
5807  symcode='[BCDEGQRST]'
5808  ;;
5809solaris*)
5810  symcode='[BDRT]'
5811  ;;
5812sco3.2v5*)
5813  symcode='[DT]'
5814  ;;
5815sysv4.2uw2*)
5816  symcode='[DT]'
5817  ;;
5818sysv5* | sco5v6* | unixware* | OpenUNIX*)
5819  symcode='[ABDT]'
5820  ;;
5821sysv4)
5822  symcode='[DFNSTU]'
5823  ;;
5824esac
5825
5826# If we're using GNU nm, then use its standard symbol codes.
5827case `$NM -V 2>&1` in
5828*GNU* | *'with BFD'*)
5829  symcode='[ABCDGIRSTW]' ;;
5830esac
5831
5832# Transform an extracted symbol line into a proper C declaration.
5833# Some systems (esp. on ia64) link data and code symbols differently,
5834# so use this general approach.
5835lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5836
5837# Transform an extracted symbol line into symbol name and symbol address
5838lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5839lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5840
5841# Handle CRLF in mingw tool chain
5842opt_cr=
5843case $build_os in
5844mingw*)
5845  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5846  ;;
5847esac
5848
5849# Try without a prefix underscore, then with it.
5850for ac_symprfx in "" "_"; do
5851
5852  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5853  symxfrm="\\1 $ac_symprfx\\2 \\2"
5854
5855  # Write the raw and C identifiers.
5856  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5857    # Fake it for dumpbin and say T for any non-static function
5858    # and D for any global variable.
5859    # Also find C++ and __fastcall symbols from MSVC++,
5860    # which start with @ or ?.
5861    lt_cv_sys_global_symbol_pipe="$AWK '"\
5862"     {last_section=section; section=\$ 3};"\
5863"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5864"     \$ 0!~/External *\|/{next};"\
5865"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5866"     {if(hide[section]) next};"\
5867"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5868"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5869"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5870"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5871"     ' prfx=^$ac_symprfx"
5872  else
5873    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5874  fi
5875
5876  # Check to see that the pipe works correctly.
5877  pipe_works=no
5878
5879  rm -f conftest*
5880  cat > conftest.$ac_ext <<_LT_EOF
5881#ifdef __cplusplus
5882extern "C" {
5883#endif
5884char nm_test_var;
5885void nm_test_func(void);
5886void nm_test_func(void){}
5887#ifdef __cplusplus
5888}
5889#endif
5890int main(){nm_test_var='a';nm_test_func();return(0);}
5891_LT_EOF
5892
5893  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5894  (eval $ac_compile) 2>&5
5895  ac_status=$?
5896  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5897  test $ac_status = 0; }; then
5898    # Now try to grab the symbols.
5899    nlist=conftest.nm
5900    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5901  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5902  ac_status=$?
5903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5904  test $ac_status = 0; } && test -s "$nlist"; then
5905      # Try sorting and uniquifying the output.
5906      if sort "$nlist" | uniq > "$nlist"T; then
5907	mv -f "$nlist"T "$nlist"
5908      else
5909	rm -f "$nlist"T
5910      fi
5911
5912      # Make sure that we snagged all the symbols we need.
5913      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5914	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5915	  cat <<_LT_EOF > conftest.$ac_ext
5916#ifdef __cplusplus
5917extern "C" {
5918#endif
5919
5920_LT_EOF
5921	  # Now generate the symbol file.
5922	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5923
5924	  cat <<_LT_EOF >> conftest.$ac_ext
5925
5926/* The mapping between symbol names and symbols.  */
5927const struct {
5928  const char *name;
5929  void       *address;
5930}
5931lt__PROGRAM__LTX_preloaded_symbols[] =
5932{
5933  { "@PROGRAM@", (void *) 0 },
5934_LT_EOF
5935	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5936	  cat <<\_LT_EOF >> conftest.$ac_ext
5937  {0, (void *) 0}
5938};
5939
5940/* This works around a problem in FreeBSD linker */
5941#ifdef FREEBSD_WORKAROUND
5942static const void *lt_preloaded_setup() {
5943  return lt__PROGRAM__LTX_preloaded_symbols;
5944}
5945#endif
5946
5947#ifdef __cplusplus
5948}
5949#endif
5950_LT_EOF
5951	  # Now try linking the two files.
5952	  mv conftest.$ac_objext conftstm.$ac_objext
5953	  lt_save_LIBS="$LIBS"
5954	  lt_save_CFLAGS="$CFLAGS"
5955	  LIBS="conftstm.$ac_objext"
5956	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5957	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5958  (eval $ac_link) 2>&5
5959  ac_status=$?
5960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5961  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5962	    pipe_works=yes
5963	  fi
5964	  LIBS="$lt_save_LIBS"
5965	  CFLAGS="$lt_save_CFLAGS"
5966	else
5967	  echo "cannot find nm_test_func in $nlist" >&5
5968	fi
5969      else
5970	echo "cannot find nm_test_var in $nlist" >&5
5971      fi
5972    else
5973      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5974    fi
5975  else
5976    echo "$progname: failed program was:" >&5
5977    cat conftest.$ac_ext >&5
5978  fi
5979  rm -rf conftest* conftst*
5980
5981  # Do not use the global_symbol_pipe unless it works.
5982  if test "$pipe_works" = yes; then
5983    break
5984  else
5985    lt_cv_sys_global_symbol_pipe=
5986  fi
5987done
5988
5989fi
5990
5991if test -z "$lt_cv_sys_global_symbol_pipe"; then
5992  lt_cv_sys_global_symbol_to_cdecl=
5993fi
5994if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5996$as_echo "failed" >&6; }
5997else
5998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5999$as_echo "ok" >&6; }
6000fi
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024# Check whether --enable-libtool-lock was given.
6025if test "${enable_libtool_lock+set}" = set; then :
6026  enableval=$enable_libtool_lock;
6027fi
6028
6029test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6030
6031# Some flags need to be propagated to the compiler or linker for good
6032# libtool support.
6033case $host in
6034ia64-*-hpux*)
6035  # Find out which ABI we are using.
6036  echo 'int i;' > conftest.$ac_ext
6037  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6038  (eval $ac_compile) 2>&5
6039  ac_status=$?
6040  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6041  test $ac_status = 0; }; then
6042    case `/usr/bin/file conftest.$ac_objext` in
6043      *ELF-32*)
6044	HPUX_IA64_MODE="32"
6045	;;
6046      *ELF-64*)
6047	HPUX_IA64_MODE="64"
6048	;;
6049    esac
6050  fi
6051  rm -rf conftest*
6052  ;;
6053*-*-irix6*)
6054  # Find out which ABI we are using.
6055  echo '#line 6055 "configure"' > conftest.$ac_ext
6056  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6057  (eval $ac_compile) 2>&5
6058  ac_status=$?
6059  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6060  test $ac_status = 0; }; then
6061    if test "$lt_cv_prog_gnu_ld" = yes; then
6062      case `/usr/bin/file conftest.$ac_objext` in
6063	*32-bit*)
6064	  LD="${LD-ld} -melf32bsmip"
6065	  ;;
6066	*N32*)
6067	  LD="${LD-ld} -melf32bmipn32"
6068	  ;;
6069	*64-bit*)
6070	  LD="${LD-ld} -melf64bmip"
6071	;;
6072      esac
6073    else
6074      case `/usr/bin/file conftest.$ac_objext` in
6075	*32-bit*)
6076	  LD="${LD-ld} -32"
6077	  ;;
6078	*N32*)
6079	  LD="${LD-ld} -n32"
6080	  ;;
6081	*64-bit*)
6082	  LD="${LD-ld} -64"
6083	  ;;
6084      esac
6085    fi
6086  fi
6087  rm -rf conftest*
6088  ;;
6089
6090x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6091s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6092  # Find out which ABI we are using.
6093  echo 'int i;' > conftest.$ac_ext
6094  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6095  (eval $ac_compile) 2>&5
6096  ac_status=$?
6097  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6098  test $ac_status = 0; }; then
6099    case `/usr/bin/file conftest.o` in
6100      *32-bit*)
6101	case $host in
6102	  x86_64-*kfreebsd*-gnu)
6103	    LD="${LD-ld} -m elf_i386_fbsd"
6104	    ;;
6105	  x86_64-*linux*)
6106	    LD="${LD-ld} -m elf_i386"
6107	    ;;
6108	  ppc64-*linux*|powerpc64-*linux*)
6109	    LD="${LD-ld} -m elf32ppclinux"
6110	    ;;
6111	  s390x-*linux*)
6112	    LD="${LD-ld} -m elf_s390"
6113	    ;;
6114	  sparc64-*linux*)
6115	    LD="${LD-ld} -m elf32_sparc"
6116	    ;;
6117	esac
6118	;;
6119      *64-bit*)
6120	case $host in
6121	  x86_64-*kfreebsd*-gnu)
6122	    LD="${LD-ld} -m elf_x86_64_fbsd"
6123	    ;;
6124	  x86_64-*linux*)
6125	    LD="${LD-ld} -m elf_x86_64"
6126	    ;;
6127	  ppc*-*linux*|powerpc*-*linux*)
6128	    LD="${LD-ld} -m elf64ppc"
6129	    ;;
6130	  s390*-*linux*|s390*-*tpf*)
6131	    LD="${LD-ld} -m elf64_s390"
6132	    ;;
6133	  sparc*-*linux*)
6134	    LD="${LD-ld} -m elf64_sparc"
6135	    ;;
6136	esac
6137	;;
6138    esac
6139  fi
6140  rm -rf conftest*
6141  ;;
6142
6143*-*-sco3.2v5*)
6144  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6145  SAVE_CFLAGS="$CFLAGS"
6146  CFLAGS="$CFLAGS -belf"
6147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6148$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6149if ${lt_cv_cc_needs_belf+:} false; then :
6150  $as_echo_n "(cached) " >&6
6151else
6152  ac_ext=c
6153ac_cpp='$CPP $CPPFLAGS'
6154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6156ac_compiler_gnu=$ac_cv_c_compiler_gnu
6157
6158     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6159/* end confdefs.h.  */
6160
6161int
6162main ()
6163{
6164
6165  ;
6166  return 0;
6167}
6168_ACEOF
6169if ac_fn_c_try_link "$LINENO"; then :
6170  lt_cv_cc_needs_belf=yes
6171else
6172  lt_cv_cc_needs_belf=no
6173fi
6174rm -f core conftest.err conftest.$ac_objext \
6175    conftest$ac_exeext conftest.$ac_ext
6176     ac_ext=c
6177ac_cpp='$CPP $CPPFLAGS'
6178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6180ac_compiler_gnu=$ac_cv_c_compiler_gnu
6181
6182fi
6183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6184$as_echo "$lt_cv_cc_needs_belf" >&6; }
6185  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6186    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6187    CFLAGS="$SAVE_CFLAGS"
6188  fi
6189  ;;
6190sparc*-*solaris*)
6191  # Find out which ABI we are using.
6192  echo 'int i;' > conftest.$ac_ext
6193  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6194  (eval $ac_compile) 2>&5
6195  ac_status=$?
6196  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6197  test $ac_status = 0; }; then
6198    case `/usr/bin/file conftest.o` in
6199    *64-bit*)
6200      case $lt_cv_prog_gnu_ld in
6201      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6202      *)
6203	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6204	  LD="${LD-ld} -64"
6205	fi
6206	;;
6207      esac
6208      ;;
6209    esac
6210  fi
6211  rm -rf conftest*
6212  ;;
6213esac
6214
6215need_locks="$enable_libtool_lock"
6216
6217
6218  case $host_os in
6219    rhapsody* | darwin*)
6220    if test -n "$ac_tool_prefix"; then
6221  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6222set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224$as_echo_n "checking for $ac_word... " >&6; }
6225if ${ac_cv_prog_DSYMUTIL+:} false; then :
6226  $as_echo_n "(cached) " >&6
6227else
6228  if test -n "$DSYMUTIL"; then
6229  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6230else
6231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232for as_dir in $PATH
6233do
6234  IFS=$as_save_IFS
6235  test -z "$as_dir" && as_dir=.
6236    for ac_exec_ext in '' $ac_executable_extensions; do
6237  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6238    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6239    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240    break 2
6241  fi
6242done
6243  done
6244IFS=$as_save_IFS
6245
6246fi
6247fi
6248DSYMUTIL=$ac_cv_prog_DSYMUTIL
6249if test -n "$DSYMUTIL"; then
6250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6251$as_echo "$DSYMUTIL" >&6; }
6252else
6253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254$as_echo "no" >&6; }
6255fi
6256
6257
6258fi
6259if test -z "$ac_cv_prog_DSYMUTIL"; then
6260  ac_ct_DSYMUTIL=$DSYMUTIL
6261  # Extract the first word of "dsymutil", so it can be a program name with args.
6262set dummy dsymutil; ac_word=$2
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6264$as_echo_n "checking for $ac_word... " >&6; }
6265if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6266  $as_echo_n "(cached) " >&6
6267else
6268  if test -n "$ac_ct_DSYMUTIL"; then
6269  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6270else
6271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272for as_dir in $PATH
6273do
6274  IFS=$as_save_IFS
6275  test -z "$as_dir" && as_dir=.
6276    for ac_exec_ext in '' $ac_executable_extensions; do
6277  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6278    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6280    break 2
6281  fi
6282done
6283  done
6284IFS=$as_save_IFS
6285
6286fi
6287fi
6288ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6289if test -n "$ac_ct_DSYMUTIL"; then
6290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6291$as_echo "$ac_ct_DSYMUTIL" >&6; }
6292else
6293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294$as_echo "no" >&6; }
6295fi
6296
6297  if test "x$ac_ct_DSYMUTIL" = x; then
6298    DSYMUTIL=":"
6299  else
6300    case $cross_compiling:$ac_tool_warned in
6301yes:)
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6304ac_tool_warned=yes ;;
6305esac
6306    DSYMUTIL=$ac_ct_DSYMUTIL
6307  fi
6308else
6309  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6310fi
6311
6312    if test -n "$ac_tool_prefix"; then
6313  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6314set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6316$as_echo_n "checking for $ac_word... " >&6; }
6317if ${ac_cv_prog_NMEDIT+:} false; then :
6318  $as_echo_n "(cached) " >&6
6319else
6320  if test -n "$NMEDIT"; then
6321  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6322else
6323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324for as_dir in $PATH
6325do
6326  IFS=$as_save_IFS
6327  test -z "$as_dir" && as_dir=.
6328    for ac_exec_ext in '' $ac_executable_extensions; do
6329  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6330    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6331    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6332    break 2
6333  fi
6334done
6335  done
6336IFS=$as_save_IFS
6337
6338fi
6339fi
6340NMEDIT=$ac_cv_prog_NMEDIT
6341if test -n "$NMEDIT"; then
6342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6343$as_echo "$NMEDIT" >&6; }
6344else
6345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346$as_echo "no" >&6; }
6347fi
6348
6349
6350fi
6351if test -z "$ac_cv_prog_NMEDIT"; then
6352  ac_ct_NMEDIT=$NMEDIT
6353  # Extract the first word of "nmedit", so it can be a program name with args.
6354set dummy nmedit; ac_word=$2
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356$as_echo_n "checking for $ac_word... " >&6; }
6357if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6358  $as_echo_n "(cached) " >&6
6359else
6360  if test -n "$ac_ct_NMEDIT"; then
6361  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6362else
6363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364for as_dir in $PATH
6365do
6366  IFS=$as_save_IFS
6367  test -z "$as_dir" && as_dir=.
6368    for ac_exec_ext in '' $ac_executable_extensions; do
6369  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6370    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372    break 2
6373  fi
6374done
6375  done
6376IFS=$as_save_IFS
6377
6378fi
6379fi
6380ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6381if test -n "$ac_ct_NMEDIT"; then
6382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6383$as_echo "$ac_ct_NMEDIT" >&6; }
6384else
6385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386$as_echo "no" >&6; }
6387fi
6388
6389  if test "x$ac_ct_NMEDIT" = x; then
6390    NMEDIT=":"
6391  else
6392    case $cross_compiling:$ac_tool_warned in
6393yes:)
6394{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6396ac_tool_warned=yes ;;
6397esac
6398    NMEDIT=$ac_ct_NMEDIT
6399  fi
6400else
6401  NMEDIT="$ac_cv_prog_NMEDIT"
6402fi
6403
6404    if test -n "$ac_tool_prefix"; then
6405  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6406set dummy ${ac_tool_prefix}lipo; ac_word=$2
6407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6408$as_echo_n "checking for $ac_word... " >&6; }
6409if ${ac_cv_prog_LIPO+:} false; then :
6410  $as_echo_n "(cached) " >&6
6411else
6412  if test -n "$LIPO"; then
6413  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6414else
6415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416for as_dir in $PATH
6417do
6418  IFS=$as_save_IFS
6419  test -z "$as_dir" && as_dir=.
6420    for ac_exec_ext in '' $ac_executable_extensions; do
6421  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6422    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6423    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424    break 2
6425  fi
6426done
6427  done
6428IFS=$as_save_IFS
6429
6430fi
6431fi
6432LIPO=$ac_cv_prog_LIPO
6433if test -n "$LIPO"; then
6434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6435$as_echo "$LIPO" >&6; }
6436else
6437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438$as_echo "no" >&6; }
6439fi
6440
6441
6442fi
6443if test -z "$ac_cv_prog_LIPO"; then
6444  ac_ct_LIPO=$LIPO
6445  # Extract the first word of "lipo", so it can be a program name with args.
6446set dummy lipo; ac_word=$2
6447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448$as_echo_n "checking for $ac_word... " >&6; }
6449if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6450  $as_echo_n "(cached) " >&6
6451else
6452  if test -n "$ac_ct_LIPO"; then
6453  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6454else
6455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456for as_dir in $PATH
6457do
6458  IFS=$as_save_IFS
6459  test -z "$as_dir" && as_dir=.
6460    for ac_exec_ext in '' $ac_executable_extensions; do
6461  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6462    ac_cv_prog_ac_ct_LIPO="lipo"
6463    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464    break 2
6465  fi
6466done
6467  done
6468IFS=$as_save_IFS
6469
6470fi
6471fi
6472ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6473if test -n "$ac_ct_LIPO"; then
6474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6475$as_echo "$ac_ct_LIPO" >&6; }
6476else
6477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478$as_echo "no" >&6; }
6479fi
6480
6481  if test "x$ac_ct_LIPO" = x; then
6482    LIPO=":"
6483  else
6484    case $cross_compiling:$ac_tool_warned in
6485yes:)
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6488ac_tool_warned=yes ;;
6489esac
6490    LIPO=$ac_ct_LIPO
6491  fi
6492else
6493  LIPO="$ac_cv_prog_LIPO"
6494fi
6495
6496    if test -n "$ac_tool_prefix"; then
6497  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6498set dummy ${ac_tool_prefix}otool; ac_word=$2
6499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500$as_echo_n "checking for $ac_word... " >&6; }
6501if ${ac_cv_prog_OTOOL+:} false; then :
6502  $as_echo_n "(cached) " >&6
6503else
6504  if test -n "$OTOOL"; then
6505  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6506else
6507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508for as_dir in $PATH
6509do
6510  IFS=$as_save_IFS
6511  test -z "$as_dir" && as_dir=.
6512    for ac_exec_ext in '' $ac_executable_extensions; do
6513  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6514    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516    break 2
6517  fi
6518done
6519  done
6520IFS=$as_save_IFS
6521
6522fi
6523fi
6524OTOOL=$ac_cv_prog_OTOOL
6525if test -n "$OTOOL"; then
6526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6527$as_echo "$OTOOL" >&6; }
6528else
6529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530$as_echo "no" >&6; }
6531fi
6532
6533
6534fi
6535if test -z "$ac_cv_prog_OTOOL"; then
6536  ac_ct_OTOOL=$OTOOL
6537  # Extract the first word of "otool", so it can be a program name with args.
6538set dummy otool; ac_word=$2
6539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540$as_echo_n "checking for $ac_word... " >&6; }
6541if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6542  $as_echo_n "(cached) " >&6
6543else
6544  if test -n "$ac_ct_OTOOL"; then
6545  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6546else
6547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548for as_dir in $PATH
6549do
6550  IFS=$as_save_IFS
6551  test -z "$as_dir" && as_dir=.
6552    for ac_exec_ext in '' $ac_executable_extensions; do
6553  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6554    ac_cv_prog_ac_ct_OTOOL="otool"
6555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6556    break 2
6557  fi
6558done
6559  done
6560IFS=$as_save_IFS
6561
6562fi
6563fi
6564ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6565if test -n "$ac_ct_OTOOL"; then
6566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6567$as_echo "$ac_ct_OTOOL" >&6; }
6568else
6569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570$as_echo "no" >&6; }
6571fi
6572
6573  if test "x$ac_ct_OTOOL" = x; then
6574    OTOOL=":"
6575  else
6576    case $cross_compiling:$ac_tool_warned in
6577yes:)
6578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6580ac_tool_warned=yes ;;
6581esac
6582    OTOOL=$ac_ct_OTOOL
6583  fi
6584else
6585  OTOOL="$ac_cv_prog_OTOOL"
6586fi
6587
6588    if test -n "$ac_tool_prefix"; then
6589  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6590set dummy ${ac_tool_prefix}otool64; ac_word=$2
6591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592$as_echo_n "checking for $ac_word... " >&6; }
6593if ${ac_cv_prog_OTOOL64+:} false; then :
6594  $as_echo_n "(cached) " >&6
6595else
6596  if test -n "$OTOOL64"; then
6597  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6598else
6599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600for as_dir in $PATH
6601do
6602  IFS=$as_save_IFS
6603  test -z "$as_dir" && as_dir=.
6604    for ac_exec_ext in '' $ac_executable_extensions; do
6605  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6606    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6608    break 2
6609  fi
6610done
6611  done
6612IFS=$as_save_IFS
6613
6614fi
6615fi
6616OTOOL64=$ac_cv_prog_OTOOL64
6617if test -n "$OTOOL64"; then
6618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6619$as_echo "$OTOOL64" >&6; }
6620else
6621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622$as_echo "no" >&6; }
6623fi
6624
6625
6626fi
6627if test -z "$ac_cv_prog_OTOOL64"; then
6628  ac_ct_OTOOL64=$OTOOL64
6629  # Extract the first word of "otool64", so it can be a program name with args.
6630set dummy otool64; ac_word=$2
6631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6632$as_echo_n "checking for $ac_word... " >&6; }
6633if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6634  $as_echo_n "(cached) " >&6
6635else
6636  if test -n "$ac_ct_OTOOL64"; then
6637  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6638else
6639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640for as_dir in $PATH
6641do
6642  IFS=$as_save_IFS
6643  test -z "$as_dir" && as_dir=.
6644    for ac_exec_ext in '' $ac_executable_extensions; do
6645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6646    ac_cv_prog_ac_ct_OTOOL64="otool64"
6647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6648    break 2
6649  fi
6650done
6651  done
6652IFS=$as_save_IFS
6653
6654fi
6655fi
6656ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6657if test -n "$ac_ct_OTOOL64"; then
6658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6659$as_echo "$ac_ct_OTOOL64" >&6; }
6660else
6661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662$as_echo "no" >&6; }
6663fi
6664
6665  if test "x$ac_ct_OTOOL64" = x; then
6666    OTOOL64=":"
6667  else
6668    case $cross_compiling:$ac_tool_warned in
6669yes:)
6670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6672ac_tool_warned=yes ;;
6673esac
6674    OTOOL64=$ac_ct_OTOOL64
6675  fi
6676else
6677  OTOOL64="$ac_cv_prog_OTOOL64"
6678fi
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6707$as_echo_n "checking for -single_module linker flag... " >&6; }
6708if ${lt_cv_apple_cc_single_mod+:} false; then :
6709  $as_echo_n "(cached) " >&6
6710else
6711  lt_cv_apple_cc_single_mod=no
6712      if test -z "${LT_MULTI_MODULE}"; then
6713	# By default we will add the -single_module flag. You can override
6714	# by either setting the environment variable LT_MULTI_MODULE
6715	# non-empty at configure time, or by adding -multi_module to the
6716	# link flags.
6717	rm -rf libconftest.dylib*
6718	echo "int foo(void){return 1;}" > conftest.c
6719	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6720-dynamiclib -Wl,-single_module conftest.c" >&5
6721	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6722	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6723        _lt_result=$?
6724	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6725	  lt_cv_apple_cc_single_mod=yes
6726	else
6727	  cat conftest.err >&5
6728	fi
6729	rm -rf libconftest.dylib*
6730	rm -f conftest.*
6731      fi
6732fi
6733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6734$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6735    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6736$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6737if ${lt_cv_ld_exported_symbols_list+:} false; then :
6738  $as_echo_n "(cached) " >&6
6739else
6740  lt_cv_ld_exported_symbols_list=no
6741      save_LDFLAGS=$LDFLAGS
6742      echo "_main" > conftest.sym
6743      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6744      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745/* end confdefs.h.  */
6746
6747int
6748main ()
6749{
6750
6751  ;
6752  return 0;
6753}
6754_ACEOF
6755if ac_fn_c_try_link "$LINENO"; then :
6756  lt_cv_ld_exported_symbols_list=yes
6757else
6758  lt_cv_ld_exported_symbols_list=no
6759fi
6760rm -f core conftest.err conftest.$ac_objext \
6761    conftest$ac_exeext conftest.$ac_ext
6762	LDFLAGS="$save_LDFLAGS"
6763
6764fi
6765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6766$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6767    case $host_os in
6768    rhapsody* | darwin1.[012])
6769      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6770    darwin1.*)
6771      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6772    darwin*) # darwin 5.x on
6773      # if running on 10.5 or later, the deployment target defaults
6774      # to the OS version, if on x86, and 10.4, the deployment
6775      # target defaults to 10.4. Don't you love it?
6776      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6777	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6778	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6779	10.[012]*)
6780	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6781	10.*)
6782	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6783      esac
6784    ;;
6785  esac
6786    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6787      _lt_dar_single_mod='$single_module'
6788    fi
6789    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6790      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6791    else
6792      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6793    fi
6794    if test "$DSYMUTIL" != ":"; then
6795      _lt_dsymutil='~$DSYMUTIL $lib || :'
6796    else
6797      _lt_dsymutil=
6798    fi
6799    ;;
6800  esac
6801
6802ac_ext=c
6803ac_cpp='$CPP $CPPFLAGS'
6804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6806ac_compiler_gnu=$ac_cv_c_compiler_gnu
6807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6808$as_echo_n "checking how to run the C preprocessor... " >&6; }
6809# On Suns, sometimes $CPP names a directory.
6810if test -n "$CPP" && test -d "$CPP"; then
6811  CPP=
6812fi
6813if test -z "$CPP"; then
6814  if ${ac_cv_prog_CPP+:} false; then :
6815  $as_echo_n "(cached) " >&6
6816else
6817      # Double quotes because CPP needs to be expanded
6818    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6819    do
6820      ac_preproc_ok=false
6821for ac_c_preproc_warn_flag in '' yes
6822do
6823  # Use a header file that comes with gcc, so configuring glibc
6824  # with a fresh cross-compiler works.
6825  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6826  # <limits.h> exists even on freestanding compilers.
6827  # On the NeXT, cc -E runs the code through the compiler's parser,
6828  # not just through cpp. "Syntax error" is here to catch this case.
6829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830/* end confdefs.h.  */
6831#ifdef __STDC__
6832# include <limits.h>
6833#else
6834# include <assert.h>
6835#endif
6836		     Syntax error
6837_ACEOF
6838if ac_fn_c_try_cpp "$LINENO"; then :
6839
6840else
6841  # Broken: fails on valid input.
6842continue
6843fi
6844rm -f conftest.err conftest.i conftest.$ac_ext
6845
6846  # OK, works on sane cases.  Now check whether nonexistent headers
6847  # can be detected and how.
6848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849/* end confdefs.h.  */
6850#include <ac_nonexistent.h>
6851_ACEOF
6852if ac_fn_c_try_cpp "$LINENO"; then :
6853  # Broken: success on invalid input.
6854continue
6855else
6856  # Passes both tests.
6857ac_preproc_ok=:
6858break
6859fi
6860rm -f conftest.err conftest.i conftest.$ac_ext
6861
6862done
6863# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6864rm -f conftest.i conftest.err conftest.$ac_ext
6865if $ac_preproc_ok; then :
6866  break
6867fi
6868
6869    done
6870    ac_cv_prog_CPP=$CPP
6871
6872fi
6873  CPP=$ac_cv_prog_CPP
6874else
6875  ac_cv_prog_CPP=$CPP
6876fi
6877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6878$as_echo "$CPP" >&6; }
6879ac_preproc_ok=false
6880for ac_c_preproc_warn_flag in '' yes
6881do
6882  # Use a header file that comes with gcc, so configuring glibc
6883  # with a fresh cross-compiler works.
6884  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6885  # <limits.h> exists even on freestanding compilers.
6886  # On the NeXT, cc -E runs the code through the compiler's parser,
6887  # not just through cpp. "Syntax error" is here to catch this case.
6888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889/* end confdefs.h.  */
6890#ifdef __STDC__
6891# include <limits.h>
6892#else
6893# include <assert.h>
6894#endif
6895		     Syntax error
6896_ACEOF
6897if ac_fn_c_try_cpp "$LINENO"; then :
6898
6899else
6900  # Broken: fails on valid input.
6901continue
6902fi
6903rm -f conftest.err conftest.i conftest.$ac_ext
6904
6905  # OK, works on sane cases.  Now check whether nonexistent headers
6906  # can be detected and how.
6907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908/* end confdefs.h.  */
6909#include <ac_nonexistent.h>
6910_ACEOF
6911if ac_fn_c_try_cpp "$LINENO"; then :
6912  # Broken: success on invalid input.
6913continue
6914else
6915  # Passes both tests.
6916ac_preproc_ok=:
6917break
6918fi
6919rm -f conftest.err conftest.i conftest.$ac_ext
6920
6921done
6922# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6923rm -f conftest.i conftest.err conftest.$ac_ext
6924if $ac_preproc_ok; then :
6925
6926else
6927  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6929as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6930See \`config.log' for more details" "$LINENO" 5; }
6931fi
6932
6933ac_ext=c
6934ac_cpp='$CPP $CPPFLAGS'
6935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6937ac_compiler_gnu=$ac_cv_c_compiler_gnu
6938
6939
6940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6941$as_echo_n "checking for ANSI C header files... " >&6; }
6942if ${ac_cv_header_stdc+:} false; then :
6943  $as_echo_n "(cached) " >&6
6944else
6945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946/* end confdefs.h.  */
6947#include <stdlib.h>
6948#include <stdarg.h>
6949#include <string.h>
6950#include <float.h>
6951
6952int
6953main ()
6954{
6955
6956  ;
6957  return 0;
6958}
6959_ACEOF
6960if ac_fn_c_try_compile "$LINENO"; then :
6961  ac_cv_header_stdc=yes
6962else
6963  ac_cv_header_stdc=no
6964fi
6965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6966
6967if test $ac_cv_header_stdc = yes; then
6968  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970/* end confdefs.h.  */
6971#include <string.h>
6972
6973_ACEOF
6974if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6975  $EGREP "memchr" >/dev/null 2>&1; then :
6976
6977else
6978  ac_cv_header_stdc=no
6979fi
6980rm -f conftest*
6981
6982fi
6983
6984if test $ac_cv_header_stdc = yes; then
6985  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6987/* end confdefs.h.  */
6988#include <stdlib.h>
6989
6990_ACEOF
6991if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6992  $EGREP "free" >/dev/null 2>&1; then :
6993
6994else
6995  ac_cv_header_stdc=no
6996fi
6997rm -f conftest*
6998
6999fi
7000
7001if test $ac_cv_header_stdc = yes; then
7002  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7003  if test "$cross_compiling" = yes; then :
7004  :
7005else
7006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007/* end confdefs.h.  */
7008#include <ctype.h>
7009#include <stdlib.h>
7010#if ((' ' & 0x0FF) == 0x020)
7011# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7012# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7013#else
7014# define ISLOWER(c) \
7015		   (('a' <= (c) && (c) <= 'i') \
7016		     || ('j' <= (c) && (c) <= 'r') \
7017		     || ('s' <= (c) && (c) <= 'z'))
7018# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7019#endif
7020
7021#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7022int
7023main ()
7024{
7025  int i;
7026  for (i = 0; i < 256; i++)
7027    if (XOR (islower (i), ISLOWER (i))
7028	|| toupper (i) != TOUPPER (i))
7029      return 2;
7030  return 0;
7031}
7032_ACEOF
7033if ac_fn_c_try_run "$LINENO"; then :
7034
7035else
7036  ac_cv_header_stdc=no
7037fi
7038rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7039  conftest.$ac_objext conftest.beam conftest.$ac_ext
7040fi
7041
7042fi
7043fi
7044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7045$as_echo "$ac_cv_header_stdc" >&6; }
7046if test $ac_cv_header_stdc = yes; then
7047
7048$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7049
7050fi
7051
7052# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7053for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7054		  inttypes.h stdint.h unistd.h
7055do :
7056  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7057ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7058"
7059if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7060  cat >>confdefs.h <<_ACEOF
7061#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7062_ACEOF
7063
7064fi
7065
7066done
7067
7068
7069for ac_header in dlfcn.h
7070do :
7071  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7072"
7073if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7074  cat >>confdefs.h <<_ACEOF
7075#define HAVE_DLFCN_H 1
7076_ACEOF
7077
7078fi
7079
7080done
7081
7082
7083
7084# Set options
7085
7086
7087
7088        enable_dlopen=no
7089
7090
7091  enable_win32_dll=no
7092
7093
7094            # Check whether --enable-shared was given.
7095if test "${enable_shared+set}" = set; then :
7096  enableval=$enable_shared; p=${PACKAGE-default}
7097    case $enableval in
7098    yes) enable_shared=yes ;;
7099    no) enable_shared=no ;;
7100    *)
7101      enable_shared=no
7102      # Look at the argument we got.  We use all the common list separators.
7103      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7104      for pkg in $enableval; do
7105	IFS="$lt_save_ifs"
7106	if test "X$pkg" = "X$p"; then
7107	  enable_shared=yes
7108	fi
7109      done
7110      IFS="$lt_save_ifs"
7111      ;;
7112    esac
7113else
7114  enable_shared=yes
7115fi
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125  # Check whether --enable-static was given.
7126if test "${enable_static+set}" = set; then :
7127  enableval=$enable_static; p=${PACKAGE-default}
7128    case $enableval in
7129    yes) enable_static=yes ;;
7130    no) enable_static=no ;;
7131    *)
7132     enable_static=no
7133      # Look at the argument we got.  We use all the common list separators.
7134      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7135      for pkg in $enableval; do
7136	IFS="$lt_save_ifs"
7137	if test "X$pkg" = "X$p"; then
7138	  enable_static=yes
7139	fi
7140      done
7141      IFS="$lt_save_ifs"
7142      ;;
7143    esac
7144else
7145  enable_static=yes
7146fi
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157# Check whether --with-pic was given.
7158if test "${with_pic+set}" = set; then :
7159  withval=$with_pic; pic_mode="$withval"
7160else
7161  pic_mode=default
7162fi
7163
7164
7165test -z "$pic_mode" && pic_mode=default
7166
7167
7168
7169
7170
7171
7172
7173  # Check whether --enable-fast-install was given.
7174if test "${enable_fast_install+set}" = set; then :
7175  enableval=$enable_fast_install; p=${PACKAGE-default}
7176    case $enableval in
7177    yes) enable_fast_install=yes ;;
7178    no) enable_fast_install=no ;;
7179    *)
7180      enable_fast_install=no
7181      # Look at the argument we got.  We use all the common list separators.
7182      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7183      for pkg in $enableval; do
7184	IFS="$lt_save_ifs"
7185	if test "X$pkg" = "X$p"; then
7186	  enable_fast_install=yes
7187	fi
7188      done
7189      IFS="$lt_save_ifs"
7190      ;;
7191    esac
7192else
7193  enable_fast_install=yes
7194fi
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206# This can be used to rebuild libtool when needed
7207LIBTOOL_DEPS="$ltmain"
7208
7209# Always use our own libtool.
7210LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236test -z "$LN_S" && LN_S="ln -s"
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251if test -n "${ZSH_VERSION+set}" ; then
7252   setopt NO_GLOB_SUBST
7253fi
7254
7255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7256$as_echo_n "checking for objdir... " >&6; }
7257if ${lt_cv_objdir+:} false; then :
7258  $as_echo_n "(cached) " >&6
7259else
7260  rm -f .libs 2>/dev/null
7261mkdir .libs 2>/dev/null
7262if test -d .libs; then
7263  lt_cv_objdir=.libs
7264else
7265  # MS-DOS does not allow filenames that begin with a dot.
7266  lt_cv_objdir=_libs
7267fi
7268rmdir .libs 2>/dev/null
7269fi
7270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7271$as_echo "$lt_cv_objdir" >&6; }
7272objdir=$lt_cv_objdir
7273
7274
7275
7276
7277
7278cat >>confdefs.h <<_ACEOF
7279#define LT_OBJDIR "$lt_cv_objdir/"
7280_ACEOF
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298case $host_os in
7299aix3*)
7300  # AIX sometimes has problems with the GCC collect2 program.  For some
7301  # reason, if we set the COLLECT_NAMES environment variable, the problems
7302  # vanish in a puff of smoke.
7303  if test "X${COLLECT_NAMES+set}" != Xset; then
7304    COLLECT_NAMES=
7305    export COLLECT_NAMES
7306  fi
7307  ;;
7308esac
7309
7310# Sed substitution that helps us do robust quoting.  It backslashifies
7311# metacharacters that are still active within double-quoted strings.
7312sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7313
7314# Same as above, but do not quote variable references.
7315double_quote_subst='s/\(["`\\]\)/\\\1/g'
7316
7317# Sed substitution to delay expansion of an escaped shell variable in a
7318# double_quote_subst'ed string.
7319delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7320
7321# Sed substitution to delay expansion of an escaped single quote.
7322delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7323
7324# Sed substitution to avoid accidental globbing in evaled expressions
7325no_glob_subst='s/\*/\\\*/g'
7326
7327# Global variables:
7328ofile=libtool
7329can_build_shared=yes
7330
7331# All known linkers require a `.a' archive for static linking (except MSVC,
7332# which needs '.lib').
7333libext=a
7334
7335with_gnu_ld="$lt_cv_prog_gnu_ld"
7336
7337old_CC="$CC"
7338old_CFLAGS="$CFLAGS"
7339
7340# Set sane defaults for various variables
7341test -z "$CC" && CC=cc
7342test -z "$LTCC" && LTCC=$CC
7343test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7344test -z "$LD" && LD=ld
7345test -z "$ac_objext" && ac_objext=o
7346
7347for cc_temp in $compiler""; do
7348  case $cc_temp in
7349    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7350    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7351    \-*) ;;
7352    *) break;;
7353  esac
7354done
7355cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7356
7357
7358# Only perform the check for file, if the check method requires it
7359test -z "$MAGIC_CMD" && MAGIC_CMD=file
7360case $deplibs_check_method in
7361file_magic*)
7362  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7363    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7364$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7365if ${lt_cv_path_MAGIC_CMD+:} false; then :
7366  $as_echo_n "(cached) " >&6
7367else
7368  case $MAGIC_CMD in
7369[\\/*] |  ?:[\\/]*)
7370  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7371  ;;
7372*)
7373  lt_save_MAGIC_CMD="$MAGIC_CMD"
7374  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7375  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7376  for ac_dir in $ac_dummy; do
7377    IFS="$lt_save_ifs"
7378    test -z "$ac_dir" && ac_dir=.
7379    if test -f $ac_dir/${ac_tool_prefix}file; then
7380      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7381      if test -n "$file_magic_test_file"; then
7382	case $deplibs_check_method in
7383	"file_magic "*)
7384	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7385	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7386	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7387	    $EGREP "$file_magic_regex" > /dev/null; then
7388	    :
7389	  else
7390	    cat <<_LT_EOF 1>&2
7391
7392*** Warning: the command libtool uses to detect shared libraries,
7393*** $file_magic_cmd, produces output that libtool cannot recognize.
7394*** The result is that libtool may fail to recognize shared libraries
7395*** as such.  This will affect the creation of libtool libraries that
7396*** depend on shared libraries, but programs linked with such libtool
7397*** libraries will work regardless of this problem.  Nevertheless, you
7398*** may want to report the problem to your system manager and/or to
7399*** bug-libtool@gnu.org
7400
7401_LT_EOF
7402	  fi ;;
7403	esac
7404      fi
7405      break
7406    fi
7407  done
7408  IFS="$lt_save_ifs"
7409  MAGIC_CMD="$lt_save_MAGIC_CMD"
7410  ;;
7411esac
7412fi
7413
7414MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7415if test -n "$MAGIC_CMD"; then
7416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7417$as_echo "$MAGIC_CMD" >&6; }
7418else
7419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420$as_echo "no" >&6; }
7421fi
7422
7423
7424
7425
7426
7427if test -z "$lt_cv_path_MAGIC_CMD"; then
7428  if test -n "$ac_tool_prefix"; then
7429    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7430$as_echo_n "checking for file... " >&6; }
7431if ${lt_cv_path_MAGIC_CMD+:} false; then :
7432  $as_echo_n "(cached) " >&6
7433else
7434  case $MAGIC_CMD in
7435[\\/*] |  ?:[\\/]*)
7436  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7437  ;;
7438*)
7439  lt_save_MAGIC_CMD="$MAGIC_CMD"
7440  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7441  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7442  for ac_dir in $ac_dummy; do
7443    IFS="$lt_save_ifs"
7444    test -z "$ac_dir" && ac_dir=.
7445    if test -f $ac_dir/file; then
7446      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7447      if test -n "$file_magic_test_file"; then
7448	case $deplibs_check_method in
7449	"file_magic "*)
7450	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7451	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7452	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7453	    $EGREP "$file_magic_regex" > /dev/null; then
7454	    :
7455	  else
7456	    cat <<_LT_EOF 1>&2
7457
7458*** Warning: the command libtool uses to detect shared libraries,
7459*** $file_magic_cmd, produces output that libtool cannot recognize.
7460*** The result is that libtool may fail to recognize shared libraries
7461*** as such.  This will affect the creation of libtool libraries that
7462*** depend on shared libraries, but programs linked with such libtool
7463*** libraries will work regardless of this problem.  Nevertheless, you
7464*** may want to report the problem to your system manager and/or to
7465*** bug-libtool@gnu.org
7466
7467_LT_EOF
7468	  fi ;;
7469	esac
7470      fi
7471      break
7472    fi
7473  done
7474  IFS="$lt_save_ifs"
7475  MAGIC_CMD="$lt_save_MAGIC_CMD"
7476  ;;
7477esac
7478fi
7479
7480MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7481if test -n "$MAGIC_CMD"; then
7482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7483$as_echo "$MAGIC_CMD" >&6; }
7484else
7485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486$as_echo "no" >&6; }
7487fi
7488
7489
7490  else
7491    MAGIC_CMD=:
7492  fi
7493fi
7494
7495  fi
7496  ;;
7497esac
7498
7499# Use C for the default configuration in the libtool script
7500
7501lt_save_CC="$CC"
7502ac_ext=c
7503ac_cpp='$CPP $CPPFLAGS'
7504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7506ac_compiler_gnu=$ac_cv_c_compiler_gnu
7507
7508
7509# Source file extension for C test sources.
7510ac_ext=c
7511
7512# Object file extension for compiled C test sources.
7513objext=o
7514objext=$objext
7515
7516# Code to be used in simple compile tests
7517lt_simple_compile_test_code="int some_variable = 0;"
7518
7519# Code to be used in simple link tests
7520lt_simple_link_test_code='int main(){return(0);}'
7521
7522
7523
7524
7525
7526
7527
7528# If no C compiler was specified, use CC.
7529LTCC=${LTCC-"$CC"}
7530
7531# If no C compiler flags were specified, use CFLAGS.
7532LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7533
7534# Allow CC to be a program name with arguments.
7535compiler=$CC
7536
7537# Save the default compiler, since it gets overwritten when the other
7538# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7539compiler_DEFAULT=$CC
7540
7541# save warnings/boilerplate of simple test code
7542ac_outfile=conftest.$ac_objext
7543echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7544eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7545_lt_compiler_boilerplate=`cat conftest.err`
7546$RM conftest*
7547
7548ac_outfile=conftest.$ac_objext
7549echo "$lt_simple_link_test_code" >conftest.$ac_ext
7550eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7551_lt_linker_boilerplate=`cat conftest.err`
7552$RM -r conftest*
7553
7554
7555## CAVEAT EMPTOR:
7556## There is no encapsulation within the following macros, do not change
7557## the running order or otherwise move them around unless you know exactly
7558## what you are doing...
7559if test -n "$compiler"; then
7560
7561lt_prog_compiler_no_builtin_flag=
7562
7563if test "$GCC" = yes; then
7564  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7565
7566  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7567$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7568if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7569  $as_echo_n "(cached) " >&6
7570else
7571  lt_cv_prog_compiler_rtti_exceptions=no
7572   ac_outfile=conftest.$ac_objext
7573   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7574   lt_compiler_flag="-fno-rtti -fno-exceptions"
7575   # Insert the option either (1) after the last *FLAGS variable, or
7576   # (2) before a word containing "conftest.", or (3) at the end.
7577   # Note that $ac_compile itself does not contain backslashes and begins
7578   # with a dollar sign (not a hyphen), so the echo should work correctly.
7579   # The option is referenced via a variable to avoid confusing sed.
7580   lt_compile=`echo "$ac_compile" | $SED \
7581   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7582   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7583   -e 's:$: $lt_compiler_flag:'`
7584   (eval echo "\"\$as_me:7584: $lt_compile\"" >&5)
7585   (eval "$lt_compile" 2>conftest.err)
7586   ac_status=$?
7587   cat conftest.err >&5
7588   echo "$as_me:7588: \$? = $ac_status" >&5
7589   if (exit $ac_status) && test -s "$ac_outfile"; then
7590     # The compiler can only warn and ignore the option if not recognized
7591     # So say no if there are warnings other than the usual output.
7592     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7593     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7594     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7595       lt_cv_prog_compiler_rtti_exceptions=yes
7596     fi
7597   fi
7598   $RM conftest*
7599
7600fi
7601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7602$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7603
7604if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7605    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7606else
7607    :
7608fi
7609
7610fi
7611
7612
7613
7614
7615
7616
7617  lt_prog_compiler_wl=
7618lt_prog_compiler_pic=
7619lt_prog_compiler_static=
7620
7621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7622$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7623
7624  if test "$GCC" = yes; then
7625    lt_prog_compiler_wl='-Wl,'
7626    lt_prog_compiler_static='-static'
7627
7628    case $host_os in
7629      aix*)
7630      # All AIX code is PIC.
7631      if test "$host_cpu" = ia64; then
7632	# AIX 5 now supports IA64 processor
7633	lt_prog_compiler_static='-Bstatic'
7634      fi
7635      ;;
7636
7637    amigaos*)
7638      case $host_cpu in
7639      powerpc)
7640            # see comment about AmigaOS4 .so support
7641            lt_prog_compiler_pic='-fPIC'
7642        ;;
7643      m68k)
7644            # FIXME: we need at least 68020 code to build shared libraries, but
7645            # adding the `-m68020' flag to GCC prevents building anything better,
7646            # like `-m68040'.
7647            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7648        ;;
7649      esac
7650      ;;
7651
7652    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7653      # PIC is the default for these OSes.
7654      ;;
7655
7656    mingw* | cygwin* | pw32* | os2* | cegcc*)
7657      # This hack is so that the source file can tell whether it is being
7658      # built for inclusion in a dll (and should export symbols for example).
7659      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7660      # (--disable-auto-import) libraries
7661      lt_prog_compiler_pic='-DDLL_EXPORT'
7662      ;;
7663
7664    darwin* | rhapsody*)
7665      # PIC is the default on this platform
7666      # Common symbols not allowed in MH_DYLIB files
7667      lt_prog_compiler_pic='-fno-common'
7668      ;;
7669
7670    hpux*)
7671      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7672      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7673      # sets the default TLS model and affects inlining.
7674      case $host_cpu in
7675      hppa*64*)
7676	# +Z the default
7677	;;
7678      *)
7679	lt_prog_compiler_pic='-fPIC'
7680	;;
7681      esac
7682      ;;
7683
7684    interix[3-9]*)
7685      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7686      # Instead, we relocate shared libraries at runtime.
7687      ;;
7688
7689    msdosdjgpp*)
7690      # Just because we use GCC doesn't mean we suddenly get shared libraries
7691      # on systems that don't support them.
7692      lt_prog_compiler_can_build_shared=no
7693      enable_shared=no
7694      ;;
7695
7696    *nto* | *qnx*)
7697      # QNX uses GNU C++, but need to define -shared option too, otherwise
7698      # it will coredump.
7699      lt_prog_compiler_pic='-fPIC -shared'
7700      ;;
7701
7702    sysv4*MP*)
7703      if test -d /usr/nec; then
7704	lt_prog_compiler_pic=-Kconform_pic
7705      fi
7706      ;;
7707
7708    *)
7709      lt_prog_compiler_pic='-fPIC'
7710      ;;
7711    esac
7712  else
7713    # PORTME Check for flag to pass linker flags through the system compiler.
7714    case $host_os in
7715    aix*)
7716      lt_prog_compiler_wl='-Wl,'
7717      if test "$host_cpu" = ia64; then
7718	# AIX 5 now supports IA64 processor
7719	lt_prog_compiler_static='-Bstatic'
7720      else
7721	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7722      fi
7723      ;;
7724
7725    mingw* | cygwin* | pw32* | os2* | cegcc*)
7726      # This hack is so that the source file can tell whether it is being
7727      # built for inclusion in a dll (and should export symbols for example).
7728      lt_prog_compiler_pic='-DDLL_EXPORT'
7729      ;;
7730
7731    hpux9* | hpux10* | hpux11*)
7732      lt_prog_compiler_wl='-Wl,'
7733      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7734      # not for PA HP-UX.
7735      case $host_cpu in
7736      hppa*64*|ia64*)
7737	# +Z the default
7738	;;
7739      *)
7740	lt_prog_compiler_pic='+Z'
7741	;;
7742      esac
7743      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7744      lt_prog_compiler_static='${wl}-a ${wl}archive'
7745      ;;
7746
7747    irix5* | irix6* | nonstopux*)
7748      lt_prog_compiler_wl='-Wl,'
7749      # PIC (with -KPIC) is the default.
7750      lt_prog_compiler_static='-non_shared'
7751      ;;
7752
7753    linux* | k*bsd*-gnu)
7754      case $cc_basename in
7755      # old Intel for x86_64 which still supported -KPIC.
7756      ecc*)
7757	lt_prog_compiler_wl='-Wl,'
7758	lt_prog_compiler_pic='-KPIC'
7759	lt_prog_compiler_static='-static'
7760        ;;
7761      # icc used to be incompatible with GCC.
7762      # ICC 10 doesn't accept -KPIC any more.
7763      icc* | ifort*)
7764	lt_prog_compiler_wl='-Wl,'
7765	lt_prog_compiler_pic='-fPIC'
7766	lt_prog_compiler_static='-static'
7767        ;;
7768      # Lahey Fortran 8.1.
7769      lf95*)
7770	lt_prog_compiler_wl='-Wl,'
7771	lt_prog_compiler_pic='--shared'
7772	lt_prog_compiler_static='--static'
7773	;;
7774      pgcc* | pgf77* | pgf90* | pgf95*)
7775        # Portland Group compilers (*not* the Pentium gcc compiler,
7776	# which looks to be a dead project)
7777	lt_prog_compiler_wl='-Wl,'
7778	lt_prog_compiler_pic='-fpic'
7779	lt_prog_compiler_static='-Bstatic'
7780        ;;
7781      ccc*)
7782        lt_prog_compiler_wl='-Wl,'
7783        # All Alpha code is PIC.
7784        lt_prog_compiler_static='-non_shared'
7785        ;;
7786      xl*)
7787	# IBM XL C 8.0/Fortran 10.1 on PPC
7788	lt_prog_compiler_wl='-Wl,'
7789	lt_prog_compiler_pic='-qpic'
7790	lt_prog_compiler_static='-qstaticlink'
7791	;;
7792      *)
7793	case `$CC -V 2>&1 | sed 5q` in
7794	*Sun\ C*)
7795	  # Sun C 5.9
7796	  lt_prog_compiler_pic='-KPIC'
7797	  lt_prog_compiler_static='-Bstatic'
7798	  lt_prog_compiler_wl='-Wl,'
7799	  ;;
7800	*Sun\ F*)
7801	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7802	  lt_prog_compiler_pic='-KPIC'
7803	  lt_prog_compiler_static='-Bstatic'
7804	  lt_prog_compiler_wl=''
7805	  ;;
7806	esac
7807	;;
7808      esac
7809      ;;
7810
7811    newsos6)
7812      lt_prog_compiler_pic='-KPIC'
7813      lt_prog_compiler_static='-Bstatic'
7814      ;;
7815
7816    *nto* | *qnx*)
7817      # QNX uses GNU C++, but need to define -shared option too, otherwise
7818      # it will coredump.
7819      lt_prog_compiler_pic='-fPIC -shared'
7820      ;;
7821
7822    osf3* | osf4* | osf5*)
7823      lt_prog_compiler_wl='-Wl,'
7824      # All OSF/1 code is PIC.
7825      lt_prog_compiler_static='-non_shared'
7826      ;;
7827
7828    rdos*)
7829      lt_prog_compiler_static='-non_shared'
7830      ;;
7831
7832    solaris*)
7833      lt_prog_compiler_pic='-KPIC'
7834      lt_prog_compiler_static='-Bstatic'
7835      case $cc_basename in
7836      f77* | f90* | f95*)
7837	lt_prog_compiler_wl='-Qoption ld ';;
7838      *)
7839	lt_prog_compiler_wl='-Wl,';;
7840      esac
7841      ;;
7842
7843    sunos4*)
7844      lt_prog_compiler_wl='-Qoption ld '
7845      lt_prog_compiler_pic='-PIC'
7846      lt_prog_compiler_static='-Bstatic'
7847      ;;
7848
7849    sysv4 | sysv4.2uw2* | sysv4.3*)
7850      lt_prog_compiler_wl='-Wl,'
7851      lt_prog_compiler_pic='-KPIC'
7852      lt_prog_compiler_static='-Bstatic'
7853      ;;
7854
7855    sysv4*MP*)
7856      if test -d /usr/nec ;then
7857	lt_prog_compiler_pic='-Kconform_pic'
7858	lt_prog_compiler_static='-Bstatic'
7859      fi
7860      ;;
7861
7862    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7863      lt_prog_compiler_wl='-Wl,'
7864      lt_prog_compiler_pic='-KPIC'
7865      lt_prog_compiler_static='-Bstatic'
7866      ;;
7867
7868    unicos*)
7869      lt_prog_compiler_wl='-Wl,'
7870      lt_prog_compiler_can_build_shared=no
7871      ;;
7872
7873    uts4*)
7874      lt_prog_compiler_pic='-pic'
7875      lt_prog_compiler_static='-Bstatic'
7876      ;;
7877
7878    *)
7879      lt_prog_compiler_can_build_shared=no
7880      ;;
7881    esac
7882  fi
7883
7884case $host_os in
7885  # For platforms which do not support PIC, -DPIC is meaningless:
7886  *djgpp*)
7887    lt_prog_compiler_pic=
7888    ;;
7889  *)
7890    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7891    ;;
7892esac
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7894$as_echo "$lt_prog_compiler_pic" >&6; }
7895
7896
7897
7898
7899
7900
7901#
7902# Check to make sure the PIC flag actually works.
7903#
7904if test -n "$lt_prog_compiler_pic"; then
7905  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7906$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7907if ${lt_cv_prog_compiler_pic_works+:} false; then :
7908  $as_echo_n "(cached) " >&6
7909else
7910  lt_cv_prog_compiler_pic_works=no
7911   ac_outfile=conftest.$ac_objext
7912   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7913   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7914   # Insert the option either (1) after the last *FLAGS variable, or
7915   # (2) before a word containing "conftest.", or (3) at the end.
7916   # Note that $ac_compile itself does not contain backslashes and begins
7917   # with a dollar sign (not a hyphen), so the echo should work correctly.
7918   # The option is referenced via a variable to avoid confusing sed.
7919   lt_compile=`echo "$ac_compile" | $SED \
7920   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7921   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7922   -e 's:$: $lt_compiler_flag:'`
7923   (eval echo "\"\$as_me:7923: $lt_compile\"" >&5)
7924   (eval "$lt_compile" 2>conftest.err)
7925   ac_status=$?
7926   cat conftest.err >&5
7927   echo "$as_me:7927: \$? = $ac_status" >&5
7928   if (exit $ac_status) && test -s "$ac_outfile"; then
7929     # The compiler can only warn and ignore the option if not recognized
7930     # So say no if there are warnings other than the usual output.
7931     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7932     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7933     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7934       lt_cv_prog_compiler_pic_works=yes
7935     fi
7936   fi
7937   $RM conftest*
7938
7939fi
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7941$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7942
7943if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7944    case $lt_prog_compiler_pic in
7945     "" | " "*) ;;
7946     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7947     esac
7948else
7949    lt_prog_compiler_pic=
7950     lt_prog_compiler_can_build_shared=no
7951fi
7952
7953fi
7954
7955
7956
7957
7958
7959
7960#
7961# Check to make sure the static flag actually works.
7962#
7963wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7965$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7966if ${lt_cv_prog_compiler_static_works+:} false; then :
7967  $as_echo_n "(cached) " >&6
7968else
7969  lt_cv_prog_compiler_static_works=no
7970   save_LDFLAGS="$LDFLAGS"
7971   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7972   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7973   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7974     # The linker can only warn and ignore the option if not recognized
7975     # So say no if there are warnings
7976     if test -s conftest.err; then
7977       # Append any errors to the config.log.
7978       cat conftest.err 1>&5
7979       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7980       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7981       if diff conftest.exp conftest.er2 >/dev/null; then
7982         lt_cv_prog_compiler_static_works=yes
7983       fi
7984     else
7985       lt_cv_prog_compiler_static_works=yes
7986     fi
7987   fi
7988   $RM -r conftest*
7989   LDFLAGS="$save_LDFLAGS"
7990
7991fi
7992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7993$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7994
7995if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7996    :
7997else
7998    lt_prog_compiler_static=
7999fi
8000
8001
8002
8003
8004
8005
8006
8007  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8008$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8009if ${lt_cv_prog_compiler_c_o+:} false; then :
8010  $as_echo_n "(cached) " >&6
8011else
8012  lt_cv_prog_compiler_c_o=no
8013   $RM -r conftest 2>/dev/null
8014   mkdir conftest
8015   cd conftest
8016   mkdir out
8017   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8018
8019   lt_compiler_flag="-o out/conftest2.$ac_objext"
8020   # Insert the option either (1) after the last *FLAGS variable, or
8021   # (2) before a word containing "conftest.", or (3) at the end.
8022   # Note that $ac_compile itself does not contain backslashes and begins
8023   # with a dollar sign (not a hyphen), so the echo should work correctly.
8024   lt_compile=`echo "$ac_compile" | $SED \
8025   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8026   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8027   -e 's:$: $lt_compiler_flag:'`
8028   (eval echo "\"\$as_me:8028: $lt_compile\"" >&5)
8029   (eval "$lt_compile" 2>out/conftest.err)
8030   ac_status=$?
8031   cat out/conftest.err >&5
8032   echo "$as_me:8032: \$? = $ac_status" >&5
8033   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8034   then
8035     # The compiler can only warn and ignore the option if not recognized
8036     # So say no if there are warnings
8037     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8038     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8039     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8040       lt_cv_prog_compiler_c_o=yes
8041     fi
8042   fi
8043   chmod u+w . 2>&5
8044   $RM conftest*
8045   # SGI C++ compiler will create directory out/ii_files/ for
8046   # template instantiation
8047   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8048   $RM out/* && rmdir out
8049   cd ..
8050   $RM -r conftest
8051   $RM conftest*
8052
8053fi
8054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8055$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8056
8057
8058
8059
8060
8061
8062  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8063$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8064if ${lt_cv_prog_compiler_c_o+:} false; then :
8065  $as_echo_n "(cached) " >&6
8066else
8067  lt_cv_prog_compiler_c_o=no
8068   $RM -r conftest 2>/dev/null
8069   mkdir conftest
8070   cd conftest
8071   mkdir out
8072   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8073
8074   lt_compiler_flag="-o out/conftest2.$ac_objext"
8075   # Insert the option either (1) after the last *FLAGS variable, or
8076   # (2) before a word containing "conftest.", or (3) at the end.
8077   # Note that $ac_compile itself does not contain backslashes and begins
8078   # with a dollar sign (not a hyphen), so the echo should work correctly.
8079   lt_compile=`echo "$ac_compile" | $SED \
8080   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8081   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8082   -e 's:$: $lt_compiler_flag:'`
8083   (eval echo "\"\$as_me:8083: $lt_compile\"" >&5)
8084   (eval "$lt_compile" 2>out/conftest.err)
8085   ac_status=$?
8086   cat out/conftest.err >&5
8087   echo "$as_me:8087: \$? = $ac_status" >&5
8088   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8089   then
8090     # The compiler can only warn and ignore the option if not recognized
8091     # So say no if there are warnings
8092     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8093     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8094     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8095       lt_cv_prog_compiler_c_o=yes
8096     fi
8097   fi
8098   chmod u+w . 2>&5
8099   $RM conftest*
8100   # SGI C++ compiler will create directory out/ii_files/ for
8101   # template instantiation
8102   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8103   $RM out/* && rmdir out
8104   cd ..
8105   $RM -r conftest
8106   $RM conftest*
8107
8108fi
8109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8110$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8111
8112
8113
8114
8115hard_links="nottested"
8116if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8117  # do not overwrite the value of need_locks provided by the user
8118  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8119$as_echo_n "checking if we can lock with hard links... " >&6; }
8120  hard_links=yes
8121  $RM conftest*
8122  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8123  touch conftest.a
8124  ln conftest.a conftest.b 2>&5 || hard_links=no
8125  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8127$as_echo "$hard_links" >&6; }
8128  if test "$hard_links" = no; then
8129    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8130$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8131    need_locks=warn
8132  fi
8133else
8134  need_locks=no
8135fi
8136
8137
8138
8139
8140
8141
8142  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8143$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8144
8145  runpath_var=
8146  allow_undefined_flag=
8147  always_export_symbols=no
8148  archive_cmds=
8149  archive_expsym_cmds=
8150  compiler_needs_object=no
8151  enable_shared_with_static_runtimes=no
8152  export_dynamic_flag_spec=
8153  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8154  hardcode_automatic=no
8155  hardcode_direct=no
8156  hardcode_direct_absolute=no
8157  hardcode_libdir_flag_spec=
8158  hardcode_libdir_flag_spec_ld=
8159  hardcode_libdir_separator=
8160  hardcode_minus_L=no
8161  hardcode_shlibpath_var=unsupported
8162  inherit_rpath=no
8163  link_all_deplibs=unknown
8164  module_cmds=
8165  module_expsym_cmds=
8166  old_archive_from_new_cmds=
8167  old_archive_from_expsyms_cmds=
8168  thread_safe_flag_spec=
8169  whole_archive_flag_spec=
8170  # include_expsyms should be a list of space-separated symbols to be *always*
8171  # included in the symbol list
8172  include_expsyms=
8173  # exclude_expsyms can be an extended regexp of symbols to exclude
8174  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8175  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8176  # as well as any symbol that contains `d'.
8177  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8178  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8179  # platforms (ab)use it in PIC code, but their linkers get confused if
8180  # the symbol is explicitly referenced.  Since portable code cannot
8181  # rely on this symbol name, it's probably fine to never include it in
8182  # preloaded symbol tables.
8183  # Exclude shared library initialization/finalization symbols.
8184  extract_expsyms_cmds=
8185
8186  case $host_os in
8187  cygwin* | mingw* | pw32* | cegcc*)
8188    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8189    # When not using gcc, we currently assume that we are using
8190    # Microsoft Visual C++.
8191    if test "$GCC" != yes; then
8192      with_gnu_ld=no
8193    fi
8194    ;;
8195  interix*)
8196    # we just hope/assume this is gcc and not c89 (= MSVC++)
8197    with_gnu_ld=yes
8198    ;;
8199  openbsd*)
8200    with_gnu_ld=no
8201    ;;
8202  esac
8203
8204  ld_shlibs=yes
8205  if test "$with_gnu_ld" = yes; then
8206    # If archive_cmds runs LD, not CC, wlarc should be empty
8207    wlarc='${wl}'
8208
8209    # Set some defaults for GNU ld with shared library support. These
8210    # are reset later if shared libraries are not supported. Putting them
8211    # here allows them to be overridden if necessary.
8212    runpath_var=LD_RUN_PATH
8213    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8214    export_dynamic_flag_spec='${wl}--export-dynamic'
8215    # ancient GNU ld didn't support --whole-archive et. al.
8216    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8217      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8218    else
8219      whole_archive_flag_spec=
8220    fi
8221    supports_anon_versioning=no
8222    case `$LD -v 2>&1` in
8223      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8224      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8225      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8226      *\ 2.11.*) ;; # other 2.11 versions
8227      *) supports_anon_versioning=yes ;;
8228    esac
8229
8230    # See if GNU ld supports shared libraries.
8231    case $host_os in
8232    aix[3-9]*)
8233      # On AIX/PPC, the GNU linker is very broken
8234      if test "$host_cpu" != ia64; then
8235	ld_shlibs=no
8236	cat <<_LT_EOF 1>&2
8237
8238*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8239*** to be unable to reliably create shared libraries on AIX.
8240*** Therefore, libtool is disabling shared libraries support.  If you
8241*** really care for shared libraries, you may want to modify your PATH
8242*** so that a non-GNU linker is found, and then restart.
8243
8244_LT_EOF
8245      fi
8246      ;;
8247
8248    amigaos*)
8249      case $host_cpu in
8250      powerpc)
8251            # see comment about AmigaOS4 .so support
8252            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8253            archive_expsym_cmds=''
8254        ;;
8255      m68k)
8256            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)'
8257            hardcode_libdir_flag_spec='-L$libdir'
8258            hardcode_minus_L=yes
8259        ;;
8260      esac
8261      ;;
8262
8263    beos*)
8264      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8265	allow_undefined_flag=unsupported
8266	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8267	# support --undefined.  This deserves some investigation.  FIXME
8268	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8269      else
8270	ld_shlibs=no
8271      fi
8272      ;;
8273
8274    cygwin* | mingw* | pw32* | cegcc*)
8275      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8276      # as there is no search path for DLLs.
8277      hardcode_libdir_flag_spec='-L$libdir'
8278      allow_undefined_flag=unsupported
8279      always_export_symbols=no
8280      enable_shared_with_static_runtimes=yes
8281      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8282
8283      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8284        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8285	# If the export-symbols file already is a .def file (1st line
8286	# is EXPORTS), use it as is; otherwise, prepend...
8287	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8288	  cp $export_symbols $output_objdir/$soname.def;
8289	else
8290	  echo EXPORTS > $output_objdir/$soname.def;
8291	  cat $export_symbols >> $output_objdir/$soname.def;
8292	fi~
8293	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8294      else
8295	ld_shlibs=no
8296      fi
8297      ;;
8298
8299    interix[3-9]*)
8300      hardcode_direct=no
8301      hardcode_shlibpath_var=no
8302      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8303      export_dynamic_flag_spec='${wl}-E'
8304      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8305      # Instead, shared libraries are loaded at an image base (0x10000000 by
8306      # default) and relocated if they conflict, which is a slow very memory
8307      # consuming and fragmenting process.  To avoid this, we pick a random,
8308      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8309      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8310      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8311      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'
8312      ;;
8313
8314    gnu* | linux* | tpf* | k*bsd*-gnu)
8315      tmp_diet=no
8316      if test "$host_os" = linux-dietlibc; then
8317	case $cc_basename in
8318	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8319	esac
8320      fi
8321      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8322	 && test "$tmp_diet" = no
8323      then
8324	tmp_addflag=
8325	tmp_sharedflag='-shared'
8326	case $cc_basename,$host_cpu in
8327        pgcc*)				# Portland Group C compiler
8328	  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'
8329	  tmp_addflag=' $pic_flag'
8330	  ;;
8331	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8332	  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'
8333	  tmp_addflag=' $pic_flag -Mnomain' ;;
8334	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8335	  tmp_addflag=' -i_dynamic' ;;
8336	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8337	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8338	ifc* | ifort*)			# Intel Fortran compiler
8339	  tmp_addflag=' -nofor_main' ;;
8340	lf95*)				# Lahey Fortran 8.1
8341	  whole_archive_flag_spec=
8342	  tmp_sharedflag='--shared' ;;
8343	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8344	  tmp_sharedflag='-qmkshrobj'
8345	  tmp_addflag= ;;
8346	esac
8347	case `$CC -V 2>&1 | sed 5q` in
8348	*Sun\ C*)			# Sun C 5.9
8349	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8350	  compiler_needs_object=yes
8351	  tmp_sharedflag='-G' ;;
8352	*Sun\ F*)			# Sun Fortran 8.3
8353	  tmp_sharedflag='-G' ;;
8354	esac
8355	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8356
8357        if test "x$supports_anon_versioning" = xyes; then
8358          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8359	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8360	    echo "local: *; };" >> $output_objdir/$libname.ver~
8361	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8362        fi
8363
8364	case $cc_basename in
8365	xlf*)
8366	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8367	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8368	  hardcode_libdir_flag_spec=
8369	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8370	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8371	  if test "x$supports_anon_versioning" = xyes; then
8372	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8373	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8374	      echo "local: *; };" >> $output_objdir/$libname.ver~
8375	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8376	  fi
8377	  ;;
8378	esac
8379      else
8380        ld_shlibs=no
8381      fi
8382      ;;
8383
8384    netbsd*)
8385      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8386	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8387	wlarc=
8388      else
8389	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8390	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8391      fi
8392      ;;
8393
8394    solaris*)
8395      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8396	ld_shlibs=no
8397	cat <<_LT_EOF 1>&2
8398
8399*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8400*** create shared libraries on Solaris systems.  Therefore, libtool
8401*** is disabling shared libraries support.  We urge you to upgrade GNU
8402*** binutils to release 2.9.1 or newer.  Another option is to modify
8403*** your PATH or compiler configuration so that the native linker is
8404*** used, and then restart.
8405
8406_LT_EOF
8407      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8408	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8409	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8410      else
8411	ld_shlibs=no
8412      fi
8413      ;;
8414
8415    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8416      case `$LD -v 2>&1` in
8417        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8418	ld_shlibs=no
8419	cat <<_LT_EOF 1>&2
8420
8421*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8422*** reliably create shared libraries on SCO systems.  Therefore, libtool
8423*** is disabling shared libraries support.  We urge you to upgrade GNU
8424*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8425*** your PATH or compiler configuration so that the native linker is
8426*** used, and then restart.
8427
8428_LT_EOF
8429	;;
8430	*)
8431	  # For security reasons, it is highly recommended that you always
8432	  # use absolute paths for naming shared libraries, and exclude the
8433	  # DT_RUNPATH tag from executables and libraries.  But doing so
8434	  # requires that you compile everything twice, which is a pain.
8435	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8436	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8437	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8438	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8439	  else
8440	    ld_shlibs=no
8441	  fi
8442	;;
8443      esac
8444      ;;
8445
8446    sunos4*)
8447      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8448      wlarc=
8449      hardcode_direct=yes
8450      hardcode_shlibpath_var=no
8451      ;;
8452
8453    *)
8454      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8455	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8456	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8457      else
8458	ld_shlibs=no
8459      fi
8460      ;;
8461    esac
8462
8463    if test "$ld_shlibs" = no; then
8464      runpath_var=
8465      hardcode_libdir_flag_spec=
8466      export_dynamic_flag_spec=
8467      whole_archive_flag_spec=
8468    fi
8469  else
8470    # PORTME fill in a description of your system's linker (not GNU ld)
8471    case $host_os in
8472    aix3*)
8473      allow_undefined_flag=unsupported
8474      always_export_symbols=yes
8475      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'
8476      # Note: this linker hardcodes the directories in LIBPATH if there
8477      # are no directories specified by -L.
8478      hardcode_minus_L=yes
8479      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8480	# Neither direct hardcoding nor static linking is supported with a
8481	# broken collect2.
8482	hardcode_direct=unsupported
8483      fi
8484      ;;
8485
8486    aix[4-9]*)
8487      if test "$host_cpu" = ia64; then
8488	# On IA64, the linker does run time linking by default, so we don't
8489	# have to do anything special.
8490	aix_use_runtimelinking=no
8491	exp_sym_flag='-Bexport'
8492	no_entry_flag=""
8493      else
8494	# If we're using GNU nm, then we don't want the "-C" option.
8495	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8496	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8497	  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'
8498	else
8499	  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'
8500	fi
8501	aix_use_runtimelinking=no
8502
8503	# Test if we are trying to use run time linking or normal
8504	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8505	# need to do runtime linking.
8506	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8507	  for ld_flag in $LDFLAGS; do
8508	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8509	    aix_use_runtimelinking=yes
8510	    break
8511	  fi
8512	  done
8513	  ;;
8514	esac
8515
8516	exp_sym_flag='-bexport'
8517	no_entry_flag='-bnoentry'
8518      fi
8519
8520      # When large executables or shared objects are built, AIX ld can
8521      # have problems creating the table of contents.  If linking a library
8522      # or program results in "error TOC overflow" add -mminimal-toc to
8523      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8524      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8525
8526      archive_cmds=''
8527      hardcode_direct=yes
8528      hardcode_direct_absolute=yes
8529      hardcode_libdir_separator=':'
8530      link_all_deplibs=yes
8531      file_list_spec='${wl}-f,'
8532
8533      if test "$GCC" = yes; then
8534	case $host_os in aix4.[012]|aix4.[012].*)
8535	# We only want to do this on AIX 4.2 and lower, the check
8536	# below for broken collect2 doesn't work under 4.3+
8537	  collect2name=`${CC} -print-prog-name=collect2`
8538	  if test -f "$collect2name" &&
8539	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8540	  then
8541	  # We have reworked collect2
8542	  :
8543	  else
8544	  # We have old collect2
8545	  hardcode_direct=unsupported
8546	  # It fails to find uninstalled libraries when the uninstalled
8547	  # path is not listed in the libpath.  Setting hardcode_minus_L
8548	  # to unsupported forces relinking
8549	  hardcode_minus_L=yes
8550	  hardcode_libdir_flag_spec='-L$libdir'
8551	  hardcode_libdir_separator=
8552	  fi
8553	  ;;
8554	esac
8555	shared_flag='-shared'
8556	if test "$aix_use_runtimelinking" = yes; then
8557	  shared_flag="$shared_flag "'${wl}-G'
8558	fi
8559      else
8560	# not using gcc
8561	if test "$host_cpu" = ia64; then
8562	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8563	# chokes on -Wl,-G. The following line is correct:
8564	  shared_flag='-G'
8565	else
8566	  if test "$aix_use_runtimelinking" = yes; then
8567	    shared_flag='${wl}-G'
8568	  else
8569	    shared_flag='${wl}-bM:SRE'
8570	  fi
8571	fi
8572      fi
8573
8574      export_dynamic_flag_spec='${wl}-bexpall'
8575      # It seems that -bexpall does not export symbols beginning with
8576      # underscore (_), so it is better to generate a list of symbols to export.
8577      always_export_symbols=yes
8578      if test "$aix_use_runtimelinking" = yes; then
8579	# Warning - without using the other runtime loading flags (-brtl),
8580	# -berok will link without error, but may produce a broken library.
8581	allow_undefined_flag='-berok'
8582        # Determine the default libpath from the value encoded in an
8583        # empty executable.
8584        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585/* end confdefs.h.  */
8586
8587int
8588main ()
8589{
8590
8591  ;
8592  return 0;
8593}
8594_ACEOF
8595if ac_fn_c_try_link "$LINENO"; then :
8596
8597lt_aix_libpath_sed='
8598    /Import File Strings/,/^$/ {
8599	/^0/ {
8600	    s/^0  *\(.*\)$/\1/
8601	    p
8602	}
8603    }'
8604aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8605# Check for a 64-bit object if we didn't find anything.
8606if test -z "$aix_libpath"; then
8607  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8608fi
8609fi
8610rm -f core conftest.err conftest.$ac_objext \
8611    conftest$ac_exeext conftest.$ac_ext
8612if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8613
8614        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8615        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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8616      else
8617	if test "$host_cpu" = ia64; then
8618	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8619	  allow_undefined_flag="-z nodefs"
8620	  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"
8621	else
8622	 # Determine the default libpath from the value encoded in an
8623	 # empty executable.
8624	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625/* end confdefs.h.  */
8626
8627int
8628main ()
8629{
8630
8631  ;
8632  return 0;
8633}
8634_ACEOF
8635if ac_fn_c_try_link "$LINENO"; then :
8636
8637lt_aix_libpath_sed='
8638    /Import File Strings/,/^$/ {
8639	/^0/ {
8640	    s/^0  *\(.*\)$/\1/
8641	    p
8642	}
8643    }'
8644aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8645# Check for a 64-bit object if we didn't find anything.
8646if test -z "$aix_libpath"; then
8647  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8648fi
8649fi
8650rm -f core conftest.err conftest.$ac_objext \
8651    conftest$ac_exeext conftest.$ac_ext
8652if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8653
8654	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8655	  # Warning - without using the other run time loading flags,
8656	  # -berok will link without error, but may produce a broken library.
8657	  no_undefined_flag=' ${wl}-bernotok'
8658	  allow_undefined_flag=' ${wl}-berok'
8659	  # Exported symbols can be pulled into shared objects from archives
8660	  whole_archive_flag_spec='$convenience'
8661	  archive_cmds_need_lc=yes
8662	  # This is similar to how AIX traditionally builds its shared libraries.
8663	  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'
8664	fi
8665      fi
8666      ;;
8667
8668    amigaos*)
8669      case $host_cpu in
8670      powerpc)
8671            # see comment about AmigaOS4 .so support
8672            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8673            archive_expsym_cmds=''
8674        ;;
8675      m68k)
8676            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)'
8677            hardcode_libdir_flag_spec='-L$libdir'
8678            hardcode_minus_L=yes
8679        ;;
8680      esac
8681      ;;
8682
8683    bsdi[45]*)
8684      export_dynamic_flag_spec=-rdynamic
8685      ;;
8686
8687    cygwin* | mingw* | pw32* | cegcc*)
8688      # When not using gcc, we currently assume that we are using
8689      # Microsoft Visual C++.
8690      # hardcode_libdir_flag_spec is actually meaningless, as there is
8691      # no search path for DLLs.
8692      hardcode_libdir_flag_spec=' '
8693      allow_undefined_flag=unsupported
8694      # Tell ltmain to make .lib files, not .a files.
8695      libext=lib
8696      # Tell ltmain to make .dll files, not .so files.
8697      shrext_cmds=".dll"
8698      # FIXME: Setting linknames here is a bad hack.
8699      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8700      # The linker will automatically build a .lib file if we build a DLL.
8701      old_archive_from_new_cmds='true'
8702      # FIXME: Should let the user specify the lib program.
8703      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8704      fix_srcfile_path='`cygpath -w "$srcfile"`'
8705      enable_shared_with_static_runtimes=yes
8706      ;;
8707
8708    darwin* | rhapsody*)
8709
8710
8711  archive_cmds_need_lc=no
8712  hardcode_direct=no
8713  hardcode_automatic=yes
8714  hardcode_shlibpath_var=unsupported
8715  whole_archive_flag_spec=''
8716  link_all_deplibs=yes
8717  allow_undefined_flag="$_lt_dar_allow_undefined"
8718  case $cc_basename in
8719     ifort*) _lt_dar_can_shared=yes ;;
8720     *) _lt_dar_can_shared=$GCC ;;
8721  esac
8722  if test "$_lt_dar_can_shared" = "yes"; then
8723    output_verbose_link_cmd=echo
8724    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8725    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8726    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8727    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8728
8729  else
8730  ld_shlibs=no
8731  fi
8732
8733      ;;
8734
8735    dgux*)
8736      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8737      hardcode_libdir_flag_spec='-L$libdir'
8738      hardcode_shlibpath_var=no
8739      ;;
8740
8741    freebsd1*)
8742      ld_shlibs=no
8743      ;;
8744
8745    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8746    # support.  Future versions do this automatically, but an explicit c++rt0.o
8747    # does not break anything, and helps significantly (at the cost of a little
8748    # extra space).
8749    freebsd2.2*)
8750      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8751      hardcode_libdir_flag_spec='-R$libdir'
8752      hardcode_direct=yes
8753      hardcode_shlibpath_var=no
8754      ;;
8755
8756    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8757    freebsd2*)
8758      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8759      hardcode_direct=yes
8760      hardcode_minus_L=yes
8761      hardcode_shlibpath_var=no
8762      ;;
8763
8764    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8765    freebsd* | dragonfly*)
8766      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8767      hardcode_libdir_flag_spec='-R$libdir'
8768      hardcode_direct=yes
8769      hardcode_shlibpath_var=no
8770      ;;
8771
8772    hpux9*)
8773      if test "$GCC" = yes; then
8774	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'
8775      else
8776	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'
8777      fi
8778      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8779      hardcode_libdir_separator=:
8780      hardcode_direct=yes
8781
8782      # hardcode_minus_L: Not really in the search PATH,
8783      # but as the default location of the library.
8784      hardcode_minus_L=yes
8785      export_dynamic_flag_spec='${wl}-E'
8786      ;;
8787
8788    hpux10*)
8789      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8790	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8791      else
8792	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8793      fi
8794      if test "$with_gnu_ld" = no; then
8795	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8796	hardcode_libdir_flag_spec_ld='+b $libdir'
8797	hardcode_libdir_separator=:
8798	hardcode_direct=yes
8799	hardcode_direct_absolute=yes
8800	export_dynamic_flag_spec='${wl}-E'
8801	# hardcode_minus_L: Not really in the search PATH,
8802	# but as the default location of the library.
8803	hardcode_minus_L=yes
8804      fi
8805      ;;
8806
8807    hpux11*)
8808      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8809	case $host_cpu in
8810	hppa*64*)
8811	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8812	  ;;
8813	ia64*)
8814	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8815	  ;;
8816	*)
8817	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8818	  ;;
8819	esac
8820      else
8821	case $host_cpu in
8822	hppa*64*)
8823	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8824	  ;;
8825	ia64*)
8826	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8827	  ;;
8828	*)
8829	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8830	  ;;
8831	esac
8832      fi
8833      if test "$with_gnu_ld" = no; then
8834	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8835	hardcode_libdir_separator=:
8836
8837	case $host_cpu in
8838	hppa*64*|ia64*)
8839	  hardcode_direct=no
8840	  hardcode_shlibpath_var=no
8841	  ;;
8842	*)
8843	  hardcode_direct=yes
8844	  hardcode_direct_absolute=yes
8845	  export_dynamic_flag_spec='${wl}-E'
8846
8847	  # hardcode_minus_L: Not really in the search PATH,
8848	  # but as the default location of the library.
8849	  hardcode_minus_L=yes
8850	  ;;
8851	esac
8852      fi
8853      ;;
8854
8855    irix5* | irix6* | nonstopux*)
8856      if test "$GCC" = yes; then
8857	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8858	# Try to use the -exported_symbol ld option, if it does not
8859	# work, assume that -exports_file does not work either and
8860	# implicitly export all symbols.
8861        save_LDFLAGS="$LDFLAGS"
8862        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8863        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864/* end confdefs.h.  */
8865int foo(void) {}
8866_ACEOF
8867if ac_fn_c_try_link "$LINENO"; then :
8868  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8869
8870fi
8871rm -f core conftest.err conftest.$ac_objext \
8872    conftest$ac_exeext conftest.$ac_ext
8873        LDFLAGS="$save_LDFLAGS"
8874      else
8875	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8876	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8877      fi
8878      archive_cmds_need_lc='no'
8879      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8880      hardcode_libdir_separator=:
8881      inherit_rpath=yes
8882      link_all_deplibs=yes
8883      ;;
8884
8885    netbsd*)
8886      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8887	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8888      else
8889	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8890      fi
8891      hardcode_libdir_flag_spec='-R$libdir'
8892      hardcode_direct=yes
8893      hardcode_shlibpath_var=no
8894      ;;
8895
8896    newsos6)
8897      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8898      hardcode_direct=yes
8899      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8900      hardcode_libdir_separator=:
8901      hardcode_shlibpath_var=no
8902      ;;
8903
8904    *nto* | *qnx*)
8905      ;;
8906
8907    openbsd*)
8908      if test -f /usr/libexec/ld.so; then
8909	hardcode_direct=yes
8910	hardcode_shlibpath_var=no
8911	hardcode_direct_absolute=yes
8912	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8913	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8914	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8915	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8916	  export_dynamic_flag_spec='${wl}-E'
8917	else
8918	  case $host_os in
8919	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8920	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8921	     hardcode_libdir_flag_spec='-R$libdir'
8922	     ;;
8923	   *)
8924	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8925	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8926	     ;;
8927	  esac
8928	fi
8929      else
8930	ld_shlibs=no
8931      fi
8932      ;;
8933
8934    os2*)
8935      hardcode_libdir_flag_spec='-L$libdir'
8936      hardcode_minus_L=yes
8937      allow_undefined_flag=unsupported
8938      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'
8939      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8940      ;;
8941
8942    osf3*)
8943      if test "$GCC" = yes; then
8944	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8945	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8946      else
8947	allow_undefined_flag=' -expect_unresolved \*'
8948	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8949      fi
8950      archive_cmds_need_lc='no'
8951      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8952      hardcode_libdir_separator=:
8953      ;;
8954
8955    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8956      if test "$GCC" = yes; then
8957	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8958	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8959	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8960      else
8961	allow_undefined_flag=' -expect_unresolved \*'
8962	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8963	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8964	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8965
8966	# Both c and cxx compiler support -rpath directly
8967	hardcode_libdir_flag_spec='-rpath $libdir'
8968      fi
8969      archive_cmds_need_lc='no'
8970      hardcode_libdir_separator=:
8971      ;;
8972
8973    solaris*)
8974      no_undefined_flag=' -z defs'
8975      if test "$GCC" = yes; then
8976	wlarc='${wl}'
8977	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8978	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8979	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8980      else
8981	case `$CC -V 2>&1` in
8982	*"Compilers 5.0"*)
8983	  wlarc=''
8984	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8985	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8986	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8987	  ;;
8988	*)
8989	  wlarc='${wl}'
8990	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8991	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8992	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8993	  ;;
8994	esac
8995      fi
8996      hardcode_libdir_flag_spec='-R$libdir'
8997      hardcode_shlibpath_var=no
8998      case $host_os in
8999      solaris2.[0-5] | solaris2.[0-5].*) ;;
9000      *)
9001	# The compiler driver will combine and reorder linker options,
9002	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9003	# but is careful enough not to reorder.
9004	# Supported since Solaris 2.6 (maybe 2.5.1?)
9005	if test "$GCC" = yes; then
9006	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9007	else
9008	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9009	fi
9010	;;
9011      esac
9012      link_all_deplibs=yes
9013      ;;
9014
9015    sunos4*)
9016      if test "x$host_vendor" = xsequent; then
9017	# Use $CC to link under sequent, because it throws in some extra .o
9018	# files that make .init and .fini sections work.
9019	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9020      else
9021	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9022      fi
9023      hardcode_libdir_flag_spec='-L$libdir'
9024      hardcode_direct=yes
9025      hardcode_minus_L=yes
9026      hardcode_shlibpath_var=no
9027      ;;
9028
9029    sysv4)
9030      case $host_vendor in
9031	sni)
9032	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9033	  hardcode_direct=yes # is this really true???
9034	;;
9035	siemens)
9036	  ## LD is ld it makes a PLAMLIB
9037	  ## CC just makes a GrossModule.
9038	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9039	  reload_cmds='$CC -r -o $output$reload_objs'
9040	  hardcode_direct=no
9041        ;;
9042	motorola)
9043	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9044	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9045	;;
9046      esac
9047      runpath_var='LD_RUN_PATH'
9048      hardcode_shlibpath_var=no
9049      ;;
9050
9051    sysv4.3*)
9052      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9053      hardcode_shlibpath_var=no
9054      export_dynamic_flag_spec='-Bexport'
9055      ;;
9056
9057    sysv4*MP*)
9058      if test -d /usr/nec; then
9059	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9060	hardcode_shlibpath_var=no
9061	runpath_var=LD_RUN_PATH
9062	hardcode_runpath_var=yes
9063	ld_shlibs=yes
9064      fi
9065      ;;
9066
9067    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9068      no_undefined_flag='${wl}-z,text'
9069      archive_cmds_need_lc=no
9070      hardcode_shlibpath_var=no
9071      runpath_var='LD_RUN_PATH'
9072
9073      if test "$GCC" = yes; then
9074	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9075	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9076      else
9077	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9078	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9079      fi
9080      ;;
9081
9082    sysv5* | sco3.2v5* | sco5v6*)
9083      # Note: We can NOT use -z defs as we might desire, because we do not
9084      # link with -lc, and that would cause any symbols used from libc to
9085      # always be unresolved, which means just about no library would
9086      # ever link correctly.  If we're not using GNU ld we use -z text
9087      # though, which does catch some bad symbols but isn't as heavy-handed
9088      # as -z defs.
9089      no_undefined_flag='${wl}-z,text'
9090      allow_undefined_flag='${wl}-z,nodefs'
9091      archive_cmds_need_lc=no
9092      hardcode_shlibpath_var=no
9093      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9094      hardcode_libdir_separator=':'
9095      link_all_deplibs=yes
9096      export_dynamic_flag_spec='${wl}-Bexport'
9097      runpath_var='LD_RUN_PATH'
9098
9099      if test "$GCC" = yes; then
9100	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9101	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9102      else
9103	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9104	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9105      fi
9106      ;;
9107
9108    uts4*)
9109      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9110      hardcode_libdir_flag_spec='-L$libdir'
9111      hardcode_shlibpath_var=no
9112      ;;
9113
9114    *)
9115      ld_shlibs=no
9116      ;;
9117    esac
9118
9119    if test x$host_vendor = xsni; then
9120      case $host in
9121      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9122	export_dynamic_flag_spec='${wl}-Blargedynsym'
9123	;;
9124      esac
9125    fi
9126  fi
9127
9128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9129$as_echo "$ld_shlibs" >&6; }
9130test "$ld_shlibs" = no && can_build_shared=no
9131
9132with_gnu_ld=$with_gnu_ld
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148#
9149# Do we need to explicitly link libc?
9150#
9151case "x$archive_cmds_need_lc" in
9152x|xyes)
9153  # Assume -lc should be added
9154  archive_cmds_need_lc=yes
9155
9156  if test "$enable_shared" = yes && test "$GCC" = yes; then
9157    case $archive_cmds in
9158    *'~'*)
9159      # FIXME: we may have to deal with multi-command sequences.
9160      ;;
9161    '$CC '*)
9162      # Test whether the compiler implicitly links with -lc since on some
9163      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9164      # to ld, don't add -lc before -lgcc.
9165      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9166$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9167      $RM conftest*
9168      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9169
9170      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9171  (eval $ac_compile) 2>&5
9172  ac_status=$?
9173  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9174  test $ac_status = 0; } 2>conftest.err; then
9175        soname=conftest
9176        lib=conftest
9177        libobjs=conftest.$ac_objext
9178        deplibs=
9179        wl=$lt_prog_compiler_wl
9180	pic_flag=$lt_prog_compiler_pic
9181        compiler_flags=-v
9182        linker_flags=-v
9183        verstring=
9184        output_objdir=.
9185        libname=conftest
9186        lt_save_allow_undefined_flag=$allow_undefined_flag
9187        allow_undefined_flag=
9188        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9189  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9190  ac_status=$?
9191  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9192  test $ac_status = 0; }
9193        then
9194	  archive_cmds_need_lc=no
9195        else
9196	  archive_cmds_need_lc=yes
9197        fi
9198        allow_undefined_flag=$lt_save_allow_undefined_flag
9199      else
9200        cat conftest.err 1>&5
9201      fi
9202      $RM conftest*
9203      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9204$as_echo "$archive_cmds_need_lc" >&6; }
9205      ;;
9206    esac
9207  fi
9208  ;;
9209esac
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9368$as_echo_n "checking dynamic linker characteristics... " >&6; }
9369
9370if test "$GCC" = yes; then
9371  case $host_os in
9372    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9373    *) lt_awk_arg="/^libraries:/" ;;
9374  esac
9375  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9376  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9377    # if the path contains ";" then we assume it to be the separator
9378    # otherwise default to the standard path separator (i.e. ":") - it is
9379    # assumed that no part of a normal pathname contains ";" but that should
9380    # okay in the real world where ";" in dirpaths is itself problematic.
9381    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9382  else
9383    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9384  fi
9385  # Ok, now we have the path, separated by spaces, we can step through it
9386  # and add multilib dir if necessary.
9387  lt_tmp_lt_search_path_spec=
9388  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9389  for lt_sys_path in $lt_search_path_spec; do
9390    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9391      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9392    else
9393      test -d "$lt_sys_path" && \
9394	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9395    fi
9396  done
9397  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9398BEGIN {RS=" "; FS="/|\n";} {
9399  lt_foo="";
9400  lt_count=0;
9401  for (lt_i = NF; lt_i > 0; lt_i--) {
9402    if ($lt_i != "" && $lt_i != ".") {
9403      if ($lt_i == "..") {
9404        lt_count++;
9405      } else {
9406        if (lt_count == 0) {
9407          lt_foo="/" $lt_i lt_foo;
9408        } else {
9409          lt_count--;
9410        }
9411      }
9412    }
9413  }
9414  if (lt_foo != "") { lt_freq[lt_foo]++; }
9415  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9416}'`
9417  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9418else
9419  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9420fi
9421library_names_spec=
9422libname_spec='lib$name'
9423soname_spec=
9424shrext_cmds=".so"
9425postinstall_cmds=
9426postuninstall_cmds=
9427finish_cmds=
9428finish_eval=
9429shlibpath_var=
9430shlibpath_overrides_runpath=unknown
9431version_type=none
9432dynamic_linker="$host_os ld.so"
9433sys_lib_dlsearch_path_spec="/lib /usr/lib"
9434need_lib_prefix=unknown
9435hardcode_into_libs=no
9436
9437# when you set need_version to no, make sure it does not cause -set_version
9438# flags to be left without arguments
9439need_version=unknown
9440
9441case $host_os in
9442aix3*)
9443  version_type=linux
9444  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9445  shlibpath_var=LIBPATH
9446
9447  # AIX 3 has no versioning support, so we append a major version to the name.
9448  soname_spec='${libname}${release}${shared_ext}$major'
9449  ;;
9450
9451aix[4-9]*)
9452  version_type=linux
9453  need_lib_prefix=no
9454  need_version=no
9455  hardcode_into_libs=yes
9456  if test "$host_cpu" = ia64; then
9457    # AIX 5 supports IA64
9458    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9459    shlibpath_var=LD_LIBRARY_PATH
9460  else
9461    # With GCC up to 2.95.x, collect2 would create an import file
9462    # for dependence libraries.  The import file would start with
9463    # the line `#! .'.  This would cause the generated library to
9464    # depend on `.', always an invalid library.  This was fixed in
9465    # development snapshots of GCC prior to 3.0.
9466    case $host_os in
9467      aix4 | aix4.[01] | aix4.[01].*)
9468      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9469	   echo ' yes '
9470	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9471	:
9472      else
9473	can_build_shared=no
9474      fi
9475      ;;
9476    esac
9477    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9478    # soname into executable. Probably we can add versioning support to
9479    # collect2, so additional links can be useful in future.
9480    if test "$aix_use_runtimelinking" = yes; then
9481      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9482      # instead of lib<name>.a to let people know that these are not
9483      # typical AIX shared libraries.
9484      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485    else
9486      # We preserve .a as extension for shared libraries through AIX4.2
9487      # and later when we are not doing run time linking.
9488      library_names_spec='${libname}${release}.a $libname.a'
9489      soname_spec='${libname}${release}${shared_ext}$major'
9490    fi
9491    shlibpath_var=LIBPATH
9492  fi
9493  ;;
9494
9495amigaos*)
9496  case $host_cpu in
9497  powerpc)
9498    # Since July 2007 AmigaOS4 officially supports .so libraries.
9499    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9500    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9501    ;;
9502  m68k)
9503    library_names_spec='$libname.ixlibrary $libname.a'
9504    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9505    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'
9506    ;;
9507  esac
9508  ;;
9509
9510beos*)
9511  library_names_spec='${libname}${shared_ext}'
9512  dynamic_linker="$host_os ld.so"
9513  shlibpath_var=LIBRARY_PATH
9514  ;;
9515
9516bsdi[45]*)
9517  version_type=linux
9518  need_version=no
9519  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9520  soname_spec='${libname}${release}${shared_ext}$major'
9521  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9522  shlibpath_var=LD_LIBRARY_PATH
9523  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9524  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9525  # the default ld.so.conf also contains /usr/contrib/lib and
9526  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9527  # libtool to hard-code these into programs
9528  ;;
9529
9530cygwin* | mingw* | pw32* | cegcc*)
9531  version_type=windows
9532  shrext_cmds=".dll"
9533  need_version=no
9534  need_lib_prefix=no
9535
9536  case $GCC,$host_os in
9537  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9538    library_names_spec='$libname.dll.a'
9539    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9540    postinstall_cmds='base_file=`basename \${file}`~
9541      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9542      dldir=$destdir/`dirname \$dlpath`~
9543      test -d \$dldir || mkdir -p \$dldir~
9544      $install_prog $dir/$dlname \$dldir/$dlname~
9545      chmod a+x \$dldir/$dlname~
9546      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9547        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9548      fi'
9549    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9550      dlpath=$dir/\$dldll~
9551       $RM \$dlpath'
9552    shlibpath_overrides_runpath=yes
9553
9554    case $host_os in
9555    cygwin*)
9556      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9557      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9558      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9559      ;;
9560    mingw* | cegcc*)
9561      # MinGW DLLs use traditional 'lib' prefix
9562      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9563      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9564      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9565        # It is most probably a Windows format PATH printed by
9566        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9567        # path with ; separators, and with drive letters. We can handle the
9568        # drive letters (cygwin fileutils understands them), so leave them,
9569        # especially as we might pass files found there to a mingw objdump,
9570        # which wouldn't understand a cygwinified path. Ahh.
9571        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9572      else
9573        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9574      fi
9575      ;;
9576    pw32*)
9577      # pw32 DLLs use 'pw' prefix rather than 'lib'
9578      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9579      ;;
9580    esac
9581    ;;
9582
9583  *)
9584    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9585    ;;
9586  esac
9587  dynamic_linker='Win32 ld.exe'
9588  # FIXME: first we should search . and the directory the executable is in
9589  shlibpath_var=PATH
9590  ;;
9591
9592darwin* | rhapsody*)
9593  dynamic_linker="$host_os dyld"
9594  version_type=darwin
9595  need_lib_prefix=no
9596  need_version=no
9597  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9598  soname_spec='${libname}${release}${major}$shared_ext'
9599  shlibpath_overrides_runpath=yes
9600  shlibpath_var=DYLD_LIBRARY_PATH
9601  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9602
9603  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9604  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9605  ;;
9606
9607dgux*)
9608  version_type=linux
9609  need_lib_prefix=no
9610  need_version=no
9611  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9612  soname_spec='${libname}${release}${shared_ext}$major'
9613  shlibpath_var=LD_LIBRARY_PATH
9614  ;;
9615
9616freebsd1*)
9617  dynamic_linker=no
9618  ;;
9619
9620freebsd* | dragonfly*)
9621  # DragonFly does not have aout.  When/if they implement a new
9622  # versioning mechanism, adjust this.
9623  if test -x /usr/bin/objformat; then
9624    objformat=`/usr/bin/objformat`
9625  else
9626    case $host_os in
9627    freebsd[123]*) objformat=aout ;;
9628    *) objformat=elf ;;
9629    esac
9630  fi
9631  version_type=freebsd-$objformat
9632  case $version_type in
9633    freebsd-elf*)
9634      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9635      need_version=no
9636      need_lib_prefix=no
9637      ;;
9638    freebsd-*)
9639      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9640      need_version=yes
9641      ;;
9642  esac
9643  shlibpath_var=LD_LIBRARY_PATH
9644  case $host_os in
9645  freebsd2*)
9646    shlibpath_overrides_runpath=yes
9647    ;;
9648  freebsd3.[01]* | freebsdelf3.[01]*)
9649    shlibpath_overrides_runpath=yes
9650    hardcode_into_libs=yes
9651    ;;
9652  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9653  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9654    shlibpath_overrides_runpath=no
9655    hardcode_into_libs=yes
9656    ;;
9657  *) # from 4.6 on, and DragonFly
9658    shlibpath_overrides_runpath=yes
9659    hardcode_into_libs=yes
9660    ;;
9661  esac
9662  ;;
9663
9664gnu*)
9665  version_type=linux
9666  need_lib_prefix=no
9667  need_version=no
9668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9669  soname_spec='${libname}${release}${shared_ext}$major'
9670  shlibpath_var=LD_LIBRARY_PATH
9671  hardcode_into_libs=yes
9672  ;;
9673
9674hpux9* | hpux10* | hpux11*)
9675  # Give a soname corresponding to the major version so that dld.sl refuses to
9676  # link against other versions.
9677  version_type=sunos
9678  need_lib_prefix=no
9679  need_version=no
9680  case $host_cpu in
9681  ia64*)
9682    shrext_cmds='.so'
9683    hardcode_into_libs=yes
9684    dynamic_linker="$host_os dld.so"
9685    shlibpath_var=LD_LIBRARY_PATH
9686    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9687    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9688    soname_spec='${libname}${release}${shared_ext}$major'
9689    if test "X$HPUX_IA64_MODE" = X32; then
9690      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9691    else
9692      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9693    fi
9694    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9695    ;;
9696  hppa*64*)
9697    shrext_cmds='.sl'
9698    hardcode_into_libs=yes
9699    dynamic_linker="$host_os dld.sl"
9700    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9701    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9702    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9703    soname_spec='${libname}${release}${shared_ext}$major'
9704    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9705    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9706    ;;
9707  *)
9708    shrext_cmds='.sl'
9709    dynamic_linker="$host_os dld.sl"
9710    shlibpath_var=SHLIB_PATH
9711    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9712    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9713    soname_spec='${libname}${release}${shared_ext}$major'
9714    ;;
9715  esac
9716  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9717  postinstall_cmds='chmod 555 $lib'
9718  ;;
9719
9720interix[3-9]*)
9721  version_type=linux
9722  need_lib_prefix=no
9723  need_version=no
9724  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9725  soname_spec='${libname}${release}${shared_ext}$major'
9726  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9727  shlibpath_var=LD_LIBRARY_PATH
9728  shlibpath_overrides_runpath=no
9729  hardcode_into_libs=yes
9730  ;;
9731
9732irix5* | irix6* | nonstopux*)
9733  case $host_os in
9734    nonstopux*) version_type=nonstopux ;;
9735    *)
9736	if test "$lt_cv_prog_gnu_ld" = yes; then
9737		version_type=linux
9738	else
9739		version_type=irix
9740	fi ;;
9741  esac
9742  need_lib_prefix=no
9743  need_version=no
9744  soname_spec='${libname}${release}${shared_ext}$major'
9745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9746  case $host_os in
9747  irix5* | nonstopux*)
9748    libsuff= shlibsuff=
9749    ;;
9750  *)
9751    case $LD in # libtool.m4 will add one of these switches to LD
9752    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9753      libsuff= shlibsuff= libmagic=32-bit;;
9754    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9755      libsuff=32 shlibsuff=N32 libmagic=N32;;
9756    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9757      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9758    *) libsuff= shlibsuff= libmagic=never-match;;
9759    esac
9760    ;;
9761  esac
9762  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9763  shlibpath_overrides_runpath=no
9764  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9765  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9766  hardcode_into_libs=yes
9767  ;;
9768
9769# No shared lib support for Linux oldld, aout, or coff.
9770linux*oldld* | linux*aout* | linux*coff*)
9771  dynamic_linker=no
9772  ;;
9773
9774# This must be Linux ELF.
9775linux* | k*bsd*-gnu)
9776  version_type=linux
9777  need_lib_prefix=no
9778  need_version=no
9779  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9780  soname_spec='${libname}${release}${shared_ext}$major'
9781  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9782  shlibpath_var=LD_LIBRARY_PATH
9783  shlibpath_overrides_runpath=no
9784  # Some binutils ld are patched to set DT_RUNPATH
9785  save_LDFLAGS=$LDFLAGS
9786  save_libdir=$libdir
9787  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9788       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790/* end confdefs.h.  */
9791
9792int
9793main ()
9794{
9795
9796  ;
9797  return 0;
9798}
9799_ACEOF
9800if ac_fn_c_try_link "$LINENO"; then :
9801  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9802  shlibpath_overrides_runpath=yes
9803fi
9804fi
9805rm -f core conftest.err conftest.$ac_objext \
9806    conftest$ac_exeext conftest.$ac_ext
9807  LDFLAGS=$save_LDFLAGS
9808  libdir=$save_libdir
9809
9810  # This implies no fast_install, which is unacceptable.
9811  # Some rework will be needed to allow for fast_install
9812  # before this can be enabled.
9813  hardcode_into_libs=yes
9814
9815  # Append ld.so.conf contents to the search path
9816  if test -f /etc/ld.so.conf; then
9817    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9818    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9819  fi
9820
9821  # We used to test for /lib/ld.so.1 and disable shared libraries on
9822  # powerpc, because MkLinux only supported shared libraries with the
9823  # GNU dynamic linker.  Since this was broken with cross compilers,
9824  # most powerpc-linux boxes support dynamic linking these days and
9825  # people can always --disable-shared, the test was removed, and we
9826  # assume the GNU/Linux dynamic linker is in use.
9827  dynamic_linker='GNU/Linux ld.so'
9828  ;;
9829
9830netbsd*)
9831  version_type=sunos
9832  need_lib_prefix=no
9833  need_version=no
9834  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9835    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9836    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9837    dynamic_linker='NetBSD (a.out) ld.so'
9838  else
9839    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9840    soname_spec='${libname}${release}${shared_ext}$major'
9841    dynamic_linker='NetBSD ld.elf_so'
9842  fi
9843  shlibpath_var=LD_LIBRARY_PATH
9844  shlibpath_overrides_runpath=yes
9845  hardcode_into_libs=yes
9846  ;;
9847
9848newsos6)
9849  version_type=linux
9850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9851  shlibpath_var=LD_LIBRARY_PATH
9852  shlibpath_overrides_runpath=yes
9853  ;;
9854
9855*nto* | *qnx*)
9856  version_type=qnx
9857  need_lib_prefix=no
9858  need_version=no
9859  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9860  soname_spec='${libname}${release}${shared_ext}$major'
9861  shlibpath_var=LD_LIBRARY_PATH
9862  shlibpath_overrides_runpath=no
9863  hardcode_into_libs=yes
9864  dynamic_linker='ldqnx.so'
9865  ;;
9866
9867openbsd*)
9868  version_type=sunos
9869  sys_lib_dlsearch_path_spec="/usr/lib"
9870  need_lib_prefix=no
9871  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9872  case $host_os in
9873    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9874    *)				need_version=no  ;;
9875  esac
9876  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9877  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9878  shlibpath_var=LD_LIBRARY_PATH
9879  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9880    case $host_os in
9881      openbsd2.[89] | openbsd2.[89].*)
9882	shlibpath_overrides_runpath=no
9883	;;
9884      *)
9885	shlibpath_overrides_runpath=yes
9886	;;
9887      esac
9888  else
9889    shlibpath_overrides_runpath=yes
9890  fi
9891  ;;
9892
9893os2*)
9894  libname_spec='$name'
9895  shrext_cmds=".dll"
9896  need_lib_prefix=no
9897  library_names_spec='$libname${shared_ext} $libname.a'
9898  dynamic_linker='OS/2 ld.exe'
9899  shlibpath_var=LIBPATH
9900  ;;
9901
9902osf3* | osf4* | osf5*)
9903  version_type=osf
9904  need_lib_prefix=no
9905  need_version=no
9906  soname_spec='${libname}${release}${shared_ext}$major'
9907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9908  shlibpath_var=LD_LIBRARY_PATH
9909  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9910  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9911  ;;
9912
9913rdos*)
9914  dynamic_linker=no
9915  ;;
9916
9917solaris*)
9918  version_type=linux
9919  need_lib_prefix=no
9920  need_version=no
9921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9922  soname_spec='${libname}${release}${shared_ext}$major'
9923  shlibpath_var=LD_LIBRARY_PATH
9924  shlibpath_overrides_runpath=yes
9925  hardcode_into_libs=yes
9926  # ldd complains unless libraries are executable
9927  postinstall_cmds='chmod +x $lib'
9928  ;;
9929
9930sunos4*)
9931  version_type=sunos
9932  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9933  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9934  shlibpath_var=LD_LIBRARY_PATH
9935  shlibpath_overrides_runpath=yes
9936  if test "$with_gnu_ld" = yes; then
9937    need_lib_prefix=no
9938  fi
9939  need_version=yes
9940  ;;
9941
9942sysv4 | sysv4.3*)
9943  version_type=linux
9944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9945  soname_spec='${libname}${release}${shared_ext}$major'
9946  shlibpath_var=LD_LIBRARY_PATH
9947  case $host_vendor in
9948    sni)
9949      shlibpath_overrides_runpath=no
9950      need_lib_prefix=no
9951      runpath_var=LD_RUN_PATH
9952      ;;
9953    siemens)
9954      need_lib_prefix=no
9955      ;;
9956    motorola)
9957      need_lib_prefix=no
9958      need_version=no
9959      shlibpath_overrides_runpath=no
9960      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9961      ;;
9962  esac
9963  ;;
9964
9965sysv4*MP*)
9966  if test -d /usr/nec ;then
9967    version_type=linux
9968    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9969    soname_spec='$libname${shared_ext}.$major'
9970    shlibpath_var=LD_LIBRARY_PATH
9971  fi
9972  ;;
9973
9974sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9975  version_type=freebsd-elf
9976  need_lib_prefix=no
9977  need_version=no
9978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9979  soname_spec='${libname}${release}${shared_ext}$major'
9980  shlibpath_var=LD_LIBRARY_PATH
9981  shlibpath_overrides_runpath=yes
9982  hardcode_into_libs=yes
9983  if test "$with_gnu_ld" = yes; then
9984    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9985  else
9986    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9987    case $host_os in
9988      sco3.2v5*)
9989        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9990	;;
9991    esac
9992  fi
9993  sys_lib_dlsearch_path_spec='/usr/lib'
9994  ;;
9995
9996tpf*)
9997  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9998  version_type=linux
9999  need_lib_prefix=no
10000  need_version=no
10001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10002  shlibpath_var=LD_LIBRARY_PATH
10003  shlibpath_overrides_runpath=no
10004  hardcode_into_libs=yes
10005  ;;
10006
10007uts4*)
10008  version_type=linux
10009  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10010  soname_spec='${libname}${release}${shared_ext}$major'
10011  shlibpath_var=LD_LIBRARY_PATH
10012  ;;
10013
10014*)
10015  dynamic_linker=no
10016  ;;
10017esac
10018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10019$as_echo "$dynamic_linker" >&6; }
10020test "$dynamic_linker" = no && can_build_shared=no
10021
10022variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10023if test "$GCC" = yes; then
10024  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10025fi
10026
10027if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10028  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10029fi
10030if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10031  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10032fi
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10121$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10122hardcode_action=
10123if test -n "$hardcode_libdir_flag_spec" ||
10124   test -n "$runpath_var" ||
10125   test "X$hardcode_automatic" = "Xyes" ; then
10126
10127  # We can hardcode non-existent directories.
10128  if test "$hardcode_direct" != no &&
10129     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10130     # have to relink, otherwise we might link with an installed library
10131     # when we should be linking with a yet-to-be-installed one
10132     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10133     test "$hardcode_minus_L" != no; then
10134    # Linking always hardcodes the temporary library directory.
10135    hardcode_action=relink
10136  else
10137    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10138    hardcode_action=immediate
10139  fi
10140else
10141  # We cannot hardcode anything, or else we can only hardcode existing
10142  # directories.
10143  hardcode_action=unsupported
10144fi
10145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10146$as_echo "$hardcode_action" >&6; }
10147
10148if test "$hardcode_action" = relink ||
10149   test "$inherit_rpath" = yes; then
10150  # Fast installation is not supported
10151  enable_fast_install=no
10152elif test "$shlibpath_overrides_runpath" = yes ||
10153     test "$enable_shared" = no; then
10154  # Fast installation is not necessary
10155  enable_fast_install=needless
10156fi
10157
10158
10159
10160
10161
10162
10163  if test "x$enable_dlopen" != xyes; then
10164  enable_dlopen=unknown
10165  enable_dlopen_self=unknown
10166  enable_dlopen_self_static=unknown
10167else
10168  lt_cv_dlopen=no
10169  lt_cv_dlopen_libs=
10170
10171  case $host_os in
10172  beos*)
10173    lt_cv_dlopen="load_add_on"
10174    lt_cv_dlopen_libs=
10175    lt_cv_dlopen_self=yes
10176    ;;
10177
10178  mingw* | pw32* | cegcc*)
10179    lt_cv_dlopen="LoadLibrary"
10180    lt_cv_dlopen_libs=
10181    ;;
10182
10183  cygwin*)
10184    lt_cv_dlopen="dlopen"
10185    lt_cv_dlopen_libs=
10186    ;;
10187
10188  darwin*)
10189  # if libdl is installed we need to link against it
10190    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10191$as_echo_n "checking for dlopen in -ldl... " >&6; }
10192if ${ac_cv_lib_dl_dlopen+:} false; then :
10193  $as_echo_n "(cached) " >&6
10194else
10195  ac_check_lib_save_LIBS=$LIBS
10196LIBS="-ldl  $LIBS"
10197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198/* end confdefs.h.  */
10199
10200/* Override any GCC internal prototype to avoid an error.
10201   Use char because int might match the return type of a GCC
10202   builtin and then its argument prototype would still apply.  */
10203#ifdef __cplusplus
10204extern "C"
10205#endif
10206char dlopen ();
10207int
10208main ()
10209{
10210return dlopen ();
10211  ;
10212  return 0;
10213}
10214_ACEOF
10215if ac_fn_c_try_link "$LINENO"; then :
10216  ac_cv_lib_dl_dlopen=yes
10217else
10218  ac_cv_lib_dl_dlopen=no
10219fi
10220rm -f core conftest.err conftest.$ac_objext \
10221    conftest$ac_exeext conftest.$ac_ext
10222LIBS=$ac_check_lib_save_LIBS
10223fi
10224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10225$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10226if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10227  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10228else
10229
10230    lt_cv_dlopen="dyld"
10231    lt_cv_dlopen_libs=
10232    lt_cv_dlopen_self=yes
10233
10234fi
10235
10236    ;;
10237
10238  *)
10239    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10240if test "x$ac_cv_func_shl_load" = xyes; then :
10241  lt_cv_dlopen="shl_load"
10242else
10243  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10244$as_echo_n "checking for shl_load in -ldld... " >&6; }
10245if ${ac_cv_lib_dld_shl_load+:} false; then :
10246  $as_echo_n "(cached) " >&6
10247else
10248  ac_check_lib_save_LIBS=$LIBS
10249LIBS="-ldld  $LIBS"
10250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10251/* end confdefs.h.  */
10252
10253/* Override any GCC internal prototype to avoid an error.
10254   Use char because int might match the return type of a GCC
10255   builtin and then its argument prototype would still apply.  */
10256#ifdef __cplusplus
10257extern "C"
10258#endif
10259char shl_load ();
10260int
10261main ()
10262{
10263return shl_load ();
10264  ;
10265  return 0;
10266}
10267_ACEOF
10268if ac_fn_c_try_link "$LINENO"; then :
10269  ac_cv_lib_dld_shl_load=yes
10270else
10271  ac_cv_lib_dld_shl_load=no
10272fi
10273rm -f core conftest.err conftest.$ac_objext \
10274    conftest$ac_exeext conftest.$ac_ext
10275LIBS=$ac_check_lib_save_LIBS
10276fi
10277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10278$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10279if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10280  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10281else
10282  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10283if test "x$ac_cv_func_dlopen" = xyes; then :
10284  lt_cv_dlopen="dlopen"
10285else
10286  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10287$as_echo_n "checking for dlopen in -ldl... " >&6; }
10288if ${ac_cv_lib_dl_dlopen+:} false; then :
10289  $as_echo_n "(cached) " >&6
10290else
10291  ac_check_lib_save_LIBS=$LIBS
10292LIBS="-ldl  $LIBS"
10293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10294/* end confdefs.h.  */
10295
10296/* Override any GCC internal prototype to avoid an error.
10297   Use char because int might match the return type of a GCC
10298   builtin and then its argument prototype would still apply.  */
10299#ifdef __cplusplus
10300extern "C"
10301#endif
10302char dlopen ();
10303int
10304main ()
10305{
10306return dlopen ();
10307  ;
10308  return 0;
10309}
10310_ACEOF
10311if ac_fn_c_try_link "$LINENO"; then :
10312  ac_cv_lib_dl_dlopen=yes
10313else
10314  ac_cv_lib_dl_dlopen=no
10315fi
10316rm -f core conftest.err conftest.$ac_objext \
10317    conftest$ac_exeext conftest.$ac_ext
10318LIBS=$ac_check_lib_save_LIBS
10319fi
10320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10321$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10322if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10323  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10324else
10325  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10326$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10327if ${ac_cv_lib_svld_dlopen+:} false; then :
10328  $as_echo_n "(cached) " >&6
10329else
10330  ac_check_lib_save_LIBS=$LIBS
10331LIBS="-lsvld  $LIBS"
10332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10333/* end confdefs.h.  */
10334
10335/* Override any GCC internal prototype to avoid an error.
10336   Use char because int might match the return type of a GCC
10337   builtin and then its argument prototype would still apply.  */
10338#ifdef __cplusplus
10339extern "C"
10340#endif
10341char dlopen ();
10342int
10343main ()
10344{
10345return dlopen ();
10346  ;
10347  return 0;
10348}
10349_ACEOF
10350if ac_fn_c_try_link "$LINENO"; then :
10351  ac_cv_lib_svld_dlopen=yes
10352else
10353  ac_cv_lib_svld_dlopen=no
10354fi
10355rm -f core conftest.err conftest.$ac_objext \
10356    conftest$ac_exeext conftest.$ac_ext
10357LIBS=$ac_check_lib_save_LIBS
10358fi
10359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10360$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10361if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10362  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10363else
10364  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10365$as_echo_n "checking for dld_link in -ldld... " >&6; }
10366if ${ac_cv_lib_dld_dld_link+:} false; then :
10367  $as_echo_n "(cached) " >&6
10368else
10369  ac_check_lib_save_LIBS=$LIBS
10370LIBS="-ldld  $LIBS"
10371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10372/* end confdefs.h.  */
10373
10374/* Override any GCC internal prototype to avoid an error.
10375   Use char because int might match the return type of a GCC
10376   builtin and then its argument prototype would still apply.  */
10377#ifdef __cplusplus
10378extern "C"
10379#endif
10380char dld_link ();
10381int
10382main ()
10383{
10384return dld_link ();
10385  ;
10386  return 0;
10387}
10388_ACEOF
10389if ac_fn_c_try_link "$LINENO"; then :
10390  ac_cv_lib_dld_dld_link=yes
10391else
10392  ac_cv_lib_dld_dld_link=no
10393fi
10394rm -f core conftest.err conftest.$ac_objext \
10395    conftest$ac_exeext conftest.$ac_ext
10396LIBS=$ac_check_lib_save_LIBS
10397fi
10398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10399$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10400if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10401  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10402fi
10403
10404
10405fi
10406
10407
10408fi
10409
10410
10411fi
10412
10413
10414fi
10415
10416
10417fi
10418
10419    ;;
10420  esac
10421
10422  if test "x$lt_cv_dlopen" != xno; then
10423    enable_dlopen=yes
10424  else
10425    enable_dlopen=no
10426  fi
10427
10428  case $lt_cv_dlopen in
10429  dlopen)
10430    save_CPPFLAGS="$CPPFLAGS"
10431    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10432
10433    save_LDFLAGS="$LDFLAGS"
10434    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10435
10436    save_LIBS="$LIBS"
10437    LIBS="$lt_cv_dlopen_libs $LIBS"
10438
10439    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10440$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10441if ${lt_cv_dlopen_self+:} false; then :
10442  $as_echo_n "(cached) " >&6
10443else
10444  	  if test "$cross_compiling" = yes; then :
10445  lt_cv_dlopen_self=cross
10446else
10447  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10448  lt_status=$lt_dlunknown
10449  cat > conftest.$ac_ext <<_LT_EOF
10450#line 10450 "configure"
10451#include "confdefs.h"
10452
10453#if HAVE_DLFCN_H
10454#include <dlfcn.h>
10455#endif
10456
10457#include <stdio.h>
10458
10459#ifdef RTLD_GLOBAL
10460#  define LT_DLGLOBAL		RTLD_GLOBAL
10461#else
10462#  ifdef DL_GLOBAL
10463#    define LT_DLGLOBAL		DL_GLOBAL
10464#  else
10465#    define LT_DLGLOBAL		0
10466#  endif
10467#endif
10468
10469/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10470   find out it does not work in some platform. */
10471#ifndef LT_DLLAZY_OR_NOW
10472#  ifdef RTLD_LAZY
10473#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10474#  else
10475#    ifdef DL_LAZY
10476#      define LT_DLLAZY_OR_NOW		DL_LAZY
10477#    else
10478#      ifdef RTLD_NOW
10479#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10480#      else
10481#        ifdef DL_NOW
10482#          define LT_DLLAZY_OR_NOW	DL_NOW
10483#        else
10484#          define LT_DLLAZY_OR_NOW	0
10485#        endif
10486#      endif
10487#    endif
10488#  endif
10489#endif
10490
10491void fnord() { int i=42;}
10492int main ()
10493{
10494  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10495  int status = $lt_dlunknown;
10496
10497  if (self)
10498    {
10499      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10500      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10501      /* dlclose (self); */
10502    }
10503  else
10504    puts (dlerror ());
10505
10506  return status;
10507}
10508_LT_EOF
10509  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10510  (eval $ac_link) 2>&5
10511  ac_status=$?
10512  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10513  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10514    (./conftest; exit; ) >&5 2>/dev/null
10515    lt_status=$?
10516    case x$lt_status in
10517      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10518      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10519      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10520    esac
10521  else :
10522    # compilation failed
10523    lt_cv_dlopen_self=no
10524  fi
10525fi
10526rm -fr conftest*
10527
10528
10529fi
10530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10531$as_echo "$lt_cv_dlopen_self" >&6; }
10532
10533    if test "x$lt_cv_dlopen_self" = xyes; then
10534      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10535      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10536$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10537if ${lt_cv_dlopen_self_static+:} false; then :
10538  $as_echo_n "(cached) " >&6
10539else
10540  	  if test "$cross_compiling" = yes; then :
10541  lt_cv_dlopen_self_static=cross
10542else
10543  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10544  lt_status=$lt_dlunknown
10545  cat > conftest.$ac_ext <<_LT_EOF
10546#line 10546 "configure"
10547#include "confdefs.h"
10548
10549#if HAVE_DLFCN_H
10550#include <dlfcn.h>
10551#endif
10552
10553#include <stdio.h>
10554
10555#ifdef RTLD_GLOBAL
10556#  define LT_DLGLOBAL		RTLD_GLOBAL
10557#else
10558#  ifdef DL_GLOBAL
10559#    define LT_DLGLOBAL		DL_GLOBAL
10560#  else
10561#    define LT_DLGLOBAL		0
10562#  endif
10563#endif
10564
10565/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10566   find out it does not work in some platform. */
10567#ifndef LT_DLLAZY_OR_NOW
10568#  ifdef RTLD_LAZY
10569#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10570#  else
10571#    ifdef DL_LAZY
10572#      define LT_DLLAZY_OR_NOW		DL_LAZY
10573#    else
10574#      ifdef RTLD_NOW
10575#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10576#      else
10577#        ifdef DL_NOW
10578#          define LT_DLLAZY_OR_NOW	DL_NOW
10579#        else
10580#          define LT_DLLAZY_OR_NOW	0
10581#        endif
10582#      endif
10583#    endif
10584#  endif
10585#endif
10586
10587void fnord() { int i=42;}
10588int main ()
10589{
10590  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10591  int status = $lt_dlunknown;
10592
10593  if (self)
10594    {
10595      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10596      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10597      /* dlclose (self); */
10598    }
10599  else
10600    puts (dlerror ());
10601
10602  return status;
10603}
10604_LT_EOF
10605  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10606  (eval $ac_link) 2>&5
10607  ac_status=$?
10608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10609  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10610    (./conftest; exit; ) >&5 2>/dev/null
10611    lt_status=$?
10612    case x$lt_status in
10613      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10614      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10615      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10616    esac
10617  else :
10618    # compilation failed
10619    lt_cv_dlopen_self_static=no
10620  fi
10621fi
10622rm -fr conftest*
10623
10624
10625fi
10626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10627$as_echo "$lt_cv_dlopen_self_static" >&6; }
10628    fi
10629
10630    CPPFLAGS="$save_CPPFLAGS"
10631    LDFLAGS="$save_LDFLAGS"
10632    LIBS="$save_LIBS"
10633    ;;
10634  esac
10635
10636  case $lt_cv_dlopen_self in
10637  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10638  *) enable_dlopen_self=unknown ;;
10639  esac
10640
10641  case $lt_cv_dlopen_self_static in
10642  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10643  *) enable_dlopen_self_static=unknown ;;
10644  esac
10645fi
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663striplib=
10664old_striplib=
10665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10666$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10667if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10668  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10669  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10671$as_echo "yes" >&6; }
10672else
10673# FIXME - insert some real tests, host_os isn't really good enough
10674  case $host_os in
10675  darwin*)
10676    if test -n "$STRIP" ; then
10677      striplib="$STRIP -x"
10678      old_striplib="$STRIP -S"
10679      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10680$as_echo "yes" >&6; }
10681    else
10682      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10683$as_echo "no" >&6; }
10684    fi
10685    ;;
10686  *)
10687    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10688$as_echo "no" >&6; }
10689    ;;
10690  esac
10691fi
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704  # Report which library types will actually be built
10705  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10706$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10708$as_echo "$can_build_shared" >&6; }
10709
10710  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10711$as_echo_n "checking whether to build shared libraries... " >&6; }
10712  test "$can_build_shared" = "no" && enable_shared=no
10713
10714  # On AIX, shared libraries and static libraries use the same namespace, and
10715  # are all built from PIC.
10716  case $host_os in
10717  aix3*)
10718    test "$enable_shared" = yes && enable_static=no
10719    if test -n "$RANLIB"; then
10720      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10721      postinstall_cmds='$RANLIB $lib'
10722    fi
10723    ;;
10724
10725  aix[4-9]*)
10726    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10727      test "$enable_shared" = yes && enable_static=no
10728    fi
10729    ;;
10730  esac
10731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10732$as_echo "$enable_shared" >&6; }
10733
10734  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10735$as_echo_n "checking whether to build static libraries... " >&6; }
10736  # Make sure either enable_shared or enable_static is yes.
10737  test "$enable_shared" = yes || enable_static=yes
10738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10739$as_echo "$enable_static" >&6; }
10740
10741
10742
10743
10744fi
10745ac_ext=c
10746ac_cpp='$CPP $CPPFLAGS'
10747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10749ac_compiler_gnu=$ac_cv_c_compiler_gnu
10750
10751CC="$lt_save_CC"
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765        ac_config_commands="$ac_config_commands libtool"
10766
10767
10768
10769
10770# Only expand once:
10771
10772
10773
10774# Check whether --enable-tools was given.
10775if test "${enable_tools+set}" = set; then :
10776  enableval=$enable_tools; case $enableval in
10777     yes|no) enable_tools=${enableval} ;;
10778     *) as_fn_error $? "Invalid value passed to --enable-tools" "$LINENO" 5 ;;
10779     esac
10780else
10781  enable_tools=no
10782fi
10783
10784ENABLE_TOOLS=${enable_tools}
10785
10786 if test "${enable_tools}" = yes; then
10787  ENABLE_TOOLS_TRUE=
10788  ENABLE_TOOLS_FALSE='#'
10789else
10790  ENABLE_TOOLS_TRUE='#'
10791  ENABLE_TOOLS_FALSE=
10792fi
10793
10794
10795
10796ac_ext=c
10797ac_cpp='$CPP $CPPFLAGS'
10798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10800ac_compiler_gnu=$ac_cv_c_compiler_gnu
10801
10802ac_ext=c
10803ac_cpp='$CPP $CPPFLAGS'
10804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10806ac_compiler_gnu=$ac_cv_c_compiler_gnu
10807if test -n "$ac_tool_prefix"; then
10808  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10809set dummy ${ac_tool_prefix}gcc; ac_word=$2
10810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10811$as_echo_n "checking for $ac_word... " >&6; }
10812if ${ac_cv_prog_CC+:} false; then :
10813  $as_echo_n "(cached) " >&6
10814else
10815  if test -n "$CC"; then
10816  ac_cv_prog_CC="$CC" # Let the user override the test.
10817else
10818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10819for as_dir in $PATH
10820do
10821  IFS=$as_save_IFS
10822  test -z "$as_dir" && as_dir=.
10823    for ac_exec_ext in '' $ac_executable_extensions; do
10824  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10825    ac_cv_prog_CC="${ac_tool_prefix}gcc"
10826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10827    break 2
10828  fi
10829done
10830  done
10831IFS=$as_save_IFS
10832
10833fi
10834fi
10835CC=$ac_cv_prog_CC
10836if test -n "$CC"; then
10837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10838$as_echo "$CC" >&6; }
10839else
10840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10841$as_echo "no" >&6; }
10842fi
10843
10844
10845fi
10846if test -z "$ac_cv_prog_CC"; then
10847  ac_ct_CC=$CC
10848  # Extract the first word of "gcc", so it can be a program name with args.
10849set dummy gcc; ac_word=$2
10850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10851$as_echo_n "checking for $ac_word... " >&6; }
10852if ${ac_cv_prog_ac_ct_CC+:} false; then :
10853  $as_echo_n "(cached) " >&6
10854else
10855  if test -n "$ac_ct_CC"; then
10856  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10857else
10858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10859for as_dir in $PATH
10860do
10861  IFS=$as_save_IFS
10862  test -z "$as_dir" && as_dir=.
10863    for ac_exec_ext in '' $ac_executable_extensions; do
10864  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10865    ac_cv_prog_ac_ct_CC="gcc"
10866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10867    break 2
10868  fi
10869done
10870  done
10871IFS=$as_save_IFS
10872
10873fi
10874fi
10875ac_ct_CC=$ac_cv_prog_ac_ct_CC
10876if test -n "$ac_ct_CC"; then
10877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10878$as_echo "$ac_ct_CC" >&6; }
10879else
10880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10881$as_echo "no" >&6; }
10882fi
10883
10884  if test "x$ac_ct_CC" = x; then
10885    CC=""
10886  else
10887    case $cross_compiling:$ac_tool_warned in
10888yes:)
10889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10891ac_tool_warned=yes ;;
10892esac
10893    CC=$ac_ct_CC
10894  fi
10895else
10896  CC="$ac_cv_prog_CC"
10897fi
10898
10899if test -z "$CC"; then
10900          if test -n "$ac_tool_prefix"; then
10901    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10902set dummy ${ac_tool_prefix}cc; ac_word=$2
10903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10904$as_echo_n "checking for $ac_word... " >&6; }
10905if ${ac_cv_prog_CC+:} false; then :
10906  $as_echo_n "(cached) " >&6
10907else
10908  if test -n "$CC"; then
10909  ac_cv_prog_CC="$CC" # Let the user override the test.
10910else
10911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10912for as_dir in $PATH
10913do
10914  IFS=$as_save_IFS
10915  test -z "$as_dir" && as_dir=.
10916    for ac_exec_ext in '' $ac_executable_extensions; do
10917  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10918    ac_cv_prog_CC="${ac_tool_prefix}cc"
10919    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10920    break 2
10921  fi
10922done
10923  done
10924IFS=$as_save_IFS
10925
10926fi
10927fi
10928CC=$ac_cv_prog_CC
10929if test -n "$CC"; then
10930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10931$as_echo "$CC" >&6; }
10932else
10933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10934$as_echo "no" >&6; }
10935fi
10936
10937
10938  fi
10939fi
10940if test -z "$CC"; then
10941  # Extract the first word of "cc", so it can be a program name with args.
10942set dummy cc; ac_word=$2
10943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10944$as_echo_n "checking for $ac_word... " >&6; }
10945if ${ac_cv_prog_CC+:} false; then :
10946  $as_echo_n "(cached) " >&6
10947else
10948  if test -n "$CC"; then
10949  ac_cv_prog_CC="$CC" # Let the user override the test.
10950else
10951  ac_prog_rejected=no
10952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953for as_dir in $PATH
10954do
10955  IFS=$as_save_IFS
10956  test -z "$as_dir" && as_dir=.
10957    for ac_exec_ext in '' $ac_executable_extensions; do
10958  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10959    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10960       ac_prog_rejected=yes
10961       continue
10962     fi
10963    ac_cv_prog_CC="cc"
10964    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10965    break 2
10966  fi
10967done
10968  done
10969IFS=$as_save_IFS
10970
10971if test $ac_prog_rejected = yes; then
10972  # We found a bogon in the path, so make sure we never use it.
10973  set dummy $ac_cv_prog_CC
10974  shift
10975  if test $# != 0; then
10976    # We chose a different compiler from the bogus one.
10977    # However, it has the same basename, so the bogon will be chosen
10978    # first if we set CC to just the basename; use the full file name.
10979    shift
10980    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10981  fi
10982fi
10983fi
10984fi
10985CC=$ac_cv_prog_CC
10986if test -n "$CC"; then
10987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10988$as_echo "$CC" >&6; }
10989else
10990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991$as_echo "no" >&6; }
10992fi
10993
10994
10995fi
10996if test -z "$CC"; then
10997  if test -n "$ac_tool_prefix"; then
10998  for ac_prog in cl.exe
10999  do
11000    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11001set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11003$as_echo_n "checking for $ac_word... " >&6; }
11004if ${ac_cv_prog_CC+:} false; then :
11005  $as_echo_n "(cached) " >&6
11006else
11007  if test -n "$CC"; then
11008  ac_cv_prog_CC="$CC" # Let the user override the test.
11009else
11010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11011for as_dir in $PATH
11012do
11013  IFS=$as_save_IFS
11014  test -z "$as_dir" && as_dir=.
11015    for ac_exec_ext in '' $ac_executable_extensions; do
11016  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11017    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11018    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11019    break 2
11020  fi
11021done
11022  done
11023IFS=$as_save_IFS
11024
11025fi
11026fi
11027CC=$ac_cv_prog_CC
11028if test -n "$CC"; then
11029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11030$as_echo "$CC" >&6; }
11031else
11032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033$as_echo "no" >&6; }
11034fi
11035
11036
11037    test -n "$CC" && break
11038  done
11039fi
11040if test -z "$CC"; then
11041  ac_ct_CC=$CC
11042  for ac_prog in cl.exe
11043do
11044  # Extract the first word of "$ac_prog", so it can be a program name with args.
11045set dummy $ac_prog; ac_word=$2
11046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11047$as_echo_n "checking for $ac_word... " >&6; }
11048if ${ac_cv_prog_ac_ct_CC+:} false; then :
11049  $as_echo_n "(cached) " >&6
11050else
11051  if test -n "$ac_ct_CC"; then
11052  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11053else
11054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11055for as_dir in $PATH
11056do
11057  IFS=$as_save_IFS
11058  test -z "$as_dir" && as_dir=.
11059    for ac_exec_ext in '' $ac_executable_extensions; do
11060  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11061    ac_cv_prog_ac_ct_CC="$ac_prog"
11062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11063    break 2
11064  fi
11065done
11066  done
11067IFS=$as_save_IFS
11068
11069fi
11070fi
11071ac_ct_CC=$ac_cv_prog_ac_ct_CC
11072if test -n "$ac_ct_CC"; then
11073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11074$as_echo "$ac_ct_CC" >&6; }
11075else
11076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11077$as_echo "no" >&6; }
11078fi
11079
11080
11081  test -n "$ac_ct_CC" && break
11082done
11083
11084  if test "x$ac_ct_CC" = x; then
11085    CC=""
11086  else
11087    case $cross_compiling:$ac_tool_warned in
11088yes:)
11089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11091ac_tool_warned=yes ;;
11092esac
11093    CC=$ac_ct_CC
11094  fi
11095fi
11096
11097fi
11098
11099
11100test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11102as_fn_error $? "no acceptable C compiler found in \$PATH
11103See \`config.log' for more details" "$LINENO" 5; }
11104
11105# Provide some information about the compiler.
11106$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11107set X $ac_compile
11108ac_compiler=$2
11109for ac_option in --version -v -V -qversion; do
11110  { { ac_try="$ac_compiler $ac_option >&5"
11111case "(($ac_try" in
11112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11113  *) ac_try_echo=$ac_try;;
11114esac
11115eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11116$as_echo "$ac_try_echo"; } >&5
11117  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11118  ac_status=$?
11119  if test -s conftest.err; then
11120    sed '10a\
11121... rest of stderr output deleted ...
11122         10q' conftest.err >conftest.er1
11123    cat conftest.er1 >&5
11124  fi
11125  rm -f conftest.er1 conftest.err
11126  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11127  test $ac_status = 0; }
11128done
11129
11130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11131$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11132if ${ac_cv_c_compiler_gnu+:} false; then :
11133  $as_echo_n "(cached) " >&6
11134else
11135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11136/* end confdefs.h.  */
11137
11138int
11139main ()
11140{
11141#ifndef __GNUC__
11142       choke me
11143#endif
11144
11145  ;
11146  return 0;
11147}
11148_ACEOF
11149if ac_fn_c_try_compile "$LINENO"; then :
11150  ac_compiler_gnu=yes
11151else
11152  ac_compiler_gnu=no
11153fi
11154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11155ac_cv_c_compiler_gnu=$ac_compiler_gnu
11156
11157fi
11158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11159$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11160if test $ac_compiler_gnu = yes; then
11161  GCC=yes
11162else
11163  GCC=
11164fi
11165ac_test_CFLAGS=${CFLAGS+set}
11166ac_save_CFLAGS=$CFLAGS
11167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11168$as_echo_n "checking whether $CC accepts -g... " >&6; }
11169if ${ac_cv_prog_cc_g+:} false; then :
11170  $as_echo_n "(cached) " >&6
11171else
11172  ac_save_c_werror_flag=$ac_c_werror_flag
11173   ac_c_werror_flag=yes
11174   ac_cv_prog_cc_g=no
11175   CFLAGS="-g"
11176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11177/* end confdefs.h.  */
11178
11179int
11180main ()
11181{
11182
11183  ;
11184  return 0;
11185}
11186_ACEOF
11187if ac_fn_c_try_compile "$LINENO"; then :
11188  ac_cv_prog_cc_g=yes
11189else
11190  CFLAGS=""
11191      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192/* end confdefs.h.  */
11193
11194int
11195main ()
11196{
11197
11198  ;
11199  return 0;
11200}
11201_ACEOF
11202if ac_fn_c_try_compile "$LINENO"; then :
11203
11204else
11205  ac_c_werror_flag=$ac_save_c_werror_flag
11206	 CFLAGS="-g"
11207	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11208/* end confdefs.h.  */
11209
11210int
11211main ()
11212{
11213
11214  ;
11215  return 0;
11216}
11217_ACEOF
11218if ac_fn_c_try_compile "$LINENO"; then :
11219  ac_cv_prog_cc_g=yes
11220fi
11221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11222fi
11223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11224fi
11225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11226   ac_c_werror_flag=$ac_save_c_werror_flag
11227fi
11228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11229$as_echo "$ac_cv_prog_cc_g" >&6; }
11230if test "$ac_test_CFLAGS" = set; then
11231  CFLAGS=$ac_save_CFLAGS
11232elif test $ac_cv_prog_cc_g = yes; then
11233  if test "$GCC" = yes; then
11234    CFLAGS="-g -O2"
11235  else
11236    CFLAGS="-g"
11237  fi
11238else
11239  if test "$GCC" = yes; then
11240    CFLAGS="-O2"
11241  else
11242    CFLAGS=
11243  fi
11244fi
11245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11246$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11247if ${ac_cv_prog_cc_c89+:} false; then :
11248  $as_echo_n "(cached) " >&6
11249else
11250  ac_cv_prog_cc_c89=no
11251ac_save_CC=$CC
11252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11253/* end confdefs.h.  */
11254#include <stdarg.h>
11255#include <stdio.h>
11256struct stat;
11257/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11258struct buf { int x; };
11259FILE * (*rcsopen) (struct buf *, struct stat *, int);
11260static char *e (p, i)
11261     char **p;
11262     int i;
11263{
11264  return p[i];
11265}
11266static char *f (char * (*g) (char **, int), char **p, ...)
11267{
11268  char *s;
11269  va_list v;
11270  va_start (v,p);
11271  s = g (p, va_arg (v,int));
11272  va_end (v);
11273  return s;
11274}
11275
11276/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11277   function prototypes and stuff, but not '\xHH' hex character constants.
11278   These don't provoke an error unfortunately, instead are silently treated
11279   as 'x'.  The following induces an error, until -std is added to get
11280   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11281   array size at least.  It's necessary to write '\x00'==0 to get something
11282   that's true only with -std.  */
11283int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11284
11285/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11286   inside strings and character constants.  */
11287#define FOO(x) 'x'
11288int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11289
11290int test (int i, double x);
11291struct s1 {int (*f) (int a);};
11292struct s2 {int (*f) (double a);};
11293int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11294int argc;
11295char **argv;
11296int
11297main ()
11298{
11299return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11300  ;
11301  return 0;
11302}
11303_ACEOF
11304for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11305	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11306do
11307  CC="$ac_save_CC $ac_arg"
11308  if ac_fn_c_try_compile "$LINENO"; then :
11309  ac_cv_prog_cc_c89=$ac_arg
11310fi
11311rm -f core conftest.err conftest.$ac_objext
11312  test "x$ac_cv_prog_cc_c89" != "xno" && break
11313done
11314rm -f conftest.$ac_ext
11315CC=$ac_save_CC
11316
11317fi
11318# AC_CACHE_VAL
11319case "x$ac_cv_prog_cc_c89" in
11320  x)
11321    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11322$as_echo "none needed" >&6; } ;;
11323  xno)
11324    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11325$as_echo "unsupported" >&6; } ;;
11326  *)
11327    CC="$CC $ac_cv_prog_cc_c89"
11328    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11329$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11330esac
11331if test "x$ac_cv_prog_cc_c89" != xno; then :
11332
11333fi
11334
11335ac_ext=c
11336ac_cpp='$CPP $CPPFLAGS'
11337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11339ac_compiler_gnu=$ac_cv_c_compiler_gnu
11340
11341depcc="$CC"   am_compiler_list=
11342
11343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11344$as_echo_n "checking dependency style of $depcc... " >&6; }
11345if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11346  $as_echo_n "(cached) " >&6
11347else
11348  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11349  # We make a subdir and do the tests there.  Otherwise we can end up
11350  # making bogus files that we don't know about and never remove.  For
11351  # instance it was reported that on HP-UX the gcc test will end up
11352  # making a dummy file named 'D' -- because '-MD' means "put the output
11353  # in D".
11354  rm -rf conftest.dir
11355  mkdir conftest.dir
11356  # Copy depcomp to subdir because otherwise we won't find it if we're
11357  # using a relative directory.
11358  cp "$am_depcomp" conftest.dir
11359  cd conftest.dir
11360  # We will build objects and dependencies in a subdirectory because
11361  # it helps to detect inapplicable dependency modes.  For instance
11362  # both Tru64's cc and ICC support -MD to output dependencies as a
11363  # side effect of compilation, but ICC will put the dependencies in
11364  # the current directory while Tru64 will put them in the object
11365  # directory.
11366  mkdir sub
11367
11368  am_cv_CC_dependencies_compiler_type=none
11369  if test "$am_compiler_list" = ""; then
11370     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11371  fi
11372  am__universal=false
11373  case " $depcc " in #(
11374     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11375     esac
11376
11377  for depmode in $am_compiler_list; do
11378    # Setup a source with many dependencies, because some compilers
11379    # like to wrap large dependency lists on column 80 (with \), and
11380    # we should not choose a depcomp mode which is confused by this.
11381    #
11382    # We need to recreate these files for each test, as the compiler may
11383    # overwrite some of them when testing with obscure command lines.
11384    # This happens at least with the AIX C compiler.
11385    : > sub/conftest.c
11386    for i in 1 2 3 4 5 6; do
11387      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11388      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11389      # Solaris 10 /bin/sh.
11390      echo '/* dummy */' > sub/conftst$i.h
11391    done
11392    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11393
11394    # We check with '-c' and '-o' for the sake of the "dashmstdout"
11395    # mode.  It turns out that the SunPro C++ compiler does not properly
11396    # handle '-M -o', and we need to detect this.  Also, some Intel
11397    # versions had trouble with output in subdirs.
11398    am__obj=sub/conftest.${OBJEXT-o}
11399    am__minus_obj="-o $am__obj"
11400    case $depmode in
11401    gcc)
11402      # This depmode causes a compiler race in universal mode.
11403      test "$am__universal" = false || continue
11404      ;;
11405    nosideeffect)
11406      # After this tag, mechanisms are not by side-effect, so they'll
11407      # only be used when explicitly requested.
11408      if test "x$enable_dependency_tracking" = xyes; then
11409	continue
11410      else
11411	break
11412      fi
11413      ;;
11414    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11415      # This compiler won't grok '-c -o', but also, the minuso test has
11416      # not run yet.  These depmodes are late enough in the game, and
11417      # so weak that their functioning should not be impacted.
11418      am__obj=conftest.${OBJEXT-o}
11419      am__minus_obj=
11420      ;;
11421    none) break ;;
11422    esac
11423    if depmode=$depmode \
11424       source=sub/conftest.c object=$am__obj \
11425       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11426       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11427         >/dev/null 2>conftest.err &&
11428       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11429       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11430       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11431       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11432      # icc doesn't choke on unknown options, it will just issue warnings
11433      # or remarks (even with -Werror).  So we grep stderr for any message
11434      # that says an option was ignored or not supported.
11435      # When given -MP, icc 7.0 and 7.1 complain thusly:
11436      #   icc: Command line warning: ignoring option '-M'; no argument required
11437      # The diagnosis changed in icc 8.0:
11438      #   icc: Command line remark: option '-MP' not supported
11439      if (grep 'ignoring option' conftest.err ||
11440          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11441        am_cv_CC_dependencies_compiler_type=$depmode
11442        break
11443      fi
11444    fi
11445  done
11446
11447  cd ..
11448  rm -rf conftest.dir
11449else
11450  am_cv_CC_dependencies_compiler_type=none
11451fi
11452
11453fi
11454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11455$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11456CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11457
11458 if
11459  test "x$enable_dependency_tracking" != xno \
11460  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11461  am__fastdepCC_TRUE=
11462  am__fastdepCC_FALSE='#'
11463else
11464  am__fastdepCC_TRUE='#'
11465  am__fastdepCC_FALSE=
11466fi
11467
11468
11469if test "x$CC" != xcc; then
11470  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11471$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11472else
11473  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11474$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11475fi
11476set dummy $CC; ac_cc=`$as_echo "$2" |
11477		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11478if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11479  $as_echo_n "(cached) " >&6
11480else
11481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11482/* end confdefs.h.  */
11483
11484int
11485main ()
11486{
11487
11488  ;
11489  return 0;
11490}
11491_ACEOF
11492# Make sure it works both with $CC and with simple cc.
11493# We do the test twice because some compilers refuse to overwrite an
11494# existing .o file with -o, though they will create one.
11495ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11496rm -f conftest2.*
11497if { { case "(($ac_try" in
11498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499  *) ac_try_echo=$ac_try;;
11500esac
11501eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11502$as_echo "$ac_try_echo"; } >&5
11503  (eval "$ac_try") 2>&5
11504  ac_status=$?
11505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11506  test $ac_status = 0; } &&
11507   test -f conftest2.$ac_objext && { { case "(($ac_try" in
11508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509  *) ac_try_echo=$ac_try;;
11510esac
11511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11512$as_echo "$ac_try_echo"; } >&5
11513  (eval "$ac_try") 2>&5
11514  ac_status=$?
11515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11516  test $ac_status = 0; };
11517then
11518  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11519  if test "x$CC" != xcc; then
11520    # Test first that cc exists at all.
11521    if { ac_try='cc -c conftest.$ac_ext >&5'
11522  { { case "(($ac_try" in
11523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524  *) ac_try_echo=$ac_try;;
11525esac
11526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11527$as_echo "$ac_try_echo"; } >&5
11528  (eval "$ac_try") 2>&5
11529  ac_status=$?
11530  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11531  test $ac_status = 0; }; }; then
11532      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11533      rm -f conftest2.*
11534      if { { case "(($ac_try" in
11535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536  *) ac_try_echo=$ac_try;;
11537esac
11538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11539$as_echo "$ac_try_echo"; } >&5
11540  (eval "$ac_try") 2>&5
11541  ac_status=$?
11542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11543  test $ac_status = 0; } &&
11544	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11546  *) ac_try_echo=$ac_try;;
11547esac
11548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11549$as_echo "$ac_try_echo"; } >&5
11550  (eval "$ac_try") 2>&5
11551  ac_status=$?
11552  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11553  test $ac_status = 0; };
11554      then
11555	# cc works too.
11556	:
11557      else
11558	# cc exists but doesn't like -o.
11559	eval ac_cv_prog_cc_${ac_cc}_c_o=no
11560      fi
11561    fi
11562  fi
11563else
11564  eval ac_cv_prog_cc_${ac_cc}_c_o=no
11565fi
11566rm -f core conftest*
11567
11568fi
11569if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11571$as_echo "yes" >&6; }
11572else
11573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11574$as_echo "no" >&6; }
11575
11576$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11577
11578fi
11579
11580# FIXME: we rely on the cache variable name because
11581# there is no other way.
11582set dummy $CC
11583am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11584eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11585if test "$am_t" != yes; then
11586   # Losing compiler, so override with the script.
11587   # FIXME: It is wrong to rewrite CC.
11588   # But if we don't then we get into trouble of one sort or another.
11589   # A longer-term fix would be to have automake use am__CC in this case,
11590   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11591   CC="$am_aux_dir/compile $CC"
11592fi
11593
11594
11595
11596ac_ext=cpp
11597ac_cpp='$CXXCPP $CPPFLAGS'
11598ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11599ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11600ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11601
11602ac_ext=cpp
11603ac_cpp='$CXXCPP $CPPFLAGS'
11604ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11605ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11606ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11607if test -z "$CXX"; then
11608  if test -n "$CCC"; then
11609    CXX=$CCC
11610  else
11611    if test -n "$ac_tool_prefix"; then
11612  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11613  do
11614    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11615set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11617$as_echo_n "checking for $ac_word... " >&6; }
11618if ${ac_cv_prog_CXX+:} false; then :
11619  $as_echo_n "(cached) " >&6
11620else
11621  if test -n "$CXX"; then
11622  ac_cv_prog_CXX="$CXX" # Let the user override the test.
11623else
11624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11625for as_dir in $PATH
11626do
11627  IFS=$as_save_IFS
11628  test -z "$as_dir" && as_dir=.
11629    for ac_exec_ext in '' $ac_executable_extensions; do
11630  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11631    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11632    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11633    break 2
11634  fi
11635done
11636  done
11637IFS=$as_save_IFS
11638
11639fi
11640fi
11641CXX=$ac_cv_prog_CXX
11642if test -n "$CXX"; then
11643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11644$as_echo "$CXX" >&6; }
11645else
11646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11647$as_echo "no" >&6; }
11648fi
11649
11650
11651    test -n "$CXX" && break
11652  done
11653fi
11654if test -z "$CXX"; then
11655  ac_ct_CXX=$CXX
11656  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11657do
11658  # Extract the first word of "$ac_prog", so it can be a program name with args.
11659set dummy $ac_prog; ac_word=$2
11660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11661$as_echo_n "checking for $ac_word... " >&6; }
11662if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11663  $as_echo_n "(cached) " >&6
11664else
11665  if test -n "$ac_ct_CXX"; then
11666  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11667else
11668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11669for as_dir in $PATH
11670do
11671  IFS=$as_save_IFS
11672  test -z "$as_dir" && as_dir=.
11673    for ac_exec_ext in '' $ac_executable_extensions; do
11674  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11675    ac_cv_prog_ac_ct_CXX="$ac_prog"
11676    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11677    break 2
11678  fi
11679done
11680  done
11681IFS=$as_save_IFS
11682
11683fi
11684fi
11685ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11686if test -n "$ac_ct_CXX"; then
11687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11688$as_echo "$ac_ct_CXX" >&6; }
11689else
11690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691$as_echo "no" >&6; }
11692fi
11693
11694
11695  test -n "$ac_ct_CXX" && break
11696done
11697
11698  if test "x$ac_ct_CXX" = x; then
11699    CXX="g++"
11700  else
11701    case $cross_compiling:$ac_tool_warned in
11702yes:)
11703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11705ac_tool_warned=yes ;;
11706esac
11707    CXX=$ac_ct_CXX
11708  fi
11709fi
11710
11711  fi
11712fi
11713# Provide some information about the compiler.
11714$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11715set X $ac_compile
11716ac_compiler=$2
11717for ac_option in --version -v -V -qversion; do
11718  { { ac_try="$ac_compiler $ac_option >&5"
11719case "(($ac_try" in
11720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721  *) ac_try_echo=$ac_try;;
11722esac
11723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11724$as_echo "$ac_try_echo"; } >&5
11725  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11726  ac_status=$?
11727  if test -s conftest.err; then
11728    sed '10a\
11729... rest of stderr output deleted ...
11730         10q' conftest.err >conftest.er1
11731    cat conftest.er1 >&5
11732  fi
11733  rm -f conftest.er1 conftest.err
11734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11735  test $ac_status = 0; }
11736done
11737
11738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11739$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11740if ${ac_cv_cxx_compiler_gnu+:} false; then :
11741  $as_echo_n "(cached) " >&6
11742else
11743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11744/* end confdefs.h.  */
11745
11746int
11747main ()
11748{
11749#ifndef __GNUC__
11750       choke me
11751#endif
11752
11753  ;
11754  return 0;
11755}
11756_ACEOF
11757if ac_fn_cxx_try_compile "$LINENO"; then :
11758  ac_compiler_gnu=yes
11759else
11760  ac_compiler_gnu=no
11761fi
11762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11763ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11764
11765fi
11766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11767$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11768if test $ac_compiler_gnu = yes; then
11769  GXX=yes
11770else
11771  GXX=
11772fi
11773ac_test_CXXFLAGS=${CXXFLAGS+set}
11774ac_save_CXXFLAGS=$CXXFLAGS
11775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11776$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11777if ${ac_cv_prog_cxx_g+:} false; then :
11778  $as_echo_n "(cached) " >&6
11779else
11780  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11781   ac_cxx_werror_flag=yes
11782   ac_cv_prog_cxx_g=no
11783   CXXFLAGS="-g"
11784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11785/* end confdefs.h.  */
11786
11787int
11788main ()
11789{
11790
11791  ;
11792  return 0;
11793}
11794_ACEOF
11795if ac_fn_cxx_try_compile "$LINENO"; then :
11796  ac_cv_prog_cxx_g=yes
11797else
11798  CXXFLAGS=""
11799      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11800/* end confdefs.h.  */
11801
11802int
11803main ()
11804{
11805
11806  ;
11807  return 0;
11808}
11809_ACEOF
11810if ac_fn_cxx_try_compile "$LINENO"; then :
11811
11812else
11813  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11814	 CXXFLAGS="-g"
11815	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816/* end confdefs.h.  */
11817
11818int
11819main ()
11820{
11821
11822  ;
11823  return 0;
11824}
11825_ACEOF
11826if ac_fn_cxx_try_compile "$LINENO"; then :
11827  ac_cv_prog_cxx_g=yes
11828fi
11829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11830fi
11831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11832fi
11833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11834   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11835fi
11836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11837$as_echo "$ac_cv_prog_cxx_g" >&6; }
11838if test "$ac_test_CXXFLAGS" = set; then
11839  CXXFLAGS=$ac_save_CXXFLAGS
11840elif test $ac_cv_prog_cxx_g = yes; then
11841  if test "$GXX" = yes; then
11842    CXXFLAGS="-g -O2"
11843  else
11844    CXXFLAGS="-g"
11845  fi
11846else
11847  if test "$GXX" = yes; then
11848    CXXFLAGS="-O2"
11849  else
11850    CXXFLAGS=
11851  fi
11852fi
11853ac_ext=cpp
11854ac_cpp='$CXXCPP $CPPFLAGS'
11855ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11856ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11857ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11858
11859depcc="$CXX"  am_compiler_list=
11860
11861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11862$as_echo_n "checking dependency style of $depcc... " >&6; }
11863if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
11864  $as_echo_n "(cached) " >&6
11865else
11866  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11867  # We make a subdir and do the tests there.  Otherwise we can end up
11868  # making bogus files that we don't know about and never remove.  For
11869  # instance it was reported that on HP-UX the gcc test will end up
11870  # making a dummy file named 'D' -- because '-MD' means "put the output
11871  # in D".
11872  rm -rf conftest.dir
11873  mkdir conftest.dir
11874  # Copy depcomp to subdir because otherwise we won't find it if we're
11875  # using a relative directory.
11876  cp "$am_depcomp" conftest.dir
11877  cd conftest.dir
11878  # We will build objects and dependencies in a subdirectory because
11879  # it helps to detect inapplicable dependency modes.  For instance
11880  # both Tru64's cc and ICC support -MD to output dependencies as a
11881  # side effect of compilation, but ICC will put the dependencies in
11882  # the current directory while Tru64 will put them in the object
11883  # directory.
11884  mkdir sub
11885
11886  am_cv_CXX_dependencies_compiler_type=none
11887  if test "$am_compiler_list" = ""; then
11888     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11889  fi
11890  am__universal=false
11891  case " $depcc " in #(
11892     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11893     esac
11894
11895  for depmode in $am_compiler_list; do
11896    # Setup a source with many dependencies, because some compilers
11897    # like to wrap large dependency lists on column 80 (with \), and
11898    # we should not choose a depcomp mode which is confused by this.
11899    #
11900    # We need to recreate these files for each test, as the compiler may
11901    # overwrite some of them when testing with obscure command lines.
11902    # This happens at least with the AIX C compiler.
11903    : > sub/conftest.c
11904    for i in 1 2 3 4 5 6; do
11905      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11906      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11907      # Solaris 10 /bin/sh.
11908      echo '/* dummy */' > sub/conftst$i.h
11909    done
11910    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11911
11912    # We check with '-c' and '-o' for the sake of the "dashmstdout"
11913    # mode.  It turns out that the SunPro C++ compiler does not properly
11914    # handle '-M -o', and we need to detect this.  Also, some Intel
11915    # versions had trouble with output in subdirs.
11916    am__obj=sub/conftest.${OBJEXT-o}
11917    am__minus_obj="-o $am__obj"
11918    case $depmode in
11919    gcc)
11920      # This depmode causes a compiler race in universal mode.
11921      test "$am__universal" = false || continue
11922      ;;
11923    nosideeffect)
11924      # After this tag, mechanisms are not by side-effect, so they'll
11925      # only be used when explicitly requested.
11926      if test "x$enable_dependency_tracking" = xyes; then
11927	continue
11928      else
11929	break
11930      fi
11931      ;;
11932    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11933      # This compiler won't grok '-c -o', but also, the minuso test has
11934      # not run yet.  These depmodes are late enough in the game, and
11935      # so weak that their functioning should not be impacted.
11936      am__obj=conftest.${OBJEXT-o}
11937      am__minus_obj=
11938      ;;
11939    none) break ;;
11940    esac
11941    if depmode=$depmode \
11942       source=sub/conftest.c object=$am__obj \
11943       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11944       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11945         >/dev/null 2>conftest.err &&
11946       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11947       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11948       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11949       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11950      # icc doesn't choke on unknown options, it will just issue warnings
11951      # or remarks (even with -Werror).  So we grep stderr for any message
11952      # that says an option was ignored or not supported.
11953      # When given -MP, icc 7.0 and 7.1 complain thusly:
11954      #   icc: Command line warning: ignoring option '-M'; no argument required
11955      # The diagnosis changed in icc 8.0:
11956      #   icc: Command line remark: option '-MP' not supported
11957      if (grep 'ignoring option' conftest.err ||
11958          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11959        am_cv_CXX_dependencies_compiler_type=$depmode
11960        break
11961      fi
11962    fi
11963  done
11964
11965  cd ..
11966  rm -rf conftest.dir
11967else
11968  am_cv_CXX_dependencies_compiler_type=none
11969fi
11970
11971fi
11972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11973$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11974CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11975
11976 if
11977  test "x$enable_dependency_tracking" != xno \
11978  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11979  am__fastdepCXX_TRUE=
11980  am__fastdepCXX_FALSE='#'
11981else
11982  am__fastdepCXX_TRUE='#'
11983  am__fastdepCXX_FALSE=
11984fi
11985
11986
11987
11988ac_ext=cpp
11989ac_cpp='$CXXCPP $CPPFLAGS'
11990ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11991ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11992ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11993if test -z "$CXX"; then
11994  if test -n "$CCC"; then
11995    CXX=$CCC
11996  else
11997    if test -n "$ac_tool_prefix"; then
11998  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11999  do
12000    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12001set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12003$as_echo_n "checking for $ac_word... " >&6; }
12004if ${ac_cv_prog_CXX+:} false; then :
12005  $as_echo_n "(cached) " >&6
12006else
12007  if test -n "$CXX"; then
12008  ac_cv_prog_CXX="$CXX" # Let the user override the test.
12009else
12010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12011for as_dir in $PATH
12012do
12013  IFS=$as_save_IFS
12014  test -z "$as_dir" && as_dir=.
12015    for ac_exec_ext in '' $ac_executable_extensions; do
12016  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12017    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12018    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12019    break 2
12020  fi
12021done
12022  done
12023IFS=$as_save_IFS
12024
12025fi
12026fi
12027CXX=$ac_cv_prog_CXX
12028if test -n "$CXX"; then
12029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12030$as_echo "$CXX" >&6; }
12031else
12032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12033$as_echo "no" >&6; }
12034fi
12035
12036
12037    test -n "$CXX" && break
12038  done
12039fi
12040if test -z "$CXX"; then
12041  ac_ct_CXX=$CXX
12042  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12043do
12044  # Extract the first word of "$ac_prog", so it can be a program name with args.
12045set dummy $ac_prog; ac_word=$2
12046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12047$as_echo_n "checking for $ac_word... " >&6; }
12048if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12049  $as_echo_n "(cached) " >&6
12050else
12051  if test -n "$ac_ct_CXX"; then
12052  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12053else
12054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12055for as_dir in $PATH
12056do
12057  IFS=$as_save_IFS
12058  test -z "$as_dir" && as_dir=.
12059    for ac_exec_ext in '' $ac_executable_extensions; do
12060  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12061    ac_cv_prog_ac_ct_CXX="$ac_prog"
12062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12063    break 2
12064  fi
12065done
12066  done
12067IFS=$as_save_IFS
12068
12069fi
12070fi
12071ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12072if test -n "$ac_ct_CXX"; then
12073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12074$as_echo "$ac_ct_CXX" >&6; }
12075else
12076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12077$as_echo "no" >&6; }
12078fi
12079
12080
12081  test -n "$ac_ct_CXX" && break
12082done
12083
12084  if test "x$ac_ct_CXX" = x; then
12085    CXX="g++"
12086  else
12087    case $cross_compiling:$ac_tool_warned in
12088yes:)
12089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12091ac_tool_warned=yes ;;
12092esac
12093    CXX=$ac_ct_CXX
12094  fi
12095fi
12096
12097  fi
12098fi
12099# Provide some information about the compiler.
12100$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12101set X $ac_compile
12102ac_compiler=$2
12103for ac_option in --version -v -V -qversion; do
12104  { { ac_try="$ac_compiler $ac_option >&5"
12105case "(($ac_try" in
12106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107  *) ac_try_echo=$ac_try;;
12108esac
12109eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12110$as_echo "$ac_try_echo"; } >&5
12111  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12112  ac_status=$?
12113  if test -s conftest.err; then
12114    sed '10a\
12115... rest of stderr output deleted ...
12116         10q' conftest.err >conftest.er1
12117    cat conftest.er1 >&5
12118  fi
12119  rm -f conftest.er1 conftest.err
12120  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12121  test $ac_status = 0; }
12122done
12123
12124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12125$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12126if ${ac_cv_cxx_compiler_gnu+:} false; then :
12127  $as_echo_n "(cached) " >&6
12128else
12129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12130/* end confdefs.h.  */
12131
12132int
12133main ()
12134{
12135#ifndef __GNUC__
12136       choke me
12137#endif
12138
12139  ;
12140  return 0;
12141}
12142_ACEOF
12143if ac_fn_cxx_try_compile "$LINENO"; then :
12144  ac_compiler_gnu=yes
12145else
12146  ac_compiler_gnu=no
12147fi
12148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12149ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12150
12151fi
12152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12153$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12154if test $ac_compiler_gnu = yes; then
12155  GXX=yes
12156else
12157  GXX=
12158fi
12159ac_test_CXXFLAGS=${CXXFLAGS+set}
12160ac_save_CXXFLAGS=$CXXFLAGS
12161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12162$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12163if ${ac_cv_prog_cxx_g+:} false; then :
12164  $as_echo_n "(cached) " >&6
12165else
12166  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12167   ac_cxx_werror_flag=yes
12168   ac_cv_prog_cxx_g=no
12169   CXXFLAGS="-g"
12170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171/* end confdefs.h.  */
12172
12173int
12174main ()
12175{
12176
12177  ;
12178  return 0;
12179}
12180_ACEOF
12181if ac_fn_cxx_try_compile "$LINENO"; then :
12182  ac_cv_prog_cxx_g=yes
12183else
12184  CXXFLAGS=""
12185      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186/* end confdefs.h.  */
12187
12188int
12189main ()
12190{
12191
12192  ;
12193  return 0;
12194}
12195_ACEOF
12196if ac_fn_cxx_try_compile "$LINENO"; then :
12197
12198else
12199  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12200	 CXXFLAGS="-g"
12201	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12202/* end confdefs.h.  */
12203
12204int
12205main ()
12206{
12207
12208  ;
12209  return 0;
12210}
12211_ACEOF
12212if ac_fn_cxx_try_compile "$LINENO"; then :
12213  ac_cv_prog_cxx_g=yes
12214fi
12215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12216fi
12217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12218fi
12219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12220   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12221fi
12222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12223$as_echo "$ac_cv_prog_cxx_g" >&6; }
12224if test "$ac_test_CXXFLAGS" = set; then
12225  CXXFLAGS=$ac_save_CXXFLAGS
12226elif test $ac_cv_prog_cxx_g = yes; then
12227  if test "$GXX" = yes; then
12228    CXXFLAGS="-g -O2"
12229  else
12230    CXXFLAGS="-g"
12231  fi
12232else
12233  if test "$GXX" = yes; then
12234    CXXFLAGS="-O2"
12235  else
12236    CXXFLAGS=
12237  fi
12238fi
12239ac_ext=cpp
12240ac_cpp='$CXXCPP $CPPFLAGS'
12241ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12242ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12243ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12244
12245depcc="$CXX"  am_compiler_list=
12246
12247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12248$as_echo_n "checking dependency style of $depcc... " >&6; }
12249if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12250  $as_echo_n "(cached) " >&6
12251else
12252  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12253  # We make a subdir and do the tests there.  Otherwise we can end up
12254  # making bogus files that we don't know about and never remove.  For
12255  # instance it was reported that on HP-UX the gcc test will end up
12256  # making a dummy file named 'D' -- because '-MD' means "put the output
12257  # in D".
12258  rm -rf conftest.dir
12259  mkdir conftest.dir
12260  # Copy depcomp to subdir because otherwise we won't find it if we're
12261  # using a relative directory.
12262  cp "$am_depcomp" conftest.dir
12263  cd conftest.dir
12264  # We will build objects and dependencies in a subdirectory because
12265  # it helps to detect inapplicable dependency modes.  For instance
12266  # both Tru64's cc and ICC support -MD to output dependencies as a
12267  # side effect of compilation, but ICC will put the dependencies in
12268  # the current directory while Tru64 will put them in the object
12269  # directory.
12270  mkdir sub
12271
12272  am_cv_CXX_dependencies_compiler_type=none
12273  if test "$am_compiler_list" = ""; then
12274     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12275  fi
12276  am__universal=false
12277  case " $depcc " in #(
12278     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12279     esac
12280
12281  for depmode in $am_compiler_list; do
12282    # Setup a source with many dependencies, because some compilers
12283    # like to wrap large dependency lists on column 80 (with \), and
12284    # we should not choose a depcomp mode which is confused by this.
12285    #
12286    # We need to recreate these files for each test, as the compiler may
12287    # overwrite some of them when testing with obscure command lines.
12288    # This happens at least with the AIX C compiler.
12289    : > sub/conftest.c
12290    for i in 1 2 3 4 5 6; do
12291      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12292      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12293      # Solaris 10 /bin/sh.
12294      echo '/* dummy */' > sub/conftst$i.h
12295    done
12296    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12297
12298    # We check with '-c' and '-o' for the sake of the "dashmstdout"
12299    # mode.  It turns out that the SunPro C++ compiler does not properly
12300    # handle '-M -o', and we need to detect this.  Also, some Intel
12301    # versions had trouble with output in subdirs.
12302    am__obj=sub/conftest.${OBJEXT-o}
12303    am__minus_obj="-o $am__obj"
12304    case $depmode in
12305    gcc)
12306      # This depmode causes a compiler race in universal mode.
12307      test "$am__universal" = false || continue
12308      ;;
12309    nosideeffect)
12310      # After this tag, mechanisms are not by side-effect, so they'll
12311      # only be used when explicitly requested.
12312      if test "x$enable_dependency_tracking" = xyes; then
12313	continue
12314      else
12315	break
12316      fi
12317      ;;
12318    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12319      # This compiler won't grok '-c -o', but also, the minuso test has
12320      # not run yet.  These depmodes are late enough in the game, and
12321      # so weak that their functioning should not be impacted.
12322      am__obj=conftest.${OBJEXT-o}
12323      am__minus_obj=
12324      ;;
12325    none) break ;;
12326    esac
12327    if depmode=$depmode \
12328       source=sub/conftest.c object=$am__obj \
12329       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12330       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12331         >/dev/null 2>conftest.err &&
12332       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12333       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12334       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12335       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12336      # icc doesn't choke on unknown options, it will just issue warnings
12337      # or remarks (even with -Werror).  So we grep stderr for any message
12338      # that says an option was ignored or not supported.
12339      # When given -MP, icc 7.0 and 7.1 complain thusly:
12340      #   icc: Command line warning: ignoring option '-M'; no argument required
12341      # The diagnosis changed in icc 8.0:
12342      #   icc: Command line remark: option '-MP' not supported
12343      if (grep 'ignoring option' conftest.err ||
12344          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12345        am_cv_CXX_dependencies_compiler_type=$depmode
12346        break
12347      fi
12348    fi
12349  done
12350
12351  cd ..
12352  rm -rf conftest.dir
12353else
12354  am_cv_CXX_dependencies_compiler_type=none
12355fi
12356
12357fi
12358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12359$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12360CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12361
12362 if
12363  test "x$enable_dependency_tracking" != xno \
12364  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12365  am__fastdepCXX_TRUE=
12366  am__fastdepCXX_FALSE='#'
12367else
12368  am__fastdepCXX_TRUE='#'
12369  am__fastdepCXX_FALSE=
12370fi
12371
12372
12373if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12374    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12375    (test "X$CXX" != "Xg++"))) ; then
12376  ac_ext=cpp
12377ac_cpp='$CXXCPP $CPPFLAGS'
12378ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12379ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12380ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12382$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12383if test -z "$CXXCPP"; then
12384  if ${ac_cv_prog_CXXCPP+:} false; then :
12385  $as_echo_n "(cached) " >&6
12386else
12387      # Double quotes because CXXCPP needs to be expanded
12388    for CXXCPP in "$CXX -E" "/lib/cpp"
12389    do
12390      ac_preproc_ok=false
12391for ac_cxx_preproc_warn_flag in '' yes
12392do
12393  # Use a header file that comes with gcc, so configuring glibc
12394  # with a fresh cross-compiler works.
12395  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12396  # <limits.h> exists even on freestanding compilers.
12397  # On the NeXT, cc -E runs the code through the compiler's parser,
12398  # not just through cpp. "Syntax error" is here to catch this case.
12399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12400/* end confdefs.h.  */
12401#ifdef __STDC__
12402# include <limits.h>
12403#else
12404# include <assert.h>
12405#endif
12406		     Syntax error
12407_ACEOF
12408if ac_fn_cxx_try_cpp "$LINENO"; then :
12409
12410else
12411  # Broken: fails on valid input.
12412continue
12413fi
12414rm -f conftest.err conftest.i conftest.$ac_ext
12415
12416  # OK, works on sane cases.  Now check whether nonexistent headers
12417  # can be detected and how.
12418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12419/* end confdefs.h.  */
12420#include <ac_nonexistent.h>
12421_ACEOF
12422if ac_fn_cxx_try_cpp "$LINENO"; then :
12423  # Broken: success on invalid input.
12424continue
12425else
12426  # Passes both tests.
12427ac_preproc_ok=:
12428break
12429fi
12430rm -f conftest.err conftest.i conftest.$ac_ext
12431
12432done
12433# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12434rm -f conftest.i conftest.err conftest.$ac_ext
12435if $ac_preproc_ok; then :
12436  break
12437fi
12438
12439    done
12440    ac_cv_prog_CXXCPP=$CXXCPP
12441
12442fi
12443  CXXCPP=$ac_cv_prog_CXXCPP
12444else
12445  ac_cv_prog_CXXCPP=$CXXCPP
12446fi
12447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12448$as_echo "$CXXCPP" >&6; }
12449ac_preproc_ok=false
12450for ac_cxx_preproc_warn_flag in '' yes
12451do
12452  # Use a header file that comes with gcc, so configuring glibc
12453  # with a fresh cross-compiler works.
12454  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12455  # <limits.h> exists even on freestanding compilers.
12456  # On the NeXT, cc -E runs the code through the compiler's parser,
12457  # not just through cpp. "Syntax error" is here to catch this case.
12458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12459/* end confdefs.h.  */
12460#ifdef __STDC__
12461# include <limits.h>
12462#else
12463# include <assert.h>
12464#endif
12465		     Syntax error
12466_ACEOF
12467if ac_fn_cxx_try_cpp "$LINENO"; then :
12468
12469else
12470  # Broken: fails on valid input.
12471continue
12472fi
12473rm -f conftest.err conftest.i conftest.$ac_ext
12474
12475  # OK, works on sane cases.  Now check whether nonexistent headers
12476  # can be detected and how.
12477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478/* end confdefs.h.  */
12479#include <ac_nonexistent.h>
12480_ACEOF
12481if ac_fn_cxx_try_cpp "$LINENO"; then :
12482  # Broken: success on invalid input.
12483continue
12484else
12485  # Passes both tests.
12486ac_preproc_ok=:
12487break
12488fi
12489rm -f conftest.err conftest.i conftest.$ac_ext
12490
12491done
12492# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12493rm -f conftest.i conftest.err conftest.$ac_ext
12494if $ac_preproc_ok; then :
12495
12496else
12497  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12499_lt_caught_CXX_error=yes; }
12500fi
12501
12502ac_ext=cpp
12503ac_cpp='$CXXCPP $CPPFLAGS'
12504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12507
12508else
12509  _lt_caught_CXX_error=yes
12510fi
12511
12512
12513
12514
12515ac_ext=cpp
12516ac_cpp='$CXXCPP $CPPFLAGS'
12517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12520
12521archive_cmds_need_lc_CXX=no
12522allow_undefined_flag_CXX=
12523always_export_symbols_CXX=no
12524archive_expsym_cmds_CXX=
12525compiler_needs_object_CXX=no
12526export_dynamic_flag_spec_CXX=
12527hardcode_direct_CXX=no
12528hardcode_direct_absolute_CXX=no
12529hardcode_libdir_flag_spec_CXX=
12530hardcode_libdir_flag_spec_ld_CXX=
12531hardcode_libdir_separator_CXX=
12532hardcode_minus_L_CXX=no
12533hardcode_shlibpath_var_CXX=unsupported
12534hardcode_automatic_CXX=no
12535inherit_rpath_CXX=no
12536module_cmds_CXX=
12537module_expsym_cmds_CXX=
12538link_all_deplibs_CXX=unknown
12539old_archive_cmds_CXX=$old_archive_cmds
12540no_undefined_flag_CXX=
12541whole_archive_flag_spec_CXX=
12542enable_shared_with_static_runtimes_CXX=no
12543
12544# Source file extension for C++ test sources.
12545ac_ext=cpp
12546
12547# Object file extension for compiled C++ test sources.
12548objext=o
12549objext_CXX=$objext
12550
12551# No sense in running all these tests if we already determined that
12552# the CXX compiler isn't working.  Some variables (like enable_shared)
12553# are currently assumed to apply to all compilers on this platform,
12554# and will be corrupted by setting them based on a non-working compiler.
12555if test "$_lt_caught_CXX_error" != yes; then
12556  # Code to be used in simple compile tests
12557  lt_simple_compile_test_code="int some_variable = 0;"
12558
12559  # Code to be used in simple link tests
12560  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12561
12562  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12563
12564
12565
12566
12567
12568
12569# If no C compiler was specified, use CC.
12570LTCC=${LTCC-"$CC"}
12571
12572# If no C compiler flags were specified, use CFLAGS.
12573LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12574
12575# Allow CC to be a program name with arguments.
12576compiler=$CC
12577
12578
12579  # save warnings/boilerplate of simple test code
12580  ac_outfile=conftest.$ac_objext
12581echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12582eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12583_lt_compiler_boilerplate=`cat conftest.err`
12584$RM conftest*
12585
12586  ac_outfile=conftest.$ac_objext
12587echo "$lt_simple_link_test_code" >conftest.$ac_ext
12588eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12589_lt_linker_boilerplate=`cat conftest.err`
12590$RM -r conftest*
12591
12592
12593  # Allow CC to be a program name with arguments.
12594  lt_save_CC=$CC
12595  lt_save_LD=$LD
12596  lt_save_GCC=$GCC
12597  GCC=$GXX
12598  lt_save_with_gnu_ld=$with_gnu_ld
12599  lt_save_path_LD=$lt_cv_path_LD
12600  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12601    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12602  else
12603    $as_unset lt_cv_prog_gnu_ld
12604  fi
12605  if test -n "${lt_cv_path_LDCXX+set}"; then
12606    lt_cv_path_LD=$lt_cv_path_LDCXX
12607  else
12608    $as_unset lt_cv_path_LD
12609  fi
12610  test -z "${LDCXX+set}" || LD=$LDCXX
12611  CC=${CXX-"c++"}
12612  compiler=$CC
12613  compiler_CXX=$CC
12614  for cc_temp in $compiler""; do
12615  case $cc_temp in
12616    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12617    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12618    \-*) ;;
12619    *) break;;
12620  esac
12621done
12622cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12623
12624
12625  if test -n "$compiler"; then
12626    # We don't want -fno-exception when compiling C++ code, so set the
12627    # no_builtin_flag separately
12628    if test "$GXX" = yes; then
12629      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12630    else
12631      lt_prog_compiler_no_builtin_flag_CXX=
12632    fi
12633
12634    if test "$GXX" = yes; then
12635      # Set up default GNU C++ configuration
12636
12637
12638
12639# Check whether --with-gnu-ld was given.
12640if test "${with_gnu_ld+set}" = set; then :
12641  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12642else
12643  with_gnu_ld=no
12644fi
12645
12646ac_prog=ld
12647if test "$GCC" = yes; then
12648  # Check if gcc -print-prog-name=ld gives a path.
12649  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12650$as_echo_n "checking for ld used by $CC... " >&6; }
12651  case $host in
12652  *-*-mingw*)
12653    # gcc leaves a trailing carriage return which upsets mingw
12654    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12655  *)
12656    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12657  esac
12658  case $ac_prog in
12659    # Accept absolute paths.
12660    [\\/]* | ?:[\\/]*)
12661      re_direlt='/[^/][^/]*/\.\./'
12662      # Canonicalize the pathname of ld
12663      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12664      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12665	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12666      done
12667      test -z "$LD" && LD="$ac_prog"
12668      ;;
12669  "")
12670    # If it fails, then pretend we aren't using GCC.
12671    ac_prog=ld
12672    ;;
12673  *)
12674    # If it is relative, then search for the first ld in PATH.
12675    with_gnu_ld=unknown
12676    ;;
12677  esac
12678elif test "$with_gnu_ld" = yes; then
12679  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12680$as_echo_n "checking for GNU ld... " >&6; }
12681else
12682  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12683$as_echo_n "checking for non-GNU ld... " >&6; }
12684fi
12685if ${lt_cv_path_LD+:} false; then :
12686  $as_echo_n "(cached) " >&6
12687else
12688  if test -z "$LD"; then
12689  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12690  for ac_dir in $PATH; do
12691    IFS="$lt_save_ifs"
12692    test -z "$ac_dir" && ac_dir=.
12693    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12694      lt_cv_path_LD="$ac_dir/$ac_prog"
12695      # Check to see if the program is GNU ld.  I'd rather use --version,
12696      # but apparently some variants of GNU ld only accept -v.
12697      # Break only if it was the GNU/non-GNU ld that we prefer.
12698      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12699      *GNU* | *'with BFD'*)
12700	test "$with_gnu_ld" != no && break
12701	;;
12702      *)
12703	test "$with_gnu_ld" != yes && break
12704	;;
12705      esac
12706    fi
12707  done
12708  IFS="$lt_save_ifs"
12709else
12710  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12711fi
12712fi
12713
12714LD="$lt_cv_path_LD"
12715if test -n "$LD"; then
12716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12717$as_echo "$LD" >&6; }
12718else
12719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12720$as_echo "no" >&6; }
12721fi
12722test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12724$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12725if ${lt_cv_prog_gnu_ld+:} false; then :
12726  $as_echo_n "(cached) " >&6
12727else
12728  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12729case `$LD -v 2>&1 </dev/null` in
12730*GNU* | *'with BFD'*)
12731  lt_cv_prog_gnu_ld=yes
12732  ;;
12733*)
12734  lt_cv_prog_gnu_ld=no
12735  ;;
12736esac
12737fi
12738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12739$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12740with_gnu_ld=$lt_cv_prog_gnu_ld
12741
12742
12743
12744
12745
12746
12747
12748      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12749      # archiving commands below assume that GNU ld is being used.
12750      if test "$with_gnu_ld" = yes; then
12751        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12752        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'
12753
12754        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12755        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12756
12757        # If archive_cmds runs LD, not CC, wlarc should be empty
12758        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12759        #     investigate it a little bit more. (MM)
12760        wlarc='${wl}'
12761
12762        # ancient GNU ld didn't support --whole-archive et. al.
12763        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12764	  $GREP 'no-whole-archive' > /dev/null; then
12765          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12766        else
12767          whole_archive_flag_spec_CXX=
12768        fi
12769      else
12770        with_gnu_ld=no
12771        wlarc=
12772
12773        # A generic and very simple default shared library creation
12774        # command for GNU C++ for the case where it uses the native
12775        # linker, instead of GNU ld.  If possible, this setting should
12776        # overridden to take advantage of the native linker features on
12777        # the platform it is being used on.
12778        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12779      fi
12780
12781      # Commands to make compiler produce verbose output that lists
12782      # what "hidden" libraries, object files and flags are used when
12783      # linking a shared library.
12784      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12785
12786    else
12787      GXX=no
12788      with_gnu_ld=no
12789      wlarc=
12790    fi
12791
12792    # PORTME: fill in a description of your system's C++ link characteristics
12793    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12794$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12795    ld_shlibs_CXX=yes
12796    case $host_os in
12797      aix3*)
12798        # FIXME: insert proper C++ library support
12799        ld_shlibs_CXX=no
12800        ;;
12801      aix[4-9]*)
12802        if test "$host_cpu" = ia64; then
12803          # On IA64, the linker does run time linking by default, so we don't
12804          # have to do anything special.
12805          aix_use_runtimelinking=no
12806          exp_sym_flag='-Bexport'
12807          no_entry_flag=""
12808        else
12809          aix_use_runtimelinking=no
12810
12811          # Test if we are trying to use run time linking or normal
12812          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12813          # need to do runtime linking.
12814          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12815	    for ld_flag in $LDFLAGS; do
12816	      case $ld_flag in
12817	      *-brtl*)
12818	        aix_use_runtimelinking=yes
12819	        break
12820	        ;;
12821	      esac
12822	    done
12823	    ;;
12824          esac
12825
12826          exp_sym_flag='-bexport'
12827          no_entry_flag='-bnoentry'
12828        fi
12829
12830        # When large executables or shared objects are built, AIX ld can
12831        # have problems creating the table of contents.  If linking a library
12832        # or program results in "error TOC overflow" add -mminimal-toc to
12833        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12834        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12835
12836        archive_cmds_CXX=''
12837        hardcode_direct_CXX=yes
12838        hardcode_direct_absolute_CXX=yes
12839        hardcode_libdir_separator_CXX=':'
12840        link_all_deplibs_CXX=yes
12841        file_list_spec_CXX='${wl}-f,'
12842
12843        if test "$GXX" = yes; then
12844          case $host_os in aix4.[012]|aix4.[012].*)
12845          # We only want to do this on AIX 4.2 and lower, the check
12846          # below for broken collect2 doesn't work under 4.3+
12847	  collect2name=`${CC} -print-prog-name=collect2`
12848	  if test -f "$collect2name" &&
12849	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12850	  then
12851	    # We have reworked collect2
12852	    :
12853	  else
12854	    # We have old collect2
12855	    hardcode_direct_CXX=unsupported
12856	    # It fails to find uninstalled libraries when the uninstalled
12857	    # path is not listed in the libpath.  Setting hardcode_minus_L
12858	    # to unsupported forces relinking
12859	    hardcode_minus_L_CXX=yes
12860	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12861	    hardcode_libdir_separator_CXX=
12862	  fi
12863          esac
12864          shared_flag='-shared'
12865	  if test "$aix_use_runtimelinking" = yes; then
12866	    shared_flag="$shared_flag "'${wl}-G'
12867	  fi
12868        else
12869          # not using gcc
12870          if test "$host_cpu" = ia64; then
12871	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12872	  # chokes on -Wl,-G. The following line is correct:
12873	  shared_flag='-G'
12874          else
12875	    if test "$aix_use_runtimelinking" = yes; then
12876	      shared_flag='${wl}-G'
12877	    else
12878	      shared_flag='${wl}-bM:SRE'
12879	    fi
12880          fi
12881        fi
12882
12883        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12884        # It seems that -bexpall does not export symbols beginning with
12885        # underscore (_), so it is better to generate a list of symbols to
12886	# export.
12887        always_export_symbols_CXX=yes
12888        if test "$aix_use_runtimelinking" = yes; then
12889          # Warning - without using the other runtime loading flags (-brtl),
12890          # -berok will link without error, but may produce a broken library.
12891          allow_undefined_flag_CXX='-berok'
12892          # Determine the default libpath from the value encoded in an empty
12893          # executable.
12894          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12895/* end confdefs.h.  */
12896
12897int
12898main ()
12899{
12900
12901  ;
12902  return 0;
12903}
12904_ACEOF
12905if ac_fn_cxx_try_link "$LINENO"; then :
12906
12907lt_aix_libpath_sed='
12908    /Import File Strings/,/^$/ {
12909	/^0/ {
12910	    s/^0  *\(.*\)$/\1/
12911	    p
12912	}
12913    }'
12914aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12915# Check for a 64-bit object if we didn't find anything.
12916if test -z "$aix_libpath"; then
12917  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12918fi
12919fi
12920rm -f core conftest.err conftest.$ac_objext \
12921    conftest$ac_exeext conftest.$ac_ext
12922if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12923
12924          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12925
12926          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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12927        else
12928          if test "$host_cpu" = ia64; then
12929	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12930	    allow_undefined_flag_CXX="-z nodefs"
12931	    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"
12932          else
12933	    # Determine the default libpath from the value encoded in an
12934	    # empty executable.
12935	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936/* end confdefs.h.  */
12937
12938int
12939main ()
12940{
12941
12942  ;
12943  return 0;
12944}
12945_ACEOF
12946if ac_fn_cxx_try_link "$LINENO"; then :
12947
12948lt_aix_libpath_sed='
12949    /Import File Strings/,/^$/ {
12950	/^0/ {
12951	    s/^0  *\(.*\)$/\1/
12952	    p
12953	}
12954    }'
12955aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12956# Check for a 64-bit object if we didn't find anything.
12957if test -z "$aix_libpath"; then
12958  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12959fi
12960fi
12961rm -f core conftest.err conftest.$ac_objext \
12962    conftest$ac_exeext conftest.$ac_ext
12963if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12964
12965	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12966	    # Warning - without using the other run time loading flags,
12967	    # -berok will link without error, but may produce a broken library.
12968	    no_undefined_flag_CXX=' ${wl}-bernotok'
12969	    allow_undefined_flag_CXX=' ${wl}-berok'
12970	    # Exported symbols can be pulled into shared objects from archives
12971	    whole_archive_flag_spec_CXX='$convenience'
12972	    archive_cmds_need_lc_CXX=yes
12973	    # This is similar to how AIX traditionally builds its shared
12974	    # libraries.
12975	    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'
12976          fi
12977        fi
12978        ;;
12979
12980      beos*)
12981	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12982	  allow_undefined_flag_CXX=unsupported
12983	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12984	  # support --undefined.  This deserves some investigation.  FIXME
12985	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12986	else
12987	  ld_shlibs_CXX=no
12988	fi
12989	;;
12990
12991      chorus*)
12992        case $cc_basename in
12993          *)
12994	  # FIXME: insert proper C++ library support
12995	  ld_shlibs_CXX=no
12996	  ;;
12997        esac
12998        ;;
12999
13000      cygwin* | mingw* | pw32* | cegcc*)
13001        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13002        # as there is no search path for DLLs.
13003        hardcode_libdir_flag_spec_CXX='-L$libdir'
13004        allow_undefined_flag_CXX=unsupported
13005        always_export_symbols_CXX=no
13006        enable_shared_with_static_runtimes_CXX=yes
13007
13008        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13009          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'
13010          # If the export-symbols file already is a .def file (1st line
13011          # is EXPORTS), use it as is; otherwise, prepend...
13012          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13013	    cp $export_symbols $output_objdir/$soname.def;
13014          else
13015	    echo EXPORTS > $output_objdir/$soname.def;
13016	    cat $export_symbols >> $output_objdir/$soname.def;
13017          fi~
13018          $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'
13019        else
13020          ld_shlibs_CXX=no
13021        fi
13022        ;;
13023      darwin* | rhapsody*)
13024
13025
13026  archive_cmds_need_lc_CXX=no
13027  hardcode_direct_CXX=no
13028  hardcode_automatic_CXX=yes
13029  hardcode_shlibpath_var_CXX=unsupported
13030  whole_archive_flag_spec_CXX=''
13031  link_all_deplibs_CXX=yes
13032  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13033  case $cc_basename in
13034     ifort*) _lt_dar_can_shared=yes ;;
13035     *) _lt_dar_can_shared=$GCC ;;
13036  esac
13037  if test "$_lt_dar_can_shared" = "yes"; then
13038    output_verbose_link_cmd=echo
13039    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13040    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13041    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13042    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13043       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13044      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13045      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13046    fi
13047
13048  else
13049  ld_shlibs_CXX=no
13050  fi
13051
13052	;;
13053
13054      dgux*)
13055        case $cc_basename in
13056          ec++*)
13057	    # FIXME: insert proper C++ library support
13058	    ld_shlibs_CXX=no
13059	    ;;
13060          ghcx*)
13061	    # Green Hills C++ Compiler
13062	    # FIXME: insert proper C++ library support
13063	    ld_shlibs_CXX=no
13064	    ;;
13065          *)
13066	    # FIXME: insert proper C++ library support
13067	    ld_shlibs_CXX=no
13068	    ;;
13069        esac
13070        ;;
13071
13072      freebsd[12]*)
13073        # C++ shared libraries reported to be fairly broken before
13074	# switch to ELF
13075        ld_shlibs_CXX=no
13076        ;;
13077
13078      freebsd-elf*)
13079        archive_cmds_need_lc_CXX=no
13080        ;;
13081
13082      freebsd* | dragonfly*)
13083        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13084        # conventions
13085        ld_shlibs_CXX=yes
13086        ;;
13087
13088      gnu*)
13089        ;;
13090
13091      hpux9*)
13092        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13093        hardcode_libdir_separator_CXX=:
13094        export_dynamic_flag_spec_CXX='${wl}-E'
13095        hardcode_direct_CXX=yes
13096        hardcode_minus_L_CXX=yes # Not in the search PATH,
13097				             # but as the default
13098				             # location of the library.
13099
13100        case $cc_basename in
13101          CC*)
13102            # FIXME: insert proper C++ library support
13103            ld_shlibs_CXX=no
13104            ;;
13105          aCC*)
13106            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'
13107            # Commands to make compiler produce verbose output that lists
13108            # what "hidden" libraries, object files and flags are used when
13109            # linking a shared library.
13110            #
13111            # There doesn't appear to be a way to prevent this compiler from
13112            # explicitly linking system object files so we need to strip them
13113            # from the output so that they don't get included in the library
13114            # dependencies.
13115            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13116            ;;
13117          *)
13118            if test "$GXX" = yes; then
13119              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'
13120            else
13121              # FIXME: insert proper C++ library support
13122              ld_shlibs_CXX=no
13123            fi
13124            ;;
13125        esac
13126        ;;
13127
13128      hpux10*|hpux11*)
13129        if test $with_gnu_ld = no; then
13130	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13131	  hardcode_libdir_separator_CXX=:
13132
13133          case $host_cpu in
13134            hppa*64*|ia64*)
13135              ;;
13136            *)
13137	      export_dynamic_flag_spec_CXX='${wl}-E'
13138              ;;
13139          esac
13140        fi
13141        case $host_cpu in
13142          hppa*64*|ia64*)
13143            hardcode_direct_CXX=no
13144            hardcode_shlibpath_var_CXX=no
13145            ;;
13146          *)
13147            hardcode_direct_CXX=yes
13148            hardcode_direct_absolute_CXX=yes
13149            hardcode_minus_L_CXX=yes # Not in the search PATH,
13150					         # but as the default
13151					         # location of the library.
13152            ;;
13153        esac
13154
13155        case $cc_basename in
13156          CC*)
13157	    # FIXME: insert proper C++ library support
13158	    ld_shlibs_CXX=no
13159	    ;;
13160          aCC*)
13161	    case $host_cpu in
13162	      hppa*64*)
13163	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13164	        ;;
13165	      ia64*)
13166	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13167	        ;;
13168	      *)
13169	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13170	        ;;
13171	    esac
13172	    # Commands to make compiler produce verbose output that lists
13173	    # what "hidden" libraries, object files and flags are used when
13174	    # linking a shared library.
13175	    #
13176	    # There doesn't appear to be a way to prevent this compiler from
13177	    # explicitly linking system object files so we need to strip them
13178	    # from the output so that they don't get included in the library
13179	    # dependencies.
13180	    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 "X$list" | $Xsed'
13181	    ;;
13182          *)
13183	    if test "$GXX" = yes; then
13184	      if test $with_gnu_ld = no; then
13185	        case $host_cpu in
13186	          hppa*64*)
13187	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13188	            ;;
13189	          ia64*)
13190	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13191	            ;;
13192	          *)
13193	            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'
13194	            ;;
13195	        esac
13196	      fi
13197	    else
13198	      # FIXME: insert proper C++ library support
13199	      ld_shlibs_CXX=no
13200	    fi
13201	    ;;
13202        esac
13203        ;;
13204
13205      interix[3-9]*)
13206	hardcode_direct_CXX=no
13207	hardcode_shlibpath_var_CXX=no
13208	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13209	export_dynamic_flag_spec_CXX='${wl}-E'
13210	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13211	# Instead, shared libraries are loaded at an image base (0x10000000 by
13212	# default) and relocated if they conflict, which is a slow very memory
13213	# consuming and fragmenting process.  To avoid this, we pick a random,
13214	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13215	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13216	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'
13217	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'
13218	;;
13219      irix5* | irix6*)
13220        case $cc_basename in
13221          CC*)
13222	    # SGI C++
13223	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13224
13225	    # Archives containing C++ object files must be created using
13226	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13227	    # necessary to make sure instantiated templates are included
13228	    # in the archive.
13229	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13230	    ;;
13231          *)
13232	    if test "$GXX" = yes; then
13233	      if test "$with_gnu_ld" = no; then
13234	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13235	      else
13236	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13237	      fi
13238	    fi
13239	    link_all_deplibs_CXX=yes
13240	    ;;
13241        esac
13242        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13243        hardcode_libdir_separator_CXX=:
13244        inherit_rpath_CXX=yes
13245        ;;
13246
13247      linux* | k*bsd*-gnu)
13248        case $cc_basename in
13249          KCC*)
13250	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13251
13252	    # KCC will only create a shared library if the output file
13253	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13254	    # to its proper name (with version) after linking.
13255	    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'
13256	    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'
13257	    # Commands to make compiler produce verbose output that lists
13258	    # what "hidden" libraries, object files and flags are used when
13259	    # linking a shared library.
13260	    #
13261	    # There doesn't appear to be a way to prevent this compiler from
13262	    # explicitly linking system object files so we need to strip them
13263	    # from the output so that they don't get included in the library
13264	    # dependencies.
13265	    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 "X$list" | $Xsed'
13266
13267	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13268	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13269
13270	    # Archives containing C++ object files must be created using
13271	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13272	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13273	    ;;
13274	  icpc* | ecpc* )
13275	    # Intel C++
13276	    with_gnu_ld=yes
13277	    # version 8.0 and above of icpc choke on multiply defined symbols
13278	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13279	    # earlier do not add the objects themselves.
13280	    case `$CC -V 2>&1` in
13281	      *"Version 7."*)
13282	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13283		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'
13284		;;
13285	      *)  # Version 8.0 or newer
13286	        tmp_idyn=
13287	        case $host_cpu in
13288		  ia64*) tmp_idyn=' -i_dynamic';;
13289		esac
13290	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13291		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'
13292		;;
13293	    esac
13294	    archive_cmds_need_lc_CXX=no
13295	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13296	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13297	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13298	    ;;
13299          pgCC* | pgcpp*)
13300            # Portland Group C++ compiler
13301	    case `$CC -V` in
13302	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13303	      prelink_cmds_CXX='tpldir=Template.dir~
13304		rm -rf $tpldir~
13305		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13306		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13307	      old_archive_cmds_CXX='tpldir=Template.dir~
13308		rm -rf $tpldir~
13309		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13310		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13311		$RANLIB $oldlib'
13312	      archive_cmds_CXX='tpldir=Template.dir~
13313		rm -rf $tpldir~
13314		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13315		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13316	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13317		rm -rf $tpldir~
13318		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13319		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13320	      ;;
13321	    *) # Version 6 will use weak symbols
13322	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13323	      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'
13324	      ;;
13325	    esac
13326
13327	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13328	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13329	    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'
13330            ;;
13331	  cxx*)
13332	    # Compaq C++
13333	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13334	    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'
13335
13336	    runpath_var=LD_RUN_PATH
13337	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13338	    hardcode_libdir_separator_CXX=:
13339
13340	    # Commands to make compiler produce verbose output that lists
13341	    # what "hidden" libraries, object files and flags are used when
13342	    # linking a shared library.
13343	    #
13344	    # There doesn't appear to be a way to prevent this compiler from
13345	    # explicitly linking system object files so we need to strip them
13346	    # from the output so that they don't get included in the library
13347	    # dependencies.
13348	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13349	    ;;
13350	  xl*)
13351	    # IBM XL 8.0 on PPC, with GNU ld
13352	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13353	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13354	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13355	    if test "x$supports_anon_versioning" = xyes; then
13356	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13357		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13358		echo "local: *; };" >> $output_objdir/$libname.ver~
13359		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13360	    fi
13361	    ;;
13362	  *)
13363	    case `$CC -V 2>&1 | sed 5q` in
13364	    *Sun\ C*)
13365	      # Sun C++ 5.9
13366	      no_undefined_flag_CXX=' -zdefs'
13367	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13368	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13369	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13370	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13371	      compiler_needs_object_CXX=yes
13372
13373	      # Not sure whether something based on
13374	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13375	      # would be better.
13376	      output_verbose_link_cmd='echo'
13377
13378	      # Archives containing C++ object files must be created using
13379	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13380	      # necessary to make sure instantiated templates are included
13381	      # in the archive.
13382	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13383	      ;;
13384	    esac
13385	    ;;
13386	esac
13387	;;
13388
13389      lynxos*)
13390        # FIXME: insert proper C++ library support
13391	ld_shlibs_CXX=no
13392	;;
13393
13394      m88k*)
13395        # FIXME: insert proper C++ library support
13396        ld_shlibs_CXX=no
13397	;;
13398
13399      mvs*)
13400        case $cc_basename in
13401          cxx*)
13402	    # FIXME: insert proper C++ library support
13403	    ld_shlibs_CXX=no
13404	    ;;
13405	  *)
13406	    # FIXME: insert proper C++ library support
13407	    ld_shlibs_CXX=no
13408	    ;;
13409	esac
13410	;;
13411
13412      netbsd*)
13413        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13414	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13415	  wlarc=
13416	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13417	  hardcode_direct_CXX=yes
13418	  hardcode_shlibpath_var_CXX=no
13419	fi
13420	# Workaround some broken pre-1.5 toolchains
13421	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13422	;;
13423
13424      *nto* | *qnx*)
13425        ld_shlibs_CXX=yes
13426	;;
13427
13428      openbsd2*)
13429        # C++ shared libraries are fairly broken
13430	ld_shlibs_CXX=no
13431	;;
13432
13433      openbsd*)
13434	if test -f /usr/libexec/ld.so; then
13435	  hardcode_direct_CXX=yes
13436	  hardcode_shlibpath_var_CXX=no
13437	  hardcode_direct_absolute_CXX=yes
13438	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13439	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13440	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13441	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13442	    export_dynamic_flag_spec_CXX='${wl}-E'
13443	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13444	  fi
13445	  output_verbose_link_cmd=echo
13446	else
13447	  ld_shlibs_CXX=no
13448	fi
13449	;;
13450
13451      osf3* | osf4* | osf5*)
13452        case $cc_basename in
13453          KCC*)
13454	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13455
13456	    # KCC will only create a shared library if the output file
13457	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13458	    # to its proper name (with version) after linking.
13459	    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'
13460
13461	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13462	    hardcode_libdir_separator_CXX=:
13463
13464	    # Archives containing C++ object files must be created using
13465	    # the KAI C++ compiler.
13466	    case $host in
13467	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13468	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13469	    esac
13470	    ;;
13471          RCC*)
13472	    # Rational C++ 2.4.1
13473	    # FIXME: insert proper C++ library support
13474	    ld_shlibs_CXX=no
13475	    ;;
13476          cxx*)
13477	    case $host in
13478	      osf3*)
13479	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13480	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13481	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13482		;;
13483	      *)
13484	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13485	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13486	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13487	          echo "-hidden">> $lib.exp~
13488	          $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13489	          $RM $lib.exp'
13490	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13491		;;
13492	    esac
13493
13494	    hardcode_libdir_separator_CXX=:
13495
13496	    # Commands to make compiler produce verbose output that lists
13497	    # what "hidden" libraries, object files and flags are used when
13498	    # linking a shared library.
13499	    #
13500	    # There doesn't appear to be a way to prevent this compiler from
13501	    # explicitly linking system object files so we need to strip them
13502	    # from the output so that they don't get included in the library
13503	    # dependencies.
13504	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13505	    ;;
13506	  *)
13507	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13508	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13509	      case $host in
13510	        osf3*)
13511	          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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13512		  ;;
13513	        *)
13514	          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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13515		  ;;
13516	      esac
13517
13518	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13519	      hardcode_libdir_separator_CXX=:
13520
13521	      # Commands to make compiler produce verbose output that lists
13522	      # what "hidden" libraries, object files and flags are used when
13523	      # linking a shared library.
13524	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13525
13526	    else
13527	      # FIXME: insert proper C++ library support
13528	      ld_shlibs_CXX=no
13529	    fi
13530	    ;;
13531        esac
13532        ;;
13533
13534      psos*)
13535        # FIXME: insert proper C++ library support
13536        ld_shlibs_CXX=no
13537        ;;
13538
13539      sunos4*)
13540        case $cc_basename in
13541          CC*)
13542	    # Sun C++ 4.x
13543	    # FIXME: insert proper C++ library support
13544	    ld_shlibs_CXX=no
13545	    ;;
13546          lcc*)
13547	    # Lucid
13548	    # FIXME: insert proper C++ library support
13549	    ld_shlibs_CXX=no
13550	    ;;
13551          *)
13552	    # FIXME: insert proper C++ library support
13553	    ld_shlibs_CXX=no
13554	    ;;
13555        esac
13556        ;;
13557
13558      solaris*)
13559        case $cc_basename in
13560          CC*)
13561	    # Sun C++ 4.2, 5.x and Centerline C++
13562            archive_cmds_need_lc_CXX=yes
13563	    no_undefined_flag_CXX=' -zdefs'
13564	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13565	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13566	      $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'
13567
13568	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13569	    hardcode_shlibpath_var_CXX=no
13570	    case $host_os in
13571	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13572	      *)
13573		# The compiler driver will combine and reorder linker options,
13574		# but understands `-z linker_flag'.
13575	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13576		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13577	        ;;
13578	    esac
13579	    link_all_deplibs_CXX=yes
13580
13581	    output_verbose_link_cmd='echo'
13582
13583	    # Archives containing C++ object files must be created using
13584	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13585	    # necessary to make sure instantiated templates are included
13586	    # in the archive.
13587	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13588	    ;;
13589          gcx*)
13590	    # Green Hills C++ Compiler
13591	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13592
13593	    # The C++ compiler must be used to create the archive.
13594	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13595	    ;;
13596          *)
13597	    # GNU C++ compiler with Solaris linker
13598	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13599	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13600	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13601	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13602	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13603		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13604
13605	        # Commands to make compiler produce verbose output that lists
13606	        # what "hidden" libraries, object files and flags are used when
13607	        # linking a shared library.
13608	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13609	      else
13610	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13611	        # platform.
13612	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13613	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13614		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13615
13616	        # Commands to make compiler produce verbose output that lists
13617	        # what "hidden" libraries, object files and flags are used when
13618	        # linking a shared library.
13619	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13620	      fi
13621
13622	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13623	      case $host_os in
13624		solaris2.[0-5] | solaris2.[0-5].*) ;;
13625		*)
13626		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13627		  ;;
13628	      esac
13629	    fi
13630	    ;;
13631        esac
13632        ;;
13633
13634    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13635      no_undefined_flag_CXX='${wl}-z,text'
13636      archive_cmds_need_lc_CXX=no
13637      hardcode_shlibpath_var_CXX=no
13638      runpath_var='LD_RUN_PATH'
13639
13640      case $cc_basename in
13641        CC*)
13642	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13643	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13644	  ;;
13645	*)
13646	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13647	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13648	  ;;
13649      esac
13650      ;;
13651
13652      sysv5* | sco3.2v5* | sco5v6*)
13653	# Note: We can NOT use -z defs as we might desire, because we do not
13654	# link with -lc, and that would cause any symbols used from libc to
13655	# always be unresolved, which means just about no library would
13656	# ever link correctly.  If we're not using GNU ld we use -z text
13657	# though, which does catch some bad symbols but isn't as heavy-handed
13658	# as -z defs.
13659	no_undefined_flag_CXX='${wl}-z,text'
13660	allow_undefined_flag_CXX='${wl}-z,nodefs'
13661	archive_cmds_need_lc_CXX=no
13662	hardcode_shlibpath_var_CXX=no
13663	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13664	hardcode_libdir_separator_CXX=':'
13665	link_all_deplibs_CXX=yes
13666	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13667	runpath_var='LD_RUN_PATH'
13668
13669	case $cc_basename in
13670          CC*)
13671	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13672	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13673	    ;;
13674	  *)
13675	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13676	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13677	    ;;
13678	esac
13679      ;;
13680
13681      tandem*)
13682        case $cc_basename in
13683          NCC*)
13684	    # NonStop-UX NCC 3.20
13685	    # FIXME: insert proper C++ library support
13686	    ld_shlibs_CXX=no
13687	    ;;
13688          *)
13689	    # FIXME: insert proper C++ library support
13690	    ld_shlibs_CXX=no
13691	    ;;
13692        esac
13693        ;;
13694
13695      vxworks*)
13696        # FIXME: insert proper C++ library support
13697        ld_shlibs_CXX=no
13698        ;;
13699
13700      *)
13701        # FIXME: insert proper C++ library support
13702        ld_shlibs_CXX=no
13703        ;;
13704    esac
13705
13706    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13707$as_echo "$ld_shlibs_CXX" >&6; }
13708    test "$ld_shlibs_CXX" = no && can_build_shared=no
13709
13710    GCC_CXX="$GXX"
13711    LD_CXX="$LD"
13712
13713    ## CAVEAT EMPTOR:
13714    ## There is no encapsulation within the following macros, do not change
13715    ## the running order or otherwise move them around unless you know exactly
13716    ## what you are doing...
13717    # Dependencies to place before and after the object being linked:
13718predep_objects_CXX=
13719postdep_objects_CXX=
13720predeps_CXX=
13721postdeps_CXX=
13722compiler_lib_search_path_CXX=
13723
13724cat > conftest.$ac_ext <<_LT_EOF
13725class Foo
13726{
13727public:
13728  Foo (void) { a = 0; }
13729private:
13730  int a;
13731};
13732_LT_EOF
13733
13734if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13735  (eval $ac_compile) 2>&5
13736  ac_status=$?
13737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13738  test $ac_status = 0; }; then
13739  # Parse the compiler output and extract the necessary
13740  # objects, libraries and library flags.
13741
13742  # Sentinel used to keep track of whether or not we are before
13743  # the conftest object file.
13744  pre_test_object_deps_done=no
13745
13746  for p in `eval "$output_verbose_link_cmd"`; do
13747    case $p in
13748
13749    -L* | -R* | -l*)
13750       # Some compilers place space between "-{L,R}" and the path.
13751       # Remove the space.
13752       if test $p = "-L" ||
13753          test $p = "-R"; then
13754	 prev=$p
13755	 continue
13756       else
13757	 prev=
13758       fi
13759
13760       if test "$pre_test_object_deps_done" = no; then
13761	 case $p in
13762	 -L* | -R*)
13763	   # Internal compiler library paths should come after those
13764	   # provided the user.  The postdeps already come after the
13765	   # user supplied libs so there is no need to process them.
13766	   if test -z "$compiler_lib_search_path_CXX"; then
13767	     compiler_lib_search_path_CXX="${prev}${p}"
13768	   else
13769	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13770	   fi
13771	   ;;
13772	 # The "-l" case would never come before the object being
13773	 # linked, so don't bother handling this case.
13774	 esac
13775       else
13776	 if test -z "$postdeps_CXX"; then
13777	   postdeps_CXX="${prev}${p}"
13778	 else
13779	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13780	 fi
13781       fi
13782       ;;
13783
13784    *.$objext)
13785       # This assumes that the test object file only shows up
13786       # once in the compiler output.
13787       if test "$p" = "conftest.$objext"; then
13788	 pre_test_object_deps_done=yes
13789	 continue
13790       fi
13791
13792       if test "$pre_test_object_deps_done" = no; then
13793	 if test -z "$predep_objects_CXX"; then
13794	   predep_objects_CXX="$p"
13795	 else
13796	   predep_objects_CXX="$predep_objects_CXX $p"
13797	 fi
13798       else
13799	 if test -z "$postdep_objects_CXX"; then
13800	   postdep_objects_CXX="$p"
13801	 else
13802	   postdep_objects_CXX="$postdep_objects_CXX $p"
13803	 fi
13804       fi
13805       ;;
13806
13807    *) ;; # Ignore the rest.
13808
13809    esac
13810  done
13811
13812  # Clean up.
13813  rm -f a.out a.exe
13814else
13815  echo "libtool.m4: error: problem compiling CXX test program"
13816fi
13817
13818$RM -f confest.$objext
13819
13820# PORTME: override above test on systems where it is broken
13821case $host_os in
13822interix[3-9]*)
13823  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13824  # hack all around it, let's just trust "g++" to DTRT.
13825  predep_objects_CXX=
13826  postdep_objects_CXX=
13827  postdeps_CXX=
13828  ;;
13829
13830linux*)
13831  case `$CC -V 2>&1 | sed 5q` in
13832  *Sun\ C*)
13833    # Sun C++ 5.9
13834
13835    # The more standards-conforming stlport4 library is
13836    # incompatible with the Cstd library. Avoid specifying
13837    # it if it's in CXXFLAGS. Ignore libCrun as
13838    # -library=stlport4 depends on it.
13839    case " $CXX $CXXFLAGS " in
13840    *" -library=stlport4 "*)
13841      solaris_use_stlport4=yes
13842      ;;
13843    esac
13844
13845    if test "$solaris_use_stlport4" != yes; then
13846      postdeps_CXX='-library=Cstd -library=Crun'
13847    fi
13848    ;;
13849  esac
13850  ;;
13851
13852solaris*)
13853  case $cc_basename in
13854  CC*)
13855    # The more standards-conforming stlport4 library is
13856    # incompatible with the Cstd library. Avoid specifying
13857    # it if it's in CXXFLAGS. Ignore libCrun as
13858    # -library=stlport4 depends on it.
13859    case " $CXX $CXXFLAGS " in
13860    *" -library=stlport4 "*)
13861      solaris_use_stlport4=yes
13862      ;;
13863    esac
13864
13865    # Adding this requires a known-good setup of shared libraries for
13866    # Sun compiler versions before 5.6, else PIC objects from an old
13867    # archive will be linked into the output, leading to subtle bugs.
13868    if test "$solaris_use_stlport4" != yes; then
13869      postdeps_CXX='-library=Cstd -library=Crun'
13870    fi
13871    ;;
13872  esac
13873  ;;
13874esac
13875
13876
13877case " $postdeps_CXX " in
13878*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13879esac
13880 compiler_lib_search_dirs_CXX=
13881if test -n "${compiler_lib_search_path_CXX}"; then
13882 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13883fi
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915    lt_prog_compiler_wl_CXX=
13916lt_prog_compiler_pic_CXX=
13917lt_prog_compiler_static_CXX=
13918
13919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13920$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13921
13922  # C++ specific cases for pic, static, wl, etc.
13923  if test "$GXX" = yes; then
13924    lt_prog_compiler_wl_CXX='-Wl,'
13925    lt_prog_compiler_static_CXX='-static'
13926
13927    case $host_os in
13928    aix*)
13929      # All AIX code is PIC.
13930      if test "$host_cpu" = ia64; then
13931	# AIX 5 now supports IA64 processor
13932	lt_prog_compiler_static_CXX='-Bstatic'
13933      fi
13934      ;;
13935
13936    amigaos*)
13937      case $host_cpu in
13938      powerpc)
13939            # see comment about AmigaOS4 .so support
13940            lt_prog_compiler_pic_CXX='-fPIC'
13941        ;;
13942      m68k)
13943            # FIXME: we need at least 68020 code to build shared libraries, but
13944            # adding the `-m68020' flag to GCC prevents building anything better,
13945            # like `-m68040'.
13946            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13947        ;;
13948      esac
13949      ;;
13950
13951    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13952      # PIC is the default for these OSes.
13953      ;;
13954    mingw* | cygwin* | os2* | pw32* | cegcc*)
13955      # This hack is so that the source file can tell whether it is being
13956      # built for inclusion in a dll (and should export symbols for example).
13957      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13958      # (--disable-auto-import) libraries
13959      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13960      ;;
13961    darwin* | rhapsody*)
13962      # PIC is the default on this platform
13963      # Common symbols not allowed in MH_DYLIB files
13964      lt_prog_compiler_pic_CXX='-fno-common'
13965      ;;
13966    *djgpp*)
13967      # DJGPP does not support shared libraries at all
13968      lt_prog_compiler_pic_CXX=
13969      ;;
13970    interix[3-9]*)
13971      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13972      # Instead, we relocate shared libraries at runtime.
13973      ;;
13974    sysv4*MP*)
13975      if test -d /usr/nec; then
13976	lt_prog_compiler_pic_CXX=-Kconform_pic
13977      fi
13978      ;;
13979    hpux*)
13980      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13981      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13982      # sets the default TLS model and affects inlining.
13983      case $host_cpu in
13984      hppa*64*)
13985	;;
13986      *)
13987	lt_prog_compiler_pic_CXX='-fPIC'
13988	;;
13989      esac
13990      ;;
13991    *qnx* | *nto*)
13992      # QNX uses GNU C++, but need to define -shared option too, otherwise
13993      # it will coredump.
13994      lt_prog_compiler_pic_CXX='-fPIC -shared'
13995      ;;
13996    *)
13997      lt_prog_compiler_pic_CXX='-fPIC'
13998      ;;
13999    esac
14000  else
14001    case $host_os in
14002      aix[4-9]*)
14003	# All AIX code is PIC.
14004	if test "$host_cpu" = ia64; then
14005	  # AIX 5 now supports IA64 processor
14006	  lt_prog_compiler_static_CXX='-Bstatic'
14007	else
14008	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14009	fi
14010	;;
14011      chorus*)
14012	case $cc_basename in
14013	cxch68*)
14014	  # Green Hills C++ Compiler
14015	  # _LT_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"
14016	  ;;
14017	esac
14018	;;
14019      dgux*)
14020	case $cc_basename in
14021	  ec++*)
14022	    lt_prog_compiler_pic_CXX='-KPIC'
14023	    ;;
14024	  ghcx*)
14025	    # Green Hills C++ Compiler
14026	    lt_prog_compiler_pic_CXX='-pic'
14027	    ;;
14028	  *)
14029	    ;;
14030	esac
14031	;;
14032      freebsd* | dragonfly*)
14033	# FreeBSD uses GNU C++
14034	;;
14035      hpux9* | hpux10* | hpux11*)
14036	case $cc_basename in
14037	  CC*)
14038	    lt_prog_compiler_wl_CXX='-Wl,'
14039	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14040	    if test "$host_cpu" != ia64; then
14041	      lt_prog_compiler_pic_CXX='+Z'
14042	    fi
14043	    ;;
14044	  aCC*)
14045	    lt_prog_compiler_wl_CXX='-Wl,'
14046	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14047	    case $host_cpu in
14048	    hppa*64*|ia64*)
14049	      # +Z the default
14050	      ;;
14051	    *)
14052	      lt_prog_compiler_pic_CXX='+Z'
14053	      ;;
14054	    esac
14055	    ;;
14056	  *)
14057	    ;;
14058	esac
14059	;;
14060      interix*)
14061	# This is c89, which is MS Visual C++ (no shared libs)
14062	# Anyone wants to do a port?
14063	;;
14064      irix5* | irix6* | nonstopux*)
14065	case $cc_basename in
14066	  CC*)
14067	    lt_prog_compiler_wl_CXX='-Wl,'
14068	    lt_prog_compiler_static_CXX='-non_shared'
14069	    # CC pic flag -KPIC is the default.
14070	    ;;
14071	  *)
14072	    ;;
14073	esac
14074	;;
14075      linux* | k*bsd*-gnu)
14076	case $cc_basename in
14077	  KCC*)
14078	    # KAI C++ Compiler
14079	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14080	    lt_prog_compiler_pic_CXX='-fPIC'
14081	    ;;
14082	  ecpc* )
14083	    # old Intel C++ for x86_64 which still supported -KPIC.
14084	    lt_prog_compiler_wl_CXX='-Wl,'
14085	    lt_prog_compiler_pic_CXX='-KPIC'
14086	    lt_prog_compiler_static_CXX='-static'
14087	    ;;
14088	  icpc* )
14089	    # Intel C++, used to be incompatible with GCC.
14090	    # ICC 10 doesn't accept -KPIC any more.
14091	    lt_prog_compiler_wl_CXX='-Wl,'
14092	    lt_prog_compiler_pic_CXX='-fPIC'
14093	    lt_prog_compiler_static_CXX='-static'
14094	    ;;
14095	  pgCC* | pgcpp*)
14096	    # Portland Group C++ compiler
14097	    lt_prog_compiler_wl_CXX='-Wl,'
14098	    lt_prog_compiler_pic_CXX='-fpic'
14099	    lt_prog_compiler_static_CXX='-Bstatic'
14100	    ;;
14101	  cxx*)
14102	    # Compaq C++
14103	    # Make sure the PIC flag is empty.  It appears that all Alpha
14104	    # Linux and Compaq Tru64 Unix objects are PIC.
14105	    lt_prog_compiler_pic_CXX=
14106	    lt_prog_compiler_static_CXX='-non_shared'
14107	    ;;
14108	  xlc* | xlC*)
14109	    # IBM XL 8.0 on PPC
14110	    lt_prog_compiler_wl_CXX='-Wl,'
14111	    lt_prog_compiler_pic_CXX='-qpic'
14112	    lt_prog_compiler_static_CXX='-qstaticlink'
14113	    ;;
14114	  *)
14115	    case `$CC -V 2>&1 | sed 5q` in
14116	    *Sun\ C*)
14117	      # Sun C++ 5.9
14118	      lt_prog_compiler_pic_CXX='-KPIC'
14119	      lt_prog_compiler_static_CXX='-Bstatic'
14120	      lt_prog_compiler_wl_CXX='-Qoption ld '
14121	      ;;
14122	    esac
14123	    ;;
14124	esac
14125	;;
14126      lynxos*)
14127	;;
14128      m88k*)
14129	;;
14130      mvs*)
14131	case $cc_basename in
14132	  cxx*)
14133	    lt_prog_compiler_pic_CXX='-W c,exportall'
14134	    ;;
14135	  *)
14136	    ;;
14137	esac
14138	;;
14139      netbsd*)
14140	;;
14141      *qnx* | *nto*)
14142        # QNX uses GNU C++, but need to define -shared option too, otherwise
14143        # it will coredump.
14144        lt_prog_compiler_pic_CXX='-fPIC -shared'
14145        ;;
14146      osf3* | osf4* | osf5*)
14147	case $cc_basename in
14148	  KCC*)
14149	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14150	    ;;
14151	  RCC*)
14152	    # Rational C++ 2.4.1
14153	    lt_prog_compiler_pic_CXX='-pic'
14154	    ;;
14155	  cxx*)
14156	    # Digital/Compaq C++
14157	    lt_prog_compiler_wl_CXX='-Wl,'
14158	    # Make sure the PIC flag is empty.  It appears that all Alpha
14159	    # Linux and Compaq Tru64 Unix objects are PIC.
14160	    lt_prog_compiler_pic_CXX=
14161	    lt_prog_compiler_static_CXX='-non_shared'
14162	    ;;
14163	  *)
14164	    ;;
14165	esac
14166	;;
14167      psos*)
14168	;;
14169      solaris*)
14170	case $cc_basename in
14171	  CC*)
14172	    # Sun C++ 4.2, 5.x and Centerline C++
14173	    lt_prog_compiler_pic_CXX='-KPIC'
14174	    lt_prog_compiler_static_CXX='-Bstatic'
14175	    lt_prog_compiler_wl_CXX='-Qoption ld '
14176	    ;;
14177	  gcx*)
14178	    # Green Hills C++ Compiler
14179	    lt_prog_compiler_pic_CXX='-PIC'
14180	    ;;
14181	  *)
14182	    ;;
14183	esac
14184	;;
14185      sunos4*)
14186	case $cc_basename in
14187	  CC*)
14188	    # Sun C++ 4.x
14189	    lt_prog_compiler_pic_CXX='-pic'
14190	    lt_prog_compiler_static_CXX='-Bstatic'
14191	    ;;
14192	  lcc*)
14193	    # Lucid
14194	    lt_prog_compiler_pic_CXX='-pic'
14195	    ;;
14196	  *)
14197	    ;;
14198	esac
14199	;;
14200      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14201	case $cc_basename in
14202	  CC*)
14203	    lt_prog_compiler_wl_CXX='-Wl,'
14204	    lt_prog_compiler_pic_CXX='-KPIC'
14205	    lt_prog_compiler_static_CXX='-Bstatic'
14206	    ;;
14207	esac
14208	;;
14209      tandem*)
14210	case $cc_basename in
14211	  NCC*)
14212	    # NonStop-UX NCC 3.20
14213	    lt_prog_compiler_pic_CXX='-KPIC'
14214	    ;;
14215	  *)
14216	    ;;
14217	esac
14218	;;
14219      vxworks*)
14220	;;
14221      *)
14222	lt_prog_compiler_can_build_shared_CXX=no
14223	;;
14224    esac
14225  fi
14226
14227case $host_os in
14228  # For platforms which do not support PIC, -DPIC is meaningless:
14229  *djgpp*)
14230    lt_prog_compiler_pic_CXX=
14231    ;;
14232  *)
14233    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14234    ;;
14235esac
14236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14237$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14238
14239
14240
14241#
14242# Check to make sure the PIC flag actually works.
14243#
14244if test -n "$lt_prog_compiler_pic_CXX"; then
14245  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14246$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14247if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14248  $as_echo_n "(cached) " >&6
14249else
14250  lt_cv_prog_compiler_pic_works_CXX=no
14251   ac_outfile=conftest.$ac_objext
14252   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14253   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14254   # Insert the option either (1) after the last *FLAGS variable, or
14255   # (2) before a word containing "conftest.", or (3) at the end.
14256   # Note that $ac_compile itself does not contain backslashes and begins
14257   # with a dollar sign (not a hyphen), so the echo should work correctly.
14258   # The option is referenced via a variable to avoid confusing sed.
14259   lt_compile=`echo "$ac_compile" | $SED \
14260   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14261   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14262   -e 's:$: $lt_compiler_flag:'`
14263   (eval echo "\"\$as_me:14263: $lt_compile\"" >&5)
14264   (eval "$lt_compile" 2>conftest.err)
14265   ac_status=$?
14266   cat conftest.err >&5
14267   echo "$as_me:14267: \$? = $ac_status" >&5
14268   if (exit $ac_status) && test -s "$ac_outfile"; then
14269     # The compiler can only warn and ignore the option if not recognized
14270     # So say no if there are warnings other than the usual output.
14271     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14272     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14273     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14274       lt_cv_prog_compiler_pic_works_CXX=yes
14275     fi
14276   fi
14277   $RM conftest*
14278
14279fi
14280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14281$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14282
14283if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14284    case $lt_prog_compiler_pic_CXX in
14285     "" | " "*) ;;
14286     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14287     esac
14288else
14289    lt_prog_compiler_pic_CXX=
14290     lt_prog_compiler_can_build_shared_CXX=no
14291fi
14292
14293fi
14294
14295
14296
14297#
14298# Check to make sure the static flag actually works.
14299#
14300wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14302$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14303if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14304  $as_echo_n "(cached) " >&6
14305else
14306  lt_cv_prog_compiler_static_works_CXX=no
14307   save_LDFLAGS="$LDFLAGS"
14308   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14309   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14310   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14311     # The linker can only warn and ignore the option if not recognized
14312     # So say no if there are warnings
14313     if test -s conftest.err; then
14314       # Append any errors to the config.log.
14315       cat conftest.err 1>&5
14316       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14317       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14318       if diff conftest.exp conftest.er2 >/dev/null; then
14319         lt_cv_prog_compiler_static_works_CXX=yes
14320       fi
14321     else
14322       lt_cv_prog_compiler_static_works_CXX=yes
14323     fi
14324   fi
14325   $RM -r conftest*
14326   LDFLAGS="$save_LDFLAGS"
14327
14328fi
14329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14330$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14331
14332if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14333    :
14334else
14335    lt_prog_compiler_static_CXX=
14336fi
14337
14338
14339
14340
14341    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14342$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14343if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14344  $as_echo_n "(cached) " >&6
14345else
14346  lt_cv_prog_compiler_c_o_CXX=no
14347   $RM -r conftest 2>/dev/null
14348   mkdir conftest
14349   cd conftest
14350   mkdir out
14351   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14352
14353   lt_compiler_flag="-o out/conftest2.$ac_objext"
14354   # Insert the option either (1) after the last *FLAGS variable, or
14355   # (2) before a word containing "conftest.", or (3) at the end.
14356   # Note that $ac_compile itself does not contain backslashes and begins
14357   # with a dollar sign (not a hyphen), so the echo should work correctly.
14358   lt_compile=`echo "$ac_compile" | $SED \
14359   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14360   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14361   -e 's:$: $lt_compiler_flag:'`
14362   (eval echo "\"\$as_me:14362: $lt_compile\"" >&5)
14363   (eval "$lt_compile" 2>out/conftest.err)
14364   ac_status=$?
14365   cat out/conftest.err >&5
14366   echo "$as_me:14366: \$? = $ac_status" >&5
14367   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14368   then
14369     # The compiler can only warn and ignore the option if not recognized
14370     # So say no if there are warnings
14371     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14372     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14373     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14374       lt_cv_prog_compiler_c_o_CXX=yes
14375     fi
14376   fi
14377   chmod u+w . 2>&5
14378   $RM conftest*
14379   # SGI C++ compiler will create directory out/ii_files/ for
14380   # template instantiation
14381   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14382   $RM out/* && rmdir out
14383   cd ..
14384   $RM -r conftest
14385   $RM conftest*
14386
14387fi
14388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14389$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14390
14391
14392
14393    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14394$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14395if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14396  $as_echo_n "(cached) " >&6
14397else
14398  lt_cv_prog_compiler_c_o_CXX=no
14399   $RM -r conftest 2>/dev/null
14400   mkdir conftest
14401   cd conftest
14402   mkdir out
14403   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14404
14405   lt_compiler_flag="-o out/conftest2.$ac_objext"
14406   # Insert the option either (1) after the last *FLAGS variable, or
14407   # (2) before a word containing "conftest.", or (3) at the end.
14408   # Note that $ac_compile itself does not contain backslashes and begins
14409   # with a dollar sign (not a hyphen), so the echo should work correctly.
14410   lt_compile=`echo "$ac_compile" | $SED \
14411   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14412   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14413   -e 's:$: $lt_compiler_flag:'`
14414   (eval echo "\"\$as_me:14414: $lt_compile\"" >&5)
14415   (eval "$lt_compile" 2>out/conftest.err)
14416   ac_status=$?
14417   cat out/conftest.err >&5
14418   echo "$as_me:14418: \$? = $ac_status" >&5
14419   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14420   then
14421     # The compiler can only warn and ignore the option if not recognized
14422     # So say no if there are warnings
14423     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14424     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14425     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14426       lt_cv_prog_compiler_c_o_CXX=yes
14427     fi
14428   fi
14429   chmod u+w . 2>&5
14430   $RM conftest*
14431   # SGI C++ compiler will create directory out/ii_files/ for
14432   # template instantiation
14433   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14434   $RM out/* && rmdir out
14435   cd ..
14436   $RM -r conftest
14437   $RM conftest*
14438
14439fi
14440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14441$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14442
14443
14444
14445
14446hard_links="nottested"
14447if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14448  # do not overwrite the value of need_locks provided by the user
14449  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14450$as_echo_n "checking if we can lock with hard links... " >&6; }
14451  hard_links=yes
14452  $RM conftest*
14453  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14454  touch conftest.a
14455  ln conftest.a conftest.b 2>&5 || hard_links=no
14456  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14458$as_echo "$hard_links" >&6; }
14459  if test "$hard_links" = no; then
14460    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14461$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14462    need_locks=warn
14463  fi
14464else
14465  need_locks=no
14466fi
14467
14468
14469
14470    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14471$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14472
14473  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14474  case $host_os in
14475  aix[4-9]*)
14476    # If we're using GNU nm, then we don't want the "-C" option.
14477    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14478    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14479      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'
14480    else
14481      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'
14482    fi
14483    ;;
14484  pw32*)
14485    export_symbols_cmds_CXX="$ltdll_cmds"
14486  ;;
14487  cygwin* | mingw* | cegcc*)
14488    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'
14489  ;;
14490  *)
14491    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14492  ;;
14493  esac
14494  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14495
14496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14497$as_echo "$ld_shlibs_CXX" >&6; }
14498test "$ld_shlibs_CXX" = no && can_build_shared=no
14499
14500with_gnu_ld_CXX=$with_gnu_ld
14501
14502
14503
14504
14505
14506
14507#
14508# Do we need to explicitly link libc?
14509#
14510case "x$archive_cmds_need_lc_CXX" in
14511x|xyes)
14512  # Assume -lc should be added
14513  archive_cmds_need_lc_CXX=yes
14514
14515  if test "$enable_shared" = yes && test "$GCC" = yes; then
14516    case $archive_cmds_CXX in
14517    *'~'*)
14518      # FIXME: we may have to deal with multi-command sequences.
14519      ;;
14520    '$CC '*)
14521      # Test whether the compiler implicitly links with -lc since on some
14522      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14523      # to ld, don't add -lc before -lgcc.
14524      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14525$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14526      $RM conftest*
14527      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14528
14529      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14530  (eval $ac_compile) 2>&5
14531  ac_status=$?
14532  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14533  test $ac_status = 0; } 2>conftest.err; then
14534        soname=conftest
14535        lib=conftest
14536        libobjs=conftest.$ac_objext
14537        deplibs=
14538        wl=$lt_prog_compiler_wl_CXX
14539	pic_flag=$lt_prog_compiler_pic_CXX
14540        compiler_flags=-v
14541        linker_flags=-v
14542        verstring=
14543        output_objdir=.
14544        libname=conftest
14545        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14546        allow_undefined_flag_CXX=
14547        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14548  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14549  ac_status=$?
14550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14551  test $ac_status = 0; }
14552        then
14553	  archive_cmds_need_lc_CXX=no
14554        else
14555	  archive_cmds_need_lc_CXX=yes
14556        fi
14557        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14558      else
14559        cat conftest.err 1>&5
14560      fi
14561      $RM conftest*
14562      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14563$as_echo "$archive_cmds_need_lc_CXX" >&6; }
14564      ;;
14565    esac
14566  fi
14567  ;;
14568esac
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14634$as_echo_n "checking dynamic linker characteristics... " >&6; }
14635
14636library_names_spec=
14637libname_spec='lib$name'
14638soname_spec=
14639shrext_cmds=".so"
14640postinstall_cmds=
14641postuninstall_cmds=
14642finish_cmds=
14643finish_eval=
14644shlibpath_var=
14645shlibpath_overrides_runpath=unknown
14646version_type=none
14647dynamic_linker="$host_os ld.so"
14648sys_lib_dlsearch_path_spec="/lib /usr/lib"
14649need_lib_prefix=unknown
14650hardcode_into_libs=no
14651
14652# when you set need_version to no, make sure it does not cause -set_version
14653# flags to be left without arguments
14654need_version=unknown
14655
14656case $host_os in
14657aix3*)
14658  version_type=linux
14659  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14660  shlibpath_var=LIBPATH
14661
14662  # AIX 3 has no versioning support, so we append a major version to the name.
14663  soname_spec='${libname}${release}${shared_ext}$major'
14664  ;;
14665
14666aix[4-9]*)
14667  version_type=linux
14668  need_lib_prefix=no
14669  need_version=no
14670  hardcode_into_libs=yes
14671  if test "$host_cpu" = ia64; then
14672    # AIX 5 supports IA64
14673    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14674    shlibpath_var=LD_LIBRARY_PATH
14675  else
14676    # With GCC up to 2.95.x, collect2 would create an import file
14677    # for dependence libraries.  The import file would start with
14678    # the line `#! .'.  This would cause the generated library to
14679    # depend on `.', always an invalid library.  This was fixed in
14680    # development snapshots of GCC prior to 3.0.
14681    case $host_os in
14682      aix4 | aix4.[01] | aix4.[01].*)
14683      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14684	   echo ' yes '
14685	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14686	:
14687      else
14688	can_build_shared=no
14689      fi
14690      ;;
14691    esac
14692    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14693    # soname into executable. Probably we can add versioning support to
14694    # collect2, so additional links can be useful in future.
14695    if test "$aix_use_runtimelinking" = yes; then
14696      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14697      # instead of lib<name>.a to let people know that these are not
14698      # typical AIX shared libraries.
14699      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14700    else
14701      # We preserve .a as extension for shared libraries through AIX4.2
14702      # and later when we are not doing run time linking.
14703      library_names_spec='${libname}${release}.a $libname.a'
14704      soname_spec='${libname}${release}${shared_ext}$major'
14705    fi
14706    shlibpath_var=LIBPATH
14707  fi
14708  ;;
14709
14710amigaos*)
14711  case $host_cpu in
14712  powerpc)
14713    # Since July 2007 AmigaOS4 officially supports .so libraries.
14714    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14715    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14716    ;;
14717  m68k)
14718    library_names_spec='$libname.ixlibrary $libname.a'
14719    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14720    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'
14721    ;;
14722  esac
14723  ;;
14724
14725beos*)
14726  library_names_spec='${libname}${shared_ext}'
14727  dynamic_linker="$host_os ld.so"
14728  shlibpath_var=LIBRARY_PATH
14729  ;;
14730
14731bsdi[45]*)
14732  version_type=linux
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  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14737  shlibpath_var=LD_LIBRARY_PATH
14738  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14739  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14740  # the default ld.so.conf also contains /usr/contrib/lib and
14741  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14742  # libtool to hard-code these into programs
14743  ;;
14744
14745cygwin* | mingw* | pw32* | cegcc*)
14746  version_type=windows
14747  shrext_cmds=".dll"
14748  need_version=no
14749  need_lib_prefix=no
14750
14751  case $GCC,$host_os in
14752  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14753    library_names_spec='$libname.dll.a'
14754    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14755    postinstall_cmds='base_file=`basename \${file}`~
14756      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14757      dldir=$destdir/`dirname \$dlpath`~
14758      test -d \$dldir || mkdir -p \$dldir~
14759      $install_prog $dir/$dlname \$dldir/$dlname~
14760      chmod a+x \$dldir/$dlname~
14761      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14762        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14763      fi'
14764    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14765      dlpath=$dir/\$dldll~
14766       $RM \$dlpath'
14767    shlibpath_overrides_runpath=yes
14768
14769    case $host_os in
14770    cygwin*)
14771      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14772      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14773      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14774      ;;
14775    mingw* | cegcc*)
14776      # MinGW DLLs use traditional 'lib' prefix
14777      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14778      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14779      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14780        # It is most probably a Windows format PATH printed by
14781        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14782        # path with ; separators, and with drive letters. We can handle the
14783        # drive letters (cygwin fileutils understands them), so leave them,
14784        # especially as we might pass files found there to a mingw objdump,
14785        # which wouldn't understand a cygwinified path. Ahh.
14786        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14787      else
14788        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14789      fi
14790      ;;
14791    pw32*)
14792      # pw32 DLLs use 'pw' prefix rather than 'lib'
14793      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14794      ;;
14795    esac
14796    ;;
14797
14798  *)
14799    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14800    ;;
14801  esac
14802  dynamic_linker='Win32 ld.exe'
14803  # FIXME: first we should search . and the directory the executable is in
14804  shlibpath_var=PATH
14805  ;;
14806
14807darwin* | rhapsody*)
14808  dynamic_linker="$host_os dyld"
14809  version_type=darwin
14810  need_lib_prefix=no
14811  need_version=no
14812  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14813  soname_spec='${libname}${release}${major}$shared_ext'
14814  shlibpath_overrides_runpath=yes
14815  shlibpath_var=DYLD_LIBRARY_PATH
14816  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14817
14818  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14819  ;;
14820
14821dgux*)
14822  version_type=linux
14823  need_lib_prefix=no
14824  need_version=no
14825  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14826  soname_spec='${libname}${release}${shared_ext}$major'
14827  shlibpath_var=LD_LIBRARY_PATH
14828  ;;
14829
14830freebsd1*)
14831  dynamic_linker=no
14832  ;;
14833
14834freebsd* | dragonfly*)
14835  # DragonFly does not have aout.  When/if they implement a new
14836  # versioning mechanism, adjust this.
14837  if test -x /usr/bin/objformat; then
14838    objformat=`/usr/bin/objformat`
14839  else
14840    case $host_os in
14841    freebsd[123]*) objformat=aout ;;
14842    *) objformat=elf ;;
14843    esac
14844  fi
14845  version_type=freebsd-$objformat
14846  case $version_type in
14847    freebsd-elf*)
14848      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14849      need_version=no
14850      need_lib_prefix=no
14851      ;;
14852    freebsd-*)
14853      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14854      need_version=yes
14855      ;;
14856  esac
14857  shlibpath_var=LD_LIBRARY_PATH
14858  case $host_os in
14859  freebsd2*)
14860    shlibpath_overrides_runpath=yes
14861    ;;
14862  freebsd3.[01]* | freebsdelf3.[01]*)
14863    shlibpath_overrides_runpath=yes
14864    hardcode_into_libs=yes
14865    ;;
14866  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14867  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14868    shlibpath_overrides_runpath=no
14869    hardcode_into_libs=yes
14870    ;;
14871  *) # from 4.6 on, and DragonFly
14872    shlibpath_overrides_runpath=yes
14873    hardcode_into_libs=yes
14874    ;;
14875  esac
14876  ;;
14877
14878gnu*)
14879  version_type=linux
14880  need_lib_prefix=no
14881  need_version=no
14882  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14883  soname_spec='${libname}${release}${shared_ext}$major'
14884  shlibpath_var=LD_LIBRARY_PATH
14885  hardcode_into_libs=yes
14886  ;;
14887
14888hpux9* | hpux10* | hpux11*)
14889  # Give a soname corresponding to the major version so that dld.sl refuses to
14890  # link against other versions.
14891  version_type=sunos
14892  need_lib_prefix=no
14893  need_version=no
14894  case $host_cpu in
14895  ia64*)
14896    shrext_cmds='.so'
14897    hardcode_into_libs=yes
14898    dynamic_linker="$host_os dld.so"
14899    shlibpath_var=LD_LIBRARY_PATH
14900    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14901    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14902    soname_spec='${libname}${release}${shared_ext}$major'
14903    if test "X$HPUX_IA64_MODE" = X32; then
14904      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14905    else
14906      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14907    fi
14908    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14909    ;;
14910  hppa*64*)
14911    shrext_cmds='.sl'
14912    hardcode_into_libs=yes
14913    dynamic_linker="$host_os dld.sl"
14914    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14915    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14916    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14917    soname_spec='${libname}${release}${shared_ext}$major'
14918    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14919    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14920    ;;
14921  *)
14922    shrext_cmds='.sl'
14923    dynamic_linker="$host_os dld.sl"
14924    shlibpath_var=SHLIB_PATH
14925    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14926    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927    soname_spec='${libname}${release}${shared_ext}$major'
14928    ;;
14929  esac
14930  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14931  postinstall_cmds='chmod 555 $lib'
14932  ;;
14933
14934interix[3-9]*)
14935  version_type=linux
14936  need_lib_prefix=no
14937  need_version=no
14938  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14939  soname_spec='${libname}${release}${shared_ext}$major'
14940  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14941  shlibpath_var=LD_LIBRARY_PATH
14942  shlibpath_overrides_runpath=no
14943  hardcode_into_libs=yes
14944  ;;
14945
14946irix5* | irix6* | nonstopux*)
14947  case $host_os in
14948    nonstopux*) version_type=nonstopux ;;
14949    *)
14950	if test "$lt_cv_prog_gnu_ld" = yes; then
14951		version_type=linux
14952	else
14953		version_type=irix
14954	fi ;;
14955  esac
14956  need_lib_prefix=no
14957  need_version=no
14958  soname_spec='${libname}${release}${shared_ext}$major'
14959  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14960  case $host_os in
14961  irix5* | nonstopux*)
14962    libsuff= shlibsuff=
14963    ;;
14964  *)
14965    case $LD in # libtool.m4 will add one of these switches to LD
14966    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14967      libsuff= shlibsuff= libmagic=32-bit;;
14968    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14969      libsuff=32 shlibsuff=N32 libmagic=N32;;
14970    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14971      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14972    *) libsuff= shlibsuff= libmagic=never-match;;
14973    esac
14974    ;;
14975  esac
14976  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14977  shlibpath_overrides_runpath=no
14978  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14979  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14980  hardcode_into_libs=yes
14981  ;;
14982
14983# No shared lib support for Linux oldld, aout, or coff.
14984linux*oldld* | linux*aout* | linux*coff*)
14985  dynamic_linker=no
14986  ;;
14987
14988# This must be Linux ELF.
14989linux* | k*bsd*-gnu)
14990  version_type=linux
14991  need_lib_prefix=no
14992  need_version=no
14993  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14994  soname_spec='${libname}${release}${shared_ext}$major'
14995  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14996  shlibpath_var=LD_LIBRARY_PATH
14997  shlibpath_overrides_runpath=no
14998  # Some binutils ld are patched to set DT_RUNPATH
14999  save_LDFLAGS=$LDFLAGS
15000  save_libdir=$libdir
15001  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15002       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15004/* end confdefs.h.  */
15005
15006int
15007main ()
15008{
15009
15010  ;
15011  return 0;
15012}
15013_ACEOF
15014if ac_fn_cxx_try_link "$LINENO"; then :
15015  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15016  shlibpath_overrides_runpath=yes
15017fi
15018fi
15019rm -f core conftest.err conftest.$ac_objext \
15020    conftest$ac_exeext conftest.$ac_ext
15021  LDFLAGS=$save_LDFLAGS
15022  libdir=$save_libdir
15023
15024  # This implies no fast_install, which is unacceptable.
15025  # Some rework will be needed to allow for fast_install
15026  # before this can be enabled.
15027  hardcode_into_libs=yes
15028
15029  # Append ld.so.conf contents to the search path
15030  if test -f /etc/ld.so.conf; then
15031    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15032    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15033  fi
15034
15035  # We used to test for /lib/ld.so.1 and disable shared libraries on
15036  # powerpc, because MkLinux only supported shared libraries with the
15037  # GNU dynamic linker.  Since this was broken with cross compilers,
15038  # most powerpc-linux boxes support dynamic linking these days and
15039  # people can always --disable-shared, the test was removed, and we
15040  # assume the GNU/Linux dynamic linker is in use.
15041  dynamic_linker='GNU/Linux ld.so'
15042  ;;
15043
15044netbsd*)
15045  version_type=sunos
15046  need_lib_prefix=no
15047  need_version=no
15048  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15049    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15050    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15051    dynamic_linker='NetBSD (a.out) ld.so'
15052  else
15053    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15054    soname_spec='${libname}${release}${shared_ext}$major'
15055    dynamic_linker='NetBSD ld.elf_so'
15056  fi
15057  shlibpath_var=LD_LIBRARY_PATH
15058  shlibpath_overrides_runpath=yes
15059  hardcode_into_libs=yes
15060  ;;
15061
15062newsos6)
15063  version_type=linux
15064  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15065  shlibpath_var=LD_LIBRARY_PATH
15066  shlibpath_overrides_runpath=yes
15067  ;;
15068
15069*nto* | *qnx*)
15070  version_type=qnx
15071  need_lib_prefix=no
15072  need_version=no
15073  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15074  soname_spec='${libname}${release}${shared_ext}$major'
15075  shlibpath_var=LD_LIBRARY_PATH
15076  shlibpath_overrides_runpath=no
15077  hardcode_into_libs=yes
15078  dynamic_linker='ldqnx.so'
15079  ;;
15080
15081openbsd*)
15082  version_type=sunos
15083  sys_lib_dlsearch_path_spec="/usr/lib"
15084  need_lib_prefix=no
15085  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15086  case $host_os in
15087    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
15088    *)				need_version=no  ;;
15089  esac
15090  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15091  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15092  shlibpath_var=LD_LIBRARY_PATH
15093  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15094    case $host_os in
15095      openbsd2.[89] | openbsd2.[89].*)
15096	shlibpath_overrides_runpath=no
15097	;;
15098      *)
15099	shlibpath_overrides_runpath=yes
15100	;;
15101      esac
15102  else
15103    shlibpath_overrides_runpath=yes
15104  fi
15105  ;;
15106
15107os2*)
15108  libname_spec='$name'
15109  shrext_cmds=".dll"
15110  need_lib_prefix=no
15111  library_names_spec='$libname${shared_ext} $libname.a'
15112  dynamic_linker='OS/2 ld.exe'
15113  shlibpath_var=LIBPATH
15114  ;;
15115
15116osf3* | osf4* | osf5*)
15117  version_type=osf
15118  need_lib_prefix=no
15119  need_version=no
15120  soname_spec='${libname}${release}${shared_ext}$major'
15121  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15122  shlibpath_var=LD_LIBRARY_PATH
15123  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15124  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15125  ;;
15126
15127rdos*)
15128  dynamic_linker=no
15129  ;;
15130
15131solaris*)
15132  version_type=linux
15133  need_lib_prefix=no
15134  need_version=no
15135  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15136  soname_spec='${libname}${release}${shared_ext}$major'
15137  shlibpath_var=LD_LIBRARY_PATH
15138  shlibpath_overrides_runpath=yes
15139  hardcode_into_libs=yes
15140  # ldd complains unless libraries are executable
15141  postinstall_cmds='chmod +x $lib'
15142  ;;
15143
15144sunos4*)
15145  version_type=sunos
15146  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15147  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15148  shlibpath_var=LD_LIBRARY_PATH
15149  shlibpath_overrides_runpath=yes
15150  if test "$with_gnu_ld" = yes; then
15151    need_lib_prefix=no
15152  fi
15153  need_version=yes
15154  ;;
15155
15156sysv4 | sysv4.3*)
15157  version_type=linux
15158  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15159  soname_spec='${libname}${release}${shared_ext}$major'
15160  shlibpath_var=LD_LIBRARY_PATH
15161  case $host_vendor in
15162    sni)
15163      shlibpath_overrides_runpath=no
15164      need_lib_prefix=no
15165      runpath_var=LD_RUN_PATH
15166      ;;
15167    siemens)
15168      need_lib_prefix=no
15169      ;;
15170    motorola)
15171      need_lib_prefix=no
15172      need_version=no
15173      shlibpath_overrides_runpath=no
15174      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15175      ;;
15176  esac
15177  ;;
15178
15179sysv4*MP*)
15180  if test -d /usr/nec ;then
15181    version_type=linux
15182    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15183    soname_spec='$libname${shared_ext}.$major'
15184    shlibpath_var=LD_LIBRARY_PATH
15185  fi
15186  ;;
15187
15188sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15189  version_type=freebsd-elf
15190  need_lib_prefix=no
15191  need_version=no
15192  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15193  soname_spec='${libname}${release}${shared_ext}$major'
15194  shlibpath_var=LD_LIBRARY_PATH
15195  shlibpath_overrides_runpath=yes
15196  hardcode_into_libs=yes
15197  if test "$with_gnu_ld" = yes; then
15198    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15199  else
15200    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15201    case $host_os in
15202      sco3.2v5*)
15203        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15204	;;
15205    esac
15206  fi
15207  sys_lib_dlsearch_path_spec='/usr/lib'
15208  ;;
15209
15210tpf*)
15211  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15212  version_type=linux
15213  need_lib_prefix=no
15214  need_version=no
15215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15216  shlibpath_var=LD_LIBRARY_PATH
15217  shlibpath_overrides_runpath=no
15218  hardcode_into_libs=yes
15219  ;;
15220
15221uts4*)
15222  version_type=linux
15223  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15224  soname_spec='${libname}${release}${shared_ext}$major'
15225  shlibpath_var=LD_LIBRARY_PATH
15226  ;;
15227
15228*)
15229  dynamic_linker=no
15230  ;;
15231esac
15232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15233$as_echo "$dynamic_linker" >&6; }
15234test "$dynamic_linker" = no && can_build_shared=no
15235
15236variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15237if test "$GCC" = yes; then
15238  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15239fi
15240
15241if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15242  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15243fi
15244if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15245  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15246fi
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15284$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15285hardcode_action_CXX=
15286if test -n "$hardcode_libdir_flag_spec_CXX" ||
15287   test -n "$runpath_var_CXX" ||
15288   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15289
15290  # We can hardcode non-existent directories.
15291  if test "$hardcode_direct_CXX" != no &&
15292     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15293     # have to relink, otherwise we might link with an installed library
15294     # when we should be linking with a yet-to-be-installed one
15295     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15296     test "$hardcode_minus_L_CXX" != no; then
15297    # Linking always hardcodes the temporary library directory.
15298    hardcode_action_CXX=relink
15299  else
15300    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15301    hardcode_action_CXX=immediate
15302  fi
15303else
15304  # We cannot hardcode anything, or else we can only hardcode existing
15305  # directories.
15306  hardcode_action_CXX=unsupported
15307fi
15308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15309$as_echo "$hardcode_action_CXX" >&6; }
15310
15311if test "$hardcode_action_CXX" = relink ||
15312   test "$inherit_rpath_CXX" = yes; then
15313  # Fast installation is not supported
15314  enable_fast_install=no
15315elif test "$shlibpath_overrides_runpath" = yes ||
15316     test "$enable_shared" = no; then
15317  # Fast installation is not necessary
15318  enable_fast_install=needless
15319fi
15320
15321
15322
15323
15324
15325
15326
15327  fi # test -n "$compiler"
15328
15329  CC=$lt_save_CC
15330  LDCXX=$LD
15331  LD=$lt_save_LD
15332  GCC=$lt_save_GCC
15333  with_gnu_ld=$lt_save_with_gnu_ld
15334  lt_cv_path_LDCXX=$lt_cv_path_LD
15335  lt_cv_path_LD=$lt_save_path_LD
15336  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15337  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15338fi # test "$_lt_caught_CXX_error" != yes
15339
15340ac_ext=cpp
15341ac_cpp='$CXXCPP $CPPFLAGS'
15342ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15343ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15344ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15345
15346
15347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
15348$as_echo_n "checking whether the C++ compiler works... " >&6; }
15349if ${atf_cv_prog_cxx_works+:} false; then :
15350  $as_echo_n "(cached) " >&6
15351else
15352  ac_ext=cpp
15353ac_cpp='$CXXCPP $CPPFLAGS'
15354ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15355ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15356ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15357
15358                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15359/* end confdefs.h.  */
15360
15361int
15362main ()
15363{
15364
15365  ;
15366  return 0;
15367}
15368_ACEOF
15369if ac_fn_cxx_try_link "$LINENO"; then :
15370  atf_cv_prog_cxx_works=yes
15371else
15372  atf_cv_prog_cxx_works=no
15373fi
15374rm -f core conftest.err conftest.$ac_objext \
15375    conftest$ac_exeext conftest.$ac_ext
15376                ac_ext=cpp
15377ac_cpp='$CXXCPP $CPPFLAGS'
15378ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15379ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15380ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15381
15382fi
15383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $atf_cv_prog_cxx_works" >&5
15384$as_echo "$atf_cv_prog_cxx_works" >&6; }
15385if test "${atf_cv_prog_cxx_works}" = no; then
15386    as_fn_error $? "C++ compiler cannot create executables" "$LINENO" 5
15387fi
15388
15389
15390
15391
15392    # Check whether --enable-developer was given.
15393if test "${enable_developer+set}" = set; then :
15394  enableval=$enable_developer;
15395else
15396  if test -d ${srcdir}/.git; then
15397             { $as_echo "$as_me:${as_lineno-$LINENO}: building from HEAD; developer mode autoenabled" >&5
15398$as_echo "$as_me: building from HEAD; developer mode autoenabled" >&6;}
15399             enable_developer=yes
15400         else
15401             enable_developer=no
15402         fi
15403fi
15404
15405
15406    #
15407    # The following warning flags should also be enabled but cannot be.
15408    # Reasons given below.
15409    #
15410    # -Wold-style-cast: Raises errors when using TIOCGWINSZ, at least under
15411    #                   Mac OS X.  This is due to the way _IOR is defined.
15412    #
15413
15414    try_c_cxx_flags="-D_FORTIFY_SOURCE=2 \
15415                     -Wall \
15416                     -Wcast-qual \
15417                     -Wextra \
15418                     -Wpointer-arith \
15419                     -Wredundant-decls \
15420                     -Wreturn-type \
15421                     -Wshadow \
15422                     -Wsign-compare \
15423                     -Wswitch \
15424                     -Wwrite-strings"
15425
15426    try_c_flags="-Wmissing-prototypes \
15427                 -Wno-traditional \
15428                 -Wstrict-prototypes"
15429
15430    try_cxx_flags="-Wabi \
15431                   -Wctor-dtor-privacy \
15432                   -Wno-deprecated \
15433                   -Wno-non-template-friend \
15434                   -Wno-pmf-conversions \
15435                   -Wnon-virtual-dtor \
15436                   -Woverloaded-virtual \
15437                   -Wreorder \
15438                   -Wsign-promo \
15439                   -Wsynth"
15440
15441    if test ${enable_developer} = yes; then
15442        try_werror=yes
15443        try_c_cxx_flags="${try_c_cxx_flags} -g -Werror"
15444    else
15445        try_werror=no
15446        try_c_cxx_flags="${try_c_cxx_flags} -DNDEBUG"
15447    fi
15448
15449
15450    ac_ext=c
15451ac_cpp='$CPP $CPPFLAGS'
15452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15454ac_compiler_gnu=$ac_cv_c_compiler_gnu
15455
15456    valid_cflags=
15457    for f in ${try_c_cxx_flags} ${try_c_flags}; do
15458
15459
15460
15461
15462    if test x"${kyua_CC_has_werror-unset}" = xunset; then
15463        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Werror" >&5
15464$as_echo_n "checking whether ${CC} supports -Werror... " >&6; }
15465        saved_flags="${CFLAGS}"
15466        kyua_CC_has_werror=no
15467        CFLAGS="${CFLAGS}  -Werror"
15468        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15469/* end confdefs.h.  */
15470
15471int
15472main ()
15473{
15474return 0;
15475  ;
15476  return 0;
15477}
15478_ACEOF
15479if ac_fn_c_try_link "$LINENO"; then :
15480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15481$as_echo "yes" >&6; }
15482                       kyua_CC_has_werror=yes
15483else
15484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15485$as_echo "no" >&6; }
15486fi
15487rm -f core conftest.err conftest.$ac_objext \
15488    conftest$ac_exeext conftest.$ac_ext
15489        CFLAGS="${saved_flags}"
15490    fi
15491
15492    if test "${f}" = "-Werror"; then
15493        found=${kyua_CC_has_werror}
15494    else
15495        found=unset
15496        if test ${kyua_CC_has_werror} = yes; then
15497
15498    if test x"${found-unset}" = xunset; then
15499        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports ${f}" >&5
15500$as_echo_n "checking whether ${CC} supports ${f}... " >&6; }
15501        saved_flags="${CFLAGS}"
15502        found=no
15503        CFLAGS="${CFLAGS} -Werror ${f}"
15504        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15505/* end confdefs.h.  */
15506
15507int
15508main ()
15509{
15510return 0;
15511  ;
15512  return 0;
15513}
15514_ACEOF
15515if ac_fn_c_try_link "$LINENO"; then :
15516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15517$as_echo "yes" >&6; }
15518                       found=yes
15519else
15520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15521$as_echo "no" >&6; }
15522fi
15523rm -f core conftest.err conftest.$ac_objext \
15524    conftest$ac_exeext conftest.$ac_ext
15525        CFLAGS="${saved_flags}"
15526    fi
15527
15528        else
15529
15530    if test x"${found-unset}" = xunset; then
15531        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports ${f}" >&5
15532$as_echo_n "checking whether ${CC} supports ${f}... " >&6; }
15533        saved_flags="${CFLAGS}"
15534        found=no
15535        CFLAGS="${CFLAGS}  ${f}"
15536        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15537/* end confdefs.h.  */
15538
15539int
15540main ()
15541{
15542return 0;
15543  ;
15544  return 0;
15545}
15546_ACEOF
15547if ac_fn_c_try_link "$LINENO"; then :
15548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15549$as_echo "yes" >&6; }
15550                       found=yes
15551else
15552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15553$as_echo "no" >&6; }
15554fi
15555rm -f core conftest.err conftest.$ac_objext \
15556    conftest$ac_exeext conftest.$ac_ext
15557        CFLAGS="${saved_flags}"
15558    fi
15559
15560        fi
15561    fi
15562    if test ${found} = yes; then
15563        valid_cflags="${valid_cflags} ${f}"
15564    fi
15565
15566
15567    done
15568    if test -n "${valid_cflags}"; then
15569        CFLAGS="${CFLAGS} ${valid_cflags}"
15570    fi
15571    ac_ext=cpp
15572ac_cpp='$CXXCPP $CPPFLAGS'
15573ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15574ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15575ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15576
15577
15578
15579    ac_ext=cpp
15580ac_cpp='$CXXCPP $CPPFLAGS'
15581ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15582ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15583ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15584
15585    valid_cxxflags=
15586    for f in ${try_c_cxx_flags} ${try_cxx_flags}; do
15587
15588
15589
15590
15591    if test x"${kyua_CXX_has_werror-unset}" = xunset; then
15592        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Werror" >&5
15593$as_echo_n "checking whether ${CXX} supports -Werror... " >&6; }
15594        saved_flags="${CXXFLAGS}"
15595        kyua_CXX_has_werror=no
15596        CXXFLAGS="${CXXFLAGS}  -Werror"
15597        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15598/* end confdefs.h.  */
15599
15600int
15601main ()
15602{
15603return 0;
15604  ;
15605  return 0;
15606}
15607_ACEOF
15608if ac_fn_cxx_try_link "$LINENO"; then :
15609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15610$as_echo "yes" >&6; }
15611                       kyua_CXX_has_werror=yes
15612else
15613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15614$as_echo "no" >&6; }
15615fi
15616rm -f core conftest.err conftest.$ac_objext \
15617    conftest$ac_exeext conftest.$ac_ext
15618        CXXFLAGS="${saved_flags}"
15619    fi
15620
15621    if test "${f}" = "-Werror"; then
15622        found=${kyua_CXX_has_werror}
15623    else
15624        found=unset
15625        if test ${kyua_CXX_has_werror} = yes; then
15626
15627    if test x"${found-unset}" = xunset; then
15628        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports ${f}" >&5
15629$as_echo_n "checking whether ${CXX} supports ${f}... " >&6; }
15630        saved_flags="${CXXFLAGS}"
15631        found=no
15632        CXXFLAGS="${CXXFLAGS} -Werror ${f}"
15633        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15634/* end confdefs.h.  */
15635
15636int
15637main ()
15638{
15639return 0;
15640  ;
15641  return 0;
15642}
15643_ACEOF
15644if ac_fn_cxx_try_link "$LINENO"; then :
15645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15646$as_echo "yes" >&6; }
15647                       found=yes
15648else
15649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15650$as_echo "no" >&6; }
15651fi
15652rm -f core conftest.err conftest.$ac_objext \
15653    conftest$ac_exeext conftest.$ac_ext
15654        CXXFLAGS="${saved_flags}"
15655    fi
15656
15657        else
15658
15659    if test x"${found-unset}" = xunset; then
15660        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports ${f}" >&5
15661$as_echo_n "checking whether ${CXX} supports ${f}... " >&6; }
15662        saved_flags="${CXXFLAGS}"
15663        found=no
15664        CXXFLAGS="${CXXFLAGS}  ${f}"
15665        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15666/* end confdefs.h.  */
15667
15668int
15669main ()
15670{
15671return 0;
15672  ;
15673  return 0;
15674}
15675_ACEOF
15676if ac_fn_cxx_try_link "$LINENO"; then :
15677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15678$as_echo "yes" >&6; }
15679                       found=yes
15680else
15681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15682$as_echo "no" >&6; }
15683fi
15684rm -f core conftest.err conftest.$ac_objext \
15685    conftest$ac_exeext conftest.$ac_ext
15686        CXXFLAGS="${saved_flags}"
15687    fi
15688
15689        fi
15690    fi
15691    if test ${found} = yes; then
15692        valid_cxxflags="${valid_cxxflags} ${f}"
15693    fi
15694
15695
15696    done
15697    if test -n "${valid_cxxflags}"; then
15698        CXXFLAGS="${CXXFLAGS} ${valid_cxxflags}"
15699    fi
15700    ac_ext=cpp
15701ac_cpp='$CXXCPP $CPPFLAGS'
15702ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15703ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15704ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15705
15706
15707
15708
15709
15710
15711
15712    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is in std" >&5
15713$as_echo_n "checking whether vsnprintf is in std... " >&6; }
15714    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15715/* end confdefs.h.  */
15716#include <cstdarg>
15717                      #include <cstdio>
15718int
15719main ()
15720{
15721va_list ap;
15722                      char* buf = NULL;
15723                      const char* fmt = NULL;
15724                      std::vsnprintf(buf, 0, fmt, ap);
15725                     return 0;
15726  ;
15727  return 0;
15728}
15729_ACEOF
15730if ac_fn_cxx_try_compile "$LINENO"; then :
15731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15732$as_echo "yes" >&6; }
15733
15734$as_echo "#define HAVE_VSNPRINTF_IN_STD 1" >>confdefs.h
15735
15736else
15737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15738$as_echo "no" >&6; }
15739
15740fi
15741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15742
15743
15744
15745    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt allows a + sign for POSIX behavior" >&5
15746$as_echo_n "checking whether getopt allows a + sign for POSIX behavior... " >&6; }
15747if ${kyua_cv_getopt_plus+:} false; then :
15748  $as_echo_n "(cached) " >&6
15749else
15750
15751      ac_ext=c
15752ac_cpp='$CPP $CPPFLAGS'
15753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15755ac_compiler_gnu=$ac_cv_c_compiler_gnu
15756
15757      if test "$cross_compiling" = yes; then :
15758  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15760as_fn_error $? "cannot run test program while cross compiling
15761See \`config.log' for more details" "$LINENO" 5; }
15762else
15763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15764/* end confdefs.h.  */
15765#include <stdlib.h>
15766#include <string.h>
15767#include <unistd.h>
15768int
15769main ()
15770{
15771
15772    int argc = 4;
15773    char* argv[5] = {
15774        strdup("conftest"),
15775        strdup("-+"),
15776        strdup("-a"),
15777        strdup("bar"),
15778        NULL
15779    };
15780    int ch;
15781    int seen_a = 0, seen_plus = 0;
15782
15783    while ((ch = getopt(argc, argv, "+a:")) != -1) {
15784        switch (ch) {
15785        case 'a':
15786            seen_a = 1;
15787            break;
15788
15789        case '+':
15790            seen_plus = 1;
15791            break;
15792
15793        case '?':
15794        default:
15795            ;
15796        }
15797    }
15798
15799    return (seen_a && !seen_plus) ? EXIT_SUCCESS : EXIT_FAILURE;
15800
15801  ;
15802  return 0;
15803}
15804_ACEOF
15805if ac_fn_c_try_run "$LINENO"; then :
15806  kyua_cv_getopt_plus=yes
15807else
15808  kyua_cv_getopt_plus=no
15809fi
15810rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15811  conftest.$ac_objext conftest.beam conftest.$ac_ext
15812fi
15813
15814      ac_ext=cpp
15815ac_cpp='$CXXCPP $CPPFLAGS'
15816ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15817ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15818ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15819
15820
15821fi
15822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kyua_cv_getopt_plus" >&5
15823$as_echo "$kyua_cv_getopt_plus" >&6; }
15824    if test x"${kyua_cv_getopt_plus}" = xyes; then
15825
15826$as_echo "#define HAVE_GNU_GETOPT 1" >>confdefs.h
15827
15828    fi
15829
15830    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset" >&5
15831$as_echo_n "checking whether getopt has optreset... " >&6; }
15832if ${kyua_cv_getopt_optreset+:} false; then :
15833  $as_echo_n "(cached) " >&6
15834else
15835
15836      ac_ext=c
15837ac_cpp='$CPP $CPPFLAGS'
15838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15840ac_compiler_gnu=$ac_cv_c_compiler_gnu
15841
15842      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15843/* end confdefs.h.  */
15844#include <stdlib.h>
15845#include <unistd.h>
15846int
15847main ()
15848{
15849
15850    optreset = 1;
15851    return EXIT_SUCCESS;
15852
15853  ;
15854  return 0;
15855}
15856_ACEOF
15857if ac_fn_c_try_compile "$LINENO"; then :
15858  kyua_cv_getopt_optreset=yes
15859else
15860  kyua_cv_getopt_optreset=no
15861fi
15862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15863      ac_ext=cpp
15864ac_cpp='$CXXCPP $CPPFLAGS'
15865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15868
15869
15870fi
15871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kyua_cv_getopt_optreset" >&5
15872$as_echo "$kyua_cv_getopt_optreset" >&6; }
15873    if test x"${kyua_cv_getopt_optreset}" = xyes; then
15874
15875$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
15876
15877    fi
15878
15879
15880
15881    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((__format__(__printf__, a, b))) is supported" >&5
15882$as_echo_n "checking whether __attribute__((__format__(__printf__, a, b))) is supported... " >&6; }
15883    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884/* end confdefs.h.  */
15885
15886#include <stdarg.h>
15887#include <stdio.h>
15888
15889static void test_printf(const char *, ...)
15890    __attribute__((__format__(__printf__, 1, 2)));
15891
15892static void
15893test_printf(const char *format, ...)
15894{
15895    va_list ap;
15896
15897    va_start(ap, format);
15898    vprintf(format, ap);
15899    va_end(ap);
15900}
15901int
15902main ()
15903{
15904
15905    test_printf("foo %s", "bar");
15906    return 0;
15907
15908  ;
15909  return 0;
15910}
15911_ACEOF
15912if ac_fn_cxx_try_compile "$LINENO"; then :
15913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15914$as_echo "yes" >&6; }
15915         value="__attribute__((__format__(__printf__, a, b)))"
15916else
15917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15918$as_echo "no" >&6; }
15919         value=""
15920
15921fi
15922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15923    ATTRIBUTE_FORMAT_PRINTF=${value}
15924
15925
15926
15927                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((__noreturn__)) is supported" >&5
15928$as_echo_n "checking whether __attribute__((__noreturn__)) is supported... " >&6; }
15929if ${kyua_cv_attribute_noreturn+:} false; then :
15930  $as_echo_n "(cached) " >&6
15931else
15932
15933        if test "$cross_compiling" = yes; then :
15934  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15936as_fn_error $? "cannot run test program while cross compiling
15937See \`config.log' for more details" "$LINENO" 5; }
15938else
15939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15940/* end confdefs.h.  */
15941
15942int
15943main ()
15944{
15945
15946#if ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
15947    return 0;
15948#else
15949    return 1;
15950#endif
15951
15952  ;
15953  return 0;
15954}
15955_ACEOF
15956if ac_fn_cxx_try_run "$LINENO"; then :
15957  kyua_cv_attribute_noreturn=yes
15958else
15959  kyua_cv_attribute_noreturn=no
15960fi
15961rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15962  conftest.$ac_objext conftest.beam conftest.$ac_ext
15963fi
15964
15965
15966fi
15967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kyua_cv_attribute_noreturn" >&5
15968$as_echo "$kyua_cv_attribute_noreturn" >&6; }
15969    if test x"${kyua_cv_attribute_noreturn}" = xyes; then
15970        value="__attribute__((__noreturn__))"
15971    else
15972        value=""
15973    fi
15974    ATTRIBUTE_NORETURN=${value}
15975
15976
15977
15978    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((__unused__)) is supported" >&5
15979$as_echo_n "checking whether __attribute__((__unused__)) is supported... " >&6; }
15980    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15981/* end confdefs.h.  */
15982
15983static void
15984function(int a __attribute__((__unused__)))
15985{
15986}
15987int
15988main ()
15989{
15990
15991    function(3);
15992    return 0;
15993
15994  ;
15995  return 0;
15996}
15997_ACEOF
15998if ac_fn_cxx_try_compile "$LINENO"; then :
15999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16000$as_echo "yes" >&6; }
16001         value="__attribute__((__unused__))"
16002else
16003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16004$as_echo "no" >&6; }
16005         value=""
16006
16007fi
16008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16009    ATTRIBUTE_UNUSED=${value}
16010
16011
16012
16013
16014    for ac_func in putenv setenv unsetenv
16015do :
16016  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16017ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
16018if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16019  cat >>confdefs.h <<_ACEOF
16020#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16021_ACEOF
16022
16023fi
16024done
16025
16026
16027
16028
16029    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv is in std" >&5
16030$as_echo_n "checking whether putenv is in std... " >&6; }
16031    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16032/* end confdefs.h.  */
16033#include <cstdio>
16034int
16035main ()
16036{
16037std::putenv("a=b");
16038                     return 0;
16039  ;
16040  return 0;
16041}
16042_ACEOF
16043if ac_fn_cxx_try_compile "$LINENO"; then :
16044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16045$as_echo "yes" >&6; }
16046
16047$as_echo "#define HAVE_PUTENV_IN_STD 1" >>confdefs.h
16048
16049else
16050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16051$as_echo "no" >&6; }
16052
16053fi
16054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16055
16056
16057
16058
16059    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv is in std" >&5
16060$as_echo_n "checking whether setenv is in std... " >&6; }
16061    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16062/* end confdefs.h.  */
16063#include <cstdio>
16064int
16065main ()
16066{
16067std::setenv("a", "b");
16068                     return 0;
16069  ;
16070  return 0;
16071}
16072_ACEOF
16073if ac_fn_cxx_try_compile "$LINENO"; then :
16074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16075$as_echo "yes" >&6; }
16076
16077$as_echo "#define HAVE_SETENV_IN_STD 1" >>confdefs.h
16078
16079else
16080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16081$as_echo "no" >&6; }
16082
16083fi
16084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16085
16086
16087
16088
16089    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv is in std" >&5
16090$as_echo_n "checking whether unsetenv is in std... " >&6; }
16091    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16092/* end confdefs.h.  */
16093#include <cstdio>
16094int
16095main ()
16096{
16097std::unsetenv("a");
16098                     return 0;
16099  ;
16100  return 0;
16101}
16102_ACEOF
16103if ac_fn_cxx_try_compile "$LINENO"; then :
16104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16105$as_echo "yes" >&6; }
16106
16107$as_echo "#define HAVE_UNSETENV_IN_STD 1" >>confdefs.h
16108
16109else
16110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16111$as_echo "no" >&6; }
16112
16113fi
16114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16115
16116
16117
16118
16119    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basename takes a constant pointer" >&5
16120$as_echo_n "checking whether basename takes a constant pointer... " >&6; }
16121    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16122/* end confdefs.h.  */
16123#include <libgen.h>
16124int
16125main ()
16126{
16127
16128         const char* s = "/foo/bar/";
16129         (void)::basename(s);
16130
16131  ;
16132  return 0;
16133}
16134_ACEOF
16135if ac_fn_cxx_try_compile "$LINENO"; then :
16136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16137$as_echo "yes" >&6; }
16138
16139$as_echo "#define HAVE_CONST_BASENAME 1" >>confdefs.h
16140
16141else
16142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16143$as_echo "no" >&6; }
16144fi
16145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16146
16147    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirname takes a constant pointer" >&5
16148$as_echo_n "checking whether dirname takes a constant pointer... " >&6; }
16149    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16150/* end confdefs.h.  */
16151#include <libgen.h>
16152int
16153main ()
16154{
16155
16156         const char* s = "/foo/bar/";
16157         (void)::dirname(s);
16158
16159  ;
16160  return 0;
16161}
16162_ACEOF
16163if ac_fn_cxx_try_compile "$LINENO"; then :
16164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16165$as_echo "yes" >&6; }
16166
16167$as_echo "#define HAVE_CONST_DIRNAME 1" >>confdefs.h
16168
16169else
16170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16171$as_echo "no" >&6; }
16172fi
16173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16174
16175    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd(NULL, 0) works" >&5
16176$as_echo_n "checking whether getcwd(NULL, 0) works... " >&6; }
16177if ${kyua_cv_getcwd_works+:} false; then :
16178  $as_echo_n "(cached) " >&6
16179else
16180
16181        if test "$cross_compiling" = yes; then :
16182  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16184as_fn_error $? "cannot run test program while cross compiling
16185See \`config.log' for more details" "$LINENO" 5; }
16186else
16187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16188/* end confdefs.h.  */
16189#include <stdlib.h>
16190#include <unistd.h>
16191int
16192main ()
16193{
16194
16195         char *cwd = getcwd(NULL, 0);
16196         return (cwd != NULL) ? EXIT_SUCCESS : EXIT_FAILURE;
16197
16198  ;
16199  return 0;
16200}
16201_ACEOF
16202if ac_fn_cxx_try_run "$LINENO"; then :
16203  kyua_cv_getcwd_works=yes
16204else
16205  kyua_cv_getcwd_works=no
16206fi
16207rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16208  conftest.$ac_objext conftest.beam conftest.$ac_ext
16209fi
16210
16211
16212fi
16213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kyua_cv_getcwd_works" >&5
16214$as_echo "$kyua_cv_getcwd_works" >&6; }
16215    if test x"${kyua_cv_getcwd_works}" = xyes; then
16216
16217$as_echo "#define HAVE_GETCWD_DYN 1" >>confdefs.h
16218
16219    fi
16220
16221    for ac_func in unmount
16222do :
16223  ac_fn_cxx_check_func "$LINENO" "unmount" "ac_cv_func_unmount"
16224if test "x$ac_cv_func_unmount" = xyes; then :
16225  cat >>confdefs.h <<_ACEOF
16226#define HAVE_UNMOUNT 1
16227_ACEOF
16228
16229fi
16230done
16231
16232
16233
16234
16235
16236    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is in std" >&5
16237$as_echo_n "checking whether snprintf is in std... " >&6; }
16238    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16239/* end confdefs.h.  */
16240#include <cstdio>
16241int
16242main ()
16243{
16244char buf;
16245                      std::snprintf(&buf, 1, "");
16246                     return 0;
16247  ;
16248  return 0;
16249}
16250_ACEOF
16251if ac_fn_cxx_try_compile "$LINENO"; then :
16252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16253$as_echo "yes" >&6; }
16254
16255$as_echo "#define HAVE_SNPRINTF_IN_STD 1" >>confdefs.h
16256
16257else
16258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16259$as_echo "no" >&6; }
16260
16261fi
16262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16263
16264
16265
16266
16267    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the last valid signal" >&5
16268$as_echo_n "checking for the last valid signal... " >&6; }
16269if ${kyua_cv_signal_lastno+:} false; then :
16270  $as_echo_n "(cached) " >&6
16271else
16272
16273        if test "$cross_compiling" = yes; then :
16274  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16276as_fn_error $? "cannot run test program while cross compiling
16277See \`config.log' for more details" "$LINENO" 5; }
16278else
16279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16280/* end confdefs.h.  */
16281#include <err.h>
16282#include <errno.h>
16283#include <signal.h>
16284#include <stdio.h>
16285#include <stdio.h>
16286#include <stdlib.h>
16287int
16288main ()
16289{
16290
16291    int i;
16292    FILE *f;
16293
16294    i = 0;
16295    while (i < 1024) {
16296        i++;
16297        if (i != SIGKILL && i != SIGSTOP) {
16298            struct sigaction sa;
16299            int ret;
16300
16301            sa.sa_handler = SIG_IGN;
16302            sigemptyset(&sa.sa_mask);
16303            sa.sa_flags = 0;
16304
16305            ret = sigaction(i, &sa, NULL);
16306            if (ret == -1) {
16307                if (errno == EINVAL) {
16308                    i--;
16309                    break;
16310                } else
16311                    err(EXIT_FAILURE, "sigaction failed");
16312            }
16313        }
16314    }
16315    if (i == 100)
16316        errx(EXIT_FAILURE, "too much signals");
16317
16318    f = fopen("conftest.cnt", "w");
16319    if (f == NULL)
16320        err(EXIT_FAILURE, "failed to open file");
16321
16322    fprintf(f, "%d\n", i);
16323    fclose(f);
16324
16325    return EXIT_SUCCESS;
16326
16327  ;
16328  return 0;
16329}
16330_ACEOF
16331if ac_fn_cxx_try_run "$LINENO"; then :
16332  if test ! -f conftest.cnt; then
16333             kyua_cv_signal_lastno=15
16334         else
16335             kyua_cv_signal_lastno=$(cat conftest.cnt)
16336             rm -f conftest.cnt
16337         fi
16338else
16339  kyua_cv_signal_lastno=15
16340fi
16341rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16342  conftest.$ac_objext conftest.beam conftest.$ac_ext
16343fi
16344
16345
16346fi
16347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kyua_cv_signal_lastno" >&5
16348$as_echo "$kyua_cv_signal_lastno" >&6; }
16349
16350cat >>confdefs.h <<_ACEOF
16351#define LAST_SIGNO ${kyua_cv_signal_lastno}
16352_ACEOF
16353
16354
16355
16356ac_fn_cxx_check_type "$LINENO" "timer_t" "ac_cv_type_timer_t" "#include <time.h>
16357"
16358if test "x$ac_cv_type_timer_t" = xyes; then :
16359
16360fi
16361
16362
16363
16364
16365    test x"${ATF_BUILD_CC-unset}" = x"unset" && ATF_BUILD_CC="${CC}"
16366
16367
16368
16369
16370    test x"${ATF_BUILD_CFLAGS-unset}" = x"unset" && ATF_BUILD_CFLAGS="${CFLAGS}"
16371
16372
16373
16374
16375    test x"${ATF_BUILD_CPP-unset}" = x"unset" && ATF_BUILD_CPP="${CPP}"
16376
16377
16378
16379
16380    test x"${ATF_BUILD_CPPFLAGS-unset}" = x"unset" && ATF_BUILD_CPPFLAGS="${CPPFLAGS}"
16381
16382
16383
16384
16385    test x"${ATF_BUILD_CXX-unset}" = x"unset" && ATF_BUILD_CXX="${CXX}"
16386
16387
16388
16389
16390    test x"${ATF_BUILD_CXXFLAGS-unset}" = x"unset" && ATF_BUILD_CXXFLAGS="${CXXFLAGS}"
16391
16392
16393
16394
16395if test "${srcdir}" = .; then
16396    target_srcdir=
16397else
16398    target_srcdir="${srcdir}/"
16399fi
16400
16401
16402
16403atf_arch=`uname -p`
16404atf_machine=`uname -m`
16405
16406{ $as_echo "$as_me:${as_lineno-$LINENO}: Machine type: ${atf_machine}, architecture: ${atf_arch}" >&5
16407$as_echo "$as_me: Machine type: ${atf_machine}, architecture: ${atf_arch}" >&6;}
16408atf_arch=${atf_arch}
16409
16410atf_machine=${atf_machine}
16411
16412
16413
16414
16415if test x"${ATF_CONFSUBDIR-unset}" = x"unset"; then
16416    ATF_CONFSUBDIR=atf
16417else
16418    case ${ATF_CONFSUBDIR} in
16419    /*)
16420        as_fn_error $? "ATF_CONFSUBDIR must hold a relative path" "$LINENO" 5
16421        ;;
16422    *)
16423        ;;
16424    esac
16425fi
16426if test x"${ATF_CONFSUBDIR}" = x""; then
16427    atf_confdir=\${sysconfdir}
16428
16429else
16430    atf_confdir=\${sysconfdir}/${ATF_CONFSUBDIR}
16431
16432fi
16433
16434
16435if test x"${ATF_WORKDIR}" = x""; then
16436    for t in /tmp /var/tmp; do
16437        if test -d ${t}; then
16438            ATF_WORKDIR=${t}
16439            break
16440        fi
16441    done
16442    if test x"${ATF_WORKDIR}" = x""; then
16443        as_fn_error $? "Could not guess a value for ATF_WORKDIR" "$LINENO" 5
16444    fi
16445else
16446    case ${ATF_WORKDIR} in
16447    /*)
16448        ;;
16449    *)
16450        as_fn_error $? "ATF_WORKDIR must hold an absolute path" "$LINENO" 5
16451        ;;
16452    esac
16453fi
16454
16455atf_aclocaldir=\${datadir}/aclocal
16456
16457atf_cssdir=\${datadir}/examples/atf
16458
16459atf_dtddir=\${datadir}/xml/atf
16460
16461atf_egdir=\${datadir}/examples/atf
16462
16463atf_pkgconfigdir=\${libdir}/pkgconfig
16464
16465atf_xsldir=\${datadir}/xsl/atf
16466
16467
16468
16469
16470if test x"${ATF_SHELL}" = x""; then
16471    for ac_prog in bash sh
16472do
16473  # Extract the first word of "$ac_prog", so it can be a program name with args.
16474set dummy $ac_prog; ac_word=$2
16475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16476$as_echo_n "checking for $ac_word... " >&6; }
16477if ${ac_cv_path_ATF_SHELL+:} false; then :
16478  $as_echo_n "(cached) " >&6
16479else
16480  case $ATF_SHELL in
16481  [\\/]* | ?:[\\/]*)
16482  ac_cv_path_ATF_SHELL="$ATF_SHELL" # Let the user override the test with a path.
16483  ;;
16484  *)
16485  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16486for as_dir in $PATH
16487do
16488  IFS=$as_save_IFS
16489  test -z "$as_dir" && as_dir=.
16490    for ac_exec_ext in '' $ac_executable_extensions; do
16491  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16492    ac_cv_path_ATF_SHELL="$as_dir/$ac_word$ac_exec_ext"
16493    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16494    break 2
16495  fi
16496done
16497  done
16498IFS=$as_save_IFS
16499
16500  ;;
16501esac
16502fi
16503ATF_SHELL=$ac_cv_path_ATF_SHELL
16504if test -n "$ATF_SHELL"; then
16505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ATF_SHELL" >&5
16506$as_echo "$ATF_SHELL" >&6; }
16507else
16508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16509$as_echo "no" >&6; }
16510fi
16511
16512
16513  test -n "$ATF_SHELL" && break
16514done
16515
16516else
16517    case ${ATF_SHELL} in
16518    /*)
16519        ;;
16520    *)
16521        as_fn_error $? "ATF_SHELL must hold an absolute path" "$LINENO" 5
16522        ;;
16523    esac
16524fi
16525if test x"${ATF_SHELL}" = x""; then
16526    as_fn_error $? "No POSIX shell interpreter found; maybe set ATF_SHELL?" "$LINENO" 5
16527fi
16528
16529
16530# Extract the first word of "gdb", so it can be a program name with args.
16531set dummy gdb; ac_word=$2
16532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16533$as_echo_n "checking for $ac_word... " >&6; }
16534if ${ac_cv_path_GDB+:} false; then :
16535  $as_echo_n "(cached) " >&6
16536else
16537  case $GDB in
16538  [\\/]* | ?:[\\/]*)
16539  ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
16540  ;;
16541  *)
16542  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16543for as_dir in $PATH
16544do
16545  IFS=$as_save_IFS
16546  test -z "$as_dir" && as_dir=.
16547    for ac_exec_ext in '' $ac_executable_extensions; do
16548  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16549    ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
16550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16551    break 2
16552  fi
16553done
16554  done
16555IFS=$as_save_IFS
16556
16557  ;;
16558esac
16559fi
16560GDB=$ac_cv_path_GDB
16561if test -n "$GDB"; then
16562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDB" >&5
16563$as_echo "$GDB" >&6; }
16564else
16565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16566$as_echo "no" >&6; }
16567fi
16568
16569
16570# Extract the first word of "kyua", so it can be a program name with args.
16571set dummy kyua; ac_word=$2
16572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16573$as_echo_n "checking for $ac_word... " >&6; }
16574if ${ac_cv_path_KYUA+:} false; then :
16575  $as_echo_n "(cached) " >&6
16576else
16577  case $KYUA in
16578  [\\/]* | ?:[\\/]*)
16579  ac_cv_path_KYUA="$KYUA" # Let the user override the test with a path.
16580  ;;
16581  *)
16582  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16583for as_dir in $PATH
16584do
16585  IFS=$as_save_IFS
16586  test -z "$as_dir" && as_dir=.
16587    for ac_exec_ext in '' $ac_executable_extensions; do
16588  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16589    ac_cv_path_KYUA="$as_dir/$ac_word$ac_exec_ext"
16590    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16591    break 2
16592  fi
16593done
16594  done
16595IFS=$as_save_IFS
16596
16597  ;;
16598esac
16599fi
16600KYUA=$ac_cv_path_KYUA
16601if test -n "$KYUA"; then
16602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KYUA" >&5
16603$as_echo "$KYUA" >&6; }
16604else
16605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16606$as_echo "no" >&6; }
16607fi
16608
16609
16610 if test -n "${KYUA}"; then
16611  HAVE_KYUA_TRUE=
16612  HAVE_KYUA_FALSE='#'
16613else
16614  HAVE_KYUA_TRUE='#'
16615  HAVE_KYUA_FALSE=
16616fi
16617
16618# Extract the first word of "git", so it can be a program name with args.
16619set dummy git; ac_word=$2
16620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16621$as_echo_n "checking for $ac_word... " >&6; }
16622if ${ac_cv_path_GIT+:} false; then :
16623  $as_echo_n "(cached) " >&6
16624else
16625  case $GIT in
16626  [\\/]* | ?:[\\/]*)
16627  ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
16628  ;;
16629  *)
16630  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16631for as_dir in $PATH
16632do
16633  IFS=$as_save_IFS
16634  test -z "$as_dir" && as_dir=.
16635    for ac_exec_ext in '' $ac_executable_extensions; do
16636  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16637    ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
16638    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16639    break 2
16640  fi
16641done
16642  done
16643IFS=$as_save_IFS
16644
16645  ;;
16646esac
16647fi
16648GIT=$ac_cv_path_GIT
16649if test -n "$GIT"; then
16650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
16651$as_echo "$GIT" >&6; }
16652else
16653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16654$as_echo "no" >&6; }
16655fi
16656
16657
16658
16659
16660ac_config_files="$ac_config_files Makefile atf-c/defs.h"
16661
16662cat >confcache <<\_ACEOF
16663# This file is a shell script that caches the results of configure
16664# tests run on this system so they can be shared between configure
16665# scripts and configure runs, see configure's option --config-cache.
16666# It is not useful on other systems.  If it contains results you don't
16667# want to keep, you may remove or edit it.
16668#
16669# config.status only pays attention to the cache file if you give it
16670# the --recheck option to rerun configure.
16671#
16672# `ac_cv_env_foo' variables (set or unset) will be overridden when
16673# loading this file, other *unset* `ac_cv_foo' will be assigned the
16674# following values.
16675
16676_ACEOF
16677
16678# The following way of writing the cache mishandles newlines in values,
16679# but we know of no workaround that is simple, portable, and efficient.
16680# So, we kill variables containing newlines.
16681# Ultrix sh set writes to stderr and can't be redirected directly,
16682# and sets the high bit in the cache file unless we assign to the vars.
16683(
16684  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16685    eval ac_val=\$$ac_var
16686    case $ac_val in #(
16687    *${as_nl}*)
16688      case $ac_var in #(
16689      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16690$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16691      esac
16692      case $ac_var in #(
16693      _ | IFS | as_nl) ;; #(
16694      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16695      *) { eval $ac_var=; unset $ac_var;} ;;
16696      esac ;;
16697    esac
16698  done
16699
16700  (set) 2>&1 |
16701    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16702    *${as_nl}ac_space=\ *)
16703      # `set' does not quote correctly, so add quotes: double-quote
16704      # substitution turns \\\\ into \\, and sed turns \\ into \.
16705      sed -n \
16706	"s/'/'\\\\''/g;
16707	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16708      ;; #(
16709    *)
16710      # `set' quotes correctly as required by POSIX, so do not add quotes.
16711      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16712      ;;
16713    esac |
16714    sort
16715) |
16716  sed '
16717     /^ac_cv_env_/b end
16718     t clear
16719     :clear
16720     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16721     t end
16722     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16723     :end' >>confcache
16724if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16725  if test -w "$cache_file"; then
16726    if test "x$cache_file" != "x/dev/null"; then
16727      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16728$as_echo "$as_me: updating cache $cache_file" >&6;}
16729      if test ! -f "$cache_file" || test -h "$cache_file"; then
16730	cat confcache >"$cache_file"
16731      else
16732        case $cache_file in #(
16733        */* | ?:*)
16734	  mv -f confcache "$cache_file"$$ &&
16735	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16736        *)
16737	  mv -f confcache "$cache_file" ;;
16738	esac
16739      fi
16740    fi
16741  else
16742    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16743$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16744  fi
16745fi
16746rm -f confcache
16747
16748test "x$prefix" = xNONE && prefix=$ac_default_prefix
16749# Let make expand exec_prefix.
16750test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16751
16752DEFS=-DHAVE_CONFIG_H
16753
16754ac_libobjs=
16755ac_ltlibobjs=
16756U=
16757for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16758  # 1. Remove the extension, and $U if already installed.
16759  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16760  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16761  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16762  #    will be set to the directory where LIBOBJS objects are built.
16763  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16764  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16765done
16766LIBOBJS=$ac_libobjs
16767
16768LTLIBOBJS=$ac_ltlibobjs
16769
16770
16771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16772$as_echo_n "checking that generated files are newer than configure... " >&6; }
16773   if test -n "$am_sleep_pid"; then
16774     # Hide warnings about reused PIDs.
16775     wait $am_sleep_pid 2>/dev/null
16776   fi
16777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16778$as_echo "done" >&6; }
16779 if test -n "$EXEEXT"; then
16780  am__EXEEXT_TRUE=
16781  am__EXEEXT_FALSE='#'
16782else
16783  am__EXEEXT_TRUE='#'
16784  am__EXEEXT_FALSE=
16785fi
16786
16787if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16788  as_fn_error $? "conditional \"AMDEP\" was never defined.
16789Usually this means the macro was only invoked conditionally." "$LINENO" 5
16790fi
16791if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16792  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16793Usually this means the macro was only invoked conditionally." "$LINENO" 5
16794fi
16795if test -z "${ENABLE_TOOLS_TRUE}" && test -z "${ENABLE_TOOLS_FALSE}"; then
16796  as_fn_error $? "conditional \"ENABLE_TOOLS\" was never defined.
16797Usually this means the macro was only invoked conditionally." "$LINENO" 5
16798fi
16799if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16800  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16801Usually this means the macro was only invoked conditionally." "$LINENO" 5
16802fi
16803if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16804  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16805Usually this means the macro was only invoked conditionally." "$LINENO" 5
16806fi
16807if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16808  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16809Usually this means the macro was only invoked conditionally." "$LINENO" 5
16810fi
16811if test -z "${HAVE_KYUA_TRUE}" && test -z "${HAVE_KYUA_FALSE}"; then
16812  as_fn_error $? "conditional \"HAVE_KYUA\" was never defined.
16813Usually this means the macro was only invoked conditionally." "$LINENO" 5
16814fi
16815
16816: "${CONFIG_STATUS=./config.status}"
16817ac_write_fail=0
16818ac_clean_files_save=$ac_clean_files
16819ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16820{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16821$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16822as_write_fail=0
16823cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16824#! $SHELL
16825# Generated by $as_me.
16826# Run this file to recreate the current configuration.
16827# Compiler output produced by configure, useful for debugging
16828# configure, is in config.log if it exists.
16829
16830debug=false
16831ac_cs_recheck=false
16832ac_cs_silent=false
16833
16834SHELL=\${CONFIG_SHELL-$SHELL}
16835export SHELL
16836_ASEOF
16837cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16838## -------------------- ##
16839## M4sh Initialization. ##
16840## -------------------- ##
16841
16842# Be more Bourne compatible
16843DUALCASE=1; export DUALCASE # for MKS sh
16844if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16845  emulate sh
16846  NULLCMD=:
16847  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16848  # is contrary to our usage.  Disable this feature.
16849  alias -g '${1+"$@"}'='"$@"'
16850  setopt NO_GLOB_SUBST
16851else
16852  case `(set -o) 2>/dev/null` in #(
16853  *posix*) :
16854    set -o posix ;; #(
16855  *) :
16856     ;;
16857esac
16858fi
16859
16860
16861as_nl='
16862'
16863export as_nl
16864# Printing a long string crashes Solaris 7 /usr/bin/printf.
16865as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16866as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16867as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16868# Prefer a ksh shell builtin over an external printf program on Solaris,
16869# but without wasting forks for bash or zsh.
16870if test -z "$BASH_VERSION$ZSH_VERSION" \
16871    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16872  as_echo='print -r --'
16873  as_echo_n='print -rn --'
16874elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16875  as_echo='printf %s\n'
16876  as_echo_n='printf %s'
16877else
16878  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16879    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16880    as_echo_n='/usr/ucb/echo -n'
16881  else
16882    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16883    as_echo_n_body='eval
16884      arg=$1;
16885      case $arg in #(
16886      *"$as_nl"*)
16887	expr "X$arg" : "X\\(.*\\)$as_nl";
16888	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16889      esac;
16890      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16891    '
16892    export as_echo_n_body
16893    as_echo_n='sh -c $as_echo_n_body as_echo'
16894  fi
16895  export as_echo_body
16896  as_echo='sh -c $as_echo_body as_echo'
16897fi
16898
16899# The user is always right.
16900if test "${PATH_SEPARATOR+set}" != set; then
16901  PATH_SEPARATOR=:
16902  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16903    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16904      PATH_SEPARATOR=';'
16905  }
16906fi
16907
16908
16909# IFS
16910# We need space, tab and new line, in precisely that order.  Quoting is
16911# there to prevent editors from complaining about space-tab.
16912# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16913# splitting by setting IFS to empty value.)
16914IFS=" ""	$as_nl"
16915
16916# Find who we are.  Look in the path if we contain no directory separator.
16917as_myself=
16918case $0 in #((
16919  *[\\/]* ) as_myself=$0 ;;
16920  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16921for as_dir in $PATH
16922do
16923  IFS=$as_save_IFS
16924  test -z "$as_dir" && as_dir=.
16925    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16926  done
16927IFS=$as_save_IFS
16928
16929     ;;
16930esac
16931# We did not find ourselves, most probably we were run as `sh COMMAND'
16932# in which case we are not to be found in the path.
16933if test "x$as_myself" = x; then
16934  as_myself=$0
16935fi
16936if test ! -f "$as_myself"; then
16937  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16938  exit 1
16939fi
16940
16941# Unset variables that we do not need and which cause bugs (e.g. in
16942# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16943# suppresses any "Segmentation fault" message there.  '((' could
16944# trigger a bug in pdksh 5.2.14.
16945for as_var in BASH_ENV ENV MAIL MAILPATH
16946do eval test x\${$as_var+set} = xset \
16947  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16948done
16949PS1='$ '
16950PS2='> '
16951PS4='+ '
16952
16953# NLS nuisances.
16954LC_ALL=C
16955export LC_ALL
16956LANGUAGE=C
16957export LANGUAGE
16958
16959# CDPATH.
16960(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16961
16962
16963# as_fn_error STATUS ERROR [LINENO LOG_FD]
16964# ----------------------------------------
16965# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16966# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16967# script with STATUS, using 1 if that was 0.
16968as_fn_error ()
16969{
16970  as_status=$1; test $as_status -eq 0 && as_status=1
16971  if test "$4"; then
16972    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16973    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16974  fi
16975  $as_echo "$as_me: error: $2" >&2
16976  as_fn_exit $as_status
16977} # as_fn_error
16978
16979
16980# as_fn_set_status STATUS
16981# -----------------------
16982# Set $? to STATUS, without forking.
16983as_fn_set_status ()
16984{
16985  return $1
16986} # as_fn_set_status
16987
16988# as_fn_exit STATUS
16989# -----------------
16990# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16991as_fn_exit ()
16992{
16993  set +e
16994  as_fn_set_status $1
16995  exit $1
16996} # as_fn_exit
16997
16998# as_fn_unset VAR
16999# ---------------
17000# Portably unset VAR.
17001as_fn_unset ()
17002{
17003  { eval $1=; unset $1;}
17004}
17005as_unset=as_fn_unset
17006# as_fn_append VAR VALUE
17007# ----------------------
17008# Append the text in VALUE to the end of the definition contained in VAR. Take
17009# advantage of any shell optimizations that allow amortized linear growth over
17010# repeated appends, instead of the typical quadratic growth present in naive
17011# implementations.
17012if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17013  eval 'as_fn_append ()
17014  {
17015    eval $1+=\$2
17016  }'
17017else
17018  as_fn_append ()
17019  {
17020    eval $1=\$$1\$2
17021  }
17022fi # as_fn_append
17023
17024# as_fn_arith ARG...
17025# ------------------
17026# Perform arithmetic evaluation on the ARGs, and store the result in the
17027# global $as_val. Take advantage of shells that can avoid forks. The arguments
17028# must be portable across $(()) and expr.
17029if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17030  eval 'as_fn_arith ()
17031  {
17032    as_val=$(( $* ))
17033  }'
17034else
17035  as_fn_arith ()
17036  {
17037    as_val=`expr "$@" || test $? -eq 1`
17038  }
17039fi # as_fn_arith
17040
17041
17042if expr a : '\(a\)' >/dev/null 2>&1 &&
17043   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17044  as_expr=expr
17045else
17046  as_expr=false
17047fi
17048
17049if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17050  as_basename=basename
17051else
17052  as_basename=false
17053fi
17054
17055if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17056  as_dirname=dirname
17057else
17058  as_dirname=false
17059fi
17060
17061as_me=`$as_basename -- "$0" ||
17062$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17063	 X"$0" : 'X\(//\)$' \| \
17064	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17065$as_echo X/"$0" |
17066    sed '/^.*\/\([^/][^/]*\)\/*$/{
17067	    s//\1/
17068	    q
17069	  }
17070	  /^X\/\(\/\/\)$/{
17071	    s//\1/
17072	    q
17073	  }
17074	  /^X\/\(\/\).*/{
17075	    s//\1/
17076	    q
17077	  }
17078	  s/.*/./; q'`
17079
17080# Avoid depending upon Character Ranges.
17081as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17082as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17083as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17084as_cr_digits='0123456789'
17085as_cr_alnum=$as_cr_Letters$as_cr_digits
17086
17087ECHO_C= ECHO_N= ECHO_T=
17088case `echo -n x` in #(((((
17089-n*)
17090  case `echo 'xy\c'` in
17091  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17092  xy)  ECHO_C='\c';;
17093  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17094       ECHO_T='	';;
17095  esac;;
17096*)
17097  ECHO_N='-n';;
17098esac
17099
17100rm -f conf$$ conf$$.exe conf$$.file
17101if test -d conf$$.dir; then
17102  rm -f conf$$.dir/conf$$.file
17103else
17104  rm -f conf$$.dir
17105  mkdir conf$$.dir 2>/dev/null
17106fi
17107if (echo >conf$$.file) 2>/dev/null; then
17108  if ln -s conf$$.file conf$$ 2>/dev/null; then
17109    as_ln_s='ln -s'
17110    # ... but there are two gotchas:
17111    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17112    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17113    # In both cases, we have to default to `cp -pR'.
17114    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17115      as_ln_s='cp -pR'
17116  elif ln conf$$.file conf$$ 2>/dev/null; then
17117    as_ln_s=ln
17118  else
17119    as_ln_s='cp -pR'
17120  fi
17121else
17122  as_ln_s='cp -pR'
17123fi
17124rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17125rmdir conf$$.dir 2>/dev/null
17126
17127
17128# as_fn_mkdir_p
17129# -------------
17130# Create "$as_dir" as a directory, including parents if necessary.
17131as_fn_mkdir_p ()
17132{
17133
17134  case $as_dir in #(
17135  -*) as_dir=./$as_dir;;
17136  esac
17137  test -d "$as_dir" || eval $as_mkdir_p || {
17138    as_dirs=
17139    while :; do
17140      case $as_dir in #(
17141      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17142      *) as_qdir=$as_dir;;
17143      esac
17144      as_dirs="'$as_qdir' $as_dirs"
17145      as_dir=`$as_dirname -- "$as_dir" ||
17146$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17147	 X"$as_dir" : 'X\(//\)[^/]' \| \
17148	 X"$as_dir" : 'X\(//\)$' \| \
17149	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17150$as_echo X"$as_dir" |
17151    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17152	    s//\1/
17153	    q
17154	  }
17155	  /^X\(\/\/\)[^/].*/{
17156	    s//\1/
17157	    q
17158	  }
17159	  /^X\(\/\/\)$/{
17160	    s//\1/
17161	    q
17162	  }
17163	  /^X\(\/\).*/{
17164	    s//\1/
17165	    q
17166	  }
17167	  s/.*/./; q'`
17168      test -d "$as_dir" && break
17169    done
17170    test -z "$as_dirs" || eval "mkdir $as_dirs"
17171  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17172
17173
17174} # as_fn_mkdir_p
17175if mkdir -p . 2>/dev/null; then
17176  as_mkdir_p='mkdir -p "$as_dir"'
17177else
17178  test -d ./-p && rmdir ./-p
17179  as_mkdir_p=false
17180fi
17181
17182
17183# as_fn_executable_p FILE
17184# -----------------------
17185# Test if FILE is an executable regular file.
17186as_fn_executable_p ()
17187{
17188  test -f "$1" && test -x "$1"
17189} # as_fn_executable_p
17190as_test_x='test -x'
17191as_executable_p=as_fn_executable_p
17192
17193# Sed expression to map a string onto a valid CPP name.
17194as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17195
17196# Sed expression to map a string onto a valid variable name.
17197as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17198
17199
17200exec 6>&1
17201## ----------------------------------- ##
17202## Main body of $CONFIG_STATUS script. ##
17203## ----------------------------------- ##
17204_ASEOF
17205test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17206
17207cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17208# Save the log message, to keep $0 and so on meaningful, and to
17209# report actual input values of CONFIG_FILES etc. instead of their
17210# values after options handling.
17211ac_log="
17212This file was extended by Automated Testing Framework $as_me 0.17, which was
17213generated by GNU Autoconf 2.69.  Invocation command line was
17214
17215  CONFIG_FILES    = $CONFIG_FILES
17216  CONFIG_HEADERS  = $CONFIG_HEADERS
17217  CONFIG_LINKS    = $CONFIG_LINKS
17218  CONFIG_COMMANDS = $CONFIG_COMMANDS
17219  $ $0 $@
17220
17221on `(hostname || uname -n) 2>/dev/null | sed 1q`
17222"
17223
17224_ACEOF
17225
17226case $ac_config_files in *"
17227"*) set x $ac_config_files; shift; ac_config_files=$*;;
17228esac
17229
17230case $ac_config_headers in *"
17231"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17232esac
17233
17234
17235cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17236# Files that config.status was made for.
17237config_files="$ac_config_files"
17238config_headers="$ac_config_headers"
17239config_commands="$ac_config_commands"
17240
17241_ACEOF
17242
17243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17244ac_cs_usage="\
17245\`$as_me' instantiates files and other configuration actions
17246from templates according to the current configuration.  Unless the files
17247and actions are specified as TAGs, all are instantiated by default.
17248
17249Usage: $0 [OPTION]... [TAG]...
17250
17251  -h, --help       print this help, then exit
17252  -V, --version    print version number and configuration settings, then exit
17253      --config     print configuration, then exit
17254  -q, --quiet, --silent
17255                   do not print progress messages
17256  -d, --debug      don't remove temporary files
17257      --recheck    update $as_me by reconfiguring in the same conditions
17258      --file=FILE[:TEMPLATE]
17259                   instantiate the configuration file FILE
17260      --header=FILE[:TEMPLATE]
17261                   instantiate the configuration header FILE
17262
17263Configuration files:
17264$config_files
17265
17266Configuration headers:
17267$config_headers
17268
17269Configuration commands:
17270$config_commands
17271
17272Report bugs to <atf-devel@NetBSD.org>.
17273Automated Testing Framework home page: <http://code.google.com/p/kyua/wiki/ATF>."
17274
17275_ACEOF
17276cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17277ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17278ac_cs_version="\\
17279Automated Testing Framework config.status 0.17
17280configured by $0, generated by GNU Autoconf 2.69,
17281  with options \\"\$ac_cs_config\\"
17282
17283Copyright (C) 2012 Free Software Foundation, Inc.
17284This config.status script is free software; the Free Software Foundation
17285gives unlimited permission to copy, distribute and modify it."
17286
17287ac_pwd='$ac_pwd'
17288srcdir='$srcdir'
17289INSTALL='$INSTALL'
17290MKDIR_P='$MKDIR_P'
17291AWK='$AWK'
17292test -n "\$AWK" || AWK=awk
17293_ACEOF
17294
17295cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17296# The default lists apply if the user does not specify any file.
17297ac_need_defaults=:
17298while test $# != 0
17299do
17300  case $1 in
17301  --*=?*)
17302    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17303    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17304    ac_shift=:
17305    ;;
17306  --*=)
17307    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17308    ac_optarg=
17309    ac_shift=:
17310    ;;
17311  *)
17312    ac_option=$1
17313    ac_optarg=$2
17314    ac_shift=shift
17315    ;;
17316  esac
17317
17318  case $ac_option in
17319  # Handling of the options.
17320  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17321    ac_cs_recheck=: ;;
17322  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17323    $as_echo "$ac_cs_version"; exit ;;
17324  --config | --confi | --conf | --con | --co | --c )
17325    $as_echo "$ac_cs_config"; exit ;;
17326  --debug | --debu | --deb | --de | --d | -d )
17327    debug=: ;;
17328  --file | --fil | --fi | --f )
17329    $ac_shift
17330    case $ac_optarg in
17331    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17332    '') as_fn_error $? "missing file argument" ;;
17333    esac
17334    as_fn_append CONFIG_FILES " '$ac_optarg'"
17335    ac_need_defaults=false;;
17336  --header | --heade | --head | --hea )
17337    $ac_shift
17338    case $ac_optarg in
17339    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17340    esac
17341    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17342    ac_need_defaults=false;;
17343  --he | --h)
17344    # Conflict between --help and --header
17345    as_fn_error $? "ambiguous option: \`$1'
17346Try \`$0 --help' for more information.";;
17347  --help | --hel | -h )
17348    $as_echo "$ac_cs_usage"; exit ;;
17349  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17350  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17351    ac_cs_silent=: ;;
17352
17353  # This is an error.
17354  -*) as_fn_error $? "unrecognized option: \`$1'
17355Try \`$0 --help' for more information." ;;
17356
17357  *) as_fn_append ac_config_targets " $1"
17358     ac_need_defaults=false ;;
17359
17360  esac
17361  shift
17362done
17363
17364ac_configure_extra_args=
17365
17366if $ac_cs_silent; then
17367  exec 6>/dev/null
17368  ac_configure_extra_args="$ac_configure_extra_args --silent"
17369fi
17370
17371_ACEOF
17372cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17373if \$ac_cs_recheck; then
17374  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17375  shift
17376  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17377  CONFIG_SHELL='$SHELL'
17378  export CONFIG_SHELL
17379  exec "\$@"
17380fi
17381
17382_ACEOF
17383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17384exec 5>>config.log
17385{
17386  echo
17387  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17388## Running $as_me. ##
17389_ASBOX
17390  $as_echo "$ac_log"
17391} >&5
17392
17393_ACEOF
17394cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17395#
17396# INIT-COMMANDS
17397#
17398
17399AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17400
17401
17402# The HP-UX ksh and POSIX shell print the target directory to stdout
17403# if CDPATH is set.
17404(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17405
17406sed_quote_subst='$sed_quote_subst'
17407double_quote_subst='$double_quote_subst'
17408delay_variable_subst='$delay_variable_subst'
17409macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17410macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17411enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17412enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17413pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17414enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17415host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17416host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17417host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17418build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17419build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17420build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17421SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17422Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17423GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17424EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17425FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17426LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17427NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17428LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17429max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17430ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17431exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17432lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17433lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17434lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17435reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17436reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17437OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17438deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17439file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17440AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17441AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17442STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17443RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17444old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17445old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17446old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17447CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17448CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17449compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17450GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17451lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17452lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17453lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
17454lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17455objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17456SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17457ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17458MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17459lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17460lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17461lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17462lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17463lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17464need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17465DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17466NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17467LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17468OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17469OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17470libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17471shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17472extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17473archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17474enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17475export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17476whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17477compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17478old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17479old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17480archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17481archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17482module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17483module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17484with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17485allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17486no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17487hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17488hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17489hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17490hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17491hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17492hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17493hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17494hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17495inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17496link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17497fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17498always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17499export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17500exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17501include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17502prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17503file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17504variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17505need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17506need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17507version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17508runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17509shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17510shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17511libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17512library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17513soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17514postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17515postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17516finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17517finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17518hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17519sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17520sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17521hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17522enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17523enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17524enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17525old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17526striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17527compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17528predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17529postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17530predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17531postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17532compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17533LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17534old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17535compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17536GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17537lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17538lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17539lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17540lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17541lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17542archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17543enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17544export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17545whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17546compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17547old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17548old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17549archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17550archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17551module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17552module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17553with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17554allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17555no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17556hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17557hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17558hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17559hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17560hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17561hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17562hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17563hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17564inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17565link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17566fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17567always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17568export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17569exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17570include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17571prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17572file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17573hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17574compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17575predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17576postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17577predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17578postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17579compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17580
17581LTCC='$LTCC'
17582LTCFLAGS='$LTCFLAGS'
17583compiler='$compiler_DEFAULT'
17584
17585# Quote evaled strings.
17586for var in SED \
17587GREP \
17588EGREP \
17589FGREP \
17590LD \
17591NM \
17592LN_S \
17593lt_SP2NL \
17594lt_NL2SP \
17595reload_flag \
17596OBJDUMP \
17597deplibs_check_method \
17598file_magic_cmd \
17599AR \
17600AR_FLAGS \
17601STRIP \
17602RANLIB \
17603CC \
17604CFLAGS \
17605compiler \
17606lt_cv_sys_global_symbol_pipe \
17607lt_cv_sys_global_symbol_to_cdecl \
17608lt_cv_sys_global_symbol_to_c_name_address \
17609lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17610SHELL \
17611ECHO \
17612lt_prog_compiler_no_builtin_flag \
17613lt_prog_compiler_wl \
17614lt_prog_compiler_pic \
17615lt_prog_compiler_static \
17616lt_cv_prog_compiler_c_o \
17617need_locks \
17618DSYMUTIL \
17619NMEDIT \
17620LIPO \
17621OTOOL \
17622OTOOL64 \
17623shrext_cmds \
17624export_dynamic_flag_spec \
17625whole_archive_flag_spec \
17626compiler_needs_object \
17627with_gnu_ld \
17628allow_undefined_flag \
17629no_undefined_flag \
17630hardcode_libdir_flag_spec \
17631hardcode_libdir_flag_spec_ld \
17632hardcode_libdir_separator \
17633fix_srcfile_path \
17634exclude_expsyms \
17635include_expsyms \
17636file_list_spec \
17637variables_saved_for_relink \
17638libname_spec \
17639library_names_spec \
17640soname_spec \
17641finish_eval \
17642old_striplib \
17643striplib \
17644compiler_lib_search_dirs \
17645predep_objects \
17646postdep_objects \
17647predeps \
17648postdeps \
17649compiler_lib_search_path \
17650LD_CXX \
17651compiler_CXX \
17652lt_prog_compiler_no_builtin_flag_CXX \
17653lt_prog_compiler_wl_CXX \
17654lt_prog_compiler_pic_CXX \
17655lt_prog_compiler_static_CXX \
17656lt_cv_prog_compiler_c_o_CXX \
17657export_dynamic_flag_spec_CXX \
17658whole_archive_flag_spec_CXX \
17659compiler_needs_object_CXX \
17660with_gnu_ld_CXX \
17661allow_undefined_flag_CXX \
17662no_undefined_flag_CXX \
17663hardcode_libdir_flag_spec_CXX \
17664hardcode_libdir_flag_spec_ld_CXX \
17665hardcode_libdir_separator_CXX \
17666fix_srcfile_path_CXX \
17667exclude_expsyms_CXX \
17668include_expsyms_CXX \
17669file_list_spec_CXX \
17670compiler_lib_search_dirs_CXX \
17671predep_objects_CXX \
17672postdep_objects_CXX \
17673predeps_CXX \
17674postdeps_CXX \
17675compiler_lib_search_path_CXX; do
17676    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17677    *[\\\\\\\`\\"\\\$]*)
17678      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17679      ;;
17680    *)
17681      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17682      ;;
17683    esac
17684done
17685
17686# Double-quote double-evaled strings.
17687for var in reload_cmds \
17688old_postinstall_cmds \
17689old_postuninstall_cmds \
17690old_archive_cmds \
17691extract_expsyms_cmds \
17692old_archive_from_new_cmds \
17693old_archive_from_expsyms_cmds \
17694archive_cmds \
17695archive_expsym_cmds \
17696module_cmds \
17697module_expsym_cmds \
17698export_symbols_cmds \
17699prelink_cmds \
17700postinstall_cmds \
17701postuninstall_cmds \
17702finish_cmds \
17703sys_lib_search_path_spec \
17704sys_lib_dlsearch_path_spec \
17705old_archive_cmds_CXX \
17706old_archive_from_new_cmds_CXX \
17707old_archive_from_expsyms_cmds_CXX \
17708archive_cmds_CXX \
17709archive_expsym_cmds_CXX \
17710module_cmds_CXX \
17711module_expsym_cmds_CXX \
17712export_symbols_cmds_CXX \
17713prelink_cmds_CXX; do
17714    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17715    *[\\\\\\\`\\"\\\$]*)
17716      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17717      ;;
17718    *)
17719      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17720      ;;
17721    esac
17722done
17723
17724# Fix-up fallback echo if it was mangled by the above quoting rules.
17725case \$lt_ECHO in
17726*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17727  ;;
17728esac
17729
17730ac_aux_dir='$ac_aux_dir'
17731xsi_shell='$xsi_shell'
17732lt_shell_append='$lt_shell_append'
17733
17734# See if we are running on zsh, and set the options which allow our
17735# commands through without removal of \ escapes INIT.
17736if test -n "\${ZSH_VERSION+set}" ; then
17737   setopt NO_GLOB_SUBST
17738fi
17739
17740
17741    PACKAGE='$PACKAGE'
17742    VERSION='$VERSION'
17743    TIMESTAMP='$TIMESTAMP'
17744    RM='$RM'
17745    ofile='$ofile'
17746
17747
17748
17749
17750
17751
17752_ACEOF
17753
17754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17755
17756# Handling of arguments.
17757for ac_config_target in $ac_config_targets
17758do
17759  case $ac_config_target in
17760    "bconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS bconfig.h" ;;
17761    "bootstrap/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS bootstrap/atconfig" ;;
17762    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17763    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17764    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17765    "atf-c/defs.h") CONFIG_FILES="$CONFIG_FILES atf-c/defs.h" ;;
17766
17767  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17768  esac
17769done
17770
17771
17772# If the user did not use the arguments to specify the items to instantiate,
17773# then the envvar interface is used.  Set only those that are not.
17774# We use the long form for the default assignment because of an extremely
17775# bizarre bug on SunOS 4.1.3.
17776if $ac_need_defaults; then
17777  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17778  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17779  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17780fi
17781
17782# Have a temporary directory for convenience.  Make it in the build tree
17783# simply because there is no reason against having it here, and in addition,
17784# creating and moving files from /tmp can sometimes cause problems.
17785# Hook for its removal unless debugging.
17786# Note that there is a small window in which the directory will not be cleaned:
17787# after its creation but before its name has been assigned to `$tmp'.
17788$debug ||
17789{
17790  tmp= ac_tmp=
17791  trap 'exit_status=$?
17792  : "${ac_tmp:=$tmp}"
17793  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17794' 0
17795  trap 'as_fn_exit 1' 1 2 13 15
17796}
17797# Create a (secure) tmp directory for tmp files.
17798
17799{
17800  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17801  test -d "$tmp"
17802}  ||
17803{
17804  tmp=./conf$$-$RANDOM
17805  (umask 077 && mkdir "$tmp")
17806} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17807ac_tmp=$tmp
17808
17809# Set up the scripts for CONFIG_FILES section.
17810# No need to generate them if there are no CONFIG_FILES.
17811# This happens for instance with `./config.status config.h'.
17812if test -n "$CONFIG_FILES"; then
17813
17814
17815ac_cr=`echo X | tr X '\015'`
17816# On cygwin, bash can eat \r inside `` if the user requested igncr.
17817# But we know of no other shell where ac_cr would be empty at this
17818# point, so we can use a bashism as a fallback.
17819if test "x$ac_cr" = x; then
17820  eval ac_cr=\$\'\\r\'
17821fi
17822ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17823if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17824  ac_cs_awk_cr='\\r'
17825else
17826  ac_cs_awk_cr=$ac_cr
17827fi
17828
17829echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17830_ACEOF
17831
17832
17833{
17834  echo "cat >conf$$subs.awk <<_ACEOF" &&
17835  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17836  echo "_ACEOF"
17837} >conf$$subs.sh ||
17838  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17839ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17840ac_delim='%!_!# '
17841for ac_last_try in false false false false false :; do
17842  . ./conf$$subs.sh ||
17843    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17844
17845  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17846  if test $ac_delim_n = $ac_delim_num; then
17847    break
17848  elif $ac_last_try; then
17849    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17850  else
17851    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17852  fi
17853done
17854rm -f conf$$subs.sh
17855
17856cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17857cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17858_ACEOF
17859sed -n '
17860h
17861s/^/S["/; s/!.*/"]=/
17862p
17863g
17864s/^[^!]*!//
17865:repl
17866t repl
17867s/'"$ac_delim"'$//
17868t delim
17869:nl
17870h
17871s/\(.\{148\}\)..*/\1/
17872t more1
17873s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17874p
17875n
17876b repl
17877:more1
17878s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17879p
17880g
17881s/.\{148\}//
17882t nl
17883:delim
17884h
17885s/\(.\{148\}\)..*/\1/
17886t more2
17887s/["\\]/\\&/g; s/^/"/; s/$/"/
17888p
17889b
17890:more2
17891s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17892p
17893g
17894s/.\{148\}//
17895t delim
17896' <conf$$subs.awk | sed '
17897/^[^""]/{
17898  N
17899  s/\n//
17900}
17901' >>$CONFIG_STATUS || ac_write_fail=1
17902rm -f conf$$subs.awk
17903cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17904_ACAWK
17905cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17906  for (key in S) S_is_set[key] = 1
17907  FS = ""
17908
17909}
17910{
17911  line = $ 0
17912  nfields = split(line, field, "@")
17913  substed = 0
17914  len = length(field[1])
17915  for (i = 2; i < nfields; i++) {
17916    key = field[i]
17917    keylen = length(key)
17918    if (S_is_set[key]) {
17919      value = S[key]
17920      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17921      len += length(value) + length(field[++i])
17922      substed = 1
17923    } else
17924      len += 1 + keylen
17925  }
17926
17927  print line
17928}
17929
17930_ACAWK
17931_ACEOF
17932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17933if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17934  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17935else
17936  cat
17937fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17938  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17939_ACEOF
17940
17941# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17942# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17943# trailing colons and then remove the whole line if VPATH becomes empty
17944# (actually we leave an empty line to preserve line numbers).
17945if test "x$srcdir" = x.; then
17946  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17947h
17948s///
17949s/^/:/
17950s/[	 ]*$/:/
17951s/:\$(srcdir):/:/g
17952s/:\${srcdir}:/:/g
17953s/:@srcdir@:/:/g
17954s/^:*//
17955s/:*$//
17956x
17957s/\(=[	 ]*\).*/\1/
17958G
17959s/\n//
17960s/^[^=]*=[	 ]*$//
17961}'
17962fi
17963
17964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17965fi # test -n "$CONFIG_FILES"
17966
17967# Set up the scripts for CONFIG_HEADERS section.
17968# No need to generate them if there are no CONFIG_HEADERS.
17969# This happens for instance with `./config.status Makefile'.
17970if test -n "$CONFIG_HEADERS"; then
17971cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17972BEGIN {
17973_ACEOF
17974
17975# Transform confdefs.h into an awk script `defines.awk', embedded as
17976# here-document in config.status, that substitutes the proper values into
17977# config.h.in to produce config.h.
17978
17979# Create a delimiter string that does not exist in confdefs.h, to ease
17980# handling of long lines.
17981ac_delim='%!_!# '
17982for ac_last_try in false false :; do
17983  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17984  if test -z "$ac_tt"; then
17985    break
17986  elif $ac_last_try; then
17987    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17988  else
17989    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17990  fi
17991done
17992
17993# For the awk script, D is an array of macro values keyed by name,
17994# likewise P contains macro parameters if any.  Preserve backslash
17995# newline sequences.
17996
17997ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17998sed -n '
17999s/.\{148\}/&'"$ac_delim"'/g
18000t rset
18001:rset
18002s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18003t def
18004d
18005:def
18006s/\\$//
18007t bsnl
18008s/["\\]/\\&/g
18009s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18010D["\1"]=" \3"/p
18011s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18012d
18013:bsnl
18014s/["\\]/\\&/g
18015s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18016D["\1"]=" \3\\\\\\n"\\/p
18017t cont
18018s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18019t cont
18020d
18021:cont
18022n
18023s/.\{148\}/&'"$ac_delim"'/g
18024t clear
18025:clear
18026s/\\$//
18027t bsnlc
18028s/["\\]/\\&/g; s/^/"/; s/$/"/p
18029d
18030:bsnlc
18031s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18032b cont
18033' <confdefs.h | sed '
18034s/'"$ac_delim"'/"\\\
18035"/g' >>$CONFIG_STATUS || ac_write_fail=1
18036
18037cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18038  for (key in D) D_is_set[key] = 1
18039  FS = ""
18040}
18041/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18042  line = \$ 0
18043  split(line, arg, " ")
18044  if (arg[1] == "#") {
18045    defundef = arg[2]
18046    mac1 = arg[3]
18047  } else {
18048    defundef = substr(arg[1], 2)
18049    mac1 = arg[2]
18050  }
18051  split(mac1, mac2, "(") #)
18052  macro = mac2[1]
18053  prefix = substr(line, 1, index(line, defundef) - 1)
18054  if (D_is_set[macro]) {
18055    # Preserve the white space surrounding the "#".
18056    print prefix "define", macro P[macro] D[macro]
18057    next
18058  } else {
18059    # Replace #undef with comments.  This is necessary, for example,
18060    # in the case of _POSIX_SOURCE, which is predefined and required
18061    # on some systems where configure will not decide to define it.
18062    if (defundef == "undef") {
18063      print "/*", prefix defundef, macro, "*/"
18064      next
18065    }
18066  }
18067}
18068{ print }
18069_ACAWK
18070_ACEOF
18071cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18072  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18073fi # test -n "$CONFIG_HEADERS"
18074
18075
18076eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18077shift
18078for ac_tag
18079do
18080  case $ac_tag in
18081  :[FHLC]) ac_mode=$ac_tag; continue;;
18082  esac
18083  case $ac_mode$ac_tag in
18084  :[FHL]*:*);;
18085  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18086  :[FH]-) ac_tag=-:-;;
18087  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18088  esac
18089  ac_save_IFS=$IFS
18090  IFS=:
18091  set x $ac_tag
18092  IFS=$ac_save_IFS
18093  shift
18094  ac_file=$1
18095  shift
18096
18097  case $ac_mode in
18098  :L) ac_source=$1;;
18099  :[FH])
18100    ac_file_inputs=
18101    for ac_f
18102    do
18103      case $ac_f in
18104      -) ac_f="$ac_tmp/stdin";;
18105      *) # Look for the file first in the build tree, then in the source tree
18106	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18107	 # because $ac_f cannot contain `:'.
18108	 test -f "$ac_f" ||
18109	   case $ac_f in
18110	   [\\/$]*) false;;
18111	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18112	   esac ||
18113	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18114      esac
18115      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18116      as_fn_append ac_file_inputs " '$ac_f'"
18117    done
18118
18119    # Let's still pretend it is `configure' which instantiates (i.e., don't
18120    # use $as_me), people would be surprised to read:
18121    #    /* config.h.  Generated by config.status.  */
18122    configure_input='Generated from '`
18123	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18124	`' by configure.'
18125    if test x"$ac_file" != x-; then
18126      configure_input="$ac_file.  $configure_input"
18127      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18128$as_echo "$as_me: creating $ac_file" >&6;}
18129    fi
18130    # Neutralize special characters interpreted by sed in replacement strings.
18131    case $configure_input in #(
18132    *\&* | *\|* | *\\* )
18133       ac_sed_conf_input=`$as_echo "$configure_input" |
18134       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18135    *) ac_sed_conf_input=$configure_input;;
18136    esac
18137
18138    case $ac_tag in
18139    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18140      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18141    esac
18142    ;;
18143  esac
18144
18145  ac_dir=`$as_dirname -- "$ac_file" ||
18146$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18147	 X"$ac_file" : 'X\(//\)[^/]' \| \
18148	 X"$ac_file" : 'X\(//\)$' \| \
18149	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18150$as_echo X"$ac_file" |
18151    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18152	    s//\1/
18153	    q
18154	  }
18155	  /^X\(\/\/\)[^/].*/{
18156	    s//\1/
18157	    q
18158	  }
18159	  /^X\(\/\/\)$/{
18160	    s//\1/
18161	    q
18162	  }
18163	  /^X\(\/\).*/{
18164	    s//\1/
18165	    q
18166	  }
18167	  s/.*/./; q'`
18168  as_dir="$ac_dir"; as_fn_mkdir_p
18169  ac_builddir=.
18170
18171case "$ac_dir" in
18172.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18173*)
18174  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18175  # A ".." for each directory in $ac_dir_suffix.
18176  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18177  case $ac_top_builddir_sub in
18178  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18179  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18180  esac ;;
18181esac
18182ac_abs_top_builddir=$ac_pwd
18183ac_abs_builddir=$ac_pwd$ac_dir_suffix
18184# for backward compatibility:
18185ac_top_builddir=$ac_top_build_prefix
18186
18187case $srcdir in
18188  .)  # We are building in place.
18189    ac_srcdir=.
18190    ac_top_srcdir=$ac_top_builddir_sub
18191    ac_abs_top_srcdir=$ac_pwd ;;
18192  [\\/]* | ?:[\\/]* )  # Absolute name.
18193    ac_srcdir=$srcdir$ac_dir_suffix;
18194    ac_top_srcdir=$srcdir
18195    ac_abs_top_srcdir=$srcdir ;;
18196  *) # Relative name.
18197    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18198    ac_top_srcdir=$ac_top_build_prefix$srcdir
18199    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18200esac
18201ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18202
18203
18204  case $ac_mode in
18205  :F)
18206  #
18207  # CONFIG_FILE
18208  #
18209
18210  case $INSTALL in
18211  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18212  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18213  esac
18214  ac_MKDIR_P=$MKDIR_P
18215  case $MKDIR_P in
18216  [\\/$]* | ?:[\\/]* ) ;;
18217  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18218  esac
18219_ACEOF
18220
18221cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18222# If the template does not know about datarootdir, expand it.
18223# FIXME: This hack should be removed a few years after 2.60.
18224ac_datarootdir_hack=; ac_datarootdir_seen=
18225ac_sed_dataroot='
18226/datarootdir/ {
18227  p
18228  q
18229}
18230/@datadir@/p
18231/@docdir@/p
18232/@infodir@/p
18233/@localedir@/p
18234/@mandir@/p'
18235case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18236*datarootdir*) ac_datarootdir_seen=yes;;
18237*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18238  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18239$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18240_ACEOF
18241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18242  ac_datarootdir_hack='
18243  s&@datadir@&$datadir&g
18244  s&@docdir@&$docdir&g
18245  s&@infodir@&$infodir&g
18246  s&@localedir@&$localedir&g
18247  s&@mandir@&$mandir&g
18248  s&\\\${datarootdir}&$datarootdir&g' ;;
18249esac
18250_ACEOF
18251
18252# Neutralize VPATH when `$srcdir' = `.'.
18253# Shell code in configure.ac might set extrasub.
18254# FIXME: do we really want to maintain this feature?
18255cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18256ac_sed_extra="$ac_vpsub
18257$extrasub
18258_ACEOF
18259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18260:t
18261/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18262s|@configure_input@|$ac_sed_conf_input|;t t
18263s&@top_builddir@&$ac_top_builddir_sub&;t t
18264s&@top_build_prefix@&$ac_top_build_prefix&;t t
18265s&@srcdir@&$ac_srcdir&;t t
18266s&@abs_srcdir@&$ac_abs_srcdir&;t t
18267s&@top_srcdir@&$ac_top_srcdir&;t t
18268s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18269s&@builddir@&$ac_builddir&;t t
18270s&@abs_builddir@&$ac_abs_builddir&;t t
18271s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18272s&@INSTALL@&$ac_INSTALL&;t t
18273s&@MKDIR_P@&$ac_MKDIR_P&;t t
18274$ac_datarootdir_hack
18275"
18276eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18277  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18278
18279test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18280  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18281  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18282      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18283  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18284which seems to be undefined.  Please make sure it is defined" >&5
18285$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18286which seems to be undefined.  Please make sure it is defined" >&2;}
18287
18288  rm -f "$ac_tmp/stdin"
18289  case $ac_file in
18290  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18291  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18292  esac \
18293  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18294 ;;
18295  :H)
18296  #
18297  # CONFIG_HEADER
18298  #
18299  if test x"$ac_file" != x-; then
18300    {
18301      $as_echo "/* $configure_input  */" \
18302      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18303    } >"$ac_tmp/config.h" \
18304      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18305    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18306      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18307$as_echo "$as_me: $ac_file is unchanged" >&6;}
18308    else
18309      rm -f "$ac_file"
18310      mv "$ac_tmp/config.h" "$ac_file" \
18311	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18312    fi
18313  else
18314    $as_echo "/* $configure_input  */" \
18315      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18316      || as_fn_error $? "could not create -" "$LINENO" 5
18317  fi
18318# Compute "$ac_file"'s index in $config_headers.
18319_am_arg="$ac_file"
18320_am_stamp_count=1
18321for _am_header in $config_headers :; do
18322  case $_am_header in
18323    $_am_arg | $_am_arg:* )
18324      break ;;
18325    * )
18326      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18327  esac
18328done
18329echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18330$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18331	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18332	 X"$_am_arg" : 'X\(//\)$' \| \
18333	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18334$as_echo X"$_am_arg" |
18335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18336	    s//\1/
18337	    q
18338	  }
18339	  /^X\(\/\/\)[^/].*/{
18340	    s//\1/
18341	    q
18342	  }
18343	  /^X\(\/\/\)$/{
18344	    s//\1/
18345	    q
18346	  }
18347	  /^X\(\/\).*/{
18348	    s//\1/
18349	    q
18350	  }
18351	  s/.*/./; q'`/stamp-h$_am_stamp_count
18352 ;;
18353
18354  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18355$as_echo "$as_me: executing $ac_file commands" >&6;}
18356 ;;
18357  esac
18358
18359
18360  case $ac_file$ac_mode in
18361    "bootstrap/atconfig":C) cat >bootstrap/atconfig <<ATEOF
18362# Configurable variable values for building test suites.
18363# Generated by $0.
18364# Copyright (C) 2012 Free Software Foundation, Inc.
18365
18366# The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
18367at_testdir='bootstrap'
18368abs_builddir='$ac_abs_builddir'
18369at_srcdir='$ac_srcdir'
18370abs_srcdir='$ac_abs_srcdir'
18371at_top_srcdir='$ac_top_srcdir'
18372abs_top_srcdir='$ac_abs_top_srcdir'
18373at_top_build_prefix='$ac_top_build_prefix'
18374abs_top_builddir='$ac_abs_top_builddir'
18375
18376# Backward compatibility with Autotest <= 2.59b:
18377at_top_builddir=\$at_top_build_prefix
18378
18379AUTOTEST_PATH='bootstrap'
18380
18381SHELL=\${CONFIG_SHELL-'$SHELL'}
18382ATEOF
18383 ;;
18384    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18385  # Autoconf 2.62 quotes --file arguments for eval, but not when files
18386  # are listed without --file.  Let's play safe and only enable the eval
18387  # if we detect the quoting.
18388  case $CONFIG_FILES in
18389  *\'*) eval set x "$CONFIG_FILES" ;;
18390  *)   set x $CONFIG_FILES ;;
18391  esac
18392  shift
18393  for mf
18394  do
18395    # Strip MF so we end up with the name of the file.
18396    mf=`echo "$mf" | sed -e 's/:.*$//'`
18397    # Check whether this is an Automake generated Makefile or not.
18398    # We used to match only the files named 'Makefile.in', but
18399    # some people rename them; so instead we look at the file content.
18400    # Grep'ing the first line is not enough: some people post-process
18401    # each Makefile.in and add a new line on top of each file to say so.
18402    # Grep'ing the whole file is not good either: AIX grep has a line
18403    # limit of 2048, but all sed's we know have understand at least 4000.
18404    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18405      dirpart=`$as_dirname -- "$mf" ||
18406$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18407	 X"$mf" : 'X\(//\)[^/]' \| \
18408	 X"$mf" : 'X\(//\)$' \| \
18409	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18410$as_echo X"$mf" |
18411    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18412	    s//\1/
18413	    q
18414	  }
18415	  /^X\(\/\/\)[^/].*/{
18416	    s//\1/
18417	    q
18418	  }
18419	  /^X\(\/\/\)$/{
18420	    s//\1/
18421	    q
18422	  }
18423	  /^X\(\/\).*/{
18424	    s//\1/
18425	    q
18426	  }
18427	  s/.*/./; q'`
18428    else
18429      continue
18430    fi
18431    # Extract the definition of DEPDIR, am__include, and am__quote
18432    # from the Makefile without running 'make'.
18433    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18434    test -z "$DEPDIR" && continue
18435    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18436    test -z "am__include" && continue
18437    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18438    # Find all dependency output files, they are included files with
18439    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18440    # simplest approach to changing $(DEPDIR) to its actual value in the
18441    # expansion.
18442    for file in `sed -n "
18443      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18444	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18445      # Make sure the directory exists.
18446      test -f "$dirpart/$file" && continue
18447      fdir=`$as_dirname -- "$file" ||
18448$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18449	 X"$file" : 'X\(//\)[^/]' \| \
18450	 X"$file" : 'X\(//\)$' \| \
18451	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18452$as_echo X"$file" |
18453    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18454	    s//\1/
18455	    q
18456	  }
18457	  /^X\(\/\/\)[^/].*/{
18458	    s//\1/
18459	    q
18460	  }
18461	  /^X\(\/\/\)$/{
18462	    s//\1/
18463	    q
18464	  }
18465	  /^X\(\/\).*/{
18466	    s//\1/
18467	    q
18468	  }
18469	  s/.*/./; q'`
18470      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18471      # echo "creating $dirpart/$file"
18472      echo '# dummy' > "$dirpart/$file"
18473    done
18474  done
18475}
18476 ;;
18477    "libtool":C)
18478
18479    # See if we are running on zsh, and set the options which allow our
18480    # commands through without removal of \ escapes.
18481    if test -n "${ZSH_VERSION+set}" ; then
18482      setopt NO_GLOB_SUBST
18483    fi
18484
18485    cfgfile="${ofile}T"
18486    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18487    $RM "$cfgfile"
18488
18489    cat <<_LT_EOF >> "$cfgfile"
18490#! $SHELL
18491
18492# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18493# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18494# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18495# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18496#
18497#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18498#                 2006, 2007, 2008 Free Software Foundation, Inc.
18499#   Written by Gordon Matzigkeit, 1996
18500#
18501#   This file is part of GNU Libtool.
18502#
18503# GNU Libtool is free software; you can redistribute it and/or
18504# modify it under the terms of the GNU General Public License as
18505# published by the Free Software Foundation; either version 2 of
18506# the License, or (at your option) any later version.
18507#
18508# As a special exception to the GNU General Public License,
18509# if you distribute this file as part of a program or library that
18510# is built using GNU Libtool, you may include this file under the
18511# same distribution terms that you use for the rest of that program.
18512#
18513# GNU Libtool is distributed in the hope that it will be useful,
18514# but WITHOUT ANY WARRANTY; without even the implied warranty of
18515# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18516# GNU General Public License for more details.
18517#
18518# You should have received a copy of the GNU General Public License
18519# along with GNU Libtool; see the file COPYING.  If not, a copy
18520# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18521# obtained by writing to the Free Software Foundation, Inc.,
18522# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18523
18524
18525# The names of the tagged configurations supported by this script.
18526available_tags="CXX "
18527
18528# ### BEGIN LIBTOOL CONFIG
18529
18530# Which release of libtool.m4 was used?
18531macro_version=$macro_version
18532macro_revision=$macro_revision
18533
18534# Whether or not to build shared libraries.
18535build_libtool_libs=$enable_shared
18536
18537# Whether or not to build static libraries.
18538build_old_libs=$enable_static
18539
18540# What type of objects to build.
18541pic_mode=$pic_mode
18542
18543# Whether or not to optimize for fast installation.
18544fast_install=$enable_fast_install
18545
18546# The host system.
18547host_alias=$host_alias
18548host=$host
18549host_os=$host_os
18550
18551# The build system.
18552build_alias=$build_alias
18553build=$build
18554build_os=$build_os
18555
18556# A sed program that does not truncate output.
18557SED=$lt_SED
18558
18559# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18560Xsed="\$SED -e 1s/^X//"
18561
18562# A grep program that handles long lines.
18563GREP=$lt_GREP
18564
18565# An ERE matcher.
18566EGREP=$lt_EGREP
18567
18568# A literal string matcher.
18569FGREP=$lt_FGREP
18570
18571# A BSD- or MS-compatible name lister.
18572NM=$lt_NM
18573
18574# Whether we need soft or hard links.
18575LN_S=$lt_LN_S
18576
18577# What is the maximum length of a command?
18578max_cmd_len=$max_cmd_len
18579
18580# Object file suffix (normally "o").
18581objext=$ac_objext
18582
18583# Executable file suffix (normally "").
18584exeext=$exeext
18585
18586# whether the shell understands "unset".
18587lt_unset=$lt_unset
18588
18589# turn spaces into newlines.
18590SP2NL=$lt_lt_SP2NL
18591
18592# turn newlines into spaces.
18593NL2SP=$lt_lt_NL2SP
18594
18595# How to create reloadable object files.
18596reload_flag=$lt_reload_flag
18597reload_cmds=$lt_reload_cmds
18598
18599# An object symbol dumper.
18600OBJDUMP=$lt_OBJDUMP
18601
18602# Method to check whether dependent libraries are shared objects.
18603deplibs_check_method=$lt_deplibs_check_method
18604
18605# Command to use when deplibs_check_method == "file_magic".
18606file_magic_cmd=$lt_file_magic_cmd
18607
18608# The archiver.
18609AR=$lt_AR
18610AR_FLAGS=$lt_AR_FLAGS
18611
18612# A symbol stripping program.
18613STRIP=$lt_STRIP
18614
18615# Commands used to install an old-style archive.
18616RANLIB=$lt_RANLIB
18617old_postinstall_cmds=$lt_old_postinstall_cmds
18618old_postuninstall_cmds=$lt_old_postuninstall_cmds
18619
18620# A C compiler.
18621LTCC=$lt_CC
18622
18623# LTCC compiler flags.
18624LTCFLAGS=$lt_CFLAGS
18625
18626# Take the output of nm and produce a listing of raw symbols and C names.
18627global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18628
18629# Transform the output of nm in a proper C declaration.
18630global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18631
18632# Transform the output of nm in a C name address pair.
18633global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18634
18635# Transform the output of nm in a C name address pair when lib prefix is needed.
18636global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18637
18638# The name of the directory that contains temporary libtool files.
18639objdir=$objdir
18640
18641# Shell to use when invoking shell scripts.
18642SHELL=$lt_SHELL
18643
18644# An echo program that does not interpret backslashes.
18645ECHO=$lt_ECHO
18646
18647# Used to examine libraries when file_magic_cmd begins with "file".
18648MAGIC_CMD=$MAGIC_CMD
18649
18650# Must we lock files when doing compilation?
18651need_locks=$lt_need_locks
18652
18653# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18654DSYMUTIL=$lt_DSYMUTIL
18655
18656# Tool to change global to local symbols on Mac OS X.
18657NMEDIT=$lt_NMEDIT
18658
18659# Tool to manipulate fat objects and archives on Mac OS X.
18660LIPO=$lt_LIPO
18661
18662# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18663OTOOL=$lt_OTOOL
18664
18665# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18666OTOOL64=$lt_OTOOL64
18667
18668# Old archive suffix (normally "a").
18669libext=$libext
18670
18671# Shared library suffix (normally ".so").
18672shrext_cmds=$lt_shrext_cmds
18673
18674# The commands to extract the exported symbol list from a shared archive.
18675extract_expsyms_cmds=$lt_extract_expsyms_cmds
18676
18677# Variables whose values should be saved in libtool wrapper scripts and
18678# restored at link time.
18679variables_saved_for_relink=$lt_variables_saved_for_relink
18680
18681# Do we need the "lib" prefix for modules?
18682need_lib_prefix=$need_lib_prefix
18683
18684# Do we need a version for libraries?
18685need_version=$need_version
18686
18687# Library versioning type.
18688version_type=$version_type
18689
18690# Shared library runtime path variable.
18691runpath_var=$runpath_var
18692
18693# Shared library path variable.
18694shlibpath_var=$shlibpath_var
18695
18696# Is shlibpath searched before the hard-coded library search path?
18697shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18698
18699# Format of library name prefix.
18700libname_spec=$lt_libname_spec
18701
18702# List of archive names.  First name is the real one, the rest are links.
18703# The last name is the one that the linker finds with -lNAME
18704library_names_spec=$lt_library_names_spec
18705
18706# The coded name of the library, if different from the real name.
18707soname_spec=$lt_soname_spec
18708
18709# Command to use after installation of a shared archive.
18710postinstall_cmds=$lt_postinstall_cmds
18711
18712# Command to use after uninstallation of a shared archive.
18713postuninstall_cmds=$lt_postuninstall_cmds
18714
18715# Commands used to finish a libtool library installation in a directory.
18716finish_cmds=$lt_finish_cmds
18717
18718# As "finish_cmds", except a single script fragment to be evaled but
18719# not shown.
18720finish_eval=$lt_finish_eval
18721
18722# Whether we should hardcode library paths into libraries.
18723hardcode_into_libs=$hardcode_into_libs
18724
18725# Compile-time system search path for libraries.
18726sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18727
18728# Run-time system search path for libraries.
18729sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18730
18731# Whether dlopen is supported.
18732dlopen_support=$enable_dlopen
18733
18734# Whether dlopen of programs is supported.
18735dlopen_self=$enable_dlopen_self
18736
18737# Whether dlopen of statically linked programs is supported.
18738dlopen_self_static=$enable_dlopen_self_static
18739
18740# Commands to strip libraries.
18741old_striplib=$lt_old_striplib
18742striplib=$lt_striplib
18743
18744
18745# The linker used to build libraries.
18746LD=$lt_LD
18747
18748# Commands used to build an old-style archive.
18749old_archive_cmds=$lt_old_archive_cmds
18750
18751# A language specific compiler.
18752CC=$lt_compiler
18753
18754# Is the compiler the GNU compiler?
18755with_gcc=$GCC
18756
18757# Compiler flag to turn off builtin functions.
18758no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18759
18760# How to pass a linker flag through the compiler.
18761wl=$lt_lt_prog_compiler_wl
18762
18763# Additional compiler flags for building library objects.
18764pic_flag=$lt_lt_prog_compiler_pic
18765
18766# Compiler flag to prevent dynamic linking.
18767link_static_flag=$lt_lt_prog_compiler_static
18768
18769# Does compiler simultaneously support -c and -o options?
18770compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18771
18772# Whether or not to add -lc for building shared libraries.
18773build_libtool_need_lc=$archive_cmds_need_lc
18774
18775# Whether or not to disallow shared libs when runtime libs are static.
18776allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18777
18778# Compiler flag to allow reflexive dlopens.
18779export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18780
18781# Compiler flag to generate shared objects directly from archives.
18782whole_archive_flag_spec=$lt_whole_archive_flag_spec
18783
18784# Whether the compiler copes with passing no objects directly.
18785compiler_needs_object=$lt_compiler_needs_object
18786
18787# Create an old-style archive from a shared archive.
18788old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18789
18790# Create a temporary old-style archive to link instead of a shared archive.
18791old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18792
18793# Commands used to build a shared archive.
18794archive_cmds=$lt_archive_cmds
18795archive_expsym_cmds=$lt_archive_expsym_cmds
18796
18797# Commands used to build a loadable module if different from building
18798# a shared archive.
18799module_cmds=$lt_module_cmds
18800module_expsym_cmds=$lt_module_expsym_cmds
18801
18802# Whether we are building with GNU ld or not.
18803with_gnu_ld=$lt_with_gnu_ld
18804
18805# Flag that allows shared libraries with undefined symbols to be built.
18806allow_undefined_flag=$lt_allow_undefined_flag
18807
18808# Flag that enforces no undefined symbols.
18809no_undefined_flag=$lt_no_undefined_flag
18810
18811# Flag to hardcode \$libdir into a binary during linking.
18812# This must work even if \$libdir does not exist
18813hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18814
18815# If ld is used when linking, flag to hardcode \$libdir into a binary
18816# during linking.  This must work even if \$libdir does not exist.
18817hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18818
18819# Whether we need a single "-rpath" flag with a separated argument.
18820hardcode_libdir_separator=$lt_hardcode_libdir_separator
18821
18822# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18823# DIR into the resulting binary.
18824hardcode_direct=$hardcode_direct
18825
18826# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18827# DIR into the resulting binary and the resulting library dependency is
18828# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18829# library is relocated.
18830hardcode_direct_absolute=$hardcode_direct_absolute
18831
18832# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18833# into the resulting binary.
18834hardcode_minus_L=$hardcode_minus_L
18835
18836# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18837# into the resulting binary.
18838hardcode_shlibpath_var=$hardcode_shlibpath_var
18839
18840# Set to "yes" if building a shared library automatically hardcodes DIR
18841# into the library and all subsequent libraries and executables linked
18842# against it.
18843hardcode_automatic=$hardcode_automatic
18844
18845# Set to yes if linker adds runtime paths of dependent libraries
18846# to runtime path list.
18847inherit_rpath=$inherit_rpath
18848
18849# Whether libtool must link a program against all its dependency libraries.
18850link_all_deplibs=$link_all_deplibs
18851
18852# Fix the shell variable \$srcfile for the compiler.
18853fix_srcfile_path=$lt_fix_srcfile_path
18854
18855# Set to "yes" if exported symbols are required.
18856always_export_symbols=$always_export_symbols
18857
18858# The commands to list exported symbols.
18859export_symbols_cmds=$lt_export_symbols_cmds
18860
18861# Symbols that should not be listed in the preloaded symbols.
18862exclude_expsyms=$lt_exclude_expsyms
18863
18864# Symbols that must always be exported.
18865include_expsyms=$lt_include_expsyms
18866
18867# Commands necessary for linking programs (against libraries) with templates.
18868prelink_cmds=$lt_prelink_cmds
18869
18870# Specify filename containing input files.
18871file_list_spec=$lt_file_list_spec
18872
18873# How to hardcode a shared library path into an executable.
18874hardcode_action=$hardcode_action
18875
18876# The directories searched by this compiler when creating a shared library.
18877compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18878
18879# Dependencies to place before and after the objects being linked to
18880# create a shared library.
18881predep_objects=$lt_predep_objects
18882postdep_objects=$lt_postdep_objects
18883predeps=$lt_predeps
18884postdeps=$lt_postdeps
18885
18886# The library search path used internally by the compiler when linking
18887# a shared library.
18888compiler_lib_search_path=$lt_compiler_lib_search_path
18889
18890# ### END LIBTOOL CONFIG
18891
18892_LT_EOF
18893
18894  case $host_os in
18895  aix3*)
18896    cat <<\_LT_EOF >> "$cfgfile"
18897# AIX sometimes has problems with the GCC collect2 program.  For some
18898# reason, if we set the COLLECT_NAMES environment variable, the problems
18899# vanish in a puff of smoke.
18900if test "X${COLLECT_NAMES+set}" != Xset; then
18901  COLLECT_NAMES=
18902  export COLLECT_NAMES
18903fi
18904_LT_EOF
18905    ;;
18906  esac
18907
18908
18909ltmain="$ac_aux_dir/ltmain.sh"
18910
18911
18912  # We use sed instead of cat because bash on DJGPP gets confused if
18913  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18914  # text mode, it properly converts lines to CR/LF.  This bash problem
18915  # is reportedly fixed, but why not run on old versions too?
18916  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18917    || (rm -f "$cfgfile"; exit 1)
18918
18919  case $xsi_shell in
18920  yes)
18921    cat << \_LT_EOF >> "$cfgfile"
18922
18923# func_dirname file append nondir_replacement
18924# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18925# otherwise set result to NONDIR_REPLACEMENT.
18926func_dirname ()
18927{
18928  case ${1} in
18929    */*) func_dirname_result="${1%/*}${2}" ;;
18930    *  ) func_dirname_result="${3}" ;;
18931  esac
18932}
18933
18934# func_basename file
18935func_basename ()
18936{
18937  func_basename_result="${1##*/}"
18938}
18939
18940# func_dirname_and_basename file append nondir_replacement
18941# perform func_basename and func_dirname in a single function
18942# call:
18943#   dirname:  Compute the dirname of FILE.  If nonempty,
18944#             add APPEND to the result, otherwise set result
18945#             to NONDIR_REPLACEMENT.
18946#             value returned in "$func_dirname_result"
18947#   basename: Compute filename of FILE.
18948#             value retuned in "$func_basename_result"
18949# Implementation must be kept synchronized with func_dirname
18950# and func_basename. For efficiency, we do not delegate to
18951# those functions but instead duplicate the functionality here.
18952func_dirname_and_basename ()
18953{
18954  case ${1} in
18955    */*) func_dirname_result="${1%/*}${2}" ;;
18956    *  ) func_dirname_result="${3}" ;;
18957  esac
18958  func_basename_result="${1##*/}"
18959}
18960
18961# func_stripname prefix suffix name
18962# strip PREFIX and SUFFIX off of NAME.
18963# PREFIX and SUFFIX must not contain globbing or regex special
18964# characters, hashes, percent signs, but SUFFIX may contain a leading
18965# dot (in which case that matches only a dot).
18966func_stripname ()
18967{
18968  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18969  # positional parameters, so assign one to ordinary parameter first.
18970  func_stripname_result=${3}
18971  func_stripname_result=${func_stripname_result#"${1}"}
18972  func_stripname_result=${func_stripname_result%"${2}"}
18973}
18974
18975# func_opt_split
18976func_opt_split ()
18977{
18978  func_opt_split_opt=${1%%=*}
18979  func_opt_split_arg=${1#*=}
18980}
18981
18982# func_lo2o object
18983func_lo2o ()
18984{
18985  case ${1} in
18986    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18987    *)    func_lo2o_result=${1} ;;
18988  esac
18989}
18990
18991# func_xform libobj-or-source
18992func_xform ()
18993{
18994  func_xform_result=${1%.*}.lo
18995}
18996
18997# func_arith arithmetic-term...
18998func_arith ()
18999{
19000  func_arith_result=$(( $* ))
19001}
19002
19003# func_len string
19004# STRING may not start with a hyphen.
19005func_len ()
19006{
19007  func_len_result=${#1}
19008}
19009
19010_LT_EOF
19011    ;;
19012  *) # Bourne compatible functions.
19013    cat << \_LT_EOF >> "$cfgfile"
19014
19015# func_dirname file append nondir_replacement
19016# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19017# otherwise set result to NONDIR_REPLACEMENT.
19018func_dirname ()
19019{
19020  # Extract subdirectory from the argument.
19021  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19022  if test "X$func_dirname_result" = "X${1}"; then
19023    func_dirname_result="${3}"
19024  else
19025    func_dirname_result="$func_dirname_result${2}"
19026  fi
19027}
19028
19029# func_basename file
19030func_basename ()
19031{
19032  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19033}
19034
19035
19036# func_stripname prefix suffix name
19037# strip PREFIX and SUFFIX off of NAME.
19038# PREFIX and SUFFIX must not contain globbing or regex special
19039# characters, hashes, percent signs, but SUFFIX may contain a leading
19040# dot (in which case that matches only a dot).
19041# func_strip_suffix prefix name
19042func_stripname ()
19043{
19044  case ${2} in
19045    .*) func_stripname_result=`$ECHO "X${3}" \
19046           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19047    *)  func_stripname_result=`$ECHO "X${3}" \
19048           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19049  esac
19050}
19051
19052# sed scripts:
19053my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19054my_sed_long_arg='1s/^-[^=]*=//'
19055
19056# func_opt_split
19057func_opt_split ()
19058{
19059  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19060  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19061}
19062
19063# func_lo2o object
19064func_lo2o ()
19065{
19066  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19067}
19068
19069# func_xform libobj-or-source
19070func_xform ()
19071{
19072  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19073}
19074
19075# func_arith arithmetic-term...
19076func_arith ()
19077{
19078  func_arith_result=`expr "$@"`
19079}
19080
19081# func_len string
19082# STRING may not start with a hyphen.
19083func_len ()
19084{
19085  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19086}
19087
19088_LT_EOF
19089esac
19090
19091case $lt_shell_append in
19092  yes)
19093    cat << \_LT_EOF >> "$cfgfile"
19094
19095# func_append var value
19096# Append VALUE to the end of shell variable VAR.
19097func_append ()
19098{
19099  eval "$1+=\$2"
19100}
19101_LT_EOF
19102    ;;
19103  *)
19104    cat << \_LT_EOF >> "$cfgfile"
19105
19106# func_append var value
19107# Append VALUE to the end of shell variable VAR.
19108func_append ()
19109{
19110  eval "$1=\$$1\$2"
19111}
19112
19113_LT_EOF
19114    ;;
19115  esac
19116
19117
19118  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19119    || (rm -f "$cfgfile"; exit 1)
19120
19121  mv -f "$cfgfile" "$ofile" ||
19122    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19123  chmod +x "$ofile"
19124
19125
19126    cat <<_LT_EOF >> "$ofile"
19127
19128# ### BEGIN LIBTOOL TAG CONFIG: CXX
19129
19130# The linker used to build libraries.
19131LD=$lt_LD_CXX
19132
19133# Commands used to build an old-style archive.
19134old_archive_cmds=$lt_old_archive_cmds_CXX
19135
19136# A language specific compiler.
19137CC=$lt_compiler_CXX
19138
19139# Is the compiler the GNU compiler?
19140with_gcc=$GCC_CXX
19141
19142# Compiler flag to turn off builtin functions.
19143no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19144
19145# How to pass a linker flag through the compiler.
19146wl=$lt_lt_prog_compiler_wl_CXX
19147
19148# Additional compiler flags for building library objects.
19149pic_flag=$lt_lt_prog_compiler_pic_CXX
19150
19151# Compiler flag to prevent dynamic linking.
19152link_static_flag=$lt_lt_prog_compiler_static_CXX
19153
19154# Does compiler simultaneously support -c and -o options?
19155compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19156
19157# Whether or not to add -lc for building shared libraries.
19158build_libtool_need_lc=$archive_cmds_need_lc_CXX
19159
19160# Whether or not to disallow shared libs when runtime libs are static.
19161allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19162
19163# Compiler flag to allow reflexive dlopens.
19164export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19165
19166# Compiler flag to generate shared objects directly from archives.
19167whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19168
19169# Whether the compiler copes with passing no objects directly.
19170compiler_needs_object=$lt_compiler_needs_object_CXX
19171
19172# Create an old-style archive from a shared archive.
19173old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19174
19175# Create a temporary old-style archive to link instead of a shared archive.
19176old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19177
19178# Commands used to build a shared archive.
19179archive_cmds=$lt_archive_cmds_CXX
19180archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19181
19182# Commands used to build a loadable module if different from building
19183# a shared archive.
19184module_cmds=$lt_module_cmds_CXX
19185module_expsym_cmds=$lt_module_expsym_cmds_CXX
19186
19187# Whether we are building with GNU ld or not.
19188with_gnu_ld=$lt_with_gnu_ld_CXX
19189
19190# Flag that allows shared libraries with undefined symbols to be built.
19191allow_undefined_flag=$lt_allow_undefined_flag_CXX
19192
19193# Flag that enforces no undefined symbols.
19194no_undefined_flag=$lt_no_undefined_flag_CXX
19195
19196# Flag to hardcode \$libdir into a binary during linking.
19197# This must work even if \$libdir does not exist
19198hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19199
19200# If ld is used when linking, flag to hardcode \$libdir into a binary
19201# during linking.  This must work even if \$libdir does not exist.
19202hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19203
19204# Whether we need a single "-rpath" flag with a separated argument.
19205hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19206
19207# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19208# DIR into the resulting binary.
19209hardcode_direct=$hardcode_direct_CXX
19210
19211# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19212# DIR into the resulting binary and the resulting library dependency is
19213# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19214# library is relocated.
19215hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19216
19217# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19218# into the resulting binary.
19219hardcode_minus_L=$hardcode_minus_L_CXX
19220
19221# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19222# into the resulting binary.
19223hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19224
19225# Set to "yes" if building a shared library automatically hardcodes DIR
19226# into the library and all subsequent libraries and executables linked
19227# against it.
19228hardcode_automatic=$hardcode_automatic_CXX
19229
19230# Set to yes if linker adds runtime paths of dependent libraries
19231# to runtime path list.
19232inherit_rpath=$inherit_rpath_CXX
19233
19234# Whether libtool must link a program against all its dependency libraries.
19235link_all_deplibs=$link_all_deplibs_CXX
19236
19237# Fix the shell variable \$srcfile for the compiler.
19238fix_srcfile_path=$lt_fix_srcfile_path_CXX
19239
19240# Set to "yes" if exported symbols are required.
19241always_export_symbols=$always_export_symbols_CXX
19242
19243# The commands to list exported symbols.
19244export_symbols_cmds=$lt_export_symbols_cmds_CXX
19245
19246# Symbols that should not be listed in the preloaded symbols.
19247exclude_expsyms=$lt_exclude_expsyms_CXX
19248
19249# Symbols that must always be exported.
19250include_expsyms=$lt_include_expsyms_CXX
19251
19252# Commands necessary for linking programs (against libraries) with templates.
19253prelink_cmds=$lt_prelink_cmds_CXX
19254
19255# Specify filename containing input files.
19256file_list_spec=$lt_file_list_spec_CXX
19257
19258# How to hardcode a shared library path into an executable.
19259hardcode_action=$hardcode_action_CXX
19260
19261# The directories searched by this compiler when creating a shared library.
19262compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19263
19264# Dependencies to place before and after the objects being linked to
19265# create a shared library.
19266predep_objects=$lt_predep_objects_CXX
19267postdep_objects=$lt_postdep_objects_CXX
19268predeps=$lt_predeps_CXX
19269postdeps=$lt_postdeps_CXX
19270
19271# The library search path used internally by the compiler when linking
19272# a shared library.
19273compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19274
19275# ### END LIBTOOL TAG CONFIG: CXX
19276_LT_EOF
19277
19278 ;;
19279
19280  esac
19281done # for ac_tag
19282
19283
19284as_fn_exit 0
19285_ACEOF
19286ac_clean_files=$ac_clean_files_save
19287
19288test $ac_write_fail = 0 ||
19289  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19290
19291
19292# configure is writing to config.log, and then calls config.status.
19293# config.status does its own redirection, appending to config.log.
19294# Unfortunately, on DOS this fails, as config.log is still kept open
19295# by configure, so config.status won't be able to write to it; its
19296# output is simply discarded.  So we exec the FD to /dev/null,
19297# effectively closing config.log, so it can be properly (re)opened and
19298# appended to by config.status.  When coming back to configure, we
19299# need to make the FD available again.
19300if test "$no_create" != yes; then
19301  ac_cs_success=:
19302  ac_config_status_args=
19303  test "$silent" = yes &&
19304    ac_config_status_args="$ac_config_status_args --quiet"
19305  exec 5>/dev/null
19306  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19307  exec 5>>config.log
19308  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19309  # would make configure fail if this is the last instruction.
19310  $ac_cs_success || as_fn_exit 1
19311fi
19312if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19313  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19314$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19315fi
19316
19317
19318if test ${enable_tools} = yes; then
19319    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building the deprecated ATF tools (atf-run and atf-report);" >&5
19320$as_echo "$as_me: WARNING: Building the deprecated ATF tools (atf-run and atf-report);" >&2;}
19321    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: please migrate to Kyua as soon as feasible." >&5
19322$as_echo "$as_me: WARNING: please migrate to Kyua as soon as feasible." >&2;}
19323fi
19324
19325