xref: /netbsd-src/external/gpl3/gdb.old/dist/gdb/configure (revision dcc4f12d8d65994207fd5f741e1a058e79538559)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    PATH=/empty FPATH=/empty; export PATH FPATH
206    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
593PACKAGE_URL=
594
595ac_unique_file="main.c"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632enable_option_checking=no
633ac_header_list=
634ac_subst_vars='LTLIBOBJS
635LIBOBJS
636GCORE_TRANSFORM_NAME
637GDB_TRANSFORM_NAME
638XSLTPROC
639NM_H
640GDB_NM_FILE
641LTLIBXXHASH
642LIBXXHASH
643HAVE_LIBXXHASH
644CTF_DEPS
645LIBCTF
646LTLIBBABELTRACE
647LIBBABELTRACE
648HAVE_LIBBABELTRACE
649LIBBACKTRACE_LIB
650LIBBACKTRACE_INC
651HAVE_NATIVE_GCORE_HOST
652NAT_GENERATED_FILES
653XM_CLIBS
654MH_CFLAGS
655LOADLIBES
656NAT_CDEPS
657NATDEPFILES
658NAT_FILE
659target_subdir
660CONFIG_UNINSTALL
661CONFIG_INSTALL
662CONFIG_CLEAN
663CONFIG_ALL
664CONFIG_SRCS
665CONFIG_DEPS
666CONFIG_OBS
667PROFILE_CFLAGS
668ENABLE_CFLAGS
669SIM_OBS
670SIM
671XMKMF
672GDBTK_SRC_DIR
673GDBTK_CFLAGS
674GDBTKLIBS
675X_LIBS
676X_LDFLAGS
677X_CFLAGS
678TK_XINCLUDES
679TK_DEPS
680TK_LIBRARY
681TK_INCLUDE
682TK_STUB_LIB_SPEC
683TK_STUB_LIB_FLAG
684TK_STUB_LIB_FILE
685TK_LIB_SPEC
686TK_LIB_FLAG
687TK_LIB_FILE
688TK_SRC_DIR
689TK_BIN_DIR
690TK_VERSION
691TCL_DEPS
692TCL_LIBRARY
693TCL_INCLUDE
694TCL_STUB_LIB_SPEC
695TCL_STUB_LIB_FLAG
696TCL_STUB_LIB_FILE
697TCL_LIB_SPEC
698TCL_LIB_FLAG
699TCL_LIB_FILE
700TCL_SRC_DIR
701TCL_BIN_DIR
702TCL_PATCH_LEVEL
703TCL_VERSION
704WIN32LDAPP
705WIN32LIBS
706GUI_CFLAGS_X
707LIBGUI
708LTLIBLZMA
709LIBLZMA
710HAVE_LIBLZMA
711SER_HARDWIRE
712WERROR_CFLAGS
713WARN_CFLAGS
714SYSTEM_GDBINIT_DIR
715SYSTEM_GDBINIT
716TARGET_SYSTEM_ROOT
717CONFIG_LDFLAGS
718RDYNAMIC
719LTLIBIPT
720LIBIPT
721HAVE_LIBIPT
722PTHREAD_CFLAGS
723PTHREAD_LIBS
724PTHREAD_CC
725ax_pthread_config
726ALLOCA
727SRCHIGH_CFLAGS
728SRCHIGH_LIBS
729HAVE_GUILE_FALSE
730HAVE_GUILE_TRUE
731GUILE_LIBS
732GUILE_CPPFLAGS
733GUILD_TARGET_FLAG
734GUILD
735pkg_config_prog_path
736HAVE_PYTHON_FALSE
737HAVE_PYTHON_TRUE
738PYTHON_LIBS
739PYTHON_CPPFLAGS
740PYTHON_CFLAGS
741python_prog_path
742LTLIBMPFR
743LIBMPFR
744HAVE_LIBMPFR
745LTLIBGMP
746LIBGMP
747HAVE_LIBGMP
748LTLIBEXPAT
749LIBEXPAT
750HAVE_LIBEXPAT
751JIT_READER_DIR
752TARGET_PTR
753READLINE_DOC_SOURCE_INCLUDES
754READLINE_TEXI_INCFLAG
755READLINE_CFLAGS
756READLINE_DEPS
757READLINE
758LTLIBICONV
759LIBICONV
760ZSTD_LIBS
761ZSTD_CFLAGS
762zlibinc
763zlibdir
764MIG
765WINDRES
766DLLTOOL
767YFLAGS
768YACC
769INSTALL_DATA
770INSTALL_SCRIPT
771INSTALL_PROGRAM
772REPORT_BUGS_TEXI
773REPORT_BUGS_TO
774PKGVERSION
775CODESIGN_CERT
776DEBUGINFOD_LIBS
777DEBUGINFOD_CFLAGS
778PKG_CONFIG_LIBDIR
779PKG_CONFIG_PATH
780PKG_CONFIG
781HAVE_NATIVE_GCORE_TARGET
782TARGET_OBS
783ENABLE_BFD_64_BIT_FALSE
784ENABLE_BFD_64_BIT_TRUE
785subdirs
786GDB_DATADIR
787DEBUGDIR
788MAKEINFO_EXTRA_FLAGS
789MAKEINFOFLAGS
790MAKEINFO
791PACKAGE
792CATOBJEXT
793GENCAT
794INSTOBJEXT
795DATADIRNAME
796CATALOGS
797POSUB
798GMSGFMT
799XGETTEXT
800INCINTL
801LIBINTL_DEP
802LIBINTL
803USE_NLS
804CCDEPMODE
805DEPDIR
806am__leading_dot
807CXX_DIALECT
808HAVE_CXX11
809CXXCPP
810OTOOL64
811OTOOL
812LIPO
813NMEDIT
814DSYMUTIL
815AWK
816RANLIB
817AR
818OBJDUMP
819LN_S
820NM
821ac_ct_DUMPBIN
822DUMPBIN
823LD
824FGREP
825SED
826LIBTOOL
827target_noncanonical
828INSTALL_STRIP_PROGRAM
829STRIP
830install_sh
831LARGEFILE_CPPFLAGS
832target_os
833target_vendor
834target_cpu
835target
836host_os
837host_vendor
838host_cpu
839host
840build_os
841build_vendor
842build_cpu
843build
844EGREP
845GREP
846CPP
847ac_ct_CXX
848CXXFLAGS
849CXX
850OBJEXT
851EXEEXT
852ac_ct_CC
853CPPFLAGS
854LDFLAGS
855CFLAGS
856CC
857MAINT
858MAINTAINER_MODE_FALSE
859MAINTAINER_MODE_TRUE
860target_alias
861host_alias
862build_alias
863LIBS
864ECHO_T
865ECHO_N
866ECHO_C
867DEFS
868mandir
869localedir
870libdir
871psdir
872pdfdir
873dvidir
874htmldir
875infodir
876docdir
877oldincludedir
878includedir
879localstatedir
880sharedstatedir
881sysconfdir
882datadir
883datarootdir
884libexecdir
885sbindir
886bindir
887program_transform_name
888prefix
889exec_prefix
890PACKAGE_URL
891PACKAGE_BUGREPORT
892PACKAGE_STRING
893PACKAGE_VERSION
894PACKAGE_TARNAME
895PACKAGE_NAME
896PATH_SEPARATOR
897SHELL'
898ac_subst_files='nat_makefile_frag'
899ac_user_opts='
900enable_option_checking
901enable_maintainer_mode
902enable_plugins
903enable_largefile
904enable_shared
905enable_static
906with_pic
907enable_fast_install
908with_gnu_ld
909enable_libtool_lock
910with_separate_debug_dir
911with_gdb_datadir
912with_relocated_sources
913with_auto_load_dir
914with_auto_load_safe_path
915enable_targets
916enable_64_bit_bfd
917enable_gdbmi
918enable_tui
919enable_gdbtk
920with_debuginfod
921with_libunwind_ia64
922with_curses
923enable_profiling
924enable_codesign
925with_pkgversion
926with_bugurl
927with_system_zlib
928with_zstd
929enable_rpath
930with_libiconv_prefix
931with_libiconv_type
932with_iconv_bin
933with_system_readline
934with_jit_reader_dir
935with_expat
936with_libexpat_prefix
937with_libexpat_type
938with_libgmp_prefix
939with_libgmp_type
940with_mpfr
941with_libmpfr_prefix
942with_libmpfr_type
943with_python
944with_python_libdir
945with_guile
946enable_source_highlight
947enable_threading
948with_intel_pt
949with_libipt_prefix
950with_libipt_type
951with_sysroot
952with_system_gdbinit
953with_system_gdbinit_dir
954enable_werror
955enable_build_warnings
956enable_gdb_build_warnings
957enable_ubsan
958with_lzma
959with_liblzma_prefix
960with_liblzma_type
961with_tcl
962with_tk
963with_x
964enable_sim
965enable_libbacktrace
966with_babeltrace
967with_libbabeltrace_prefix
968with_libbabeltrace_type
969with_xxhash
970enable_libctf
971with_libxxhash_prefix
972with_libxxhash_type
973enable_unit_tests
974'
975      ac_precious_vars='build_alias
976host_alias
977target_alias
978CC
979CFLAGS
980LDFLAGS
981LIBS
982CPPFLAGS
983CXX
984CXXFLAGS
985CCC
986CPP
987CXXCPP
988MAKEINFO
989MAKEINFOFLAGS
990PKG_CONFIG
991PKG_CONFIG_PATH
992PKG_CONFIG_LIBDIR
993DEBUGINFOD_CFLAGS
994DEBUGINFOD_LIBS
995YACC
996YFLAGS
997ZSTD_CFLAGS
998ZSTD_LIBS
999XMKMF'
1000ac_subdirs_all='testsuite
1001gdbtk'
1002
1003# Initialize some variables set by options.
1004ac_init_help=
1005ac_init_version=false
1006ac_unrecognized_opts=
1007ac_unrecognized_sep=
1008# The variables have the same names as the options, with
1009# dashes changed to underlines.
1010cache_file=/dev/null
1011exec_prefix=NONE
1012no_create=
1013no_recursion=
1014prefix=NONE
1015program_prefix=NONE
1016program_suffix=NONE
1017program_transform_name=s,x,x,
1018silent=
1019site=
1020srcdir=
1021verbose=
1022x_includes=NONE
1023x_libraries=NONE
1024
1025# Installation directory options.
1026# These are left unexpanded so users can "make install exec_prefix=/foo"
1027# and all the variables that are supposed to be based on exec_prefix
1028# by default will actually change.
1029# Use braces instead of parens because sh, perl, etc. also accept them.
1030# (The list follows the same order as the GNU Coding Standards.)
1031bindir='${exec_prefix}/bin'
1032sbindir='${exec_prefix}/sbin'
1033libexecdir='${exec_prefix}/libexec'
1034datarootdir='${prefix}/share'
1035datadir='${datarootdir}'
1036sysconfdir='${prefix}/etc'
1037sharedstatedir='${prefix}/com'
1038localstatedir='${prefix}/var'
1039includedir='${prefix}/include'
1040oldincludedir='/usr/include'
1041docdir='${datarootdir}/doc/${PACKAGE}'
1042infodir='${datarootdir}/info'
1043htmldir='${docdir}'
1044dvidir='${docdir}'
1045pdfdir='${docdir}'
1046psdir='${docdir}'
1047libdir='${exec_prefix}/lib'
1048localedir='${datarootdir}/locale'
1049mandir='${datarootdir}/man'
1050
1051ac_prev=
1052ac_dashdash=
1053for ac_option
1054do
1055  # If the previous option needs an argument, assign it.
1056  if test -n "$ac_prev"; then
1057    eval $ac_prev=\$ac_option
1058    ac_prev=
1059    continue
1060  fi
1061
1062  case $ac_option in
1063  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1064  *=)   ac_optarg= ;;
1065  *)    ac_optarg=yes ;;
1066  esac
1067
1068  # Accept the important Cygnus configure options, so we can diagnose typos.
1069
1070  case $ac_dashdash$ac_option in
1071  --)
1072    ac_dashdash=yes ;;
1073
1074  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1075    ac_prev=bindir ;;
1076  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1077    bindir=$ac_optarg ;;
1078
1079  -build | --build | --buil | --bui | --bu)
1080    ac_prev=build_alias ;;
1081  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1082    build_alias=$ac_optarg ;;
1083
1084  -cache-file | --cache-file | --cache-fil | --cache-fi \
1085  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1086    ac_prev=cache_file ;;
1087  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1088  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1089    cache_file=$ac_optarg ;;
1090
1091  --config-cache | -C)
1092    cache_file=config.cache ;;
1093
1094  -datadir | --datadir | --datadi | --datad)
1095    ac_prev=datadir ;;
1096  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1097    datadir=$ac_optarg ;;
1098
1099  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1100  | --dataroo | --dataro | --datar)
1101    ac_prev=datarootdir ;;
1102  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1103  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1104    datarootdir=$ac_optarg ;;
1105
1106  -disable-* | --disable-*)
1107    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1108    # Reject names that are not valid shell variable names.
1109    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110      as_fn_error $? "invalid feature name: $ac_useropt"
1111    ac_useropt_orig=$ac_useropt
1112    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113    case $ac_user_opts in
1114      *"
1115"enable_$ac_useropt"
1116"*) ;;
1117      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1118	 ac_unrecognized_sep=', ';;
1119    esac
1120    eval enable_$ac_useropt=no ;;
1121
1122  -docdir | --docdir | --docdi | --doc | --do)
1123    ac_prev=docdir ;;
1124  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1125    docdir=$ac_optarg ;;
1126
1127  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1128    ac_prev=dvidir ;;
1129  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1130    dvidir=$ac_optarg ;;
1131
1132  -enable-* | --enable-*)
1133    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1134    # Reject names that are not valid shell variable names.
1135    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136      as_fn_error $? "invalid feature name: $ac_useropt"
1137    ac_useropt_orig=$ac_useropt
1138    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139    case $ac_user_opts in
1140      *"
1141"enable_$ac_useropt"
1142"*) ;;
1143      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1144	 ac_unrecognized_sep=', ';;
1145    esac
1146    eval enable_$ac_useropt=\$ac_optarg ;;
1147
1148  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1149  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1150  | --exec | --exe | --ex)
1151    ac_prev=exec_prefix ;;
1152  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1153  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1154  | --exec=* | --exe=* | --ex=*)
1155    exec_prefix=$ac_optarg ;;
1156
1157  -gas | --gas | --ga | --g)
1158    # Obsolete; use --with-gas.
1159    with_gas=yes ;;
1160
1161  -help | --help | --hel | --he | -h)
1162    ac_init_help=long ;;
1163  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1164    ac_init_help=recursive ;;
1165  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1166    ac_init_help=short ;;
1167
1168  -host | --host | --hos | --ho)
1169    ac_prev=host_alias ;;
1170  -host=* | --host=* | --hos=* | --ho=*)
1171    host_alias=$ac_optarg ;;
1172
1173  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1174    ac_prev=htmldir ;;
1175  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1176  | --ht=*)
1177    htmldir=$ac_optarg ;;
1178
1179  -includedir | --includedir | --includedi | --included | --include \
1180  | --includ | --inclu | --incl | --inc)
1181    ac_prev=includedir ;;
1182  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1183  | --includ=* | --inclu=* | --incl=* | --inc=*)
1184    includedir=$ac_optarg ;;
1185
1186  -infodir | --infodir | --infodi | --infod | --info | --inf)
1187    ac_prev=infodir ;;
1188  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1189    infodir=$ac_optarg ;;
1190
1191  -libdir | --libdir | --libdi | --libd)
1192    ac_prev=libdir ;;
1193  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1194    libdir=$ac_optarg ;;
1195
1196  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1197  | --libexe | --libex | --libe)
1198    ac_prev=libexecdir ;;
1199  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1200  | --libexe=* | --libex=* | --libe=*)
1201    libexecdir=$ac_optarg ;;
1202
1203  -localedir | --localedir | --localedi | --localed | --locale)
1204    ac_prev=localedir ;;
1205  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1206    localedir=$ac_optarg ;;
1207
1208  -localstatedir | --localstatedir | --localstatedi | --localstated \
1209  | --localstate | --localstat | --localsta | --localst | --locals)
1210    ac_prev=localstatedir ;;
1211  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1212  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1213    localstatedir=$ac_optarg ;;
1214
1215  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1216    ac_prev=mandir ;;
1217  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1218    mandir=$ac_optarg ;;
1219
1220  -nfp | --nfp | --nf)
1221    # Obsolete; use --without-fp.
1222    with_fp=no ;;
1223
1224  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1225  | --no-cr | --no-c | -n)
1226    no_create=yes ;;
1227
1228  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1229  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1230    no_recursion=yes ;;
1231
1232  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1233  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1234  | --oldin | --oldi | --old | --ol | --o)
1235    ac_prev=oldincludedir ;;
1236  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1237  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1238  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1239    oldincludedir=$ac_optarg ;;
1240
1241  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1242    ac_prev=prefix ;;
1243  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1244    prefix=$ac_optarg ;;
1245
1246  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1247  | --program-pre | --program-pr | --program-p)
1248    ac_prev=program_prefix ;;
1249  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1250  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1251    program_prefix=$ac_optarg ;;
1252
1253  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1254  | --program-suf | --program-su | --program-s)
1255    ac_prev=program_suffix ;;
1256  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1257  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1258    program_suffix=$ac_optarg ;;
1259
1260  -program-transform-name | --program-transform-name \
1261  | --program-transform-nam | --program-transform-na \
1262  | --program-transform-n | --program-transform- \
1263  | --program-transform | --program-transfor \
1264  | --program-transfo | --program-transf \
1265  | --program-trans | --program-tran \
1266  | --progr-tra | --program-tr | --program-t)
1267    ac_prev=program_transform_name ;;
1268  -program-transform-name=* | --program-transform-name=* \
1269  | --program-transform-nam=* | --program-transform-na=* \
1270  | --program-transform-n=* | --program-transform-=* \
1271  | --program-transform=* | --program-transfor=* \
1272  | --program-transfo=* | --program-transf=* \
1273  | --program-trans=* | --program-tran=* \
1274  | --progr-tra=* | --program-tr=* | --program-t=*)
1275    program_transform_name=$ac_optarg ;;
1276
1277  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1278    ac_prev=pdfdir ;;
1279  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1280    pdfdir=$ac_optarg ;;
1281
1282  -psdir | --psdir | --psdi | --psd | --ps)
1283    ac_prev=psdir ;;
1284  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1285    psdir=$ac_optarg ;;
1286
1287  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1288  | -silent | --silent | --silen | --sile | --sil)
1289    silent=yes ;;
1290
1291  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1292    ac_prev=sbindir ;;
1293  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1294  | --sbi=* | --sb=*)
1295    sbindir=$ac_optarg ;;
1296
1297  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1298  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1299  | --sharedst | --shareds | --shared | --share | --shar \
1300  | --sha | --sh)
1301    ac_prev=sharedstatedir ;;
1302  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1303  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1304  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1305  | --sha=* | --sh=*)
1306    sharedstatedir=$ac_optarg ;;
1307
1308  -site | --site | --sit)
1309    ac_prev=site ;;
1310  -site=* | --site=* | --sit=*)
1311    site=$ac_optarg ;;
1312
1313  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1314    ac_prev=srcdir ;;
1315  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1316    srcdir=$ac_optarg ;;
1317
1318  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1319  | --syscon | --sysco | --sysc | --sys | --sy)
1320    ac_prev=sysconfdir ;;
1321  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1322  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1323    sysconfdir=$ac_optarg ;;
1324
1325  -target | --target | --targe | --targ | --tar | --ta | --t)
1326    ac_prev=target_alias ;;
1327  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1328    target_alias=$ac_optarg ;;
1329
1330  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1331    verbose=yes ;;
1332
1333  -version | --version | --versio | --versi | --vers | -V)
1334    ac_init_version=: ;;
1335
1336  -with-* | --with-*)
1337    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1338    # Reject names that are not valid shell variable names.
1339    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1340      as_fn_error $? "invalid package name: $ac_useropt"
1341    ac_useropt_orig=$ac_useropt
1342    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1343    case $ac_user_opts in
1344      *"
1345"with_$ac_useropt"
1346"*) ;;
1347      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1348	 ac_unrecognized_sep=', ';;
1349    esac
1350    eval with_$ac_useropt=\$ac_optarg ;;
1351
1352  -without-* | --without-*)
1353    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1354    # Reject names that are not valid shell variable names.
1355    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1356      as_fn_error $? "invalid package name: $ac_useropt"
1357    ac_useropt_orig=$ac_useropt
1358    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1359    case $ac_user_opts in
1360      *"
1361"with_$ac_useropt"
1362"*) ;;
1363      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1364	 ac_unrecognized_sep=', ';;
1365    esac
1366    eval with_$ac_useropt=no ;;
1367
1368  --x)
1369    # Obsolete; use --with-x.
1370    with_x=yes ;;
1371
1372  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1373  | --x-incl | --x-inc | --x-in | --x-i)
1374    ac_prev=x_includes ;;
1375  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1376  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1377    x_includes=$ac_optarg ;;
1378
1379  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1380  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1381    ac_prev=x_libraries ;;
1382  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1383  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1384    x_libraries=$ac_optarg ;;
1385
1386  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1387Try \`$0 --help' for more information"
1388    ;;
1389
1390  *=*)
1391    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1392    # Reject names that are not valid shell variable names.
1393    case $ac_envvar in #(
1394      '' | [0-9]* | *[!_$as_cr_alnum]* )
1395      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1396    esac
1397    eval $ac_envvar=\$ac_optarg
1398    export $ac_envvar ;;
1399
1400  *)
1401    # FIXME: should be removed in autoconf 3.0.
1402    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1403    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1404      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1405    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1406    ;;
1407
1408  esac
1409done
1410
1411if test -n "$ac_prev"; then
1412  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1413  as_fn_error $? "missing argument to $ac_option"
1414fi
1415
1416if test -n "$ac_unrecognized_opts"; then
1417  case $enable_option_checking in
1418    no) ;;
1419    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1420    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1421  esac
1422fi
1423
1424# Check all directory arguments for consistency.
1425for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1426		datadir sysconfdir sharedstatedir localstatedir includedir \
1427		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1428		libdir localedir mandir
1429do
1430  eval ac_val=\$$ac_var
1431  # Remove trailing slashes.
1432  case $ac_val in
1433    */ )
1434      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1435      eval $ac_var=\$ac_val;;
1436  esac
1437  # Be sure to have absolute directory names.
1438  case $ac_val in
1439    [\\/$]* | ?:[\\/]* )  continue;;
1440    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1441  esac
1442  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1443done
1444
1445# There might be people who depend on the old broken behavior: `$host'
1446# used to hold the argument of --host etc.
1447# FIXME: To remove some day.
1448build=$build_alias
1449host=$host_alias
1450target=$target_alias
1451
1452# FIXME: To remove some day.
1453if test "x$host_alias" != x; then
1454  if test "x$build_alias" = x; then
1455    cross_compiling=maybe
1456  elif test "x$build_alias" != "x$host_alias"; then
1457    cross_compiling=yes
1458  fi
1459fi
1460
1461ac_tool_prefix=
1462test -n "$host_alias" && ac_tool_prefix=$host_alias-
1463
1464test "$silent" = yes && exec 6>/dev/null
1465
1466
1467ac_pwd=`pwd` && test -n "$ac_pwd" &&
1468ac_ls_di=`ls -di .` &&
1469ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1470  as_fn_error $? "working directory cannot be determined"
1471test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1472  as_fn_error $? "pwd does not report name of working directory"
1473
1474
1475# Find the source files, if location was not specified.
1476if test -z "$srcdir"; then
1477  ac_srcdir_defaulted=yes
1478  # Try the directory containing this script, then the parent directory.
1479  ac_confdir=`$as_dirname -- "$as_myself" ||
1480$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1481	 X"$as_myself" : 'X\(//\)[^/]' \| \
1482	 X"$as_myself" : 'X\(//\)$' \| \
1483	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1484$as_echo X"$as_myself" |
1485    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1486	    s//\1/
1487	    q
1488	  }
1489	  /^X\(\/\/\)[^/].*/{
1490	    s//\1/
1491	    q
1492	  }
1493	  /^X\(\/\/\)$/{
1494	    s//\1/
1495	    q
1496	  }
1497	  /^X\(\/\).*/{
1498	    s//\1/
1499	    q
1500	  }
1501	  s/.*/./; q'`
1502  srcdir=$ac_confdir
1503  if test ! -r "$srcdir/$ac_unique_file"; then
1504    srcdir=..
1505  fi
1506else
1507  ac_srcdir_defaulted=no
1508fi
1509if test ! -r "$srcdir/$ac_unique_file"; then
1510  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1511  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1512fi
1513ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1514ac_abs_confdir=`(
1515	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1516	pwd)`
1517# When building in place, set srcdir=.
1518if test "$ac_abs_confdir" = "$ac_pwd"; then
1519  srcdir=.
1520fi
1521# Remove unnecessary trailing slashes from srcdir.
1522# Double slashes in file names in object file debugging info
1523# mess up M-x gdb in Emacs.
1524case $srcdir in
1525*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1526esac
1527for ac_var in $ac_precious_vars; do
1528  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1529  eval ac_env_${ac_var}_value=\$${ac_var}
1530  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1531  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1532done
1533
1534#
1535# Report the --help message.
1536#
1537if test "$ac_init_help" = "long"; then
1538  # Omit some internal or obsolete options to make the list less imposing.
1539  # This message is too long to be a string in the A/UX 3.1 sh.
1540  cat <<_ACEOF
1541\`configure' configures this package to adapt to many kinds of systems.
1542
1543Usage: $0 [OPTION]... [VAR=VALUE]...
1544
1545To assign environment variables (e.g., CC, CFLAGS...), specify them as
1546VAR=VALUE.  See below for descriptions of some of the useful variables.
1547
1548Defaults for the options are specified in brackets.
1549
1550Configuration:
1551  -h, --help              display this help and exit
1552      --help=short        display options specific to this package
1553      --help=recursive    display the short help of all the included packages
1554  -V, --version           display version information and exit
1555  -q, --quiet, --silent   do not print \`checking ...' messages
1556      --cache-file=FILE   cache test results in FILE [disabled]
1557  -C, --config-cache      alias for \`--cache-file=config.cache'
1558  -n, --no-create         do not create output files
1559      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1560
1561Installation directories:
1562  --prefix=PREFIX         install architecture-independent files in PREFIX
1563                          [$ac_default_prefix]
1564  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1565                          [PREFIX]
1566
1567By default, \`make install' will install all the files in
1568\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1569an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1570for instance \`--prefix=\$HOME'.
1571
1572For better control, use the options below.
1573
1574Fine tuning of the installation directories:
1575  --bindir=DIR            user executables [EPREFIX/bin]
1576  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1577  --libexecdir=DIR        program executables [EPREFIX/libexec]
1578  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1579  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1580  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1581  --libdir=DIR            object code libraries [EPREFIX/lib]
1582  --includedir=DIR        C header files [PREFIX/include]
1583  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1584  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1585  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1586  --infodir=DIR           info documentation [DATAROOTDIR/info]
1587  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1588  --mandir=DIR            man documentation [DATAROOTDIR/man]
1589  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1590  --htmldir=DIR           html documentation [DOCDIR]
1591  --dvidir=DIR            dvi documentation [DOCDIR]
1592  --pdfdir=DIR            pdf documentation [DOCDIR]
1593  --psdir=DIR             ps documentation [DOCDIR]
1594_ACEOF
1595
1596  cat <<\_ACEOF
1597
1598Program names:
1599  --program-prefix=PREFIX            prepend PREFIX to installed program names
1600  --program-suffix=SUFFIX            append SUFFIX to installed program names
1601  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1602
1603X features:
1604  --x-includes=DIR    X include files are in DIR
1605  --x-libraries=DIR   X library files are in DIR
1606
1607System types:
1608  --build=BUILD     configure for building on BUILD [guessed]
1609  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1610  --target=TARGET   configure for building compilers for TARGET [HOST]
1611_ACEOF
1612fi
1613
1614if test -n "$ac_init_help"; then
1615
1616  cat <<\_ACEOF
1617
1618Optional Features:
1619  --disable-option-checking  ignore unrecognized --enable/--with options
1620  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1621  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1622  --enable-maintainer-mode
1623                          enable make rules and dependencies not useful (and
1624                          sometimes confusing) to the casual installer
1625  --enable-plugins        Enable support for plugins
1626  --disable-largefile     omit support for large files
1627  --enable-shared[=PKGS]  build shared libraries [default=yes]
1628  --enable-static[=PKGS]  build static libraries [default=yes]
1629  --enable-fast-install[=PKGS]
1630                          optimize for fast installation [default=yes]
1631  --disable-libtool-lock  avoid locking (might break parallel builds)
1632  --enable-targets=TARGETS
1633                          alternative target configurations
1634  --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1635  --disable-gdbmi         disable machine-interface (MI)
1636  --enable-tui            enable full-screen terminal user interface (TUI)
1637  --enable-gdbtk          enable gdbtk graphical user interface (GUI)
1638  --enable-profiling      enable profiling of GDB
1639  --enable-codesign=CERT  sign gdb with 'codesign -s CERT'
1640  --disable-rpath         do not hardcode runtime library paths
1641  --enable-source-highlight
1642                          enable source-highlight for source listings
1643  --enable-threading      include support for parallel processing of data
1644                          (yes/no)
1645  --enable-werror         treat compile warnings as errors
1646  --enable-build-warnings enable build-time compiler warnings if gcc is used
1647  --enable-gdb-build-warnings
1648                          enable GDB specific build-time compiler warnings if
1649                          gcc is used
1650  --enable-ubsan          enable undefined behavior sanitizer (auto/yes/no)
1651  --enable-sim            link gdb with simulator
1652  --enable-libbacktrace   use libbacktrace to write a backtrace after a fatal
1653                          signal.
1654  --enable-libctf         Handle .ctf type-info sections [default=yes]
1655  --enable-unit-tests     Enable the inclusion of unit tests when compiling
1656                          GDB
1657
1658Optional Packages:
1659  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1660  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1661  --with-pic              try to use only PIC/non-PIC objects [default=use
1662                          both]
1663  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1664  --with-separate-debug-dir=PATH
1665                          look for global separate debug info in this path
1666                          [LIBDIR/debug]
1667  --with-gdb-datadir=PATH look for global separate data files in this path
1668                          [DATADIR/gdb]
1669  --with-relocated-sources=PATH
1670                          automatically relocate this path for source files
1671  --with-auto-load-dir=PATH
1672                          directories from which to load auto-loaded scripts
1673                          [$debugdir:$datadir/auto-load]
1674  --with-auto-load-safe-path=PATH
1675                          directories safe to hold auto-loaded files
1676                          [--with-auto-load-dir]
1677  --without-auto-load-safe-path
1678                          do not restrict auto-loaded files locations
1679  --with-debuginfod       Enable debuginfo lookups with debuginfod
1680                          (auto/yes/no)
1681  --with-libunwind-ia64   use libunwind frame unwinding for ia64 targets
1682  --with-curses           use the curses library instead of the termcap
1683                          library
1684  --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
1685  --with-bugurl=URL       Direct users to URL to report a bug
1686  --with-system-zlib      use installed libz
1687  --with-zstd             support zstd compressed debug sections
1688                          (default=auto)
1689  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1690  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1691  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1692  --with-libiconv-type=TYPE     type of library to search for (auto/static/shared)
1693  --with-iconv-bin=PATH   specify where to find the iconv program
1694  --with-system-readline  use installed readline library
1695  --with-jit-reader-dir=PATH
1696                          directory to load the JIT readers from
1697  --with-expat            include expat support (auto/yes/no)
1698  --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
1699  --without-libexpat-prefix     don't search for libexpat in includedir and libdir
1700  --with-libexpat-type=TYPE     type of library to search for (auto/static/shared)
1701  --with-libgmp-prefix[=DIR]  search for libgmp in DIR/include and DIR/lib
1702  --without-libgmp-prefix     don't search for libgmp in includedir and libdir
1703  --with-libgmp-type=TYPE     type of library to search for (auto/static/shared)
1704  --with-mpfr             include MPFR support (auto/yes/no)
1705  --with-libmpfr-prefix[=DIR]  search for libmpfr in DIR/include and DIR/lib
1706  --without-libmpfr-prefix     don't search for libmpfr in includedir and libdir
1707  --with-libmpfr-type=TYPE     type of library to search for (auto/static/shared)
1708  --with-python[=PYTHON]  include python support
1709                          (auto/yes/no/<python-program>)
1710  --with-python-libdir[=DIR]
1711                          search for python's libraries in DIR
1712  --with-guile[=GUILE]    include guile support
1713                          (auto/yes/no/<guile-version>/<pkg-config-program>)
1714  --with-intel-pt         include Intel Processor Trace support (auto/yes/no)
1715  --with-libipt-prefix[=DIR]  search for libipt in DIR/include and DIR/lib
1716  --without-libipt-prefix     don't search for libipt in includedir and libdir
1717  --with-libipt-type=TYPE     type of library to search for (auto/static/shared)
1718  --with-sysroot[=DIR]    search for usr/lib et al within DIR
1719  --with-system-gdbinit=PATH
1720                          automatically load a system-wide gdbinit file
1721  --with-system-gdbinit-dir=PATH
1722                          automatically load system-wide gdbinit files from
1723                          this directory
1724  --with-lzma             support lzma compression (auto/yes/no)
1725  --with-liblzma-prefix[=DIR]  search for liblzma in DIR/include and DIR/lib
1726  --without-liblzma-prefix     don't search for liblzma in includedir and libdir
1727  --with-liblzma-type=TYPE     type of library to search for (auto/static/shared)
1728  --with-tcl              directory containing tcl configuration (tclConfig.sh)
1729  --with-tk               directory containing tk configuration (tkConfig.sh)
1730  --with-x                use the X Window System
1731  --with-babeltrace       include babeltrace support (auto/yes/no)
1732  --with-libbabeltrace-prefix[=DIR]  search for libbabeltrace in DIR/include and DIR/lib
1733  --without-libbabeltrace-prefix     don't search for libbabeltrace in includedir and libdir
1734  --with-libbabeltrace-type=TYPE     type of library to search for (auto/static/shared)
1735  --with-xxhash           use libxxhash for hashing (faster) (auto/yes/no)
1736  --with-libxxhash-prefix[=DIR]  search for libxxhash in DIR/include and DIR/lib
1737  --without-libxxhash-prefix     don't search for libxxhash in includedir and libdir
1738  --with-libxxhash-type=TYPE     type of library to search for (auto/static/shared)
1739
1740Some influential environment variables:
1741  CC          C compiler command
1742  CFLAGS      C compiler flags
1743  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1744              nonstandard directory <lib dir>
1745  LIBS        libraries to pass to the linker, e.g. -l<library>
1746  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1747              you have headers in a nonstandard directory <include dir>
1748  CXX         C++ compiler command
1749  CXXFLAGS    C++ compiler flags
1750  CPP         C preprocessor
1751  CXXCPP      C++ preprocessor
1752  MAKEINFO    Parent configure detects if it is of sufficient version.
1753  MAKEINFOFLAGS
1754              Parameters for MAKEINFO.
1755  PKG_CONFIG  path to pkg-config utility
1756  PKG_CONFIG_PATH
1757              directories to add to pkg-config's search path
1758  PKG_CONFIG_LIBDIR
1759              path overriding pkg-config's built-in search path
1760  DEBUGINFOD_CFLAGS
1761              C compiler flags for DEBUGINFOD, overriding pkg-config
1762  DEBUGINFOD_LIBS
1763              linker flags for DEBUGINFOD, overriding pkg-config
1764  YACC        The `Yet Another Compiler Compiler' implementation to use.
1765              Defaults to the first program found out of: `bison -y', `byacc',
1766              `yacc'.
1767  YFLAGS      The list of arguments that will be passed by default to $YACC.
1768              This script will default YFLAGS to the empty string to avoid a
1769              default value of `-d' given by some make applications.
1770  ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1771  ZSTD_LIBS   linker flags for ZSTD, overriding pkg-config
1772  XMKMF       Path to xmkmf, Makefile generator for X Window System
1773
1774Use these variables to override the choices made by `configure' or to help
1775it to find libraries and programs with nonstandard names/locations.
1776
1777Report bugs to the package provider.
1778_ACEOF
1779ac_status=$?
1780fi
1781
1782if test "$ac_init_help" = "recursive"; then
1783  # If there are subdirs, report their specific --help.
1784  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1785    test -d "$ac_dir" ||
1786      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1787      continue
1788    ac_builddir=.
1789
1790case "$ac_dir" in
1791.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1792*)
1793  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1794  # A ".." for each directory in $ac_dir_suffix.
1795  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1796  case $ac_top_builddir_sub in
1797  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1798  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1799  esac ;;
1800esac
1801ac_abs_top_builddir=$ac_pwd
1802ac_abs_builddir=$ac_pwd$ac_dir_suffix
1803# for backward compatibility:
1804ac_top_builddir=$ac_top_build_prefix
1805
1806case $srcdir in
1807  .)  # We are building in place.
1808    ac_srcdir=.
1809    ac_top_srcdir=$ac_top_builddir_sub
1810    ac_abs_top_srcdir=$ac_pwd ;;
1811  [\\/]* | ?:[\\/]* )  # Absolute name.
1812    ac_srcdir=$srcdir$ac_dir_suffix;
1813    ac_top_srcdir=$srcdir
1814    ac_abs_top_srcdir=$srcdir ;;
1815  *) # Relative name.
1816    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1817    ac_top_srcdir=$ac_top_build_prefix$srcdir
1818    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1819esac
1820ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1821
1822    cd "$ac_dir" || { ac_status=$?; continue; }
1823    # Check for guested configure.
1824    if test -f "$ac_srcdir/configure.gnu"; then
1825      echo &&
1826      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1827    elif test -f "$ac_srcdir/configure"; then
1828      echo &&
1829      $SHELL "$ac_srcdir/configure" --help=recursive
1830    else
1831      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1832    fi || ac_status=$?
1833    cd "$ac_pwd" || { ac_status=$?; break; }
1834  done
1835fi
1836
1837test -n "$ac_init_help" && exit $ac_status
1838if $ac_init_version; then
1839  cat <<\_ACEOF
1840configure
1841generated by GNU Autoconf 2.69
1842
1843Copyright (C) 2012 Free Software Foundation, Inc.
1844This configure script is free software; the Free Software Foundation
1845gives unlimited permission to copy, distribute and modify it.
1846_ACEOF
1847  exit
1848fi
1849
1850## ------------------------ ##
1851## Autoconf initialization. ##
1852## ------------------------ ##
1853
1854# ac_fn_c_try_compile LINENO
1855# --------------------------
1856# Try to compile conftest.$ac_ext, and return whether this succeeded.
1857ac_fn_c_try_compile ()
1858{
1859  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860  rm -f conftest.$ac_objext
1861  if { { ac_try="$ac_compile"
1862case "(($ac_try" in
1863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864  *) ac_try_echo=$ac_try;;
1865esac
1866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867$as_echo "$ac_try_echo"; } >&5
1868  (eval "$ac_compile") 2>conftest.err
1869  ac_status=$?
1870  if test -s conftest.err; then
1871    grep -v '^ *+' conftest.err >conftest.er1
1872    cat conftest.er1 >&5
1873    mv -f conftest.er1 conftest.err
1874  fi
1875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876  test $ac_status = 0; } && {
1877	 test -z "$ac_c_werror_flag" ||
1878	 test ! -s conftest.err
1879       } && test -s conftest.$ac_objext; then :
1880  ac_retval=0
1881else
1882  $as_echo "$as_me: failed program was:" >&5
1883sed 's/^/| /' conftest.$ac_ext >&5
1884
1885	ac_retval=1
1886fi
1887  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888  as_fn_set_status $ac_retval
1889
1890} # ac_fn_c_try_compile
1891
1892# ac_fn_cxx_try_compile LINENO
1893# ----------------------------
1894# Try to compile conftest.$ac_ext, and return whether this succeeded.
1895ac_fn_cxx_try_compile ()
1896{
1897  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898  rm -f conftest.$ac_objext
1899  if { { ac_try="$ac_compile"
1900case "(($ac_try" in
1901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902  *) ac_try_echo=$ac_try;;
1903esac
1904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905$as_echo "$ac_try_echo"; } >&5
1906  (eval "$ac_compile") 2>conftest.err
1907  ac_status=$?
1908  if test -s conftest.err; then
1909    grep -v '^ *+' conftest.err >conftest.er1
1910    cat conftest.er1 >&5
1911    mv -f conftest.er1 conftest.err
1912  fi
1913  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914  test $ac_status = 0; } && {
1915	 test -z "$ac_cxx_werror_flag" ||
1916	 test ! -s conftest.err
1917       } && test -s conftest.$ac_objext; then :
1918  ac_retval=0
1919else
1920  $as_echo "$as_me: failed program was:" >&5
1921sed 's/^/| /' conftest.$ac_ext >&5
1922
1923	ac_retval=1
1924fi
1925  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926  as_fn_set_status $ac_retval
1927
1928} # ac_fn_cxx_try_compile
1929
1930# ac_fn_c_try_cpp LINENO
1931# ----------------------
1932# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1933ac_fn_c_try_cpp ()
1934{
1935  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936  if { { ac_try="$ac_cpp conftest.$ac_ext"
1937case "(($ac_try" in
1938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939  *) ac_try_echo=$ac_try;;
1940esac
1941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942$as_echo "$ac_try_echo"; } >&5
1943  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1944  ac_status=$?
1945  if test -s conftest.err; then
1946    grep -v '^ *+' conftest.err >conftest.er1
1947    cat conftest.er1 >&5
1948    mv -f conftest.er1 conftest.err
1949  fi
1950  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951  test $ac_status = 0; } > conftest.i && {
1952	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1953	 test ! -s conftest.err
1954       }; then :
1955  ac_retval=0
1956else
1957  $as_echo "$as_me: failed program was:" >&5
1958sed 's/^/| /' conftest.$ac_ext >&5
1959
1960    ac_retval=1
1961fi
1962  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963  as_fn_set_status $ac_retval
1964
1965} # ac_fn_c_try_cpp
1966
1967# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1968# -------------------------------------------------------
1969# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1970# the include files in INCLUDES and setting the cache variable VAR
1971# accordingly.
1972ac_fn_c_check_header_mongrel ()
1973{
1974  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975  if eval \${$3+:} false; then :
1976  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977$as_echo_n "checking for $2... " >&6; }
1978if eval \${$3+:} false; then :
1979  $as_echo_n "(cached) " >&6
1980fi
1981eval ac_res=\$$3
1982	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983$as_echo "$ac_res" >&6; }
1984else
1985  # Is the header compilable?
1986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1987$as_echo_n "checking $2 usability... " >&6; }
1988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989/* end confdefs.h.  */
1990$4
1991#include <$2>
1992_ACEOF
1993if ac_fn_c_try_compile "$LINENO"; then :
1994  ac_header_compiler=yes
1995else
1996  ac_header_compiler=no
1997fi
1998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2000$as_echo "$ac_header_compiler" >&6; }
2001
2002# Is the header present?
2003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2004$as_echo_n "checking $2 presence... " >&6; }
2005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006/* end confdefs.h.  */
2007#include <$2>
2008_ACEOF
2009if ac_fn_c_try_cpp "$LINENO"; then :
2010  ac_header_preproc=yes
2011else
2012  ac_header_preproc=no
2013fi
2014rm -f conftest.err conftest.i conftest.$ac_ext
2015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2016$as_echo "$ac_header_preproc" >&6; }
2017
2018# So?  What about this header?
2019case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2020  yes:no: )
2021    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2022$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2023    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2024$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2025    ;;
2026  no:yes:* )
2027    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2028$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2029    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2030$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2031    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2032$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2033    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2034$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2035    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2036$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2037    ;;
2038esac
2039  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040$as_echo_n "checking for $2... " >&6; }
2041if eval \${$3+:} false; then :
2042  $as_echo_n "(cached) " >&6
2043else
2044  eval "$3=\$ac_header_compiler"
2045fi
2046eval ac_res=\$$3
2047	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048$as_echo "$ac_res" >&6; }
2049fi
2050  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051
2052} # ac_fn_c_check_header_mongrel
2053
2054# ac_fn_c_try_run LINENO
2055# ----------------------
2056# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2057# that executables *can* be run.
2058ac_fn_c_try_run ()
2059{
2060  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061  if { { ac_try="$ac_link"
2062case "(($ac_try" in
2063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064  *) ac_try_echo=$ac_try;;
2065esac
2066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067$as_echo "$ac_try_echo"; } >&5
2068  (eval "$ac_link") 2>&5
2069  ac_status=$?
2070  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2072  { { case "(($ac_try" in
2073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2074  *) ac_try_echo=$ac_try;;
2075esac
2076eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2077$as_echo "$ac_try_echo"; } >&5
2078  (eval "$ac_try") 2>&5
2079  ac_status=$?
2080  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081  test $ac_status = 0; }; }; then :
2082  ac_retval=0
2083else
2084  $as_echo "$as_me: program exited with status $ac_status" >&5
2085       $as_echo "$as_me: failed program was:" >&5
2086sed 's/^/| /' conftest.$ac_ext >&5
2087
2088       ac_retval=$ac_status
2089fi
2090  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2091  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092  as_fn_set_status $ac_retval
2093
2094} # ac_fn_c_try_run
2095
2096# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2097# -------------------------------------------------------
2098# Tests whether HEADER exists and can be compiled using the include files in
2099# INCLUDES, setting the cache variable VAR accordingly.
2100ac_fn_c_check_header_compile ()
2101{
2102  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2104$as_echo_n "checking for $2... " >&6; }
2105if eval \${$3+:} false; then :
2106  $as_echo_n "(cached) " >&6
2107else
2108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109/* end confdefs.h.  */
2110$4
2111#include <$2>
2112_ACEOF
2113if ac_fn_c_try_compile "$LINENO"; then :
2114  eval "$3=yes"
2115else
2116  eval "$3=no"
2117fi
2118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119fi
2120eval ac_res=\$$3
2121	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122$as_echo "$ac_res" >&6; }
2123  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2124
2125} # ac_fn_c_check_header_compile
2126
2127# ac_fn_c_try_link LINENO
2128# -----------------------
2129# Try to link conftest.$ac_ext, and return whether this succeeded.
2130ac_fn_c_try_link ()
2131{
2132  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133  rm -f conftest.$ac_objext conftest$ac_exeext
2134  if { { ac_try="$ac_link"
2135case "(($ac_try" in
2136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137  *) ac_try_echo=$ac_try;;
2138esac
2139eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2140$as_echo "$ac_try_echo"; } >&5
2141  (eval "$ac_link") 2>conftest.err
2142  ac_status=$?
2143  if test -s conftest.err; then
2144    grep -v '^ *+' conftest.err >conftest.er1
2145    cat conftest.er1 >&5
2146    mv -f conftest.er1 conftest.err
2147  fi
2148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149  test $ac_status = 0; } && {
2150	 test -z "$ac_c_werror_flag" ||
2151	 test ! -s conftest.err
2152       } && test -s conftest$ac_exeext && {
2153	 test "$cross_compiling" = yes ||
2154	 test -x conftest$ac_exeext
2155       }; then :
2156  ac_retval=0
2157else
2158  $as_echo "$as_me: failed program was:" >&5
2159sed 's/^/| /' conftest.$ac_ext >&5
2160
2161	ac_retval=1
2162fi
2163  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2164  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2165  # interfere with the next link command; also delete a directory that is
2166  # left behind by Apple's compiler.  We do this before executing the actions.
2167  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2168  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169  as_fn_set_status $ac_retval
2170
2171} # ac_fn_c_try_link
2172
2173# ac_fn_c_check_func LINENO FUNC VAR
2174# ----------------------------------
2175# Tests whether FUNC exists, setting the cache variable VAR accordingly
2176ac_fn_c_check_func ()
2177{
2178  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2180$as_echo_n "checking for $2... " >&6; }
2181if eval \${$3+:} false; then :
2182  $as_echo_n "(cached) " >&6
2183else
2184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185/* end confdefs.h.  */
2186/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2187   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2188#define $2 innocuous_$2
2189
2190/* System header to define __stub macros and hopefully few prototypes,
2191    which can conflict with char $2 (); below.
2192    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2193    <limits.h> exists even on freestanding compilers.  */
2194
2195#ifdef __STDC__
2196# include <limits.h>
2197#else
2198# include <assert.h>
2199#endif
2200
2201#undef $2
2202
2203/* Override any GCC internal prototype to avoid an error.
2204   Use char because int might match the return type of a GCC
2205   builtin and then its argument prototype would still apply.  */
2206#ifdef __cplusplus
2207extern "C"
2208#endif
2209char $2 ();
2210/* The GNU C library defines this for functions which it implements
2211    to always fail with ENOSYS.  Some functions are actually named
2212    something starting with __ and the normal name is an alias.  */
2213#if defined __stub_$2 || defined __stub___$2
2214choke me
2215#endif
2216
2217int
2218main ()
2219{
2220return $2 ();
2221  ;
2222  return 0;
2223}
2224_ACEOF
2225if ac_fn_c_try_link "$LINENO"; then :
2226  eval "$3=yes"
2227else
2228  eval "$3=no"
2229fi
2230rm -f core conftest.err conftest.$ac_objext \
2231    conftest$ac_exeext conftest.$ac_ext
2232fi
2233eval ac_res=\$$3
2234	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235$as_echo "$ac_res" >&6; }
2236  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2237
2238} # ac_fn_c_check_func
2239
2240# ac_fn_cxx_try_cpp LINENO
2241# ------------------------
2242# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2243ac_fn_cxx_try_cpp ()
2244{
2245  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2246  if { { ac_try="$ac_cpp conftest.$ac_ext"
2247case "(($ac_try" in
2248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249  *) ac_try_echo=$ac_try;;
2250esac
2251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2252$as_echo "$ac_try_echo"; } >&5
2253  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2254  ac_status=$?
2255  if test -s conftest.err; then
2256    grep -v '^ *+' conftest.err >conftest.er1
2257    cat conftest.er1 >&5
2258    mv -f conftest.er1 conftest.err
2259  fi
2260  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2261  test $ac_status = 0; } > conftest.i && {
2262	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2263	 test ! -s conftest.err
2264       }; then :
2265  ac_retval=0
2266else
2267  $as_echo "$as_me: failed program was:" >&5
2268sed 's/^/| /' conftest.$ac_ext >&5
2269
2270    ac_retval=1
2271fi
2272  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273  as_fn_set_status $ac_retval
2274
2275} # ac_fn_cxx_try_cpp
2276
2277# ac_fn_cxx_try_link LINENO
2278# -------------------------
2279# Try to link conftest.$ac_ext, and return whether this succeeded.
2280ac_fn_cxx_try_link ()
2281{
2282  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2283  rm -f conftest.$ac_objext conftest$ac_exeext
2284  if { { ac_try="$ac_link"
2285case "(($ac_try" in
2286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287  *) ac_try_echo=$ac_try;;
2288esac
2289eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2290$as_echo "$ac_try_echo"; } >&5
2291  (eval "$ac_link") 2>conftest.err
2292  ac_status=$?
2293  if test -s conftest.err; then
2294    grep -v '^ *+' conftest.err >conftest.er1
2295    cat conftest.er1 >&5
2296    mv -f conftest.er1 conftest.err
2297  fi
2298  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2299  test $ac_status = 0; } && {
2300	 test -z "$ac_cxx_werror_flag" ||
2301	 test ! -s conftest.err
2302       } && test -s conftest$ac_exeext && {
2303	 test "$cross_compiling" = yes ||
2304	 test -x conftest$ac_exeext
2305       }; then :
2306  ac_retval=0
2307else
2308  $as_echo "$as_me: failed program was:" >&5
2309sed 's/^/| /' conftest.$ac_ext >&5
2310
2311	ac_retval=1
2312fi
2313  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2314  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2315  # interfere with the next link command; also delete a directory that is
2316  # left behind by Apple's compiler.  We do this before executing the actions.
2317  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2318  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2319  as_fn_set_status $ac_retval
2320
2321} # ac_fn_cxx_try_link
2322
2323# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2324# --------------------------------------------
2325# Tries to find the compile-time value of EXPR in a program that includes
2326# INCLUDES, setting VAR accordingly. Returns whether the value could be
2327# computed
2328ac_fn_c_compute_int ()
2329{
2330  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331  if test "$cross_compiling" = yes; then
2332    # Depending upon the size, compute the lo and hi bounds.
2333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334/* end confdefs.h.  */
2335$4
2336int
2337main ()
2338{
2339static int test_array [1 - 2 * !(($2) >= 0)];
2340test_array [0] = 0;
2341return test_array [0];
2342
2343  ;
2344  return 0;
2345}
2346_ACEOF
2347if ac_fn_c_try_compile "$LINENO"; then :
2348  ac_lo=0 ac_mid=0
2349  while :; do
2350    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351/* end confdefs.h.  */
2352$4
2353int
2354main ()
2355{
2356static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2357test_array [0] = 0;
2358return test_array [0];
2359
2360  ;
2361  return 0;
2362}
2363_ACEOF
2364if ac_fn_c_try_compile "$LINENO"; then :
2365  ac_hi=$ac_mid; break
2366else
2367  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2368			if test $ac_lo -le $ac_mid; then
2369			  ac_lo= ac_hi=
2370			  break
2371			fi
2372			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2373fi
2374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2375  done
2376else
2377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2378/* end confdefs.h.  */
2379$4
2380int
2381main ()
2382{
2383static int test_array [1 - 2 * !(($2) < 0)];
2384test_array [0] = 0;
2385return test_array [0];
2386
2387  ;
2388  return 0;
2389}
2390_ACEOF
2391if ac_fn_c_try_compile "$LINENO"; then :
2392  ac_hi=-1 ac_mid=-1
2393  while :; do
2394    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2395/* end confdefs.h.  */
2396$4
2397int
2398main ()
2399{
2400static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2401test_array [0] = 0;
2402return test_array [0];
2403
2404  ;
2405  return 0;
2406}
2407_ACEOF
2408if ac_fn_c_try_compile "$LINENO"; then :
2409  ac_lo=$ac_mid; break
2410else
2411  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2412			if test $ac_mid -le $ac_hi; then
2413			  ac_lo= ac_hi=
2414			  break
2415			fi
2416			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2417fi
2418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2419  done
2420else
2421  ac_lo= ac_hi=
2422fi
2423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424fi
2425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2426# Binary search between lo and hi bounds.
2427while test "x$ac_lo" != "x$ac_hi"; do
2428  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430/* end confdefs.h.  */
2431$4
2432int
2433main ()
2434{
2435static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2436test_array [0] = 0;
2437return test_array [0];
2438
2439  ;
2440  return 0;
2441}
2442_ACEOF
2443if ac_fn_c_try_compile "$LINENO"; then :
2444  ac_hi=$ac_mid
2445else
2446  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2447fi
2448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449done
2450case $ac_lo in #((
2451?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2452'') ac_retval=1 ;;
2453esac
2454  else
2455    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2456/* end confdefs.h.  */
2457$4
2458static long int longval () { return $2; }
2459static unsigned long int ulongval () { return $2; }
2460#include <stdio.h>
2461#include <stdlib.h>
2462int
2463main ()
2464{
2465
2466  FILE *f = fopen ("conftest.val", "w");
2467  if (! f)
2468    return 1;
2469  if (($2) < 0)
2470    {
2471      long int i = longval ();
2472      if (i != ($2))
2473	return 1;
2474      fprintf (f, "%ld", i);
2475    }
2476  else
2477    {
2478      unsigned long int i = ulongval ();
2479      if (i != ($2))
2480	return 1;
2481      fprintf (f, "%lu", i);
2482    }
2483  /* Do not output a trailing newline, as this causes \r\n confusion
2484     on some platforms.  */
2485  return ferror (f) || fclose (f) != 0;
2486
2487  ;
2488  return 0;
2489}
2490_ACEOF
2491if ac_fn_c_try_run "$LINENO"; then :
2492  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2493else
2494  ac_retval=1
2495fi
2496rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2497  conftest.$ac_objext conftest.beam conftest.$ac_ext
2498rm -f conftest.val
2499
2500  fi
2501  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2502  as_fn_set_status $ac_retval
2503
2504} # ac_fn_c_compute_int
2505
2506# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2507# -------------------------------------------
2508# Tests whether TYPE exists after having included INCLUDES, setting cache
2509# variable VAR accordingly.
2510ac_fn_c_check_type ()
2511{
2512  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2513  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2514$as_echo_n "checking for $2... " >&6; }
2515if eval \${$3+:} false; then :
2516  $as_echo_n "(cached) " >&6
2517else
2518  eval "$3=no"
2519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520/* end confdefs.h.  */
2521$4
2522int
2523main ()
2524{
2525if (sizeof ($2))
2526	 return 0;
2527  ;
2528  return 0;
2529}
2530_ACEOF
2531if ac_fn_c_try_compile "$LINENO"; then :
2532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533/* end confdefs.h.  */
2534$4
2535int
2536main ()
2537{
2538if (sizeof (($2)))
2539	    return 0;
2540  ;
2541  return 0;
2542}
2543_ACEOF
2544if ac_fn_c_try_compile "$LINENO"; then :
2545
2546else
2547  eval "$3=yes"
2548fi
2549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2550fi
2551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2552fi
2553eval ac_res=\$$3
2554	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2555$as_echo "$ac_res" >&6; }
2556  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2557
2558} # ac_fn_c_check_type
2559
2560# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2561# ---------------------------------------------
2562# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2563# accordingly.
2564ac_fn_c_check_decl ()
2565{
2566  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2567  as_decl_name=`echo $2|sed 's/ *(.*//'`
2568  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2570$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2571if eval \${$3+:} false; then :
2572  $as_echo_n "(cached) " >&6
2573else
2574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2575/* end confdefs.h.  */
2576$4
2577int
2578main ()
2579{
2580#ifndef $as_decl_name
2581#ifdef __cplusplus
2582  (void) $as_decl_use;
2583#else
2584  (void) $as_decl_name;
2585#endif
2586#endif
2587
2588  ;
2589  return 0;
2590}
2591_ACEOF
2592if ac_fn_c_try_compile "$LINENO"; then :
2593  eval "$3=yes"
2594else
2595  eval "$3=no"
2596fi
2597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598fi
2599eval ac_res=\$$3
2600	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2601$as_echo "$ac_res" >&6; }
2602  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2603
2604} # ac_fn_c_check_decl
2605
2606# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2607# ----------------------------------------------------
2608# Tries to find if the field MEMBER exists in type AGGR, after including
2609# INCLUDES, setting cache variable VAR accordingly.
2610ac_fn_c_check_member ()
2611{
2612  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2613  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2614$as_echo_n "checking for $2.$3... " >&6; }
2615if eval \${$4+:} false; then :
2616  $as_echo_n "(cached) " >&6
2617else
2618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2619/* end confdefs.h.  */
2620$5
2621int
2622main ()
2623{
2624static $2 ac_aggr;
2625if (ac_aggr.$3)
2626return 0;
2627  ;
2628  return 0;
2629}
2630_ACEOF
2631if ac_fn_c_try_compile "$LINENO"; then :
2632  eval "$4=yes"
2633else
2634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2635/* end confdefs.h.  */
2636$5
2637int
2638main ()
2639{
2640static $2 ac_aggr;
2641if (sizeof ac_aggr.$3)
2642return 0;
2643  ;
2644  return 0;
2645}
2646_ACEOF
2647if ac_fn_c_try_compile "$LINENO"; then :
2648  eval "$4=yes"
2649else
2650  eval "$4=no"
2651fi
2652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2653fi
2654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655fi
2656eval ac_res=\$$4
2657	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2658$as_echo "$ac_res" >&6; }
2659  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2660
2661} # ac_fn_c_check_member
2662
2663# ac_fn_cxx_check_func LINENO FUNC VAR
2664# ------------------------------------
2665# Tests whether FUNC exists, setting the cache variable VAR accordingly
2666ac_fn_cxx_check_func ()
2667{
2668  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2669  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2670$as_echo_n "checking for $2... " >&6; }
2671if eval \${$3+:} false; then :
2672  $as_echo_n "(cached) " >&6
2673else
2674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2675/* end confdefs.h.  */
2676/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2677   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2678#define $2 innocuous_$2
2679
2680/* System header to define __stub macros and hopefully few prototypes,
2681    which can conflict with char $2 (); below.
2682    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2683    <limits.h> exists even on freestanding compilers.  */
2684
2685#ifdef __STDC__
2686# include <limits.h>
2687#else
2688# include <assert.h>
2689#endif
2690
2691#undef $2
2692
2693/* Override any GCC internal prototype to avoid an error.
2694   Use char because int might match the return type of a GCC
2695   builtin and then its argument prototype would still apply.  */
2696#ifdef __cplusplus
2697extern "C"
2698#endif
2699char $2 ();
2700/* The GNU C library defines this for functions which it implements
2701    to always fail with ENOSYS.  Some functions are actually named
2702    something starting with __ and the normal name is an alias.  */
2703#if defined __stub_$2 || defined __stub___$2
2704choke me
2705#endif
2706
2707int
2708main ()
2709{
2710return $2 ();
2711  ;
2712  return 0;
2713}
2714_ACEOF
2715if ac_fn_cxx_try_link "$LINENO"; then :
2716  eval "$3=yes"
2717else
2718  eval "$3=no"
2719fi
2720rm -f core conftest.err conftest.$ac_objext \
2721    conftest$ac_exeext conftest.$ac_ext
2722fi
2723eval ac_res=\$$3
2724	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2725$as_echo "$ac_res" >&6; }
2726  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2727
2728} # ac_fn_cxx_check_func
2729cat >config.log <<_ACEOF
2730This file contains any messages produced by compilers while
2731running configure, to aid debugging if configure makes a mistake.
2732
2733It was created by $as_me, which was
2734generated by GNU Autoconf 2.69.  Invocation command line was
2735
2736  $ $0 $@
2737
2738_ACEOF
2739exec 5>>config.log
2740{
2741cat <<_ASUNAME
2742## --------- ##
2743## Platform. ##
2744## --------- ##
2745
2746hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2747uname -m = `(uname -m) 2>/dev/null || echo unknown`
2748uname -r = `(uname -r) 2>/dev/null || echo unknown`
2749uname -s = `(uname -s) 2>/dev/null || echo unknown`
2750uname -v = `(uname -v) 2>/dev/null || echo unknown`
2751
2752/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2753/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2754
2755/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2756/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2757/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2758/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2759/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2760/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2761/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2762
2763_ASUNAME
2764
2765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766for as_dir in $PATH
2767do
2768  IFS=$as_save_IFS
2769  test -z "$as_dir" && as_dir=.
2770    $as_echo "PATH: $as_dir"
2771  done
2772IFS=$as_save_IFS
2773
2774} >&5
2775
2776cat >&5 <<_ACEOF
2777
2778
2779## ----------- ##
2780## Core tests. ##
2781## ----------- ##
2782
2783_ACEOF
2784
2785
2786# Keep a trace of the command line.
2787# Strip out --no-create and --no-recursion so they do not pile up.
2788# Strip out --silent because we don't want to record it for future runs.
2789# Also quote any args containing shell meta-characters.
2790# Make two passes to allow for proper duplicate-argument suppression.
2791ac_configure_args=
2792ac_configure_args0=
2793ac_configure_args1=
2794ac_must_keep_next=false
2795for ac_pass in 1 2
2796do
2797  for ac_arg
2798  do
2799    case $ac_arg in
2800    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2801    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2802    | -silent | --silent | --silen | --sile | --sil)
2803      continue ;;
2804    *\'*)
2805      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2806    esac
2807    case $ac_pass in
2808    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2809    2)
2810      as_fn_append ac_configure_args1 " '$ac_arg'"
2811      if test $ac_must_keep_next = true; then
2812	ac_must_keep_next=false # Got value, back to normal.
2813      else
2814	case $ac_arg in
2815	  *=* | --config-cache | -C | -disable-* | --disable-* \
2816	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2817	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2818	  | -with-* | --with-* | -without-* | --without-* | --x)
2819	    case "$ac_configure_args0 " in
2820	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2821	    esac
2822	    ;;
2823	  -* ) ac_must_keep_next=true ;;
2824	esac
2825      fi
2826      as_fn_append ac_configure_args " '$ac_arg'"
2827      ;;
2828    esac
2829  done
2830done
2831{ ac_configure_args0=; unset ac_configure_args0;}
2832{ ac_configure_args1=; unset ac_configure_args1;}
2833
2834# When interrupted or exit'd, cleanup temporary files, and complete
2835# config.log.  We remove comments because anyway the quotes in there
2836# would cause problems or look ugly.
2837# WARNING: Use '\'' to represent an apostrophe within the trap.
2838# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2839trap 'exit_status=$?
2840  # Save into config.log some information that might help in debugging.
2841  {
2842    echo
2843
2844    $as_echo "## ---------------- ##
2845## Cache variables. ##
2846## ---------------- ##"
2847    echo
2848    # The following way of writing the cache mishandles newlines in values,
2849(
2850  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2851    eval ac_val=\$$ac_var
2852    case $ac_val in #(
2853    *${as_nl}*)
2854      case $ac_var in #(
2855      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2856$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2857      esac
2858      case $ac_var in #(
2859      _ | IFS | as_nl) ;; #(
2860      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2861      *) { eval $ac_var=; unset $ac_var;} ;;
2862      esac ;;
2863    esac
2864  done
2865  (set) 2>&1 |
2866    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2867    *${as_nl}ac_space=\ *)
2868      sed -n \
2869	"s/'\''/'\''\\\\'\'''\''/g;
2870	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2871      ;; #(
2872    *)
2873      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2874      ;;
2875    esac |
2876    sort
2877)
2878    echo
2879
2880    $as_echo "## ----------------- ##
2881## Output variables. ##
2882## ----------------- ##"
2883    echo
2884    for ac_var in $ac_subst_vars
2885    do
2886      eval ac_val=\$$ac_var
2887      case $ac_val in
2888      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2889      esac
2890      $as_echo "$ac_var='\''$ac_val'\''"
2891    done | sort
2892    echo
2893
2894    if test -n "$ac_subst_files"; then
2895      $as_echo "## ------------------- ##
2896## File substitutions. ##
2897## ------------------- ##"
2898      echo
2899      for ac_var in $ac_subst_files
2900      do
2901	eval ac_val=\$$ac_var
2902	case $ac_val in
2903	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2904	esac
2905	$as_echo "$ac_var='\''$ac_val'\''"
2906      done | sort
2907      echo
2908    fi
2909
2910    if test -s confdefs.h; then
2911      $as_echo "## ----------- ##
2912## confdefs.h. ##
2913## ----------- ##"
2914      echo
2915      cat confdefs.h
2916      echo
2917    fi
2918    test "$ac_signal" != 0 &&
2919      $as_echo "$as_me: caught signal $ac_signal"
2920    $as_echo "$as_me: exit $exit_status"
2921  } >&5
2922  rm -f core *.core core.conftest.* &&
2923    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2924    exit $exit_status
2925' 0
2926for ac_signal in 1 2 13 15; do
2927  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2928done
2929ac_signal=0
2930
2931# confdefs.h avoids OS command line length limits that DEFS can exceed.
2932rm -f -r conftest* confdefs.h
2933
2934$as_echo "/* confdefs.h */" > confdefs.h
2935
2936# Predefined preprocessor variables.
2937
2938cat >>confdefs.h <<_ACEOF
2939#define PACKAGE_NAME "$PACKAGE_NAME"
2940_ACEOF
2941
2942cat >>confdefs.h <<_ACEOF
2943#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2944_ACEOF
2945
2946cat >>confdefs.h <<_ACEOF
2947#define PACKAGE_VERSION "$PACKAGE_VERSION"
2948_ACEOF
2949
2950cat >>confdefs.h <<_ACEOF
2951#define PACKAGE_STRING "$PACKAGE_STRING"
2952_ACEOF
2953
2954cat >>confdefs.h <<_ACEOF
2955#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2956_ACEOF
2957
2958cat >>confdefs.h <<_ACEOF
2959#define PACKAGE_URL "$PACKAGE_URL"
2960_ACEOF
2961
2962
2963# Let the site file select an alternate cache file if it wants to.
2964# Prefer an explicitly selected file to automatically selected ones.
2965ac_site_file1=NONE
2966ac_site_file2=NONE
2967if test -n "$CONFIG_SITE"; then
2968  # We do not want a PATH search for config.site.
2969  case $CONFIG_SITE in #((
2970    -*)  ac_site_file1=./$CONFIG_SITE;;
2971    */*) ac_site_file1=$CONFIG_SITE;;
2972    *)   ac_site_file1=./$CONFIG_SITE;;
2973  esac
2974elif test "x$prefix" != xNONE; then
2975  ac_site_file1=$prefix/share/config.site
2976  ac_site_file2=$prefix/etc/config.site
2977else
2978  ac_site_file1=$ac_default_prefix/share/config.site
2979  ac_site_file2=$ac_default_prefix/etc/config.site
2980fi
2981for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2982do
2983  test "x$ac_site_file" = xNONE && continue
2984  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2985    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2986$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2987    sed 's/^/| /' "$ac_site_file" >&5
2988    . "$ac_site_file" \
2989      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991as_fn_error $? "failed to load site script $ac_site_file
2992See \`config.log' for more details" "$LINENO" 5; }
2993  fi
2994done
2995
2996if test -r "$cache_file"; then
2997  # Some versions of bash will fail to source /dev/null (special files
2998  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2999  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3000    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3001$as_echo "$as_me: loading cache $cache_file" >&6;}
3002    case $cache_file in
3003      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3004      *)                      . "./$cache_file";;
3005    esac
3006  fi
3007else
3008  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3009$as_echo "$as_me: creating cache $cache_file" >&6;}
3010  >$cache_file
3011fi
3012
3013as_fn_append ac_header_list " stdlib.h"
3014as_fn_append ac_header_list " unistd.h"
3015as_fn_append ac_header_list " sys/param.h"
3016# Check that the precious variables saved in the cache have kept the same
3017# value.
3018ac_cache_corrupted=false
3019for ac_var in $ac_precious_vars; do
3020  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3021  eval ac_new_set=\$ac_env_${ac_var}_set
3022  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3023  eval ac_new_val=\$ac_env_${ac_var}_value
3024  case $ac_old_set,$ac_new_set in
3025    set,)
3026      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3027$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3028      ac_cache_corrupted=: ;;
3029    ,set)
3030      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3031$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3032      ac_cache_corrupted=: ;;
3033    ,);;
3034    *)
3035      if test "x$ac_old_val" != "x$ac_new_val"; then
3036	# differences in whitespace do not lead to failure.
3037	ac_old_val_w=`echo x $ac_old_val`
3038	ac_new_val_w=`echo x $ac_new_val`
3039	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3040	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3041$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3042	  ac_cache_corrupted=:
3043	else
3044	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3045$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3046	  eval $ac_var=\$ac_old_val
3047	fi
3048	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3049$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3050	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3051$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3052      fi;;
3053  esac
3054  # Pass precious variables to config.status.
3055  if test "$ac_new_set" = set; then
3056    case $ac_new_val in
3057    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3058    *) ac_arg=$ac_var=$ac_new_val ;;
3059    esac
3060    case " $ac_configure_args " in
3061      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3062      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3063    esac
3064  fi
3065done
3066if $ac_cache_corrupted; then
3067  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3068$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3069  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3070$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3071  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3072fi
3073## -------------------- ##
3074## Main body of script. ##
3075## -------------------- ##
3076
3077ac_ext=c
3078ac_cpp='$CPP $CPPFLAGS'
3079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3081ac_compiler_gnu=$ac_cv_c_compiler_gnu
3082
3083
3084
3085
3086
3087
3088
3089ac_config_headers="$ac_config_headers config.h:config.in"
3090
3091
3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3093$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3094    # Check whether --enable-maintainer-mode was given.
3095if test "${enable_maintainer_mode+set}" = set; then :
3096  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3097else
3098  USE_MAINTAINER_MODE=no
3099fi
3100
3101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3102$as_echo "$USE_MAINTAINER_MODE" >&6; }
3103   if test $USE_MAINTAINER_MODE = yes; then
3104  MAINTAINER_MODE_TRUE=
3105  MAINTAINER_MODE_FALSE='#'
3106else
3107  MAINTAINER_MODE_TRUE='#'
3108  MAINTAINER_MODE_FALSE=
3109fi
3110
3111  MAINT=$MAINTAINER_MODE_TRUE
3112
3113
3114
3115ac_ext=c
3116ac_cpp='$CPP $CPPFLAGS'
3117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119ac_compiler_gnu=$ac_cv_c_compiler_gnu
3120if test -n "$ac_tool_prefix"; then
3121  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3122set dummy ${ac_tool_prefix}gcc; ac_word=$2
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124$as_echo_n "checking for $ac_word... " >&6; }
3125if ${ac_cv_prog_CC+:} false; then :
3126  $as_echo_n "(cached) " >&6
3127else
3128  if test -n "$CC"; then
3129  ac_cv_prog_CC="$CC" # Let the user override the test.
3130else
3131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132for as_dir in $PATH
3133do
3134  IFS=$as_save_IFS
3135  test -z "$as_dir" && as_dir=.
3136    for ac_exec_ext in '' $ac_executable_extensions; do
3137  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3138    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140    break 2
3141  fi
3142done
3143  done
3144IFS=$as_save_IFS
3145
3146fi
3147fi
3148CC=$ac_cv_prog_CC
3149if test -n "$CC"; then
3150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3151$as_echo "$CC" >&6; }
3152else
3153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154$as_echo "no" >&6; }
3155fi
3156
3157
3158fi
3159if test -z "$ac_cv_prog_CC"; then
3160  ac_ct_CC=$CC
3161  # Extract the first word of "gcc", so it can be a program name with args.
3162set dummy gcc; ac_word=$2
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164$as_echo_n "checking for $ac_word... " >&6; }
3165if ${ac_cv_prog_ac_ct_CC+:} false; then :
3166  $as_echo_n "(cached) " >&6
3167else
3168  if test -n "$ac_ct_CC"; then
3169  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3170else
3171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172for as_dir in $PATH
3173do
3174  IFS=$as_save_IFS
3175  test -z "$as_dir" && as_dir=.
3176    for ac_exec_ext in '' $ac_executable_extensions; do
3177  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178    ac_cv_prog_ac_ct_CC="gcc"
3179    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180    break 2
3181  fi
3182done
3183  done
3184IFS=$as_save_IFS
3185
3186fi
3187fi
3188ac_ct_CC=$ac_cv_prog_ac_ct_CC
3189if test -n "$ac_ct_CC"; then
3190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3191$as_echo "$ac_ct_CC" >&6; }
3192else
3193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194$as_echo "no" >&6; }
3195fi
3196
3197  if test "x$ac_ct_CC" = x; then
3198    CC=""
3199  else
3200    case $cross_compiling:$ac_tool_warned in
3201yes:)
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3203$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3204ac_tool_warned=yes ;;
3205esac
3206    CC=$ac_ct_CC
3207  fi
3208else
3209  CC="$ac_cv_prog_CC"
3210fi
3211
3212if test -z "$CC"; then
3213          if test -n "$ac_tool_prefix"; then
3214    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3215set dummy ${ac_tool_prefix}cc; ac_word=$2
3216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217$as_echo_n "checking for $ac_word... " >&6; }
3218if ${ac_cv_prog_CC+:} false; then :
3219  $as_echo_n "(cached) " >&6
3220else
3221  if test -n "$CC"; then
3222  ac_cv_prog_CC="$CC" # Let the user override the test.
3223else
3224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225for as_dir in $PATH
3226do
3227  IFS=$as_save_IFS
3228  test -z "$as_dir" && as_dir=.
3229    for ac_exec_ext in '' $ac_executable_extensions; do
3230  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3231    ac_cv_prog_CC="${ac_tool_prefix}cc"
3232    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233    break 2
3234  fi
3235done
3236  done
3237IFS=$as_save_IFS
3238
3239fi
3240fi
3241CC=$ac_cv_prog_CC
3242if test -n "$CC"; then
3243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3244$as_echo "$CC" >&6; }
3245else
3246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247$as_echo "no" >&6; }
3248fi
3249
3250
3251  fi
3252fi
3253if test -z "$CC"; then
3254  # Extract the first word of "cc", so it can be a program name with args.
3255set dummy cc; ac_word=$2
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257$as_echo_n "checking for $ac_word... " >&6; }
3258if ${ac_cv_prog_CC+:} false; then :
3259  $as_echo_n "(cached) " >&6
3260else
3261  if test -n "$CC"; then
3262  ac_cv_prog_CC="$CC" # Let the user override the test.
3263else
3264  ac_prog_rejected=no
3265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266for as_dir in $PATH
3267do
3268  IFS=$as_save_IFS
3269  test -z "$as_dir" && as_dir=.
3270    for ac_exec_ext in '' $ac_executable_extensions; do
3271  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3272    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3273       ac_prog_rejected=yes
3274       continue
3275     fi
3276    ac_cv_prog_CC="cc"
3277    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3278    break 2
3279  fi
3280done
3281  done
3282IFS=$as_save_IFS
3283
3284if test $ac_prog_rejected = yes; then
3285  # We found a bogon in the path, so make sure we never use it.
3286  set dummy $ac_cv_prog_CC
3287  shift
3288  if test $# != 0; then
3289    # We chose a different compiler from the bogus one.
3290    # However, it has the same basename, so the bogon will be chosen
3291    # first if we set CC to just the basename; use the full file name.
3292    shift
3293    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3294  fi
3295fi
3296fi
3297fi
3298CC=$ac_cv_prog_CC
3299if test -n "$CC"; then
3300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3301$as_echo "$CC" >&6; }
3302else
3303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304$as_echo "no" >&6; }
3305fi
3306
3307
3308fi
3309if test -z "$CC"; then
3310  if test -n "$ac_tool_prefix"; then
3311  for ac_prog in cl.exe
3312  do
3313    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3314set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316$as_echo_n "checking for $ac_word... " >&6; }
3317if ${ac_cv_prog_CC+:} false; then :
3318  $as_echo_n "(cached) " >&6
3319else
3320  if test -n "$CC"; then
3321  ac_cv_prog_CC="$CC" # Let the user override the test.
3322else
3323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324for as_dir in $PATH
3325do
3326  IFS=$as_save_IFS
3327  test -z "$as_dir" && as_dir=.
3328    for ac_exec_ext in '' $ac_executable_extensions; do
3329  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3331    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3332    break 2
3333  fi
3334done
3335  done
3336IFS=$as_save_IFS
3337
3338fi
3339fi
3340CC=$ac_cv_prog_CC
3341if test -n "$CC"; then
3342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3343$as_echo "$CC" >&6; }
3344else
3345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346$as_echo "no" >&6; }
3347fi
3348
3349
3350    test -n "$CC" && break
3351  done
3352fi
3353if test -z "$CC"; then
3354  ac_ct_CC=$CC
3355  for ac_prog in cl.exe
3356do
3357  # Extract the first word of "$ac_prog", so it can be a program name with args.
3358set dummy $ac_prog; ac_word=$2
3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360$as_echo_n "checking for $ac_word... " >&6; }
3361if ${ac_cv_prog_ac_ct_CC+:} false; then :
3362  $as_echo_n "(cached) " >&6
3363else
3364  if test -n "$ac_ct_CC"; then
3365  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3366else
3367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368for as_dir in $PATH
3369do
3370  IFS=$as_save_IFS
3371  test -z "$as_dir" && as_dir=.
3372    for ac_exec_ext in '' $ac_executable_extensions; do
3373  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3374    ac_cv_prog_ac_ct_CC="$ac_prog"
3375    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376    break 2
3377  fi
3378done
3379  done
3380IFS=$as_save_IFS
3381
3382fi
3383fi
3384ac_ct_CC=$ac_cv_prog_ac_ct_CC
3385if test -n "$ac_ct_CC"; then
3386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3387$as_echo "$ac_ct_CC" >&6; }
3388else
3389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390$as_echo "no" >&6; }
3391fi
3392
3393
3394  test -n "$ac_ct_CC" && break
3395done
3396
3397  if test "x$ac_ct_CC" = x; then
3398    CC=""
3399  else
3400    case $cross_compiling:$ac_tool_warned in
3401yes:)
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3404ac_tool_warned=yes ;;
3405esac
3406    CC=$ac_ct_CC
3407  fi
3408fi
3409
3410fi
3411
3412
3413test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3415as_fn_error $? "no acceptable C compiler found in \$PATH
3416See \`config.log' for more details" "$LINENO" 5; }
3417
3418# Provide some information about the compiler.
3419$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3420set X $ac_compile
3421ac_compiler=$2
3422for ac_option in --version -v -V -qversion; do
3423  { { ac_try="$ac_compiler $ac_option >&5"
3424case "(($ac_try" in
3425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426  *) ac_try_echo=$ac_try;;
3427esac
3428eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3429$as_echo "$ac_try_echo"; } >&5
3430  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3431  ac_status=$?
3432  if test -s conftest.err; then
3433    sed '10a\
3434... rest of stderr output deleted ...
3435         10q' conftest.err >conftest.er1
3436    cat conftest.er1 >&5
3437  fi
3438  rm -f conftest.er1 conftest.err
3439  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3440  test $ac_status = 0; }
3441done
3442
3443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444/* end confdefs.h.  */
3445
3446int
3447main ()
3448{
3449
3450  ;
3451  return 0;
3452}
3453_ACEOF
3454ac_clean_files_save=$ac_clean_files
3455ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3456# Try to create an executable without -o first, disregard a.out.
3457# It will help us diagnose broken compilers, and finding out an intuition
3458# of exeext.
3459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3460$as_echo_n "checking whether the C compiler works... " >&6; }
3461ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3462
3463# The possible output files:
3464ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3465
3466ac_rmfiles=
3467for ac_file in $ac_files
3468do
3469  case $ac_file in
3470    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3471    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3472  esac
3473done
3474rm -f $ac_rmfiles
3475
3476if { { ac_try="$ac_link_default"
3477case "(($ac_try" in
3478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479  *) ac_try_echo=$ac_try;;
3480esac
3481eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3482$as_echo "$ac_try_echo"; } >&5
3483  (eval "$ac_link_default") 2>&5
3484  ac_status=$?
3485  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3486  test $ac_status = 0; }; then :
3487  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3488# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3489# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3490# so that the user can short-circuit this test for compilers unknown to
3491# Autoconf.
3492for ac_file in $ac_files ''
3493do
3494  test -f "$ac_file" || continue
3495  case $ac_file in
3496    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3497	;;
3498    [ab].out )
3499	# We found the default executable, but exeext='' is most
3500	# certainly right.
3501	break;;
3502    *.* )
3503	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3504	then :; else
3505	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3506	fi
3507	# We set ac_cv_exeext here because the later test for it is not
3508	# safe: cross compilers may not add the suffix if given an `-o'
3509	# argument, so we may need to know it at that point already.
3510	# Even if this section looks crufty: it has the advantage of
3511	# actually working.
3512	break;;
3513    * )
3514	break;;
3515  esac
3516done
3517test "$ac_cv_exeext" = no && ac_cv_exeext=
3518
3519else
3520  ac_file=''
3521fi
3522if test -z "$ac_file"; then :
3523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524$as_echo "no" >&6; }
3525$as_echo "$as_me: failed program was:" >&5
3526sed 's/^/| /' conftest.$ac_ext >&5
3527
3528{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530as_fn_error 77 "C compiler cannot create executables
3531See \`config.log' for more details" "$LINENO" 5; }
3532else
3533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3534$as_echo "yes" >&6; }
3535fi
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3537$as_echo_n "checking for C compiler default output file name... " >&6; }
3538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3539$as_echo "$ac_file" >&6; }
3540ac_exeext=$ac_cv_exeext
3541
3542rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3543ac_clean_files=$ac_clean_files_save
3544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3545$as_echo_n "checking for suffix of executables... " >&6; }
3546if { { ac_try="$ac_link"
3547case "(($ac_try" in
3548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549  *) ac_try_echo=$ac_try;;
3550esac
3551eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3552$as_echo "$ac_try_echo"; } >&5
3553  (eval "$ac_link") 2>&5
3554  ac_status=$?
3555  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3556  test $ac_status = 0; }; then :
3557  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3558# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3559# work properly (i.e., refer to `conftest.exe'), while it won't with
3560# `rm'.
3561for ac_file in conftest.exe conftest conftest.*; do
3562  test -f "$ac_file" || continue
3563  case $ac_file in
3564    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3565    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3566	  break;;
3567    * ) break;;
3568  esac
3569done
3570else
3571  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3573as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3574See \`config.log' for more details" "$LINENO" 5; }
3575fi
3576rm -f conftest conftest$ac_cv_exeext
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3578$as_echo "$ac_cv_exeext" >&6; }
3579
3580rm -f conftest.$ac_ext
3581EXEEXT=$ac_cv_exeext
3582ac_exeext=$EXEEXT
3583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584/* end confdefs.h.  */
3585#include <stdio.h>
3586int
3587main ()
3588{
3589FILE *f = fopen ("conftest.out", "w");
3590 return ferror (f) || fclose (f) != 0;
3591
3592  ;
3593  return 0;
3594}
3595_ACEOF
3596ac_clean_files="$ac_clean_files conftest.out"
3597# Check that the compiler produces executables we can run.  If not, either
3598# the compiler is broken, or we cross compile.
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3600$as_echo_n "checking whether we are cross compiling... " >&6; }
3601if test "$cross_compiling" != yes; then
3602  { { ac_try="$ac_link"
3603case "(($ac_try" in
3604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605  *) ac_try_echo=$ac_try;;
3606esac
3607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3608$as_echo "$ac_try_echo"; } >&5
3609  (eval "$ac_link") 2>&5
3610  ac_status=$?
3611  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3612  test $ac_status = 0; }
3613  if { ac_try='./conftest$ac_cv_exeext'
3614  { { case "(($ac_try" in
3615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616  *) ac_try_echo=$ac_try;;
3617esac
3618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619$as_echo "$ac_try_echo"; } >&5
3620  (eval "$ac_try") 2>&5
3621  ac_status=$?
3622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623  test $ac_status = 0; }; }; then
3624    cross_compiling=no
3625  else
3626    if test "$cross_compiling" = maybe; then
3627	cross_compiling=yes
3628    else
3629	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3631as_fn_error $? "cannot run C compiled programs.
3632If you meant to cross compile, use \`--host'.
3633See \`config.log' for more details" "$LINENO" 5; }
3634    fi
3635  fi
3636fi
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3638$as_echo "$cross_compiling" >&6; }
3639
3640rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3641ac_clean_files=$ac_clean_files_save
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3643$as_echo_n "checking for suffix of object files... " >&6; }
3644if ${ac_cv_objext+:} false; then :
3645  $as_echo_n "(cached) " >&6
3646else
3647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648/* end confdefs.h.  */
3649
3650int
3651main ()
3652{
3653
3654  ;
3655  return 0;
3656}
3657_ACEOF
3658rm -f conftest.o conftest.obj
3659if { { ac_try="$ac_compile"
3660case "(($ac_try" in
3661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662  *) ac_try_echo=$ac_try;;
3663esac
3664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3665$as_echo "$ac_try_echo"; } >&5
3666  (eval "$ac_compile") 2>&5
3667  ac_status=$?
3668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669  test $ac_status = 0; }; then :
3670  for ac_file in conftest.o conftest.obj conftest.*; do
3671  test -f "$ac_file" || continue;
3672  case $ac_file in
3673    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3674    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3675       break;;
3676  esac
3677done
3678else
3679  $as_echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
3682{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3683$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3684as_fn_error $? "cannot compute suffix of object files: cannot compile
3685See \`config.log' for more details" "$LINENO" 5; }
3686fi
3687rm -f conftest.$ac_cv_objext conftest.$ac_ext
3688fi
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3690$as_echo "$ac_cv_objext" >&6; }
3691OBJEXT=$ac_cv_objext
3692ac_objext=$OBJEXT
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3694$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3695if ${ac_cv_c_compiler_gnu+:} false; then :
3696  $as_echo_n "(cached) " >&6
3697else
3698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699/* end confdefs.h.  */
3700
3701int
3702main ()
3703{
3704#ifndef __GNUC__
3705       choke me
3706#endif
3707
3708  ;
3709  return 0;
3710}
3711_ACEOF
3712if ac_fn_c_try_compile "$LINENO"; then :
3713  ac_compiler_gnu=yes
3714else
3715  ac_compiler_gnu=no
3716fi
3717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718ac_cv_c_compiler_gnu=$ac_compiler_gnu
3719
3720fi
3721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3722$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3723if test $ac_compiler_gnu = yes; then
3724  GCC=yes
3725else
3726  GCC=
3727fi
3728ac_test_CFLAGS=${CFLAGS+set}
3729ac_save_CFLAGS=$CFLAGS
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3731$as_echo_n "checking whether $CC accepts -g... " >&6; }
3732if ${ac_cv_prog_cc_g+:} false; then :
3733  $as_echo_n "(cached) " >&6
3734else
3735  ac_save_c_werror_flag=$ac_c_werror_flag
3736   ac_c_werror_flag=yes
3737   ac_cv_prog_cc_g=no
3738   CFLAGS="-g"
3739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740/* end confdefs.h.  */
3741
3742int
3743main ()
3744{
3745
3746  ;
3747  return 0;
3748}
3749_ACEOF
3750if ac_fn_c_try_compile "$LINENO"; then :
3751  ac_cv_prog_cc_g=yes
3752else
3753  CFLAGS=""
3754      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755/* end confdefs.h.  */
3756
3757int
3758main ()
3759{
3760
3761  ;
3762  return 0;
3763}
3764_ACEOF
3765if ac_fn_c_try_compile "$LINENO"; then :
3766
3767else
3768  ac_c_werror_flag=$ac_save_c_werror_flag
3769	 CFLAGS="-g"
3770	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771/* end confdefs.h.  */
3772
3773int
3774main ()
3775{
3776
3777  ;
3778  return 0;
3779}
3780_ACEOF
3781if ac_fn_c_try_compile "$LINENO"; then :
3782  ac_cv_prog_cc_g=yes
3783fi
3784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3785fi
3786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787fi
3788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789   ac_c_werror_flag=$ac_save_c_werror_flag
3790fi
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3792$as_echo "$ac_cv_prog_cc_g" >&6; }
3793if test "$ac_test_CFLAGS" = set; then
3794  CFLAGS=$ac_save_CFLAGS
3795elif test $ac_cv_prog_cc_g = yes; then
3796  if test "$GCC" = yes; then
3797    CFLAGS="-g -O2"
3798  else
3799    CFLAGS="-g"
3800  fi
3801else
3802  if test "$GCC" = yes; then
3803    CFLAGS="-O2"
3804  else
3805    CFLAGS=
3806  fi
3807fi
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3809$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3810if ${ac_cv_prog_cc_c89+:} false; then :
3811  $as_echo_n "(cached) " >&6
3812else
3813  ac_cv_prog_cc_c89=no
3814ac_save_CC=$CC
3815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816/* end confdefs.h.  */
3817#include <stdarg.h>
3818#include <stdio.h>
3819struct stat;
3820/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3821struct buf { int x; };
3822FILE * (*rcsopen) (struct buf *, struct stat *, int);
3823static char *e (p, i)
3824     char **p;
3825     int i;
3826{
3827  return p[i];
3828}
3829static char *f (char * (*g) (char **, int), char **p, ...)
3830{
3831  char *s;
3832  va_list v;
3833  va_start (v,p);
3834  s = g (p, va_arg (v,int));
3835  va_end (v);
3836  return s;
3837}
3838
3839/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3840   function prototypes and stuff, but not '\xHH' hex character constants.
3841   These don't provoke an error unfortunately, instead are silently treated
3842   as 'x'.  The following induces an error, until -std is added to get
3843   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3844   array size at least.  It's necessary to write '\x00'==0 to get something
3845   that's true only with -std.  */
3846int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3847
3848/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3849   inside strings and character constants.  */
3850#define FOO(x) 'x'
3851int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3852
3853int test (int i, double x);
3854struct s1 {int (*f) (int a);};
3855struct s2 {int (*f) (double a);};
3856int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3857int argc;
3858char **argv;
3859int
3860main ()
3861{
3862return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3863  ;
3864  return 0;
3865}
3866_ACEOF
3867for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3868	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3869do
3870  CC="$ac_save_CC $ac_arg"
3871  if ac_fn_c_try_compile "$LINENO"; then :
3872  ac_cv_prog_cc_c89=$ac_arg
3873fi
3874rm -f core conftest.err conftest.$ac_objext
3875  test "x$ac_cv_prog_cc_c89" != "xno" && break
3876done
3877rm -f conftest.$ac_ext
3878CC=$ac_save_CC
3879
3880fi
3881# AC_CACHE_VAL
3882case "x$ac_cv_prog_cc_c89" in
3883  x)
3884    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3885$as_echo "none needed" >&6; } ;;
3886  xno)
3887    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3888$as_echo "unsupported" >&6; } ;;
3889  *)
3890    CC="$CC $ac_cv_prog_cc_c89"
3891    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3892$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3893esac
3894if test "x$ac_cv_prog_cc_c89" != xno; then :
3895
3896fi
3897
3898ac_ext=c
3899ac_cpp='$CPP $CPPFLAGS'
3900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902ac_compiler_gnu=$ac_cv_c_compiler_gnu
3903
3904ac_ext=cpp
3905ac_cpp='$CXXCPP $CPPFLAGS'
3906ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3909if test -z "$CXX"; then
3910  if test -n "$CCC"; then
3911    CXX=$CCC
3912  else
3913    if test -n "$ac_tool_prefix"; then
3914  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3915  do
3916    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3917set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919$as_echo_n "checking for $ac_word... " >&6; }
3920if ${ac_cv_prog_CXX+:} false; then :
3921  $as_echo_n "(cached) " >&6
3922else
3923  if test -n "$CXX"; then
3924  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3925else
3926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927for as_dir in $PATH
3928do
3929  IFS=$as_save_IFS
3930  test -z "$as_dir" && as_dir=.
3931    for ac_exec_ext in '' $ac_executable_extensions; do
3932  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3933    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3934    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3935    break 2
3936  fi
3937done
3938  done
3939IFS=$as_save_IFS
3940
3941fi
3942fi
3943CXX=$ac_cv_prog_CXX
3944if test -n "$CXX"; then
3945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3946$as_echo "$CXX" >&6; }
3947else
3948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949$as_echo "no" >&6; }
3950fi
3951
3952
3953    test -n "$CXX" && break
3954  done
3955fi
3956if test -z "$CXX"; then
3957  ac_ct_CXX=$CXX
3958  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3959do
3960  # Extract the first word of "$ac_prog", so it can be a program name with args.
3961set dummy $ac_prog; ac_word=$2
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963$as_echo_n "checking for $ac_word... " >&6; }
3964if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3965  $as_echo_n "(cached) " >&6
3966else
3967  if test -n "$ac_ct_CXX"; then
3968  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3969else
3970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971for as_dir in $PATH
3972do
3973  IFS=$as_save_IFS
3974  test -z "$as_dir" && as_dir=.
3975    for ac_exec_ext in '' $ac_executable_extensions; do
3976  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977    ac_cv_prog_ac_ct_CXX="$ac_prog"
3978    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3979    break 2
3980  fi
3981done
3982  done
3983IFS=$as_save_IFS
3984
3985fi
3986fi
3987ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3988if test -n "$ac_ct_CXX"; then
3989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3990$as_echo "$ac_ct_CXX" >&6; }
3991else
3992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993$as_echo "no" >&6; }
3994fi
3995
3996
3997  test -n "$ac_ct_CXX" && break
3998done
3999
4000  if test "x$ac_ct_CXX" = x; then
4001    CXX="g++"
4002  else
4003    case $cross_compiling:$ac_tool_warned in
4004yes:)
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4006$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4007ac_tool_warned=yes ;;
4008esac
4009    CXX=$ac_ct_CXX
4010  fi
4011fi
4012
4013  fi
4014fi
4015# Provide some information about the compiler.
4016$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4017set X $ac_compile
4018ac_compiler=$2
4019for ac_option in --version -v -V -qversion; do
4020  { { ac_try="$ac_compiler $ac_option >&5"
4021case "(($ac_try" in
4022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023  *) ac_try_echo=$ac_try;;
4024esac
4025eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4026$as_echo "$ac_try_echo"; } >&5
4027  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4028  ac_status=$?
4029  if test -s conftest.err; then
4030    sed '10a\
4031... rest of stderr output deleted ...
4032         10q' conftest.err >conftest.er1
4033    cat conftest.er1 >&5
4034  fi
4035  rm -f conftest.er1 conftest.err
4036  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4037  test $ac_status = 0; }
4038done
4039
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4041$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4042if ${ac_cv_cxx_compiler_gnu+:} false; then :
4043  $as_echo_n "(cached) " >&6
4044else
4045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046/* end confdefs.h.  */
4047
4048int
4049main ()
4050{
4051#ifndef __GNUC__
4052       choke me
4053#endif
4054
4055  ;
4056  return 0;
4057}
4058_ACEOF
4059if ac_fn_cxx_try_compile "$LINENO"; then :
4060  ac_compiler_gnu=yes
4061else
4062  ac_compiler_gnu=no
4063fi
4064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4066
4067fi
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4069$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4070if test $ac_compiler_gnu = yes; then
4071  GXX=yes
4072else
4073  GXX=
4074fi
4075ac_test_CXXFLAGS=${CXXFLAGS+set}
4076ac_save_CXXFLAGS=$CXXFLAGS
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4078$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4079if ${ac_cv_prog_cxx_g+:} false; then :
4080  $as_echo_n "(cached) " >&6
4081else
4082  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4083   ac_cxx_werror_flag=yes
4084   ac_cv_prog_cxx_g=no
4085   CXXFLAGS="-g"
4086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087/* end confdefs.h.  */
4088
4089int
4090main ()
4091{
4092
4093  ;
4094  return 0;
4095}
4096_ACEOF
4097if ac_fn_cxx_try_compile "$LINENO"; then :
4098  ac_cv_prog_cxx_g=yes
4099else
4100  CXXFLAGS=""
4101      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102/* end confdefs.h.  */
4103
4104int
4105main ()
4106{
4107
4108  ;
4109  return 0;
4110}
4111_ACEOF
4112if ac_fn_cxx_try_compile "$LINENO"; then :
4113
4114else
4115  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4116	 CXXFLAGS="-g"
4117	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118/* end confdefs.h.  */
4119
4120int
4121main ()
4122{
4123
4124  ;
4125  return 0;
4126}
4127_ACEOF
4128if ac_fn_cxx_try_compile "$LINENO"; then :
4129  ac_cv_prog_cxx_g=yes
4130fi
4131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132fi
4133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134fi
4135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4137fi
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4139$as_echo "$ac_cv_prog_cxx_g" >&6; }
4140if test "$ac_test_CXXFLAGS" = set; then
4141  CXXFLAGS=$ac_save_CXXFLAGS
4142elif test $ac_cv_prog_cxx_g = yes; then
4143  if test "$GXX" = yes; then
4144    CXXFLAGS="-g -O2"
4145  else
4146    CXXFLAGS="-g"
4147  fi
4148else
4149  if test "$GXX" = yes; then
4150    CXXFLAGS="-O2"
4151  else
4152    CXXFLAGS=
4153  fi
4154fi
4155ac_ext=c
4156ac_cpp='$CPP $CPPFLAGS'
4157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159ac_compiler_gnu=$ac_cv_c_compiler_gnu
4160
4161
4162
4163ac_ext=c
4164ac_cpp='$CPP $CPPFLAGS'
4165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167ac_compiler_gnu=$ac_cv_c_compiler_gnu
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4169$as_echo_n "checking how to run the C preprocessor... " >&6; }
4170# On Suns, sometimes $CPP names a directory.
4171if test -n "$CPP" && test -d "$CPP"; then
4172  CPP=
4173fi
4174if test -z "$CPP"; then
4175  if ${ac_cv_prog_CPP+:} false; then :
4176  $as_echo_n "(cached) " >&6
4177else
4178      # Double quotes because CPP needs to be expanded
4179    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4180    do
4181      ac_preproc_ok=false
4182for ac_c_preproc_warn_flag in '' yes
4183do
4184  # Use a header file that comes with gcc, so configuring glibc
4185  # with a fresh cross-compiler works.
4186  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4187  # <limits.h> exists even on freestanding compilers.
4188  # On the NeXT, cc -E runs the code through the compiler's parser,
4189  # not just through cpp. "Syntax error" is here to catch this case.
4190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191/* end confdefs.h.  */
4192#ifdef __STDC__
4193# include <limits.h>
4194#else
4195# include <assert.h>
4196#endif
4197		     Syntax error
4198_ACEOF
4199if ac_fn_c_try_cpp "$LINENO"; then :
4200
4201else
4202  # Broken: fails on valid input.
4203continue
4204fi
4205rm -f conftest.err conftest.i conftest.$ac_ext
4206
4207  # OK, works on sane cases.  Now check whether nonexistent headers
4208  # can be detected and how.
4209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210/* end confdefs.h.  */
4211#include <ac_nonexistent.h>
4212_ACEOF
4213if ac_fn_c_try_cpp "$LINENO"; then :
4214  # Broken: success on invalid input.
4215continue
4216else
4217  # Passes both tests.
4218ac_preproc_ok=:
4219break
4220fi
4221rm -f conftest.err conftest.i conftest.$ac_ext
4222
4223done
4224# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4225rm -f conftest.i conftest.err conftest.$ac_ext
4226if $ac_preproc_ok; then :
4227  break
4228fi
4229
4230    done
4231    ac_cv_prog_CPP=$CPP
4232
4233fi
4234  CPP=$ac_cv_prog_CPP
4235else
4236  ac_cv_prog_CPP=$CPP
4237fi
4238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4239$as_echo "$CPP" >&6; }
4240ac_preproc_ok=false
4241for ac_c_preproc_warn_flag in '' yes
4242do
4243  # Use a header file that comes with gcc, so configuring glibc
4244  # with a fresh cross-compiler works.
4245  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4246  # <limits.h> exists even on freestanding compilers.
4247  # On the NeXT, cc -E runs the code through the compiler's parser,
4248  # not just through cpp. "Syntax error" is here to catch this case.
4249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250/* end confdefs.h.  */
4251#ifdef __STDC__
4252# include <limits.h>
4253#else
4254# include <assert.h>
4255#endif
4256		     Syntax error
4257_ACEOF
4258if ac_fn_c_try_cpp "$LINENO"; then :
4259
4260else
4261  # Broken: fails on valid input.
4262continue
4263fi
4264rm -f conftest.err conftest.i conftest.$ac_ext
4265
4266  # OK, works on sane cases.  Now check whether nonexistent headers
4267  # can be detected and how.
4268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269/* end confdefs.h.  */
4270#include <ac_nonexistent.h>
4271_ACEOF
4272if ac_fn_c_try_cpp "$LINENO"; then :
4273  # Broken: success on invalid input.
4274continue
4275else
4276  # Passes both tests.
4277ac_preproc_ok=:
4278break
4279fi
4280rm -f conftest.err conftest.i conftest.$ac_ext
4281
4282done
4283# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4284rm -f conftest.i conftest.err conftest.$ac_ext
4285if $ac_preproc_ok; then :
4286
4287else
4288  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4290as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4291See \`config.log' for more details" "$LINENO" 5; }
4292fi
4293
4294ac_ext=c
4295ac_cpp='$CPP $CPPFLAGS'
4296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298ac_compiler_gnu=$ac_cv_c_compiler_gnu
4299
4300
4301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4302$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4303if ${ac_cv_path_GREP+:} false; then :
4304  $as_echo_n "(cached) " >&6
4305else
4306  if test -z "$GREP"; then
4307  ac_path_GREP_found=false
4308  # Loop through the user's path and test for each of PROGNAME-LIST
4309  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4311do
4312  IFS=$as_save_IFS
4313  test -z "$as_dir" && as_dir=.
4314    for ac_prog in grep ggrep; do
4315    for ac_exec_ext in '' $ac_executable_extensions; do
4316      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4317      as_fn_executable_p "$ac_path_GREP" || continue
4318# Check for GNU ac_path_GREP and select it if it is found.
4319  # Check for GNU $ac_path_GREP
4320case `"$ac_path_GREP" --version 2>&1` in
4321*GNU*)
4322  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4323*)
4324  ac_count=0
4325  $as_echo_n 0123456789 >"conftest.in"
4326  while :
4327  do
4328    cat "conftest.in" "conftest.in" >"conftest.tmp"
4329    mv "conftest.tmp" "conftest.in"
4330    cp "conftest.in" "conftest.nl"
4331    $as_echo 'GREP' >> "conftest.nl"
4332    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4333    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4334    as_fn_arith $ac_count + 1 && ac_count=$as_val
4335    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4336      # Best one so far, save it but keep looking for a better one
4337      ac_cv_path_GREP="$ac_path_GREP"
4338      ac_path_GREP_max=$ac_count
4339    fi
4340    # 10*(2^10) chars as input seems more than enough
4341    test $ac_count -gt 10 && break
4342  done
4343  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4344esac
4345
4346      $ac_path_GREP_found && break 3
4347    done
4348  done
4349  done
4350IFS=$as_save_IFS
4351  if test -z "$ac_cv_path_GREP"; then
4352    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4353  fi
4354else
4355  ac_cv_path_GREP=$GREP
4356fi
4357
4358fi
4359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4360$as_echo "$ac_cv_path_GREP" >&6; }
4361 GREP="$ac_cv_path_GREP"
4362
4363
4364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4365$as_echo_n "checking for egrep... " >&6; }
4366if ${ac_cv_path_EGREP+:} false; then :
4367  $as_echo_n "(cached) " >&6
4368else
4369  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4370   then ac_cv_path_EGREP="$GREP -E"
4371   else
4372     if test -z "$EGREP"; then
4373  ac_path_EGREP_found=false
4374  # Loop through the user's path and test for each of PROGNAME-LIST
4375  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4377do
4378  IFS=$as_save_IFS
4379  test -z "$as_dir" && as_dir=.
4380    for ac_prog in egrep; do
4381    for ac_exec_ext in '' $ac_executable_extensions; do
4382      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4383      as_fn_executable_p "$ac_path_EGREP" || continue
4384# Check for GNU ac_path_EGREP and select it if it is found.
4385  # Check for GNU $ac_path_EGREP
4386case `"$ac_path_EGREP" --version 2>&1` in
4387*GNU*)
4388  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4389*)
4390  ac_count=0
4391  $as_echo_n 0123456789 >"conftest.in"
4392  while :
4393  do
4394    cat "conftest.in" "conftest.in" >"conftest.tmp"
4395    mv "conftest.tmp" "conftest.in"
4396    cp "conftest.in" "conftest.nl"
4397    $as_echo 'EGREP' >> "conftest.nl"
4398    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4399    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4400    as_fn_arith $ac_count + 1 && ac_count=$as_val
4401    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4402      # Best one so far, save it but keep looking for a better one
4403      ac_cv_path_EGREP="$ac_path_EGREP"
4404      ac_path_EGREP_max=$ac_count
4405    fi
4406    # 10*(2^10) chars as input seems more than enough
4407    test $ac_count -gt 10 && break
4408  done
4409  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4410esac
4411
4412      $ac_path_EGREP_found && break 3
4413    done
4414  done
4415  done
4416IFS=$as_save_IFS
4417  if test -z "$ac_cv_path_EGREP"; then
4418    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4419  fi
4420else
4421  ac_cv_path_EGREP=$EGREP
4422fi
4423
4424   fi
4425fi
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4427$as_echo "$ac_cv_path_EGREP" >&6; }
4428 EGREP="$ac_cv_path_EGREP"
4429
4430
4431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4432$as_echo_n "checking for ANSI C header files... " >&6; }
4433if ${ac_cv_header_stdc+:} false; then :
4434  $as_echo_n "(cached) " >&6
4435else
4436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437/* end confdefs.h.  */
4438#include <stdlib.h>
4439#include <stdarg.h>
4440#include <string.h>
4441#include <float.h>
4442
4443int
4444main ()
4445{
4446
4447  ;
4448  return 0;
4449}
4450_ACEOF
4451if ac_fn_c_try_compile "$LINENO"; then :
4452  ac_cv_header_stdc=yes
4453else
4454  ac_cv_header_stdc=no
4455fi
4456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4457
4458if test $ac_cv_header_stdc = yes; then
4459  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461/* end confdefs.h.  */
4462#include <string.h>
4463
4464_ACEOF
4465if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4466  $EGREP "memchr" >/dev/null 2>&1; then :
4467
4468else
4469  ac_cv_header_stdc=no
4470fi
4471rm -f conftest*
4472
4473fi
4474
4475if test $ac_cv_header_stdc = yes; then
4476  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478/* end confdefs.h.  */
4479#include <stdlib.h>
4480
4481_ACEOF
4482if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4483  $EGREP "free" >/dev/null 2>&1; then :
4484
4485else
4486  ac_cv_header_stdc=no
4487fi
4488rm -f conftest*
4489
4490fi
4491
4492if test $ac_cv_header_stdc = yes; then
4493  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4494  if test "$cross_compiling" = yes; then :
4495  :
4496else
4497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498/* end confdefs.h.  */
4499#include <ctype.h>
4500#include <stdlib.h>
4501#if ((' ' & 0x0FF) == 0x020)
4502# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4503# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4504#else
4505# define ISLOWER(c) \
4506		   (('a' <= (c) && (c) <= 'i') \
4507		     || ('j' <= (c) && (c) <= 'r') \
4508		     || ('s' <= (c) && (c) <= 'z'))
4509# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4510#endif
4511
4512#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4513int
4514main ()
4515{
4516  int i;
4517  for (i = 0; i < 256; i++)
4518    if (XOR (islower (i), ISLOWER (i))
4519	|| toupper (i) != TOUPPER (i))
4520      return 2;
4521  return 0;
4522}
4523_ACEOF
4524if ac_fn_c_try_run "$LINENO"; then :
4525
4526else
4527  ac_cv_header_stdc=no
4528fi
4529rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4530  conftest.$ac_objext conftest.beam conftest.$ac_ext
4531fi
4532
4533fi
4534fi
4535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4536$as_echo "$ac_cv_header_stdc" >&6; }
4537if test $ac_cv_header_stdc = yes; then
4538
4539$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4540
4541fi
4542
4543# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4544for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4545		  inttypes.h stdint.h unistd.h
4546do :
4547  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4548ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4549"
4550if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4551  cat >>confdefs.h <<_ACEOF
4552#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4553_ACEOF
4554
4555fi
4556
4557done
4558
4559
4560
4561  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4562if test "x$ac_cv_header_minix_config_h" = xyes; then :
4563  MINIX=yes
4564else
4565  MINIX=
4566fi
4567
4568
4569  if test "$MINIX" = yes; then
4570
4571$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4572
4573
4574$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4575
4576
4577$as_echo "#define _MINIX 1" >>confdefs.h
4578
4579  fi
4580
4581
4582  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4583$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4584if ${ac_cv_safe_to_define___extensions__+:} false; then :
4585  $as_echo_n "(cached) " >&6
4586else
4587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588/* end confdefs.h.  */
4589
4590#         define __EXTENSIONS__ 1
4591          $ac_includes_default
4592int
4593main ()
4594{
4595
4596  ;
4597  return 0;
4598}
4599_ACEOF
4600if ac_fn_c_try_compile "$LINENO"; then :
4601  ac_cv_safe_to_define___extensions__=yes
4602else
4603  ac_cv_safe_to_define___extensions__=no
4604fi
4605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606fi
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4608$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4609  test $ac_cv_safe_to_define___extensions__ = yes &&
4610    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4611
4612  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4613
4614  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4615
4616  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4617
4618  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4619
4620
4621ac_aux_dir=
4622for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4623  if test -f "$ac_dir/install-sh"; then
4624    ac_aux_dir=$ac_dir
4625    ac_install_sh="$ac_aux_dir/install-sh -c"
4626    break
4627  elif test -f "$ac_dir/install.sh"; then
4628    ac_aux_dir=$ac_dir
4629    ac_install_sh="$ac_aux_dir/install.sh -c"
4630    break
4631  elif test -f "$ac_dir/shtool"; then
4632    ac_aux_dir=$ac_dir
4633    ac_install_sh="$ac_aux_dir/shtool install -c"
4634    break
4635  fi
4636done
4637if test -z "$ac_aux_dir"; then
4638  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4639fi
4640
4641# These three variables are undocumented and unsupported,
4642# and are intended to be withdrawn in a future Autoconf release.
4643# They can cause serious problems if a builder's source tree is in a directory
4644# whose full name contains unusual characters.
4645ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4646ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4647ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4648
4649
4650# Make sure we can run config.sub.
4651$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4652  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4653
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4655$as_echo_n "checking build system type... " >&6; }
4656if ${ac_cv_build+:} false; then :
4657  $as_echo_n "(cached) " >&6
4658else
4659  ac_build_alias=$build_alias
4660test "x$ac_build_alias" = x &&
4661  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4662test "x$ac_build_alias" = x &&
4663  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4664ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4665  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4666
4667fi
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4669$as_echo "$ac_cv_build" >&6; }
4670case $ac_cv_build in
4671*-*-*) ;;
4672*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4673esac
4674build=$ac_cv_build
4675ac_save_IFS=$IFS; IFS='-'
4676set x $ac_cv_build
4677shift
4678build_cpu=$1
4679build_vendor=$2
4680shift; shift
4681# Remember, the first character of IFS is used to create $*,
4682# except with old shells:
4683build_os=$*
4684IFS=$ac_save_IFS
4685case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4686
4687
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4689$as_echo_n "checking host system type... " >&6; }
4690if ${ac_cv_host+:} false; then :
4691  $as_echo_n "(cached) " >&6
4692else
4693  if test "x$host_alias" = x; then
4694  ac_cv_host=$ac_cv_build
4695else
4696  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4697    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4698fi
4699
4700fi
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4702$as_echo "$ac_cv_host" >&6; }
4703case $ac_cv_host in
4704*-*-*) ;;
4705*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4706esac
4707host=$ac_cv_host
4708ac_save_IFS=$IFS; IFS='-'
4709set x $ac_cv_host
4710shift
4711host_cpu=$1
4712host_vendor=$2
4713shift; shift
4714# Remember, the first character of IFS is used to create $*,
4715# except with old shells:
4716host_os=$*
4717IFS=$ac_save_IFS
4718case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4719
4720
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4722$as_echo_n "checking target system type... " >&6; }
4723if ${ac_cv_target+:} false; then :
4724  $as_echo_n "(cached) " >&6
4725else
4726  if test "x$target_alias" = x; then
4727  ac_cv_target=$ac_cv_host
4728else
4729  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4730    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4731fi
4732
4733fi
4734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4735$as_echo "$ac_cv_target" >&6; }
4736case $ac_cv_target in
4737*-*-*) ;;
4738*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4739esac
4740target=$ac_cv_target
4741ac_save_IFS=$IFS; IFS='-'
4742set x $ac_cv_target
4743shift
4744target_cpu=$1
4745target_vendor=$2
4746shift; shift
4747# Remember, the first character of IFS is used to create $*,
4748# except with old shells:
4749target_os=$*
4750IFS=$ac_save_IFS
4751case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4752
4753
4754# The aliases save the names the user supplied, while $host etc.
4755# will get canonicalized.
4756test -n "$target_alias" &&
4757  test "$program_prefix$program_suffix$program_transform_name" = \
4758    NONENONEs,x,x, &&
4759  program_prefix=${target_alias}-
4760
4761# The tests for host and target for $enable_largefile require
4762# canonical names.
4763
4764
4765
4766# As the $enable_largefile decision depends on --enable-plugins we must set it
4767# even in directories otherwise not depending on the $plugins option.
4768
4769
4770  maybe_plugins=no
4771  for ac_header in dlfcn.h
4772do :
4773  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4774"
4775if test "x$ac_cv_header_dlfcn_h" = xyes; then :
4776  cat >>confdefs.h <<_ACEOF
4777#define HAVE_DLFCN_H 1
4778_ACEOF
4779 maybe_plugins=yes
4780fi
4781
4782done
4783
4784  for ac_header in windows.h
4785do :
4786  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4787"
4788if test "x$ac_cv_header_windows_h" = xyes; then :
4789  cat >>confdefs.h <<_ACEOF
4790#define HAVE_WINDOWS_H 1
4791_ACEOF
4792 maybe_plugins=yes
4793fi
4794
4795done
4796
4797
4798  # Check whether --enable-plugins was given.
4799if test "${enable_plugins+set}" = set; then :
4800  enableval=$enable_plugins; case "${enableval}" in
4801      no) plugins=no ;;
4802      *) plugins=yes
4803         if test "$maybe_plugins" != "yes" ; then
4804	   as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4805	 fi ;;
4806     esac
4807else
4808  plugins=$maybe_plugins
4809
4810fi
4811
4812  if test "$plugins" = "yes"; then
4813    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4814$as_echo_n "checking for library containing dlsym... " >&6; }
4815if ${ac_cv_search_dlsym+:} false; then :
4816  $as_echo_n "(cached) " >&6
4817else
4818  ac_func_search_save_LIBS=$LIBS
4819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820/* end confdefs.h.  */
4821
4822/* Override any GCC internal prototype to avoid an error.
4823   Use char because int might match the return type of a GCC
4824   builtin and then its argument prototype would still apply.  */
4825#ifdef __cplusplus
4826extern "C"
4827#endif
4828char dlsym ();
4829int
4830main ()
4831{
4832return dlsym ();
4833  ;
4834  return 0;
4835}
4836_ACEOF
4837for ac_lib in '' dl; do
4838  if test -z "$ac_lib"; then
4839    ac_res="none required"
4840  else
4841    ac_res=-l$ac_lib
4842    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4843  fi
4844  if ac_fn_c_try_link "$LINENO"; then :
4845  ac_cv_search_dlsym=$ac_res
4846fi
4847rm -f core conftest.err conftest.$ac_objext \
4848    conftest$ac_exeext
4849  if ${ac_cv_search_dlsym+:} false; then :
4850  break
4851fi
4852done
4853if ${ac_cv_search_dlsym+:} false; then :
4854
4855else
4856  ac_cv_search_dlsym=no
4857fi
4858rm conftest.$ac_ext
4859LIBS=$ac_func_search_save_LIBS
4860fi
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4862$as_echo "$ac_cv_search_dlsym" >&6; }
4863ac_res=$ac_cv_search_dlsym
4864if test "$ac_res" != no; then :
4865  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4866
4867fi
4868
4869  fi
4870
4871
4872case "${host}" in
4873  sparc-*-solaris*|i?86-*-solaris*)
4874    # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
4875    # were mutually exclusive until Solaris 11.3.  Without procfs support,
4876    # the bfd/ elf module cannot provide certain routines such as
4877    # elfcore_write_prpsinfo or elfcore_write_prstatus.  So unless the user
4878    # explicitly requested large-file support through the
4879    # --enable-largefile switch, disable large-file support in favor of
4880    # procfs support.
4881    #
4882    # Check if <sys/procfs.h> is incompatible with large-file support.
4883    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884/* end confdefs.h.  */
4885#define _FILE_OFFSET_BITS 64
4886#define _STRUCTURED_PROC 1
4887#include <sys/procfs.h>
4888int
4889main ()
4890{
4891
4892  ;
4893  return 0;
4894}
4895_ACEOF
4896if ac_fn_c_try_compile "$LINENO"; then :
4897  acx_cv_procfs_lfs=yes
4898else
4899  acx_cv_procfs_lfs=no
4900fi
4901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902    #
4903    # Forcefully disable large-file support only if necessary, gdb is in
4904    # tree and enabled.
4905    if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
4906         -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
4907      : ${enable_largefile="no"}
4908      if test "$plugins" = yes; then
4909	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4910plugin support disabled; require large-file support which is incompatible with GDB." >&5
4911$as_echo "$as_me: WARNING:
4912plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
4913	plugins=no
4914      fi
4915    fi
4916    #
4917    # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
4918    # benefit of g++ 9+ which predefines it on Solaris.
4919    if test "$enable_largefile" = no; then
4920      LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
4921
4922    fi
4923    ;;
4924esac
4925
4926# Check whether --enable-largefile was given.
4927if test "${enable_largefile+set}" = set; then :
4928  enableval=$enable_largefile;
4929fi
4930
4931if test "$enable_largefile" != no; then
4932
4933  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4934$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4935if ${ac_cv_sys_largefile_CC+:} false; then :
4936  $as_echo_n "(cached) " >&6
4937else
4938  ac_cv_sys_largefile_CC=no
4939     if test "$GCC" != yes; then
4940       ac_save_CC=$CC
4941       while :; do
4942	 # IRIX 6.2 and later do not support large files by default,
4943	 # so use the C compiler's -n32 option if that helps.
4944	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945/* end confdefs.h.  */
4946#include <sys/types.h>
4947 /* Check that off_t can represent 2**63 - 1 correctly.
4948    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4949    since some C++ compilers masquerading as C compilers
4950    incorrectly reject 9223372036854775807.  */
4951#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4952  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4953		       && LARGE_OFF_T % 2147483647 == 1)
4954		      ? 1 : -1];
4955int
4956main ()
4957{
4958
4959  ;
4960  return 0;
4961}
4962_ACEOF
4963	 if ac_fn_c_try_compile "$LINENO"; then :
4964  break
4965fi
4966rm -f core conftest.err conftest.$ac_objext
4967	 CC="$CC -n32"
4968	 if ac_fn_c_try_compile "$LINENO"; then :
4969  ac_cv_sys_largefile_CC=' -n32'; break
4970fi
4971rm -f core conftest.err conftest.$ac_objext
4972	 break
4973       done
4974       CC=$ac_save_CC
4975       rm -f conftest.$ac_ext
4976    fi
4977fi
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4979$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4980  if test "$ac_cv_sys_largefile_CC" != no; then
4981    CC=$CC$ac_cv_sys_largefile_CC
4982  fi
4983
4984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4985$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4986if ${ac_cv_sys_file_offset_bits+:} false; then :
4987  $as_echo_n "(cached) " >&6
4988else
4989  while :; do
4990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991/* end confdefs.h.  */
4992#include <sys/types.h>
4993 /* Check that off_t can represent 2**63 - 1 correctly.
4994    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4995    since some C++ compilers masquerading as C compilers
4996    incorrectly reject 9223372036854775807.  */
4997#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4998  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4999		       && LARGE_OFF_T % 2147483647 == 1)
5000		      ? 1 : -1];
5001int
5002main ()
5003{
5004
5005  ;
5006  return 0;
5007}
5008_ACEOF
5009if ac_fn_c_try_compile "$LINENO"; then :
5010  ac_cv_sys_file_offset_bits=no; break
5011fi
5012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014/* end confdefs.h.  */
5015#define _FILE_OFFSET_BITS 64
5016#include <sys/types.h>
5017 /* Check that off_t can represent 2**63 - 1 correctly.
5018    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5019    since some C++ compilers masquerading as C compilers
5020    incorrectly reject 9223372036854775807.  */
5021#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5022  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5023		       && LARGE_OFF_T % 2147483647 == 1)
5024		      ? 1 : -1];
5025int
5026main ()
5027{
5028
5029  ;
5030  return 0;
5031}
5032_ACEOF
5033if ac_fn_c_try_compile "$LINENO"; then :
5034  ac_cv_sys_file_offset_bits=64; break
5035fi
5036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5037  ac_cv_sys_file_offset_bits=unknown
5038  break
5039done
5040fi
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5042$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5043case $ac_cv_sys_file_offset_bits in #(
5044  no | unknown) ;;
5045  *)
5046cat >>confdefs.h <<_ACEOF
5047#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5048_ACEOF
5049;;
5050esac
5051rm -rf conftest*
5052  if test $ac_cv_sys_file_offset_bits = unknown; then
5053    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5054$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5055if ${ac_cv_sys_large_files+:} false; then :
5056  $as_echo_n "(cached) " >&6
5057else
5058  while :; do
5059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060/* end confdefs.h.  */
5061#include <sys/types.h>
5062 /* Check that off_t can represent 2**63 - 1 correctly.
5063    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5064    since some C++ compilers masquerading as C compilers
5065    incorrectly reject 9223372036854775807.  */
5066#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5067  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5068		       && LARGE_OFF_T % 2147483647 == 1)
5069		      ? 1 : -1];
5070int
5071main ()
5072{
5073
5074  ;
5075  return 0;
5076}
5077_ACEOF
5078if ac_fn_c_try_compile "$LINENO"; then :
5079  ac_cv_sys_large_files=no; break
5080fi
5081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083/* end confdefs.h.  */
5084#define _LARGE_FILES 1
5085#include <sys/types.h>
5086 /* Check that off_t can represent 2**63 - 1 correctly.
5087    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5088    since some C++ compilers masquerading as C compilers
5089    incorrectly reject 9223372036854775807.  */
5090#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5091  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5092		       && LARGE_OFF_T % 2147483647 == 1)
5093		      ? 1 : -1];
5094int
5095main ()
5096{
5097
5098  ;
5099  return 0;
5100}
5101_ACEOF
5102if ac_fn_c_try_compile "$LINENO"; then :
5103  ac_cv_sys_large_files=1; break
5104fi
5105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5106  ac_cv_sys_large_files=unknown
5107  break
5108done
5109fi
5110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5111$as_echo "$ac_cv_sys_large_files" >&6; }
5112case $ac_cv_sys_large_files in #(
5113  no | unknown) ;;
5114  *)
5115cat >>confdefs.h <<_ACEOF
5116#define _LARGE_FILES $ac_cv_sys_large_files
5117_ACEOF
5118;;
5119esac
5120rm -rf conftest*
5121  fi
5122
5123
5124fi
5125
5126
5127# Expand $ac_aux_dir to an absolute path.
5128am_aux_dir=`cd "$ac_aux_dir" && pwd`
5129
5130if test x"${install_sh+set}" != xset; then
5131  case $am_aux_dir in
5132  *\ * | *\	*)
5133    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5134  *)
5135    install_sh="\${SHELL} $am_aux_dir/install-sh"
5136  esac
5137fi
5138
5139# Installed binaries are usually stripped using 'strip' when the user
5140# run "make install-strip".  However 'strip' might not be the right
5141# tool to use in cross-compilation environments, therefore Automake
5142# will honor the 'STRIP' environment variable to overrule this program.
5143if test "$cross_compiling" != no; then
5144  if test -n "$ac_tool_prefix"; then
5145  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5146set dummy ${ac_tool_prefix}strip; ac_word=$2
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148$as_echo_n "checking for $ac_word... " >&6; }
5149if ${ac_cv_prog_STRIP+:} false; then :
5150  $as_echo_n "(cached) " >&6
5151else
5152  if test -n "$STRIP"; then
5153  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5154else
5155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156for as_dir in $PATH
5157do
5158  IFS=$as_save_IFS
5159  test -z "$as_dir" && as_dir=.
5160    for ac_exec_ext in '' $ac_executable_extensions; do
5161  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5162    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5163    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164    break 2
5165  fi
5166done
5167  done
5168IFS=$as_save_IFS
5169
5170fi
5171fi
5172STRIP=$ac_cv_prog_STRIP
5173if test -n "$STRIP"; then
5174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5175$as_echo "$STRIP" >&6; }
5176else
5177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178$as_echo "no" >&6; }
5179fi
5180
5181
5182fi
5183if test -z "$ac_cv_prog_STRIP"; then
5184  ac_ct_STRIP=$STRIP
5185  # Extract the first word of "strip", so it can be a program name with args.
5186set dummy strip; ac_word=$2
5187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188$as_echo_n "checking for $ac_word... " >&6; }
5189if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5190  $as_echo_n "(cached) " >&6
5191else
5192  if test -n "$ac_ct_STRIP"; then
5193  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5194else
5195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196for as_dir in $PATH
5197do
5198  IFS=$as_save_IFS
5199  test -z "$as_dir" && as_dir=.
5200    for ac_exec_ext in '' $ac_executable_extensions; do
5201  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202    ac_cv_prog_ac_ct_STRIP="strip"
5203    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5204    break 2
5205  fi
5206done
5207  done
5208IFS=$as_save_IFS
5209
5210fi
5211fi
5212ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5213if test -n "$ac_ct_STRIP"; then
5214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5215$as_echo "$ac_ct_STRIP" >&6; }
5216else
5217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218$as_echo "no" >&6; }
5219fi
5220
5221  if test "x$ac_ct_STRIP" = x; then
5222    STRIP=":"
5223  else
5224    case $cross_compiling:$ac_tool_warned in
5225yes:)
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5227$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5228ac_tool_warned=yes ;;
5229esac
5230    STRIP=$ac_ct_STRIP
5231  fi
5232else
5233  STRIP="$ac_cv_prog_STRIP"
5234fi
5235
5236fi
5237INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5238
5239
5240ac_aux_dir=
5241for ac_dir in .. "$srcdir"/..; do
5242  if test -f "$ac_dir/install-sh"; then
5243    ac_aux_dir=$ac_dir
5244    ac_install_sh="$ac_aux_dir/install-sh -c"
5245    break
5246  elif test -f "$ac_dir/install.sh"; then
5247    ac_aux_dir=$ac_dir
5248    ac_install_sh="$ac_aux_dir/install.sh -c"
5249    break
5250  elif test -f "$ac_dir/shtool"; then
5251    ac_aux_dir=$ac_dir
5252    ac_install_sh="$ac_aux_dir/shtool install -c"
5253    break
5254  fi
5255done
5256if test -z "$ac_aux_dir"; then
5257  as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5258fi
5259
5260# These three variables are undocumented and unsupported,
5261# and are intended to be withdrawn in a future Autoconf release.
5262# They can cause serious problems if a builder's source tree is in a directory
5263# whose full name contains unusual characters.
5264ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
5265ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
5266ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
5267
5268
5269
5270# Set build, build_cpu, build_vendor and build_os.
5271
5272
5273# Set host, host_cpu, host_vendor, and host_os.
5274
5275
5276# Set target, target_cpu, target_vendor, and target_os.
5277
5278
5279 case ${build_alias} in
5280  "") build_noncanonical=${build} ;;
5281  *) build_noncanonical=${build_alias} ;;
5282esac
5283
5284 case ${host_alias} in
5285  "") host_noncanonical=${build_noncanonical} ;;
5286  *) host_noncanonical=${host_alias} ;;
5287esac
5288
5289 case ${target_alias} in
5290  "") target_noncanonical=${host_noncanonical} ;;
5291  *) target_noncanonical=${target_alias} ;;
5292esac
5293
5294
5295
5296
5297test "$program_prefix" != NONE &&
5298  program_transform_name="s&^&$program_prefix&;$program_transform_name"
5299# Use a double $ so make ignores it.
5300test "$program_suffix" != NONE &&
5301  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5302# Double any \ or $.
5303# By default was `s,x,x', remove it if useless.
5304ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5305program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5306
5307
5308# We require libtool to link with the in-tree libtool libraries
5309# the proper way.
5310case `pwd` in
5311  *\ * | *\	*)
5312    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5313$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5314esac
5315
5316
5317
5318macro_version='2.2.7a'
5319macro_revision='1.3134'
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333ltmain="$ac_aux_dir/ltmain.sh"
5334
5335# Backslashify metacharacters that are still active within
5336# double-quoted strings.
5337sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5338
5339# Same as above, but do not quote variable references.
5340double_quote_subst='s/\(["`\\]\)/\\\1/g'
5341
5342# Sed substitution to delay expansion of an escaped shell variable in a
5343# double_quote_subst'ed string.
5344delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5345
5346# Sed substitution to delay expansion of an escaped single quote.
5347delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5348
5349# Sed substitution to avoid accidental globbing in evaled expressions
5350no_glob_subst='s/\*/\\\*/g'
5351
5352ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5353ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5354ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5355
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5357$as_echo_n "checking how to print strings... " >&6; }
5358# Test print first, because it will be a builtin if present.
5359if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5360   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5361  ECHO='print -r --'
5362elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5363  ECHO='printf %s\n'
5364else
5365  # Use this function as a fallback that always works.
5366  func_fallback_echo ()
5367  {
5368    eval 'cat <<_LTECHO_EOF
5369$1
5370_LTECHO_EOF'
5371  }
5372  ECHO='func_fallback_echo'
5373fi
5374
5375# func_echo_all arg...
5376# Invoke $ECHO with all args, space-separated.
5377func_echo_all ()
5378{
5379    $ECHO ""
5380}
5381
5382case "$ECHO" in
5383  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5384$as_echo "printf" >&6; } ;;
5385  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5386$as_echo "print -r" >&6; } ;;
5387  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5388$as_echo "cat" >&6; } ;;
5389esac
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5405$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5406if ${ac_cv_path_SED+:} false; then :
5407  $as_echo_n "(cached) " >&6
5408else
5409            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5410     for ac_i in 1 2 3 4 5 6 7; do
5411       ac_script="$ac_script$as_nl$ac_script"
5412     done
5413     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5414     { ac_script=; unset ac_script;}
5415     if test -z "$SED"; then
5416  ac_path_SED_found=false
5417  # Loop through the user's path and test for each of PROGNAME-LIST
5418  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419for as_dir in $PATH
5420do
5421  IFS=$as_save_IFS
5422  test -z "$as_dir" && as_dir=.
5423    for ac_prog in sed gsed; do
5424    for ac_exec_ext in '' $ac_executable_extensions; do
5425      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5426      as_fn_executable_p "$ac_path_SED" || continue
5427# Check for GNU ac_path_SED and select it if it is found.
5428  # Check for GNU $ac_path_SED
5429case `"$ac_path_SED" --version 2>&1` in
5430*GNU*)
5431  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5432*)
5433  ac_count=0
5434  $as_echo_n 0123456789 >"conftest.in"
5435  while :
5436  do
5437    cat "conftest.in" "conftest.in" >"conftest.tmp"
5438    mv "conftest.tmp" "conftest.in"
5439    cp "conftest.in" "conftest.nl"
5440    $as_echo '' >> "conftest.nl"
5441    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5442    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5443    as_fn_arith $ac_count + 1 && ac_count=$as_val
5444    if test $ac_count -gt ${ac_path_SED_max-0}; then
5445      # Best one so far, save it but keep looking for a better one
5446      ac_cv_path_SED="$ac_path_SED"
5447      ac_path_SED_max=$ac_count
5448    fi
5449    # 10*(2^10) chars as input seems more than enough
5450    test $ac_count -gt 10 && break
5451  done
5452  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5453esac
5454
5455      $ac_path_SED_found && break 3
5456    done
5457  done
5458  done
5459IFS=$as_save_IFS
5460  if test -z "$ac_cv_path_SED"; then
5461    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5462  fi
5463else
5464  ac_cv_path_SED=$SED
5465fi
5466
5467fi
5468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5469$as_echo "$ac_cv_path_SED" >&6; }
5470 SED="$ac_cv_path_SED"
5471  rm -f conftest.sed
5472
5473test -z "$SED" && SED=sed
5474Xsed="$SED -e 1s/^X//"
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5487$as_echo_n "checking for fgrep... " >&6; }
5488if ${ac_cv_path_FGREP+:} false; then :
5489  $as_echo_n "(cached) " >&6
5490else
5491  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5492   then ac_cv_path_FGREP="$GREP -F"
5493   else
5494     if test -z "$FGREP"; then
5495  ac_path_FGREP_found=false
5496  # Loop through the user's path and test for each of PROGNAME-LIST
5497  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5499do
5500  IFS=$as_save_IFS
5501  test -z "$as_dir" && as_dir=.
5502    for ac_prog in fgrep; do
5503    for ac_exec_ext in '' $ac_executable_extensions; do
5504      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5505      as_fn_executable_p "$ac_path_FGREP" || continue
5506# Check for GNU ac_path_FGREP and select it if it is found.
5507  # Check for GNU $ac_path_FGREP
5508case `"$ac_path_FGREP" --version 2>&1` in
5509*GNU*)
5510  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5511*)
5512  ac_count=0
5513  $as_echo_n 0123456789 >"conftest.in"
5514  while :
5515  do
5516    cat "conftest.in" "conftest.in" >"conftest.tmp"
5517    mv "conftest.tmp" "conftest.in"
5518    cp "conftest.in" "conftest.nl"
5519    $as_echo 'FGREP' >> "conftest.nl"
5520    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5521    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5522    as_fn_arith $ac_count + 1 && ac_count=$as_val
5523    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5524      # Best one so far, save it but keep looking for a better one
5525      ac_cv_path_FGREP="$ac_path_FGREP"
5526      ac_path_FGREP_max=$ac_count
5527    fi
5528    # 10*(2^10) chars as input seems more than enough
5529    test $ac_count -gt 10 && break
5530  done
5531  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5532esac
5533
5534      $ac_path_FGREP_found && break 3
5535    done
5536  done
5537  done
5538IFS=$as_save_IFS
5539  if test -z "$ac_cv_path_FGREP"; then
5540    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5541  fi
5542else
5543  ac_cv_path_FGREP=$FGREP
5544fi
5545
5546   fi
5547fi
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5549$as_echo "$ac_cv_path_FGREP" >&6; }
5550 FGREP="$ac_cv_path_FGREP"
5551
5552
5553test -z "$GREP" && GREP=grep
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573# Check whether --with-gnu-ld was given.
5574if test "${with_gnu_ld+set}" = set; then :
5575  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5576else
5577  with_gnu_ld=no
5578fi
5579
5580ac_prog=ld
5581if test "$GCC" = yes; then
5582  # Check if gcc -print-prog-name=ld gives a path.
5583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5584$as_echo_n "checking for ld used by $CC... " >&6; }
5585  case $host in
5586  *-*-mingw*)
5587    # gcc leaves a trailing carriage return which upsets mingw
5588    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5589  *)
5590    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5591  esac
5592  case $ac_prog in
5593    # Accept absolute paths.
5594    [\\/]* | ?:[\\/]*)
5595      re_direlt='/[^/][^/]*/\.\./'
5596      # Canonicalize the pathname of ld
5597      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5598      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5599	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5600      done
5601      test -z "$LD" && LD="$ac_prog"
5602      ;;
5603  "")
5604    # If it fails, then pretend we aren't using GCC.
5605    ac_prog=ld
5606    ;;
5607  *)
5608    # If it is relative, then search for the first ld in PATH.
5609    with_gnu_ld=unknown
5610    ;;
5611  esac
5612elif test "$with_gnu_ld" = yes; then
5613  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5614$as_echo_n "checking for GNU ld... " >&6; }
5615else
5616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5617$as_echo_n "checking for non-GNU ld... " >&6; }
5618fi
5619if ${lt_cv_path_LD+:} false; then :
5620  $as_echo_n "(cached) " >&6
5621else
5622  if test -z "$LD"; then
5623  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5624  for ac_dir in $PATH; do
5625    IFS="$lt_save_ifs"
5626    test -z "$ac_dir" && ac_dir=.
5627    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5628      lt_cv_path_LD="$ac_dir/$ac_prog"
5629      # Check to see if the program is GNU ld.  I'd rather use --version,
5630      # but apparently some variants of GNU ld only accept -v.
5631      # Break only if it was the GNU/non-GNU ld that we prefer.
5632      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5633      *GNU* | *'with BFD'*)
5634	test "$with_gnu_ld" != no && break
5635	;;
5636      *)
5637	test "$with_gnu_ld" != yes && break
5638	;;
5639      esac
5640    fi
5641  done
5642  IFS="$lt_save_ifs"
5643else
5644  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5645fi
5646fi
5647
5648LD="$lt_cv_path_LD"
5649if test -n "$LD"; then
5650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5651$as_echo "$LD" >&6; }
5652else
5653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654$as_echo "no" >&6; }
5655fi
5656test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5658$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5659if ${lt_cv_prog_gnu_ld+:} false; then :
5660  $as_echo_n "(cached) " >&6
5661else
5662  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5663case `$LD -v 2>&1 </dev/null` in
5664*GNU* | *'with BFD'*)
5665  lt_cv_prog_gnu_ld=yes
5666  ;;
5667*)
5668  lt_cv_prog_gnu_ld=no
5669  ;;
5670esac
5671fi
5672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5673$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5674with_gnu_ld=$lt_cv_prog_gnu_ld
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5685$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5686if ${lt_cv_path_NM+:} false; then :
5687  $as_echo_n "(cached) " >&6
5688else
5689  if test -n "$NM"; then
5690   # Let the user override the nm to test.
5691   lt_nm_to_check="$NM"
5692 else
5693   lt_nm_to_check="${ac_tool_prefix}nm"
5694   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5695     lt_nm_to_check="$lt_nm_to_check nm"
5696   fi
5697 fi
5698 for lt_tmp_nm in "$lt_nm_to_check"; do
5699   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5700   for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5701     IFS="$lt_save_ifs"
5702     test -z "$ac_dir" && ac_dir=.
5703     # Strip out any user-provided options from the nm to test twice,
5704     # the first time to test to see if nm (rather than its options) has
5705     # an explicit path, the second time to yield a file which can be
5706     # nm'ed itself.
5707     tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5708     case "$tmp_nm_path" in
5709     */*|*\\*) tmp_nm="$lt_tmp_nm";;
5710     *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5711     esac
5712     tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5713     if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5714       # Check to see if the nm accepts a BSD-compat flag.
5715       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5716       #   nm: unknown option "B" ignored
5717       case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5718       *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5719	 break
5720	 ;;
5721       *)
5722	 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5723	 *$tmp_nm*)
5724	   lt_cv_path_NM="$tmp_nm -p"
5725	   break
5726	   ;;
5727	 *)
5728	   lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5729	   continue # so that we can try to find one that supports BSD flags
5730	   ;;
5731	 esac
5732	 ;;
5733       esac
5734     fi
5735   done
5736   IFS="$lt_save_ifs"
5737 done
5738 : ${lt_cv_path_NM=no}
5739fi
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5741$as_echo "$lt_cv_path_NM" >&6; }
5742if test "$lt_cv_path_NM" != "no"; then
5743  NM="$lt_cv_path_NM"
5744else
5745  # Didn't find any BSD compatible name lister, look for dumpbin.
5746  if test -n "$DUMPBIN"; then :
5747    # Let the user override the test.
5748  else
5749    if test -n "$ac_tool_prefix"; then
5750  for ac_prog in dumpbin "link -dump"
5751  do
5752    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5753set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755$as_echo_n "checking for $ac_word... " >&6; }
5756if ${ac_cv_prog_DUMPBIN+:} false; then :
5757  $as_echo_n "(cached) " >&6
5758else
5759  if test -n "$DUMPBIN"; then
5760  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5761else
5762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763for as_dir in $PATH
5764do
5765  IFS=$as_save_IFS
5766  test -z "$as_dir" && as_dir=.
5767    for ac_exec_ext in '' $ac_executable_extensions; do
5768  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5770    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771    break 2
5772  fi
5773done
5774  done
5775IFS=$as_save_IFS
5776
5777fi
5778fi
5779DUMPBIN=$ac_cv_prog_DUMPBIN
5780if test -n "$DUMPBIN"; then
5781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5782$as_echo "$DUMPBIN" >&6; }
5783else
5784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785$as_echo "no" >&6; }
5786fi
5787
5788
5789    test -n "$DUMPBIN" && break
5790  done
5791fi
5792if test -z "$DUMPBIN"; then
5793  ac_ct_DUMPBIN=$DUMPBIN
5794  for ac_prog in dumpbin "link -dump"
5795do
5796  # Extract the first word of "$ac_prog", so it can be a program name with args.
5797set dummy $ac_prog; ac_word=$2
5798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799$as_echo_n "checking for $ac_word... " >&6; }
5800if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5801  $as_echo_n "(cached) " >&6
5802else
5803  if test -n "$ac_ct_DUMPBIN"; then
5804  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5805else
5806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807for as_dir in $PATH
5808do
5809  IFS=$as_save_IFS
5810  test -z "$as_dir" && as_dir=.
5811    for ac_exec_ext in '' $ac_executable_extensions; do
5812  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815    break 2
5816  fi
5817done
5818  done
5819IFS=$as_save_IFS
5820
5821fi
5822fi
5823ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5824if test -n "$ac_ct_DUMPBIN"; then
5825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5826$as_echo "$ac_ct_DUMPBIN" >&6; }
5827else
5828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829$as_echo "no" >&6; }
5830fi
5831
5832
5833  test -n "$ac_ct_DUMPBIN" && break
5834done
5835
5836  if test "x$ac_ct_DUMPBIN" = x; then
5837    DUMPBIN=":"
5838  else
5839    case $cross_compiling:$ac_tool_warned in
5840yes:)
5841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5843ac_tool_warned=yes ;;
5844esac
5845    DUMPBIN=$ac_ct_DUMPBIN
5846  fi
5847fi
5848
5849    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5850    *COFF*)
5851      DUMPBIN="$DUMPBIN -symbols"
5852      ;;
5853    *)
5854      DUMPBIN=:
5855      ;;
5856    esac
5857  fi
5858
5859  if test "$DUMPBIN" != ":"; then
5860    NM="$DUMPBIN"
5861  fi
5862fi
5863test -z "$NM" && NM=nm
5864
5865
5866
5867
5868
5869
5870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5871$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5872if ${lt_cv_nm_interface+:} false; then :
5873  $as_echo_n "(cached) " >&6
5874else
5875  lt_cv_nm_interface="BSD nm"
5876  echo "int some_variable = 0;" > conftest.$ac_ext
5877  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5878  (eval "$ac_compile" 2>conftest.err)
5879  cat conftest.err >&5
5880  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5881  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5882  cat conftest.err >&5
5883  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5884  cat conftest.out >&5
5885  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5886    lt_cv_nm_interface="MS dumpbin"
5887  fi
5888  rm -f conftest*
5889fi
5890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5891$as_echo "$lt_cv_nm_interface" >&6; }
5892
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5894$as_echo_n "checking whether ln -s works... " >&6; }
5895LN_S=$as_ln_s
5896if test "$LN_S" = "ln -s"; then
5897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5898$as_echo "yes" >&6; }
5899else
5900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5901$as_echo "no, using $LN_S" >&6; }
5902fi
5903
5904# find the maximum length of command line arguments
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5906$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5907if ${lt_cv_sys_max_cmd_len+:} false; then :
5908  $as_echo_n "(cached) " >&6
5909else
5910    i=0
5911  teststring="ABCD"
5912
5913  case $build_os in
5914  msdosdjgpp*)
5915    # On DJGPP, this test can blow up pretty badly due to problems in libc
5916    # (any single argument exceeding 2000 bytes causes a buffer overrun
5917    # during glob expansion).  Even if it were fixed, the result of this
5918    # check would be larger than it should be.
5919    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5920    ;;
5921
5922  gnu*)
5923    # Under GNU Hurd, this test is not required because there is
5924    # no limit to the length of command line arguments.
5925    # Libtool will interpret -1 as no limit whatsoever
5926    lt_cv_sys_max_cmd_len=-1;
5927    ;;
5928
5929  cygwin* | mingw* | cegcc*)
5930    # On Win9x/ME, this test blows up -- it succeeds, but takes
5931    # about 5 minutes as the teststring grows exponentially.
5932    # Worse, since 9x/ME are not pre-emptively multitasking,
5933    # you end up with a "frozen" computer, even though with patience
5934    # the test eventually succeeds (with a max line length of 256k).
5935    # Instead, let's just punt: use the minimum linelength reported by
5936    # all of the supported platforms: 8192 (on NT/2K/XP).
5937    lt_cv_sys_max_cmd_len=8192;
5938    ;;
5939
5940  mint*)
5941    # On MiNT this can take a long time and run out of memory.
5942    lt_cv_sys_max_cmd_len=8192;
5943    ;;
5944
5945  amigaos*)
5946    # On AmigaOS with pdksh, this test takes hours, literally.
5947    # So we just punt and use a minimum line length of 8192.
5948    lt_cv_sys_max_cmd_len=8192;
5949    ;;
5950
5951  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5952    # This has been around since 386BSD, at least.  Likely further.
5953    if test -x /sbin/sysctl; then
5954      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5955    elif test -x /usr/sbin/sysctl; then
5956      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5957    else
5958      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5959    fi
5960    # And add a safety zone
5961    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5962    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5963    ;;
5964
5965  interix*)
5966    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5967    lt_cv_sys_max_cmd_len=196608
5968    ;;
5969
5970  osf*)
5971    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5972    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5973    # nice to cause kernel panics so lets avoid the loop below.
5974    # First set a reasonable default.
5975    lt_cv_sys_max_cmd_len=16384
5976    #
5977    if test -x /sbin/sysconfig; then
5978      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5979        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5980      esac
5981    fi
5982    ;;
5983  sco3.2v5*)
5984    lt_cv_sys_max_cmd_len=102400
5985    ;;
5986  sysv5* | sco5v6* | sysv4.2uw2*)
5987    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5988    if test -n "$kargmax"; then
5989      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5990    else
5991      lt_cv_sys_max_cmd_len=32768
5992    fi
5993    ;;
5994  *)
5995    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5996    if test -n "$lt_cv_sys_max_cmd_len"; then
5997      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5998      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5999    else
6000      # Make teststring a little bigger before we do anything with it.
6001      # a 1K string should be a reasonable start.
6002      for i in 1 2 3 4 5 6 7 8 ; do
6003        teststring=$teststring$teststring
6004      done
6005      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6006      # If test is not a shell built-in, we'll probably end up computing a
6007      # maximum length that is only half of the actual maximum length, but
6008      # we can't tell.
6009      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6010	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6011	      test $i != 17 # 1/2 MB should be enough
6012      do
6013        i=`expr $i + 1`
6014        teststring=$teststring$teststring
6015      done
6016      # Only check the string length outside the loop.
6017      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6018      teststring=
6019      # Add a significant safety factor because C++ compilers can tack on
6020      # massive amounts of additional arguments before passing them to the
6021      # linker.  It appears as though 1/2 is a usable value.
6022      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6023    fi
6024    ;;
6025  esac
6026
6027fi
6028
6029if test -n $lt_cv_sys_max_cmd_len ; then
6030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6031$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6032else
6033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6034$as_echo "none" >&6; }
6035fi
6036max_cmd_len=$lt_cv_sys_max_cmd_len
6037
6038
6039
6040
6041
6042
6043: ${CP="cp -f"}
6044: ${MV="mv -f"}
6045: ${RM="rm -f"}
6046
6047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6048$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6049# Try some XSI features
6050xsi_shell=no
6051( _lt_dummy="a/b/c"
6052  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6053      = c,a/b,, \
6054    && eval 'test $(( 1 + 1 )) -eq 2 \
6055    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6056  && xsi_shell=yes
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6058$as_echo "$xsi_shell" >&6; }
6059
6060
6061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6062$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6063lt_shell_append=no
6064( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6065    >/dev/null 2>&1 \
6066  && lt_shell_append=yes
6067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6068$as_echo "$lt_shell_append" >&6; }
6069
6070
6071if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6072  lt_unset=unset
6073else
6074  lt_unset=false
6075fi
6076
6077
6078
6079
6080
6081# test EBCDIC or ASCII
6082case `echo X|tr X '\101'` in
6083 A) # ASCII based system
6084    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6085  lt_SP2NL='tr \040 \012'
6086  lt_NL2SP='tr \015\012 \040\040'
6087  ;;
6088 *) # EBCDIC based system
6089  lt_SP2NL='tr \100 \n'
6090  lt_NL2SP='tr \r\n \100\100'
6091  ;;
6092esac
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6103$as_echo_n "checking for $LD option to reload object files... " >&6; }
6104if ${lt_cv_ld_reload_flag+:} false; then :
6105  $as_echo_n "(cached) " >&6
6106else
6107  lt_cv_ld_reload_flag='-r'
6108fi
6109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6110$as_echo "$lt_cv_ld_reload_flag" >&6; }
6111reload_flag=$lt_cv_ld_reload_flag
6112case $reload_flag in
6113"" | " "*) ;;
6114*) reload_flag=" $reload_flag" ;;
6115esac
6116reload_cmds='$LD$reload_flag -o $output$reload_objs'
6117case $host_os in
6118  darwin*)
6119    if test "$GCC" = yes; then
6120      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6121    else
6122      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6123    fi
6124    ;;
6125esac
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135if test -n "$ac_tool_prefix"; then
6136  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6137set dummy ${ac_tool_prefix}objdump; ac_word=$2
6138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139$as_echo_n "checking for $ac_word... " >&6; }
6140if ${ac_cv_prog_OBJDUMP+:} false; then :
6141  $as_echo_n "(cached) " >&6
6142else
6143  if test -n "$OBJDUMP"; then
6144  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6145else
6146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147for as_dir in $PATH
6148do
6149  IFS=$as_save_IFS
6150  test -z "$as_dir" && as_dir=.
6151    for ac_exec_ext in '' $ac_executable_extensions; do
6152  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6153    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6155    break 2
6156  fi
6157done
6158  done
6159IFS=$as_save_IFS
6160
6161fi
6162fi
6163OBJDUMP=$ac_cv_prog_OBJDUMP
6164if test -n "$OBJDUMP"; then
6165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6166$as_echo "$OBJDUMP" >&6; }
6167else
6168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169$as_echo "no" >&6; }
6170fi
6171
6172
6173fi
6174if test -z "$ac_cv_prog_OBJDUMP"; then
6175  ac_ct_OBJDUMP=$OBJDUMP
6176  # Extract the first word of "objdump", so it can be a program name with args.
6177set dummy objdump; ac_word=$2
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6179$as_echo_n "checking for $ac_word... " >&6; }
6180if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6181  $as_echo_n "(cached) " >&6
6182else
6183  if test -n "$ac_ct_OBJDUMP"; then
6184  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6185else
6186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187for as_dir in $PATH
6188do
6189  IFS=$as_save_IFS
6190  test -z "$as_dir" && as_dir=.
6191    for ac_exec_ext in '' $ac_executable_extensions; do
6192  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6193    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6194    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6195    break 2
6196  fi
6197done
6198  done
6199IFS=$as_save_IFS
6200
6201fi
6202fi
6203ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6204if test -n "$ac_ct_OBJDUMP"; then
6205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6206$as_echo "$ac_ct_OBJDUMP" >&6; }
6207else
6208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6209$as_echo "no" >&6; }
6210fi
6211
6212  if test "x$ac_ct_OBJDUMP" = x; then
6213    OBJDUMP="false"
6214  else
6215    case $cross_compiling:$ac_tool_warned in
6216yes:)
6217{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6218$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6219ac_tool_warned=yes ;;
6220esac
6221    OBJDUMP=$ac_ct_OBJDUMP
6222  fi
6223else
6224  OBJDUMP="$ac_cv_prog_OBJDUMP"
6225fi
6226
6227test -z "$OBJDUMP" && OBJDUMP=objdump
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6238$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6239if ${lt_cv_deplibs_check_method+:} false; then :
6240  $as_echo_n "(cached) " >&6
6241else
6242  lt_cv_file_magic_cmd='$MAGIC_CMD'
6243lt_cv_file_magic_test_file=
6244lt_cv_deplibs_check_method='unknown'
6245# Need to set the preceding variable on all platforms that support
6246# interlibrary dependencies.
6247# 'none' -- dependencies not supported.
6248# `unknown' -- same as none, but documents that we really don't know.
6249# 'pass_all' -- all dependencies passed with no checks.
6250# 'test_compile' -- check by making test program.
6251# 'file_magic [[regex]]' -- check by looking for files in library path
6252# which responds to the $file_magic_cmd with a given extended regex.
6253# If you have `file' or equivalent on your system and you're not sure
6254# whether `pass_all' will *always* work, you probably want this one.
6255
6256case $host_os in
6257aix[4-9]*)
6258  lt_cv_deplibs_check_method=pass_all
6259  ;;
6260
6261beos*)
6262  lt_cv_deplibs_check_method=pass_all
6263  ;;
6264
6265bsdi[45]*)
6266  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6267  lt_cv_file_magic_cmd='/usr/bin/file -L'
6268  lt_cv_file_magic_test_file=/shlib/libc.so
6269  ;;
6270
6271cygwin*)
6272  # func_win32_libid is a shell function defined in ltmain.sh
6273  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6274  lt_cv_file_magic_cmd='func_win32_libid'
6275  ;;
6276
6277mingw* | pw32*)
6278  # Base MSYS/MinGW do not provide the 'file' command needed by
6279  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6280  # unless we find 'file', for example because we are cross-compiling.
6281  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6282  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6283    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6284    lt_cv_file_magic_cmd='func_win32_libid'
6285  else
6286    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6287    lt_cv_file_magic_cmd='$OBJDUMP -f'
6288  fi
6289  ;;
6290
6291cegcc*)
6292  # use the weaker test based on 'objdump'. See mingw*.
6293  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6294  lt_cv_file_magic_cmd='$OBJDUMP -f'
6295  ;;
6296
6297darwin* | rhapsody*)
6298  lt_cv_deplibs_check_method=pass_all
6299  ;;
6300
6301freebsd* | dragonfly*)
6302  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6303    case $host_cpu in
6304    i*86 )
6305      # Not sure whether the presence of OpenBSD here was a mistake.
6306      # Let's accept both of them until this is cleared up.
6307      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6308      lt_cv_file_magic_cmd=/usr/bin/file
6309      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6310      ;;
6311    esac
6312  else
6313    lt_cv_deplibs_check_method=pass_all
6314  fi
6315  ;;
6316
6317gnu*)
6318  lt_cv_deplibs_check_method=pass_all
6319  ;;
6320
6321haiku*)
6322  lt_cv_deplibs_check_method=pass_all
6323  ;;
6324
6325hpux10.20* | hpux11*)
6326  lt_cv_file_magic_cmd=/usr/bin/file
6327  case $host_cpu in
6328  ia64*)
6329    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6330    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6331    ;;
6332  hppa*64*)
6333    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6334    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6335    ;;
6336  *)
6337    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6338    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6339    ;;
6340  esac
6341  ;;
6342
6343interix[3-9]*)
6344  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6345  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6346  ;;
6347
6348irix5* | irix6* | nonstopux*)
6349  case $LD in
6350  *-32|*"-32 ") libmagic=32-bit;;
6351  *-n32|*"-n32 ") libmagic=N32;;
6352  *-64|*"-64 ") libmagic=64-bit;;
6353  *) libmagic=never-match;;
6354  esac
6355  lt_cv_deplibs_check_method=pass_all
6356  ;;
6357
6358# This must be Linux ELF.
6359linux* | k*bsd*-gnu | kopensolaris*-gnu)
6360  lt_cv_deplibs_check_method=pass_all
6361  ;;
6362
6363netbsd*)
6364  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6365    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6366  else
6367    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6368  fi
6369  ;;
6370
6371newos6*)
6372  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6373  lt_cv_file_magic_cmd=/usr/bin/file
6374  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6375  ;;
6376
6377*nto* | *qnx*)
6378  lt_cv_deplibs_check_method=pass_all
6379  ;;
6380
6381openbsd*)
6382  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6383    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6384  else
6385    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6386  fi
6387  ;;
6388
6389osf3* | osf4* | osf5*)
6390  lt_cv_deplibs_check_method=pass_all
6391  ;;
6392
6393rdos*)
6394  lt_cv_deplibs_check_method=pass_all
6395  ;;
6396
6397solaris*)
6398  lt_cv_deplibs_check_method=pass_all
6399  ;;
6400
6401sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6402  lt_cv_deplibs_check_method=pass_all
6403  ;;
6404
6405sysv4 | sysv4.3*)
6406  case $host_vendor in
6407  motorola)
6408    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]'
6409    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6410    ;;
6411  ncr)
6412    lt_cv_deplibs_check_method=pass_all
6413    ;;
6414  sequent)
6415    lt_cv_file_magic_cmd='/bin/file'
6416    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6417    ;;
6418  sni)
6419    lt_cv_file_magic_cmd='/bin/file'
6420    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6421    lt_cv_file_magic_test_file=/lib/libc.so
6422    ;;
6423  siemens)
6424    lt_cv_deplibs_check_method=pass_all
6425    ;;
6426  pc)
6427    lt_cv_deplibs_check_method=pass_all
6428    ;;
6429  esac
6430  ;;
6431
6432tpf*)
6433  lt_cv_deplibs_check_method=pass_all
6434  ;;
6435esac
6436
6437fi
6438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6439$as_echo "$lt_cv_deplibs_check_method" >&6; }
6440file_magic_cmd=$lt_cv_file_magic_cmd
6441deplibs_check_method=$lt_cv_deplibs_check_method
6442test -z "$deplibs_check_method" && deplibs_check_method=unknown
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455plugin_option=
6456plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6457for plugin in $plugin_names; do
6458  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6459  if test x$plugin_so = x$plugin; then
6460    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6461  fi
6462  if test x$plugin_so != x$plugin; then
6463    plugin_option="--plugin $plugin_so"
6464    break
6465  fi
6466done
6467
6468if test -n "$ac_tool_prefix"; then
6469  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6470set dummy ${ac_tool_prefix}ar; ac_word=$2
6471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6472$as_echo_n "checking for $ac_word... " >&6; }
6473if ${ac_cv_prog_AR+:} false; then :
6474  $as_echo_n "(cached) " >&6
6475else
6476  if test -n "$AR"; then
6477  ac_cv_prog_AR="$AR" # Let the user override the test.
6478else
6479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480for as_dir in $PATH
6481do
6482  IFS=$as_save_IFS
6483  test -z "$as_dir" && as_dir=.
6484    for ac_exec_ext in '' $ac_executable_extensions; do
6485  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6486    ac_cv_prog_AR="${ac_tool_prefix}ar"
6487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6488    break 2
6489  fi
6490done
6491  done
6492IFS=$as_save_IFS
6493
6494fi
6495fi
6496AR=$ac_cv_prog_AR
6497if test -n "$AR"; then
6498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6499$as_echo "$AR" >&6; }
6500else
6501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6502$as_echo "no" >&6; }
6503fi
6504
6505
6506fi
6507if test -z "$ac_cv_prog_AR"; then
6508  ac_ct_AR=$AR
6509  # Extract the first word of "ar", so it can be a program name with args.
6510set dummy ar; ac_word=$2
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512$as_echo_n "checking for $ac_word... " >&6; }
6513if ${ac_cv_prog_ac_ct_AR+:} false; then :
6514  $as_echo_n "(cached) " >&6
6515else
6516  if test -n "$ac_ct_AR"; then
6517  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6518else
6519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520for as_dir in $PATH
6521do
6522  IFS=$as_save_IFS
6523  test -z "$as_dir" && as_dir=.
6524    for ac_exec_ext in '' $ac_executable_extensions; do
6525  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6526    ac_cv_prog_ac_ct_AR="ar"
6527    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6528    break 2
6529  fi
6530done
6531  done
6532IFS=$as_save_IFS
6533
6534fi
6535fi
6536ac_ct_AR=$ac_cv_prog_ac_ct_AR
6537if test -n "$ac_ct_AR"; then
6538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6539$as_echo "$ac_ct_AR" >&6; }
6540else
6541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6542$as_echo "no" >&6; }
6543fi
6544
6545  if test "x$ac_ct_AR" = x; then
6546    AR="false"
6547  else
6548    case $cross_compiling:$ac_tool_warned in
6549yes:)
6550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6552ac_tool_warned=yes ;;
6553esac
6554    AR=$ac_ct_AR
6555  fi
6556else
6557  AR="$ac_cv_prog_AR"
6558fi
6559
6560test -z "$AR" && AR=ar
6561if test -n "$plugin_option"; then
6562  if $AR --help 2>&1 | grep -q "\--plugin"; then
6563    touch conftest.c
6564    $AR $plugin_option rc conftest.a conftest.c
6565    if test "$?" != 0; then
6566      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6567$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6568    else
6569      AR="$AR $plugin_option"
6570    fi
6571    rm -f conftest.*
6572  fi
6573fi
6574test -z "$AR_FLAGS" && AR_FLAGS=cru
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586if test -n "$ac_tool_prefix"; then
6587  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6588set dummy ${ac_tool_prefix}strip; ac_word=$2
6589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590$as_echo_n "checking for $ac_word... " >&6; }
6591if ${ac_cv_prog_STRIP+:} false; then :
6592  $as_echo_n "(cached) " >&6
6593else
6594  if test -n "$STRIP"; then
6595  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6596else
6597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598for as_dir in $PATH
6599do
6600  IFS=$as_save_IFS
6601  test -z "$as_dir" && as_dir=.
6602    for ac_exec_ext in '' $ac_executable_extensions; do
6603  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6604    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6605    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606    break 2
6607  fi
6608done
6609  done
6610IFS=$as_save_IFS
6611
6612fi
6613fi
6614STRIP=$ac_cv_prog_STRIP
6615if test -n "$STRIP"; then
6616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6617$as_echo "$STRIP" >&6; }
6618else
6619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620$as_echo "no" >&6; }
6621fi
6622
6623
6624fi
6625if test -z "$ac_cv_prog_STRIP"; then
6626  ac_ct_STRIP=$STRIP
6627  # Extract the first word of "strip", so it can be a program name with args.
6628set dummy strip; ac_word=$2
6629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630$as_echo_n "checking for $ac_word... " >&6; }
6631if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6632  $as_echo_n "(cached) " >&6
6633else
6634  if test -n "$ac_ct_STRIP"; then
6635  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6636else
6637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638for as_dir in $PATH
6639do
6640  IFS=$as_save_IFS
6641  test -z "$as_dir" && as_dir=.
6642    for ac_exec_ext in '' $ac_executable_extensions; do
6643  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6644    ac_cv_prog_ac_ct_STRIP="strip"
6645    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646    break 2
6647  fi
6648done
6649  done
6650IFS=$as_save_IFS
6651
6652fi
6653fi
6654ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6655if test -n "$ac_ct_STRIP"; then
6656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6657$as_echo "$ac_ct_STRIP" >&6; }
6658else
6659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660$as_echo "no" >&6; }
6661fi
6662
6663  if test "x$ac_ct_STRIP" = x; then
6664    STRIP=":"
6665  else
6666    case $cross_compiling:$ac_tool_warned in
6667yes:)
6668{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6670ac_tool_warned=yes ;;
6671esac
6672    STRIP=$ac_ct_STRIP
6673  fi
6674else
6675  STRIP="$ac_cv_prog_STRIP"
6676fi
6677
6678test -z "$STRIP" && STRIP=:
6679
6680
6681
6682
6683
6684
6685if test -n "$ac_tool_prefix"; then
6686  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6687set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689$as_echo_n "checking for $ac_word... " >&6; }
6690if ${ac_cv_prog_RANLIB+:} false; then :
6691  $as_echo_n "(cached) " >&6
6692else
6693  if test -n "$RANLIB"; then
6694  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6695else
6696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697for as_dir in $PATH
6698do
6699  IFS=$as_save_IFS
6700  test -z "$as_dir" && as_dir=.
6701    for ac_exec_ext in '' $ac_executable_extensions; do
6702  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6703    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6704    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705    break 2
6706  fi
6707done
6708  done
6709IFS=$as_save_IFS
6710
6711fi
6712fi
6713RANLIB=$ac_cv_prog_RANLIB
6714if test -n "$RANLIB"; then
6715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6716$as_echo "$RANLIB" >&6; }
6717else
6718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719$as_echo "no" >&6; }
6720fi
6721
6722
6723fi
6724if test -z "$ac_cv_prog_RANLIB"; then
6725  ac_ct_RANLIB=$RANLIB
6726  # Extract the first word of "ranlib", so it can be a program name with args.
6727set dummy ranlib; ac_word=$2
6728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6729$as_echo_n "checking for $ac_word... " >&6; }
6730if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6731  $as_echo_n "(cached) " >&6
6732else
6733  if test -n "$ac_ct_RANLIB"; then
6734  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6735else
6736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737for as_dir in $PATH
6738do
6739  IFS=$as_save_IFS
6740  test -z "$as_dir" && as_dir=.
6741    for ac_exec_ext in '' $ac_executable_extensions; do
6742  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6743    ac_cv_prog_ac_ct_RANLIB="ranlib"
6744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745    break 2
6746  fi
6747done
6748  done
6749IFS=$as_save_IFS
6750
6751fi
6752fi
6753ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6754if test -n "$ac_ct_RANLIB"; then
6755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6756$as_echo "$ac_ct_RANLIB" >&6; }
6757else
6758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759$as_echo "no" >&6; }
6760fi
6761
6762  if test "x$ac_ct_RANLIB" = x; then
6763    RANLIB=":"
6764  else
6765    case $cross_compiling:$ac_tool_warned in
6766yes:)
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6769ac_tool_warned=yes ;;
6770esac
6771    RANLIB=$ac_ct_RANLIB
6772  fi
6773else
6774  RANLIB="$ac_cv_prog_RANLIB"
6775fi
6776
6777test -z "$RANLIB" && RANLIB=:
6778if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6779  if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6780    RANLIB="$RANLIB $plugin_option"
6781  fi
6782fi
6783
6784
6785
6786
6787
6788
6789# Determine commands to create old-style static archives.
6790old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6791old_postinstall_cmds='chmod 644 $oldlib'
6792old_postuninstall_cmds=
6793
6794if test -n "$RANLIB"; then
6795  case $host_os in
6796  openbsd*)
6797    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6798    ;;
6799  *)
6800    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6801    ;;
6802  esac
6803  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6804fi
6805
6806case $host_os in
6807  darwin*)
6808    lock_old_archive_extraction=yes ;;
6809  *)
6810    lock_old_archive_extraction=no ;;
6811esac
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833for ac_prog in gawk mawk nawk awk
6834do
6835  # Extract the first word of "$ac_prog", so it can be a program name with args.
6836set dummy $ac_prog; ac_word=$2
6837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6838$as_echo_n "checking for $ac_word... " >&6; }
6839if ${ac_cv_prog_AWK+:} false; then :
6840  $as_echo_n "(cached) " >&6
6841else
6842  if test -n "$AWK"; then
6843  ac_cv_prog_AWK="$AWK" # Let the user override the test.
6844else
6845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846for as_dir in $PATH
6847do
6848  IFS=$as_save_IFS
6849  test -z "$as_dir" && as_dir=.
6850    for ac_exec_ext in '' $ac_executable_extensions; do
6851  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6852    ac_cv_prog_AWK="$ac_prog"
6853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6854    break 2
6855  fi
6856done
6857  done
6858IFS=$as_save_IFS
6859
6860fi
6861fi
6862AWK=$ac_cv_prog_AWK
6863if test -n "$AWK"; then
6864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6865$as_echo "$AWK" >&6; }
6866else
6867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868$as_echo "no" >&6; }
6869fi
6870
6871
6872  test -n "$AWK" && break
6873done
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893# If no C compiler was specified, use CC.
6894LTCC=${LTCC-"$CC"}
6895
6896# If no C compiler flags were specified, use CFLAGS.
6897LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6898
6899# Allow CC to be a program name with arguments.
6900compiler=$CC
6901
6902
6903# Check for command to grab the raw symbol name followed by C symbol from nm.
6904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6905$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6906if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6907  $as_echo_n "(cached) " >&6
6908else
6909
6910# These are sane defaults that work on at least a few old systems.
6911# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6912
6913# Character class describing NM global symbol codes.
6914symcode='[BCDEGRST]'
6915
6916# Regexp to match symbols that can be accessed directly from C.
6917sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6918
6919# Define system-specific variables.
6920case $host_os in
6921aix*)
6922  symcode='[BCDT]'
6923  ;;
6924cygwin* | mingw* | pw32* | cegcc*)
6925  symcode='[ABCDGISTW]'
6926  ;;
6927hpux*)
6928  if test "$host_cpu" = ia64; then
6929    symcode='[ABCDEGRST]'
6930  fi
6931  ;;
6932irix* | nonstopux*)
6933  symcode='[BCDEGRST]'
6934  ;;
6935osf*)
6936  symcode='[BCDEGQRST]'
6937  ;;
6938solaris*)
6939  symcode='[BCDRT]'
6940  ;;
6941sco3.2v5*)
6942  symcode='[DT]'
6943  ;;
6944sysv4.2uw2*)
6945  symcode='[DT]'
6946  ;;
6947sysv5* | sco5v6* | unixware* | OpenUNIX*)
6948  symcode='[ABDT]'
6949  ;;
6950sysv4)
6951  symcode='[DFNSTU]'
6952  ;;
6953esac
6954
6955# If we're using GNU nm, then use its standard symbol codes.
6956case `$NM -V 2>&1` in
6957*GNU* | *'with BFD'*)
6958  symcode='[ABCDGIRSTW]' ;;
6959esac
6960
6961# Transform an extracted symbol line into a proper C declaration.
6962# Some systems (esp. on ia64) link data and code symbols differently,
6963# so use this general approach.
6964lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6965
6966# Transform an extracted symbol line into symbol name and symbol address
6967lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6968lt_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'"
6969
6970# Handle CRLF in mingw tool chain
6971opt_cr=
6972case $build_os in
6973mingw*)
6974  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6975  ;;
6976esac
6977
6978# Try without a prefix underscore, then with it.
6979for ac_symprfx in "" "_"; do
6980
6981  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6982  symxfrm="\\1 $ac_symprfx\\2 \\2"
6983
6984  # Write the raw and C identifiers.
6985  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6986    # Fake it for dumpbin and say T for any non-static function
6987    # and D for any global variable.
6988    # Also find C++ and __fastcall symbols from MSVC++,
6989    # which start with @ or ?.
6990    lt_cv_sys_global_symbol_pipe="$AWK '"\
6991"     {last_section=section; section=\$ 3};"\
6992"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6993"     \$ 0!~/External *\|/{next};"\
6994"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6995"     {if(hide[section]) next};"\
6996"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6997"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6998"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6999"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7000"     ' prfx=^$ac_symprfx"
7001  else
7002    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7003  fi
7004
7005  # Check to see that the pipe works correctly.
7006  pipe_works=no
7007
7008  rm -f conftest*
7009  cat > conftest.$ac_ext <<_LT_EOF
7010#ifdef __cplusplus
7011extern "C" {
7012#endif
7013char nm_test_var;
7014void nm_test_func(void);
7015void nm_test_func(void){}
7016#ifdef __cplusplus
7017}
7018#endif
7019int main(){nm_test_var='a';nm_test_func();return(0);}
7020_LT_EOF
7021
7022  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7023  (eval $ac_compile) 2>&5
7024  ac_status=$?
7025  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7026  test $ac_status = 0; }; then
7027    # Now try to grab the symbols.
7028    nlist=conftest.nm
7029    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7030  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7031  ac_status=$?
7032  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7033  test $ac_status = 0; } && test -s "$nlist"; then
7034      # Try sorting and uniquifying the output.
7035      if sort "$nlist" | uniq > "$nlist"T; then
7036	mv -f "$nlist"T "$nlist"
7037      else
7038	rm -f "$nlist"T
7039      fi
7040
7041      # Make sure that we snagged all the symbols we need.
7042      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7043	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7044	  cat <<_LT_EOF > conftest.$ac_ext
7045#ifdef __cplusplus
7046extern "C" {
7047#endif
7048
7049_LT_EOF
7050	  # Now generate the symbol file.
7051	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7052
7053	  cat <<_LT_EOF >> conftest.$ac_ext
7054
7055/* The mapping between symbol names and symbols.  */
7056const struct {
7057  const char *name;
7058  void       *address;
7059}
7060lt__PROGRAM__LTX_preloaded_symbols[] =
7061{
7062  { "@PROGRAM@", (void *) 0 },
7063_LT_EOF
7064	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7065	  cat <<\_LT_EOF >> conftest.$ac_ext
7066  {0, (void *) 0}
7067};
7068
7069/* This works around a problem in FreeBSD linker */
7070#ifdef FREEBSD_WORKAROUND
7071static const void *lt_preloaded_setup() {
7072  return lt__PROGRAM__LTX_preloaded_symbols;
7073}
7074#endif
7075
7076#ifdef __cplusplus
7077}
7078#endif
7079_LT_EOF
7080	  # Now try linking the two files.
7081	  mv conftest.$ac_objext conftstm.$ac_objext
7082	  lt_save_LIBS="$LIBS"
7083	  lt_save_CFLAGS="$CFLAGS"
7084	  LIBS="conftstm.$ac_objext"
7085	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7086	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7087  (eval $ac_link) 2>&5
7088  ac_status=$?
7089  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7090  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7091	    pipe_works=yes
7092	  fi
7093	  LIBS="$lt_save_LIBS"
7094	  CFLAGS="$lt_save_CFLAGS"
7095	else
7096	  echo "cannot find nm_test_func in $nlist" >&5
7097	fi
7098      else
7099	echo "cannot find nm_test_var in $nlist" >&5
7100      fi
7101    else
7102      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7103    fi
7104  else
7105    echo "$progname: failed program was:" >&5
7106    cat conftest.$ac_ext >&5
7107  fi
7108  rm -rf conftest* conftst*
7109
7110  # Do not use the global_symbol_pipe unless it works.
7111  if test "$pipe_works" = yes; then
7112    break
7113  else
7114    lt_cv_sys_global_symbol_pipe=
7115  fi
7116done
7117
7118fi
7119
7120if test -z "$lt_cv_sys_global_symbol_pipe"; then
7121  lt_cv_sys_global_symbol_to_cdecl=
7122fi
7123if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7125$as_echo "failed" >&6; }
7126else
7127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7128$as_echo "ok" >&6; }
7129fi
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152# Check whether --enable-libtool-lock was given.
7153if test "${enable_libtool_lock+set}" = set; then :
7154  enableval=$enable_libtool_lock;
7155fi
7156
7157test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7158
7159# Some flags need to be propagated to the compiler or linker for good
7160# libtool support.
7161case $host in
7162ia64-*-hpux*)
7163  # Find out which ABI we are using.
7164  echo 'int i;' > conftest.$ac_ext
7165  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7166  (eval $ac_compile) 2>&5
7167  ac_status=$?
7168  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7169  test $ac_status = 0; }; then
7170    case `/usr/bin/file conftest.$ac_objext` in
7171      *ELF-32*)
7172	HPUX_IA64_MODE="32"
7173	;;
7174      *ELF-64*)
7175	HPUX_IA64_MODE="64"
7176	;;
7177    esac
7178  fi
7179  rm -rf conftest*
7180  ;;
7181*-*-irix6*)
7182  # Find out which ABI we are using.
7183  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7184  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7185  (eval $ac_compile) 2>&5
7186  ac_status=$?
7187  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7188  test $ac_status = 0; }; then
7189    if test "$lt_cv_prog_gnu_ld" = yes; then
7190      case `/usr/bin/file conftest.$ac_objext` in
7191	*32-bit*)
7192	  LD="${LD-ld} -melf32bsmip"
7193	  ;;
7194	*N32*)
7195	  LD="${LD-ld} -melf32bmipn32"
7196	  ;;
7197	*64-bit*)
7198	  LD="${LD-ld} -melf64bmip"
7199	;;
7200      esac
7201    else
7202      case `/usr/bin/file conftest.$ac_objext` in
7203	*32-bit*)
7204	  LD="${LD-ld} -32"
7205	  ;;
7206	*N32*)
7207	  LD="${LD-ld} -n32"
7208	  ;;
7209	*64-bit*)
7210	  LD="${LD-ld} -64"
7211	  ;;
7212      esac
7213    fi
7214  fi
7215  rm -rf conftest*
7216  ;;
7217
7218x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7219s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7220  # Find out which ABI we are using.
7221  echo 'int i;' > conftest.$ac_ext
7222  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7223  (eval $ac_compile) 2>&5
7224  ac_status=$?
7225  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7226  test $ac_status = 0; }; then
7227    case `/usr/bin/file conftest.o` in
7228      *32-bit*)
7229	case $host in
7230	  x86_64-*kfreebsd*-gnu)
7231	    LD="${LD-ld} -m elf_i386_fbsd"
7232	    ;;
7233	  x86_64-*linux*)
7234	    case `/usr/bin/file conftest.o` in
7235	      *x86-64*)
7236		LD="${LD-ld} -m elf32_x86_64"
7237		;;
7238	      *)
7239		LD="${LD-ld} -m elf_i386"
7240		;;
7241	    esac
7242	    ;;
7243	  powerpc64le-*linux*)
7244	    LD="${LD-ld} -m elf32lppclinux"
7245	    ;;
7246	  powerpc64-*linux*)
7247	    LD="${LD-ld} -m elf32ppclinux"
7248	    ;;
7249	  s390x-*linux*)
7250	    LD="${LD-ld} -m elf_s390"
7251	    ;;
7252	  sparc64-*linux*)
7253	    LD="${LD-ld} -m elf32_sparc"
7254	    ;;
7255	esac
7256	;;
7257      *64-bit*)
7258	case $host in
7259	  x86_64-*kfreebsd*-gnu)
7260	    LD="${LD-ld} -m elf_x86_64_fbsd"
7261	    ;;
7262	  x86_64-*linux*)
7263	    LD="${LD-ld} -m elf_x86_64"
7264	    ;;
7265	  powerpcle-*linux*)
7266	    LD="${LD-ld} -m elf64lppc"
7267	    ;;
7268	  powerpc-*linux*)
7269	    LD="${LD-ld} -m elf64ppc"
7270	    ;;
7271	  s390*-*linux*|s390*-*tpf*)
7272	    LD="${LD-ld} -m elf64_s390"
7273	    ;;
7274	  sparc*-*linux*)
7275	    LD="${LD-ld} -m elf64_sparc"
7276	    ;;
7277	esac
7278	;;
7279    esac
7280  fi
7281  rm -rf conftest*
7282  ;;
7283
7284*-*-sco3.2v5*)
7285  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7286  SAVE_CFLAGS="$CFLAGS"
7287  CFLAGS="$CFLAGS -belf"
7288  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7289$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7290if ${lt_cv_cc_needs_belf+:} false; then :
7291  $as_echo_n "(cached) " >&6
7292else
7293  ac_ext=c
7294ac_cpp='$CPP $CPPFLAGS'
7295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7297ac_compiler_gnu=$ac_cv_c_compiler_gnu
7298
7299     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300/* end confdefs.h.  */
7301
7302int
7303main ()
7304{
7305
7306  ;
7307  return 0;
7308}
7309_ACEOF
7310if ac_fn_c_try_link "$LINENO"; then :
7311  lt_cv_cc_needs_belf=yes
7312else
7313  lt_cv_cc_needs_belf=no
7314fi
7315rm -f core conftest.err conftest.$ac_objext \
7316    conftest$ac_exeext conftest.$ac_ext
7317     ac_ext=c
7318ac_cpp='$CPP $CPPFLAGS'
7319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7321ac_compiler_gnu=$ac_cv_c_compiler_gnu
7322
7323fi
7324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7325$as_echo "$lt_cv_cc_needs_belf" >&6; }
7326  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7327    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7328    CFLAGS="$SAVE_CFLAGS"
7329  fi
7330  ;;
7331sparc*-*solaris*)
7332  # Find out which ABI we are using.
7333  echo 'int i;' > conftest.$ac_ext
7334  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7335  (eval $ac_compile) 2>&5
7336  ac_status=$?
7337  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7338  test $ac_status = 0; }; then
7339    case `/usr/bin/file conftest.o` in
7340    *64-bit*)
7341      case $lt_cv_prog_gnu_ld in
7342      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7343      *)
7344	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7345	  LD="${LD-ld} -64"
7346	fi
7347	;;
7348      esac
7349      ;;
7350    esac
7351  fi
7352  rm -rf conftest*
7353  ;;
7354esac
7355
7356need_locks="$enable_libtool_lock"
7357
7358
7359  case $host_os in
7360    rhapsody* | darwin*)
7361    if test -n "$ac_tool_prefix"; then
7362  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7363set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7365$as_echo_n "checking for $ac_word... " >&6; }
7366if ${ac_cv_prog_DSYMUTIL+:} false; then :
7367  $as_echo_n "(cached) " >&6
7368else
7369  if test -n "$DSYMUTIL"; then
7370  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7371else
7372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373for as_dir in $PATH
7374do
7375  IFS=$as_save_IFS
7376  test -z "$as_dir" && as_dir=.
7377    for ac_exec_ext in '' $ac_executable_extensions; do
7378  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7379    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7380    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7381    break 2
7382  fi
7383done
7384  done
7385IFS=$as_save_IFS
7386
7387fi
7388fi
7389DSYMUTIL=$ac_cv_prog_DSYMUTIL
7390if test -n "$DSYMUTIL"; then
7391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7392$as_echo "$DSYMUTIL" >&6; }
7393else
7394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395$as_echo "no" >&6; }
7396fi
7397
7398
7399fi
7400if test -z "$ac_cv_prog_DSYMUTIL"; then
7401  ac_ct_DSYMUTIL=$DSYMUTIL
7402  # Extract the first word of "dsymutil", so it can be a program name with args.
7403set dummy dsymutil; ac_word=$2
7404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405$as_echo_n "checking for $ac_word... " >&6; }
7406if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7407  $as_echo_n "(cached) " >&6
7408else
7409  if test -n "$ac_ct_DSYMUTIL"; then
7410  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7411else
7412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413for as_dir in $PATH
7414do
7415  IFS=$as_save_IFS
7416  test -z "$as_dir" && as_dir=.
7417    for ac_exec_ext in '' $ac_executable_extensions; do
7418  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7419    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7420    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7421    break 2
7422  fi
7423done
7424  done
7425IFS=$as_save_IFS
7426
7427fi
7428fi
7429ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7430if test -n "$ac_ct_DSYMUTIL"; then
7431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7432$as_echo "$ac_ct_DSYMUTIL" >&6; }
7433else
7434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435$as_echo "no" >&6; }
7436fi
7437
7438  if test "x$ac_ct_DSYMUTIL" = x; then
7439    DSYMUTIL=":"
7440  else
7441    case $cross_compiling:$ac_tool_warned in
7442yes:)
7443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7445ac_tool_warned=yes ;;
7446esac
7447    DSYMUTIL=$ac_ct_DSYMUTIL
7448  fi
7449else
7450  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7451fi
7452
7453    if test -n "$ac_tool_prefix"; then
7454  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7455set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7457$as_echo_n "checking for $ac_word... " >&6; }
7458if ${ac_cv_prog_NMEDIT+:} false; then :
7459  $as_echo_n "(cached) " >&6
7460else
7461  if test -n "$NMEDIT"; then
7462  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7463else
7464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465for as_dir in $PATH
7466do
7467  IFS=$as_save_IFS
7468  test -z "$as_dir" && as_dir=.
7469    for ac_exec_ext in '' $ac_executable_extensions; do
7470  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7471    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7472    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7473    break 2
7474  fi
7475done
7476  done
7477IFS=$as_save_IFS
7478
7479fi
7480fi
7481NMEDIT=$ac_cv_prog_NMEDIT
7482if test -n "$NMEDIT"; then
7483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7484$as_echo "$NMEDIT" >&6; }
7485else
7486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487$as_echo "no" >&6; }
7488fi
7489
7490
7491fi
7492if test -z "$ac_cv_prog_NMEDIT"; then
7493  ac_ct_NMEDIT=$NMEDIT
7494  # Extract the first word of "nmedit", so it can be a program name with args.
7495set dummy nmedit; ac_word=$2
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497$as_echo_n "checking for $ac_word... " >&6; }
7498if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7499  $as_echo_n "(cached) " >&6
7500else
7501  if test -n "$ac_ct_NMEDIT"; then
7502  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7503else
7504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505for as_dir in $PATH
7506do
7507  IFS=$as_save_IFS
7508  test -z "$as_dir" && as_dir=.
7509    for ac_exec_ext in '' $ac_executable_extensions; do
7510  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7511    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7513    break 2
7514  fi
7515done
7516  done
7517IFS=$as_save_IFS
7518
7519fi
7520fi
7521ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7522if test -n "$ac_ct_NMEDIT"; then
7523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7524$as_echo "$ac_ct_NMEDIT" >&6; }
7525else
7526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527$as_echo "no" >&6; }
7528fi
7529
7530  if test "x$ac_ct_NMEDIT" = x; then
7531    NMEDIT=":"
7532  else
7533    case $cross_compiling:$ac_tool_warned in
7534yes:)
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7537ac_tool_warned=yes ;;
7538esac
7539    NMEDIT=$ac_ct_NMEDIT
7540  fi
7541else
7542  NMEDIT="$ac_cv_prog_NMEDIT"
7543fi
7544
7545    if test -n "$ac_tool_prefix"; then
7546  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7547set dummy ${ac_tool_prefix}lipo; ac_word=$2
7548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7549$as_echo_n "checking for $ac_word... " >&6; }
7550if ${ac_cv_prog_LIPO+:} false; then :
7551  $as_echo_n "(cached) " >&6
7552else
7553  if test -n "$LIPO"; then
7554  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7555else
7556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557for as_dir in $PATH
7558do
7559  IFS=$as_save_IFS
7560  test -z "$as_dir" && as_dir=.
7561    for ac_exec_ext in '' $ac_executable_extensions; do
7562  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7563    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7564    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7565    break 2
7566  fi
7567done
7568  done
7569IFS=$as_save_IFS
7570
7571fi
7572fi
7573LIPO=$ac_cv_prog_LIPO
7574if test -n "$LIPO"; then
7575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7576$as_echo "$LIPO" >&6; }
7577else
7578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579$as_echo "no" >&6; }
7580fi
7581
7582
7583fi
7584if test -z "$ac_cv_prog_LIPO"; then
7585  ac_ct_LIPO=$LIPO
7586  # Extract the first word of "lipo", so it can be a program name with args.
7587set dummy lipo; ac_word=$2
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589$as_echo_n "checking for $ac_word... " >&6; }
7590if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7591  $as_echo_n "(cached) " >&6
7592else
7593  if test -n "$ac_ct_LIPO"; then
7594  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7595else
7596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597for as_dir in $PATH
7598do
7599  IFS=$as_save_IFS
7600  test -z "$as_dir" && as_dir=.
7601    for ac_exec_ext in '' $ac_executable_extensions; do
7602  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7603    ac_cv_prog_ac_ct_LIPO="lipo"
7604    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7605    break 2
7606  fi
7607done
7608  done
7609IFS=$as_save_IFS
7610
7611fi
7612fi
7613ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7614if test -n "$ac_ct_LIPO"; then
7615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7616$as_echo "$ac_ct_LIPO" >&6; }
7617else
7618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619$as_echo "no" >&6; }
7620fi
7621
7622  if test "x$ac_ct_LIPO" = x; then
7623    LIPO=":"
7624  else
7625    case $cross_compiling:$ac_tool_warned in
7626yes:)
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7629ac_tool_warned=yes ;;
7630esac
7631    LIPO=$ac_ct_LIPO
7632  fi
7633else
7634  LIPO="$ac_cv_prog_LIPO"
7635fi
7636
7637    if test -n "$ac_tool_prefix"; then
7638  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7639set dummy ${ac_tool_prefix}otool; ac_word=$2
7640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7641$as_echo_n "checking for $ac_word... " >&6; }
7642if ${ac_cv_prog_OTOOL+:} false; then :
7643  $as_echo_n "(cached) " >&6
7644else
7645  if test -n "$OTOOL"; then
7646  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7647else
7648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649for as_dir in $PATH
7650do
7651  IFS=$as_save_IFS
7652  test -z "$as_dir" && as_dir=.
7653    for ac_exec_ext in '' $ac_executable_extensions; do
7654  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7655    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7656    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7657    break 2
7658  fi
7659done
7660  done
7661IFS=$as_save_IFS
7662
7663fi
7664fi
7665OTOOL=$ac_cv_prog_OTOOL
7666if test -n "$OTOOL"; then
7667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7668$as_echo "$OTOOL" >&6; }
7669else
7670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671$as_echo "no" >&6; }
7672fi
7673
7674
7675fi
7676if test -z "$ac_cv_prog_OTOOL"; then
7677  ac_ct_OTOOL=$OTOOL
7678  # Extract the first word of "otool", so it can be a program name with args.
7679set dummy otool; ac_word=$2
7680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7681$as_echo_n "checking for $ac_word... " >&6; }
7682if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7683  $as_echo_n "(cached) " >&6
7684else
7685  if test -n "$ac_ct_OTOOL"; then
7686  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7687else
7688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689for as_dir in $PATH
7690do
7691  IFS=$as_save_IFS
7692  test -z "$as_dir" && as_dir=.
7693    for ac_exec_ext in '' $ac_executable_extensions; do
7694  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7695    ac_cv_prog_ac_ct_OTOOL="otool"
7696    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7697    break 2
7698  fi
7699done
7700  done
7701IFS=$as_save_IFS
7702
7703fi
7704fi
7705ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7706if test -n "$ac_ct_OTOOL"; then
7707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7708$as_echo "$ac_ct_OTOOL" >&6; }
7709else
7710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711$as_echo "no" >&6; }
7712fi
7713
7714  if test "x$ac_ct_OTOOL" = x; then
7715    OTOOL=":"
7716  else
7717    case $cross_compiling:$ac_tool_warned in
7718yes:)
7719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7721ac_tool_warned=yes ;;
7722esac
7723    OTOOL=$ac_ct_OTOOL
7724  fi
7725else
7726  OTOOL="$ac_cv_prog_OTOOL"
7727fi
7728
7729    if test -n "$ac_tool_prefix"; then
7730  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7731set dummy ${ac_tool_prefix}otool64; ac_word=$2
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733$as_echo_n "checking for $ac_word... " >&6; }
7734if ${ac_cv_prog_OTOOL64+:} false; then :
7735  $as_echo_n "(cached) " >&6
7736else
7737  if test -n "$OTOOL64"; then
7738  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7739else
7740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741for as_dir in $PATH
7742do
7743  IFS=$as_save_IFS
7744  test -z "$as_dir" && as_dir=.
7745    for ac_exec_ext in '' $ac_executable_extensions; do
7746  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7747    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7748    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7749    break 2
7750  fi
7751done
7752  done
7753IFS=$as_save_IFS
7754
7755fi
7756fi
7757OTOOL64=$ac_cv_prog_OTOOL64
7758if test -n "$OTOOL64"; then
7759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7760$as_echo "$OTOOL64" >&6; }
7761else
7762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763$as_echo "no" >&6; }
7764fi
7765
7766
7767fi
7768if test -z "$ac_cv_prog_OTOOL64"; then
7769  ac_ct_OTOOL64=$OTOOL64
7770  # Extract the first word of "otool64", so it can be a program name with args.
7771set dummy otool64; ac_word=$2
7772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773$as_echo_n "checking for $ac_word... " >&6; }
7774if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7775  $as_echo_n "(cached) " >&6
7776else
7777  if test -n "$ac_ct_OTOOL64"; then
7778  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7779else
7780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781for as_dir in $PATH
7782do
7783  IFS=$as_save_IFS
7784  test -z "$as_dir" && as_dir=.
7785    for ac_exec_ext in '' $ac_executable_extensions; do
7786  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7787    ac_cv_prog_ac_ct_OTOOL64="otool64"
7788    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7789    break 2
7790  fi
7791done
7792  done
7793IFS=$as_save_IFS
7794
7795fi
7796fi
7797ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7798if test -n "$ac_ct_OTOOL64"; then
7799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7800$as_echo "$ac_ct_OTOOL64" >&6; }
7801else
7802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803$as_echo "no" >&6; }
7804fi
7805
7806  if test "x$ac_ct_OTOOL64" = x; then
7807    OTOOL64=":"
7808  else
7809    case $cross_compiling:$ac_tool_warned in
7810yes:)
7811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7813ac_tool_warned=yes ;;
7814esac
7815    OTOOL64=$ac_ct_OTOOL64
7816  fi
7817else
7818  OTOOL64="$ac_cv_prog_OTOOL64"
7819fi
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7848$as_echo_n "checking for -single_module linker flag... " >&6; }
7849if ${lt_cv_apple_cc_single_mod+:} false; then :
7850  $as_echo_n "(cached) " >&6
7851else
7852  lt_cv_apple_cc_single_mod=no
7853      if test -z "${LT_MULTI_MODULE}"; then
7854	# By default we will add the -single_module flag. You can override
7855	# by either setting the environment variable LT_MULTI_MODULE
7856	# non-empty at configure time, or by adding -multi_module to the
7857	# link flags.
7858	rm -rf libconftest.dylib*
7859	echo "int foo(void){return 1;}" > conftest.c
7860	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7861-dynamiclib -Wl,-single_module conftest.c" >&5
7862	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7863	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7864        _lt_result=$?
7865	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7866	  lt_cv_apple_cc_single_mod=yes
7867	else
7868	  cat conftest.err >&5
7869	fi
7870	rm -rf libconftest.dylib*
7871	rm -f conftest.*
7872      fi
7873fi
7874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7875$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7876    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7877$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7878if ${lt_cv_ld_exported_symbols_list+:} false; then :
7879  $as_echo_n "(cached) " >&6
7880else
7881  lt_cv_ld_exported_symbols_list=no
7882      save_LDFLAGS=$LDFLAGS
7883      echo "_main" > conftest.sym
7884      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7885      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886/* end confdefs.h.  */
7887
7888int
7889main ()
7890{
7891
7892  ;
7893  return 0;
7894}
7895_ACEOF
7896if ac_fn_c_try_link "$LINENO"; then :
7897  lt_cv_ld_exported_symbols_list=yes
7898else
7899  lt_cv_ld_exported_symbols_list=no
7900fi
7901rm -f core conftest.err conftest.$ac_objext \
7902    conftest$ac_exeext conftest.$ac_ext
7903	LDFLAGS="$save_LDFLAGS"
7904
7905fi
7906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7907$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7908    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7909$as_echo_n "checking for -force_load linker flag... " >&6; }
7910if ${lt_cv_ld_force_load+:} false; then :
7911  $as_echo_n "(cached) " >&6
7912else
7913  lt_cv_ld_force_load=no
7914      cat > conftest.c << _LT_EOF
7915int forced_loaded() { return 2;}
7916_LT_EOF
7917      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7918      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7919      echo "$AR cru libconftest.a conftest.o" >&5
7920      $AR cru libconftest.a conftest.o 2>&5
7921      cat > conftest.c << _LT_EOF
7922int main() { return 0;}
7923_LT_EOF
7924      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7925      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7926      _lt_result=$?
7927      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7928	lt_cv_ld_force_load=yes
7929      else
7930	cat conftest.err >&5
7931      fi
7932        rm -f conftest.err libconftest.a conftest conftest.c
7933        rm -rf conftest.dSYM
7934
7935fi
7936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7937$as_echo "$lt_cv_ld_force_load" >&6; }
7938    case $host_os in
7939    rhapsody* | darwin1.[012])
7940      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7941    darwin1.*)
7942      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7943    darwin*) # darwin 5.x on
7944      # if running on 10.5 or later, the deployment target defaults
7945      # to the OS version, if on x86, and 10.4, the deployment
7946      # target defaults to 10.4. Don't you love it?
7947      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7948	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7949	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7950	10.[012][,.]*)
7951	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7952	10.*)
7953	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7954      esac
7955    ;;
7956  esac
7957    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7958      _lt_dar_single_mod='$single_module'
7959    fi
7960    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7961      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7962    else
7963      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7964    fi
7965    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7966      _lt_dsymutil='~$DSYMUTIL $lib || :'
7967    else
7968      _lt_dsymutil=
7969    fi
7970    ;;
7971  esac
7972
7973for ac_header in dlfcn.h
7974do :
7975  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7976"
7977if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7978  cat >>confdefs.h <<_ACEOF
7979#define HAVE_DLFCN_H 1
7980_ACEOF
7981
7982fi
7983
7984done
7985
7986
7987
7988
7989
7990
7991# Set options
7992
7993
7994
7995        enable_dlopen=no
7996
7997
7998  enable_win32_dll=no
7999
8000
8001            # Check whether --enable-shared was given.
8002if test "${enable_shared+set}" = set; then :
8003  enableval=$enable_shared; p=${PACKAGE-default}
8004    case $enableval in
8005    yes) enable_shared=yes ;;
8006    no) enable_shared=no ;;
8007    *)
8008      enable_shared=no
8009      # Look at the argument we got.  We use all the common list separators.
8010      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8011      for pkg in $enableval; do
8012	IFS="$lt_save_ifs"
8013	if test "X$pkg" = "X$p"; then
8014	  enable_shared=yes
8015	fi
8016      done
8017      IFS="$lt_save_ifs"
8018      ;;
8019    esac
8020else
8021  enable_shared=yes
8022fi
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032  # Check whether --enable-static was given.
8033if test "${enable_static+set}" = set; then :
8034  enableval=$enable_static; p=${PACKAGE-default}
8035    case $enableval in
8036    yes) enable_static=yes ;;
8037    no) enable_static=no ;;
8038    *)
8039     enable_static=no
8040      # Look at the argument we got.  We use all the common list separators.
8041      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8042      for pkg in $enableval; do
8043	IFS="$lt_save_ifs"
8044	if test "X$pkg" = "X$p"; then
8045	  enable_static=yes
8046	fi
8047      done
8048      IFS="$lt_save_ifs"
8049      ;;
8050    esac
8051else
8052  enable_static=yes
8053fi
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064# Check whether --with-pic was given.
8065if test "${with_pic+set}" = set; then :
8066  withval=$with_pic; pic_mode="$withval"
8067else
8068  pic_mode=default
8069fi
8070
8071
8072test -z "$pic_mode" && pic_mode=default
8073
8074
8075
8076
8077
8078
8079
8080  # Check whether --enable-fast-install was given.
8081if test "${enable_fast_install+set}" = set; then :
8082  enableval=$enable_fast_install; p=${PACKAGE-default}
8083    case $enableval in
8084    yes) enable_fast_install=yes ;;
8085    no) enable_fast_install=no ;;
8086    *)
8087      enable_fast_install=no
8088      # Look at the argument we got.  We use all the common list separators.
8089      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8090      for pkg in $enableval; do
8091	IFS="$lt_save_ifs"
8092	if test "X$pkg" = "X$p"; then
8093	  enable_fast_install=yes
8094	fi
8095      done
8096      IFS="$lt_save_ifs"
8097      ;;
8098    esac
8099else
8100  enable_fast_install=yes
8101fi
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113# This can be used to rebuild libtool when needed
8114LIBTOOL_DEPS="$ltmain"
8115
8116# Always use our own libtool.
8117LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144test -z "$LN_S" && LN_S="ln -s"
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159if test -n "${ZSH_VERSION+set}" ; then
8160   setopt NO_GLOB_SUBST
8161fi
8162
8163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8164$as_echo_n "checking for objdir... " >&6; }
8165if ${lt_cv_objdir+:} false; then :
8166  $as_echo_n "(cached) " >&6
8167else
8168  rm -f .libs 2>/dev/null
8169mkdir .libs 2>/dev/null
8170if test -d .libs; then
8171  lt_cv_objdir=.libs
8172else
8173  # MS-DOS does not allow filenames that begin with a dot.
8174  lt_cv_objdir=_libs
8175fi
8176rmdir .libs 2>/dev/null
8177fi
8178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8179$as_echo "$lt_cv_objdir" >&6; }
8180objdir=$lt_cv_objdir
8181
8182
8183
8184
8185
8186cat >>confdefs.h <<_ACEOF
8187#define LT_OBJDIR "$lt_cv_objdir/"
8188_ACEOF
8189
8190
8191
8192
8193case $host_os in
8194aix3*)
8195  # AIX sometimes has problems with the GCC collect2 program.  For some
8196  # reason, if we set the COLLECT_NAMES environment variable, the problems
8197  # vanish in a puff of smoke.
8198  if test "X${COLLECT_NAMES+set}" != Xset; then
8199    COLLECT_NAMES=
8200    export COLLECT_NAMES
8201  fi
8202  ;;
8203esac
8204
8205# Global variables:
8206ofile=libtool
8207can_build_shared=yes
8208
8209# All known linkers require a `.a' archive for static linking (except MSVC,
8210# which needs '.lib').
8211libext=a
8212
8213with_gnu_ld="$lt_cv_prog_gnu_ld"
8214
8215old_CC="$CC"
8216old_CFLAGS="$CFLAGS"
8217
8218# Set sane defaults for various variables
8219test -z "$CC" && CC=cc
8220test -z "$LTCC" && LTCC=$CC
8221test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8222test -z "$LD" && LD=ld
8223test -z "$ac_objext" && ac_objext=o
8224
8225for cc_temp in $compiler""; do
8226  case $cc_temp in
8227    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8228    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8229    \-*) ;;
8230    *) break;;
8231  esac
8232done
8233cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8234
8235
8236# Only perform the check for file, if the check method requires it
8237test -z "$MAGIC_CMD" && MAGIC_CMD=file
8238case $deplibs_check_method in
8239file_magic*)
8240  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8241    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8242$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8243if ${lt_cv_path_MAGIC_CMD+:} false; then :
8244  $as_echo_n "(cached) " >&6
8245else
8246  case $MAGIC_CMD in
8247[\\/*] |  ?:[\\/]*)
8248  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8249  ;;
8250*)
8251  lt_save_MAGIC_CMD="$MAGIC_CMD"
8252  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8253  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8254  for ac_dir in $ac_dummy; do
8255    IFS="$lt_save_ifs"
8256    test -z "$ac_dir" && ac_dir=.
8257    if test -f $ac_dir/${ac_tool_prefix}file; then
8258      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8259      if test -n "$file_magic_test_file"; then
8260	case $deplibs_check_method in
8261	"file_magic "*)
8262	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8263	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8264	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8265	    $EGREP "$file_magic_regex" > /dev/null; then
8266	    :
8267	  else
8268	    cat <<_LT_EOF 1>&2
8269
8270*** Warning: the command libtool uses to detect shared libraries,
8271*** $file_magic_cmd, produces output that libtool cannot recognize.
8272*** The result is that libtool may fail to recognize shared libraries
8273*** as such.  This will affect the creation of libtool libraries that
8274*** depend on shared libraries, but programs linked with such libtool
8275*** libraries will work regardless of this problem.  Nevertheless, you
8276*** may want to report the problem to your system manager and/or to
8277*** bug-libtool@gnu.org
8278
8279_LT_EOF
8280	  fi ;;
8281	esac
8282      fi
8283      break
8284    fi
8285  done
8286  IFS="$lt_save_ifs"
8287  MAGIC_CMD="$lt_save_MAGIC_CMD"
8288  ;;
8289esac
8290fi
8291
8292MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8293if test -n "$MAGIC_CMD"; then
8294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8295$as_echo "$MAGIC_CMD" >&6; }
8296else
8297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8298$as_echo "no" >&6; }
8299fi
8300
8301
8302
8303
8304
8305if test -z "$lt_cv_path_MAGIC_CMD"; then
8306  if test -n "$ac_tool_prefix"; then
8307    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8308$as_echo_n "checking for file... " >&6; }
8309if ${lt_cv_path_MAGIC_CMD+:} false; then :
8310  $as_echo_n "(cached) " >&6
8311else
8312  case $MAGIC_CMD in
8313[\\/*] |  ?:[\\/]*)
8314  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8315  ;;
8316*)
8317  lt_save_MAGIC_CMD="$MAGIC_CMD"
8318  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8319  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8320  for ac_dir in $ac_dummy; do
8321    IFS="$lt_save_ifs"
8322    test -z "$ac_dir" && ac_dir=.
8323    if test -f $ac_dir/file; then
8324      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8325      if test -n "$file_magic_test_file"; then
8326	case $deplibs_check_method in
8327	"file_magic "*)
8328	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8329	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8330	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8331	    $EGREP "$file_magic_regex" > /dev/null; then
8332	    :
8333	  else
8334	    cat <<_LT_EOF 1>&2
8335
8336*** Warning: the command libtool uses to detect shared libraries,
8337*** $file_magic_cmd, produces output that libtool cannot recognize.
8338*** The result is that libtool may fail to recognize shared libraries
8339*** as such.  This will affect the creation of libtool libraries that
8340*** depend on shared libraries, but programs linked with such libtool
8341*** libraries will work regardless of this problem.  Nevertheless, you
8342*** may want to report the problem to your system manager and/or to
8343*** bug-libtool@gnu.org
8344
8345_LT_EOF
8346	  fi ;;
8347	esac
8348      fi
8349      break
8350    fi
8351  done
8352  IFS="$lt_save_ifs"
8353  MAGIC_CMD="$lt_save_MAGIC_CMD"
8354  ;;
8355esac
8356fi
8357
8358MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8359if test -n "$MAGIC_CMD"; then
8360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8361$as_echo "$MAGIC_CMD" >&6; }
8362else
8363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364$as_echo "no" >&6; }
8365fi
8366
8367
8368  else
8369    MAGIC_CMD=:
8370  fi
8371fi
8372
8373  fi
8374  ;;
8375esac
8376
8377# Use C for the default configuration in the libtool script
8378
8379lt_save_CC="$CC"
8380ac_ext=c
8381ac_cpp='$CPP $CPPFLAGS'
8382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8384ac_compiler_gnu=$ac_cv_c_compiler_gnu
8385
8386
8387# Source file extension for C test sources.
8388ac_ext=c
8389
8390# Object file extension for compiled C test sources.
8391objext=o
8392objext=$objext
8393
8394# Code to be used in simple compile tests
8395lt_simple_compile_test_code="int some_variable = 0;"
8396
8397# Code to be used in simple link tests
8398lt_simple_link_test_code='int main(){return(0);}'
8399
8400
8401
8402
8403
8404
8405
8406# If no C compiler was specified, use CC.
8407LTCC=${LTCC-"$CC"}
8408
8409# If no C compiler flags were specified, use CFLAGS.
8410LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8411
8412# Allow CC to be a program name with arguments.
8413compiler=$CC
8414
8415# Save the default compiler, since it gets overwritten when the other
8416# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8417compiler_DEFAULT=$CC
8418
8419# save warnings/boilerplate of simple test code
8420ac_outfile=conftest.$ac_objext
8421echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8422eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8423_lt_compiler_boilerplate=`cat conftest.err`
8424$RM conftest*
8425
8426ac_outfile=conftest.$ac_objext
8427echo "$lt_simple_link_test_code" >conftest.$ac_ext
8428eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8429_lt_linker_boilerplate=`cat conftest.err`
8430$RM -r conftest*
8431
8432
8433## CAVEAT EMPTOR:
8434## There is no encapsulation within the following macros, do not change
8435## the running order or otherwise move them around unless you know exactly
8436## what you are doing...
8437if test -n "$compiler"; then
8438
8439lt_prog_compiler_no_builtin_flag=
8440
8441if test "$GCC" = yes; then
8442  case $cc_basename in
8443  nvcc*)
8444    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8445  *)
8446    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8447  esac
8448
8449  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8450$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8451if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8452  $as_echo_n "(cached) " >&6
8453else
8454  lt_cv_prog_compiler_rtti_exceptions=no
8455   ac_outfile=conftest.$ac_objext
8456   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8457   lt_compiler_flag="-fno-rtti -fno-exceptions"
8458   # Insert the option either (1) after the last *FLAGS variable, or
8459   # (2) before a word containing "conftest.", or (3) at the end.
8460   # Note that $ac_compile itself does not contain backslashes and begins
8461   # with a dollar sign (not a hyphen), so the echo should work correctly.
8462   # The option is referenced via a variable to avoid confusing sed.
8463   lt_compile=`echo "$ac_compile" | $SED \
8464   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8465   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8466   -e 's:$: $lt_compiler_flag:'`
8467   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8468   (eval "$lt_compile" 2>conftest.err)
8469   ac_status=$?
8470   cat conftest.err >&5
8471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472   if (exit $ac_status) && test -s "$ac_outfile"; then
8473     # The compiler can only warn and ignore the option if not recognized
8474     # So say no if there are warnings other than the usual output.
8475     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8476     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8477     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8478       lt_cv_prog_compiler_rtti_exceptions=yes
8479     fi
8480   fi
8481   $RM conftest*
8482
8483fi
8484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8485$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8486
8487if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8488    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8489else
8490    :
8491fi
8492
8493fi
8494
8495
8496
8497
8498
8499
8500  lt_prog_compiler_wl=
8501lt_prog_compiler_pic=
8502lt_prog_compiler_static=
8503
8504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8505$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8506
8507  if test "$GCC" = yes; then
8508    lt_prog_compiler_wl='-Wl,'
8509    lt_prog_compiler_static='-static'
8510
8511    case $host_os in
8512      aix*)
8513      # All AIX code is PIC.
8514      if test "$host_cpu" = ia64; then
8515	# AIX 5 now supports IA64 processor
8516	lt_prog_compiler_static='-Bstatic'
8517      fi
8518      lt_prog_compiler_pic='-fPIC'
8519      ;;
8520
8521    amigaos*)
8522      case $host_cpu in
8523      powerpc)
8524            # see comment about AmigaOS4 .so support
8525            lt_prog_compiler_pic='-fPIC'
8526        ;;
8527      m68k)
8528            # FIXME: we need at least 68020 code to build shared libraries, but
8529            # adding the `-m68020' flag to GCC prevents building anything better,
8530            # like `-m68040'.
8531            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8532        ;;
8533      esac
8534      ;;
8535
8536    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8537      # PIC is the default for these OSes.
8538      ;;
8539
8540    mingw* | cygwin* | pw32* | os2* | cegcc*)
8541      # This hack is so that the source file can tell whether it is being
8542      # built for inclusion in a dll (and should export symbols for example).
8543      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8544      # (--disable-auto-import) libraries
8545      lt_prog_compiler_pic='-DDLL_EXPORT'
8546      ;;
8547
8548    darwin* | rhapsody*)
8549      # PIC is the default on this platform
8550      # Common symbols not allowed in MH_DYLIB files
8551      lt_prog_compiler_pic='-fno-common'
8552      ;;
8553
8554    haiku*)
8555      # PIC is the default for Haiku.
8556      # The "-static" flag exists, but is broken.
8557      lt_prog_compiler_static=
8558      ;;
8559
8560    hpux*)
8561      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8562      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8563      # sets the default TLS model and affects inlining.
8564      case $host_cpu in
8565      hppa*64*)
8566	# +Z the default
8567	;;
8568      *)
8569	lt_prog_compiler_pic='-fPIC'
8570	;;
8571      esac
8572      ;;
8573
8574    interix[3-9]*)
8575      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8576      # Instead, we relocate shared libraries at runtime.
8577      ;;
8578
8579    msdosdjgpp*)
8580      # Just because we use GCC doesn't mean we suddenly get shared libraries
8581      # on systems that don't support them.
8582      lt_prog_compiler_can_build_shared=no
8583      enable_shared=no
8584      ;;
8585
8586    *nto* | *qnx*)
8587      # QNX uses GNU C++, but need to define -shared option too, otherwise
8588      # it will coredump.
8589      lt_prog_compiler_pic='-fPIC -shared'
8590      ;;
8591
8592    sysv4*MP*)
8593      if test -d /usr/nec; then
8594	lt_prog_compiler_pic=-Kconform_pic
8595      fi
8596      ;;
8597
8598    *)
8599      lt_prog_compiler_pic='-fPIC'
8600      ;;
8601    esac
8602
8603    case $cc_basename in
8604    nvcc*) # Cuda Compiler Driver 2.2
8605      lt_prog_compiler_wl='-Xlinker '
8606      lt_prog_compiler_pic='-Xcompiler -fPIC'
8607      ;;
8608    esac
8609  else
8610    # PORTME Check for flag to pass linker flags through the system compiler.
8611    case $host_os in
8612    aix*)
8613      lt_prog_compiler_wl='-Wl,'
8614      if test "$host_cpu" = ia64; then
8615	# AIX 5 now supports IA64 processor
8616	lt_prog_compiler_static='-Bstatic'
8617      else
8618	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8619      fi
8620      ;;
8621
8622    mingw* | cygwin* | pw32* | os2* | cegcc*)
8623      # This hack is so that the source file can tell whether it is being
8624      # built for inclusion in a dll (and should export symbols for example).
8625      lt_prog_compiler_pic='-DDLL_EXPORT'
8626      ;;
8627
8628    hpux9* | hpux10* | hpux11*)
8629      lt_prog_compiler_wl='-Wl,'
8630      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8631      # not for PA HP-UX.
8632      case $host_cpu in
8633      hppa*64*|ia64*)
8634	# +Z the default
8635	;;
8636      *)
8637	lt_prog_compiler_pic='+Z'
8638	;;
8639      esac
8640      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8641      lt_prog_compiler_static='${wl}-a ${wl}archive'
8642      ;;
8643
8644    irix5* | irix6* | nonstopux*)
8645      lt_prog_compiler_wl='-Wl,'
8646      # PIC (with -KPIC) is the default.
8647      lt_prog_compiler_static='-non_shared'
8648      ;;
8649
8650    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8651      case $cc_basename in
8652      # old Intel for x86_64 which still supported -KPIC.
8653      ecc*)
8654	lt_prog_compiler_wl='-Wl,'
8655	lt_prog_compiler_pic='-KPIC'
8656	lt_prog_compiler_static='-static'
8657        ;;
8658      # icc used to be incompatible with GCC.
8659      # ICC 10 doesn't accept -KPIC any more.
8660      icc* | ifort*)
8661	lt_prog_compiler_wl='-Wl,'
8662	lt_prog_compiler_pic='-fPIC'
8663	lt_prog_compiler_static='-static'
8664        ;;
8665      # Lahey Fortran 8.1.
8666      lf95*)
8667	lt_prog_compiler_wl='-Wl,'
8668	lt_prog_compiler_pic='--shared'
8669	lt_prog_compiler_static='--static'
8670	;;
8671      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8672        # Portland Group compilers (*not* the Pentium gcc compiler,
8673	# which looks to be a dead project)
8674	lt_prog_compiler_wl='-Wl,'
8675	lt_prog_compiler_pic='-fpic'
8676	lt_prog_compiler_static='-Bstatic'
8677        ;;
8678      ccc*)
8679        lt_prog_compiler_wl='-Wl,'
8680        # All Alpha code is PIC.
8681        lt_prog_compiler_static='-non_shared'
8682        ;;
8683      xl* | bgxl* | bgf* | mpixl*)
8684	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8685	lt_prog_compiler_wl='-Wl,'
8686	lt_prog_compiler_pic='-qpic'
8687	lt_prog_compiler_static='-qstaticlink'
8688	;;
8689      *)
8690	case `$CC -V 2>&1 | sed 5q` in
8691	*Sun\ F* | *Sun*Fortran*)
8692	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8693	  lt_prog_compiler_pic='-KPIC'
8694	  lt_prog_compiler_static='-Bstatic'
8695	  lt_prog_compiler_wl=''
8696	  ;;
8697	*Sun\ C*)
8698	  # Sun C 5.9
8699	  lt_prog_compiler_pic='-KPIC'
8700	  lt_prog_compiler_static='-Bstatic'
8701	  lt_prog_compiler_wl='-Wl,'
8702	  ;;
8703	esac
8704	;;
8705      esac
8706      ;;
8707
8708    newsos6)
8709      lt_prog_compiler_pic='-KPIC'
8710      lt_prog_compiler_static='-Bstatic'
8711      ;;
8712
8713    *nto* | *qnx*)
8714      # QNX uses GNU C++, but need to define -shared option too, otherwise
8715      # it will coredump.
8716      lt_prog_compiler_pic='-fPIC -shared'
8717      ;;
8718
8719    osf3* | osf4* | osf5*)
8720      lt_prog_compiler_wl='-Wl,'
8721      # All OSF/1 code is PIC.
8722      lt_prog_compiler_static='-non_shared'
8723      ;;
8724
8725    rdos*)
8726      lt_prog_compiler_static='-non_shared'
8727      ;;
8728
8729    solaris*)
8730      lt_prog_compiler_pic='-KPIC'
8731      lt_prog_compiler_static='-Bstatic'
8732      case $cc_basename in
8733      f77* | f90* | f95*)
8734	lt_prog_compiler_wl='-Qoption ld ';;
8735      *)
8736	lt_prog_compiler_wl='-Wl,';;
8737      esac
8738      ;;
8739
8740    sunos4*)
8741      lt_prog_compiler_wl='-Qoption ld '
8742      lt_prog_compiler_pic='-PIC'
8743      lt_prog_compiler_static='-Bstatic'
8744      ;;
8745
8746    sysv4 | sysv4.2uw2* | sysv4.3*)
8747      lt_prog_compiler_wl='-Wl,'
8748      lt_prog_compiler_pic='-KPIC'
8749      lt_prog_compiler_static='-Bstatic'
8750      ;;
8751
8752    sysv4*MP*)
8753      if test -d /usr/nec ;then
8754	lt_prog_compiler_pic='-Kconform_pic'
8755	lt_prog_compiler_static='-Bstatic'
8756      fi
8757      ;;
8758
8759    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8760      lt_prog_compiler_wl='-Wl,'
8761      lt_prog_compiler_pic='-KPIC'
8762      lt_prog_compiler_static='-Bstatic'
8763      ;;
8764
8765    unicos*)
8766      lt_prog_compiler_wl='-Wl,'
8767      lt_prog_compiler_can_build_shared=no
8768      ;;
8769
8770    uts4*)
8771      lt_prog_compiler_pic='-pic'
8772      lt_prog_compiler_static='-Bstatic'
8773      ;;
8774
8775    *)
8776      lt_prog_compiler_can_build_shared=no
8777      ;;
8778    esac
8779  fi
8780
8781case $host_os in
8782  # For platforms which do not support PIC, -DPIC is meaningless:
8783  *djgpp*)
8784    lt_prog_compiler_pic=
8785    ;;
8786  *)
8787    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8788    ;;
8789esac
8790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8791$as_echo "$lt_prog_compiler_pic" >&6; }
8792
8793
8794
8795
8796
8797
8798#
8799# Check to make sure the PIC flag actually works.
8800#
8801if test -n "$lt_prog_compiler_pic"; then
8802  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8803$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8804if ${lt_cv_prog_compiler_pic_works+:} false; then :
8805  $as_echo_n "(cached) " >&6
8806else
8807  lt_cv_prog_compiler_pic_works=no
8808   ac_outfile=conftest.$ac_objext
8809   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8810   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8811   # Insert the option either (1) after the last *FLAGS variable, or
8812   # (2) before a word containing "conftest.", or (3) at the end.
8813   # Note that $ac_compile itself does not contain backslashes and begins
8814   # with a dollar sign (not a hyphen), so the echo should work correctly.
8815   # The option is referenced via a variable to avoid confusing sed.
8816   lt_compile=`echo "$ac_compile" | $SED \
8817   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8818   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8819   -e 's:$: $lt_compiler_flag:'`
8820   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8821   (eval "$lt_compile" 2>conftest.err)
8822   ac_status=$?
8823   cat conftest.err >&5
8824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825   if (exit $ac_status) && test -s "$ac_outfile"; then
8826     # The compiler can only warn and ignore the option if not recognized
8827     # So say no if there are warnings other than the usual output.
8828     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8829     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8830     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8831       lt_cv_prog_compiler_pic_works=yes
8832     fi
8833   fi
8834   $RM conftest*
8835
8836fi
8837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8838$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8839
8840if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8841    case $lt_prog_compiler_pic in
8842     "" | " "*) ;;
8843     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8844     esac
8845else
8846    lt_prog_compiler_pic=
8847     lt_prog_compiler_can_build_shared=no
8848fi
8849
8850fi
8851
8852
8853
8854
8855
8856
8857#
8858# Check to make sure the static flag actually works.
8859#
8860wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8862$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8863if ${lt_cv_prog_compiler_static_works+:} false; then :
8864  $as_echo_n "(cached) " >&6
8865else
8866  lt_cv_prog_compiler_static_works=no
8867   save_LDFLAGS="$LDFLAGS"
8868   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8869   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8870   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8871     # The linker can only warn and ignore the option if not recognized
8872     # So say no if there are warnings
8873     if test -s conftest.err; then
8874       # Append any errors to the config.log.
8875       cat conftest.err 1>&5
8876       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8877       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8878       if diff conftest.exp conftest.er2 >/dev/null; then
8879         lt_cv_prog_compiler_static_works=yes
8880       fi
8881     else
8882       lt_cv_prog_compiler_static_works=yes
8883     fi
8884   fi
8885   $RM -r conftest*
8886   LDFLAGS="$save_LDFLAGS"
8887
8888fi
8889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8890$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8891
8892if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8893    :
8894else
8895    lt_prog_compiler_static=
8896fi
8897
8898
8899
8900
8901
8902
8903
8904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8905$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8906if ${lt_cv_prog_compiler_c_o+:} false; then :
8907  $as_echo_n "(cached) " >&6
8908else
8909  lt_cv_prog_compiler_c_o=no
8910   $RM -r conftest 2>/dev/null
8911   mkdir conftest
8912   cd conftest
8913   mkdir out
8914   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8915
8916   lt_compiler_flag="-o out/conftest2.$ac_objext"
8917   # Insert the option either (1) after the last *FLAGS variable, or
8918   # (2) before a word containing "conftest.", or (3) at the end.
8919   # Note that $ac_compile itself does not contain backslashes and begins
8920   # with a dollar sign (not a hyphen), so the echo should work correctly.
8921   lt_compile=`echo "$ac_compile" | $SED \
8922   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8923   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8924   -e 's:$: $lt_compiler_flag:'`
8925   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8926   (eval "$lt_compile" 2>out/conftest.err)
8927   ac_status=$?
8928   cat out/conftest.err >&5
8929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8931   then
8932     # The compiler can only warn and ignore the option if not recognized
8933     # So say no if there are warnings
8934     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8935     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8936     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8937       lt_cv_prog_compiler_c_o=yes
8938     fi
8939   fi
8940   chmod u+w . 2>&5
8941   $RM conftest*
8942   # SGI C++ compiler will create directory out/ii_files/ for
8943   # template instantiation
8944   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8945   $RM out/* && rmdir out
8946   cd ..
8947   $RM -r conftest
8948   $RM conftest*
8949
8950fi
8951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8952$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8953
8954
8955
8956
8957
8958
8959  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8960$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8961if ${lt_cv_prog_compiler_c_o+:} false; then :
8962  $as_echo_n "(cached) " >&6
8963else
8964  lt_cv_prog_compiler_c_o=no
8965   $RM -r conftest 2>/dev/null
8966   mkdir conftest
8967   cd conftest
8968   mkdir out
8969   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8970
8971   lt_compiler_flag="-o out/conftest2.$ac_objext"
8972   # Insert the option either (1) after the last *FLAGS variable, or
8973   # (2) before a word containing "conftest.", or (3) at the end.
8974   # Note that $ac_compile itself does not contain backslashes and begins
8975   # with a dollar sign (not a hyphen), so the echo should work correctly.
8976   lt_compile=`echo "$ac_compile" | $SED \
8977   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8978   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8979   -e 's:$: $lt_compiler_flag:'`
8980   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8981   (eval "$lt_compile" 2>out/conftest.err)
8982   ac_status=$?
8983   cat out/conftest.err >&5
8984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8986   then
8987     # The compiler can only warn and ignore the option if not recognized
8988     # So say no if there are warnings
8989     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8990     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8991     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8992       lt_cv_prog_compiler_c_o=yes
8993     fi
8994   fi
8995   chmod u+w . 2>&5
8996   $RM conftest*
8997   # SGI C++ compiler will create directory out/ii_files/ for
8998   # template instantiation
8999   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9000   $RM out/* && rmdir out
9001   cd ..
9002   $RM -r conftest
9003   $RM conftest*
9004
9005fi
9006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9007$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9008
9009
9010
9011
9012hard_links="nottested"
9013if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9014  # do not overwrite the value of need_locks provided by the user
9015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9016$as_echo_n "checking if we can lock with hard links... " >&6; }
9017  hard_links=yes
9018  $RM conftest*
9019  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9020  touch conftest.a
9021  ln conftest.a conftest.b 2>&5 || hard_links=no
9022  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9024$as_echo "$hard_links" >&6; }
9025  if test "$hard_links" = no; then
9026    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9027$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9028    need_locks=warn
9029  fi
9030else
9031  need_locks=no
9032fi
9033
9034
9035
9036
9037
9038
9039  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9040$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9041
9042  runpath_var=
9043  allow_undefined_flag=
9044  always_export_symbols=no
9045  archive_cmds=
9046  archive_expsym_cmds=
9047  compiler_needs_object=no
9048  enable_shared_with_static_runtimes=no
9049  export_dynamic_flag_spec=
9050  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9051  hardcode_automatic=no
9052  hardcode_direct=no
9053  hardcode_direct_absolute=no
9054  hardcode_libdir_flag_spec=
9055  hardcode_libdir_flag_spec_ld=
9056  hardcode_libdir_separator=
9057  hardcode_minus_L=no
9058  hardcode_shlibpath_var=unsupported
9059  inherit_rpath=no
9060  link_all_deplibs=unknown
9061  module_cmds=
9062  module_expsym_cmds=
9063  old_archive_from_new_cmds=
9064  old_archive_from_expsyms_cmds=
9065  thread_safe_flag_spec=
9066  whole_archive_flag_spec=
9067  # include_expsyms should be a list of space-separated symbols to be *always*
9068  # included in the symbol list
9069  include_expsyms=
9070  # exclude_expsyms can be an extended regexp of symbols to exclude
9071  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9072  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9073  # as well as any symbol that contains `d'.
9074  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9075  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9076  # platforms (ab)use it in PIC code, but their linkers get confused if
9077  # the symbol is explicitly referenced.  Since portable code cannot
9078  # rely on this symbol name, it's probably fine to never include it in
9079  # preloaded symbol tables.
9080  # Exclude shared library initialization/finalization symbols.
9081  extract_expsyms_cmds=
9082
9083  case $host_os in
9084  cygwin* | mingw* | pw32* | cegcc*)
9085    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9086    # When not using gcc, we currently assume that we are using
9087    # Microsoft Visual C++.
9088    if test "$GCC" != yes; then
9089      with_gnu_ld=no
9090    fi
9091    ;;
9092  interix*)
9093    # we just hope/assume this is gcc and not c89 (= MSVC++)
9094    with_gnu_ld=yes
9095    ;;
9096  openbsd*)
9097    with_gnu_ld=no
9098    ;;
9099  esac
9100
9101  ld_shlibs=yes
9102
9103  # On some targets, GNU ld is compatible enough with the native linker
9104  # that we're better off using the native interface for both.
9105  lt_use_gnu_ld_interface=no
9106  if test "$with_gnu_ld" = yes; then
9107    case $host_os in
9108      aix*)
9109	# The AIX port of GNU ld has always aspired to compatibility
9110	# with the native linker.  However, as the warning in the GNU ld
9111	# block says, versions before 2.19.5* couldn't really create working
9112	# shared libraries, regardless of the interface used.
9113	case `$LD -v 2>&1` in
9114	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9115	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9116	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9117	  *)
9118	    lt_use_gnu_ld_interface=yes
9119	    ;;
9120	esac
9121	;;
9122      *)
9123	lt_use_gnu_ld_interface=yes
9124	;;
9125    esac
9126  fi
9127
9128  if test "$lt_use_gnu_ld_interface" = yes; then
9129    # If archive_cmds runs LD, not CC, wlarc should be empty
9130    wlarc='${wl}'
9131
9132    # Set some defaults for GNU ld with shared library support. These
9133    # are reset later if shared libraries are not supported. Putting them
9134    # here allows them to be overridden if necessary.
9135    runpath_var=LD_RUN_PATH
9136    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9137    export_dynamic_flag_spec='${wl}--export-dynamic'
9138    # ancient GNU ld didn't support --whole-archive et. al.
9139    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9140      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9141    else
9142      whole_archive_flag_spec=
9143    fi
9144    supports_anon_versioning=no
9145    case `$LD -v 2>&1` in
9146      *GNU\ gold*) supports_anon_versioning=yes ;;
9147      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9148      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9149      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9150      *\ 2.11.*) ;; # other 2.11 versions
9151      *) supports_anon_versioning=yes ;;
9152    esac
9153
9154    # See if GNU ld supports shared libraries.
9155    case $host_os in
9156    aix[3-9]*)
9157      # On AIX/PPC, the GNU linker is very broken
9158      if test "$host_cpu" != ia64; then
9159	ld_shlibs=no
9160	cat <<_LT_EOF 1>&2
9161
9162*** Warning: the GNU linker, at least up to release 2.19, is reported
9163*** to be unable to reliably create shared libraries on AIX.
9164*** Therefore, libtool is disabling shared libraries support.  If you
9165*** really care for shared libraries, you may want to install binutils
9166*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9167*** You will then need to restart the configuration process.
9168
9169_LT_EOF
9170      fi
9171      ;;
9172
9173    amigaos*)
9174      case $host_cpu in
9175      powerpc)
9176            # see comment about AmigaOS4 .so support
9177            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9178            archive_expsym_cmds=''
9179        ;;
9180      m68k)
9181            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)'
9182            hardcode_libdir_flag_spec='-L$libdir'
9183            hardcode_minus_L=yes
9184        ;;
9185      esac
9186      ;;
9187
9188    beos*)
9189      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9190	allow_undefined_flag=unsupported
9191	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9192	# support --undefined.  This deserves some investigation.  FIXME
9193	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9194      else
9195	ld_shlibs=no
9196      fi
9197      ;;
9198
9199    cygwin* | mingw* | pw32* | cegcc*)
9200      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9201      # as there is no search path for DLLs.
9202      hardcode_libdir_flag_spec='-L$libdir'
9203      export_dynamic_flag_spec='${wl}--export-all-symbols'
9204      allow_undefined_flag=unsupported
9205      always_export_symbols=no
9206      enable_shared_with_static_runtimes=yes
9207      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9208
9209      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9210        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9211	# If the export-symbols file already is a .def file (1st line
9212	# is EXPORTS), use it as is; otherwise, prepend...
9213	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9214	  cp $export_symbols $output_objdir/$soname.def;
9215	else
9216	  echo EXPORTS > $output_objdir/$soname.def;
9217	  cat $export_symbols >> $output_objdir/$soname.def;
9218	fi~
9219	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9220      else
9221	ld_shlibs=no
9222      fi
9223      ;;
9224
9225    haiku*)
9226      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9227      link_all_deplibs=yes
9228      ;;
9229
9230    interix[3-9]*)
9231      hardcode_direct=no
9232      hardcode_shlibpath_var=no
9233      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9234      export_dynamic_flag_spec='${wl}-E'
9235      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9236      # Instead, shared libraries are loaded at an image base (0x10000000 by
9237      # default) and relocated if they conflict, which is a slow very memory
9238      # consuming and fragmenting process.  To avoid this, we pick a random,
9239      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9240      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9241      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9242      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'
9243      ;;
9244
9245    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9246      tmp_diet=no
9247      if test "$host_os" = linux-dietlibc; then
9248	case $cc_basename in
9249	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9250	esac
9251      fi
9252      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9253	 && test "$tmp_diet" = no
9254      then
9255	tmp_addflag=' $pic_flag'
9256	tmp_sharedflag='-shared'
9257	case $cc_basename,$host_cpu in
9258        pgcc*)				# Portland Group C compiler
9259	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9260	  tmp_addflag=' $pic_flag'
9261	  ;;
9262	pgf77* | pgf90* | pgf95* | pgfortran*)
9263					# Portland Group f77 and f90 compilers
9264	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9265	  tmp_addflag=' $pic_flag -Mnomain' ;;
9266	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9267	  tmp_addflag=' -i_dynamic' ;;
9268	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9269	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9270	ifc* | ifort*)			# Intel Fortran compiler
9271	  tmp_addflag=' -nofor_main' ;;
9272	lf95*)				# Lahey Fortran 8.1
9273	  whole_archive_flag_spec=
9274	  tmp_sharedflag='--shared' ;;
9275	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9276	  tmp_sharedflag='-qmkshrobj'
9277	  tmp_addflag= ;;
9278	nvcc*)	# Cuda Compiler Driver 2.2
9279	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9280	  compiler_needs_object=yes
9281	  ;;
9282	esac
9283	case `$CC -V 2>&1 | sed 5q` in
9284	*Sun\ C*)			# Sun C 5.9
9285	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9286	  compiler_needs_object=yes
9287	  tmp_sharedflag='-G' ;;
9288	*Sun\ F*)			# Sun Fortran 8.3
9289	  tmp_sharedflag='-G' ;;
9290	esac
9291	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9292
9293        if test "x$supports_anon_versioning" = xyes; then
9294          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9295	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9296	    echo "local: *; };" >> $output_objdir/$libname.ver~
9297	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9298        fi
9299
9300	case $cc_basename in
9301	xlf* | bgf* | bgxlf* | mpixlf*)
9302	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9303	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9304	  hardcode_libdir_flag_spec=
9305	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9306	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9307	  if test "x$supports_anon_versioning" = xyes; then
9308	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9309	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9310	      echo "local: *; };" >> $output_objdir/$libname.ver~
9311	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9312	  fi
9313	  ;;
9314	esac
9315      else
9316        ld_shlibs=no
9317      fi
9318      ;;
9319
9320    netbsd*)
9321      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9322	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9323	wlarc=
9324      else
9325	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9326	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9327      fi
9328      ;;
9329
9330    solaris*)
9331      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9332	ld_shlibs=no
9333	cat <<_LT_EOF 1>&2
9334
9335*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9336*** create shared libraries on Solaris systems.  Therefore, libtool
9337*** is disabling shared libraries support.  We urge you to upgrade GNU
9338*** binutils to release 2.9.1 or newer.  Another option is to modify
9339*** your PATH or compiler configuration so that the native linker is
9340*** used, and then restart.
9341
9342_LT_EOF
9343      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9344	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9345	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9346      else
9347	ld_shlibs=no
9348      fi
9349      ;;
9350
9351    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9352      case `$LD -v 2>&1` in
9353        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9354	ld_shlibs=no
9355	cat <<_LT_EOF 1>&2
9356
9357*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9358*** reliably create shared libraries on SCO systems.  Therefore, libtool
9359*** is disabling shared libraries support.  We urge you to upgrade GNU
9360*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9361*** your PATH or compiler configuration so that the native linker is
9362*** used, and then restart.
9363
9364_LT_EOF
9365	;;
9366	*)
9367	  # For security reasons, it is highly recommended that you always
9368	  # use absolute paths for naming shared libraries, and exclude the
9369	  # DT_RUNPATH tag from executables and libraries.  But doing so
9370	  # requires that you compile everything twice, which is a pain.
9371	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9372	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9373	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9374	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9375	  else
9376	    ld_shlibs=no
9377	  fi
9378	;;
9379      esac
9380      ;;
9381
9382    sunos4*)
9383      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9384      wlarc=
9385      hardcode_direct=yes
9386      hardcode_shlibpath_var=no
9387      ;;
9388
9389    *)
9390      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9391	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9392	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9393      else
9394	ld_shlibs=no
9395      fi
9396      ;;
9397    esac
9398
9399    if test "$ld_shlibs" = no; then
9400      runpath_var=
9401      hardcode_libdir_flag_spec=
9402      export_dynamic_flag_spec=
9403      whole_archive_flag_spec=
9404    fi
9405  else
9406    # PORTME fill in a description of your system's linker (not GNU ld)
9407    case $host_os in
9408    aix3*)
9409      allow_undefined_flag=unsupported
9410      always_export_symbols=yes
9411      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'
9412      # Note: this linker hardcodes the directories in LIBPATH if there
9413      # are no directories specified by -L.
9414      hardcode_minus_L=yes
9415      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9416	# Neither direct hardcoding nor static linking is supported with a
9417	# broken collect2.
9418	hardcode_direct=unsupported
9419      fi
9420      ;;
9421
9422    aix[4-9]*)
9423      if test "$host_cpu" = ia64; then
9424	# On IA64, the linker does run time linking by default, so we don't
9425	# have to do anything special.
9426	aix_use_runtimelinking=no
9427	exp_sym_flag='-Bexport'
9428	no_entry_flag=""
9429      else
9430	# If we're using GNU nm, then we don't want the "-C" option.
9431	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9432	# Also, AIX nm treats weak defined symbols like other global
9433	# defined symbols, whereas GNU nm marks them as "W".
9434	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9435	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9436	else
9437	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9438	fi
9439	aix_use_runtimelinking=no
9440
9441	# Test if we are trying to use run time linking or normal
9442	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9443	# need to do runtime linking.
9444	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9445	  for ld_flag in $LDFLAGS; do
9446	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9447	    aix_use_runtimelinking=yes
9448	    break
9449	  fi
9450	  done
9451	  ;;
9452	esac
9453
9454	exp_sym_flag='-bexport'
9455	no_entry_flag='-bnoentry'
9456      fi
9457
9458      # When large executables or shared objects are built, AIX ld can
9459      # have problems creating the table of contents.  If linking a library
9460      # or program results in "error TOC overflow" add -mminimal-toc to
9461      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9462      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9463
9464      archive_cmds=''
9465      hardcode_direct=yes
9466      hardcode_direct_absolute=yes
9467      hardcode_libdir_separator=':'
9468      link_all_deplibs=yes
9469      file_list_spec='${wl}-f,'
9470
9471      if test "$GCC" = yes; then
9472	case $host_os in aix4.[012]|aix4.[012].*)
9473	# We only want to do this on AIX 4.2 and lower, the check
9474	# below for broken collect2 doesn't work under 4.3+
9475	  collect2name=`${CC} -print-prog-name=collect2`
9476	  if test -f "$collect2name" &&
9477	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9478	  then
9479	  # We have reworked collect2
9480	  :
9481	  else
9482	  # We have old collect2
9483	  hardcode_direct=unsupported
9484	  # It fails to find uninstalled libraries when the uninstalled
9485	  # path is not listed in the libpath.  Setting hardcode_minus_L
9486	  # to unsupported forces relinking
9487	  hardcode_minus_L=yes
9488	  hardcode_libdir_flag_spec='-L$libdir'
9489	  hardcode_libdir_separator=
9490	  fi
9491	  ;;
9492	esac
9493	shared_flag='-shared'
9494	if test "$aix_use_runtimelinking" = yes; then
9495	  shared_flag="$shared_flag "'${wl}-G'
9496	fi
9497      else
9498	# not using gcc
9499	if test "$host_cpu" = ia64; then
9500	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9501	# chokes on -Wl,-G. The following line is correct:
9502	  shared_flag='-G'
9503	else
9504	  if test "$aix_use_runtimelinking" = yes; then
9505	    shared_flag='${wl}-G'
9506	  else
9507	    shared_flag='${wl}-bM:SRE'
9508	  fi
9509	fi
9510      fi
9511
9512      export_dynamic_flag_spec='${wl}-bexpall'
9513      # It seems that -bexpall does not export symbols beginning with
9514      # underscore (_), so it is better to generate a list of symbols to export.
9515      always_export_symbols=yes
9516      if test "$aix_use_runtimelinking" = yes; then
9517	# Warning - without using the other runtime loading flags (-brtl),
9518	# -berok will link without error, but may produce a broken library.
9519	allow_undefined_flag='-berok'
9520        # Determine the default libpath from the value encoded in an
9521        # empty executable.
9522        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9523/* end confdefs.h.  */
9524
9525int
9526main ()
9527{
9528
9529  ;
9530  return 0;
9531}
9532_ACEOF
9533if ac_fn_c_try_link "$LINENO"; then :
9534
9535lt_aix_libpath_sed='
9536    /Import File Strings/,/^$/ {
9537	/^0/ {
9538	    s/^0  *\(.*\)$/\1/
9539	    p
9540	}
9541    }'
9542aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9543# Check for a 64-bit object if we didn't find anything.
9544if test -z "$aix_libpath"; then
9545  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9546fi
9547fi
9548rm -f core conftest.err conftest.$ac_objext \
9549    conftest$ac_exeext conftest.$ac_ext
9550if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9551
9552        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9553        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9554      else
9555	if test "$host_cpu" = ia64; then
9556	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9557	  allow_undefined_flag="-z nodefs"
9558	  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"
9559	else
9560	 # Determine the default libpath from the value encoded in an
9561	 # empty executable.
9562	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9563/* end confdefs.h.  */
9564
9565int
9566main ()
9567{
9568
9569  ;
9570  return 0;
9571}
9572_ACEOF
9573if ac_fn_c_try_link "$LINENO"; then :
9574
9575lt_aix_libpath_sed='
9576    /Import File Strings/,/^$/ {
9577	/^0/ {
9578	    s/^0  *\(.*\)$/\1/
9579	    p
9580	}
9581    }'
9582aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9583# Check for a 64-bit object if we didn't find anything.
9584if test -z "$aix_libpath"; then
9585  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9586fi
9587fi
9588rm -f core conftest.err conftest.$ac_objext \
9589    conftest$ac_exeext conftest.$ac_ext
9590if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9591
9592	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9593	  # Warning - without using the other run time loading flags,
9594	  # -berok will link without error, but may produce a broken library.
9595	  no_undefined_flag=' ${wl}-bernotok'
9596	  allow_undefined_flag=' ${wl}-berok'
9597	  if test "$with_gnu_ld" = yes; then
9598	    # We only use this code for GNU lds that support --whole-archive.
9599	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9600	  else
9601	    # Exported symbols can be pulled into shared objects from archives
9602	    whole_archive_flag_spec='$convenience'
9603	  fi
9604	  archive_cmds_need_lc=yes
9605	  # This is similar to how AIX traditionally builds its shared libraries.
9606	  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'
9607	fi
9608      fi
9609      ;;
9610
9611    amigaos*)
9612      case $host_cpu in
9613      powerpc)
9614            # see comment about AmigaOS4 .so support
9615            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9616            archive_expsym_cmds=''
9617        ;;
9618      m68k)
9619            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)'
9620            hardcode_libdir_flag_spec='-L$libdir'
9621            hardcode_minus_L=yes
9622        ;;
9623      esac
9624      ;;
9625
9626    bsdi[45]*)
9627      export_dynamic_flag_spec=-rdynamic
9628      ;;
9629
9630    cygwin* | mingw* | pw32* | cegcc*)
9631      # When not using gcc, we currently assume that we are using
9632      # Microsoft Visual C++.
9633      # hardcode_libdir_flag_spec is actually meaningless, as there is
9634      # no search path for DLLs.
9635      hardcode_libdir_flag_spec=' '
9636      allow_undefined_flag=unsupported
9637      # Tell ltmain to make .lib files, not .a files.
9638      libext=lib
9639      # Tell ltmain to make .dll files, not .so files.
9640      shrext_cmds=".dll"
9641      # FIXME: Setting linknames here is a bad hack.
9642      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9643      # The linker will automatically build a .lib file if we build a DLL.
9644      old_archive_from_new_cmds='true'
9645      # FIXME: Should let the user specify the lib program.
9646      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9647      fix_srcfile_path='`cygpath -w "$srcfile"`'
9648      enable_shared_with_static_runtimes=yes
9649      ;;
9650
9651    darwin* | rhapsody*)
9652
9653
9654  archive_cmds_need_lc=no
9655  hardcode_direct=no
9656  hardcode_automatic=yes
9657  hardcode_shlibpath_var=unsupported
9658  if test "$lt_cv_ld_force_load" = "yes"; then
9659    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9660  else
9661    whole_archive_flag_spec=''
9662  fi
9663  link_all_deplibs=yes
9664  allow_undefined_flag="$_lt_dar_allow_undefined"
9665  case $cc_basename in
9666     ifort*) _lt_dar_can_shared=yes ;;
9667     *) _lt_dar_can_shared=$GCC ;;
9668  esac
9669  if test "$_lt_dar_can_shared" = "yes"; then
9670    output_verbose_link_cmd=func_echo_all
9671    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9672    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9673    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}"
9674    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}"
9675
9676  else
9677  ld_shlibs=no
9678  fi
9679
9680      ;;
9681
9682    dgux*)
9683      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9684      hardcode_libdir_flag_spec='-L$libdir'
9685      hardcode_shlibpath_var=no
9686      ;;
9687
9688    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9689    # support.  Future versions do this automatically, but an explicit c++rt0.o
9690    # does not break anything, and helps significantly (at the cost of a little
9691    # extra space).
9692    freebsd2.2*)
9693      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9694      hardcode_libdir_flag_spec='-R$libdir'
9695      hardcode_direct=yes
9696      hardcode_shlibpath_var=no
9697      ;;
9698
9699    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9700    freebsd2.*)
9701      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9702      hardcode_direct=yes
9703      hardcode_minus_L=yes
9704      hardcode_shlibpath_var=no
9705      ;;
9706
9707    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9708    freebsd* | dragonfly*)
9709      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9710      hardcode_libdir_flag_spec='-R$libdir'
9711      hardcode_direct=yes
9712      hardcode_shlibpath_var=no
9713      ;;
9714
9715    hpux9*)
9716      if test "$GCC" = yes; then
9717	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'
9718      else
9719	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'
9720      fi
9721      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9722      hardcode_libdir_separator=:
9723      hardcode_direct=yes
9724
9725      # hardcode_minus_L: Not really in the search PATH,
9726      # but as the default location of the library.
9727      hardcode_minus_L=yes
9728      export_dynamic_flag_spec='${wl}-E'
9729      ;;
9730
9731    hpux10*)
9732      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9733	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9734      else
9735	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9736      fi
9737      if test "$with_gnu_ld" = no; then
9738	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9739	hardcode_libdir_flag_spec_ld='+b $libdir'
9740	hardcode_libdir_separator=:
9741	hardcode_direct=yes
9742	hardcode_direct_absolute=yes
9743	export_dynamic_flag_spec='${wl}-E'
9744	# hardcode_minus_L: Not really in the search PATH,
9745	# but as the default location of the library.
9746	hardcode_minus_L=yes
9747      fi
9748      ;;
9749
9750    hpux11*)
9751      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9752	case $host_cpu in
9753	hppa*64*)
9754	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9755	  ;;
9756	ia64*)
9757	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9758	  ;;
9759	*)
9760	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9761	  ;;
9762	esac
9763      else
9764	case $host_cpu in
9765	hppa*64*)
9766	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9767	  ;;
9768	ia64*)
9769	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9770	  ;;
9771	*)
9772
9773	  # Older versions of the 11.00 compiler do not understand -b yet
9774	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9775	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9776$as_echo_n "checking if $CC understands -b... " >&6; }
9777if ${lt_cv_prog_compiler__b+:} false; then :
9778  $as_echo_n "(cached) " >&6
9779else
9780  lt_cv_prog_compiler__b=no
9781   save_LDFLAGS="$LDFLAGS"
9782   LDFLAGS="$LDFLAGS -b"
9783   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9784   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9785     # The linker can only warn and ignore the option if not recognized
9786     # So say no if there are warnings
9787     if test -s conftest.err; then
9788       # Append any errors to the config.log.
9789       cat conftest.err 1>&5
9790       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9791       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9792       if diff conftest.exp conftest.er2 >/dev/null; then
9793         lt_cv_prog_compiler__b=yes
9794       fi
9795     else
9796       lt_cv_prog_compiler__b=yes
9797     fi
9798   fi
9799   $RM -r conftest*
9800   LDFLAGS="$save_LDFLAGS"
9801
9802fi
9803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9804$as_echo "$lt_cv_prog_compiler__b" >&6; }
9805
9806if test x"$lt_cv_prog_compiler__b" = xyes; then
9807    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9808else
9809    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9810fi
9811
9812	  ;;
9813	esac
9814      fi
9815      if test "$with_gnu_ld" = no; then
9816	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9817	hardcode_libdir_separator=:
9818
9819	case $host_cpu in
9820	hppa*64*|ia64*)
9821	  hardcode_direct=no
9822	  hardcode_shlibpath_var=no
9823	  ;;
9824	*)
9825	  hardcode_direct=yes
9826	  hardcode_direct_absolute=yes
9827	  export_dynamic_flag_spec='${wl}-E'
9828
9829	  # hardcode_minus_L: Not really in the search PATH,
9830	  # but as the default location of the library.
9831	  hardcode_minus_L=yes
9832	  ;;
9833	esac
9834      fi
9835      ;;
9836
9837    irix5* | irix6* | nonstopux*)
9838      if test "$GCC" = yes; then
9839	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9840	# Try to use the -exported_symbol ld option, if it does not
9841	# work, assume that -exports_file does not work either and
9842	# implicitly export all symbols.
9843        save_LDFLAGS="$LDFLAGS"
9844        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9845        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9846/* end confdefs.h.  */
9847int foo(void) {}
9848_ACEOF
9849if ac_fn_c_try_link "$LINENO"; then :
9850  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9851
9852fi
9853rm -f core conftest.err conftest.$ac_objext \
9854    conftest$ac_exeext conftest.$ac_ext
9855        LDFLAGS="$save_LDFLAGS"
9856      else
9857	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9858	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9859      fi
9860      archive_cmds_need_lc='no'
9861      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9862      hardcode_libdir_separator=:
9863      inherit_rpath=yes
9864      link_all_deplibs=yes
9865      ;;
9866
9867    netbsd*)
9868      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9869	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9870      else
9871	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9872      fi
9873      hardcode_libdir_flag_spec='-R$libdir'
9874      hardcode_direct=yes
9875      hardcode_shlibpath_var=no
9876      ;;
9877
9878    newsos6)
9879      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9880      hardcode_direct=yes
9881      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9882      hardcode_libdir_separator=:
9883      hardcode_shlibpath_var=no
9884      ;;
9885
9886    *nto* | *qnx*)
9887      ;;
9888
9889    openbsd*)
9890      if test -f /usr/libexec/ld.so; then
9891	hardcode_direct=yes
9892	hardcode_shlibpath_var=no
9893	hardcode_direct_absolute=yes
9894	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9895	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9896	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9897	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9898	  export_dynamic_flag_spec='${wl}-E'
9899	else
9900	  case $host_os in
9901	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9902	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9903	     hardcode_libdir_flag_spec='-R$libdir'
9904	     ;;
9905	   *)
9906	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9907	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9908	     ;;
9909	  esac
9910	fi
9911      else
9912	ld_shlibs=no
9913      fi
9914      ;;
9915
9916    os2*)
9917      hardcode_libdir_flag_spec='-L$libdir'
9918      hardcode_minus_L=yes
9919      allow_undefined_flag=unsupported
9920      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'
9921      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9922      ;;
9923
9924    osf3*)
9925      if test "$GCC" = yes; then
9926	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9927	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9928      else
9929	allow_undefined_flag=' -expect_unresolved \*'
9930	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9931      fi
9932      archive_cmds_need_lc='no'
9933      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9934      hardcode_libdir_separator=:
9935      ;;
9936
9937    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9938      if test "$GCC" = yes; then
9939	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9940	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9941	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9942      else
9943	allow_undefined_flag=' -expect_unresolved \*'
9944	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9945	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~
9946	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9947
9948	# Both c and cxx compiler support -rpath directly
9949	hardcode_libdir_flag_spec='-rpath $libdir'
9950      fi
9951      archive_cmds_need_lc='no'
9952      hardcode_libdir_separator=:
9953      ;;
9954
9955    solaris*)
9956      no_undefined_flag=' -z defs'
9957      if test "$GCC" = yes; then
9958	wlarc='${wl}'
9959	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9960	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9961	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9962      else
9963	case `$CC -V 2>&1` in
9964	*"Compilers 5.0"*)
9965	  wlarc=''
9966	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9967	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9968	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9969	  ;;
9970	*)
9971	  wlarc='${wl}'
9972	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9973	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9974	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9975	  ;;
9976	esac
9977      fi
9978      hardcode_libdir_flag_spec='-R$libdir'
9979      hardcode_shlibpath_var=no
9980      case $host_os in
9981      solaris2.[0-5] | solaris2.[0-5].*) ;;
9982      *)
9983	# The compiler driver will combine and reorder linker options,
9984	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9985	# but is careful enough not to reorder.
9986	# Supported since Solaris 2.6 (maybe 2.5.1?)
9987	if test "$GCC" = yes; then
9988	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9989	else
9990	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9991	fi
9992	;;
9993      esac
9994      link_all_deplibs=yes
9995      ;;
9996
9997    sunos4*)
9998      if test "x$host_vendor" = xsequent; then
9999	# Use $CC to link under sequent, because it throws in some extra .o
10000	# files that make .init and .fini sections work.
10001	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10002      else
10003	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10004      fi
10005      hardcode_libdir_flag_spec='-L$libdir'
10006      hardcode_direct=yes
10007      hardcode_minus_L=yes
10008      hardcode_shlibpath_var=no
10009      ;;
10010
10011    sysv4)
10012      case $host_vendor in
10013	sni)
10014	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10015	  hardcode_direct=yes # is this really true???
10016	;;
10017	siemens)
10018	  ## LD is ld it makes a PLAMLIB
10019	  ## CC just makes a GrossModule.
10020	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10021	  reload_cmds='$CC -r -o $output$reload_objs'
10022	  hardcode_direct=no
10023        ;;
10024	motorola)
10025	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10026	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10027	;;
10028      esac
10029      runpath_var='LD_RUN_PATH'
10030      hardcode_shlibpath_var=no
10031      ;;
10032
10033    sysv4.3*)
10034      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10035      hardcode_shlibpath_var=no
10036      export_dynamic_flag_spec='-Bexport'
10037      ;;
10038
10039    sysv4*MP*)
10040      if test -d /usr/nec; then
10041	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10042	hardcode_shlibpath_var=no
10043	runpath_var=LD_RUN_PATH
10044	hardcode_runpath_var=yes
10045	ld_shlibs=yes
10046      fi
10047      ;;
10048
10049    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10050      no_undefined_flag='${wl}-z,text'
10051      archive_cmds_need_lc=no
10052      hardcode_shlibpath_var=no
10053      runpath_var='LD_RUN_PATH'
10054
10055      if test "$GCC" = yes; then
10056	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10057	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10058      else
10059	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10060	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10061      fi
10062      ;;
10063
10064    sysv5* | sco3.2v5* | sco5v6*)
10065      # Note: We can NOT use -z defs as we might desire, because we do not
10066      # link with -lc, and that would cause any symbols used from libc to
10067      # always be unresolved, which means just about no library would
10068      # ever link correctly.  If we're not using GNU ld we use -z text
10069      # though, which does catch some bad symbols but isn't as heavy-handed
10070      # as -z defs.
10071      no_undefined_flag='${wl}-z,text'
10072      allow_undefined_flag='${wl}-z,nodefs'
10073      archive_cmds_need_lc=no
10074      hardcode_shlibpath_var=no
10075      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10076      hardcode_libdir_separator=':'
10077      link_all_deplibs=yes
10078      export_dynamic_flag_spec='${wl}-Bexport'
10079      runpath_var='LD_RUN_PATH'
10080
10081      if test "$GCC" = yes; then
10082	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10083	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10084      else
10085	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10086	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10087      fi
10088      ;;
10089
10090    uts4*)
10091      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10092      hardcode_libdir_flag_spec='-L$libdir'
10093      hardcode_shlibpath_var=no
10094      ;;
10095
10096    *)
10097      ld_shlibs=no
10098      ;;
10099    esac
10100
10101    if test x$host_vendor = xsni; then
10102      case $host in
10103      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10104	export_dynamic_flag_spec='${wl}-Blargedynsym'
10105	;;
10106      esac
10107    fi
10108  fi
10109
10110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10111$as_echo "$ld_shlibs" >&6; }
10112test "$ld_shlibs" = no && can_build_shared=no
10113
10114with_gnu_ld=$with_gnu_ld
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130#
10131# Do we need to explicitly link libc?
10132#
10133case "x$archive_cmds_need_lc" in
10134x|xyes)
10135  # Assume -lc should be added
10136  archive_cmds_need_lc=yes
10137
10138  if test "$enable_shared" = yes && test "$GCC" = yes; then
10139    case $archive_cmds in
10140    *'~'*)
10141      # FIXME: we may have to deal with multi-command sequences.
10142      ;;
10143    '$CC '*)
10144      # Test whether the compiler implicitly links with -lc since on some
10145      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10146      # to ld, don't add -lc before -lgcc.
10147      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10148$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10149if ${lt_cv_archive_cmds_need_lc+:} false; then :
10150  $as_echo_n "(cached) " >&6
10151else
10152  $RM conftest*
10153	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10154
10155	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10156  (eval $ac_compile) 2>&5
10157  ac_status=$?
10158  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10159  test $ac_status = 0; } 2>conftest.err; then
10160	  soname=conftest
10161	  lib=conftest
10162	  libobjs=conftest.$ac_objext
10163	  deplibs=
10164	  wl=$lt_prog_compiler_wl
10165	  pic_flag=$lt_prog_compiler_pic
10166	  compiler_flags=-v
10167	  linker_flags=-v
10168	  verstring=
10169	  output_objdir=.
10170	  libname=conftest
10171	  lt_save_allow_undefined_flag=$allow_undefined_flag
10172	  allow_undefined_flag=
10173	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10174  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10175  ac_status=$?
10176  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10177  test $ac_status = 0; }
10178	  then
10179	    lt_cv_archive_cmds_need_lc=no
10180	  else
10181	    lt_cv_archive_cmds_need_lc=yes
10182	  fi
10183	  allow_undefined_flag=$lt_save_allow_undefined_flag
10184	else
10185	  cat conftest.err 1>&5
10186	fi
10187	$RM conftest*
10188
10189fi
10190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10191$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10192      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10193      ;;
10194    esac
10195  fi
10196  ;;
10197esac
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10356$as_echo_n "checking dynamic linker characteristics... " >&6; }
10357
10358if test "$GCC" = yes; then
10359  case $host_os in
10360    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10361    *) lt_awk_arg="/^libraries:/" ;;
10362  esac
10363  case $host_os in
10364    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10365    *) lt_sed_strip_eq="s,=/,/,g" ;;
10366  esac
10367  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10368  case $lt_search_path_spec in
10369  *\;*)
10370    # if the path contains ";" then we assume it to be the separator
10371    # otherwise default to the standard path separator (i.e. ":") - it is
10372    # assumed that no part of a normal pathname contains ";" but that should
10373    # okay in the real world where ";" in dirpaths is itself problematic.
10374    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10375    ;;
10376  *)
10377    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10378    ;;
10379  esac
10380  # Ok, now we have the path, separated by spaces, we can step through it
10381  # and add multilib dir if necessary.
10382  lt_tmp_lt_search_path_spec=
10383  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10384  for lt_sys_path in $lt_search_path_spec; do
10385    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10386      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10387    else
10388      test -d "$lt_sys_path" && \
10389	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10390    fi
10391  done
10392  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10393BEGIN {RS=" "; FS="/|\n";} {
10394  lt_foo="";
10395  lt_count=0;
10396  for (lt_i = NF; lt_i > 0; lt_i--) {
10397    if ($lt_i != "" && $lt_i != ".") {
10398      if ($lt_i == "..") {
10399        lt_count++;
10400      } else {
10401        if (lt_count == 0) {
10402          lt_foo="/" $lt_i lt_foo;
10403        } else {
10404          lt_count--;
10405        }
10406      }
10407    }
10408  }
10409  if (lt_foo != "") { lt_freq[lt_foo]++; }
10410  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10411}'`
10412  # AWK program above erroneously prepends '/' to C:/dos/paths
10413  # for these hosts.
10414  case $host_os in
10415    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10416      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10417  esac
10418  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10419else
10420  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10421fi
10422library_names_spec=
10423libname_spec='lib$name'
10424soname_spec=
10425shrext_cmds=".so"
10426postinstall_cmds=
10427postuninstall_cmds=
10428finish_cmds=
10429finish_eval=
10430shlibpath_var=
10431shlibpath_overrides_runpath=unknown
10432version_type=none
10433dynamic_linker="$host_os ld.so"
10434sys_lib_dlsearch_path_spec="/lib /usr/lib"
10435need_lib_prefix=unknown
10436hardcode_into_libs=no
10437
10438# when you set need_version to no, make sure it does not cause -set_version
10439# flags to be left without arguments
10440need_version=unknown
10441
10442case $host_os in
10443aix3*)
10444  version_type=linux
10445  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10446  shlibpath_var=LIBPATH
10447
10448  # AIX 3 has no versioning support, so we append a major version to the name.
10449  soname_spec='${libname}${release}${shared_ext}$major'
10450  ;;
10451
10452aix[4-9]*)
10453  version_type=linux
10454  need_lib_prefix=no
10455  need_version=no
10456  hardcode_into_libs=yes
10457  if test "$host_cpu" = ia64; then
10458    # AIX 5 supports IA64
10459    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10460    shlibpath_var=LD_LIBRARY_PATH
10461  else
10462    # With GCC up to 2.95.x, collect2 would create an import file
10463    # for dependence libraries.  The import file would start with
10464    # the line `#! .'.  This would cause the generated library to
10465    # depend on `.', always an invalid library.  This was fixed in
10466    # development snapshots of GCC prior to 3.0.
10467    case $host_os in
10468      aix4 | aix4.[01] | aix4.[01].*)
10469      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10470	   echo ' yes '
10471	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10472	:
10473      else
10474	can_build_shared=no
10475      fi
10476      ;;
10477    esac
10478    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10479    # soname into executable. Probably we can add versioning support to
10480    # collect2, so additional links can be useful in future.
10481    if test "$aix_use_runtimelinking" = yes; then
10482      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10483      # instead of lib<name>.a to let people know that these are not
10484      # typical AIX shared libraries.
10485      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486    else
10487      # We preserve .a as extension for shared libraries through AIX4.2
10488      # and later when we are not doing run time linking.
10489      library_names_spec='${libname}${release}.a $libname.a'
10490      soname_spec='${libname}${release}${shared_ext}$major'
10491    fi
10492    shlibpath_var=LIBPATH
10493  fi
10494  ;;
10495
10496amigaos*)
10497  case $host_cpu in
10498  powerpc)
10499    # Since July 2007 AmigaOS4 officially supports .so libraries.
10500    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10501    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10502    ;;
10503  m68k)
10504    library_names_spec='$libname.ixlibrary $libname.a'
10505    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10506    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10507    ;;
10508  esac
10509  ;;
10510
10511beos*)
10512  library_names_spec='${libname}${shared_ext}'
10513  dynamic_linker="$host_os ld.so"
10514  shlibpath_var=LIBRARY_PATH
10515  ;;
10516
10517bsdi[45]*)
10518  version_type=linux
10519  need_version=no
10520  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10521  soname_spec='${libname}${release}${shared_ext}$major'
10522  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10523  shlibpath_var=LD_LIBRARY_PATH
10524  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10525  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10526  # the default ld.so.conf also contains /usr/contrib/lib and
10527  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10528  # libtool to hard-code these into programs
10529  ;;
10530
10531cygwin* | mingw* | pw32* | cegcc*)
10532  version_type=windows
10533  shrext_cmds=".dll"
10534  need_version=no
10535  need_lib_prefix=no
10536
10537  case $GCC,$host_os in
10538  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10539    library_names_spec='$libname.dll.a'
10540    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10541    postinstall_cmds='base_file=`basename \${file}`~
10542      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10543      dldir=$destdir/`dirname \$dlpath`~
10544      test -d \$dldir || mkdir -p \$dldir~
10545      $install_prog $dir/$dlname \$dldir/$dlname~
10546      chmod a+x \$dldir/$dlname~
10547      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10548        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10549      fi'
10550    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10551      dlpath=$dir/\$dldll~
10552       $RM \$dlpath'
10553    shlibpath_overrides_runpath=yes
10554
10555    case $host_os in
10556    cygwin*)
10557      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10558      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10559
10560      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10561      ;;
10562    mingw* | cegcc*)
10563      # MinGW DLLs use traditional 'lib' prefix
10564      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10565      ;;
10566    pw32*)
10567      # pw32 DLLs use 'pw' prefix rather than 'lib'
10568      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10569      ;;
10570    esac
10571    ;;
10572
10573  *)
10574    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10575    ;;
10576  esac
10577  dynamic_linker='Win32 ld.exe'
10578  # FIXME: first we should search . and the directory the executable is in
10579  shlibpath_var=PATH
10580  ;;
10581
10582darwin* | rhapsody*)
10583  dynamic_linker="$host_os dyld"
10584  version_type=darwin
10585  need_lib_prefix=no
10586  need_version=no
10587  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10588  soname_spec='${libname}${release}${major}$shared_ext'
10589  shlibpath_overrides_runpath=yes
10590  shlibpath_var=DYLD_LIBRARY_PATH
10591  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10592
10593  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10594  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10595  ;;
10596
10597dgux*)
10598  version_type=linux
10599  need_lib_prefix=no
10600  need_version=no
10601  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10602  soname_spec='${libname}${release}${shared_ext}$major'
10603  shlibpath_var=LD_LIBRARY_PATH
10604  ;;
10605
10606freebsd* | dragonfly*)
10607  # DragonFly does not have aout.  When/if they implement a new
10608  # versioning mechanism, adjust this.
10609  if test -x /usr/bin/objformat; then
10610    objformat=`/usr/bin/objformat`
10611  else
10612    case $host_os in
10613    freebsd[23].*) objformat=aout ;;
10614    *) objformat=elf ;;
10615    esac
10616  fi
10617  version_type=freebsd-$objformat
10618  case $version_type in
10619    freebsd-elf*)
10620      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10621      need_version=no
10622      need_lib_prefix=no
10623      ;;
10624    freebsd-*)
10625      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10626      need_version=yes
10627      ;;
10628  esac
10629  shlibpath_var=LD_LIBRARY_PATH
10630  case $host_os in
10631  freebsd2.*)
10632    shlibpath_overrides_runpath=yes
10633    ;;
10634  freebsd3.[01]* | freebsdelf3.[01]*)
10635    shlibpath_overrides_runpath=yes
10636    hardcode_into_libs=yes
10637    ;;
10638  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10639  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10640    shlibpath_overrides_runpath=no
10641    hardcode_into_libs=yes
10642    ;;
10643  *) # from 4.6 on, and DragonFly
10644    shlibpath_overrides_runpath=yes
10645    hardcode_into_libs=yes
10646    ;;
10647  esac
10648  ;;
10649
10650haiku*)
10651  version_type=linux
10652  need_lib_prefix=no
10653  need_version=no
10654  dynamic_linker="$host_os runtime_loader"
10655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10656  soname_spec='${libname}${release}${shared_ext}$major'
10657  shlibpath_var=LIBRARY_PATH
10658  shlibpath_overrides_runpath=yes
10659  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10660  hardcode_into_libs=yes
10661  ;;
10662
10663hpux9* | hpux10* | hpux11*)
10664  # Give a soname corresponding to the major version so that dld.sl refuses to
10665  # link against other versions.
10666  version_type=sunos
10667  need_lib_prefix=no
10668  need_version=no
10669  case $host_cpu in
10670  ia64*)
10671    shrext_cmds='.so'
10672    hardcode_into_libs=yes
10673    dynamic_linker="$host_os dld.so"
10674    shlibpath_var=LD_LIBRARY_PATH
10675    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10676    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10677    soname_spec='${libname}${release}${shared_ext}$major'
10678    if test "X$HPUX_IA64_MODE" = X32; then
10679      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10680    else
10681      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10682    fi
10683    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10684    ;;
10685  hppa*64*)
10686    shrext_cmds='.sl'
10687    hardcode_into_libs=yes
10688    dynamic_linker="$host_os dld.sl"
10689    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10690    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10691    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10692    soname_spec='${libname}${release}${shared_ext}$major'
10693    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10694    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10695    ;;
10696  *)
10697    shrext_cmds='.sl'
10698    dynamic_linker="$host_os dld.sl"
10699    shlibpath_var=SHLIB_PATH
10700    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10701    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10702    soname_spec='${libname}${release}${shared_ext}$major'
10703    ;;
10704  esac
10705  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10706  postinstall_cmds='chmod 555 $lib'
10707  # or fails outright, so override atomically:
10708  install_override_mode=555
10709  ;;
10710
10711interix[3-9]*)
10712  version_type=linux
10713  need_lib_prefix=no
10714  need_version=no
10715  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10716  soname_spec='${libname}${release}${shared_ext}$major'
10717  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10718  shlibpath_var=LD_LIBRARY_PATH
10719  shlibpath_overrides_runpath=no
10720  hardcode_into_libs=yes
10721  ;;
10722
10723irix5* | irix6* | nonstopux*)
10724  case $host_os in
10725    nonstopux*) version_type=nonstopux ;;
10726    *)
10727	if test "$lt_cv_prog_gnu_ld" = yes; then
10728		version_type=linux
10729	else
10730		version_type=irix
10731	fi ;;
10732  esac
10733  need_lib_prefix=no
10734  need_version=no
10735  soname_spec='${libname}${release}${shared_ext}$major'
10736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10737  case $host_os in
10738  irix5* | nonstopux*)
10739    libsuff= shlibsuff=
10740    ;;
10741  *)
10742    case $LD in # libtool.m4 will add one of these switches to LD
10743    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10744      libsuff= shlibsuff= libmagic=32-bit;;
10745    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10746      libsuff=32 shlibsuff=N32 libmagic=N32;;
10747    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10748      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10749    *) libsuff= shlibsuff= libmagic=never-match;;
10750    esac
10751    ;;
10752  esac
10753  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10754  shlibpath_overrides_runpath=no
10755  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10756  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10757  hardcode_into_libs=yes
10758  ;;
10759
10760# No shared lib support for Linux oldld, aout, or coff.
10761linux*oldld* | linux*aout* | linux*coff*)
10762  dynamic_linker=no
10763  ;;
10764
10765# This must be Linux ELF.
10766linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10767  version_type=linux
10768  need_lib_prefix=no
10769  need_version=no
10770  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10771  soname_spec='${libname}${release}${shared_ext}$major'
10772  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10773  shlibpath_var=LD_LIBRARY_PATH
10774  shlibpath_overrides_runpath=no
10775
10776  # Some binutils ld are patched to set DT_RUNPATH
10777  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10778  $as_echo_n "(cached) " >&6
10779else
10780  lt_cv_shlibpath_overrides_runpath=no
10781    save_LDFLAGS=$LDFLAGS
10782    save_libdir=$libdir
10783    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10784	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10785    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10786/* end confdefs.h.  */
10787
10788int
10789main ()
10790{
10791
10792  ;
10793  return 0;
10794}
10795_ACEOF
10796if ac_fn_c_try_link "$LINENO"; then :
10797  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10798  lt_cv_shlibpath_overrides_runpath=yes
10799fi
10800fi
10801rm -f core conftest.err conftest.$ac_objext \
10802    conftest$ac_exeext conftest.$ac_ext
10803    LDFLAGS=$save_LDFLAGS
10804    libdir=$save_libdir
10805
10806fi
10807
10808  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10809
10810  # This implies no fast_install, which is unacceptable.
10811  # Some rework will be needed to allow for fast_install
10812  # before this can be enabled.
10813  hardcode_into_libs=yes
10814
10815  # Append ld.so.conf contents to the search path
10816  if test -f /etc/ld.so.conf; then
10817    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;s/"//g;/^$/d' | tr '\n' ' '`
10818    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10819  fi
10820
10821  # We used to test for /lib/ld.so.1 and disable shared libraries on
10822  # powerpc, because MkLinux only supported shared libraries with the
10823  # GNU dynamic linker.  Since this was broken with cross compilers,
10824  # most powerpc-linux boxes support dynamic linking these days and
10825  # people can always --disable-shared, the test was removed, and we
10826  # assume the GNU/Linux dynamic linker is in use.
10827  dynamic_linker='GNU/Linux ld.so'
10828  ;;
10829
10830netbsd*)
10831  version_type=sunos
10832  need_lib_prefix=no
10833  need_version=no
10834  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10835    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10836    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10837    dynamic_linker='NetBSD (a.out) ld.so'
10838  else
10839    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10840    soname_spec='${libname}${release}${shared_ext}$major'
10841    dynamic_linker='NetBSD ld.elf_so'
10842  fi
10843  shlibpath_var=LD_LIBRARY_PATH
10844  shlibpath_overrides_runpath=yes
10845  hardcode_into_libs=yes
10846  ;;
10847
10848newsos6)
10849  version_type=linux
10850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10851  shlibpath_var=LD_LIBRARY_PATH
10852  shlibpath_overrides_runpath=yes
10853  ;;
10854
10855*nto* | *qnx*)
10856  version_type=qnx
10857  need_lib_prefix=no
10858  need_version=no
10859  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10860  soname_spec='${libname}${release}${shared_ext}$major'
10861  shlibpath_var=LD_LIBRARY_PATH
10862  shlibpath_overrides_runpath=no
10863  hardcode_into_libs=yes
10864  dynamic_linker='ldqnx.so'
10865  ;;
10866
10867openbsd*)
10868  version_type=sunos
10869  sys_lib_dlsearch_path_spec="/usr/lib"
10870  need_lib_prefix=no
10871  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10872  case $host_os in
10873    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10874    *)				need_version=no  ;;
10875  esac
10876  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10877  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10878  shlibpath_var=LD_LIBRARY_PATH
10879  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10880    case $host_os in
10881      openbsd2.[89] | openbsd2.[89].*)
10882	shlibpath_overrides_runpath=no
10883	;;
10884      *)
10885	shlibpath_overrides_runpath=yes
10886	;;
10887      esac
10888  else
10889    shlibpath_overrides_runpath=yes
10890  fi
10891  ;;
10892
10893os2*)
10894  libname_spec='$name'
10895  shrext_cmds=".dll"
10896  need_lib_prefix=no
10897  library_names_spec='$libname${shared_ext} $libname.a'
10898  dynamic_linker='OS/2 ld.exe'
10899  shlibpath_var=LIBPATH
10900  ;;
10901
10902osf3* | osf4* | osf5*)
10903  version_type=osf
10904  need_lib_prefix=no
10905  need_version=no
10906  soname_spec='${libname}${release}${shared_ext}$major'
10907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10908  shlibpath_var=LD_LIBRARY_PATH
10909  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10910  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10911  ;;
10912
10913rdos*)
10914  dynamic_linker=no
10915  ;;
10916
10917solaris*)
10918  version_type=linux
10919  need_lib_prefix=no
10920  need_version=no
10921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10922  soname_spec='${libname}${release}${shared_ext}$major'
10923  shlibpath_var=LD_LIBRARY_PATH
10924  shlibpath_overrides_runpath=yes
10925  hardcode_into_libs=yes
10926  # ldd complains unless libraries are executable
10927  postinstall_cmds='chmod +x $lib'
10928  ;;
10929
10930sunos4*)
10931  version_type=sunos
10932  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10933  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10934  shlibpath_var=LD_LIBRARY_PATH
10935  shlibpath_overrides_runpath=yes
10936  if test "$with_gnu_ld" = yes; then
10937    need_lib_prefix=no
10938  fi
10939  need_version=yes
10940  ;;
10941
10942sysv4 | sysv4.3*)
10943  version_type=linux
10944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10945  soname_spec='${libname}${release}${shared_ext}$major'
10946  shlibpath_var=LD_LIBRARY_PATH
10947  case $host_vendor in
10948    sni)
10949      shlibpath_overrides_runpath=no
10950      need_lib_prefix=no
10951      runpath_var=LD_RUN_PATH
10952      ;;
10953    siemens)
10954      need_lib_prefix=no
10955      ;;
10956    motorola)
10957      need_lib_prefix=no
10958      need_version=no
10959      shlibpath_overrides_runpath=no
10960      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10961      ;;
10962  esac
10963  ;;
10964
10965sysv4*MP*)
10966  if test -d /usr/nec ;then
10967    version_type=linux
10968    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10969    soname_spec='$libname${shared_ext}.$major'
10970    shlibpath_var=LD_LIBRARY_PATH
10971  fi
10972  ;;
10973
10974sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10975  version_type=freebsd-elf
10976  need_lib_prefix=no
10977  need_version=no
10978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10979  soname_spec='${libname}${release}${shared_ext}$major'
10980  shlibpath_var=LD_LIBRARY_PATH
10981  shlibpath_overrides_runpath=yes
10982  hardcode_into_libs=yes
10983  if test "$with_gnu_ld" = yes; then
10984    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10985  else
10986    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10987    case $host_os in
10988      sco3.2v5*)
10989        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10990	;;
10991    esac
10992  fi
10993  sys_lib_dlsearch_path_spec='/usr/lib'
10994  ;;
10995
10996tpf*)
10997  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10998  version_type=linux
10999  need_lib_prefix=no
11000  need_version=no
11001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11002  shlibpath_var=LD_LIBRARY_PATH
11003  shlibpath_overrides_runpath=no
11004  hardcode_into_libs=yes
11005  ;;
11006
11007uts4*)
11008  version_type=linux
11009  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11010  soname_spec='${libname}${release}${shared_ext}$major'
11011  shlibpath_var=LD_LIBRARY_PATH
11012  ;;
11013
11014*)
11015  dynamic_linker=no
11016  ;;
11017esac
11018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11019$as_echo "$dynamic_linker" >&6; }
11020test "$dynamic_linker" = no && can_build_shared=no
11021
11022variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11023if test "$GCC" = yes; then
11024  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11025fi
11026
11027if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11028  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11029fi
11030if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11031  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11032fi
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11126$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11127hardcode_action=
11128if test -n "$hardcode_libdir_flag_spec" ||
11129   test -n "$runpath_var" ||
11130   test "X$hardcode_automatic" = "Xyes" ; then
11131
11132  # We can hardcode non-existent directories.
11133  if test "$hardcode_direct" != no &&
11134     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11135     # have to relink, otherwise we might link with an installed library
11136     # when we should be linking with a yet-to-be-installed one
11137     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11138     test "$hardcode_minus_L" != no; then
11139    # Linking always hardcodes the temporary library directory.
11140    hardcode_action=relink
11141  else
11142    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11143    hardcode_action=immediate
11144  fi
11145else
11146  # We cannot hardcode anything, or else we can only hardcode existing
11147  # directories.
11148  hardcode_action=unsupported
11149fi
11150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11151$as_echo "$hardcode_action" >&6; }
11152
11153if test "$hardcode_action" = relink ||
11154   test "$inherit_rpath" = yes; then
11155  # Fast installation is not supported
11156  enable_fast_install=no
11157elif test "$shlibpath_overrides_runpath" = yes ||
11158     test "$enable_shared" = no; then
11159  # Fast installation is not necessary
11160  enable_fast_install=needless
11161fi
11162
11163
11164
11165
11166
11167
11168  if test "x$enable_dlopen" != xyes; then
11169  enable_dlopen=unknown
11170  enable_dlopen_self=unknown
11171  enable_dlopen_self_static=unknown
11172else
11173  lt_cv_dlopen=no
11174  lt_cv_dlopen_libs=
11175
11176  case $host_os in
11177  beos*)
11178    lt_cv_dlopen="load_add_on"
11179    lt_cv_dlopen_libs=
11180    lt_cv_dlopen_self=yes
11181    ;;
11182
11183  mingw* | pw32* | cegcc*)
11184    lt_cv_dlopen="LoadLibrary"
11185    lt_cv_dlopen_libs=
11186    ;;
11187
11188  cygwin*)
11189    lt_cv_dlopen="dlopen"
11190    lt_cv_dlopen_libs=
11191    ;;
11192
11193  darwin*)
11194  # if libdl is installed we need to link against it
11195    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11196$as_echo_n "checking for dlopen in -ldl... " >&6; }
11197if ${ac_cv_lib_dl_dlopen+:} false; then :
11198  $as_echo_n "(cached) " >&6
11199else
11200  ac_check_lib_save_LIBS=$LIBS
11201LIBS="-ldl  $LIBS"
11202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11203/* end confdefs.h.  */
11204
11205/* Override any GCC internal prototype to avoid an error.
11206   Use char because int might match the return type of a GCC
11207   builtin and then its argument prototype would still apply.  */
11208#ifdef __cplusplus
11209extern "C"
11210#endif
11211char dlopen ();
11212int
11213main ()
11214{
11215return dlopen ();
11216  ;
11217  return 0;
11218}
11219_ACEOF
11220if ac_fn_c_try_link "$LINENO"; then :
11221  ac_cv_lib_dl_dlopen=yes
11222else
11223  ac_cv_lib_dl_dlopen=no
11224fi
11225rm -f core conftest.err conftest.$ac_objext \
11226    conftest$ac_exeext conftest.$ac_ext
11227LIBS=$ac_check_lib_save_LIBS
11228fi
11229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11230$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11231if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11232  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11233else
11234
11235    lt_cv_dlopen="dyld"
11236    lt_cv_dlopen_libs=
11237    lt_cv_dlopen_self=yes
11238
11239fi
11240
11241    ;;
11242
11243  *)
11244    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11245if test "x$ac_cv_func_shl_load" = xyes; then :
11246  lt_cv_dlopen="shl_load"
11247else
11248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11249$as_echo_n "checking for shl_load in -ldld... " >&6; }
11250if ${ac_cv_lib_dld_shl_load+:} false; then :
11251  $as_echo_n "(cached) " >&6
11252else
11253  ac_check_lib_save_LIBS=$LIBS
11254LIBS="-ldld  $LIBS"
11255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11256/* end confdefs.h.  */
11257
11258/* Override any GCC internal prototype to avoid an error.
11259   Use char because int might match the return type of a GCC
11260   builtin and then its argument prototype would still apply.  */
11261#ifdef __cplusplus
11262extern "C"
11263#endif
11264char shl_load ();
11265int
11266main ()
11267{
11268return shl_load ();
11269  ;
11270  return 0;
11271}
11272_ACEOF
11273if ac_fn_c_try_link "$LINENO"; then :
11274  ac_cv_lib_dld_shl_load=yes
11275else
11276  ac_cv_lib_dld_shl_load=no
11277fi
11278rm -f core conftest.err conftest.$ac_objext \
11279    conftest$ac_exeext conftest.$ac_ext
11280LIBS=$ac_check_lib_save_LIBS
11281fi
11282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11283$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11284if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11285  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11286else
11287  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11288if test "x$ac_cv_func_dlopen" = xyes; then :
11289  lt_cv_dlopen="dlopen"
11290else
11291  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11292$as_echo_n "checking for dlopen in -ldl... " >&6; }
11293if ${ac_cv_lib_dl_dlopen+:} false; then :
11294  $as_echo_n "(cached) " >&6
11295else
11296  ac_check_lib_save_LIBS=$LIBS
11297LIBS="-ldl  $LIBS"
11298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299/* end confdefs.h.  */
11300
11301/* Override any GCC internal prototype to avoid an error.
11302   Use char because int might match the return type of a GCC
11303   builtin and then its argument prototype would still apply.  */
11304#ifdef __cplusplus
11305extern "C"
11306#endif
11307char dlopen ();
11308int
11309main ()
11310{
11311return dlopen ();
11312  ;
11313  return 0;
11314}
11315_ACEOF
11316if ac_fn_c_try_link "$LINENO"; then :
11317  ac_cv_lib_dl_dlopen=yes
11318else
11319  ac_cv_lib_dl_dlopen=no
11320fi
11321rm -f core conftest.err conftest.$ac_objext \
11322    conftest$ac_exeext conftest.$ac_ext
11323LIBS=$ac_check_lib_save_LIBS
11324fi
11325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11326$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11327if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11328  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11329else
11330  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11331$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11332if ${ac_cv_lib_svld_dlopen+:} false; then :
11333  $as_echo_n "(cached) " >&6
11334else
11335  ac_check_lib_save_LIBS=$LIBS
11336LIBS="-lsvld  $LIBS"
11337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11338/* end confdefs.h.  */
11339
11340/* Override any GCC internal prototype to avoid an error.
11341   Use char because int might match the return type of a GCC
11342   builtin and then its argument prototype would still apply.  */
11343#ifdef __cplusplus
11344extern "C"
11345#endif
11346char dlopen ();
11347int
11348main ()
11349{
11350return dlopen ();
11351  ;
11352  return 0;
11353}
11354_ACEOF
11355if ac_fn_c_try_link "$LINENO"; then :
11356  ac_cv_lib_svld_dlopen=yes
11357else
11358  ac_cv_lib_svld_dlopen=no
11359fi
11360rm -f core conftest.err conftest.$ac_objext \
11361    conftest$ac_exeext conftest.$ac_ext
11362LIBS=$ac_check_lib_save_LIBS
11363fi
11364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11365$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11366if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11367  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11368else
11369  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11370$as_echo_n "checking for dld_link in -ldld... " >&6; }
11371if ${ac_cv_lib_dld_dld_link+:} false; then :
11372  $as_echo_n "(cached) " >&6
11373else
11374  ac_check_lib_save_LIBS=$LIBS
11375LIBS="-ldld  $LIBS"
11376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11377/* end confdefs.h.  */
11378
11379/* Override any GCC internal prototype to avoid an error.
11380   Use char because int might match the return type of a GCC
11381   builtin and then its argument prototype would still apply.  */
11382#ifdef __cplusplus
11383extern "C"
11384#endif
11385char dld_link ();
11386int
11387main ()
11388{
11389return dld_link ();
11390  ;
11391  return 0;
11392}
11393_ACEOF
11394if ac_fn_c_try_link "$LINENO"; then :
11395  ac_cv_lib_dld_dld_link=yes
11396else
11397  ac_cv_lib_dld_dld_link=no
11398fi
11399rm -f core conftest.err conftest.$ac_objext \
11400    conftest$ac_exeext conftest.$ac_ext
11401LIBS=$ac_check_lib_save_LIBS
11402fi
11403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11404$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11405if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11406  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11407fi
11408
11409
11410fi
11411
11412
11413fi
11414
11415
11416fi
11417
11418
11419fi
11420
11421
11422fi
11423
11424    ;;
11425  esac
11426
11427  if test "x$lt_cv_dlopen" != xno; then
11428    enable_dlopen=yes
11429  else
11430    enable_dlopen=no
11431  fi
11432
11433  case $lt_cv_dlopen in
11434  dlopen)
11435    save_CPPFLAGS="$CPPFLAGS"
11436    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11437
11438    save_LDFLAGS="$LDFLAGS"
11439    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11440
11441    save_LIBS="$LIBS"
11442    LIBS="$lt_cv_dlopen_libs $LIBS"
11443
11444    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11445$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11446if ${lt_cv_dlopen_self+:} false; then :
11447  $as_echo_n "(cached) " >&6
11448else
11449  	  if test "$cross_compiling" = yes; then :
11450  lt_cv_dlopen_self=cross
11451else
11452  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11453  lt_status=$lt_dlunknown
11454  cat > conftest.$ac_ext <<_LT_EOF
11455#line 11455 "configure"
11456#include "confdefs.h"
11457
11458#if HAVE_DLFCN_H
11459#include <dlfcn.h>
11460#endif
11461
11462#include <stdio.h>
11463
11464#ifdef RTLD_GLOBAL
11465#  define LT_DLGLOBAL		RTLD_GLOBAL
11466#else
11467#  ifdef DL_GLOBAL
11468#    define LT_DLGLOBAL		DL_GLOBAL
11469#  else
11470#    define LT_DLGLOBAL		0
11471#  endif
11472#endif
11473
11474/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11475   find out it does not work in some platform. */
11476#ifndef LT_DLLAZY_OR_NOW
11477#  ifdef RTLD_LAZY
11478#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11479#  else
11480#    ifdef DL_LAZY
11481#      define LT_DLLAZY_OR_NOW		DL_LAZY
11482#    else
11483#      ifdef RTLD_NOW
11484#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11485#      else
11486#        ifdef DL_NOW
11487#          define LT_DLLAZY_OR_NOW	DL_NOW
11488#        else
11489#          define LT_DLLAZY_OR_NOW	0
11490#        endif
11491#      endif
11492#    endif
11493#  endif
11494#endif
11495
11496/* When -fvisbility=hidden is used, assume the code has been annotated
11497   correspondingly for the symbols needed.  */
11498#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11499void fnord () __attribute__((visibility("default")));
11500#endif
11501
11502void fnord () { int i=42; }
11503int main ()
11504{
11505  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11506  int status = $lt_dlunknown;
11507
11508  if (self)
11509    {
11510      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11511      else
11512        {
11513	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11514          else puts (dlerror ());
11515	}
11516      /* dlclose (self); */
11517    }
11518  else
11519    puts (dlerror ());
11520
11521  return status;
11522}
11523_LT_EOF
11524  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11525  (eval $ac_link) 2>&5
11526  ac_status=$?
11527  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11528  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11529    (./conftest; exit; ) >&5 2>/dev/null
11530    lt_status=$?
11531    case x$lt_status in
11532      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11533      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11534      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11535    esac
11536  else :
11537    # compilation failed
11538    lt_cv_dlopen_self=no
11539  fi
11540fi
11541rm -fr conftest*
11542
11543
11544fi
11545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11546$as_echo "$lt_cv_dlopen_self" >&6; }
11547
11548    if test "x$lt_cv_dlopen_self" = xyes; then
11549      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11550      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11551$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11552if ${lt_cv_dlopen_self_static+:} false; then :
11553  $as_echo_n "(cached) " >&6
11554else
11555  	  if test "$cross_compiling" = yes; then :
11556  lt_cv_dlopen_self_static=cross
11557else
11558  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11559  lt_status=$lt_dlunknown
11560  cat > conftest.$ac_ext <<_LT_EOF
11561#line 11561 "configure"
11562#include "confdefs.h"
11563
11564#if HAVE_DLFCN_H
11565#include <dlfcn.h>
11566#endif
11567
11568#include <stdio.h>
11569
11570#ifdef RTLD_GLOBAL
11571#  define LT_DLGLOBAL		RTLD_GLOBAL
11572#else
11573#  ifdef DL_GLOBAL
11574#    define LT_DLGLOBAL		DL_GLOBAL
11575#  else
11576#    define LT_DLGLOBAL		0
11577#  endif
11578#endif
11579
11580/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11581   find out it does not work in some platform. */
11582#ifndef LT_DLLAZY_OR_NOW
11583#  ifdef RTLD_LAZY
11584#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11585#  else
11586#    ifdef DL_LAZY
11587#      define LT_DLLAZY_OR_NOW		DL_LAZY
11588#    else
11589#      ifdef RTLD_NOW
11590#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11591#      else
11592#        ifdef DL_NOW
11593#          define LT_DLLAZY_OR_NOW	DL_NOW
11594#        else
11595#          define LT_DLLAZY_OR_NOW	0
11596#        endif
11597#      endif
11598#    endif
11599#  endif
11600#endif
11601
11602/* When -fvisbility=hidden is used, assume the code has been annotated
11603   correspondingly for the symbols needed.  */
11604#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11605void fnord () __attribute__((visibility("default")));
11606#endif
11607
11608void fnord () { int i=42; }
11609int main ()
11610{
11611  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11612  int status = $lt_dlunknown;
11613
11614  if (self)
11615    {
11616      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11617      else
11618        {
11619	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11620          else puts (dlerror ());
11621	}
11622      /* dlclose (self); */
11623    }
11624  else
11625    puts (dlerror ());
11626
11627  return status;
11628}
11629_LT_EOF
11630  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11631  (eval $ac_link) 2>&5
11632  ac_status=$?
11633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11634  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11635    (./conftest; exit; ) >&5 2>/dev/null
11636    lt_status=$?
11637    case x$lt_status in
11638      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11639      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11640      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11641    esac
11642  else :
11643    # compilation failed
11644    lt_cv_dlopen_self_static=no
11645  fi
11646fi
11647rm -fr conftest*
11648
11649
11650fi
11651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11652$as_echo "$lt_cv_dlopen_self_static" >&6; }
11653    fi
11654
11655    CPPFLAGS="$save_CPPFLAGS"
11656    LDFLAGS="$save_LDFLAGS"
11657    LIBS="$save_LIBS"
11658    ;;
11659  esac
11660
11661  case $lt_cv_dlopen_self in
11662  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11663  *) enable_dlopen_self=unknown ;;
11664  esac
11665
11666  case $lt_cv_dlopen_self_static in
11667  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11668  *) enable_dlopen_self_static=unknown ;;
11669  esac
11670fi
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688striplib=
11689old_striplib=
11690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11691$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11692if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11693  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11694  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11696$as_echo "yes" >&6; }
11697else
11698# FIXME - insert some real tests, host_os isn't really good enough
11699  case $host_os in
11700  darwin*)
11701    if test -n "$STRIP" ; then
11702      striplib="$STRIP -x"
11703      old_striplib="$STRIP -S"
11704      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11705$as_echo "yes" >&6; }
11706    else
11707      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708$as_echo "no" >&6; }
11709    fi
11710    ;;
11711  *)
11712    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11713$as_echo "no" >&6; }
11714    ;;
11715  esac
11716fi
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729  # Report which library types will actually be built
11730  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11731$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11733$as_echo "$can_build_shared" >&6; }
11734
11735  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11736$as_echo_n "checking whether to build shared libraries... " >&6; }
11737  test "$can_build_shared" = "no" && enable_shared=no
11738
11739  # On AIX, shared libraries and static libraries use the same namespace, and
11740  # are all built from PIC.
11741  case $host_os in
11742  aix3*)
11743    test "$enable_shared" = yes && enable_static=no
11744    if test -n "$RANLIB"; then
11745      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11746      postinstall_cmds='$RANLIB $lib'
11747    fi
11748    ;;
11749
11750  aix[4-9]*)
11751    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11752      test "$enable_shared" = yes && enable_static=no
11753    fi
11754    ;;
11755  esac
11756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11757$as_echo "$enable_shared" >&6; }
11758
11759  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11760$as_echo_n "checking whether to build static libraries... " >&6; }
11761  # Make sure either enable_shared or enable_static is yes.
11762  test "$enable_shared" = yes || enable_static=yes
11763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11764$as_echo "$enable_static" >&6; }
11765
11766
11767
11768
11769fi
11770ac_ext=c
11771ac_cpp='$CPP $CPPFLAGS'
11772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11774ac_compiler_gnu=$ac_cv_c_compiler_gnu
11775
11776CC="$lt_save_CC"
11777
11778      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11779    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11780    (test "X$CXX" != "Xg++"))) ; then
11781  ac_ext=cpp
11782ac_cpp='$CXXCPP $CPPFLAGS'
11783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11787$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11788if test -z "$CXXCPP"; then
11789  if ${ac_cv_prog_CXXCPP+:} false; then :
11790  $as_echo_n "(cached) " >&6
11791else
11792      # Double quotes because CXXCPP needs to be expanded
11793    for CXXCPP in "$CXX -E" "/lib/cpp"
11794    do
11795      ac_preproc_ok=false
11796for ac_cxx_preproc_warn_flag in '' yes
11797do
11798  # Use a header file that comes with gcc, so configuring glibc
11799  # with a fresh cross-compiler works.
11800  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11801  # <limits.h> exists even on freestanding compilers.
11802  # On the NeXT, cc -E runs the code through the compiler's parser,
11803  # not just through cpp. "Syntax error" is here to catch this case.
11804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11805/* end confdefs.h.  */
11806#ifdef __STDC__
11807# include <limits.h>
11808#else
11809# include <assert.h>
11810#endif
11811		     Syntax error
11812_ACEOF
11813if ac_fn_cxx_try_cpp "$LINENO"; then :
11814
11815else
11816  # Broken: fails on valid input.
11817continue
11818fi
11819rm -f conftest.err conftest.i conftest.$ac_ext
11820
11821  # OK, works on sane cases.  Now check whether nonexistent headers
11822  # can be detected and how.
11823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11824/* end confdefs.h.  */
11825#include <ac_nonexistent.h>
11826_ACEOF
11827if ac_fn_cxx_try_cpp "$LINENO"; then :
11828  # Broken: success on invalid input.
11829continue
11830else
11831  # Passes both tests.
11832ac_preproc_ok=:
11833break
11834fi
11835rm -f conftest.err conftest.i conftest.$ac_ext
11836
11837done
11838# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11839rm -f conftest.i conftest.err conftest.$ac_ext
11840if $ac_preproc_ok; then :
11841  break
11842fi
11843
11844    done
11845    ac_cv_prog_CXXCPP=$CXXCPP
11846
11847fi
11848  CXXCPP=$ac_cv_prog_CXXCPP
11849else
11850  ac_cv_prog_CXXCPP=$CXXCPP
11851fi
11852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11853$as_echo "$CXXCPP" >&6; }
11854ac_preproc_ok=false
11855for ac_cxx_preproc_warn_flag in '' yes
11856do
11857  # Use a header file that comes with gcc, so configuring glibc
11858  # with a fresh cross-compiler works.
11859  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11860  # <limits.h> exists even on freestanding compilers.
11861  # On the NeXT, cc -E runs the code through the compiler's parser,
11862  # not just through cpp. "Syntax error" is here to catch this case.
11863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11864/* end confdefs.h.  */
11865#ifdef __STDC__
11866# include <limits.h>
11867#else
11868# include <assert.h>
11869#endif
11870		     Syntax error
11871_ACEOF
11872if ac_fn_cxx_try_cpp "$LINENO"; then :
11873
11874else
11875  # Broken: fails on valid input.
11876continue
11877fi
11878rm -f conftest.err conftest.i conftest.$ac_ext
11879
11880  # OK, works on sane cases.  Now check whether nonexistent headers
11881  # can be detected and how.
11882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11883/* end confdefs.h.  */
11884#include <ac_nonexistent.h>
11885_ACEOF
11886if ac_fn_cxx_try_cpp "$LINENO"; then :
11887  # Broken: success on invalid input.
11888continue
11889else
11890  # Passes both tests.
11891ac_preproc_ok=:
11892break
11893fi
11894rm -f conftest.err conftest.i conftest.$ac_ext
11895
11896done
11897# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11898rm -f conftest.i conftest.err conftest.$ac_ext
11899if $ac_preproc_ok; then :
11900
11901else
11902  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11903$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11904as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11905See \`config.log' for more details" "$LINENO" 5; }
11906fi
11907
11908ac_ext=c
11909ac_cpp='$CPP $CPPFLAGS'
11910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11912ac_compiler_gnu=$ac_cv_c_compiler_gnu
11913
11914else
11915  _lt_caught_CXX_error=yes
11916fi
11917
11918ac_ext=cpp
11919ac_cpp='$CXXCPP $CPPFLAGS'
11920ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11921ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11922ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11923
11924archive_cmds_need_lc_CXX=no
11925allow_undefined_flag_CXX=
11926always_export_symbols_CXX=no
11927archive_expsym_cmds_CXX=
11928compiler_needs_object_CXX=no
11929export_dynamic_flag_spec_CXX=
11930hardcode_direct_CXX=no
11931hardcode_direct_absolute_CXX=no
11932hardcode_libdir_flag_spec_CXX=
11933hardcode_libdir_flag_spec_ld_CXX=
11934hardcode_libdir_separator_CXX=
11935hardcode_minus_L_CXX=no
11936hardcode_shlibpath_var_CXX=unsupported
11937hardcode_automatic_CXX=no
11938inherit_rpath_CXX=no
11939module_cmds_CXX=
11940module_expsym_cmds_CXX=
11941link_all_deplibs_CXX=unknown
11942old_archive_cmds_CXX=$old_archive_cmds
11943reload_flag_CXX=$reload_flag
11944reload_cmds_CXX=$reload_cmds
11945no_undefined_flag_CXX=
11946whole_archive_flag_spec_CXX=
11947enable_shared_with_static_runtimes_CXX=no
11948
11949# Source file extension for C++ test sources.
11950ac_ext=cpp
11951
11952# Object file extension for compiled C++ test sources.
11953objext=o
11954objext_CXX=$objext
11955
11956# No sense in running all these tests if we already determined that
11957# the CXX compiler isn't working.  Some variables (like enable_shared)
11958# are currently assumed to apply to all compilers on this platform,
11959# and will be corrupted by setting them based on a non-working compiler.
11960if test "$_lt_caught_CXX_error" != yes; then
11961  # Code to be used in simple compile tests
11962  lt_simple_compile_test_code="int some_variable = 0;"
11963
11964  # Code to be used in simple link tests
11965  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11966
11967  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11968
11969
11970
11971
11972
11973
11974# If no C compiler was specified, use CC.
11975LTCC=${LTCC-"$CC"}
11976
11977# If no C compiler flags were specified, use CFLAGS.
11978LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11979
11980# Allow CC to be a program name with arguments.
11981compiler=$CC
11982
11983
11984  # save warnings/boilerplate of simple test code
11985  ac_outfile=conftest.$ac_objext
11986echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11987eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11988_lt_compiler_boilerplate=`cat conftest.err`
11989$RM conftest*
11990
11991  ac_outfile=conftest.$ac_objext
11992echo "$lt_simple_link_test_code" >conftest.$ac_ext
11993eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11994_lt_linker_boilerplate=`cat conftest.err`
11995$RM -r conftest*
11996
11997
11998  # Allow CC to be a program name with arguments.
11999  lt_save_CC=$CC
12000  lt_save_LD=$LD
12001  lt_save_GCC=$GCC
12002  GCC=$GXX
12003  lt_save_with_gnu_ld=$with_gnu_ld
12004  lt_save_path_LD=$lt_cv_path_LD
12005  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12006    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12007  else
12008    $as_unset lt_cv_prog_gnu_ld
12009  fi
12010  if test -n "${lt_cv_path_LDCXX+set}"; then
12011    lt_cv_path_LD=$lt_cv_path_LDCXX
12012  else
12013    $as_unset lt_cv_path_LD
12014  fi
12015  test -z "${LDCXX+set}" || LD=$LDCXX
12016  CC=${CXX-"c++"}
12017  compiler=$CC
12018  compiler_CXX=$CC
12019  for cc_temp in $compiler""; do
12020  case $cc_temp in
12021    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12022    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12023    \-*) ;;
12024    *) break;;
12025  esac
12026done
12027cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12028
12029
12030  if test -n "$compiler"; then
12031    # We don't want -fno-exception when compiling C++ code, so set the
12032    # no_builtin_flag separately
12033    if test "$GXX" = yes; then
12034      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12035    else
12036      lt_prog_compiler_no_builtin_flag_CXX=
12037    fi
12038
12039    if test "$GXX" = yes; then
12040      # Set up default GNU C++ configuration
12041
12042
12043
12044# Check whether --with-gnu-ld was given.
12045if test "${with_gnu_ld+set}" = set; then :
12046  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12047else
12048  with_gnu_ld=no
12049fi
12050
12051ac_prog=ld
12052if test "$GCC" = yes; then
12053  # Check if gcc -print-prog-name=ld gives a path.
12054  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12055$as_echo_n "checking for ld used by $CC... " >&6; }
12056  case $host in
12057  *-*-mingw*)
12058    # gcc leaves a trailing carriage return which upsets mingw
12059    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12060  *)
12061    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12062  esac
12063  case $ac_prog in
12064    # Accept absolute paths.
12065    [\\/]* | ?:[\\/]*)
12066      re_direlt='/[^/][^/]*/\.\./'
12067      # Canonicalize the pathname of ld
12068      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12069      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12070	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12071      done
12072      test -z "$LD" && LD="$ac_prog"
12073      ;;
12074  "")
12075    # If it fails, then pretend we aren't using GCC.
12076    ac_prog=ld
12077    ;;
12078  *)
12079    # If it is relative, then search for the first ld in PATH.
12080    with_gnu_ld=unknown
12081    ;;
12082  esac
12083elif test "$with_gnu_ld" = yes; then
12084  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12085$as_echo_n "checking for GNU ld... " >&6; }
12086else
12087  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12088$as_echo_n "checking for non-GNU ld... " >&6; }
12089fi
12090if ${lt_cv_path_LD+:} false; then :
12091  $as_echo_n "(cached) " >&6
12092else
12093  if test -z "$LD"; then
12094  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12095  for ac_dir in $PATH; do
12096    IFS="$lt_save_ifs"
12097    test -z "$ac_dir" && ac_dir=.
12098    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12099      lt_cv_path_LD="$ac_dir/$ac_prog"
12100      # Check to see if the program is GNU ld.  I'd rather use --version,
12101      # but apparently some variants of GNU ld only accept -v.
12102      # Break only if it was the GNU/non-GNU ld that we prefer.
12103      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12104      *GNU* | *'with BFD'*)
12105	test "$with_gnu_ld" != no && break
12106	;;
12107      *)
12108	test "$with_gnu_ld" != yes && break
12109	;;
12110      esac
12111    fi
12112  done
12113  IFS="$lt_save_ifs"
12114else
12115  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12116fi
12117fi
12118
12119LD="$lt_cv_path_LD"
12120if test -n "$LD"; then
12121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12122$as_echo "$LD" >&6; }
12123else
12124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12125$as_echo "no" >&6; }
12126fi
12127test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12129$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12130if ${lt_cv_prog_gnu_ld+:} false; then :
12131  $as_echo_n "(cached) " >&6
12132else
12133  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12134case `$LD -v 2>&1 </dev/null` in
12135*GNU* | *'with BFD'*)
12136  lt_cv_prog_gnu_ld=yes
12137  ;;
12138*)
12139  lt_cv_prog_gnu_ld=no
12140  ;;
12141esac
12142fi
12143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12144$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12145with_gnu_ld=$lt_cv_prog_gnu_ld
12146
12147
12148
12149
12150
12151
12152
12153      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12154      # archiving commands below assume that GNU ld is being used.
12155      if test "$with_gnu_ld" = yes; then
12156        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12157        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12158
12159        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12160        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12161
12162        # If archive_cmds runs LD, not CC, wlarc should be empty
12163        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12164        #     investigate it a little bit more. (MM)
12165        wlarc='${wl}'
12166
12167        # ancient GNU ld didn't support --whole-archive et. al.
12168        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12169	  $GREP 'no-whole-archive' > /dev/null; then
12170          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12171        else
12172          whole_archive_flag_spec_CXX=
12173        fi
12174      else
12175        with_gnu_ld=no
12176        wlarc=
12177
12178        # A generic and very simple default shared library creation
12179        # command for GNU C++ for the case where it uses the native
12180        # linker, instead of GNU ld.  If possible, this setting should
12181        # overridden to take advantage of the native linker features on
12182        # the platform it is being used on.
12183        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12184      fi
12185
12186      # Commands to make compiler produce verbose output that lists
12187      # what "hidden" libraries, object files and flags are used when
12188      # linking a shared library.
12189      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12190
12191    else
12192      GXX=no
12193      with_gnu_ld=no
12194      wlarc=
12195    fi
12196
12197    # PORTME: fill in a description of your system's C++ link characteristics
12198    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12199$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12200    ld_shlibs_CXX=yes
12201    case $host_os in
12202      aix3*)
12203        # FIXME: insert proper C++ library support
12204        ld_shlibs_CXX=no
12205        ;;
12206      aix[4-9]*)
12207        if test "$host_cpu" = ia64; then
12208          # On IA64, the linker does run time linking by default, so we don't
12209          # have to do anything special.
12210          aix_use_runtimelinking=no
12211          exp_sym_flag='-Bexport'
12212          no_entry_flag=""
12213        else
12214          aix_use_runtimelinking=no
12215
12216          # Test if we are trying to use run time linking or normal
12217          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12218          # need to do runtime linking.
12219          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12220	    for ld_flag in $LDFLAGS; do
12221	      case $ld_flag in
12222	      *-brtl*)
12223	        aix_use_runtimelinking=yes
12224	        break
12225	        ;;
12226	      esac
12227	    done
12228	    ;;
12229          esac
12230
12231          exp_sym_flag='-bexport'
12232          no_entry_flag='-bnoentry'
12233        fi
12234
12235        # When large executables or shared objects are built, AIX ld can
12236        # have problems creating the table of contents.  If linking a library
12237        # or program results in "error TOC overflow" add -mminimal-toc to
12238        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12239        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12240
12241        archive_cmds_CXX=''
12242        hardcode_direct_CXX=yes
12243        hardcode_direct_absolute_CXX=yes
12244        hardcode_libdir_separator_CXX=':'
12245        link_all_deplibs_CXX=yes
12246        file_list_spec_CXX='${wl}-f,'
12247
12248        if test "$GXX" = yes; then
12249          case $host_os in aix4.[012]|aix4.[012].*)
12250          # We only want to do this on AIX 4.2 and lower, the check
12251          # below for broken collect2 doesn't work under 4.3+
12252	  collect2name=`${CC} -print-prog-name=collect2`
12253	  if test -f "$collect2name" &&
12254	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12255	  then
12256	    # We have reworked collect2
12257	    :
12258	  else
12259	    # We have old collect2
12260	    hardcode_direct_CXX=unsupported
12261	    # It fails to find uninstalled libraries when the uninstalled
12262	    # path is not listed in the libpath.  Setting hardcode_minus_L
12263	    # to unsupported forces relinking
12264	    hardcode_minus_L_CXX=yes
12265	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12266	    hardcode_libdir_separator_CXX=
12267	  fi
12268          esac
12269          shared_flag='-shared'
12270	  if test "$aix_use_runtimelinking" = yes; then
12271	    shared_flag="$shared_flag "'${wl}-G'
12272	  fi
12273        else
12274          # not using gcc
12275          if test "$host_cpu" = ia64; then
12276	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12277	  # chokes on -Wl,-G. The following line is correct:
12278	  shared_flag='-G'
12279          else
12280	    if test "$aix_use_runtimelinking" = yes; then
12281	      shared_flag='${wl}-G'
12282	    else
12283	      shared_flag='${wl}-bM:SRE'
12284	    fi
12285          fi
12286        fi
12287
12288        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12289        # It seems that -bexpall does not export symbols beginning with
12290        # underscore (_), so it is better to generate a list of symbols to
12291	# export.
12292        always_export_symbols_CXX=yes
12293        if test "$aix_use_runtimelinking" = yes; then
12294          # Warning - without using the other runtime loading flags (-brtl),
12295          # -berok will link without error, but may produce a broken library.
12296          allow_undefined_flag_CXX='-berok'
12297          # Determine the default libpath from the value encoded in an empty
12298          # executable.
12299          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300/* end confdefs.h.  */
12301
12302int
12303main ()
12304{
12305
12306  ;
12307  return 0;
12308}
12309_ACEOF
12310if ac_fn_cxx_try_link "$LINENO"; then :
12311
12312lt_aix_libpath_sed='
12313    /Import File Strings/,/^$/ {
12314	/^0/ {
12315	    s/^0  *\(.*\)$/\1/
12316	    p
12317	}
12318    }'
12319aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12320# Check for a 64-bit object if we didn't find anything.
12321if test -z "$aix_libpath"; then
12322  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12323fi
12324fi
12325rm -f core conftest.err conftest.$ac_objext \
12326    conftest$ac_exeext conftest.$ac_ext
12327if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12328
12329          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12330
12331          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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12332        else
12333          if test "$host_cpu" = ia64; then
12334	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12335	    allow_undefined_flag_CXX="-z nodefs"
12336	    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"
12337          else
12338	    # Determine the default libpath from the value encoded in an
12339	    # empty executable.
12340	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341/* end confdefs.h.  */
12342
12343int
12344main ()
12345{
12346
12347  ;
12348  return 0;
12349}
12350_ACEOF
12351if ac_fn_cxx_try_link "$LINENO"; then :
12352
12353lt_aix_libpath_sed='
12354    /Import File Strings/,/^$/ {
12355	/^0/ {
12356	    s/^0  *\(.*\)$/\1/
12357	    p
12358	}
12359    }'
12360aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12361# Check for a 64-bit object if we didn't find anything.
12362if test -z "$aix_libpath"; then
12363  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12364fi
12365fi
12366rm -f core conftest.err conftest.$ac_objext \
12367    conftest$ac_exeext conftest.$ac_ext
12368if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12369
12370	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12371	    # Warning - without using the other run time loading flags,
12372	    # -berok will link without error, but may produce a broken library.
12373	    no_undefined_flag_CXX=' ${wl}-bernotok'
12374	    allow_undefined_flag_CXX=' ${wl}-berok'
12375	    if test "$with_gnu_ld" = yes; then
12376	      # We only use this code for GNU lds that support --whole-archive.
12377	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12378	    else
12379	      # Exported symbols can be pulled into shared objects from archives
12380	      whole_archive_flag_spec_CXX='$convenience'
12381	    fi
12382	    archive_cmds_need_lc_CXX=yes
12383	    # This is similar to how AIX traditionally builds its shared
12384	    # libraries.
12385	    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'
12386          fi
12387        fi
12388        ;;
12389
12390      beos*)
12391	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12392	  allow_undefined_flag_CXX=unsupported
12393	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12394	  # support --undefined.  This deserves some investigation.  FIXME
12395	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12396	else
12397	  ld_shlibs_CXX=no
12398	fi
12399	;;
12400
12401      chorus*)
12402        case $cc_basename in
12403          *)
12404	  # FIXME: insert proper C++ library support
12405	  ld_shlibs_CXX=no
12406	  ;;
12407        esac
12408        ;;
12409
12410      cygwin* | mingw* | pw32* | cegcc*)
12411        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12412        # as there is no search path for DLLs.
12413        hardcode_libdir_flag_spec_CXX='-L$libdir'
12414        export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12415        allow_undefined_flag_CXX=unsupported
12416        always_export_symbols_CXX=no
12417        enable_shared_with_static_runtimes_CXX=yes
12418
12419        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12420          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'
12421          # If the export-symbols file already is a .def file (1st line
12422          # is EXPORTS), use it as is; otherwise, prepend...
12423          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12424	    cp $export_symbols $output_objdir/$soname.def;
12425          else
12426	    echo EXPORTS > $output_objdir/$soname.def;
12427	    cat $export_symbols >> $output_objdir/$soname.def;
12428          fi~
12429          $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'
12430        else
12431          ld_shlibs_CXX=no
12432        fi
12433        ;;
12434      darwin* | rhapsody*)
12435
12436
12437  archive_cmds_need_lc_CXX=no
12438  hardcode_direct_CXX=no
12439  hardcode_automatic_CXX=yes
12440  hardcode_shlibpath_var_CXX=unsupported
12441  if test "$lt_cv_ld_force_load" = "yes"; then
12442    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12443  else
12444    whole_archive_flag_spec_CXX=''
12445  fi
12446  link_all_deplibs_CXX=yes
12447  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12448  case $cc_basename in
12449     ifort*) _lt_dar_can_shared=yes ;;
12450     *) _lt_dar_can_shared=$GCC ;;
12451  esac
12452  if test "$_lt_dar_can_shared" = "yes"; then
12453    output_verbose_link_cmd=func_echo_all
12454    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}"
12455    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12456    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}"
12457    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}"
12458       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12459      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}"
12460      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}"
12461    fi
12462
12463  else
12464  ld_shlibs_CXX=no
12465  fi
12466
12467	;;
12468
12469      dgux*)
12470        case $cc_basename in
12471          ec++*)
12472	    # FIXME: insert proper C++ library support
12473	    ld_shlibs_CXX=no
12474	    ;;
12475          ghcx*)
12476	    # Green Hills C++ Compiler
12477	    # FIXME: insert proper C++ library support
12478	    ld_shlibs_CXX=no
12479	    ;;
12480          *)
12481	    # FIXME: insert proper C++ library support
12482	    ld_shlibs_CXX=no
12483	    ;;
12484        esac
12485        ;;
12486
12487      freebsd2.*)
12488        # C++ shared libraries reported to be fairly broken before
12489	# switch to ELF
12490        ld_shlibs_CXX=no
12491        ;;
12492
12493      freebsd-elf*)
12494        archive_cmds_need_lc_CXX=no
12495        ;;
12496
12497      freebsd* | dragonfly*)
12498        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12499        # conventions
12500        ld_shlibs_CXX=yes
12501        ;;
12502
12503      gnu*)
12504        ;;
12505
12506      haiku*)
12507        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12508        link_all_deplibs_CXX=yes
12509        ;;
12510
12511      hpux9*)
12512        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12513        hardcode_libdir_separator_CXX=:
12514        export_dynamic_flag_spec_CXX='${wl}-E'
12515        hardcode_direct_CXX=yes
12516        hardcode_minus_L_CXX=yes # Not in the search PATH,
12517				             # but as the default
12518				             # location of the library.
12519
12520        case $cc_basename in
12521          CC*)
12522            # FIXME: insert proper C++ library support
12523            ld_shlibs_CXX=no
12524            ;;
12525          aCC*)
12526            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'
12527            # Commands to make compiler produce verbose output that lists
12528            # what "hidden" libraries, object files and flags are used when
12529            # linking a shared library.
12530            #
12531            # There doesn't appear to be a way to prevent this compiler from
12532            # explicitly linking system object files so we need to strip them
12533            # from the output so that they don't get included in the library
12534            # dependencies.
12535            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; func_echo_all "$list"'
12536            ;;
12537          *)
12538            if test "$GXX" = yes; then
12539              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'
12540            else
12541              # FIXME: insert proper C++ library support
12542              ld_shlibs_CXX=no
12543            fi
12544            ;;
12545        esac
12546        ;;
12547
12548      hpux10*|hpux11*)
12549        if test $with_gnu_ld = no; then
12550	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12551	  hardcode_libdir_separator_CXX=:
12552
12553          case $host_cpu in
12554            hppa*64*|ia64*)
12555              ;;
12556            *)
12557	      export_dynamic_flag_spec_CXX='${wl}-E'
12558              ;;
12559          esac
12560        fi
12561        case $host_cpu in
12562          hppa*64*|ia64*)
12563            hardcode_direct_CXX=no
12564            hardcode_shlibpath_var_CXX=no
12565            ;;
12566          *)
12567            hardcode_direct_CXX=yes
12568            hardcode_direct_absolute_CXX=yes
12569            hardcode_minus_L_CXX=yes # Not in the search PATH,
12570					         # but as the default
12571					         # location of the library.
12572            ;;
12573        esac
12574
12575        case $cc_basename in
12576          CC*)
12577	    # FIXME: insert proper C++ library support
12578	    ld_shlibs_CXX=no
12579	    ;;
12580          aCC*)
12581	    case $host_cpu in
12582	      hppa*64*)
12583	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12584	        ;;
12585	      ia64*)
12586	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12587	        ;;
12588	      *)
12589	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12590	        ;;
12591	    esac
12592	    # Commands to make compiler produce verbose output that lists
12593	    # what "hidden" libraries, object files and flags are used when
12594	    # linking a shared library.
12595	    #
12596	    # There doesn't appear to be a way to prevent this compiler from
12597	    # explicitly linking system object files so we need to strip them
12598	    # from the output so that they don't get included in the library
12599	    # dependencies.
12600	    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; func_echo_all "$list"'
12601	    ;;
12602          *)
12603	    if test "$GXX" = yes; then
12604	      if test $with_gnu_ld = no; then
12605	        case $host_cpu in
12606	          hppa*64*)
12607	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12608	            ;;
12609	          ia64*)
12610	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12611	            ;;
12612	          *)
12613	            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'
12614	            ;;
12615	        esac
12616	      fi
12617	    else
12618	      # FIXME: insert proper C++ library support
12619	      ld_shlibs_CXX=no
12620	    fi
12621	    ;;
12622        esac
12623        ;;
12624
12625      interix[3-9]*)
12626	hardcode_direct_CXX=no
12627	hardcode_shlibpath_var_CXX=no
12628	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12629	export_dynamic_flag_spec_CXX='${wl}-E'
12630	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12631	# Instead, shared libraries are loaded at an image base (0x10000000 by
12632	# default) and relocated if they conflict, which is a slow very memory
12633	# consuming and fragmenting process.  To avoid this, we pick a random,
12634	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12635	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12636	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'
12637	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'
12638	;;
12639      irix5* | irix6*)
12640        case $cc_basename in
12641          CC*)
12642	    # SGI C++
12643	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12644
12645	    # Archives containing C++ object files must be created using
12646	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12647	    # necessary to make sure instantiated templates are included
12648	    # in the archive.
12649	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12650	    ;;
12651          *)
12652	    if test "$GXX" = yes; then
12653	      if test "$with_gnu_ld" = no; then
12654	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12655	      else
12656	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12657	      fi
12658	    fi
12659	    link_all_deplibs_CXX=yes
12660	    ;;
12661        esac
12662        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12663        hardcode_libdir_separator_CXX=:
12664        inherit_rpath_CXX=yes
12665        ;;
12666
12667      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12668        case $cc_basename in
12669          KCC*)
12670	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12671
12672	    # KCC will only create a shared library if the output file
12673	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12674	    # to its proper name (with version) after linking.
12675	    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'
12676	    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'
12677	    # Commands to make compiler produce verbose output that lists
12678	    # what "hidden" libraries, object files and flags are used when
12679	    # linking a shared library.
12680	    #
12681	    # There doesn't appear to be a way to prevent this compiler from
12682	    # explicitly linking system object files so we need to strip them
12683	    # from the output so that they don't get included in the library
12684	    # dependencies.
12685	    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; func_echo_all "$list"'
12686
12687	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12688	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12689
12690	    # Archives containing C++ object files must be created using
12691	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12692	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12693	    ;;
12694	  icpc* | ecpc* )
12695	    # Intel C++
12696	    with_gnu_ld=yes
12697	    # version 8.0 and above of icpc choke on multiply defined symbols
12698	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12699	    # earlier do not add the objects themselves.
12700	    case `$CC -V 2>&1` in
12701	      *"Version 7."*)
12702	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12703		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'
12704		;;
12705	      *)  # Version 8.0 or newer
12706	        tmp_idyn=
12707	        case $host_cpu in
12708		  ia64*) tmp_idyn=' -i_dynamic';;
12709		esac
12710	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12711		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'
12712		;;
12713	    esac
12714	    archive_cmds_need_lc_CXX=no
12715	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12716	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12717	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12718	    ;;
12719          pgCC* | pgcpp*)
12720            # Portland Group C++ compiler
12721	    case `$CC -V` in
12722	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12723	      prelink_cmds_CXX='tpldir=Template.dir~
12724		rm -rf $tpldir~
12725		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12726		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12727	      old_archive_cmds_CXX='tpldir=Template.dir~
12728		rm -rf $tpldir~
12729		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12730		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12731		$RANLIB $oldlib'
12732	      archive_cmds_CXX='tpldir=Template.dir~
12733		rm -rf $tpldir~
12734		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12735		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12736	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12737		rm -rf $tpldir~
12738		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12739		$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'
12740	      ;;
12741	    *) # Version 6 and above use weak symbols
12742	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12743	      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'
12744	      ;;
12745	    esac
12746
12747	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12748	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12749	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12750            ;;
12751	  cxx*)
12752	    # Compaq C++
12753	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12754	    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'
12755
12756	    runpath_var=LD_RUN_PATH
12757	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12758	    hardcode_libdir_separator_CXX=:
12759
12760	    # Commands to make compiler produce verbose output that lists
12761	    # what "hidden" libraries, object files and flags are used when
12762	    # linking a shared library.
12763	    #
12764	    # There doesn't appear to be a way to prevent this compiler from
12765	    # explicitly linking system object files so we need to strip them
12766	    # from the output so that they don't get included in the library
12767	    # dependencies.
12768	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12769	    ;;
12770	  xl* | mpixl* | bgxl*)
12771	    # IBM XL 8.0 on PPC, with GNU ld
12772	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12773	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12774	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12775	    if test "x$supports_anon_versioning" = xyes; then
12776	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12777		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12778		echo "local: *; };" >> $output_objdir/$libname.ver~
12779		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12780	    fi
12781	    ;;
12782	  *)
12783	    case `$CC -V 2>&1 | sed 5q` in
12784	    *Sun\ C*)
12785	      # Sun C++ 5.9
12786	      no_undefined_flag_CXX=' -zdefs'
12787	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12788	      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'
12789	      hardcode_libdir_flag_spec_CXX='-R$libdir'
12790	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12791	      compiler_needs_object_CXX=yes
12792
12793	      # Not sure whether something based on
12794	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12795	      # would be better.
12796	      output_verbose_link_cmd='func_echo_all'
12797
12798	      # Archives containing C++ object files must be created using
12799	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12800	      # necessary to make sure instantiated templates are included
12801	      # in the archive.
12802	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12803	      ;;
12804	    esac
12805	    ;;
12806	esac
12807	;;
12808
12809      lynxos*)
12810        # FIXME: insert proper C++ library support
12811	ld_shlibs_CXX=no
12812	;;
12813
12814      m88k*)
12815        # FIXME: insert proper C++ library support
12816        ld_shlibs_CXX=no
12817	;;
12818
12819      mvs*)
12820        case $cc_basename in
12821          cxx*)
12822	    # FIXME: insert proper C++ library support
12823	    ld_shlibs_CXX=no
12824	    ;;
12825	  *)
12826	    # FIXME: insert proper C++ library support
12827	    ld_shlibs_CXX=no
12828	    ;;
12829	esac
12830	;;
12831
12832      netbsd*)
12833        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12834	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12835	  wlarc=
12836	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12837	  hardcode_direct_CXX=yes
12838	  hardcode_shlibpath_var_CXX=no
12839	fi
12840	# Workaround some broken pre-1.5 toolchains
12841	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12842	;;
12843
12844      *nto* | *qnx*)
12845        ld_shlibs_CXX=yes
12846	;;
12847
12848      openbsd2*)
12849        # C++ shared libraries are fairly broken
12850	ld_shlibs_CXX=no
12851	;;
12852
12853      openbsd*)
12854	if test -f /usr/libexec/ld.so; then
12855	  hardcode_direct_CXX=yes
12856	  hardcode_shlibpath_var_CXX=no
12857	  hardcode_direct_absolute_CXX=yes
12858	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12859	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12860	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12861	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12862	    export_dynamic_flag_spec_CXX='${wl}-E'
12863	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12864	  fi
12865	  output_verbose_link_cmd=func_echo_all
12866	else
12867	  ld_shlibs_CXX=no
12868	fi
12869	;;
12870
12871      osf3* | osf4* | osf5*)
12872        case $cc_basename in
12873          KCC*)
12874	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12875
12876	    # KCC will only create a shared library if the output file
12877	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12878	    # to its proper name (with version) after linking.
12879	    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'
12880
12881	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12882	    hardcode_libdir_separator_CXX=:
12883
12884	    # Archives containing C++ object files must be created using
12885	    # the KAI C++ compiler.
12886	    case $host in
12887	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12888	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12889	    esac
12890	    ;;
12891          RCC*)
12892	    # Rational C++ 2.4.1
12893	    # FIXME: insert proper C++ library support
12894	    ld_shlibs_CXX=no
12895	    ;;
12896          cxx*)
12897	    case $host in
12898	      osf3*)
12899	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12900	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12901	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12902		;;
12903	      *)
12904	        allow_undefined_flag_CXX=' -expect_unresolved \*'
12905	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12906	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12907	          echo "-hidden">> $lib.exp~
12908	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
12909	          $RM $lib.exp'
12910	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12911		;;
12912	    esac
12913
12914	    hardcode_libdir_separator_CXX=:
12915
12916	    # Commands to make compiler produce verbose output that lists
12917	    # what "hidden" libraries, object files and flags are used when
12918	    # linking a shared library.
12919	    #
12920	    # There doesn't appear to be a way to prevent this compiler from
12921	    # explicitly linking system object files so we need to strip them
12922	    # from the output so that they don't get included in the library
12923	    # dependencies.
12924	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12925	    ;;
12926	  *)
12927	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12928	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12929	      case $host in
12930	        osf3*)
12931	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12932		  ;;
12933	        *)
12934	          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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12935		  ;;
12936	      esac
12937
12938	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12939	      hardcode_libdir_separator_CXX=:
12940
12941	      # Commands to make compiler produce verbose output that lists
12942	      # what "hidden" libraries, object files and flags are used when
12943	      # linking a shared library.
12944	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12945
12946	    else
12947	      # FIXME: insert proper C++ library support
12948	      ld_shlibs_CXX=no
12949	    fi
12950	    ;;
12951        esac
12952        ;;
12953
12954      psos*)
12955        # FIXME: insert proper C++ library support
12956        ld_shlibs_CXX=no
12957        ;;
12958
12959      sunos4*)
12960        case $cc_basename in
12961          CC*)
12962	    # Sun C++ 4.x
12963	    # FIXME: insert proper C++ library support
12964	    ld_shlibs_CXX=no
12965	    ;;
12966          lcc*)
12967	    # Lucid
12968	    # FIXME: insert proper C++ library support
12969	    ld_shlibs_CXX=no
12970	    ;;
12971          *)
12972	    # FIXME: insert proper C++ library support
12973	    ld_shlibs_CXX=no
12974	    ;;
12975        esac
12976        ;;
12977
12978      solaris*)
12979        case $cc_basename in
12980          CC*)
12981	    # Sun C++ 4.2, 5.x and Centerline C++
12982            archive_cmds_need_lc_CXX=yes
12983	    no_undefined_flag_CXX=' -zdefs'
12984	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12985	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12986	      $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'
12987
12988	    hardcode_libdir_flag_spec_CXX='-R$libdir'
12989	    hardcode_shlibpath_var_CXX=no
12990	    case $host_os in
12991	      solaris2.[0-5] | solaris2.[0-5].*) ;;
12992	      *)
12993		# The compiler driver will combine and reorder linker options,
12994		# but understands `-z linker_flag'.
12995	        # Supported since Solaris 2.6 (maybe 2.5.1?)
12996		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12997	        ;;
12998	    esac
12999	    link_all_deplibs_CXX=yes
13000
13001	    output_verbose_link_cmd='func_echo_all'
13002
13003	    # Archives containing C++ object files must be created using
13004	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13005	    # necessary to make sure instantiated templates are included
13006	    # in the archive.
13007	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13008	    ;;
13009          gcx*)
13010	    # Green Hills C++ Compiler
13011	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13012
13013	    # The C++ compiler must be used to create the archive.
13014	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13015	    ;;
13016          *)
13017	    # GNU C++ compiler with Solaris linker
13018	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13019	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13020	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13021	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13022	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13023		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13024
13025	        # Commands to make compiler produce verbose output that lists
13026	        # what "hidden" libraries, object files and flags are used when
13027	        # linking a shared library.
13028	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13029	      else
13030	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13031	        # platform.
13032	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13033	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13034		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13035
13036	        # Commands to make compiler produce verbose output that lists
13037	        # what "hidden" libraries, object files and flags are used when
13038	        # linking a shared library.
13039	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13040	      fi
13041
13042	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13043	      case $host_os in
13044		solaris2.[0-5] | solaris2.[0-5].*) ;;
13045		*)
13046		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13047		  ;;
13048	      esac
13049	    fi
13050	    ;;
13051        esac
13052        ;;
13053
13054    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13055      no_undefined_flag_CXX='${wl}-z,text'
13056      archive_cmds_need_lc_CXX=no
13057      hardcode_shlibpath_var_CXX=no
13058      runpath_var='LD_RUN_PATH'
13059
13060      case $cc_basename in
13061        CC*)
13062	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13063	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13064	  ;;
13065	*)
13066	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13067	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13068	  ;;
13069      esac
13070      ;;
13071
13072      sysv5* | sco3.2v5* | sco5v6*)
13073	# Note: We can NOT use -z defs as we might desire, because we do not
13074	# link with -lc, and that would cause any symbols used from libc to
13075	# always be unresolved, which means just about no library would
13076	# ever link correctly.  If we're not using GNU ld we use -z text
13077	# though, which does catch some bad symbols but isn't as heavy-handed
13078	# as -z defs.
13079	no_undefined_flag_CXX='${wl}-z,text'
13080	allow_undefined_flag_CXX='${wl}-z,nodefs'
13081	archive_cmds_need_lc_CXX=no
13082	hardcode_shlibpath_var_CXX=no
13083	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13084	hardcode_libdir_separator_CXX=':'
13085	link_all_deplibs_CXX=yes
13086	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13087	runpath_var='LD_RUN_PATH'
13088
13089	case $cc_basename in
13090          CC*)
13091	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13092	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13093	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13094	      '"$old_archive_cmds_CXX"
13095	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13096	      '"$reload_cmds_CXX"
13097	    ;;
13098	  *)
13099	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13100	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13101	    ;;
13102	esac
13103      ;;
13104
13105      tandem*)
13106        case $cc_basename in
13107          NCC*)
13108	    # NonStop-UX NCC 3.20
13109	    # FIXME: insert proper C++ library support
13110	    ld_shlibs_CXX=no
13111	    ;;
13112          *)
13113	    # FIXME: insert proper C++ library support
13114	    ld_shlibs_CXX=no
13115	    ;;
13116        esac
13117        ;;
13118
13119      vxworks*)
13120        # FIXME: insert proper C++ library support
13121        ld_shlibs_CXX=no
13122        ;;
13123
13124      *)
13125        # FIXME: insert proper C++ library support
13126        ld_shlibs_CXX=no
13127        ;;
13128    esac
13129
13130    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13131$as_echo "$ld_shlibs_CXX" >&6; }
13132    test "$ld_shlibs_CXX" = no && can_build_shared=no
13133
13134    GCC_CXX="$GXX"
13135    LD_CXX="$LD"
13136
13137    ## CAVEAT EMPTOR:
13138    ## There is no encapsulation within the following macros, do not change
13139    ## the running order or otherwise move them around unless you know exactly
13140    ## what you are doing...
13141    # Dependencies to place before and after the object being linked:
13142predep_objects_CXX=
13143postdep_objects_CXX=
13144predeps_CXX=
13145postdeps_CXX=
13146compiler_lib_search_path_CXX=
13147
13148cat > conftest.$ac_ext <<_LT_EOF
13149class Foo
13150{
13151public:
13152  Foo (void) { a = 0; }
13153private:
13154  int a;
13155};
13156_LT_EOF
13157
13158if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13159  (eval $ac_compile) 2>&5
13160  ac_status=$?
13161  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13162  test $ac_status = 0; }; then
13163  # Parse the compiler output and extract the necessary
13164  # objects, libraries and library flags.
13165
13166  # Sentinel used to keep track of whether or not we are before
13167  # the conftest object file.
13168  pre_test_object_deps_done=no
13169
13170  for p in `eval "$output_verbose_link_cmd"`; do
13171    case $p in
13172
13173    -L* | -R* | -l*)
13174       # Some compilers place space between "-{L,R}" and the path.
13175       # Remove the space.
13176       if test $p = "-L" ||
13177          test $p = "-R"; then
13178	 prev=$p
13179	 continue
13180       else
13181	 prev=
13182       fi
13183
13184       if test "$pre_test_object_deps_done" = no; then
13185	 case $p in
13186	 -L* | -R*)
13187	   # Internal compiler library paths should come after those
13188	   # provided the user.  The postdeps already come after the
13189	   # user supplied libs so there is no need to process them.
13190	   if test -z "$compiler_lib_search_path_CXX"; then
13191	     compiler_lib_search_path_CXX="${prev}${p}"
13192	   else
13193	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13194	   fi
13195	   ;;
13196	 # The "-l" case would never come before the object being
13197	 # linked, so don't bother handling this case.
13198	 esac
13199       else
13200	 if test -z "$postdeps_CXX"; then
13201	   postdeps_CXX="${prev}${p}"
13202	 else
13203	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13204	 fi
13205       fi
13206       ;;
13207
13208    *.$objext)
13209       # This assumes that the test object file only shows up
13210       # once in the compiler output.
13211       if test "$p" = "conftest.$objext"; then
13212	 pre_test_object_deps_done=yes
13213	 continue
13214       fi
13215
13216       if test "$pre_test_object_deps_done" = no; then
13217	 if test -z "$predep_objects_CXX"; then
13218	   predep_objects_CXX="$p"
13219	 else
13220	   predep_objects_CXX="$predep_objects_CXX $p"
13221	 fi
13222       else
13223	 if test -z "$postdep_objects_CXX"; then
13224	   postdep_objects_CXX="$p"
13225	 else
13226	   postdep_objects_CXX="$postdep_objects_CXX $p"
13227	 fi
13228       fi
13229       ;;
13230
13231    *) ;; # Ignore the rest.
13232
13233    esac
13234  done
13235
13236  # Clean up.
13237  rm -f a.out a.exe
13238else
13239  echo "libtool.m4: error: problem compiling CXX test program"
13240fi
13241
13242$RM -f confest.$objext
13243
13244# PORTME: override above test on systems where it is broken
13245case $host_os in
13246interix[3-9]*)
13247  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13248  # hack all around it, let's just trust "g++" to DTRT.
13249  predep_objects_CXX=
13250  postdep_objects_CXX=
13251  postdeps_CXX=
13252  ;;
13253
13254linux*)
13255  case `$CC -V 2>&1 | sed 5q` in
13256  *Sun\ C*)
13257    # Sun C++ 5.9
13258
13259    # The more standards-conforming stlport4 library is
13260    # incompatible with the Cstd library. Avoid specifying
13261    # it if it's in CXXFLAGS. Ignore libCrun as
13262    # -library=stlport4 depends on it.
13263    case " $CXX $CXXFLAGS " in
13264    *" -library=stlport4 "*)
13265      solaris_use_stlport4=yes
13266      ;;
13267    esac
13268
13269    if test "$solaris_use_stlport4" != yes; then
13270      postdeps_CXX='-library=Cstd -library=Crun'
13271    fi
13272    ;;
13273  esac
13274  ;;
13275
13276solaris*)
13277  case $cc_basename in
13278  CC*)
13279    # The more standards-conforming stlport4 library is
13280    # incompatible with the Cstd library. Avoid specifying
13281    # it if it's in CXXFLAGS. Ignore libCrun as
13282    # -library=stlport4 depends on it.
13283    case " $CXX $CXXFLAGS " in
13284    *" -library=stlport4 "*)
13285      solaris_use_stlport4=yes
13286      ;;
13287    esac
13288
13289    # Adding this requires a known-good setup of shared libraries for
13290    # Sun compiler versions before 5.6, else PIC objects from an old
13291    # archive will be linked into the output, leading to subtle bugs.
13292    if test "$solaris_use_stlport4" != yes; then
13293      postdeps_CXX='-library=Cstd -library=Crun'
13294    fi
13295    ;;
13296  esac
13297  ;;
13298esac
13299
13300
13301case " $postdeps_CXX " in
13302*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13303esac
13304 compiler_lib_search_dirs_CXX=
13305if test -n "${compiler_lib_search_path_CXX}"; then
13306 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13307fi
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339    lt_prog_compiler_wl_CXX=
13340lt_prog_compiler_pic_CXX=
13341lt_prog_compiler_static_CXX=
13342
13343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13344$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13345
13346  # C++ specific cases for pic, static, wl, etc.
13347  if test "$GXX" = yes; then
13348    lt_prog_compiler_wl_CXX='-Wl,'
13349    lt_prog_compiler_static_CXX='-static'
13350
13351    case $host_os in
13352    aix*)
13353      # All AIX code is PIC.
13354      if test "$host_cpu" = ia64; then
13355	# AIX 5 now supports IA64 processor
13356	lt_prog_compiler_static_CXX='-Bstatic'
13357      fi
13358      lt_prog_compiler_pic_CXX='-fPIC'
13359      ;;
13360
13361    amigaos*)
13362      case $host_cpu in
13363      powerpc)
13364            # see comment about AmigaOS4 .so support
13365            lt_prog_compiler_pic_CXX='-fPIC'
13366        ;;
13367      m68k)
13368            # FIXME: we need at least 68020 code to build shared libraries, but
13369            # adding the `-m68020' flag to GCC prevents building anything better,
13370            # like `-m68040'.
13371            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13372        ;;
13373      esac
13374      ;;
13375
13376    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13377      # PIC is the default for these OSes.
13378      ;;
13379    mingw* | cygwin* | os2* | pw32* | cegcc*)
13380      # This hack is so that the source file can tell whether it is being
13381      # built for inclusion in a dll (and should export symbols for example).
13382      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13383      # (--disable-auto-import) libraries
13384      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13385      ;;
13386    darwin* | rhapsody*)
13387      # PIC is the default on this platform
13388      # Common symbols not allowed in MH_DYLIB files
13389      lt_prog_compiler_pic_CXX='-fno-common'
13390      ;;
13391    *djgpp*)
13392      # DJGPP does not support shared libraries at all
13393      lt_prog_compiler_pic_CXX=
13394      ;;
13395    haiku*)
13396      # PIC is the default for Haiku.
13397      # The "-static" flag exists, but is broken.
13398      lt_prog_compiler_static_CXX=
13399      ;;
13400    interix[3-9]*)
13401      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13402      # Instead, we relocate shared libraries at runtime.
13403      ;;
13404    sysv4*MP*)
13405      if test -d /usr/nec; then
13406	lt_prog_compiler_pic_CXX=-Kconform_pic
13407      fi
13408      ;;
13409    hpux*)
13410      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13411      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13412      # sets the default TLS model and affects inlining.
13413      case $host_cpu in
13414      hppa*64*)
13415	;;
13416      *)
13417	lt_prog_compiler_pic_CXX='-fPIC'
13418	;;
13419      esac
13420      ;;
13421    *qnx* | *nto*)
13422      # QNX uses GNU C++, but need to define -shared option too, otherwise
13423      # it will coredump.
13424      lt_prog_compiler_pic_CXX='-fPIC -shared'
13425      ;;
13426    *)
13427      lt_prog_compiler_pic_CXX='-fPIC'
13428      ;;
13429    esac
13430  else
13431    case $host_os in
13432      aix[4-9]*)
13433	# All AIX code is PIC.
13434	if test "$host_cpu" = ia64; then
13435	  # AIX 5 now supports IA64 processor
13436	  lt_prog_compiler_static_CXX='-Bstatic'
13437	else
13438	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13439	fi
13440	;;
13441      chorus*)
13442	case $cc_basename in
13443	cxch68*)
13444	  # Green Hills C++ Compiler
13445	  # _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"
13446	  ;;
13447	esac
13448	;;
13449      dgux*)
13450	case $cc_basename in
13451	  ec++*)
13452	    lt_prog_compiler_pic_CXX='-KPIC'
13453	    ;;
13454	  ghcx*)
13455	    # Green Hills C++ Compiler
13456	    lt_prog_compiler_pic_CXX='-pic'
13457	    ;;
13458	  *)
13459	    ;;
13460	esac
13461	;;
13462      freebsd* | dragonfly*)
13463	# FreeBSD uses GNU C++
13464	;;
13465      hpux9* | hpux10* | hpux11*)
13466	case $cc_basename in
13467	  CC*)
13468	    lt_prog_compiler_wl_CXX='-Wl,'
13469	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13470	    if test "$host_cpu" != ia64; then
13471	      lt_prog_compiler_pic_CXX='+Z'
13472	    fi
13473	    ;;
13474	  aCC*)
13475	    lt_prog_compiler_wl_CXX='-Wl,'
13476	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13477	    case $host_cpu in
13478	    hppa*64*|ia64*)
13479	      # +Z the default
13480	      ;;
13481	    *)
13482	      lt_prog_compiler_pic_CXX='+Z'
13483	      ;;
13484	    esac
13485	    ;;
13486	  *)
13487	    ;;
13488	esac
13489	;;
13490      interix*)
13491	# This is c89, which is MS Visual C++ (no shared libs)
13492	# Anyone wants to do a port?
13493	;;
13494      irix5* | irix6* | nonstopux*)
13495	case $cc_basename in
13496	  CC*)
13497	    lt_prog_compiler_wl_CXX='-Wl,'
13498	    lt_prog_compiler_static_CXX='-non_shared'
13499	    # CC pic flag -KPIC is the default.
13500	    ;;
13501	  *)
13502	    ;;
13503	esac
13504	;;
13505      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13506	case $cc_basename in
13507	  KCC*)
13508	    # KAI C++ Compiler
13509	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13510	    lt_prog_compiler_pic_CXX='-fPIC'
13511	    ;;
13512	  ecpc* )
13513	    # old Intel C++ for x86_64 which still supported -KPIC.
13514	    lt_prog_compiler_wl_CXX='-Wl,'
13515	    lt_prog_compiler_pic_CXX='-KPIC'
13516	    lt_prog_compiler_static_CXX='-static'
13517	    ;;
13518	  icpc* )
13519	    # Intel C++, used to be incompatible with GCC.
13520	    # ICC 10 doesn't accept -KPIC any more.
13521	    lt_prog_compiler_wl_CXX='-Wl,'
13522	    lt_prog_compiler_pic_CXX='-fPIC'
13523	    lt_prog_compiler_static_CXX='-static'
13524	    ;;
13525	  pgCC* | pgcpp*)
13526	    # Portland Group C++ compiler
13527	    lt_prog_compiler_wl_CXX='-Wl,'
13528	    lt_prog_compiler_pic_CXX='-fpic'
13529	    lt_prog_compiler_static_CXX='-Bstatic'
13530	    ;;
13531	  cxx*)
13532	    # Compaq C++
13533	    # Make sure the PIC flag is empty.  It appears that all Alpha
13534	    # Linux and Compaq Tru64 Unix objects are PIC.
13535	    lt_prog_compiler_pic_CXX=
13536	    lt_prog_compiler_static_CXX='-non_shared'
13537	    ;;
13538	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13539	    # IBM XL 8.0, 9.0 on PPC and BlueGene
13540	    lt_prog_compiler_wl_CXX='-Wl,'
13541	    lt_prog_compiler_pic_CXX='-qpic'
13542	    lt_prog_compiler_static_CXX='-qstaticlink'
13543	    ;;
13544	  *)
13545	    case `$CC -V 2>&1 | sed 5q` in
13546	    *Sun\ C*)
13547	      # Sun C++ 5.9
13548	      lt_prog_compiler_pic_CXX='-KPIC'
13549	      lt_prog_compiler_static_CXX='-Bstatic'
13550	      lt_prog_compiler_wl_CXX='-Qoption ld '
13551	      ;;
13552	    esac
13553	    ;;
13554	esac
13555	;;
13556      lynxos*)
13557	;;
13558      m88k*)
13559	;;
13560      mvs*)
13561	case $cc_basename in
13562	  cxx*)
13563	    lt_prog_compiler_pic_CXX='-W c,exportall'
13564	    ;;
13565	  *)
13566	    ;;
13567	esac
13568	;;
13569      netbsd*)
13570	;;
13571      *qnx* | *nto*)
13572        # QNX uses GNU C++, but need to define -shared option too, otherwise
13573        # it will coredump.
13574        lt_prog_compiler_pic_CXX='-fPIC -shared'
13575        ;;
13576      osf3* | osf4* | osf5*)
13577	case $cc_basename in
13578	  KCC*)
13579	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13580	    ;;
13581	  RCC*)
13582	    # Rational C++ 2.4.1
13583	    lt_prog_compiler_pic_CXX='-pic'
13584	    ;;
13585	  cxx*)
13586	    # Digital/Compaq C++
13587	    lt_prog_compiler_wl_CXX='-Wl,'
13588	    # Make sure the PIC flag is empty.  It appears that all Alpha
13589	    # Linux and Compaq Tru64 Unix objects are PIC.
13590	    lt_prog_compiler_pic_CXX=
13591	    lt_prog_compiler_static_CXX='-non_shared'
13592	    ;;
13593	  *)
13594	    ;;
13595	esac
13596	;;
13597      psos*)
13598	;;
13599      solaris*)
13600	case $cc_basename in
13601	  CC*)
13602	    # Sun C++ 4.2, 5.x and Centerline C++
13603	    lt_prog_compiler_pic_CXX='-KPIC'
13604	    lt_prog_compiler_static_CXX='-Bstatic'
13605	    lt_prog_compiler_wl_CXX='-Qoption ld '
13606	    ;;
13607	  gcx*)
13608	    # Green Hills C++ Compiler
13609	    lt_prog_compiler_pic_CXX='-PIC'
13610	    ;;
13611	  *)
13612	    ;;
13613	esac
13614	;;
13615      sunos4*)
13616	case $cc_basename in
13617	  CC*)
13618	    # Sun C++ 4.x
13619	    lt_prog_compiler_pic_CXX='-pic'
13620	    lt_prog_compiler_static_CXX='-Bstatic'
13621	    ;;
13622	  lcc*)
13623	    # Lucid
13624	    lt_prog_compiler_pic_CXX='-pic'
13625	    ;;
13626	  *)
13627	    ;;
13628	esac
13629	;;
13630      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13631	case $cc_basename in
13632	  CC*)
13633	    lt_prog_compiler_wl_CXX='-Wl,'
13634	    lt_prog_compiler_pic_CXX='-KPIC'
13635	    lt_prog_compiler_static_CXX='-Bstatic'
13636	    ;;
13637	esac
13638	;;
13639      tandem*)
13640	case $cc_basename in
13641	  NCC*)
13642	    # NonStop-UX NCC 3.20
13643	    lt_prog_compiler_pic_CXX='-KPIC'
13644	    ;;
13645	  *)
13646	    ;;
13647	esac
13648	;;
13649      vxworks*)
13650	;;
13651      *)
13652	lt_prog_compiler_can_build_shared_CXX=no
13653	;;
13654    esac
13655  fi
13656
13657case $host_os in
13658  # For platforms which do not support PIC, -DPIC is meaningless:
13659  *djgpp*)
13660    lt_prog_compiler_pic_CXX=
13661    ;;
13662  *)
13663    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13664    ;;
13665esac
13666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13667$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13668
13669
13670
13671#
13672# Check to make sure the PIC flag actually works.
13673#
13674if test -n "$lt_prog_compiler_pic_CXX"; then
13675  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13676$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13677if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13678  $as_echo_n "(cached) " >&6
13679else
13680  lt_cv_prog_compiler_pic_works_CXX=no
13681   ac_outfile=conftest.$ac_objext
13682   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13683   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13684   # Insert the option either (1) after the last *FLAGS variable, or
13685   # (2) before a word containing "conftest.", or (3) at the end.
13686   # Note that $ac_compile itself does not contain backslashes and begins
13687   # with a dollar sign (not a hyphen), so the echo should work correctly.
13688   # The option is referenced via a variable to avoid confusing sed.
13689   lt_compile=`echo "$ac_compile" | $SED \
13690   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13691   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13692   -e 's:$: $lt_compiler_flag:'`
13693   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13694   (eval "$lt_compile" 2>conftest.err)
13695   ac_status=$?
13696   cat conftest.err >&5
13697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698   if (exit $ac_status) && test -s "$ac_outfile"; then
13699     # The compiler can only warn and ignore the option if not recognized
13700     # So say no if there are warnings other than the usual output.
13701     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13702     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13703     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13704       lt_cv_prog_compiler_pic_works_CXX=yes
13705     fi
13706   fi
13707   $RM conftest*
13708
13709fi
13710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13711$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13712
13713if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13714    case $lt_prog_compiler_pic_CXX in
13715     "" | " "*) ;;
13716     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13717     esac
13718else
13719    lt_prog_compiler_pic_CXX=
13720     lt_prog_compiler_can_build_shared_CXX=no
13721fi
13722
13723fi
13724
13725
13726
13727#
13728# Check to make sure the static flag actually works.
13729#
13730wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13732$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13733if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13734  $as_echo_n "(cached) " >&6
13735else
13736  lt_cv_prog_compiler_static_works_CXX=no
13737   save_LDFLAGS="$LDFLAGS"
13738   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13739   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13740   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13741     # The linker can only warn and ignore the option if not recognized
13742     # So say no if there are warnings
13743     if test -s conftest.err; then
13744       # Append any errors to the config.log.
13745       cat conftest.err 1>&5
13746       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13747       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13748       if diff conftest.exp conftest.er2 >/dev/null; then
13749         lt_cv_prog_compiler_static_works_CXX=yes
13750       fi
13751     else
13752       lt_cv_prog_compiler_static_works_CXX=yes
13753     fi
13754   fi
13755   $RM -r conftest*
13756   LDFLAGS="$save_LDFLAGS"
13757
13758fi
13759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13760$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13761
13762if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13763    :
13764else
13765    lt_prog_compiler_static_CXX=
13766fi
13767
13768
13769
13770
13771    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13772$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13773if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13774  $as_echo_n "(cached) " >&6
13775else
13776  lt_cv_prog_compiler_c_o_CXX=no
13777   $RM -r conftest 2>/dev/null
13778   mkdir conftest
13779   cd conftest
13780   mkdir out
13781   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13782
13783   lt_compiler_flag="-o out/conftest2.$ac_objext"
13784   # Insert the option either (1) after the last *FLAGS variable, or
13785   # (2) before a word containing "conftest.", or (3) at the end.
13786   # Note that $ac_compile itself does not contain backslashes and begins
13787   # with a dollar sign (not a hyphen), so the echo should work correctly.
13788   lt_compile=`echo "$ac_compile" | $SED \
13789   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13790   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13791   -e 's:$: $lt_compiler_flag:'`
13792   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13793   (eval "$lt_compile" 2>out/conftest.err)
13794   ac_status=$?
13795   cat out/conftest.err >&5
13796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13798   then
13799     # The compiler can only warn and ignore the option if not recognized
13800     # So say no if there are warnings
13801     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13802     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13803     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13804       lt_cv_prog_compiler_c_o_CXX=yes
13805     fi
13806   fi
13807   chmod u+w . 2>&5
13808   $RM conftest*
13809   # SGI C++ compiler will create directory out/ii_files/ for
13810   # template instantiation
13811   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13812   $RM out/* && rmdir out
13813   cd ..
13814   $RM -r conftest
13815   $RM conftest*
13816
13817fi
13818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13819$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13820
13821
13822
13823    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13824$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13825if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13826  $as_echo_n "(cached) " >&6
13827else
13828  lt_cv_prog_compiler_c_o_CXX=no
13829   $RM -r conftest 2>/dev/null
13830   mkdir conftest
13831   cd conftest
13832   mkdir out
13833   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13834
13835   lt_compiler_flag="-o out/conftest2.$ac_objext"
13836   # Insert the option either (1) after the last *FLAGS variable, or
13837   # (2) before a word containing "conftest.", or (3) at the end.
13838   # Note that $ac_compile itself does not contain backslashes and begins
13839   # with a dollar sign (not a hyphen), so the echo should work correctly.
13840   lt_compile=`echo "$ac_compile" | $SED \
13841   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13842   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13843   -e 's:$: $lt_compiler_flag:'`
13844   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13845   (eval "$lt_compile" 2>out/conftest.err)
13846   ac_status=$?
13847   cat out/conftest.err >&5
13848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13850   then
13851     # The compiler can only warn and ignore the option if not recognized
13852     # So say no if there are warnings
13853     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13854     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13855     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13856       lt_cv_prog_compiler_c_o_CXX=yes
13857     fi
13858   fi
13859   chmod u+w . 2>&5
13860   $RM conftest*
13861   # SGI C++ compiler will create directory out/ii_files/ for
13862   # template instantiation
13863   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13864   $RM out/* && rmdir out
13865   cd ..
13866   $RM -r conftest
13867   $RM conftest*
13868
13869fi
13870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13871$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13872
13873
13874
13875
13876hard_links="nottested"
13877if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13878  # do not overwrite the value of need_locks provided by the user
13879  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13880$as_echo_n "checking if we can lock with hard links... " >&6; }
13881  hard_links=yes
13882  $RM conftest*
13883  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13884  touch conftest.a
13885  ln conftest.a conftest.b 2>&5 || hard_links=no
13886  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13888$as_echo "$hard_links" >&6; }
13889  if test "$hard_links" = no; then
13890    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13891$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13892    need_locks=warn
13893  fi
13894else
13895  need_locks=no
13896fi
13897
13898
13899
13900    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13901$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13902
13903  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13904  case $host_os in
13905  aix[4-9]*)
13906    # If we're using GNU nm, then we don't want the "-C" option.
13907    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13908    # Also, AIX nm treats weak defined symbols like other global defined
13909    # symbols, whereas GNU nm marks them as "W".
13910    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13911      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13912    else
13913      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13914    fi
13915    ;;
13916  pw32*)
13917    export_symbols_cmds_CXX="$ltdll_cmds"
13918  ;;
13919  cygwin* | mingw* | cegcc*)
13920    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'
13921  ;;
13922  *)
13923    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13924  ;;
13925  esac
13926  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13927
13928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13929$as_echo "$ld_shlibs_CXX" >&6; }
13930test "$ld_shlibs_CXX" = no && can_build_shared=no
13931
13932with_gnu_ld_CXX=$with_gnu_ld
13933
13934
13935
13936
13937
13938
13939#
13940# Do we need to explicitly link libc?
13941#
13942case "x$archive_cmds_need_lc_CXX" in
13943x|xyes)
13944  # Assume -lc should be added
13945  archive_cmds_need_lc_CXX=yes
13946
13947  if test "$enable_shared" = yes && test "$GCC" = yes; then
13948    case $archive_cmds_CXX in
13949    *'~'*)
13950      # FIXME: we may have to deal with multi-command sequences.
13951      ;;
13952    '$CC '*)
13953      # Test whether the compiler implicitly links with -lc since on some
13954      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13955      # to ld, don't add -lc before -lgcc.
13956      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13957$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13958if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13959  $as_echo_n "(cached) " >&6
13960else
13961  $RM conftest*
13962	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13963
13964	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13965  (eval $ac_compile) 2>&5
13966  ac_status=$?
13967  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13968  test $ac_status = 0; } 2>conftest.err; then
13969	  soname=conftest
13970	  lib=conftest
13971	  libobjs=conftest.$ac_objext
13972	  deplibs=
13973	  wl=$lt_prog_compiler_wl_CXX
13974	  pic_flag=$lt_prog_compiler_pic_CXX
13975	  compiler_flags=-v
13976	  linker_flags=-v
13977	  verstring=
13978	  output_objdir=.
13979	  libname=conftest
13980	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13981	  allow_undefined_flag_CXX=
13982	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13983  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13984  ac_status=$?
13985  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13986  test $ac_status = 0; }
13987	  then
13988	    lt_cv_archive_cmds_need_lc_CXX=no
13989	  else
13990	    lt_cv_archive_cmds_need_lc_CXX=yes
13991	  fi
13992	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13993	else
13994	  cat conftest.err 1>&5
13995	fi
13996	$RM conftest*
13997
13998fi
13999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14000$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14001      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14002      ;;
14003    esac
14004  fi
14005  ;;
14006esac
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14072$as_echo_n "checking dynamic linker characteristics... " >&6; }
14073
14074library_names_spec=
14075libname_spec='lib$name'
14076soname_spec=
14077shrext_cmds=".so"
14078postinstall_cmds=
14079postuninstall_cmds=
14080finish_cmds=
14081finish_eval=
14082shlibpath_var=
14083shlibpath_overrides_runpath=unknown
14084version_type=none
14085dynamic_linker="$host_os ld.so"
14086sys_lib_dlsearch_path_spec="/lib /usr/lib"
14087need_lib_prefix=unknown
14088hardcode_into_libs=no
14089
14090# when you set need_version to no, make sure it does not cause -set_version
14091# flags to be left without arguments
14092need_version=unknown
14093
14094case $host_os in
14095aix3*)
14096  version_type=linux
14097  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14098  shlibpath_var=LIBPATH
14099
14100  # AIX 3 has no versioning support, so we append a major version to the name.
14101  soname_spec='${libname}${release}${shared_ext}$major'
14102  ;;
14103
14104aix[4-9]*)
14105  version_type=linux
14106  need_lib_prefix=no
14107  need_version=no
14108  hardcode_into_libs=yes
14109  if test "$host_cpu" = ia64; then
14110    # AIX 5 supports IA64
14111    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14112    shlibpath_var=LD_LIBRARY_PATH
14113  else
14114    # With GCC up to 2.95.x, collect2 would create an import file
14115    # for dependence libraries.  The import file would start with
14116    # the line `#! .'.  This would cause the generated library to
14117    # depend on `.', always an invalid library.  This was fixed in
14118    # development snapshots of GCC prior to 3.0.
14119    case $host_os in
14120      aix4 | aix4.[01] | aix4.[01].*)
14121      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14122	   echo ' yes '
14123	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14124	:
14125      else
14126	can_build_shared=no
14127      fi
14128      ;;
14129    esac
14130    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14131    # soname into executable. Probably we can add versioning support to
14132    # collect2, so additional links can be useful in future.
14133    if test "$aix_use_runtimelinking" = yes; then
14134      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14135      # instead of lib<name>.a to let people know that these are not
14136      # typical AIX shared libraries.
14137      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14138    else
14139      # We preserve .a as extension for shared libraries through AIX4.2
14140      # and later when we are not doing run time linking.
14141      library_names_spec='${libname}${release}.a $libname.a'
14142      soname_spec='${libname}${release}${shared_ext}$major'
14143    fi
14144    shlibpath_var=LIBPATH
14145  fi
14146  ;;
14147
14148amigaos*)
14149  case $host_cpu in
14150  powerpc)
14151    # Since July 2007 AmigaOS4 officially supports .so libraries.
14152    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14153    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14154    ;;
14155  m68k)
14156    library_names_spec='$libname.ixlibrary $libname.a'
14157    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14158    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14159    ;;
14160  esac
14161  ;;
14162
14163beos*)
14164  library_names_spec='${libname}${shared_ext}'
14165  dynamic_linker="$host_os ld.so"
14166  shlibpath_var=LIBRARY_PATH
14167  ;;
14168
14169bsdi[45]*)
14170  version_type=linux
14171  need_version=no
14172  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14173  soname_spec='${libname}${release}${shared_ext}$major'
14174  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14175  shlibpath_var=LD_LIBRARY_PATH
14176  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14177  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14178  # the default ld.so.conf also contains /usr/contrib/lib and
14179  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14180  # libtool to hard-code these into programs
14181  ;;
14182
14183cygwin* | mingw* | pw32* | cegcc*)
14184  version_type=windows
14185  shrext_cmds=".dll"
14186  need_version=no
14187  need_lib_prefix=no
14188
14189  case $GCC,$host_os in
14190  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14191    library_names_spec='$libname.dll.a'
14192    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14193    postinstall_cmds='base_file=`basename \${file}`~
14194      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14195      dldir=$destdir/`dirname \$dlpath`~
14196      test -d \$dldir || mkdir -p \$dldir~
14197      $install_prog $dir/$dlname \$dldir/$dlname~
14198      chmod a+x \$dldir/$dlname~
14199      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14200        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14201      fi'
14202    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14203      dlpath=$dir/\$dldll~
14204       $RM \$dlpath'
14205    shlibpath_overrides_runpath=yes
14206
14207    case $host_os in
14208    cygwin*)
14209      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14210      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14211
14212      ;;
14213    mingw* | cegcc*)
14214      # MinGW DLLs use traditional 'lib' prefix
14215      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14216      ;;
14217    pw32*)
14218      # pw32 DLLs use 'pw' prefix rather than 'lib'
14219      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14220      ;;
14221    esac
14222    ;;
14223
14224  *)
14225    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14226    ;;
14227  esac
14228  dynamic_linker='Win32 ld.exe'
14229  # FIXME: first we should search . and the directory the executable is in
14230  shlibpath_var=PATH
14231  ;;
14232
14233darwin* | rhapsody*)
14234  dynamic_linker="$host_os dyld"
14235  version_type=darwin
14236  need_lib_prefix=no
14237  need_version=no
14238  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14239  soname_spec='${libname}${release}${major}$shared_ext'
14240  shlibpath_overrides_runpath=yes
14241  shlibpath_var=DYLD_LIBRARY_PATH
14242  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14243
14244  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14245  ;;
14246
14247dgux*)
14248  version_type=linux
14249  need_lib_prefix=no
14250  need_version=no
14251  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14252  soname_spec='${libname}${release}${shared_ext}$major'
14253  shlibpath_var=LD_LIBRARY_PATH
14254  ;;
14255
14256freebsd* | dragonfly*)
14257  # DragonFly does not have aout.  When/if they implement a new
14258  # versioning mechanism, adjust this.
14259  if test -x /usr/bin/objformat; then
14260    objformat=`/usr/bin/objformat`
14261  else
14262    case $host_os in
14263    freebsd[23].*) objformat=aout ;;
14264    *) objformat=elf ;;
14265    esac
14266  fi
14267  version_type=freebsd-$objformat
14268  case $version_type in
14269    freebsd-elf*)
14270      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14271      need_version=no
14272      need_lib_prefix=no
14273      ;;
14274    freebsd-*)
14275      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14276      need_version=yes
14277      ;;
14278  esac
14279  shlibpath_var=LD_LIBRARY_PATH
14280  case $host_os in
14281  freebsd2.*)
14282    shlibpath_overrides_runpath=yes
14283    ;;
14284  freebsd3.[01]* | freebsdelf3.[01]*)
14285    shlibpath_overrides_runpath=yes
14286    hardcode_into_libs=yes
14287    ;;
14288  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14289  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14290    shlibpath_overrides_runpath=no
14291    hardcode_into_libs=yes
14292    ;;
14293  *) # from 4.6 on, and DragonFly
14294    shlibpath_overrides_runpath=yes
14295    hardcode_into_libs=yes
14296    ;;
14297  esac
14298  ;;
14299
14300haiku*)
14301  version_type=linux
14302  need_lib_prefix=no
14303  need_version=no
14304  dynamic_linker="$host_os runtime_loader"
14305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14306  soname_spec='${libname}${release}${shared_ext}$major'
14307  shlibpath_var=LIBRARY_PATH
14308  shlibpath_overrides_runpath=yes
14309  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14310  hardcode_into_libs=yes
14311  ;;
14312
14313hpux9* | hpux10* | hpux11*)
14314  # Give a soname corresponding to the major version so that dld.sl refuses to
14315  # link against other versions.
14316  version_type=sunos
14317  need_lib_prefix=no
14318  need_version=no
14319  case $host_cpu in
14320  ia64*)
14321    shrext_cmds='.so'
14322    hardcode_into_libs=yes
14323    dynamic_linker="$host_os dld.so"
14324    shlibpath_var=LD_LIBRARY_PATH
14325    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14326    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14327    soname_spec='${libname}${release}${shared_ext}$major'
14328    if test "X$HPUX_IA64_MODE" = X32; then
14329      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14330    else
14331      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14332    fi
14333    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14334    ;;
14335  hppa*64*)
14336    shrext_cmds='.sl'
14337    hardcode_into_libs=yes
14338    dynamic_linker="$host_os dld.sl"
14339    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14340    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14341    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14342    soname_spec='${libname}${release}${shared_ext}$major'
14343    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14344    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14345    ;;
14346  *)
14347    shrext_cmds='.sl'
14348    dynamic_linker="$host_os dld.sl"
14349    shlibpath_var=SHLIB_PATH
14350    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14351    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14352    soname_spec='${libname}${release}${shared_ext}$major'
14353    ;;
14354  esac
14355  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14356  postinstall_cmds='chmod 555 $lib'
14357  # or fails outright, so override atomically:
14358  install_override_mode=555
14359  ;;
14360
14361interix[3-9]*)
14362  version_type=linux
14363  need_lib_prefix=no
14364  need_version=no
14365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14366  soname_spec='${libname}${release}${shared_ext}$major'
14367  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14368  shlibpath_var=LD_LIBRARY_PATH
14369  shlibpath_overrides_runpath=no
14370  hardcode_into_libs=yes
14371  ;;
14372
14373irix5* | irix6* | nonstopux*)
14374  case $host_os in
14375    nonstopux*) version_type=nonstopux ;;
14376    *)
14377	if test "$lt_cv_prog_gnu_ld" = yes; then
14378		version_type=linux
14379	else
14380		version_type=irix
14381	fi ;;
14382  esac
14383  need_lib_prefix=no
14384  need_version=no
14385  soname_spec='${libname}${release}${shared_ext}$major'
14386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14387  case $host_os in
14388  irix5* | nonstopux*)
14389    libsuff= shlibsuff=
14390    ;;
14391  *)
14392    case $LD in # libtool.m4 will add one of these switches to LD
14393    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14394      libsuff= shlibsuff= libmagic=32-bit;;
14395    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14396      libsuff=32 shlibsuff=N32 libmagic=N32;;
14397    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14398      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14399    *) libsuff= shlibsuff= libmagic=never-match;;
14400    esac
14401    ;;
14402  esac
14403  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14404  shlibpath_overrides_runpath=no
14405  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14406  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14407  hardcode_into_libs=yes
14408  ;;
14409
14410# No shared lib support for Linux oldld, aout, or coff.
14411linux*oldld* | linux*aout* | linux*coff*)
14412  dynamic_linker=no
14413  ;;
14414
14415# This must be Linux ELF.
14416linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14417  version_type=linux
14418  need_lib_prefix=no
14419  need_version=no
14420  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14421  soname_spec='${libname}${release}${shared_ext}$major'
14422  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14423  shlibpath_var=LD_LIBRARY_PATH
14424  shlibpath_overrides_runpath=no
14425
14426  # Some binutils ld are patched to set DT_RUNPATH
14427  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14428  $as_echo_n "(cached) " >&6
14429else
14430  lt_cv_shlibpath_overrides_runpath=no
14431    save_LDFLAGS=$LDFLAGS
14432    save_libdir=$libdir
14433    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14434	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14435    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14436/* end confdefs.h.  */
14437
14438int
14439main ()
14440{
14441
14442  ;
14443  return 0;
14444}
14445_ACEOF
14446if ac_fn_cxx_try_link "$LINENO"; then :
14447  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14448  lt_cv_shlibpath_overrides_runpath=yes
14449fi
14450fi
14451rm -f core conftest.err conftest.$ac_objext \
14452    conftest$ac_exeext conftest.$ac_ext
14453    LDFLAGS=$save_LDFLAGS
14454    libdir=$save_libdir
14455
14456fi
14457
14458  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14459
14460  # This implies no fast_install, which is unacceptable.
14461  # Some rework will be needed to allow for fast_install
14462  # before this can be enabled.
14463  hardcode_into_libs=yes
14464
14465  # Append ld.so.conf contents to the search path
14466  if test -f /etc/ld.so.conf; then
14467    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;s/"//g;/^$/d' | tr '\n' ' '`
14468    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14469  fi
14470
14471  # We used to test for /lib/ld.so.1 and disable shared libraries on
14472  # powerpc, because MkLinux only supported shared libraries with the
14473  # GNU dynamic linker.  Since this was broken with cross compilers,
14474  # most powerpc-linux boxes support dynamic linking these days and
14475  # people can always --disable-shared, the test was removed, and we
14476  # assume the GNU/Linux dynamic linker is in use.
14477  dynamic_linker='GNU/Linux ld.so'
14478  ;;
14479
14480netbsd*)
14481  version_type=sunos
14482  need_lib_prefix=no
14483  need_version=no
14484  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14485    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14486    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14487    dynamic_linker='NetBSD (a.out) ld.so'
14488  else
14489    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14490    soname_spec='${libname}${release}${shared_ext}$major'
14491    dynamic_linker='NetBSD ld.elf_so'
14492  fi
14493  shlibpath_var=LD_LIBRARY_PATH
14494  shlibpath_overrides_runpath=yes
14495  hardcode_into_libs=yes
14496  ;;
14497
14498newsos6)
14499  version_type=linux
14500  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14501  shlibpath_var=LD_LIBRARY_PATH
14502  shlibpath_overrides_runpath=yes
14503  ;;
14504
14505*nto* | *qnx*)
14506  version_type=qnx
14507  need_lib_prefix=no
14508  need_version=no
14509  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14510  soname_spec='${libname}${release}${shared_ext}$major'
14511  shlibpath_var=LD_LIBRARY_PATH
14512  shlibpath_overrides_runpath=no
14513  hardcode_into_libs=yes
14514  dynamic_linker='ldqnx.so'
14515  ;;
14516
14517openbsd*)
14518  version_type=sunos
14519  sys_lib_dlsearch_path_spec="/usr/lib"
14520  need_lib_prefix=no
14521  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14522  case $host_os in
14523    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14524    *)				need_version=no  ;;
14525  esac
14526  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14527  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14528  shlibpath_var=LD_LIBRARY_PATH
14529  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14530    case $host_os in
14531      openbsd2.[89] | openbsd2.[89].*)
14532	shlibpath_overrides_runpath=no
14533	;;
14534      *)
14535	shlibpath_overrides_runpath=yes
14536	;;
14537      esac
14538  else
14539    shlibpath_overrides_runpath=yes
14540  fi
14541  ;;
14542
14543os2*)
14544  libname_spec='$name'
14545  shrext_cmds=".dll"
14546  need_lib_prefix=no
14547  library_names_spec='$libname${shared_ext} $libname.a'
14548  dynamic_linker='OS/2 ld.exe'
14549  shlibpath_var=LIBPATH
14550  ;;
14551
14552osf3* | osf4* | osf5*)
14553  version_type=osf
14554  need_lib_prefix=no
14555  need_version=no
14556  soname_spec='${libname}${release}${shared_ext}$major'
14557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14558  shlibpath_var=LD_LIBRARY_PATH
14559  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14560  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14561  ;;
14562
14563rdos*)
14564  dynamic_linker=no
14565  ;;
14566
14567solaris*)
14568  version_type=linux
14569  need_lib_prefix=no
14570  need_version=no
14571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14572  soname_spec='${libname}${release}${shared_ext}$major'
14573  shlibpath_var=LD_LIBRARY_PATH
14574  shlibpath_overrides_runpath=yes
14575  hardcode_into_libs=yes
14576  # ldd complains unless libraries are executable
14577  postinstall_cmds='chmod +x $lib'
14578  ;;
14579
14580sunos4*)
14581  version_type=sunos
14582  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14583  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14584  shlibpath_var=LD_LIBRARY_PATH
14585  shlibpath_overrides_runpath=yes
14586  if test "$with_gnu_ld" = yes; then
14587    need_lib_prefix=no
14588  fi
14589  need_version=yes
14590  ;;
14591
14592sysv4 | sysv4.3*)
14593  version_type=linux
14594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14595  soname_spec='${libname}${release}${shared_ext}$major'
14596  shlibpath_var=LD_LIBRARY_PATH
14597  case $host_vendor in
14598    sni)
14599      shlibpath_overrides_runpath=no
14600      need_lib_prefix=no
14601      runpath_var=LD_RUN_PATH
14602      ;;
14603    siemens)
14604      need_lib_prefix=no
14605      ;;
14606    motorola)
14607      need_lib_prefix=no
14608      need_version=no
14609      shlibpath_overrides_runpath=no
14610      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14611      ;;
14612  esac
14613  ;;
14614
14615sysv4*MP*)
14616  if test -d /usr/nec ;then
14617    version_type=linux
14618    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14619    soname_spec='$libname${shared_ext}.$major'
14620    shlibpath_var=LD_LIBRARY_PATH
14621  fi
14622  ;;
14623
14624sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14625  version_type=freebsd-elf
14626  need_lib_prefix=no
14627  need_version=no
14628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14629  soname_spec='${libname}${release}${shared_ext}$major'
14630  shlibpath_var=LD_LIBRARY_PATH
14631  shlibpath_overrides_runpath=yes
14632  hardcode_into_libs=yes
14633  if test "$with_gnu_ld" = yes; then
14634    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14635  else
14636    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14637    case $host_os in
14638      sco3.2v5*)
14639        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14640	;;
14641    esac
14642  fi
14643  sys_lib_dlsearch_path_spec='/usr/lib'
14644  ;;
14645
14646tpf*)
14647  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14648  version_type=linux
14649  need_lib_prefix=no
14650  need_version=no
14651  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14652  shlibpath_var=LD_LIBRARY_PATH
14653  shlibpath_overrides_runpath=no
14654  hardcode_into_libs=yes
14655  ;;
14656
14657uts4*)
14658  version_type=linux
14659  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14660  soname_spec='${libname}${release}${shared_ext}$major'
14661  shlibpath_var=LD_LIBRARY_PATH
14662  ;;
14663
14664*)
14665  dynamic_linker=no
14666  ;;
14667esac
14668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14669$as_echo "$dynamic_linker" >&6; }
14670test "$dynamic_linker" = no && can_build_shared=no
14671
14672variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14673if test "$GCC" = yes; then
14674  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14675fi
14676
14677if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14678  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14679fi
14680if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14681  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14682fi
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14722$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14723hardcode_action_CXX=
14724if test -n "$hardcode_libdir_flag_spec_CXX" ||
14725   test -n "$runpath_var_CXX" ||
14726   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14727
14728  # We can hardcode non-existent directories.
14729  if test "$hardcode_direct_CXX" != no &&
14730     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14731     # have to relink, otherwise we might link with an installed library
14732     # when we should be linking with a yet-to-be-installed one
14733     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14734     test "$hardcode_minus_L_CXX" != no; then
14735    # Linking always hardcodes the temporary library directory.
14736    hardcode_action_CXX=relink
14737  else
14738    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14739    hardcode_action_CXX=immediate
14740  fi
14741else
14742  # We cannot hardcode anything, or else we can only hardcode existing
14743  # directories.
14744  hardcode_action_CXX=unsupported
14745fi
14746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14747$as_echo "$hardcode_action_CXX" >&6; }
14748
14749if test "$hardcode_action_CXX" = relink ||
14750   test "$inherit_rpath_CXX" = yes; then
14751  # Fast installation is not supported
14752  enable_fast_install=no
14753elif test "$shlibpath_overrides_runpath" = yes ||
14754     test "$enable_shared" = no; then
14755  # Fast installation is not necessary
14756  enable_fast_install=needless
14757fi
14758
14759
14760
14761
14762
14763
14764
14765  fi # test -n "$compiler"
14766
14767  CC=$lt_save_CC
14768  LDCXX=$LD
14769  LD=$lt_save_LD
14770  GCC=$lt_save_GCC
14771  with_gnu_ld=$lt_save_with_gnu_ld
14772  lt_cv_path_LDCXX=$lt_cv_path_LD
14773  lt_cv_path_LD=$lt_save_path_LD
14774  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14775  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14776fi # test "$_lt_caught_CXX_error" != yes
14777
14778ac_ext=c
14779ac_cpp='$CPP $CPPFLAGS'
14780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14782ac_compiler_gnu=$ac_cv_c_compiler_gnu
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796        ac_config_commands="$ac_config_commands libtool"
14797
14798
14799
14800
14801# Only expand once:
14802
14803
14804# ... and we need it soon, since it is used by some of the
14805# link tests in the configure script.
14806: ${CONFIG_LT=./config.lt}
14807{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
14808$as_echo "$as_me: creating $CONFIG_LT" >&6;}
14809as_write_fail=0
14810cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
14811#! $SHELL
14812# Generated by $as_me.
14813# Run this file to recreate a libtool stub with the current configuration.
14814SHELL=\${CONFIG_SHELL-$SHELL}
14815export SHELL
14816_ASEOF
14817cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
14818## -------------------- ##
14819## M4sh Initialization. ##
14820## -------------------- ##
14821
14822# Be more Bourne compatible
14823DUALCASE=1; export DUALCASE # for MKS sh
14824if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14825  emulate sh
14826  NULLCMD=:
14827  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14828  # is contrary to our usage.  Disable this feature.
14829  alias -g '${1+"$@"}'='"$@"'
14830  setopt NO_GLOB_SUBST
14831else
14832  case `(set -o) 2>/dev/null` in #(
14833  *posix*) :
14834    set -o posix ;; #(
14835  *) :
14836     ;;
14837esac
14838fi
14839
14840
14841as_nl='
14842'
14843export as_nl
14844# Printing a long string crashes Solaris 7 /usr/bin/printf.
14845as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14846as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14847as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14848# Prefer a ksh shell builtin over an external printf program on Solaris,
14849# but without wasting forks for bash or zsh.
14850if test -z "$BASH_VERSION$ZSH_VERSION" \
14851    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14852  as_echo='print -r --'
14853  as_echo_n='print -rn --'
14854elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14855  as_echo='printf %s\n'
14856  as_echo_n='printf %s'
14857else
14858  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14859    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14860    as_echo_n='/usr/ucb/echo -n'
14861  else
14862    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14863    as_echo_n_body='eval
14864      arg=$1;
14865      case $arg in #(
14866      *"$as_nl"*)
14867	expr "X$arg" : "X\\(.*\\)$as_nl";
14868	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14869      esac;
14870      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14871    '
14872    export as_echo_n_body
14873    as_echo_n='sh -c $as_echo_n_body as_echo'
14874  fi
14875  export as_echo_body
14876  as_echo='sh -c $as_echo_body as_echo'
14877fi
14878
14879# The user is always right.
14880if test "${PATH_SEPARATOR+set}" != set; then
14881  PATH_SEPARATOR=:
14882  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14883    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14884      PATH_SEPARATOR=';'
14885  }
14886fi
14887
14888
14889# IFS
14890# We need space, tab and new line, in precisely that order.  Quoting is
14891# there to prevent editors from complaining about space-tab.
14892# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14893# splitting by setting IFS to empty value.)
14894IFS=" ""	$as_nl"
14895
14896# Find who we are.  Look in the path if we contain no directory separator.
14897as_myself=
14898case $0 in #((
14899  *[\\/]* ) as_myself=$0 ;;
14900  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14901for as_dir in $PATH
14902do
14903  IFS=$as_save_IFS
14904  test -z "$as_dir" && as_dir=.
14905    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14906  done
14907IFS=$as_save_IFS
14908
14909     ;;
14910esac
14911# We did not find ourselves, most probably we were run as `sh COMMAND'
14912# in which case we are not to be found in the path.
14913if test "x$as_myself" = x; then
14914  as_myself=$0
14915fi
14916if test ! -f "$as_myself"; then
14917  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14918  exit 1
14919fi
14920
14921# Unset variables that we do not need and which cause bugs (e.g. in
14922# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14923# suppresses any "Segmentation fault" message there.  '((' could
14924# trigger a bug in pdksh 5.2.14.
14925for as_var in BASH_ENV ENV MAIL MAILPATH
14926do eval test x\${$as_var+set} = xset \
14927  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14928done
14929PS1='$ '
14930PS2='> '
14931PS4='+ '
14932
14933# NLS nuisances.
14934LC_ALL=C
14935export LC_ALL
14936LANGUAGE=C
14937export LANGUAGE
14938
14939# CDPATH.
14940(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14941
14942
14943# as_fn_error STATUS ERROR [LINENO LOG_FD]
14944# ----------------------------------------
14945# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14946# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14947# script with STATUS, using 1 if that was 0.
14948as_fn_error ()
14949{
14950  as_status=$1; test $as_status -eq 0 && as_status=1
14951  if test "$4"; then
14952    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14953    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14954  fi
14955  $as_echo "$as_me: error: $2" >&2
14956  as_fn_exit $as_status
14957} # as_fn_error
14958
14959
14960# as_fn_set_status STATUS
14961# -----------------------
14962# Set $? to STATUS, without forking.
14963as_fn_set_status ()
14964{
14965  return $1
14966} # as_fn_set_status
14967
14968# as_fn_exit STATUS
14969# -----------------
14970# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14971as_fn_exit ()
14972{
14973  set +e
14974  as_fn_set_status $1
14975  exit $1
14976} # as_fn_exit
14977
14978# as_fn_unset VAR
14979# ---------------
14980# Portably unset VAR.
14981as_fn_unset ()
14982{
14983  { eval $1=; unset $1;}
14984}
14985as_unset=as_fn_unset
14986# as_fn_append VAR VALUE
14987# ----------------------
14988# Append the text in VALUE to the end of the definition contained in VAR. Take
14989# advantage of any shell optimizations that allow amortized linear growth over
14990# repeated appends, instead of the typical quadratic growth present in naive
14991# implementations.
14992if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14993  eval 'as_fn_append ()
14994  {
14995    eval $1+=\$2
14996  }'
14997else
14998  as_fn_append ()
14999  {
15000    eval $1=\$$1\$2
15001  }
15002fi # as_fn_append
15003
15004# as_fn_arith ARG...
15005# ------------------
15006# Perform arithmetic evaluation on the ARGs, and store the result in the
15007# global $as_val. Take advantage of shells that can avoid forks. The arguments
15008# must be portable across $(()) and expr.
15009if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15010  eval 'as_fn_arith ()
15011  {
15012    as_val=$(( $* ))
15013  }'
15014else
15015  as_fn_arith ()
15016  {
15017    as_val=`expr "$@" || test $? -eq 1`
15018  }
15019fi # as_fn_arith
15020
15021
15022if expr a : '\(a\)' >/dev/null 2>&1 &&
15023   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15024  as_expr=expr
15025else
15026  as_expr=false
15027fi
15028
15029if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15030  as_basename=basename
15031else
15032  as_basename=false
15033fi
15034
15035if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15036  as_dirname=dirname
15037else
15038  as_dirname=false
15039fi
15040
15041as_me=`$as_basename -- "$0" ||
15042$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15043	 X"$0" : 'X\(//\)$' \| \
15044	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15045$as_echo X/"$0" |
15046    sed '/^.*\/\([^/][^/]*\)\/*$/{
15047	    s//\1/
15048	    q
15049	  }
15050	  /^X\/\(\/\/\)$/{
15051	    s//\1/
15052	    q
15053	  }
15054	  /^X\/\(\/\).*/{
15055	    s//\1/
15056	    q
15057	  }
15058	  s/.*/./; q'`
15059
15060# Avoid depending upon Character Ranges.
15061as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15062as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15063as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15064as_cr_digits='0123456789'
15065as_cr_alnum=$as_cr_Letters$as_cr_digits
15066
15067ECHO_C= ECHO_N= ECHO_T=
15068case `echo -n x` in #(((((
15069-n*)
15070  case `echo 'xy\c'` in
15071  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15072  xy)  ECHO_C='\c';;
15073  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15074       ECHO_T='	';;
15075  esac;;
15076*)
15077  ECHO_N='-n';;
15078esac
15079
15080rm -f conf$$ conf$$.exe conf$$.file
15081if test -d conf$$.dir; then
15082  rm -f conf$$.dir/conf$$.file
15083else
15084  rm -f conf$$.dir
15085  mkdir conf$$.dir 2>/dev/null
15086fi
15087if (echo >conf$$.file) 2>/dev/null; then
15088  if ln -s conf$$.file conf$$ 2>/dev/null; then
15089    as_ln_s='ln -s'
15090    # ... but there are two gotchas:
15091    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15092    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15093    # In both cases, we have to default to `cp -pR'.
15094    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15095      as_ln_s='cp -pR'
15096  elif ln conf$$.file conf$$ 2>/dev/null; then
15097    as_ln_s=ln
15098  else
15099    as_ln_s='cp -pR'
15100  fi
15101else
15102  as_ln_s='cp -pR'
15103fi
15104rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15105rmdir conf$$.dir 2>/dev/null
15106
15107
15108# as_fn_mkdir_p
15109# -------------
15110# Create "$as_dir" as a directory, including parents if necessary.
15111as_fn_mkdir_p ()
15112{
15113
15114  case $as_dir in #(
15115  -*) as_dir=./$as_dir;;
15116  esac
15117  test -d "$as_dir" || eval $as_mkdir_p || {
15118    as_dirs=
15119    while :; do
15120      case $as_dir in #(
15121      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15122      *) as_qdir=$as_dir;;
15123      esac
15124      as_dirs="'$as_qdir' $as_dirs"
15125      as_dir=`$as_dirname -- "$as_dir" ||
15126$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15127	 X"$as_dir" : 'X\(//\)[^/]' \| \
15128	 X"$as_dir" : 'X\(//\)$' \| \
15129	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15130$as_echo X"$as_dir" |
15131    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15132	    s//\1/
15133	    q
15134	  }
15135	  /^X\(\/\/\)[^/].*/{
15136	    s//\1/
15137	    q
15138	  }
15139	  /^X\(\/\/\)$/{
15140	    s//\1/
15141	    q
15142	  }
15143	  /^X\(\/\).*/{
15144	    s//\1/
15145	    q
15146	  }
15147	  s/.*/./; q'`
15148      test -d "$as_dir" && break
15149    done
15150    test -z "$as_dirs" || eval "mkdir $as_dirs"
15151  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15152
15153
15154} # as_fn_mkdir_p
15155if mkdir -p . 2>/dev/null; then
15156  as_mkdir_p='mkdir -p "$as_dir"'
15157else
15158  test -d ./-p && rmdir ./-p
15159  as_mkdir_p=false
15160fi
15161
15162
15163# as_fn_executable_p FILE
15164# -----------------------
15165# Test if FILE is an executable regular file.
15166as_fn_executable_p ()
15167{
15168  test -f "$1" && test -x "$1"
15169} # as_fn_executable_p
15170as_test_x='test -x'
15171as_executable_p=as_fn_executable_p
15172
15173# Sed expression to map a string onto a valid CPP name.
15174as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15175
15176# Sed expression to map a string onto a valid variable name.
15177as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15178
15179
15180exec 6>&1
15181## --------------------------------- ##
15182## Main body of "$CONFIG_LT" script. ##
15183## --------------------------------- ##
15184_ASEOF
15185test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
15186
15187cat >>"$CONFIG_LT" <<\_LTEOF
15188lt_cl_silent=false
15189exec 5>>config.log
15190{
15191  echo
15192  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15193## Running $as_me. ##
15194_ASBOX
15195} >&5
15196
15197lt_cl_help="\
15198\`$as_me' creates a local libtool stub from the current configuration,
15199for use in further configure time tests before the real libtool is
15200generated.
15201
15202Usage: $0 [OPTIONS]
15203
15204  -h, --help      print this help, then exit
15205  -V, --version   print version number, then exit
15206  -q, --quiet     do not print progress messages
15207  -d, --debug     don't remove temporary files
15208
15209Report bugs to <bug-libtool@gnu.org>."
15210
15211lt_cl_version="\
15212config.lt
15213configured by $0, generated by GNU Autoconf 2.69.
15214
15215Copyright (C) 2009 Free Software Foundation, Inc.
15216This config.lt script is free software; the Free Software Foundation
15217gives unlimited permision to copy, distribute and modify it."
15218
15219while test $# != 0
15220do
15221  case $1 in
15222    --version | --v* | -V )
15223      echo "$lt_cl_version"; exit 0 ;;
15224    --help | --h* | -h )
15225      echo "$lt_cl_help"; exit 0 ;;
15226    --debug | --d* | -d )
15227      debug=: ;;
15228    --quiet | --q* | --silent | --s* | -q )
15229      lt_cl_silent=: ;;
15230
15231    -*) as_fn_error $? "unrecognized option: $1
15232Try \`$0 --help' for more information." "$LINENO" 5 ;;
15233
15234    *) as_fn_error $? "unrecognized argument: $1
15235Try \`$0 --help' for more information." "$LINENO" 5 ;;
15236  esac
15237  shift
15238done
15239
15240if $lt_cl_silent; then
15241  exec 6>/dev/null
15242fi
15243_LTEOF
15244
15245cat >>"$CONFIG_LT" <<_LTEOF
15246
15247
15248# The HP-UX ksh and POSIX shell print the target directory to stdout
15249# if CDPATH is set.
15250(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15251
15252sed_quote_subst='$sed_quote_subst'
15253double_quote_subst='$double_quote_subst'
15254delay_variable_subst='$delay_variable_subst'
15255macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15256macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15257enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15258enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15259pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15260enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15261SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15262ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15263host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15264host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15265host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15266build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15267build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15268build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15269SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15270Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15271GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15272EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15273FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15274LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15275NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15276LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15277max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15278ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15279exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15280lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15281lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15282lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15283reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15284reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15285OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15286deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15287file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15288AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15289AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15290STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15291RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15292old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15293old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15294old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15295lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15296CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15297CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15298compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15299GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15300lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15301lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15302lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15303lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15304objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15305MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15306lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15307lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15308lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15309lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15310lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15311need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15312DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15313NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15314LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15315OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15316OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15317libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15318shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15319extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15320archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15321enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15322export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15323whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15324compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15325old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15326old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15327archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15328archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15329module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15330module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15331with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15332allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15333no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15334hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15335hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15336hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15337hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15338hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15339hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15340hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15341hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15342inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15343link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15344fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15345always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15346export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15347exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15348include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15349prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15350file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15351variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15352need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15353need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15354version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15355runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15356shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15357shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15358libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15359library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15360soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15361install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15362postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15363postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15364finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15365finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15366hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15367sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15368sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15369hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15370enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15371enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15372enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15373old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15374striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15375compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15376predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15377postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15378predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15379postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15380compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15381LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15382reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15383reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15384old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15385compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15386GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15387lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15388lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15389lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15390lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15391lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15392archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15393enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15394export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15395whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15396compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15397old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15398old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15399archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15400archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15401module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15402module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15403with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15404allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15405no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15406hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15407hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15408hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15409hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15410hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15411hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15412hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15413hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15414inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15415link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15416fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15417always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15418export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15419exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15420include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15421prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15422file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15423hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15424compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15425predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15426postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15427predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15428postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15429compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15430
15431LTCC='$LTCC'
15432LTCFLAGS='$LTCFLAGS'
15433compiler='$compiler_DEFAULT'
15434
15435# A function that is used when there is no print builtin or printf.
15436func_fallback_echo ()
15437{
15438  eval 'cat <<_LTECHO_EOF
15439\$1
15440_LTECHO_EOF'
15441}
15442
15443# Quote evaled strings.
15444for var in SHELL \
15445ECHO \
15446SED \
15447GREP \
15448EGREP \
15449FGREP \
15450LD \
15451NM \
15452LN_S \
15453lt_SP2NL \
15454lt_NL2SP \
15455reload_flag \
15456OBJDUMP \
15457deplibs_check_method \
15458file_magic_cmd \
15459AR \
15460AR_FLAGS \
15461STRIP \
15462RANLIB \
15463CC \
15464CFLAGS \
15465compiler \
15466lt_cv_sys_global_symbol_pipe \
15467lt_cv_sys_global_symbol_to_cdecl \
15468lt_cv_sys_global_symbol_to_c_name_address \
15469lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15470lt_prog_compiler_no_builtin_flag \
15471lt_prog_compiler_wl \
15472lt_prog_compiler_pic \
15473lt_prog_compiler_static \
15474lt_cv_prog_compiler_c_o \
15475need_locks \
15476DSYMUTIL \
15477NMEDIT \
15478LIPO \
15479OTOOL \
15480OTOOL64 \
15481shrext_cmds \
15482export_dynamic_flag_spec \
15483whole_archive_flag_spec \
15484compiler_needs_object \
15485with_gnu_ld \
15486allow_undefined_flag \
15487no_undefined_flag \
15488hardcode_libdir_flag_spec \
15489hardcode_libdir_flag_spec_ld \
15490hardcode_libdir_separator \
15491fix_srcfile_path \
15492exclude_expsyms \
15493include_expsyms \
15494file_list_spec \
15495variables_saved_for_relink \
15496libname_spec \
15497library_names_spec \
15498soname_spec \
15499install_override_mode \
15500finish_eval \
15501old_striplib \
15502striplib \
15503compiler_lib_search_dirs \
15504predep_objects \
15505postdep_objects \
15506predeps \
15507postdeps \
15508compiler_lib_search_path \
15509LD_CXX \
15510reload_flag_CXX \
15511compiler_CXX \
15512lt_prog_compiler_no_builtin_flag_CXX \
15513lt_prog_compiler_wl_CXX \
15514lt_prog_compiler_pic_CXX \
15515lt_prog_compiler_static_CXX \
15516lt_cv_prog_compiler_c_o_CXX \
15517export_dynamic_flag_spec_CXX \
15518whole_archive_flag_spec_CXX \
15519compiler_needs_object_CXX \
15520with_gnu_ld_CXX \
15521allow_undefined_flag_CXX \
15522no_undefined_flag_CXX \
15523hardcode_libdir_flag_spec_CXX \
15524hardcode_libdir_flag_spec_ld_CXX \
15525hardcode_libdir_separator_CXX \
15526fix_srcfile_path_CXX \
15527exclude_expsyms_CXX \
15528include_expsyms_CXX \
15529file_list_spec_CXX \
15530compiler_lib_search_dirs_CXX \
15531predep_objects_CXX \
15532postdep_objects_CXX \
15533predeps_CXX \
15534postdeps_CXX \
15535compiler_lib_search_path_CXX; do
15536    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15537    *[\\\\\\\`\\"\\\$]*)
15538      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15539      ;;
15540    *)
15541      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15542      ;;
15543    esac
15544done
15545
15546# Double-quote double-evaled strings.
15547for var in reload_cmds \
15548old_postinstall_cmds \
15549old_postuninstall_cmds \
15550old_archive_cmds \
15551extract_expsyms_cmds \
15552old_archive_from_new_cmds \
15553old_archive_from_expsyms_cmds \
15554archive_cmds \
15555archive_expsym_cmds \
15556module_cmds \
15557module_expsym_cmds \
15558export_symbols_cmds \
15559prelink_cmds \
15560postinstall_cmds \
15561postuninstall_cmds \
15562finish_cmds \
15563sys_lib_search_path_spec \
15564sys_lib_dlsearch_path_spec \
15565reload_cmds_CXX \
15566old_archive_cmds_CXX \
15567old_archive_from_new_cmds_CXX \
15568old_archive_from_expsyms_cmds_CXX \
15569archive_cmds_CXX \
15570archive_expsym_cmds_CXX \
15571module_cmds_CXX \
15572module_expsym_cmds_CXX \
15573export_symbols_cmds_CXX \
15574prelink_cmds_CXX; do
15575    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15576    *[\\\\\\\`\\"\\\$]*)
15577      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15578      ;;
15579    *)
15580      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15581      ;;
15582    esac
15583done
15584
15585ac_aux_dir='$ac_aux_dir'
15586xsi_shell='$xsi_shell'
15587lt_shell_append='$lt_shell_append'
15588
15589# See if we are running on zsh, and set the options which allow our
15590# commands through without removal of \ escapes INIT.
15591if test -n "\${ZSH_VERSION+set}" ; then
15592   setopt NO_GLOB_SUBST
15593fi
15594
15595
15596    PACKAGE='$PACKAGE'
15597    VERSION='$VERSION'
15598    TIMESTAMP='$TIMESTAMP'
15599    RM='$RM'
15600    ofile='$ofile'
15601
15602
15603
15604
15605
15606_LTEOF
15607
15608cat >>"$CONFIG_LT" <<\_LTEOF
15609{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
15610$as_echo "$as_me: creating $ofile" >&6;}
15611
15612
15613    # See if we are running on zsh, and set the options which allow our
15614    # commands through without removal of \ escapes.
15615    if test -n "${ZSH_VERSION+set}" ; then
15616      setopt NO_GLOB_SUBST
15617    fi
15618
15619    cfgfile="${ofile}T"
15620    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15621    $RM "$cfgfile"
15622
15623    cat <<_LT_EOF >> "$cfgfile"
15624#! $SHELL
15625
15626# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15627# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15628# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15629# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15630#
15631#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15632#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15633#   Written by Gordon Matzigkeit, 1996
15634#
15635#   This file is part of GNU Libtool.
15636#
15637# GNU Libtool is free software; you can redistribute it and/or
15638# modify it under the terms of the GNU General Public License as
15639# published by the Free Software Foundation; either version 2 of
15640# the License, or (at your option) any later version.
15641#
15642# As a special exception to the GNU General Public License,
15643# if you distribute this file as part of a program or library that
15644# is built using GNU Libtool, you may include this file under the
15645# same distribution terms that you use for the rest of that program.
15646#
15647# GNU Libtool is distributed in the hope that it will be useful,
15648# but WITHOUT ANY WARRANTY; without even the implied warranty of
15649# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15650# GNU General Public License for more details.
15651#
15652# You should have received a copy of the GNU General Public License
15653# along with GNU Libtool; see the file COPYING.  If not, a copy
15654# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15655# obtained by writing to the Free Software Foundation, Inc.,
15656# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15657
15658
15659# The names of the tagged configurations supported by this script.
15660available_tags="CXX "
15661
15662# ### BEGIN LIBTOOL CONFIG
15663
15664# Which release of libtool.m4 was used?
15665macro_version=$macro_version
15666macro_revision=$macro_revision
15667
15668# Whether or not to build shared libraries.
15669build_libtool_libs=$enable_shared
15670
15671# Whether or not to build static libraries.
15672build_old_libs=$enable_static
15673
15674# What type of objects to build.
15675pic_mode=$pic_mode
15676
15677# Whether or not to optimize for fast installation.
15678fast_install=$enable_fast_install
15679
15680# Shell to use when invoking shell scripts.
15681SHELL=$lt_SHELL
15682
15683# An echo program that protects backslashes.
15684ECHO=$lt_ECHO
15685
15686# The host system.
15687host_alias=$host_alias
15688host=$host
15689host_os=$host_os
15690
15691# The build system.
15692build_alias=$build_alias
15693build=$build
15694build_os=$build_os
15695
15696# A sed program that does not truncate output.
15697SED=$lt_SED
15698
15699# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15700Xsed="\$SED -e 1s/^X//"
15701
15702# A grep program that handles long lines.
15703GREP=$lt_GREP
15704
15705# An ERE matcher.
15706EGREP=$lt_EGREP
15707
15708# A literal string matcher.
15709FGREP=$lt_FGREP
15710
15711# A BSD- or MS-compatible name lister.
15712NM=$lt_NM
15713
15714# Whether we need soft or hard links.
15715LN_S=$lt_LN_S
15716
15717# What is the maximum length of a command?
15718max_cmd_len=$max_cmd_len
15719
15720# Object file suffix (normally "o").
15721objext=$ac_objext
15722
15723# Executable file suffix (normally "").
15724exeext=$exeext
15725
15726# whether the shell understands "unset".
15727lt_unset=$lt_unset
15728
15729# turn spaces into newlines.
15730SP2NL=$lt_lt_SP2NL
15731
15732# turn newlines into spaces.
15733NL2SP=$lt_lt_NL2SP
15734
15735# An object symbol dumper.
15736OBJDUMP=$lt_OBJDUMP
15737
15738# Method to check whether dependent libraries are shared objects.
15739deplibs_check_method=$lt_deplibs_check_method
15740
15741# Command to use when deplibs_check_method == "file_magic".
15742file_magic_cmd=$lt_file_magic_cmd
15743
15744# The archiver.
15745AR=$lt_AR
15746AR_FLAGS=$lt_AR_FLAGS
15747
15748# A symbol stripping program.
15749STRIP=$lt_STRIP
15750
15751# Commands used to install an old-style archive.
15752RANLIB=$lt_RANLIB
15753old_postinstall_cmds=$lt_old_postinstall_cmds
15754old_postuninstall_cmds=$lt_old_postuninstall_cmds
15755
15756# Whether to use a lock for old archive extraction.
15757lock_old_archive_extraction=$lock_old_archive_extraction
15758
15759# A C compiler.
15760LTCC=$lt_CC
15761
15762# LTCC compiler flags.
15763LTCFLAGS=$lt_CFLAGS
15764
15765# Take the output of nm and produce a listing of raw symbols and C names.
15766global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15767
15768# Transform the output of nm in a proper C declaration.
15769global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15770
15771# Transform the output of nm in a C name address pair.
15772global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15773
15774# Transform the output of nm in a C name address pair when lib prefix is needed.
15775global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15776
15777# The name of the directory that contains temporary libtool files.
15778objdir=$objdir
15779
15780# Used to examine libraries when file_magic_cmd begins with "file".
15781MAGIC_CMD=$MAGIC_CMD
15782
15783# Must we lock files when doing compilation?
15784need_locks=$lt_need_locks
15785
15786# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15787DSYMUTIL=$lt_DSYMUTIL
15788
15789# Tool to change global to local symbols on Mac OS X.
15790NMEDIT=$lt_NMEDIT
15791
15792# Tool to manipulate fat objects and archives on Mac OS X.
15793LIPO=$lt_LIPO
15794
15795# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15796OTOOL=$lt_OTOOL
15797
15798# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15799OTOOL64=$lt_OTOOL64
15800
15801# Old archive suffix (normally "a").
15802libext=$libext
15803
15804# Shared library suffix (normally ".so").
15805shrext_cmds=$lt_shrext_cmds
15806
15807# The commands to extract the exported symbol list from a shared archive.
15808extract_expsyms_cmds=$lt_extract_expsyms_cmds
15809
15810# Variables whose values should be saved in libtool wrapper scripts and
15811# restored at link time.
15812variables_saved_for_relink=$lt_variables_saved_for_relink
15813
15814# Do we need the "lib" prefix for modules?
15815need_lib_prefix=$need_lib_prefix
15816
15817# Do we need a version for libraries?
15818need_version=$need_version
15819
15820# Library versioning type.
15821version_type=$version_type
15822
15823# Shared library runtime path variable.
15824runpath_var=$runpath_var
15825
15826# Shared library path variable.
15827shlibpath_var=$shlibpath_var
15828
15829# Is shlibpath searched before the hard-coded library search path?
15830shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15831
15832# Format of library name prefix.
15833libname_spec=$lt_libname_spec
15834
15835# List of archive names.  First name is the real one, the rest are links.
15836# The last name is the one that the linker finds with -lNAME
15837library_names_spec=$lt_library_names_spec
15838
15839# The coded name of the library, if different from the real name.
15840soname_spec=$lt_soname_spec
15841
15842# Permission mode override for installation of shared libraries.
15843install_override_mode=$lt_install_override_mode
15844
15845# Command to use after installation of a shared archive.
15846postinstall_cmds=$lt_postinstall_cmds
15847
15848# Command to use after uninstallation of a shared archive.
15849postuninstall_cmds=$lt_postuninstall_cmds
15850
15851# Commands used to finish a libtool library installation in a directory.
15852finish_cmds=$lt_finish_cmds
15853
15854# As "finish_cmds", except a single script fragment to be evaled but
15855# not shown.
15856finish_eval=$lt_finish_eval
15857
15858# Whether we should hardcode library paths into libraries.
15859hardcode_into_libs=$hardcode_into_libs
15860
15861# Compile-time system search path for libraries.
15862sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15863
15864# Run-time system search path for libraries.
15865sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15866
15867# Whether dlopen is supported.
15868dlopen_support=$enable_dlopen
15869
15870# Whether dlopen of programs is supported.
15871dlopen_self=$enable_dlopen_self
15872
15873# Whether dlopen of statically linked programs is supported.
15874dlopen_self_static=$enable_dlopen_self_static
15875
15876# Commands to strip libraries.
15877old_striplib=$lt_old_striplib
15878striplib=$lt_striplib
15879
15880
15881# The linker used to build libraries.
15882LD=$lt_LD
15883
15884# How to create reloadable object files.
15885reload_flag=$lt_reload_flag
15886reload_cmds=$lt_reload_cmds
15887
15888# Commands used to build an old-style archive.
15889old_archive_cmds=$lt_old_archive_cmds
15890
15891# A language specific compiler.
15892CC=$lt_compiler
15893
15894# Is the compiler the GNU compiler?
15895with_gcc=$GCC
15896
15897# Compiler flag to turn off builtin functions.
15898no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15899
15900# How to pass a linker flag through the compiler.
15901wl=$lt_lt_prog_compiler_wl
15902
15903# Additional compiler flags for building library objects.
15904pic_flag=$lt_lt_prog_compiler_pic
15905
15906# Compiler flag to prevent dynamic linking.
15907link_static_flag=$lt_lt_prog_compiler_static
15908
15909# Does compiler simultaneously support -c and -o options?
15910compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15911
15912# Whether or not to add -lc for building shared libraries.
15913build_libtool_need_lc=$archive_cmds_need_lc
15914
15915# Whether or not to disallow shared libs when runtime libs are static.
15916allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15917
15918# Compiler flag to allow reflexive dlopens.
15919export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15920
15921# Compiler flag to generate shared objects directly from archives.
15922whole_archive_flag_spec=$lt_whole_archive_flag_spec
15923
15924# Whether the compiler copes with passing no objects directly.
15925compiler_needs_object=$lt_compiler_needs_object
15926
15927# Create an old-style archive from a shared archive.
15928old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15929
15930# Create a temporary old-style archive to link instead of a shared archive.
15931old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15932
15933# Commands used to build a shared archive.
15934archive_cmds=$lt_archive_cmds
15935archive_expsym_cmds=$lt_archive_expsym_cmds
15936
15937# Commands used to build a loadable module if different from building
15938# a shared archive.
15939module_cmds=$lt_module_cmds
15940module_expsym_cmds=$lt_module_expsym_cmds
15941
15942# Whether we are building with GNU ld or not.
15943with_gnu_ld=$lt_with_gnu_ld
15944
15945# Flag that allows shared libraries with undefined symbols to be built.
15946allow_undefined_flag=$lt_allow_undefined_flag
15947
15948# Flag that enforces no undefined symbols.
15949no_undefined_flag=$lt_no_undefined_flag
15950
15951# Flag to hardcode \$libdir into a binary during linking.
15952# This must work even if \$libdir does not exist
15953hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15954
15955# If ld is used when linking, flag to hardcode \$libdir into a binary
15956# during linking.  This must work even if \$libdir does not exist.
15957hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15958
15959# Whether we need a single "-rpath" flag with a separated argument.
15960hardcode_libdir_separator=$lt_hardcode_libdir_separator
15961
15962# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15963# DIR into the resulting binary.
15964hardcode_direct=$hardcode_direct
15965
15966# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15967# DIR into the resulting binary and the resulting library dependency is
15968# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15969# library is relocated.
15970hardcode_direct_absolute=$hardcode_direct_absolute
15971
15972# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15973# into the resulting binary.
15974hardcode_minus_L=$hardcode_minus_L
15975
15976# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15977# into the resulting binary.
15978hardcode_shlibpath_var=$hardcode_shlibpath_var
15979
15980# Set to "yes" if building a shared library automatically hardcodes DIR
15981# into the library and all subsequent libraries and executables linked
15982# against it.
15983hardcode_automatic=$hardcode_automatic
15984
15985# Set to yes if linker adds runtime paths of dependent libraries
15986# to runtime path list.
15987inherit_rpath=$inherit_rpath
15988
15989# Whether libtool must link a program against all its dependency libraries.
15990link_all_deplibs=$link_all_deplibs
15991
15992# Fix the shell variable \$srcfile for the compiler.
15993fix_srcfile_path=$lt_fix_srcfile_path
15994
15995# Set to "yes" if exported symbols are required.
15996always_export_symbols=$always_export_symbols
15997
15998# The commands to list exported symbols.
15999export_symbols_cmds=$lt_export_symbols_cmds
16000
16001# Symbols that should not be listed in the preloaded symbols.
16002exclude_expsyms=$lt_exclude_expsyms
16003
16004# Symbols that must always be exported.
16005include_expsyms=$lt_include_expsyms
16006
16007# Commands necessary for linking programs (against libraries) with templates.
16008prelink_cmds=$lt_prelink_cmds
16009
16010# Specify filename containing input files.
16011file_list_spec=$lt_file_list_spec
16012
16013# How to hardcode a shared library path into an executable.
16014hardcode_action=$hardcode_action
16015
16016# The directories searched by this compiler when creating a shared library.
16017compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16018
16019# Dependencies to place before and after the objects being linked to
16020# create a shared library.
16021predep_objects=$lt_predep_objects
16022postdep_objects=$lt_postdep_objects
16023predeps=$lt_predeps
16024postdeps=$lt_postdeps
16025
16026# The library search path used internally by the compiler when linking
16027# a shared library.
16028compiler_lib_search_path=$lt_compiler_lib_search_path
16029
16030# ### END LIBTOOL CONFIG
16031
16032_LT_EOF
16033
16034  case $host_os in
16035  aix3*)
16036    cat <<\_LT_EOF >> "$cfgfile"
16037# AIX sometimes has problems with the GCC collect2 program.  For some
16038# reason, if we set the COLLECT_NAMES environment variable, the problems
16039# vanish in a puff of smoke.
16040if test "X${COLLECT_NAMES+set}" != Xset; then
16041  COLLECT_NAMES=
16042  export COLLECT_NAMES
16043fi
16044_LT_EOF
16045    ;;
16046  esac
16047
16048
16049ltmain="$ac_aux_dir/ltmain.sh"
16050
16051
16052  # We use sed instead of cat because bash on DJGPP gets confused if
16053  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16054  # text mode, it properly converts lines to CR/LF.  This bash problem
16055  # is reportedly fixed, but why not run on old versions too?
16056  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16057    || (rm -f "$cfgfile"; exit 1)
16058
16059  case $xsi_shell in
16060  yes)
16061    cat << \_LT_EOF >> "$cfgfile"
16062
16063# func_dirname file append nondir_replacement
16064# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16065# otherwise set result to NONDIR_REPLACEMENT.
16066func_dirname ()
16067{
16068  case ${1} in
16069    */*) func_dirname_result="${1%/*}${2}" ;;
16070    *  ) func_dirname_result="${3}" ;;
16071  esac
16072}
16073
16074# func_basename file
16075func_basename ()
16076{
16077  func_basename_result="${1##*/}"
16078}
16079
16080# func_dirname_and_basename file append nondir_replacement
16081# perform func_basename and func_dirname in a single function
16082# call:
16083#   dirname:  Compute the dirname of FILE.  If nonempty,
16084#             add APPEND to the result, otherwise set result
16085#             to NONDIR_REPLACEMENT.
16086#             value returned in "$func_dirname_result"
16087#   basename: Compute filename of FILE.
16088#             value retuned in "$func_basename_result"
16089# Implementation must be kept synchronized with func_dirname
16090# and func_basename. For efficiency, we do not delegate to
16091# those functions but instead duplicate the functionality here.
16092func_dirname_and_basename ()
16093{
16094  case ${1} in
16095    */*) func_dirname_result="${1%/*}${2}" ;;
16096    *  ) func_dirname_result="${3}" ;;
16097  esac
16098  func_basename_result="${1##*/}"
16099}
16100
16101# func_stripname prefix suffix name
16102# strip PREFIX and SUFFIX off of NAME.
16103# PREFIX and SUFFIX must not contain globbing or regex special
16104# characters, hashes, percent signs, but SUFFIX may contain a leading
16105# dot (in which case that matches only a dot).
16106func_stripname ()
16107{
16108  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16109  # positional parameters, so assign one to ordinary parameter first.
16110  func_stripname_result=${3}
16111  func_stripname_result=${func_stripname_result#"${1}"}
16112  func_stripname_result=${func_stripname_result%"${2}"}
16113}
16114
16115# func_opt_split
16116func_opt_split ()
16117{
16118  func_opt_split_opt=${1%%=*}
16119  func_opt_split_arg=${1#*=}
16120}
16121
16122# func_lo2o object
16123func_lo2o ()
16124{
16125  case ${1} in
16126    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16127    *)    func_lo2o_result=${1} ;;
16128  esac
16129}
16130
16131# func_xform libobj-or-source
16132func_xform ()
16133{
16134  func_xform_result=${1%.*}.lo
16135}
16136
16137# func_arith arithmetic-term...
16138func_arith ()
16139{
16140  func_arith_result=$(( $* ))
16141}
16142
16143# func_len string
16144# STRING may not start with a hyphen.
16145func_len ()
16146{
16147  func_len_result=${#1}
16148}
16149
16150_LT_EOF
16151    ;;
16152  *) # Bourne compatible functions.
16153    cat << \_LT_EOF >> "$cfgfile"
16154
16155# func_dirname file append nondir_replacement
16156# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16157# otherwise set result to NONDIR_REPLACEMENT.
16158func_dirname ()
16159{
16160  # Extract subdirectory from the argument.
16161  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16162  if test "X$func_dirname_result" = "X${1}"; then
16163    func_dirname_result="${3}"
16164  else
16165    func_dirname_result="$func_dirname_result${2}"
16166  fi
16167}
16168
16169# func_basename file
16170func_basename ()
16171{
16172  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16173}
16174
16175
16176# func_stripname prefix suffix name
16177# strip PREFIX and SUFFIX off of NAME.
16178# PREFIX and SUFFIX must not contain globbing or regex special
16179# characters, hashes, percent signs, but SUFFIX may contain a leading
16180# dot (in which case that matches only a dot).
16181# func_strip_suffix prefix name
16182func_stripname ()
16183{
16184  case ${2} in
16185    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16186    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16187  esac
16188}
16189
16190# sed scripts:
16191my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16192my_sed_long_arg='1s/^-[^=]*=//'
16193
16194# func_opt_split
16195func_opt_split ()
16196{
16197  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16198  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16199}
16200
16201# func_lo2o object
16202func_lo2o ()
16203{
16204  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16205}
16206
16207# func_xform libobj-or-source
16208func_xform ()
16209{
16210  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16211}
16212
16213# func_arith arithmetic-term...
16214func_arith ()
16215{
16216  func_arith_result=`expr "$@"`
16217}
16218
16219# func_len string
16220# STRING may not start with a hyphen.
16221func_len ()
16222{
16223  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16224}
16225
16226_LT_EOF
16227esac
16228
16229case $lt_shell_append in
16230  yes)
16231    cat << \_LT_EOF >> "$cfgfile"
16232
16233# func_append var value
16234# Append VALUE to the end of shell variable VAR.
16235func_append ()
16236{
16237  eval "$1+=\$2"
16238}
16239_LT_EOF
16240    ;;
16241  *)
16242    cat << \_LT_EOF >> "$cfgfile"
16243
16244# func_append var value
16245# Append VALUE to the end of shell variable VAR.
16246func_append ()
16247{
16248  eval "$1=\$$1\$2"
16249}
16250
16251_LT_EOF
16252    ;;
16253  esac
16254
16255
16256  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16257    || (rm -f "$cfgfile"; exit 1)
16258
16259  mv -f "$cfgfile" "$ofile" ||
16260    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16261  chmod +x "$ofile"
16262
16263
16264    cat <<_LT_EOF >> "$ofile"
16265
16266# ### BEGIN LIBTOOL TAG CONFIG: CXX
16267
16268# The linker used to build libraries.
16269LD=$lt_LD_CXX
16270
16271# How to create reloadable object files.
16272reload_flag=$lt_reload_flag_CXX
16273reload_cmds=$lt_reload_cmds_CXX
16274
16275# Commands used to build an old-style archive.
16276old_archive_cmds=$lt_old_archive_cmds_CXX
16277
16278# A language specific compiler.
16279CC=$lt_compiler_CXX
16280
16281# Is the compiler the GNU compiler?
16282with_gcc=$GCC_CXX
16283
16284# Compiler flag to turn off builtin functions.
16285no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16286
16287# How to pass a linker flag through the compiler.
16288wl=$lt_lt_prog_compiler_wl_CXX
16289
16290# Additional compiler flags for building library objects.
16291pic_flag=$lt_lt_prog_compiler_pic_CXX
16292
16293# Compiler flag to prevent dynamic linking.
16294link_static_flag=$lt_lt_prog_compiler_static_CXX
16295
16296# Does compiler simultaneously support -c and -o options?
16297compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16298
16299# Whether or not to add -lc for building shared libraries.
16300build_libtool_need_lc=$archive_cmds_need_lc_CXX
16301
16302# Whether or not to disallow shared libs when runtime libs are static.
16303allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16304
16305# Compiler flag to allow reflexive dlopens.
16306export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16307
16308# Compiler flag to generate shared objects directly from archives.
16309whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16310
16311# Whether the compiler copes with passing no objects directly.
16312compiler_needs_object=$lt_compiler_needs_object_CXX
16313
16314# Create an old-style archive from a shared archive.
16315old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16316
16317# Create a temporary old-style archive to link instead of a shared archive.
16318old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16319
16320# Commands used to build a shared archive.
16321archive_cmds=$lt_archive_cmds_CXX
16322archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16323
16324# Commands used to build a loadable module if different from building
16325# a shared archive.
16326module_cmds=$lt_module_cmds_CXX
16327module_expsym_cmds=$lt_module_expsym_cmds_CXX
16328
16329# Whether we are building with GNU ld or not.
16330with_gnu_ld=$lt_with_gnu_ld_CXX
16331
16332# Flag that allows shared libraries with undefined symbols to be built.
16333allow_undefined_flag=$lt_allow_undefined_flag_CXX
16334
16335# Flag that enforces no undefined symbols.
16336no_undefined_flag=$lt_no_undefined_flag_CXX
16337
16338# Flag to hardcode \$libdir into a binary during linking.
16339# This must work even if \$libdir does not exist
16340hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16341
16342# If ld is used when linking, flag to hardcode \$libdir into a binary
16343# during linking.  This must work even if \$libdir does not exist.
16344hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16345
16346# Whether we need a single "-rpath" flag with a separated argument.
16347hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16348
16349# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16350# DIR into the resulting binary.
16351hardcode_direct=$hardcode_direct_CXX
16352
16353# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16354# DIR into the resulting binary and the resulting library dependency is
16355# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16356# library is relocated.
16357hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16358
16359# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16360# into the resulting binary.
16361hardcode_minus_L=$hardcode_minus_L_CXX
16362
16363# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16364# into the resulting binary.
16365hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16366
16367# Set to "yes" if building a shared library automatically hardcodes DIR
16368# into the library and all subsequent libraries and executables linked
16369# against it.
16370hardcode_automatic=$hardcode_automatic_CXX
16371
16372# Set to yes if linker adds runtime paths of dependent libraries
16373# to runtime path list.
16374inherit_rpath=$inherit_rpath_CXX
16375
16376# Whether libtool must link a program against all its dependency libraries.
16377link_all_deplibs=$link_all_deplibs_CXX
16378
16379# Fix the shell variable \$srcfile for the compiler.
16380fix_srcfile_path=$lt_fix_srcfile_path_CXX
16381
16382# Set to "yes" if exported symbols are required.
16383always_export_symbols=$always_export_symbols_CXX
16384
16385# The commands to list exported symbols.
16386export_symbols_cmds=$lt_export_symbols_cmds_CXX
16387
16388# Symbols that should not be listed in the preloaded symbols.
16389exclude_expsyms=$lt_exclude_expsyms_CXX
16390
16391# Symbols that must always be exported.
16392include_expsyms=$lt_include_expsyms_CXX
16393
16394# Commands necessary for linking programs (against libraries) with templates.
16395prelink_cmds=$lt_prelink_cmds_CXX
16396
16397# Specify filename containing input files.
16398file_list_spec=$lt_file_list_spec_CXX
16399
16400# How to hardcode a shared library path into an executable.
16401hardcode_action=$hardcode_action_CXX
16402
16403# The directories searched by this compiler when creating a shared library.
16404compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16405
16406# Dependencies to place before and after the objects being linked to
16407# create a shared library.
16408predep_objects=$lt_predep_objects_CXX
16409postdep_objects=$lt_postdep_objects_CXX
16410predeps=$lt_predeps_CXX
16411postdeps=$lt_postdeps_CXX
16412
16413# The library search path used internally by the compiler when linking
16414# a shared library.
16415compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16416
16417# ### END LIBTOOL TAG CONFIG: CXX
16418_LT_EOF
16419
16420
16421as_fn_exit 0
16422_LTEOF
16423chmod +x "$CONFIG_LT"
16424
16425# configure is writing to config.log, but config.lt does its own redirection,
16426# appending to config.log, which fails on DOS, as config.log is still kept
16427# open by configure.  Here we exec the FD to /dev/null, effectively closing
16428# config.log, so it can be properly (re)opened and appended to by config.lt.
16429lt_cl_success=:
16430test "$silent" = yes &&
16431  lt_config_lt_args="$lt_config_lt_args --quiet"
16432exec 5>/dev/null
16433$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
16434exec 5>>config.log
16435$lt_cl_success || as_fn_exit 1
16436
16437
16438# We require a C++11 compiler.  Check if one is available, and if
16439# necessary, set CXX_DIALECT to some -std=xxx switch.
16440  ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
16441  ac_ext=cpp
16442ac_cpp='$CXXCPP $CPPFLAGS'
16443ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16444ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16445ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16446  CXX_DIALECT=""
16447  ac_success=no
16448  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
16449$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
16450if ${ax_cv_cxx_compile_cxx11+:} false; then :
16451  $as_echo_n "(cached) " >&6
16452else
16453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16454/* end confdefs.h.  */
16455
16456
16457// If the compiler admits that it is not ready for C++11, why torture it?
16458// Hopefully, this will speed up the test.
16459
16460#ifndef __cplusplus
16461
16462#error "This is not a C++ compiler"
16463
16464#elif __cplusplus < 201103L
16465
16466#error "This is not a C++11 compiler"
16467
16468#else
16469
16470namespace cxx11
16471{
16472
16473  namespace test_static_assert
16474  {
16475
16476    template <typename T>
16477    struct check
16478    {
16479      static_assert(sizeof(int) <= sizeof(T), "not big enough");
16480    };
16481
16482  }
16483
16484  namespace test_final_override
16485  {
16486
16487    struct Base
16488    {
16489      virtual void f() {}
16490    };
16491
16492    struct Derived : public Base
16493    {
16494      virtual void f() override {}
16495    };
16496
16497  }
16498
16499  namespace test_double_right_angle_brackets
16500  {
16501
16502    template < typename T >
16503    struct check {};
16504
16505    typedef check<void> single_type;
16506    typedef check<check<void>> double_type;
16507    typedef check<check<check<void>>> triple_type;
16508    typedef check<check<check<check<void>>>> quadruple_type;
16509
16510  }
16511
16512  namespace test_decltype
16513  {
16514
16515    int
16516    f()
16517    {
16518      int a = 1;
16519      decltype(a) b = 2;
16520      return a + b;
16521    }
16522
16523  }
16524
16525  namespace test_type_deduction
16526  {
16527
16528    template < typename T1, typename T2 >
16529    struct is_same
16530    {
16531      static const bool value = false;
16532    };
16533
16534    template < typename T >
16535    struct is_same<T, T>
16536    {
16537      static const bool value = true;
16538    };
16539
16540    template < typename T1, typename T2 >
16541    auto
16542    add(T1 a1, T2 a2) -> decltype(a1 + a2)
16543    {
16544      return a1 + a2;
16545    }
16546
16547    int
16548    test(const int c, volatile int v)
16549    {
16550      static_assert(is_same<int, decltype(0)>::value == true, "");
16551      static_assert(is_same<int, decltype(c)>::value == false, "");
16552      static_assert(is_same<int, decltype(v)>::value == false, "");
16553      auto ac = c;
16554      auto av = v;
16555      auto sumi = ac + av + 'x';
16556      auto sumf = ac + av + 1.0;
16557      static_assert(is_same<int, decltype(ac)>::value == true, "");
16558      static_assert(is_same<int, decltype(av)>::value == true, "");
16559      static_assert(is_same<int, decltype(sumi)>::value == true, "");
16560      static_assert(is_same<int, decltype(sumf)>::value == false, "");
16561      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
16562      return (sumf > 0.0) ? sumi : add(c, v);
16563    }
16564
16565  }
16566
16567  namespace test_noexcept
16568  {
16569
16570    int f() { return 0; }
16571    int g() noexcept { return 0; }
16572
16573    static_assert(noexcept(f()) == false, "");
16574    static_assert(noexcept(g()) == true, "");
16575
16576  }
16577
16578  namespace test_constexpr
16579  {
16580
16581    template < typename CharT >
16582    unsigned long constexpr
16583    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
16584    {
16585      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
16586    }
16587
16588    template < typename CharT >
16589    unsigned long constexpr
16590    strlen_c(const CharT *const s) noexcept
16591    {
16592      return strlen_c_r(s, 0UL);
16593    }
16594
16595    static_assert(strlen_c("") == 0UL, "");
16596    static_assert(strlen_c("1") == 1UL, "");
16597    static_assert(strlen_c("example") == 7UL, "");
16598    static_assert(strlen_c("another\0example") == 7UL, "");
16599
16600  }
16601
16602  namespace test_rvalue_references
16603  {
16604
16605    template < int N >
16606    struct answer
16607    {
16608      static constexpr int value = N;
16609    };
16610
16611    answer<1> f(int&)       { return answer<1>(); }
16612    answer<2> f(const int&) { return answer<2>(); }
16613    answer<3> f(int&&)      { return answer<3>(); }
16614
16615    void
16616    test()
16617    {
16618      int i = 0;
16619      const int c = 0;
16620      static_assert(decltype(f(i))::value == 1, "");
16621      static_assert(decltype(f(c))::value == 2, "");
16622      static_assert(decltype(f(0))::value == 3, "");
16623    }
16624
16625  }
16626
16627  namespace test_uniform_initialization
16628  {
16629
16630    struct test
16631    {
16632      static const int zero {};
16633      static const int one {1};
16634    };
16635
16636    static_assert(test::zero == 0, "");
16637    static_assert(test::one == 1, "");
16638
16639  }
16640
16641  namespace test_lambdas
16642  {
16643
16644    void
16645    test1()
16646    {
16647      auto lambda1 = [](){};
16648      auto lambda2 = lambda1;
16649      lambda1();
16650      lambda2();
16651    }
16652
16653    int
16654    test2()
16655    {
16656      auto a = [](int i, int j){ return i + j; }(1, 2);
16657      auto b = []() -> int { return '0'; }();
16658      auto c = [=](){ return a + b; }();
16659      auto d = [&](){ return c; }();
16660      auto e = [a, &b](int x) mutable {
16661        const auto identity = [](int y){ return y; };
16662        for (auto i = 0; i < a; ++i)
16663          a += b--;
16664        return x + identity(a + b);
16665      }(0);
16666      return a + b + c + d + e;
16667    }
16668
16669    int
16670    test3()
16671    {
16672      const auto nullary = [](){ return 0; };
16673      const auto unary = [](int x){ return x; };
16674      using nullary_t = decltype(nullary);
16675      using unary_t = decltype(unary);
16676      const auto higher1st = [](nullary_t f){ return f(); };
16677      const auto higher2nd = [unary](nullary_t f1){
16678        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
16679      };
16680      return higher1st(nullary) + higher2nd(nullary)(unary);
16681    }
16682
16683  }
16684
16685  namespace test_variadic_templates
16686  {
16687
16688    template <int...>
16689    struct sum;
16690
16691    template <int N0, int... N1toN>
16692    struct sum<N0, N1toN...>
16693    {
16694      static constexpr auto value = N0 + sum<N1toN...>::value;
16695    };
16696
16697    template <>
16698    struct sum<>
16699    {
16700      static constexpr auto value = 0;
16701    };
16702
16703    static_assert(sum<>::value == 0, "");
16704    static_assert(sum<1>::value == 1, "");
16705    static_assert(sum<23>::value == 23, "");
16706    static_assert(sum<1, 2>::value == 3, "");
16707    static_assert(sum<5, 5, 11>::value == 21, "");
16708    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
16709
16710  }
16711
16712  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
16713  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
16714  // because of this.
16715  namespace test_template_alias_sfinae
16716  {
16717
16718    struct foo {};
16719
16720    template<typename T>
16721    using member = typename T::member_type;
16722
16723    template<typename T>
16724    void func(...) {}
16725
16726    template<typename T>
16727    void func(member<T>*) {}
16728
16729    void test();
16730
16731    void test() { func<foo>(0); }
16732
16733  }
16734
16735}  // namespace cxx11
16736
16737#endif  // __cplusplus >= 201103L
16738
16739
16740
16741_ACEOF
16742if ac_fn_cxx_try_compile "$LINENO"; then :
16743  ax_cv_cxx_compile_cxx11=yes
16744else
16745  ax_cv_cxx_compile_cxx11=no
16746fi
16747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16748fi
16749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
16750$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
16751  if test x$ax_cv_cxx_compile_cxx11 = xyes; then
16752    ac_success=yes
16753  fi
16754
16755    if test x$ac_success = xno; then
16756    for alternative in ${ax_cxx_compile_alternatives}; do
16757      switch="-std=gnu++${alternative}"
16758      cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16759      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16760$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16761if eval \${$cachevar+:} false; then :
16762  $as_echo_n "(cached) " >&6
16763else
16764  ac_save_CXX="$CXX"
16765         CXX="$CXX $switch"
16766         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16767/* end confdefs.h.  */
16768
16769
16770// If the compiler admits that it is not ready for C++11, why torture it?
16771// Hopefully, this will speed up the test.
16772
16773#ifndef __cplusplus
16774
16775#error "This is not a C++ compiler"
16776
16777#elif __cplusplus < 201103L
16778
16779#error "This is not a C++11 compiler"
16780
16781#else
16782
16783namespace cxx11
16784{
16785
16786  namespace test_static_assert
16787  {
16788
16789    template <typename T>
16790    struct check
16791    {
16792      static_assert(sizeof(int) <= sizeof(T), "not big enough");
16793    };
16794
16795  }
16796
16797  namespace test_final_override
16798  {
16799
16800    struct Base
16801    {
16802      virtual void f() {}
16803    };
16804
16805    struct Derived : public Base
16806    {
16807      virtual void f() override {}
16808    };
16809
16810  }
16811
16812  namespace test_double_right_angle_brackets
16813  {
16814
16815    template < typename T >
16816    struct check {};
16817
16818    typedef check<void> single_type;
16819    typedef check<check<void>> double_type;
16820    typedef check<check<check<void>>> triple_type;
16821    typedef check<check<check<check<void>>>> quadruple_type;
16822
16823  }
16824
16825  namespace test_decltype
16826  {
16827
16828    int
16829    f()
16830    {
16831      int a = 1;
16832      decltype(a) b = 2;
16833      return a + b;
16834    }
16835
16836  }
16837
16838  namespace test_type_deduction
16839  {
16840
16841    template < typename T1, typename T2 >
16842    struct is_same
16843    {
16844      static const bool value = false;
16845    };
16846
16847    template < typename T >
16848    struct is_same<T, T>
16849    {
16850      static const bool value = true;
16851    };
16852
16853    template < typename T1, typename T2 >
16854    auto
16855    add(T1 a1, T2 a2) -> decltype(a1 + a2)
16856    {
16857      return a1 + a2;
16858    }
16859
16860    int
16861    test(const int c, volatile int v)
16862    {
16863      static_assert(is_same<int, decltype(0)>::value == true, "");
16864      static_assert(is_same<int, decltype(c)>::value == false, "");
16865      static_assert(is_same<int, decltype(v)>::value == false, "");
16866      auto ac = c;
16867      auto av = v;
16868      auto sumi = ac + av + 'x';
16869      auto sumf = ac + av + 1.0;
16870      static_assert(is_same<int, decltype(ac)>::value == true, "");
16871      static_assert(is_same<int, decltype(av)>::value == true, "");
16872      static_assert(is_same<int, decltype(sumi)>::value == true, "");
16873      static_assert(is_same<int, decltype(sumf)>::value == false, "");
16874      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
16875      return (sumf > 0.0) ? sumi : add(c, v);
16876    }
16877
16878  }
16879
16880  namespace test_noexcept
16881  {
16882
16883    int f() { return 0; }
16884    int g() noexcept { return 0; }
16885
16886    static_assert(noexcept(f()) == false, "");
16887    static_assert(noexcept(g()) == true, "");
16888
16889  }
16890
16891  namespace test_constexpr
16892  {
16893
16894    template < typename CharT >
16895    unsigned long constexpr
16896    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
16897    {
16898      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
16899    }
16900
16901    template < typename CharT >
16902    unsigned long constexpr
16903    strlen_c(const CharT *const s) noexcept
16904    {
16905      return strlen_c_r(s, 0UL);
16906    }
16907
16908    static_assert(strlen_c("") == 0UL, "");
16909    static_assert(strlen_c("1") == 1UL, "");
16910    static_assert(strlen_c("example") == 7UL, "");
16911    static_assert(strlen_c("another\0example") == 7UL, "");
16912
16913  }
16914
16915  namespace test_rvalue_references
16916  {
16917
16918    template < int N >
16919    struct answer
16920    {
16921      static constexpr int value = N;
16922    };
16923
16924    answer<1> f(int&)       { return answer<1>(); }
16925    answer<2> f(const int&) { return answer<2>(); }
16926    answer<3> f(int&&)      { return answer<3>(); }
16927
16928    void
16929    test()
16930    {
16931      int i = 0;
16932      const int c = 0;
16933      static_assert(decltype(f(i))::value == 1, "");
16934      static_assert(decltype(f(c))::value == 2, "");
16935      static_assert(decltype(f(0))::value == 3, "");
16936    }
16937
16938  }
16939
16940  namespace test_uniform_initialization
16941  {
16942
16943    struct test
16944    {
16945      static const int zero {};
16946      static const int one {1};
16947    };
16948
16949    static_assert(test::zero == 0, "");
16950    static_assert(test::one == 1, "");
16951
16952  }
16953
16954  namespace test_lambdas
16955  {
16956
16957    void
16958    test1()
16959    {
16960      auto lambda1 = [](){};
16961      auto lambda2 = lambda1;
16962      lambda1();
16963      lambda2();
16964    }
16965
16966    int
16967    test2()
16968    {
16969      auto a = [](int i, int j){ return i + j; }(1, 2);
16970      auto b = []() -> int { return '0'; }();
16971      auto c = [=](){ return a + b; }();
16972      auto d = [&](){ return c; }();
16973      auto e = [a, &b](int x) mutable {
16974        const auto identity = [](int y){ return y; };
16975        for (auto i = 0; i < a; ++i)
16976          a += b--;
16977        return x + identity(a + b);
16978      }(0);
16979      return a + b + c + d + e;
16980    }
16981
16982    int
16983    test3()
16984    {
16985      const auto nullary = [](){ return 0; };
16986      const auto unary = [](int x){ return x; };
16987      using nullary_t = decltype(nullary);
16988      using unary_t = decltype(unary);
16989      const auto higher1st = [](nullary_t f){ return f(); };
16990      const auto higher2nd = [unary](nullary_t f1){
16991        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
16992      };
16993      return higher1st(nullary) + higher2nd(nullary)(unary);
16994    }
16995
16996  }
16997
16998  namespace test_variadic_templates
16999  {
17000
17001    template <int...>
17002    struct sum;
17003
17004    template <int N0, int... N1toN>
17005    struct sum<N0, N1toN...>
17006    {
17007      static constexpr auto value = N0 + sum<N1toN...>::value;
17008    };
17009
17010    template <>
17011    struct sum<>
17012    {
17013      static constexpr auto value = 0;
17014    };
17015
17016    static_assert(sum<>::value == 0, "");
17017    static_assert(sum<1>::value == 1, "");
17018    static_assert(sum<23>::value == 23, "");
17019    static_assert(sum<1, 2>::value == 3, "");
17020    static_assert(sum<5, 5, 11>::value == 21, "");
17021    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17022
17023  }
17024
17025  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17026  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17027  // because of this.
17028  namespace test_template_alias_sfinae
17029  {
17030
17031    struct foo {};
17032
17033    template<typename T>
17034    using member = typename T::member_type;
17035
17036    template<typename T>
17037    void func(...) {}
17038
17039    template<typename T>
17040    void func(member<T>*) {}
17041
17042    void test();
17043
17044    void test() { func<foo>(0); }
17045
17046  }
17047
17048}  // namespace cxx11
17049
17050#endif  // __cplusplus >= 201103L
17051
17052
17053
17054_ACEOF
17055if ac_fn_cxx_try_compile "$LINENO"; then :
17056  eval $cachevar=yes
17057else
17058  eval $cachevar=no
17059fi
17060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17061         CXX="$ac_save_CXX"
17062fi
17063eval ac_res=\$$cachevar
17064	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17065$as_echo "$ac_res" >&6; }
17066      if eval test x\$$cachevar = xyes; then
17067        CXX_DIALECT="$switch"
17068        CXX="$CXX $switch"
17069        if test -n "$CXXCPP" ; then
17070          CXXCPP="$CXXCPP $switch"
17071        fi
17072        ac_success=yes
17073        break
17074      fi
17075    done
17076  fi
17077
17078    if test x$ac_success = xno; then
17079                for alternative in ${ax_cxx_compile_alternatives}; do
17080      for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
17081        cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
17082        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
17083$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
17084if eval \${$cachevar+:} false; then :
17085  $as_echo_n "(cached) " >&6
17086else
17087  ac_save_CXX="$CXX"
17088           CXX="$CXX $switch"
17089           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17090/* end confdefs.h.  */
17091
17092
17093// If the compiler admits that it is not ready for C++11, why torture it?
17094// Hopefully, this will speed up the test.
17095
17096#ifndef __cplusplus
17097
17098#error "This is not a C++ compiler"
17099
17100#elif __cplusplus < 201103L
17101
17102#error "This is not a C++11 compiler"
17103
17104#else
17105
17106namespace cxx11
17107{
17108
17109  namespace test_static_assert
17110  {
17111
17112    template <typename T>
17113    struct check
17114    {
17115      static_assert(sizeof(int) <= sizeof(T), "not big enough");
17116    };
17117
17118  }
17119
17120  namespace test_final_override
17121  {
17122
17123    struct Base
17124    {
17125      virtual void f() {}
17126    };
17127
17128    struct Derived : public Base
17129    {
17130      virtual void f() override {}
17131    };
17132
17133  }
17134
17135  namespace test_double_right_angle_brackets
17136  {
17137
17138    template < typename T >
17139    struct check {};
17140
17141    typedef check<void> single_type;
17142    typedef check<check<void>> double_type;
17143    typedef check<check<check<void>>> triple_type;
17144    typedef check<check<check<check<void>>>> quadruple_type;
17145
17146  }
17147
17148  namespace test_decltype
17149  {
17150
17151    int
17152    f()
17153    {
17154      int a = 1;
17155      decltype(a) b = 2;
17156      return a + b;
17157    }
17158
17159  }
17160
17161  namespace test_type_deduction
17162  {
17163
17164    template < typename T1, typename T2 >
17165    struct is_same
17166    {
17167      static const bool value = false;
17168    };
17169
17170    template < typename T >
17171    struct is_same<T, T>
17172    {
17173      static const bool value = true;
17174    };
17175
17176    template < typename T1, typename T2 >
17177    auto
17178    add(T1 a1, T2 a2) -> decltype(a1 + a2)
17179    {
17180      return a1 + a2;
17181    }
17182
17183    int
17184    test(const int c, volatile int v)
17185    {
17186      static_assert(is_same<int, decltype(0)>::value == true, "");
17187      static_assert(is_same<int, decltype(c)>::value == false, "");
17188      static_assert(is_same<int, decltype(v)>::value == false, "");
17189      auto ac = c;
17190      auto av = v;
17191      auto sumi = ac + av + 'x';
17192      auto sumf = ac + av + 1.0;
17193      static_assert(is_same<int, decltype(ac)>::value == true, "");
17194      static_assert(is_same<int, decltype(av)>::value == true, "");
17195      static_assert(is_same<int, decltype(sumi)>::value == true, "");
17196      static_assert(is_same<int, decltype(sumf)>::value == false, "");
17197      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17198      return (sumf > 0.0) ? sumi : add(c, v);
17199    }
17200
17201  }
17202
17203  namespace test_noexcept
17204  {
17205
17206    int f() { return 0; }
17207    int g() noexcept { return 0; }
17208
17209    static_assert(noexcept(f()) == false, "");
17210    static_assert(noexcept(g()) == true, "");
17211
17212  }
17213
17214  namespace test_constexpr
17215  {
17216
17217    template < typename CharT >
17218    unsigned long constexpr
17219    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17220    {
17221      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17222    }
17223
17224    template < typename CharT >
17225    unsigned long constexpr
17226    strlen_c(const CharT *const s) noexcept
17227    {
17228      return strlen_c_r(s, 0UL);
17229    }
17230
17231    static_assert(strlen_c("") == 0UL, "");
17232    static_assert(strlen_c("1") == 1UL, "");
17233    static_assert(strlen_c("example") == 7UL, "");
17234    static_assert(strlen_c("another\0example") == 7UL, "");
17235
17236  }
17237
17238  namespace test_rvalue_references
17239  {
17240
17241    template < int N >
17242    struct answer
17243    {
17244      static constexpr int value = N;
17245    };
17246
17247    answer<1> f(int&)       { return answer<1>(); }
17248    answer<2> f(const int&) { return answer<2>(); }
17249    answer<3> f(int&&)      { return answer<3>(); }
17250
17251    void
17252    test()
17253    {
17254      int i = 0;
17255      const int c = 0;
17256      static_assert(decltype(f(i))::value == 1, "");
17257      static_assert(decltype(f(c))::value == 2, "");
17258      static_assert(decltype(f(0))::value == 3, "");
17259    }
17260
17261  }
17262
17263  namespace test_uniform_initialization
17264  {
17265
17266    struct test
17267    {
17268      static const int zero {};
17269      static const int one {1};
17270    };
17271
17272    static_assert(test::zero == 0, "");
17273    static_assert(test::one == 1, "");
17274
17275  }
17276
17277  namespace test_lambdas
17278  {
17279
17280    void
17281    test1()
17282    {
17283      auto lambda1 = [](){};
17284      auto lambda2 = lambda1;
17285      lambda1();
17286      lambda2();
17287    }
17288
17289    int
17290    test2()
17291    {
17292      auto a = [](int i, int j){ return i + j; }(1, 2);
17293      auto b = []() -> int { return '0'; }();
17294      auto c = [=](){ return a + b; }();
17295      auto d = [&](){ return c; }();
17296      auto e = [a, &b](int x) mutable {
17297        const auto identity = [](int y){ return y; };
17298        for (auto i = 0; i < a; ++i)
17299          a += b--;
17300        return x + identity(a + b);
17301      }(0);
17302      return a + b + c + d + e;
17303    }
17304
17305    int
17306    test3()
17307    {
17308      const auto nullary = [](){ return 0; };
17309      const auto unary = [](int x){ return x; };
17310      using nullary_t = decltype(nullary);
17311      using unary_t = decltype(unary);
17312      const auto higher1st = [](nullary_t f){ return f(); };
17313      const auto higher2nd = [unary](nullary_t f1){
17314        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17315      };
17316      return higher1st(nullary) + higher2nd(nullary)(unary);
17317    }
17318
17319  }
17320
17321  namespace test_variadic_templates
17322  {
17323
17324    template <int...>
17325    struct sum;
17326
17327    template <int N0, int... N1toN>
17328    struct sum<N0, N1toN...>
17329    {
17330      static constexpr auto value = N0 + sum<N1toN...>::value;
17331    };
17332
17333    template <>
17334    struct sum<>
17335    {
17336      static constexpr auto value = 0;
17337    };
17338
17339    static_assert(sum<>::value == 0, "");
17340    static_assert(sum<1>::value == 1, "");
17341    static_assert(sum<23>::value == 23, "");
17342    static_assert(sum<1, 2>::value == 3, "");
17343    static_assert(sum<5, 5, 11>::value == 21, "");
17344    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17345
17346  }
17347
17348  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17349  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17350  // because of this.
17351  namespace test_template_alias_sfinae
17352  {
17353
17354    struct foo {};
17355
17356    template<typename T>
17357    using member = typename T::member_type;
17358
17359    template<typename T>
17360    void func(...) {}
17361
17362    template<typename T>
17363    void func(member<T>*) {}
17364
17365    void test();
17366
17367    void test() { func<foo>(0); }
17368
17369  }
17370
17371}  // namespace cxx11
17372
17373#endif  // __cplusplus >= 201103L
17374
17375
17376
17377_ACEOF
17378if ac_fn_cxx_try_compile "$LINENO"; then :
17379  eval $cachevar=yes
17380else
17381  eval $cachevar=no
17382fi
17383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17384           CXX="$ac_save_CXX"
17385fi
17386eval ac_res=\$$cachevar
17387	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17388$as_echo "$ac_res" >&6; }
17389        if eval test x\$$cachevar = xyes; then
17390          CXX_DIALECT="$switch"
17391          CXX="$CXX $switch"
17392          if test -n "$CXXCPP" ; then
17393            CXXCPP="$CXXCPP $switch"
17394          fi
17395          ac_success=yes
17396          break
17397        fi
17398      done
17399      if test x$ac_success = xyes; then
17400        break
17401      fi
17402    done
17403  fi
17404  ac_ext=c
17405ac_cpp='$CPP $CPPFLAGS'
17406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17408ac_compiler_gnu=$ac_cv_c_compiler_gnu
17409
17410  if test x$ax_cxx_compile_cxx11_required = xtrue; then
17411    if test x$ac_success = xno; then
17412      as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
17413    fi
17414  fi
17415  if test x$ac_success = xno; then
17416    HAVE_CXX11=0
17417    { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
17418$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
17419  else
17420    HAVE_CXX11=1
17421
17422$as_echo "#define HAVE_CXX11 1" >>confdefs.h
17423
17424  fi
17425
17426
17427
17428
17429# Dependency checking.
17430rm -rf .tst 2>/dev/null
17431mkdir .tst 2>/dev/null
17432if test -d .tst; then
17433  am__leading_dot=.
17434else
17435  am__leading_dot=_
17436fi
17437rmdir .tst 2>/dev/null
17438
17439DEPDIR="${am__leading_dot}deps"
17440
17441ac_config_commands="$ac_config_commands depdir"
17442
17443
17444depcc="$CC"   am_compiler_list=
17445
17446am_depcomp=$ac_aux_dir/depcomp
17447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17448$as_echo_n "checking dependency style of $depcc... " >&6; }
17449if ${am_cv_CC_dependencies_compiler_type+:} false; then :
17450  $as_echo_n "(cached) " >&6
17451else
17452  if test -f "$am_depcomp"; then
17453  # We make a subdir and do the tests there.  Otherwise we can end up
17454  # making bogus files that we don't know about and never remove.  For
17455  # instance it was reported that on HP-UX the gcc test will end up
17456  # making a dummy file named `D' -- because `-MD' means `put the output
17457  # in D'.
17458  mkdir conftest.dir
17459  # Copy depcomp to subdir because otherwise we won't find it if we're
17460  # using a relative directory.
17461  cp "$am_depcomp" conftest.dir
17462  cd conftest.dir
17463  # We will build objects and dependencies in a subdirectory because
17464  # it helps to detect inapplicable dependency modes.  For instance
17465  # both Tru64's cc and ICC support -MD to output dependencies as a
17466  # side effect of compilation, but ICC will put the dependencies in
17467  # the current directory while Tru64 will put them in the object
17468  # directory.
17469  mkdir sub
17470
17471  am_cv_CC_dependencies_compiler_type=none
17472  if test "$am_compiler_list" = ""; then
17473     am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17474  fi
17475  for depmode in $am_compiler_list; do
17476    if test $depmode = none; then break; fi
17477
17478    $as_echo "$as_me:$LINENO: trying $depmode" >&5
17479    # Setup a source with many dependencies, because some compilers
17480    # like to wrap large dependency lists on column 80 (with \), and
17481    # we should not choose a depcomp mode which is confused by this.
17482    #
17483    # We need to recreate these files for each test, as the compiler may
17484    # overwrite some of them when testing with obscure command lines.
17485    # This happens at least with the AIX C compiler.
17486    : > sub/conftest.c
17487    for i in 1 2 3 4 5 6; do
17488      echo '#include "conftst'$i'.h"' >> sub/conftest.c
17489      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17490      # Solaris 8's {/usr,}/bin/sh.
17491      touch sub/conftst$i.h
17492    done
17493    echo "include sub/conftest.Po" > confmf
17494
17495    # We check with `-c' and `-o' for the sake of the "dashmstdout"
17496    # mode.  It turns out that the SunPro C++ compiler does not properly
17497    # handle `-M -o', and we need to detect this.
17498    depcmd="depmode=$depmode \
17499       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
17500       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17501       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
17502    echo "| $depcmd" | sed -e 's/  */ /g' >&5
17503    if env $depcmd > conftest.err 2>&1 &&
17504       grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
17505       grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
17506       ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
17507      # icc doesn't choke on unknown options, it will just issue warnings
17508      # or remarks (even with -Werror).  So we grep stderr for any message
17509      # that says an option was ignored or not supported.
17510      # When given -MP, icc 7.0 and 7.1 complain thusly:
17511      #   icc: Command line warning: ignoring option '-M'; no argument required
17512      # The diagnosis changed in icc 8.0:
17513      #   icc: Command line remark: option '-MP' not supported
17514      if (grep 'ignoring option' conftest.err ||
17515          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17516        am_cv_CC_dependencies_compiler_type=$depmode
17517	$as_echo "$as_me:$LINENO: success" >&5
17518        break
17519      fi
17520    fi
17521    $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
17522    sed -e 's/^/| /' < conftest.err >&5
17523  done
17524
17525  cd ..
17526  rm -rf conftest.dir
17527else
17528  am_cv_CC_dependencies_compiler_type=none
17529fi
17530
17531fi
17532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
17533$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
17534if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
17535then as_fn_error $? "no usable dependency style found" "$LINENO" 5
17536else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
17537
17538fi
17539
17540
17541
17542CONFIG_OBS=
17543CONFIG_DEPS=
17544CONFIG_SRCS=
17545ENABLE_CFLAGS=
17546
17547CONFIG_ALL=
17548CONFIG_CLEAN=
17549CONFIG_INSTALL=
17550CONFIG_UNINSTALL=
17551
17552# If we haven't got the data from the intl directory,
17553# assume NLS is disabled.
17554USE_NLS=no
17555LIBINTL=
17556LIBINTL_DEP=
17557INCINTL=
17558XGETTEXT=
17559GMSGFMT=
17560POSUB=
17561
17562if test -f  ../intl/config.intl; then
17563  .  ../intl/config.intl
17564fi
17565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17566$as_echo_n "checking whether NLS is requested... " >&6; }
17567if test x"$USE_NLS" != xyes; then
17568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17569$as_echo "no" >&6; }
17570else
17571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17572$as_echo "yes" >&6; }
17573
17574$as_echo "#define ENABLE_NLS 1" >>confdefs.h
17575
17576
17577  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
17578$as_echo_n "checking for catalogs to be installed... " >&6; }
17579  # Look for .po and .gmo files in the source directory.
17580  CATALOGS=
17581  XLINGUAS=
17582  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
17583    # If there aren't any .gmo files the shell will give us the
17584    # literal string "../path/to/srcdir/po/*.gmo" which has to be
17585    # weeded out.
17586    case "$cat" in *\**)
17587      continue;;
17588    esac
17589    # The quadruple backslash is collapsed to a double backslash
17590    # by the backticks, then collapsed again by the double quotes,
17591    # leaving us with one backslash in the sed expression (right
17592    # before the dot that mustn't act as a wildcard).
17593    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
17594    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
17595    # The user is allowed to set LINGUAS to a list of languages to
17596    # install catalogs for.  If it's empty that means "all of them."
17597    if test "x$LINGUAS" = x; then
17598      CATALOGS="$CATALOGS $cat"
17599      XLINGUAS="$XLINGUAS $lang"
17600    else
17601      case "$LINGUAS" in *$lang*)
17602        CATALOGS="$CATALOGS $cat"
17603        XLINGUAS="$XLINGUAS $lang"
17604        ;;
17605      esac
17606    fi
17607  done
17608  LINGUAS="$XLINGUAS"
17609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
17610$as_echo "$LINGUAS" >&6; }
17611
17612
17613    DATADIRNAME=share
17614
17615  INSTOBJEXT=.mo
17616
17617  GENCAT=gencat
17618
17619  CATOBJEXT=.gmo
17620
17621fi
17622
17623localedir='${datadir}/locale'
17624
17625
17626if test x"$USE_NLS" = xyes; then
17627   CONFIG_ALL="$CONFIG_ALL all-po"
17628   CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
17629   CONFIG_INSTALL="$CONFIG_INSTALL install-po"
17630   CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
17631fi
17632
17633PACKAGE=gdb
17634
17635cat >>confdefs.h <<_ACEOF
17636#define PACKAGE "$PACKAGE"
17637_ACEOF
17638
17639
17640
17641# We never need to detect it in this sub-configure.
17642# But preserve it for config.status --recheck.
17643
17644
17645
17646MAKEINFO_EXTRA_FLAGS=""
17647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
17648$as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
17649if ${gdb_cv_have_makeinfo_click+:} false; then :
17650  $as_echo_n "(cached) " >&6
17651else
17652  echo '@clicksequence{a @click{} b}' >conftest.texinfo
17653  if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
17654    gdb_cv_have_makeinfo_click=yes
17655  else
17656    gdb_cv_have_makeinfo_click=no
17657  fi
17658fi
17659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
17660$as_echo "$gdb_cv_have_makeinfo_click" >&6; }
17661if test x"$gdb_cv_have_makeinfo_click" = xyes; then
17662  MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
17663fi
17664
17665
17666
17667
17668# Check whether --with-separate-debug-dir was given.
17669if test "${with_separate_debug_dir+set}" = set; then :
17670  withval=$with_separate_debug_dir;
17671    DEBUGDIR=$withval
17672else
17673  DEBUGDIR=${libdir}/debug
17674fi
17675
17676
17677  test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17678  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17679  ac_define_dir=`eval echo $DEBUGDIR`
17680  ac_define_dir=`eval echo $ac_define_dir`
17681
17682cat >>confdefs.h <<_ACEOF
17683#define DEBUGDIR "$ac_define_dir"
17684_ACEOF
17685
17686
17687
17688
17689  if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
17690     if test "x$prefix" = xNONE; then
17691     	test_prefix=/usr/local
17692     else
17693	test_prefix=$prefix
17694     fi
17695  else
17696     test_prefix=$exec_prefix
17697  fi
17698  value=0
17699  case ${ac_define_dir} in
17700     "${test_prefix}"|"${test_prefix}/"*|\
17701	'${exec_prefix}'|'${exec_prefix}/'*)
17702     value=1
17703     ;;
17704  esac
17705
17706cat >>confdefs.h <<_ACEOF
17707#define DEBUGDIR_RELOCATABLE $value
17708_ACEOF
17709
17710
17711
17712
17713# We can't pass paths as command line arguments.
17714# Mingw32 tries to be clever and will convert the paths for us.
17715# For example -DBINDIR="/usr/local/bin" passed on the command line may get
17716# converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
17717# This breaks GDB's relocatable path conversions since paths passed in
17718# config.h would not get so translated, the path prefixes no longer match.
17719
17720  test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17721  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17722  ac_define_dir=`eval echo $bindir`
17723  ac_define_dir=`eval echo $ac_define_dir`
17724
17725cat >>confdefs.h <<_ACEOF
17726#define BINDIR "$ac_define_dir"
17727_ACEOF
17728
17729
17730
17731# GDB's datadir relocation
17732
17733
17734
17735# Check whether --with-gdb-datadir was given.
17736if test "${with_gdb_datadir+set}" = set; then :
17737  withval=$with_gdb_datadir;
17738    GDB_DATADIR=$withval
17739else
17740  GDB_DATADIR=${datadir}/gdb
17741fi
17742
17743
17744  test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17745  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17746  ac_define_dir=`eval echo $GDB_DATADIR`
17747  ac_define_dir=`eval echo $ac_define_dir`
17748
17749cat >>confdefs.h <<_ACEOF
17750#define GDB_DATADIR "$ac_define_dir"
17751_ACEOF
17752
17753
17754
17755
17756  if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
17757     if test "x$prefix" = xNONE; then
17758     	test_prefix=/usr/local
17759     else
17760	test_prefix=$prefix
17761     fi
17762  else
17763     test_prefix=$exec_prefix
17764  fi
17765  value=0
17766  case ${ac_define_dir} in
17767     "${test_prefix}"|"${test_prefix}/"*|\
17768	'${exec_prefix}'|'${exec_prefix}/'*)
17769     value=1
17770     ;;
17771  esac
17772
17773cat >>confdefs.h <<_ACEOF
17774#define GDB_DATADIR_RELOCATABLE $value
17775_ACEOF
17776
17777
17778
17779
17780
17781# Check whether --with-relocated-sources was given.
17782if test "${with_relocated_sources+set}" = set; then :
17783  withval=$with_relocated_sources; reloc_srcdir="${withval}"
17784
17785  test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17786  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17787  ac_define_dir=`eval echo $reloc_srcdir`
17788  ac_define_dir=`eval echo $ac_define_dir`
17789
17790cat >>confdefs.h <<_ACEOF
17791#define RELOC_SRCDIR "$ac_define_dir"
17792_ACEOF
17793
17794
17795
17796fi
17797
17798
17799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
17800$as_echo_n "checking for default auto-load directory... " >&6; }
17801
17802# Check whether --with-auto-load-dir was given.
17803if test "${with_auto_load_dir+set}" = set; then :
17804  withval=$with_auto_load_dir;
17805else
17806  with_auto_load_dir='$debugdir:$datadir/auto-load'
17807fi
17808
17809escape_dir=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
17810
17811  test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17812  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17813  ac_define_dir=`eval echo $escape_dir`
17814  ac_define_dir=`eval echo $ac_define_dir`
17815
17816cat >>confdefs.h <<_ACEOF
17817#define AUTO_LOAD_DIR "$ac_define_dir"
17818_ACEOF
17819
17820
17821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
17822$as_echo "$with_auto_load_dir" >&6; }
17823
17824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
17825$as_echo_n "checking for default auto-load safe-path... " >&6; }
17826
17827# Check whether --with-auto-load-safe-path was given.
17828if test "${with_auto_load_safe_path+set}" = set; then :
17829  withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
17830     with_auto_load_safe_path="/"
17831     fi
17832else
17833  with_auto_load_safe_path="$with_auto_load_dir"
17834fi
17835
17836escape_dir=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
17837
17838  test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17839  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17840  ac_define_dir=`eval echo $escape_dir`
17841  ac_define_dir=`eval echo $ac_define_dir`
17842
17843cat >>confdefs.h <<_ACEOF
17844#define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
17845_ACEOF
17846
17847
17848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
17849$as_echo "$with_auto_load_safe_path" >&6; }
17850
17851
17852
17853subdirs="$subdirs testsuite"
17854
17855
17856# Check whether to support alternative target configurations
17857# Check whether --enable-targets was given.
17858if test "${enable_targets+set}" = set; then :
17859  enableval=$enable_targets; case "${enableval}" in
17860  yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
17861            ;;
17862  no)       enable_targets= ;;
17863  *)        enable_targets=$enableval ;;
17864esac
17865fi
17866
17867
17868# Check whether --enable-64-bit-bfd was given.
17869if test "${enable_64_bit_bfd+set}" = set; then :
17870  enableval=$enable_64_bit_bfd; case $enableval in #(
17871  yes|no) :
17872     ;; #(
17873  *) :
17874    as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
17875  *) :
17876     ;;
17877esac
17878else
17879  enable_64_bit_bfd=no
17880fi
17881
17882
17883if test "x$enable_64_bit_bfd" = "xno"; then :
17884    # The cast to long int works around a bug in the HP C Compiler
17885# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17886# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17887# This bug is HP SR number 8606223364.
17888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
17889$as_echo_n "checking size of void *... " >&6; }
17890if ${ac_cv_sizeof_void_p+:} false; then :
17891  $as_echo_n "(cached) " >&6
17892else
17893  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
17894
17895else
17896  if test "$ac_cv_type_void_p" = yes; then
17897     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17899as_fn_error 77 "cannot compute sizeof (void *)
17900See \`config.log' for more details" "$LINENO" 5; }
17901   else
17902     ac_cv_sizeof_void_p=0
17903   fi
17904fi
17905
17906fi
17907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17908$as_echo "$ac_cv_sizeof_void_p" >&6; }
17909
17910
17911
17912cat >>confdefs.h <<_ACEOF
17913#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17914_ACEOF
17915
17916
17917  if test "x$ac_cv_sizeof_void_p" = "x8"; then :
17918  enable_64_bit_bfd=yes
17919fi
17920
17921fi
17922
17923 if test "x$enable_64_bit_bfd" = "xyes"; then
17924  ENABLE_BFD_64_BIT_TRUE=
17925  ENABLE_BFD_64_BIT_FALSE='#'
17926else
17927  ENABLE_BFD_64_BIT_TRUE='#'
17928  ENABLE_BFD_64_BIT_FALSE=
17929fi
17930
17931
17932
17933# Provide defaults for some variables set by the per-host and per-target
17934# configuration.
17935gdb_host_obs=posix-hdep.o
17936
17937if test "${target}" = "${host}"; then
17938  gdb_native=yes
17939else
17940  gdb_native=no
17941fi
17942
17943. $srcdir/configure.host
17944
17945# Accumulate some settings from configure.tgt over all enabled targets
17946
17947TARGET_OBS=
17948all_targets=
17949HAVE_NATIVE_GCORE_TARGET=
17950
17951for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
17952do
17953  if test "$targ_alias" = "all"; then
17954    all_targets=true
17955  else
17956    # Canonicalize the secondary target names.
17957    result=`$ac_config_sub $targ_alias 2>/dev/null`
17958    if test -n "$result"; then
17959        targ=$result
17960    else
17961        targ=$targ_alias
17962    fi
17963
17964    . ${srcdir}/configure.tgt
17965
17966    if test -z "${gdb_target_obs}"; then :
17967  as_fn_error $? "configuration ${targ} is unsupported." "$LINENO" 5
17968fi
17969
17970    # Target-specific object files
17971    for i in ${gdb_target_obs}; do
17972        case " $TARGET_OBS " in
17973        *" ${i} "*) ;;
17974        *)
17975          TARGET_OBS="$TARGET_OBS ${i}"
17976          ;;
17977        esac
17978    done
17979
17980    # Check whether this target needs 64-bit CORE_ADDR
17981    if test x${enable_64_bit_bfd} = xno; then
17982      . ${srcdir}/../bfd/config.bfd
17983    fi
17984
17985    # Check whether this target is native and supports gcore.
17986    if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
17987       && $gdb_have_gcore; then
17988      HAVE_NATIVE_GCORE_TARGET=1
17989    fi
17990  fi
17991done
17992
17993if test x${all_targets} = xtrue; then
17994  if test x${enable_64_bit_bfd} = xyes; then
17995    TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
17996  else
17997    TARGET_OBS='$(ALL_TARGET_OBS)'
17998  fi
17999fi
18000
18001
18002
18003
18004# For other settings, only the main target counts.
18005gdb_sim=
18006gdb_osabi=
18007targ=$target; . ${srcdir}/configure.tgt
18008
18009# Fetch the default architecture and default target vector from BFD.
18010targ=$target; . $srcdir/../bfd/config.bfd
18011
18012# We only want the first architecture, so strip off the others if
18013# there is more than one.
18014targ_archs=`echo $targ_archs | sed 's/ .*//'`
18015
18016if test "x$targ_archs" != x; then
18017
18018cat >>confdefs.h <<_ACEOF
18019#define DEFAULT_BFD_ARCH $targ_archs
18020_ACEOF
18021
18022fi
18023if test "x$targ_defvec" != x; then
18024
18025cat >>confdefs.h <<_ACEOF
18026#define DEFAULT_BFD_VEC $targ_defvec
18027_ACEOF
18028
18029fi
18030
18031# Enable MI.
18032# Check whether --enable-gdbmi was given.
18033if test "${enable_gdbmi+set}" = set; then :
18034  enableval=$enable_gdbmi;
18035	   case $enableval in
18036	     yes | no)
18037	       ;;
18038	     *)
18039	       as_fn_error $? "bad value $enableval for --enable-gdbmi" "$LINENO" 5
18040	       ;;
18041	   esac
18042
18043else
18044  enable_gdbmi=yes
18045fi
18046
18047if test x"$enable_gdbmi" = xyes; then
18048  if test -d "$srcdir/mi"; then
18049    CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
18050    CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
18051    CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
18052    ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
18053  fi
18054fi
18055
18056# Enable TUI.
18057# Check whether --enable-tui was given.
18058if test "${enable_tui+set}" = set; then :
18059  enableval=$enable_tui;
18060	   case $enableval in
18061	     yes | no | auto)
18062	       ;;
18063	     *)
18064	       as_fn_error $? "bad value $enableval for --enable-tui" "$LINENO" 5
18065	       ;;
18066	   esac
18067
18068else
18069  enable_tui=auto
18070fi
18071
18072
18073# Enable gdbtk.
18074# Check whether --enable-gdbtk was given.
18075if test "${enable_gdbtk+set}" = set; then :
18076  enableval=$enable_gdbtk;
18077	   case $enableval in
18078	     yes | no)
18079	       ;;
18080	     *)
18081	       as_fn_error $? "bad value $enableval for --enable-gdbtk" "$LINENO" 5
18082	       ;;
18083	   esac
18084
18085else
18086  if test -d "$srcdir/gdbtk"; then
18087		 enable_gdbtk=yes
18088	       else
18089		 enable_gdbtk=no
18090	       fi
18091fi
18092
18093# We unconditionally disable gdbtk tests on selected platforms.
18094case $host_os in
18095  go32* | windows*)
18096    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
18097$as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
18098    enable_gdbtk=no ;;
18099esac
18100
18101# Handle optional debuginfod support
18102
18103
18104
18105
18106
18107
18108
18109if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18110	if test -n "$ac_tool_prefix"; then
18111  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18112set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18114$as_echo_n "checking for $ac_word... " >&6; }
18115if ${ac_cv_path_PKG_CONFIG+:} false; then :
18116  $as_echo_n "(cached) " >&6
18117else
18118  case $PKG_CONFIG in
18119  [\\/]* | ?:[\\/]*)
18120  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18121  ;;
18122  *)
18123  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18124for as_dir in $PATH
18125do
18126  IFS=$as_save_IFS
18127  test -z "$as_dir" && as_dir=.
18128    for ac_exec_ext in '' $ac_executable_extensions; do
18129  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18130    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18131    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18132    break 2
18133  fi
18134done
18135  done
18136IFS=$as_save_IFS
18137
18138  ;;
18139esac
18140fi
18141PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18142if test -n "$PKG_CONFIG"; then
18143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18144$as_echo "$PKG_CONFIG" >&6; }
18145else
18146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18147$as_echo "no" >&6; }
18148fi
18149
18150
18151fi
18152if test -z "$ac_cv_path_PKG_CONFIG"; then
18153  ac_pt_PKG_CONFIG=$PKG_CONFIG
18154  # Extract the first word of "pkg-config", so it can be a program name with args.
18155set dummy pkg-config; ac_word=$2
18156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18157$as_echo_n "checking for $ac_word... " >&6; }
18158if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18159  $as_echo_n "(cached) " >&6
18160else
18161  case $ac_pt_PKG_CONFIG in
18162  [\\/]* | ?:[\\/]*)
18163  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18164  ;;
18165  *)
18166  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18167for as_dir in $PATH
18168do
18169  IFS=$as_save_IFS
18170  test -z "$as_dir" && as_dir=.
18171    for ac_exec_ext in '' $ac_executable_extensions; do
18172  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18173    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18175    break 2
18176  fi
18177done
18178  done
18179IFS=$as_save_IFS
18180
18181  ;;
18182esac
18183fi
18184ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18185if test -n "$ac_pt_PKG_CONFIG"; then
18186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18187$as_echo "$ac_pt_PKG_CONFIG" >&6; }
18188else
18189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18190$as_echo "no" >&6; }
18191fi
18192
18193  if test "x$ac_pt_PKG_CONFIG" = x; then
18194    PKG_CONFIG=""
18195  else
18196    case $cross_compiling:$ac_tool_warned in
18197yes:)
18198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18200ac_tool_warned=yes ;;
18201esac
18202    PKG_CONFIG=$ac_pt_PKG_CONFIG
18203  fi
18204else
18205  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18206fi
18207
18208fi
18209if test -n "$PKG_CONFIG"; then
18210	_pkg_min_version=0.9.0
18211	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18212$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18213	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18214		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18215$as_echo "yes" >&6; }
18216	else
18217		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18218$as_echo "no" >&6; }
18219		PKG_CONFIG=""
18220	fi
18221fi
18222
18223# Handle optional debuginfod support
18224
18225# Check whether --with-debuginfod was given.
18226if test "${with_debuginfod+set}" = set; then :
18227  withval=$with_debuginfod;
18228else
18229  with_debuginfod=auto
18230fi
18231
18232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
18233$as_echo_n "checking whether to use debuginfod... " >&6; }
18234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
18235$as_echo "$with_debuginfod" >&6; }
18236
18237if test "x$with_debuginfod" != xno; then
18238
18239pkg_failed=no
18240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
18241$as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
18242
18243if test -n "$DEBUGINFOD_CFLAGS"; then
18244    pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
18245 elif test -n "$PKG_CONFIG"; then
18246    if test -n "$PKG_CONFIG" && \
18247    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
18248  ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
18249  ac_status=$?
18250  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18251  test $ac_status = 0; }; then
18252  pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
18253		      test "x$?" != "x0" && pkg_failed=yes
18254else
18255  pkg_failed=yes
18256fi
18257 else
18258    pkg_failed=untried
18259fi
18260if test -n "$DEBUGINFOD_LIBS"; then
18261    pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
18262 elif test -n "$PKG_CONFIG"; then
18263    if test -n "$PKG_CONFIG" && \
18264    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
18265  ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
18266  ac_status=$?
18267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18268  test $ac_status = 0; }; then
18269  pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
18270		      test "x$?" != "x0" && pkg_failed=yes
18271else
18272  pkg_failed=yes
18273fi
18274 else
18275    pkg_failed=untried
18276fi
18277
18278if test $pkg_failed = no; then
18279  pkg_save_LDFLAGS="$LDFLAGS"
18280  LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
18281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18282/* end confdefs.h.  */
18283
18284int
18285main ()
18286{
18287
18288  ;
18289  return 0;
18290}
18291_ACEOF
18292if ac_fn_c_try_link "$LINENO"; then :
18293
18294else
18295  pkg_failed=yes
18296fi
18297rm -f core conftest.err conftest.$ac_objext \
18298    conftest$ac_exeext conftest.$ac_ext
18299  LDFLAGS=$pkg_save_LDFLAGS
18300fi
18301
18302
18303
18304if test $pkg_failed = yes; then
18305        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18306$as_echo "no" >&6; }
18307
18308if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18309        _pkg_short_errors_supported=yes
18310else
18311        _pkg_short_errors_supported=no
18312fi
18313        if test $_pkg_short_errors_supported = yes; then
18314	        DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
18315        else
18316	        DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
18317        fi
18318	# Put the nasty error message in config.log where it belongs
18319	echo "$DEBUGINFOD_PKG_ERRORS" >&5
18320
18321	if test "x$with_debuginfod" = xyes; then
18322       as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
18323     else
18324       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
18325$as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
18326     fi
18327elif test $pkg_failed = untried; then
18328        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18329$as_echo "no" >&6; }
18330	if test "x$with_debuginfod" = xyes; then
18331       as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
18332     else
18333       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
18334$as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
18335     fi
18336else
18337	DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
18338	DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
18339        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18340$as_echo "yes" >&6; }
18341
18342$as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
18343
18344fi
18345else
18346  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
18347$as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
18348fi
18349
18350
18351# Libunwind support for ia64.
18352
18353# Check whether --with-libunwind-ia64 was given.
18354if test "${with_libunwind_ia64+set}" = set; then :
18355  withval=$with_libunwind_ia64;
18356else
18357  with_libunwind_ia64=auto
18358fi
18359
18360
18361# Backward compatibility option.
18362if test "${with_libunwind+set}" = set; then
18363  if test x"$with_libunwind_ia64" != xauto; then
18364    as_fn_error $? "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
18365  fi
18366  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
18367$as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
18368  with_libunwind_ia64="$with_libunwind"
18369fi
18370
18371case "$with_libunwind_ia64" in
18372  yes | no)
18373    ;;
18374  auto)
18375    for ac_header in libunwind-ia64.h
18376do :
18377  ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
18378if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
18379  cat >>confdefs.h <<_ACEOF
18380#define HAVE_LIBUNWIND_IA64_H 1
18381_ACEOF
18382
18383fi
18384
18385done
18386
18387    with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
18388    ;;
18389  *)
18390    as_fn_error $? "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
18391    ;;
18392esac
18393
18394if test x"$with_libunwind_ia64" = xyes; then
18395  for ac_header in libunwind-ia64.h
18396do :
18397  ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
18398if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
18399  cat >>confdefs.h <<_ACEOF
18400#define HAVE_LIBUNWIND_IA64_H 1
18401_ACEOF
18402
18403fi
18404
18405done
18406
18407  if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
18408    as_fn_error $? "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
18409  fi
18410  CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
18411  CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
18412  CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
18413fi
18414
18415opt_curses=no
18416
18417# Check whether --with-curses was given.
18418if test "${with_curses+set}" = set; then :
18419  withval=$with_curses; opt_curses=$withval
18420fi
18421
18422
18423prefer_curses=no
18424if test "$opt_curses" = "yes"; then
18425  prefer_curses=yes
18426fi
18427
18428# Profiling support.
18429# Check whether --enable-profiling was given.
18430if test "${enable_profiling+set}" = set; then :
18431  enableval=$enable_profiling;
18432	   case $enableval in
18433	     yes | no)
18434	       ;;
18435	     *)
18436	       as_fn_error $? "bad value $enableval for --enable-profiling" "$LINENO" 5
18437	       ;;
18438	   esac
18439
18440else
18441  enable_profiling=no
18442fi
18443
18444
18445for ac_func in monstartup _mcleanup
18446do :
18447  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18448ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18449if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18450  cat >>confdefs.h <<_ACEOF
18451#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18452_ACEOF
18453
18454fi
18455done
18456
18457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
18458$as_echo_n "checking for _etext... " >&6; }
18459if ${ac_cv_var__etext+:} false; then :
18460  $as_echo_n "(cached) " >&6
18461else
18462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18463/* end confdefs.h.  */
18464#include <stdlib.h>
18465	 extern char _etext;
18466int
18467main ()
18468{
18469free (&_etext);
18470
18471  ;
18472  return 0;
18473}
18474_ACEOF
18475if ac_fn_c_try_link "$LINENO"; then :
18476  ac_cv_var__etext=yes
18477else
18478  ac_cv_var__etext=no
18479
18480fi
18481rm -f core conftest.err conftest.$ac_objext \
18482    conftest$ac_exeext conftest.$ac_ext
18483
18484fi
18485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
18486$as_echo "$ac_cv_var__etext" >&6; }
18487if test "$ac_cv_var__etext" = yes; then
18488
18489$as_echo "#define HAVE__ETEXT 1" >>confdefs.h
18490
18491fi
18492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
18493$as_echo_n "checking for etext... " >&6; }
18494if ${ac_cv_var_etext+:} false; then :
18495  $as_echo_n "(cached) " >&6
18496else
18497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18498/* end confdefs.h.  */
18499#include <stdlib.h>
18500	 extern char etext;
18501int
18502main ()
18503{
18504free (&etext);
18505
18506  ;
18507  return 0;
18508}
18509_ACEOF
18510if ac_fn_c_try_link "$LINENO"; then :
18511  ac_cv_var_etext=yes
18512else
18513  ac_cv_var_etext=no
18514
18515fi
18516rm -f core conftest.err conftest.$ac_objext \
18517    conftest$ac_exeext conftest.$ac_ext
18518
18519fi
18520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
18521$as_echo "$ac_cv_var_etext" >&6; }
18522if test "$ac_cv_var_etext" = yes; then
18523
18524$as_echo "#define HAVE_ETEXT 1" >>confdefs.h
18525
18526fi
18527if test "$enable_profiling" = yes ; then
18528  if test "$ac_cv_func_monstartup" = no || test "$ac_cv_func__mcleanup" = no; then
18529    as_fn_error $? "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
18530  fi
18531  PROFILE_CFLAGS=-pg
18532  OLD_CFLAGS="$CFLAGS"
18533  CFLAGS="$CFLAGS $PROFILE_CFLAGS"
18534
18535  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
18536$as_echo_n "checking whether $CC supports -pg... " >&6; }
18537if ${ac_cv_cc_supports_pg+:} false; then :
18538  $as_echo_n "(cached) " >&6
18539else
18540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18541/* end confdefs.h.  */
18542
18543int
18544main ()
18545{
18546int x;
18547  ;
18548  return 0;
18549}
18550_ACEOF
18551if ac_fn_c_try_compile "$LINENO"; then :
18552  ac_cv_cc_supports_pg=yes
18553else
18554  ac_cv_cc_supports_pg=no
18555
18556fi
18557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18558
18559fi
18560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
18561$as_echo "$ac_cv_cc_supports_pg" >&6; }
18562
18563  if test "$ac_cv_cc_supports_pg" = no; then
18564    as_fn_error $? "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
18565  fi
18566
18567  CFLAGS="$OLD_CFLAGS"
18568fi
18569
18570CODESIGN_CERT=
18571# Check whether --enable-codesign was given.
18572if test "${enable_codesign+set}" = set; then :
18573  enableval=$enable_codesign; CODESIGN_CERT=$enableval
18574fi
18575
18576
18577
18578
18579
18580# Check whether --with-pkgversion was given.
18581if test "${with_pkgversion+set}" = set; then :
18582  withval=$with_pkgversion; case "$withval" in
18583      yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
18584      no)  PKGVERSION= ;;
18585      *)   PKGVERSION="($withval) " ;;
18586     esac
18587else
18588  PKGVERSION="(GDB) "
18589
18590fi
18591
18592
18593
18594
18595
18596# Check whether --with-bugurl was given.
18597if test "${with_bugurl+set}" = set; then :
18598  withval=$with_bugurl; case "$withval" in
18599      yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
18600      no)  BUGURL=
18601	   ;;
18602      *)   BUGURL="$withval"
18603	   ;;
18604     esac
18605else
18606  BUGURL="https://www.gnu.org/software/gdb/bugs/"
18607
18608fi
18609
18610  case ${BUGURL} in
18611  "")
18612    REPORT_BUGS_TO=
18613    REPORT_BUGS_TEXI=
18614    ;;
18615  *)
18616    REPORT_BUGS_TO="<$BUGURL>"
18617    REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
18618    ;;
18619  esac;
18620
18621
18622
18623
18624cat >>confdefs.h <<_ACEOF
18625#define PKGVERSION "$PKGVERSION"
18626_ACEOF
18627
18628
18629cat >>confdefs.h <<_ACEOF
18630#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
18631_ACEOF
18632
18633
18634# --------------------- #
18635# Checks for programs.  #
18636# --------------------- #
18637
18638for ac_prog in gawk mawk nawk awk
18639do
18640  # Extract the first word of "$ac_prog", so it can be a program name with args.
18641set dummy $ac_prog; ac_word=$2
18642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18643$as_echo_n "checking for $ac_word... " >&6; }
18644if ${ac_cv_prog_AWK+:} false; then :
18645  $as_echo_n "(cached) " >&6
18646else
18647  if test -n "$AWK"; then
18648  ac_cv_prog_AWK="$AWK" # Let the user override the test.
18649else
18650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18651for as_dir in $PATH
18652do
18653  IFS=$as_save_IFS
18654  test -z "$as_dir" && as_dir=.
18655    for ac_exec_ext in '' $ac_executable_extensions; do
18656  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18657    ac_cv_prog_AWK="$ac_prog"
18658    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18659    break 2
18660  fi
18661done
18662  done
18663IFS=$as_save_IFS
18664
18665fi
18666fi
18667AWK=$ac_cv_prog_AWK
18668if test -n "$AWK"; then
18669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
18670$as_echo "$AWK" >&6; }
18671else
18672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18673$as_echo "no" >&6; }
18674fi
18675
18676
18677  test -n "$AWK" && break
18678done
18679
18680# Find a good install program.  We prefer a C program (faster),
18681# so one script is as good as another.  But avoid the broken or
18682# incompatible versions:
18683# SysV /etc/install, /usr/sbin/install
18684# SunOS /usr/etc/install
18685# IRIX /sbin/install
18686# AIX /bin/install
18687# AmigaOS /C/install, which installs bootblocks on floppy discs
18688# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18689# AFS /usr/afsws/bin/install, which mishandles nonexistent args
18690# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18691# OS/2's system install, which has a completely different semantic
18692# ./install, which can be erroneously created by make from ./install.sh.
18693# Reject install programs that cannot install multiple files.
18694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
18695$as_echo_n "checking for a BSD-compatible install... " >&6; }
18696if test -z "$INSTALL"; then
18697if ${ac_cv_path_install+:} false; then :
18698  $as_echo_n "(cached) " >&6
18699else
18700  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18701for as_dir in $PATH
18702do
18703  IFS=$as_save_IFS
18704  test -z "$as_dir" && as_dir=.
18705    # Account for people who put trailing slashes in PATH elements.
18706case $as_dir/ in #((
18707  ./ | .// | /[cC]/* | \
18708  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18709  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
18710  /usr/ucb/* ) ;;
18711  *)
18712    # OSF1 and SCO ODT 3.0 have their own names for install.
18713    # Don't use installbsd from OSF since it installs stuff as root
18714    # by default.
18715    for ac_prog in ginstall scoinst install; do
18716      for ac_exec_ext in '' $ac_executable_extensions; do
18717	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
18718	  if test $ac_prog = install &&
18719	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18720	    # AIX install.  It has an incompatible calling convention.
18721	    :
18722	  elif test $ac_prog = install &&
18723	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18724	    # program-specific install script used by HP pwplus--don't use.
18725	    :
18726	  else
18727	    rm -rf conftest.one conftest.two conftest.dir
18728	    echo one > conftest.one
18729	    echo two > conftest.two
18730	    mkdir conftest.dir
18731	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
18732	      test -s conftest.one && test -s conftest.two &&
18733	      test -s conftest.dir/conftest.one &&
18734	      test -s conftest.dir/conftest.two
18735	    then
18736	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18737	      break 3
18738	    fi
18739	  fi
18740	fi
18741      done
18742    done
18743    ;;
18744esac
18745
18746  done
18747IFS=$as_save_IFS
18748
18749rm -rf conftest.one conftest.two conftest.dir
18750
18751fi
18752  if test "${ac_cv_path_install+set}" = set; then
18753    INSTALL=$ac_cv_path_install
18754  else
18755    # As a last resort, use the slow shell script.  Don't cache a
18756    # value for INSTALL within a source directory, because that will
18757    # break other packages using the cache if that directory is
18758    # removed, or if the value is a relative name.
18759    INSTALL=$ac_install_sh
18760  fi
18761fi
18762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
18763$as_echo "$INSTALL" >&6; }
18764
18765# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18766# It thinks the first close brace ends the variable substitution.
18767test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18768
18769test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18770
18771test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18772
18773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
18774$as_echo_n "checking whether ln -s works... " >&6; }
18775LN_S=$as_ln_s
18776if test "$LN_S" = "ln -s"; then
18777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18778$as_echo "yes" >&6; }
18779else
18780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
18781$as_echo "no, using $LN_S" >&6; }
18782fi
18783
18784if test -n "$ac_tool_prefix"; then
18785  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18786set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18788$as_echo_n "checking for $ac_word... " >&6; }
18789if ${ac_cv_prog_RANLIB+:} false; then :
18790  $as_echo_n "(cached) " >&6
18791else
18792  if test -n "$RANLIB"; then
18793  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18794else
18795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18796for as_dir in $PATH
18797do
18798  IFS=$as_save_IFS
18799  test -z "$as_dir" && as_dir=.
18800    for ac_exec_ext in '' $ac_executable_extensions; do
18801  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18802    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18804    break 2
18805  fi
18806done
18807  done
18808IFS=$as_save_IFS
18809
18810fi
18811fi
18812RANLIB=$ac_cv_prog_RANLIB
18813if test -n "$RANLIB"; then
18814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
18815$as_echo "$RANLIB" >&6; }
18816else
18817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18818$as_echo "no" >&6; }
18819fi
18820
18821
18822fi
18823if test -z "$ac_cv_prog_RANLIB"; then
18824  ac_ct_RANLIB=$RANLIB
18825  # Extract the first word of "ranlib", so it can be a program name with args.
18826set dummy ranlib; ac_word=$2
18827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18828$as_echo_n "checking for $ac_word... " >&6; }
18829if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
18830  $as_echo_n "(cached) " >&6
18831else
18832  if test -n "$ac_ct_RANLIB"; then
18833  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18834else
18835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18836for as_dir in $PATH
18837do
18838  IFS=$as_save_IFS
18839  test -z "$as_dir" && as_dir=.
18840    for ac_exec_ext in '' $ac_executable_extensions; do
18841  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18842    ac_cv_prog_ac_ct_RANLIB="ranlib"
18843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18844    break 2
18845  fi
18846done
18847  done
18848IFS=$as_save_IFS
18849
18850fi
18851fi
18852ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18853if test -n "$ac_ct_RANLIB"; then
18854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
18855$as_echo "$ac_ct_RANLIB" >&6; }
18856else
18857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18858$as_echo "no" >&6; }
18859fi
18860
18861  if test "x$ac_ct_RANLIB" = x; then
18862    RANLIB=":"
18863  else
18864    case $cross_compiling:$ac_tool_warned in
18865yes:)
18866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18868ac_tool_warned=yes ;;
18869esac
18870    RANLIB=$ac_ct_RANLIB
18871  fi
18872else
18873  RANLIB="$ac_cv_prog_RANLIB"
18874fi
18875
18876for ac_prog in 'bison -y' byacc
18877do
18878  # Extract the first word of "$ac_prog", so it can be a program name with args.
18879set dummy $ac_prog; ac_word=$2
18880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18881$as_echo_n "checking for $ac_word... " >&6; }
18882if ${ac_cv_prog_YACC+:} false; then :
18883  $as_echo_n "(cached) " >&6
18884else
18885  if test -n "$YACC"; then
18886  ac_cv_prog_YACC="$YACC" # Let the user override the test.
18887else
18888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18889for as_dir in $PATH
18890do
18891  IFS=$as_save_IFS
18892  test -z "$as_dir" && as_dir=.
18893    for ac_exec_ext in '' $ac_executable_extensions; do
18894  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18895    ac_cv_prog_YACC="$ac_prog"
18896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18897    break 2
18898  fi
18899done
18900  done
18901IFS=$as_save_IFS
18902
18903fi
18904fi
18905YACC=$ac_cv_prog_YACC
18906if test -n "$YACC"; then
18907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
18908$as_echo "$YACC" >&6; }
18909else
18910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18911$as_echo "no" >&6; }
18912fi
18913
18914
18915  test -n "$YACC" && break
18916done
18917test -n "$YACC" || YACC="yacc"
18918
18919
18920if test -n "$ac_tool_prefix"; then
18921  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
18922set dummy ${ac_tool_prefix}ar; ac_word=$2
18923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18924$as_echo_n "checking for $ac_word... " >&6; }
18925if ${ac_cv_prog_AR+:} false; then :
18926  $as_echo_n "(cached) " >&6
18927else
18928  if test -n "$AR"; then
18929  ac_cv_prog_AR="$AR" # Let the user override the test.
18930else
18931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18932for as_dir in $PATH
18933do
18934  IFS=$as_save_IFS
18935  test -z "$as_dir" && as_dir=.
18936    for ac_exec_ext in '' $ac_executable_extensions; do
18937  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18938    ac_cv_prog_AR="${ac_tool_prefix}ar"
18939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18940    break 2
18941  fi
18942done
18943  done
18944IFS=$as_save_IFS
18945
18946fi
18947fi
18948AR=$ac_cv_prog_AR
18949if test -n "$AR"; then
18950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
18951$as_echo "$AR" >&6; }
18952else
18953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18954$as_echo "no" >&6; }
18955fi
18956
18957
18958fi
18959if test -z "$ac_cv_prog_AR"; then
18960  ac_ct_AR=$AR
18961  # Extract the first word of "ar", so it can be a program name with args.
18962set dummy ar; ac_word=$2
18963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18964$as_echo_n "checking for $ac_word... " >&6; }
18965if ${ac_cv_prog_ac_ct_AR+:} false; then :
18966  $as_echo_n "(cached) " >&6
18967else
18968  if test -n "$ac_ct_AR"; then
18969  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
18970else
18971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18972for as_dir in $PATH
18973do
18974  IFS=$as_save_IFS
18975  test -z "$as_dir" && as_dir=.
18976    for ac_exec_ext in '' $ac_executable_extensions; do
18977  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18978    ac_cv_prog_ac_ct_AR="ar"
18979    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18980    break 2
18981  fi
18982done
18983  done
18984IFS=$as_save_IFS
18985
18986fi
18987fi
18988ac_ct_AR=$ac_cv_prog_ac_ct_AR
18989if test -n "$ac_ct_AR"; then
18990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
18991$as_echo "$ac_ct_AR" >&6; }
18992else
18993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18994$as_echo "no" >&6; }
18995fi
18996
18997  if test "x$ac_ct_AR" = x; then
18998    AR=""
18999  else
19000    case $cross_compiling:$ac_tool_warned in
19001yes:)
19002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19004ac_tool_warned=yes ;;
19005esac
19006    AR=$ac_ct_AR
19007  fi
19008else
19009  AR="$ac_cv_prog_AR"
19010fi
19011
19012if test -n "$ac_tool_prefix"; then
19013  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
19014set dummy ${ac_tool_prefix}dlltool; ac_word=$2
19015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19016$as_echo_n "checking for $ac_word... " >&6; }
19017if ${ac_cv_prog_DLLTOOL+:} false; then :
19018  $as_echo_n "(cached) " >&6
19019else
19020  if test -n "$DLLTOOL"; then
19021  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
19022else
19023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19024for as_dir in $PATH
19025do
19026  IFS=$as_save_IFS
19027  test -z "$as_dir" && as_dir=.
19028    for ac_exec_ext in '' $ac_executable_extensions; do
19029  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19030    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
19031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19032    break 2
19033  fi
19034done
19035  done
19036IFS=$as_save_IFS
19037
19038fi
19039fi
19040DLLTOOL=$ac_cv_prog_DLLTOOL
19041if test -n "$DLLTOOL"; then
19042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
19043$as_echo "$DLLTOOL" >&6; }
19044else
19045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19046$as_echo "no" >&6; }
19047fi
19048
19049
19050fi
19051if test -z "$ac_cv_prog_DLLTOOL"; then
19052  ac_ct_DLLTOOL=$DLLTOOL
19053  # Extract the first word of "dlltool", so it can be a program name with args.
19054set dummy dlltool; ac_word=$2
19055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19056$as_echo_n "checking for $ac_word... " >&6; }
19057if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
19058  $as_echo_n "(cached) " >&6
19059else
19060  if test -n "$ac_ct_DLLTOOL"; then
19061  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
19062else
19063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19064for as_dir in $PATH
19065do
19066  IFS=$as_save_IFS
19067  test -z "$as_dir" && as_dir=.
19068    for ac_exec_ext in '' $ac_executable_extensions; do
19069  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19070    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
19071    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19072    break 2
19073  fi
19074done
19075  done
19076IFS=$as_save_IFS
19077
19078fi
19079fi
19080ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
19081if test -n "$ac_ct_DLLTOOL"; then
19082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
19083$as_echo "$ac_ct_DLLTOOL" >&6; }
19084else
19085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19086$as_echo "no" >&6; }
19087fi
19088
19089  if test "x$ac_ct_DLLTOOL" = x; then
19090    DLLTOOL=""
19091  else
19092    case $cross_compiling:$ac_tool_warned in
19093yes:)
19094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19096ac_tool_warned=yes ;;
19097esac
19098    DLLTOOL=$ac_ct_DLLTOOL
19099  fi
19100else
19101  DLLTOOL="$ac_cv_prog_DLLTOOL"
19102fi
19103
19104if test -n "$ac_tool_prefix"; then
19105  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19106set dummy ${ac_tool_prefix}windres; ac_word=$2
19107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19108$as_echo_n "checking for $ac_word... " >&6; }
19109if ${ac_cv_prog_WINDRES+:} false; then :
19110  $as_echo_n "(cached) " >&6
19111else
19112  if test -n "$WINDRES"; then
19113  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19114else
19115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19116for as_dir in $PATH
19117do
19118  IFS=$as_save_IFS
19119  test -z "$as_dir" && as_dir=.
19120    for ac_exec_ext in '' $ac_executable_extensions; do
19121  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19122    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19123    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19124    break 2
19125  fi
19126done
19127  done
19128IFS=$as_save_IFS
19129
19130fi
19131fi
19132WINDRES=$ac_cv_prog_WINDRES
19133if test -n "$WINDRES"; then
19134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19135$as_echo "$WINDRES" >&6; }
19136else
19137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19138$as_echo "no" >&6; }
19139fi
19140
19141
19142fi
19143if test -z "$ac_cv_prog_WINDRES"; then
19144  ac_ct_WINDRES=$WINDRES
19145  # Extract the first word of "windres", so it can be a program name with args.
19146set dummy windres; ac_word=$2
19147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19148$as_echo_n "checking for $ac_word... " >&6; }
19149if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
19150  $as_echo_n "(cached) " >&6
19151else
19152  if test -n "$ac_ct_WINDRES"; then
19153  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19154else
19155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19156for as_dir in $PATH
19157do
19158  IFS=$as_save_IFS
19159  test -z "$as_dir" && as_dir=.
19160    for ac_exec_ext in '' $ac_executable_extensions; do
19161  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19162    ac_cv_prog_ac_ct_WINDRES="windres"
19163    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19164    break 2
19165  fi
19166done
19167  done
19168IFS=$as_save_IFS
19169
19170fi
19171fi
19172ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19173if test -n "$ac_ct_WINDRES"; then
19174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19175$as_echo "$ac_ct_WINDRES" >&6; }
19176else
19177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19178$as_echo "no" >&6; }
19179fi
19180
19181  if test "x$ac_ct_WINDRES" = x; then
19182    WINDRES=""
19183  else
19184    case $cross_compiling:$ac_tool_warned in
19185yes:)
19186{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19187$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19188ac_tool_warned=yes ;;
19189esac
19190    WINDRES=$ac_ct_WINDRES
19191  fi
19192else
19193  WINDRES="$ac_cv_prog_WINDRES"
19194fi
19195
19196
19197case $host_os in
19198  gnu*)
19199    # Needed for GNU Hurd hosts.
19200    if test -n "$ac_tool_prefix"; then
19201  # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
19202set dummy ${ac_tool_prefix}mig; ac_word=$2
19203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19204$as_echo_n "checking for $ac_word... " >&6; }
19205if ${ac_cv_prog_MIG+:} false; then :
19206  $as_echo_n "(cached) " >&6
19207else
19208  if test -n "$MIG"; then
19209  ac_cv_prog_MIG="$MIG" # Let the user override the test.
19210else
19211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19212for as_dir in $PATH
19213do
19214  IFS=$as_save_IFS
19215  test -z "$as_dir" && as_dir=.
19216    for ac_exec_ext in '' $ac_executable_extensions; do
19217  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19218    ac_cv_prog_MIG="${ac_tool_prefix}mig"
19219    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19220    break 2
19221  fi
19222done
19223  done
19224IFS=$as_save_IFS
19225
19226fi
19227fi
19228MIG=$ac_cv_prog_MIG
19229if test -n "$MIG"; then
19230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
19231$as_echo "$MIG" >&6; }
19232else
19233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19234$as_echo "no" >&6; }
19235fi
19236
19237
19238fi
19239if test -z "$ac_cv_prog_MIG"; then
19240  ac_ct_MIG=$MIG
19241  # Extract the first word of "mig", so it can be a program name with args.
19242set dummy mig; ac_word=$2
19243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19244$as_echo_n "checking for $ac_word... " >&6; }
19245if ${ac_cv_prog_ac_ct_MIG+:} false; then :
19246  $as_echo_n "(cached) " >&6
19247else
19248  if test -n "$ac_ct_MIG"; then
19249  ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
19250else
19251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19252for as_dir in $PATH
19253do
19254  IFS=$as_save_IFS
19255  test -z "$as_dir" && as_dir=.
19256    for ac_exec_ext in '' $ac_executable_extensions; do
19257  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19258    ac_cv_prog_ac_ct_MIG="mig"
19259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19260    break 2
19261  fi
19262done
19263  done
19264IFS=$as_save_IFS
19265
19266fi
19267fi
19268ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
19269if test -n "$ac_ct_MIG"; then
19270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
19271$as_echo "$ac_ct_MIG" >&6; }
19272else
19273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19274$as_echo "no" >&6; }
19275fi
19276
19277  if test "x$ac_ct_MIG" = x; then
19278    MIG=""
19279  else
19280    case $cross_compiling:$ac_tool_warned in
19281yes:)
19282{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19284ac_tool_warned=yes ;;
19285esac
19286    MIG=$ac_ct_MIG
19287  fi
19288else
19289  MIG="$ac_cv_prog_MIG"
19290fi
19291
19292    if test x"$MIG" = x; then
19293      as_fn_error $? "MIG not found but required for $host hosts" "$LINENO" 5
19294    fi
19295    ;;
19296esac
19297
19298# ---------------------- #
19299# Checks for libraries.  #
19300# ---------------------- #
19301
19302# We might need to link with -lm; most simulators need it.
19303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
19304$as_echo_n "checking for main in -lm... " >&6; }
19305if ${ac_cv_lib_m_main+:} false; then :
19306  $as_echo_n "(cached) " >&6
19307else
19308  ac_check_lib_save_LIBS=$LIBS
19309LIBS="-lm  $LIBS"
19310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19311/* end confdefs.h.  */
19312
19313
19314int
19315main ()
19316{
19317return main ();
19318  ;
19319  return 0;
19320}
19321_ACEOF
19322if ac_fn_c_try_link "$LINENO"; then :
19323  ac_cv_lib_m_main=yes
19324else
19325  ac_cv_lib_m_main=no
19326fi
19327rm -f core conftest.err conftest.$ac_objext \
19328    conftest$ac_exeext conftest.$ac_ext
19329LIBS=$ac_check_lib_save_LIBS
19330fi
19331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
19332$as_echo "$ac_cv_lib_m_main" >&6; }
19333if test "x$ac_cv_lib_m_main" = xyes; then :
19334  cat >>confdefs.h <<_ACEOF
19335#define HAVE_LIBM 1
19336_ACEOF
19337
19338  LIBS="-lm $LIBS"
19339
19340fi
19341
19342
19343# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
19344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
19345$as_echo_n "checking for library containing gethostbyname... " >&6; }
19346if ${ac_cv_search_gethostbyname+:} false; then :
19347  $as_echo_n "(cached) " >&6
19348else
19349  ac_func_search_save_LIBS=$LIBS
19350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19351/* end confdefs.h.  */
19352
19353/* Override any GCC internal prototype to avoid an error.
19354   Use char because int might match the return type of a GCC
19355   builtin and then its argument prototype would still apply.  */
19356#ifdef __cplusplus
19357extern "C"
19358#endif
19359char gethostbyname ();
19360int
19361main ()
19362{
19363return gethostbyname ();
19364  ;
19365  return 0;
19366}
19367_ACEOF
19368for ac_lib in '' nsl; do
19369  if test -z "$ac_lib"; then
19370    ac_res="none required"
19371  else
19372    ac_res=-l$ac_lib
19373    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19374  fi
19375  if ac_fn_c_try_link "$LINENO"; then :
19376  ac_cv_search_gethostbyname=$ac_res
19377fi
19378rm -f core conftest.err conftest.$ac_objext \
19379    conftest$ac_exeext
19380  if ${ac_cv_search_gethostbyname+:} false; then :
19381  break
19382fi
19383done
19384if ${ac_cv_search_gethostbyname+:} false; then :
19385
19386else
19387  ac_cv_search_gethostbyname=no
19388fi
19389rm conftest.$ac_ext
19390LIBS=$ac_func_search_save_LIBS
19391fi
19392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
19393$as_echo "$ac_cv_search_gethostbyname" >&6; }
19394ac_res=$ac_cv_search_gethostbyname
19395if test "$ac_res" != no; then :
19396  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19397
19398fi
19399
19400
19401# Some systems (e.g. Solaris) have `socketpair' in libsocket.
19402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
19403$as_echo_n "checking for library containing socketpair... " >&6; }
19404if ${ac_cv_search_socketpair+:} false; then :
19405  $as_echo_n "(cached) " >&6
19406else
19407  ac_func_search_save_LIBS=$LIBS
19408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19409/* end confdefs.h.  */
19410
19411/* Override any GCC internal prototype to avoid an error.
19412   Use char because int might match the return type of a GCC
19413   builtin and then its argument prototype would still apply.  */
19414#ifdef __cplusplus
19415extern "C"
19416#endif
19417char socketpair ();
19418int
19419main ()
19420{
19421return socketpair ();
19422  ;
19423  return 0;
19424}
19425_ACEOF
19426for ac_lib in '' socket; do
19427  if test -z "$ac_lib"; then
19428    ac_res="none required"
19429  else
19430    ac_res=-l$ac_lib
19431    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19432  fi
19433  if ac_fn_c_try_link "$LINENO"; then :
19434  ac_cv_search_socketpair=$ac_res
19435fi
19436rm -f core conftest.err conftest.$ac_objext \
19437    conftest$ac_exeext
19438  if ${ac_cv_search_socketpair+:} false; then :
19439  break
19440fi
19441done
19442if ${ac_cv_search_socketpair+:} false; then :
19443
19444else
19445  ac_cv_search_socketpair=no
19446fi
19447rm conftest.$ac_ext
19448LIBS=$ac_func_search_save_LIBS
19449fi
19450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
19451$as_echo "$ac_cv_search_socketpair" >&6; }
19452ac_res=$ac_cv_search_socketpair
19453if test "$ac_res" != no; then :
19454  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19455
19456fi
19457
19458
19459# Link in zlib/zstd if we can.  This allows us to read compressed debug
19460# sections.
19461
19462  # Use the system's zlib library.
19463  zlibdir="-L\$(top_builddir)/../zlib"
19464  zlibinc="-I\$(top_srcdir)/../zlib"
19465
19466# Check whether --with-system-zlib was given.
19467if test "${with_system_zlib+set}" = set; then :
19468  withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
19469    zlibdir=
19470    zlibinc=
19471  fi
19472
19473fi
19474
19475
19476
19477
19478
19479
19480# Check whether --with-zstd was given.
19481if test "${with_zstd+set}" = set; then :
19482  withval=$with_zstd;
19483else
19484  with_zstd=auto
19485fi
19486
19487
19488if test "$with_zstd" != no; then :
19489
19490pkg_failed=no
19491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
19492$as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
19493
19494if test -n "$ZSTD_CFLAGS"; then
19495    pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
19496 elif test -n "$PKG_CONFIG"; then
19497    if test -n "$PKG_CONFIG" && \
19498    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19499  ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19500  ac_status=$?
19501  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19502  test $ac_status = 0; }; then
19503  pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
19504		      test "x$?" != "x0" && pkg_failed=yes
19505else
19506  pkg_failed=yes
19507fi
19508 else
19509    pkg_failed=untried
19510fi
19511if test -n "$ZSTD_LIBS"; then
19512    pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
19513 elif test -n "$PKG_CONFIG"; then
19514    if test -n "$PKG_CONFIG" && \
19515    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19516  ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19517  ac_status=$?
19518  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19519  test $ac_status = 0; }; then
19520  pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
19521		      test "x$?" != "x0" && pkg_failed=yes
19522else
19523  pkg_failed=yes
19524fi
19525 else
19526    pkg_failed=untried
19527fi
19528
19529if test $pkg_failed = no; then
19530  pkg_save_LDFLAGS="$LDFLAGS"
19531  LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
19532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19533/* end confdefs.h.  */
19534
19535int
19536main ()
19537{
19538
19539  ;
19540  return 0;
19541}
19542_ACEOF
19543if ac_fn_c_try_link "$LINENO"; then :
19544
19545else
19546  pkg_failed=yes
19547fi
19548rm -f core conftest.err conftest.$ac_objext \
19549    conftest$ac_exeext conftest.$ac_ext
19550  LDFLAGS=$pkg_save_LDFLAGS
19551fi
19552
19553
19554
19555if test $pkg_failed = yes; then
19556        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19557$as_echo "no" >&6; }
19558
19559if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19560        _pkg_short_errors_supported=yes
19561else
19562        _pkg_short_errors_supported=no
19563fi
19564        if test $_pkg_short_errors_supported = yes; then
19565	        ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19566        else
19567	        ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19568        fi
19569	# Put the nasty error message in config.log where it belongs
19570	echo "$ZSTD_PKG_ERRORS" >&5
19571
19572
19573    if test "$with_zstd" = yes; then
19574      as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19575    fi
19576
19577elif test $pkg_failed = untried; then
19578        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19579$as_echo "no" >&6; }
19580
19581    if test "$with_zstd" = yes; then
19582      as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19583    fi
19584
19585else
19586	ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
19587	ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
19588        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19589$as_echo "yes" >&6; }
19590
19591
19592$as_echo "#define HAVE_ZSTD 1" >>confdefs.h
19593
19594
19595fi
19596
19597fi
19598
19599
19600
19601      if test "X$prefix" = "XNONE"; then
19602    acl_final_prefix="$ac_default_prefix"
19603  else
19604    acl_final_prefix="$prefix"
19605  fi
19606  if test "X$exec_prefix" = "XNONE"; then
19607    acl_final_exec_prefix='${prefix}'
19608  else
19609    acl_final_exec_prefix="$exec_prefix"
19610  fi
19611  acl_save_prefix="$prefix"
19612  prefix="$acl_final_prefix"
19613  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
19614  prefix="$acl_save_prefix"
19615
19616
19617# Check whether --with-gnu-ld was given.
19618if test "${with_gnu_ld+set}" = set; then :
19619  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19620else
19621  with_gnu_ld=no
19622fi
19623
19624# Prepare PATH_SEPARATOR.
19625# The user is always right.
19626if test "${PATH_SEPARATOR+set}" != set; then
19627  echo "#! /bin/sh" >conf$$.sh
19628  echo  "exit 0"   >>conf$$.sh
19629  chmod +x conf$$.sh
19630  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19631    PATH_SEPARATOR=';'
19632  else
19633    PATH_SEPARATOR=:
19634  fi
19635  rm -f conf$$.sh
19636fi
19637ac_prog=ld
19638if test "$GCC" = yes; then
19639  # Check if gcc -print-prog-name=ld gives a path.
19640  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
19641$as_echo_n "checking for ld used by GCC... " >&6; }
19642  case $host in
19643  *-*-mingw*)
19644    # gcc leaves a trailing carriage return which upsets mingw
19645    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19646  *)
19647    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19648  esac
19649  case $ac_prog in
19650    # Accept absolute paths.
19651    [\\/]* | [A-Za-z]:[\\/]*)
19652      re_direlt='/[^/][^/]*/\.\./'
19653      # Canonicalize the path of ld
19654      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
19655      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
19656	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
19657      done
19658      test -z "$LD" && LD="$ac_prog"
19659      ;;
19660  "")
19661    # If it fails, then pretend we aren't using GCC.
19662    ac_prog=ld
19663    ;;
19664  *)
19665    # If it is relative, then search for the first ld in PATH.
19666    with_gnu_ld=unknown
19667    ;;
19668  esac
19669elif test "$with_gnu_ld" = yes; then
19670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19671$as_echo_n "checking for GNU ld... " >&6; }
19672else
19673  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19674$as_echo_n "checking for non-GNU ld... " >&6; }
19675fi
19676if ${acl_cv_path_LD+:} false; then :
19677  $as_echo_n "(cached) " >&6
19678else
19679  if test -z "$LD"; then
19680  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
19681  for ac_dir in $PATH; do
19682    test -z "$ac_dir" && ac_dir=.
19683    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19684      acl_cv_path_LD="$ac_dir/$ac_prog"
19685      # Check to see if the program is GNU ld.  I'd rather use --version,
19686      # but apparently some GNU ld's only accept -v.
19687      # Break only if it was the GNU/non-GNU ld that we prefer.
19688      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
19689	test "$with_gnu_ld" != no && break
19690      else
19691	test "$with_gnu_ld" != yes && break
19692      fi
19693    fi
19694  done
19695  IFS="$ac_save_ifs"
19696else
19697  acl_cv_path_LD="$LD" # Let the user override the test with a path.
19698fi
19699fi
19700
19701LD="$acl_cv_path_LD"
19702if test -n "$LD"; then
19703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19704$as_echo "$LD" >&6; }
19705else
19706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19707$as_echo "no" >&6; }
19708fi
19709test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19711$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19712if ${acl_cv_prog_gnu_ld+:} false; then :
19713  $as_echo_n "(cached) " >&6
19714else
19715  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
19716if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
19717  acl_cv_prog_gnu_ld=yes
19718else
19719  acl_cv_prog_gnu_ld=no
19720fi
19721fi
19722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
19723$as_echo "$acl_cv_prog_gnu_ld" >&6; }
19724with_gnu_ld=$acl_cv_prog_gnu_ld
19725
19726
19727
19728                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
19729$as_echo_n "checking for shared library run path origin... " >&6; }
19730if ${acl_cv_rpath+:} false; then :
19731  $as_echo_n "(cached) " >&6
19732else
19733
19734    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
19735    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
19736    . ./conftest.sh
19737    rm -f ./conftest.sh
19738    acl_cv_rpath=done
19739
19740fi
19741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
19742$as_echo "$acl_cv_rpath" >&6; }
19743  wl="$acl_cv_wl"
19744  libext="$acl_cv_libext"
19745  shlibext="$acl_cv_shlibext"
19746  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
19747  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
19748  hardcode_direct="$acl_cv_hardcode_direct"
19749  hardcode_minus_L="$acl_cv_hardcode_minus_L"
19750    # Check whether --enable-rpath was given.
19751if test "${enable_rpath+set}" = set; then :
19752  enableval=$enable_rpath; :
19753else
19754  enable_rpath=yes
19755fi
19756
19757
19758
19759
19760
19761
19762
19763
19764    use_additional=yes
19765
19766  acl_save_prefix="$prefix"
19767  prefix="$acl_final_prefix"
19768  acl_save_exec_prefix="$exec_prefix"
19769  exec_prefix="$acl_final_exec_prefix"
19770
19771    eval additional_includedir=\"$includedir\"
19772    eval additional_libdir=\"$libdir\"
19773
19774  exec_prefix="$acl_save_exec_prefix"
19775  prefix="$acl_save_prefix"
19776
19777
19778# Check whether --with-libiconv-prefix was given.
19779if test "${with_libiconv_prefix+set}" = set; then :
19780  withval=$with_libiconv_prefix;
19781    if test "X$withval" = "Xno"; then
19782      use_additional=no
19783    else
19784      if test "X$withval" = "X"; then
19785
19786  acl_save_prefix="$prefix"
19787  prefix="$acl_final_prefix"
19788  acl_save_exec_prefix="$exec_prefix"
19789  exec_prefix="$acl_final_exec_prefix"
19790
19791          eval additional_includedir=\"$includedir\"
19792          eval additional_libdir=\"$libdir\"
19793
19794  exec_prefix="$acl_save_exec_prefix"
19795  prefix="$acl_save_prefix"
19796
19797      else
19798        additional_includedir="$withval/include"
19799        additional_libdir="$withval/lib"
19800      fi
19801    fi
19802
19803fi
19804
19805
19806# Check whether --with-libiconv-type was given.
19807if test "${with_libiconv_type+set}" = set; then :
19808  withval=$with_libiconv_type;  with_libiconv_type=$withval
19809else
19810   with_libiconv_type=auto
19811fi
19812
19813  lib_type=`eval echo \$with_libiconv_type`
19814
19815      LIBICONV=
19816  LTLIBICONV=
19817  INCICONV=
19818  rpathdirs=
19819  ltrpathdirs=
19820  names_already_handled=
19821  names_next_round='iconv '
19822  while test -n "$names_next_round"; do
19823    names_this_round="$names_next_round"
19824    names_next_round=
19825    for name in $names_this_round; do
19826      already_handled=
19827      for n in $names_already_handled; do
19828        if test "$n" = "$name"; then
19829          already_handled=yes
19830          break
19831        fi
19832      done
19833      if test -z "$already_handled"; then
19834        names_already_handled="$names_already_handled $name"
19835                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19836        eval value=\"\$HAVE_LIB$uppername\"
19837        if test -n "$value"; then
19838          if test "$value" = yes; then
19839            eval value=\"\$LIB$uppername\"
19840            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
19841            eval value=\"\$LTLIB$uppername\"
19842            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
19843          else
19844                                    :
19845          fi
19846        else
19847                              found_dir=
19848          found_la=
19849          found_so=
19850          found_a=
19851          if test $use_additional = yes; then
19852            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
19853              found_dir="$additional_libdir"
19854              found_so="$additional_libdir/lib$name.$shlibext"
19855              if test -f "$additional_libdir/lib$name.la"; then
19856                found_la="$additional_libdir/lib$name.la"
19857              fi
19858            elif test x$lib_type != xshared; then
19859              if test -f "$additional_libdir/lib$name.$libext"; then
19860                found_dir="$additional_libdir"
19861                found_a="$additional_libdir/lib$name.$libext"
19862                if test -f "$additional_libdir/lib$name.la"; then
19863                  found_la="$additional_libdir/lib$name.la"
19864                fi
19865              fi
19866            fi
19867          fi
19868          if test "X$found_dir" = "X"; then
19869            for x in $LDFLAGS $LTLIBICONV; do
19870
19871  acl_save_prefix="$prefix"
19872  prefix="$acl_final_prefix"
19873  acl_save_exec_prefix="$exec_prefix"
19874  exec_prefix="$acl_final_exec_prefix"
19875  eval x=\"$x\"
19876  exec_prefix="$acl_save_exec_prefix"
19877  prefix="$acl_save_prefix"
19878
19879              case "$x" in
19880                -L*)
19881                  dir=`echo "X$x" | sed -e 's/^X-L//'`
19882                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
19883                    found_dir="$dir"
19884                    found_so="$dir/lib$name.$shlibext"
19885                    if test -f "$dir/lib$name.la"; then
19886                      found_la="$dir/lib$name.la"
19887                    fi
19888                  elif test x$lib_type != xshared; then
19889                    if test -f "$dir/lib$name.$libext"; then
19890                      found_dir="$dir"
19891                      found_a="$dir/lib$name.$libext"
19892                      if test -f "$dir/lib$name.la"; then
19893                        found_la="$dir/lib$name.la"
19894                      fi
19895                    fi
19896                  fi
19897                  ;;
19898              esac
19899              if test "X$found_dir" != "X"; then
19900                break
19901              fi
19902            done
19903          fi
19904          if test "X$found_dir" != "X"; then
19905                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
19906            if test "X$found_so" != "X"; then
19907                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
19908                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19909              else
19910                                                                                haveit=
19911                for x in $ltrpathdirs; do
19912                  if test "X$x" = "X$found_dir"; then
19913                    haveit=yes
19914                    break
19915                  fi
19916                done
19917                if test -z "$haveit"; then
19918                  ltrpathdirs="$ltrpathdirs $found_dir"
19919                fi
19920                                if test "$hardcode_direct" = yes; then
19921                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19922                else
19923                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
19924                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19925                                                            haveit=
19926                    for x in $rpathdirs; do
19927                      if test "X$x" = "X$found_dir"; then
19928                        haveit=yes
19929                        break
19930                      fi
19931                    done
19932                    if test -z "$haveit"; then
19933                      rpathdirs="$rpathdirs $found_dir"
19934                    fi
19935                  else
19936                                                                                haveit=
19937                    for x in $LDFLAGS $LIBICONV; do
19938
19939  acl_save_prefix="$prefix"
19940  prefix="$acl_final_prefix"
19941  acl_save_exec_prefix="$exec_prefix"
19942  exec_prefix="$acl_final_exec_prefix"
19943  eval x=\"$x\"
19944  exec_prefix="$acl_save_exec_prefix"
19945  prefix="$acl_save_prefix"
19946
19947                      if test "X$x" = "X-L$found_dir"; then
19948                        haveit=yes
19949                        break
19950                      fi
19951                    done
19952                    if test -z "$haveit"; then
19953                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
19954                    fi
19955                    if test "$hardcode_minus_L" != no; then
19956                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19957                    else
19958                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19959                    fi
19960                  fi
19961                fi
19962              fi
19963            else
19964              if test "X$found_a" != "X"; then
19965                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
19966              else
19967                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
19968              fi
19969            fi
19970                        additional_includedir=
19971            case "$found_dir" in
19972              */lib | */lib/)
19973                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19974                additional_includedir="$basedir/include"
19975                ;;
19976            esac
19977            if test "X$additional_includedir" != "X"; then
19978                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
19979                haveit=
19980                if test "X$additional_includedir" = "X/usr/local/include"; then
19981                  if test -n "$GCC"; then
19982                    case $host_os in
19983                      linux*) haveit=yes;;
19984                    esac
19985                  fi
19986                fi
19987                if test -z "$haveit"; then
19988                  for x in $CPPFLAGS $INCICONV; do
19989
19990  acl_save_prefix="$prefix"
19991  prefix="$acl_final_prefix"
19992  acl_save_exec_prefix="$exec_prefix"
19993  exec_prefix="$acl_final_exec_prefix"
19994  eval x=\"$x\"
19995  exec_prefix="$acl_save_exec_prefix"
19996  prefix="$acl_save_prefix"
19997
19998                    if test "X$x" = "X-I$additional_includedir"; then
19999                      haveit=yes
20000                      break
20001                    fi
20002                  done
20003                  if test -z "$haveit"; then
20004                    if test -d "$additional_includedir"; then
20005                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20006                    fi
20007                  fi
20008                fi
20009              fi
20010            fi
20011                        if test -n "$found_la"; then
20012                                                        save_libdir="$libdir"
20013              case "$found_la" in
20014                */* | *\\*) . "$found_la" ;;
20015                *) . "./$found_la" ;;
20016              esac
20017              libdir="$save_libdir"
20018                            for dep in $dependency_libs; do
20019                case "$dep" in
20020                  -L*)
20021                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20022                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
20023                      haveit=
20024                      if test "X$additional_libdir" = "X/usr/local/lib"; then
20025                        if test -n "$GCC"; then
20026                          case $host_os in
20027                            linux*) haveit=yes;;
20028                          esac
20029                        fi
20030                      fi
20031                      if test -z "$haveit"; then
20032                        haveit=
20033                        for x in $LDFLAGS $LIBICONV; do
20034
20035  acl_save_prefix="$prefix"
20036  prefix="$acl_final_prefix"
20037  acl_save_exec_prefix="$exec_prefix"
20038  exec_prefix="$acl_final_exec_prefix"
20039  eval x=\"$x\"
20040  exec_prefix="$acl_save_exec_prefix"
20041  prefix="$acl_save_prefix"
20042
20043                          if test "X$x" = "X-L$additional_libdir"; then
20044                            haveit=yes
20045                            break
20046                          fi
20047                        done
20048                        if test -z "$haveit"; then
20049                          if test -d "$additional_libdir"; then
20050                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
20051                          fi
20052                        fi
20053                        haveit=
20054                        for x in $LDFLAGS $LTLIBICONV; do
20055
20056  acl_save_prefix="$prefix"
20057  prefix="$acl_final_prefix"
20058  acl_save_exec_prefix="$exec_prefix"
20059  exec_prefix="$acl_final_exec_prefix"
20060  eval x=\"$x\"
20061  exec_prefix="$acl_save_exec_prefix"
20062  prefix="$acl_save_prefix"
20063
20064                          if test "X$x" = "X-L$additional_libdir"; then
20065                            haveit=yes
20066                            break
20067                          fi
20068                        done
20069                        if test -z "$haveit"; then
20070                          if test -d "$additional_libdir"; then
20071                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
20072                          fi
20073                        fi
20074                      fi
20075                    fi
20076                    ;;
20077                  -R*)
20078                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
20079                    if test "$enable_rpath" != no; then
20080                                                                  haveit=
20081                      for x in $rpathdirs; do
20082                        if test "X$x" = "X$dir"; then
20083                          haveit=yes
20084                          break
20085                        fi
20086                      done
20087                      if test -z "$haveit"; then
20088                        rpathdirs="$rpathdirs $dir"
20089                      fi
20090                                                                  haveit=
20091                      for x in $ltrpathdirs; do
20092                        if test "X$x" = "X$dir"; then
20093                          haveit=yes
20094                          break
20095                        fi
20096                      done
20097                      if test -z "$haveit"; then
20098                        ltrpathdirs="$ltrpathdirs $dir"
20099                      fi
20100                    fi
20101                    ;;
20102                  -l*)
20103                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20104                    ;;
20105                  *.la)
20106                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20107                    ;;
20108                  *)
20109                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
20110                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20111                    ;;
20112                esac
20113              done
20114            fi
20115          else
20116                                                            if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
20117              LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20118              LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20119            else
20120              LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
20121              LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
20122            fi
20123          fi
20124        fi
20125      fi
20126    done
20127  done
20128  if test "X$rpathdirs" != "X"; then
20129    if test -n "$hardcode_libdir_separator"; then
20130                        alldirs=
20131      for found_dir in $rpathdirs; do
20132        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20133      done
20134            acl_save_libdir="$libdir"
20135      libdir="$alldirs"
20136      eval flag=\"$hardcode_libdir_flag_spec\"
20137      libdir="$acl_save_libdir"
20138      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20139    else
20140            for found_dir in $rpathdirs; do
20141        acl_save_libdir="$libdir"
20142        libdir="$found_dir"
20143        eval flag=\"$hardcode_libdir_flag_spec\"
20144        libdir="$acl_save_libdir"
20145        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20146      done
20147    fi
20148  fi
20149  if test "X$ltrpathdirs" != "X"; then
20150            for found_dir in $ltrpathdirs; do
20151      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20152    done
20153  fi
20154
20155
20156
20157
20158
20159
20160
20161  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20162$as_echo_n "checking for iconv... " >&6; }
20163if ${am_cv_func_iconv+:} false; then :
20164  $as_echo_n "(cached) " >&6
20165else
20166
20167    am_cv_func_iconv="no, consider installing GNU libiconv"
20168    am_cv_lib_iconv=no
20169                    am_save_CPPFLAGS="$CPPFLAGS"
20170    CPPFLAGS="$CPPFLAGS $INCICONV"
20171    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20172/* end confdefs.h.  */
20173#include <stdlib.h>
20174#include <iconv.h>
20175int
20176main ()
20177{
20178iconv_t cd = iconv_open("","");
20179       iconv(cd,NULL,NULL,NULL,NULL);
20180       iconv_close(cd);
20181  ;
20182  return 0;
20183}
20184_ACEOF
20185if ac_fn_c_try_link "$LINENO"; then :
20186  am_cv_func_iconv=yes
20187fi
20188rm -f core conftest.err conftest.$ac_objext \
20189    conftest$ac_exeext conftest.$ac_ext
20190    CPPFLAGS="$am_save_CPPFLAGS"
20191
20192    if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
20193      for _libs in .libs _libs; do
20194        am_save_CPPFLAGS="$CPPFLAGS"
20195        am_save_LIBS="$LIBS"
20196        CPPFLAGS="$CPPFLAGS -I../libiconv/include"
20197        LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
20198        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20199/* end confdefs.h.  */
20200#include <stdlib.h>
20201#include <iconv.h>
20202int
20203main ()
20204{
20205iconv_t cd = iconv_open("","");
20206           iconv(cd,NULL,NULL,NULL,NULL);
20207           iconv_close(cd);
20208  ;
20209  return 0;
20210}
20211_ACEOF
20212if ac_fn_c_try_link "$LINENO"; then :
20213  INCICONV="-I../libiconv/include"
20214          LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
20215          LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
20216          am_cv_lib_iconv=yes
20217          am_cv_func_iconv=yes
20218fi
20219rm -f core conftest.err conftest.$ac_objext \
20220    conftest$ac_exeext conftest.$ac_ext
20221        CPPFLAGS="$am_save_CPPFLAGS"
20222        LIBS="$am_save_LIBS"
20223        if test "$am_cv_func_iconv" = "yes"; then
20224          break
20225        fi
20226      done
20227    fi
20228
20229    if test "$am_cv_func_iconv" != yes; then
20230      am_save_CPPFLAGS="$CPPFLAGS"
20231      am_save_LIBS="$LIBS"
20232      CPPFLAGS="$CPPFLAGS $INCICONV"
20233      LIBS="$LIBS $LIBICONV"
20234      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20235/* end confdefs.h.  */
20236#include <stdlib.h>
20237#include <iconv.h>
20238int
20239main ()
20240{
20241iconv_t cd = iconv_open("","");
20242         iconv(cd,NULL,NULL,NULL,NULL);
20243         iconv_close(cd);
20244  ;
20245  return 0;
20246}
20247_ACEOF
20248if ac_fn_c_try_link "$LINENO"; then :
20249  am_cv_lib_iconv=yes
20250        am_cv_func_iconv=yes
20251fi
20252rm -f core conftest.err conftest.$ac_objext \
20253    conftest$ac_exeext conftest.$ac_ext
20254      CPPFLAGS="$am_save_CPPFLAGS"
20255      LIBS="$am_save_LIBS"
20256    fi
20257
20258fi
20259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20260$as_echo "$am_cv_func_iconv" >&6; }
20261  if test "$am_cv_func_iconv" = yes; then
20262
20263$as_echo "#define HAVE_ICONV 1" >>confdefs.h
20264
20265  fi
20266  if test "$am_cv_lib_iconv" = yes; then
20267
20268  for element in $INCICONV; do
20269    haveit=
20270    for x in $CPPFLAGS; do
20271
20272  acl_save_prefix="$prefix"
20273  prefix="$acl_final_prefix"
20274  acl_save_exec_prefix="$exec_prefix"
20275  exec_prefix="$acl_final_exec_prefix"
20276  eval x=\"$x\"
20277  exec_prefix="$acl_save_exec_prefix"
20278  prefix="$acl_save_prefix"
20279
20280      if test "X$x" = "X$element"; then
20281        haveit=yes
20282        break
20283      fi
20284    done
20285    if test -z "$haveit"; then
20286      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20287    fi
20288  done
20289
20290    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20291$as_echo_n "checking how to link with libiconv... " >&6; }
20292    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20293$as_echo "$LIBICONV" >&6; }
20294  else
20295    LIBICONV=
20296    LTLIBICONV=
20297  fi
20298
20299
20300
20301  if test "$am_cv_func_iconv" = yes; then
20302    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20303$as_echo_n "checking for iconv declaration... " >&6; }
20304    if ${am_cv_proto_iconv+:} false; then :
20305  $as_echo_n "(cached) " >&6
20306else
20307
20308      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20309/* end confdefs.h.  */
20310
20311#include <stdlib.h>
20312#include <iconv.h>
20313extern
20314#ifdef __cplusplus
20315"C"
20316#endif
20317#if defined(__STDC__) || defined(__cplusplus)
20318size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20319#else
20320size_t iconv();
20321#endif
20322
20323int
20324main ()
20325{
20326
20327  ;
20328  return 0;
20329}
20330_ACEOF
20331if ac_fn_c_try_compile "$LINENO"; then :
20332  am_cv_proto_iconv_arg1=""
20333else
20334  am_cv_proto_iconv_arg1="const"
20335fi
20336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20337      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
20338fi
20339
20340    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20341    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20342         }$am_cv_proto_iconv" >&5
20343$as_echo "${ac_t:-
20344         }$am_cv_proto_iconv" >&6; }
20345
20346cat >>confdefs.h <<_ACEOF
20347#define ICONV_CONST $am_cv_proto_iconv_arg1
20348_ACEOF
20349
20350  fi
20351
20352
20353# GDB may fork/exec the iconv program to get the list of supported character
20354# sets.  Allow the user to specify where to find it.
20355# There are several factors affecting the choice of option name:
20356# - There is already --with-libiconv-prefix but we can't use it, it specifies
20357#   the build-time location of libiconv files.
20358# - The program we need to find is iconv, which comes with glibc.  The user
20359#   doesn't necessarily have libiconv installed.  Therefore naming this
20360#   --with-libiconv-foo feels wrong.
20361# - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
20362#   defined to work on directories not files (though it really doesn't know
20363#   the difference).
20364# - Calling this --with-iconv-prefix is perceived to cause too much confusion
20365#   with --with-libiconv-prefix.
20366# Putting these together is why the option name is --with-iconv-bin.
20367
20368
20369# Check whether --with-iconv-bin was given.
20370if test "${with_iconv_bin+set}" = set; then :
20371  withval=$with_iconv_bin; iconv_bin="${withval}"
20372
20373cat >>confdefs.h <<_ACEOF
20374#define ICONV_BIN "${iconv_bin}"
20375_ACEOF
20376
20377
20378  if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
20379     if test "x$prefix" = xNONE; then
20380     	test_prefix=/usr/local
20381     else
20382	test_prefix=$prefix
20383     fi
20384  else
20385     test_prefix=$exec_prefix
20386  fi
20387  value=0
20388  case ${iconv_bin} in
20389     "${test_prefix}"|"${test_prefix}/"*|\
20390	'${exec_prefix}'|'${exec_prefix}/'*)
20391     value=1
20392     ;;
20393  esac
20394
20395cat >>confdefs.h <<_ACEOF
20396#define ICONV_BIN_RELOCATABLE $value
20397_ACEOF
20398
20399
20400
20401fi
20402
20403
20404# For the TUI, we need enhanced curses functionality.
20405if test x"$enable_tui" != xno; then
20406  prefer_curses=yes
20407fi
20408
20409curses_found=no
20410if test x"$prefer_curses" = xyes; then
20411  # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
20412  # curses library because the latter might not provide all the
20413  # functionality we need.  However, this leads to problems on systems
20414  # where the linker searches /usr/local/lib, but the compiler doesn't
20415  # search /usr/local/include, if ncurses is installed in /usr/local.  A
20416  # default installation of ncurses on alpha*-dec-osf* will lead to such
20417  # a situation.
20418  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
20419$as_echo_n "checking for library containing waddstr... " >&6; }
20420if ${ac_cv_search_waddstr+:} false; then :
20421  $as_echo_n "(cached) " >&6
20422else
20423  ac_func_search_save_LIBS=$LIBS
20424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20425/* end confdefs.h.  */
20426
20427/* Override any GCC internal prototype to avoid an error.
20428   Use char because int might match the return type of a GCC
20429   builtin and then its argument prototype would still apply.  */
20430#ifdef __cplusplus
20431extern "C"
20432#endif
20433char waddstr ();
20434int
20435main ()
20436{
20437return waddstr ();
20438  ;
20439  return 0;
20440}
20441_ACEOF
20442for ac_lib in '' ncursesw ncurses cursesX curses; do
20443  if test -z "$ac_lib"; then
20444    ac_res="none required"
20445  else
20446    ac_res=-l$ac_lib
20447    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20448  fi
20449  if ac_fn_c_try_link "$LINENO"; then :
20450  ac_cv_search_waddstr=$ac_res
20451fi
20452rm -f core conftest.err conftest.$ac_objext \
20453    conftest$ac_exeext
20454  if ${ac_cv_search_waddstr+:} false; then :
20455  break
20456fi
20457done
20458if ${ac_cv_search_waddstr+:} false; then :
20459
20460else
20461  ac_cv_search_waddstr=no
20462fi
20463rm conftest.$ac_ext
20464LIBS=$ac_func_search_save_LIBS
20465fi
20466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
20467$as_echo "$ac_cv_search_waddstr" >&6; }
20468ac_res=$ac_cv_search_waddstr
20469if test "$ac_res" != no; then :
20470  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20471
20472fi
20473
20474
20475  if test "$ac_cv_search_waddstr" != no; then
20476    curses_found=yes
20477  fi
20478fi
20479
20480# Check whether we should enable the TUI, but only do so if we really
20481# can.
20482if test x"$enable_tui" != xno; then
20483  if test -d "$srcdir/tui"; then
20484    if test "$curses_found" != no; then
20485      CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
20486      CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
20487      CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
20488      ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
20489    else
20490      if test x"$enable_tui" = xyes; then
20491	as_fn_error $? "no enhanced curses library found; disable TUI" "$LINENO" 5
20492      else
20493	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
20494$as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
20495      fi
20496    fi
20497  fi
20498fi
20499
20500# Since GDB uses Readline, we need termcap functionality.  In many
20501# cases this will be provided by the curses library, but some systems
20502# have a separate termcap library, or no curses library at all.
20503
20504case $host_os in
20505  cygwin*)
20506    if test -d "$srcdir/libtermcap"; then
20507      LIBS="../libtermcap/libtermcap.a $LIBS"
20508      ac_cv_search_tgetent="../libtermcap/libtermcap.a"
20509    fi ;;
20510  go32* | *djgpp*)
20511    ac_cv_search_tgetent="none required"
20512    ;;
20513esac
20514
20515# These are the libraries checked by Readline.
20516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
20517$as_echo_n "checking for library containing tgetent... " >&6; }
20518if ${ac_cv_search_tgetent+:} false; then :
20519  $as_echo_n "(cached) " >&6
20520else
20521  ac_func_search_save_LIBS=$LIBS
20522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20523/* end confdefs.h.  */
20524
20525/* Override any GCC internal prototype to avoid an error.
20526   Use char because int might match the return type of a GCC
20527   builtin and then its argument prototype would still apply.  */
20528#ifdef __cplusplus
20529extern "C"
20530#endif
20531char tgetent ();
20532int
20533main ()
20534{
20535return tgetent ();
20536  ;
20537  return 0;
20538}
20539_ACEOF
20540for ac_lib in '' termcap tinfow tinfo curses ncursesw ncurses; do
20541  if test -z "$ac_lib"; then
20542    ac_res="none required"
20543  else
20544    ac_res=-l$ac_lib
20545    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20546  fi
20547  if ac_fn_c_try_link "$LINENO"; then :
20548  ac_cv_search_tgetent=$ac_res
20549fi
20550rm -f core conftest.err conftest.$ac_objext \
20551    conftest$ac_exeext
20552  if ${ac_cv_search_tgetent+:} false; then :
20553  break
20554fi
20555done
20556if ${ac_cv_search_tgetent+:} false; then :
20557
20558else
20559  ac_cv_search_tgetent=no
20560fi
20561rm conftest.$ac_ext
20562LIBS=$ac_func_search_save_LIBS
20563fi
20564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
20565$as_echo "$ac_cv_search_tgetent" >&6; }
20566ac_res=$ac_cv_search_tgetent
20567if test "$ac_res" != no; then :
20568  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20569
20570fi
20571
20572
20573if test "$ac_cv_search_tgetent" = no; then
20574  CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
20575fi
20576
20577
20578# Check whether --with-system-readline was given.
20579if test "${with_system_readline+set}" = set; then :
20580  withval=$with_system_readline;
20581fi
20582
20583
20584if test "$with_system_readline" = yes; then
20585  for ac_header in readline/readline.h
20586do :
20587  ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
20588if test "x$ac_cv_header_readline_readline_h" = xyes; then :
20589  cat >>confdefs.h <<_ACEOF
20590#define HAVE_READLINE_READLINE_H 1
20591_ACEOF
20592 readline_h=yes
20593else
20594  readline_h=no
20595fi
20596
20597done
20598
20599  if test "$readline_h" = "no"; then
20600    as_fn_error $? "readline development packages are probably missing" "$LINENO" 5
20601  fi
20602  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
20603$as_echo_n "checking whether system readline is new enough... " >&6; }
20604if ${gdb_cv_readline_ok+:} false; then :
20605  $as_echo_n "(cached) " >&6
20606else
20607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20608/* end confdefs.h.  */
20609#include <stdio.h>
20610	   #include <readline/readline.h>
20611int
20612main ()
20613{
20614#if RL_VERSION_MAJOR < 7
20615	   # error "readline version 7 required"
20616	   #endif
20617
20618  ;
20619  return 0;
20620}
20621_ACEOF
20622if ac_fn_c_try_compile "$LINENO"; then :
20623  gdb_cv_readline_ok=yes
20624else
20625  gdb_cv_readline_ok=no
20626
20627fi
20628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20629
20630fi
20631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
20632$as_echo "$gdb_cv_readline_ok" >&6; }
20633  if test "$gdb_cv_readline_ok" != yes; then
20634    as_fn_error $? "system readline is not new enough" "$LINENO" 5
20635  fi
20636
20637  READLINE=-lreadline
20638  READLINE_DEPS=
20639  READLINE_CFLAGS=
20640  READLINE_TEXI_INCFLAG=
20641  READLINE_DOC_SOURCE_INCLUDES='$(READLINE_SYSTEM_DOC_INCLUDES)'
20642else
20643  READLINE='$(READLINE_DIR)/libreadline.a'
20644  READLINE_DEPS='$(READLINE)'
20645  READLINE_CFLAGS='-I$(READLINE_SRC)/..'
20646  READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
20647  READLINE_DOC_SOURCE_INCLUDES='$(READLINE_INTREE_DOC_INCLUDES)'
20648fi
20649
20650
20651
20652
20653
20654
20655# Generate jit-reader.h
20656
20657# This is typedeffed to GDB_CORE_ADDR in jit-reader.h
20658TARGET_PTR=
20659
20660# The cast to long int works around a bug in the HP C Compiler
20661# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20662# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20663# This bug is HP SR number 8606223364.
20664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
20665$as_echo_n "checking size of unsigned long long... " >&6; }
20666if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
20667  $as_echo_n "(cached) " >&6
20668else
20669  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
20670
20671else
20672  if test "$ac_cv_type_unsigned_long_long" = yes; then
20673     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20674$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20675as_fn_error 77 "cannot compute sizeof (unsigned long long)
20676See \`config.log' for more details" "$LINENO" 5; }
20677   else
20678     ac_cv_sizeof_unsigned_long_long=0
20679   fi
20680fi
20681
20682fi
20683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
20684$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
20685
20686
20687
20688cat >>confdefs.h <<_ACEOF
20689#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
20690_ACEOF
20691
20692
20693# The cast to long int works around a bug in the HP C Compiler
20694# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20695# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20696# This bug is HP SR number 8606223364.
20697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
20698$as_echo_n "checking size of unsigned long... " >&6; }
20699if ${ac_cv_sizeof_unsigned_long+:} false; then :
20700  $as_echo_n "(cached) " >&6
20701else
20702  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
20703
20704else
20705  if test "$ac_cv_type_unsigned_long" = yes; then
20706     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20707$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20708as_fn_error 77 "cannot compute sizeof (unsigned long)
20709See \`config.log' for more details" "$LINENO" 5; }
20710   else
20711     ac_cv_sizeof_unsigned_long=0
20712   fi
20713fi
20714
20715fi
20716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
20717$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20718
20719
20720
20721cat >>confdefs.h <<_ACEOF
20722#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20723_ACEOF
20724
20725
20726# The cast to long int works around a bug in the HP C Compiler
20727# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20728# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20729# This bug is HP SR number 8606223364.
20730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
20731$as_echo_n "checking size of unsigned __int128... " >&6; }
20732if ${ac_cv_sizeof_unsigned___int128+:} false; then :
20733  $as_echo_n "(cached) " >&6
20734else
20735  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128"        "$ac_includes_default"; then :
20736
20737else
20738  if test "$ac_cv_type_unsigned___int128" = yes; then
20739     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20741as_fn_error 77 "cannot compute sizeof (unsigned __int128)
20742See \`config.log' for more details" "$LINENO" 5; }
20743   else
20744     ac_cv_sizeof_unsigned___int128=0
20745   fi
20746fi
20747
20748fi
20749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
20750$as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
20751
20752
20753
20754cat >>confdefs.h <<_ACEOF
20755#define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
20756_ACEOF
20757
20758
20759
20760if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
20761  TARGET_PTR="unsigned long"
20762elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
20763  TARGET_PTR="unsigned long long"
20764elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
20765  TARGET_PTR="unsigned __int128"
20766else
20767  TARGET_PTR="unsigned long"
20768fi
20769
20770
20771ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
20772
20773
20774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20775$as_echo_n "checking for library containing dlopen... " >&6; }
20776if ${ac_cv_search_dlopen+:} false; then :
20777  $as_echo_n "(cached) " >&6
20778else
20779  ac_func_search_save_LIBS=$LIBS
20780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20781/* end confdefs.h.  */
20782
20783/* Override any GCC internal prototype to avoid an error.
20784   Use char because int might match the return type of a GCC
20785   builtin and then its argument prototype would still apply.  */
20786#ifdef __cplusplus
20787extern "C"
20788#endif
20789char dlopen ();
20790int
20791main ()
20792{
20793return dlopen ();
20794  ;
20795  return 0;
20796}
20797_ACEOF
20798for ac_lib in '' dl; do
20799  if test -z "$ac_lib"; then
20800    ac_res="none required"
20801  else
20802    ac_res=-l$ac_lib
20803    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20804  fi
20805  if ac_fn_c_try_link "$LINENO"; then :
20806  ac_cv_search_dlopen=$ac_res
20807fi
20808rm -f core conftest.err conftest.$ac_objext \
20809    conftest$ac_exeext
20810  if ${ac_cv_search_dlopen+:} false; then :
20811  break
20812fi
20813done
20814if ${ac_cv_search_dlopen+:} false; then :
20815
20816else
20817  ac_cv_search_dlopen=no
20818fi
20819rm conftest.$ac_ext
20820LIBS=$ac_func_search_save_LIBS
20821fi
20822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20823$as_echo "$ac_cv_search_dlopen" >&6; }
20824ac_res=$ac_cv_search_dlopen
20825if test "$ac_res" != no; then :
20826  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20827
20828fi
20829
20830
20831
20832
20833# Check whether --with-jit-reader-dir was given.
20834if test "${with_jit_reader_dir+set}" = set; then :
20835  withval=$with_jit_reader_dir;
20836    JIT_READER_DIR=$withval
20837else
20838  JIT_READER_DIR=${libdir}/gdb
20839fi
20840
20841
20842  test "x$prefix" = xNONE && prefix="$ac_default_prefix"
20843  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20844  ac_define_dir=`eval echo $JIT_READER_DIR`
20845  ac_define_dir=`eval echo $ac_define_dir`
20846
20847cat >>confdefs.h <<_ACEOF
20848#define JIT_READER_DIR "$ac_define_dir"
20849_ACEOF
20850
20851
20852
20853
20854  if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
20855     if test "x$prefix" = xNONE; then
20856     	test_prefix=/usr/local
20857     else
20858	test_prefix=$prefix
20859     fi
20860  else
20861     test_prefix=$exec_prefix
20862  fi
20863  value=0
20864  case ${ac_define_dir} in
20865     "${test_prefix}"|"${test_prefix}/"*|\
20866	'${exec_prefix}'|'${exec_prefix}/'*)
20867     value=1
20868     ;;
20869  esac
20870
20871cat >>confdefs.h <<_ACEOF
20872#define JIT_READER_DIR_RELOCATABLE $value
20873_ACEOF
20874
20875
20876
20877
20878
20879# Check whether --with-expat was given.
20880if test "${with_expat+set}" = set; then :
20881  withval=$with_expat;
20882else
20883  with_expat=auto
20884fi
20885
20886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
20887$as_echo_n "checking whether to use expat... " >&6; }
20888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
20889$as_echo "$with_expat" >&6; }
20890
20891if test "${with_expat}" = no; then
20892  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
20893$as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
20894  HAVE_LIBEXPAT=no
20895else
20896
20897
20898
20899
20900
20901
20902
20903
20904    use_additional=yes
20905
20906  acl_save_prefix="$prefix"
20907  prefix="$acl_final_prefix"
20908  acl_save_exec_prefix="$exec_prefix"
20909  exec_prefix="$acl_final_exec_prefix"
20910
20911    eval additional_includedir=\"$includedir\"
20912    eval additional_libdir=\"$libdir\"
20913
20914  exec_prefix="$acl_save_exec_prefix"
20915  prefix="$acl_save_prefix"
20916
20917
20918# Check whether --with-libexpat-prefix was given.
20919if test "${with_libexpat_prefix+set}" = set; then :
20920  withval=$with_libexpat_prefix;
20921    if test "X$withval" = "Xno"; then
20922      use_additional=no
20923    else
20924      if test "X$withval" = "X"; then
20925
20926  acl_save_prefix="$prefix"
20927  prefix="$acl_final_prefix"
20928  acl_save_exec_prefix="$exec_prefix"
20929  exec_prefix="$acl_final_exec_prefix"
20930
20931          eval additional_includedir=\"$includedir\"
20932          eval additional_libdir=\"$libdir\"
20933
20934  exec_prefix="$acl_save_exec_prefix"
20935  prefix="$acl_save_prefix"
20936
20937      else
20938        additional_includedir="$withval/include"
20939        additional_libdir="$withval/lib"
20940      fi
20941    fi
20942
20943fi
20944
20945
20946# Check whether --with-libexpat-type was given.
20947if test "${with_libexpat_type+set}" = set; then :
20948  withval=$with_libexpat_type;  with_libexpat_type=$withval
20949else
20950   with_libexpat_type=auto
20951fi
20952
20953  lib_type=`eval echo \$with_libexpat_type`
20954
20955      LIBEXPAT=
20956  LTLIBEXPAT=
20957  INCEXPAT=
20958  rpathdirs=
20959  ltrpathdirs=
20960  names_already_handled=
20961  names_next_round='expat '
20962  while test -n "$names_next_round"; do
20963    names_this_round="$names_next_round"
20964    names_next_round=
20965    for name in $names_this_round; do
20966      already_handled=
20967      for n in $names_already_handled; do
20968        if test "$n" = "$name"; then
20969          already_handled=yes
20970          break
20971        fi
20972      done
20973      if test -z "$already_handled"; then
20974        names_already_handled="$names_already_handled $name"
20975                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20976        eval value=\"\$HAVE_LIB$uppername\"
20977        if test -n "$value"; then
20978          if test "$value" = yes; then
20979            eval value=\"\$LIB$uppername\"
20980            test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
20981            eval value=\"\$LTLIB$uppername\"
20982            test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
20983          else
20984                                    :
20985          fi
20986        else
20987                              found_dir=
20988          found_la=
20989          found_so=
20990          found_a=
20991          if test $use_additional = yes; then
20992            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
20993              found_dir="$additional_libdir"
20994              found_so="$additional_libdir/lib$name.$shlibext"
20995              if test -f "$additional_libdir/lib$name.la"; then
20996                found_la="$additional_libdir/lib$name.la"
20997              fi
20998            elif test x$lib_type != xshared; then
20999              if test -f "$additional_libdir/lib$name.$libext"; then
21000                found_dir="$additional_libdir"
21001                found_a="$additional_libdir/lib$name.$libext"
21002                if test -f "$additional_libdir/lib$name.la"; then
21003                  found_la="$additional_libdir/lib$name.la"
21004                fi
21005              fi
21006            fi
21007          fi
21008          if test "X$found_dir" = "X"; then
21009            for x in $LDFLAGS $LTLIBEXPAT; do
21010
21011  acl_save_prefix="$prefix"
21012  prefix="$acl_final_prefix"
21013  acl_save_exec_prefix="$exec_prefix"
21014  exec_prefix="$acl_final_exec_prefix"
21015  eval x=\"$x\"
21016  exec_prefix="$acl_save_exec_prefix"
21017  prefix="$acl_save_prefix"
21018
21019              case "$x" in
21020                -L*)
21021                  dir=`echo "X$x" | sed -e 's/^X-L//'`
21022                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
21023                    found_dir="$dir"
21024                    found_so="$dir/lib$name.$shlibext"
21025                    if test -f "$dir/lib$name.la"; then
21026                      found_la="$dir/lib$name.la"
21027                    fi
21028                  elif test x$lib_type != xshared; then
21029                    if test -f "$dir/lib$name.$libext"; then
21030                      found_dir="$dir"
21031                      found_a="$dir/lib$name.$libext"
21032                      if test -f "$dir/lib$name.la"; then
21033                        found_la="$dir/lib$name.la"
21034                      fi
21035                    fi
21036                  fi
21037                  ;;
21038              esac
21039              if test "X$found_dir" != "X"; then
21040                break
21041              fi
21042            done
21043          fi
21044          if test "X$found_dir" != "X"; then
21045                        LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
21046            if test "X$found_so" != "X"; then
21047                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21048                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
21049              else
21050                                                                                haveit=
21051                for x in $ltrpathdirs; do
21052                  if test "X$x" = "X$found_dir"; then
21053                    haveit=yes
21054                    break
21055                  fi
21056                done
21057                if test -z "$haveit"; then
21058                  ltrpathdirs="$ltrpathdirs $found_dir"
21059                fi
21060                                if test "$hardcode_direct" = yes; then
21061                                                      LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
21062                else
21063                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21064                                                            LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
21065                                                            haveit=
21066                    for x in $rpathdirs; do
21067                      if test "X$x" = "X$found_dir"; then
21068                        haveit=yes
21069                        break
21070                      fi
21071                    done
21072                    if test -z "$haveit"; then
21073                      rpathdirs="$rpathdirs $found_dir"
21074                    fi
21075                  else
21076                                                                                haveit=
21077                    for x in $LDFLAGS $LIBEXPAT; do
21078
21079  acl_save_prefix="$prefix"
21080  prefix="$acl_final_prefix"
21081  acl_save_exec_prefix="$exec_prefix"
21082  exec_prefix="$acl_final_exec_prefix"
21083  eval x=\"$x\"
21084  exec_prefix="$acl_save_exec_prefix"
21085  prefix="$acl_save_prefix"
21086
21087                      if test "X$x" = "X-L$found_dir"; then
21088                        haveit=yes
21089                        break
21090                      fi
21091                    done
21092                    if test -z "$haveit"; then
21093                      LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
21094                    fi
21095                    if test "$hardcode_minus_L" != no; then
21096                                                                                        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
21097                    else
21098                                                                                                                                                                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
21099                    fi
21100                  fi
21101                fi
21102              fi
21103            else
21104              if test "X$found_a" != "X"; then
21105                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
21106              else
21107                                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
21108              fi
21109            fi
21110                        additional_includedir=
21111            case "$found_dir" in
21112              */lib | */lib/)
21113                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21114                additional_includedir="$basedir/include"
21115                ;;
21116            esac
21117            if test "X$additional_includedir" != "X"; then
21118                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
21119                haveit=
21120                if test "X$additional_includedir" = "X/usr/local/include"; then
21121                  if test -n "$GCC"; then
21122                    case $host_os in
21123                      linux*) haveit=yes;;
21124                    esac
21125                  fi
21126                fi
21127                if test -z "$haveit"; then
21128                  for x in $CPPFLAGS $INCEXPAT; do
21129
21130  acl_save_prefix="$prefix"
21131  prefix="$acl_final_prefix"
21132  acl_save_exec_prefix="$exec_prefix"
21133  exec_prefix="$acl_final_exec_prefix"
21134  eval x=\"$x\"
21135  exec_prefix="$acl_save_exec_prefix"
21136  prefix="$acl_save_prefix"
21137
21138                    if test "X$x" = "X-I$additional_includedir"; then
21139                      haveit=yes
21140                      break
21141                    fi
21142                  done
21143                  if test -z "$haveit"; then
21144                    if test -d "$additional_includedir"; then
21145                                            INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
21146                    fi
21147                  fi
21148                fi
21149              fi
21150            fi
21151                        if test -n "$found_la"; then
21152                                                        save_libdir="$libdir"
21153              case "$found_la" in
21154                */* | *\\*) . "$found_la" ;;
21155                *) . "./$found_la" ;;
21156              esac
21157              libdir="$save_libdir"
21158                            for dep in $dependency_libs; do
21159                case "$dep" in
21160                  -L*)
21161                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21162                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
21163                      haveit=
21164                      if test "X$additional_libdir" = "X/usr/local/lib"; then
21165                        if test -n "$GCC"; then
21166                          case $host_os in
21167                            linux*) haveit=yes;;
21168                          esac
21169                        fi
21170                      fi
21171                      if test -z "$haveit"; then
21172                        haveit=
21173                        for x in $LDFLAGS $LIBEXPAT; do
21174
21175  acl_save_prefix="$prefix"
21176  prefix="$acl_final_prefix"
21177  acl_save_exec_prefix="$exec_prefix"
21178  exec_prefix="$acl_final_exec_prefix"
21179  eval x=\"$x\"
21180  exec_prefix="$acl_save_exec_prefix"
21181  prefix="$acl_save_prefix"
21182
21183                          if test "X$x" = "X-L$additional_libdir"; then
21184                            haveit=yes
21185                            break
21186                          fi
21187                        done
21188                        if test -z "$haveit"; then
21189                          if test -d "$additional_libdir"; then
21190                                                        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
21191                          fi
21192                        fi
21193                        haveit=
21194                        for x in $LDFLAGS $LTLIBEXPAT; do
21195
21196  acl_save_prefix="$prefix"
21197  prefix="$acl_final_prefix"
21198  acl_save_exec_prefix="$exec_prefix"
21199  exec_prefix="$acl_final_exec_prefix"
21200  eval x=\"$x\"
21201  exec_prefix="$acl_save_exec_prefix"
21202  prefix="$acl_save_prefix"
21203
21204                          if test "X$x" = "X-L$additional_libdir"; then
21205                            haveit=yes
21206                            break
21207                          fi
21208                        done
21209                        if test -z "$haveit"; then
21210                          if test -d "$additional_libdir"; then
21211                                                        LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
21212                          fi
21213                        fi
21214                      fi
21215                    fi
21216                    ;;
21217                  -R*)
21218                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
21219                    if test "$enable_rpath" != no; then
21220                                                                  haveit=
21221                      for x in $rpathdirs; do
21222                        if test "X$x" = "X$dir"; then
21223                          haveit=yes
21224                          break
21225                        fi
21226                      done
21227                      if test -z "$haveit"; then
21228                        rpathdirs="$rpathdirs $dir"
21229                      fi
21230                                                                  haveit=
21231                      for x in $ltrpathdirs; do
21232                        if test "X$x" = "X$dir"; then
21233                          haveit=yes
21234                          break
21235                        fi
21236                      done
21237                      if test -z "$haveit"; then
21238                        ltrpathdirs="$ltrpathdirs $dir"
21239                      fi
21240                    fi
21241                    ;;
21242                  -l*)
21243                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21244                    ;;
21245                  *.la)
21246                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21247                    ;;
21248                  *)
21249                                        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
21250                    LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
21251                    ;;
21252                esac
21253              done
21254            fi
21255          else
21256                                                            if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
21257              LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
21258              LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
21259            else
21260              LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
21261              LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
21262            fi
21263          fi
21264        fi
21265      fi
21266    done
21267  done
21268  if test "X$rpathdirs" != "X"; then
21269    if test -n "$hardcode_libdir_separator"; then
21270                        alldirs=
21271      for found_dir in $rpathdirs; do
21272        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21273      done
21274            acl_save_libdir="$libdir"
21275      libdir="$alldirs"
21276      eval flag=\"$hardcode_libdir_flag_spec\"
21277      libdir="$acl_save_libdir"
21278      LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
21279    else
21280            for found_dir in $rpathdirs; do
21281        acl_save_libdir="$libdir"
21282        libdir="$found_dir"
21283        eval flag=\"$hardcode_libdir_flag_spec\"
21284        libdir="$acl_save_libdir"
21285        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
21286      done
21287    fi
21288  fi
21289  if test "X$ltrpathdirs" != "X"; then
21290            for found_dir in $ltrpathdirs; do
21291      LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
21292    done
21293  fi
21294
21295
21296        ac_save_CPPFLAGS="$CPPFLAGS"
21297
21298  for element in $INCEXPAT; do
21299    haveit=
21300    for x in $CPPFLAGS; do
21301
21302  acl_save_prefix="$prefix"
21303  prefix="$acl_final_prefix"
21304  acl_save_exec_prefix="$exec_prefix"
21305  exec_prefix="$acl_final_exec_prefix"
21306  eval x=\"$x\"
21307  exec_prefix="$acl_save_exec_prefix"
21308  prefix="$acl_save_prefix"
21309
21310      if test "X$x" = "X$element"; then
21311        haveit=yes
21312        break
21313      fi
21314    done
21315    if test -z "$haveit"; then
21316      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21317    fi
21318  done
21319
21320
21321  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
21322$as_echo_n "checking for libexpat... " >&6; }
21323if ${ac_cv_libexpat+:} false; then :
21324  $as_echo_n "(cached) " >&6
21325else
21326
21327    ac_save_LIBS="$LIBS"
21328    LIBS="$LIBS $LIBEXPAT"
21329    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21330/* end confdefs.h.  */
21331#include "expat.h"
21332int
21333main ()
21334{
21335XML_Parser p = XML_ParserCreate (0);
21336  ;
21337  return 0;
21338}
21339_ACEOF
21340if ac_fn_c_try_link "$LINENO"; then :
21341  ac_cv_libexpat=yes
21342else
21343  ac_cv_libexpat=no
21344fi
21345rm -f core conftest.err conftest.$ac_objext \
21346    conftest$ac_exeext conftest.$ac_ext
21347    LIBS="$ac_save_LIBS"
21348
21349fi
21350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
21351$as_echo "$ac_cv_libexpat" >&6; }
21352  if test "$ac_cv_libexpat" = yes; then
21353    HAVE_LIBEXPAT=yes
21354
21355$as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
21356
21357    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
21358$as_echo_n "checking how to link with libexpat... " >&6; }
21359    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
21360$as_echo "$LIBEXPAT" >&6; }
21361  else
21362    HAVE_LIBEXPAT=no
21363            CPPFLAGS="$ac_save_CPPFLAGS"
21364    LIBEXPAT=
21365    LTLIBEXPAT=
21366  fi
21367
21368
21369
21370
21371
21372
21373  if test "$HAVE_LIBEXPAT" != yes; then
21374    if test "$with_expat" = yes; then
21375      as_fn_error $? "expat is missing or unusable" "$LINENO" 5
21376    else
21377      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
21378$as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
21379    fi
21380  else
21381    save_LIBS=$LIBS
21382    LIBS="$LIBS $LIBEXPAT"
21383    for ac_func in XML_StopParser
21384do :
21385  ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
21386if test "x$ac_cv_func_XML_StopParser" = xyes; then :
21387  cat >>confdefs.h <<_ACEOF
21388#define HAVE_XML_STOPPARSER 1
21389_ACEOF
21390
21391fi
21392done
21393
21394    LIBS=$save_LIBS
21395  fi
21396fi
21397
21398# Verify that we have a usable GMP library.
21399
21400
21401
21402
21403
21404
21405
21406
21407    use_additional=yes
21408
21409  acl_save_prefix="$prefix"
21410  prefix="$acl_final_prefix"
21411  acl_save_exec_prefix="$exec_prefix"
21412  exec_prefix="$acl_final_exec_prefix"
21413
21414    eval additional_includedir=\"$includedir\"
21415    eval additional_libdir=\"$libdir\"
21416
21417  exec_prefix="$acl_save_exec_prefix"
21418  prefix="$acl_save_prefix"
21419
21420
21421# Check whether --with-libgmp-prefix was given.
21422if test "${with_libgmp_prefix+set}" = set; then :
21423  withval=$with_libgmp_prefix;
21424    if test "X$withval" = "Xno"; then
21425      use_additional=no
21426    else
21427      if test "X$withval" = "X"; then
21428
21429  acl_save_prefix="$prefix"
21430  prefix="$acl_final_prefix"
21431  acl_save_exec_prefix="$exec_prefix"
21432  exec_prefix="$acl_final_exec_prefix"
21433
21434          eval additional_includedir=\"$includedir\"
21435          eval additional_libdir=\"$libdir\"
21436
21437  exec_prefix="$acl_save_exec_prefix"
21438  prefix="$acl_save_prefix"
21439
21440      else
21441        additional_includedir="$withval/include"
21442        additional_libdir="$withval/lib"
21443      fi
21444    fi
21445
21446fi
21447
21448
21449# Check whether --with-libgmp-type was given.
21450if test "${with_libgmp_type+set}" = set; then :
21451  withval=$with_libgmp_type;  with_libgmp_type=$withval
21452else
21453   with_libgmp_type=auto
21454fi
21455
21456  lib_type=`eval echo \$with_libgmp_type`
21457
21458      LIBGMP=
21459  LTLIBGMP=
21460  INCGMP=
21461  rpathdirs=
21462  ltrpathdirs=
21463  names_already_handled=
21464  names_next_round='gmp '
21465  while test -n "$names_next_round"; do
21466    names_this_round="$names_next_round"
21467    names_next_round=
21468    for name in $names_this_round; do
21469      already_handled=
21470      for n in $names_already_handled; do
21471        if test "$n" = "$name"; then
21472          already_handled=yes
21473          break
21474        fi
21475      done
21476      if test -z "$already_handled"; then
21477        names_already_handled="$names_already_handled $name"
21478                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21479        eval value=\"\$HAVE_LIB$uppername\"
21480        if test -n "$value"; then
21481          if test "$value" = yes; then
21482            eval value=\"\$LIB$uppername\"
21483            test -z "$value" || LIBGMP="${LIBGMP}${LIBGMP:+ }$value"
21484            eval value=\"\$LTLIB$uppername\"
21485            test -z "$value" || LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }$value"
21486          else
21487                                    :
21488          fi
21489        else
21490                              found_dir=
21491          found_la=
21492          found_so=
21493          found_a=
21494          if test $use_additional = yes; then
21495            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
21496              found_dir="$additional_libdir"
21497              found_so="$additional_libdir/lib$name.$shlibext"
21498              if test -f "$additional_libdir/lib$name.la"; then
21499                found_la="$additional_libdir/lib$name.la"
21500              fi
21501            elif test x$lib_type != xshared; then
21502              if test -f "$additional_libdir/lib$name.$libext"; then
21503                found_dir="$additional_libdir"
21504                found_a="$additional_libdir/lib$name.$libext"
21505                if test -f "$additional_libdir/lib$name.la"; then
21506                  found_la="$additional_libdir/lib$name.la"
21507                fi
21508              fi
21509            fi
21510          fi
21511          if test "X$found_dir" = "X"; then
21512            for x in $LDFLAGS $LTLIBGMP; do
21513
21514  acl_save_prefix="$prefix"
21515  prefix="$acl_final_prefix"
21516  acl_save_exec_prefix="$exec_prefix"
21517  exec_prefix="$acl_final_exec_prefix"
21518  eval x=\"$x\"
21519  exec_prefix="$acl_save_exec_prefix"
21520  prefix="$acl_save_prefix"
21521
21522              case "$x" in
21523                -L*)
21524                  dir=`echo "X$x" | sed -e 's/^X-L//'`
21525                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
21526                    found_dir="$dir"
21527                    found_so="$dir/lib$name.$shlibext"
21528                    if test -f "$dir/lib$name.la"; then
21529                      found_la="$dir/lib$name.la"
21530                    fi
21531                  elif test x$lib_type != xshared; then
21532                    if test -f "$dir/lib$name.$libext"; then
21533                      found_dir="$dir"
21534                      found_a="$dir/lib$name.$libext"
21535                      if test -f "$dir/lib$name.la"; then
21536                        found_la="$dir/lib$name.la"
21537                      fi
21538                    fi
21539                  fi
21540                  ;;
21541              esac
21542              if test "X$found_dir" != "X"; then
21543                break
21544              fi
21545            done
21546          fi
21547          if test "X$found_dir" != "X"; then
21548                        LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-L$found_dir -l$name"
21549            if test "X$found_so" != "X"; then
21550                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21551                                LIBGMP="${LIBGMP}${LIBGMP:+ }$found_so"
21552              else
21553                                                                                haveit=
21554                for x in $ltrpathdirs; do
21555                  if test "X$x" = "X$found_dir"; then
21556                    haveit=yes
21557                    break
21558                  fi
21559                done
21560                if test -z "$haveit"; then
21561                  ltrpathdirs="$ltrpathdirs $found_dir"
21562                fi
21563                                if test "$hardcode_direct" = yes; then
21564                                                      LIBGMP="${LIBGMP}${LIBGMP:+ }$found_so"
21565                else
21566                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21567                                                            LIBGMP="${LIBGMP}${LIBGMP:+ }$found_so"
21568                                                            haveit=
21569                    for x in $rpathdirs; do
21570                      if test "X$x" = "X$found_dir"; then
21571                        haveit=yes
21572                        break
21573                      fi
21574                    done
21575                    if test -z "$haveit"; then
21576                      rpathdirs="$rpathdirs $found_dir"
21577                    fi
21578                  else
21579                                                                                haveit=
21580                    for x in $LDFLAGS $LIBGMP; do
21581
21582  acl_save_prefix="$prefix"
21583  prefix="$acl_final_prefix"
21584  acl_save_exec_prefix="$exec_prefix"
21585  exec_prefix="$acl_final_exec_prefix"
21586  eval x=\"$x\"
21587  exec_prefix="$acl_save_exec_prefix"
21588  prefix="$acl_save_prefix"
21589
21590                      if test "X$x" = "X-L$found_dir"; then
21591                        haveit=yes
21592                        break
21593                      fi
21594                    done
21595                    if test -z "$haveit"; then
21596                      LIBGMP="${LIBGMP}${LIBGMP:+ }-L$found_dir"
21597                    fi
21598                    if test "$hardcode_minus_L" != no; then
21599                                                                                        LIBGMP="${LIBGMP}${LIBGMP:+ }$found_so"
21600                    else
21601                                                                                                                                                                                LIBGMP="${LIBGMP}${LIBGMP:+ }-l$name"
21602                    fi
21603                  fi
21604                fi
21605              fi
21606            else
21607              if test "X$found_a" != "X"; then
21608                                LIBGMP="${LIBGMP}${LIBGMP:+ }$found_a"
21609              else
21610                                                LIBGMP="${LIBGMP}${LIBGMP:+ }-L$found_dir -l$name"
21611              fi
21612            fi
21613                        additional_includedir=
21614            case "$found_dir" in
21615              */lib | */lib/)
21616                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21617                additional_includedir="$basedir/include"
21618                ;;
21619            esac
21620            if test "X$additional_includedir" != "X"; then
21621                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
21622                haveit=
21623                if test "X$additional_includedir" = "X/usr/local/include"; then
21624                  if test -n "$GCC"; then
21625                    case $host_os in
21626                      linux*) haveit=yes;;
21627                    esac
21628                  fi
21629                fi
21630                if test -z "$haveit"; then
21631                  for x in $CPPFLAGS $INCGMP; do
21632
21633  acl_save_prefix="$prefix"
21634  prefix="$acl_final_prefix"
21635  acl_save_exec_prefix="$exec_prefix"
21636  exec_prefix="$acl_final_exec_prefix"
21637  eval x=\"$x\"
21638  exec_prefix="$acl_save_exec_prefix"
21639  prefix="$acl_save_prefix"
21640
21641                    if test "X$x" = "X-I$additional_includedir"; then
21642                      haveit=yes
21643                      break
21644                    fi
21645                  done
21646                  if test -z "$haveit"; then
21647                    if test -d "$additional_includedir"; then
21648                                            INCGMP="${INCGMP}${INCGMP:+ }-I$additional_includedir"
21649                    fi
21650                  fi
21651                fi
21652              fi
21653            fi
21654                        if test -n "$found_la"; then
21655                                                        save_libdir="$libdir"
21656              case "$found_la" in
21657                */* | *\\*) . "$found_la" ;;
21658                *) . "./$found_la" ;;
21659              esac
21660              libdir="$save_libdir"
21661                            for dep in $dependency_libs; do
21662                case "$dep" in
21663                  -L*)
21664                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21665                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
21666                      haveit=
21667                      if test "X$additional_libdir" = "X/usr/local/lib"; then
21668                        if test -n "$GCC"; then
21669                          case $host_os in
21670                            linux*) haveit=yes;;
21671                          esac
21672                        fi
21673                      fi
21674                      if test -z "$haveit"; then
21675                        haveit=
21676                        for x in $LDFLAGS $LIBGMP; do
21677
21678  acl_save_prefix="$prefix"
21679  prefix="$acl_final_prefix"
21680  acl_save_exec_prefix="$exec_prefix"
21681  exec_prefix="$acl_final_exec_prefix"
21682  eval x=\"$x\"
21683  exec_prefix="$acl_save_exec_prefix"
21684  prefix="$acl_save_prefix"
21685
21686                          if test "X$x" = "X-L$additional_libdir"; then
21687                            haveit=yes
21688                            break
21689                          fi
21690                        done
21691                        if test -z "$haveit"; then
21692                          if test -d "$additional_libdir"; then
21693                                                        LIBGMP="${LIBGMP}${LIBGMP:+ }-L$additional_libdir"
21694                          fi
21695                        fi
21696                        haveit=
21697                        for x in $LDFLAGS $LTLIBGMP; do
21698
21699  acl_save_prefix="$prefix"
21700  prefix="$acl_final_prefix"
21701  acl_save_exec_prefix="$exec_prefix"
21702  exec_prefix="$acl_final_exec_prefix"
21703  eval x=\"$x\"
21704  exec_prefix="$acl_save_exec_prefix"
21705  prefix="$acl_save_prefix"
21706
21707                          if test "X$x" = "X-L$additional_libdir"; then
21708                            haveit=yes
21709                            break
21710                          fi
21711                        done
21712                        if test -z "$haveit"; then
21713                          if test -d "$additional_libdir"; then
21714                                                        LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-L$additional_libdir"
21715                          fi
21716                        fi
21717                      fi
21718                    fi
21719                    ;;
21720                  -R*)
21721                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
21722                    if test "$enable_rpath" != no; then
21723                                                                  haveit=
21724                      for x in $rpathdirs; do
21725                        if test "X$x" = "X$dir"; then
21726                          haveit=yes
21727                          break
21728                        fi
21729                      done
21730                      if test -z "$haveit"; then
21731                        rpathdirs="$rpathdirs $dir"
21732                      fi
21733                                                                  haveit=
21734                      for x in $ltrpathdirs; do
21735                        if test "X$x" = "X$dir"; then
21736                          haveit=yes
21737                          break
21738                        fi
21739                      done
21740                      if test -z "$haveit"; then
21741                        ltrpathdirs="$ltrpathdirs $dir"
21742                      fi
21743                    fi
21744                    ;;
21745                  -l*)
21746                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21747                    ;;
21748                  *.la)
21749                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21750                    ;;
21751                  *)
21752                                        LIBGMP="${LIBGMP}${LIBGMP:+ }$dep"
21753                    LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }$dep"
21754                    ;;
21755                esac
21756              done
21757            fi
21758          else
21759                                                            if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
21760              LIBGMP="${LIBGMP}${LIBGMP:+ }-l$name"
21761              LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-l$name"
21762            else
21763              LIBGMP="${LIBGMP}${LIBGMP:+ }-l:lib$name.$libext"
21764              LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-l:lib$name.$libext"
21765            fi
21766          fi
21767        fi
21768      fi
21769    done
21770  done
21771  if test "X$rpathdirs" != "X"; then
21772    if test -n "$hardcode_libdir_separator"; then
21773                        alldirs=
21774      for found_dir in $rpathdirs; do
21775        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21776      done
21777            acl_save_libdir="$libdir"
21778      libdir="$alldirs"
21779      eval flag=\"$hardcode_libdir_flag_spec\"
21780      libdir="$acl_save_libdir"
21781      LIBGMP="${LIBGMP}${LIBGMP:+ }$flag"
21782    else
21783            for found_dir in $rpathdirs; do
21784        acl_save_libdir="$libdir"
21785        libdir="$found_dir"
21786        eval flag=\"$hardcode_libdir_flag_spec\"
21787        libdir="$acl_save_libdir"
21788        LIBGMP="${LIBGMP}${LIBGMP:+ }$flag"
21789      done
21790    fi
21791  fi
21792  if test "X$ltrpathdirs" != "X"; then
21793            for found_dir in $ltrpathdirs; do
21794      LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-R$found_dir"
21795    done
21796  fi
21797
21798
21799        ac_save_CPPFLAGS="$CPPFLAGS"
21800
21801  for element in $INCGMP; do
21802    haveit=
21803    for x in $CPPFLAGS; do
21804
21805  acl_save_prefix="$prefix"
21806  prefix="$acl_final_prefix"
21807  acl_save_exec_prefix="$exec_prefix"
21808  exec_prefix="$acl_final_exec_prefix"
21809  eval x=\"$x\"
21810  exec_prefix="$acl_save_exec_prefix"
21811  prefix="$acl_save_prefix"
21812
21813      if test "X$x" = "X$element"; then
21814        haveit=yes
21815        break
21816      fi
21817    done
21818    if test -z "$haveit"; then
21819      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21820    fi
21821  done
21822
21823
21824  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgmp" >&5
21825$as_echo_n "checking for libgmp... " >&6; }
21826if ${ac_cv_libgmp+:} false; then :
21827  $as_echo_n "(cached) " >&6
21828else
21829
21830    ac_save_LIBS="$LIBS"
21831    LIBS="$LIBS $LIBGMP"
21832    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21833/* end confdefs.h.  */
21834#include <gmp.h>
21835int
21836main ()
21837{
21838mpz_t n;
21839                       mpz_init (n);
21840  ;
21841  return 0;
21842}
21843_ACEOF
21844if ac_fn_c_try_link "$LINENO"; then :
21845  ac_cv_libgmp=yes
21846else
21847  ac_cv_libgmp=no
21848fi
21849rm -f core conftest.err conftest.$ac_objext \
21850    conftest$ac_exeext conftest.$ac_ext
21851    LIBS="$ac_save_LIBS"
21852
21853fi
21854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgmp" >&5
21855$as_echo "$ac_cv_libgmp" >&6; }
21856  if test "$ac_cv_libgmp" = yes; then
21857    HAVE_LIBGMP=yes
21858
21859$as_echo "#define HAVE_LIBGMP 1" >>confdefs.h
21860
21861    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgmp" >&5
21862$as_echo_n "checking how to link with libgmp... " >&6; }
21863    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGMP" >&5
21864$as_echo "$LIBGMP" >&6; }
21865  else
21866    HAVE_LIBGMP=no
21867            CPPFLAGS="$ac_save_CPPFLAGS"
21868    LIBGMP=
21869    LTLIBGMP=
21870  fi
21871
21872
21873
21874
21875
21876
21877if test "$HAVE_LIBGMP" != yes; then
21878  as_fn_error $? "GMP is missing or unusable" "$LINENO" 5
21879fi
21880
21881
21882# Check whether --with-mpfr was given.
21883if test "${with_mpfr+set}" = set; then :
21884  withval=$with_mpfr;
21885else
21886  with_mpfr=auto
21887fi
21888
21889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
21890$as_echo_n "checking whether to use MPFR... " >&6; }
21891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
21892$as_echo "$with_mpfr" >&6; }
21893
21894if test "${with_mpfr}" = no; then
21895  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
21896$as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
21897  HAVE_LIBMPFR=no
21898else
21899
21900
21901
21902
21903
21904
21905
21906
21907    use_additional=yes
21908
21909  acl_save_prefix="$prefix"
21910  prefix="$acl_final_prefix"
21911  acl_save_exec_prefix="$exec_prefix"
21912  exec_prefix="$acl_final_exec_prefix"
21913
21914    eval additional_includedir=\"$includedir\"
21915    eval additional_libdir=\"$libdir\"
21916
21917  exec_prefix="$acl_save_exec_prefix"
21918  prefix="$acl_save_prefix"
21919
21920
21921# Check whether --with-libmpfr-prefix was given.
21922if test "${with_libmpfr_prefix+set}" = set; then :
21923  withval=$with_libmpfr_prefix;
21924    if test "X$withval" = "Xno"; then
21925      use_additional=no
21926    else
21927      if test "X$withval" = "X"; then
21928
21929  acl_save_prefix="$prefix"
21930  prefix="$acl_final_prefix"
21931  acl_save_exec_prefix="$exec_prefix"
21932  exec_prefix="$acl_final_exec_prefix"
21933
21934          eval additional_includedir=\"$includedir\"
21935          eval additional_libdir=\"$libdir\"
21936
21937  exec_prefix="$acl_save_exec_prefix"
21938  prefix="$acl_save_prefix"
21939
21940      else
21941        additional_includedir="$withval/include"
21942        additional_libdir="$withval/lib"
21943      fi
21944    fi
21945
21946fi
21947
21948
21949# Check whether --with-libmpfr-type was given.
21950if test "${with_libmpfr_type+set}" = set; then :
21951  withval=$with_libmpfr_type;  with_libmpfr_type=$withval
21952else
21953   with_libmpfr_type=auto
21954fi
21955
21956  lib_type=`eval echo \$with_libmpfr_type`
21957
21958      LIBMPFR=
21959  LTLIBMPFR=
21960  INCMPFR=
21961  rpathdirs=
21962  ltrpathdirs=
21963  names_already_handled=
21964  names_next_round='mpfr gmp'
21965  while test -n "$names_next_round"; do
21966    names_this_round="$names_next_round"
21967    names_next_round=
21968    for name in $names_this_round; do
21969      already_handled=
21970      for n in $names_already_handled; do
21971        if test "$n" = "$name"; then
21972          already_handled=yes
21973          break
21974        fi
21975      done
21976      if test -z "$already_handled"; then
21977        names_already_handled="$names_already_handled $name"
21978                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21979        eval value=\"\$HAVE_LIB$uppername\"
21980        if test -n "$value"; then
21981          if test "$value" = yes; then
21982            eval value=\"\$LIB$uppername\"
21983            test -z "$value" || LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$value"
21984            eval value=\"\$LTLIB$uppername\"
21985            test -z "$value" || LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
21986          else
21987                                    :
21988          fi
21989        else
21990                              found_dir=
21991          found_la=
21992          found_so=
21993          found_a=
21994          if test $use_additional = yes; then
21995            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
21996              found_dir="$additional_libdir"
21997              found_so="$additional_libdir/lib$name.$shlibext"
21998              if test -f "$additional_libdir/lib$name.la"; then
21999                found_la="$additional_libdir/lib$name.la"
22000              fi
22001            elif test x$lib_type != xshared; then
22002              if test -f "$additional_libdir/lib$name.$libext"; then
22003                found_dir="$additional_libdir"
22004                found_a="$additional_libdir/lib$name.$libext"
22005                if test -f "$additional_libdir/lib$name.la"; then
22006                  found_la="$additional_libdir/lib$name.la"
22007                fi
22008              fi
22009            fi
22010          fi
22011          if test "X$found_dir" = "X"; then
22012            for x in $LDFLAGS $LTLIBMPFR; do
22013
22014  acl_save_prefix="$prefix"
22015  prefix="$acl_final_prefix"
22016  acl_save_exec_prefix="$exec_prefix"
22017  exec_prefix="$acl_final_exec_prefix"
22018  eval x=\"$x\"
22019  exec_prefix="$acl_save_exec_prefix"
22020  prefix="$acl_save_prefix"
22021
22022              case "$x" in
22023                -L*)
22024                  dir=`echo "X$x" | sed -e 's/^X-L//'`
22025                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
22026                    found_dir="$dir"
22027                    found_so="$dir/lib$name.$shlibext"
22028                    if test -f "$dir/lib$name.la"; then
22029                      found_la="$dir/lib$name.la"
22030                    fi
22031                  elif test x$lib_type != xshared; then
22032                    if test -f "$dir/lib$name.$libext"; then
22033                      found_dir="$dir"
22034                      found_a="$dir/lib$name.$libext"
22035                      if test -f "$dir/lib$name.la"; then
22036                        found_la="$dir/lib$name.la"
22037                      fi
22038                    fi
22039                  fi
22040                  ;;
22041              esac
22042              if test "X$found_dir" != "X"; then
22043                break
22044              fi
22045            done
22046          fi
22047          if test "X$found_dir" != "X"; then
22048                        LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
22049            if test "X$found_so" != "X"; then
22050                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
22051                                LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
22052              else
22053                                                                                haveit=
22054                for x in $ltrpathdirs; do
22055                  if test "X$x" = "X$found_dir"; then
22056                    haveit=yes
22057                    break
22058                  fi
22059                done
22060                if test -z "$haveit"; then
22061                  ltrpathdirs="$ltrpathdirs $found_dir"
22062                fi
22063                                if test "$hardcode_direct" = yes; then
22064                                                      LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
22065                else
22066                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22067                                                            LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
22068                                                            haveit=
22069                    for x in $rpathdirs; do
22070                      if test "X$x" = "X$found_dir"; then
22071                        haveit=yes
22072                        break
22073                      fi
22074                    done
22075                    if test -z "$haveit"; then
22076                      rpathdirs="$rpathdirs $found_dir"
22077                    fi
22078                  else
22079                                                                                haveit=
22080                    for x in $LDFLAGS $LIBMPFR; do
22081
22082  acl_save_prefix="$prefix"
22083  prefix="$acl_final_prefix"
22084  acl_save_exec_prefix="$exec_prefix"
22085  exec_prefix="$acl_final_exec_prefix"
22086  eval x=\"$x\"
22087  exec_prefix="$acl_save_exec_prefix"
22088  prefix="$acl_save_prefix"
22089
22090                      if test "X$x" = "X-L$found_dir"; then
22091                        haveit=yes
22092                        break
22093                      fi
22094                    done
22095                    if test -z "$haveit"; then
22096                      LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
22097                    fi
22098                    if test "$hardcode_minus_L" != no; then
22099                                                                                        LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
22100                    else
22101                                                                                                                                                                                LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name"
22102                    fi
22103                  fi
22104                fi
22105              fi
22106            else
22107              if test "X$found_a" != "X"; then
22108                                LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_a"
22109              else
22110                                                LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
22111              fi
22112            fi
22113                        additional_includedir=
22114            case "$found_dir" in
22115              */lib | */lib/)
22116                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22117                additional_includedir="$basedir/include"
22118                ;;
22119            esac
22120            if test "X$additional_includedir" != "X"; then
22121                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
22122                haveit=
22123                if test "X$additional_includedir" = "X/usr/local/include"; then
22124                  if test -n "$GCC"; then
22125                    case $host_os in
22126                      linux*) haveit=yes;;
22127                    esac
22128                  fi
22129                fi
22130                if test -z "$haveit"; then
22131                  for x in $CPPFLAGS $INCMPFR; do
22132
22133  acl_save_prefix="$prefix"
22134  prefix="$acl_final_prefix"
22135  acl_save_exec_prefix="$exec_prefix"
22136  exec_prefix="$acl_final_exec_prefix"
22137  eval x=\"$x\"
22138  exec_prefix="$acl_save_exec_prefix"
22139  prefix="$acl_save_prefix"
22140
22141                    if test "X$x" = "X-I$additional_includedir"; then
22142                      haveit=yes
22143                      break
22144                    fi
22145                  done
22146                  if test -z "$haveit"; then
22147                    if test -d "$additional_includedir"; then
22148                                            INCMPFR="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
22149                    fi
22150                  fi
22151                fi
22152              fi
22153            fi
22154                        if test -n "$found_la"; then
22155                                                        save_libdir="$libdir"
22156              case "$found_la" in
22157                */* | *\\*) . "$found_la" ;;
22158                *) . "./$found_la" ;;
22159              esac
22160              libdir="$save_libdir"
22161                            for dep in $dependency_libs; do
22162                case "$dep" in
22163                  -L*)
22164                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22165                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
22166                      haveit=
22167                      if test "X$additional_libdir" = "X/usr/local/lib"; then
22168                        if test -n "$GCC"; then
22169                          case $host_os in
22170                            linux*) haveit=yes;;
22171                          esac
22172                        fi
22173                      fi
22174                      if test -z "$haveit"; then
22175                        haveit=
22176                        for x in $LDFLAGS $LIBMPFR; do
22177
22178  acl_save_prefix="$prefix"
22179  prefix="$acl_final_prefix"
22180  acl_save_exec_prefix="$exec_prefix"
22181  exec_prefix="$acl_final_exec_prefix"
22182  eval x=\"$x\"
22183  exec_prefix="$acl_save_exec_prefix"
22184  prefix="$acl_save_prefix"
22185
22186                          if test "X$x" = "X-L$additional_libdir"; then
22187                            haveit=yes
22188                            break
22189                          fi
22190                        done
22191                        if test -z "$haveit"; then
22192                          if test -d "$additional_libdir"; then
22193                                                        LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
22194                          fi
22195                        fi
22196                        haveit=
22197                        for x in $LDFLAGS $LTLIBMPFR; do
22198
22199  acl_save_prefix="$prefix"
22200  prefix="$acl_final_prefix"
22201  acl_save_exec_prefix="$exec_prefix"
22202  exec_prefix="$acl_final_exec_prefix"
22203  eval x=\"$x\"
22204  exec_prefix="$acl_save_exec_prefix"
22205  prefix="$acl_save_prefix"
22206
22207                          if test "X$x" = "X-L$additional_libdir"; then
22208                            haveit=yes
22209                            break
22210                          fi
22211                        done
22212                        if test -z "$haveit"; then
22213                          if test -d "$additional_libdir"; then
22214                                                        LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
22215                          fi
22216                        fi
22217                      fi
22218                    fi
22219                    ;;
22220                  -R*)
22221                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
22222                    if test "$enable_rpath" != no; then
22223                                                                  haveit=
22224                      for x in $rpathdirs; do
22225                        if test "X$x" = "X$dir"; then
22226                          haveit=yes
22227                          break
22228                        fi
22229                      done
22230                      if test -z "$haveit"; then
22231                        rpathdirs="$rpathdirs $dir"
22232                      fi
22233                                                                  haveit=
22234                      for x in $ltrpathdirs; do
22235                        if test "X$x" = "X$dir"; then
22236                          haveit=yes
22237                          break
22238                        fi
22239                      done
22240                      if test -z "$haveit"; then
22241                        ltrpathdirs="$ltrpathdirs $dir"
22242                      fi
22243                    fi
22244                    ;;
22245                  -l*)
22246                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22247                    ;;
22248                  *.la)
22249                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22250                    ;;
22251                  *)
22252                                        LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$dep"
22253                    LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
22254                    ;;
22255                esac
22256              done
22257            fi
22258          else
22259                                                            if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
22260              LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name"
22261              LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
22262            else
22263              LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l:lib$name.$libext"
22264              LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-l:lib$name.$libext"
22265            fi
22266          fi
22267        fi
22268      fi
22269    done
22270  done
22271  if test "X$rpathdirs" != "X"; then
22272    if test -n "$hardcode_libdir_separator"; then
22273                        alldirs=
22274      for found_dir in $rpathdirs; do
22275        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22276      done
22277            acl_save_libdir="$libdir"
22278      libdir="$alldirs"
22279      eval flag=\"$hardcode_libdir_flag_spec\"
22280      libdir="$acl_save_libdir"
22281      LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag"
22282    else
22283            for found_dir in $rpathdirs; do
22284        acl_save_libdir="$libdir"
22285        libdir="$found_dir"
22286        eval flag=\"$hardcode_libdir_flag_spec\"
22287        libdir="$acl_save_libdir"
22288        LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag"
22289      done
22290    fi
22291  fi
22292  if test "X$ltrpathdirs" != "X"; then
22293            for found_dir in $ltrpathdirs; do
22294      LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
22295    done
22296  fi
22297
22298
22299        ac_save_CPPFLAGS="$CPPFLAGS"
22300
22301  for element in $INCMPFR; do
22302    haveit=
22303    for x in $CPPFLAGS; do
22304
22305  acl_save_prefix="$prefix"
22306  prefix="$acl_final_prefix"
22307  acl_save_exec_prefix="$exec_prefix"
22308  exec_prefix="$acl_final_exec_prefix"
22309  eval x=\"$x\"
22310  exec_prefix="$acl_save_exec_prefix"
22311  prefix="$acl_save_prefix"
22312
22313      if test "X$x" = "X$element"; then
22314        haveit=yes
22315        break
22316      fi
22317    done
22318    if test -z "$haveit"; then
22319      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22320    fi
22321  done
22322
22323
22324  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
22325$as_echo_n "checking for libmpfr... " >&6; }
22326if ${ac_cv_libmpfr+:} false; then :
22327  $as_echo_n "(cached) " >&6
22328else
22329
22330    ac_save_LIBS="$LIBS"
22331    LIBS="$LIBS $LIBMPFR"
22332    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22333/* end confdefs.h.  */
22334#include <mpfr.h>
22335int
22336main ()
22337{
22338mpfr_exp_t exp; mpfr_t x;
22339			 mpfr_frexp (&exp, x, x, MPFR_RNDN);
22340  ;
22341  return 0;
22342}
22343_ACEOF
22344if ac_fn_c_try_link "$LINENO"; then :
22345  ac_cv_libmpfr=yes
22346else
22347  ac_cv_libmpfr=no
22348fi
22349rm -f core conftest.err conftest.$ac_objext \
22350    conftest$ac_exeext conftest.$ac_ext
22351    LIBS="$ac_save_LIBS"
22352
22353fi
22354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
22355$as_echo "$ac_cv_libmpfr" >&6; }
22356  if test "$ac_cv_libmpfr" = yes; then
22357    HAVE_LIBMPFR=yes
22358
22359$as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
22360
22361    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
22362$as_echo_n "checking how to link with libmpfr... " >&6; }
22363    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
22364$as_echo "$LIBMPFR" >&6; }
22365  else
22366    HAVE_LIBMPFR=no
22367            CPPFLAGS="$ac_save_CPPFLAGS"
22368    LIBMPFR=
22369    LTLIBMPFR=
22370  fi
22371
22372
22373
22374
22375
22376
22377  if test "$HAVE_LIBMPFR" != yes; then
22378    if test "$with_mpfr" = yes; then
22379      as_fn_error $? "MPFR is missing or unusable" "$LINENO" 5
22380    else
22381      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
22382$as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
22383    fi
22384  fi
22385fi
22386
22387# --------------------- #
22388# Check for libpython.  #
22389# --------------------- #
22390
22391
22392
22393
22394
22395
22396# Check whether --with-python was given.
22397if test "${with_python+set}" = set; then :
22398  withval=$with_python;
22399else
22400  with_python=auto
22401fi
22402
22403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
22404$as_echo_n "checking whether to use python... " >&6; }
22405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
22406$as_echo "$with_python" >&6; }
22407
22408if test "${with_python}" = no; then
22409  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
22410$as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
22411  have_libpython=no
22412else
22413  case "${with_python}" in
22414  [\\/]* | ?:[\\/]*)
22415    if test -d "${with_python}"; then
22416      # Assume the python binary is ${with_python}/bin/python.
22417      python_prog="${with_python}/bin/python"
22418      python_prefix=
22419      # If python does not exit ${with_python}/bin, then try in
22420      # ${with_python}.  On Windows/MinGW, this is where the Python
22421      # executable is.
22422      if test ! -x "${python_prog}"; then
22423        python_prog="${with_python}/python"
22424        python_prefix=
22425      fi
22426      if test ! -x "${python_prog}"; then
22427        # Fall back to gdb 7.0/7.1 behaviour.
22428        python_prog=missing
22429        python_prefix=${with_python}
22430      fi
22431    elif test -x "${with_python}"; then
22432      # While we can't run python compiled for $host (unless host == build),
22433      # the user could write a script that provides the needed information,
22434      # so we support that.
22435      python_prog=${with_python}
22436      python_prefix=
22437    else
22438      as_fn_error $? "invalid value for --with-python" "$LINENO" 5
22439    fi
22440    ;;
22441  */*)
22442    # Disallow --with-python=foo/bar.
22443    as_fn_error $? "invalid value for --with-python" "$LINENO" 5
22444    ;;
22445  *)
22446    # The user has either specified auto, yes, or the name of the python
22447    # program assumed to be in $PATH.
22448    python_prefix=
22449    case "${with_python}" in
22450    yes | auto)
22451      if test "${build}" = "${host}"; then
22452        # Look first for 'python', then 'python3'.
22453        for ac_prog in python python3
22454do
22455  # Extract the first word of "$ac_prog", so it can be a program name with args.
22456set dummy $ac_prog; ac_word=$2
22457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22458$as_echo_n "checking for $ac_word... " >&6; }
22459if ${ac_cv_path_python_prog_path+:} false; then :
22460  $as_echo_n "(cached) " >&6
22461else
22462  case $python_prog_path in
22463  [\\/]* | ?:[\\/]*)
22464  ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
22465  ;;
22466  *)
22467  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22468for as_dir in $PATH
22469do
22470  IFS=$as_save_IFS
22471  test -z "$as_dir" && as_dir=.
22472    for ac_exec_ext in '' $ac_executable_extensions; do
22473  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22474    ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
22475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22476    break 2
22477  fi
22478done
22479  done
22480IFS=$as_save_IFS
22481
22482  ;;
22483esac
22484fi
22485python_prog_path=$ac_cv_path_python_prog_path
22486if test -n "$python_prog_path"; then
22487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
22488$as_echo "$python_prog_path" >&6; }
22489else
22490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22491$as_echo "no" >&6; }
22492fi
22493
22494
22495  test -n "$python_prog_path" && break
22496done
22497test -n "$python_prog_path" || python_prog_path="missing"
22498
22499        if test "${python_prog_path}" = missing; then
22500          python_prog=missing
22501        else
22502          python_prog=${python_prog_path}
22503        fi
22504      else
22505        # Not much we can do except assume the cross-compiler will find the
22506        # right files.
22507        python_prog=missing
22508      fi
22509      ;;
22510    *)
22511      # While we can't run python compiled for $host (unless host == build),
22512      # the user could write a script that provides the needed information,
22513      # so we support that.
22514      python_prog="${with_python}"
22515      # Extract the first word of "${python_prog}", so it can be a program name with args.
22516set dummy ${python_prog}; ac_word=$2
22517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22518$as_echo_n "checking for $ac_word... " >&6; }
22519if ${ac_cv_path_python_prog_path+:} false; then :
22520  $as_echo_n "(cached) " >&6
22521else
22522  case $python_prog_path in
22523  [\\/]* | ?:[\\/]*)
22524  ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
22525  ;;
22526  *)
22527  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22528for as_dir in $PATH
22529do
22530  IFS=$as_save_IFS
22531  test -z "$as_dir" && as_dir=.
22532    for ac_exec_ext in '' $ac_executable_extensions; do
22533  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22534    ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
22535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22536    break 2
22537  fi
22538done
22539  done
22540IFS=$as_save_IFS
22541
22542  test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
22543  ;;
22544esac
22545fi
22546python_prog_path=$ac_cv_path_python_prog_path
22547if test -n "$python_prog_path"; then
22548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
22549$as_echo "$python_prog_path" >&6; }
22550else
22551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22552$as_echo "no" >&6; }
22553fi
22554
22555
22556      if test "${python_prog_path}" = missing; then
22557	as_fn_error $? "unable to find python program ${python_prog}" "$LINENO" 5
22558      fi
22559      ;;
22560    esac
22561  esac
22562
22563  if test "${python_prog}" != missing; then
22564    # We have a python program to use, but it may be too old.
22565    # Don't flag an error for --with-python=auto (the default).
22566    have_python_config=yes
22567    python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
22568    if test $? != 0; then
22569      have_python_config=failed
22570      if test "${with_python}" != auto; then
22571	as_fn_error $? "failure running python-config --includes" "$LINENO" 5
22572      fi
22573    fi
22574    python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
22575    if test $? != 0; then
22576      have_python_config=failed
22577      if test "${with_python}" != auto; then
22578	as_fn_error $? "failure running python-config --ldflags" "$LINENO" 5
22579      fi
22580    fi
22581    python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
22582    if test $? != 0; then
22583      have_python_config=failed
22584      if test "${with_python}" != auto; then
22585	as_fn_error $? "failure running python-config --exec-prefix" "$LINENO" 5
22586      fi
22587    fi
22588  else
22589    # We do not have a python executable we can use to determine where
22590    # to find the Python headers and libs.  We cannot guess the include
22591    # path from the python_prefix either, because that include path
22592    # depends on the Python version.  So, there is nothing much we can
22593    # do except assume that the compiler will be able to find those files.
22594    python_includes=
22595    python_libs=
22596    have_python_config=no
22597  fi
22598
22599  # If we have python-config, only try the configuration it provides.
22600  # Otherwise fallback on the old way of trying different versions of
22601  # python in turn.
22602
22603  have_libpython=no
22604  if test "${have_python_config}" = yes; then
22605
22606
22607  new_CPPFLAGS=${python_includes}
22608  new_LIBS=${python_libs}
22609  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
22610$as_echo_n "checking for python... " >&6; }
22611  save_CPPFLAGS=$CPPFLAGS
22612  save_LIBS=$LIBS
22613  CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
22614  LIBS="$new_LIBS $LIBS"
22615  found_usable_python=no
22616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22617/* end confdefs.h.  */
22618#include "Python.h"
22619int
22620main ()
22621{
22622
22623				    #if PY_MAJOR_VERSION != 3
22624				    # error "We only support Python 3"
22625				    #endif
22626				    Py_Initialize ();
22627
22628  ;
22629  return 0;
22630}
22631_ACEOF
22632if ac_fn_c_try_link "$LINENO"; then :
22633  have_libpython=yes
22634                  found_usable_python=yes
22635                  PYTHON_CPPFLAGS=$new_CPPFLAGS
22636                  PYTHON_LIBS=$new_LIBS
22637fi
22638rm -f core conftest.err conftest.$ac_objext \
22639    conftest$ac_exeext conftest.$ac_ext
22640  CPPFLAGS=$save_CPPFLAGS
22641  LIBS=$save_LIBS
22642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
22643$as_echo "${found_usable_python}" >&6; }
22644
22645  fi
22646
22647  if test "${have_libpython}" = no; then
22648    case "${with_python}" in
22649    yes)
22650      as_fn_error $? "python is missing or unusable" "$LINENO" 5
22651      ;;
22652    auto)
22653      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
22654$as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
22655      ;;
22656    *)
22657      as_fn_error $? "no usable python found at ${with_python}" "$LINENO" 5
22658      ;;
22659    esac
22660  else
22661    if test -n "${python_prefix}"; then
22662
22663cat >>confdefs.h <<_ACEOF
22664#define WITH_PYTHON_PATH "${python_prefix}"
22665_ACEOF
22666
22667
22668  if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
22669     if test "x$prefix" = xNONE; then
22670     	test_prefix=/usr/local
22671     else
22672	test_prefix=$prefix
22673     fi
22674  else
22675     test_prefix=$exec_prefix
22676  fi
22677  value=0
22678  case ${python_prefix} in
22679     "${test_prefix}"|"${test_prefix}/"*|\
22680	'${exec_prefix}'|'${exec_prefix}/'*)
22681     value=1
22682     ;;
22683  esac
22684
22685cat >>confdefs.h <<_ACEOF
22686#define PYTHON_PATH_RELOCATABLE $value
22687_ACEOF
22688
22689
22690    fi
22691  fi
22692fi
22693
22694
22695# Check whether --with-python-libdir was given.
22696if test "${with_python_libdir+set}" = set; then :
22697  withval=$with_python_libdir;
22698else
22699
22700    # If no python libdir is specified then select one based on
22701    # python's prefix path.
22702    if test -n "${python_prefix}"; then
22703      with_python_libdir=${python_prefix}/lib
22704    fi
22705
22706fi
22707
22708
22709if test "${have_libpython}" != no; then
22710
22711$as_echo "#define HAVE_PYTHON 1" >>confdefs.h
22712
22713  CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
22714  CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
22715  CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
22716  CONFIG_INSTALL="$CONFIG_INSTALL install-python"
22717  ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
22718
22719  if test -n "${with_python_libdir}"; then
22720
22721cat >>confdefs.h <<_ACEOF
22722#define WITH_PYTHON_LIBDIR "${with_python_libdir}"
22723_ACEOF
22724
22725
22726  if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
22727     if test "x$prefix" = xNONE; then
22728     	test_prefix=/usr/local
22729     else
22730	test_prefix=$prefix
22731     fi
22732  else
22733     test_prefix=$exec_prefix
22734  fi
22735  value=0
22736  case ${with_python_libdir} in
22737     "${test_prefix}"|"${test_prefix}/"*|\
22738	'${exec_prefix}'|'${exec_prefix}/'*)
22739     value=1
22740     ;;
22741  esac
22742
22743cat >>confdefs.h <<_ACEOF
22744#define PYTHON_LIBDIR_RELOCATABLE $value
22745_ACEOF
22746
22747
22748  fi
22749
22750  # Flags needed to compile Python code (taken from python-config --cflags).
22751  # We cannot call python-config directly because it will output whatever was
22752  # used when compiling the Python interpreter itself, including flags which
22753  # would make the python-related objects be compiled differently from the
22754  # rest of GDB (e.g., -O2 and -fPIC).
22755  if test "${GCC}" = yes; then
22756    tentative_python_cflags="-fno-strict-aliasing -fwrapv"
22757    # Python headers recommend -DNDEBUG, but it's unclear if that just
22758    # refers to building Python itself.  In release mode, though, it
22759    # doesn't hurt for the Python code in gdb to follow.
22760    $development || tentative_python_cflags="$tentative_python_cflags -DNDEBUG"
22761  fi
22762
22763  if test "x${tentative_python_cflags}" != x; then
22764    { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
22765$as_echo_n "checking compiler flags for python code... " >&6; }
22766    for flag in ${tentative_python_cflags}; do
22767      # Check that the compiler accepts it
22768      saved_CFLAGS="$CFLAGS"
22769      CFLAGS="$CFLAGS $flag"
22770      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22771/* end confdefs.h.  */
22772
22773int
22774main ()
22775{
22776
22777  ;
22778  return 0;
22779}
22780_ACEOF
22781if ac_fn_c_try_compile "$LINENO"; then :
22782  PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
22783fi
22784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22785      CFLAGS="$saved_CFLAGS"
22786    done
22787    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
22788$as_echo "${PYTHON_CFLAGS}" >&6; }
22789  fi
22790
22791  # On x64 Windows, Python's include headers, and pyconfig.h in
22792  # particular, rely on MS_WIN64 macro to detect that it's a 64bit
22793  # version of Windows.  Unfortunately, MS_WIN64 is only defined if
22794  # _MSC_VER, a Microsoft-specific macro, is defined.  So, when
22795  # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
22796  # The issue was reported to the Python community, but still isn't
22797  # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
22798
22799  case "$gdb_host" in
22800    mingw64)
22801           if test "${GCC}" = yes; then
22802             CPPFLAGS="$CPPFLAGS -DMS_WIN64"
22803           fi
22804           ;;
22805  esac
22806else
22807  # Even if Python support is not compiled in, we need to have this file
22808  # included so that the "python" command, et.al., still exists.
22809  CONFIG_OBS="$CONFIG_OBS python/python.o"
22810  CONFIG_SRCS="$CONFIG_SRCS python/python.c"
22811fi
22812
22813# Work around Python http://bugs.python.org/issue10112.  See also
22814# http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
22815# no effect.  Note that the only test after this that uses Python is
22816# the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
22817# run without -export-dynamic too.
22818PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
22819
22820
22821
22822
22823 if test "${have_libpython}" != no; then
22824  HAVE_PYTHON_TRUE=
22825  HAVE_PYTHON_FALSE='#'
22826else
22827  HAVE_PYTHON_TRUE='#'
22828  HAVE_PYTHON_FALSE=
22829fi
22830
22831
22832# -------------------- #
22833# Check for libguile.  #
22834# -------------------- #
22835
22836
22837
22838
22839
22840
22841# Check whether --with-guile was given.
22842if test "${with_guile+set}" = set; then :
22843  withval=$with_guile;
22844else
22845  with_guile=auto
22846fi
22847
22848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
22849$as_echo_n "checking whether to use guile... " >&6; }
22850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
22851$as_echo "$with_guile" >&6; }
22852
22853# Extract the first word of "pkg-config", so it can be a program name with args.
22854set dummy pkg-config; ac_word=$2
22855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22856$as_echo_n "checking for $ac_word... " >&6; }
22857if ${ac_cv_path_pkg_config_prog_path+:} false; then :
22858  $as_echo_n "(cached) " >&6
22859else
22860  case $pkg_config_prog_path in
22861  [\\/]* | ?:[\\/]*)
22862  ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
22863  ;;
22864  *)
22865  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22866for as_dir in $PATH
22867do
22868  IFS=$as_save_IFS
22869  test -z "$as_dir" && as_dir=.
22870    for ac_exec_ext in '' $ac_executable_extensions; do
22871  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22872    ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
22873    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22874    break 2
22875  fi
22876done
22877  done
22878IFS=$as_save_IFS
22879
22880  test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
22881  ;;
22882esac
22883fi
22884pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
22885if test -n "$pkg_config_prog_path"; then
22886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
22887$as_echo "$pkg_config_prog_path" >&6; }
22888else
22889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22890$as_echo "no" >&6; }
22891fi
22892
22893
22894
22895try_guile_versions="guile-3.0 guile-2.2 guile-2.0"
22896have_libguile=no
22897case "${with_guile}" in
22898no)
22899  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
22900$as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
22901  ;;
22902auto)
22903  if test "${pkg_config_prog_path}" = "missing"; then
22904    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
22905$as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
22906  else
22907
22908  pkg_config=${pkg_config_prog_path}
22909  guile_version_list=${try_guile_versions}
22910  flag_errors=no
22911
22912  found_usable_guile=checking
22913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
22914$as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
22915  for guile_version in ${guile_version_list}; do
22916    ${pkg_config} --exists ${guile_version} 2>/dev/null
22917    if test $? != 0; then
22918      continue
22919    fi
22920            new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
22921    if test $? != 0; then
22922      as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
22923    fi
22924    new_LIBS=`${pkg_config} --libs ${guile_version}`
22925    if test $? != 0; then
22926      as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
22927    fi
22928        found_usable_guile=${guile_version}
22929    break
22930  done
22931  if test "${found_usable_guile}" = "checking"; then
22932    if test "${flag_errors}" = "yes"; then
22933      as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
22934    else
22935      found_usable_guile=no
22936    fi
22937  fi
22938      if test "${found_usable_guile}" != no; then
22939    save_CPPFLAGS=$CPPFLAGS
22940    save_LIBS=$LIBS
22941    CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
22942    LIBS="$LIBS $new_LIBS"
22943    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22944/* end confdefs.h.  */
22945#include "libguile.h"
22946int
22947main ()
22948{
22949scm_init_guile ();
22950  ;
22951  return 0;
22952}
22953_ACEOF
22954if ac_fn_c_try_link "$LINENO"; then :
22955  have_libguile=yes
22956                    GUILE_CPPFLAGS=$new_CPPFLAGS
22957                    GUILE_LIBS=$new_LIBS
22958else
22959  found_usable_guile=no
22960fi
22961rm -f core conftest.err conftest.$ac_objext \
22962    conftest$ac_exeext conftest.$ac_ext
22963        ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
22964if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
22965
22966$as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
22967
22968
22969fi
22970
22971    CPPFLAGS=$save_CPPFLAGS
22972    LIBS=$save_LIBS
22973    if test "${found_usable_guile}" = no; then
22974      if test "${flag_errors}" = yes; then
22975        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22976$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22977as_fn_error $? "linking guile version ${guile_version} test program failed
22978See \`config.log' for more details" "$LINENO" 5; }
22979      fi
22980    fi
22981  fi
22982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
22983$as_echo "${found_usable_guile}" >&6; }
22984
22985  fi
22986  ;;
22987yes)
22988  if test "${pkg_config_prog_path}" = "missing"; then
22989    as_fn_error $? "pkg-config not found" "$LINENO" 5
22990  fi
22991
22992  pkg_config=${pkg_config_prog_path}
22993  guile_version_list=${try_guile_versions}
22994  flag_errors=yes
22995
22996  found_usable_guile=checking
22997  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
22998$as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
22999  for guile_version in ${guile_version_list}; do
23000    ${pkg_config} --exists ${guile_version} 2>/dev/null
23001    if test $? != 0; then
23002      continue
23003    fi
23004            new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
23005    if test $? != 0; then
23006      as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
23007    fi
23008    new_LIBS=`${pkg_config} --libs ${guile_version}`
23009    if test $? != 0; then
23010      as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
23011    fi
23012        found_usable_guile=${guile_version}
23013    break
23014  done
23015  if test "${found_usable_guile}" = "checking"; then
23016    if test "${flag_errors}" = "yes"; then
23017      as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
23018    else
23019      found_usable_guile=no
23020    fi
23021  fi
23022      if test "${found_usable_guile}" != no; then
23023    save_CPPFLAGS=$CPPFLAGS
23024    save_LIBS=$LIBS
23025    CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
23026    LIBS="$LIBS $new_LIBS"
23027    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23028/* end confdefs.h.  */
23029#include "libguile.h"
23030int
23031main ()
23032{
23033scm_init_guile ();
23034  ;
23035  return 0;
23036}
23037_ACEOF
23038if ac_fn_c_try_link "$LINENO"; then :
23039  have_libguile=yes
23040                    GUILE_CPPFLAGS=$new_CPPFLAGS
23041                    GUILE_LIBS=$new_LIBS
23042else
23043  found_usable_guile=no
23044fi
23045rm -f core conftest.err conftest.$ac_objext \
23046    conftest$ac_exeext conftest.$ac_ext
23047        ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
23048if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
23049
23050$as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
23051
23052
23053fi
23054
23055    CPPFLAGS=$save_CPPFLAGS
23056    LIBS=$save_LIBS
23057    if test "${found_usable_guile}" = no; then
23058      if test "${flag_errors}" = yes; then
23059        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23060$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23061as_fn_error $? "linking guile version ${guile_version} test program failed
23062See \`config.log' for more details" "$LINENO" 5; }
23063      fi
23064    fi
23065  fi
23066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
23067$as_echo "${found_usable_guile}" >&6; }
23068
23069  ;;
23070[\\/]* | ?:[\\/]*)
23071  if test -x "${with_guile}"; then
23072
23073  pkg_config=${with_guile}
23074  guile_version_list=${try_guile_versions}
23075  flag_errors=yes
23076
23077  found_usable_guile=checking
23078  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
23079$as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
23080  for guile_version in ${guile_version_list}; do
23081    ${pkg_config} --exists ${guile_version} 2>/dev/null
23082    if test $? != 0; then
23083      continue
23084    fi
23085            new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
23086    if test $? != 0; then
23087      as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
23088    fi
23089    new_LIBS=`${pkg_config} --libs ${guile_version}`
23090    if test $? != 0; then
23091      as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
23092    fi
23093        found_usable_guile=${guile_version}
23094    break
23095  done
23096  if test "${found_usable_guile}" = "checking"; then
23097    if test "${flag_errors}" = "yes"; then
23098      as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
23099    else
23100      found_usable_guile=no
23101    fi
23102  fi
23103      if test "${found_usable_guile}" != no; then
23104    save_CPPFLAGS=$CPPFLAGS
23105    save_LIBS=$LIBS
23106    CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
23107    LIBS="$LIBS $new_LIBS"
23108    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23109/* end confdefs.h.  */
23110#include "libguile.h"
23111int
23112main ()
23113{
23114scm_init_guile ();
23115  ;
23116  return 0;
23117}
23118_ACEOF
23119if ac_fn_c_try_link "$LINENO"; then :
23120  have_libguile=yes
23121                    GUILE_CPPFLAGS=$new_CPPFLAGS
23122                    GUILE_LIBS=$new_LIBS
23123else
23124  found_usable_guile=no
23125fi
23126rm -f core conftest.err conftest.$ac_objext \
23127    conftest$ac_exeext conftest.$ac_ext
23128        ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
23129if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
23130
23131$as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
23132
23133
23134fi
23135
23136    CPPFLAGS=$save_CPPFLAGS
23137    LIBS=$save_LIBS
23138    if test "${found_usable_guile}" = no; then
23139      if test "${flag_errors}" = yes; then
23140        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23142as_fn_error $? "linking guile version ${guile_version} test program failed
23143See \`config.log' for more details" "$LINENO" 5; }
23144      fi
23145    fi
23146  fi
23147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
23148$as_echo "${found_usable_guile}" >&6; }
23149
23150  else
23151    as_fn_error $? "Guile config program not executable: ${with_guile}" "$LINENO" 5
23152  fi
23153  ;;
23154"" | */*)
23155  # Disallow --with=guile="" and --with-guile=foo/bar.
23156  as_fn_error $? "invalid value for --with-guile" "$LINENO" 5
23157  ;;
23158*)
23159  # A space separate list of guile versions to try, in order.
23160  if test "${pkg_config_prog_path}" = "missing"; then
23161    as_fn_error $? "pkg-config not found" "$LINENO" 5
23162  fi
23163
23164  pkg_config=${pkg_config_prog_path}
23165  guile_version_list=${with_guile}
23166  flag_errors=yes
23167
23168  found_usable_guile=checking
23169  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
23170$as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
23171  for guile_version in ${guile_version_list}; do
23172    ${pkg_config} --exists ${guile_version} 2>/dev/null
23173    if test $? != 0; then
23174      continue
23175    fi
23176            new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
23177    if test $? != 0; then
23178      as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
23179    fi
23180    new_LIBS=`${pkg_config} --libs ${guile_version}`
23181    if test $? != 0; then
23182      as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
23183    fi
23184        found_usable_guile=${guile_version}
23185    break
23186  done
23187  if test "${found_usable_guile}" = "checking"; then
23188    if test "${flag_errors}" = "yes"; then
23189      as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
23190    else
23191      found_usable_guile=no
23192    fi
23193  fi
23194      if test "${found_usable_guile}" != no; then
23195    save_CPPFLAGS=$CPPFLAGS
23196    save_LIBS=$LIBS
23197    CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
23198    LIBS="$LIBS $new_LIBS"
23199    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23200/* end confdefs.h.  */
23201#include "libguile.h"
23202int
23203main ()
23204{
23205scm_init_guile ();
23206  ;
23207  return 0;
23208}
23209_ACEOF
23210if ac_fn_c_try_link "$LINENO"; then :
23211  have_libguile=yes
23212                    GUILE_CPPFLAGS=$new_CPPFLAGS
23213                    GUILE_LIBS=$new_LIBS
23214else
23215  found_usable_guile=no
23216fi
23217rm -f core conftest.err conftest.$ac_objext \
23218    conftest$ac_exeext conftest.$ac_ext
23219        ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
23220if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
23221
23222$as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
23223
23224
23225fi
23226
23227    CPPFLAGS=$save_CPPFLAGS
23228    LIBS=$save_LIBS
23229    if test "${found_usable_guile}" = no; then
23230      if test "${flag_errors}" = yes; then
23231        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23233as_fn_error $? "linking guile version ${guile_version} test program failed
23234See \`config.log' for more details" "$LINENO" 5; }
23235      fi
23236    fi
23237  fi
23238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
23239$as_echo "${found_usable_guile}" >&6; }
23240
23241  ;;
23242esac
23243
23244if test "${have_libguile}" != no; then
23245    case "${with_guile}" in
23246  [\\/]* | ?:[\\/]*)
23247
23248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
23249$as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
23250if ${ac_cv_guild_program_name+:} false; then :
23251  $as_echo_n "(cached) " >&6
23252else
23253  ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
23254
23255     # In Guile up to 2.0.11 included, guile-2.0.pc would not define
23256     # the 'guild' and 'bindir' variables.  In that case, try to guess
23257     # what the program name is, at the risk of getting it wrong if
23258     # Guile was configured with '--program-suffix' or similar.
23259     if test "x$ac_cv_guild_program_name" = "x"; then
23260       guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
23261       ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
23262     fi
23263
23264fi
23265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
23266$as_echo "$ac_cv_guild_program_name" >&6; }
23267
23268  if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
23269    as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
23270  fi
23271
23272  GUILD="$ac_cv_guild_program_name"
23273
23274
23275    ;;
23276  *)
23277
23278  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
23279$as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
23280if ${ac_cv_guild_program_name+:} false; then :
23281  $as_echo_n "(cached) " >&6
23282else
23283  ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
23284
23285     # In Guile up to 2.0.11 included, guile-2.0.pc would not define
23286     # the 'guild' and 'bindir' variables.  In that case, try to guess
23287     # what the program name is, at the risk of getting it wrong if
23288     # Guile was configured with '--program-suffix' or similar.
23289     if test "x$ac_cv_guild_program_name" = "x"; then
23290       guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
23291       ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
23292     fi
23293
23294fi
23295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
23296$as_echo "$ac_cv_guild_program_name" >&6; }
23297
23298  if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
23299    as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
23300  fi
23301
23302  GUILD="$ac_cv_guild_program_name"
23303
23304
23305    ;;
23306  esac
23307
23308
23309  if test "$cross_compiling" = no; then
23310    GUILD_TARGET_FLAG=
23311  else
23312    GUILD_TARGET_FLAG="--target=$host"
23313  fi
23314
23315
23316
23317
23318  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
23319$as_echo_n "checking whether guild supports this host... " >&6; }
23320if ${ac_cv_guild_ok+:} false; then :
23321  $as_echo_n "(cached) " >&6
23322else
23323  echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
23324     if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
23325       ac_cv_guild_ok=yes
23326     else
23327       ac_cv_guild_ok=no
23328     fi
23329fi
23330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
23331$as_echo "$ac_cv_guild_ok" >&6; }
23332
23333    if test "$ac_cv_guild_ok" = no; then
23334    have_libguile=no
23335    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
23336$as_echo "$as_me: WARNING: disabling guile support" >&2;}
23337  fi
23338fi
23339
23340if test "${have_libguile}" != no; then
23341
23342$as_echo "#define HAVE_GUILE 1" >>confdefs.h
23343
23344  CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
23345  CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
23346  CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
23347  CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
23348  ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
23349
23350    save_LIBS="$LIBS"
23351  save_CPPFLAGS="$CPPFLAGS"
23352  LIBS="$GUILE_LIBS"
23353  CPPFLAGS="$GUILE_CPPFLAGS"
23354  for ac_func in scm_new_smob
23355do :
23356  ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
23357if test "x$ac_cv_func_scm_new_smob" = xyes; then :
23358  cat >>confdefs.h <<_ACEOF
23359#define HAVE_SCM_NEW_SMOB 1
23360_ACEOF
23361
23362fi
23363done
23364
23365  LIBS="$save_LIBS"
23366  CPPFLAGS="$save_CPPFLAGS"
23367else
23368  # Even if Guile support is not compiled in, we need to have these files
23369  # included.
23370  CONFIG_OBS="$CONFIG_OBS guile/guile.o"
23371  CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
23372fi
23373
23374
23375 if test "${have_libguile}" != no; then
23376  HAVE_GUILE_TRUE=
23377  HAVE_GUILE_FALSE='#'
23378else
23379  HAVE_GUILE_TRUE='#'
23380  HAVE_GUILE_FALSE=
23381fi
23382
23383
23384# ---------------------------- #
23385# Check for source highlight.  #
23386# ---------------------------- #
23387
23388SRCHIGH_LIBS=
23389SRCHIGH_CFLAGS=
23390
23391# Check whether --enable-source-highlight was given.
23392if test "${enable_source_highlight+set}" = set; then :
23393  enableval=$enable_source_highlight;
23394	   case $enableval in
23395	     yes | no | auto)
23396	       ;;
23397	     *)
23398	       as_fn_error $? "bad value $enableval for --enable-source-highlight" "$LINENO" 5
23399	       ;;
23400	   esac
23401
23402else
23403  enable_source_highlight=auto
23404fi
23405
23406
23407if test "${enable_source_highlight}" != "no"; then
23408  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
23409$as_echo_n "checking for the source-highlight library... " >&6; }
23410  if test "${pkg_config_prog_path}" = "missing"; then
23411    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
23412$as_echo "no - pkg-config not found" >&6; }
23413    if test "${enable_source_highlight}" = "yes"; then
23414      as_fn_error $? "pkg-config was not found in your system" "$LINENO" 5
23415    fi
23416  else
23417    if ${pkg_config_prog_path} --exists source-highlight; then
23418      case "$LDFLAGS" in
23419        *static-libstdc*)
23420          as_fn_error $? "source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
23421          ;;
23422      esac
23423
23424      srchigh_pkg_cflags=`${pkg_config_prog_path} --cflags source-highlight`
23425      srchigh_pkg_libs=`${pkg_config_prog_path} --libs source-highlight`
23426
23427      # Now that we have found a source-highlight library, check if we can use
23428      # it.  In particular, we're trying to detect the situation that the
23429      # library is using the new libstdc++ library abi ( see
23430      # https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html )
23431      # while the compiler being used to compile gdb is using the old abi.
23432      # Such a situation will result in an undefined reference to
23433      # srchilite::SourceHighlight::SourceHighlight(std::string const&).
23434      # This situation can occur for instance when using a source highlight
23435      # library compiled with g++ 7.5.0 while building gdb with g++ 4.8.5.
23436      ac_ext=cpp
23437ac_cpp='$CXXCPP $CPPFLAGS'
23438ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23439ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23440ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23441
23442      save_CXXFLAGS="$CXXFLAGS"
23443      save_LIBS="$LIBS"
23444      CXXFLAGS="$CXXFLAGS $srchigh_pkg_cflags"
23445      LIBS="$LIBS $srchigh_pkg_libs"
23446      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23447/* end confdefs.h.  */
23448#include <srchilite/sourcehighlight.h>
23449int
23450main ()
23451{
23452std::string outlang = "esc.outlang";
23453           new srchilite::SourceHighlight (outlang);
23454
23455  ;
23456  return 0;
23457}
23458_ACEOF
23459if ac_fn_cxx_try_link "$LINENO"; then :
23460  have_usable_source_highlight=yes
23461else
23462  have_usable_source_highlight=no
23463
23464fi
23465rm -f core conftest.err conftest.$ac_objext \
23466    conftest$ac_exeext conftest.$ac_ext
23467      CXXFLAGS="$save_CXXFLAGS"
23468      LIBS="$save_LIBS"
23469      ac_ext=c
23470ac_cpp='$CPP $CPPFLAGS'
23471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23473ac_compiler_gnu=$ac_cv_c_compiler_gnu
23474
23475
23476      if test "${have_usable_source_highlight}" = "yes"; then
23477
23478$as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
23479
23480        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23481$as_echo "yes" >&6; }
23482        SRCHIGH_CFLAGS="$srchigh_pkg_cflags"
23483        SRCHIGH_LIBS="$srchigh_pkg_libs"
23484      else
23485        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23486$as_echo "no" >&6; }
23487        if test "${enable_source_highlight}" = "yes"; then
23488          as_fn_error $? "source-highlight in your system could not be used" "$LINENO" 5
23489        fi
23490      fi
23491    else
23492      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23493$as_echo "no" >&6; }
23494      if test "${enable_source_highlight}" = "yes"; then
23495        as_fn_error $? "source-highlight was not found in your system" "$LINENO" 5
23496      fi
23497    fi
23498  fi
23499fi
23500
23501
23502
23503# ------------------------- #
23504# Checks for header files.  #
23505# ------------------------- #
23506
23507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
23508$as_echo_n "checking for ANSI C header files... " >&6; }
23509if ${ac_cv_header_stdc+:} false; then :
23510  $as_echo_n "(cached) " >&6
23511else
23512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23513/* end confdefs.h.  */
23514#include <stdlib.h>
23515#include <stdarg.h>
23516#include <string.h>
23517#include <float.h>
23518
23519int
23520main ()
23521{
23522
23523  ;
23524  return 0;
23525}
23526_ACEOF
23527if ac_fn_c_try_compile "$LINENO"; then :
23528  ac_cv_header_stdc=yes
23529else
23530  ac_cv_header_stdc=no
23531fi
23532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23533
23534if test $ac_cv_header_stdc = yes; then
23535  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23537/* end confdefs.h.  */
23538#include <string.h>
23539
23540_ACEOF
23541if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23542  $EGREP "memchr" >/dev/null 2>&1; then :
23543
23544else
23545  ac_cv_header_stdc=no
23546fi
23547rm -f conftest*
23548
23549fi
23550
23551if test $ac_cv_header_stdc = yes; then
23552  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23554/* end confdefs.h.  */
23555#include <stdlib.h>
23556
23557_ACEOF
23558if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23559  $EGREP "free" >/dev/null 2>&1; then :
23560
23561else
23562  ac_cv_header_stdc=no
23563fi
23564rm -f conftest*
23565
23566fi
23567
23568if test $ac_cv_header_stdc = yes; then
23569  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23570  if test "$cross_compiling" = yes; then :
23571  :
23572else
23573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23574/* end confdefs.h.  */
23575#include <ctype.h>
23576#include <stdlib.h>
23577#if ((' ' & 0x0FF) == 0x020)
23578# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23579# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23580#else
23581# define ISLOWER(c) \
23582		   (('a' <= (c) && (c) <= 'i') \
23583		     || ('j' <= (c) && (c) <= 'r') \
23584		     || ('s' <= (c) && (c) <= 'z'))
23585# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23586#endif
23587
23588#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23589int
23590main ()
23591{
23592  int i;
23593  for (i = 0; i < 256; i++)
23594    if (XOR (islower (i), ISLOWER (i))
23595	|| toupper (i) != TOUPPER (i))
23596      return 2;
23597  return 0;
23598}
23599_ACEOF
23600if ac_fn_c_try_run "$LINENO"; then :
23601
23602else
23603  ac_cv_header_stdc=no
23604fi
23605rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23606  conftest.$ac_objext conftest.beam conftest.$ac_ext
23607fi
23608
23609fi
23610fi
23611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
23612$as_echo "$ac_cv_header_stdc" >&6; }
23613if test $ac_cv_header_stdc = yes; then
23614
23615$as_echo "#define STDC_HEADERS 1" >>confdefs.h
23616
23617fi
23618
23619# elf_hp.h is for HP/UX 64-bit shared library support.
23620for ac_header in nlist.h machine/reg.h \
23621                  thread_db.h \
23622		  sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
23623		  sys/procctl.h sys/resource.h sys/ptrace.h ptrace.h \
23624		  sys/reg.h sys/debugreg.h \
23625		  termios.h elf_hp.h
23626do :
23627  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23628ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23629if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23630  cat >>confdefs.h <<_ACEOF
23631#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23632_ACEOF
23633
23634fi
23635
23636done
23637
23638for ac_header in sys/user.h
23639do :
23640  ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
23641# include <sys/param.h>
23642#endif
23643
23644"
23645if test "x$ac_cv_header_sys_user_h" = xyes; then :
23646  cat >>confdefs.h <<_ACEOF
23647#define HAVE_SYS_USER_H 1
23648_ACEOF
23649
23650fi
23651
23652done
23653
23654
23655for ac_header in curses.h cursesX.h ncurses.h ncursesw/ncurses.h ncurses/ncurses.h ncurses/term.h
23656do :
23657  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23658ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23659if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23660  cat >>confdefs.h <<_ACEOF
23661#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23662_ACEOF
23663
23664fi
23665
23666done
23667
23668for ac_header in term.h
23669do :
23670  ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
23671# include <curses.h>
23672#endif
23673
23674"
23675if test "x$ac_cv_header_term_h" = xyes; then :
23676  cat >>confdefs.h <<_ACEOF
23677#define HAVE_TERM_H 1
23678_ACEOF
23679
23680fi
23681
23682done
23683
23684
23685for ac_header in sys/socket.h
23686do :
23687  ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
23688if test "x$ac_cv_header_sys_socket_h" = xyes; then :
23689  cat >>confdefs.h <<_ACEOF
23690#define HAVE_SYS_SOCKET_H 1
23691_ACEOF
23692
23693fi
23694
23695done
23696
23697for ac_header in ws2tcpip.h
23698do :
23699  ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
23700if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
23701  cat >>confdefs.h <<_ACEOF
23702#define HAVE_WS2TCPIP_H 1
23703_ACEOF
23704
23705fi
23706
23707done
23708
23709for ac_header in execinfo.h
23710do :
23711  ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
23712if test "x$ac_cv_header_execinfo_h" = xyes; then :
23713  cat >>confdefs.h <<_ACEOF
23714#define HAVE_EXECINFO_H 1
23715_ACEOF
23716
23717fi
23718
23719done
23720
23721
23722# ------------------------- #
23723# Checks for declarations.  #
23724# ------------------------- #
23725
23726
23727  # Check for presence and size of long long.
23728  ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
23729if test "x$ac_cv_type_long_long" = xyes; then :
23730
23731cat >>confdefs.h <<_ACEOF
23732#define HAVE_LONG_LONG 1
23733_ACEOF
23734
23735# The cast to long int works around a bug in the HP C Compiler
23736# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23737# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23738# This bug is HP SR number 8606223364.
23739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
23740$as_echo_n "checking size of long long... " >&6; }
23741if ${ac_cv_sizeof_long_long+:} false; then :
23742  $as_echo_n "(cached) " >&6
23743else
23744  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
23745
23746else
23747  if test "$ac_cv_type_long_long" = yes; then
23748     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23750as_fn_error 77 "cannot compute sizeof (long long)
23751See \`config.log' for more details" "$LINENO" 5; }
23752   else
23753     ac_cv_sizeof_long_long=0
23754   fi
23755fi
23756
23757fi
23758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
23759$as_echo "$ac_cv_sizeof_long_long" >&6; }
23760
23761
23762
23763cat >>confdefs.h <<_ACEOF
23764#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23765_ACEOF
23766
23767
23768fi
23769
23770
23771  as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
23772ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
23773if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
23774  ac_have_decl=1
23775else
23776  ac_have_decl=0
23777fi
23778
23779cat >>confdefs.h <<_ACEOF
23780#define HAVE_DECL_BASENAME $ac_have_decl
23781_ACEOF
23782ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
23783if test "x$ac_cv_have_decl_ffs" = xyes; then :
23784  ac_have_decl=1
23785else
23786  ac_have_decl=0
23787fi
23788
23789cat >>confdefs.h <<_ACEOF
23790#define HAVE_DECL_FFS $ac_have_decl
23791_ACEOF
23792ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
23793if test "x$ac_cv_have_decl_asprintf" = xyes; then :
23794  ac_have_decl=1
23795else
23796  ac_have_decl=0
23797fi
23798
23799cat >>confdefs.h <<_ACEOF
23800#define HAVE_DECL_ASPRINTF $ac_have_decl
23801_ACEOF
23802ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
23803if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
23804  ac_have_decl=1
23805else
23806  ac_have_decl=0
23807fi
23808
23809cat >>confdefs.h <<_ACEOF
23810#define HAVE_DECL_VASPRINTF $ac_have_decl
23811_ACEOF
23812ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
23813if test "x$ac_cv_have_decl_snprintf" = xyes; then :
23814  ac_have_decl=1
23815else
23816  ac_have_decl=0
23817fi
23818
23819cat >>confdefs.h <<_ACEOF
23820#define HAVE_DECL_SNPRINTF $ac_have_decl
23821_ACEOF
23822ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
23823if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
23824  ac_have_decl=1
23825else
23826  ac_have_decl=0
23827fi
23828
23829cat >>confdefs.h <<_ACEOF
23830#define HAVE_DECL_VSNPRINTF $ac_have_decl
23831_ACEOF
23832
23833  ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
23834if test "x$ac_cv_have_decl_strtol" = xyes; then :
23835  ac_have_decl=1
23836else
23837  ac_have_decl=0
23838fi
23839
23840cat >>confdefs.h <<_ACEOF
23841#define HAVE_DECL_STRTOL $ac_have_decl
23842_ACEOF
23843ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
23844if test "x$ac_cv_have_decl_strtoul" = xyes; then :
23845  ac_have_decl=1
23846else
23847  ac_have_decl=0
23848fi
23849
23850cat >>confdefs.h <<_ACEOF
23851#define HAVE_DECL_STRTOUL $ac_have_decl
23852_ACEOF
23853ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
23854if test "x$ac_cv_have_decl_strtoll" = xyes; then :
23855  ac_have_decl=1
23856else
23857  ac_have_decl=0
23858fi
23859
23860cat >>confdefs.h <<_ACEOF
23861#define HAVE_DECL_STRTOLL $ac_have_decl
23862_ACEOF
23863ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
23864if test "x$ac_cv_have_decl_strtoull" = xyes; then :
23865  ac_have_decl=1
23866else
23867  ac_have_decl=0
23868fi
23869
23870cat >>confdefs.h <<_ACEOF
23871#define HAVE_DECL_STRTOULL $ac_have_decl
23872_ACEOF
23873
23874  ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
23875if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
23876  ac_have_decl=1
23877else
23878  ac_have_decl=0
23879fi
23880
23881cat >>confdefs.h <<_ACEOF
23882#define HAVE_DECL_STRVERSCMP $ac_have_decl
23883_ACEOF
23884
23885
23886
23887ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
23888if test "x$ac_cv_have_decl_snprintf" = xyes; then :
23889  ac_have_decl=1
23890else
23891  ac_have_decl=0
23892fi
23893
23894cat >>confdefs.h <<_ACEOF
23895#define HAVE_DECL_SNPRINTF $ac_have_decl
23896_ACEOF
23897
23898
23899  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
23900$as_echo_n "checking for LC_MESSAGES... " >&6; }
23901if ${am_cv_val_LC_MESSAGES+:} false; then :
23902  $as_echo_n "(cached) " >&6
23903else
23904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23905/* end confdefs.h.  */
23906#include <locale.h>
23907int
23908main ()
23909{
23910return LC_MESSAGES
23911  ;
23912  return 0;
23913}
23914_ACEOF
23915if ac_fn_c_try_link "$LINENO"; then :
23916  am_cv_val_LC_MESSAGES=yes
23917else
23918  am_cv_val_LC_MESSAGES=no
23919fi
23920rm -f core conftest.err conftest.$ac_objext \
23921    conftest$ac_exeext conftest.$ac_ext
23922fi
23923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
23924$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
23925  if test $am_cv_val_LC_MESSAGES = yes; then
23926
23927$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
23928
23929  fi
23930
23931
23932# ------------------ #
23933# Checks for types.  #
23934# ------------------ #
23935
23936ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
23937#if HAVE_SYS_SOCKET_H
23938# include <sys/socket.h>
23939#elif HAVE_WS2TCPIP_H
23940# include <ws2tcpip.h>
23941#endif
23942
23943"
23944if test "x$ac_cv_type_socklen_t" = xyes; then :
23945
23946cat >>confdefs.h <<_ACEOF
23947#define HAVE_SOCKLEN_T 1
23948_ACEOF
23949
23950
23951fi
23952
23953
23954# ------------------------------------- #
23955# Checks for compiler characteristics.  #
23956# ------------------------------------- #
23957
23958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23959$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23960if ${ac_cv_c_const+:} false; then :
23961  $as_echo_n "(cached) " >&6
23962else
23963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23964/* end confdefs.h.  */
23965
23966int
23967main ()
23968{
23969
23970#ifndef __cplusplus
23971  /* Ultrix mips cc rejects this sort of thing.  */
23972  typedef int charset[2];
23973  const charset cs = { 0, 0 };
23974  /* SunOS 4.1.1 cc rejects this.  */
23975  char const *const *pcpcc;
23976  char **ppc;
23977  /* NEC SVR4.0.2 mips cc rejects this.  */
23978  struct point {int x, y;};
23979  static struct point const zero = {0,0};
23980  /* AIX XL C 1.02.0.0 rejects this.
23981     It does not let you subtract one const X* pointer from another in
23982     an arm of an if-expression whose if-part is not a constant
23983     expression */
23984  const char *g = "string";
23985  pcpcc = &g + (g ? g-g : 0);
23986  /* HPUX 7.0 cc rejects these. */
23987  ++pcpcc;
23988  ppc = (char**) pcpcc;
23989  pcpcc = (char const *const *) ppc;
23990  { /* SCO 3.2v4 cc rejects this sort of thing.  */
23991    char tx;
23992    char *t = &tx;
23993    char const *s = 0 ? (char *) 0 : (char const *) 0;
23994
23995    *t++ = 0;
23996    if (s) return 0;
23997  }
23998  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23999    int x[] = {25, 17};
24000    const int *foo = &x[0];
24001    ++foo;
24002  }
24003  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24004    typedef const int *iptr;
24005    iptr p = 0;
24006    ++p;
24007  }
24008  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
24009       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24010    struct s { int j; const int *ap[3]; } bx;
24011    struct s *b = &bx; b->j = 5;
24012  }
24013  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24014    const int foo = 10;
24015    if (!foo) return 0;
24016  }
24017  return !cs[0] && !zero.x;
24018#endif
24019
24020  ;
24021  return 0;
24022}
24023_ACEOF
24024if ac_fn_c_try_compile "$LINENO"; then :
24025  ac_cv_c_const=yes
24026else
24027  ac_cv_c_const=no
24028fi
24029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24030fi
24031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
24032$as_echo "$ac_cv_c_const" >&6; }
24033if test $ac_cv_c_const = no; then
24034
24035$as_echo "#define const /**/" >>confdefs.h
24036
24037fi
24038
24039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
24040$as_echo_n "checking for inline... " >&6; }
24041if ${ac_cv_c_inline+:} false; then :
24042  $as_echo_n "(cached) " >&6
24043else
24044  ac_cv_c_inline=no
24045for ac_kw in inline __inline__ __inline; do
24046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24047/* end confdefs.h.  */
24048#ifndef __cplusplus
24049typedef int foo_t;
24050static $ac_kw foo_t static_foo () {return 0; }
24051$ac_kw foo_t foo () {return 0; }
24052#endif
24053
24054_ACEOF
24055if ac_fn_c_try_compile "$LINENO"; then :
24056  ac_cv_c_inline=$ac_kw
24057fi
24058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24059  test "$ac_cv_c_inline" != no && break
24060done
24061
24062fi
24063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
24064$as_echo "$ac_cv_c_inline" >&6; }
24065
24066case $ac_cv_c_inline in
24067  inline | yes) ;;
24068  *)
24069    case $ac_cv_c_inline in
24070      no) ac_val=;;
24071      *) ac_val=$ac_cv_c_inline;;
24072    esac
24073    cat >>confdefs.h <<_ACEOF
24074#ifndef __cplusplus
24075#define inline $ac_val
24076#endif
24077_ACEOF
24078    ;;
24079esac
24080
24081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
24082$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
24083if ${ac_cv_c_bigendian+:} false; then :
24084  $as_echo_n "(cached) " >&6
24085else
24086  ac_cv_c_bigendian=unknown
24087    # See if we're dealing with a universal compiler.
24088    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24089/* end confdefs.h.  */
24090#ifndef __APPLE_CC__
24091	       not a universal capable compiler
24092	     #endif
24093	     typedef int dummy;
24094
24095_ACEOF
24096if ac_fn_c_try_compile "$LINENO"; then :
24097
24098	# Check for potential -arch flags.  It is not universal unless
24099	# there are at least two -arch flags with different values.
24100	ac_arch=
24101	ac_prev=
24102	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
24103	 if test -n "$ac_prev"; then
24104	   case $ac_word in
24105	     i?86 | x86_64 | ppc | ppc64)
24106	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
24107		 ac_arch=$ac_word
24108	       else
24109		 ac_cv_c_bigendian=universal
24110		 break
24111	       fi
24112	       ;;
24113	   esac
24114	   ac_prev=
24115	 elif test "x$ac_word" = "x-arch"; then
24116	   ac_prev=arch
24117	 fi
24118       done
24119fi
24120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24121    if test $ac_cv_c_bigendian = unknown; then
24122      # See if sys/param.h defines the BYTE_ORDER macro.
24123      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24124/* end confdefs.h.  */
24125#include <sys/types.h>
24126	     #include <sys/param.h>
24127
24128int
24129main ()
24130{
24131#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
24132		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
24133		     && LITTLE_ENDIAN)
24134	      bogus endian macros
24135	     #endif
24136
24137  ;
24138  return 0;
24139}
24140_ACEOF
24141if ac_fn_c_try_compile "$LINENO"; then :
24142  # It does; now see whether it defined to BIG_ENDIAN or not.
24143	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24144/* end confdefs.h.  */
24145#include <sys/types.h>
24146		#include <sys/param.h>
24147
24148int
24149main ()
24150{
24151#if BYTE_ORDER != BIG_ENDIAN
24152		 not big endian
24153		#endif
24154
24155  ;
24156  return 0;
24157}
24158_ACEOF
24159if ac_fn_c_try_compile "$LINENO"; then :
24160  ac_cv_c_bigendian=yes
24161else
24162  ac_cv_c_bigendian=no
24163fi
24164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24165fi
24166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24167    fi
24168    if test $ac_cv_c_bigendian = unknown; then
24169      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24170      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24171/* end confdefs.h.  */
24172#include <limits.h>
24173
24174int
24175main ()
24176{
24177#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24178	      bogus endian macros
24179	     #endif
24180
24181  ;
24182  return 0;
24183}
24184_ACEOF
24185if ac_fn_c_try_compile "$LINENO"; then :
24186  # It does; now see whether it defined to _BIG_ENDIAN or not.
24187	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24188/* end confdefs.h.  */
24189#include <limits.h>
24190
24191int
24192main ()
24193{
24194#ifndef _BIG_ENDIAN
24195		 not big endian
24196		#endif
24197
24198  ;
24199  return 0;
24200}
24201_ACEOF
24202if ac_fn_c_try_compile "$LINENO"; then :
24203  ac_cv_c_bigendian=yes
24204else
24205  ac_cv_c_bigendian=no
24206fi
24207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24208fi
24209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24210    fi
24211    if test $ac_cv_c_bigendian = unknown; then
24212      # Compile a test program.
24213      if test "$cross_compiling" = yes; then :
24214  # Try to guess by grepping values from an object file.
24215	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24216/* end confdefs.h.  */
24217short int ascii_mm[] =
24218		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24219		short int ascii_ii[] =
24220		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24221		int use_ascii (int i) {
24222		  return ascii_mm[i] + ascii_ii[i];
24223		}
24224		short int ebcdic_ii[] =
24225		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24226		short int ebcdic_mm[] =
24227		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24228		int use_ebcdic (int i) {
24229		  return ebcdic_mm[i] + ebcdic_ii[i];
24230		}
24231		extern int foo;
24232
24233int
24234main ()
24235{
24236return use_ascii (foo) == use_ebcdic (foo);
24237  ;
24238  return 0;
24239}
24240_ACEOF
24241if ac_fn_c_try_compile "$LINENO"; then :
24242  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24243	      ac_cv_c_bigendian=yes
24244	    fi
24245	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24246	      if test "$ac_cv_c_bigendian" = unknown; then
24247		ac_cv_c_bigendian=no
24248	      else
24249		# finding both strings is unlikely to happen, but who knows?
24250		ac_cv_c_bigendian=unknown
24251	      fi
24252	    fi
24253fi
24254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24255else
24256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24257/* end confdefs.h.  */
24258$ac_includes_default
24259int
24260main ()
24261{
24262
24263	     /* Are we little or big endian?  From Harbison&Steele.  */
24264	     union
24265	     {
24266	       long int l;
24267	       char c[sizeof (long int)];
24268	     } u;
24269	     u.l = 1;
24270	     return u.c[sizeof (long int) - 1] == 1;
24271
24272  ;
24273  return 0;
24274}
24275_ACEOF
24276if ac_fn_c_try_run "$LINENO"; then :
24277  ac_cv_c_bigendian=no
24278else
24279  ac_cv_c_bigendian=yes
24280fi
24281rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24282  conftest.$ac_objext conftest.beam conftest.$ac_ext
24283fi
24284
24285    fi
24286fi
24287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
24288$as_echo "$ac_cv_c_bigendian" >&6; }
24289 case $ac_cv_c_bigendian in #(
24290   yes)
24291     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
24292;; #(
24293   no)
24294      ;; #(
24295   universal)
24296
24297$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
24298
24299     ;; #(
24300   *)
24301     as_fn_error $? "unknown endianness
24302 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
24303 esac
24304
24305
24306# ------------------------------ #
24307# Checks for library functions.  #
24308# ------------------------------ #
24309
24310for ac_func in getuid getgid \
24311		pipe pread pread64 pwrite resize_term \
24312		getpgid setsid \
24313		sigaction sigsetmask socketpair \
24314		ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
24315		setrlimit getrlimit posix_madvise waitpid \
24316		use_default_colors
24317do :
24318  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24319ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24320if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24321  cat >>confdefs.h <<_ACEOF
24322#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24323_ACEOF
24324
24325fi
24326done
24327
24328
24329  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
24330$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
24331if ${am_cv_langinfo_codeset+:} false; then :
24332  $as_echo_n "(cached) " >&6
24333else
24334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24335/* end confdefs.h.  */
24336#include <langinfo.h>
24337int
24338main ()
24339{
24340char* cs = nl_langinfo(CODESET);
24341  ;
24342  return 0;
24343}
24344_ACEOF
24345if ac_fn_c_try_link "$LINENO"; then :
24346  am_cv_langinfo_codeset=yes
24347else
24348  am_cv_langinfo_codeset=no
24349fi
24350rm -f core conftest.err conftest.$ac_objext \
24351    conftest$ac_exeext conftest.$ac_ext
24352
24353fi
24354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
24355$as_echo "$am_cv_langinfo_codeset" >&6; }
24356  if test $am_cv_langinfo_codeset = yes; then
24357
24358$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
24359
24360  fi
24361
24362ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
24363if test "x$ac_cv_type_size_t" = xyes; then :
24364
24365else
24366
24367cat >>confdefs.h <<_ACEOF
24368#define size_t unsigned int
24369_ACEOF
24370
24371fi
24372
24373
24374
24375
24376  for ac_header in $ac_header_list
24377do :
24378  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24379ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24380"
24381if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24382  cat >>confdefs.h <<_ACEOF
24383#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24384_ACEOF
24385
24386fi
24387
24388done
24389
24390
24391
24392
24393
24394
24395
24396ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
24397if test "x$ac_cv_type_pid_t" = xyes; then :
24398
24399else
24400
24401cat >>confdefs.h <<_ACEOF
24402#define pid_t int
24403_ACEOF
24404
24405fi
24406
24407
24408  # Set the 'development' global.
24409  . $srcdir/../bfd/development.sh
24410
24411  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24412$as_echo_n "checking for ANSI C header files... " >&6; }
24413if ${ac_cv_header_stdc+:} false; then :
24414  $as_echo_n "(cached) " >&6
24415else
24416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24417/* end confdefs.h.  */
24418#include <stdlib.h>
24419#include <stdarg.h>
24420#include <string.h>
24421#include <float.h>
24422
24423int
24424main ()
24425{
24426
24427  ;
24428  return 0;
24429}
24430_ACEOF
24431if ac_fn_c_try_compile "$LINENO"; then :
24432  ac_cv_header_stdc=yes
24433else
24434  ac_cv_header_stdc=no
24435fi
24436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24437
24438if test $ac_cv_header_stdc = yes; then
24439  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24441/* end confdefs.h.  */
24442#include <string.h>
24443
24444_ACEOF
24445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24446  $EGREP "memchr" >/dev/null 2>&1; then :
24447
24448else
24449  ac_cv_header_stdc=no
24450fi
24451rm -f conftest*
24452
24453fi
24454
24455if test $ac_cv_header_stdc = yes; then
24456  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24458/* end confdefs.h.  */
24459#include <stdlib.h>
24460
24461_ACEOF
24462if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24463  $EGREP "free" >/dev/null 2>&1; then :
24464
24465else
24466  ac_cv_header_stdc=no
24467fi
24468rm -f conftest*
24469
24470fi
24471
24472if test $ac_cv_header_stdc = yes; then
24473  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24474  if test "$cross_compiling" = yes; then :
24475  :
24476else
24477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24478/* end confdefs.h.  */
24479#include <ctype.h>
24480#include <stdlib.h>
24481#if ((' ' & 0x0FF) == 0x020)
24482# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24483# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24484#else
24485# define ISLOWER(c) \
24486		   (('a' <= (c) && (c) <= 'i') \
24487		     || ('j' <= (c) && (c) <= 'r') \
24488		     || ('s' <= (c) && (c) <= 'z'))
24489# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24490#endif
24491
24492#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24493int
24494main ()
24495{
24496  int i;
24497  for (i = 0; i < 256; i++)
24498    if (XOR (islower (i), ISLOWER (i))
24499	|| toupper (i) != TOUPPER (i))
24500      return 2;
24501  return 0;
24502}
24503_ACEOF
24504if ac_fn_c_try_run "$LINENO"; then :
24505
24506else
24507  ac_cv_header_stdc=no
24508fi
24509rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24510  conftest.$ac_objext conftest.beam conftest.$ac_ext
24511fi
24512
24513fi
24514fi
24515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
24516$as_echo "$ac_cv_header_stdc" >&6; }
24517if test $ac_cv_header_stdc = yes; then
24518
24519$as_echo "#define STDC_HEADERS 1" >>confdefs.h
24520
24521fi
24522
24523  # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24524# for constant arguments.  Useless!
24525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
24526$as_echo_n "checking for working alloca.h... " >&6; }
24527if ${ac_cv_working_alloca_h+:} false; then :
24528  $as_echo_n "(cached) " >&6
24529else
24530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24531/* end confdefs.h.  */
24532#include <alloca.h>
24533int
24534main ()
24535{
24536char *p = (char *) alloca (2 * sizeof (int));
24537			  if (p) return 0;
24538  ;
24539  return 0;
24540}
24541_ACEOF
24542if ac_fn_c_try_link "$LINENO"; then :
24543  ac_cv_working_alloca_h=yes
24544else
24545  ac_cv_working_alloca_h=no
24546fi
24547rm -f core conftest.err conftest.$ac_objext \
24548    conftest$ac_exeext conftest.$ac_ext
24549fi
24550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
24551$as_echo "$ac_cv_working_alloca_h" >&6; }
24552if test $ac_cv_working_alloca_h = yes; then
24553
24554$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
24555
24556fi
24557
24558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
24559$as_echo_n "checking for alloca... " >&6; }
24560if ${ac_cv_func_alloca_works+:} false; then :
24561  $as_echo_n "(cached) " >&6
24562else
24563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24564/* end confdefs.h.  */
24565#ifdef __GNUC__
24566# define alloca __builtin_alloca
24567#else
24568# ifdef _MSC_VER
24569#  include <malloc.h>
24570#  define alloca _alloca
24571# else
24572#  ifdef HAVE_ALLOCA_H
24573#   include <alloca.h>
24574#  else
24575#   ifdef _AIX
24576 #pragma alloca
24577#   else
24578#    ifndef alloca /* predefined by HP cc +Olibcalls */
24579void *alloca (size_t);
24580#    endif
24581#   endif
24582#  endif
24583# endif
24584#endif
24585
24586int
24587main ()
24588{
24589char *p = (char *) alloca (1);
24590				    if (p) return 0;
24591  ;
24592  return 0;
24593}
24594_ACEOF
24595if ac_fn_c_try_link "$LINENO"; then :
24596  ac_cv_func_alloca_works=yes
24597else
24598  ac_cv_func_alloca_works=no
24599fi
24600rm -f core conftest.err conftest.$ac_objext \
24601    conftest$ac_exeext conftest.$ac_ext
24602fi
24603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
24604$as_echo "$ac_cv_func_alloca_works" >&6; }
24605
24606if test $ac_cv_func_alloca_works = yes; then
24607
24608$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
24609
24610else
24611  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24612# that cause trouble.  Some versions do not even contain alloca or
24613# contain a buggy version.  If you still want to use their alloca,
24614# use ar to extract alloca.o from them instead of compiling alloca.c.
24615
24616ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24617
24618$as_echo "#define C_ALLOCA 1" >>confdefs.h
24619
24620
24621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
24622$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
24623if ${ac_cv_os_cray+:} false; then :
24624  $as_echo_n "(cached) " >&6
24625else
24626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24627/* end confdefs.h.  */
24628#if defined CRAY && ! defined CRAY2
24629webecray
24630#else
24631wenotbecray
24632#endif
24633
24634_ACEOF
24635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24636  $EGREP "webecray" >/dev/null 2>&1; then :
24637  ac_cv_os_cray=yes
24638else
24639  ac_cv_os_cray=no
24640fi
24641rm -f conftest*
24642
24643fi
24644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
24645$as_echo "$ac_cv_os_cray" >&6; }
24646if test $ac_cv_os_cray = yes; then
24647  for ac_func in _getb67 GETB67 getb67; do
24648    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24649ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24650if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24651
24652cat >>confdefs.h <<_ACEOF
24653#define CRAY_STACKSEG_END $ac_func
24654_ACEOF
24655
24656    break
24657fi
24658
24659  done
24660fi
24661
24662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
24663$as_echo_n "checking stack direction for C alloca... " >&6; }
24664if ${ac_cv_c_stack_direction+:} false; then :
24665  $as_echo_n "(cached) " >&6
24666else
24667  if test "$cross_compiling" = yes; then :
24668  ac_cv_c_stack_direction=0
24669else
24670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24671/* end confdefs.h.  */
24672$ac_includes_default
24673int
24674find_stack_direction (int *addr, int depth)
24675{
24676  int dir, dummy = 0;
24677  if (! addr)
24678    addr = &dummy;
24679  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
24680  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
24681  return dir + dummy;
24682}
24683
24684int
24685main (int argc, char **argv)
24686{
24687  return find_stack_direction (0, argc + !argv + 20) < 0;
24688}
24689_ACEOF
24690if ac_fn_c_try_run "$LINENO"; then :
24691  ac_cv_c_stack_direction=1
24692else
24693  ac_cv_c_stack_direction=-1
24694fi
24695rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24696  conftest.$ac_objext conftest.beam conftest.$ac_ext
24697fi
24698
24699fi
24700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
24701$as_echo "$ac_cv_c_stack_direction" >&6; }
24702cat >>confdefs.h <<_ACEOF
24703#define STACK_DIRECTION $ac_cv_c_stack_direction
24704_ACEOF
24705
24706
24707fi
24708
24709
24710  WIN32APILIBS=
24711  case ${host} in
24712    *mingw32*)
24713
24714$as_echo "#define USE_WIN32API 1" >>confdefs.h
24715
24716      WIN32APILIBS="-lws2_32"
24717      ;;
24718  esac
24719
24720
24721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
24722$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
24723if ${am_cv_langinfo_codeset+:} false; then :
24724  $as_echo_n "(cached) " >&6
24725else
24726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24727/* end confdefs.h.  */
24728#include <langinfo.h>
24729int
24730main ()
24731{
24732char* cs = nl_langinfo(CODESET);
24733  ;
24734  return 0;
24735}
24736_ACEOF
24737if ac_fn_c_try_link "$LINENO"; then :
24738  am_cv_langinfo_codeset=yes
24739else
24740  am_cv_langinfo_codeset=no
24741fi
24742rm -f core conftest.err conftest.$ac_objext \
24743    conftest$ac_exeext conftest.$ac_ext
24744
24745fi
24746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
24747$as_echo "$am_cv_langinfo_codeset" >&6; }
24748  if test $am_cv_langinfo_codeset = yes; then
24749
24750$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
24751
24752  fi
24753
24754
24755  for ac_header in linux/perf_event.h locale.h memory.h signal.h 		   sys/resource.h sys/socket.h 		   sys/un.h sys/wait.h 		   thread_db.h wait.h 		   termios.h 		   dlfcn.h 		   linux/elf.h proc_service.h 		   poll.h sys/poll.h sys/select.h
24756do :
24757  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24758ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24759if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24760  cat >>confdefs.h <<_ACEOF
24761#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24762_ACEOF
24763
24764fi
24765
24766done
24767
24768
24769
24770for ac_func in getpagesize
24771do :
24772  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
24773if test "x$ac_cv_func_getpagesize" = xyes; then :
24774  cat >>confdefs.h <<_ACEOF
24775#define HAVE_GETPAGESIZE 1
24776_ACEOF
24777
24778fi
24779done
24780
24781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
24782$as_echo_n "checking for working mmap... " >&6; }
24783if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
24784  $as_echo_n "(cached) " >&6
24785else
24786  if test "$cross_compiling" = yes; then :
24787  ac_cv_func_mmap_fixed_mapped=no
24788else
24789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24790/* end confdefs.h.  */
24791$ac_includes_default
24792/* malloc might have been renamed as rpl_malloc. */
24793#undef malloc
24794
24795/* Thanks to Mike Haertel and Jim Avera for this test.
24796   Here is a matrix of mmap possibilities:
24797	mmap private not fixed
24798	mmap private fixed at somewhere currently unmapped
24799	mmap private fixed at somewhere already mapped
24800	mmap shared not fixed
24801	mmap shared fixed at somewhere currently unmapped
24802	mmap shared fixed at somewhere already mapped
24803   For private mappings, we should verify that changes cannot be read()
24804   back from the file, nor mmap's back from the file at a different
24805   address.  (There have been systems where private was not correctly
24806   implemented like the infamous i386 svr4.0, and systems where the
24807   VM page cache was not coherent with the file system buffer cache
24808   like early versions of FreeBSD and possibly contemporary NetBSD.)
24809   For shared mappings, we should conversely verify that changes get
24810   propagated back to all the places they're supposed to be.
24811
24812   Grep wants private fixed already mapped.
24813   The main things grep needs to know about mmap are:
24814   * does it exist and is it safe to write into the mmap'd area
24815   * how to use it (BSD variants)  */
24816
24817#include <fcntl.h>
24818#include <sys/mman.h>
24819
24820#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24821char *malloc ();
24822#endif
24823
24824/* This mess was copied from the GNU getpagesize.h.  */
24825#ifndef HAVE_GETPAGESIZE
24826# ifdef _SC_PAGESIZE
24827#  define getpagesize() sysconf(_SC_PAGESIZE)
24828# else /* no _SC_PAGESIZE */
24829#  ifdef HAVE_SYS_PARAM_H
24830#   include <sys/param.h>
24831#   ifdef EXEC_PAGESIZE
24832#    define getpagesize() EXEC_PAGESIZE
24833#   else /* no EXEC_PAGESIZE */
24834#    ifdef NBPG
24835#     define getpagesize() NBPG * CLSIZE
24836#     ifndef CLSIZE
24837#      define CLSIZE 1
24838#     endif /* no CLSIZE */
24839#    else /* no NBPG */
24840#     ifdef NBPC
24841#      define getpagesize() NBPC
24842#     else /* no NBPC */
24843#      ifdef PAGESIZE
24844#       define getpagesize() PAGESIZE
24845#      endif /* PAGESIZE */
24846#     endif /* no NBPC */
24847#    endif /* no NBPG */
24848#   endif /* no EXEC_PAGESIZE */
24849#  else /* no HAVE_SYS_PARAM_H */
24850#   define getpagesize() 8192	/* punt totally */
24851#  endif /* no HAVE_SYS_PARAM_H */
24852# endif /* no _SC_PAGESIZE */
24853
24854#endif /* no HAVE_GETPAGESIZE */
24855
24856int
24857main ()
24858{
24859  char *data, *data2, *data3;
24860  const char *cdata2;
24861  int i, pagesize;
24862  int fd, fd2;
24863
24864  pagesize = getpagesize ();
24865
24866  /* First, make a file with some known garbage in it. */
24867  data = (char *) malloc (pagesize);
24868  if (!data)
24869    return 1;
24870  for (i = 0; i < pagesize; ++i)
24871    *(data + i) = rand ();
24872  umask (0);
24873  fd = creat ("conftest.mmap", 0600);
24874  if (fd < 0)
24875    return 2;
24876  if (write (fd, data, pagesize) != pagesize)
24877    return 3;
24878  close (fd);
24879
24880  /* Next, check that the tail of a page is zero-filled.  File must have
24881     non-zero length, otherwise we risk SIGBUS for entire page.  */
24882  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24883  if (fd2 < 0)
24884    return 4;
24885  cdata2 = "";
24886  if (write (fd2, cdata2, 1) != 1)
24887    return 5;
24888  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
24889  if (data2 == MAP_FAILED)
24890    return 6;
24891  for (i = 0; i < pagesize; ++i)
24892    if (*(data2 + i))
24893      return 7;
24894  close (fd2);
24895  if (munmap (data2, pagesize))
24896    return 8;
24897
24898  /* Next, try to mmap the file at a fixed address which already has
24899     something else allocated at it.  If we can, also make sure that
24900     we see the same garbage.  */
24901  fd = open ("conftest.mmap", O_RDWR);
24902  if (fd < 0)
24903    return 9;
24904  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24905		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
24906    return 10;
24907  for (i = 0; i < pagesize; ++i)
24908    if (*(data + i) != *(data2 + i))
24909      return 11;
24910
24911  /* Finally, make sure that changes to the mapped area do not
24912     percolate back to the file as seen by read().  (This is a bug on
24913     some variants of i386 svr4.0.)  */
24914  for (i = 0; i < pagesize; ++i)
24915    *(data2 + i) = *(data2 + i) + 1;
24916  data3 = (char *) malloc (pagesize);
24917  if (!data3)
24918    return 12;
24919  if (read (fd, data3, pagesize) != pagesize)
24920    return 13;
24921  for (i = 0; i < pagesize; ++i)
24922    if (*(data + i) != *(data3 + i))
24923      return 14;
24924  close (fd);
24925  return 0;
24926}
24927_ACEOF
24928if ac_fn_c_try_run "$LINENO"; then :
24929  ac_cv_func_mmap_fixed_mapped=yes
24930else
24931  ac_cv_func_mmap_fixed_mapped=no
24932fi
24933rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24934  conftest.$ac_objext conftest.beam conftest.$ac_ext
24935fi
24936
24937fi
24938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
24939$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24940if test $ac_cv_func_mmap_fixed_mapped = yes; then
24941
24942$as_echo "#define HAVE_MMAP 1" >>confdefs.h
24943
24944fi
24945rm -f conftest.mmap conftest.txt
24946
24947  for ac_header in vfork.h
24948do :
24949  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24950if test "x$ac_cv_header_vfork_h" = xyes; then :
24951  cat >>confdefs.h <<_ACEOF
24952#define HAVE_VFORK_H 1
24953_ACEOF
24954
24955fi
24956
24957done
24958
24959for ac_func in fork vfork
24960do :
24961  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24962ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24963if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24964  cat >>confdefs.h <<_ACEOF
24965#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24966_ACEOF
24967
24968fi
24969done
24970
24971if test "x$ac_cv_func_fork" = xyes; then
24972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24973$as_echo_n "checking for working fork... " >&6; }
24974if ${ac_cv_func_fork_works+:} false; then :
24975  $as_echo_n "(cached) " >&6
24976else
24977  if test "$cross_compiling" = yes; then :
24978  ac_cv_func_fork_works=cross
24979else
24980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24981/* end confdefs.h.  */
24982$ac_includes_default
24983int
24984main ()
24985{
24986
24987	  /* By Ruediger Kuhlmann. */
24988	  return fork () < 0;
24989
24990  ;
24991  return 0;
24992}
24993_ACEOF
24994if ac_fn_c_try_run "$LINENO"; then :
24995  ac_cv_func_fork_works=yes
24996else
24997  ac_cv_func_fork_works=no
24998fi
24999rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25000  conftest.$ac_objext conftest.beam conftest.$ac_ext
25001fi
25002
25003fi
25004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
25005$as_echo "$ac_cv_func_fork_works" >&6; }
25006
25007else
25008  ac_cv_func_fork_works=$ac_cv_func_fork
25009fi
25010if test "x$ac_cv_func_fork_works" = xcross; then
25011  case $host in
25012    *-*-amigaos* | *-*-msdosdjgpp*)
25013      # Override, as these systems have only a dummy fork() stub
25014      ac_cv_func_fork_works=no
25015      ;;
25016    *)
25017      ac_cv_func_fork_works=yes
25018      ;;
25019  esac
25020  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25021$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25022fi
25023ac_cv_func_vfork_works=$ac_cv_func_vfork
25024if test "x$ac_cv_func_vfork" = xyes; then
25025  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
25026$as_echo_n "checking for working vfork... " >&6; }
25027if ${ac_cv_func_vfork_works+:} false; then :
25028  $as_echo_n "(cached) " >&6
25029else
25030  if test "$cross_compiling" = yes; then :
25031  ac_cv_func_vfork_works=cross
25032else
25033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25034/* end confdefs.h.  */
25035/* Thanks to Paul Eggert for this test.  */
25036$ac_includes_default
25037#include <sys/wait.h>
25038#ifdef HAVE_VFORK_H
25039# include <vfork.h>
25040#endif
25041/* On some sparc systems, changes by the child to local and incoming
25042   argument registers are propagated back to the parent.  The compiler
25043   is told about this with #include <vfork.h>, but some compilers
25044   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
25045   static variable whose address is put into a register that is
25046   clobbered by the vfork.  */
25047static void
25048#ifdef __cplusplus
25049sparc_address_test (int arg)
25050# else
25051sparc_address_test (arg) int arg;
25052#endif
25053{
25054  static pid_t child;
25055  if (!child) {
25056    child = vfork ();
25057    if (child < 0) {
25058      perror ("vfork");
25059      _exit(2);
25060    }
25061    if (!child) {
25062      arg = getpid();
25063      write(-1, "", 0);
25064      _exit (arg);
25065    }
25066  }
25067}
25068
25069int
25070main ()
25071{
25072  pid_t parent = getpid ();
25073  pid_t child;
25074
25075  sparc_address_test (0);
25076
25077  child = vfork ();
25078
25079  if (child == 0) {
25080    /* Here is another test for sparc vfork register problems.  This
25081       test uses lots of local variables, at least as many local
25082       variables as main has allocated so far including compiler
25083       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
25084       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
25085       reuse the register of parent for one of the local variables,
25086       since it will think that parent can't possibly be used any more
25087       in this routine.  Assigning to the local variable will thus
25088       munge parent in the parent process.  */
25089    pid_t
25090      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25091      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25092    /* Convince the compiler that p..p7 are live; otherwise, it might
25093       use the same hardware register for all 8 local variables.  */
25094    if (p != p1 || p != p2 || p != p3 || p != p4
25095	|| p != p5 || p != p6 || p != p7)
25096      _exit(1);
25097
25098    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25099       from child file descriptors.  If the child closes a descriptor
25100       before it execs or exits, this munges the parent's descriptor
25101       as well.  Test for this by closing stdout in the child.  */
25102    _exit(close(fileno(stdout)) != 0);
25103  } else {
25104    int status;
25105    struct stat st;
25106
25107    while (wait(&status) != child)
25108      ;
25109    return (
25110	 /* Was there some problem with vforking?  */
25111	 child < 0
25112
25113	 /* Did the child fail?  (This shouldn't happen.)  */
25114	 || status
25115
25116	 /* Did the vfork/compiler bug occur?  */
25117	 || parent != getpid()
25118
25119	 /* Did the file descriptor bug occur?  */
25120	 || fstat(fileno(stdout), &st) != 0
25121	 );
25122  }
25123}
25124_ACEOF
25125if ac_fn_c_try_run "$LINENO"; then :
25126  ac_cv_func_vfork_works=yes
25127else
25128  ac_cv_func_vfork_works=no
25129fi
25130rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25131  conftest.$ac_objext conftest.beam conftest.$ac_ext
25132fi
25133
25134fi
25135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
25136$as_echo "$ac_cv_func_vfork_works" >&6; }
25137
25138fi;
25139if test "x$ac_cv_func_fork_works" = xcross; then
25140  ac_cv_func_vfork_works=$ac_cv_func_vfork
25141  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25142$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25143fi
25144
25145if test "x$ac_cv_func_vfork_works" = xyes; then
25146
25147$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
25148
25149else
25150
25151$as_echo "#define vfork fork" >>confdefs.h
25152
25153fi
25154if test "x$ac_cv_func_fork_works" = xyes; then
25155
25156$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
25157
25158fi
25159
25160  for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
25161		  ptrace64 sbrk setns sigaltstack sigprocmask \
25162		  setpgid setpgrp getrusage getauxval sigtimedwait
25163do :
25164  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25165ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25166if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25167  cat >>confdefs.h <<_ACEOF
25168#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25169_ACEOF
25170
25171fi
25172done
25173
25174
25175  # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
25176  # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
25177  # only in linux/personality.h.
25178  ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
25179"
25180if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
25181  ac_have_decl=1
25182else
25183  ac_have_decl=0
25184fi
25185
25186cat >>confdefs.h <<_ACEOF
25187#define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
25188_ACEOF
25189
25190
25191  ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
25192if test "x$ac_cv_have_decl_strstr" = xyes; then :
25193  ac_have_decl=1
25194else
25195  ac_have_decl=0
25196fi
25197
25198cat >>confdefs.h <<_ACEOF
25199#define HAVE_DECL_STRSTR $ac_have_decl
25200_ACEOF
25201
25202
25203  # ----------------------- #
25204  # Checks for structures.  #
25205  # ----------------------- #
25206
25207  ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25208if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
25209
25210cat >>confdefs.h <<_ACEOF
25211#define HAVE_STRUCT_STAT_ST_BLOCKS 1
25212_ACEOF
25213
25214
25215fi
25216ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25217if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
25218
25219cat >>confdefs.h <<_ACEOF
25220#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25221_ACEOF
25222
25223
25224fi
25225
25226
25227  # On FreeBSD we need libutil for the kinfo_get* functions.  On
25228  # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
25229  # Figure out which one to use.
25230  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
25231$as_echo_n "checking for library containing kinfo_getfile... " >&6; }
25232if ${ac_cv_search_kinfo_getfile+:} false; then :
25233  $as_echo_n "(cached) " >&6
25234else
25235  ac_func_search_save_LIBS=$LIBS
25236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25237/* end confdefs.h.  */
25238
25239/* Override any GCC internal prototype to avoid an error.
25240   Use char because int might match the return type of a GCC
25241   builtin and then its argument prototype would still apply.  */
25242#ifdef __cplusplus
25243extern "C"
25244#endif
25245char kinfo_getfile ();
25246int
25247main ()
25248{
25249return kinfo_getfile ();
25250  ;
25251  return 0;
25252}
25253_ACEOF
25254for ac_lib in '' util util-freebsd; do
25255  if test -z "$ac_lib"; then
25256    ac_res="none required"
25257  else
25258    ac_res=-l$ac_lib
25259    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25260  fi
25261  if ac_fn_c_try_link "$LINENO"; then :
25262  ac_cv_search_kinfo_getfile=$ac_res
25263fi
25264rm -f core conftest.err conftest.$ac_objext \
25265    conftest$ac_exeext
25266  if ${ac_cv_search_kinfo_getfile+:} false; then :
25267  break
25268fi
25269done
25270if ${ac_cv_search_kinfo_getfile+:} false; then :
25271
25272else
25273  ac_cv_search_kinfo_getfile=no
25274fi
25275rm conftest.$ac_ext
25276LIBS=$ac_func_search_save_LIBS
25277fi
25278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
25279$as_echo "$ac_cv_search_kinfo_getfile" >&6; }
25280ac_res=$ac_cv_search_kinfo_getfile
25281if test "$ac_res" != no; then :
25282  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25283
25284fi
25285
25286
25287  # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
25288  for ac_func in kinfo_getfile
25289do :
25290  ac_fn_c_check_func "$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
25291if test "x$ac_cv_func_kinfo_getfile" = xyes; then :
25292  cat >>confdefs.h <<_ACEOF
25293#define HAVE_KINFO_GETFILE 1
25294_ACEOF
25295
25296fi
25297done
25298
25299
25300  # ----------------------- #
25301  # Check for threading.    #
25302  # ----------------------- #
25303
25304  # Check whether --enable-threading was given.
25305if test "${enable_threading+set}" = set; then :
25306  enableval=$enable_threading; case "$enableval" in
25307    yes) want_threading=yes ;;
25308    no) want_threading=no ;;
25309    *) as_fn_error $? "bad value $enableval for threading" "$LINENO" 5 ;;
25310    esac
25311else
25312  want_threading=yes
25313fi
25314
25315
25316  # Check for std::thread.  This does not work on some platforms, like
25317  # mingw and DJGPP.
25318  ac_ext=cpp
25319ac_cpp='$CXXCPP $CPPFLAGS'
25320ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25321ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25322ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25323
25324
25325
25326
25327
25328ac_ext=c
25329ac_cpp='$CPP $CPPFLAGS'
25330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25332ac_compiler_gnu=$ac_cv_c_compiler_gnu
25333
25334ax_pthread_ok=no
25335
25336# We used to check for pthread.h first, but this fails if pthread.h
25337# requires special compiler flags (e.g. on Tru64 or Sequent).
25338# It gets checked for in the link test anyway.
25339
25340# First of all, check if the user has set any of the PTHREAD_LIBS,
25341# etcetera environment variables, and if threads linking works using
25342# them:
25343if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
25344        ax_pthread_save_CC="$CC"
25345        ax_pthread_save_CFLAGS="$CFLAGS"
25346        ax_pthread_save_LIBS="$LIBS"
25347        if test "x$PTHREAD_CC" != "x"; then :
25348  CC="$PTHREAD_CC"
25349fi
25350        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25351        LIBS="$PTHREAD_LIBS $LIBS"
25352        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
25353$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
25354        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25355/* end confdefs.h.  */
25356
25357/* Override any GCC internal prototype to avoid an error.
25358   Use char because int might match the return type of a GCC
25359   builtin and then its argument prototype would still apply.  */
25360#ifdef __cplusplus
25361extern "C"
25362#endif
25363char pthread_join ();
25364int
25365main ()
25366{
25367return pthread_join ();
25368  ;
25369  return 0;
25370}
25371_ACEOF
25372if ac_fn_c_try_link "$LINENO"; then :
25373  ax_pthread_ok=yes
25374fi
25375rm -f core conftest.err conftest.$ac_objext \
25376    conftest$ac_exeext conftest.$ac_ext
25377        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
25378$as_echo "$ax_pthread_ok" >&6; }
25379        if test "x$ax_pthread_ok" = "xno"; then
25380                PTHREAD_LIBS=""
25381                PTHREAD_CFLAGS=""
25382        fi
25383        CC="$ax_pthread_save_CC"
25384        CFLAGS="$ax_pthread_save_CFLAGS"
25385        LIBS="$ax_pthread_save_LIBS"
25386fi
25387
25388# We must check for the threads library under a number of different
25389# names; the ordering is very important because some systems
25390# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
25391# libraries is broken (non-POSIX).
25392
25393# Create a list of thread flags to try.  Items starting with a "-" are
25394# C compiler flags, and other items are library names, except for "none"
25395# which indicates that we try without any flags at all, and "pthread-config"
25396# which is a program returning the flags for the Pth emulation library.
25397
25398ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
25399
25400# The ordering *is* (sometimes) important.  Some notes on the
25401# individual items follow:
25402
25403# pthreads: AIX (must check this before -lpthread)
25404# none: in case threads are in libc; should be tried before -Kthread and
25405#       other compiler flags to prevent continual compiler warnings
25406# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
25407# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
25408#           (Note: HP C rejects this with "bad form for `-t' option")
25409# -pthreads: Solaris/gcc (Note: HP C also rejects)
25410# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
25411#      doesn't hurt to check since this sometimes defines pthreads and
25412#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
25413#      is present but should not be used directly; and before -mthreads,
25414#      because the compiler interprets this as "-mt" + "-hreads")
25415# -mthreads: Mingw32/gcc, Lynx/gcc
25416# pthread: Linux, etcetera
25417# --thread-safe: KAI C++
25418# pthread-config: use pthread-config program (for GNU Pth library)
25419
25420case $host_os in
25421
25422        freebsd*)
25423
25424        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
25425        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
25426
25427        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
25428        ;;
25429
25430        hpux*)
25431
25432        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
25433        # multi-threading and also sets -lpthread."
25434
25435        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
25436        ;;
25437
25438        openedition*)
25439
25440        # IBM z/OS requires a feature-test macro to be defined in order to
25441        # enable POSIX threads at all, so give the user a hint if this is
25442        # not set. (We don't define these ourselves, as they can affect
25443        # other portions of the system API in unpredictable ways.)
25444
25445        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25446/* end confdefs.h.  */
25447
25448#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
25449             AX_PTHREAD_ZOS_MISSING
25450#            endif
25451
25452_ACEOF
25453if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25454  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
25455  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
25456$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
25457fi
25458rm -f conftest*
25459
25460        ;;
25461
25462        solaris*)
25463
25464        # On Solaris (at least, for some versions), libc contains stubbed
25465        # (non-functional) versions of the pthreads routines, so link-based
25466        # tests will erroneously succeed. (N.B.: The stubs are missing
25467        # pthread_cleanup_push, or rather a function called by this macro,
25468        # so we could check for that, but who knows whether they'll stub
25469        # that too in a future libc.)  So we'll check first for the
25470        # standard Solaris way of linking pthreads (-mt -lpthread).
25471
25472        ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
25473        ;;
25474esac
25475
25476# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
25477
25478if test "x$GCC" = "xyes"; then :
25479  ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
25480fi
25481
25482# The presence of a feature test macro requesting re-entrant function
25483# definitions is, on some systems, a strong hint that pthreads support is
25484# correctly enabled
25485
25486case $host_os in
25487        darwin* | hpux* | linux* | osf* | solaris*)
25488        ax_pthread_check_macro="_REENTRANT"
25489        ;;
25490
25491        aix*)
25492        ax_pthread_check_macro="_THREAD_SAFE"
25493        ;;
25494
25495        *)
25496        ax_pthread_check_macro="--"
25497        ;;
25498esac
25499if test "x$ax_pthread_check_macro" = "x--"; then :
25500  ax_pthread_check_cond=0
25501else
25502  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
25503fi
25504
25505# Are we compiling with Clang?
25506
25507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
25508$as_echo_n "checking whether $CC is Clang... " >&6; }
25509if ${ax_cv_PTHREAD_CLANG+:} false; then :
25510  $as_echo_n "(cached) " >&6
25511else
25512  ax_cv_PTHREAD_CLANG=no
25513     # Note that Autoconf sets GCC=yes for Clang as well as GCC
25514     if test "x$GCC" = "xyes"; then
25515        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25516/* end confdefs.h.  */
25517/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
25518#            if defined(__clang__) && defined(__llvm__)
25519             AX_PTHREAD_CC_IS_CLANG
25520#            endif
25521
25522_ACEOF
25523if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25524  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
25525  ax_cv_PTHREAD_CLANG=yes
25526fi
25527rm -f conftest*
25528
25529     fi
25530
25531fi
25532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
25533$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
25534ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
25535
25536ax_pthread_clang_warning=no
25537
25538# Clang needs special handling, because older versions handle the -pthread
25539# option in a rather... idiosyncratic way
25540
25541if test "x$ax_pthread_clang" = "xyes"; then
25542
25543        # Clang takes -pthread; it has never supported any other flag
25544
25545        # (Note 1: This will need to be revisited if a system that Clang
25546        # supports has POSIX threads in a separate library.  This tends not
25547        # to be the way of modern systems, but it's conceivable.)
25548
25549        # (Note 2: On some systems, notably Darwin, -pthread is not needed
25550        # to get POSIX threads support; the API is always present and
25551        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
25552        # -pthread does define _REENTRANT, and while the Darwin headers
25553        # ignore this macro, third-party headers might not.)
25554
25555        PTHREAD_CFLAGS="-pthread"
25556        PTHREAD_LIBS=
25557
25558        ax_pthread_ok=yes
25559
25560        # However, older versions of Clang make a point of warning the user
25561        # that, in an invocation where only linking and no compilation is
25562        # taking place, the -pthread option has no effect ("argument unused
25563        # during compilation").  They expect -pthread to be passed in only
25564        # when source code is being compiled.
25565        #
25566        # Problem is, this is at odds with the way Automake and most other
25567        # C build frameworks function, which is that the same flags used in
25568        # compilation (CFLAGS) are also used in linking.  Many systems
25569        # supported by AX_PTHREAD require exactly this for POSIX threads
25570        # support, and in fact it is often not straightforward to specify a
25571        # flag that is used only in the compilation phase and not in
25572        # linking.  Such a scenario is extremely rare in practice.
25573        #
25574        # Even though use of the -pthread flag in linking would only print
25575        # a warning, this can be a nuisance for well-run software projects
25576        # that build with -Werror.  So if the active version of Clang has
25577        # this misfeature, we search for an option to squash it.
25578
25579        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
25580$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
25581if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
25582  $as_echo_n "(cached) " >&6
25583else
25584  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
25585             # Create an alternate version of $ac_link that compiles and
25586             # links in two steps (.c -> .o, .o -> exe) instead of one
25587             # (.c -> exe), because the warning occurs only in the second
25588             # step
25589             ax_pthread_save_ac_link="$ac_link"
25590             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
25591             ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
25592             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
25593             ax_pthread_save_CFLAGS="$CFLAGS"
25594             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
25595                if test "x$ax_pthread_try" = "xunknown"; then :
25596  break
25597fi
25598                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
25599                ac_link="$ax_pthread_save_ac_link"
25600                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25601/* end confdefs.h.  */
25602int main(void){return 0;}
25603_ACEOF
25604if ac_fn_c_try_link "$LINENO"; then :
25605  ac_link="$ax_pthread_2step_ac_link"
25606                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25607/* end confdefs.h.  */
25608int main(void){return 0;}
25609_ACEOF
25610if ac_fn_c_try_link "$LINENO"; then :
25611  break
25612fi
25613rm -f core conftest.err conftest.$ac_objext \
25614    conftest$ac_exeext conftest.$ac_ext
25615
25616fi
25617rm -f core conftest.err conftest.$ac_objext \
25618    conftest$ac_exeext conftest.$ac_ext
25619             done
25620             ac_link="$ax_pthread_save_ac_link"
25621             CFLAGS="$ax_pthread_save_CFLAGS"
25622             if test "x$ax_pthread_try" = "x"; then :
25623  ax_pthread_try=no
25624fi
25625             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
25626
25627fi
25628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
25629$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
25630
25631        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
25632                no | unknown) ;;
25633                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
25634        esac
25635
25636fi # $ax_pthread_clang = yes
25637
25638if test "x$ax_pthread_ok" = "xno"; then
25639for ax_pthread_try_flag in $ax_pthread_flags; do
25640
25641        case $ax_pthread_try_flag in
25642                none)
25643                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
25644$as_echo_n "checking whether pthreads work without any flags... " >&6; }
25645                ;;
25646
25647                -mt,pthread)
25648                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
25649$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
25650                PTHREAD_CFLAGS="-mt"
25651                PTHREAD_LIBS="-lpthread"
25652                ;;
25653
25654                -*)
25655                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
25656$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
25657                PTHREAD_CFLAGS="$ax_pthread_try_flag"
25658                ;;
25659
25660                pthread-config)
25661                # Extract the first word of "pthread-config", so it can be a program name with args.
25662set dummy pthread-config; ac_word=$2
25663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25664$as_echo_n "checking for $ac_word... " >&6; }
25665if ${ac_cv_prog_ax_pthread_config+:} false; then :
25666  $as_echo_n "(cached) " >&6
25667else
25668  if test -n "$ax_pthread_config"; then
25669  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
25670else
25671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25672for as_dir in $PATH
25673do
25674  IFS=$as_save_IFS
25675  test -z "$as_dir" && as_dir=.
25676    for ac_exec_ext in '' $ac_executable_extensions; do
25677  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25678    ac_cv_prog_ax_pthread_config="yes"
25679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25680    break 2
25681  fi
25682done
25683  done
25684IFS=$as_save_IFS
25685
25686  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
25687fi
25688fi
25689ax_pthread_config=$ac_cv_prog_ax_pthread_config
25690if test -n "$ax_pthread_config"; then
25691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
25692$as_echo "$ax_pthread_config" >&6; }
25693else
25694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25695$as_echo "no" >&6; }
25696fi
25697
25698
25699                if test "x$ax_pthread_config" = "xno"; then :
25700  continue
25701fi
25702                PTHREAD_CFLAGS="`pthread-config --cflags`"
25703                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
25704                ;;
25705
25706                *)
25707                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
25708$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
25709                PTHREAD_LIBS="-l$ax_pthread_try_flag"
25710                ;;
25711        esac
25712
25713        ax_pthread_save_CFLAGS="$CFLAGS"
25714        ax_pthread_save_LIBS="$LIBS"
25715        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25716        LIBS="$PTHREAD_LIBS $LIBS"
25717
25718        # Check for various functions.  We must include pthread.h,
25719        # since some functions may be macros.  (On the Sequent, we
25720        # need a special flag -Kthread to make this header compile.)
25721        # We check for pthread_join because it is in -lpthread on IRIX
25722        # while pthread_create is in libc.  We check for pthread_attr_init
25723        # due to DEC craziness with -lpthreads.  We check for
25724        # pthread_cleanup_push because it is one of the few pthread
25725        # functions on Solaris that doesn't have a non-functional libc stub.
25726        # We try pthread_create on general principles.
25727
25728        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25729/* end confdefs.h.  */
25730#include <pthread.h>
25731#                       if $ax_pthread_check_cond
25732#                        error "$ax_pthread_check_macro must be defined"
25733#                       endif
25734                        static void routine(void *a) { a = 0; }
25735                        static void *start_routine(void *a) { return a; }
25736int
25737main ()
25738{
25739pthread_t th; pthread_attr_t attr;
25740                        pthread_create(&th, 0, start_routine, 0);
25741                        pthread_join(th, 0);
25742                        pthread_attr_init(&attr);
25743                        pthread_cleanup_push(routine, 0);
25744                        pthread_cleanup_pop(0) /* ; */
25745  ;
25746  return 0;
25747}
25748_ACEOF
25749if ac_fn_c_try_link "$LINENO"; then :
25750  ax_pthread_ok=yes
25751fi
25752rm -f core conftest.err conftest.$ac_objext \
25753    conftest$ac_exeext conftest.$ac_ext
25754
25755        CFLAGS="$ax_pthread_save_CFLAGS"
25756        LIBS="$ax_pthread_save_LIBS"
25757
25758        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
25759$as_echo "$ax_pthread_ok" >&6; }
25760        if test "x$ax_pthread_ok" = "xyes"; then :
25761  break
25762fi
25763
25764        PTHREAD_LIBS=""
25765        PTHREAD_CFLAGS=""
25766done
25767fi
25768
25769# Various other checks:
25770if test "x$ax_pthread_ok" = "xyes"; then
25771        ax_pthread_save_CFLAGS="$CFLAGS"
25772        ax_pthread_save_LIBS="$LIBS"
25773        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25774        LIBS="$PTHREAD_LIBS $LIBS"
25775
25776        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
25777        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
25778$as_echo_n "checking for joinable pthread attribute... " >&6; }
25779if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
25780  $as_echo_n "(cached) " >&6
25781else
25782  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
25783             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
25784                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25785/* end confdefs.h.  */
25786#include <pthread.h>
25787int
25788main ()
25789{
25790int attr = $ax_pthread_attr; return attr /* ; */
25791  ;
25792  return 0;
25793}
25794_ACEOF
25795if ac_fn_c_try_link "$LINENO"; then :
25796  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
25797fi
25798rm -f core conftest.err conftest.$ac_objext \
25799    conftest$ac_exeext conftest.$ac_ext
25800             done
25801
25802fi
25803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
25804$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
25805        if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
25806               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
25807               test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
25808
25809cat >>confdefs.h <<_ACEOF
25810#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
25811_ACEOF
25812
25813               ax_pthread_joinable_attr_defined=yes
25814
25815fi
25816
25817        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
25818$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
25819if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
25820  $as_echo_n "(cached) " >&6
25821else
25822  ax_cv_PTHREAD_SPECIAL_FLAGS=no
25823             case $host_os in
25824             solaris*)
25825             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
25826             ;;
25827             esac
25828
25829fi
25830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
25831$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
25832        if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
25833               test "x$ax_pthread_special_flags_added" != "xyes"; then :
25834  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
25835               ax_pthread_special_flags_added=yes
25836fi
25837
25838        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
25839$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
25840if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
25841  $as_echo_n "(cached) " >&6
25842else
25843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25844/* end confdefs.h.  */
25845#include <pthread.h>
25846int
25847main ()
25848{
25849int i = PTHREAD_PRIO_INHERIT;
25850  ;
25851  return 0;
25852}
25853_ACEOF
25854if ac_fn_c_try_link "$LINENO"; then :
25855  ax_cv_PTHREAD_PRIO_INHERIT=yes
25856else
25857  ax_cv_PTHREAD_PRIO_INHERIT=no
25858fi
25859rm -f core conftest.err conftest.$ac_objext \
25860    conftest$ac_exeext conftest.$ac_ext
25861
25862fi
25863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
25864$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
25865        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
25866               test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
25867
25868$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
25869
25870               ax_pthread_prio_inherit_defined=yes
25871
25872fi
25873
25874        CFLAGS="$ax_pthread_save_CFLAGS"
25875        LIBS="$ax_pthread_save_LIBS"
25876
25877        # More AIX lossage: compile with *_r variant
25878        if test "x$GCC" != "xyes"; then
25879            case $host_os in
25880                aix*)
25881                case "x/$CC" in #(
25882  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
25883    #handle absolute path differently from PATH based program lookup
25884                     case "x$CC" in #(
25885  x/*) :
25886    if as_fn_executable_p ${CC}_r; then :
25887  PTHREAD_CC="${CC}_r"
25888fi ;; #(
25889  *) :
25890    for ac_prog in ${CC}_r
25891do
25892  # Extract the first word of "$ac_prog", so it can be a program name with args.
25893set dummy $ac_prog; ac_word=$2
25894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25895$as_echo_n "checking for $ac_word... " >&6; }
25896if ${ac_cv_prog_PTHREAD_CC+:} false; then :
25897  $as_echo_n "(cached) " >&6
25898else
25899  if test -n "$PTHREAD_CC"; then
25900  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
25901else
25902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25903for as_dir in $PATH
25904do
25905  IFS=$as_save_IFS
25906  test -z "$as_dir" && as_dir=.
25907    for ac_exec_ext in '' $ac_executable_extensions; do
25908  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25909    ac_cv_prog_PTHREAD_CC="$ac_prog"
25910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25911    break 2
25912  fi
25913done
25914  done
25915IFS=$as_save_IFS
25916
25917fi
25918fi
25919PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
25920if test -n "$PTHREAD_CC"; then
25921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
25922$as_echo "$PTHREAD_CC" >&6; }
25923else
25924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25925$as_echo "no" >&6; }
25926fi
25927
25928
25929  test -n "$PTHREAD_CC" && break
25930done
25931test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
25932 ;;
25933esac ;; #(
25934  *) :
25935     ;;
25936esac
25937                ;;
25938            esac
25939        fi
25940fi
25941
25942test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
25943
25944
25945
25946
25947
25948# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
25949if test "x$ax_pthread_ok" = "xyes"; then
25950        threads=yes
25951        :
25952else
25953        ax_pthread_ok=no
25954        threads=no
25955fi
25956ac_ext=cpp
25957ac_cpp='$CXXCPP $CPPFLAGS'
25958ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25959ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25960ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25961
25962
25963  save_LIBS="$LIBS"
25964  LIBS="$PTHREAD_LIBS $LIBS"
25965  save_CXXFLAGS="$CXXFLAGS"
25966  CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS"
25967  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
25968$as_echo_n "checking for std::thread... " >&6; }
25969if ${gdb_cv_cxx_std_thread+:} false; then :
25970  $as_echo_n "(cached) " >&6
25971else
25972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25973/* end confdefs.h.  */
25974  #if defined (__MINGW32__) || defined (__CYGWIN__)
25975    # ifdef _WIN32_WINNT
25976    #  if _WIN32_WINNT < 0x0501
25977    #   undef _WIN32_WINNT
25978    #   define _WIN32_WINNT 0x0501
25979    #  endif
25980    # else
25981    #  define _WIN32_WINNT 0x0501
25982    # endif
25983    #endif	/* __MINGW32__ || __CYGWIN__ */
25984    #include <thread>
25985    void callback() { }
25986int
25987main ()
25988{
25989std::thread t(callback);
25990  ;
25991  return 0;
25992}
25993_ACEOF
25994if ac_fn_cxx_try_compile "$LINENO"; then :
25995  gdb_cv_cxx_std_thread=yes
25996else
25997  gdb_cv_cxx_std_thread=no
25998fi
25999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26000fi
26001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
26002$as_echo "$gdb_cv_cxx_std_thread" >&6; }
26003
26004  if test "$threads" = "yes"; then
26005    # This check must be here, while LIBS includes any necessary
26006    # threading library.
26007    for ac_func in pthread_sigmask pthread_setname_np
26008do :
26009  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26010ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
26011if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26012  cat >>confdefs.h <<_ACEOF
26013#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26014_ACEOF
26015
26016fi
26017done
26018
26019  fi
26020  LIBS="$save_LIBS"
26021  CXXFLAGS="$save_CXXFLAGS"
26022
26023  if test "$want_threading" = "yes"; then
26024    if test "$gdb_cv_cxx_std_thread" = "yes"; then
26025
26026$as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
26027
26028    fi
26029  fi
26030  ac_ext=c
26031ac_cpp='$CPP $CPPFLAGS'
26032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26034ac_compiler_gnu=$ac_cv_c_compiler_gnu
26035
26036
26037      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
26038$as_echo_n "checking for sigsetjmp... " >&6; }
26039if ${gdb_cv_func_sigsetjmp+:} false; then :
26040  $as_echo_n "(cached) " >&6
26041else
26042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26043/* end confdefs.h.  */
26044#include <setjmp.h>
26045int
26046main ()
26047{
26048sigjmp_buf env;
26049           while (! sigsetjmp (env, 1))
26050             siglongjmp (env, 1);
26051
26052  ;
26053  return 0;
26054}
26055_ACEOF
26056if ac_fn_c_try_compile "$LINENO"; then :
26057  gdb_cv_func_sigsetjmp=yes
26058else
26059  gdb_cv_func_sigsetjmp=no
26060
26061fi
26062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26063
26064fi
26065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
26066$as_echo "$gdb_cv_func_sigsetjmp" >&6; }
26067  if test "$gdb_cv_func_sigsetjmp" = "yes"; then
26068
26069$as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
26070
26071  fi
26072
26073
26074# Check whether --with-intel_pt was given.
26075if test "${with_intel_pt+set}" = set; then :
26076  withval=$with_intel_pt;
26077else
26078  with_intel_pt=auto
26079fi
26080
26081  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
26082$as_echo_n "checking whether to use intel pt... " >&6; }
26083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
26084$as_echo "$with_intel_pt" >&6; }
26085
26086  if test "${with_intel_pt}" = no; then
26087    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
26088$as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
26089    HAVE_LIBIPT=no
26090  else
26091    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26092/* end confdefs.h.  */
26093
26094  #include <linux/perf_event.h>
26095  #ifndef PERF_ATTR_SIZE_VER5
26096  # error
26097  #endif
26098
26099_ACEOF
26100if ac_fn_c_try_cpp "$LINENO"; then :
26101  perf_event=yes
26102else
26103  perf_event=no
26104fi
26105rm -f conftest.err conftest.i conftest.$ac_ext
26106    if test "$perf_event" != yes; then
26107      if test "$with_intel_pt" = yes; then
26108	as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
26109      else
26110	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
26111$as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
26112      fi
26113    fi
26114
26115
26116
26117
26118
26119
26120
26121
26122
26123    use_additional=yes
26124
26125  acl_save_prefix="$prefix"
26126  prefix="$acl_final_prefix"
26127  acl_save_exec_prefix="$exec_prefix"
26128  exec_prefix="$acl_final_exec_prefix"
26129
26130    eval additional_includedir=\"$includedir\"
26131    eval additional_libdir=\"$libdir\"
26132
26133  exec_prefix="$acl_save_exec_prefix"
26134  prefix="$acl_save_prefix"
26135
26136
26137# Check whether --with-libipt-prefix was given.
26138if test "${with_libipt_prefix+set}" = set; then :
26139  withval=$with_libipt_prefix;
26140    if test "X$withval" = "Xno"; then
26141      use_additional=no
26142    else
26143      if test "X$withval" = "X"; then
26144
26145  acl_save_prefix="$prefix"
26146  prefix="$acl_final_prefix"
26147  acl_save_exec_prefix="$exec_prefix"
26148  exec_prefix="$acl_final_exec_prefix"
26149
26150          eval additional_includedir=\"$includedir\"
26151          eval additional_libdir=\"$libdir\"
26152
26153  exec_prefix="$acl_save_exec_prefix"
26154  prefix="$acl_save_prefix"
26155
26156      else
26157        additional_includedir="$withval/include"
26158        additional_libdir="$withval/lib"
26159      fi
26160    fi
26161
26162fi
26163
26164
26165# Check whether --with-libipt-type was given.
26166if test "${with_libipt_type+set}" = set; then :
26167  withval=$with_libipt_type;  with_libipt_type=$withval
26168else
26169   with_libipt_type=auto
26170fi
26171
26172  lib_type=`eval echo \$with_libipt_type`
26173
26174      LIBIPT=
26175  LTLIBIPT=
26176  INCIPT=
26177  rpathdirs=
26178  ltrpathdirs=
26179  names_already_handled=
26180  names_next_round='ipt '
26181  while test -n "$names_next_round"; do
26182    names_this_round="$names_next_round"
26183    names_next_round=
26184    for name in $names_this_round; do
26185      already_handled=
26186      for n in $names_already_handled; do
26187        if test "$n" = "$name"; then
26188          already_handled=yes
26189          break
26190        fi
26191      done
26192      if test -z "$already_handled"; then
26193        names_already_handled="$names_already_handled $name"
26194                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26195        eval value=\"\$HAVE_LIB$uppername\"
26196        if test -n "$value"; then
26197          if test "$value" = yes; then
26198            eval value=\"\$LIB$uppername\"
26199            test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
26200            eval value=\"\$LTLIB$uppername\"
26201            test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
26202          else
26203                                    :
26204          fi
26205        else
26206                              found_dir=
26207          found_la=
26208          found_so=
26209          found_a=
26210          if test $use_additional = yes; then
26211            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
26212              found_dir="$additional_libdir"
26213              found_so="$additional_libdir/lib$name.$shlibext"
26214              if test -f "$additional_libdir/lib$name.la"; then
26215                found_la="$additional_libdir/lib$name.la"
26216              fi
26217            elif test x$lib_type != xshared; then
26218              if test -f "$additional_libdir/lib$name.$libext"; then
26219                found_dir="$additional_libdir"
26220                found_a="$additional_libdir/lib$name.$libext"
26221                if test -f "$additional_libdir/lib$name.la"; then
26222                  found_la="$additional_libdir/lib$name.la"
26223                fi
26224              fi
26225            fi
26226          fi
26227          if test "X$found_dir" = "X"; then
26228            for x in $LDFLAGS $LTLIBIPT; do
26229
26230  acl_save_prefix="$prefix"
26231  prefix="$acl_final_prefix"
26232  acl_save_exec_prefix="$exec_prefix"
26233  exec_prefix="$acl_final_exec_prefix"
26234  eval x=\"$x\"
26235  exec_prefix="$acl_save_exec_prefix"
26236  prefix="$acl_save_prefix"
26237
26238              case "$x" in
26239                -L*)
26240                  dir=`echo "X$x" | sed -e 's/^X-L//'`
26241                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
26242                    found_dir="$dir"
26243                    found_so="$dir/lib$name.$shlibext"
26244                    if test -f "$dir/lib$name.la"; then
26245                      found_la="$dir/lib$name.la"
26246                    fi
26247                  elif test x$lib_type != xshared; then
26248                    if test -f "$dir/lib$name.$libext"; then
26249                      found_dir="$dir"
26250                      found_a="$dir/lib$name.$libext"
26251                      if test -f "$dir/lib$name.la"; then
26252                        found_la="$dir/lib$name.la"
26253                      fi
26254                    fi
26255                  fi
26256                  ;;
26257              esac
26258              if test "X$found_dir" != "X"; then
26259                break
26260              fi
26261            done
26262          fi
26263          if test "X$found_dir" != "X"; then
26264                        LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
26265            if test "X$found_so" != "X"; then
26266                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
26267                                LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
26268              else
26269                                                                                haveit=
26270                for x in $ltrpathdirs; do
26271                  if test "X$x" = "X$found_dir"; then
26272                    haveit=yes
26273                    break
26274                  fi
26275                done
26276                if test -z "$haveit"; then
26277                  ltrpathdirs="$ltrpathdirs $found_dir"
26278                fi
26279                                if test "$hardcode_direct" = yes; then
26280                                                      LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
26281                else
26282                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
26283                                                            LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
26284                                                            haveit=
26285                    for x in $rpathdirs; do
26286                      if test "X$x" = "X$found_dir"; then
26287                        haveit=yes
26288                        break
26289                      fi
26290                    done
26291                    if test -z "$haveit"; then
26292                      rpathdirs="$rpathdirs $found_dir"
26293                    fi
26294                  else
26295                                                                                haveit=
26296                    for x in $LDFLAGS $LIBIPT; do
26297
26298  acl_save_prefix="$prefix"
26299  prefix="$acl_final_prefix"
26300  acl_save_exec_prefix="$exec_prefix"
26301  exec_prefix="$acl_final_exec_prefix"
26302  eval x=\"$x\"
26303  exec_prefix="$acl_save_exec_prefix"
26304  prefix="$acl_save_prefix"
26305
26306                      if test "X$x" = "X-L$found_dir"; then
26307                        haveit=yes
26308                        break
26309                      fi
26310                    done
26311                    if test -z "$haveit"; then
26312                      LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
26313                    fi
26314                    if test "$hardcode_minus_L" != no; then
26315                                                                                        LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
26316                    else
26317                                                                                                                                                                                LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
26318                    fi
26319                  fi
26320                fi
26321              fi
26322            else
26323              if test "X$found_a" != "X"; then
26324                                LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
26325              else
26326                                                LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
26327              fi
26328            fi
26329                        additional_includedir=
26330            case "$found_dir" in
26331              */lib | */lib/)
26332                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
26333                additional_includedir="$basedir/include"
26334                ;;
26335            esac
26336            if test "X$additional_includedir" != "X"; then
26337                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
26338                haveit=
26339                if test "X$additional_includedir" = "X/usr/local/include"; then
26340                  if test -n "$GCC"; then
26341                    case $host_os in
26342                      linux*) haveit=yes;;
26343                    esac
26344                  fi
26345                fi
26346                if test -z "$haveit"; then
26347                  for x in $CPPFLAGS $INCIPT; do
26348
26349  acl_save_prefix="$prefix"
26350  prefix="$acl_final_prefix"
26351  acl_save_exec_prefix="$exec_prefix"
26352  exec_prefix="$acl_final_exec_prefix"
26353  eval x=\"$x\"
26354  exec_prefix="$acl_save_exec_prefix"
26355  prefix="$acl_save_prefix"
26356
26357                    if test "X$x" = "X-I$additional_includedir"; then
26358                      haveit=yes
26359                      break
26360                    fi
26361                  done
26362                  if test -z "$haveit"; then
26363                    if test -d "$additional_includedir"; then
26364                                            INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
26365                    fi
26366                  fi
26367                fi
26368              fi
26369            fi
26370                        if test -n "$found_la"; then
26371                                                        save_libdir="$libdir"
26372              case "$found_la" in
26373                */* | *\\*) . "$found_la" ;;
26374                *) . "./$found_la" ;;
26375              esac
26376              libdir="$save_libdir"
26377                            for dep in $dependency_libs; do
26378                case "$dep" in
26379                  -L*)
26380                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26381                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
26382                      haveit=
26383                      if test "X$additional_libdir" = "X/usr/local/lib"; then
26384                        if test -n "$GCC"; then
26385                          case $host_os in
26386                            linux*) haveit=yes;;
26387                          esac
26388                        fi
26389                      fi
26390                      if test -z "$haveit"; then
26391                        haveit=
26392                        for x in $LDFLAGS $LIBIPT; do
26393
26394  acl_save_prefix="$prefix"
26395  prefix="$acl_final_prefix"
26396  acl_save_exec_prefix="$exec_prefix"
26397  exec_prefix="$acl_final_exec_prefix"
26398  eval x=\"$x\"
26399  exec_prefix="$acl_save_exec_prefix"
26400  prefix="$acl_save_prefix"
26401
26402                          if test "X$x" = "X-L$additional_libdir"; then
26403                            haveit=yes
26404                            break
26405                          fi
26406                        done
26407                        if test -z "$haveit"; then
26408                          if test -d "$additional_libdir"; then
26409                                                        LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
26410                          fi
26411                        fi
26412                        haveit=
26413                        for x in $LDFLAGS $LTLIBIPT; do
26414
26415  acl_save_prefix="$prefix"
26416  prefix="$acl_final_prefix"
26417  acl_save_exec_prefix="$exec_prefix"
26418  exec_prefix="$acl_final_exec_prefix"
26419  eval x=\"$x\"
26420  exec_prefix="$acl_save_exec_prefix"
26421  prefix="$acl_save_prefix"
26422
26423                          if test "X$x" = "X-L$additional_libdir"; then
26424                            haveit=yes
26425                            break
26426                          fi
26427                        done
26428                        if test -z "$haveit"; then
26429                          if test -d "$additional_libdir"; then
26430                                                        LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
26431                          fi
26432                        fi
26433                      fi
26434                    fi
26435                    ;;
26436                  -R*)
26437                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
26438                    if test "$enable_rpath" != no; then
26439                                                                  haveit=
26440                      for x in $rpathdirs; do
26441                        if test "X$x" = "X$dir"; then
26442                          haveit=yes
26443                          break
26444                        fi
26445                      done
26446                      if test -z "$haveit"; then
26447                        rpathdirs="$rpathdirs $dir"
26448                      fi
26449                                                                  haveit=
26450                      for x in $ltrpathdirs; do
26451                        if test "X$x" = "X$dir"; then
26452                          haveit=yes
26453                          break
26454                        fi
26455                      done
26456                      if test -z "$haveit"; then
26457                        ltrpathdirs="$ltrpathdirs $dir"
26458                      fi
26459                    fi
26460                    ;;
26461                  -l*)
26462                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26463                    ;;
26464                  *.la)
26465                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26466                    ;;
26467                  *)
26468                                        LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
26469                    LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
26470                    ;;
26471                esac
26472              done
26473            fi
26474          else
26475                                                            if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
26476              LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
26477              LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
26478            else
26479              LIBIPT="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
26480              LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
26481            fi
26482          fi
26483        fi
26484      fi
26485    done
26486  done
26487  if test "X$rpathdirs" != "X"; then
26488    if test -n "$hardcode_libdir_separator"; then
26489                        alldirs=
26490      for found_dir in $rpathdirs; do
26491        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
26492      done
26493            acl_save_libdir="$libdir"
26494      libdir="$alldirs"
26495      eval flag=\"$hardcode_libdir_flag_spec\"
26496      libdir="$acl_save_libdir"
26497      LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
26498    else
26499            for found_dir in $rpathdirs; do
26500        acl_save_libdir="$libdir"
26501        libdir="$found_dir"
26502        eval flag=\"$hardcode_libdir_flag_spec\"
26503        libdir="$acl_save_libdir"
26504        LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
26505      done
26506    fi
26507  fi
26508  if test "X$ltrpathdirs" != "X"; then
26509            for found_dir in $ltrpathdirs; do
26510      LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
26511    done
26512  fi
26513
26514
26515        ac_save_CPPFLAGS="$CPPFLAGS"
26516
26517  for element in $INCIPT; do
26518    haveit=
26519    for x in $CPPFLAGS; do
26520
26521  acl_save_prefix="$prefix"
26522  prefix="$acl_final_prefix"
26523  acl_save_exec_prefix="$exec_prefix"
26524  exec_prefix="$acl_final_exec_prefix"
26525  eval x=\"$x\"
26526  exec_prefix="$acl_save_exec_prefix"
26527  prefix="$acl_save_prefix"
26528
26529      if test "X$x" = "X$element"; then
26530        haveit=yes
26531        break
26532      fi
26533    done
26534    if test -z "$haveit"; then
26535      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
26536    fi
26537  done
26538
26539
26540  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
26541$as_echo_n "checking for libipt... " >&6; }
26542if ${ac_cv_libipt+:} false; then :
26543  $as_echo_n "(cached) " >&6
26544else
26545
26546    ac_save_LIBS="$LIBS"
26547    LIBS="$LIBS $LIBIPT"
26548    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26549/* end confdefs.h.  */
26550#include "intel-pt.h"
26551int
26552main ()
26553{
26554pt_insn_alloc_decoder (0);
26555  ;
26556  return 0;
26557}
26558_ACEOF
26559if ac_fn_c_try_link "$LINENO"; then :
26560  ac_cv_libipt=yes
26561else
26562  ac_cv_libipt=no
26563fi
26564rm -f core conftest.err conftest.$ac_objext \
26565    conftest$ac_exeext conftest.$ac_ext
26566    LIBS="$ac_save_LIBS"
26567
26568fi
26569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
26570$as_echo "$ac_cv_libipt" >&6; }
26571  if test "$ac_cv_libipt" = yes; then
26572    HAVE_LIBIPT=yes
26573
26574$as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
26575
26576    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
26577$as_echo_n "checking how to link with libipt... " >&6; }
26578    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
26579$as_echo "$LIBIPT" >&6; }
26580  else
26581    HAVE_LIBIPT=no
26582            CPPFLAGS="$ac_save_CPPFLAGS"
26583    LIBIPT=
26584    LTLIBIPT=
26585  fi
26586
26587
26588
26589
26590
26591
26592    if test "$HAVE_LIBIPT" != yes; then
26593      if test "$with_intel_pt" = yes; then
26594	as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
26595      else
26596	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
26597$as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
26598      fi
26599    else
26600      save_LIBS=$LIBS
26601      LIBS="$LIBS $LIBIPT"
26602      for ac_func in pt_insn_event
26603do :
26604  ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
26605if test "x$ac_cv_func_pt_insn_event" = xyes; then :
26606  cat >>confdefs.h <<_ACEOF
26607#define HAVE_PT_INSN_EVENT 1
26608_ACEOF
26609
26610fi
26611done
26612
26613      ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
26614"
26615if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
26616
26617cat >>confdefs.h <<_ACEOF
26618#define HAVE_STRUCT_PT_INSN_ENABLED 1
26619_ACEOF
26620
26621
26622fi
26623ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
26624"
26625if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
26626
26627cat >>confdefs.h <<_ACEOF
26628#define HAVE_STRUCT_PT_INSN_RESYNCED 1
26629_ACEOF
26630
26631
26632fi
26633
26634      LIBS=$save_LIBS
26635    fi
26636  fi
26637
26638  # Check if the compiler and runtime support printing long longs.
26639
26640  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
26641$as_echo_n "checking for long long support in printf... " >&6; }
26642if ${gdb_cv_printf_has_long_long+:} false; then :
26643  $as_echo_n "(cached) " >&6
26644else
26645  if test "$cross_compiling" = yes; then :
26646  gdb_cv_printf_has_long_long=no
26647else
26648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26649/* end confdefs.h.  */
26650$ac_includes_default
26651int
26652main ()
26653{
26654char buf[32];
26655    long long l = 0;
26656    l = (l << 16) + 0x0123;
26657    l = (l << 16) + 0x4567;
26658    l = (l << 16) + 0x89ab;
26659    l = (l << 16) + 0xcdef;
26660    sprintf (buf, "0x%016llx", l);
26661    return (strcmp ("0x0123456789abcdef", buf));
26662  ;
26663  return 0;
26664}
26665_ACEOF
26666if ac_fn_c_try_run "$LINENO"; then :
26667  gdb_cv_printf_has_long_long=yes
26668else
26669  gdb_cv_printf_has_long_long=no
26670fi
26671rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26672  conftest.$ac_objext conftest.beam conftest.$ac_ext
26673fi
26674
26675fi
26676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
26677$as_echo "$gdb_cv_printf_has_long_long" >&6; }
26678  if test "$gdb_cv_printf_has_long_long" = yes; then
26679
26680$as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
26681
26682  fi
26683
26684
26685$as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
26686
26687 for ac_header in sys/procfs.h
26688do :
26689  ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
26690if test "x$ac_cv_header_sys_procfs_h" = xyes; then :
26691  cat >>confdefs.h <<_ACEOF
26692#define HAVE_SYS_PROCFS_H 1
26693_ACEOF
26694
26695fi
26696
26697done
26698
26699  if test "$ac_cv_header_sys_procfs_h" = yes; then
26700
26701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
26702$as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
26703 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
26704  $as_echo_n "(cached) " >&6
26705else
26706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26707/* end confdefs.h.  */
26708
26709#define _SYSCALL32
26710#include <sys/procfs.h>
26711int
26712main ()
26713{
26714gregset_t avar
26715  ;
26716  return 0;
26717}
26718_ACEOF
26719if ac_fn_c_try_compile "$LINENO"; then :
26720  bfd_cv_have_sys_procfs_type_gregset_t=yes
26721else
26722  bfd_cv_have_sys_procfs_type_gregset_t=no
26723
26724fi
26725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26726fi
26727
26728 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
26729
26730$as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
26731
26732 fi
26733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
26734$as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
26735
26736
26737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
26738$as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
26739 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
26740  $as_echo_n "(cached) " >&6
26741else
26742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26743/* end confdefs.h.  */
26744
26745#define _SYSCALL32
26746#include <sys/procfs.h>
26747int
26748main ()
26749{
26750fpregset_t avar
26751  ;
26752  return 0;
26753}
26754_ACEOF
26755if ac_fn_c_try_compile "$LINENO"; then :
26756  bfd_cv_have_sys_procfs_type_fpregset_t=yes
26757else
26758  bfd_cv_have_sys_procfs_type_fpregset_t=no
26759
26760fi
26761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26762fi
26763
26764 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
26765
26766$as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
26767
26768 fi
26769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
26770$as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
26771
26772
26773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
26774$as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
26775 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
26776  $as_echo_n "(cached) " >&6
26777else
26778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26779/* end confdefs.h.  */
26780
26781#define _SYSCALL32
26782#include <sys/procfs.h>
26783int
26784main ()
26785{
26786prgregset_t avar
26787  ;
26788  return 0;
26789}
26790_ACEOF
26791if ac_fn_c_try_compile "$LINENO"; then :
26792  bfd_cv_have_sys_procfs_type_prgregset_t=yes
26793else
26794  bfd_cv_have_sys_procfs_type_prgregset_t=no
26795
26796fi
26797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26798fi
26799
26800 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
26801
26802$as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
26803
26804 fi
26805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
26806$as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
26807
26808
26809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
26810$as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
26811 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
26812  $as_echo_n "(cached) " >&6
26813else
26814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26815/* end confdefs.h.  */
26816
26817#define _SYSCALL32
26818#include <sys/procfs.h>
26819int
26820main ()
26821{
26822prfpregset_t avar
26823  ;
26824  return 0;
26825}
26826_ACEOF
26827if ac_fn_c_try_compile "$LINENO"; then :
26828  bfd_cv_have_sys_procfs_type_prfpregset_t=yes
26829else
26830  bfd_cv_have_sys_procfs_type_prfpregset_t=no
26831
26832fi
26833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26834fi
26835
26836 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
26837
26838$as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
26839
26840 fi
26841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
26842$as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
26843
26844
26845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
26846$as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
26847 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
26848  $as_echo_n "(cached) " >&6
26849else
26850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26851/* end confdefs.h.  */
26852
26853#define _SYSCALL32
26854#include <sys/procfs.h>
26855int
26856main ()
26857{
26858prgregset32_t avar
26859  ;
26860  return 0;
26861}
26862_ACEOF
26863if ac_fn_c_try_compile "$LINENO"; then :
26864  bfd_cv_have_sys_procfs_type_prgregset32_t=yes
26865else
26866  bfd_cv_have_sys_procfs_type_prgregset32_t=no
26867
26868fi
26869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26870fi
26871
26872 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
26873
26874$as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
26875
26876 fi
26877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
26878$as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
26879
26880
26881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
26882$as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
26883 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
26884  $as_echo_n "(cached) " >&6
26885else
26886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26887/* end confdefs.h.  */
26888
26889#define _SYSCALL32
26890#include <sys/procfs.h>
26891int
26892main ()
26893{
26894lwpid_t avar
26895  ;
26896  return 0;
26897}
26898_ACEOF
26899if ac_fn_c_try_compile "$LINENO"; then :
26900  bfd_cv_have_sys_procfs_type_lwpid_t=yes
26901else
26902  bfd_cv_have_sys_procfs_type_lwpid_t=no
26903
26904fi
26905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26906fi
26907
26908 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
26909
26910$as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
26911
26912 fi
26913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
26914$as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
26915
26916
26917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
26918$as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
26919 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
26920  $as_echo_n "(cached) " >&6
26921else
26922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26923/* end confdefs.h.  */
26924
26925#define _SYSCALL32
26926#include <sys/procfs.h>
26927int
26928main ()
26929{
26930psaddr_t avar
26931  ;
26932  return 0;
26933}
26934_ACEOF
26935if ac_fn_c_try_compile "$LINENO"; then :
26936  bfd_cv_have_sys_procfs_type_psaddr_t=yes
26937else
26938  bfd_cv_have_sys_procfs_type_psaddr_t=no
26939
26940fi
26941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26942fi
26943
26944 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
26945
26946$as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
26947
26948 fi
26949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
26950$as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
26951
26952
26953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
26954$as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
26955 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
26956  $as_echo_n "(cached) " >&6
26957else
26958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26959/* end confdefs.h.  */
26960
26961#define _SYSCALL32
26962#include <sys/procfs.h>
26963int
26964main ()
26965{
26966elf_fpregset_t avar
26967  ;
26968  return 0;
26969}
26970_ACEOF
26971if ac_fn_c_try_compile "$LINENO"; then :
26972  bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
26973else
26974  bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
26975
26976fi
26977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26978fi
26979
26980 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
26981
26982$as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
26983
26984 fi
26985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
26986$as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
26987
26988  fi
26989
26990
26991# Check the return and argument types of ptrace.
26992
26993
26994for ac_header in sys/ptrace.h ptrace.h
26995do :
26996  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26997ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26998if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26999  cat >>confdefs.h <<_ACEOF
27000#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27001_ACEOF
27002
27003fi
27004
27005done
27006
27007
27008gdb_ptrace_headers='
27009#include <sys/types.h>
27010#if HAVE_SYS_PTRACE_H
27011# include <sys/ptrace.h>
27012#endif
27013#if HAVE_UNISTD_H
27014# include <unistd.h>
27015#endif
27016'
27017
27018# Check return type.  Varargs (used on GNU/Linux) conflict with the
27019# empty argument list, so check for that explicitly.
27020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
27021$as_echo_n "checking return type of ptrace... " >&6; }
27022if ${gdb_cv_func_ptrace_ret+:} false; then :
27023  $as_echo_n "(cached) " >&6
27024else
27025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27026/* end confdefs.h.  */
27027 $gdb_ptrace_headers
27028int
27029main ()
27030{
27031extern long ptrace (enum __ptrace_request, ...);
27032
27033  ;
27034  return 0;
27035}
27036_ACEOF
27037if ac_fn_c_try_compile "$LINENO"; then :
27038  gdb_cv_func_ptrace_ret='long'
27039else
27040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27041/* end confdefs.h.  */
27042$gdb_ptrace_headers
27043int
27044main ()
27045{
27046extern int ptrace ();
27047
27048  ;
27049  return 0;
27050}
27051_ACEOF
27052if ac_fn_c_try_compile "$LINENO"; then :
27053  gdb_cv_func_ptrace_ret='int'
27054else
27055  gdb_cv_func_ptrace_ret='long'
27056
27057fi
27058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27059
27060fi
27061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27062
27063fi
27064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
27065$as_echo "$gdb_cv_func_ptrace_ret" >&6; }
27066
27067
27068cat >>confdefs.h <<_ACEOF
27069#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
27070_ACEOF
27071
27072
27073# Check argument types.
27074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
27075$as_echo_n "checking types of arguments for ptrace... " >&6; }
27076if ${gdb_cv_func_ptrace_args+:} false; then :
27077  $as_echo_n "(cached) " >&6
27078else
27079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27080/* end confdefs.h.  */
27081$gdb_ptrace_headers
27082int
27083main ()
27084{
27085extern long ptrace (enum __ptrace_request, ...);
27086
27087  ;
27088  return 0;
27089}
27090_ACEOF
27091if ac_fn_c_try_compile "$LINENO"; then :
27092  gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
27093else
27094  for gdb_arg1 in 'int' 'long'; do
27095	for gdb_arg2 in 'pid_t' 'int' 'long'; do
27096	  for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
27097	    for gdb_arg4 in 'int' 'long' 'void *'; do
27098	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27099/* end confdefs.h.  */
27100$gdb_ptrace_headers
27101int
27102main ()
27103{
27104extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
27105
27106  ;
27107  return 0;
27108}
27109_ACEOF
27110if ac_fn_c_try_compile "$LINENO"; then :
27111  gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
27112		 break 4;
27113
27114fi
27115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27116
27117	      for gdb_arg5 in 'int *' 'int' 'long'; do
27118		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27119/* end confdefs.h.  */
27120$gdb_ptrace_headers
27121int
27122main ()
27123{
27124extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
27125
27126  ;
27127  return 0;
27128}
27129_ACEOF
27130if ac_fn_c_try_compile "$LINENO"; then :
27131  gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
27132		   break 5;
27133
27134fi
27135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27136	      done
27137	    done
27138	  done
27139	done
27140      done
27141      # Provide a safe default value.
27142      : ${gdb_cv_func_ptrace_args='int,int,long,long'}
27143
27144fi
27145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27146
27147fi
27148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
27149$as_echo "$gdb_cv_func_ptrace_args" >&6; }
27150
27151ac_save_IFS=$IFS; IFS=','
27152set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
27153IFS=$ac_save_IFS
27154shift
27155
27156cat >>confdefs.h <<_ACEOF
27157#define PTRACE_TYPE_ARG1 $1
27158_ACEOF
27159
27160
27161cat >>confdefs.h <<_ACEOF
27162#define PTRACE_TYPE_ARG3 $3
27163_ACEOF
27164
27165
27166cat >>confdefs.h <<_ACEOF
27167#define PTRACE_TYPE_ARG4 $4
27168_ACEOF
27169
27170if test -n "$5"; then
27171
27172cat >>confdefs.h <<_ACEOF
27173#define PTRACE_TYPE_ARG5 $5
27174_ACEOF
27175
27176fi
27177
27178
27179if test "$cross_compiling" = no; then
27180  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27181$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27182if ${ac_cv_func_setpgrp_void+:} false; then :
27183  $as_echo_n "(cached) " >&6
27184else
27185  if test "$cross_compiling" = yes; then :
27186  as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
27187else
27188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27189/* end confdefs.h.  */
27190$ac_includes_default
27191int
27192main ()
27193{
27194/* If this system has a BSD-style setpgrp which takes arguments,
27195  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
27196  exit successfully. */
27197  return setpgrp (1,1) != -1;
27198  ;
27199  return 0;
27200}
27201_ACEOF
27202if ac_fn_c_try_run "$LINENO"; then :
27203  ac_cv_func_setpgrp_void=no
27204else
27205  ac_cv_func_setpgrp_void=yes
27206fi
27207rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27208  conftest.$ac_objext conftest.beam conftest.$ac_ext
27209fi
27210
27211fi
27212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
27213$as_echo "$ac_cv_func_setpgrp_void" >&6; }
27214if test $ac_cv_func_setpgrp_void = yes; then
27215
27216$as_echo "#define SETPGRP_VOID 1" >>confdefs.h
27217
27218fi
27219
27220else
27221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27222$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27223if ${ac_cv_func_setpgrp_void+:} false; then :
27224  $as_echo_n "(cached) " >&6
27225else
27226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27227/* end confdefs.h.  */
27228#include <unistd.h>
27229int
27230main ()
27231{
27232if (setpgrp(1,1) == -1)
27233	     exit (0);
27234	   else
27235	     exit (1);
27236
27237  ;
27238  return 0;
27239}
27240_ACEOF
27241if ac_fn_c_try_compile "$LINENO"; then :
27242  ac_cv_func_setpgrp_void=no
27243else
27244  ac_cv_func_setpgrp_void=yes
27245
27246fi
27247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27248
27249fi
27250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
27251$as_echo "$ac_cv_func_setpgrp_void" >&6; }
27252if test "$ac_cv_func_setpgrp_void" = yes; then
27253  $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
27254
27255fi
27256fi
27257
27258# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
27259ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
27260#include <sys/proc.h>
27261
27262"
27263if test "x$ac_cv_member_struct_thread_td_pcb" = xyes; then :
27264
27265cat >>confdefs.h <<_ACEOF
27266#define HAVE_STRUCT_THREAD_TD_PCB 1
27267_ACEOF
27268
27269
27270fi
27271
27272
27273# See if <sys/lwp.h> defines `struct lwp`.
27274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
27275$as_echo_n "checking for struct lwp... " >&6; }
27276if ${gdb_cv_struct_lwp+:} false; then :
27277  $as_echo_n "(cached) " >&6
27278else
27279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27280/* end confdefs.h.  */
27281#include <sys/param.h>
27282	 #define _KMEMUSER
27283	 #include <sys/lwp.h>
27284int
27285main ()
27286{
27287struct lwp l;
27288
27289  ;
27290  return 0;
27291}
27292_ACEOF
27293if ac_fn_c_try_compile "$LINENO"; then :
27294  gdb_cv_struct_lwp=yes
27295else
27296  gdb_cv_struct_lwp=no
27297
27298fi
27299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27300
27301fi
27302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
27303$as_echo "$gdb_cv_struct_lwp" >&6; }
27304if test "$gdb_cv_struct_lwp" = yes; then
27305
27306$as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
27307
27308fi
27309
27310# See if <machine/reg.h> degines `struct reg'.
27311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
27312$as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
27313if ${gdb_cv_struct_reg+:} false; then :
27314  $as_echo_n "(cached) " >&6
27315else
27316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27317/* end confdefs.h.  */
27318#include <sys/types.h>
27319	 #include <machine/reg.h>
27320int
27321main ()
27322{
27323struct reg r;
27324
27325  ;
27326  return 0;
27327}
27328_ACEOF
27329if ac_fn_c_try_compile "$LINENO"; then :
27330  gdb_cv_struct_reg=yes
27331else
27332  gdb_cv_struct_reg=no
27333
27334fi
27335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27336
27337fi
27338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
27339$as_echo "$gdb_cv_struct_reg" >&6; }
27340if test "$gdb_cv_struct_reg" = yes; then
27341
27342$as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
27343
27344fi
27345
27346# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
27347# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
27348ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
27349#include <machine/reg.h>
27350"
27351if test "x$ac_cv_member_struct_reg_r_fs" = xyes; then :
27352
27353cat >>confdefs.h <<_ACEOF
27354#define HAVE_STRUCT_REG_R_FS 1
27355_ACEOF
27356
27357
27358fi
27359ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
27360#include <machine/reg.h>
27361"
27362if test "x$ac_cv_member_struct_reg_r_gs" = xyes; then :
27363
27364cat >>confdefs.h <<_ACEOF
27365#define HAVE_STRUCT_REG_R_GS 1
27366_ACEOF
27367
27368
27369fi
27370
27371
27372# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
27373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
27374$as_echo_n "checking for PTRACE_GETREGS... " >&6; }
27375if ${gdb_cv_have_ptrace_getregs+:} false; then :
27376  $as_echo_n "(cached) " >&6
27377else
27378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27379/* end confdefs.h.  */
27380#include <sys/ptrace.h>
27381int
27382main ()
27383{
27384PTRACE_GETREGS;
27385  ;
27386  return 0;
27387}
27388_ACEOF
27389if ac_fn_c_try_compile "$LINENO"; then :
27390  gdb_cv_have_ptrace_getregs=yes
27391else
27392  gdb_cv_have_ptrace_getregs=no
27393
27394fi
27395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27396
27397fi
27398
27399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
27400$as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
27401if test "$gdb_cv_have_ptrace_getregs" = yes; then
27402
27403$as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
27404
27405fi
27406
27407# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
27408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
27409$as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
27410if ${gdb_cv_have_ptrace_getfpxregs+:} false; then :
27411  $as_echo_n "(cached) " >&6
27412else
27413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27414/* end confdefs.h.  */
27415#include <sys/ptrace.h>
27416int
27417main ()
27418{
27419PTRACE_GETFPXREGS;
27420  ;
27421  return 0;
27422}
27423_ACEOF
27424if ac_fn_c_try_compile "$LINENO"; then :
27425  gdb_cv_have_ptrace_getfpxregs=yes
27426else
27427  gdb_cv_have_ptrace_getfpxregs=no
27428
27429fi
27430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27431
27432fi
27433
27434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
27435$as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
27436if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
27437
27438$as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
27439
27440fi
27441
27442# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
27443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
27444$as_echo_n "checking for PT_GETDBREGS... " >&6; }
27445if ${gdb_cv_have_pt_getdbregs+:} false; then :
27446  $as_echo_n "(cached) " >&6
27447else
27448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27449/* end confdefs.h.  */
27450#include <sys/types.h>
27451	 #include <sys/ptrace.h>
27452int
27453main ()
27454{
27455PT_GETDBREGS;
27456
27457  ;
27458  return 0;
27459}
27460_ACEOF
27461if ac_fn_c_try_compile "$LINENO"; then :
27462  gdb_cv_have_pt_getdbregs=yes
27463else
27464  gdb_cv_have_pt_getdbregs=no
27465
27466fi
27467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27468
27469fi
27470
27471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
27472$as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
27473if test "$gdb_cv_have_pt_getdbregs" = yes; then
27474
27475$as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
27476
27477fi
27478
27479# See if <sys/ptrace.h> supports LWP names on FreeBSD
27480# Older FreeBSD versions don't have the pl_tdname member of
27481# `struct ptrace_lwpinfo'.
27482ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
27483"
27484if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes; then :
27485
27486cat >>confdefs.h <<_ACEOF
27487#define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
27488_ACEOF
27489
27490
27491fi
27492
27493
27494# See if <sys/ptrace.h> supports syscall fields on FreeBSD.  The
27495# pl_syscall_code member of `struct ptrace_lwpinfo' was added in
27496# FreeBSD 10.3.
27497ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_syscall_code" "ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" "#include <sys/ptrace.h>
27498"
27499if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes; then :
27500
27501cat >>confdefs.h <<_ACEOF
27502#define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
27503_ACEOF
27504
27505
27506fi
27507
27508
27509# Check if the compiler supports the `long long' type.
27510
27511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
27512$as_echo_n "checking for long long support in compiler... " >&6; }
27513if ${gdb_cv_c_long_long+:} false; then :
27514  $as_echo_n "(cached) " >&6
27515else
27516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27517/* end confdefs.h.  */
27518extern long long foo;
27519int
27520main ()
27521{
27522switch (foo & 2) { case 0: return 1; }
27523  ;
27524  return 0;
27525}
27526_ACEOF
27527if ac_fn_c_try_compile "$LINENO"; then :
27528  gdb_cv_c_long_long=yes
27529else
27530  gdb_cv_c_long_long=no
27531fi
27532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27533fi
27534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
27535$as_echo "$gdb_cv_c_long_long" >&6; }
27536if test "$gdb_cv_c_long_long" != yes; then
27537  # libdecnumber requires long long.
27538  as_fn_error $? "Compiler must support long long for GDB." "$LINENO" 5
27539fi
27540
27541# Check if the compiler and runtime support printing decfloats.
27542
27543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
27544$as_echo_n "checking for decfloat support in printf... " >&6; }
27545if ${gdb_cv_printf_has_decfloat+:} false; then :
27546  $as_echo_n "(cached) " >&6
27547else
27548  if test "$cross_compiling" = yes; then :
27549  gdb_cv_printf_has_decfloat=no
27550else
27551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27552/* end confdefs.h.  */
27553$ac_includes_default
27554int
27555main ()
27556{
27557char buf[64];
27558  _Decimal32 d32 = 1.2345df;
27559  _Decimal64 d64 = 1.2345dd;
27560  _Decimal128 d128 = 1.2345dl;
27561  sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
27562  return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
27563  ;
27564  return 0;
27565}
27566_ACEOF
27567if ac_fn_c_try_run "$LINENO"; then :
27568  gdb_cv_printf_has_decfloat=yes
27569else
27570  gdb_cv_printf_has_decfloat=no
27571fi
27572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27573  conftest.$ac_objext conftest.beam conftest.$ac_ext
27574fi
27575
27576fi
27577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
27578$as_echo "$gdb_cv_printf_has_decfloat" >&6; }
27579if test "$gdb_cv_printf_has_decfloat" = yes; then
27580
27581$as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
27582
27583fi
27584
27585# Check if the compiler supports the `long double' type.  We can't use
27586# AC_C_LONG_DOUBLE because that one does additional checks on the
27587# constants defined in <float.h> that fail on some systems,
27588# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
27589
27590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
27591$as_echo_n "checking for long double support in compiler... " >&6; }
27592if ${gdb_cv_c_long_double+:} false; then :
27593  $as_echo_n "(cached) " >&6
27594else
27595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27596/* end confdefs.h.  */
27597long double foo;
27598_ACEOF
27599if ac_fn_c_try_compile "$LINENO"; then :
27600  gdb_cv_c_long_double=yes
27601else
27602  gdb_cv_c_long_double=no
27603fi
27604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27605fi
27606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
27607$as_echo "$gdb_cv_c_long_double" >&6; }
27608if test "$gdb_cv_c_long_double" = yes; then
27609
27610$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
27611
27612fi
27613
27614# Check if the compiler and runtime support printing long doubles.
27615
27616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
27617$as_echo_n "checking for long double support in printf... " >&6; }
27618if ${gdb_cv_printf_has_long_double+:} false; then :
27619  $as_echo_n "(cached) " >&6
27620else
27621  if test "$cross_compiling" = yes; then :
27622  gdb_cv_printf_has_long_double=no
27623else
27624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27625/* end confdefs.h.  */
27626$ac_includes_default
27627int
27628main ()
27629{
27630char buf[16];
27631  long double f = 3.141592653;
27632  sprintf (buf, "%Lg", f);
27633  return (strncmp ("3.14159", buf, 7));
27634  ;
27635  return 0;
27636}
27637_ACEOF
27638if ac_fn_c_try_run "$LINENO"; then :
27639  gdb_cv_printf_has_long_double=yes
27640else
27641  gdb_cv_printf_has_long_double=no
27642fi
27643rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27644  conftest.$ac_objext conftest.beam conftest.$ac_ext
27645fi
27646
27647fi
27648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
27649$as_echo "$gdb_cv_printf_has_long_double" >&6; }
27650if test "$gdb_cv_printf_has_long_double" = yes; then
27651
27652$as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
27653
27654fi
27655
27656# Check if the compiler and runtime support scanning long doubles.
27657
27658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
27659$as_echo_n "checking for long double support in scanf... " >&6; }
27660if ${gdb_cv_scanf_has_long_double+:} false; then :
27661  $as_echo_n "(cached) " >&6
27662else
27663  if test "$cross_compiling" = yes; then :
27664  gdb_cv_scanf_has_long_double=no
27665else
27666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27667/* end confdefs.h.  */
27668#include <stdio.h>
27669int
27670main ()
27671{
27672char *buf = "3.141592653";
27673  long double f = 0;
27674  sscanf (buf, "%Lg", &f);
27675  return !(f > 3.14159 && f < 3.14160);
27676  ;
27677  return 0;
27678}
27679_ACEOF
27680if ac_fn_c_try_run "$LINENO"; then :
27681  gdb_cv_scanf_has_long_double=yes
27682else
27683  gdb_cv_scanf_has_long_double=no
27684fi
27685rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27686  conftest.$ac_objext conftest.beam conftest.$ac_ext
27687fi
27688
27689fi
27690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
27691$as_echo "$gdb_cv_scanf_has_long_double" >&6; }
27692if test "$gdb_cv_scanf_has_long_double" = yes; then
27693
27694$as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
27695
27696fi
27697
27698case ${host_os} in
27699aix*)
27700  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
27701$as_echo_n "checking for -bbigtoc option... " >&6; }
27702if ${gdb_cv_bigtoc+:} false; then :
27703  $as_echo_n "(cached) " >&6
27704else
27705  SAVE_LDFLAGS=$LDFLAGS
27706
27707     case $GCC in
27708       yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
27709       *) gdb_cv_bigtoc=-bbigtoc ;;
27710     esac
27711
27712     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
27713     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27714/* end confdefs.h.  */
27715
27716int
27717main ()
27718{
27719int i;
27720  ;
27721  return 0;
27722}
27723_ACEOF
27724if ac_fn_c_try_link "$LINENO"; then :
27725
27726else
27727  gdb_cv_bigtoc=
27728
27729fi
27730rm -f core conftest.err conftest.$ac_objext \
27731    conftest$ac_exeext conftest.$ac_ext
27732     LDFLAGS="${SAVE_LDFLAGS}"
27733
27734fi
27735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
27736$as_echo "$gdb_cv_bigtoc" >&6; }
27737  CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
27738  ;;
27739esac
27740
27741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
27742$as_echo_n "checking for the dynamic export flag... " >&6; }
27743dynamic_list=false
27744if test "${gdb_native}" = yes; then
27745   # The dynamically loaded libthread_db needs access to symbols in the gdb
27746   # executable.  Older GNU ld supports --export-dynamic but --dynamic-list
27747   # may not be supported there.
27748   old_LDFLAGS="$LDFLAGS"
27749   # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
27750   RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
27751   LDFLAGS="$LDFLAGS $RDYNAMIC"
27752   if test "${have_libpython}" = no; then
27753     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27754/* end confdefs.h.  */
27755
27756int
27757main ()
27758{
27759
27760  ;
27761  return 0;
27762}
27763_ACEOF
27764if ac_fn_c_try_link "$LINENO"; then :
27765  dynamic_list=true
27766fi
27767rm -f core conftest.err conftest.$ac_objext \
27768    conftest$ac_exeext conftest.$ac_ext
27769   else
27770     # Workaround http://bugs.python.org/issue4434 where static
27771     # libpythonX.Y.a would get its symbols required for
27772     # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
27773     # Problem does not happen for the recommended libpythonX.Y.so linkage.
27774
27775     # Note the workaround for Python
27776     # http://bugs.python.org/issue10112 earlier has removed
27777     # -export-dynamic from PYTHON_LIBS.  That's exactly what we want
27778     # here too, as otherwise it'd make this -Wl,--dynamic-list test
27779     # always pass.
27780     old_CFLAGS="$CFLAGS"
27781     CFLAGS="$CFLAGS $PYTHON_CFLAGS"
27782     old_LIBS="$LIBS"
27783     LIBS="$LIBS $PYTHON_LIBS"
27784     old_CPPFLAGS="$CPPFLAGS"
27785     CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
27786     if test "$cross_compiling" = yes; then :
27787  true
27788else
27789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27790/* end confdefs.h.  */
27791#include "Python.h"
27792int
27793main ()
27794{
27795int err;
27796          Py_Initialize ();
27797          err = PyRun_SimpleString ("import ctypes\n");
27798          Py_Finalize ();
27799          return err == 0 ? 0 : 1;
27800  ;
27801  return 0;
27802}
27803_ACEOF
27804if ac_fn_c_try_run "$LINENO"; then :
27805  dynamic_list=true
27806fi
27807rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27808  conftest.$ac_objext conftest.beam conftest.$ac_ext
27809fi
27810
27811     LIBS="$old_LIBS"
27812     CFLAGS="$old_CFLAGS"
27813     CPPFLAGS="$old_CPPFLAGS"
27814   fi
27815   LDFLAGS="$old_LDFLAGS"
27816fi
27817if $dynamic_list; then
27818  found="-Wl,--dynamic-list"
27819  RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
27820else
27821  found="-rdynamic"
27822  RDYNAMIC="-rdynamic"
27823fi
27824
27825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
27826$as_echo "$found" >&6; }
27827
27828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether execinfo.h backtrace is available" >&5
27829$as_echo_n "checking whether execinfo.h backtrace is available... " >&6; }
27830if ${gdb_cv_execinfo_backtrace+:} false; then :
27831  $as_echo_n "(cached) " >&6
27832else
27833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27834/* end confdefs.h.  */
27835
27836         #include <execinfo.h>
27837
27838int
27839main ()
27840{
27841
27842         int f;
27843         void *b[2];
27844         f = backtrace (b, 2);
27845         backtrace_symbols_fd (b, f, 2);
27846
27847  ;
27848  return 0;
27849}
27850_ACEOF
27851if ac_fn_c_try_link "$LINENO"; then :
27852  gdb_cv_execinfo_backtrace=yes
27853else
27854  gdb_cv_execinfo_backtrace=no
27855fi
27856rm -f core conftest.err conftest.$ac_objext \
27857    conftest$ac_exeext conftest.$ac_ext
27858fi
27859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_execinfo_backtrace" >&5
27860$as_echo "$gdb_cv_execinfo_backtrace" >&6; }
27861if test "$gdb_cv_execinfo_backtrace" = yes; then
27862
27863$as_echo "#define HAVE_EXECINFO_BACKTRACE 1" >>confdefs.h
27864
27865fi
27866
27867
27868if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
27869   case ${host_os} in
27870   aix*)
27871      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
27872$as_echo_n "checking for AiX thread debugging library... " >&6; }
27873      if ${gdb_cv_have_aix_thread_debug+:} false; then :
27874  $as_echo_n "(cached) " >&6
27875else
27876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27877/* end confdefs.h.  */
27878#include <sys/pthdebug.h>
27879int
27880main ()
27881{
27882#ifndef PTHDB_VERSION_3
27883	       #error
27884	       #endif
27885
27886  ;
27887  return 0;
27888}
27889_ACEOF
27890if ac_fn_c_try_compile "$LINENO"; then :
27891  gdb_cv_have_aix_thread_debug=yes
27892else
27893  gdb_cv_have_aix_thread_debug=no
27894
27895fi
27896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27897
27898fi
27899
27900      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
27901$as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
27902      if test "$gdb_cv_have_aix_thread_debug" = yes; then
27903         CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
27904         CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
27905         LIBS="$LIBS -lpthdebug"
27906
27907         # Older versions of AIX do not provide the declaration for
27908         # the getthrds function (it appears that it was introduced
27909         # with AIX 6.x).
27910         ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
27911"
27912if test "x$ac_cv_have_decl_getthrds" = xyes; then :
27913  ac_have_decl=1
27914else
27915  ac_have_decl=0
27916fi
27917
27918cat >>confdefs.h <<_ACEOF
27919#define HAVE_DECL_GETTHRDS $ac_have_decl
27920_ACEOF
27921
27922      fi
27923      ;;
27924   esac
27925
27926fi
27927
27928if test "x$ac_cv_header_thread_db_h" = "xyes"; then
27929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
27930$as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
27931if ${gdb_cv_thread_db_h_has_td_notalloc+:} false; then :
27932  $as_echo_n "(cached) " >&6
27933else
27934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27935/* end confdefs.h.  */
27936#include <thread_db.h>
27937int
27938main ()
27939{
27940int i = TD_NOTALLOC;
27941
27942  ;
27943  return 0;
27944}
27945_ACEOF
27946if ac_fn_c_try_compile "$LINENO"; then :
27947  gdb_cv_thread_db_h_has_td_notalloc=yes
27948else
27949  gdb_cv_thread_db_h_has_td_notalloc=no
27950
27951fi
27952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27953
27954fi
27955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
27956$as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
27957
27958  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
27959$as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
27960if ${gdb_cv_thread_db_h_has_td_version+:} false; then :
27961  $as_echo_n "(cached) " >&6
27962else
27963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27964/* end confdefs.h.  */
27965#include <thread_db.h>
27966int
27967main ()
27968{
27969int i = TD_VERSION;
27970
27971  ;
27972  return 0;
27973}
27974_ACEOF
27975if ac_fn_c_try_compile "$LINENO"; then :
27976  gdb_cv_thread_db_h_has_td_version=yes
27977else
27978  gdb_cv_thread_db_h_has_td_version=no
27979
27980fi
27981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27982
27983fi
27984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
27985$as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
27986
27987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
27988$as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
27989if ${gdb_cv_thread_db_h_has_td_notls+:} false; then :
27990  $as_echo_n "(cached) " >&6
27991else
27992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27993/* end confdefs.h.  */
27994#include <thread_db.h>
27995int
27996main ()
27997{
27998int i = TD_NOTLS;
27999
28000  ;
28001  return 0;
28002}
28003_ACEOF
28004if ac_fn_c_try_compile "$LINENO"; then :
28005  gdb_cv_thread_db_h_has_td_notls=yes
28006else
28007  gdb_cv_thread_db_h_has_td_notls=no
28008
28009fi
28010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28011
28012fi
28013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
28014$as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
28015fi
28016if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
28017
28018$as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
28019
28020fi
28021if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
28022
28023$as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
28024
28025fi
28026if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
28027
28028$as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
28029
28030fi
28031
28032case $host_os in
28033  go32* | *djgpp*)
28034    gdbinit=gdb.ini
28035    ;;
28036  *)
28037    gdbinit=.gdbinit
28038    ;;
28039esac
28040
28041cat >>confdefs.h <<_ACEOF
28042#define GDBINIT "$gdbinit"
28043_ACEOF
28044
28045
28046
28047cat >>confdefs.h <<_ACEOF
28048#define GDBEARLYINIT ".gdbearlyinit"
28049_ACEOF
28050
28051
28052
28053# Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
28054# except that the argument to --with-sysroot is optional.
28055# --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
28056if test "x$with_sysroot" = xyes; then
28057  with_sysroot="${exec_prefix}/${target_alias}/sys-root"
28058fi
28059
28060# Check whether --with-sysroot was given.
28061if test "${with_sysroot+set}" = set; then :
28062  withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
28063else
28064  TARGET_SYSTEM_ROOT=
28065fi
28066
28067
28068  test "x$prefix" = xNONE && prefix="$ac_default_prefix"
28069  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28070  ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
28071  ac_define_dir=`eval echo $ac_define_dir`
28072
28073cat >>confdefs.h <<_ACEOF
28074#define TARGET_SYSTEM_ROOT "$ac_define_dir"
28075_ACEOF
28076
28077
28078
28079
28080  if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
28081     if test "x$prefix" = xNONE; then
28082     	test_prefix=/usr/local
28083     else
28084	test_prefix=$prefix
28085     fi
28086  else
28087     test_prefix=$exec_prefix
28088  fi
28089  value=0
28090  case ${ac_define_dir} in
28091     "${test_prefix}"|"${test_prefix}/"*|\
28092	'${exec_prefix}'|'${exec_prefix}/'*)
28093     value=1
28094     ;;
28095  esac
28096
28097cat >>confdefs.h <<_ACEOF
28098#define TARGET_SYSTEM_ROOT_RELOCATABLE $value
28099_ACEOF
28100
28101
28102
28103
28104
28105# Check whether --with-system-gdbinit was given.
28106if test "${with_system_gdbinit+set}" = set; then :
28107  withval=$with_system_gdbinit;
28108    SYSTEM_GDBINIT=$withval
28109else
28110  SYSTEM_GDBINIT=
28111fi
28112
28113
28114  test "x$prefix" = xNONE && prefix="$ac_default_prefix"
28115  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28116  ac_define_dir=`eval echo $SYSTEM_GDBINIT`
28117  ac_define_dir=`eval echo $ac_define_dir`
28118
28119cat >>confdefs.h <<_ACEOF
28120#define SYSTEM_GDBINIT "$ac_define_dir"
28121_ACEOF
28122
28123
28124
28125
28126  if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
28127     if test "x$prefix" = xNONE; then
28128     	test_prefix=/usr/local
28129     else
28130	test_prefix=$prefix
28131     fi
28132  else
28133     test_prefix=$exec_prefix
28134  fi
28135  value=0
28136  case ${ac_define_dir} in
28137     "${test_prefix}"|"${test_prefix}/"*|\
28138	'${exec_prefix}'|'${exec_prefix}/'*)
28139     value=1
28140     ;;
28141  esac
28142
28143cat >>confdefs.h <<_ACEOF
28144#define SYSTEM_GDBINIT_RELOCATABLE $value
28145_ACEOF
28146
28147
28148
28149
28150
28151# Check whether --with-system-gdbinit-dir was given.
28152if test "${with_system_gdbinit_dir+set}" = set; then :
28153  withval=$with_system_gdbinit_dir;
28154    SYSTEM_GDBINIT_DIR=$withval
28155else
28156  SYSTEM_GDBINIT_DIR=
28157fi
28158
28159
28160  test "x$prefix" = xNONE && prefix="$ac_default_prefix"
28161  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28162  ac_define_dir=`eval echo $SYSTEM_GDBINIT_DIR`
28163  ac_define_dir=`eval echo $ac_define_dir`
28164
28165cat >>confdefs.h <<_ACEOF
28166#define SYSTEM_GDBINIT_DIR "$ac_define_dir"
28167_ACEOF
28168
28169
28170
28171
28172  if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
28173     if test "x$prefix" = xNONE; then
28174     	test_prefix=/usr/local
28175     else
28176	test_prefix=$prefix
28177     fi
28178  else
28179     test_prefix=$exec_prefix
28180  fi
28181  value=0
28182  case ${ac_define_dir} in
28183     "${test_prefix}"|"${test_prefix}/"*|\
28184	'${exec_prefix}'|'${exec_prefix}/'*)
28185     value=1
28186     ;;
28187  esac
28188
28189cat >>confdefs.h <<_ACEOF
28190#define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
28191_ACEOF
28192
28193
28194
28195
28196
28197
28198  { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
28199$as_echo_n "checking the compiler type... " >&6; }
28200if ${gdb_cv_compiler_type+:} false; then :
28201  $as_echo_n "(cached) " >&6
28202else
28203  gdb_cv_compiler_type=unknown
28204  if test "$gdb_cv_compiler_type" = unknown; then
28205     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28206/* end confdefs.h.  */
28207
28208int
28209main ()
28210{
28211
28212                          #if !defined __GNUC__ || defined __clang__
28213                          #error not gcc
28214                          #endif
28215
28216  ;
28217  return 0;
28218}
28219_ACEOF
28220if ac_fn_c_try_compile "$LINENO"; then :
28221  gdb_cv_compiler_type=gcc
28222fi
28223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28224  fi
28225
28226  if test "$gdb_cv_compiler_type" = unknown; then
28227     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28228/* end confdefs.h.  */
28229
28230int
28231main ()
28232{
28233
28234                          #ifndef __clang__
28235                          #error not clang
28236                          #endif
28237
28238  ;
28239  return 0;
28240}
28241_ACEOF
28242if ac_fn_c_try_compile "$LINENO"; then :
28243  gdb_cv_compiler_type=clang
28244fi
28245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28246  fi
28247
28248fi
28249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
28250$as_echo "$gdb_cv_compiler_type" >&6; }
28251
28252 GDB_COMPILER_TYPE="$gdb_cv_compiler_type"
28253
28254
28255# Check whether --enable-werror was given.
28256if test "${enable_werror+set}" = set; then :
28257  enableval=$enable_werror; case "${enableval}" in
28258     yes | y) ERROR_ON_WARNING="yes" ;;
28259     no | n)  ERROR_ON_WARNING="no" ;;
28260     *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
28261   esac
28262fi
28263
28264
28265# Enable -Werror by default when using gcc.  Turn it off for releases.
28266if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
28267    ERROR_ON_WARNING=yes
28268fi
28269
28270WERROR_CFLAGS=""
28271if test "${ERROR_ON_WARNING}" = yes ; then
28272    WERROR_CFLAGS="-Werror"
28273fi
28274
28275# The options we'll try to enable.
28276build_warnings="-Wall -Wpointer-arith \
28277-Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
28278-Wno-switch -Wno-char-subscripts \
28279-Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
28280-Wno-sign-compare -Wno-error=maybe-uninitialized \
28281-Wno-mismatched-tags \
28282-Wno-error=deprecated-register \
28283-Wsuggest-override \
28284-Wimplicit-fallthrough=3 \
28285-Wduplicated-cond \
28286-Wshadow=local \
28287-Wdeprecated-copy \
28288-Wdeprecated-copy-dtor \
28289-Wredundant-move \
28290-Wmissing-declarations \
28291-Wstrict-null-sentinel \
28292"
28293
28294# The -Wmissing-prototypes flag will be accepted by GCC, but results
28295# in a warning being printed about the flag not being valid for C++,
28296# this is something to do with using ccache, and argument ordering.
28297if test "$GDB_COMPILER_TYPE" != gcc; then
28298  build_warnings="$build_warnings -Wmissing-prototypes"
28299fi
28300
28301case "${host}" in
28302  *-*-mingw32*)
28303    # Enable -Wno-format by default when using gcc on mingw since many
28304    # GCC versions complain about %I64.
28305    build_warnings="$build_warnings -Wno-format" ;;
28306  *-*-solaris*)
28307    # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
28308    # doesn't understand.
28309    build_warnings="$build_warnings -Wno-unknown-pragmas"
28310    # Solaris 11 <unistd.h> marks vfork deprecated.
28311    build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
28312  *)
28313    # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
28314    # but there's a special case for this below.
28315    build_warnings="$build_warnings -Wformat-nonliteral" ;;
28316esac
28317
28318# Check whether --enable-build-warnings was given.
28319if test "${enable_build_warnings+set}" = set; then :
28320  enableval=$enable_build_warnings; case "${enableval}" in
28321  yes)	;;
28322  no)	build_warnings="-w";;
28323  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
28324        build_warnings="${build_warnings} ${t}";;
28325  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
28326        build_warnings="${t} ${build_warnings}";;
28327  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
28328esac
28329if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
28330  echo "Setting compiler warning flags = $build_warnings" 6>&1
28331fi
28332fi
28333# Check whether --enable-gdb-build-warnings was given.
28334if test "${enable_gdb_build_warnings+set}" = set; then :
28335  enableval=$enable_gdb_build_warnings; case "${enableval}" in
28336  yes)	;;
28337  no)	build_warnings="-w";;
28338  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
28339        build_warnings="${build_warnings} ${t}";;
28340  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
28341        build_warnings="${t} ${build_warnings}";;
28342  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
28343esac
28344if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
28345  echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
28346fi
28347fi
28348
28349# The set of warnings supported by a C++ compiler is not the same as
28350# of the C compiler.
28351ac_ext=cpp
28352ac_cpp='$CXXCPP $CPPFLAGS'
28353ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28354ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28355ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28356
28357
28358WARN_CFLAGS=""
28359if test "x${build_warnings}" != x -a "x$GCC" = xyes
28360then
28361    { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
28362$as_echo_n "checking compiler warning flags... " >&6; }
28363    # Separate out the -Werror flag as some files just cannot be
28364    # compiled with it enabled.
28365    for w in ${build_warnings}; do
28366	# GCC does not complain about -Wno-unknown-warning.  Invert
28367	# and test -Wunknown-warning instead.
28368	case $w in
28369	-Wno-*)
28370		wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
28371        -Wformat-nonliteral)
28372		# gcc requires -Wformat before -Wformat-nonliteral
28373		# will work, so stick them together.
28374		w="-Wformat $w"
28375		wtest="$w"
28376		;;
28377	*)
28378		wtest=$w ;;
28379	esac
28380
28381	case $w in
28382	-Werr*) WERROR_CFLAGS=-Werror ;;
28383	*)
28384	    # Check whether GCC accepts it.
28385	    saved_CFLAGS="$CFLAGS"
28386	    CFLAGS="$CFLAGS -Werror $wtest"
28387	    saved_CXXFLAGS="$CXXFLAGS"
28388	    CXXFLAGS="$CXXFLAGS -Werror $wtest"
28389	    if test "x$w" = "x-Wunused-variable"; then
28390	      # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
28391	      # fixed in GCC 4.9.  This test is derived from the gdb
28392	      # source code that triggered this bug in GCC.
28393	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28394/* end confdefs.h.  */
28395struct scoped_restore_base {};
28396		    struct scoped_restore_tmpl : public scoped_restore_base {
28397		      ~scoped_restore_tmpl() {}
28398		    };
28399int
28400main ()
28401{
28402const scoped_restore_base &b = scoped_restore_tmpl();
28403
28404  ;
28405  return 0;
28406}
28407_ACEOF
28408if ac_fn_cxx_try_compile "$LINENO"; then :
28409  WARN_CFLAGS="${WARN_CFLAGS} $w"
28410fi
28411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28412	    else
28413	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28414/* end confdefs.h.  */
28415
28416int
28417main ()
28418{
28419
28420  ;
28421  return 0;
28422}
28423_ACEOF
28424if ac_fn_cxx_try_compile "$LINENO"; then :
28425  WARN_CFLAGS="${WARN_CFLAGS} $w"
28426fi
28427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28428	    fi
28429	    CFLAGS="$saved_CFLAGS"
28430	    CXXFLAGS="$saved_CXXFLAGS"
28431	esac
28432    done
28433    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
28434$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
28435fi
28436
28437
28438
28439ac_ext=c
28440ac_cpp='$CPP $CPPFLAGS'
28441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28443ac_compiler_gnu=$ac_cv_c_compiler_gnu
28444
28445
28446
28447# Check whether --enable-ubsan was given.
28448if test "${enable_ubsan+set}" = set; then :
28449  enableval=$enable_ubsan;
28450else
28451  enable_ubsan=no
28452fi
28453
28454if test "x$enable_ubsan" = xauto; then
28455  if $development; then
28456    enable_ubsan=yes
28457  fi
28458fi
28459ac_ext=cpp
28460ac_cpp='$CXXCPP $CPPFLAGS'
28461ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28462ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28463ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28464
28465if test "x$enable_ubsan" = xyes; then
28466  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsanitize=undefined is accepted" >&5
28467$as_echo_n "checking whether -fsanitize=undefined is accepted... " >&6; }
28468  saved_CXXFLAGS="$CXXFLAGS"
28469  CXXFLAGS="$CXXFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
28470        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28471/* end confdefs.h.  */
28472
28473int
28474main ()
28475{
28476
28477  ;
28478  return 0;
28479}
28480_ACEOF
28481if ac_fn_cxx_try_link "$LINENO"; then :
28482  enable_ubsan=yes
28483else
28484  enable_ubsan=no
28485
28486fi
28487rm -f core conftest.err conftest.$ac_objext \
28488    conftest$ac_exeext conftest.$ac_ext
28489  CXXFLAGS="$saved_CXXFLAGS"
28490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ubsan" >&5
28491$as_echo "$enable_ubsan" >&6; }
28492  if test "x$enable_ubsan" = xyes; then
28493    WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
28494    CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined"
28495  fi
28496fi
28497ac_ext=c
28498ac_cpp='$CPP $CPPFLAGS'
28499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28501ac_compiler_gnu=$ac_cv_c_compiler_gnu
28502
28503
28504
28505# In the Cygwin environment, we need some additional flags.
28506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
28507$as_echo_n "checking for cygwin... " >&6; }
28508if ${gdb_cv_os_cygwin+:} false; then :
28509  $as_echo_n "(cached) " >&6
28510else
28511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28512/* end confdefs.h.  */
28513
28514#if defined (__CYGWIN__) || defined (__CYGWIN32__)
28515lose
28516#endif
28517_ACEOF
28518if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28519  $EGREP "^lose$" >/dev/null 2>&1; then :
28520  gdb_cv_os_cygwin=yes
28521else
28522  gdb_cv_os_cygwin=no
28523fi
28524rm -f conftest*
28525
28526fi
28527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
28528$as_echo "$gdb_cv_os_cygwin" >&6; }
28529
28530
28531SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
28532case ${host} in
28533  *go32* ) SER_HARDWIRE=ser-go32.o ;;
28534  *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
28535  *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
28536  *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o" ;;
28537esac
28538
28539
28540# libreadline needs libuser32.a in a cygwin environment
28541WIN32LIBS=
28542if test x"$gdb_cv_os_cygwin" = xyes; then
28543    WIN32LIBS="-luser32"
28544    case "${target}" in
28545	*cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
28546	;;
28547    esac
28548fi
28549
28550# The ser-tcp.c module requires sockets.
28551# Note that WIN32APILIBS is set by GDB_AC_COMMON.
28552WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
28553
28554# Add ELF support to GDB, but only if BFD includes ELF support.
28555
28556  OLD_CFLAGS=$CFLAGS
28557  OLD_LDFLAGS=$LDFLAGS
28558  OLD_LIBS=$LIBS
28559  OLD_CC=$CC
28560  # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
28561  # points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
28562  # always want our bfd.
28563  CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
28564  LDFLAGS="-L../bfd -L../libiberty"
28565  intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
28566  LIBS="-lbfd -liberty $intl $LIBS"
28567  CC="./libtool --quiet --mode=link $CC"
28568  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
28569$as_echo_n "checking for ELF support in BFD... " >&6; }
28570if ${gdb_cv_var_elf+:} false; then :
28571  $as_echo_n "(cached) " >&6
28572else
28573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28574/* end confdefs.h.  */
28575#include <stdlib.h>
28576	   #include <string.h>
28577	   #include "bfd.h"
28578	   #include "elf-bfd.h"
28579int
28580main ()
28581{
28582return bfd_get_elf_phdr_upper_bound (NULL);
28583
28584  ;
28585  return 0;
28586}
28587_ACEOF
28588if ac_fn_c_try_link "$LINENO"; then :
28589  gdb_cv_var_elf=yes
28590else
28591  gdb_cv_var_elf=no
28592
28593fi
28594rm -f core conftest.err conftest.$ac_objext \
28595    conftest$ac_exeext conftest.$ac_ext
28596
28597fi
28598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
28599$as_echo "$gdb_cv_var_elf" >&6; }
28600  CC=$OLD_CC
28601  CFLAGS=$OLD_CFLAGS
28602  LDFLAGS=$OLD_LDFLAGS
28603  LIBS=$OLD_LIBS
28604if test "$gdb_cv_var_elf" = yes; then
28605  CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o \
28606		gcore-elf.o elf-none-tdep.o"
28607
28608$as_echo "#define HAVE_ELF 1" >>confdefs.h
28609
28610  # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
28611  if test "$plugins" = "yes"; then
28612    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28613$as_echo_n "checking for library containing dlopen... " >&6; }
28614if ${ac_cv_search_dlopen+:} false; then :
28615  $as_echo_n "(cached) " >&6
28616else
28617  ac_func_search_save_LIBS=$LIBS
28618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28619/* end confdefs.h.  */
28620
28621/* Override any GCC internal prototype to avoid an error.
28622   Use char because int might match the return type of a GCC
28623   builtin and then its argument prototype would still apply.  */
28624#ifdef __cplusplus
28625extern "C"
28626#endif
28627char dlopen ();
28628int
28629main ()
28630{
28631return dlopen ();
28632  ;
28633  return 0;
28634}
28635_ACEOF
28636for ac_lib in '' dl; do
28637  if test -z "$ac_lib"; then
28638    ac_res="none required"
28639  else
28640    ac_res=-l$ac_lib
28641    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28642  fi
28643  if ac_fn_c_try_link "$LINENO"; then :
28644  ac_cv_search_dlopen=$ac_res
28645fi
28646rm -f core conftest.err conftest.$ac_objext \
28647    conftest$ac_exeext
28648  if ${ac_cv_search_dlopen+:} false; then :
28649  break
28650fi
28651done
28652if ${ac_cv_search_dlopen+:} false; then :
28653
28654else
28655  ac_cv_search_dlopen=no
28656fi
28657rm conftest.$ac_ext
28658LIBS=$ac_func_search_save_LIBS
28659fi
28660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28661$as_echo "$ac_cv_search_dlopen" >&6; }
28662ac_res=$ac_cv_search_dlopen
28663if test "$ac_res" != no; then :
28664  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28665
28666fi
28667
28668  fi
28669fi
28670
28671# Add macho support to GDB, but only if BFD includes it.
28672
28673  OLD_CFLAGS=$CFLAGS
28674  OLD_LDFLAGS=$LDFLAGS
28675  OLD_LIBS=$LIBS
28676  OLD_CC=$CC
28677  # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
28678  # points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
28679  # always want our bfd.
28680  CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
28681  LDFLAGS="-L../bfd -L../libiberty"
28682  intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
28683  LIBS="-lbfd -liberty $intl $LIBS"
28684  CC="./libtool --quiet --mode=link $CC"
28685  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
28686$as_echo_n "checking for Mach-O support in BFD... " >&6; }
28687if ${gdb_cv_var_macho+:} false; then :
28688  $as_echo_n "(cached) " >&6
28689else
28690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28691/* end confdefs.h.  */
28692#include <stdlib.h>
28693	   #include <string.h>
28694	   #include "bfd.h"
28695	   #include "mach-o.h"
28696int
28697main ()
28698{
28699return bfd_mach_o_lookup_command (NULL, 0, NULL);
28700
28701  ;
28702  return 0;
28703}
28704_ACEOF
28705if ac_fn_c_try_link "$LINENO"; then :
28706  gdb_cv_var_macho=yes
28707else
28708  gdb_cv_var_macho=no
28709
28710fi
28711rm -f core conftest.err conftest.$ac_objext \
28712    conftest$ac_exeext conftest.$ac_ext
28713
28714fi
28715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
28716$as_echo "$gdb_cv_var_macho" >&6; }
28717  CC=$OLD_CC
28718  CFLAGS=$OLD_CFLAGS
28719  LDFLAGS=$OLD_LDFLAGS
28720  LIBS=$OLD_LIBS
28721if test "$gdb_cv_var_macho" = yes; then
28722  CONFIG_OBS="$CONFIG_OBS machoread.o"
28723fi
28724
28725# Add any host-specific objects to GDB.
28726CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
28727
28728# If building on ELF, look for lzma support for embedded compressed debug info.
28729if test "$gdb_cv_var_elf" = yes; then
28730
28731# Check whether --with-lzma was given.
28732if test "${with_lzma+set}" = set; then :
28733  withval=$with_lzma;
28734else
28735  with_lzma=auto
28736fi
28737
28738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
28739$as_echo_n "checking whether to use lzma... " >&6; }
28740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
28741$as_echo "$with_lzma" >&6; }
28742
28743  if test "${with_lzma}" != no; then
28744
28745
28746
28747
28748
28749
28750
28751
28752    use_additional=yes
28753
28754  acl_save_prefix="$prefix"
28755  prefix="$acl_final_prefix"
28756  acl_save_exec_prefix="$exec_prefix"
28757  exec_prefix="$acl_final_exec_prefix"
28758
28759    eval additional_includedir=\"$includedir\"
28760    eval additional_libdir=\"$libdir\"
28761
28762  exec_prefix="$acl_save_exec_prefix"
28763  prefix="$acl_save_prefix"
28764
28765
28766# Check whether --with-liblzma-prefix was given.
28767if test "${with_liblzma_prefix+set}" = set; then :
28768  withval=$with_liblzma_prefix;
28769    if test "X$withval" = "Xno"; then
28770      use_additional=no
28771    else
28772      if test "X$withval" = "X"; then
28773
28774  acl_save_prefix="$prefix"
28775  prefix="$acl_final_prefix"
28776  acl_save_exec_prefix="$exec_prefix"
28777  exec_prefix="$acl_final_exec_prefix"
28778
28779          eval additional_includedir=\"$includedir\"
28780          eval additional_libdir=\"$libdir\"
28781
28782  exec_prefix="$acl_save_exec_prefix"
28783  prefix="$acl_save_prefix"
28784
28785      else
28786        additional_includedir="$withval/include"
28787        additional_libdir="$withval/lib"
28788      fi
28789    fi
28790
28791fi
28792
28793
28794# Check whether --with-liblzma-type was given.
28795if test "${with_liblzma_type+set}" = set; then :
28796  withval=$with_liblzma_type;  with_liblzma_type=$withval
28797else
28798   with_liblzma_type=auto
28799fi
28800
28801  lib_type=`eval echo \$with_liblzma_type`
28802
28803      LIBLZMA=
28804  LTLIBLZMA=
28805  INCLZMA=
28806  rpathdirs=
28807  ltrpathdirs=
28808  names_already_handled=
28809  names_next_round='lzma '
28810  while test -n "$names_next_round"; do
28811    names_this_round="$names_next_round"
28812    names_next_round=
28813    for name in $names_this_round; do
28814      already_handled=
28815      for n in $names_already_handled; do
28816        if test "$n" = "$name"; then
28817          already_handled=yes
28818          break
28819        fi
28820      done
28821      if test -z "$already_handled"; then
28822        names_already_handled="$names_already_handled $name"
28823                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
28824        eval value=\"\$HAVE_LIB$uppername\"
28825        if test -n "$value"; then
28826          if test "$value" = yes; then
28827            eval value=\"\$LIB$uppername\"
28828            test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
28829            eval value=\"\$LTLIB$uppername\"
28830            test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
28831          else
28832                                    :
28833          fi
28834        else
28835                              found_dir=
28836          found_la=
28837          found_so=
28838          found_a=
28839          if test $use_additional = yes; then
28840            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
28841              found_dir="$additional_libdir"
28842              found_so="$additional_libdir/lib$name.$shlibext"
28843              if test -f "$additional_libdir/lib$name.la"; then
28844                found_la="$additional_libdir/lib$name.la"
28845              fi
28846            elif test x$lib_type != xshared; then
28847              if test -f "$additional_libdir/lib$name.$libext"; then
28848                found_dir="$additional_libdir"
28849                found_a="$additional_libdir/lib$name.$libext"
28850                if test -f "$additional_libdir/lib$name.la"; then
28851                  found_la="$additional_libdir/lib$name.la"
28852                fi
28853              fi
28854            fi
28855          fi
28856          if test "X$found_dir" = "X"; then
28857            for x in $LDFLAGS $LTLIBLZMA; do
28858
28859  acl_save_prefix="$prefix"
28860  prefix="$acl_final_prefix"
28861  acl_save_exec_prefix="$exec_prefix"
28862  exec_prefix="$acl_final_exec_prefix"
28863  eval x=\"$x\"
28864  exec_prefix="$acl_save_exec_prefix"
28865  prefix="$acl_save_prefix"
28866
28867              case "$x" in
28868                -L*)
28869                  dir=`echo "X$x" | sed -e 's/^X-L//'`
28870                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
28871                    found_dir="$dir"
28872                    found_so="$dir/lib$name.$shlibext"
28873                    if test -f "$dir/lib$name.la"; then
28874                      found_la="$dir/lib$name.la"
28875                    fi
28876                  elif test x$lib_type != xshared; then
28877                    if test -f "$dir/lib$name.$libext"; then
28878                      found_dir="$dir"
28879                      found_a="$dir/lib$name.$libext"
28880                      if test -f "$dir/lib$name.la"; then
28881                        found_la="$dir/lib$name.la"
28882                      fi
28883                    fi
28884                  fi
28885                  ;;
28886              esac
28887              if test "X$found_dir" != "X"; then
28888                break
28889              fi
28890            done
28891          fi
28892          if test "X$found_dir" != "X"; then
28893                        LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
28894            if test "X$found_so" != "X"; then
28895                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
28896                                LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
28897              else
28898                                                                                haveit=
28899                for x in $ltrpathdirs; do
28900                  if test "X$x" = "X$found_dir"; then
28901                    haveit=yes
28902                    break
28903                  fi
28904                done
28905                if test -z "$haveit"; then
28906                  ltrpathdirs="$ltrpathdirs $found_dir"
28907                fi
28908                                if test "$hardcode_direct" = yes; then
28909                                                      LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
28910                else
28911                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
28912                                                            LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
28913                                                            haveit=
28914                    for x in $rpathdirs; do
28915                      if test "X$x" = "X$found_dir"; then
28916                        haveit=yes
28917                        break
28918                      fi
28919                    done
28920                    if test -z "$haveit"; then
28921                      rpathdirs="$rpathdirs $found_dir"
28922                    fi
28923                  else
28924                                                                                haveit=
28925                    for x in $LDFLAGS $LIBLZMA; do
28926
28927  acl_save_prefix="$prefix"
28928  prefix="$acl_final_prefix"
28929  acl_save_exec_prefix="$exec_prefix"
28930  exec_prefix="$acl_final_exec_prefix"
28931  eval x=\"$x\"
28932  exec_prefix="$acl_save_exec_prefix"
28933  prefix="$acl_save_prefix"
28934
28935                      if test "X$x" = "X-L$found_dir"; then
28936                        haveit=yes
28937                        break
28938                      fi
28939                    done
28940                    if test -z "$haveit"; then
28941                      LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
28942                    fi
28943                    if test "$hardcode_minus_L" != no; then
28944                                                                                        LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
28945                    else
28946                                                                                                                                                                                LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
28947                    fi
28948                  fi
28949                fi
28950              fi
28951            else
28952              if test "X$found_a" != "X"; then
28953                                LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
28954              else
28955                                                LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
28956              fi
28957            fi
28958                        additional_includedir=
28959            case "$found_dir" in
28960              */lib | */lib/)
28961                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
28962                additional_includedir="$basedir/include"
28963                ;;
28964            esac
28965            if test "X$additional_includedir" != "X"; then
28966                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
28967                haveit=
28968                if test "X$additional_includedir" = "X/usr/local/include"; then
28969                  if test -n "$GCC"; then
28970                    case $host_os in
28971                      linux*) haveit=yes;;
28972                    esac
28973                  fi
28974                fi
28975                if test -z "$haveit"; then
28976                  for x in $CPPFLAGS $INCLZMA; do
28977
28978  acl_save_prefix="$prefix"
28979  prefix="$acl_final_prefix"
28980  acl_save_exec_prefix="$exec_prefix"
28981  exec_prefix="$acl_final_exec_prefix"
28982  eval x=\"$x\"
28983  exec_prefix="$acl_save_exec_prefix"
28984  prefix="$acl_save_prefix"
28985
28986                    if test "X$x" = "X-I$additional_includedir"; then
28987                      haveit=yes
28988                      break
28989                    fi
28990                  done
28991                  if test -z "$haveit"; then
28992                    if test -d "$additional_includedir"; then
28993                                            INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
28994                    fi
28995                  fi
28996                fi
28997              fi
28998            fi
28999                        if test -n "$found_la"; then
29000                                                        save_libdir="$libdir"
29001              case "$found_la" in
29002                */* | *\\*) . "$found_la" ;;
29003                *) . "./$found_la" ;;
29004              esac
29005              libdir="$save_libdir"
29006                            for dep in $dependency_libs; do
29007                case "$dep" in
29008                  -L*)
29009                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
29010                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
29011                      haveit=
29012                      if test "X$additional_libdir" = "X/usr/local/lib"; then
29013                        if test -n "$GCC"; then
29014                          case $host_os in
29015                            linux*) haveit=yes;;
29016                          esac
29017                        fi
29018                      fi
29019                      if test -z "$haveit"; then
29020                        haveit=
29021                        for x in $LDFLAGS $LIBLZMA; do
29022
29023  acl_save_prefix="$prefix"
29024  prefix="$acl_final_prefix"
29025  acl_save_exec_prefix="$exec_prefix"
29026  exec_prefix="$acl_final_exec_prefix"
29027  eval x=\"$x\"
29028  exec_prefix="$acl_save_exec_prefix"
29029  prefix="$acl_save_prefix"
29030
29031                          if test "X$x" = "X-L$additional_libdir"; then
29032                            haveit=yes
29033                            break
29034                          fi
29035                        done
29036                        if test -z "$haveit"; then
29037                          if test -d "$additional_libdir"; then
29038                                                        LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
29039                          fi
29040                        fi
29041                        haveit=
29042                        for x in $LDFLAGS $LTLIBLZMA; do
29043
29044  acl_save_prefix="$prefix"
29045  prefix="$acl_final_prefix"
29046  acl_save_exec_prefix="$exec_prefix"
29047  exec_prefix="$acl_final_exec_prefix"
29048  eval x=\"$x\"
29049  exec_prefix="$acl_save_exec_prefix"
29050  prefix="$acl_save_prefix"
29051
29052                          if test "X$x" = "X-L$additional_libdir"; then
29053                            haveit=yes
29054                            break
29055                          fi
29056                        done
29057                        if test -z "$haveit"; then
29058                          if test -d "$additional_libdir"; then
29059                                                        LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
29060                          fi
29061                        fi
29062                      fi
29063                    fi
29064                    ;;
29065                  -R*)
29066                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
29067                    if test "$enable_rpath" != no; then
29068                                                                  haveit=
29069                      for x in $rpathdirs; do
29070                        if test "X$x" = "X$dir"; then
29071                          haveit=yes
29072                          break
29073                        fi
29074                      done
29075                      if test -z "$haveit"; then
29076                        rpathdirs="$rpathdirs $dir"
29077                      fi
29078                                                                  haveit=
29079                      for x in $ltrpathdirs; do
29080                        if test "X$x" = "X$dir"; then
29081                          haveit=yes
29082                          break
29083                        fi
29084                      done
29085                      if test -z "$haveit"; then
29086                        ltrpathdirs="$ltrpathdirs $dir"
29087                      fi
29088                    fi
29089                    ;;
29090                  -l*)
29091                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
29092                    ;;
29093                  *.la)
29094                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
29095                    ;;
29096                  *)
29097                                        LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
29098                    LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
29099                    ;;
29100                esac
29101              done
29102            fi
29103          else
29104                                                            if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
29105              LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
29106              LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
29107            else
29108              LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
29109              LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
29110            fi
29111          fi
29112        fi
29113      fi
29114    done
29115  done
29116  if test "X$rpathdirs" != "X"; then
29117    if test -n "$hardcode_libdir_separator"; then
29118                        alldirs=
29119      for found_dir in $rpathdirs; do
29120        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
29121      done
29122            acl_save_libdir="$libdir"
29123      libdir="$alldirs"
29124      eval flag=\"$hardcode_libdir_flag_spec\"
29125      libdir="$acl_save_libdir"
29126      LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
29127    else
29128            for found_dir in $rpathdirs; do
29129        acl_save_libdir="$libdir"
29130        libdir="$found_dir"
29131        eval flag=\"$hardcode_libdir_flag_spec\"
29132        libdir="$acl_save_libdir"
29133        LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
29134      done
29135    fi
29136  fi
29137  if test "X$ltrpathdirs" != "X"; then
29138            for found_dir in $ltrpathdirs; do
29139      LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
29140    done
29141  fi
29142
29143
29144        ac_save_CPPFLAGS="$CPPFLAGS"
29145
29146  for element in $INCLZMA; do
29147    haveit=
29148    for x in $CPPFLAGS; do
29149
29150  acl_save_prefix="$prefix"
29151  prefix="$acl_final_prefix"
29152  acl_save_exec_prefix="$exec_prefix"
29153  exec_prefix="$acl_final_exec_prefix"
29154  eval x=\"$x\"
29155  exec_prefix="$acl_save_exec_prefix"
29156  prefix="$acl_save_prefix"
29157
29158      if test "X$x" = "X$element"; then
29159        haveit=yes
29160        break
29161      fi
29162    done
29163    if test -z "$haveit"; then
29164      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
29165    fi
29166  done
29167
29168
29169  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
29170$as_echo_n "checking for liblzma... " >&6; }
29171if ${ac_cv_liblzma+:} false; then :
29172  $as_echo_n "(cached) " >&6
29173else
29174
29175    ac_save_LIBS="$LIBS"
29176    LIBS="$LIBS $LIBLZMA"
29177    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29178/* end confdefs.h.  */
29179#include "lzma.h"
29180int
29181main ()
29182{
29183lzma_index_iter iter;
29184			   lzma_index_iter_init (&iter, 0);
29185			   lzma_mf_is_supported (LZMA_MF_HC3);
29186  ;
29187  return 0;
29188}
29189_ACEOF
29190if ac_fn_c_try_link "$LINENO"; then :
29191  ac_cv_liblzma=yes
29192else
29193  ac_cv_liblzma=no
29194fi
29195rm -f core conftest.err conftest.$ac_objext \
29196    conftest$ac_exeext conftest.$ac_ext
29197    LIBS="$ac_save_LIBS"
29198
29199fi
29200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
29201$as_echo "$ac_cv_liblzma" >&6; }
29202  if test "$ac_cv_liblzma" = yes; then
29203    HAVE_LIBLZMA=yes
29204
29205$as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
29206
29207    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
29208$as_echo_n "checking how to link with liblzma... " >&6; }
29209    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
29210$as_echo "$LIBLZMA" >&6; }
29211  else
29212    HAVE_LIBLZMA=no
29213            CPPFLAGS="$ac_save_CPPFLAGS"
29214    LIBLZMA=
29215    LTLIBLZMA=
29216  fi
29217
29218
29219
29220
29221
29222
29223    if test "$HAVE_LIBLZMA" != yes; then
29224      if test "$with_lzma" = yes; then
29225        as_fn_error $? "missing liblzma for --with-lzma" "$LINENO" 5
29226      fi
29227    fi
29228  fi
29229fi
29230
29231LIBGUI="../libgui/src/libgui.a"
29232GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
29233
29234
29235
29236WIN32LDAPP=
29237
29238
29239
29240case "${host}" in
29241*-*-cygwin* | *-*-mingw* )
29242    configdir="win"
29243    ;;
29244*)
29245    configdir="unix"
29246    ;;
29247esac
29248
29249GDBTKLIBS=
29250if test "${enable_gdbtk}" = "yes"; then
29251
29252    # Gdbtk must have an absolute path to srcdir in order to run
29253    # properly when not installed.
29254    here=`pwd`
29255    cd ${srcdir}
29256    GDBTK_SRC_DIR=`pwd`
29257    cd $here
29258
29259
29260    #
29261    # Ok, lets find the tcl configuration
29262    # First, look for one uninstalled.
29263    # the alternative search directory is invoked by --with-tcl
29264    #
29265
29266    if test x"${no_tcl}" = x ; then
29267	# we reset no_tcl in case something fails here
29268	no_tcl=true
29269
29270# Check whether --with-tcl was given.
29271if test "${with_tcl+set}" = set; then :
29272  withval=$with_tcl; with_tclconfig=${withval}
29273fi
29274
29275	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
29276$as_echo_n "checking for Tcl configuration... " >&6; }
29277	if ${ac_cv_c_tclconfig+:} false; then :
29278  $as_echo_n "(cached) " >&6
29279else
29280
29281
29282	    # First check to see if --with-tcl was specified.
29283	    case "${host}" in
29284		*-*-cygwin*) platDir="win" ;;
29285		*) platDir="unix" ;;
29286	    esac
29287	    if test x"${with_tclconfig}" != x ; then
29288		if test -f "${with_tclconfig}/tclConfig.sh" ; then
29289		    ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
29290		else
29291		    as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
29292		fi
29293	    fi
29294
29295	    # then check for a private Tcl installation
29296	    if test x"${ac_cv_c_tclconfig}" = x ; then
29297		for i in \
29298			../tcl \
29299			`ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
29300			`ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
29301			`ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
29302			../../tcl \
29303			`ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
29304			`ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
29305			`ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
29306			../../../tcl \
29307			`ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
29308			`ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
29309			`ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
29310		    if test -f "$i/$platDir/tclConfig.sh" ; then
29311			ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
29312			break
29313		    fi
29314		done
29315	    fi
29316
29317	    # on Darwin, check in Framework installation locations
29318	    if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
29319		for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
29320			`ls -d /Library/Frameworks 2>/dev/null` \
29321			`ls -d /Network/Library/Frameworks 2>/dev/null` \
29322			`ls -d /System/Library/Frameworks 2>/dev/null` \
29323			; do
29324		    if test -f "$i/Tcl.framework/tclConfig.sh" ; then
29325			ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
29326			break
29327		    fi
29328		done
29329	    fi
29330
29331	    # check in a few common install locations
29332	    if test x"${ac_cv_c_tclconfig}" = x ; then
29333		for i in `ls -d ${libdir} 2>/dev/null` \
29334			`ls -d ${exec_prefix}/lib 2>/dev/null` \
29335			`ls -d ${prefix}/lib 2>/dev/null` \
29336			`ls -d /usr/local/lib 2>/dev/null` \
29337			`ls -d /usr/contrib/lib 2>/dev/null` \
29338			`ls -d /usr/lib 2>/dev/null` \
29339			; do
29340		    if test -f "$i/tclConfig.sh" ; then
29341			ac_cv_c_tclconfig=`(cd $i; pwd)`
29342			break
29343		    fi
29344		done
29345	    fi
29346
29347	    # check in a few other private locations
29348	    if test x"${ac_cv_c_tclconfig}" = x ; then
29349		for i in \
29350			${srcdir}/../tcl \
29351			`ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
29352			`ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
29353			`ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
29354		    if test -f "$i/$platDir/tclConfig.sh" ; then
29355		    ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
29356		    break
29357		fi
29358		done
29359	    fi
29360
29361fi
29362
29363
29364	if test x"${ac_cv_c_tclconfig}" = x ; then
29365	    TCL_BIN_DIR="# no Tcl configs found"
29366	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
29367$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
29368	else
29369	    no_tcl=
29370	    TCL_BIN_DIR=${ac_cv_c_tclconfig}
29371	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
29372$as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
29373	fi
29374    fi
29375
29376
29377    # If $no_tk is nonempty, then we can't do Tk, and there is no
29378    # point to doing Tcl.
29379
29380    #
29381    # Ok, lets find the tk configuration
29382    # First, look for one uninstalled.
29383    # the alternative search directory is invoked by --with-tk
29384    #
29385
29386    if test x"${no_tk}" = x ; then
29387	# we reset no_tk in case something fails here
29388	no_tk=true
29389
29390# Check whether --with-tk was given.
29391if test "${with_tk+set}" = set; then :
29392  withval=$with_tk; with_tkconfig=${withval}
29393fi
29394
29395	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
29396$as_echo_n "checking for Tk configuration... " >&6; }
29397	if ${ac_cv_c_tkconfig+:} false; then :
29398  $as_echo_n "(cached) " >&6
29399else
29400
29401
29402	    # First check to see if --with-tkconfig was specified.
29403	    if test x"${with_tkconfig}" != x ; then
29404		if test -f "${with_tkconfig}/tkConfig.sh" ; then
29405		    ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
29406		else
29407		    as_fn_error $? "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
29408		fi
29409	    fi
29410
29411	    # then check for a private Tk library
29412	    case "${host}" in
29413		*-*-cygwin*) platDir="win" ;;
29414		*) platDir="unix" ;;
29415	    esac
29416	    if test x"${ac_cv_c_tkconfig}" = x ; then
29417		for i in \
29418			../tk \
29419			`ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
29420			`ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
29421			`ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
29422			../../tk \
29423			`ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
29424			`ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
29425			`ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
29426			../../../tk \
29427			`ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
29428			`ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
29429			`ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
29430		    if test -f "$i/$platDir/tkConfig.sh" ; then
29431			ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
29432			break
29433		    fi
29434		done
29435	    fi
29436
29437	    # on Darwin, check in Framework installation locations
29438	    if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
29439		for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
29440			`ls -d /Library/Frameworks 2>/dev/null` \
29441			`ls -d /Network/Library/Frameworks 2>/dev/null` \
29442			`ls -d /System/Library/Frameworks 2>/dev/null` \
29443			; do
29444		    if test -f "$i/Tk.framework/tkConfig.sh" ; then
29445			ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
29446			break
29447		    fi
29448		done
29449	    fi
29450
29451	    # check in a few common install locations
29452	    if test x"${ac_cv_c_tkconfig}" = x ; then
29453		for i in `ls -d ${libdir} 2>/dev/null` \
29454			`ls -d ${exec_prefix}/lib 2>/dev/null` \
29455			`ls -d ${prefix}/lib 2>/dev/null` \
29456			`ls -d /usr/local/lib 2>/dev/null` \
29457			`ls -d /usr/contrib/lib 2>/dev/null` \
29458			`ls -d /usr/lib 2>/dev/null` \
29459			; do
29460		    if test -f "$i/tkConfig.sh" ; then
29461			ac_cv_c_tkconfig=`(cd $i; pwd)`
29462			break
29463		    fi
29464		done
29465	    fi
29466	    # check in a few other private locations
29467	    if test x"${ac_cv_c_tkconfig}" = x ; then
29468		for i in \
29469			${srcdir}/../tk \
29470			`ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
29471			`ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
29472			`ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
29473		    if test -f "$i/$platDir/tkConfig.sh" ; then
29474			ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
29475			break
29476		    fi
29477		done
29478	    fi
29479
29480fi
29481
29482
29483	if test x"${ac_cv_c_tkconfig}" = x ; then
29484	    TK_BIN_DIR="# no Tk configs found"
29485	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
29486$as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
29487	else
29488	    no_tk=
29489	    TK_BIN_DIR=${ac_cv_c_tkconfig}
29490	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
29491$as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
29492	fi
29493    fi
29494
29495
29496    if test -z "${no_tcl}" -a -z "${no_tk}"; then
29497
29498    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
29499$as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
29500
29501    if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
29502        { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
29503$as_echo "loading" >&6; }
29504	. ${TCL_BIN_DIR}/tclConfig.sh
29505    else
29506        { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
29507$as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
29508    fi
29509
29510    # eval is required to do the TCL_DBGX substitution
29511    eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
29512    eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
29513
29514    # If the TCL_BIN_DIR is the build directory (not the install directory),
29515    # then set the common variable name to the value of the build variables.
29516    # For example, the variable TCL_LIB_SPEC will be set to the value
29517    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
29518    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
29519    # installed and uninstalled version of Tcl.
29520    if test -f "${TCL_BIN_DIR}/Makefile" ; then
29521        TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
29522        TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
29523        TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
29524    elif test "`uname -s`" = "Darwin"; then
29525	# If Tcl was built as a framework, attempt to use the libraries
29526	# from the framework at the given location so that linking works
29527	# against Tcl.framework installed in an arbitrary location.
29528	case ${TCL_DEFS} in
29529	    *TCL_FRAMEWORK*)
29530		if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
29531		    for i in "`cd ${TCL_BIN_DIR}; pwd`" \
29532			     "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
29533			if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
29534			    TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
29535			    break
29536			fi
29537		    done
29538		fi
29539		if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
29540		    TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
29541		    TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
29542		fi
29543		;;
29544	esac
29545    fi
29546
29547    # eval is required to do the TCL_DBGX substitution
29548    eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
29549    eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
29550    eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
29551    eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
29552
29553
29554
29555
29556
29557
29558
29559
29560
29561
29562
29563
29564
29565
29566
29567        # Check for in-tree tcl
29568        here=`pwd`
29569        cd ${srcdir}/..
29570        topdir=`pwd`
29571        cd ${here}
29572
29573        intree="no"
29574        if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
29575          intree="yes"
29576        fi
29577
29578        # Find Tcl private headers
29579        if test x"${intree}" = xno; then
29580
29581  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
29582$as_echo_n "checking for Tcl private headers... " >&6; }
29583  private_dir=""
29584  dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
29585  if test -f ${dir}/tclInt.h ; then
29586    private_dir=${dir}
29587  fi
29588
29589  if test x"${private_dir}" = x; then
29590    as_fn_error $? "could not find private Tcl headers" "$LINENO" 5
29591  else
29592    TCL_PRIVATE_INCLUDE="-I${private_dir}"
29593    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
29594$as_echo "${private_dir}" >&6; }
29595  fi
29596
29597	  TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
29598          TCL_LIBRARY="${TCL_LIB_SPEC}"
29599          TCL_DEPS=""
29600        else
29601          # If building tcl in the same src tree, private headers
29602          # are not needed, but we need to be sure to use the right
29603          # headers library
29604	  TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
29605          TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
29606          TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
29607        fi
29608
29609
29610
29611
29612
29613    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
29614$as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
29615
29616    if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
29617        { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
29618$as_echo "loading" >&6; }
29619	. ${TK_BIN_DIR}/tkConfig.sh
29620    else
29621        { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
29622$as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
29623    fi
29624
29625    # eval is required to do the TK_DBGX substitution
29626    eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
29627    eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
29628
29629    # If the TK_BIN_DIR is the build directory (not the install directory),
29630    # then set the common variable name to the value of the build variables.
29631    # For example, the variable TK_LIB_SPEC will be set to the value
29632    # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
29633    # instead of TK_BUILD_LIB_SPEC since it will work with both an
29634    # installed and uninstalled version of Tcl.
29635    if test -f "${TK_BIN_DIR}/Makefile" ; then
29636        TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
29637        TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
29638        TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
29639    elif test "`uname -s`" = "Darwin"; then
29640	# If Tk was built as a framework, attempt to use the libraries
29641	# from the framework at the given location so that linking works
29642	# against Tk.framework installed in an arbitrary location.
29643	case ${TK_DEFS} in
29644	    *TK_FRAMEWORK*)
29645		if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
29646		    for i in "`cd ${TK_BIN_DIR}; pwd`" \
29647			     "`cd ${TK_BIN_DIR}/../..; pwd`"; do
29648			if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
29649			    TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
29650			    break
29651			fi
29652		    done
29653		fi
29654		if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
29655		    TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
29656		    TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
29657		fi
29658		;;
29659	esac
29660    fi
29661
29662    # eval is required to do the TK_DBGX substitution
29663    eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
29664    eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
29665    eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
29666    eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
29667
29668
29669
29670
29671
29672
29673
29674
29675
29676
29677
29678
29679
29680
29681        # Check for in-tree Tk
29682        intree="no"
29683        if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
29684          intree="yes"
29685        fi
29686
29687        # Find Tk private headers
29688        if test x"${intree}" = xno; then
29689
29690  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
29691$as_echo_n "checking for Tk private headers... " >&6; }
29692  private_dir=""
29693  dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
29694  if test -f ${dir}/tkInt.h; then
29695    private_dir=${dir}
29696  fi
29697
29698  if test x"${private_dir}" = x; then
29699    as_fn_error $? "could not find Tk private headers" "$LINENO" 5
29700  else
29701    TK_PRIVATE_INCLUDE="-I${private_dir}"
29702    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
29703$as_echo "${private_dir}" >&6; }
29704  fi
29705
29706	  TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
29707	  TK_LIBRARY=${TK_LIB_SPEC}
29708          TK_DEPS=""
29709        else
29710          TK_INCLUDE="-I${TK_SRC_DIR}/generic"
29711          TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
29712          TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
29713        fi
29714
29715
29716
29717
29718
29719        ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
29720
29721	# Include some libraries that Tcl and Tk want.
29722	TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
29723	# Yes, the ordering seems wrong here.  But it isn't.
29724	# TK_LIBS is the list of libraries that need to be linked
29725	# after Tcl/Tk.  Note that this isn't put into LIBS.  If it
29726	# were in LIBS then any link tests after this point would
29727	# try to include things like `$(LIBGUI)', which wouldn't work.
29728	GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
29729
29730        CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
29731        CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
29732        CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
29733	CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
29734	CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
29735	CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
29736	CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
29737
29738	if test x"$gdb_cv_os_cygwin" = xyes; then
29739	  WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
29740	  WIN32LDAPP="-Wl,--subsystem,console"
29741	  CONFIG_OBS="${CONFIG_OBS} gdbres.o"
29742	fi
29743
29744        subdirs="$subdirs gdbtk"
29745
29746    fi
29747fi
29748
29749
29750
29751
29752
29753
29754
29755
29756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
29757$as_echo_n "checking for X... " >&6; }
29758
29759
29760# Check whether --with-x was given.
29761if test "${with_x+set}" = set; then :
29762  withval=$with_x;
29763fi
29764
29765# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29766if test "x$with_x" = xno; then
29767  # The user explicitly disabled X.
29768  have_x=disabled
29769else
29770  case $x_includes,$x_libraries in #(
29771    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
29772    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
29773  $as_echo_n "(cached) " >&6
29774else
29775  # One or both of the vars are not set, and there is no cached value.
29776ac_x_includes=no ac_x_libraries=no
29777rm -f -r conftest.dir
29778if mkdir conftest.dir; then
29779  cd conftest.dir
29780  cat >Imakefile <<'_ACEOF'
29781incroot:
29782	@echo incroot='${INCROOT}'
29783usrlibdir:
29784	@echo usrlibdir='${USRLIBDIR}'
29785libdir:
29786	@echo libdir='${LIBDIR}'
29787_ACEOF
29788  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29789    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
29790    for ac_var in incroot usrlibdir libdir; do
29791      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29792    done
29793    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29794    for ac_extension in a so sl dylib la dll; do
29795      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29796	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29797	ac_im_usrlibdir=$ac_im_libdir; break
29798      fi
29799    done
29800    # Screen out bogus values from the imake configuration.  They are
29801    # bogus both because they are the default anyway, and because
29802    # using them would break gcc on systems where it needs fixed includes.
29803    case $ac_im_incroot in
29804	/usr/include) ac_x_includes= ;;
29805	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29806    esac
29807    case $ac_im_usrlibdir in
29808	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
29809	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29810    esac
29811  fi
29812  cd ..
29813  rm -f -r conftest.dir
29814fi
29815
29816# Standard set of common directories for X headers.
29817# Check X11 before X11Rn because it is often a symlink to the current release.
29818ac_x_header_dirs='
29819/usr/X11/include
29820/usr/X11R7/include
29821/usr/X11R6/include
29822/usr/X11R5/include
29823/usr/X11R4/include
29824
29825/usr/include/X11
29826/usr/include/X11R7
29827/usr/include/X11R6
29828/usr/include/X11R5
29829/usr/include/X11R4
29830
29831/usr/local/X11/include
29832/usr/local/X11R7/include
29833/usr/local/X11R6/include
29834/usr/local/X11R5/include
29835/usr/local/X11R4/include
29836
29837/usr/local/include/X11
29838/usr/local/include/X11R7
29839/usr/local/include/X11R6
29840/usr/local/include/X11R5
29841/usr/local/include/X11R4
29842
29843/usr/X386/include
29844/usr/x386/include
29845/usr/XFree86/include/X11
29846
29847/usr/include
29848/usr/local/include
29849/usr/unsupported/include
29850/usr/athena/include
29851/usr/local/x11r5/include
29852/usr/lpp/Xamples/include
29853
29854/usr/openwin/include
29855/usr/openwin/share/include'
29856
29857if test "$ac_x_includes" = no; then
29858  # Guess where to find include files, by looking for Xlib.h.
29859  # First, try using that file with no special directory specified.
29860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29861/* end confdefs.h.  */
29862#include <X11/Xlib.h>
29863_ACEOF
29864if ac_fn_c_try_cpp "$LINENO"; then :
29865  # We can compile using X headers with no special include directory.
29866ac_x_includes=
29867else
29868  for ac_dir in $ac_x_header_dirs; do
29869  if test -r "$ac_dir/X11/Xlib.h"; then
29870    ac_x_includes=$ac_dir
29871    break
29872  fi
29873done
29874fi
29875rm -f conftest.err conftest.i conftest.$ac_ext
29876fi # $ac_x_includes = no
29877
29878if test "$ac_x_libraries" = no; then
29879  # Check for the libraries.
29880  # See if we find them without any special options.
29881  # Don't add to $LIBS permanently.
29882  ac_save_LIBS=$LIBS
29883  LIBS="-lX11 $LIBS"
29884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29885/* end confdefs.h.  */
29886#include <X11/Xlib.h>
29887int
29888main ()
29889{
29890XrmInitialize ()
29891  ;
29892  return 0;
29893}
29894_ACEOF
29895if ac_fn_c_try_link "$LINENO"; then :
29896  LIBS=$ac_save_LIBS
29897# We can link X programs with no special library path.
29898ac_x_libraries=
29899else
29900  LIBS=$ac_save_LIBS
29901for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29902do
29903  # Don't even attempt the hair of trying to link an X program!
29904  for ac_extension in a so sl dylib la dll; do
29905    if test -r "$ac_dir/libX11.$ac_extension"; then
29906      ac_x_libraries=$ac_dir
29907      break 2
29908    fi
29909  done
29910done
29911fi
29912rm -f core conftest.err conftest.$ac_objext \
29913    conftest$ac_exeext conftest.$ac_ext
29914fi # $ac_x_libraries = no
29915
29916case $ac_x_includes,$ac_x_libraries in #(
29917  no,* | *,no | *\'*)
29918    # Didn't find X, or a directory has "'" in its name.
29919    ac_cv_have_x="have_x=no";; #(
29920  *)
29921    # Record where we found X for the cache.
29922    ac_cv_have_x="have_x=yes\
29923	ac_x_includes='$ac_x_includes'\
29924	ac_x_libraries='$ac_x_libraries'"
29925esac
29926fi
29927;; #(
29928    *) have_x=yes;;
29929  esac
29930  eval "$ac_cv_have_x"
29931fi # $with_x != no
29932
29933if test "$have_x" != yes; then
29934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
29935$as_echo "$have_x" >&6; }
29936  no_x=yes
29937else
29938  # If each of the values was on the command line, it overrides each guess.
29939  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29940  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29941  # Update the cache value to reflect the command line values.
29942  ac_cv_have_x="have_x=yes\
29943	ac_x_includes='$x_includes'\
29944	ac_x_libraries='$x_libraries'"
29945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
29946$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
29947fi
29948
29949
29950# Unlike the sim directory, whether a simulator is linked is controlled by
29951# presence of a gdb_sim definition in the target configure.tgt entry.
29952# This code just checks for a few cases where we'd like to ignore those
29953# definitions, even when they're present in the '.mt' file.  These cases
29954# are when --disable-sim is specified, or if the simulator directory is
29955# not part of the source tree.
29956#
29957# Check whether --enable-sim was given.
29958if test "${enable_sim+set}" = set; then :
29959  enableval=$enable_sim; echo "enable_sim = $enable_sim";
29960 echo "enableval = ${enableval}";
29961 case "${enableval}" in
29962  yes) ignore_sim=false ;;
29963  no)  ignore_sim=true ;;
29964  *)   ignore_sim=false ;;
29965 esac
29966else
29967  ignore_sim=false
29968fi
29969
29970
29971if test ! -d "${srcdir}/../sim"; then
29972  ignore_sim=true
29973fi
29974
29975SIM=
29976SIM_OBS=
29977if test "${ignore_sim}" = "false"; then
29978  if test x"${gdb_sim}" != x ; then
29979    SIM="${gdb_sim}"
29980    SIM_OBS="remote-sim.o"
29981
29982    # Some tdep code should only be compiled in when the ppc sim is
29983    # built.  PR sim/13418.
29984    case $target in
29985      powerpc*-*-*)
29986
29987$as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
29988
29989	;;
29990    esac
29991  fi
29992fi
29993
29994
29995
29996
29997
29998
29999
30000
30001
30002
30003
30004
30005
30006
30007# List of host floatformats.
30008
30009cat >>confdefs.h <<_ACEOF
30010#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
30011_ACEOF
30012
30013
30014cat >>confdefs.h <<_ACEOF
30015#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
30016_ACEOF
30017
30018
30019cat >>confdefs.h <<_ACEOF
30020#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
30021_ACEOF
30022
30023
30024# target_subdir is used by the testsuite to find the target libraries.
30025target_subdir=
30026if test "${host}" != "${target}"; then
30027    target_subdir="${target_alias}/"
30028fi
30029
30030
30031# Import nat definitions.
30032nat_makefile_frag=/dev/null
30033if test "${gdb_native}" = "yes"; then
30034  . ${srcdir}/configure.nat
30035  nativefile=$NAT_FILE
30036fi
30037
30038
30039
30040
30041
30042
30043
30044
30045
30046
30047
30048if test x"${gdb_osabi}" != x ; then
30049
30050cat >>confdefs.h <<_ACEOF
30051#define GDB_OSABI_DEFAULT $gdb_osabi
30052_ACEOF
30053
30054fi
30055
30056# Setup possible use of libbacktrace.
30057# Check whether --enable-libbacktrace was given.
30058if test "${enable_libbacktrace+set}" = set; then :
30059  enableval=$enable_libbacktrace;
30060	   case $enableval in
30061	     yes | no)
30062	       ;;
30063	     *)
30064	       as_fn_error $? "bad value $enableval for --enable-libbacktrace" "$LINENO" 5
30065	       ;;
30066	   esac
30067
30068else
30069  enable_libbacktrace=yes
30070fi
30071
30072
30073if test "${enable_libbacktrace}" = "yes"; then
30074  LIBBACKTRACE_INC="-I$srcdir/../libbacktrace/ -I../libbacktrace/"
30075  LIBBACKTRACE_LIB=../libbacktrace/libbacktrace.la
30076
30077$as_echo "#define HAVE_LIBBACKTRACE 1" >>confdefs.h
30078
30079else
30080  LIBBACKTRACE_INC=
30081  LIBBACKTRACE_LIB=
30082fi
30083
30084
30085
30086
30087# Check for babeltrace and babeltrace-ctf
30088
30089# Check whether --with-babeltrace was given.
30090if test "${with_babeltrace+set}" = set; then :
30091  withval=$with_babeltrace;
30092else
30093  with_babeltrace=auto
30094fi
30095
30096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
30097$as_echo_n "checking whether to use babeltrace... " >&6; }
30098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
30099$as_echo "$with_babeltrace" >&6; }
30100
30101if test "x$with_babeltrace" = "xno"; then
30102  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
30103$as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
30104else
30105  # Append -Werror to CFLAGS so that configure can catch the warning
30106  # "assignment from incompatible pointer type", which is related to
30107  # the babeltrace change from 1.0.3 to 1.1.0.  Babeltrace 1.1.0 works
30108  # in GDB, while babeltrace 1.0.3 is broken.
30109  # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
30110  # safe to save and restore CFLAGS here.
30111  saved_CFLAGS=$CFLAGS
30112  CFLAGS="$CFLAGS -Werror"
30113
30114
30115
30116
30117
30118
30119
30120
30121    use_additional=yes
30122
30123  acl_save_prefix="$prefix"
30124  prefix="$acl_final_prefix"
30125  acl_save_exec_prefix="$exec_prefix"
30126  exec_prefix="$acl_final_exec_prefix"
30127
30128    eval additional_includedir=\"$includedir\"
30129    eval additional_libdir=\"$libdir\"
30130
30131  exec_prefix="$acl_save_exec_prefix"
30132  prefix="$acl_save_prefix"
30133
30134
30135# Check whether --with-libbabeltrace-prefix was given.
30136if test "${with_libbabeltrace_prefix+set}" = set; then :
30137  withval=$with_libbabeltrace_prefix;
30138    if test "X$withval" = "Xno"; then
30139      use_additional=no
30140    else
30141      if test "X$withval" = "X"; then
30142
30143  acl_save_prefix="$prefix"
30144  prefix="$acl_final_prefix"
30145  acl_save_exec_prefix="$exec_prefix"
30146  exec_prefix="$acl_final_exec_prefix"
30147
30148          eval additional_includedir=\"$includedir\"
30149          eval additional_libdir=\"$libdir\"
30150
30151  exec_prefix="$acl_save_exec_prefix"
30152  prefix="$acl_save_prefix"
30153
30154      else
30155        additional_includedir="$withval/include"
30156        additional_libdir="$withval/lib"
30157      fi
30158    fi
30159
30160fi
30161
30162
30163# Check whether --with-libbabeltrace-type was given.
30164if test "${with_libbabeltrace_type+set}" = set; then :
30165  withval=$with_libbabeltrace_type;  with_libbabeltrace_type=$withval
30166else
30167   with_libbabeltrace_type=auto
30168fi
30169
30170  lib_type=`eval echo \$with_libbabeltrace_type`
30171
30172      LIBBABELTRACE=
30173  LTLIBBABELTRACE=
30174  INCBABELTRACE=
30175  rpathdirs=
30176  ltrpathdirs=
30177  names_already_handled=
30178  names_next_round='babeltrace babeltrace-ctf'
30179  while test -n "$names_next_round"; do
30180    names_this_round="$names_next_round"
30181    names_next_round=
30182    for name in $names_this_round; do
30183      already_handled=
30184      for n in $names_already_handled; do
30185        if test "$n" = "$name"; then
30186          already_handled=yes
30187          break
30188        fi
30189      done
30190      if test -z "$already_handled"; then
30191        names_already_handled="$names_already_handled $name"
30192                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
30193        eval value=\"\$HAVE_LIB$uppername\"
30194        if test -n "$value"; then
30195          if test "$value" = yes; then
30196            eval value=\"\$LIB$uppername\"
30197            test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
30198            eval value=\"\$LTLIB$uppername\"
30199            test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
30200          else
30201                                    :
30202          fi
30203        else
30204                              found_dir=
30205          found_la=
30206          found_so=
30207          found_a=
30208          if test $use_additional = yes; then
30209            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
30210              found_dir="$additional_libdir"
30211              found_so="$additional_libdir/lib$name.$shlibext"
30212              if test -f "$additional_libdir/lib$name.la"; then
30213                found_la="$additional_libdir/lib$name.la"
30214              fi
30215            elif test x$lib_type != xshared; then
30216              if test -f "$additional_libdir/lib$name.$libext"; then
30217                found_dir="$additional_libdir"
30218                found_a="$additional_libdir/lib$name.$libext"
30219                if test -f "$additional_libdir/lib$name.la"; then
30220                  found_la="$additional_libdir/lib$name.la"
30221                fi
30222              fi
30223            fi
30224          fi
30225          if test "X$found_dir" = "X"; then
30226            for x in $LDFLAGS $LTLIBBABELTRACE; do
30227
30228  acl_save_prefix="$prefix"
30229  prefix="$acl_final_prefix"
30230  acl_save_exec_prefix="$exec_prefix"
30231  exec_prefix="$acl_final_exec_prefix"
30232  eval x=\"$x\"
30233  exec_prefix="$acl_save_exec_prefix"
30234  prefix="$acl_save_prefix"
30235
30236              case "$x" in
30237                -L*)
30238                  dir=`echo "X$x" | sed -e 's/^X-L//'`
30239                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
30240                    found_dir="$dir"
30241                    found_so="$dir/lib$name.$shlibext"
30242                    if test -f "$dir/lib$name.la"; then
30243                      found_la="$dir/lib$name.la"
30244                    fi
30245                  elif test x$lib_type != xshared; then
30246                    if test -f "$dir/lib$name.$libext"; then
30247                      found_dir="$dir"
30248                      found_a="$dir/lib$name.$libext"
30249                      if test -f "$dir/lib$name.la"; then
30250                        found_la="$dir/lib$name.la"
30251                      fi
30252                    fi
30253                  fi
30254                  ;;
30255              esac
30256              if test "X$found_dir" != "X"; then
30257                break
30258              fi
30259            done
30260          fi
30261          if test "X$found_dir" != "X"; then
30262                        LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
30263            if test "X$found_so" != "X"; then
30264                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
30265                                LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
30266              else
30267                                                                                haveit=
30268                for x in $ltrpathdirs; do
30269                  if test "X$x" = "X$found_dir"; then
30270                    haveit=yes
30271                    break
30272                  fi
30273                done
30274                if test -z "$haveit"; then
30275                  ltrpathdirs="$ltrpathdirs $found_dir"
30276                fi
30277                                if test "$hardcode_direct" = yes; then
30278                                                      LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
30279                else
30280                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
30281                                                            LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
30282                                                            haveit=
30283                    for x in $rpathdirs; do
30284                      if test "X$x" = "X$found_dir"; then
30285                        haveit=yes
30286                        break
30287                      fi
30288                    done
30289                    if test -z "$haveit"; then
30290                      rpathdirs="$rpathdirs $found_dir"
30291                    fi
30292                  else
30293                                                                                haveit=
30294                    for x in $LDFLAGS $LIBBABELTRACE; do
30295
30296  acl_save_prefix="$prefix"
30297  prefix="$acl_final_prefix"
30298  acl_save_exec_prefix="$exec_prefix"
30299  exec_prefix="$acl_final_exec_prefix"
30300  eval x=\"$x\"
30301  exec_prefix="$acl_save_exec_prefix"
30302  prefix="$acl_save_prefix"
30303
30304                      if test "X$x" = "X-L$found_dir"; then
30305                        haveit=yes
30306                        break
30307                      fi
30308                    done
30309                    if test -z "$haveit"; then
30310                      LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
30311                    fi
30312                    if test "$hardcode_minus_L" != no; then
30313                                                                                        LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
30314                    else
30315                                                                                                                                                                                LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
30316                    fi
30317                  fi
30318                fi
30319              fi
30320            else
30321              if test "X$found_a" != "X"; then
30322                                LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
30323              else
30324                                                LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
30325              fi
30326            fi
30327                        additional_includedir=
30328            case "$found_dir" in
30329              */lib | */lib/)
30330                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
30331                additional_includedir="$basedir/include"
30332                ;;
30333            esac
30334            if test "X$additional_includedir" != "X"; then
30335                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
30336                haveit=
30337                if test "X$additional_includedir" = "X/usr/local/include"; then
30338                  if test -n "$GCC"; then
30339                    case $host_os in
30340                      linux*) haveit=yes;;
30341                    esac
30342                  fi
30343                fi
30344                if test -z "$haveit"; then
30345                  for x in $CPPFLAGS $INCBABELTRACE; do
30346
30347  acl_save_prefix="$prefix"
30348  prefix="$acl_final_prefix"
30349  acl_save_exec_prefix="$exec_prefix"
30350  exec_prefix="$acl_final_exec_prefix"
30351  eval x=\"$x\"
30352  exec_prefix="$acl_save_exec_prefix"
30353  prefix="$acl_save_prefix"
30354
30355                    if test "X$x" = "X-I$additional_includedir"; then
30356                      haveit=yes
30357                      break
30358                    fi
30359                  done
30360                  if test -z "$haveit"; then
30361                    if test -d "$additional_includedir"; then
30362                                            INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
30363                    fi
30364                  fi
30365                fi
30366              fi
30367            fi
30368                        if test -n "$found_la"; then
30369                                                        save_libdir="$libdir"
30370              case "$found_la" in
30371                */* | *\\*) . "$found_la" ;;
30372                *) . "./$found_la" ;;
30373              esac
30374              libdir="$save_libdir"
30375                            for dep in $dependency_libs; do
30376                case "$dep" in
30377                  -L*)
30378                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
30379                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
30380                      haveit=
30381                      if test "X$additional_libdir" = "X/usr/local/lib"; then
30382                        if test -n "$GCC"; then
30383                          case $host_os in
30384                            linux*) haveit=yes;;
30385                          esac
30386                        fi
30387                      fi
30388                      if test -z "$haveit"; then
30389                        haveit=
30390                        for x in $LDFLAGS $LIBBABELTRACE; do
30391
30392  acl_save_prefix="$prefix"
30393  prefix="$acl_final_prefix"
30394  acl_save_exec_prefix="$exec_prefix"
30395  exec_prefix="$acl_final_exec_prefix"
30396  eval x=\"$x\"
30397  exec_prefix="$acl_save_exec_prefix"
30398  prefix="$acl_save_prefix"
30399
30400                          if test "X$x" = "X-L$additional_libdir"; then
30401                            haveit=yes
30402                            break
30403                          fi
30404                        done
30405                        if test -z "$haveit"; then
30406                          if test -d "$additional_libdir"; then
30407                                                        LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
30408                          fi
30409                        fi
30410                        haveit=
30411                        for x in $LDFLAGS $LTLIBBABELTRACE; do
30412
30413  acl_save_prefix="$prefix"
30414  prefix="$acl_final_prefix"
30415  acl_save_exec_prefix="$exec_prefix"
30416  exec_prefix="$acl_final_exec_prefix"
30417  eval x=\"$x\"
30418  exec_prefix="$acl_save_exec_prefix"
30419  prefix="$acl_save_prefix"
30420
30421                          if test "X$x" = "X-L$additional_libdir"; then
30422                            haveit=yes
30423                            break
30424                          fi
30425                        done
30426                        if test -z "$haveit"; then
30427                          if test -d "$additional_libdir"; then
30428                                                        LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
30429                          fi
30430                        fi
30431                      fi
30432                    fi
30433                    ;;
30434                  -R*)
30435                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
30436                    if test "$enable_rpath" != no; then
30437                                                                  haveit=
30438                      for x in $rpathdirs; do
30439                        if test "X$x" = "X$dir"; then
30440                          haveit=yes
30441                          break
30442                        fi
30443                      done
30444                      if test -z "$haveit"; then
30445                        rpathdirs="$rpathdirs $dir"
30446                      fi
30447                                                                  haveit=
30448                      for x in $ltrpathdirs; do
30449                        if test "X$x" = "X$dir"; then
30450                          haveit=yes
30451                          break
30452                        fi
30453                      done
30454                      if test -z "$haveit"; then
30455                        ltrpathdirs="$ltrpathdirs $dir"
30456                      fi
30457                    fi
30458                    ;;
30459                  -l*)
30460                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
30461                    ;;
30462                  *.la)
30463                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
30464                    ;;
30465                  *)
30466                                        LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
30467                    LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
30468                    ;;
30469                esac
30470              done
30471            fi
30472          else
30473                                                            if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
30474              LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
30475              LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
30476            else
30477              LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
30478              LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
30479            fi
30480          fi
30481        fi
30482      fi
30483    done
30484  done
30485  if test "X$rpathdirs" != "X"; then
30486    if test -n "$hardcode_libdir_separator"; then
30487                        alldirs=
30488      for found_dir in $rpathdirs; do
30489        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
30490      done
30491            acl_save_libdir="$libdir"
30492      libdir="$alldirs"
30493      eval flag=\"$hardcode_libdir_flag_spec\"
30494      libdir="$acl_save_libdir"
30495      LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
30496    else
30497            for found_dir in $rpathdirs; do
30498        acl_save_libdir="$libdir"
30499        libdir="$found_dir"
30500        eval flag=\"$hardcode_libdir_flag_spec\"
30501        libdir="$acl_save_libdir"
30502        LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
30503      done
30504    fi
30505  fi
30506  if test "X$ltrpathdirs" != "X"; then
30507            for found_dir in $ltrpathdirs; do
30508      LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
30509    done
30510  fi
30511
30512
30513        ac_save_CPPFLAGS="$CPPFLAGS"
30514
30515  for element in $INCBABELTRACE; do
30516    haveit=
30517    for x in $CPPFLAGS; do
30518
30519  acl_save_prefix="$prefix"
30520  prefix="$acl_final_prefix"
30521  acl_save_exec_prefix="$exec_prefix"
30522  exec_prefix="$acl_final_exec_prefix"
30523  eval x=\"$x\"
30524  exec_prefix="$acl_save_exec_prefix"
30525  prefix="$acl_save_prefix"
30526
30527      if test "X$x" = "X$element"; then
30528        haveit=yes
30529        break
30530      fi
30531    done
30532    if test -z "$haveit"; then
30533      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
30534    fi
30535  done
30536
30537
30538  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
30539$as_echo_n "checking for libbabeltrace... " >&6; }
30540if ${ac_cv_libbabeltrace+:} false; then :
30541  $as_echo_n "(cached) " >&6
30542else
30543
30544    ac_save_LIBS="$LIBS"
30545    LIBS="$LIBS $LIBBABELTRACE"
30546    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30547/* end confdefs.h.  */
30548#include <babeltrace/babeltrace.h>
30549			 #include <babeltrace/ctf/events.h>
30550			 #include <babeltrace/ctf/iterator.h>
30551int
30552main ()
30553{
30554struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
30555			struct bt_ctf_event *event = NULL;
30556			const struct bt_definition *scope;
30557
30558			pos->type = BT_SEEK_BEGIN;
30559			bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
30560			scope = bt_ctf_get_top_level_scope (event,
30561			      				   BT_STREAM_EVENT_HEADER);
30562		        bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
30563
30564  ;
30565  return 0;
30566}
30567_ACEOF
30568if ac_fn_c_try_link "$LINENO"; then :
30569  ac_cv_libbabeltrace=yes
30570else
30571  ac_cv_libbabeltrace=no
30572fi
30573rm -f core conftest.err conftest.$ac_objext \
30574    conftest$ac_exeext conftest.$ac_ext
30575    LIBS="$ac_save_LIBS"
30576
30577fi
30578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
30579$as_echo "$ac_cv_libbabeltrace" >&6; }
30580  if test "$ac_cv_libbabeltrace" = yes; then
30581    HAVE_LIBBABELTRACE=yes
30582
30583$as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
30584
30585    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
30586$as_echo_n "checking how to link with libbabeltrace... " >&6; }
30587    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
30588$as_echo "$LIBBABELTRACE" >&6; }
30589  else
30590    HAVE_LIBBABELTRACE=no
30591            CPPFLAGS="$ac_save_CPPFLAGS"
30592    LIBBABELTRACE=
30593    LTLIBBABELTRACE=
30594  fi
30595
30596
30597
30598
30599
30600
30601  CFLAGS=$saved_CFLAGS
30602
30603  if test "$HAVE_LIBBABELTRACE" != yes; then
30604     if test "$with_babeltrace" = yes; then
30605       as_fn_error $? "babeltrace is missing or unusable" "$LINENO" 5
30606     else
30607       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
30608$as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
30609     fi
30610  fi
30611fi
30612
30613# Check for xxhash
30614
30615# Check whether --with-xxhash was given.
30616if test "${with_xxhash+set}" = set; then :
30617  withval=$with_xxhash;
30618else
30619  with_xxhash=auto
30620fi
30621
30622
30623 # Check whether --enable-libctf was given.
30624if test "${enable_libctf+set}" = set; then :
30625  enableval=$enable_libctf;
30626      case "$enableval" in
30627       yes|no) ;;
30628       *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
30629      esac
30630
30631else
30632  enable_libctf=yes
30633fi
30634
30635
30636if test "${enable_libctf}" = yes; then
30637
30638$as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
30639
30640  LIBCTF="../libctf/libctf.la"
30641  CTF_DEPS="../libctf/libctf.la"
30642else
30643  LIBCTF=
30644  CTF_DEPS=
30645fi
30646
30647
30648
30649# If nativefile (NAT_FILE) is not set in configure.nat, we link to an
30650# empty version.
30651
30652if test "x$with_xxhash" != "xno"; then
30653
30654
30655
30656
30657
30658
30659
30660
30661    use_additional=yes
30662
30663  acl_save_prefix="$prefix"
30664  prefix="$acl_final_prefix"
30665  acl_save_exec_prefix="$exec_prefix"
30666  exec_prefix="$acl_final_exec_prefix"
30667
30668    eval additional_includedir=\"$includedir\"
30669    eval additional_libdir=\"$libdir\"
30670
30671  exec_prefix="$acl_save_exec_prefix"
30672  prefix="$acl_save_prefix"
30673
30674
30675# Check whether --with-libxxhash-prefix was given.
30676if test "${with_libxxhash_prefix+set}" = set; then :
30677  withval=$with_libxxhash_prefix;
30678    if test "X$withval" = "Xno"; then
30679      use_additional=no
30680    else
30681      if test "X$withval" = "X"; then
30682
30683  acl_save_prefix="$prefix"
30684  prefix="$acl_final_prefix"
30685  acl_save_exec_prefix="$exec_prefix"
30686  exec_prefix="$acl_final_exec_prefix"
30687
30688          eval additional_includedir=\"$includedir\"
30689          eval additional_libdir=\"$libdir\"
30690
30691  exec_prefix="$acl_save_exec_prefix"
30692  prefix="$acl_save_prefix"
30693
30694      else
30695        additional_includedir="$withval/include"
30696        additional_libdir="$withval/lib"
30697      fi
30698    fi
30699
30700fi
30701
30702
30703# Check whether --with-libxxhash-type was given.
30704if test "${with_libxxhash_type+set}" = set; then :
30705  withval=$with_libxxhash_type;  with_libxxhash_type=$withval
30706else
30707   with_libxxhash_type=auto
30708fi
30709
30710  lib_type=`eval echo \$with_libxxhash_type`
30711
30712      LIBXXHASH=
30713  LTLIBXXHASH=
30714  INCXXHASH=
30715  rpathdirs=
30716  ltrpathdirs=
30717  names_already_handled=
30718  names_next_round='xxhash '
30719  while test -n "$names_next_round"; do
30720    names_this_round="$names_next_round"
30721    names_next_round=
30722    for name in $names_this_round; do
30723      already_handled=
30724      for n in $names_already_handled; do
30725        if test "$n" = "$name"; then
30726          already_handled=yes
30727          break
30728        fi
30729      done
30730      if test -z "$already_handled"; then
30731        names_already_handled="$names_already_handled $name"
30732                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
30733        eval value=\"\$HAVE_LIB$uppername\"
30734        if test -n "$value"; then
30735          if test "$value" = yes; then
30736            eval value=\"\$LIB$uppername\"
30737            test -z "$value" || LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$value"
30738            eval value=\"\$LTLIB$uppername\"
30739            test -z "$value" || LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
30740          else
30741                                    :
30742          fi
30743        else
30744                              found_dir=
30745          found_la=
30746          found_so=
30747          found_a=
30748          if test $use_additional = yes; then
30749            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
30750              found_dir="$additional_libdir"
30751              found_so="$additional_libdir/lib$name.$shlibext"
30752              if test -f "$additional_libdir/lib$name.la"; then
30753                found_la="$additional_libdir/lib$name.la"
30754              fi
30755            elif test x$lib_type != xshared; then
30756              if test -f "$additional_libdir/lib$name.$libext"; then
30757                found_dir="$additional_libdir"
30758                found_a="$additional_libdir/lib$name.$libext"
30759                if test -f "$additional_libdir/lib$name.la"; then
30760                  found_la="$additional_libdir/lib$name.la"
30761                fi
30762              fi
30763            fi
30764          fi
30765          if test "X$found_dir" = "X"; then
30766            for x in $LDFLAGS $LTLIBXXHASH; do
30767
30768  acl_save_prefix="$prefix"
30769  prefix="$acl_final_prefix"
30770  acl_save_exec_prefix="$exec_prefix"
30771  exec_prefix="$acl_final_exec_prefix"
30772  eval x=\"$x\"
30773  exec_prefix="$acl_save_exec_prefix"
30774  prefix="$acl_save_prefix"
30775
30776              case "$x" in
30777                -L*)
30778                  dir=`echo "X$x" | sed -e 's/^X-L//'`
30779                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
30780                    found_dir="$dir"
30781                    found_so="$dir/lib$name.$shlibext"
30782                    if test -f "$dir/lib$name.la"; then
30783                      found_la="$dir/lib$name.la"
30784                    fi
30785                  elif test x$lib_type != xshared; then
30786                    if test -f "$dir/lib$name.$libext"; then
30787                      found_dir="$dir"
30788                      found_a="$dir/lib$name.$libext"
30789                      if test -f "$dir/lib$name.la"; then
30790                        found_la="$dir/lib$name.la"
30791                      fi
30792                    fi
30793                  fi
30794                  ;;
30795              esac
30796              if test "X$found_dir" != "X"; then
30797                break
30798              fi
30799            done
30800          fi
30801          if test "X$found_dir" != "X"; then
30802                        LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
30803            if test "X$found_so" != "X"; then
30804                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
30805                                LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
30806              else
30807                                                                                haveit=
30808                for x in $ltrpathdirs; do
30809                  if test "X$x" = "X$found_dir"; then
30810                    haveit=yes
30811                    break
30812                  fi
30813                done
30814                if test -z "$haveit"; then
30815                  ltrpathdirs="$ltrpathdirs $found_dir"
30816                fi
30817                                if test "$hardcode_direct" = yes; then
30818                                                      LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
30819                else
30820                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
30821                                                            LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
30822                                                            haveit=
30823                    for x in $rpathdirs; do
30824                      if test "X$x" = "X$found_dir"; then
30825                        haveit=yes
30826                        break
30827                      fi
30828                    done
30829                    if test -z "$haveit"; then
30830                      rpathdirs="$rpathdirs $found_dir"
30831                    fi
30832                  else
30833                                                                                haveit=
30834                    for x in $LDFLAGS $LIBXXHASH; do
30835
30836  acl_save_prefix="$prefix"
30837  prefix="$acl_final_prefix"
30838  acl_save_exec_prefix="$exec_prefix"
30839  exec_prefix="$acl_final_exec_prefix"
30840  eval x=\"$x\"
30841  exec_prefix="$acl_save_exec_prefix"
30842  prefix="$acl_save_prefix"
30843
30844                      if test "X$x" = "X-L$found_dir"; then
30845                        haveit=yes
30846                        break
30847                      fi
30848                    done
30849                    if test -z "$haveit"; then
30850                      LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
30851                    fi
30852                    if test "$hardcode_minus_L" != no; then
30853                                                                                        LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
30854                    else
30855                                                                                                                                                                                LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
30856                    fi
30857                  fi
30858                fi
30859              fi
30860            else
30861              if test "X$found_a" != "X"; then
30862                                LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
30863              else
30864                                                LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
30865              fi
30866            fi
30867                        additional_includedir=
30868            case "$found_dir" in
30869              */lib | */lib/)
30870                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
30871                additional_includedir="$basedir/include"
30872                ;;
30873            esac
30874            if test "X$additional_includedir" != "X"; then
30875                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
30876                haveit=
30877                if test "X$additional_includedir" = "X/usr/local/include"; then
30878                  if test -n "$GCC"; then
30879                    case $host_os in
30880                      linux*) haveit=yes;;
30881                    esac
30882                  fi
30883                fi
30884                if test -z "$haveit"; then
30885                  for x in $CPPFLAGS $INCXXHASH; do
30886
30887  acl_save_prefix="$prefix"
30888  prefix="$acl_final_prefix"
30889  acl_save_exec_prefix="$exec_prefix"
30890  exec_prefix="$acl_final_exec_prefix"
30891  eval x=\"$x\"
30892  exec_prefix="$acl_save_exec_prefix"
30893  prefix="$acl_save_prefix"
30894
30895                    if test "X$x" = "X-I$additional_includedir"; then
30896                      haveit=yes
30897                      break
30898                    fi
30899                  done
30900                  if test -z "$haveit"; then
30901                    if test -d "$additional_includedir"; then
30902                                            INCXXHASH="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
30903                    fi
30904                  fi
30905                fi
30906              fi
30907            fi
30908                        if test -n "$found_la"; then
30909                                                        save_libdir="$libdir"
30910              case "$found_la" in
30911                */* | *\\*) . "$found_la" ;;
30912                *) . "./$found_la" ;;
30913              esac
30914              libdir="$save_libdir"
30915                            for dep in $dependency_libs; do
30916                case "$dep" in
30917                  -L*)
30918                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
30919                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
30920                      haveit=
30921                      if test "X$additional_libdir" = "X/usr/local/lib"; then
30922                        if test -n "$GCC"; then
30923                          case $host_os in
30924                            linux*) haveit=yes;;
30925                          esac
30926                        fi
30927                      fi
30928                      if test -z "$haveit"; then
30929                        haveit=
30930                        for x in $LDFLAGS $LIBXXHASH; do
30931
30932  acl_save_prefix="$prefix"
30933  prefix="$acl_final_prefix"
30934  acl_save_exec_prefix="$exec_prefix"
30935  exec_prefix="$acl_final_exec_prefix"
30936  eval x=\"$x\"
30937  exec_prefix="$acl_save_exec_prefix"
30938  prefix="$acl_save_prefix"
30939
30940                          if test "X$x" = "X-L$additional_libdir"; then
30941                            haveit=yes
30942                            break
30943                          fi
30944                        done
30945                        if test -z "$haveit"; then
30946                          if test -d "$additional_libdir"; then
30947                                                        LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
30948                          fi
30949                        fi
30950                        haveit=
30951                        for x in $LDFLAGS $LTLIBXXHASH; do
30952
30953  acl_save_prefix="$prefix"
30954  prefix="$acl_final_prefix"
30955  acl_save_exec_prefix="$exec_prefix"
30956  exec_prefix="$acl_final_exec_prefix"
30957  eval x=\"$x\"
30958  exec_prefix="$acl_save_exec_prefix"
30959  prefix="$acl_save_prefix"
30960
30961                          if test "X$x" = "X-L$additional_libdir"; then
30962                            haveit=yes
30963                            break
30964                          fi
30965                        done
30966                        if test -z "$haveit"; then
30967                          if test -d "$additional_libdir"; then
30968                                                        LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
30969                          fi
30970                        fi
30971                      fi
30972                    fi
30973                    ;;
30974                  -R*)
30975                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
30976                    if test "$enable_rpath" != no; then
30977                                                                  haveit=
30978                      for x in $rpathdirs; do
30979                        if test "X$x" = "X$dir"; then
30980                          haveit=yes
30981                          break
30982                        fi
30983                      done
30984                      if test -z "$haveit"; then
30985                        rpathdirs="$rpathdirs $dir"
30986                      fi
30987                                                                  haveit=
30988                      for x in $ltrpathdirs; do
30989                        if test "X$x" = "X$dir"; then
30990                          haveit=yes
30991                          break
30992                        fi
30993                      done
30994                      if test -z "$haveit"; then
30995                        ltrpathdirs="$ltrpathdirs $dir"
30996                      fi
30997                    fi
30998                    ;;
30999                  -l*)
31000                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
31001                    ;;
31002                  *.la)
31003                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
31004                    ;;
31005                  *)
31006                                        LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$dep"
31007                    LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
31008                    ;;
31009                esac
31010              done
31011            fi
31012          else
31013                                                            if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
31014              LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
31015              LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
31016            else
31017              LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
31018              LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
31019            fi
31020          fi
31021        fi
31022      fi
31023    done
31024  done
31025  if test "X$rpathdirs" != "X"; then
31026    if test -n "$hardcode_libdir_separator"; then
31027                        alldirs=
31028      for found_dir in $rpathdirs; do
31029        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
31030      done
31031            acl_save_libdir="$libdir"
31032      libdir="$alldirs"
31033      eval flag=\"$hardcode_libdir_flag_spec\"
31034      libdir="$acl_save_libdir"
31035      LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$flag"
31036    else
31037            for found_dir in $rpathdirs; do
31038        acl_save_libdir="$libdir"
31039        libdir="$found_dir"
31040        eval flag=\"$hardcode_libdir_flag_spec\"
31041        libdir="$acl_save_libdir"
31042        LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$flag"
31043      done
31044    fi
31045  fi
31046  if test "X$ltrpathdirs" != "X"; then
31047            for found_dir in $ltrpathdirs; do
31048      LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
31049    done
31050  fi
31051
31052
31053        ac_save_CPPFLAGS="$CPPFLAGS"
31054
31055  for element in $INCXXHASH; do
31056    haveit=
31057    for x in $CPPFLAGS; do
31058
31059  acl_save_prefix="$prefix"
31060  prefix="$acl_final_prefix"
31061  acl_save_exec_prefix="$exec_prefix"
31062  exec_prefix="$acl_final_exec_prefix"
31063  eval x=\"$x\"
31064  exec_prefix="$acl_save_exec_prefix"
31065  prefix="$acl_save_prefix"
31066
31067      if test "X$x" = "X$element"; then
31068        haveit=yes
31069        break
31070      fi
31071    done
31072    if test -z "$haveit"; then
31073      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
31074    fi
31075  done
31076
31077
31078  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
31079$as_echo_n "checking for libxxhash... " >&6; }
31080if ${ac_cv_libxxhash+:} false; then :
31081  $as_echo_n "(cached) " >&6
31082else
31083
31084    ac_save_LIBS="$LIBS"
31085    LIBS="$LIBS $LIBXXHASH"
31086    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31087/* end confdefs.h.  */
31088#include <xxhash.h>
31089int
31090main ()
31091{
31092XXH32("foo", 3, 0);
31093
31094  ;
31095  return 0;
31096}
31097_ACEOF
31098if ac_fn_c_try_link "$LINENO"; then :
31099  ac_cv_libxxhash=yes
31100else
31101  ac_cv_libxxhash=no
31102fi
31103rm -f core conftest.err conftest.$ac_objext \
31104    conftest$ac_exeext conftest.$ac_ext
31105    LIBS="$ac_save_LIBS"
31106
31107fi
31108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
31109$as_echo "$ac_cv_libxxhash" >&6; }
31110  if test "$ac_cv_libxxhash" = yes; then
31111    HAVE_LIBXXHASH=yes
31112
31113$as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
31114
31115    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
31116$as_echo_n "checking how to link with libxxhash... " >&6; }
31117    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
31118$as_echo "$LIBXXHASH" >&6; }
31119  else
31120    HAVE_LIBXXHASH=no
31121            CPPFLAGS="$ac_save_CPPFLAGS"
31122    LIBXXHASH=
31123    LTLIBXXHASH=
31124  fi
31125
31126
31127
31128
31129
31130
31131  if test "$HAVE_LIBXXHASH" != yes; then
31132    if test "$with_xxhash" = yes; then
31133      as_fn_error $? "xxhash is missing or unusable" "$LINENO" 5
31134    fi
31135  fi
31136  if test "x$with_xxhash" = "xauto"; then
31137    with_xxhash="$HAVE_LIBXXHASH"
31138  fi
31139fi
31140
31141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
31142$as_echo_n "checking whether to use xxhash... " >&6; }
31143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
31144$as_echo "$with_xxhash" >&6; }
31145
31146NM_H=
31147rm -f nm.h
31148if test "${nativefile}" != ""; then
31149    case "${nativefile}" in
31150      nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
31151      * ) GDB_NM_FILE="${nativefile}"
31152    esac
31153    ac_config_links="$ac_config_links nm.h:$GDB_NM_FILE"
31154
31155
31156cat >>confdefs.h <<_ACEOF
31157#define GDB_NM_FILE "${GDB_NM_FILE}"
31158_ACEOF
31159
31160    NM_H=nm.h
31161fi
31162
31163
31164
31165for ac_prog in xsltproc
31166do
31167  # Extract the first word of "$ac_prog", so it can be a program name with args.
31168set dummy $ac_prog; ac_word=$2
31169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31170$as_echo_n "checking for $ac_word... " >&6; }
31171if ${ac_cv_path_XSLTPROC+:} false; then :
31172  $as_echo_n "(cached) " >&6
31173else
31174  case $XSLTPROC in
31175  [\\/]* | ?:[\\/]*)
31176  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
31177  ;;
31178  *)
31179  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31180for as_dir in $PATH
31181do
31182  IFS=$as_save_IFS
31183  test -z "$as_dir" && as_dir=.
31184    for ac_exec_ext in '' $ac_executable_extensions; do
31185  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31186    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
31187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31188    break 2
31189  fi
31190done
31191  done
31192IFS=$as_save_IFS
31193
31194  ;;
31195esac
31196fi
31197XSLTPROC=$ac_cv_path_XSLTPROC
31198if test -n "$XSLTPROC"; then
31199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
31200$as_echo "$XSLTPROC" >&6; }
31201else
31202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31203$as_echo "no" >&6; }
31204fi
31205
31206
31207  test -n "$XSLTPROC" && break
31208done
31209test -n "$XSLTPROC" || XSLTPROC="missing"
31210
31211if test "x$USE_MAINTAINER_MODE" = xyes; then
31212  if test "${XSLTPROC}" = missing; then
31213    as_fn_error $? "unable to find xsltproc.  maintainer-mode requires xsltproc." "$LINENO" 5
31214  fi
31215fi
31216
31217
31218
31219
31220
31221$as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
31222
31223
31224
31225# Check whether we will enable the inclusion of unit tests when
31226# compiling GDB.
31227#
31228# The default value of this option changes depending whether we're on
31229# development mode (in which case it's "true") or not (in which case
31230# it's "false").  The $development variable is set by the GDB_AC_COMMON
31231# macro, which must therefore be used before GDB_AC_SELFTEST.
31232
31233if test "x$development" != xtrue && test "x$development" != xfalse; then :
31234  as_fn_error $? "Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
31235fi
31236
31237# Check whether --enable-unit-tests was given.
31238if test "${enable_unit_tests+set}" = set; then :
31239  enableval=$enable_unit_tests; case "${enableval}" in
31240  yes)  enable_unittests=true  ;;
31241  no)   enable_unittests=false ;;
31242  *)    as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
31243esac
31244else
31245  enable_unittests=$development
31246fi
31247
31248
31249if $enable_unittests; then
31250
31251$as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
31252
31253
31254  CONFIG_OBS="$CONFIG_OBS \$(SELFTESTS_OBS)"
31255  CONFIG_SRCS="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
31256
31257fi
31258
31259
31260
31261  gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
31262  GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
31263  if test "x$GDB_TRANSFORM_NAME" = x; then
31264     GDB_TRANSFORM_NAME=gdb
31265  fi
31266
31267
31268
31269  gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
31270  GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
31271  if test "x$GCORE_TRANSFORM_NAME" = x; then
31272     GCORE_TRANSFORM_NAME=gcore
31273  fi
31274
31275
31276ac_config_files="$ac_config_files gcore"
31277
31278ac_config_files="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
31279
31280
31281cat >confcache <<\_ACEOF
31282# This file is a shell script that caches the results of configure
31283# tests run on this system so they can be shared between configure
31284# scripts and configure runs, see configure's option --config-cache.
31285# It is not useful on other systems.  If it contains results you don't
31286# want to keep, you may remove or edit it.
31287#
31288# config.status only pays attention to the cache file if you give it
31289# the --recheck option to rerun configure.
31290#
31291# `ac_cv_env_foo' variables (set or unset) will be overridden when
31292# loading this file, other *unset* `ac_cv_foo' will be assigned the
31293# following values.
31294
31295_ACEOF
31296
31297# The following way of writing the cache mishandles newlines in values,
31298# but we know of no workaround that is simple, portable, and efficient.
31299# So, we kill variables containing newlines.
31300# Ultrix sh set writes to stderr and can't be redirected directly,
31301# and sets the high bit in the cache file unless we assign to the vars.
31302(
31303  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31304    eval ac_val=\$$ac_var
31305    case $ac_val in #(
31306    *${as_nl}*)
31307      case $ac_var in #(
31308      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31309$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31310      esac
31311      case $ac_var in #(
31312      _ | IFS | as_nl) ;; #(
31313      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31314      *) { eval $ac_var=; unset $ac_var;} ;;
31315      esac ;;
31316    esac
31317  done
31318
31319  (set) 2>&1 |
31320    case $as_nl`(ac_space=' '; set) 2>&1` in #(
31321    *${as_nl}ac_space=\ *)
31322      # `set' does not quote correctly, so add quotes: double-quote
31323      # substitution turns \\\\ into \\, and sed turns \\ into \.
31324      sed -n \
31325	"s/'/'\\\\''/g;
31326	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31327      ;; #(
31328    *)
31329      # `set' quotes correctly as required by POSIX, so do not add quotes.
31330      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31331      ;;
31332    esac |
31333    sort
31334) |
31335  sed '
31336     /^ac_cv_env_/b end
31337     t clear
31338     :clear
31339     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31340     t end
31341     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31342     :end' >>confcache
31343if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31344  if test -w "$cache_file"; then
31345    if test "x$cache_file" != "x/dev/null"; then
31346      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31347$as_echo "$as_me: updating cache $cache_file" >&6;}
31348      if test ! -f "$cache_file" || test -h "$cache_file"; then
31349	cat confcache >"$cache_file"
31350      else
31351        case $cache_file in #(
31352        */* | ?:*)
31353	  mv -f confcache "$cache_file"$$ &&
31354	  mv -f "$cache_file"$$ "$cache_file" ;; #(
31355        *)
31356	  mv -f confcache "$cache_file" ;;
31357	esac
31358      fi
31359    fi
31360  else
31361    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31362$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31363  fi
31364fi
31365rm -f confcache
31366
31367test "x$prefix" = xNONE && prefix=$ac_default_prefix
31368# Let make expand exec_prefix.
31369test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31370
31371DEFS=-DHAVE_CONFIG_H
31372
31373ac_libobjs=
31374ac_ltlibobjs=
31375U=
31376for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31377  # 1. Remove the extension, and $U if already installed.
31378  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31379  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31380  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
31381  #    will be set to the directory where LIBOBJS objects are built.
31382  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31383  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31384done
31385LIBOBJS=$ac_libobjs
31386
31387LTLIBOBJS=$ac_ltlibobjs
31388
31389
31390if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
31391  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
31392Usually this means the macro was only invoked conditionally." "$LINENO" 5
31393fi
31394if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
31395  as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined.
31396Usually this means the macro was only invoked conditionally." "$LINENO" 5
31397fi
31398if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
31399  as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
31400Usually this means the macro was only invoked conditionally." "$LINENO" 5
31401fi
31402if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
31403  as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
31404Usually this means the macro was only invoked conditionally." "$LINENO" 5
31405fi
31406
31407
31408: "${CONFIG_STATUS=./config.status}"
31409ac_write_fail=0
31410ac_clean_files_save=$ac_clean_files
31411ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31412{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31413$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31414as_write_fail=0
31415cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31416#! $SHELL
31417# Generated by $as_me.
31418# Run this file to recreate the current configuration.
31419# Compiler output produced by configure, useful for debugging
31420# configure, is in config.log if it exists.
31421
31422debug=false
31423ac_cs_recheck=false
31424ac_cs_silent=false
31425
31426SHELL=\${CONFIG_SHELL-$SHELL}
31427export SHELL
31428_ASEOF
31429cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31430## -------------------- ##
31431## M4sh Initialization. ##
31432## -------------------- ##
31433
31434# Be more Bourne compatible
31435DUALCASE=1; export DUALCASE # for MKS sh
31436if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31437  emulate sh
31438  NULLCMD=:
31439  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31440  # is contrary to our usage.  Disable this feature.
31441  alias -g '${1+"$@"}'='"$@"'
31442  setopt NO_GLOB_SUBST
31443else
31444  case `(set -o) 2>/dev/null` in #(
31445  *posix*) :
31446    set -o posix ;; #(
31447  *) :
31448     ;;
31449esac
31450fi
31451
31452
31453as_nl='
31454'
31455export as_nl
31456# Printing a long string crashes Solaris 7 /usr/bin/printf.
31457as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31458as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31459as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31460# Prefer a ksh shell builtin over an external printf program on Solaris,
31461# but without wasting forks for bash or zsh.
31462if test -z "$BASH_VERSION$ZSH_VERSION" \
31463    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31464  as_echo='print -r --'
31465  as_echo_n='print -rn --'
31466elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31467  as_echo='printf %s\n'
31468  as_echo_n='printf %s'
31469else
31470  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31471    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31472    as_echo_n='/usr/ucb/echo -n'
31473  else
31474    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31475    as_echo_n_body='eval
31476      arg=$1;
31477      case $arg in #(
31478      *"$as_nl"*)
31479	expr "X$arg" : "X\\(.*\\)$as_nl";
31480	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31481      esac;
31482      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31483    '
31484    export as_echo_n_body
31485    as_echo_n='sh -c $as_echo_n_body as_echo'
31486  fi
31487  export as_echo_body
31488  as_echo='sh -c $as_echo_body as_echo'
31489fi
31490
31491# The user is always right.
31492if test "${PATH_SEPARATOR+set}" != set; then
31493  PATH_SEPARATOR=:
31494  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31495    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31496      PATH_SEPARATOR=';'
31497  }
31498fi
31499
31500
31501# IFS
31502# We need space, tab and new line, in precisely that order.  Quoting is
31503# there to prevent editors from complaining about space-tab.
31504# (If _AS_PATH_WALK were called with IFS unset, it would disable word
31505# splitting by setting IFS to empty value.)
31506IFS=" ""	$as_nl"
31507
31508# Find who we are.  Look in the path if we contain no directory separator.
31509as_myself=
31510case $0 in #((
31511  *[\\/]* ) as_myself=$0 ;;
31512  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31513for as_dir in $PATH
31514do
31515  IFS=$as_save_IFS
31516  test -z "$as_dir" && as_dir=.
31517    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31518  done
31519IFS=$as_save_IFS
31520
31521     ;;
31522esac
31523# We did not find ourselves, most probably we were run as `sh COMMAND'
31524# in which case we are not to be found in the path.
31525if test "x$as_myself" = x; then
31526  as_myself=$0
31527fi
31528if test ! -f "$as_myself"; then
31529  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31530  exit 1
31531fi
31532
31533# Unset variables that we do not need and which cause bugs (e.g. in
31534# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
31535# suppresses any "Segmentation fault" message there.  '((' could
31536# trigger a bug in pdksh 5.2.14.
31537for as_var in BASH_ENV ENV MAIL MAILPATH
31538do eval test x\${$as_var+set} = xset \
31539  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31540done
31541PS1='$ '
31542PS2='> '
31543PS4='+ '
31544
31545# NLS nuisances.
31546LC_ALL=C
31547export LC_ALL
31548LANGUAGE=C
31549export LANGUAGE
31550
31551# CDPATH.
31552(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31553
31554
31555# as_fn_error STATUS ERROR [LINENO LOG_FD]
31556# ----------------------------------------
31557# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31558# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31559# script with STATUS, using 1 if that was 0.
31560as_fn_error ()
31561{
31562  as_status=$1; test $as_status -eq 0 && as_status=1
31563  if test "$4"; then
31564    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31565    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31566  fi
31567  $as_echo "$as_me: error: $2" >&2
31568  as_fn_exit $as_status
31569} # as_fn_error
31570
31571
31572# as_fn_set_status STATUS
31573# -----------------------
31574# Set $? to STATUS, without forking.
31575as_fn_set_status ()
31576{
31577  return $1
31578} # as_fn_set_status
31579
31580# as_fn_exit STATUS
31581# -----------------
31582# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31583as_fn_exit ()
31584{
31585  set +e
31586  as_fn_set_status $1
31587  exit $1
31588} # as_fn_exit
31589
31590# as_fn_unset VAR
31591# ---------------
31592# Portably unset VAR.
31593as_fn_unset ()
31594{
31595  { eval $1=; unset $1;}
31596}
31597as_unset=as_fn_unset
31598# as_fn_append VAR VALUE
31599# ----------------------
31600# Append the text in VALUE to the end of the definition contained in VAR. Take
31601# advantage of any shell optimizations that allow amortized linear growth over
31602# repeated appends, instead of the typical quadratic growth present in naive
31603# implementations.
31604if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31605  eval 'as_fn_append ()
31606  {
31607    eval $1+=\$2
31608  }'
31609else
31610  as_fn_append ()
31611  {
31612    eval $1=\$$1\$2
31613  }
31614fi # as_fn_append
31615
31616# as_fn_arith ARG...
31617# ------------------
31618# Perform arithmetic evaluation on the ARGs, and store the result in the
31619# global $as_val. Take advantage of shells that can avoid forks. The arguments
31620# must be portable across $(()) and expr.
31621if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31622  eval 'as_fn_arith ()
31623  {
31624    as_val=$(( $* ))
31625  }'
31626else
31627  as_fn_arith ()
31628  {
31629    as_val=`expr "$@" || test $? -eq 1`
31630  }
31631fi # as_fn_arith
31632
31633
31634if expr a : '\(a\)' >/dev/null 2>&1 &&
31635   test "X`expr 00001 : '.*\(...\)'`" = X001; then
31636  as_expr=expr
31637else
31638  as_expr=false
31639fi
31640
31641if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31642  as_basename=basename
31643else
31644  as_basename=false
31645fi
31646
31647if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31648  as_dirname=dirname
31649else
31650  as_dirname=false
31651fi
31652
31653as_me=`$as_basename -- "$0" ||
31654$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31655	 X"$0" : 'X\(//\)$' \| \
31656	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31657$as_echo X/"$0" |
31658    sed '/^.*\/\([^/][^/]*\)\/*$/{
31659	    s//\1/
31660	    q
31661	  }
31662	  /^X\/\(\/\/\)$/{
31663	    s//\1/
31664	    q
31665	  }
31666	  /^X\/\(\/\).*/{
31667	    s//\1/
31668	    q
31669	  }
31670	  s/.*/./; q'`
31671
31672# Avoid depending upon Character Ranges.
31673as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31674as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31675as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31676as_cr_digits='0123456789'
31677as_cr_alnum=$as_cr_Letters$as_cr_digits
31678
31679ECHO_C= ECHO_N= ECHO_T=
31680case `echo -n x` in #(((((
31681-n*)
31682  case `echo 'xy\c'` in
31683  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
31684  xy)  ECHO_C='\c';;
31685  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31686       ECHO_T='	';;
31687  esac;;
31688*)
31689  ECHO_N='-n';;
31690esac
31691
31692rm -f conf$$ conf$$.exe conf$$.file
31693if test -d conf$$.dir; then
31694  rm -f conf$$.dir/conf$$.file
31695else
31696  rm -f conf$$.dir
31697  mkdir conf$$.dir 2>/dev/null
31698fi
31699if (echo >conf$$.file) 2>/dev/null; then
31700  if ln -s conf$$.file conf$$ 2>/dev/null; then
31701    as_ln_s='ln -s'
31702    # ... but there are two gotchas:
31703    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31704    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31705    # In both cases, we have to default to `cp -pR'.
31706    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31707      as_ln_s='cp -pR'
31708  elif ln conf$$.file conf$$ 2>/dev/null; then
31709    as_ln_s=ln
31710  else
31711    as_ln_s='cp -pR'
31712  fi
31713else
31714  as_ln_s='cp -pR'
31715fi
31716rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31717rmdir conf$$.dir 2>/dev/null
31718
31719
31720# as_fn_mkdir_p
31721# -------------
31722# Create "$as_dir" as a directory, including parents if necessary.
31723as_fn_mkdir_p ()
31724{
31725
31726  case $as_dir in #(
31727  -*) as_dir=./$as_dir;;
31728  esac
31729  test -d "$as_dir" || eval $as_mkdir_p || {
31730    as_dirs=
31731    while :; do
31732      case $as_dir in #(
31733      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31734      *) as_qdir=$as_dir;;
31735      esac
31736      as_dirs="'$as_qdir' $as_dirs"
31737      as_dir=`$as_dirname -- "$as_dir" ||
31738$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31739	 X"$as_dir" : 'X\(//\)[^/]' \| \
31740	 X"$as_dir" : 'X\(//\)$' \| \
31741	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31742$as_echo X"$as_dir" |
31743    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31744	    s//\1/
31745	    q
31746	  }
31747	  /^X\(\/\/\)[^/].*/{
31748	    s//\1/
31749	    q
31750	  }
31751	  /^X\(\/\/\)$/{
31752	    s//\1/
31753	    q
31754	  }
31755	  /^X\(\/\).*/{
31756	    s//\1/
31757	    q
31758	  }
31759	  s/.*/./; q'`
31760      test -d "$as_dir" && break
31761    done
31762    test -z "$as_dirs" || eval "mkdir $as_dirs"
31763  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31764
31765
31766} # as_fn_mkdir_p
31767if mkdir -p . 2>/dev/null; then
31768  as_mkdir_p='mkdir -p "$as_dir"'
31769else
31770  test -d ./-p && rmdir ./-p
31771  as_mkdir_p=false
31772fi
31773
31774
31775# as_fn_executable_p FILE
31776# -----------------------
31777# Test if FILE is an executable regular file.
31778as_fn_executable_p ()
31779{
31780  test -f "$1" && test -x "$1"
31781} # as_fn_executable_p
31782as_test_x='test -x'
31783as_executable_p=as_fn_executable_p
31784
31785# Sed expression to map a string onto a valid CPP name.
31786as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31787
31788# Sed expression to map a string onto a valid variable name.
31789as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31790
31791
31792exec 6>&1
31793## ----------------------------------- ##
31794## Main body of $CONFIG_STATUS script. ##
31795## ----------------------------------- ##
31796_ASEOF
31797test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31798
31799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31800# Save the log message, to keep $0 and so on meaningful, and to
31801# report actual input values of CONFIG_FILES etc. instead of their
31802# values after options handling.
31803ac_log="
31804This file was extended by $as_me, which was
31805generated by GNU Autoconf 2.69.  Invocation command line was
31806
31807  CONFIG_FILES    = $CONFIG_FILES
31808  CONFIG_HEADERS  = $CONFIG_HEADERS
31809  CONFIG_LINKS    = $CONFIG_LINKS
31810  CONFIG_COMMANDS = $CONFIG_COMMANDS
31811  $ $0 $@
31812
31813on `(hostname || uname -n) 2>/dev/null | sed 1q`
31814"
31815
31816_ACEOF
31817
31818case $ac_config_files in *"
31819"*) set x $ac_config_files; shift; ac_config_files=$*;;
31820esac
31821
31822case $ac_config_headers in *"
31823"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31824esac
31825
31826
31827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31828# Files that config.status was made for.
31829config_files="$ac_config_files"
31830config_headers="$ac_config_headers"
31831config_links="$ac_config_links"
31832config_commands="$ac_config_commands"
31833
31834_ACEOF
31835
31836cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31837ac_cs_usage="\
31838\`$as_me' instantiates files and other configuration actions
31839from templates according to the current configuration.  Unless the files
31840and actions are specified as TAGs, all are instantiated by default.
31841
31842Usage: $0 [OPTION]... [TAG]...
31843
31844  -h, --help       print this help, then exit
31845  -V, --version    print version number and configuration settings, then exit
31846      --config     print configuration, then exit
31847  -q, --quiet, --silent
31848                   do not print progress messages
31849  -d, --debug      don't remove temporary files
31850      --recheck    update $as_me by reconfiguring in the same conditions
31851      --file=FILE[:TEMPLATE]
31852                   instantiate the configuration file FILE
31853      --header=FILE[:TEMPLATE]
31854                   instantiate the configuration header FILE
31855
31856Configuration files:
31857$config_files
31858
31859Configuration headers:
31860$config_headers
31861
31862Configuration links:
31863$config_links
31864
31865Configuration commands:
31866$config_commands
31867
31868Report bugs to the package provider."
31869
31870_ACEOF
31871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31872ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31873ac_cs_version="\\
31874config.status
31875configured by $0, generated by GNU Autoconf 2.69,
31876  with options \\"\$ac_cs_config\\"
31877
31878Copyright (C) 2012 Free Software Foundation, Inc.
31879This config.status script is free software; the Free Software Foundation
31880gives unlimited permission to copy, distribute and modify it."
31881
31882ac_pwd='$ac_pwd'
31883srcdir='$srcdir'
31884INSTALL='$INSTALL'
31885AWK='$AWK'
31886test -n "\$AWK" || AWK=awk
31887_ACEOF
31888
31889cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31890# The default lists apply if the user does not specify any file.
31891ac_need_defaults=:
31892while test $# != 0
31893do
31894  case $1 in
31895  --*=?*)
31896    ac_option=`expr "X$1" : 'X\([^=]*\)='`
31897    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31898    ac_shift=:
31899    ;;
31900  --*=)
31901    ac_option=`expr "X$1" : 'X\([^=]*\)='`
31902    ac_optarg=
31903    ac_shift=:
31904    ;;
31905  *)
31906    ac_option=$1
31907    ac_optarg=$2
31908    ac_shift=shift
31909    ;;
31910  esac
31911
31912  case $ac_option in
31913  # Handling of the options.
31914  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31915    ac_cs_recheck=: ;;
31916  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31917    $as_echo "$ac_cs_version"; exit ;;
31918  --config | --confi | --conf | --con | --co | --c )
31919    $as_echo "$ac_cs_config"; exit ;;
31920  --debug | --debu | --deb | --de | --d | -d )
31921    debug=: ;;
31922  --file | --fil | --fi | --f )
31923    $ac_shift
31924    case $ac_optarg in
31925    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31926    '') as_fn_error $? "missing file argument" ;;
31927    esac
31928    as_fn_append CONFIG_FILES " '$ac_optarg'"
31929    ac_need_defaults=false;;
31930  --header | --heade | --head | --hea )
31931    $ac_shift
31932    case $ac_optarg in
31933    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31934    esac
31935    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31936    ac_need_defaults=false;;
31937  --he | --h)
31938    # Conflict between --help and --header
31939    as_fn_error $? "ambiguous option: \`$1'
31940Try \`$0 --help' for more information.";;
31941  --help | --hel | -h )
31942    $as_echo "$ac_cs_usage"; exit ;;
31943  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31944  | -silent | --silent | --silen | --sile | --sil | --si | --s)
31945    ac_cs_silent=: ;;
31946
31947  # This is an error.
31948  -*) as_fn_error $? "unrecognized option: \`$1'
31949Try \`$0 --help' for more information." ;;
31950
31951  *) as_fn_append ac_config_targets " $1"
31952     ac_need_defaults=false ;;
31953
31954  esac
31955  shift
31956done
31957
31958ac_configure_extra_args=
31959
31960if $ac_cs_silent; then
31961  exec 6>/dev/null
31962  ac_configure_extra_args="$ac_configure_extra_args --silent"
31963fi
31964
31965_ACEOF
31966cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31967if \$ac_cs_recheck; then
31968  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31969  shift
31970  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31971  CONFIG_SHELL='$SHELL'
31972  export CONFIG_SHELL
31973  exec "\$@"
31974fi
31975
31976_ACEOF
31977cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31978exec 5>>config.log
31979{
31980  echo
31981  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31982## Running $as_me. ##
31983_ASBOX
31984  $as_echo "$ac_log"
31985} >&5
31986
31987_ACEOF
31988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31989#
31990# INIT-COMMANDS
31991#
31992
31993
31994# The HP-UX ksh and POSIX shell print the target directory to stdout
31995# if CDPATH is set.
31996(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31997
31998sed_quote_subst='$sed_quote_subst'
31999double_quote_subst='$double_quote_subst'
32000delay_variable_subst='$delay_variable_subst'
32001macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
32002macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
32003enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
32004enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
32005pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
32006enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
32007SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
32008ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
32009host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
32010host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
32011host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
32012build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
32013build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
32014build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
32015SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
32016Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
32017GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
32018EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
32019FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
32020LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
32021NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
32022LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
32023max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
32024ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
32025exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
32026lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
32027lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
32028lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
32029reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
32030reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
32031OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
32032deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
32033file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
32034AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
32035AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
32036STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
32037RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
32038old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32039old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32040old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
32041lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
32042CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
32043CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
32044compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
32045GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
32046lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
32047lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
32048lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
32049lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
32050objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
32051MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
32052lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
32053lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
32054lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
32055lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
32056lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
32057need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
32058DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
32059NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
32060LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
32061OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
32062OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
32063libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
32064shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
32065extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32066archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
32067enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
32068export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
32069whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
32070compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
32071old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
32072old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32073archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
32074archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32075module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
32076module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32077with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
32078allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
32079no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
32080hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
32081hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
32082hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
32083hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
32084hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
32085hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
32086hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
32087hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
32088inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
32089link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
32090fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
32091always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
32092export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
32093exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
32094include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
32095prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
32096file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
32097variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
32098need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
32099need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
32100version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
32101runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
32102shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
32103shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
32104libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
32105library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
32106soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
32107install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
32108postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32109postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32110finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
32111finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
32112hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
32113sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
32114sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
32115hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
32116enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
32117enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
32118enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
32119old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
32120striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
32121compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
32122predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
32123postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
32124predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
32125postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
32126compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
32127LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
32128reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
32129reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32130old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32131compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
32132GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
32133lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
32134lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
32135lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
32136lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
32137lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
32138archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
32139enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
32140export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32141whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32142compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
32143old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32144old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32145archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32146archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32147module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32148module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32149with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
32150allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32151no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32152hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32153hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
32154hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
32155hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
32156hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
32157hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
32158hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
32159hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
32160inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
32161link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
32162fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
32163always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
32164export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32165exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32166include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32167prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32168file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
32169hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
32170compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
32171predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32172postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32173predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
32174postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
32175compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
32176
32177LTCC='$LTCC'
32178LTCFLAGS='$LTCFLAGS'
32179compiler='$compiler_DEFAULT'
32180
32181# A function that is used when there is no print builtin or printf.
32182func_fallback_echo ()
32183{
32184  eval 'cat <<_LTECHO_EOF
32185\$1
32186_LTECHO_EOF'
32187}
32188
32189# Quote evaled strings.
32190for var in SHELL \
32191ECHO \
32192SED \
32193GREP \
32194EGREP \
32195FGREP \
32196LD \
32197NM \
32198LN_S \
32199lt_SP2NL \
32200lt_NL2SP \
32201reload_flag \
32202OBJDUMP \
32203deplibs_check_method \
32204file_magic_cmd \
32205AR \
32206AR_FLAGS \
32207STRIP \
32208RANLIB \
32209CC \
32210CFLAGS \
32211compiler \
32212lt_cv_sys_global_symbol_pipe \
32213lt_cv_sys_global_symbol_to_cdecl \
32214lt_cv_sys_global_symbol_to_c_name_address \
32215lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
32216lt_prog_compiler_no_builtin_flag \
32217lt_prog_compiler_wl \
32218lt_prog_compiler_pic \
32219lt_prog_compiler_static \
32220lt_cv_prog_compiler_c_o \
32221need_locks \
32222DSYMUTIL \
32223NMEDIT \
32224LIPO \
32225OTOOL \
32226OTOOL64 \
32227shrext_cmds \
32228export_dynamic_flag_spec \
32229whole_archive_flag_spec \
32230compiler_needs_object \
32231with_gnu_ld \
32232allow_undefined_flag \
32233no_undefined_flag \
32234hardcode_libdir_flag_spec \
32235hardcode_libdir_flag_spec_ld \
32236hardcode_libdir_separator \
32237fix_srcfile_path \
32238exclude_expsyms \
32239include_expsyms \
32240file_list_spec \
32241variables_saved_for_relink \
32242libname_spec \
32243library_names_spec \
32244soname_spec \
32245install_override_mode \
32246finish_eval \
32247old_striplib \
32248striplib \
32249compiler_lib_search_dirs \
32250predep_objects \
32251postdep_objects \
32252predeps \
32253postdeps \
32254compiler_lib_search_path \
32255LD_CXX \
32256reload_flag_CXX \
32257compiler_CXX \
32258lt_prog_compiler_no_builtin_flag_CXX \
32259lt_prog_compiler_wl_CXX \
32260lt_prog_compiler_pic_CXX \
32261lt_prog_compiler_static_CXX \
32262lt_cv_prog_compiler_c_o_CXX \
32263export_dynamic_flag_spec_CXX \
32264whole_archive_flag_spec_CXX \
32265compiler_needs_object_CXX \
32266with_gnu_ld_CXX \
32267allow_undefined_flag_CXX \
32268no_undefined_flag_CXX \
32269hardcode_libdir_flag_spec_CXX \
32270hardcode_libdir_flag_spec_ld_CXX \
32271hardcode_libdir_separator_CXX \
32272fix_srcfile_path_CXX \
32273exclude_expsyms_CXX \
32274include_expsyms_CXX \
32275file_list_spec_CXX \
32276compiler_lib_search_dirs_CXX \
32277predep_objects_CXX \
32278postdep_objects_CXX \
32279predeps_CXX \
32280postdeps_CXX \
32281compiler_lib_search_path_CXX; do
32282    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32283    *[\\\\\\\`\\"\\\$]*)
32284      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
32285      ;;
32286    *)
32287      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32288      ;;
32289    esac
32290done
32291
32292# Double-quote double-evaled strings.
32293for var in reload_cmds \
32294old_postinstall_cmds \
32295old_postuninstall_cmds \
32296old_archive_cmds \
32297extract_expsyms_cmds \
32298old_archive_from_new_cmds \
32299old_archive_from_expsyms_cmds \
32300archive_cmds \
32301archive_expsym_cmds \
32302module_cmds \
32303module_expsym_cmds \
32304export_symbols_cmds \
32305prelink_cmds \
32306postinstall_cmds \
32307postuninstall_cmds \
32308finish_cmds \
32309sys_lib_search_path_spec \
32310sys_lib_dlsearch_path_spec \
32311reload_cmds_CXX \
32312old_archive_cmds_CXX \
32313old_archive_from_new_cmds_CXX \
32314old_archive_from_expsyms_cmds_CXX \
32315archive_cmds_CXX \
32316archive_expsym_cmds_CXX \
32317module_cmds_CXX \
32318module_expsym_cmds_CXX \
32319export_symbols_cmds_CXX \
32320prelink_cmds_CXX; do
32321    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32322    *[\\\\\\\`\\"\\\$]*)
32323      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
32324      ;;
32325    *)
32326      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32327      ;;
32328    esac
32329done
32330
32331ac_aux_dir='$ac_aux_dir'
32332xsi_shell='$xsi_shell'
32333lt_shell_append='$lt_shell_append'
32334
32335# See if we are running on zsh, and set the options which allow our
32336# commands through without removal of \ escapes INIT.
32337if test -n "\${ZSH_VERSION+set}" ; then
32338   setopt NO_GLOB_SUBST
32339fi
32340
32341
32342    PACKAGE='$PACKAGE'
32343    VERSION='$VERSION'
32344    TIMESTAMP='$TIMESTAMP'
32345    RM='$RM'
32346    ofile='$ofile'
32347
32348
32349
32350ac_aux_dir='$ac_aux_dir'
32351
32352
32353ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
32354GDB_NM_FILE=$GDB_NM_FILE
32355
32356_ACEOF
32357
32358cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32359
32360# Handling of arguments.
32361for ac_config_target in $ac_config_targets
32362do
32363  case $ac_config_target in
32364    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
32365    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32366    "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
32367    "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
32368    "nm.h") CONFIG_LINKS="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
32369    "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
32370    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32371    "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
32372    "gdb-gdb.py") CONFIG_FILES="$CONFIG_FILES gdb-gdb.py" ;;
32373    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
32374    "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
32375
32376  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32377  esac
32378done
32379
32380
32381# If the user did not use the arguments to specify the items to instantiate,
32382# then the envvar interface is used.  Set only those that are not.
32383# We use the long form for the default assignment because of an extremely
32384# bizarre bug on SunOS 4.1.3.
32385if $ac_need_defaults; then
32386  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32387  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32388  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
32389  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32390fi
32391
32392# Have a temporary directory for convenience.  Make it in the build tree
32393# simply because there is no reason against having it here, and in addition,
32394# creating and moving files from /tmp can sometimes cause problems.
32395# Hook for its removal unless debugging.
32396# Note that there is a small window in which the directory will not be cleaned:
32397# after its creation but before its name has been assigned to `$tmp'.
32398$debug ||
32399{
32400  tmp= ac_tmp=
32401  trap 'exit_status=$?
32402  : "${ac_tmp:=$tmp}"
32403  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32404' 0
32405  trap 'as_fn_exit 1' 1 2 13 15
32406}
32407# Create a (secure) tmp directory for tmp files.
32408
32409{
32410  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32411  test -d "$tmp"
32412}  ||
32413{
32414  tmp=./conf$$-$RANDOM
32415  (umask 077 && mkdir "$tmp")
32416} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32417ac_tmp=$tmp
32418
32419# Set up the scripts for CONFIG_FILES section.
32420# No need to generate them if there are no CONFIG_FILES.
32421# This happens for instance with `./config.status config.h'.
32422if test -n "$CONFIG_FILES"; then
32423
32424if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32425  ac_cs_awk_getline=:
32426  ac_cs_awk_pipe_init=
32427  ac_cs_awk_read_file='
32428      while ((getline aline < (F[key])) > 0)
32429	print(aline)
32430      close(F[key])'
32431  ac_cs_awk_pipe_fini=
32432else
32433  ac_cs_awk_getline=false
32434  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32435  ac_cs_awk_read_file='
32436      print "|#_!!_#|"
32437      print "cat " F[key] " &&"
32438      '$ac_cs_awk_pipe_init
32439  # The final `:' finishes the AND list.
32440  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32441fi
32442ac_cr=`echo X | tr X '\015'`
32443# On cygwin, bash can eat \r inside `` if the user requested igncr.
32444# But we know of no other shell where ac_cr would be empty at this
32445# point, so we can use a bashism as a fallback.
32446if test "x$ac_cr" = x; then
32447  eval ac_cr=\$\'\\r\'
32448fi
32449ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32450if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32451  ac_cs_awk_cr='\\r'
32452else
32453  ac_cs_awk_cr=$ac_cr
32454fi
32455
32456echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32457_ACEOF
32458
32459# Create commands to substitute file output variables.
32460{
32461  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32462  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32463  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32464  echo "_ACAWK" &&
32465  echo "_ACEOF"
32466} >conf$$files.sh &&
32467. ./conf$$files.sh ||
32468  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32469rm -f conf$$files.sh
32470
32471{
32472  echo "cat >conf$$subs.awk <<_ACEOF" &&
32473  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32474  echo "_ACEOF"
32475} >conf$$subs.sh ||
32476  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32477ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32478ac_delim='%!_!# '
32479for ac_last_try in false false false false false :; do
32480  . ./conf$$subs.sh ||
32481    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32482
32483  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32484  if test $ac_delim_n = $ac_delim_num; then
32485    break
32486  elif $ac_last_try; then
32487    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32488  else
32489    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32490  fi
32491done
32492rm -f conf$$subs.sh
32493
32494cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32495cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32496_ACEOF
32497sed -n '
32498h
32499s/^/S["/; s/!.*/"]=/
32500p
32501g
32502s/^[^!]*!//
32503:repl
32504t repl
32505s/'"$ac_delim"'$//
32506t delim
32507:nl
32508h
32509s/\(.\{148\}\)..*/\1/
32510t more1
32511s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32512p
32513n
32514b repl
32515:more1
32516s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32517p
32518g
32519s/.\{148\}//
32520t nl
32521:delim
32522h
32523s/\(.\{148\}\)..*/\1/
32524t more2
32525s/["\\]/\\&/g; s/^/"/; s/$/"/
32526p
32527b
32528:more2
32529s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32530p
32531g
32532s/.\{148\}//
32533t delim
32534' <conf$$subs.awk | sed '
32535/^[^""]/{
32536  N
32537  s/\n//
32538}
32539' >>$CONFIG_STATUS || ac_write_fail=1
32540rm -f conf$$subs.awk
32541cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32542_ACAWK
32543cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32544  for (key in S) S_is_set[key] = 1
32545  FS = ""
32546  \$ac_cs_awk_pipe_init
32547}
32548{
32549  line = $ 0
32550  nfields = split(line, field, "@")
32551  substed = 0
32552  len = length(field[1])
32553  for (i = 2; i < nfields; i++) {
32554    key = field[i]
32555    keylen = length(key)
32556    if (S_is_set[key]) {
32557      value = S[key]
32558      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32559      len += length(value) + length(field[++i])
32560      substed = 1
32561    } else
32562      len += 1 + keylen
32563  }
32564  if (nfields == 3 && !substed) {
32565    key = field[2]
32566    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
32567      \$ac_cs_awk_read_file
32568      next
32569    }
32570  }
32571  print line
32572}
32573\$ac_cs_awk_pipe_fini
32574_ACAWK
32575_ACEOF
32576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32577if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32578  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32579else
32580  cat
32581fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32582  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32583_ACEOF
32584
32585# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32586# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32587# trailing colons and then remove the whole line if VPATH becomes empty
32588# (actually we leave an empty line to preserve line numbers).
32589if test "x$srcdir" = x.; then
32590  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
32591h
32592s///
32593s/^/:/
32594s/[	 ]*$/:/
32595s/:\$(srcdir):/:/g
32596s/:\${srcdir}:/:/g
32597s/:@srcdir@:/:/g
32598s/^:*//
32599s/:*$//
32600x
32601s/\(=[	 ]*\).*/\1/
32602G
32603s/\n//
32604s/^[^=]*=[	 ]*$//
32605}'
32606fi
32607
32608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32609fi # test -n "$CONFIG_FILES"
32610
32611# Set up the scripts for CONFIG_HEADERS section.
32612# No need to generate them if there are no CONFIG_HEADERS.
32613# This happens for instance with `./config.status Makefile'.
32614if test -n "$CONFIG_HEADERS"; then
32615cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32616BEGIN {
32617_ACEOF
32618
32619# Transform confdefs.h into an awk script `defines.awk', embedded as
32620# here-document in config.status, that substitutes the proper values into
32621# config.h.in to produce config.h.
32622
32623# Create a delimiter string that does not exist in confdefs.h, to ease
32624# handling of long lines.
32625ac_delim='%!_!# '
32626for ac_last_try in false false :; do
32627  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32628  if test -z "$ac_tt"; then
32629    break
32630  elif $ac_last_try; then
32631    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32632  else
32633    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32634  fi
32635done
32636
32637# For the awk script, D is an array of macro values keyed by name,
32638# likewise P contains macro parameters if any.  Preserve backslash
32639# newline sequences.
32640
32641ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32642sed -n '
32643s/.\{148\}/&'"$ac_delim"'/g
32644t rset
32645:rset
32646s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
32647t def
32648d
32649:def
32650s/\\$//
32651t bsnl
32652s/["\\]/\\&/g
32653s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
32654D["\1"]=" \3"/p
32655s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
32656d
32657:bsnl
32658s/["\\]/\\&/g
32659s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
32660D["\1"]=" \3\\\\\\n"\\/p
32661t cont
32662s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32663t cont
32664d
32665:cont
32666n
32667s/.\{148\}/&'"$ac_delim"'/g
32668t clear
32669:clear
32670s/\\$//
32671t bsnlc
32672s/["\\]/\\&/g; s/^/"/; s/$/"/p
32673d
32674:bsnlc
32675s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32676b cont
32677' <confdefs.h | sed '
32678s/'"$ac_delim"'/"\\\
32679"/g' >>$CONFIG_STATUS || ac_write_fail=1
32680
32681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32682  for (key in D) D_is_set[key] = 1
32683  FS = ""
32684}
32685/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32686  line = \$ 0
32687  split(line, arg, " ")
32688  if (arg[1] == "#") {
32689    defundef = arg[2]
32690    mac1 = arg[3]
32691  } else {
32692    defundef = substr(arg[1], 2)
32693    mac1 = arg[2]
32694  }
32695  split(mac1, mac2, "(") #)
32696  macro = mac2[1]
32697  prefix = substr(line, 1, index(line, defundef) - 1)
32698  if (D_is_set[macro]) {
32699    # Preserve the white space surrounding the "#".
32700    print prefix "define", macro P[macro] D[macro]
32701    next
32702  } else {
32703    # Replace #undef with comments.  This is necessary, for example,
32704    # in the case of _POSIX_SOURCE, which is predefined and required
32705    # on some systems where configure will not decide to define it.
32706    if (defundef == "undef") {
32707      print "/*", prefix defundef, macro, "*/"
32708      next
32709    }
32710  }
32711}
32712{ print }
32713_ACAWK
32714_ACEOF
32715cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32716  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32717fi # test -n "$CONFIG_HEADERS"
32718
32719
32720eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
32721shift
32722for ac_tag
32723do
32724  case $ac_tag in
32725  :[FHLC]) ac_mode=$ac_tag; continue;;
32726  esac
32727  case $ac_mode$ac_tag in
32728  :[FHL]*:*);;
32729  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32730  :[FH]-) ac_tag=-:-;;
32731  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32732  esac
32733  ac_save_IFS=$IFS
32734  IFS=:
32735  set x $ac_tag
32736  IFS=$ac_save_IFS
32737  shift
32738  ac_file=$1
32739  shift
32740
32741  case $ac_mode in
32742  :L) ac_source=$1;;
32743  :[FH])
32744    ac_file_inputs=
32745    for ac_f
32746    do
32747      case $ac_f in
32748      -) ac_f="$ac_tmp/stdin";;
32749      *) # Look for the file first in the build tree, then in the source tree
32750	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
32751	 # because $ac_f cannot contain `:'.
32752	 test -f "$ac_f" ||
32753	   case $ac_f in
32754	   [\\/$]*) false;;
32755	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32756	   esac ||
32757	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32758      esac
32759      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32760      as_fn_append ac_file_inputs " '$ac_f'"
32761    done
32762
32763    # Let's still pretend it is `configure' which instantiates (i.e., don't
32764    # use $as_me), people would be surprised to read:
32765    #    /* config.h.  Generated by config.status.  */
32766    configure_input='Generated from '`
32767	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32768	`' by configure.'
32769    if test x"$ac_file" != x-; then
32770      configure_input="$ac_file.  $configure_input"
32771      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32772$as_echo "$as_me: creating $ac_file" >&6;}
32773    fi
32774    # Neutralize special characters interpreted by sed in replacement strings.
32775    case $configure_input in #(
32776    *\&* | *\|* | *\\* )
32777       ac_sed_conf_input=`$as_echo "$configure_input" |
32778       sed 's/[\\\\&|]/\\\\&/g'`;; #(
32779    *) ac_sed_conf_input=$configure_input;;
32780    esac
32781
32782    case $ac_tag in
32783    *:-:* | *:-) cat >"$ac_tmp/stdin" \
32784      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32785    esac
32786    ;;
32787  esac
32788
32789  ac_dir=`$as_dirname -- "$ac_file" ||
32790$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32791	 X"$ac_file" : 'X\(//\)[^/]' \| \
32792	 X"$ac_file" : 'X\(//\)$' \| \
32793	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32794$as_echo X"$ac_file" |
32795    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32796	    s//\1/
32797	    q
32798	  }
32799	  /^X\(\/\/\)[^/].*/{
32800	    s//\1/
32801	    q
32802	  }
32803	  /^X\(\/\/\)$/{
32804	    s//\1/
32805	    q
32806	  }
32807	  /^X\(\/\).*/{
32808	    s//\1/
32809	    q
32810	  }
32811	  s/.*/./; q'`
32812  as_dir="$ac_dir"; as_fn_mkdir_p
32813  ac_builddir=.
32814
32815case "$ac_dir" in
32816.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32817*)
32818  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32819  # A ".." for each directory in $ac_dir_suffix.
32820  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32821  case $ac_top_builddir_sub in
32822  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32823  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32824  esac ;;
32825esac
32826ac_abs_top_builddir=$ac_pwd
32827ac_abs_builddir=$ac_pwd$ac_dir_suffix
32828# for backward compatibility:
32829ac_top_builddir=$ac_top_build_prefix
32830
32831case $srcdir in
32832  .)  # We are building in place.
32833    ac_srcdir=.
32834    ac_top_srcdir=$ac_top_builddir_sub
32835    ac_abs_top_srcdir=$ac_pwd ;;
32836  [\\/]* | ?:[\\/]* )  # Absolute name.
32837    ac_srcdir=$srcdir$ac_dir_suffix;
32838    ac_top_srcdir=$srcdir
32839    ac_abs_top_srcdir=$srcdir ;;
32840  *) # Relative name.
32841    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32842    ac_top_srcdir=$ac_top_build_prefix$srcdir
32843    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32844esac
32845ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32846
32847
32848  case $ac_mode in
32849  :F)
32850  #
32851  # CONFIG_FILE
32852  #
32853
32854  case $INSTALL in
32855  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32856  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32857  esac
32858_ACEOF
32859
32860cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32861# If the template does not know about datarootdir, expand it.
32862# FIXME: This hack should be removed a few years after 2.60.
32863ac_datarootdir_hack=; ac_datarootdir_seen=
32864ac_sed_dataroot='
32865/datarootdir/ {
32866  p
32867  q
32868}
32869/@datadir@/p
32870/@docdir@/p
32871/@infodir@/p
32872/@localedir@/p
32873/@mandir@/p'
32874case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32875*datarootdir*) ac_datarootdir_seen=yes;;
32876*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32877  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32878$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32879_ACEOF
32880cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32881  ac_datarootdir_hack='
32882  s&@datadir@&$datadir&g
32883  s&@docdir@&$docdir&g
32884  s&@infodir@&$infodir&g
32885  s&@localedir@&$localedir&g
32886  s&@mandir@&$mandir&g
32887  s&\\\${datarootdir}&$datarootdir&g' ;;
32888esac
32889_ACEOF
32890
32891# Neutralize VPATH when `$srcdir' = `.'.
32892# Shell code in configure.ac might set extrasub.
32893# FIXME: do we really want to maintain this feature?
32894cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32895ac_sed_extra="$ac_vpsub
32896$extrasub
32897_ACEOF
32898cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32899:t
32900/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32901s|@configure_input@|$ac_sed_conf_input|;t t
32902s&@top_builddir@&$ac_top_builddir_sub&;t t
32903s&@top_build_prefix@&$ac_top_build_prefix&;t t
32904s&@srcdir@&$ac_srcdir&;t t
32905s&@abs_srcdir@&$ac_abs_srcdir&;t t
32906s&@top_srcdir@&$ac_top_srcdir&;t t
32907s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32908s&@builddir@&$ac_builddir&;t t
32909s&@abs_builddir@&$ac_abs_builddir&;t t
32910s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32911s&@INSTALL@&$ac_INSTALL&;t t
32912$ac_datarootdir_hack
32913"
32914eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32915if $ac_cs_awk_getline; then
32916  $AWK -f "$ac_tmp/subs.awk"
32917else
32918  $AWK -f "$ac_tmp/subs.awk" | $SHELL
32919fi \
32920  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32921
32922test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32923  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32924  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
32925      "$ac_tmp/out"`; test -z "$ac_out"; } &&
32926  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32927which seems to be undefined.  Please make sure it is defined" >&5
32928$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32929which seems to be undefined.  Please make sure it is defined" >&2;}
32930
32931  rm -f "$ac_tmp/stdin"
32932  case $ac_file in
32933  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32934  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32935  esac \
32936  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32937 ;;
32938  :H)
32939  #
32940  # CONFIG_HEADER
32941  #
32942  if test x"$ac_file" != x-; then
32943    {
32944      $as_echo "/* $configure_input  */" \
32945      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32946    } >"$ac_tmp/config.h" \
32947      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32948    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32949      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32950$as_echo "$as_me: $ac_file is unchanged" >&6;}
32951    else
32952      rm -f "$ac_file"
32953      mv "$ac_tmp/config.h" "$ac_file" \
32954	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
32955    fi
32956  else
32957    $as_echo "/* $configure_input  */" \
32958      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32959      || as_fn_error $? "could not create -" "$LINENO" 5
32960  fi
32961 ;;
32962  :L)
32963  #
32964  # CONFIG_LINK
32965  #
32966
32967  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
32968    :
32969  else
32970    # Prefer the file from the source tree if names are identical.
32971    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
32972      ac_source=$srcdir/$ac_source
32973    fi
32974
32975    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
32976$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
32977
32978    if test ! -r "$ac_source"; then
32979      as_fn_error $? "$ac_source: file not found" "$LINENO" 5
32980    fi
32981    rm -f "$ac_file"
32982
32983    # Try a relative symlink, then a hard link, then a copy.
32984    case $ac_source in
32985    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
32986	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
32987    esac
32988    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
32989      ln "$ac_source" "$ac_file" 2>/dev/null ||
32990      cp -p "$ac_source" "$ac_file" ||
32991      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
32992  fi
32993 ;;
32994  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32995$as_echo "$as_me: executing $ac_file commands" >&6;}
32996 ;;
32997  esac
32998
32999
33000  case $ac_file$ac_mode in
33001    "config.h":H) echo > stamp-h ;;
33002    "libtool":C)
33003
33004    # See if we are running on zsh, and set the options which allow our
33005    # commands through without removal of \ escapes.
33006    if test -n "${ZSH_VERSION+set}" ; then
33007      setopt NO_GLOB_SUBST
33008    fi
33009
33010    cfgfile="${ofile}T"
33011    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33012    $RM "$cfgfile"
33013
33014    cat <<_LT_EOF >> "$cfgfile"
33015#! $SHELL
33016
33017# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
33018# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
33019# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33020# NOTE: Changes made to this file will be lost: look at ltmain.sh.
33021#
33022#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33023#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
33024#   Written by Gordon Matzigkeit, 1996
33025#
33026#   This file is part of GNU Libtool.
33027#
33028# GNU Libtool is free software; you can redistribute it and/or
33029# modify it under the terms of the GNU General Public License as
33030# published by the Free Software Foundation; either version 2 of
33031# the License, or (at your option) any later version.
33032#
33033# As a special exception to the GNU General Public License,
33034# if you distribute this file as part of a program or library that
33035# is built using GNU Libtool, you may include this file under the
33036# same distribution terms that you use for the rest of that program.
33037#
33038# GNU Libtool is distributed in the hope that it will be useful,
33039# but WITHOUT ANY WARRANTY; without even the implied warranty of
33040# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
33041# GNU General Public License for more details.
33042#
33043# You should have received a copy of the GNU General Public License
33044# along with GNU Libtool; see the file COPYING.  If not, a copy
33045# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33046# obtained by writing to the Free Software Foundation, Inc.,
33047# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33048
33049
33050# The names of the tagged configurations supported by this script.
33051available_tags="CXX "
33052
33053# ### BEGIN LIBTOOL CONFIG
33054
33055# Which release of libtool.m4 was used?
33056macro_version=$macro_version
33057macro_revision=$macro_revision
33058
33059# Whether or not to build shared libraries.
33060build_libtool_libs=$enable_shared
33061
33062# Whether or not to build static libraries.
33063build_old_libs=$enable_static
33064
33065# What type of objects to build.
33066pic_mode=$pic_mode
33067
33068# Whether or not to optimize for fast installation.
33069fast_install=$enable_fast_install
33070
33071# Shell to use when invoking shell scripts.
33072SHELL=$lt_SHELL
33073
33074# An echo program that protects backslashes.
33075ECHO=$lt_ECHO
33076
33077# The host system.
33078host_alias=$host_alias
33079host=$host
33080host_os=$host_os
33081
33082# The build system.
33083build_alias=$build_alias
33084build=$build
33085build_os=$build_os
33086
33087# A sed program that does not truncate output.
33088SED=$lt_SED
33089
33090# Sed that helps us avoid accidentally triggering echo(1) options like -n.
33091Xsed="\$SED -e 1s/^X//"
33092
33093# A grep program that handles long lines.
33094GREP=$lt_GREP
33095
33096# An ERE matcher.
33097EGREP=$lt_EGREP
33098
33099# A literal string matcher.
33100FGREP=$lt_FGREP
33101
33102# A BSD- or MS-compatible name lister.
33103NM=$lt_NM
33104
33105# Whether we need soft or hard links.
33106LN_S=$lt_LN_S
33107
33108# What is the maximum length of a command?
33109max_cmd_len=$max_cmd_len
33110
33111# Object file suffix (normally "o").
33112objext=$ac_objext
33113
33114# Executable file suffix (normally "").
33115exeext=$exeext
33116
33117# whether the shell understands "unset".
33118lt_unset=$lt_unset
33119
33120# turn spaces into newlines.
33121SP2NL=$lt_lt_SP2NL
33122
33123# turn newlines into spaces.
33124NL2SP=$lt_lt_NL2SP
33125
33126# An object symbol dumper.
33127OBJDUMP=$lt_OBJDUMP
33128
33129# Method to check whether dependent libraries are shared objects.
33130deplibs_check_method=$lt_deplibs_check_method
33131
33132# Command to use when deplibs_check_method == "file_magic".
33133file_magic_cmd=$lt_file_magic_cmd
33134
33135# The archiver.
33136AR=$lt_AR
33137AR_FLAGS=$lt_AR_FLAGS
33138
33139# A symbol stripping program.
33140STRIP=$lt_STRIP
33141
33142# Commands used to install an old-style archive.
33143RANLIB=$lt_RANLIB
33144old_postinstall_cmds=$lt_old_postinstall_cmds
33145old_postuninstall_cmds=$lt_old_postuninstall_cmds
33146
33147# Whether to use a lock for old archive extraction.
33148lock_old_archive_extraction=$lock_old_archive_extraction
33149
33150# A C compiler.
33151LTCC=$lt_CC
33152
33153# LTCC compiler flags.
33154LTCFLAGS=$lt_CFLAGS
33155
33156# Take the output of nm and produce a listing of raw symbols and C names.
33157global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33158
33159# Transform the output of nm in a proper C declaration.
33160global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33161
33162# Transform the output of nm in a C name address pair.
33163global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33164
33165# Transform the output of nm in a C name address pair when lib prefix is needed.
33166global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33167
33168# The name of the directory that contains temporary libtool files.
33169objdir=$objdir
33170
33171# Used to examine libraries when file_magic_cmd begins with "file".
33172MAGIC_CMD=$MAGIC_CMD
33173
33174# Must we lock files when doing compilation?
33175need_locks=$lt_need_locks
33176
33177# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33178DSYMUTIL=$lt_DSYMUTIL
33179
33180# Tool to change global to local symbols on Mac OS X.
33181NMEDIT=$lt_NMEDIT
33182
33183# Tool to manipulate fat objects and archives on Mac OS X.
33184LIPO=$lt_LIPO
33185
33186# ldd/readelf like tool for Mach-O binaries on Mac OS X.
33187OTOOL=$lt_OTOOL
33188
33189# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33190OTOOL64=$lt_OTOOL64
33191
33192# Old archive suffix (normally "a").
33193libext=$libext
33194
33195# Shared library suffix (normally ".so").
33196shrext_cmds=$lt_shrext_cmds
33197
33198# The commands to extract the exported symbol list from a shared archive.
33199extract_expsyms_cmds=$lt_extract_expsyms_cmds
33200
33201# Variables whose values should be saved in libtool wrapper scripts and
33202# restored at link time.
33203variables_saved_for_relink=$lt_variables_saved_for_relink
33204
33205# Do we need the "lib" prefix for modules?
33206need_lib_prefix=$need_lib_prefix
33207
33208# Do we need a version for libraries?
33209need_version=$need_version
33210
33211# Library versioning type.
33212version_type=$version_type
33213
33214# Shared library runtime path variable.
33215runpath_var=$runpath_var
33216
33217# Shared library path variable.
33218shlibpath_var=$shlibpath_var
33219
33220# Is shlibpath searched before the hard-coded library search path?
33221shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33222
33223# Format of library name prefix.
33224libname_spec=$lt_libname_spec
33225
33226# List of archive names.  First name is the real one, the rest are links.
33227# The last name is the one that the linker finds with -lNAME
33228library_names_spec=$lt_library_names_spec
33229
33230# The coded name of the library, if different from the real name.
33231soname_spec=$lt_soname_spec
33232
33233# Permission mode override for installation of shared libraries.
33234install_override_mode=$lt_install_override_mode
33235
33236# Command to use after installation of a shared archive.
33237postinstall_cmds=$lt_postinstall_cmds
33238
33239# Command to use after uninstallation of a shared archive.
33240postuninstall_cmds=$lt_postuninstall_cmds
33241
33242# Commands used to finish a libtool library installation in a directory.
33243finish_cmds=$lt_finish_cmds
33244
33245# As "finish_cmds", except a single script fragment to be evaled but
33246# not shown.
33247finish_eval=$lt_finish_eval
33248
33249# Whether we should hardcode library paths into libraries.
33250hardcode_into_libs=$hardcode_into_libs
33251
33252# Compile-time system search path for libraries.
33253sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33254
33255# Run-time system search path for libraries.
33256sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33257
33258# Whether dlopen is supported.
33259dlopen_support=$enable_dlopen
33260
33261# Whether dlopen of programs is supported.
33262dlopen_self=$enable_dlopen_self
33263
33264# Whether dlopen of statically linked programs is supported.
33265dlopen_self_static=$enable_dlopen_self_static
33266
33267# Commands to strip libraries.
33268old_striplib=$lt_old_striplib
33269striplib=$lt_striplib
33270
33271
33272# The linker used to build libraries.
33273LD=$lt_LD
33274
33275# How to create reloadable object files.
33276reload_flag=$lt_reload_flag
33277reload_cmds=$lt_reload_cmds
33278
33279# Commands used to build an old-style archive.
33280old_archive_cmds=$lt_old_archive_cmds
33281
33282# A language specific compiler.
33283CC=$lt_compiler
33284
33285# Is the compiler the GNU compiler?
33286with_gcc=$GCC
33287
33288# Compiler flag to turn off builtin functions.
33289no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33290
33291# How to pass a linker flag through the compiler.
33292wl=$lt_lt_prog_compiler_wl
33293
33294# Additional compiler flags for building library objects.
33295pic_flag=$lt_lt_prog_compiler_pic
33296
33297# Compiler flag to prevent dynamic linking.
33298link_static_flag=$lt_lt_prog_compiler_static
33299
33300# Does compiler simultaneously support -c and -o options?
33301compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33302
33303# Whether or not to add -lc for building shared libraries.
33304build_libtool_need_lc=$archive_cmds_need_lc
33305
33306# Whether or not to disallow shared libs when runtime libs are static.
33307allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33308
33309# Compiler flag to allow reflexive dlopens.
33310export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33311
33312# Compiler flag to generate shared objects directly from archives.
33313whole_archive_flag_spec=$lt_whole_archive_flag_spec
33314
33315# Whether the compiler copes with passing no objects directly.
33316compiler_needs_object=$lt_compiler_needs_object
33317
33318# Create an old-style archive from a shared archive.
33319old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33320
33321# Create a temporary old-style archive to link instead of a shared archive.
33322old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33323
33324# Commands used to build a shared archive.
33325archive_cmds=$lt_archive_cmds
33326archive_expsym_cmds=$lt_archive_expsym_cmds
33327
33328# Commands used to build a loadable module if different from building
33329# a shared archive.
33330module_cmds=$lt_module_cmds
33331module_expsym_cmds=$lt_module_expsym_cmds
33332
33333# Whether we are building with GNU ld or not.
33334with_gnu_ld=$lt_with_gnu_ld
33335
33336# Flag that allows shared libraries with undefined symbols to be built.
33337allow_undefined_flag=$lt_allow_undefined_flag
33338
33339# Flag that enforces no undefined symbols.
33340no_undefined_flag=$lt_no_undefined_flag
33341
33342# Flag to hardcode \$libdir into a binary during linking.
33343# This must work even if \$libdir does not exist
33344hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33345
33346# If ld is used when linking, flag to hardcode \$libdir into a binary
33347# during linking.  This must work even if \$libdir does not exist.
33348hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
33349
33350# Whether we need a single "-rpath" flag with a separated argument.
33351hardcode_libdir_separator=$lt_hardcode_libdir_separator
33352
33353# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33354# DIR into the resulting binary.
33355hardcode_direct=$hardcode_direct
33356
33357# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33358# DIR into the resulting binary and the resulting library dependency is
33359# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33360# library is relocated.
33361hardcode_direct_absolute=$hardcode_direct_absolute
33362
33363# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33364# into the resulting binary.
33365hardcode_minus_L=$hardcode_minus_L
33366
33367# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33368# into the resulting binary.
33369hardcode_shlibpath_var=$hardcode_shlibpath_var
33370
33371# Set to "yes" if building a shared library automatically hardcodes DIR
33372# into the library and all subsequent libraries and executables linked
33373# against it.
33374hardcode_automatic=$hardcode_automatic
33375
33376# Set to yes if linker adds runtime paths of dependent libraries
33377# to runtime path list.
33378inherit_rpath=$inherit_rpath
33379
33380# Whether libtool must link a program against all its dependency libraries.
33381link_all_deplibs=$link_all_deplibs
33382
33383# Fix the shell variable \$srcfile for the compiler.
33384fix_srcfile_path=$lt_fix_srcfile_path
33385
33386# Set to "yes" if exported symbols are required.
33387always_export_symbols=$always_export_symbols
33388
33389# The commands to list exported symbols.
33390export_symbols_cmds=$lt_export_symbols_cmds
33391
33392# Symbols that should not be listed in the preloaded symbols.
33393exclude_expsyms=$lt_exclude_expsyms
33394
33395# Symbols that must always be exported.
33396include_expsyms=$lt_include_expsyms
33397
33398# Commands necessary for linking programs (against libraries) with templates.
33399prelink_cmds=$lt_prelink_cmds
33400
33401# Specify filename containing input files.
33402file_list_spec=$lt_file_list_spec
33403
33404# How to hardcode a shared library path into an executable.
33405hardcode_action=$hardcode_action
33406
33407# The directories searched by this compiler when creating a shared library.
33408compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33409
33410# Dependencies to place before and after the objects being linked to
33411# create a shared library.
33412predep_objects=$lt_predep_objects
33413postdep_objects=$lt_postdep_objects
33414predeps=$lt_predeps
33415postdeps=$lt_postdeps
33416
33417# The library search path used internally by the compiler when linking
33418# a shared library.
33419compiler_lib_search_path=$lt_compiler_lib_search_path
33420
33421# ### END LIBTOOL CONFIG
33422
33423_LT_EOF
33424
33425  case $host_os in
33426  aix3*)
33427    cat <<\_LT_EOF >> "$cfgfile"
33428# AIX sometimes has problems with the GCC collect2 program.  For some
33429# reason, if we set the COLLECT_NAMES environment variable, the problems
33430# vanish in a puff of smoke.
33431if test "X${COLLECT_NAMES+set}" != Xset; then
33432  COLLECT_NAMES=
33433  export COLLECT_NAMES
33434fi
33435_LT_EOF
33436    ;;
33437  esac
33438
33439
33440ltmain="$ac_aux_dir/ltmain.sh"
33441
33442
33443  # We use sed instead of cat because bash on DJGPP gets confused if
33444  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
33445  # text mode, it properly converts lines to CR/LF.  This bash problem
33446  # is reportedly fixed, but why not run on old versions too?
33447  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
33448    || (rm -f "$cfgfile"; exit 1)
33449
33450  case $xsi_shell in
33451  yes)
33452    cat << \_LT_EOF >> "$cfgfile"
33453
33454# func_dirname file append nondir_replacement
33455# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
33456# otherwise set result to NONDIR_REPLACEMENT.
33457func_dirname ()
33458{
33459  case ${1} in
33460    */*) func_dirname_result="${1%/*}${2}" ;;
33461    *  ) func_dirname_result="${3}" ;;
33462  esac
33463}
33464
33465# func_basename file
33466func_basename ()
33467{
33468  func_basename_result="${1##*/}"
33469}
33470
33471# func_dirname_and_basename file append nondir_replacement
33472# perform func_basename and func_dirname in a single function
33473# call:
33474#   dirname:  Compute the dirname of FILE.  If nonempty,
33475#             add APPEND to the result, otherwise set result
33476#             to NONDIR_REPLACEMENT.
33477#             value returned in "$func_dirname_result"
33478#   basename: Compute filename of FILE.
33479#             value retuned in "$func_basename_result"
33480# Implementation must be kept synchronized with func_dirname
33481# and func_basename. For efficiency, we do not delegate to
33482# those functions but instead duplicate the functionality here.
33483func_dirname_and_basename ()
33484{
33485  case ${1} in
33486    */*) func_dirname_result="${1%/*}${2}" ;;
33487    *  ) func_dirname_result="${3}" ;;
33488  esac
33489  func_basename_result="${1##*/}"
33490}
33491
33492# func_stripname prefix suffix name
33493# strip PREFIX and SUFFIX off of NAME.
33494# PREFIX and SUFFIX must not contain globbing or regex special
33495# characters, hashes, percent signs, but SUFFIX may contain a leading
33496# dot (in which case that matches only a dot).
33497func_stripname ()
33498{
33499  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
33500  # positional parameters, so assign one to ordinary parameter first.
33501  func_stripname_result=${3}
33502  func_stripname_result=${func_stripname_result#"${1}"}
33503  func_stripname_result=${func_stripname_result%"${2}"}
33504}
33505
33506# func_opt_split
33507func_opt_split ()
33508{
33509  func_opt_split_opt=${1%%=*}
33510  func_opt_split_arg=${1#*=}
33511}
33512
33513# func_lo2o object
33514func_lo2o ()
33515{
33516  case ${1} in
33517    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
33518    *)    func_lo2o_result=${1} ;;
33519  esac
33520}
33521
33522# func_xform libobj-or-source
33523func_xform ()
33524{
33525  func_xform_result=${1%.*}.lo
33526}
33527
33528# func_arith arithmetic-term...
33529func_arith ()
33530{
33531  func_arith_result=$(( $* ))
33532}
33533
33534# func_len string
33535# STRING may not start with a hyphen.
33536func_len ()
33537{
33538  func_len_result=${#1}
33539}
33540
33541_LT_EOF
33542    ;;
33543  *) # Bourne compatible functions.
33544    cat << \_LT_EOF >> "$cfgfile"
33545
33546# func_dirname file append nondir_replacement
33547# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
33548# otherwise set result to NONDIR_REPLACEMENT.
33549func_dirname ()
33550{
33551  # Extract subdirectory from the argument.
33552  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
33553  if test "X$func_dirname_result" = "X${1}"; then
33554    func_dirname_result="${3}"
33555  else
33556    func_dirname_result="$func_dirname_result${2}"
33557  fi
33558}
33559
33560# func_basename file
33561func_basename ()
33562{
33563  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
33564}
33565
33566
33567# func_stripname prefix suffix name
33568# strip PREFIX and SUFFIX off of NAME.
33569# PREFIX and SUFFIX must not contain globbing or regex special
33570# characters, hashes, percent signs, but SUFFIX may contain a leading
33571# dot (in which case that matches only a dot).
33572# func_strip_suffix prefix name
33573func_stripname ()
33574{
33575  case ${2} in
33576    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
33577    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
33578  esac
33579}
33580
33581# sed scripts:
33582my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
33583my_sed_long_arg='1s/^-[^=]*=//'
33584
33585# func_opt_split
33586func_opt_split ()
33587{
33588  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
33589  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
33590}
33591
33592# func_lo2o object
33593func_lo2o ()
33594{
33595  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
33596}
33597
33598# func_xform libobj-or-source
33599func_xform ()
33600{
33601  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
33602}
33603
33604# func_arith arithmetic-term...
33605func_arith ()
33606{
33607  func_arith_result=`expr "$@"`
33608}
33609
33610# func_len string
33611# STRING may not start with a hyphen.
33612func_len ()
33613{
33614  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
33615}
33616
33617_LT_EOF
33618esac
33619
33620case $lt_shell_append in
33621  yes)
33622    cat << \_LT_EOF >> "$cfgfile"
33623
33624# func_append var value
33625# Append VALUE to the end of shell variable VAR.
33626func_append ()
33627{
33628  eval "$1+=\$2"
33629}
33630_LT_EOF
33631    ;;
33632  *)
33633    cat << \_LT_EOF >> "$cfgfile"
33634
33635# func_append var value
33636# Append VALUE to the end of shell variable VAR.
33637func_append ()
33638{
33639  eval "$1=\$$1\$2"
33640}
33641
33642_LT_EOF
33643    ;;
33644  esac
33645
33646
33647  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
33648    || (rm -f "$cfgfile"; exit 1)
33649
33650  mv -f "$cfgfile" "$ofile" ||
33651    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33652  chmod +x "$ofile"
33653
33654
33655    cat <<_LT_EOF >> "$ofile"
33656
33657# ### BEGIN LIBTOOL TAG CONFIG: CXX
33658
33659# The linker used to build libraries.
33660LD=$lt_LD_CXX
33661
33662# How to create reloadable object files.
33663reload_flag=$lt_reload_flag_CXX
33664reload_cmds=$lt_reload_cmds_CXX
33665
33666# Commands used to build an old-style archive.
33667old_archive_cmds=$lt_old_archive_cmds_CXX
33668
33669# A language specific compiler.
33670CC=$lt_compiler_CXX
33671
33672# Is the compiler the GNU compiler?
33673with_gcc=$GCC_CXX
33674
33675# Compiler flag to turn off builtin functions.
33676no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33677
33678# How to pass a linker flag through the compiler.
33679wl=$lt_lt_prog_compiler_wl_CXX
33680
33681# Additional compiler flags for building library objects.
33682pic_flag=$lt_lt_prog_compiler_pic_CXX
33683
33684# Compiler flag to prevent dynamic linking.
33685link_static_flag=$lt_lt_prog_compiler_static_CXX
33686
33687# Does compiler simultaneously support -c and -o options?
33688compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33689
33690# Whether or not to add -lc for building shared libraries.
33691build_libtool_need_lc=$archive_cmds_need_lc_CXX
33692
33693# Whether or not to disallow shared libs when runtime libs are static.
33694allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33695
33696# Compiler flag to allow reflexive dlopens.
33697export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33698
33699# Compiler flag to generate shared objects directly from archives.
33700whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33701
33702# Whether the compiler copes with passing no objects directly.
33703compiler_needs_object=$lt_compiler_needs_object_CXX
33704
33705# Create an old-style archive from a shared archive.
33706old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33707
33708# Create a temporary old-style archive to link instead of a shared archive.
33709old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33710
33711# Commands used to build a shared archive.
33712archive_cmds=$lt_archive_cmds_CXX
33713archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33714
33715# Commands used to build a loadable module if different from building
33716# a shared archive.
33717module_cmds=$lt_module_cmds_CXX
33718module_expsym_cmds=$lt_module_expsym_cmds_CXX
33719
33720# Whether we are building with GNU ld or not.
33721with_gnu_ld=$lt_with_gnu_ld_CXX
33722
33723# Flag that allows shared libraries with undefined symbols to be built.
33724allow_undefined_flag=$lt_allow_undefined_flag_CXX
33725
33726# Flag that enforces no undefined symbols.
33727no_undefined_flag=$lt_no_undefined_flag_CXX
33728
33729# Flag to hardcode \$libdir into a binary during linking.
33730# This must work even if \$libdir does not exist
33731hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33732
33733# If ld is used when linking, flag to hardcode \$libdir into a binary
33734# during linking.  This must work even if \$libdir does not exist.
33735hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33736
33737# Whether we need a single "-rpath" flag with a separated argument.
33738hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33739
33740# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33741# DIR into the resulting binary.
33742hardcode_direct=$hardcode_direct_CXX
33743
33744# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33745# DIR into the resulting binary and the resulting library dependency is
33746# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33747# library is relocated.
33748hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33749
33750# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33751# into the resulting binary.
33752hardcode_minus_L=$hardcode_minus_L_CXX
33753
33754# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33755# into the resulting binary.
33756hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33757
33758# Set to "yes" if building a shared library automatically hardcodes DIR
33759# into the library and all subsequent libraries and executables linked
33760# against it.
33761hardcode_automatic=$hardcode_automatic_CXX
33762
33763# Set to yes if linker adds runtime paths of dependent libraries
33764# to runtime path list.
33765inherit_rpath=$inherit_rpath_CXX
33766
33767# Whether libtool must link a program against all its dependency libraries.
33768link_all_deplibs=$link_all_deplibs_CXX
33769
33770# Fix the shell variable \$srcfile for the compiler.
33771fix_srcfile_path=$lt_fix_srcfile_path_CXX
33772
33773# Set to "yes" if exported symbols are required.
33774always_export_symbols=$always_export_symbols_CXX
33775
33776# The commands to list exported symbols.
33777export_symbols_cmds=$lt_export_symbols_cmds_CXX
33778
33779# Symbols that should not be listed in the preloaded symbols.
33780exclude_expsyms=$lt_exclude_expsyms_CXX
33781
33782# Symbols that must always be exported.
33783include_expsyms=$lt_include_expsyms_CXX
33784
33785# Commands necessary for linking programs (against libraries) with templates.
33786prelink_cmds=$lt_prelink_cmds_CXX
33787
33788# Specify filename containing input files.
33789file_list_spec=$lt_file_list_spec_CXX
33790
33791# How to hardcode a shared library path into an executable.
33792hardcode_action=$hardcode_action_CXX
33793
33794# The directories searched by this compiler when creating a shared library.
33795compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33796
33797# Dependencies to place before and after the objects being linked to
33798# create a shared library.
33799predep_objects=$lt_predep_objects_CXX
33800postdep_objects=$lt_postdep_objects_CXX
33801predeps=$lt_predeps_CXX
33802postdeps=$lt_postdeps_CXX
33803
33804# The library search path used internally by the compiler when linking
33805# a shared library.
33806compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33807
33808# ### END LIBTOOL TAG CONFIG: CXX
33809_LT_EOF
33810
33811 ;;
33812    "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
33813    "nm.h":L) echo > stamp-nmh ;;
33814    "gcore":F) chmod +x gcore ;;
33815
33816  esac
33817done # for ac_tag
33818
33819
33820as_fn_exit 0
33821_ACEOF
33822ac_clean_files=$ac_clean_files_save
33823
33824test $ac_write_fail = 0 ||
33825  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33826
33827
33828# configure is writing to config.log, and then calls config.status.
33829# config.status does its own redirection, appending to config.log.
33830# Unfortunately, on DOS this fails, as config.log is still kept open
33831# by configure, so config.status won't be able to write to it; its
33832# output is simply discarded.  So we exec the FD to /dev/null,
33833# effectively closing config.log, so it can be properly (re)opened and
33834# appended to by config.status.  When coming back to configure, we
33835# need to make the FD available again.
33836if test "$no_create" != yes; then
33837  ac_cs_success=:
33838  ac_config_status_args=
33839  test "$silent" = yes &&
33840    ac_config_status_args="$ac_config_status_args --quiet"
33841  exec 5>/dev/null
33842  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33843  exec 5>>config.log
33844  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33845  # would make configure fail if this is the last instruction.
33846  $ac_cs_success || as_fn_exit 1
33847fi
33848
33849#
33850# CONFIG_SUBDIRS section.
33851#
33852if test "$no_recursion" != yes; then
33853
33854  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
33855  # so they do not pile up.
33856  ac_sub_configure_args=
33857  ac_prev=
33858  eval "set x $ac_configure_args"
33859  shift
33860  for ac_arg
33861  do
33862    if test -n "$ac_prev"; then
33863      ac_prev=
33864      continue
33865    fi
33866    case $ac_arg in
33867    -cache-file | --cache-file | --cache-fil | --cache-fi \
33868    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33869      ac_prev=cache_file ;;
33870    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33871    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33872    | --c=*)
33873      ;;
33874    --config-cache | -C)
33875      ;;
33876    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33877      ac_prev=srcdir ;;
33878    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33879      ;;
33880    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33881      ac_prev=prefix ;;
33882    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33883      ;;
33884    --disable-option-checking)
33885      ;;
33886    *)
33887      case $ac_arg in
33888      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33889      esac
33890      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
33891    esac
33892  done
33893
33894  # Always prepend --prefix to ensure using the same prefix
33895  # in subdir configurations.
33896  ac_arg="--prefix=$prefix"
33897  case $ac_arg in
33898  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33899  esac
33900  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33901
33902  # Pass --silent
33903  if test "$silent" = yes; then
33904    ac_sub_configure_args="--silent $ac_sub_configure_args"
33905  fi
33906
33907  # Always prepend --disable-option-checking to silence warnings, since
33908  # different subdirs can have different --enable and --with options.
33909  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
33910
33911  ac_popdir=`pwd`
33912  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33913
33914    # Do not complain, so a configure script can configure whichever
33915    # parts of a large source tree are present.
33916    test -d "$srcdir/$ac_dir" || continue
33917
33918    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33919    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
33920    $as_echo "$ac_msg" >&6
33921    as_dir="$ac_dir"; as_fn_mkdir_p
33922    ac_builddir=.
33923
33924case "$ac_dir" in
33925.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33926*)
33927  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33928  # A ".." for each directory in $ac_dir_suffix.
33929  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33930  case $ac_top_builddir_sub in
33931  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33932  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33933  esac ;;
33934esac
33935ac_abs_top_builddir=$ac_pwd
33936ac_abs_builddir=$ac_pwd$ac_dir_suffix
33937# for backward compatibility:
33938ac_top_builddir=$ac_top_build_prefix
33939
33940case $srcdir in
33941  .)  # We are building in place.
33942    ac_srcdir=.
33943    ac_top_srcdir=$ac_top_builddir_sub
33944    ac_abs_top_srcdir=$ac_pwd ;;
33945  [\\/]* | ?:[\\/]* )  # Absolute name.
33946    ac_srcdir=$srcdir$ac_dir_suffix;
33947    ac_top_srcdir=$srcdir
33948    ac_abs_top_srcdir=$srcdir ;;
33949  *) # Relative name.
33950    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33951    ac_top_srcdir=$ac_top_build_prefix$srcdir
33952    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33953esac
33954ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33955
33956
33957    cd "$ac_dir"
33958
33959    # Check for guested configure; otherwise get Cygnus style configure.
33960    if test -f "$ac_srcdir/configure.gnu"; then
33961      ac_sub_configure=$ac_srcdir/configure.gnu
33962    elif test -f "$ac_srcdir/configure"; then
33963      ac_sub_configure=$ac_srcdir/configure
33964    elif test -f "$ac_srcdir/configure.in"; then
33965      # This should be Cygnus configure.
33966      ac_sub_configure=$ac_aux_dir/configure
33967    else
33968      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
33969$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33970      ac_sub_configure=
33971    fi
33972
33973    # The recursion is here.
33974    if test -n "$ac_sub_configure"; then
33975      # Make the cache file name correct relative to the subdirectory.
33976      case $cache_file in
33977      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
33978      *) # Relative name.
33979	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
33980      esac
33981
33982      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
33983$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
33984      # The eval makes quoting arguments work.
33985      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33986	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
33987	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
33988    fi
33989
33990    cd "$ac_popdir"
33991  done
33992fi
33993if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33994  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33995$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33996fi
33997
33998