]> Git Repo - binutils.git/blob - gdb/configure
Automatic date update in version.in
[binutils.git] / gdb / configure
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
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if 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
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_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.
43 if 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 --'
47 elif (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'
50 else
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'
70 fi
71
72 # The user is always right.
73 if 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   }
79 fi
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.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
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
100 IFS=$as_save_IFS
101
102      ;;
103 esac
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.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
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.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export 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.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $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
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if 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
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -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
199 test \$(( 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
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
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
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
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
242 fi; }
243 IFS=$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.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $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
265 exit 255
266 fi
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 [email protected] 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
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_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.
313 as_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.
323 as_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.
371 as_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.
381 if (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   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # 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.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # 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.
416 as_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
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_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.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_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
508 ECHO_C= ECHO_N= ECHO_T=
509 case `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';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (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
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_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.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 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.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 ac_unique_file="main.c"
596 # Factoring default headers for most tests.
597 ac_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
632 enable_option_checking=no
633 ac_header_list=
634 ac_subst_vars='LTLIBOBJS
635 LIBOBJS
636 GCORE_TRANSFORM_NAME
637 GDB_TRANSFORM_NAME
638 XSLTPROC
639 NM_H
640 GDB_NM_FILE
641 LTLIBXXHASH
642 LIBXXHASH
643 HAVE_LIBXXHASH
644 CTF_DEPS
645 LIBCTF
646 LTLIBBABELTRACE
647 LIBBABELTRACE
648 HAVE_LIBBABELTRACE
649 LIBBACKTRACE_LIB
650 LIBBACKTRACE_INC
651 HAVE_NATIVE_GCORE_HOST
652 NAT_GENERATED_FILES
653 XM_CLIBS
654 MH_CFLAGS
655 LOADLIBES
656 NAT_CDEPS
657 NATDEPFILES
658 NAT_FILE
659 target_subdir
660 CONFIG_UNINSTALL
661 CONFIG_INSTALL
662 CONFIG_CLEAN
663 CONFIG_ALL
664 CONFIG_SRCS
665 CONFIG_DEPS
666 CONFIG_OBS
667 PROFILE_CFLAGS
668 ENABLE_CFLAGS
669 SIM_OBS
670 SIM
671 XMKMF
672 GDBTK_SRC_DIR
673 GDBTK_CFLAGS
674 GDBTKLIBS
675 X_LIBS
676 X_LDFLAGS
677 X_CFLAGS
678 TK_XINCLUDES
679 TK_DEPS
680 TK_LIBRARY
681 TK_INCLUDE
682 TK_STUB_LIB_SPEC
683 TK_STUB_LIB_FLAG
684 TK_STUB_LIB_FILE
685 TK_LIB_SPEC
686 TK_LIB_FLAG
687 TK_LIB_FILE
688 TK_SRC_DIR
689 TK_BIN_DIR
690 TK_VERSION
691 TCL_DEPS
692 TCL_LIBRARY
693 TCL_INCLUDE
694 TCL_STUB_LIB_SPEC
695 TCL_STUB_LIB_FLAG
696 TCL_STUB_LIB_FILE
697 TCL_LIB_SPEC
698 TCL_LIB_FLAG
699 TCL_LIB_FILE
700 TCL_SRC_DIR
701 TCL_BIN_DIR
702 TCL_PATCH_LEVEL
703 TCL_VERSION
704 WIN32LDAPP
705 WIN32LIBS
706 GUI_CFLAGS_X
707 LIBGUI
708 LTLIBLZMA
709 LIBLZMA
710 HAVE_LIBLZMA
711 SER_HARDWIRE
712 WERROR_CFLAGS
713 WARN_CFLAGS
714 SYSTEM_GDBINIT_DIR
715 SYSTEM_GDBINIT
716 TARGET_SYSTEM_ROOT
717 CONFIG_LDFLAGS
718 RDYNAMIC
719 LTLIBIPT
720 LIBIPT
721 HAVE_LIBIPT
722 PTHREAD_CFLAGS
723 PTHREAD_LIBS
724 PTHREAD_CC
725 ax_pthread_config
726 ALLOCA
727 SRCHIGH_CFLAGS
728 SRCHIGH_LIBS
729 HAVE_GUILE_FALSE
730 HAVE_GUILE_TRUE
731 GUILE_LIBS
732 GUILE_CPPFLAGS
733 GUILD_TARGET_FLAG
734 GUILD
735 pkg_config_prog_path
736 HAVE_PYTHON_FALSE
737 HAVE_PYTHON_TRUE
738 PYTHON_LIBS
739 PYTHON_CPPFLAGS
740 PYTHON_CFLAGS
741 python_prog_path
742 LTLIBMPFR
743 LIBMPFR
744 HAVE_LIBMPFR
745 LTLIBGMP
746 LIBGMP
747 HAVE_LIBGMP
748 LTLIBEXPAT
749 LIBEXPAT
750 HAVE_LIBEXPAT
751 JIT_READER_DIR
752 TARGET_PTR
753 READLINE_TEXI_INCFLAG
754 READLINE_CFLAGS
755 READLINE_DEPS
756 READLINE
757 LTLIBICONV
758 LIBICONV
759 ZSTD_LIBS
760 ZSTD_CFLAGS
761 zlibinc
762 zlibdir
763 MIG
764 WINDRES
765 DLLTOOL
766 YFLAGS
767 YACC
768 INSTALL_DATA
769 INSTALL_SCRIPT
770 INSTALL_PROGRAM
771 REPORT_BUGS_TEXI
772 REPORT_BUGS_TO
773 PKGVERSION
774 CODESIGN_CERT
775 DEBUGINFOD_LIBS
776 DEBUGINFOD_CFLAGS
777 PKG_CONFIG_LIBDIR
778 PKG_CONFIG_PATH
779 PKG_CONFIG
780 HAVE_NATIVE_GCORE_TARGET
781 TARGET_OBS
782 ENABLE_BFD_64_BIT_FALSE
783 ENABLE_BFD_64_BIT_TRUE
784 subdirs
785 GDB_DATADIR
786 DEBUGDIR
787 MAKEINFO_EXTRA_FLAGS
788 MAKEINFOFLAGS
789 MAKEINFO
790 PACKAGE
791 CATOBJEXT
792 GENCAT
793 INSTOBJEXT
794 DATADIRNAME
795 CATALOGS
796 POSUB
797 GMSGFMT
798 XGETTEXT
799 INCINTL
800 LIBINTL_DEP
801 LIBINTL
802 USE_NLS
803 CCDEPMODE
804 DEPDIR
805 am__leading_dot
806 CXX_DIALECT
807 HAVE_CXX11
808 CXXCPP
809 OTOOL64
810 OTOOL
811 LIPO
812 NMEDIT
813 DSYMUTIL
814 AWK
815 RANLIB
816 AR
817 OBJDUMP
818 LN_S
819 NM
820 ac_ct_DUMPBIN
821 DUMPBIN
822 LD
823 FGREP
824 SED
825 LIBTOOL
826 target_noncanonical
827 INSTALL_STRIP_PROGRAM
828 STRIP
829 install_sh
830 LARGEFILE_CPPFLAGS
831 target_os
832 target_vendor
833 target_cpu
834 target
835 host_os
836 host_vendor
837 host_cpu
838 host
839 build_os
840 build_vendor
841 build_cpu
842 build
843 EGREP
844 GREP
845 CPP
846 ac_ct_CXX
847 CXXFLAGS
848 CXX
849 OBJEXT
850 EXEEXT
851 ac_ct_CC
852 CPPFLAGS
853 LDFLAGS
854 CFLAGS
855 CC
856 MAINT
857 MAINTAINER_MODE_FALSE
858 MAINTAINER_MODE_TRUE
859 target_alias
860 host_alias
861 build_alias
862 LIBS
863 ECHO_T
864 ECHO_N
865 ECHO_C
866 DEFS
867 mandir
868 localedir
869 libdir
870 psdir
871 pdfdir
872 dvidir
873 htmldir
874 infodir
875 docdir
876 oldincludedir
877 includedir
878 localstatedir
879 sharedstatedir
880 sysconfdir
881 datadir
882 datarootdir
883 libexecdir
884 sbindir
885 bindir
886 program_transform_name
887 prefix
888 exec_prefix
889 PACKAGE_URL
890 PACKAGE_BUGREPORT
891 PACKAGE_STRING
892 PACKAGE_VERSION
893 PACKAGE_TARNAME
894 PACKAGE_NAME
895 PATH_SEPARATOR
896 SHELL'
897 ac_subst_files='nat_makefile_frag'
898 ac_user_opts='
899 enable_option_checking
900 enable_maintainer_mode
901 enable_plugins
902 enable_largefile
903 enable_shared
904 enable_static
905 with_pic
906 enable_fast_install
907 with_gnu_ld
908 enable_libtool_lock
909 with_separate_debug_dir
910 with_gdb_datadir
911 with_relocated_sources
912 with_auto_load_dir
913 with_auto_load_safe_path
914 enable_targets
915 enable_64_bit_bfd
916 enable_gdbmi
917 enable_tui
918 enable_gdbtk
919 with_debuginfod
920 with_libunwind_ia64
921 with_curses
922 enable_profiling
923 enable_codesign
924 with_pkgversion
925 with_bugurl
926 with_system_zlib
927 with_zstd
928 enable_rpath
929 with_libiconv_prefix
930 with_libiconv_type
931 with_iconv_bin
932 with_system_readline
933 with_jit_reader_dir
934 with_expat
935 with_libexpat_prefix
936 with_libexpat_type
937 with_libgmp_prefix
938 with_libgmp_type
939 with_mpfr
940 with_libmpfr_prefix
941 with_libmpfr_type
942 with_python
943 with_python_libdir
944 with_guile
945 enable_source_highlight
946 enable_threading
947 with_intel_pt
948 with_libipt_prefix
949 with_libipt_type
950 with_sysroot
951 with_system_gdbinit
952 with_system_gdbinit_dir
953 enable_werror
954 enable_build_warnings
955 enable_gdb_build_warnings
956 enable_ubsan
957 with_lzma
958 with_liblzma_prefix
959 with_liblzma_type
960 with_tcl
961 with_tk
962 with_x
963 enable_sim
964 enable_libbacktrace
965 with_babeltrace
966 with_libbabeltrace_prefix
967 with_libbabeltrace_type
968 with_xxhash
969 enable_libctf
970 with_libxxhash_prefix
971 with_libxxhash_type
972 enable_unit_tests
973 '
974       ac_precious_vars='build_alias
975 host_alias
976 target_alias
977 CC
978 CFLAGS
979 LDFLAGS
980 LIBS
981 CPPFLAGS
982 CXX
983 CXXFLAGS
984 CCC
985 CPP
986 CXXCPP
987 MAKEINFO
988 MAKEINFOFLAGS
989 PKG_CONFIG
990 PKG_CONFIG_PATH
991 PKG_CONFIG_LIBDIR
992 DEBUGINFOD_CFLAGS
993 DEBUGINFOD_LIBS
994 YACC
995 YFLAGS
996 ZSTD_CFLAGS
997 ZSTD_LIBS
998 XMKMF'
999 ac_subdirs_all='testsuite
1000 gdbtk'
1001
1002 # Initialize some variables set by options.
1003 ac_init_help=
1004 ac_init_version=false
1005 ac_unrecognized_opts=
1006 ac_unrecognized_sep=
1007 # The variables have the same names as the options, with
1008 # dashes changed to underlines.
1009 cache_file=/dev/null
1010 exec_prefix=NONE
1011 no_create=
1012 no_recursion=
1013 prefix=NONE
1014 program_prefix=NONE
1015 program_suffix=NONE
1016 program_transform_name=s,x,x,
1017 silent=
1018 site=
1019 srcdir=
1020 verbose=
1021 x_includes=NONE
1022 x_libraries=NONE
1023
1024 # Installation directory options.
1025 # These are left unexpanded so users can "make install exec_prefix=/foo"
1026 # and all the variables that are supposed to be based on exec_prefix
1027 # by default will actually change.
1028 # Use braces instead of parens because sh, perl, etc. also accept them.
1029 # (The list follows the same order as the GNU Coding Standards.)
1030 bindir='${exec_prefix}/bin'
1031 sbindir='${exec_prefix}/sbin'
1032 libexecdir='${exec_prefix}/libexec'
1033 datarootdir='${prefix}/share'
1034 datadir='${datarootdir}'
1035 sysconfdir='${prefix}/etc'
1036 sharedstatedir='${prefix}/com'
1037 localstatedir='${prefix}/var'
1038 includedir='${prefix}/include'
1039 oldincludedir='/usr/include'
1040 docdir='${datarootdir}/doc/${PACKAGE}'
1041 infodir='${datarootdir}/info'
1042 htmldir='${docdir}'
1043 dvidir='${docdir}'
1044 pdfdir='${docdir}'
1045 psdir='${docdir}'
1046 libdir='${exec_prefix}/lib'
1047 localedir='${datarootdir}/locale'
1048 mandir='${datarootdir}/man'
1049
1050 ac_prev=
1051 ac_dashdash=
1052 for ac_option
1053 do
1054   # If the previous option needs an argument, assign it.
1055   if test -n "$ac_prev"; then
1056     eval $ac_prev=\$ac_option
1057     ac_prev=
1058     continue
1059   fi
1060
1061   case $ac_option in
1062   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1063   *=)   ac_optarg= ;;
1064   *)    ac_optarg=yes ;;
1065   esac
1066
1067   # Accept the important Cygnus configure options, so we can diagnose typos.
1068
1069   case $ac_dashdash$ac_option in
1070   --)
1071     ac_dashdash=yes ;;
1072
1073   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1074     ac_prev=bindir ;;
1075   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1076     bindir=$ac_optarg ;;
1077
1078   -build | --build | --buil | --bui | --bu)
1079     ac_prev=build_alias ;;
1080   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1081     build_alias=$ac_optarg ;;
1082
1083   -cache-file | --cache-file | --cache-fil | --cache-fi \
1084   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1085     ac_prev=cache_file ;;
1086   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1087   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1088     cache_file=$ac_optarg ;;
1089
1090   --config-cache | -C)
1091     cache_file=config.cache ;;
1092
1093   -datadir | --datadir | --datadi | --datad)
1094     ac_prev=datadir ;;
1095   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1096     datadir=$ac_optarg ;;
1097
1098   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1099   | --dataroo | --dataro | --datar)
1100     ac_prev=datarootdir ;;
1101   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1102   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1103     datarootdir=$ac_optarg ;;
1104
1105   -disable-* | --disable-*)
1106     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1107     # Reject names that are not valid shell variable names.
1108     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109       as_fn_error $? "invalid feature name: $ac_useropt"
1110     ac_useropt_orig=$ac_useropt
1111     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112     case $ac_user_opts in
1113       *"
1114 "enable_$ac_useropt"
1115 "*) ;;
1116       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1117          ac_unrecognized_sep=', ';;
1118     esac
1119     eval enable_$ac_useropt=no ;;
1120
1121   -docdir | --docdir | --docdi | --doc | --do)
1122     ac_prev=docdir ;;
1123   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1124     docdir=$ac_optarg ;;
1125
1126   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1127     ac_prev=dvidir ;;
1128   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1129     dvidir=$ac_optarg ;;
1130
1131   -enable-* | --enable-*)
1132     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1133     # Reject names that are not valid shell variable names.
1134     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135       as_fn_error $? "invalid feature name: $ac_useropt"
1136     ac_useropt_orig=$ac_useropt
1137     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138     case $ac_user_opts in
1139       *"
1140 "enable_$ac_useropt"
1141 "*) ;;
1142       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1143          ac_unrecognized_sep=', ';;
1144     esac
1145     eval enable_$ac_useropt=\$ac_optarg ;;
1146
1147   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1148   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1149   | --exec | --exe | --ex)
1150     ac_prev=exec_prefix ;;
1151   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1152   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1153   | --exec=* | --exe=* | --ex=*)
1154     exec_prefix=$ac_optarg ;;
1155
1156   -gas | --gas | --ga | --g)
1157     # Obsolete; use --with-gas.
1158     with_gas=yes ;;
1159
1160   -help | --help | --hel | --he | -h)
1161     ac_init_help=long ;;
1162   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1163     ac_init_help=recursive ;;
1164   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1165     ac_init_help=short ;;
1166
1167   -host | --host | --hos | --ho)
1168     ac_prev=host_alias ;;
1169   -host=* | --host=* | --hos=* | --ho=*)
1170     host_alias=$ac_optarg ;;
1171
1172   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1173     ac_prev=htmldir ;;
1174   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1175   | --ht=*)
1176     htmldir=$ac_optarg ;;
1177
1178   -includedir | --includedir | --includedi | --included | --include \
1179   | --includ | --inclu | --incl | --inc)
1180     ac_prev=includedir ;;
1181   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1182   | --includ=* | --inclu=* | --incl=* | --inc=*)
1183     includedir=$ac_optarg ;;
1184
1185   -infodir | --infodir | --infodi | --infod | --info | --inf)
1186     ac_prev=infodir ;;
1187   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1188     infodir=$ac_optarg ;;
1189
1190   -libdir | --libdir | --libdi | --libd)
1191     ac_prev=libdir ;;
1192   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1193     libdir=$ac_optarg ;;
1194
1195   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1196   | --libexe | --libex | --libe)
1197     ac_prev=libexecdir ;;
1198   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1199   | --libexe=* | --libex=* | --libe=*)
1200     libexecdir=$ac_optarg ;;
1201
1202   -localedir | --localedir | --localedi | --localed | --locale)
1203     ac_prev=localedir ;;
1204   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1205     localedir=$ac_optarg ;;
1206
1207   -localstatedir | --localstatedir | --localstatedi | --localstated \
1208   | --localstate | --localstat | --localsta | --localst | --locals)
1209     ac_prev=localstatedir ;;
1210   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1211   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1212     localstatedir=$ac_optarg ;;
1213
1214   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1215     ac_prev=mandir ;;
1216   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1217     mandir=$ac_optarg ;;
1218
1219   -nfp | --nfp | --nf)
1220     # Obsolete; use --without-fp.
1221     with_fp=no ;;
1222
1223   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1224   | --no-cr | --no-c | -n)
1225     no_create=yes ;;
1226
1227   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1228   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1229     no_recursion=yes ;;
1230
1231   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1232   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1233   | --oldin | --oldi | --old | --ol | --o)
1234     ac_prev=oldincludedir ;;
1235   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1236   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1237   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1238     oldincludedir=$ac_optarg ;;
1239
1240   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1241     ac_prev=prefix ;;
1242   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1243     prefix=$ac_optarg ;;
1244
1245   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1246   | --program-pre | --program-pr | --program-p)
1247     ac_prev=program_prefix ;;
1248   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1249   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1250     program_prefix=$ac_optarg ;;
1251
1252   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1253   | --program-suf | --program-su | --program-s)
1254     ac_prev=program_suffix ;;
1255   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1256   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1257     program_suffix=$ac_optarg ;;
1258
1259   -program-transform-name | --program-transform-name \
1260   | --program-transform-nam | --program-transform-na \
1261   | --program-transform-n | --program-transform- \
1262   | --program-transform | --program-transfor \
1263   | --program-transfo | --program-transf \
1264   | --program-trans | --program-tran \
1265   | --progr-tra | --program-tr | --program-t)
1266     ac_prev=program_transform_name ;;
1267   -program-transform-name=* | --program-transform-name=* \
1268   | --program-transform-nam=* | --program-transform-na=* \
1269   | --program-transform-n=* | --program-transform-=* \
1270   | --program-transform=* | --program-transfor=* \
1271   | --program-transfo=* | --program-transf=* \
1272   | --program-trans=* | --program-tran=* \
1273   | --progr-tra=* | --program-tr=* | --program-t=*)
1274     program_transform_name=$ac_optarg ;;
1275
1276   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1277     ac_prev=pdfdir ;;
1278   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1279     pdfdir=$ac_optarg ;;
1280
1281   -psdir | --psdir | --psdi | --psd | --ps)
1282     ac_prev=psdir ;;
1283   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1284     psdir=$ac_optarg ;;
1285
1286   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1287   | -silent | --silent | --silen | --sile | --sil)
1288     silent=yes ;;
1289
1290   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1291     ac_prev=sbindir ;;
1292   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1293   | --sbi=* | --sb=*)
1294     sbindir=$ac_optarg ;;
1295
1296   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1297   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1298   | --sharedst | --shareds | --shared | --share | --shar \
1299   | --sha | --sh)
1300     ac_prev=sharedstatedir ;;
1301   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1302   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1303   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1304   | --sha=* | --sh=*)
1305     sharedstatedir=$ac_optarg ;;
1306
1307   -site | --site | --sit)
1308     ac_prev=site ;;
1309   -site=* | --site=* | --sit=*)
1310     site=$ac_optarg ;;
1311
1312   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1313     ac_prev=srcdir ;;
1314   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1315     srcdir=$ac_optarg ;;
1316
1317   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1318   | --syscon | --sysco | --sysc | --sys | --sy)
1319     ac_prev=sysconfdir ;;
1320   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1321   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1322     sysconfdir=$ac_optarg ;;
1323
1324   -target | --target | --targe | --targ | --tar | --ta | --t)
1325     ac_prev=target_alias ;;
1326   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1327     target_alias=$ac_optarg ;;
1328
1329   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1330     verbose=yes ;;
1331
1332   -version | --version | --versio | --versi | --vers | -V)
1333     ac_init_version=: ;;
1334
1335   -with-* | --with-*)
1336     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1337     # Reject names that are not valid shell variable names.
1338     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1339       as_fn_error $? "invalid package name: $ac_useropt"
1340     ac_useropt_orig=$ac_useropt
1341     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342     case $ac_user_opts in
1343       *"
1344 "with_$ac_useropt"
1345 "*) ;;
1346       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1347          ac_unrecognized_sep=', ';;
1348     esac
1349     eval with_$ac_useropt=\$ac_optarg ;;
1350
1351   -without-* | --without-*)
1352     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1353     # Reject names that are not valid shell variable names.
1354     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1355       as_fn_error $? "invalid package name: $ac_useropt"
1356     ac_useropt_orig=$ac_useropt
1357     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358     case $ac_user_opts in
1359       *"
1360 "with_$ac_useropt"
1361 "*) ;;
1362       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1363          ac_unrecognized_sep=', ';;
1364     esac
1365     eval with_$ac_useropt=no ;;
1366
1367   --x)
1368     # Obsolete; use --with-x.
1369     with_x=yes ;;
1370
1371   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1372   | --x-incl | --x-inc | --x-in | --x-i)
1373     ac_prev=x_includes ;;
1374   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1375   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1376     x_includes=$ac_optarg ;;
1377
1378   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1379   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1380     ac_prev=x_libraries ;;
1381   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1382   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1383     x_libraries=$ac_optarg ;;
1384
1385   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1386 Try \`$0 --help' for more information"
1387     ;;
1388
1389   *=*)
1390     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1391     # Reject names that are not valid shell variable names.
1392     case $ac_envvar in #(
1393       '' | [0-9]* | *[!_$as_cr_alnum]* )
1394       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1395     esac
1396     eval $ac_envvar=\$ac_optarg
1397     export $ac_envvar ;;
1398
1399   *)
1400     # FIXME: should be removed in autoconf 3.0.
1401     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1402     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1403       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1404     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1405     ;;
1406
1407   esac
1408 done
1409
1410 if test -n "$ac_prev"; then
1411   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1412   as_fn_error $? "missing argument to $ac_option"
1413 fi
1414
1415 if test -n "$ac_unrecognized_opts"; then
1416   case $enable_option_checking in
1417     no) ;;
1418     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1419     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1420   esac
1421 fi
1422
1423 # Check all directory arguments for consistency.
1424 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1425                 datadir sysconfdir sharedstatedir localstatedir includedir \
1426                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1427                 libdir localedir mandir
1428 do
1429   eval ac_val=\$$ac_var
1430   # Remove trailing slashes.
1431   case $ac_val in
1432     */ )
1433       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1434       eval $ac_var=\$ac_val;;
1435   esac
1436   # Be sure to have absolute directory names.
1437   case $ac_val in
1438     [\\/$]* | ?:[\\/]* )  continue;;
1439     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1440   esac
1441   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1442 done
1443
1444 # There might be people who depend on the old broken behavior: `$host'
1445 # used to hold the argument of --host etc.
1446 # FIXME: To remove some day.
1447 build=$build_alias
1448 host=$host_alias
1449 target=$target_alias
1450
1451 # FIXME: To remove some day.
1452 if test "x$host_alias" != x; then
1453   if test "x$build_alias" = x; then
1454     cross_compiling=maybe
1455   elif test "x$build_alias" != "x$host_alias"; then
1456     cross_compiling=yes
1457   fi
1458 fi
1459
1460 ac_tool_prefix=
1461 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1462
1463 test "$silent" = yes && exec 6>/dev/null
1464
1465
1466 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1467 ac_ls_di=`ls -di .` &&
1468 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1469   as_fn_error $? "working directory cannot be determined"
1470 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1471   as_fn_error $? "pwd does not report name of working directory"
1472
1473
1474 # Find the source files, if location was not specified.
1475 if test -z "$srcdir"; then
1476   ac_srcdir_defaulted=yes
1477   # Try the directory containing this script, then the parent directory.
1478   ac_confdir=`$as_dirname -- "$as_myself" ||
1479 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1480          X"$as_myself" : 'X\(//\)[^/]' \| \
1481          X"$as_myself" : 'X\(//\)$' \| \
1482          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1483 $as_echo X"$as_myself" |
1484     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1485             s//\1/
1486             q
1487           }
1488           /^X\(\/\/\)[^/].*/{
1489             s//\1/
1490             q
1491           }
1492           /^X\(\/\/\)$/{
1493             s//\1/
1494             q
1495           }
1496           /^X\(\/\).*/{
1497             s//\1/
1498             q
1499           }
1500           s/.*/./; q'`
1501   srcdir=$ac_confdir
1502   if test ! -r "$srcdir/$ac_unique_file"; then
1503     srcdir=..
1504   fi
1505 else
1506   ac_srcdir_defaulted=no
1507 fi
1508 if test ! -r "$srcdir/$ac_unique_file"; then
1509   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1510   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1511 fi
1512 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1513 ac_abs_confdir=`(
1514         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1515         pwd)`
1516 # When building in place, set srcdir=.
1517 if test "$ac_abs_confdir" = "$ac_pwd"; then
1518   srcdir=.
1519 fi
1520 # Remove unnecessary trailing slashes from srcdir.
1521 # Double slashes in file names in object file debugging info
1522 # mess up M-x gdb in Emacs.
1523 case $srcdir in
1524 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1525 esac
1526 for ac_var in $ac_precious_vars; do
1527   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1528   eval ac_env_${ac_var}_value=\$${ac_var}
1529   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1530   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1531 done
1532
1533 #
1534 # Report the --help message.
1535 #
1536 if test "$ac_init_help" = "long"; then
1537   # Omit some internal or obsolete options to make the list less imposing.
1538   # This message is too long to be a string in the A/UX 3.1 sh.
1539   cat <<_ACEOF
1540 \`configure' configures this package to adapt to many kinds of systems.
1541
1542 Usage: $0 [OPTION]... [VAR=VALUE]...
1543
1544 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1545 VAR=VALUE.  See below for descriptions of some of the useful variables.
1546
1547 Defaults for the options are specified in brackets.
1548
1549 Configuration:
1550   -h, --help              display this help and exit
1551       --help=short        display options specific to this package
1552       --help=recursive    display the short help of all the included packages
1553   -V, --version           display version information and exit
1554   -q, --quiet, --silent   do not print \`checking ...' messages
1555       --cache-file=FILE   cache test results in FILE [disabled]
1556   -C, --config-cache      alias for \`--cache-file=config.cache'
1557   -n, --no-create         do not create output files
1558       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1559
1560 Installation directories:
1561   --prefix=PREFIX         install architecture-independent files in PREFIX
1562                           [$ac_default_prefix]
1563   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1564                           [PREFIX]
1565
1566 By default, \`make install' will install all the files in
1567 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1568 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1569 for instance \`--prefix=\$HOME'.
1570
1571 For better control, use the options below.
1572
1573 Fine tuning of the installation directories:
1574   --bindir=DIR            user executables [EPREFIX/bin]
1575   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1576   --libexecdir=DIR        program executables [EPREFIX/libexec]
1577   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1578   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1579   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1580   --libdir=DIR            object code libraries [EPREFIX/lib]
1581   --includedir=DIR        C header files [PREFIX/include]
1582   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1583   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1584   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1585   --infodir=DIR           info documentation [DATAROOTDIR/info]
1586   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1587   --mandir=DIR            man documentation [DATAROOTDIR/man]
1588   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1589   --htmldir=DIR           html documentation [DOCDIR]
1590   --dvidir=DIR            dvi documentation [DOCDIR]
1591   --pdfdir=DIR            pdf documentation [DOCDIR]
1592   --psdir=DIR             ps documentation [DOCDIR]
1593 _ACEOF
1594
1595   cat <<\_ACEOF
1596
1597 Program names:
1598   --program-prefix=PREFIX            prepend PREFIX to installed program names
1599   --program-suffix=SUFFIX            append SUFFIX to installed program names
1600   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1601
1602 X features:
1603   --x-includes=DIR    X include files are in DIR
1604   --x-libraries=DIR   X library files are in DIR
1605
1606 System types:
1607   --build=BUILD     configure for building on BUILD [guessed]
1608   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1609   --target=TARGET   configure for building compilers for TARGET [HOST]
1610 _ACEOF
1611 fi
1612
1613 if test -n "$ac_init_help"; then
1614
1615   cat <<\_ACEOF
1616
1617 Optional Features:
1618   --disable-option-checking  ignore unrecognized --enable/--with options
1619   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1620   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1621   --enable-maintainer-mode
1622                           enable make rules and dependencies not useful (and
1623                           sometimes confusing) to the casual installer
1624   --enable-plugins        Enable support for plugins
1625   --disable-largefile     omit support for large files
1626   --enable-shared[=PKGS]  build shared libraries [default=yes]
1627   --enable-static[=PKGS]  build static libraries [default=yes]
1628   --enable-fast-install[=PKGS]
1629                           optimize for fast installation [default=yes]
1630   --disable-libtool-lock  avoid locking (might break parallel builds)
1631   --enable-targets=TARGETS
1632                           alternative target configurations
1633   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1634   --disable-gdbmi         disable machine-interface (MI)
1635   --enable-tui            enable full-screen terminal user interface (TUI)
1636   --enable-gdbtk          enable gdbtk graphical user interface (GUI)
1637   --enable-profiling      enable profiling of GDB
1638   --enable-codesign=CERT  sign gdb with 'codesign -s CERT'
1639   --disable-rpath         do not hardcode runtime library paths
1640   --enable-source-highlight
1641                           enable source-highlight for source listings
1642   --enable-threading      include support for parallel processing of data
1643                           (yes/no)
1644   --enable-werror         treat compile warnings as errors
1645   --enable-build-warnings enable build-time compiler warnings if gcc is used
1646   --enable-gdb-build-warnings
1647                           enable GDB specific build-time compiler warnings if
1648                           gcc is used
1649   --enable-ubsan          enable undefined behavior sanitizer (auto/yes/no)
1650   --enable-sim            link gdb with simulator
1651   --enable-libbacktrace   use libbacktrace to write a backtrace after a fatal
1652                           signal.
1653   --enable-libctf         Handle .ctf type-info sections [default=yes]
1654   --enable-unit-tests     Enable the inclusion of unit tests when compiling
1655                           GDB
1656
1657 Optional Packages:
1658   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1659   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1660   --with-pic              try to use only PIC/non-PIC objects [default=use
1661                           both]
1662   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1663   --with-separate-debug-dir=PATH
1664                           look for global separate debug info in this path
1665                           [LIBDIR/debug]
1666   --with-gdb-datadir=PATH look for global separate data files in this path
1667                           [DATADIR/gdb]
1668   --with-relocated-sources=PATH
1669                           automatically relocate this path for source files
1670   --with-auto-load-dir=PATH
1671                           directories from which to load auto-loaded scripts
1672                           [$debugdir:$datadir/auto-load]
1673   --with-auto-load-safe-path=PATH
1674                           directories safe to hold auto-loaded files
1675                           [--with-auto-load-dir]
1676   --without-auto-load-safe-path
1677                           do not restrict auto-loaded files locations
1678   --with-debuginfod       Enable debuginfo lookups with debuginfod
1679                           (auto/yes/no)
1680   --with-libunwind-ia64   use libunwind frame unwinding for ia64 targets
1681   --with-curses           use the curses library instead of the termcap
1682                           library
1683   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
1684   --with-bugurl=URL       Direct users to URL to report a bug
1685   --with-system-zlib      use installed libz
1686   --with-zstd             support zstd compressed debug sections
1687                           (default=auto)
1688   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1689   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1690   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1691   --with-libiconv-type=TYPE     type of library to search for (auto/static/shared)
1692   --with-iconv-bin=PATH   specify where to find the iconv program
1693   --with-system-readline  use installed readline library
1694   --with-jit-reader-dir=PATH
1695                           directory to load the JIT readers from
1696   --with-expat            include expat support (auto/yes/no)
1697   --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
1698   --without-libexpat-prefix     don't search for libexpat in includedir and libdir
1699   --with-libexpat-type=TYPE     type of library to search for (auto/static/shared)
1700   --with-libgmp-prefix[=DIR]  search for libgmp in DIR/include and DIR/lib
1701   --without-libgmp-prefix     don't search for libgmp in includedir and libdir
1702   --with-libgmp-type=TYPE     type of library to search for (auto/static/shared)
1703   --with-mpfr             include MPFR support (auto/yes/no)
1704   --with-libmpfr-prefix[=DIR]  search for libmpfr in DIR/include and DIR/lib
1705   --without-libmpfr-prefix     don't search for libmpfr in includedir and libdir
1706   --with-libmpfr-type=TYPE     type of library to search for (auto/static/shared)
1707   --with-python[=PYTHON]  include python support
1708                           (auto/yes/no/<python-program>)
1709   --with-python-libdir[=DIR]
1710                           search for python's libraries in DIR
1711   --with-guile[=GUILE]    include guile support
1712                           (auto/yes/no/<guile-version>/<pkg-config-program>)
1713   --with-intel-pt         include Intel Processor Trace support (auto/yes/no)
1714   --with-libipt-prefix[=DIR]  search for libipt in DIR/include and DIR/lib
1715   --without-libipt-prefix     don't search for libipt in includedir and libdir
1716   --with-libipt-type=TYPE     type of library to search for (auto/static/shared)
1717   --with-sysroot[=DIR]    search for usr/lib et al within DIR
1718   --with-system-gdbinit=PATH
1719                           automatically load a system-wide gdbinit file
1720   --with-system-gdbinit-dir=PATH
1721                           automatically load system-wide gdbinit files from
1722                           this directory
1723   --with-lzma             support lzma compression (auto/yes/no)
1724   --with-liblzma-prefix[=DIR]  search for liblzma in DIR/include and DIR/lib
1725   --without-liblzma-prefix     don't search for liblzma in includedir and libdir
1726   --with-liblzma-type=TYPE     type of library to search for (auto/static/shared)
1727   --with-tcl              directory containing tcl configuration (tclConfig.sh)
1728   --with-tk               directory containing tk configuration (tkConfig.sh)
1729   --with-x                use the X Window System
1730   --with-babeltrace       include babeltrace support (auto/yes/no)
1731   --with-libbabeltrace-prefix[=DIR]  search for libbabeltrace in DIR/include and DIR/lib
1732   --without-libbabeltrace-prefix     don't search for libbabeltrace in includedir and libdir
1733   --with-libbabeltrace-type=TYPE     type of library to search for (auto/static/shared)
1734   --with-xxhash           use libxxhash for hashing (faster) (auto/yes/no)
1735   --with-libxxhash-prefix[=DIR]  search for libxxhash in DIR/include and DIR/lib
1736   --without-libxxhash-prefix     don't search for libxxhash in includedir and libdir
1737   --with-libxxhash-type=TYPE     type of library to search for (auto/static/shared)
1738
1739 Some influential environment variables:
1740   CC          C compiler command
1741   CFLAGS      C compiler flags
1742   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1743               nonstandard directory <lib dir>
1744   LIBS        libraries to pass to the linker, e.g. -l<library>
1745   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1746               you have headers in a nonstandard directory <include dir>
1747   CXX         C++ compiler command
1748   CXXFLAGS    C++ compiler flags
1749   CPP         C preprocessor
1750   CXXCPP      C++ preprocessor
1751   MAKEINFO    Parent configure detects if it is of sufficient version.
1752   MAKEINFOFLAGS
1753               Parameters for MAKEINFO.
1754   PKG_CONFIG  path to pkg-config utility
1755   PKG_CONFIG_PATH
1756               directories to add to pkg-config's search path
1757   PKG_CONFIG_LIBDIR
1758               path overriding pkg-config's built-in search path
1759   DEBUGINFOD_CFLAGS
1760               C compiler flags for DEBUGINFOD, overriding pkg-config
1761   DEBUGINFOD_LIBS
1762               linker flags for DEBUGINFOD, overriding pkg-config
1763   YACC        The `Yet Another Compiler Compiler' implementation to use.
1764               Defaults to the first program found out of: `bison -y', `byacc',
1765               `yacc'.
1766   YFLAGS      The list of arguments that will be passed by default to $YACC.
1767               This script will default YFLAGS to the empty string to avoid a
1768               default value of `-d' given by some make applications.
1769   ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1770   ZSTD_LIBS   linker flags for ZSTD, overriding pkg-config
1771   XMKMF       Path to xmkmf, Makefile generator for X Window System
1772
1773 Use these variables to override the choices made by `configure' or to help
1774 it to find libraries and programs with nonstandard names/locations.
1775
1776 Report bugs to the package provider.
1777 _ACEOF
1778 ac_status=$?
1779 fi
1780
1781 if test "$ac_init_help" = "recursive"; then
1782   # If there are subdirs, report their specific --help.
1783   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1784     test -d "$ac_dir" ||
1785       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1786       continue
1787     ac_builddir=.
1788
1789 case "$ac_dir" in
1790 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1791 *)
1792   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1793   # A ".." for each directory in $ac_dir_suffix.
1794   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1795   case $ac_top_builddir_sub in
1796   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1797   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1798   esac ;;
1799 esac
1800 ac_abs_top_builddir=$ac_pwd
1801 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1802 # for backward compatibility:
1803 ac_top_builddir=$ac_top_build_prefix
1804
1805 case $srcdir in
1806   .)  # We are building in place.
1807     ac_srcdir=.
1808     ac_top_srcdir=$ac_top_builddir_sub
1809     ac_abs_top_srcdir=$ac_pwd ;;
1810   [\\/]* | ?:[\\/]* )  # Absolute name.
1811     ac_srcdir=$srcdir$ac_dir_suffix;
1812     ac_top_srcdir=$srcdir
1813     ac_abs_top_srcdir=$srcdir ;;
1814   *) # Relative name.
1815     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1816     ac_top_srcdir=$ac_top_build_prefix$srcdir
1817     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1818 esac
1819 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1820
1821     cd "$ac_dir" || { ac_status=$?; continue; }
1822     # Check for guested configure.
1823     if test -f "$ac_srcdir/configure.gnu"; then
1824       echo &&
1825       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1826     elif test -f "$ac_srcdir/configure"; then
1827       echo &&
1828       $SHELL "$ac_srcdir/configure" --help=recursive
1829     else
1830       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1831     fi || ac_status=$?
1832     cd "$ac_pwd" || { ac_status=$?; break; }
1833   done
1834 fi
1835
1836 test -n "$ac_init_help" && exit $ac_status
1837 if $ac_init_version; then
1838   cat <<\_ACEOF
1839 configure
1840 generated by GNU Autoconf 2.69
1841
1842 Copyright (C) 2012 Free Software Foundation, Inc.
1843 This configure script is free software; the Free Software Foundation
1844 gives unlimited permission to copy, distribute and modify it.
1845 _ACEOF
1846   exit
1847 fi
1848
1849 ## ------------------------ ##
1850 ## Autoconf initialization. ##
1851 ## ------------------------ ##
1852
1853 # ac_fn_c_try_compile LINENO
1854 # --------------------------
1855 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_c_try_compile ()
1857 {
1858   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859   rm -f conftest.$ac_objext
1860   if { { ac_try="$ac_compile"
1861 case "(($ac_try" in
1862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863   *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867   (eval "$ac_compile") 2>conftest.err
1868   ac_status=$?
1869   if test -s conftest.err; then
1870     grep -v '^ *+' conftest.err >conftest.er1
1871     cat conftest.er1 >&5
1872     mv -f conftest.er1 conftest.err
1873   fi
1874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875   test $ac_status = 0; } && {
1876          test -z "$ac_c_werror_flag" ||
1877          test ! -s conftest.err
1878        } && test -s conftest.$ac_objext; then :
1879   ac_retval=0
1880 else
1881   $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1883
1884         ac_retval=1
1885 fi
1886   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887   as_fn_set_status $ac_retval
1888
1889 } # ac_fn_c_try_compile
1890
1891 # ac_fn_cxx_try_compile LINENO
1892 # ----------------------------
1893 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1894 ac_fn_cxx_try_compile ()
1895 {
1896   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897   rm -f conftest.$ac_objext
1898   if { { ac_try="$ac_compile"
1899 case "(($ac_try" in
1900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901   *) ac_try_echo=$ac_try;;
1902 esac
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905   (eval "$ac_compile") 2>conftest.err
1906   ac_status=$?
1907   if test -s conftest.err; then
1908     grep -v '^ *+' conftest.err >conftest.er1
1909     cat conftest.er1 >&5
1910     mv -f conftest.er1 conftest.err
1911   fi
1912   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913   test $ac_status = 0; } && {
1914          test -z "$ac_cxx_werror_flag" ||
1915          test ! -s conftest.err
1916        } && test -s conftest.$ac_objext; then :
1917   ac_retval=0
1918 else
1919   $as_echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1921
1922         ac_retval=1
1923 fi
1924   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925   as_fn_set_status $ac_retval
1926
1927 } # ac_fn_cxx_try_compile
1928
1929 # ac_fn_c_try_cpp LINENO
1930 # ----------------------
1931 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1932 ac_fn_c_try_cpp ()
1933 {
1934   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935   if { { ac_try="$ac_cpp conftest.$ac_ext"
1936 case "(($ac_try" in
1937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938   *) ac_try_echo=$ac_try;;
1939 esac
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1943   ac_status=$?
1944   if test -s conftest.err; then
1945     grep -v '^ *+' conftest.err >conftest.er1
1946     cat conftest.er1 >&5
1947     mv -f conftest.er1 conftest.err
1948   fi
1949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950   test $ac_status = 0; } > conftest.i && {
1951          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1952          test ! -s conftest.err
1953        }; then :
1954   ac_retval=0
1955 else
1956   $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1958
1959     ac_retval=1
1960 fi
1961   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962   as_fn_set_status $ac_retval
1963
1964 } # ac_fn_c_try_cpp
1965
1966 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1967 # -------------------------------------------------------
1968 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1969 # the include files in INCLUDES and setting the cache variable VAR
1970 # accordingly.
1971 ac_fn_c_check_header_mongrel ()
1972 {
1973   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974   if eval \${$3+:} false; then :
1975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if eval \${$3+:} false; then :
1978   $as_echo_n "(cached) " >&6
1979 fi
1980 eval ac_res=\$$3
1981                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 else
1984   # Is the header compilable?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1986 $as_echo_n "checking $2 usability... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h.  */
1989 $4
1990 #include <$2>
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993   ac_header_compiler=yes
1994 else
1995   ac_header_compiler=no
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1999 $as_echo "$ac_header_compiler" >&6; }
2000
2001 # Is the header present?
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2003 $as_echo_n "checking $2 presence... " >&6; }
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h.  */
2006 #include <$2>
2007 _ACEOF
2008 if ac_fn_c_try_cpp "$LINENO"; then :
2009   ac_header_preproc=yes
2010 else
2011   ac_header_preproc=no
2012 fi
2013 rm -f conftest.err conftest.i conftest.$ac_ext
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2015 $as_echo "$ac_header_preproc" >&6; }
2016
2017 # So?  What about this header?
2018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2019   yes:no: )
2020     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2021 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2022     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2023 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2024     ;;
2025   no:yes:* )
2026     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2027 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2028     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2029 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2030     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2031 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2032     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2033 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2034     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2035 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2036     ;;
2037 esac
2038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; }
2040 if eval \${$3+:} false; then :
2041   $as_echo_n "(cached) " >&6
2042 else
2043   eval "$3=\$ac_header_compiler"
2044 fi
2045 eval ac_res=\$$3
2046                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 $as_echo "$ac_res" >&6; }
2048 fi
2049   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050
2051 } # ac_fn_c_check_header_mongrel
2052
2053 # ac_fn_c_try_run LINENO
2054 # ----------------------
2055 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2056 # that executables *can* be run.
2057 ac_fn_c_try_run ()
2058 {
2059   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060   if { { ac_try="$ac_link"
2061 case "(($ac_try" in
2062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2063   *) ac_try_echo=$ac_try;;
2064 esac
2065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2066 $as_echo "$ac_try_echo"; } >&5
2067   (eval "$ac_link") 2>&5
2068   ac_status=$?
2069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2071   { { case "(($ac_try" in
2072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073   *) ac_try_echo=$ac_try;;
2074 esac
2075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077   (eval "$ac_try") 2>&5
2078   ac_status=$?
2079   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2080   test $ac_status = 0; }; }; then :
2081   ac_retval=0
2082 else
2083   $as_echo "$as_me: program exited with status $ac_status" >&5
2084        $as_echo "$as_me: failed program was:" >&5
2085 sed 's/^/| /' conftest.$ac_ext >&5
2086
2087        ac_retval=$ac_status
2088 fi
2089   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2090   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091   as_fn_set_status $ac_retval
2092
2093 } # ac_fn_c_try_run
2094
2095 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2096 # -------------------------------------------------------
2097 # Tests whether HEADER exists and can be compiled using the include files in
2098 # INCLUDES, setting the cache variable VAR accordingly.
2099 ac_fn_c_check_header_compile ()
2100 {
2101   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2103 $as_echo_n "checking for $2... " >&6; }
2104 if eval \${$3+:} false; then :
2105   $as_echo_n "(cached) " >&6
2106 else
2107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h.  */
2109 $4
2110 #include <$2>
2111 _ACEOF
2112 if ac_fn_c_try_compile "$LINENO"; then :
2113   eval "$3=yes"
2114 else
2115   eval "$3=no"
2116 fi
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118 fi
2119 eval ac_res=\$$3
2120                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2121 $as_echo "$ac_res" >&6; }
2122   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123
2124 } # ac_fn_c_check_header_compile
2125
2126 # ac_fn_c_try_link LINENO
2127 # -----------------------
2128 # Try to link conftest.$ac_ext, and return whether this succeeded.
2129 ac_fn_c_try_link ()
2130 {
2131   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132   rm -f conftest.$ac_objext conftest$ac_exeext
2133   if { { ac_try="$ac_link"
2134 case "(($ac_try" in
2135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2136   *) ac_try_echo=$ac_try;;
2137 esac
2138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2139 $as_echo "$ac_try_echo"; } >&5
2140   (eval "$ac_link") 2>conftest.err
2141   ac_status=$?
2142   if test -s conftest.err; then
2143     grep -v '^ *+' conftest.err >conftest.er1
2144     cat conftest.er1 >&5
2145     mv -f conftest.er1 conftest.err
2146   fi
2147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2148   test $ac_status = 0; } && {
2149          test -z "$ac_c_werror_flag" ||
2150          test ! -s conftest.err
2151        } && test -s conftest$ac_exeext && {
2152          test "$cross_compiling" = yes ||
2153          test -x conftest$ac_exeext
2154        }; then :
2155   ac_retval=0
2156 else
2157   $as_echo "$as_me: failed program was:" >&5
2158 sed 's/^/| /' conftest.$ac_ext >&5
2159
2160         ac_retval=1
2161 fi
2162   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2163   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2164   # interfere with the next link command; also delete a directory that is
2165   # left behind by Apple's compiler.  We do this before executing the actions.
2166   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2167   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168   as_fn_set_status $ac_retval
2169
2170 } # ac_fn_c_try_link
2171
2172 # ac_fn_c_check_func LINENO FUNC VAR
2173 # ----------------------------------
2174 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2175 ac_fn_c_check_func ()
2176 {
2177   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2179 $as_echo_n "checking for $2... " >&6; }
2180 if eval \${$3+:} false; then :
2181   $as_echo_n "(cached) " >&6
2182 else
2183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h.  */
2185 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2186    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2187 #define $2 innocuous_$2
2188
2189 /* System header to define __stub macros and hopefully few prototypes,
2190     which can conflict with char $2 (); below.
2191     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2192     <limits.h> exists even on freestanding compilers.  */
2193
2194 #ifdef __STDC__
2195 # include <limits.h>
2196 #else
2197 # include <assert.h>
2198 #endif
2199
2200 #undef $2
2201
2202 /* Override any GCC internal prototype to avoid an error.
2203    Use char because int might match the return type of a GCC
2204    builtin and then its argument prototype would still apply.  */
2205 #ifdef __cplusplus
2206 extern "C"
2207 #endif
2208 char $2 ();
2209 /* The GNU C library defines this for functions which it implements
2210     to always fail with ENOSYS.  Some functions are actually named
2211     something starting with __ and the normal name is an alias.  */
2212 #if defined __stub_$2 || defined __stub___$2
2213 choke me
2214 #endif
2215
2216 int
2217 main ()
2218 {
2219 return $2 ();
2220   ;
2221   return 0;
2222 }
2223 _ACEOF
2224 if ac_fn_c_try_link "$LINENO"; then :
2225   eval "$3=yes"
2226 else
2227   eval "$3=no"
2228 fi
2229 rm -f core conftest.err conftest.$ac_objext \
2230     conftest$ac_exeext conftest.$ac_ext
2231 fi
2232 eval ac_res=\$$3
2233                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2234 $as_echo "$ac_res" >&6; }
2235   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2236
2237 } # ac_fn_c_check_func
2238
2239 # ac_fn_cxx_try_cpp LINENO
2240 # ------------------------
2241 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2242 ac_fn_cxx_try_cpp ()
2243 {
2244   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245   if { { ac_try="$ac_cpp conftest.$ac_ext"
2246 case "(($ac_try" in
2247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2248   *) ac_try_echo=$ac_try;;
2249 esac
2250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2251 $as_echo "$ac_try_echo"; } >&5
2252   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2253   ac_status=$?
2254   if test -s conftest.err; then
2255     grep -v '^ *+' conftest.err >conftest.er1
2256     cat conftest.er1 >&5
2257     mv -f conftest.er1 conftest.err
2258   fi
2259   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2260   test $ac_status = 0; } > conftest.i && {
2261          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2262          test ! -s conftest.err
2263        }; then :
2264   ac_retval=0
2265 else
2266   $as_echo "$as_me: failed program was:" >&5
2267 sed 's/^/| /' conftest.$ac_ext >&5
2268
2269     ac_retval=1
2270 fi
2271   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2272   as_fn_set_status $ac_retval
2273
2274 } # ac_fn_cxx_try_cpp
2275
2276 # ac_fn_cxx_try_link LINENO
2277 # -------------------------
2278 # Try to link conftest.$ac_ext, and return whether this succeeded.
2279 ac_fn_cxx_try_link ()
2280 {
2281   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2282   rm -f conftest.$ac_objext conftest$ac_exeext
2283   if { { ac_try="$ac_link"
2284 case "(($ac_try" in
2285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2286   *) ac_try_echo=$ac_try;;
2287 esac
2288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2289 $as_echo "$ac_try_echo"; } >&5
2290   (eval "$ac_link") 2>conftest.err
2291   ac_status=$?
2292   if test -s conftest.err; then
2293     grep -v '^ *+' conftest.err >conftest.er1
2294     cat conftest.er1 >&5
2295     mv -f conftest.er1 conftest.err
2296   fi
2297   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2298   test $ac_status = 0; } && {
2299          test -z "$ac_cxx_werror_flag" ||
2300          test ! -s conftest.err
2301        } && test -s conftest$ac_exeext && {
2302          test "$cross_compiling" = yes ||
2303          test -x conftest$ac_exeext
2304        }; then :
2305   ac_retval=0
2306 else
2307   $as_echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
2309
2310         ac_retval=1
2311 fi
2312   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2313   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2314   # interfere with the next link command; also delete a directory that is
2315   # left behind by Apple's compiler.  We do this before executing the actions.
2316   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2317   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2318   as_fn_set_status $ac_retval
2319
2320 } # ac_fn_cxx_try_link
2321
2322 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2323 # --------------------------------------------
2324 # Tries to find the compile-time value of EXPR in a program that includes
2325 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2326 # computed
2327 ac_fn_c_compute_int ()
2328 {
2329   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2330   if test "$cross_compiling" = yes; then
2331     # Depending upon the size, compute the lo and hi bounds.
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h.  */
2334 $4
2335 int
2336 main ()
2337 {
2338 static int test_array [1 - 2 * !(($2) >= 0)];
2339 test_array [0] = 0;
2340 return test_array [0];
2341
2342   ;
2343   return 0;
2344 }
2345 _ACEOF
2346 if ac_fn_c_try_compile "$LINENO"; then :
2347   ac_lo=0 ac_mid=0
2348   while :; do
2349     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h.  */
2351 $4
2352 int
2353 main ()
2354 {
2355 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2356 test_array [0] = 0;
2357 return test_array [0];
2358
2359   ;
2360   return 0;
2361 }
2362 _ACEOF
2363 if ac_fn_c_try_compile "$LINENO"; then :
2364   ac_hi=$ac_mid; break
2365 else
2366   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2367                         if test $ac_lo -le $ac_mid; then
2368                           ac_lo= ac_hi=
2369                           break
2370                         fi
2371                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2372 fi
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2374   done
2375 else
2376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h.  */
2378 $4
2379 int
2380 main ()
2381 {
2382 static int test_array [1 - 2 * !(($2) < 0)];
2383 test_array [0] = 0;
2384 return test_array [0];
2385
2386   ;
2387   return 0;
2388 }
2389 _ACEOF
2390 if ac_fn_c_try_compile "$LINENO"; then :
2391   ac_hi=-1 ac_mid=-1
2392   while :; do
2393     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h.  */
2395 $4
2396 int
2397 main ()
2398 {
2399 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2400 test_array [0] = 0;
2401 return test_array [0];
2402
2403   ;
2404   return 0;
2405 }
2406 _ACEOF
2407 if ac_fn_c_try_compile "$LINENO"; then :
2408   ac_lo=$ac_mid; break
2409 else
2410   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2411                         if test $ac_mid -le $ac_hi; then
2412                           ac_lo= ac_hi=
2413                           break
2414                         fi
2415                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2416 fi
2417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2418   done
2419 else
2420   ac_lo= ac_hi=
2421 fi
2422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2423 fi
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 # Binary search between lo and hi bounds.
2426 while test "x$ac_lo" != "x$ac_hi"; do
2427   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429 /* end confdefs.h.  */
2430 $4
2431 int
2432 main ()
2433 {
2434 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2435 test_array [0] = 0;
2436 return test_array [0];
2437
2438   ;
2439   return 0;
2440 }
2441 _ACEOF
2442 if ac_fn_c_try_compile "$LINENO"; then :
2443   ac_hi=$ac_mid
2444 else
2445   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2446 fi
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 done
2449 case $ac_lo in #((
2450 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2451 '') ac_retval=1 ;;
2452 esac
2453   else
2454     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455 /* end confdefs.h.  */
2456 $4
2457 static long int longval () { return $2; }
2458 static unsigned long int ulongval () { return $2; }
2459 #include <stdio.h>
2460 #include <stdlib.h>
2461 int
2462 main ()
2463 {
2464
2465   FILE *f = fopen ("conftest.val", "w");
2466   if (! f)
2467     return 1;
2468   if (($2) < 0)
2469     {
2470       long int i = longval ();
2471       if (i != ($2))
2472         return 1;
2473       fprintf (f, "%ld", i);
2474     }
2475   else
2476     {
2477       unsigned long int i = ulongval ();
2478       if (i != ($2))
2479         return 1;
2480       fprintf (f, "%lu", i);
2481     }
2482   /* Do not output a trailing newline, as this causes \r\n confusion
2483      on some platforms.  */
2484   return ferror (f) || fclose (f) != 0;
2485
2486   ;
2487   return 0;
2488 }
2489 _ACEOF
2490 if ac_fn_c_try_run "$LINENO"; then :
2491   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2492 else
2493   ac_retval=1
2494 fi
2495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2496   conftest.$ac_objext conftest.beam conftest.$ac_ext
2497 rm -f conftest.val
2498
2499   fi
2500   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2501   as_fn_set_status $ac_retval
2502
2503 } # ac_fn_c_compute_int
2504
2505 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2506 # -------------------------------------------
2507 # Tests whether TYPE exists after having included INCLUDES, setting cache
2508 # variable VAR accordingly.
2509 ac_fn_c_check_type ()
2510 {
2511   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2513 $as_echo_n "checking for $2... " >&6; }
2514 if eval \${$3+:} false; then :
2515   $as_echo_n "(cached) " >&6
2516 else
2517   eval "$3=no"
2518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2519 /* end confdefs.h.  */
2520 $4
2521 int
2522 main ()
2523 {
2524 if (sizeof ($2))
2525          return 0;
2526   ;
2527   return 0;
2528 }
2529 _ACEOF
2530 if ac_fn_c_try_compile "$LINENO"; then :
2531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532 /* end confdefs.h.  */
2533 $4
2534 int
2535 main ()
2536 {
2537 if (sizeof (($2)))
2538             return 0;
2539   ;
2540   return 0;
2541 }
2542 _ACEOF
2543 if ac_fn_c_try_compile "$LINENO"; then :
2544
2545 else
2546   eval "$3=yes"
2547 fi
2548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2549 fi
2550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2551 fi
2552 eval ac_res=\$$3
2553                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2554 $as_echo "$ac_res" >&6; }
2555   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2556
2557 } # ac_fn_c_check_type
2558
2559 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2560 # ---------------------------------------------
2561 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2562 # accordingly.
2563 ac_fn_c_check_decl ()
2564 {
2565   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2566   as_decl_name=`echo $2|sed 's/ *(.*//'`
2567   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2569 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2570 if eval \${$3+:} false; then :
2571   $as_echo_n "(cached) " >&6
2572 else
2573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h.  */
2575 $4
2576 int
2577 main ()
2578 {
2579 #ifndef $as_decl_name
2580 #ifdef __cplusplus
2581   (void) $as_decl_use;
2582 #else
2583   (void) $as_decl_name;
2584 #endif
2585 #endif
2586
2587   ;
2588   return 0;
2589 }
2590 _ACEOF
2591 if ac_fn_c_try_compile "$LINENO"; then :
2592   eval "$3=yes"
2593 else
2594   eval "$3=no"
2595 fi
2596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 fi
2598 eval ac_res=\$$3
2599                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2600 $as_echo "$ac_res" >&6; }
2601   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2602
2603 } # ac_fn_c_check_decl
2604
2605 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2606 # ----------------------------------------------------
2607 # Tries to find if the field MEMBER exists in type AGGR, after including
2608 # INCLUDES, setting cache variable VAR accordingly.
2609 ac_fn_c_check_member ()
2610 {
2611   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2613 $as_echo_n "checking for $2.$3... " >&6; }
2614 if eval \${$4+:} false; then :
2615   $as_echo_n "(cached) " >&6
2616 else
2617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2618 /* end confdefs.h.  */
2619 $5
2620 int
2621 main ()
2622 {
2623 static $2 ac_aggr;
2624 if (ac_aggr.$3)
2625 return 0;
2626   ;
2627   return 0;
2628 }
2629 _ACEOF
2630 if ac_fn_c_try_compile "$LINENO"; then :
2631   eval "$4=yes"
2632 else
2633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h.  */
2635 $5
2636 int
2637 main ()
2638 {
2639 static $2 ac_aggr;
2640 if (sizeof ac_aggr.$3)
2641 return 0;
2642   ;
2643   return 0;
2644 }
2645 _ACEOF
2646 if ac_fn_c_try_compile "$LINENO"; then :
2647   eval "$4=yes"
2648 else
2649   eval "$4=no"
2650 fi
2651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2652 fi
2653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2654 fi
2655 eval ac_res=\$$4
2656                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2657 $as_echo "$ac_res" >&6; }
2658   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2659
2660 } # ac_fn_c_check_member
2661
2662 # ac_fn_cxx_check_func LINENO FUNC VAR
2663 # ------------------------------------
2664 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2665 ac_fn_cxx_check_func ()
2666 {
2667   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2669 $as_echo_n "checking for $2... " >&6; }
2670 if eval \${$3+:} false; then :
2671   $as_echo_n "(cached) " >&6
2672 else
2673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2674 /* end confdefs.h.  */
2675 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2676    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2677 #define $2 innocuous_$2
2678
2679 /* System header to define __stub macros and hopefully few prototypes,
2680     which can conflict with char $2 (); below.
2681     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2682     <limits.h> exists even on freestanding compilers.  */
2683
2684 #ifdef __STDC__
2685 # include <limits.h>
2686 #else
2687 # include <assert.h>
2688 #endif
2689
2690 #undef $2
2691
2692 /* Override any GCC internal prototype to avoid an error.
2693    Use char because int might match the return type of a GCC
2694    builtin and then its argument prototype would still apply.  */
2695 #ifdef __cplusplus
2696 extern "C"
2697 #endif
2698 char $2 ();
2699 /* The GNU C library defines this for functions which it implements
2700     to always fail with ENOSYS.  Some functions are actually named
2701     something starting with __ and the normal name is an alias.  */
2702 #if defined __stub_$2 || defined __stub___$2
2703 choke me
2704 #endif
2705
2706 int
2707 main ()
2708 {
2709 return $2 ();
2710   ;
2711   return 0;
2712 }
2713 _ACEOF
2714 if ac_fn_cxx_try_link "$LINENO"; then :
2715   eval "$3=yes"
2716 else
2717   eval "$3=no"
2718 fi
2719 rm -f core conftest.err conftest.$ac_objext \
2720     conftest$ac_exeext conftest.$ac_ext
2721 fi
2722 eval ac_res=\$$3
2723                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2724 $as_echo "$ac_res" >&6; }
2725   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2726
2727 } # ac_fn_cxx_check_func
2728 cat >config.log <<_ACEOF
2729 This file contains any messages produced by compilers while
2730 running configure, to aid debugging if configure makes a mistake.
2731
2732 It was created by $as_me, which was
2733 generated by GNU Autoconf 2.69.  Invocation command line was
2734
2735   $ $0 $@
2736
2737 _ACEOF
2738 exec 5>>config.log
2739 {
2740 cat <<_ASUNAME
2741 ## --------- ##
2742 ## Platform. ##
2743 ## --------- ##
2744
2745 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2746 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2747 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2748 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2749 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2750
2751 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2752 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2753
2754 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2755 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2756 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2757 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2758 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2759 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2760 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2761
2762 _ASUNAME
2763
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 for as_dir in $PATH
2766 do
2767   IFS=$as_save_IFS
2768   test -z "$as_dir" && as_dir=.
2769     $as_echo "PATH: $as_dir"
2770   done
2771 IFS=$as_save_IFS
2772
2773 } >&5
2774
2775 cat >&5 <<_ACEOF
2776
2777
2778 ## ----------- ##
2779 ## Core tests. ##
2780 ## ----------- ##
2781
2782 _ACEOF
2783
2784
2785 # Keep a trace of the command line.
2786 # Strip out --no-create and --no-recursion so they do not pile up.
2787 # Strip out --silent because we don't want to record it for future runs.
2788 # Also quote any args containing shell meta-characters.
2789 # Make two passes to allow for proper duplicate-argument suppression.
2790 ac_configure_args=
2791 ac_configure_args0=
2792 ac_configure_args1=
2793 ac_must_keep_next=false
2794 for ac_pass in 1 2
2795 do
2796   for ac_arg
2797   do
2798     case $ac_arg in
2799     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2800     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2801     | -silent | --silent | --silen | --sile | --sil)
2802       continue ;;
2803     *\'*)
2804       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2805     esac
2806     case $ac_pass in
2807     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2808     2)
2809       as_fn_append ac_configure_args1 " '$ac_arg'"
2810       if test $ac_must_keep_next = true; then
2811         ac_must_keep_next=false # Got value, back to normal.
2812       else
2813         case $ac_arg in
2814           *=* | --config-cache | -C | -disable-* | --disable-* \
2815           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2816           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2817           | -with-* | --with-* | -without-* | --without-* | --x)
2818             case "$ac_configure_args0 " in
2819               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2820             esac
2821             ;;
2822           -* ) ac_must_keep_next=true ;;
2823         esac
2824       fi
2825       as_fn_append ac_configure_args " '$ac_arg'"
2826       ;;
2827     esac
2828   done
2829 done
2830 { ac_configure_args0=; unset ac_configure_args0;}
2831 { ac_configure_args1=; unset ac_configure_args1;}
2832
2833 # When interrupted or exit'd, cleanup temporary files, and complete
2834 # config.log.  We remove comments because anyway the quotes in there
2835 # would cause problems or look ugly.
2836 # WARNING: Use '\'' to represent an apostrophe within the trap.
2837 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2838 trap 'exit_status=$?
2839   # Save into config.log some information that might help in debugging.
2840   {
2841     echo
2842
2843     $as_echo "## ---------------- ##
2844 ## Cache variables. ##
2845 ## ---------------- ##"
2846     echo
2847     # The following way of writing the cache mishandles newlines in values,
2848 (
2849   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2850     eval ac_val=\$$ac_var
2851     case $ac_val in #(
2852     *${as_nl}*)
2853       case $ac_var in #(
2854       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2855 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2856       esac
2857       case $ac_var in #(
2858       _ | IFS | as_nl) ;; #(
2859       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2860       *) { eval $ac_var=; unset $ac_var;} ;;
2861       esac ;;
2862     esac
2863   done
2864   (set) 2>&1 |
2865     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2866     *${as_nl}ac_space=\ *)
2867       sed -n \
2868         "s/'\''/'\''\\\\'\'''\''/g;
2869           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2870       ;; #(
2871     *)
2872       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2873       ;;
2874     esac |
2875     sort
2876 )
2877     echo
2878
2879     $as_echo "## ----------------- ##
2880 ## Output variables. ##
2881 ## ----------------- ##"
2882     echo
2883     for ac_var in $ac_subst_vars
2884     do
2885       eval ac_val=\$$ac_var
2886       case $ac_val in
2887       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2888       esac
2889       $as_echo "$ac_var='\''$ac_val'\''"
2890     done | sort
2891     echo
2892
2893     if test -n "$ac_subst_files"; then
2894       $as_echo "## ------------------- ##
2895 ## File substitutions. ##
2896 ## ------------------- ##"
2897       echo
2898       for ac_var in $ac_subst_files
2899       do
2900         eval ac_val=\$$ac_var
2901         case $ac_val in
2902         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2903         esac
2904         $as_echo "$ac_var='\''$ac_val'\''"
2905       done | sort
2906       echo
2907     fi
2908
2909     if test -s confdefs.h; then
2910       $as_echo "## ----------- ##
2911 ## confdefs.h. ##
2912 ## ----------- ##"
2913       echo
2914       cat confdefs.h
2915       echo
2916     fi
2917     test "$ac_signal" != 0 &&
2918       $as_echo "$as_me: caught signal $ac_signal"
2919     $as_echo "$as_me: exit $exit_status"
2920   } >&5
2921   rm -f core *.core core.conftest.* &&
2922     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2923     exit $exit_status
2924 ' 0
2925 for ac_signal in 1 2 13 15; do
2926   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2927 done
2928 ac_signal=0
2929
2930 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2931 rm -f -r conftest* confdefs.h
2932
2933 $as_echo "/* confdefs.h */" > confdefs.h
2934
2935 # Predefined preprocessor variables.
2936
2937 cat >>confdefs.h <<_ACEOF
2938 #define PACKAGE_NAME "$PACKAGE_NAME"
2939 _ACEOF
2940
2941 cat >>confdefs.h <<_ACEOF
2942 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2943 _ACEOF
2944
2945 cat >>confdefs.h <<_ACEOF
2946 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2947 _ACEOF
2948
2949 cat >>confdefs.h <<_ACEOF
2950 #define PACKAGE_STRING "$PACKAGE_STRING"
2951 _ACEOF
2952
2953 cat >>confdefs.h <<_ACEOF
2954 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2955 _ACEOF
2956
2957 cat >>confdefs.h <<_ACEOF
2958 #define PACKAGE_URL "$PACKAGE_URL"
2959 _ACEOF
2960
2961
2962 # Let the site file select an alternate cache file if it wants to.
2963 # Prefer an explicitly selected file to automatically selected ones.
2964 ac_site_file1=NONE
2965 ac_site_file2=NONE
2966 if test -n "$CONFIG_SITE"; then
2967   # We do not want a PATH search for config.site.
2968   case $CONFIG_SITE in #((
2969     -*)  ac_site_file1=./$CONFIG_SITE;;
2970     */*) ac_site_file1=$CONFIG_SITE;;
2971     *)   ac_site_file1=./$CONFIG_SITE;;
2972   esac
2973 elif test "x$prefix" != xNONE; then
2974   ac_site_file1=$prefix/share/config.site
2975   ac_site_file2=$prefix/etc/config.site
2976 else
2977   ac_site_file1=$ac_default_prefix/share/config.site
2978   ac_site_file2=$ac_default_prefix/etc/config.site
2979 fi
2980 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2981 do
2982   test "x$ac_site_file" = xNONE && continue
2983   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2984     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2985 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2986     sed 's/^/| /' "$ac_site_file" >&5
2987     . "$ac_site_file" \
2988       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 as_fn_error $? "failed to load site script $ac_site_file
2991 See \`config.log' for more details" "$LINENO" 5; }
2992   fi
2993 done
2994
2995 if test -r "$cache_file"; then
2996   # Some versions of bash will fail to source /dev/null (special files
2997   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2998   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2999     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3000 $as_echo "$as_me: loading cache $cache_file" >&6;}
3001     case $cache_file in
3002       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3003       *)                      . "./$cache_file";;
3004     esac
3005   fi
3006 else
3007   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3008 $as_echo "$as_me: creating cache $cache_file" >&6;}
3009   >$cache_file
3010 fi
3011
3012 as_fn_append ac_header_list " stdlib.h"
3013 as_fn_append ac_header_list " unistd.h"
3014 as_fn_append ac_header_list " sys/param.h"
3015 # Check that the precious variables saved in the cache have kept the same
3016 # value.
3017 ac_cache_corrupted=false
3018 for ac_var in $ac_precious_vars; do
3019   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3020   eval ac_new_set=\$ac_env_${ac_var}_set
3021   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3022   eval ac_new_val=\$ac_env_${ac_var}_value
3023   case $ac_old_set,$ac_new_set in
3024     set,)
3025       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3026 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3027       ac_cache_corrupted=: ;;
3028     ,set)
3029       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3030 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3031       ac_cache_corrupted=: ;;
3032     ,);;
3033     *)
3034       if test "x$ac_old_val" != "x$ac_new_val"; then
3035         # differences in whitespace do not lead to failure.
3036         ac_old_val_w=`echo x $ac_old_val`
3037         ac_new_val_w=`echo x $ac_new_val`
3038         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3039           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3040 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3041           ac_cache_corrupted=:
3042         else
3043           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3044 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3045           eval $ac_var=\$ac_old_val
3046         fi
3047         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3048 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3049         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3050 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3051       fi;;
3052   esac
3053   # Pass precious variables to config.status.
3054   if test "$ac_new_set" = set; then
3055     case $ac_new_val in
3056     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3057     *) ac_arg=$ac_var=$ac_new_val ;;
3058     esac
3059     case " $ac_configure_args " in
3060       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3061       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3062     esac
3063   fi
3064 done
3065 if $ac_cache_corrupted; then
3066   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3068   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3069 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3070   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3071 fi
3072 ## -------------------- ##
3073 ## Main body of script. ##
3074 ## -------------------- ##
3075
3076 ac_ext=c
3077 ac_cpp='$CPP $CPPFLAGS'
3078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3081
3082
3083
3084
3085
3086
3087
3088 ac_config_headers="$ac_config_headers config.h:config.in"
3089
3090
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3092 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3093     # Check whether --enable-maintainer-mode was given.
3094 if test "${enable_maintainer_mode+set}" = set; then :
3095   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3096 else
3097   USE_MAINTAINER_MODE=no
3098 fi
3099
3100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3101 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3102    if test $USE_MAINTAINER_MODE = yes; then
3103   MAINTAINER_MODE_TRUE=
3104   MAINTAINER_MODE_FALSE='#'
3105 else
3106   MAINTAINER_MODE_TRUE='#'
3107   MAINTAINER_MODE_FALSE=
3108 fi
3109
3110   MAINT=$MAINTAINER_MODE_TRUE
3111
3112
3113
3114 ac_ext=c
3115 ac_cpp='$CPP $CPPFLAGS'
3116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3119 if test -n "$ac_tool_prefix"; then
3120   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3121 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if ${ac_cv_prog_CC+:} false; then :
3125   $as_echo_n "(cached) " >&6
3126 else
3127   if test -n "$CC"; then
3128   ac_cv_prog_CC="$CC" # Let the user override the test.
3129 else
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3132 do
3133   IFS=$as_save_IFS
3134   test -z "$as_dir" && as_dir=.
3135     for ac_exec_ext in '' $ac_executable_extensions; do
3136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139     break 2
3140   fi
3141 done
3142   done
3143 IFS=$as_save_IFS
3144
3145 fi
3146 fi
3147 CC=$ac_cv_prog_CC
3148 if test -n "$CC"; then
3149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3150 $as_echo "$CC" >&6; }
3151 else
3152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153 $as_echo "no" >&6; }
3154 fi
3155
3156
3157 fi
3158 if test -z "$ac_cv_prog_CC"; then
3159   ac_ct_CC=$CC
3160   # Extract the first word of "gcc", so it can be a program name with args.
3161 set dummy gcc; ac_word=$2
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3165   $as_echo_n "(cached) " >&6
3166 else
3167   if test -n "$ac_ct_CC"; then
3168   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3172 do
3173   IFS=$as_save_IFS
3174   test -z "$as_dir" && as_dir=.
3175     for ac_exec_ext in '' $ac_executable_extensions; do
3176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177     ac_cv_prog_ac_ct_CC="gcc"
3178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179     break 2
3180   fi
3181 done
3182   done
3183 IFS=$as_save_IFS
3184
3185 fi
3186 fi
3187 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3188 if test -n "$ac_ct_CC"; then
3189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3190 $as_echo "$ac_ct_CC" >&6; }
3191 else
3192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3194 fi
3195
3196   if test "x$ac_ct_CC" = x; then
3197     CC=""
3198   else
3199     case $cross_compiling:$ac_tool_warned in
3200 yes:)
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3203 ac_tool_warned=yes ;;
3204 esac
3205     CC=$ac_ct_CC
3206   fi
3207 else
3208   CC="$ac_cv_prog_CC"
3209 fi
3210
3211 if test -z "$CC"; then
3212           if test -n "$ac_tool_prefix"; then
3213     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3214 set dummy ${ac_tool_prefix}cc; ac_word=$2
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216 $as_echo_n "checking for $ac_word... " >&6; }
3217 if ${ac_cv_prog_CC+:} false; then :
3218   $as_echo_n "(cached) " >&6
3219 else
3220   if test -n "$CC"; then
3221   ac_cv_prog_CC="$CC" # Let the user override the test.
3222 else
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3225 do
3226   IFS=$as_save_IFS
3227   test -z "$as_dir" && as_dir=.
3228     for ac_exec_ext in '' $ac_executable_extensions; do
3229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230     ac_cv_prog_CC="${ac_tool_prefix}cc"
3231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232     break 2
3233   fi
3234 done
3235   done
3236 IFS=$as_save_IFS
3237
3238 fi
3239 fi
3240 CC=$ac_cv_prog_CC
3241 if test -n "$CC"; then
3242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3243 $as_echo "$CC" >&6; }
3244 else
3245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3247 fi
3248
3249
3250   fi
3251 fi
3252 if test -z "$CC"; then
3253   # Extract the first word of "cc", so it can be a program name with args.
3254 set dummy cc; ac_word=$2
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256 $as_echo_n "checking for $ac_word... " >&6; }
3257 if ${ac_cv_prog_CC+:} false; then :
3258   $as_echo_n "(cached) " >&6
3259 else
3260   if test -n "$CC"; then
3261   ac_cv_prog_CC="$CC" # Let the user override the test.
3262 else
3263   ac_prog_rejected=no
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 for as_dir in $PATH
3266 do
3267   IFS=$as_save_IFS
3268   test -z "$as_dir" && as_dir=.
3269     for ac_exec_ext in '' $ac_executable_extensions; do
3270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3271     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3272        ac_prog_rejected=yes
3273        continue
3274      fi
3275     ac_cv_prog_CC="cc"
3276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277     break 2
3278   fi
3279 done
3280   done
3281 IFS=$as_save_IFS
3282
3283 if test $ac_prog_rejected = yes; then
3284   # We found a bogon in the path, so make sure we never use it.
3285   set dummy $ac_cv_prog_CC
3286   shift
3287   if test $# != 0; then
3288     # We chose a different compiler from the bogus one.
3289     # However, it has the same basename, so the bogon will be chosen
3290     # first if we set CC to just the basename; use the full file name.
3291     shift
3292     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3293   fi
3294 fi
3295 fi
3296 fi
3297 CC=$ac_cv_prog_CC
3298 if test -n "$CC"; then
3299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3300 $as_echo "$CC" >&6; }
3301 else
3302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303 $as_echo "no" >&6; }
3304 fi
3305
3306
3307 fi
3308 if test -z "$CC"; then
3309   if test -n "$ac_tool_prefix"; then
3310   for ac_prog in cl.exe
3311   do
3312     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3313 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315 $as_echo_n "checking for $ac_word... " >&6; }
3316 if ${ac_cv_prog_CC+:} false; then :
3317   $as_echo_n "(cached) " >&6
3318 else
3319   if test -n "$CC"; then
3320   ac_cv_prog_CC="$CC" # Let the user override the test.
3321 else
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 for as_dir in $PATH
3324 do
3325   IFS=$as_save_IFS
3326   test -z "$as_dir" && as_dir=.
3327     for ac_exec_ext in '' $ac_executable_extensions; do
3328   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3331     break 2
3332   fi
3333 done
3334   done
3335 IFS=$as_save_IFS
3336
3337 fi
3338 fi
3339 CC=$ac_cv_prog_CC
3340 if test -n "$CC"; then
3341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3342 $as_echo "$CC" >&6; }
3343 else
3344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 $as_echo "no" >&6; }
3346 fi
3347
3348
3349     test -n "$CC" && break
3350   done
3351 fi
3352 if test -z "$CC"; then
3353   ac_ct_CC=$CC
3354   for ac_prog in cl.exe
3355 do
3356   # Extract the first word of "$ac_prog", so it can be a program name with args.
3357 set dummy $ac_prog; ac_word=$2
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3359 $as_echo_n "checking for $ac_word... " >&6; }
3360 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3361   $as_echo_n "(cached) " >&6
3362 else
3363   if test -n "$ac_ct_CC"; then
3364   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3365 else
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH
3368 do
3369   IFS=$as_save_IFS
3370   test -z "$as_dir" && as_dir=.
3371     for ac_exec_ext in '' $ac_executable_extensions; do
3372   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373     ac_cv_prog_ac_ct_CC="$ac_prog"
3374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3375     break 2
3376   fi
3377 done
3378   done
3379 IFS=$as_save_IFS
3380
3381 fi
3382 fi
3383 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3384 if test -n "$ac_ct_CC"; then
3385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3386 $as_echo "$ac_ct_CC" >&6; }
3387 else
3388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389 $as_echo "no" >&6; }
3390 fi
3391
3392
3393   test -n "$ac_ct_CC" && break
3394 done
3395
3396   if test "x$ac_ct_CC" = x; then
3397     CC=""
3398   else
3399     case $cross_compiling:$ac_tool_warned in
3400 yes:)
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3403 ac_tool_warned=yes ;;
3404 esac
3405     CC=$ac_ct_CC
3406   fi
3407 fi
3408
3409 fi
3410
3411
3412 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3414 as_fn_error $? "no acceptable C compiler found in \$PATH
3415 See \`config.log' for more details" "$LINENO" 5; }
3416
3417 # Provide some information about the compiler.
3418 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3419 set X $ac_compile
3420 ac_compiler=$2
3421 for ac_option in --version -v -V -qversion; do
3422   { { ac_try="$ac_compiler $ac_option >&5"
3423 case "(($ac_try" in
3424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425   *) ac_try_echo=$ac_try;;
3426 esac
3427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3428 $as_echo "$ac_try_echo"; } >&5
3429   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3430   ac_status=$?
3431   if test -s conftest.err; then
3432     sed '10a\
3433 ... rest of stderr output deleted ...
3434          10q' conftest.err >conftest.er1
3435     cat conftest.er1 >&5
3436   fi
3437   rm -f conftest.er1 conftest.err
3438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439   test $ac_status = 0; }
3440 done
3441
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h.  */
3444
3445 int
3446 main ()
3447 {
3448
3449   ;
3450   return 0;
3451 }
3452 _ACEOF
3453 ac_clean_files_save=$ac_clean_files
3454 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3455 # Try to create an executable without -o first, disregard a.out.
3456 # It will help us diagnose broken compilers, and finding out an intuition
3457 # of exeext.
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3459 $as_echo_n "checking whether the C compiler works... " >&6; }
3460 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3461
3462 # The possible output files:
3463 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3464
3465 ac_rmfiles=
3466 for ac_file in $ac_files
3467 do
3468   case $ac_file in
3469     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3470     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3471   esac
3472 done
3473 rm -f $ac_rmfiles
3474
3475 if { { ac_try="$ac_link_default"
3476 case "(($ac_try" in
3477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478   *) ac_try_echo=$ac_try;;
3479 esac
3480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481 $as_echo "$ac_try_echo"; } >&5
3482   (eval "$ac_link_default") 2>&5
3483   ac_status=$?
3484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485   test $ac_status = 0; }; then :
3486   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3487 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3488 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3489 # so that the user can short-circuit this test for compilers unknown to
3490 # Autoconf.
3491 for ac_file in $ac_files ''
3492 do
3493   test -f "$ac_file" || continue
3494   case $ac_file in
3495     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3496         ;;
3497     [ab].out )
3498         # We found the default executable, but exeext='' is most
3499         # certainly right.
3500         break;;
3501     *.* )
3502         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3503         then :; else
3504            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3505         fi
3506         # We set ac_cv_exeext here because the later test for it is not
3507         # safe: cross compilers may not add the suffix if given an `-o'
3508         # argument, so we may need to know it at that point already.
3509         # Even if this section looks crufty: it has the advantage of
3510         # actually working.
3511         break;;
3512     * )
3513         break;;
3514   esac
3515 done
3516 test "$ac_cv_exeext" = no && ac_cv_exeext=
3517
3518 else
3519   ac_file=''
3520 fi
3521 if test -z "$ac_file"; then :
3522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 $as_echo "no" >&6; }
3524 $as_echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3526
3527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3529 as_fn_error 77 "C compiler cannot create executables
3530 See \`config.log' for more details" "$LINENO" 5; }
3531 else
3532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3533 $as_echo "yes" >&6; }
3534 fi
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3536 $as_echo_n "checking for C compiler default output file name... " >&6; }
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3538 $as_echo "$ac_file" >&6; }
3539 ac_exeext=$ac_cv_exeext
3540
3541 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3542 ac_clean_files=$ac_clean_files_save
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3544 $as_echo_n "checking for suffix of executables... " >&6; }
3545 if { { ac_try="$ac_link"
3546 case "(($ac_try" in
3547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548   *) ac_try_echo=$ac_try;;
3549 esac
3550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3551 $as_echo "$ac_try_echo"; } >&5
3552   (eval "$ac_link") 2>&5
3553   ac_status=$?
3554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555   test $ac_status = 0; }; then :
3556   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3557 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3558 # work properly (i.e., refer to `conftest.exe'), while it won't with
3559 # `rm'.
3560 for ac_file in conftest.exe conftest conftest.*; do
3561   test -f "$ac_file" || continue
3562   case $ac_file in
3563     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3564     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3565           break;;
3566     * ) break;;
3567   esac
3568 done
3569 else
3570   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3573 See \`config.log' for more details" "$LINENO" 5; }
3574 fi
3575 rm -f conftest conftest$ac_cv_exeext
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3577 $as_echo "$ac_cv_exeext" >&6; }
3578
3579 rm -f conftest.$ac_ext
3580 EXEEXT=$ac_cv_exeext
3581 ac_exeext=$EXEEXT
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h.  */
3584 #include <stdio.h>
3585 int
3586 main ()
3587 {
3588 FILE *f = fopen ("conftest.out", "w");
3589  return ferror (f) || fclose (f) != 0;
3590
3591   ;
3592   return 0;
3593 }
3594 _ACEOF
3595 ac_clean_files="$ac_clean_files conftest.out"
3596 # Check that the compiler produces executables we can run.  If not, either
3597 # the compiler is broken, or we cross compile.
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3599 $as_echo_n "checking whether we are cross compiling... " >&6; }
3600 if test "$cross_compiling" != yes; then
3601   { { ac_try="$ac_link"
3602 case "(($ac_try" in
3603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604   *) ac_try_echo=$ac_try;;
3605 esac
3606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3607 $as_echo "$ac_try_echo"; } >&5
3608   (eval "$ac_link") 2>&5
3609   ac_status=$?
3610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3611   test $ac_status = 0; }
3612   if { ac_try='./conftest$ac_cv_exeext'
3613   { { case "(($ac_try" in
3614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615   *) ac_try_echo=$ac_try;;
3616 esac
3617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618 $as_echo "$ac_try_echo"; } >&5
3619   (eval "$ac_try") 2>&5
3620   ac_status=$?
3621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622   test $ac_status = 0; }; }; then
3623     cross_compiling=no
3624   else
3625     if test "$cross_compiling" = maybe; then
3626         cross_compiling=yes
3627     else
3628         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3630 as_fn_error $? "cannot run C compiled programs.
3631 If you meant to cross compile, use \`--host'.
3632 See \`config.log' for more details" "$LINENO" 5; }
3633     fi
3634   fi
3635 fi
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3637 $as_echo "$cross_compiling" >&6; }
3638
3639 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3640 ac_clean_files=$ac_clean_files_save
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3642 $as_echo_n "checking for suffix of object files... " >&6; }
3643 if ${ac_cv_objext+:} false; then :
3644   $as_echo_n "(cached) " >&6
3645 else
3646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647 /* end confdefs.h.  */
3648
3649 int
3650 main ()
3651 {
3652
3653   ;
3654   return 0;
3655 }
3656 _ACEOF
3657 rm -f conftest.o conftest.obj
3658 if { { ac_try="$ac_compile"
3659 case "(($ac_try" in
3660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661   *) ac_try_echo=$ac_try;;
3662 esac
3663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664 $as_echo "$ac_try_echo"; } >&5
3665   (eval "$ac_compile") 2>&5
3666   ac_status=$?
3667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668   test $ac_status = 0; }; then :
3669   for ac_file in conftest.o conftest.obj conftest.*; do
3670   test -f "$ac_file" || continue;
3671   case $ac_file in
3672     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3673     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3674        break;;
3675   esac
3676 done
3677 else
3678   $as_echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3680
3681 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3683 as_fn_error $? "cannot compute suffix of object files: cannot compile
3684 See \`config.log' for more details" "$LINENO" 5; }
3685 fi
3686 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3687 fi
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3689 $as_echo "$ac_cv_objext" >&6; }
3690 OBJEXT=$ac_cv_objext
3691 ac_objext=$OBJEXT
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3693 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3694 if ${ac_cv_c_compiler_gnu+:} false; then :
3695   $as_echo_n "(cached) " >&6
3696 else
3697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h.  */
3699
3700 int
3701 main ()
3702 {
3703 #ifndef __GNUC__
3704        choke me
3705 #endif
3706
3707   ;
3708   return 0;
3709 }
3710 _ACEOF
3711 if ac_fn_c_try_compile "$LINENO"; then :
3712   ac_compiler_gnu=yes
3713 else
3714   ac_compiler_gnu=no
3715 fi
3716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3717 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3718
3719 fi
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3721 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3722 if test $ac_compiler_gnu = yes; then
3723   GCC=yes
3724 else
3725   GCC=
3726 fi
3727 ac_test_CFLAGS=${CFLAGS+set}
3728 ac_save_CFLAGS=$CFLAGS
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3730 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3731 if ${ac_cv_prog_cc_g+:} false; then :
3732   $as_echo_n "(cached) " >&6
3733 else
3734   ac_save_c_werror_flag=$ac_c_werror_flag
3735    ac_c_werror_flag=yes
3736    ac_cv_prog_cc_g=no
3737    CFLAGS="-g"
3738    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h.  */
3740
3741 int
3742 main ()
3743 {
3744
3745   ;
3746   return 0;
3747 }
3748 _ACEOF
3749 if ac_fn_c_try_compile "$LINENO"; then :
3750   ac_cv_prog_cc_g=yes
3751 else
3752   CFLAGS=""
3753       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h.  */
3755
3756 int
3757 main ()
3758 {
3759
3760   ;
3761   return 0;
3762 }
3763 _ACEOF
3764 if ac_fn_c_try_compile "$LINENO"; then :
3765
3766 else
3767   ac_c_werror_flag=$ac_save_c_werror_flag
3768          CFLAGS="-g"
3769          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h.  */
3771
3772 int
3773 main ()
3774 {
3775
3776   ;
3777   return 0;
3778 }
3779 _ACEOF
3780 if ac_fn_c_try_compile "$LINENO"; then :
3781   ac_cv_prog_cc_g=yes
3782 fi
3783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784 fi
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786 fi
3787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788    ac_c_werror_flag=$ac_save_c_werror_flag
3789 fi
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3791 $as_echo "$ac_cv_prog_cc_g" >&6; }
3792 if test "$ac_test_CFLAGS" = set; then
3793   CFLAGS=$ac_save_CFLAGS
3794 elif test $ac_cv_prog_cc_g = yes; then
3795   if test "$GCC" = yes; then
3796     CFLAGS="-g -O2"
3797   else
3798     CFLAGS="-g"
3799   fi
3800 else
3801   if test "$GCC" = yes; then
3802     CFLAGS="-O2"
3803   else
3804     CFLAGS=
3805   fi
3806 fi
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3808 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3809 if ${ac_cv_prog_cc_c89+:} false; then :
3810   $as_echo_n "(cached) " >&6
3811 else
3812   ac_cv_prog_cc_c89=no
3813 ac_save_CC=$CC
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h.  */
3816 #include <stdarg.h>
3817 #include <stdio.h>
3818 struct stat;
3819 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3820 struct buf { int x; };
3821 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3822 static char *e (p, i)
3823      char **p;
3824      int i;
3825 {
3826   return p[i];
3827 }
3828 static char *f (char * (*g) (char **, int), char **p, ...)
3829 {
3830   char *s;
3831   va_list v;
3832   va_start (v,p);
3833   s = g (p, va_arg (v,int));
3834   va_end (v);
3835   return s;
3836 }
3837
3838 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3839    function prototypes and stuff, but not '\xHH' hex character constants.
3840    These don't provoke an error unfortunately, instead are silently treated
3841    as 'x'.  The following induces an error, until -std is added to get
3842    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3843    array size at least.  It's necessary to write '\x00'==0 to get something
3844    that's true only with -std.  */
3845 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3846
3847 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3848    inside strings and character constants.  */
3849 #define FOO(x) 'x'
3850 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3851
3852 int test (int i, double x);
3853 struct s1 {int (*f) (int a);};
3854 struct s2 {int (*f) (double a);};
3855 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3856 int argc;
3857 char **argv;
3858 int
3859 main ()
3860 {
3861 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3862   ;
3863   return 0;
3864 }
3865 _ACEOF
3866 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3867         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3868 do
3869   CC="$ac_save_CC $ac_arg"
3870   if ac_fn_c_try_compile "$LINENO"; then :
3871   ac_cv_prog_cc_c89=$ac_arg
3872 fi
3873 rm -f core conftest.err conftest.$ac_objext
3874   test "x$ac_cv_prog_cc_c89" != "xno" && break
3875 done
3876 rm -f conftest.$ac_ext
3877 CC=$ac_save_CC
3878
3879 fi
3880 # AC_CACHE_VAL
3881 case "x$ac_cv_prog_cc_c89" in
3882   x)
3883     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3884 $as_echo "none needed" >&6; } ;;
3885   xno)
3886     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3887 $as_echo "unsupported" >&6; } ;;
3888   *)
3889     CC="$CC $ac_cv_prog_cc_c89"
3890     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3891 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3892 esac
3893 if test "x$ac_cv_prog_cc_c89" != xno; then :
3894
3895 fi
3896
3897 ac_ext=c
3898 ac_cpp='$CPP $CPPFLAGS'
3899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3902
3903 ac_ext=cpp
3904 ac_cpp='$CXXCPP $CPPFLAGS'
3905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3908 if test -z "$CXX"; then
3909   if test -n "$CCC"; then
3910     CXX=$CCC
3911   else
3912     if test -n "$ac_tool_prefix"; then
3913   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3914   do
3915     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3918 $as_echo_n "checking for $ac_word... " >&6; }
3919 if ${ac_cv_prog_CXX+:} false; then :
3920   $as_echo_n "(cached) " >&6
3921 else
3922   if test -n "$CXX"; then
3923   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3924 else
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH
3927 do
3928   IFS=$as_save_IFS
3929   test -z "$as_dir" && as_dir=.
3930     for ac_exec_ext in '' $ac_executable_extensions; do
3931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3932     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3934     break 2
3935   fi
3936 done
3937   done
3938 IFS=$as_save_IFS
3939
3940 fi
3941 fi
3942 CXX=$ac_cv_prog_CXX
3943 if test -n "$CXX"; then
3944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3945 $as_echo "$CXX" >&6; }
3946 else
3947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948 $as_echo "no" >&6; }
3949 fi
3950
3951
3952     test -n "$CXX" && break
3953   done
3954 fi
3955 if test -z "$CXX"; then
3956   ac_ct_CXX=$CXX
3957   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3958 do
3959   # Extract the first word of "$ac_prog", so it can be a program name with args.
3960 set dummy $ac_prog; ac_word=$2
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3962 $as_echo_n "checking for $ac_word... " >&6; }
3963 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3964   $as_echo_n "(cached) " >&6
3965 else
3966   if test -n "$ac_ct_CXX"; then
3967   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3968 else
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH
3971 do
3972   IFS=$as_save_IFS
3973   test -z "$as_dir" && as_dir=.
3974     for ac_exec_ext in '' $ac_executable_extensions; do
3975   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3976     ac_cv_prog_ac_ct_CXX="$ac_prog"
3977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3978     break 2
3979   fi
3980 done
3981   done
3982 IFS=$as_save_IFS
3983
3984 fi
3985 fi
3986 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3987 if test -n "$ac_ct_CXX"; then
3988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3989 $as_echo "$ac_ct_CXX" >&6; }
3990 else
3991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3992 $as_echo "no" >&6; }
3993 fi
3994
3995
3996   test -n "$ac_ct_CXX" && break
3997 done
3998
3999   if test "x$ac_ct_CXX" = x; then
4000     CXX="g++"
4001   else
4002     case $cross_compiling:$ac_tool_warned in
4003 yes:)
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4006 ac_tool_warned=yes ;;
4007 esac
4008     CXX=$ac_ct_CXX
4009   fi
4010 fi
4011
4012   fi
4013 fi
4014 # Provide some information about the compiler.
4015 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4016 set X $ac_compile
4017 ac_compiler=$2
4018 for ac_option in --version -v -V -qversion; do
4019   { { ac_try="$ac_compiler $ac_option >&5"
4020 case "(($ac_try" in
4021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022   *) ac_try_echo=$ac_try;;
4023 esac
4024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025 $as_echo "$ac_try_echo"; } >&5
4026   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4027   ac_status=$?
4028   if test -s conftest.err; then
4029     sed '10a\
4030 ... rest of stderr output deleted ...
4031          10q' conftest.err >conftest.er1
4032     cat conftest.er1 >&5
4033   fi
4034   rm -f conftest.er1 conftest.err
4035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4036   test $ac_status = 0; }
4037 done
4038
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4040 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4041 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4042   $as_echo_n "(cached) " >&6
4043 else
4044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h.  */
4046
4047 int
4048 main ()
4049 {
4050 #ifndef __GNUC__
4051        choke me
4052 #endif
4053
4054   ;
4055   return 0;
4056 }
4057 _ACEOF
4058 if ac_fn_cxx_try_compile "$LINENO"; then :
4059   ac_compiler_gnu=yes
4060 else
4061   ac_compiler_gnu=no
4062 fi
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4065
4066 fi
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4068 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4069 if test $ac_compiler_gnu = yes; then
4070   GXX=yes
4071 else
4072   GXX=
4073 fi
4074 ac_test_CXXFLAGS=${CXXFLAGS+set}
4075 ac_save_CXXFLAGS=$CXXFLAGS
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4077 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4078 if ${ac_cv_prog_cxx_g+:} false; then :
4079   $as_echo_n "(cached) " >&6
4080 else
4081   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4082    ac_cxx_werror_flag=yes
4083    ac_cv_prog_cxx_g=no
4084    CXXFLAGS="-g"
4085    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h.  */
4087
4088 int
4089 main ()
4090 {
4091
4092   ;
4093   return 0;
4094 }
4095 _ACEOF
4096 if ac_fn_cxx_try_compile "$LINENO"; then :
4097   ac_cv_prog_cxx_g=yes
4098 else
4099   CXXFLAGS=""
4100       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h.  */
4102
4103 int
4104 main ()
4105 {
4106
4107   ;
4108   return 0;
4109 }
4110 _ACEOF
4111 if ac_fn_cxx_try_compile "$LINENO"; then :
4112
4113 else
4114   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4115          CXXFLAGS="-g"
4116          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h.  */
4118
4119 int
4120 main ()
4121 {
4122
4123   ;
4124   return 0;
4125 }
4126 _ACEOF
4127 if ac_fn_cxx_try_compile "$LINENO"; then :
4128   ac_cv_prog_cxx_g=yes
4129 fi
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 fi
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 fi
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4136 fi
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4138 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4139 if test "$ac_test_CXXFLAGS" = set; then
4140   CXXFLAGS=$ac_save_CXXFLAGS
4141 elif test $ac_cv_prog_cxx_g = yes; then
4142   if test "$GXX" = yes; then
4143     CXXFLAGS="-g -O2"
4144   else
4145     CXXFLAGS="-g"
4146   fi
4147 else
4148   if test "$GXX" = yes; then
4149     CXXFLAGS="-O2"
4150   else
4151     CXXFLAGS=
4152   fi
4153 fi
4154 ac_ext=c
4155 ac_cpp='$CPP $CPPFLAGS'
4156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4159
4160
4161
4162 ac_ext=c
4163 ac_cpp='$CPP $CPPFLAGS'
4164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4168 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4169 # On Suns, sometimes $CPP names a directory.
4170 if test -n "$CPP" && test -d "$CPP"; then
4171   CPP=
4172 fi
4173 if test -z "$CPP"; then
4174   if ${ac_cv_prog_CPP+:} false; then :
4175   $as_echo_n "(cached) " >&6
4176 else
4177       # Double quotes because CPP needs to be expanded
4178     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4179     do
4180       ac_preproc_ok=false
4181 for ac_c_preproc_warn_flag in '' yes
4182 do
4183   # Use a header file that comes with gcc, so configuring glibc
4184   # with a fresh cross-compiler works.
4185   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4186   # <limits.h> exists even on freestanding compilers.
4187   # On the NeXT, cc -E runs the code through the compiler's parser,
4188   # not just through cpp. "Syntax error" is here to catch this case.
4189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h.  */
4191 #ifdef __STDC__
4192 # include <limits.h>
4193 #else
4194 # include <assert.h>
4195 #endif
4196                      Syntax error
4197 _ACEOF
4198 if ac_fn_c_try_cpp "$LINENO"; then :
4199
4200 else
4201   # Broken: fails on valid input.
4202 continue
4203 fi
4204 rm -f conftest.err conftest.i conftest.$ac_ext
4205
4206   # OK, works on sane cases.  Now check whether nonexistent headers
4207   # can be detected and how.
4208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h.  */
4210 #include <ac_nonexistent.h>
4211 _ACEOF
4212 if ac_fn_c_try_cpp "$LINENO"; then :
4213   # Broken: success on invalid input.
4214 continue
4215 else
4216   # Passes both tests.
4217 ac_preproc_ok=:
4218 break
4219 fi
4220 rm -f conftest.err conftest.i conftest.$ac_ext
4221
4222 done
4223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4224 rm -f conftest.i conftest.err conftest.$ac_ext
4225 if $ac_preproc_ok; then :
4226   break
4227 fi
4228
4229     done
4230     ac_cv_prog_CPP=$CPP
4231
4232 fi
4233   CPP=$ac_cv_prog_CPP
4234 else
4235   ac_cv_prog_CPP=$CPP
4236 fi
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4238 $as_echo "$CPP" >&6; }
4239 ac_preproc_ok=false
4240 for ac_c_preproc_warn_flag in '' yes
4241 do
4242   # Use a header file that comes with gcc, so configuring glibc
4243   # with a fresh cross-compiler works.
4244   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4245   # <limits.h> exists even on freestanding compilers.
4246   # On the NeXT, cc -E runs the code through the compiler's parser,
4247   # not just through cpp. "Syntax error" is here to catch this case.
4248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h.  */
4250 #ifdef __STDC__
4251 # include <limits.h>
4252 #else
4253 # include <assert.h>
4254 #endif
4255                      Syntax error
4256 _ACEOF
4257 if ac_fn_c_try_cpp "$LINENO"; then :
4258
4259 else
4260   # Broken: fails on valid input.
4261 continue
4262 fi
4263 rm -f conftest.err conftest.i conftest.$ac_ext
4264
4265   # OK, works on sane cases.  Now check whether nonexistent headers
4266   # can be detected and how.
4267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h.  */
4269 #include <ac_nonexistent.h>
4270 _ACEOF
4271 if ac_fn_c_try_cpp "$LINENO"; then :
4272   # Broken: success on invalid input.
4273 continue
4274 else
4275   # Passes both tests.
4276 ac_preproc_ok=:
4277 break
4278 fi
4279 rm -f conftest.err conftest.i conftest.$ac_ext
4280
4281 done
4282 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4283 rm -f conftest.i conftest.err conftest.$ac_ext
4284 if $ac_preproc_ok; then :
4285
4286 else
4287   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4289 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4290 See \`config.log' for more details" "$LINENO" 5; }
4291 fi
4292
4293 ac_ext=c
4294 ac_cpp='$CPP $CPPFLAGS'
4295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4298
4299
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4301 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4302 if ${ac_cv_path_GREP+:} false; then :
4303   $as_echo_n "(cached) " >&6
4304 else
4305   if test -z "$GREP"; then
4306   ac_path_GREP_found=false
4307   # Loop through the user's path and test for each of PROGNAME-LIST
4308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4310 do
4311   IFS=$as_save_IFS
4312   test -z "$as_dir" && as_dir=.
4313     for ac_prog in grep ggrep; do
4314     for ac_exec_ext in '' $ac_executable_extensions; do
4315       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4316       as_fn_executable_p "$ac_path_GREP" || continue
4317 # Check for GNU ac_path_GREP and select it if it is found.
4318   # Check for GNU $ac_path_GREP
4319 case `"$ac_path_GREP" --version 2>&1` in
4320 *GNU*)
4321   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4322 *)
4323   ac_count=0
4324   $as_echo_n 0123456789 >"conftest.in"
4325   while :
4326   do
4327     cat "conftest.in" "conftest.in" >"conftest.tmp"
4328     mv "conftest.tmp" "conftest.in"
4329     cp "conftest.in" "conftest.nl"
4330     $as_echo 'GREP' >> "conftest.nl"
4331     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4332     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4333     as_fn_arith $ac_count + 1 && ac_count=$as_val
4334     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4335       # Best one so far, save it but keep looking for a better one
4336       ac_cv_path_GREP="$ac_path_GREP"
4337       ac_path_GREP_max=$ac_count
4338     fi
4339     # 10*(2^10) chars as input seems more than enough
4340     test $ac_count -gt 10 && break
4341   done
4342   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4343 esac
4344
4345       $ac_path_GREP_found && break 3
4346     done
4347   done
4348   done
4349 IFS=$as_save_IFS
4350   if test -z "$ac_cv_path_GREP"; then
4351     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4352   fi
4353 else
4354   ac_cv_path_GREP=$GREP
4355 fi
4356
4357 fi
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4359 $as_echo "$ac_cv_path_GREP" >&6; }
4360  GREP="$ac_cv_path_GREP"
4361
4362
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4364 $as_echo_n "checking for egrep... " >&6; }
4365 if ${ac_cv_path_EGREP+:} false; then :
4366   $as_echo_n "(cached) " >&6
4367 else
4368   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4369    then ac_cv_path_EGREP="$GREP -E"
4370    else
4371      if test -z "$EGREP"; then
4372   ac_path_EGREP_found=false
4373   # Loop through the user's path and test for each of PROGNAME-LIST
4374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4376 do
4377   IFS=$as_save_IFS
4378   test -z "$as_dir" && as_dir=.
4379     for ac_prog in egrep; do
4380     for ac_exec_ext in '' $ac_executable_extensions; do
4381       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4382       as_fn_executable_p "$ac_path_EGREP" || continue
4383 # Check for GNU ac_path_EGREP and select it if it is found.
4384   # Check for GNU $ac_path_EGREP
4385 case `"$ac_path_EGREP" --version 2>&1` in
4386 *GNU*)
4387   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4388 *)
4389   ac_count=0
4390   $as_echo_n 0123456789 >"conftest.in"
4391   while :
4392   do
4393     cat "conftest.in" "conftest.in" >"conftest.tmp"
4394     mv "conftest.tmp" "conftest.in"
4395     cp "conftest.in" "conftest.nl"
4396     $as_echo 'EGREP' >> "conftest.nl"
4397     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4398     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4399     as_fn_arith $ac_count + 1 && ac_count=$as_val
4400     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4401       # Best one so far, save it but keep looking for a better one
4402       ac_cv_path_EGREP="$ac_path_EGREP"
4403       ac_path_EGREP_max=$ac_count
4404     fi
4405     # 10*(2^10) chars as input seems more than enough
4406     test $ac_count -gt 10 && break
4407   done
4408   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4409 esac
4410
4411       $ac_path_EGREP_found && break 3
4412     done
4413   done
4414   done
4415 IFS=$as_save_IFS
4416   if test -z "$ac_cv_path_EGREP"; then
4417     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4418   fi
4419 else
4420   ac_cv_path_EGREP=$EGREP
4421 fi
4422
4423    fi
4424 fi
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4426 $as_echo "$ac_cv_path_EGREP" >&6; }
4427  EGREP="$ac_cv_path_EGREP"
4428
4429
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4431 $as_echo_n "checking for ANSI C header files... " >&6; }
4432 if ${ac_cv_header_stdc+:} false; then :
4433   $as_echo_n "(cached) " >&6
4434 else
4435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h.  */
4437 #include <stdlib.h>
4438 #include <stdarg.h>
4439 #include <string.h>
4440 #include <float.h>
4441
4442 int
4443 main ()
4444 {
4445
4446   ;
4447   return 0;
4448 }
4449 _ACEOF
4450 if ac_fn_c_try_compile "$LINENO"; then :
4451   ac_cv_header_stdc=yes
4452 else
4453   ac_cv_header_stdc=no
4454 fi
4455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4456
4457 if test $ac_cv_header_stdc = yes; then
4458   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h.  */
4461 #include <string.h>
4462
4463 _ACEOF
4464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4465   $EGREP "memchr" >/dev/null 2>&1; then :
4466
4467 else
4468   ac_cv_header_stdc=no
4469 fi
4470 rm -f conftest*
4471
4472 fi
4473
4474 if test $ac_cv_header_stdc = yes; then
4475   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h.  */
4478 #include <stdlib.h>
4479
4480 _ACEOF
4481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4482   $EGREP "free" >/dev/null 2>&1; then :
4483
4484 else
4485   ac_cv_header_stdc=no
4486 fi
4487 rm -f conftest*
4488
4489 fi
4490
4491 if test $ac_cv_header_stdc = yes; then
4492   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4493   if test "$cross_compiling" = yes; then :
4494   :
4495 else
4496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h.  */
4498 #include <ctype.h>
4499 #include <stdlib.h>
4500 #if ((' ' & 0x0FF) == 0x020)
4501 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4502 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4503 #else
4504 # define ISLOWER(c) \
4505                    (('a' <= (c) && (c) <= 'i') \
4506                      || ('j' <= (c) && (c) <= 'r') \
4507                      || ('s' <= (c) && (c) <= 'z'))
4508 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4509 #endif
4510
4511 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4512 int
4513 main ()
4514 {
4515   int i;
4516   for (i = 0; i < 256; i++)
4517     if (XOR (islower (i), ISLOWER (i))
4518         || toupper (i) != TOUPPER (i))
4519       return 2;
4520   return 0;
4521 }
4522 _ACEOF
4523 if ac_fn_c_try_run "$LINENO"; then :
4524
4525 else
4526   ac_cv_header_stdc=no
4527 fi
4528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4529   conftest.$ac_objext conftest.beam conftest.$ac_ext
4530 fi
4531
4532 fi
4533 fi
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4535 $as_echo "$ac_cv_header_stdc" >&6; }
4536 if test $ac_cv_header_stdc = yes; then
4537
4538 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4539
4540 fi
4541
4542 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4543 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4544                   inttypes.h stdint.h unistd.h
4545 do :
4546   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4547 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4548 "
4549 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4550   cat >>confdefs.h <<_ACEOF
4551 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4552 _ACEOF
4553
4554 fi
4555
4556 done
4557
4558
4559
4560   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4561 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4562   MINIX=yes
4563 else
4564   MINIX=
4565 fi
4566
4567
4568   if test "$MINIX" = yes; then
4569
4570 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4571
4572
4573 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4574
4575
4576 $as_echo "#define _MINIX 1" >>confdefs.h
4577
4578   fi
4579
4580
4581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4582 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4583 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4584   $as_echo_n "(cached) " >&6
4585 else
4586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h.  */
4588
4589 #         define __EXTENSIONS__ 1
4590           $ac_includes_default
4591 int
4592 main ()
4593 {
4594
4595   ;
4596   return 0;
4597 }
4598 _ACEOF
4599 if ac_fn_c_try_compile "$LINENO"; then :
4600   ac_cv_safe_to_define___extensions__=yes
4601 else
4602   ac_cv_safe_to_define___extensions__=no
4603 fi
4604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605 fi
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4607 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4608   test $ac_cv_safe_to_define___extensions__ = yes &&
4609     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4610
4611   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4612
4613   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4614
4615   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4616
4617   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4618
4619
4620 ac_aux_dir=
4621 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4622   if test -f "$ac_dir/install-sh"; then
4623     ac_aux_dir=$ac_dir
4624     ac_install_sh="$ac_aux_dir/install-sh -c"
4625     break
4626   elif test -f "$ac_dir/install.sh"; then
4627     ac_aux_dir=$ac_dir
4628     ac_install_sh="$ac_aux_dir/install.sh -c"
4629     break
4630   elif test -f "$ac_dir/shtool"; then
4631     ac_aux_dir=$ac_dir
4632     ac_install_sh="$ac_aux_dir/shtool install -c"
4633     break
4634   fi
4635 done
4636 if test -z "$ac_aux_dir"; then
4637   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4638 fi
4639
4640 # These three variables are undocumented and unsupported,
4641 # and are intended to be withdrawn in a future Autoconf release.
4642 # They can cause serious problems if a builder's source tree is in a directory
4643 # whose full name contains unusual characters.
4644 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4645 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4646 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4647
4648
4649 # Make sure we can run config.sub.
4650 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4651   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4652
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4654 $as_echo_n "checking build system type... " >&6; }
4655 if ${ac_cv_build+:} false; then :
4656   $as_echo_n "(cached) " >&6
4657 else
4658   ac_build_alias=$build_alias
4659 test "x$ac_build_alias" = x &&
4660   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4661 test "x$ac_build_alias" = x &&
4662   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4663 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4664   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4665
4666 fi
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4668 $as_echo "$ac_cv_build" >&6; }
4669 case $ac_cv_build in
4670 *-*-*) ;;
4671 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4672 esac
4673 build=$ac_cv_build
4674 ac_save_IFS=$IFS; IFS='-'
4675 set x $ac_cv_build
4676 shift
4677 build_cpu=$1
4678 build_vendor=$2
4679 shift; shift
4680 # Remember, the first character of IFS is used to create $*,
4681 # except with old shells:
4682 build_os=$*
4683 IFS=$ac_save_IFS
4684 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4685
4686
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4688 $as_echo_n "checking host system type... " >&6; }
4689 if ${ac_cv_host+:} false; then :
4690   $as_echo_n "(cached) " >&6
4691 else
4692   if test "x$host_alias" = x; then
4693   ac_cv_host=$ac_cv_build
4694 else
4695   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4696     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4697 fi
4698
4699 fi
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4701 $as_echo "$ac_cv_host" >&6; }
4702 case $ac_cv_host in
4703 *-*-*) ;;
4704 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4705 esac
4706 host=$ac_cv_host
4707 ac_save_IFS=$IFS; IFS='-'
4708 set x $ac_cv_host
4709 shift
4710 host_cpu=$1
4711 host_vendor=$2
4712 shift; shift
4713 # Remember, the first character of IFS is used to create $*,
4714 # except with old shells:
4715 host_os=$*
4716 IFS=$ac_save_IFS
4717 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4718
4719
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4721 $as_echo_n "checking target system type... " >&6; }
4722 if ${ac_cv_target+:} false; then :
4723   $as_echo_n "(cached) " >&6
4724 else
4725   if test "x$target_alias" = x; then
4726   ac_cv_target=$ac_cv_host
4727 else
4728   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4729     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4730 fi
4731
4732 fi
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4734 $as_echo "$ac_cv_target" >&6; }
4735 case $ac_cv_target in
4736 *-*-*) ;;
4737 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4738 esac
4739 target=$ac_cv_target
4740 ac_save_IFS=$IFS; IFS='-'
4741 set x $ac_cv_target
4742 shift
4743 target_cpu=$1
4744 target_vendor=$2
4745 shift; shift
4746 # Remember, the first character of IFS is used to create $*,
4747 # except with old shells:
4748 target_os=$*
4749 IFS=$ac_save_IFS
4750 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4751
4752
4753 # The aliases save the names the user supplied, while $host etc.
4754 # will get canonicalized.
4755 test -n "$target_alias" &&
4756   test "$program_prefix$program_suffix$program_transform_name" = \
4757     NONENONEs,x,x, &&
4758   program_prefix=${target_alias}-
4759
4760 # The tests for host and target for $enable_largefile require
4761 # canonical names.
4762
4763
4764
4765 # As the $enable_largefile decision depends on --enable-plugins we must set it
4766 # even in directories otherwise not depending on the $plugins option.
4767
4768
4769   maybe_plugins=no
4770   for ac_header in dlfcn.h
4771 do :
4772   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4773 "
4774 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
4775   cat >>confdefs.h <<_ACEOF
4776 #define HAVE_DLFCN_H 1
4777 _ACEOF
4778  maybe_plugins=yes
4779 fi
4780
4781 done
4782
4783   for ac_header in windows.h
4784 do :
4785   ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4786 "
4787 if test "x$ac_cv_header_windows_h" = xyes; then :
4788   cat >>confdefs.h <<_ACEOF
4789 #define HAVE_WINDOWS_H 1
4790 _ACEOF
4791  maybe_plugins=yes
4792 fi
4793
4794 done
4795
4796
4797   # Check whether --enable-plugins was given.
4798 if test "${enable_plugins+set}" = set; then :
4799   enableval=$enable_plugins; case "${enableval}" in
4800       no) plugins=no ;;
4801       *) plugins=yes
4802          if test "$maybe_plugins" != "yes" ; then
4803            as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4804          fi ;;
4805      esac
4806 else
4807   plugins=$maybe_plugins
4808
4809 fi
4810
4811   if test "$plugins" = "yes"; then
4812     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4813 $as_echo_n "checking for library containing dlsym... " >&6; }
4814 if ${ac_cv_search_dlsym+:} false; then :
4815   $as_echo_n "(cached) " >&6
4816 else
4817   ac_func_search_save_LIBS=$LIBS
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h.  */
4820
4821 /* Override any GCC internal prototype to avoid an error.
4822    Use char because int might match the return type of a GCC
4823    builtin and then its argument prototype would still apply.  */
4824 #ifdef __cplusplus
4825 extern "C"
4826 #endif
4827 char dlsym ();
4828 int
4829 main ()
4830 {
4831 return dlsym ();
4832   ;
4833   return 0;
4834 }
4835 _ACEOF
4836 for ac_lib in '' dl; do
4837   if test -z "$ac_lib"; then
4838     ac_res="none required"
4839   else
4840     ac_res=-l$ac_lib
4841     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4842   fi
4843   if ac_fn_c_try_link "$LINENO"; then :
4844   ac_cv_search_dlsym=$ac_res
4845 fi
4846 rm -f core conftest.err conftest.$ac_objext \
4847     conftest$ac_exeext
4848   if ${ac_cv_search_dlsym+:} false; then :
4849   break
4850 fi
4851 done
4852 if ${ac_cv_search_dlsym+:} false; then :
4853
4854 else
4855   ac_cv_search_dlsym=no
4856 fi
4857 rm conftest.$ac_ext
4858 LIBS=$ac_func_search_save_LIBS
4859 fi
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4861 $as_echo "$ac_cv_search_dlsym" >&6; }
4862 ac_res=$ac_cv_search_dlsym
4863 if test "$ac_res" != no; then :
4864   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4865
4866 fi
4867
4868   fi
4869
4870
4871 case "${host}" in
4872   sparc-*-solaris*|i?86-*-solaris*)
4873     # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
4874     # were mutually exclusive until Solaris 11.3.  Without procfs support,
4875     # the bfd/ elf module cannot provide certain routines such as
4876     # elfcore_write_prpsinfo or elfcore_write_prstatus.  So unless the user
4877     # explicitly requested large-file support through the
4878     # --enable-largefile switch, disable large-file support in favor of
4879     # procfs support.
4880     #
4881     # Check if <sys/procfs.h> is incompatible with large-file support.
4882     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h.  */
4884 #define _FILE_OFFSET_BITS 64
4885 #define _STRUCTURED_PROC 1
4886 #include <sys/procfs.h>
4887 int
4888 main ()
4889 {
4890
4891   ;
4892   return 0;
4893 }
4894 _ACEOF
4895 if ac_fn_c_try_compile "$LINENO"; then :
4896   acx_cv_procfs_lfs=yes
4897 else
4898   acx_cv_procfs_lfs=no
4899 fi
4900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4901     #
4902     # Forcefully disable large-file support only if necessary, gdb is in
4903     # tree and enabled.
4904     if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
4905          -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
4906       : ${enable_largefile="no"}
4907       if test "$plugins" = yes; then
4908         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4909 plugin support disabled; require large-file support which is incompatible with GDB." >&5
4910 $as_echo "$as_me: WARNING:
4911 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
4912         plugins=no
4913       fi
4914     fi
4915     #
4916     # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
4917     # benefit of g++ 9+ which predefines it on Solaris.
4918     if test "$enable_largefile" = no; then
4919       LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
4920
4921     fi
4922     ;;
4923 esac
4924
4925 # Check whether --enable-largefile was given.
4926 if test "${enable_largefile+set}" = set; then :
4927   enableval=$enable_largefile;
4928 fi
4929
4930 if test "$enable_largefile" != no; then
4931
4932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4933 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4934 if ${ac_cv_sys_largefile_CC+:} false; then :
4935   $as_echo_n "(cached) " >&6
4936 else
4937   ac_cv_sys_largefile_CC=no
4938      if test "$GCC" != yes; then
4939        ac_save_CC=$CC
4940        while :; do
4941          # IRIX 6.2 and later do not support large files by default,
4942          # so use the C compiler's -n32 option if that helps.
4943          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h.  */
4945 #include <sys/types.h>
4946  /* Check that off_t can represent 2**63 - 1 correctly.
4947     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4948     since some C++ compilers masquerading as C compilers
4949     incorrectly reject 9223372036854775807.  */
4950 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4951   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4952                        && LARGE_OFF_T % 2147483647 == 1)
4953                       ? 1 : -1];
4954 int
4955 main ()
4956 {
4957
4958   ;
4959   return 0;
4960 }
4961 _ACEOF
4962          if ac_fn_c_try_compile "$LINENO"; then :
4963   break
4964 fi
4965 rm -f core conftest.err conftest.$ac_objext
4966          CC="$CC -n32"
4967          if ac_fn_c_try_compile "$LINENO"; then :
4968   ac_cv_sys_largefile_CC=' -n32'; break
4969 fi
4970 rm -f core conftest.err conftest.$ac_objext
4971          break
4972        done
4973        CC=$ac_save_CC
4974        rm -f conftest.$ac_ext
4975     fi
4976 fi
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4978 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4979   if test "$ac_cv_sys_largefile_CC" != no; then
4980     CC=$CC$ac_cv_sys_largefile_CC
4981   fi
4982
4983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4984 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4985 if ${ac_cv_sys_file_offset_bits+:} false; then :
4986   $as_echo_n "(cached) " >&6
4987 else
4988   while :; do
4989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h.  */
4991 #include <sys/types.h>
4992  /* Check that off_t can represent 2**63 - 1 correctly.
4993     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4994     since some C++ compilers masquerading as C compilers
4995     incorrectly reject 9223372036854775807.  */
4996 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4997   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4998                        && LARGE_OFF_T % 2147483647 == 1)
4999                       ? 1 : -1];
5000 int
5001 main ()
5002 {
5003
5004   ;
5005   return 0;
5006 }
5007 _ACEOF
5008 if ac_fn_c_try_compile "$LINENO"; then :
5009   ac_cv_sys_file_offset_bits=no; break
5010 fi
5011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013 /* end confdefs.h.  */
5014 #define _FILE_OFFSET_BITS 64
5015 #include <sys/types.h>
5016  /* Check that off_t can represent 2**63 - 1 correctly.
5017     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5018     since some C++ compilers masquerading as C compilers
5019     incorrectly reject 9223372036854775807.  */
5020 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5021   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5022                        && LARGE_OFF_T % 2147483647 == 1)
5023                       ? 1 : -1];
5024 int
5025 main ()
5026 {
5027
5028   ;
5029   return 0;
5030 }
5031 _ACEOF
5032 if ac_fn_c_try_compile "$LINENO"; then :
5033   ac_cv_sys_file_offset_bits=64; break
5034 fi
5035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5036   ac_cv_sys_file_offset_bits=unknown
5037   break
5038 done
5039 fi
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5041 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5042 case $ac_cv_sys_file_offset_bits in #(
5043   no | unknown) ;;
5044   *)
5045 cat >>confdefs.h <<_ACEOF
5046 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5047 _ACEOF
5048 ;;
5049 esac
5050 rm -rf conftest*
5051   if test $ac_cv_sys_file_offset_bits = unknown; then
5052     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5053 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5054 if ${ac_cv_sys_large_files+:} false; then :
5055   $as_echo_n "(cached) " >&6
5056 else
5057   while :; do
5058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h.  */
5060 #include <sys/types.h>
5061  /* Check that off_t can represent 2**63 - 1 correctly.
5062     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5063     since some C++ compilers masquerading as C compilers
5064     incorrectly reject 9223372036854775807.  */
5065 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5066   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5067                        && LARGE_OFF_T % 2147483647 == 1)
5068                       ? 1 : -1];
5069 int
5070 main ()
5071 {
5072
5073   ;
5074   return 0;
5075 }
5076 _ACEOF
5077 if ac_fn_c_try_compile "$LINENO"; then :
5078   ac_cv_sys_large_files=no; break
5079 fi
5080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h.  */
5083 #define _LARGE_FILES 1
5084 #include <sys/types.h>
5085  /* Check that off_t can represent 2**63 - 1 correctly.
5086     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5087     since some C++ compilers masquerading as C compilers
5088     incorrectly reject 9223372036854775807.  */
5089 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5090   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5091                        && LARGE_OFF_T % 2147483647 == 1)
5092                       ? 1 : -1];
5093 int
5094 main ()
5095 {
5096
5097   ;
5098   return 0;
5099 }
5100 _ACEOF
5101 if ac_fn_c_try_compile "$LINENO"; then :
5102   ac_cv_sys_large_files=1; break
5103 fi
5104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105   ac_cv_sys_large_files=unknown
5106   break
5107 done
5108 fi
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5110 $as_echo "$ac_cv_sys_large_files" >&6; }
5111 case $ac_cv_sys_large_files in #(
5112   no | unknown) ;;
5113   *)
5114 cat >>confdefs.h <<_ACEOF
5115 #define _LARGE_FILES $ac_cv_sys_large_files
5116 _ACEOF
5117 ;;
5118 esac
5119 rm -rf conftest*
5120   fi
5121
5122
5123 fi
5124
5125
5126 # Expand $ac_aux_dir to an absolute path.
5127 am_aux_dir=`cd "$ac_aux_dir" && pwd`
5128
5129 if test x"${install_sh+set}" != xset; then
5130   case $am_aux_dir in
5131   *\ * | *\     *)
5132     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5133   *)
5134     install_sh="\${SHELL} $am_aux_dir/install-sh"
5135   esac
5136 fi
5137
5138 # Installed binaries are usually stripped using 'strip' when the user
5139 # run "make install-strip".  However 'strip' might not be the right
5140 # tool to use in cross-compilation environments, therefore Automake
5141 # will honor the 'STRIP' environment variable to overrule this program.
5142 if test "$cross_compiling" != no; then
5143   if test -n "$ac_tool_prefix"; then
5144   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5145 set dummy ${ac_tool_prefix}strip; ac_word=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if ${ac_cv_prog_STRIP+:} false; then :
5149   $as_echo_n "(cached) " >&6
5150 else
5151   if test -n "$STRIP"; then
5152   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5153 else
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5156 do
5157   IFS=$as_save_IFS
5158   test -z "$as_dir" && as_dir=.
5159     for ac_exec_ext in '' $ac_executable_extensions; do
5160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5163     break 2
5164   fi
5165 done
5166   done
5167 IFS=$as_save_IFS
5168
5169 fi
5170 fi
5171 STRIP=$ac_cv_prog_STRIP
5172 if test -n "$STRIP"; then
5173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5174 $as_echo "$STRIP" >&6; }
5175 else
5176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5178 fi
5179
5180
5181 fi
5182 if test -z "$ac_cv_prog_STRIP"; then
5183   ac_ct_STRIP=$STRIP
5184   # Extract the first word of "strip", so it can be a program name with args.
5185 set dummy strip; ac_word=$2
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187 $as_echo_n "checking for $ac_word... " >&6; }
5188 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5189   $as_echo_n "(cached) " >&6
5190 else
5191   if test -n "$ac_ct_STRIP"; then
5192   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5193 else
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5196 do
5197   IFS=$as_save_IFS
5198   test -z "$as_dir" && as_dir=.
5199     for ac_exec_ext in '' $ac_executable_extensions; do
5200   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5201     ac_cv_prog_ac_ct_STRIP="strip"
5202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203     break 2
5204   fi
5205 done
5206   done
5207 IFS=$as_save_IFS
5208
5209 fi
5210 fi
5211 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5212 if test -n "$ac_ct_STRIP"; then
5213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5214 $as_echo "$ac_ct_STRIP" >&6; }
5215 else
5216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5218 fi
5219
5220   if test "x$ac_ct_STRIP" = x; then
5221     STRIP=":"
5222   else
5223     case $cross_compiling:$ac_tool_warned in
5224 yes:)
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5227 ac_tool_warned=yes ;;
5228 esac
5229     STRIP=$ac_ct_STRIP
5230   fi
5231 else
5232   STRIP="$ac_cv_prog_STRIP"
5233 fi
5234
5235 fi
5236 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5237
5238
5239 ac_aux_dir=
5240 for ac_dir in .. "$srcdir"/..; do
5241   if test -f "$ac_dir/install-sh"; then
5242     ac_aux_dir=$ac_dir
5243     ac_install_sh="$ac_aux_dir/install-sh -c"
5244     break
5245   elif test -f "$ac_dir/install.sh"; then
5246     ac_aux_dir=$ac_dir
5247     ac_install_sh="$ac_aux_dir/install.sh -c"
5248     break
5249   elif test -f "$ac_dir/shtool"; then
5250     ac_aux_dir=$ac_dir
5251     ac_install_sh="$ac_aux_dir/shtool install -c"
5252     break
5253   fi
5254 done
5255 if test -z "$ac_aux_dir"; then
5256   as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5257 fi
5258
5259 # These three variables are undocumented and unsupported,
5260 # and are intended to be withdrawn in a future Autoconf release.
5261 # They can cause serious problems if a builder's source tree is in a directory
5262 # whose full name contains unusual characters.
5263 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
5264 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
5265 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
5266
5267
5268
5269 # Set build, build_cpu, build_vendor and build_os.
5270
5271
5272 # Set host, host_cpu, host_vendor, and host_os.
5273
5274
5275 # Set target, target_cpu, target_vendor, and target_os.
5276
5277
5278  case ${build_alias} in
5279   "") build_noncanonical=${build} ;;
5280   *) build_noncanonical=${build_alias} ;;
5281 esac
5282
5283  case ${host_alias} in
5284   "") host_noncanonical=${build_noncanonical} ;;
5285   *) host_noncanonical=${host_alias} ;;
5286 esac
5287
5288  case ${target_alias} in
5289   "") target_noncanonical=${host_noncanonical} ;;
5290   *) target_noncanonical=${target_alias} ;;
5291 esac
5292
5293
5294
5295
5296 test "$program_prefix" != NONE &&
5297   program_transform_name="s&^&$program_prefix&;$program_transform_name"
5298 # Use a double $ so make ignores it.
5299 test "$program_suffix" != NONE &&
5300   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5301 # Double any \ or $.
5302 # By default was `s,x,x', remove it if useless.
5303 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5304 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5305
5306
5307 # We require libtool to link with the in-tree libtool libraries
5308 # the proper way.
5309 case `pwd` in
5310   *\ * | *\     *)
5311     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5312 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5313 esac
5314
5315
5316
5317 macro_version='2.2.7a'
5318 macro_revision='1.3134'
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332 ltmain="$ac_aux_dir/ltmain.sh"
5333
5334 # Backslashify metacharacters that are still active within
5335 # double-quoted strings.
5336 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5337
5338 # Same as above, but do not quote variable references.
5339 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5340
5341 # Sed substitution to delay expansion of an escaped shell variable in a
5342 # double_quote_subst'ed string.
5343 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5344
5345 # Sed substitution to delay expansion of an escaped single quote.
5346 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5347
5348 # Sed substitution to avoid accidental globbing in evaled expressions
5349 no_glob_subst='s/\*/\\\*/g'
5350
5351 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5352 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5353 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5354
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5356 $as_echo_n "checking how to print strings... " >&6; }
5357 # Test print first, because it will be a builtin if present.
5358 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5359    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5360   ECHO='print -r --'
5361 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5362   ECHO='printf %s\n'
5363 else
5364   # Use this function as a fallback that always works.
5365   func_fallback_echo ()
5366   {
5367     eval 'cat <<_LTECHO_EOF
5368 $1
5369 _LTECHO_EOF'
5370   }
5371   ECHO='func_fallback_echo'
5372 fi
5373
5374 # func_echo_all arg...
5375 # Invoke $ECHO with all args, space-separated.
5376 func_echo_all ()
5377 {
5378     $ECHO ""
5379 }
5380
5381 case "$ECHO" in
5382   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5383 $as_echo "printf" >&6; } ;;
5384   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5385 $as_echo "print -r" >&6; } ;;
5386   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5387 $as_echo "cat" >&6; } ;;
5388 esac
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5404 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5405 if ${ac_cv_path_SED+:} false; then :
5406   $as_echo_n "(cached) " >&6
5407 else
5408             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5409      for ac_i in 1 2 3 4 5 6 7; do
5410        ac_script="$ac_script$as_nl$ac_script"
5411      done
5412      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5413      { ac_script=; unset ac_script;}
5414      if test -z "$SED"; then
5415   ac_path_SED_found=false
5416   # Loop through the user's path and test for each of PROGNAME-LIST
5417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 for as_dir in $PATH
5419 do
5420   IFS=$as_save_IFS
5421   test -z "$as_dir" && as_dir=.
5422     for ac_prog in sed gsed; do
5423     for ac_exec_ext in '' $ac_executable_extensions; do
5424       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5425       as_fn_executable_p "$ac_path_SED" || continue
5426 # Check for GNU ac_path_SED and select it if it is found.
5427   # Check for GNU $ac_path_SED
5428 case `"$ac_path_SED" --version 2>&1` in
5429 *GNU*)
5430   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5431 *)
5432   ac_count=0
5433   $as_echo_n 0123456789 >"conftest.in"
5434   while :
5435   do
5436     cat "conftest.in" "conftest.in" >"conftest.tmp"
5437     mv "conftest.tmp" "conftest.in"
5438     cp "conftest.in" "conftest.nl"
5439     $as_echo '' >> "conftest.nl"
5440     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5441     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5442     as_fn_arith $ac_count + 1 && ac_count=$as_val
5443     if test $ac_count -gt ${ac_path_SED_max-0}; then
5444       # Best one so far, save it but keep looking for a better one
5445       ac_cv_path_SED="$ac_path_SED"
5446       ac_path_SED_max=$ac_count
5447     fi
5448     # 10*(2^10) chars as input seems more than enough
5449     test $ac_count -gt 10 && break
5450   done
5451   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5452 esac
5453
5454       $ac_path_SED_found && break 3
5455     done
5456   done
5457   done
5458 IFS=$as_save_IFS
5459   if test -z "$ac_cv_path_SED"; then
5460     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5461   fi
5462 else
5463   ac_cv_path_SED=$SED
5464 fi
5465
5466 fi
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5468 $as_echo "$ac_cv_path_SED" >&6; }
5469  SED="$ac_cv_path_SED"
5470   rm -f conftest.sed
5471
5472 test -z "$SED" && SED=sed
5473 Xsed="$SED -e 1s/^X//"
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5486 $as_echo_n "checking for fgrep... " >&6; }
5487 if ${ac_cv_path_FGREP+:} false; then :
5488   $as_echo_n "(cached) " >&6
5489 else
5490   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5491    then ac_cv_path_FGREP="$GREP -F"
5492    else
5493      if test -z "$FGREP"; then
5494   ac_path_FGREP_found=false
5495   # Loop through the user's path and test for each of PROGNAME-LIST
5496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5498 do
5499   IFS=$as_save_IFS
5500   test -z "$as_dir" && as_dir=.
5501     for ac_prog in fgrep; do
5502     for ac_exec_ext in '' $ac_executable_extensions; do
5503       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5504       as_fn_executable_p "$ac_path_FGREP" || continue
5505 # Check for GNU ac_path_FGREP and select it if it is found.
5506   # Check for GNU $ac_path_FGREP
5507 case `"$ac_path_FGREP" --version 2>&1` in
5508 *GNU*)
5509   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5510 *)
5511   ac_count=0
5512   $as_echo_n 0123456789 >"conftest.in"
5513   while :
5514   do
5515     cat "conftest.in" "conftest.in" >"conftest.tmp"
5516     mv "conftest.tmp" "conftest.in"
5517     cp "conftest.in" "conftest.nl"
5518     $as_echo 'FGREP' >> "conftest.nl"
5519     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5520     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5521     as_fn_arith $ac_count + 1 && ac_count=$as_val
5522     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5523       # Best one so far, save it but keep looking for a better one
5524       ac_cv_path_FGREP="$ac_path_FGREP"
5525       ac_path_FGREP_max=$ac_count
5526     fi
5527     # 10*(2^10) chars as input seems more than enough
5528     test $ac_count -gt 10 && break
5529   done
5530   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5531 esac
5532
5533       $ac_path_FGREP_found && break 3
5534     done
5535   done
5536   done
5537 IFS=$as_save_IFS
5538   if test -z "$ac_cv_path_FGREP"; then
5539     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5540   fi
5541 else
5542   ac_cv_path_FGREP=$FGREP
5543 fi
5544
5545    fi
5546 fi
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5548 $as_echo "$ac_cv_path_FGREP" >&6; }
5549  FGREP="$ac_cv_path_FGREP"
5550
5551
5552 test -z "$GREP" && GREP=grep
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572 # Check whether --with-gnu-ld was given.
5573 if test "${with_gnu_ld+set}" = set; then :
5574   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5575 else
5576   with_gnu_ld=no
5577 fi
5578
5579 ac_prog=ld
5580 if test "$GCC" = yes; then
5581   # Check if gcc -print-prog-name=ld gives a path.
5582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5583 $as_echo_n "checking for ld used by $CC... " >&6; }
5584   case $host in
5585   *-*-mingw*)
5586     # gcc leaves a trailing carriage return which upsets mingw
5587     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5588   *)
5589     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5590   esac
5591   case $ac_prog in
5592     # Accept absolute paths.
5593     [\\/]* | ?:[\\/]*)
5594       re_direlt='/[^/][^/]*/\.\./'
5595       # Canonicalize the pathname of ld
5596       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5597       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5598         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5599       done
5600       test -z "$LD" && LD="$ac_prog"
5601       ;;
5602   "")
5603     # If it fails, then pretend we aren't using GCC.
5604     ac_prog=ld
5605     ;;
5606   *)
5607     # If it is relative, then search for the first ld in PATH.
5608     with_gnu_ld=unknown
5609     ;;
5610   esac
5611 elif test "$with_gnu_ld" = yes; then
5612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5613 $as_echo_n "checking for GNU ld... " >&6; }
5614 else
5615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5616 $as_echo_n "checking for non-GNU ld... " >&6; }
5617 fi
5618 if ${lt_cv_path_LD+:} false; then :
5619   $as_echo_n "(cached) " >&6
5620 else
5621   if test -z "$LD"; then
5622   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5623   for ac_dir in $PATH; do
5624     IFS="$lt_save_ifs"
5625     test -z "$ac_dir" && ac_dir=.
5626     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5627       lt_cv_path_LD="$ac_dir/$ac_prog"
5628       # Check to see if the program is GNU ld.  I'd rather use --version,
5629       # but apparently some variants of GNU ld only accept -v.
5630       # Break only if it was the GNU/non-GNU ld that we prefer.
5631       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5632       *GNU* | *'with BFD'*)
5633         test "$with_gnu_ld" != no && break
5634         ;;
5635       *)
5636         test "$with_gnu_ld" != yes && break
5637         ;;
5638       esac
5639     fi
5640   done
5641   IFS="$lt_save_ifs"
5642 else
5643   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5644 fi
5645 fi
5646
5647 LD="$lt_cv_path_LD"
5648 if test -n "$LD"; then
5649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5650 $as_echo "$LD" >&6; }
5651 else
5652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5654 fi
5655 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5657 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5658 if ${lt_cv_prog_gnu_ld+:} false; then :
5659   $as_echo_n "(cached) " >&6
5660 else
5661   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5662 case `$LD -v 2>&1 </dev/null` in
5663 *GNU* | *'with BFD'*)
5664   lt_cv_prog_gnu_ld=yes
5665   ;;
5666 *)
5667   lt_cv_prog_gnu_ld=no
5668   ;;
5669 esac
5670 fi
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5672 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5673 with_gnu_ld=$lt_cv_prog_gnu_ld
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5684 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5685 if ${lt_cv_path_NM+:} false; then :
5686   $as_echo_n "(cached) " >&6
5687 else
5688   if test -n "$NM"; then
5689    # Let the user override the nm to test.
5690    lt_nm_to_check="$NM"
5691  else
5692    lt_nm_to_check="${ac_tool_prefix}nm"
5693    if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5694      lt_nm_to_check="$lt_nm_to_check nm"
5695    fi
5696  fi
5697  for lt_tmp_nm in "$lt_nm_to_check"; do
5698    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5699    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5700      IFS="$lt_save_ifs"
5701      test -z "$ac_dir" && ac_dir=.
5702      # Strip out any user-provided options from the nm to test twice,
5703      # the first time to test to see if nm (rather than its options) has
5704      # an explicit path, the second time to yield a file which can be
5705      # nm'ed itself.
5706      tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5707      case "$tmp_nm_path" in
5708      */*|*\\*) tmp_nm="$lt_tmp_nm";;
5709      *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5710      esac
5711      tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5712      if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5713        # Check to see if the nm accepts a BSD-compat flag.
5714        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5715        #   nm: unknown option "B" ignored
5716        case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5717        *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5718          break
5719          ;;
5720        *)
5721          case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5722          *$tmp_nm*)
5723            lt_cv_path_NM="$tmp_nm -p"
5724            break
5725            ;;
5726          *)
5727            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5728            continue # so that we can try to find one that supports BSD flags
5729            ;;
5730          esac
5731          ;;
5732        esac
5733      fi
5734    done
5735    IFS="$lt_save_ifs"
5736  done
5737  : ${lt_cv_path_NM=no}
5738 fi
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5740 $as_echo "$lt_cv_path_NM" >&6; }
5741 if test "$lt_cv_path_NM" != "no"; then
5742   NM="$lt_cv_path_NM"
5743 else
5744   # Didn't find any BSD compatible name lister, look for dumpbin.
5745   if test -n "$DUMPBIN"; then :
5746     # Let the user override the test.
5747   else
5748     if test -n "$ac_tool_prefix"; then
5749   for ac_prog in dumpbin "link -dump"
5750   do
5751     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5752 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5754 $as_echo_n "checking for $ac_word... " >&6; }
5755 if ${ac_cv_prog_DUMPBIN+:} false; then :
5756   $as_echo_n "(cached) " >&6
5757 else
5758   if test -n "$DUMPBIN"; then
5759   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5760 else
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 for as_dir in $PATH
5763 do
5764   IFS=$as_save_IFS
5765   test -z "$as_dir" && as_dir=.
5766     for ac_exec_ext in '' $ac_executable_extensions; do
5767   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5768     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5770     break 2
5771   fi
5772 done
5773   done
5774 IFS=$as_save_IFS
5775
5776 fi
5777 fi
5778 DUMPBIN=$ac_cv_prog_DUMPBIN
5779 if test -n "$DUMPBIN"; then
5780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5781 $as_echo "$DUMPBIN" >&6; }
5782 else
5783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784 $as_echo "no" >&6; }
5785 fi
5786
5787
5788     test -n "$DUMPBIN" && break
5789   done
5790 fi
5791 if test -z "$DUMPBIN"; then
5792   ac_ct_DUMPBIN=$DUMPBIN
5793   for ac_prog in dumpbin "link -dump"
5794 do
5795   # Extract the first word of "$ac_prog", so it can be a program name with args.
5796 set dummy $ac_prog; ac_word=$2
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798 $as_echo_n "checking for $ac_word... " >&6; }
5799 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5800   $as_echo_n "(cached) " >&6
5801 else
5802   if test -n "$ac_ct_DUMPBIN"; then
5803   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5804 else
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH
5807 do
5808   IFS=$as_save_IFS
5809   test -z "$as_dir" && as_dir=.
5810     for ac_exec_ext in '' $ac_executable_extensions; do
5811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5812     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5814     break 2
5815   fi
5816 done
5817   done
5818 IFS=$as_save_IFS
5819
5820 fi
5821 fi
5822 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5823 if test -n "$ac_ct_DUMPBIN"; then
5824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5825 $as_echo "$ac_ct_DUMPBIN" >&6; }
5826 else
5827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 $as_echo "no" >&6; }
5829 fi
5830
5831
5832   test -n "$ac_ct_DUMPBIN" && break
5833 done
5834
5835   if test "x$ac_ct_DUMPBIN" = x; then
5836     DUMPBIN=":"
5837   else
5838     case $cross_compiling:$ac_tool_warned in
5839 yes:)
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5842 ac_tool_warned=yes ;;
5843 esac
5844     DUMPBIN=$ac_ct_DUMPBIN
5845   fi
5846 fi
5847
5848     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5849     *COFF*)
5850       DUMPBIN="$DUMPBIN -symbols"
5851       ;;
5852     *)
5853       DUMPBIN=:
5854       ;;
5855     esac
5856   fi
5857
5858   if test "$DUMPBIN" != ":"; then
5859     NM="$DUMPBIN"
5860   fi
5861 fi
5862 test -z "$NM" && NM=nm
5863
5864
5865
5866
5867
5868
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5870 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5871 if ${lt_cv_nm_interface+:} false; then :
5872   $as_echo_n "(cached) " >&6
5873 else
5874   lt_cv_nm_interface="BSD nm"
5875   echo "int some_variable = 0;" > conftest.$ac_ext
5876   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5877   (eval "$ac_compile" 2>conftest.err)
5878   cat conftest.err >&5
5879   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5880   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5881   cat conftest.err >&5
5882   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5883   cat conftest.out >&5
5884   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5885     lt_cv_nm_interface="MS dumpbin"
5886   fi
5887   rm -f conftest*
5888 fi
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5890 $as_echo "$lt_cv_nm_interface" >&6; }
5891
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5893 $as_echo_n "checking whether ln -s works... " >&6; }
5894 LN_S=$as_ln_s
5895 if test "$LN_S" = "ln -s"; then
5896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5897 $as_echo "yes" >&6; }
5898 else
5899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5900 $as_echo "no, using $LN_S" >&6; }
5901 fi
5902
5903 # find the maximum length of command line arguments
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5905 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5906 if ${lt_cv_sys_max_cmd_len+:} false; then :
5907   $as_echo_n "(cached) " >&6
5908 else
5909     i=0
5910   teststring="ABCD"
5911
5912   case $build_os in
5913   msdosdjgpp*)
5914     # On DJGPP, this test can blow up pretty badly due to problems in libc
5915     # (any single argument exceeding 2000 bytes causes a buffer overrun
5916     # during glob expansion).  Even if it were fixed, the result of this
5917     # check would be larger than it should be.
5918     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5919     ;;
5920
5921   gnu*)
5922     # Under GNU Hurd, this test is not required because there is
5923     # no limit to the length of command line arguments.
5924     # Libtool will interpret -1 as no limit whatsoever
5925     lt_cv_sys_max_cmd_len=-1;
5926     ;;
5927
5928   cygwin* | mingw* | cegcc*)
5929     # On Win9x/ME, this test blows up -- it succeeds, but takes
5930     # about 5 minutes as the teststring grows exponentially.
5931     # Worse, since 9x/ME are not pre-emptively multitasking,
5932     # you end up with a "frozen" computer, even though with patience
5933     # the test eventually succeeds (with a max line length of 256k).
5934     # Instead, let's just punt: use the minimum linelength reported by
5935     # all of the supported platforms: 8192 (on NT/2K/XP).
5936     lt_cv_sys_max_cmd_len=8192;
5937     ;;
5938
5939   mint*)
5940     # On MiNT this can take a long time and run out of memory.
5941     lt_cv_sys_max_cmd_len=8192;
5942     ;;
5943
5944   amigaos*)
5945     # On AmigaOS with pdksh, this test takes hours, literally.
5946     # So we just punt and use a minimum line length of 8192.
5947     lt_cv_sys_max_cmd_len=8192;
5948     ;;
5949
5950   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5951     # This has been around since 386BSD, at least.  Likely further.
5952     if test -x /sbin/sysctl; then
5953       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5954     elif test -x /usr/sbin/sysctl; then
5955       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5956     else
5957       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5958     fi
5959     # And add a safety zone
5960     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5961     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5962     ;;
5963
5964   interix*)
5965     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5966     lt_cv_sys_max_cmd_len=196608
5967     ;;
5968
5969   osf*)
5970     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5971     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5972     # nice to cause kernel panics so lets avoid the loop below.
5973     # First set a reasonable default.
5974     lt_cv_sys_max_cmd_len=16384
5975     #
5976     if test -x /sbin/sysconfig; then
5977       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5978         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5979       esac
5980     fi
5981     ;;
5982   sco3.2v5*)
5983     lt_cv_sys_max_cmd_len=102400
5984     ;;
5985   sysv5* | sco5v6* | sysv4.2uw2*)
5986     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5987     if test -n "$kargmax"; then
5988       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5989     else
5990       lt_cv_sys_max_cmd_len=32768
5991     fi
5992     ;;
5993   *)
5994     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5995     if test -n "$lt_cv_sys_max_cmd_len"; then
5996       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5997       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5998     else
5999       # Make teststring a little bigger before we do anything with it.
6000       # a 1K string should be a reasonable start.
6001       for i in 1 2 3 4 5 6 7 8 ; do
6002         teststring=$teststring$teststring
6003       done
6004       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6005       # If test is not a shell built-in, we'll probably end up computing a
6006       # maximum length that is only half of the actual maximum length, but
6007       # we can't tell.
6008       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6009                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6010               test $i != 17 # 1/2 MB should be enough
6011       do
6012         i=`expr $i + 1`
6013         teststring=$teststring$teststring
6014       done
6015       # Only check the string length outside the loop.
6016       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6017       teststring=
6018       # Add a significant safety factor because C++ compilers can tack on
6019       # massive amounts of additional arguments before passing them to the
6020       # linker.  It appears as though 1/2 is a usable value.
6021       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6022     fi
6023     ;;
6024   esac
6025
6026 fi
6027
6028 if test -n $lt_cv_sys_max_cmd_len ; then
6029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6030 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6031 else
6032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6033 $as_echo "none" >&6; }
6034 fi
6035 max_cmd_len=$lt_cv_sys_max_cmd_len
6036
6037
6038
6039
6040
6041
6042 : ${CP="cp -f"}
6043 : ${MV="mv -f"}
6044 : ${RM="rm -f"}
6045
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6047 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6048 # Try some XSI features
6049 xsi_shell=no
6050 ( _lt_dummy="a/b/c"
6051   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6052       = c,a/b,, \
6053     && eval 'test $(( 1 + 1 )) -eq 2 \
6054     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6055   && xsi_shell=yes
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6057 $as_echo "$xsi_shell" >&6; }
6058
6059
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6061 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6062 lt_shell_append=no
6063 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6064     >/dev/null 2>&1 \
6065   && lt_shell_append=yes
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6067 $as_echo "$lt_shell_append" >&6; }
6068
6069
6070 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6071   lt_unset=unset
6072 else
6073   lt_unset=false
6074 fi
6075
6076
6077
6078
6079
6080 # test EBCDIC or ASCII
6081 case `echo X|tr X '\101'` in
6082  A) # ASCII based system
6083     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6084   lt_SP2NL='tr \040 \012'
6085   lt_NL2SP='tr \015\012 \040\040'
6086   ;;
6087  *) # EBCDIC based system
6088   lt_SP2NL='tr \100 \n'
6089   lt_NL2SP='tr \r\n \100\100'
6090   ;;
6091 esac
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6102 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6103 if ${lt_cv_ld_reload_flag+:} false; then :
6104   $as_echo_n "(cached) " >&6
6105 else
6106   lt_cv_ld_reload_flag='-r'
6107 fi
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6109 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6110 reload_flag=$lt_cv_ld_reload_flag
6111 case $reload_flag in
6112 "" | " "*) ;;
6113 *) reload_flag=" $reload_flag" ;;
6114 esac
6115 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6116 case $host_os in
6117   darwin*)
6118     if test "$GCC" = yes; then
6119       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6120     else
6121       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6122     fi
6123     ;;
6124 esac
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134 if test -n "$ac_tool_prefix"; then
6135   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6136 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6138 $as_echo_n "checking for $ac_word... " >&6; }
6139 if ${ac_cv_prog_OBJDUMP+:} false; then :
6140   $as_echo_n "(cached) " >&6
6141 else
6142   if test -n "$OBJDUMP"; then
6143   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6144 else
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH
6147 do
6148   IFS=$as_save_IFS
6149   test -z "$as_dir" && as_dir=.
6150     for ac_exec_ext in '' $ac_executable_extensions; do
6151   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6152     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6154     break 2
6155   fi
6156 done
6157   done
6158 IFS=$as_save_IFS
6159
6160 fi
6161 fi
6162 OBJDUMP=$ac_cv_prog_OBJDUMP
6163 if test -n "$OBJDUMP"; then
6164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6165 $as_echo "$OBJDUMP" >&6; }
6166 else
6167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6168 $as_echo "no" >&6; }
6169 fi
6170
6171
6172 fi
6173 if test -z "$ac_cv_prog_OBJDUMP"; then
6174   ac_ct_OBJDUMP=$OBJDUMP
6175   # Extract the first word of "objdump", so it can be a program name with args.
6176 set dummy objdump; ac_word=$2
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6178 $as_echo_n "checking for $ac_word... " >&6; }
6179 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6180   $as_echo_n "(cached) " >&6
6181 else
6182   if test -n "$ac_ct_OBJDUMP"; then
6183   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6184 else
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 for as_dir in $PATH
6187 do
6188   IFS=$as_save_IFS
6189   test -z "$as_dir" && as_dir=.
6190     for ac_exec_ext in '' $ac_executable_extensions; do
6191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6192     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6194     break 2
6195   fi
6196 done
6197   done
6198 IFS=$as_save_IFS
6199
6200 fi
6201 fi
6202 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6203 if test -n "$ac_ct_OBJDUMP"; then
6204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6205 $as_echo "$ac_ct_OBJDUMP" >&6; }
6206 else
6207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6208 $as_echo "no" >&6; }
6209 fi
6210
6211   if test "x$ac_ct_OBJDUMP" = x; then
6212     OBJDUMP="false"
6213   else
6214     case $cross_compiling:$ac_tool_warned in
6215 yes:)
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6218 ac_tool_warned=yes ;;
6219 esac
6220     OBJDUMP=$ac_ct_OBJDUMP
6221   fi
6222 else
6223   OBJDUMP="$ac_cv_prog_OBJDUMP"
6224 fi
6225
6226 test -z "$OBJDUMP" && OBJDUMP=objdump
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6237 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6238 if ${lt_cv_deplibs_check_method+:} false; then :
6239   $as_echo_n "(cached) " >&6
6240 else
6241   lt_cv_file_magic_cmd='$MAGIC_CMD'
6242 lt_cv_file_magic_test_file=
6243 lt_cv_deplibs_check_method='unknown'
6244 # Need to set the preceding variable on all platforms that support
6245 # interlibrary dependencies.
6246 # 'none' -- dependencies not supported.
6247 # `unknown' -- same as none, but documents that we really don't know.
6248 # 'pass_all' -- all dependencies passed with no checks.
6249 # 'test_compile' -- check by making test program.
6250 # 'file_magic [[regex]]' -- check by looking for files in library path
6251 # which responds to the $file_magic_cmd with a given extended regex.
6252 # If you have `file' or equivalent on your system and you're not sure
6253 # whether `pass_all' will *always* work, you probably want this one.
6254
6255 case $host_os in
6256 aix[4-9]*)
6257   lt_cv_deplibs_check_method=pass_all
6258   ;;
6259
6260 beos*)
6261   lt_cv_deplibs_check_method=pass_all
6262   ;;
6263
6264 bsdi[45]*)
6265   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6266   lt_cv_file_magic_cmd='/usr/bin/file -L'
6267   lt_cv_file_magic_test_file=/shlib/libc.so
6268   ;;
6269
6270 cygwin*)
6271   # func_win32_libid is a shell function defined in ltmain.sh
6272   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6273   lt_cv_file_magic_cmd='func_win32_libid'
6274   ;;
6275
6276 mingw* | pw32*)
6277   # Base MSYS/MinGW do not provide the 'file' command needed by
6278   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6279   # unless we find 'file', for example because we are cross-compiling.
6280   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6281   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6282     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6283     lt_cv_file_magic_cmd='func_win32_libid'
6284   else
6285     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6286     lt_cv_file_magic_cmd='$OBJDUMP -f'
6287   fi
6288   ;;
6289
6290 cegcc*)
6291   # use the weaker test based on 'objdump'. See mingw*.
6292   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6293   lt_cv_file_magic_cmd='$OBJDUMP -f'
6294   ;;
6295
6296 darwin* | rhapsody*)
6297   lt_cv_deplibs_check_method=pass_all
6298   ;;
6299
6300 freebsd* | dragonfly*)
6301   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6302     case $host_cpu in
6303     i*86 )
6304       # Not sure whether the presence of OpenBSD here was a mistake.
6305       # Let's accept both of them until this is cleared up.
6306       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6307       lt_cv_file_magic_cmd=/usr/bin/file
6308       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6309       ;;
6310     esac
6311   else
6312     lt_cv_deplibs_check_method=pass_all
6313   fi
6314   ;;
6315
6316 gnu*)
6317   lt_cv_deplibs_check_method=pass_all
6318   ;;
6319
6320 haiku*)
6321   lt_cv_deplibs_check_method=pass_all
6322   ;;
6323
6324 hpux10.20* | hpux11*)
6325   lt_cv_file_magic_cmd=/usr/bin/file
6326   case $host_cpu in
6327   ia64*)
6328     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6329     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6330     ;;
6331   hppa*64*)
6332     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]'
6333     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6334     ;;
6335   *)
6336     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6337     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6338     ;;
6339   esac
6340   ;;
6341
6342 interix[3-9]*)
6343   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6344   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6345   ;;
6346
6347 irix5* | irix6* | nonstopux*)
6348   case $LD in
6349   *-32|*"-32 ") libmagic=32-bit;;
6350   *-n32|*"-n32 ") libmagic=N32;;
6351   *-64|*"-64 ") libmagic=64-bit;;
6352   *) libmagic=never-match;;
6353   esac
6354   lt_cv_deplibs_check_method=pass_all
6355   ;;
6356
6357 # This must be Linux ELF.
6358 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6359   lt_cv_deplibs_check_method=pass_all
6360   ;;
6361
6362 netbsd*)
6363   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6364     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6365   else
6366     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6367   fi
6368   ;;
6369
6370 newos6*)
6371   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6372   lt_cv_file_magic_cmd=/usr/bin/file
6373   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6374   ;;
6375
6376 *nto* | *qnx*)
6377   lt_cv_deplibs_check_method=pass_all
6378   ;;
6379
6380 openbsd*)
6381   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6382     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6383   else
6384     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6385   fi
6386   ;;
6387
6388 osf3* | osf4* | osf5*)
6389   lt_cv_deplibs_check_method=pass_all
6390   ;;
6391
6392 rdos*)
6393   lt_cv_deplibs_check_method=pass_all
6394   ;;
6395
6396 solaris*)
6397   lt_cv_deplibs_check_method=pass_all
6398   ;;
6399
6400 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6401   lt_cv_deplibs_check_method=pass_all
6402   ;;
6403
6404 sysv4 | sysv4.3*)
6405   case $host_vendor in
6406   motorola)
6407     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]'
6408     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6409     ;;
6410   ncr)
6411     lt_cv_deplibs_check_method=pass_all
6412     ;;
6413   sequent)
6414     lt_cv_file_magic_cmd='/bin/file'
6415     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6416     ;;
6417   sni)
6418     lt_cv_file_magic_cmd='/bin/file'
6419     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6420     lt_cv_file_magic_test_file=/lib/libc.so
6421     ;;
6422   siemens)
6423     lt_cv_deplibs_check_method=pass_all
6424     ;;
6425   pc)
6426     lt_cv_deplibs_check_method=pass_all
6427     ;;
6428   esac
6429   ;;
6430
6431 tpf*)
6432   lt_cv_deplibs_check_method=pass_all
6433   ;;
6434 esac
6435
6436 fi
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6438 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6439 file_magic_cmd=$lt_cv_file_magic_cmd
6440 deplibs_check_method=$lt_cv_deplibs_check_method
6441 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454 plugin_option=
6455 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6456 for plugin in $plugin_names; do
6457   plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6458   if test x$plugin_so = x$plugin; then
6459     plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6460   fi
6461   if test x$plugin_so != x$plugin; then
6462     plugin_option="--plugin $plugin_so"
6463     break
6464   fi
6465 done
6466
6467 if test -n "$ac_tool_prefix"; then
6468   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6469 set dummy ${ac_tool_prefix}ar; ac_word=$2
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if ${ac_cv_prog_AR+:} false; then :
6473   $as_echo_n "(cached) " >&6
6474 else
6475   if test -n "$AR"; then
6476   ac_cv_prog_AR="$AR" # Let the user override the test.
6477 else
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 for as_dir in $PATH
6480 do
6481   IFS=$as_save_IFS
6482   test -z "$as_dir" && as_dir=.
6483     for ac_exec_ext in '' $ac_executable_extensions; do
6484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6485     ac_cv_prog_AR="${ac_tool_prefix}ar"
6486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6487     break 2
6488   fi
6489 done
6490   done
6491 IFS=$as_save_IFS
6492
6493 fi
6494 fi
6495 AR=$ac_cv_prog_AR
6496 if test -n "$AR"; then
6497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6498 $as_echo "$AR" >&6; }
6499 else
6500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501 $as_echo "no" >&6; }
6502 fi
6503
6504
6505 fi
6506 if test -z "$ac_cv_prog_AR"; then
6507   ac_ct_AR=$AR
6508   # Extract the first word of "ar", so it can be a program name with args.
6509 set dummy ar; ac_word=$2
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6511 $as_echo_n "checking for $ac_word... " >&6; }
6512 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6513   $as_echo_n "(cached) " >&6
6514 else
6515   if test -n "$ac_ct_AR"; then
6516   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6517 else
6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519 for as_dir in $PATH
6520 do
6521   IFS=$as_save_IFS
6522   test -z "$as_dir" && as_dir=.
6523     for ac_exec_ext in '' $ac_executable_extensions; do
6524   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6525     ac_cv_prog_ac_ct_AR="ar"
6526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6527     break 2
6528   fi
6529 done
6530   done
6531 IFS=$as_save_IFS
6532
6533 fi
6534 fi
6535 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6536 if test -n "$ac_ct_AR"; then
6537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6538 $as_echo "$ac_ct_AR" >&6; }
6539 else
6540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541 $as_echo "no" >&6; }
6542 fi
6543
6544   if test "x$ac_ct_AR" = x; then
6545     AR="false"
6546   else
6547     case $cross_compiling:$ac_tool_warned in
6548 yes:)
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6551 ac_tool_warned=yes ;;
6552 esac
6553     AR=$ac_ct_AR
6554   fi
6555 else
6556   AR="$ac_cv_prog_AR"
6557 fi
6558
6559 test -z "$AR" && AR=ar
6560 if test -n "$plugin_option"; then
6561   if $AR --help 2>&1 | grep -q "\--plugin"; then
6562     touch conftest.c
6563     $AR $plugin_option rc conftest.a conftest.c
6564     if test "$?" != 0; then
6565       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6566 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6567     else
6568       AR="$AR $plugin_option"
6569     fi
6570     rm -f conftest.*
6571   fi
6572 fi
6573 test -z "$AR_FLAGS" && AR_FLAGS=cru
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585 if test -n "$ac_tool_prefix"; then
6586   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6587 set dummy ${ac_tool_prefix}strip; ac_word=$2
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589 $as_echo_n "checking for $ac_word... " >&6; }
6590 if ${ac_cv_prog_STRIP+:} false; then :
6591   $as_echo_n "(cached) " >&6
6592 else
6593   if test -n "$STRIP"; then
6594   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6595 else
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 for as_dir in $PATH
6598 do
6599   IFS=$as_save_IFS
6600   test -z "$as_dir" && as_dir=.
6601     for ac_exec_ext in '' $ac_executable_extensions; do
6602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6603     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605     break 2
6606   fi
6607 done
6608   done
6609 IFS=$as_save_IFS
6610
6611 fi
6612 fi
6613 STRIP=$ac_cv_prog_STRIP
6614 if test -n "$STRIP"; then
6615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6616 $as_echo "$STRIP" >&6; }
6617 else
6618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6620 fi
6621
6622
6623 fi
6624 if test -z "$ac_cv_prog_STRIP"; then
6625   ac_ct_STRIP=$STRIP
6626   # Extract the first word of "strip", so it can be a program name with args.
6627 set dummy strip; ac_word=$2
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6629 $as_echo_n "checking for $ac_word... " >&6; }
6630 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6631   $as_echo_n "(cached) " >&6
6632 else
6633   if test -n "$ac_ct_STRIP"; then
6634   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6635 else
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 for as_dir in $PATH
6638 do
6639   IFS=$as_save_IFS
6640   test -z "$as_dir" && as_dir=.
6641     for ac_exec_ext in '' $ac_executable_extensions; do
6642   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6643     ac_cv_prog_ac_ct_STRIP="strip"
6644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6645     break 2
6646   fi
6647 done
6648   done
6649 IFS=$as_save_IFS
6650
6651 fi
6652 fi
6653 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6654 if test -n "$ac_ct_STRIP"; then
6655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6656 $as_echo "$ac_ct_STRIP" >&6; }
6657 else
6658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6659 $as_echo "no" >&6; }
6660 fi
6661
6662   if test "x$ac_ct_STRIP" = x; then
6663     STRIP=":"
6664   else
6665     case $cross_compiling:$ac_tool_warned in
6666 yes:)
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6669 ac_tool_warned=yes ;;
6670 esac
6671     STRIP=$ac_ct_STRIP
6672   fi
6673 else
6674   STRIP="$ac_cv_prog_STRIP"
6675 fi
6676
6677 test -z "$STRIP" && STRIP=:
6678
6679
6680
6681
6682
6683
6684 if test -n "$ac_tool_prefix"; then
6685   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6686 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688 $as_echo_n "checking for $ac_word... " >&6; }
6689 if ${ac_cv_prog_RANLIB+:} false; then :
6690   $as_echo_n "(cached) " >&6
6691 else
6692   if test -n "$RANLIB"; then
6693   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6694 else
6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696 for as_dir in $PATH
6697 do
6698   IFS=$as_save_IFS
6699   test -z "$as_dir" && as_dir=.
6700     for ac_exec_ext in '' $ac_executable_extensions; do
6701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6702     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6704     break 2
6705   fi
6706 done
6707   done
6708 IFS=$as_save_IFS
6709
6710 fi
6711 fi
6712 RANLIB=$ac_cv_prog_RANLIB
6713 if test -n "$RANLIB"; then
6714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6715 $as_echo "$RANLIB" >&6; }
6716 else
6717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718 $as_echo "no" >&6; }
6719 fi
6720
6721
6722 fi
6723 if test -z "$ac_cv_prog_RANLIB"; then
6724   ac_ct_RANLIB=$RANLIB
6725   # Extract the first word of "ranlib", so it can be a program name with args.
6726 set dummy ranlib; ac_word=$2
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6730   $as_echo_n "(cached) " >&6
6731 else
6732   if test -n "$ac_ct_RANLIB"; then
6733   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6734 else
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in $PATH
6737 do
6738   IFS=$as_save_IFS
6739   test -z "$as_dir" && as_dir=.
6740     for ac_exec_ext in '' $ac_executable_extensions; do
6741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6742     ac_cv_prog_ac_ct_RANLIB="ranlib"
6743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744     break 2
6745   fi
6746 done
6747   done
6748 IFS=$as_save_IFS
6749
6750 fi
6751 fi
6752 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6753 if test -n "$ac_ct_RANLIB"; then
6754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6755 $as_echo "$ac_ct_RANLIB" >&6; }
6756 else
6757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6759 fi
6760
6761   if test "x$ac_ct_RANLIB" = x; then
6762     RANLIB=":"
6763   else
6764     case $cross_compiling:$ac_tool_warned in
6765 yes:)
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6768 ac_tool_warned=yes ;;
6769 esac
6770     RANLIB=$ac_ct_RANLIB
6771   fi
6772 else
6773   RANLIB="$ac_cv_prog_RANLIB"
6774 fi
6775
6776 test -z "$RANLIB" && RANLIB=:
6777 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6778   if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6779     RANLIB="$RANLIB $plugin_option"
6780   fi
6781 fi
6782
6783
6784
6785
6786
6787
6788 # Determine commands to create old-style static archives.
6789 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6790 old_postinstall_cmds='chmod 644 $oldlib'
6791 old_postuninstall_cmds=
6792
6793 if test -n "$RANLIB"; then
6794   case $host_os in
6795   openbsd*)
6796     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6797     ;;
6798   *)
6799     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6800     ;;
6801   esac
6802   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6803 fi
6804
6805 case $host_os in
6806   darwin*)
6807     lock_old_archive_extraction=yes ;;
6808   *)
6809     lock_old_archive_extraction=no ;;
6810 esac
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832 for ac_prog in gawk mawk nawk awk
6833 do
6834   # Extract the first word of "$ac_prog", so it can be a program name with args.
6835 set dummy $ac_prog; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if ${ac_cv_prog_AWK+:} false; then :
6839   $as_echo_n "(cached) " >&6
6840 else
6841   if test -n "$AWK"; then
6842   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6843 else
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6846 do
6847   IFS=$as_save_IFS
6848   test -z "$as_dir" && as_dir=.
6849     for ac_exec_ext in '' $ac_executable_extensions; do
6850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6851     ac_cv_prog_AWK="$ac_prog"
6852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853     break 2
6854   fi
6855 done
6856   done
6857 IFS=$as_save_IFS
6858
6859 fi
6860 fi
6861 AWK=$ac_cv_prog_AWK
6862 if test -n "$AWK"; then
6863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6864 $as_echo "$AWK" >&6; }
6865 else
6866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6868 fi
6869
6870
6871   test -n "$AWK" && break
6872 done
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892 # If no C compiler was specified, use CC.
6893 LTCC=${LTCC-"$CC"}
6894
6895 # If no C compiler flags were specified, use CFLAGS.
6896 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6897
6898 # Allow CC to be a program name with arguments.
6899 compiler=$CC
6900
6901
6902 # Check for command to grab the raw symbol name followed by C symbol from nm.
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6904 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6905 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6906   $as_echo_n "(cached) " >&6
6907 else
6908
6909 # These are sane defaults that work on at least a few old systems.
6910 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6911
6912 # Character class describing NM global symbol codes.
6913 symcode='[BCDEGRST]'
6914
6915 # Regexp to match symbols that can be accessed directly from C.
6916 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6917
6918 # Define system-specific variables.
6919 case $host_os in
6920 aix*)
6921   symcode='[BCDT]'
6922   ;;
6923 cygwin* | mingw* | pw32* | cegcc*)
6924   symcode='[ABCDGISTW]'
6925   ;;
6926 hpux*)
6927   if test "$host_cpu" = ia64; then
6928     symcode='[ABCDEGRST]'
6929   fi
6930   ;;
6931 irix* | nonstopux*)
6932   symcode='[BCDEGRST]'
6933   ;;
6934 osf*)
6935   symcode='[BCDEGQRST]'
6936   ;;
6937 solaris*)
6938   symcode='[BCDRT]'
6939   ;;
6940 sco3.2v5*)
6941   symcode='[DT]'
6942   ;;
6943 sysv4.2uw2*)
6944   symcode='[DT]'
6945   ;;
6946 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6947   symcode='[ABDT]'
6948   ;;
6949 sysv4)
6950   symcode='[DFNSTU]'
6951   ;;
6952 esac
6953
6954 # If we're using GNU nm, then use its standard symbol codes.
6955 case `$NM -V 2>&1` in
6956 *GNU* | *'with BFD'*)
6957   symcode='[ABCDGIRSTW]' ;;
6958 esac
6959
6960 # Transform an extracted symbol line into a proper C declaration.
6961 # Some systems (esp. on ia64) link data and code symbols differently,
6962 # so use this general approach.
6963 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6964
6965 # Transform an extracted symbol line into symbol name and symbol address
6966 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6967 lt_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'"
6968
6969 # Handle CRLF in mingw tool chain
6970 opt_cr=
6971 case $build_os in
6972 mingw*)
6973   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6974   ;;
6975 esac
6976
6977 # Try without a prefix underscore, then with it.
6978 for ac_symprfx in "" "_"; do
6979
6980   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6981   symxfrm="\\1 $ac_symprfx\\2 \\2"
6982
6983   # Write the raw and C identifiers.
6984   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6985     # Fake it for dumpbin and say T for any non-static function
6986     # and D for any global variable.
6987     # Also find C++ and __fastcall symbols from MSVC++,
6988     # which start with @ or ?.
6989     lt_cv_sys_global_symbol_pipe="$AWK '"\
6990 "     {last_section=section; section=\$ 3};"\
6991 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6992 "     \$ 0!~/External *\|/{next};"\
6993 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6994 "     {if(hide[section]) next};"\
6995 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6996 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6997 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6998 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6999 "     ' prfx=^$ac_symprfx"
7000   else
7001     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7002   fi
7003
7004   # Check to see that the pipe works correctly.
7005   pipe_works=no
7006
7007   rm -f conftest*
7008   cat > conftest.$ac_ext <<_LT_EOF
7009 #ifdef __cplusplus
7010 extern "C" {
7011 #endif
7012 char nm_test_var;
7013 void nm_test_func(void);
7014 void nm_test_func(void){}
7015 #ifdef __cplusplus
7016 }
7017 #endif
7018 int main(){nm_test_var='a';nm_test_func();return(0);}
7019 _LT_EOF
7020
7021   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7022   (eval $ac_compile) 2>&5
7023   ac_status=$?
7024   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7025   test $ac_status = 0; }; then
7026     # Now try to grab the symbols.
7027     nlist=conftest.nm
7028     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7029   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7030   ac_status=$?
7031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7032   test $ac_status = 0; } && test -s "$nlist"; then
7033       # Try sorting and uniquifying the output.
7034       if sort "$nlist" | uniq > "$nlist"T; then
7035         mv -f "$nlist"T "$nlist"
7036       else
7037         rm -f "$nlist"T
7038       fi
7039
7040       # Make sure that we snagged all the symbols we need.
7041       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7042         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7043           cat <<_LT_EOF > conftest.$ac_ext
7044 #ifdef __cplusplus
7045 extern "C" {
7046 #endif
7047
7048 _LT_EOF
7049           # Now generate the symbol file.
7050           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7051
7052           cat <<_LT_EOF >> conftest.$ac_ext
7053
7054 /* The mapping between symbol names and symbols.  */
7055 const struct {
7056   const char *name;
7057   void       *address;
7058 }
7059 lt__PROGRAM__LTX_preloaded_symbols[] =
7060 {
7061   { "@PROGRAM@", (void *) 0 },
7062 _LT_EOF
7063           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7064           cat <<\_LT_EOF >> conftest.$ac_ext
7065   {0, (void *) 0}
7066 };
7067
7068 /* This works around a problem in FreeBSD linker */
7069 #ifdef FREEBSD_WORKAROUND
7070 static const void *lt_preloaded_setup() {
7071   return lt__PROGRAM__LTX_preloaded_symbols;
7072 }
7073 #endif
7074
7075 #ifdef __cplusplus
7076 }
7077 #endif
7078 _LT_EOF
7079           # Now try linking the two files.
7080           mv conftest.$ac_objext conftstm.$ac_objext
7081           lt_save_LIBS="$LIBS"
7082           lt_save_CFLAGS="$CFLAGS"
7083           LIBS="conftstm.$ac_objext"
7084           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7085           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7086   (eval $ac_link) 2>&5
7087   ac_status=$?
7088   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7089   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7090             pipe_works=yes
7091           fi
7092           LIBS="$lt_save_LIBS"
7093           CFLAGS="$lt_save_CFLAGS"
7094         else
7095           echo "cannot find nm_test_func in $nlist" >&5
7096         fi
7097       else
7098         echo "cannot find nm_test_var in $nlist" >&5
7099       fi
7100     else
7101       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7102     fi
7103   else
7104     echo "$progname: failed program was:" >&5
7105     cat conftest.$ac_ext >&5
7106   fi
7107   rm -rf conftest* conftst*
7108
7109   # Do not use the global_symbol_pipe unless it works.
7110   if test "$pipe_works" = yes; then
7111     break
7112   else
7113     lt_cv_sys_global_symbol_pipe=
7114   fi
7115 done
7116
7117 fi
7118
7119 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7120   lt_cv_sys_global_symbol_to_cdecl=
7121 fi
7122 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7124 $as_echo "failed" >&6; }
7125 else
7126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7127 $as_echo "ok" >&6; }
7128 fi
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151 # Check whether --enable-libtool-lock was given.
7152 if test "${enable_libtool_lock+set}" = set; then :
7153   enableval=$enable_libtool_lock;
7154 fi
7155
7156 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7157
7158 # Some flags need to be propagated to the compiler or linker for good
7159 # libtool support.
7160 case $host in
7161 ia64-*-hpux*)
7162   # Find out which ABI we are using.
7163   echo 'int i;' > conftest.$ac_ext
7164   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7165   (eval $ac_compile) 2>&5
7166   ac_status=$?
7167   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7168   test $ac_status = 0; }; then
7169     case `/usr/bin/file conftest.$ac_objext` in
7170       *ELF-32*)
7171         HPUX_IA64_MODE="32"
7172         ;;
7173       *ELF-64*)
7174         HPUX_IA64_MODE="64"
7175         ;;
7176     esac
7177   fi
7178   rm -rf conftest*
7179   ;;
7180 *-*-irix6*)
7181   # Find out which ABI we are using.
7182   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7183   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7184   (eval $ac_compile) 2>&5
7185   ac_status=$?
7186   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7187   test $ac_status = 0; }; then
7188     if test "$lt_cv_prog_gnu_ld" = yes; then
7189       case `/usr/bin/file conftest.$ac_objext` in
7190         *32-bit*)
7191           LD="${LD-ld} -melf32bsmip"
7192           ;;
7193         *N32*)
7194           LD="${LD-ld} -melf32bmipn32"
7195           ;;
7196         *64-bit*)
7197           LD="${LD-ld} -melf64bmip"
7198         ;;
7199       esac
7200     else
7201       case `/usr/bin/file conftest.$ac_objext` in
7202         *32-bit*)
7203           LD="${LD-ld} -32"
7204           ;;
7205         *N32*)
7206           LD="${LD-ld} -n32"
7207           ;;
7208         *64-bit*)
7209           LD="${LD-ld} -64"
7210           ;;
7211       esac
7212     fi
7213   fi
7214   rm -rf conftest*
7215   ;;
7216
7217 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7218 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7219   # Find out which ABI we are using.
7220   echo 'int i;' > conftest.$ac_ext
7221   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7222   (eval $ac_compile) 2>&5
7223   ac_status=$?
7224   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7225   test $ac_status = 0; }; then
7226     case `/usr/bin/file conftest.o` in
7227       *32-bit*)
7228         case $host in
7229           x86_64-*kfreebsd*-gnu)
7230             LD="${LD-ld} -m elf_i386_fbsd"
7231             ;;
7232           x86_64-*linux*)
7233             case `/usr/bin/file conftest.o` in
7234               *x86-64*)
7235                 LD="${LD-ld} -m elf32_x86_64"
7236                 ;;
7237               *)
7238                 LD="${LD-ld} -m elf_i386"
7239                 ;;
7240             esac
7241             ;;
7242           powerpc64le-*linux*)
7243             LD="${LD-ld} -m elf32lppclinux"
7244             ;;
7245           powerpc64-*linux*)
7246             LD="${LD-ld} -m elf32ppclinux"
7247             ;;
7248           s390x-*linux*)
7249             LD="${LD-ld} -m elf_s390"
7250             ;;
7251           sparc64-*linux*)
7252             LD="${LD-ld} -m elf32_sparc"
7253             ;;
7254         esac
7255         ;;
7256       *64-bit*)
7257         case $host in
7258           x86_64-*kfreebsd*-gnu)
7259             LD="${LD-ld} -m elf_x86_64_fbsd"
7260             ;;
7261           x86_64-*linux*)
7262             LD="${LD-ld} -m elf_x86_64"
7263             ;;
7264           powerpcle-*linux*)
7265             LD="${LD-ld} -m elf64lppc"
7266             ;;
7267           powerpc-*linux*)
7268             LD="${LD-ld} -m elf64ppc"
7269             ;;
7270           s390*-*linux*|s390*-*tpf*)
7271             LD="${LD-ld} -m elf64_s390"
7272             ;;
7273           sparc*-*linux*)
7274             LD="${LD-ld} -m elf64_sparc"
7275             ;;
7276         esac
7277         ;;
7278     esac
7279   fi
7280   rm -rf conftest*
7281   ;;
7282
7283 *-*-sco3.2v5*)
7284   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7285   SAVE_CFLAGS="$CFLAGS"
7286   CFLAGS="$CFLAGS -belf"
7287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7288 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7289 if ${lt_cv_cc_needs_belf+:} false; then :
7290   $as_echo_n "(cached) " >&6
7291 else
7292   ac_ext=c
7293 ac_cpp='$CPP $CPPFLAGS'
7294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7297
7298      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299 /* end confdefs.h.  */
7300
7301 int
7302 main ()
7303 {
7304
7305   ;
7306   return 0;
7307 }
7308 _ACEOF
7309 if ac_fn_c_try_link "$LINENO"; then :
7310   lt_cv_cc_needs_belf=yes
7311 else
7312   lt_cv_cc_needs_belf=no
7313 fi
7314 rm -f core conftest.err conftest.$ac_objext \
7315     conftest$ac_exeext conftest.$ac_ext
7316      ac_ext=c
7317 ac_cpp='$CPP $CPPFLAGS'
7318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7321
7322 fi
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7324 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7325   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7326     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7327     CFLAGS="$SAVE_CFLAGS"
7328   fi
7329   ;;
7330 sparc*-*solaris*)
7331   # Find out which ABI we are using.
7332   echo 'int i;' > conftest.$ac_ext
7333   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7334   (eval $ac_compile) 2>&5
7335   ac_status=$?
7336   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7337   test $ac_status = 0; }; then
7338     case `/usr/bin/file conftest.o` in
7339     *64-bit*)
7340       case $lt_cv_prog_gnu_ld in
7341       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7342       *)
7343         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7344           LD="${LD-ld} -64"
7345         fi
7346         ;;
7347       esac
7348       ;;
7349     esac
7350   fi
7351   rm -rf conftest*
7352   ;;
7353 esac
7354
7355 need_locks="$enable_libtool_lock"
7356
7357
7358   case $host_os in
7359     rhapsody* | darwin*)
7360     if test -n "$ac_tool_prefix"; then
7361   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7362 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364 $as_echo_n "checking for $ac_word... " >&6; }
7365 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7366   $as_echo_n "(cached) " >&6
7367 else
7368   if test -n "$DSYMUTIL"; then
7369   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7370 else
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7373 do
7374   IFS=$as_save_IFS
7375   test -z "$as_dir" && as_dir=.
7376     for ac_exec_ext in '' $ac_executable_extensions; do
7377   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7378     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380     break 2
7381   fi
7382 done
7383   done
7384 IFS=$as_save_IFS
7385
7386 fi
7387 fi
7388 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7389 if test -n "$DSYMUTIL"; then
7390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7391 $as_echo "$DSYMUTIL" >&6; }
7392 else
7393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394 $as_echo "no" >&6; }
7395 fi
7396
7397
7398 fi
7399 if test -z "$ac_cv_prog_DSYMUTIL"; then
7400   ac_ct_DSYMUTIL=$DSYMUTIL
7401   # Extract the first word of "dsymutil", so it can be a program name with args.
7402 set dummy dsymutil; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7406   $as_echo_n "(cached) " >&6
7407 else
7408   if test -n "$ac_ct_DSYMUTIL"; then
7409   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7410 else
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7413 do
7414   IFS=$as_save_IFS
7415   test -z "$as_dir" && as_dir=.
7416     for ac_exec_ext in '' $ac_executable_extensions; do
7417   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7418     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420     break 2
7421   fi
7422 done
7423   done
7424 IFS=$as_save_IFS
7425
7426 fi
7427 fi
7428 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7429 if test -n "$ac_ct_DSYMUTIL"; then
7430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7431 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7432 else
7433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7435 fi
7436
7437   if test "x$ac_ct_DSYMUTIL" = x; then
7438     DSYMUTIL=":"
7439   else
7440     case $cross_compiling:$ac_tool_warned in
7441 yes:)
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7444 ac_tool_warned=yes ;;
7445 esac
7446     DSYMUTIL=$ac_ct_DSYMUTIL
7447   fi
7448 else
7449   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7450 fi
7451
7452     if test -n "$ac_tool_prefix"; then
7453   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7454 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7456 $as_echo_n "checking for $ac_word... " >&6; }
7457 if ${ac_cv_prog_NMEDIT+:} false; then :
7458   $as_echo_n "(cached) " >&6
7459 else
7460   if test -n "$NMEDIT"; then
7461   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7462 else
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 for as_dir in $PATH
7465 do
7466   IFS=$as_save_IFS
7467   test -z "$as_dir" && as_dir=.
7468     for ac_exec_ext in '' $ac_executable_extensions; do
7469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7470     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7472     break 2
7473   fi
7474 done
7475   done
7476 IFS=$as_save_IFS
7477
7478 fi
7479 fi
7480 NMEDIT=$ac_cv_prog_NMEDIT
7481 if test -n "$NMEDIT"; then
7482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7483 $as_echo "$NMEDIT" >&6; }
7484 else
7485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 $as_echo "no" >&6; }
7487 fi
7488
7489
7490 fi
7491 if test -z "$ac_cv_prog_NMEDIT"; then
7492   ac_ct_NMEDIT=$NMEDIT
7493   # Extract the first word of "nmedit", so it can be a program name with args.
7494 set dummy nmedit; ac_word=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7498   $as_echo_n "(cached) " >&6
7499 else
7500   if test -n "$ac_ct_NMEDIT"; then
7501   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7502 else
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506   IFS=$as_save_IFS
7507   test -z "$as_dir" && as_dir=.
7508     for ac_exec_ext in '' $ac_executable_extensions; do
7509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7510     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512     break 2
7513   fi
7514 done
7515   done
7516 IFS=$as_save_IFS
7517
7518 fi
7519 fi
7520 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7521 if test -n "$ac_ct_NMEDIT"; then
7522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7523 $as_echo "$ac_ct_NMEDIT" >&6; }
7524 else
7525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7527 fi
7528
7529   if test "x$ac_ct_NMEDIT" = x; then
7530     NMEDIT=":"
7531   else
7532     case $cross_compiling:$ac_tool_warned in
7533 yes:)
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7536 ac_tool_warned=yes ;;
7537 esac
7538     NMEDIT=$ac_ct_NMEDIT
7539   fi
7540 else
7541   NMEDIT="$ac_cv_prog_NMEDIT"
7542 fi
7543
7544     if test -n "$ac_tool_prefix"; then
7545   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7546 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548 $as_echo_n "checking for $ac_word... " >&6; }
7549 if ${ac_cv_prog_LIPO+:} false; then :
7550   $as_echo_n "(cached) " >&6
7551 else
7552   if test -n "$LIPO"; then
7553   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7554 else
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7557 do
7558   IFS=$as_save_IFS
7559   test -z "$as_dir" && as_dir=.
7560     for ac_exec_ext in '' $ac_executable_extensions; do
7561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7562     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564     break 2
7565   fi
7566 done
7567   done
7568 IFS=$as_save_IFS
7569
7570 fi
7571 fi
7572 LIPO=$ac_cv_prog_LIPO
7573 if test -n "$LIPO"; then
7574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7575 $as_echo "$LIPO" >&6; }
7576 else
7577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578 $as_echo "no" >&6; }
7579 fi
7580
7581
7582 fi
7583 if test -z "$ac_cv_prog_LIPO"; then
7584   ac_ct_LIPO=$LIPO
7585   # Extract the first word of "lipo", so it can be a program name with args.
7586 set dummy lipo; ac_word=$2
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 $as_echo_n "checking for $ac_word... " >&6; }
7589 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7590   $as_echo_n "(cached) " >&6
7591 else
7592   if test -n "$ac_ct_LIPO"; then
7593   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7594 else
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7597 do
7598   IFS=$as_save_IFS
7599   test -z "$as_dir" && as_dir=.
7600     for ac_exec_ext in '' $ac_executable_extensions; do
7601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7602     ac_cv_prog_ac_ct_LIPO="lipo"
7603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604     break 2
7605   fi
7606 done
7607   done
7608 IFS=$as_save_IFS
7609
7610 fi
7611 fi
7612 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7613 if test -n "$ac_ct_LIPO"; then
7614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7615 $as_echo "$ac_ct_LIPO" >&6; }
7616 else
7617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619 fi
7620
7621   if test "x$ac_ct_LIPO" = x; then
7622     LIPO=":"
7623   else
7624     case $cross_compiling:$ac_tool_warned in
7625 yes:)
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7628 ac_tool_warned=yes ;;
7629 esac
7630     LIPO=$ac_ct_LIPO
7631   fi
7632 else
7633   LIPO="$ac_cv_prog_LIPO"
7634 fi
7635
7636     if test -n "$ac_tool_prefix"; then
7637   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7638 set dummy ${ac_tool_prefix}otool; ac_word=$2
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7640 $as_echo_n "checking for $ac_word... " >&6; }
7641 if ${ac_cv_prog_OTOOL+:} false; then :
7642   $as_echo_n "(cached) " >&6
7643 else
7644   if test -n "$OTOOL"; then
7645   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7646 else
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 for as_dir in $PATH
7649 do
7650   IFS=$as_save_IFS
7651   test -z "$as_dir" && as_dir=.
7652     for ac_exec_ext in '' $ac_executable_extensions; do
7653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7654     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7656     break 2
7657   fi
7658 done
7659   done
7660 IFS=$as_save_IFS
7661
7662 fi
7663 fi
7664 OTOOL=$ac_cv_prog_OTOOL
7665 if test -n "$OTOOL"; then
7666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7667 $as_echo "$OTOOL" >&6; }
7668 else
7669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670 $as_echo "no" >&6; }
7671 fi
7672
7673
7674 fi
7675 if test -z "$ac_cv_prog_OTOOL"; then
7676   ac_ct_OTOOL=$OTOOL
7677   # Extract the first word of "otool", so it can be a program name with args.
7678 set dummy otool; ac_word=$2
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680 $as_echo_n "checking for $ac_word... " >&6; }
7681 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7682   $as_echo_n "(cached) " >&6
7683 else
7684   if test -n "$ac_ct_OTOOL"; then
7685   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7686 else
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 for as_dir in $PATH
7689 do
7690   IFS=$as_save_IFS
7691   test -z "$as_dir" && as_dir=.
7692     for ac_exec_ext in '' $ac_executable_extensions; do
7693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7694     ac_cv_prog_ac_ct_OTOOL="otool"
7695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696     break 2
7697   fi
7698 done
7699   done
7700 IFS=$as_save_IFS
7701
7702 fi
7703 fi
7704 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7705 if test -n "$ac_ct_OTOOL"; then
7706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7707 $as_echo "$ac_ct_OTOOL" >&6; }
7708 else
7709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7711 fi
7712
7713   if test "x$ac_ct_OTOOL" = x; then
7714     OTOOL=":"
7715   else
7716     case $cross_compiling:$ac_tool_warned in
7717 yes:)
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7720 ac_tool_warned=yes ;;
7721 esac
7722     OTOOL=$ac_ct_OTOOL
7723   fi
7724 else
7725   OTOOL="$ac_cv_prog_OTOOL"
7726 fi
7727
7728     if test -n "$ac_tool_prefix"; then
7729   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7730 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732 $as_echo_n "checking for $ac_word... " >&6; }
7733 if ${ac_cv_prog_OTOOL64+:} false; then :
7734   $as_echo_n "(cached) " >&6
7735 else
7736   if test -n "$OTOOL64"; then
7737   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7738 else
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 for as_dir in $PATH
7741 do
7742   IFS=$as_save_IFS
7743   test -z "$as_dir" && as_dir=.
7744     for ac_exec_ext in '' $ac_executable_extensions; do
7745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7746     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7748     break 2
7749   fi
7750 done
7751   done
7752 IFS=$as_save_IFS
7753
7754 fi
7755 fi
7756 OTOOL64=$ac_cv_prog_OTOOL64
7757 if test -n "$OTOOL64"; then
7758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7759 $as_echo "$OTOOL64" >&6; }
7760 else
7761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762 $as_echo "no" >&6; }
7763 fi
7764
7765
7766 fi
7767 if test -z "$ac_cv_prog_OTOOL64"; then
7768   ac_ct_OTOOL64=$OTOOL64
7769   # Extract the first word of "otool64", so it can be a program name with args.
7770 set dummy otool64; ac_word=$2
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772 $as_echo_n "checking for $ac_word... " >&6; }
7773 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7774   $as_echo_n "(cached) " >&6
7775 else
7776   if test -n "$ac_ct_OTOOL64"; then
7777   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7778 else
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 for as_dir in $PATH
7781 do
7782   IFS=$as_save_IFS
7783   test -z "$as_dir" && as_dir=.
7784     for ac_exec_ext in '' $ac_executable_extensions; do
7785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7786     ac_cv_prog_ac_ct_OTOOL64="otool64"
7787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7788     break 2
7789   fi
7790 done
7791   done
7792 IFS=$as_save_IFS
7793
7794 fi
7795 fi
7796 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7797 if test -n "$ac_ct_OTOOL64"; then
7798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7799 $as_echo "$ac_ct_OTOOL64" >&6; }
7800 else
7801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7803 fi
7804
7805   if test "x$ac_ct_OTOOL64" = x; then
7806     OTOOL64=":"
7807   else
7808     case $cross_compiling:$ac_tool_warned in
7809 yes:)
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7812 ac_tool_warned=yes ;;
7813 esac
7814     OTOOL64=$ac_ct_OTOOL64
7815   fi
7816 else
7817   OTOOL64="$ac_cv_prog_OTOOL64"
7818 fi
7819
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7847 $as_echo_n "checking for -single_module linker flag... " >&6; }
7848 if ${lt_cv_apple_cc_single_mod+:} false; then :
7849   $as_echo_n "(cached) " >&6
7850 else
7851   lt_cv_apple_cc_single_mod=no
7852       if test -z "${LT_MULTI_MODULE}"; then
7853         # By default we will add the -single_module flag. You can override
7854         # by either setting the environment variable LT_MULTI_MODULE
7855         # non-empty at configure time, or by adding -multi_module to the
7856         # link flags.
7857         rm -rf libconftest.dylib*
7858         echo "int foo(void){return 1;}" > conftest.c
7859         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7860 -dynamiclib -Wl,-single_module conftest.c" >&5
7861         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7862           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7863         _lt_result=$?
7864         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7865           lt_cv_apple_cc_single_mod=yes
7866         else
7867           cat conftest.err >&5
7868         fi
7869         rm -rf libconftest.dylib*
7870         rm -f conftest.*
7871       fi
7872 fi
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7874 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7875     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7876 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7877 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7878   $as_echo_n "(cached) " >&6
7879 else
7880   lt_cv_ld_exported_symbols_list=no
7881       save_LDFLAGS=$LDFLAGS
7882       echo "_main" > conftest.sym
7883       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7884       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885 /* end confdefs.h.  */
7886
7887 int
7888 main ()
7889 {
7890
7891   ;
7892   return 0;
7893 }
7894 _ACEOF
7895 if ac_fn_c_try_link "$LINENO"; then :
7896   lt_cv_ld_exported_symbols_list=yes
7897 else
7898   lt_cv_ld_exported_symbols_list=no
7899 fi
7900 rm -f core conftest.err conftest.$ac_objext \
7901     conftest$ac_exeext conftest.$ac_ext
7902         LDFLAGS="$save_LDFLAGS"
7903
7904 fi
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7906 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7907     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7908 $as_echo_n "checking for -force_load linker flag... " >&6; }
7909 if ${lt_cv_ld_force_load+:} false; then :
7910   $as_echo_n "(cached) " >&6
7911 else
7912   lt_cv_ld_force_load=no
7913       cat > conftest.c << _LT_EOF
7914 int forced_loaded() { return 2;}
7915 _LT_EOF
7916       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7917       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7918       echo "$AR cru libconftest.a conftest.o" >&5
7919       $AR cru libconftest.a conftest.o 2>&5
7920       cat > conftest.c << _LT_EOF
7921 int main() { return 0;}
7922 _LT_EOF
7923       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7924       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7925       _lt_result=$?
7926       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7927         lt_cv_ld_force_load=yes
7928       else
7929         cat conftest.err >&5
7930       fi
7931         rm -f conftest.err libconftest.a conftest conftest.c
7932         rm -rf conftest.dSYM
7933
7934 fi
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7936 $as_echo "$lt_cv_ld_force_load" >&6; }
7937     case $host_os in
7938     rhapsody* | darwin1.[012])
7939       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7940     darwin1.*)
7941       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7942     darwin*) # darwin 5.x on
7943       # if running on 10.5 or later, the deployment target defaults
7944       # to the OS version, if on x86, and 10.4, the deployment
7945       # target defaults to 10.4. Don't you love it?
7946       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7947         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7948           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7949         10.[012][,.]*)
7950           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7951         10.*)
7952           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7953       esac
7954     ;;
7955   esac
7956     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7957       _lt_dar_single_mod='$single_module'
7958     fi
7959     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7960       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7961     else
7962       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7963     fi
7964     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7965       _lt_dsymutil='~$DSYMUTIL $lib || :'
7966     else
7967       _lt_dsymutil=
7968     fi
7969     ;;
7970   esac
7971
7972 for ac_header in dlfcn.h
7973 do :
7974   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7975 "
7976 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7977   cat >>confdefs.h <<_ACEOF
7978 #define HAVE_DLFCN_H 1
7979 _ACEOF
7980
7981 fi
7982
7983 done
7984
7985
7986
7987
7988
7989
7990 # Set options
7991
7992
7993
7994         enable_dlopen=no
7995
7996
7997   enable_win32_dll=no
7998
7999
8000             # Check whether --enable-shared was given.
8001 if test "${enable_shared+set}" = set; then :
8002   enableval=$enable_shared; p=${PACKAGE-default}
8003     case $enableval in
8004     yes) enable_shared=yes ;;
8005     no) enable_shared=no ;;
8006     *)
8007       enable_shared=no
8008       # Look at the argument we got.  We use all the common list separators.
8009       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8010       for pkg in $enableval; do
8011         IFS="$lt_save_ifs"
8012         if test "X$pkg" = "X$p"; then
8013           enable_shared=yes
8014         fi
8015       done
8016       IFS="$lt_save_ifs"
8017       ;;
8018     esac
8019 else
8020   enable_shared=yes
8021 fi
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031   # Check whether --enable-static was given.
8032 if test "${enable_static+set}" = set; then :
8033   enableval=$enable_static; p=${PACKAGE-default}
8034     case $enableval in
8035     yes) enable_static=yes ;;
8036     no) enable_static=no ;;
8037     *)
8038      enable_static=no
8039       # Look at the argument we got.  We use all the common list separators.
8040       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8041       for pkg in $enableval; do
8042         IFS="$lt_save_ifs"
8043         if test "X$pkg" = "X$p"; then
8044           enable_static=yes
8045         fi
8046       done
8047       IFS="$lt_save_ifs"
8048       ;;
8049     esac
8050 else
8051   enable_static=yes
8052 fi
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063 # Check whether --with-pic was given.
8064 if test "${with_pic+set}" = set; then :
8065   withval=$with_pic; pic_mode="$withval"
8066 else
8067   pic_mode=default
8068 fi
8069
8070
8071 test -z "$pic_mode" && pic_mode=default
8072
8073
8074
8075
8076
8077
8078
8079   # Check whether --enable-fast-install was given.
8080 if test "${enable_fast_install+set}" = set; then :
8081   enableval=$enable_fast_install; p=${PACKAGE-default}
8082     case $enableval in
8083     yes) enable_fast_install=yes ;;
8084     no) enable_fast_install=no ;;
8085     *)
8086       enable_fast_install=no
8087       # Look at the argument we got.  We use all the common list separators.
8088       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8089       for pkg in $enableval; do
8090         IFS="$lt_save_ifs"
8091         if test "X$pkg" = "X$p"; then
8092           enable_fast_install=yes
8093         fi
8094       done
8095       IFS="$lt_save_ifs"
8096       ;;
8097     esac
8098 else
8099   enable_fast_install=yes
8100 fi
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112 # This can be used to rebuild libtool when needed
8113 LIBTOOL_DEPS="$ltmain"
8114
8115 # Always use our own libtool.
8116 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8117
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 test -z "$LN_S" && LN_S="ln -s"
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158 if test -n "${ZSH_VERSION+set}" ; then
8159    setopt NO_GLOB_SUBST
8160 fi
8161
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8163 $as_echo_n "checking for objdir... " >&6; }
8164 if ${lt_cv_objdir+:} false; then :
8165   $as_echo_n "(cached) " >&6
8166 else
8167   rm -f .libs 2>/dev/null
8168 mkdir .libs 2>/dev/null
8169 if test -d .libs; then
8170   lt_cv_objdir=.libs
8171 else
8172   # MS-DOS does not allow filenames that begin with a dot.
8173   lt_cv_objdir=_libs
8174 fi
8175 rmdir .libs 2>/dev/null
8176 fi
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8178 $as_echo "$lt_cv_objdir" >&6; }
8179 objdir=$lt_cv_objdir
8180
8181
8182
8183
8184
8185 cat >>confdefs.h <<_ACEOF
8186 #define LT_OBJDIR "$lt_cv_objdir/"
8187 _ACEOF
8188
8189
8190
8191
8192 case $host_os in
8193 aix3*)
8194   # AIX sometimes has problems with the GCC collect2 program.  For some
8195   # reason, if we set the COLLECT_NAMES environment variable, the problems
8196   # vanish in a puff of smoke.
8197   if test "X${COLLECT_NAMES+set}" != Xset; then
8198     COLLECT_NAMES=
8199     export COLLECT_NAMES
8200   fi
8201   ;;
8202 esac
8203
8204 # Global variables:
8205 ofile=libtool
8206 can_build_shared=yes
8207
8208 # All known linkers require a `.a' archive for static linking (except MSVC,
8209 # which needs '.lib').
8210 libext=a
8211
8212 with_gnu_ld="$lt_cv_prog_gnu_ld"
8213
8214 old_CC="$CC"
8215 old_CFLAGS="$CFLAGS"
8216
8217 # Set sane defaults for various variables
8218 test -z "$CC" && CC=cc
8219 test -z "$LTCC" && LTCC=$CC
8220 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8221 test -z "$LD" && LD=ld
8222 test -z "$ac_objext" && ac_objext=o
8223
8224 for cc_temp in $compiler""; do
8225   case $cc_temp in
8226     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8227     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8228     \-*) ;;
8229     *) break;;
8230   esac
8231 done
8232 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8233
8234
8235 # Only perform the check for file, if the check method requires it
8236 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8237 case $deplibs_check_method in
8238 file_magic*)
8239   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8240     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8241 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8242 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8243   $as_echo_n "(cached) " >&6
8244 else
8245   case $MAGIC_CMD in
8246 [\\/*] |  ?:[\\/]*)
8247   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8248   ;;
8249 *)
8250   lt_save_MAGIC_CMD="$MAGIC_CMD"
8251   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8252   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8253   for ac_dir in $ac_dummy; do
8254     IFS="$lt_save_ifs"
8255     test -z "$ac_dir" && ac_dir=.
8256     if test -f $ac_dir/${ac_tool_prefix}file; then
8257       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8258       if test -n "$file_magic_test_file"; then
8259         case $deplibs_check_method in
8260         "file_magic "*)
8261           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8262           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8263           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8264             $EGREP "$file_magic_regex" > /dev/null; then
8265             :
8266           else
8267             cat <<_LT_EOF 1>&2
8268
8269 *** Warning: the command libtool uses to detect shared libraries,
8270 *** $file_magic_cmd, produces output that libtool cannot recognize.
8271 *** The result is that libtool may fail to recognize shared libraries
8272 *** as such.  This will affect the creation of libtool libraries that
8273 *** depend on shared libraries, but programs linked with such libtool
8274 *** libraries will work regardless of this problem.  Nevertheless, you
8275 *** may want to report the problem to your system manager and/or to
8276 *** [email protected]
8277
8278 _LT_EOF
8279           fi ;;
8280         esac
8281       fi
8282       break
8283     fi
8284   done
8285   IFS="$lt_save_ifs"
8286   MAGIC_CMD="$lt_save_MAGIC_CMD"
8287   ;;
8288 esac
8289 fi
8290
8291 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8292 if test -n "$MAGIC_CMD"; then
8293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8294 $as_echo "$MAGIC_CMD" >&6; }
8295 else
8296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 $as_echo "no" >&6; }
8298 fi
8299
8300
8301
8302
8303
8304 if test -z "$lt_cv_path_MAGIC_CMD"; then
8305   if test -n "$ac_tool_prefix"; then
8306     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8307 $as_echo_n "checking for file... " >&6; }
8308 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8309   $as_echo_n "(cached) " >&6
8310 else
8311   case $MAGIC_CMD in
8312 [\\/*] |  ?:[\\/]*)
8313   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8314   ;;
8315 *)
8316   lt_save_MAGIC_CMD="$MAGIC_CMD"
8317   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8318   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8319   for ac_dir in $ac_dummy; do
8320     IFS="$lt_save_ifs"
8321     test -z "$ac_dir" && ac_dir=.
8322     if test -f $ac_dir/file; then
8323       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8324       if test -n "$file_magic_test_file"; then
8325         case $deplibs_check_method in
8326         "file_magic "*)
8327           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8328           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8329           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8330             $EGREP "$file_magic_regex" > /dev/null; then
8331             :
8332           else
8333             cat <<_LT_EOF 1>&2
8334
8335 *** Warning: the command libtool uses to detect shared libraries,
8336 *** $file_magic_cmd, produces output that libtool cannot recognize.
8337 *** The result is that libtool may fail to recognize shared libraries
8338 *** as such.  This will affect the creation of libtool libraries that
8339 *** depend on shared libraries, but programs linked with such libtool
8340 *** libraries will work regardless of this problem.  Nevertheless, you
8341 *** may want to report the problem to your system manager and/or to
8342 *** [email protected]
8343
8344 _LT_EOF
8345           fi ;;
8346         esac
8347       fi
8348       break
8349     fi
8350   done
8351   IFS="$lt_save_ifs"
8352   MAGIC_CMD="$lt_save_MAGIC_CMD"
8353   ;;
8354 esac
8355 fi
8356
8357 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8358 if test -n "$MAGIC_CMD"; then
8359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8360 $as_echo "$MAGIC_CMD" >&6; }
8361 else
8362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8363 $as_echo "no" >&6; }
8364 fi
8365
8366
8367   else
8368     MAGIC_CMD=:
8369   fi
8370 fi
8371
8372   fi
8373   ;;
8374 esac
8375
8376 # Use C for the default configuration in the libtool script
8377
8378 lt_save_CC="$CC"
8379 ac_ext=c
8380 ac_cpp='$CPP $CPPFLAGS'
8381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8384
8385
8386 # Source file extension for C test sources.
8387 ac_ext=c
8388
8389 # Object file extension for compiled C test sources.
8390 objext=o
8391 objext=$objext
8392
8393 # Code to be used in simple compile tests
8394 lt_simple_compile_test_code="int some_variable = 0;"
8395
8396 # Code to be used in simple link tests
8397 lt_simple_link_test_code='int main(){return(0);}'
8398
8399
8400
8401
8402
8403
8404
8405 # If no C compiler was specified, use CC.
8406 LTCC=${LTCC-"$CC"}
8407
8408 # If no C compiler flags were specified, use CFLAGS.
8409 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8410
8411 # Allow CC to be a program name with arguments.
8412 compiler=$CC
8413
8414 # Save the default compiler, since it gets overwritten when the other
8415 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8416 compiler_DEFAULT=$CC
8417
8418 # save warnings/boilerplate of simple test code
8419 ac_outfile=conftest.$ac_objext
8420 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8421 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8422 _lt_compiler_boilerplate=`cat conftest.err`
8423 $RM conftest*
8424
8425 ac_outfile=conftest.$ac_objext
8426 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8427 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8428 _lt_linker_boilerplate=`cat conftest.err`
8429 $RM -r conftest*
8430
8431
8432 ## CAVEAT EMPTOR:
8433 ## There is no encapsulation within the following macros, do not change
8434 ## the running order or otherwise move them around unless you know exactly
8435 ## what you are doing...
8436 if test -n "$compiler"; then
8437
8438 lt_prog_compiler_no_builtin_flag=
8439
8440 if test "$GCC" = yes; then
8441   case $cc_basename in
8442   nvcc*)
8443     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8444   *)
8445     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8446   esac
8447
8448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8449 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8450 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8451   $as_echo_n "(cached) " >&6
8452 else
8453   lt_cv_prog_compiler_rtti_exceptions=no
8454    ac_outfile=conftest.$ac_objext
8455    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8456    lt_compiler_flag="-fno-rtti -fno-exceptions"
8457    # Insert the option either (1) after the last *FLAGS variable, or
8458    # (2) before a word containing "conftest.", or (3) at the end.
8459    # Note that $ac_compile itself does not contain backslashes and begins
8460    # with a dollar sign (not a hyphen), so the echo should work correctly.
8461    # The option is referenced via a variable to avoid confusing sed.
8462    lt_compile=`echo "$ac_compile" | $SED \
8463    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8464    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8465    -e 's:$: $lt_compiler_flag:'`
8466    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8467    (eval "$lt_compile" 2>conftest.err)
8468    ac_status=$?
8469    cat conftest.err >&5
8470    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471    if (exit $ac_status) && test -s "$ac_outfile"; then
8472      # The compiler can only warn and ignore the option if not recognized
8473      # So say no if there are warnings other than the usual output.
8474      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8475      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8476      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8477        lt_cv_prog_compiler_rtti_exceptions=yes
8478      fi
8479    fi
8480    $RM conftest*
8481
8482 fi
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8484 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8485
8486 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8487     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8488 else
8489     :
8490 fi
8491
8492 fi
8493
8494
8495
8496
8497
8498
8499   lt_prog_compiler_wl=
8500 lt_prog_compiler_pic=
8501 lt_prog_compiler_static=
8502
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8504 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8505
8506   if test "$GCC" = yes; then
8507     lt_prog_compiler_wl='-Wl,'
8508     lt_prog_compiler_static='-static'
8509
8510     case $host_os in
8511       aix*)
8512       # All AIX code is PIC.
8513       if test "$host_cpu" = ia64; then
8514         # AIX 5 now supports IA64 processor
8515         lt_prog_compiler_static='-Bstatic'
8516       fi
8517       lt_prog_compiler_pic='-fPIC'
8518       ;;
8519
8520     amigaos*)
8521       case $host_cpu in
8522       powerpc)
8523             # see comment about AmigaOS4 .so support
8524             lt_prog_compiler_pic='-fPIC'
8525         ;;
8526       m68k)
8527             # FIXME: we need at least 68020 code to build shared libraries, but
8528             # adding the `-m68020' flag to GCC prevents building anything better,
8529             # like `-m68040'.
8530             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8531         ;;
8532       esac
8533       ;;
8534
8535     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8536       # PIC is the default for these OSes.
8537       ;;
8538
8539     mingw* | cygwin* | pw32* | os2* | cegcc*)
8540       # This hack is so that the source file can tell whether it is being
8541       # built for inclusion in a dll (and should export symbols for example).
8542       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8543       # (--disable-auto-import) libraries
8544       lt_prog_compiler_pic='-DDLL_EXPORT'
8545       ;;
8546
8547     darwin* | rhapsody*)
8548       # PIC is the default on this platform
8549       # Common symbols not allowed in MH_DYLIB files
8550       lt_prog_compiler_pic='-fno-common'
8551       ;;
8552
8553     haiku*)
8554       # PIC is the default for Haiku.
8555       # The "-static" flag exists, but is broken.
8556       lt_prog_compiler_static=
8557       ;;
8558
8559     hpux*)
8560       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8561       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8562       # sets the default TLS model and affects inlining.
8563       case $host_cpu in
8564       hppa*64*)
8565         # +Z the default
8566         ;;
8567       *)
8568         lt_prog_compiler_pic='-fPIC'
8569         ;;
8570       esac
8571       ;;
8572
8573     interix[3-9]*)
8574       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8575       # Instead, we relocate shared libraries at runtime.
8576       ;;
8577
8578     msdosdjgpp*)
8579       # Just because we use GCC doesn't mean we suddenly get shared libraries
8580       # on systems that don't support them.
8581       lt_prog_compiler_can_build_shared=no
8582       enable_shared=no
8583       ;;
8584
8585     *nto* | *qnx*)
8586       # QNX uses GNU C++, but need to define -shared option too, otherwise
8587       # it will coredump.
8588       lt_prog_compiler_pic='-fPIC -shared'
8589       ;;
8590
8591     sysv4*MP*)
8592       if test -d /usr/nec; then
8593         lt_prog_compiler_pic=-Kconform_pic
8594       fi
8595       ;;
8596
8597     *)
8598       lt_prog_compiler_pic='-fPIC'
8599       ;;
8600     esac
8601
8602     case $cc_basename in
8603     nvcc*) # Cuda Compiler Driver 2.2
8604       lt_prog_compiler_wl='-Xlinker '
8605       lt_prog_compiler_pic='-Xcompiler -fPIC'
8606       ;;
8607     esac
8608   else
8609     # PORTME Check for flag to pass linker flags through the system compiler.
8610     case $host_os in
8611     aix*)
8612       lt_prog_compiler_wl='-Wl,'
8613       if test "$host_cpu" = ia64; then
8614         # AIX 5 now supports IA64 processor
8615         lt_prog_compiler_static='-Bstatic'
8616       else
8617         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8618       fi
8619       ;;
8620
8621     mingw* | cygwin* | pw32* | os2* | cegcc*)
8622       # This hack is so that the source file can tell whether it is being
8623       # built for inclusion in a dll (and should export symbols for example).
8624       lt_prog_compiler_pic='-DDLL_EXPORT'
8625       ;;
8626
8627     hpux9* | hpux10* | hpux11*)
8628       lt_prog_compiler_wl='-Wl,'
8629       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8630       # not for PA HP-UX.
8631       case $host_cpu in
8632       hppa*64*|ia64*)
8633         # +Z the default
8634         ;;
8635       *)
8636         lt_prog_compiler_pic='+Z'
8637         ;;
8638       esac
8639       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8640       lt_prog_compiler_static='${wl}-a ${wl}archive'
8641       ;;
8642
8643     irix5* | irix6* | nonstopux*)
8644       lt_prog_compiler_wl='-Wl,'
8645       # PIC (with -KPIC) is the default.
8646       lt_prog_compiler_static='-non_shared'
8647       ;;
8648
8649     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8650       case $cc_basename in
8651       # old Intel for x86_64 which still supported -KPIC.
8652       ecc*)
8653         lt_prog_compiler_wl='-Wl,'
8654         lt_prog_compiler_pic='-KPIC'
8655         lt_prog_compiler_static='-static'
8656         ;;
8657       # icc used to be incompatible with GCC.
8658       # ICC 10 doesn't accept -KPIC any more.
8659       icc* | ifort*)
8660         lt_prog_compiler_wl='-Wl,'
8661         lt_prog_compiler_pic='-fPIC'
8662         lt_prog_compiler_static='-static'
8663         ;;
8664       # Lahey Fortran 8.1.
8665       lf95*)
8666         lt_prog_compiler_wl='-Wl,'
8667         lt_prog_compiler_pic='--shared'
8668         lt_prog_compiler_static='--static'
8669         ;;
8670       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8671         # Portland Group compilers (*not* the Pentium gcc compiler,
8672         # which looks to be a dead project)
8673         lt_prog_compiler_wl='-Wl,'
8674         lt_prog_compiler_pic='-fpic'
8675         lt_prog_compiler_static='-Bstatic'
8676         ;;
8677       ccc*)
8678         lt_prog_compiler_wl='-Wl,'
8679         # All Alpha code is PIC.
8680         lt_prog_compiler_static='-non_shared'
8681         ;;
8682       xl* | bgxl* | bgf* | mpixl*)
8683         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8684         lt_prog_compiler_wl='-Wl,'
8685         lt_prog_compiler_pic='-qpic'
8686         lt_prog_compiler_static='-qstaticlink'
8687         ;;
8688       *)
8689         case `$CC -V 2>&1 | sed 5q` in
8690         *Sun\ F* | *Sun*Fortran*)
8691           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8692           lt_prog_compiler_pic='-KPIC'
8693           lt_prog_compiler_static='-Bstatic'
8694           lt_prog_compiler_wl=''
8695           ;;
8696         *Sun\ C*)
8697           # Sun C 5.9
8698           lt_prog_compiler_pic='-KPIC'
8699           lt_prog_compiler_static='-Bstatic'
8700           lt_prog_compiler_wl='-Wl,'
8701           ;;
8702         esac
8703         ;;
8704       esac
8705       ;;
8706
8707     newsos6)
8708       lt_prog_compiler_pic='-KPIC'
8709       lt_prog_compiler_static='-Bstatic'
8710       ;;
8711
8712     *nto* | *qnx*)
8713       # QNX uses GNU C++, but need to define -shared option too, otherwise
8714       # it will coredump.
8715       lt_prog_compiler_pic='-fPIC -shared'
8716       ;;
8717
8718     osf3* | osf4* | osf5*)
8719       lt_prog_compiler_wl='-Wl,'
8720       # All OSF/1 code is PIC.
8721       lt_prog_compiler_static='-non_shared'
8722       ;;
8723
8724     rdos*)
8725       lt_prog_compiler_static='-non_shared'
8726       ;;
8727
8728     solaris*)
8729       lt_prog_compiler_pic='-KPIC'
8730       lt_prog_compiler_static='-Bstatic'
8731       case $cc_basename in
8732       f77* | f90* | f95*)
8733         lt_prog_compiler_wl='-Qoption ld ';;
8734       *)
8735         lt_prog_compiler_wl='-Wl,';;
8736       esac
8737       ;;
8738
8739     sunos4*)
8740       lt_prog_compiler_wl='-Qoption ld '
8741       lt_prog_compiler_pic='-PIC'
8742       lt_prog_compiler_static='-Bstatic'
8743       ;;
8744
8745     sysv4 | sysv4.2uw2* | sysv4.3*)
8746       lt_prog_compiler_wl='-Wl,'
8747       lt_prog_compiler_pic='-KPIC'
8748       lt_prog_compiler_static='-Bstatic'
8749       ;;
8750
8751     sysv4*MP*)
8752       if test -d /usr/nec ;then
8753         lt_prog_compiler_pic='-Kconform_pic'
8754         lt_prog_compiler_static='-Bstatic'
8755       fi
8756       ;;
8757
8758     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8759       lt_prog_compiler_wl='-Wl,'
8760       lt_prog_compiler_pic='-KPIC'
8761       lt_prog_compiler_static='-Bstatic'
8762       ;;
8763
8764     unicos*)
8765       lt_prog_compiler_wl='-Wl,'
8766       lt_prog_compiler_can_build_shared=no
8767       ;;
8768
8769     uts4*)
8770       lt_prog_compiler_pic='-pic'
8771       lt_prog_compiler_static='-Bstatic'
8772       ;;
8773
8774     *)
8775       lt_prog_compiler_can_build_shared=no
8776       ;;
8777     esac
8778   fi
8779
8780 case $host_os in
8781   # For platforms which do not support PIC, -DPIC is meaningless:
8782   *djgpp*)
8783     lt_prog_compiler_pic=
8784     ;;
8785   *)
8786     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8787     ;;
8788 esac
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8790 $as_echo "$lt_prog_compiler_pic" >&6; }
8791
8792
8793
8794
8795
8796
8797 #
8798 # Check to make sure the PIC flag actually works.
8799 #
8800 if test -n "$lt_prog_compiler_pic"; then
8801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8802 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8803 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8804   $as_echo_n "(cached) " >&6
8805 else
8806   lt_cv_prog_compiler_pic_works=no
8807    ac_outfile=conftest.$ac_objext
8808    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8809    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8810    # Insert the option either (1) after the last *FLAGS variable, or
8811    # (2) before a word containing "conftest.", or (3) at the end.
8812    # Note that $ac_compile itself does not contain backslashes and begins
8813    # with a dollar sign (not a hyphen), so the echo should work correctly.
8814    # The option is referenced via a variable to avoid confusing sed.
8815    lt_compile=`echo "$ac_compile" | $SED \
8816    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8817    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8818    -e 's:$: $lt_compiler_flag:'`
8819    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8820    (eval "$lt_compile" 2>conftest.err)
8821    ac_status=$?
8822    cat conftest.err >&5
8823    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824    if (exit $ac_status) && test -s "$ac_outfile"; then
8825      # The compiler can only warn and ignore the option if not recognized
8826      # So say no if there are warnings other than the usual output.
8827      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8828      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8829      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8830        lt_cv_prog_compiler_pic_works=yes
8831      fi
8832    fi
8833    $RM conftest*
8834
8835 fi
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8837 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8838
8839 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8840     case $lt_prog_compiler_pic in
8841      "" | " "*) ;;
8842      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8843      esac
8844 else
8845     lt_prog_compiler_pic=
8846      lt_prog_compiler_can_build_shared=no
8847 fi
8848
8849 fi
8850
8851
8852
8853
8854
8855
8856 #
8857 # Check to make sure the static flag actually works.
8858 #
8859 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8861 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8862 if ${lt_cv_prog_compiler_static_works+:} false; then :
8863   $as_echo_n "(cached) " >&6
8864 else
8865   lt_cv_prog_compiler_static_works=no
8866    save_LDFLAGS="$LDFLAGS"
8867    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8868    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8869    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8870      # The linker can only warn and ignore the option if not recognized
8871      # So say no if there are warnings
8872      if test -s conftest.err; then
8873        # Append any errors to the config.log.
8874        cat conftest.err 1>&5
8875        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8876        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8877        if diff conftest.exp conftest.er2 >/dev/null; then
8878          lt_cv_prog_compiler_static_works=yes
8879        fi
8880      else
8881        lt_cv_prog_compiler_static_works=yes
8882      fi
8883    fi
8884    $RM -r conftest*
8885    LDFLAGS="$save_LDFLAGS"
8886
8887 fi
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8889 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8890
8891 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8892     :
8893 else
8894     lt_prog_compiler_static=
8895 fi
8896
8897
8898
8899
8900
8901
8902
8903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8904 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8905 if ${lt_cv_prog_compiler_c_o+:} false; then :
8906   $as_echo_n "(cached) " >&6
8907 else
8908   lt_cv_prog_compiler_c_o=no
8909    $RM -r conftest 2>/dev/null
8910    mkdir conftest
8911    cd conftest
8912    mkdir out
8913    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8914
8915    lt_compiler_flag="-o out/conftest2.$ac_objext"
8916    # Insert the option either (1) after the last *FLAGS variable, or
8917    # (2) before a word containing "conftest.", or (3) at the end.
8918    # Note that $ac_compile itself does not contain backslashes and begins
8919    # with a dollar sign (not a hyphen), so the echo should work correctly.
8920    lt_compile=`echo "$ac_compile" | $SED \
8921    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8922    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8923    -e 's:$: $lt_compiler_flag:'`
8924    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8925    (eval "$lt_compile" 2>out/conftest.err)
8926    ac_status=$?
8927    cat out/conftest.err >&5
8928    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8930    then
8931      # The compiler can only warn and ignore the option if not recognized
8932      # So say no if there are warnings
8933      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8934      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8935      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8936        lt_cv_prog_compiler_c_o=yes
8937      fi
8938    fi
8939    chmod u+w . 2>&5
8940    $RM conftest*
8941    # SGI C++ compiler will create directory out/ii_files/ for
8942    # template instantiation
8943    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8944    $RM out/* && rmdir out
8945    cd ..
8946    $RM -r conftest
8947    $RM conftest*
8948
8949 fi
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8951 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8952
8953
8954
8955
8956
8957
8958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8959 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8960 if ${lt_cv_prog_compiler_c_o+:} false; then :
8961   $as_echo_n "(cached) " >&6
8962 else
8963   lt_cv_prog_compiler_c_o=no
8964    $RM -r conftest 2>/dev/null
8965    mkdir conftest
8966    cd conftest
8967    mkdir out
8968    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8969
8970    lt_compiler_flag="-o out/conftest2.$ac_objext"
8971    # Insert the option either (1) after the last *FLAGS variable, or
8972    # (2) before a word containing "conftest.", or (3) at the end.
8973    # Note that $ac_compile itself does not contain backslashes and begins
8974    # with a dollar sign (not a hyphen), so the echo should work correctly.
8975    lt_compile=`echo "$ac_compile" | $SED \
8976    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8977    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8978    -e 's:$: $lt_compiler_flag:'`
8979    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8980    (eval "$lt_compile" 2>out/conftest.err)
8981    ac_status=$?
8982    cat out/conftest.err >&5
8983    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8985    then
8986      # The compiler can only warn and ignore the option if not recognized
8987      # So say no if there are warnings
8988      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8989      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8990      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8991        lt_cv_prog_compiler_c_o=yes
8992      fi
8993    fi
8994    chmod u+w . 2>&5
8995    $RM conftest*
8996    # SGI C++ compiler will create directory out/ii_files/ for
8997    # template instantiation
8998    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8999    $RM out/* && rmdir out
9000    cd ..
9001    $RM -r conftest
9002    $RM conftest*
9003
9004 fi
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9006 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9007
9008
9009
9010
9011 hard_links="nottested"
9012 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9013   # do not overwrite the value of need_locks provided by the user
9014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9015 $as_echo_n "checking if we can lock with hard links... " >&6; }
9016   hard_links=yes
9017   $RM conftest*
9018   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9019   touch conftest.a
9020   ln conftest.a conftest.b 2>&5 || hard_links=no
9021   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9023 $as_echo "$hard_links" >&6; }
9024   if test "$hard_links" = no; then
9025     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9026 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9027     need_locks=warn
9028   fi
9029 else
9030   need_locks=no
9031 fi
9032
9033
9034
9035
9036
9037
9038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9039 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9040
9041   runpath_var=
9042   allow_undefined_flag=
9043   always_export_symbols=no
9044   archive_cmds=
9045   archive_expsym_cmds=
9046   compiler_needs_object=no
9047   enable_shared_with_static_runtimes=no
9048   export_dynamic_flag_spec=
9049   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9050   hardcode_automatic=no
9051   hardcode_direct=no
9052   hardcode_direct_absolute=no
9053   hardcode_libdir_flag_spec=
9054   hardcode_libdir_flag_spec_ld=
9055   hardcode_libdir_separator=
9056   hardcode_minus_L=no
9057   hardcode_shlibpath_var=unsupported
9058   inherit_rpath=no
9059   link_all_deplibs=unknown
9060   module_cmds=
9061   module_expsym_cmds=
9062   old_archive_from_new_cmds=
9063   old_archive_from_expsyms_cmds=
9064   thread_safe_flag_spec=
9065   whole_archive_flag_spec=
9066   # include_expsyms should be a list of space-separated symbols to be *always*
9067   # included in the symbol list
9068   include_expsyms=
9069   # exclude_expsyms can be an extended regexp of symbols to exclude
9070   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9071   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9072   # as well as any symbol that contains `d'.
9073   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9074   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9075   # platforms (ab)use it in PIC code, but their linkers get confused if
9076   # the symbol is explicitly referenced.  Since portable code cannot
9077   # rely on this symbol name, it's probably fine to never include it in
9078   # preloaded symbol tables.
9079   # Exclude shared library initialization/finalization symbols.
9080   extract_expsyms_cmds=
9081
9082   case $host_os in
9083   cygwin* | mingw* | pw32* | cegcc*)
9084     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9085     # When not using gcc, we currently assume that we are using
9086     # Microsoft Visual C++.
9087     if test "$GCC" != yes; then
9088       with_gnu_ld=no
9089     fi
9090     ;;
9091   interix*)
9092     # we just hope/assume this is gcc and not c89 (= MSVC++)
9093     with_gnu_ld=yes
9094     ;;
9095   openbsd*)
9096     with_gnu_ld=no
9097     ;;
9098   esac
9099
9100   ld_shlibs=yes
9101
9102   # On some targets, GNU ld is compatible enough with the native linker
9103   # that we're better off using the native interface for both.
9104   lt_use_gnu_ld_interface=no
9105   if test "$with_gnu_ld" = yes; then
9106     case $host_os in
9107       aix*)
9108         # The AIX port of GNU ld has always aspired to compatibility
9109         # with the native linker.  However, as the warning in the GNU ld
9110         # block says, versions before 2.19.5* couldn't really create working
9111         # shared libraries, regardless of the interface used.
9112         case `$LD -v 2>&1` in
9113           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9114           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9115           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9116           *)
9117             lt_use_gnu_ld_interface=yes
9118             ;;
9119         esac
9120         ;;
9121       *)
9122         lt_use_gnu_ld_interface=yes
9123         ;;
9124     esac
9125   fi
9126
9127   if test "$lt_use_gnu_ld_interface" = yes; then
9128     # If archive_cmds runs LD, not CC, wlarc should be empty
9129     wlarc='${wl}'
9130
9131     # Set some defaults for GNU ld with shared library support. These
9132     # are reset later if shared libraries are not supported. Putting them
9133     # here allows them to be overridden if necessary.
9134     runpath_var=LD_RUN_PATH
9135     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9136     export_dynamic_flag_spec='${wl}--export-dynamic'
9137     # ancient GNU ld didn't support --whole-archive et. al.
9138     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9139       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9140     else
9141       whole_archive_flag_spec=
9142     fi
9143     supports_anon_versioning=no
9144     case `$LD -v 2>&1` in
9145       *GNU\ gold*) supports_anon_versioning=yes ;;
9146       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9147       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9148       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9149       *\ 2.11.*) ;; # other 2.11 versions
9150       *) supports_anon_versioning=yes ;;
9151     esac
9152
9153     # See if GNU ld supports shared libraries.
9154     case $host_os in
9155     aix[3-9]*)
9156       # On AIX/PPC, the GNU linker is very broken
9157       if test "$host_cpu" != ia64; then
9158         ld_shlibs=no
9159         cat <<_LT_EOF 1>&2
9160
9161 *** Warning: the GNU linker, at least up to release 2.19, is reported
9162 *** to be unable to reliably create shared libraries on AIX.
9163 *** Therefore, libtool is disabling shared libraries support.  If you
9164 *** really care for shared libraries, you may want to install binutils
9165 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9166 *** You will then need to restart the configuration process.
9167
9168 _LT_EOF
9169       fi
9170       ;;
9171
9172     amigaos*)
9173       case $host_cpu in
9174       powerpc)
9175             # see comment about AmigaOS4 .so support
9176             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9177             archive_expsym_cmds=''
9178         ;;
9179       m68k)
9180             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)'
9181             hardcode_libdir_flag_spec='-L$libdir'
9182             hardcode_minus_L=yes
9183         ;;
9184       esac
9185       ;;
9186
9187     beos*)
9188       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9189         allow_undefined_flag=unsupported
9190         # Joseph Beckenbach <[email protected]> says some releases of gcc
9191         # support --undefined.  This deserves some investigation.  FIXME
9192         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9193       else
9194         ld_shlibs=no
9195       fi
9196       ;;
9197
9198     cygwin* | mingw* | pw32* | cegcc*)
9199       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9200       # as there is no search path for DLLs.
9201       hardcode_libdir_flag_spec='-L$libdir'
9202       export_dynamic_flag_spec='${wl}--export-all-symbols'
9203       allow_undefined_flag=unsupported
9204       always_export_symbols=no
9205       enable_shared_with_static_runtimes=yes
9206       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9207
9208       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9209         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9210         # If the export-symbols file already is a .def file (1st line
9211         # is EXPORTS), use it as is; otherwise, prepend...
9212         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9213           cp $export_symbols $output_objdir/$soname.def;
9214         else
9215           echo EXPORTS > $output_objdir/$soname.def;
9216           cat $export_symbols >> $output_objdir/$soname.def;
9217         fi~
9218         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9219       else
9220         ld_shlibs=no
9221       fi
9222       ;;
9223
9224     haiku*)
9225       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9226       link_all_deplibs=yes
9227       ;;
9228
9229     interix[3-9]*)
9230       hardcode_direct=no
9231       hardcode_shlibpath_var=no
9232       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9233       export_dynamic_flag_spec='${wl}-E'
9234       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9235       # Instead, shared libraries are loaded at an image base (0x10000000 by
9236       # default) and relocated if they conflict, which is a slow very memory
9237       # consuming and fragmenting process.  To avoid this, we pick a random,
9238       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9239       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9240       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9241       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'
9242       ;;
9243
9244     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9245       tmp_diet=no
9246       if test "$host_os" = linux-dietlibc; then
9247         case $cc_basename in
9248           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9249         esac
9250       fi
9251       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9252          && test "$tmp_diet" = no
9253       then
9254         tmp_addflag=' $pic_flag'
9255         tmp_sharedflag='-shared'
9256         case $cc_basename,$host_cpu in
9257         pgcc*)                          # Portland Group C compiler
9258           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'
9259           tmp_addflag=' $pic_flag'
9260           ;;
9261         pgf77* | pgf90* | pgf95* | pgfortran*)
9262                                         # Portland Group f77 and f90 compilers
9263           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'
9264           tmp_addflag=' $pic_flag -Mnomain' ;;
9265         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9266           tmp_addflag=' -i_dynamic' ;;
9267         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9268           tmp_addflag=' -i_dynamic -nofor_main' ;;
9269         ifc* | ifort*)                  # Intel Fortran compiler
9270           tmp_addflag=' -nofor_main' ;;
9271         lf95*)                          # Lahey Fortran 8.1
9272           whole_archive_flag_spec=
9273           tmp_sharedflag='--shared' ;;
9274         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9275           tmp_sharedflag='-qmkshrobj'
9276           tmp_addflag= ;;
9277         nvcc*)  # Cuda Compiler Driver 2.2
9278           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'
9279           compiler_needs_object=yes
9280           ;;
9281         esac
9282         case `$CC -V 2>&1 | sed 5q` in
9283         *Sun\ C*)                       # Sun C 5.9
9284           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'
9285           compiler_needs_object=yes
9286           tmp_sharedflag='-G' ;;
9287         *Sun\ F*)                       # Sun Fortran 8.3
9288           tmp_sharedflag='-G' ;;
9289         esac
9290         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9291
9292         if test "x$supports_anon_versioning" = xyes; then
9293           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9294             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9295             echo "local: *; };" >> $output_objdir/$libname.ver~
9296             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9297         fi
9298
9299         case $cc_basename in
9300         xlf* | bgf* | bgxlf* | mpixlf*)
9301           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9302           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9303           hardcode_libdir_flag_spec=
9304           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9305           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9306           if test "x$supports_anon_versioning" = xyes; then
9307             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9308               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9309               echo "local: *; };" >> $output_objdir/$libname.ver~
9310               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9311           fi
9312           ;;
9313         esac
9314       else
9315         ld_shlibs=no
9316       fi
9317       ;;
9318
9319     netbsd*)
9320       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9321         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9322         wlarc=
9323       else
9324         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9325         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9326       fi
9327       ;;
9328
9329     solaris*)
9330       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9331         ld_shlibs=no
9332         cat <<_LT_EOF 1>&2
9333
9334 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9335 *** create shared libraries on Solaris systems.  Therefore, libtool
9336 *** is disabling shared libraries support.  We urge you to upgrade GNU
9337 *** binutils to release 2.9.1 or newer.  Another option is to modify
9338 *** your PATH or compiler configuration so that the native linker is
9339 *** used, and then restart.
9340
9341 _LT_EOF
9342       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9343         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9344         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9345       else
9346         ld_shlibs=no
9347       fi
9348       ;;
9349
9350     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9351       case `$LD -v 2>&1` in
9352         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9353         ld_shlibs=no
9354         cat <<_LT_EOF 1>&2
9355
9356 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9357 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9358 *** is disabling shared libraries support.  We urge you to upgrade GNU
9359 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9360 *** your PATH or compiler configuration so that the native linker is
9361 *** used, and then restart.
9362
9363 _LT_EOF
9364         ;;
9365         *)
9366           # For security reasons, it is highly recommended that you always
9367           # use absolute paths for naming shared libraries, and exclude the
9368           # DT_RUNPATH tag from executables and libraries.  But doing so
9369           # requires that you compile everything twice, which is a pain.
9370           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9371             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9372             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9373             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9374           else
9375             ld_shlibs=no
9376           fi
9377         ;;
9378       esac
9379       ;;
9380
9381     sunos4*)
9382       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9383       wlarc=
9384       hardcode_direct=yes
9385       hardcode_shlibpath_var=no
9386       ;;
9387
9388     *)
9389       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9390         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9391         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9392       else
9393         ld_shlibs=no
9394       fi
9395       ;;
9396     esac
9397
9398     if test "$ld_shlibs" = no; then
9399       runpath_var=
9400       hardcode_libdir_flag_spec=
9401       export_dynamic_flag_spec=
9402       whole_archive_flag_spec=
9403     fi
9404   else
9405     # PORTME fill in a description of your system's linker (not GNU ld)
9406     case $host_os in
9407     aix3*)
9408       allow_undefined_flag=unsupported
9409       always_export_symbols=yes
9410       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'
9411       # Note: this linker hardcodes the directories in LIBPATH if there
9412       # are no directories specified by -L.
9413       hardcode_minus_L=yes
9414       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9415         # Neither direct hardcoding nor static linking is supported with a
9416         # broken collect2.
9417         hardcode_direct=unsupported
9418       fi
9419       ;;
9420
9421     aix[4-9]*)
9422       if test "$host_cpu" = ia64; then
9423         # On IA64, the linker does run time linking by default, so we don't
9424         # have to do anything special.
9425         aix_use_runtimelinking=no
9426         exp_sym_flag='-Bexport'
9427         no_entry_flag=""
9428       else
9429         # If we're using GNU nm, then we don't want the "-C" option.
9430         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9431         # Also, AIX nm treats weak defined symbols like other global
9432         # defined symbols, whereas GNU nm marks them as "W".
9433         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9434           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'
9435         else
9436           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'
9437         fi
9438         aix_use_runtimelinking=no
9439
9440         # Test if we are trying to use run time linking or normal
9441         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9442         # need to do runtime linking.
9443         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9444           for ld_flag in $LDFLAGS; do
9445           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9446             aix_use_runtimelinking=yes
9447             break
9448           fi
9449           done
9450           ;;
9451         esac
9452
9453         exp_sym_flag='-bexport'
9454         no_entry_flag='-bnoentry'
9455       fi
9456
9457       # When large executables or shared objects are built, AIX ld can
9458       # have problems creating the table of contents.  If linking a library
9459       # or program results in "error TOC overflow" add -mminimal-toc to
9460       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9461       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9462
9463       archive_cmds=''
9464       hardcode_direct=yes
9465       hardcode_direct_absolute=yes
9466       hardcode_libdir_separator=':'
9467       link_all_deplibs=yes
9468       file_list_spec='${wl}-f,'
9469
9470       if test "$GCC" = yes; then
9471         case $host_os in aix4.[012]|aix4.[012].*)
9472         # We only want to do this on AIX 4.2 and lower, the check
9473         # below for broken collect2 doesn't work under 4.3+
9474           collect2name=`${CC} -print-prog-name=collect2`
9475           if test -f "$collect2name" &&
9476            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9477           then
9478           # We have reworked collect2
9479           :
9480           else
9481           # We have old collect2
9482           hardcode_direct=unsupported
9483           # It fails to find uninstalled libraries when the uninstalled
9484           # path is not listed in the libpath.  Setting hardcode_minus_L
9485           # to unsupported forces relinking
9486           hardcode_minus_L=yes
9487           hardcode_libdir_flag_spec='-L$libdir'
9488           hardcode_libdir_separator=
9489           fi
9490           ;;
9491         esac
9492         shared_flag='-shared'
9493         if test "$aix_use_runtimelinking" = yes; then
9494           shared_flag="$shared_flag "'${wl}-G'
9495         fi
9496       else
9497         # not using gcc
9498         if test "$host_cpu" = ia64; then
9499         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9500         # chokes on -Wl,-G. The following line is correct:
9501           shared_flag='-G'
9502         else
9503           if test "$aix_use_runtimelinking" = yes; then
9504             shared_flag='${wl}-G'
9505           else
9506             shared_flag='${wl}-bM:SRE'
9507           fi
9508         fi
9509       fi
9510
9511       export_dynamic_flag_spec='${wl}-bexpall'
9512       # It seems that -bexpall does not export symbols beginning with
9513       # underscore (_), so it is better to generate a list of symbols to export.
9514       always_export_symbols=yes
9515       if test "$aix_use_runtimelinking" = yes; then
9516         # Warning - without using the other runtime loading flags (-brtl),
9517         # -berok will link without error, but may produce a broken library.
9518         allow_undefined_flag='-berok'
9519         # Determine the default libpath from the value encoded in an
9520         # empty executable.
9521         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h.  */
9523
9524 int
9525 main ()
9526 {
9527
9528   ;
9529   return 0;
9530 }
9531 _ACEOF
9532 if ac_fn_c_try_link "$LINENO"; then :
9533
9534 lt_aix_libpath_sed='
9535     /Import File Strings/,/^$/ {
9536         /^0/ {
9537             s/^0  *\(.*\)$/\1/
9538             p
9539         }
9540     }'
9541 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9542 # Check for a 64-bit object if we didn't find anything.
9543 if test -z "$aix_libpath"; then
9544   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9545 fi
9546 fi
9547 rm -f core conftest.err conftest.$ac_objext \
9548     conftest$ac_exeext conftest.$ac_ext
9549 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9550
9551         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9552         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"
9553       else
9554         if test "$host_cpu" = ia64; then
9555           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9556           allow_undefined_flag="-z nodefs"
9557           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"
9558         else
9559          # Determine the default libpath from the value encoded in an
9560          # empty executable.
9561          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9562 /* end confdefs.h.  */
9563
9564 int
9565 main ()
9566 {
9567
9568   ;
9569   return 0;
9570 }
9571 _ACEOF
9572 if ac_fn_c_try_link "$LINENO"; then :
9573
9574 lt_aix_libpath_sed='
9575     /Import File Strings/,/^$/ {
9576         /^0/ {
9577             s/^0  *\(.*\)$/\1/
9578             p
9579         }
9580     }'
9581 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9582 # Check for a 64-bit object if we didn't find anything.
9583 if test -z "$aix_libpath"; then
9584   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9585 fi
9586 fi
9587 rm -f core conftest.err conftest.$ac_objext \
9588     conftest$ac_exeext conftest.$ac_ext
9589 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9590
9591          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9592           # Warning - without using the other run time loading flags,
9593           # -berok will link without error, but may produce a broken library.
9594           no_undefined_flag=' ${wl}-bernotok'
9595           allow_undefined_flag=' ${wl}-berok'
9596           if test "$with_gnu_ld" = yes; then
9597             # We only use this code for GNU lds that support --whole-archive.
9598             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9599           else
9600             # Exported symbols can be pulled into shared objects from archives
9601             whole_archive_flag_spec='$convenience'
9602           fi
9603           archive_cmds_need_lc=yes
9604           # This is similar to how AIX traditionally builds its shared libraries.
9605           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'
9606         fi
9607       fi
9608       ;;
9609
9610     amigaos*)
9611       case $host_cpu in
9612       powerpc)
9613             # see comment about AmigaOS4 .so support
9614             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9615             archive_expsym_cmds=''
9616         ;;
9617       m68k)
9618             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)'
9619             hardcode_libdir_flag_spec='-L$libdir'
9620             hardcode_minus_L=yes
9621         ;;
9622       esac
9623       ;;
9624
9625     bsdi[45]*)
9626       export_dynamic_flag_spec=-rdynamic
9627       ;;
9628
9629     cygwin* | mingw* | pw32* | cegcc*)
9630       # When not using gcc, we currently assume that we are using
9631       # Microsoft Visual C++.
9632       # hardcode_libdir_flag_spec is actually meaningless, as there is
9633       # no search path for DLLs.
9634       hardcode_libdir_flag_spec=' '
9635       allow_undefined_flag=unsupported
9636       # Tell ltmain to make .lib files, not .a files.
9637       libext=lib
9638       # Tell ltmain to make .dll files, not .so files.
9639       shrext_cmds=".dll"
9640       # FIXME: Setting linknames here is a bad hack.
9641       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9642       # The linker will automatically build a .lib file if we build a DLL.
9643       old_archive_from_new_cmds='true'
9644       # FIXME: Should let the user specify the lib program.
9645       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9646       fix_srcfile_path='`cygpath -w "$srcfile"`'
9647       enable_shared_with_static_runtimes=yes
9648       ;;
9649
9650     darwin* | rhapsody*)
9651
9652
9653   archive_cmds_need_lc=no
9654   hardcode_direct=no
9655   hardcode_automatic=yes
9656   hardcode_shlibpath_var=unsupported
9657   if test "$lt_cv_ld_force_load" = "yes"; then
9658     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\"`'
9659   else
9660     whole_archive_flag_spec=''
9661   fi
9662   link_all_deplibs=yes
9663   allow_undefined_flag="$_lt_dar_allow_undefined"
9664   case $cc_basename in
9665      ifort*) _lt_dar_can_shared=yes ;;
9666      *) _lt_dar_can_shared=$GCC ;;
9667   esac
9668   if test "$_lt_dar_can_shared" = "yes"; then
9669     output_verbose_link_cmd=func_echo_all
9670     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9671     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9672     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}"
9673     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}"
9674
9675   else
9676   ld_shlibs=no
9677   fi
9678
9679       ;;
9680
9681     dgux*)
9682       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9683       hardcode_libdir_flag_spec='-L$libdir'
9684       hardcode_shlibpath_var=no
9685       ;;
9686
9687     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9688     # support.  Future versions do this automatically, but an explicit c++rt0.o
9689     # does not break anything, and helps significantly (at the cost of a little
9690     # extra space).
9691     freebsd2.2*)
9692       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9693       hardcode_libdir_flag_spec='-R$libdir'
9694       hardcode_direct=yes
9695       hardcode_shlibpath_var=no
9696       ;;
9697
9698     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9699     freebsd2.*)
9700       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9701       hardcode_direct=yes
9702       hardcode_minus_L=yes
9703       hardcode_shlibpath_var=no
9704       ;;
9705
9706     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9707     freebsd* | dragonfly*)
9708       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9709       hardcode_libdir_flag_spec='-R$libdir'
9710       hardcode_direct=yes
9711       hardcode_shlibpath_var=no
9712       ;;
9713
9714     hpux9*)
9715       if test "$GCC" = yes; then
9716         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'
9717       else
9718         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'
9719       fi
9720       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9721       hardcode_libdir_separator=:
9722       hardcode_direct=yes
9723
9724       # hardcode_minus_L: Not really in the search PATH,
9725       # but as the default location of the library.
9726       hardcode_minus_L=yes
9727       export_dynamic_flag_spec='${wl}-E'
9728       ;;
9729
9730     hpux10*)
9731       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9732         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9733       else
9734         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9735       fi
9736       if test "$with_gnu_ld" = no; then
9737         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9738         hardcode_libdir_flag_spec_ld='+b $libdir'
9739         hardcode_libdir_separator=:
9740         hardcode_direct=yes
9741         hardcode_direct_absolute=yes
9742         export_dynamic_flag_spec='${wl}-E'
9743         # hardcode_minus_L: Not really in the search PATH,
9744         # but as the default location of the library.
9745         hardcode_minus_L=yes
9746       fi
9747       ;;
9748
9749     hpux11*)
9750       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9751         case $host_cpu in
9752         hppa*64*)
9753           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9754           ;;
9755         ia64*)
9756           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9757           ;;
9758         *)
9759           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9760           ;;
9761         esac
9762       else
9763         case $host_cpu in
9764         hppa*64*)
9765           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9766           ;;
9767         ia64*)
9768           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9769           ;;
9770         *)
9771
9772           # Older versions of the 11.00 compiler do not understand -b yet
9773           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9774           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9775 $as_echo_n "checking if $CC understands -b... " >&6; }
9776 if ${lt_cv_prog_compiler__b+:} false; then :
9777   $as_echo_n "(cached) " >&6
9778 else
9779   lt_cv_prog_compiler__b=no
9780    save_LDFLAGS="$LDFLAGS"
9781    LDFLAGS="$LDFLAGS -b"
9782    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9783    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9784      # The linker can only warn and ignore the option if not recognized
9785      # So say no if there are warnings
9786      if test -s conftest.err; then
9787        # Append any errors to the config.log.
9788        cat conftest.err 1>&5
9789        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9790        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9791        if diff conftest.exp conftest.er2 >/dev/null; then
9792          lt_cv_prog_compiler__b=yes
9793        fi
9794      else
9795        lt_cv_prog_compiler__b=yes
9796      fi
9797    fi
9798    $RM -r conftest*
9799    LDFLAGS="$save_LDFLAGS"
9800
9801 fi
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9803 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9804
9805 if test x"$lt_cv_prog_compiler__b" = xyes; then
9806     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9807 else
9808     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9809 fi
9810
9811           ;;
9812         esac
9813       fi
9814       if test "$with_gnu_ld" = no; then
9815         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9816         hardcode_libdir_separator=:
9817
9818         case $host_cpu in
9819         hppa*64*|ia64*)
9820           hardcode_direct=no
9821           hardcode_shlibpath_var=no
9822           ;;
9823         *)
9824           hardcode_direct=yes
9825           hardcode_direct_absolute=yes
9826           export_dynamic_flag_spec='${wl}-E'
9827
9828           # hardcode_minus_L: Not really in the search PATH,
9829           # but as the default location of the library.
9830           hardcode_minus_L=yes
9831           ;;
9832         esac
9833       fi
9834       ;;
9835
9836     irix5* | irix6* | nonstopux*)
9837       if test "$GCC" = yes; then
9838         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'
9839         # Try to use the -exported_symbol ld option, if it does not
9840         # work, assume that -exports_file does not work either and
9841         # implicitly export all symbols.
9842         save_LDFLAGS="$LDFLAGS"
9843         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9844         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845 /* end confdefs.h.  */
9846 int foo(void) {}
9847 _ACEOF
9848 if ac_fn_c_try_link "$LINENO"; then :
9849   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'
9850
9851 fi
9852 rm -f core conftest.err conftest.$ac_objext \
9853     conftest$ac_exeext conftest.$ac_ext
9854         LDFLAGS="$save_LDFLAGS"
9855       else
9856         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'
9857         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'
9858       fi
9859       archive_cmds_need_lc='no'
9860       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9861       hardcode_libdir_separator=:
9862       inherit_rpath=yes
9863       link_all_deplibs=yes
9864       ;;
9865
9866     netbsd*)
9867       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9868         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9869       else
9870         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9871       fi
9872       hardcode_libdir_flag_spec='-R$libdir'
9873       hardcode_direct=yes
9874       hardcode_shlibpath_var=no
9875       ;;
9876
9877     newsos6)
9878       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9879       hardcode_direct=yes
9880       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9881       hardcode_libdir_separator=:
9882       hardcode_shlibpath_var=no
9883       ;;
9884
9885     *nto* | *qnx*)
9886       ;;
9887
9888     openbsd*)
9889       if test -f /usr/libexec/ld.so; then
9890         hardcode_direct=yes
9891         hardcode_shlibpath_var=no
9892         hardcode_direct_absolute=yes
9893         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9894           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9895           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9896           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9897           export_dynamic_flag_spec='${wl}-E'
9898         else
9899           case $host_os in
9900            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9901              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9902              hardcode_libdir_flag_spec='-R$libdir'
9903              ;;
9904            *)
9905              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9906              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9907              ;;
9908           esac
9909         fi
9910       else
9911         ld_shlibs=no
9912       fi
9913       ;;
9914
9915     os2*)
9916       hardcode_libdir_flag_spec='-L$libdir'
9917       hardcode_minus_L=yes
9918       allow_undefined_flag=unsupported
9919       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'
9920       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9921       ;;
9922
9923     osf3*)
9924       if test "$GCC" = yes; then
9925         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9926         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'
9927       else
9928         allow_undefined_flag=' -expect_unresolved \*'
9929         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'
9930       fi
9931       archive_cmds_need_lc='no'
9932       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9933       hardcode_libdir_separator=:
9934       ;;
9935
9936     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9937       if test "$GCC" = yes; then
9938         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9939         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'
9940         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9941       else
9942         allow_undefined_flag=' -expect_unresolved \*'
9943         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'
9944         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~
9945         $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'
9946
9947         # Both c and cxx compiler support -rpath directly
9948         hardcode_libdir_flag_spec='-rpath $libdir'
9949       fi
9950       archive_cmds_need_lc='no'
9951       hardcode_libdir_separator=:
9952       ;;
9953
9954     solaris*)
9955       no_undefined_flag=' -z defs'
9956       if test "$GCC" = yes; then
9957         wlarc='${wl}'
9958         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9959         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9960           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9961       else
9962         case `$CC -V 2>&1` in
9963         *"Compilers 5.0"*)
9964           wlarc=''
9965           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9966           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9967           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9968           ;;
9969         *)
9970           wlarc='${wl}'
9971           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9972           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9973           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9974           ;;
9975         esac
9976       fi
9977       hardcode_libdir_flag_spec='-R$libdir'
9978       hardcode_shlibpath_var=no
9979       case $host_os in
9980       solaris2.[0-5] | solaris2.[0-5].*) ;;
9981       *)
9982         # The compiler driver will combine and reorder linker options,
9983         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9984         # but is careful enough not to reorder.
9985         # Supported since Solaris 2.6 (maybe 2.5.1?)
9986         if test "$GCC" = yes; then
9987           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9988         else
9989           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9990         fi
9991         ;;
9992       esac
9993       link_all_deplibs=yes
9994       ;;
9995
9996     sunos4*)
9997       if test "x$host_vendor" = xsequent; then
9998         # Use $CC to link under sequent, because it throws in some extra .o
9999         # files that make .init and .fini sections work.
10000         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10001       else
10002         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10003       fi
10004       hardcode_libdir_flag_spec='-L$libdir'
10005       hardcode_direct=yes
10006       hardcode_minus_L=yes
10007       hardcode_shlibpath_var=no
10008       ;;
10009
10010     sysv4)
10011       case $host_vendor in
10012         sni)
10013           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10014           hardcode_direct=yes # is this really true???
10015         ;;
10016         siemens)
10017           ## LD is ld it makes a PLAMLIB
10018           ## CC just makes a GrossModule.
10019           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10020           reload_cmds='$CC -r -o $output$reload_objs'
10021           hardcode_direct=no
10022         ;;
10023         motorola)
10024           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10025           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10026         ;;
10027       esac
10028       runpath_var='LD_RUN_PATH'
10029       hardcode_shlibpath_var=no
10030       ;;
10031
10032     sysv4.3*)
10033       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10034       hardcode_shlibpath_var=no
10035       export_dynamic_flag_spec='-Bexport'
10036       ;;
10037
10038     sysv4*MP*)
10039       if test -d /usr/nec; then
10040         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10041         hardcode_shlibpath_var=no
10042         runpath_var=LD_RUN_PATH
10043         hardcode_runpath_var=yes
10044         ld_shlibs=yes
10045       fi
10046       ;;
10047
10048     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10049       no_undefined_flag='${wl}-z,text'
10050       archive_cmds_need_lc=no
10051       hardcode_shlibpath_var=no
10052       runpath_var='LD_RUN_PATH'
10053
10054       if test "$GCC" = yes; then
10055         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10056         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10057       else
10058         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10059         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10060       fi
10061       ;;
10062
10063     sysv5* | sco3.2v5* | sco5v6*)
10064       # Note: We can NOT use -z defs as we might desire, because we do not
10065       # link with -lc, and that would cause any symbols used from libc to
10066       # always be unresolved, which means just about no library would
10067       # ever link correctly.  If we're not using GNU ld we use -z text
10068       # though, which does catch some bad symbols but isn't as heavy-handed
10069       # as -z defs.
10070       no_undefined_flag='${wl}-z,text'
10071       allow_undefined_flag='${wl}-z,nodefs'
10072       archive_cmds_need_lc=no
10073       hardcode_shlibpath_var=no
10074       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10075       hardcode_libdir_separator=':'
10076       link_all_deplibs=yes
10077       export_dynamic_flag_spec='${wl}-Bexport'
10078       runpath_var='LD_RUN_PATH'
10079
10080       if test "$GCC" = yes; then
10081         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10082         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10083       else
10084         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10085         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10086       fi
10087       ;;
10088
10089     uts4*)
10090       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10091       hardcode_libdir_flag_spec='-L$libdir'
10092       hardcode_shlibpath_var=no
10093       ;;
10094
10095     *)
10096       ld_shlibs=no
10097       ;;
10098     esac
10099
10100     if test x$host_vendor = xsni; then
10101       case $host in
10102       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10103         export_dynamic_flag_spec='${wl}-Blargedynsym'
10104         ;;
10105       esac
10106     fi
10107   fi
10108
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10110 $as_echo "$ld_shlibs" >&6; }
10111 test "$ld_shlibs" = no && can_build_shared=no
10112
10113 with_gnu_ld=$with_gnu_ld
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129 #
10130 # Do we need to explicitly link libc?
10131 #
10132 case "x$archive_cmds_need_lc" in
10133 x|xyes)
10134   # Assume -lc should be added
10135   archive_cmds_need_lc=yes
10136
10137   if test "$enable_shared" = yes && test "$GCC" = yes; then
10138     case $archive_cmds in
10139     *'~'*)
10140       # FIXME: we may have to deal with multi-command sequences.
10141       ;;
10142     '$CC '*)
10143       # Test whether the compiler implicitly links with -lc since on some
10144       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10145       # to ld, don't add -lc before -lgcc.
10146       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10147 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10148 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10149   $as_echo_n "(cached) " >&6
10150 else
10151   $RM conftest*
10152         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10153
10154         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10155   (eval $ac_compile) 2>&5
10156   ac_status=$?
10157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10158   test $ac_status = 0; } 2>conftest.err; then
10159           soname=conftest
10160           lib=conftest
10161           libobjs=conftest.$ac_objext
10162           deplibs=
10163           wl=$lt_prog_compiler_wl
10164           pic_flag=$lt_prog_compiler_pic
10165           compiler_flags=-v
10166           linker_flags=-v
10167           verstring=
10168           output_objdir=.
10169           libname=conftest
10170           lt_save_allow_undefined_flag=$allow_undefined_flag
10171           allow_undefined_flag=
10172           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10173   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10174   ac_status=$?
10175   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10176   test $ac_status = 0; }
10177           then
10178             lt_cv_archive_cmds_need_lc=no
10179           else
10180             lt_cv_archive_cmds_need_lc=yes
10181           fi
10182           allow_undefined_flag=$lt_save_allow_undefined_flag
10183         else
10184           cat conftest.err 1>&5
10185         fi
10186         $RM conftest*
10187
10188 fi
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10190 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10191       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10192       ;;
10193     esac
10194   fi
10195   ;;
10196 esac
10197
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10355 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10356
10357 if test "$GCC" = yes; then
10358   case $host_os in
10359     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10360     *) lt_awk_arg="/^libraries:/" ;;
10361   esac
10362   case $host_os in
10363     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10364     *) lt_sed_strip_eq="s,=/,/,g" ;;
10365   esac
10366   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10367   case $lt_search_path_spec in
10368   *\;*)
10369     # if the path contains ";" then we assume it to be the separator
10370     # otherwise default to the standard path separator (i.e. ":") - it is
10371     # assumed that no part of a normal pathname contains ";" but that should
10372     # okay in the real world where ";" in dirpaths is itself problematic.
10373     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10374     ;;
10375   *)
10376     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10377     ;;
10378   esac
10379   # Ok, now we have the path, separated by spaces, we can step through it
10380   # and add multilib dir if necessary.
10381   lt_tmp_lt_search_path_spec=
10382   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10383   for lt_sys_path in $lt_search_path_spec; do
10384     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10385       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10386     else
10387       test -d "$lt_sys_path" && \
10388         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10389     fi
10390   done
10391   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10392 BEGIN {RS=" "; FS="/|\n";} {
10393   lt_foo="";
10394   lt_count=0;
10395   for (lt_i = NF; lt_i > 0; lt_i--) {
10396     if ($lt_i != "" && $lt_i != ".") {
10397       if ($lt_i == "..") {
10398         lt_count++;
10399       } else {
10400         if (lt_count == 0) {
10401           lt_foo="/" $lt_i lt_foo;
10402         } else {
10403           lt_count--;
10404         }
10405       }
10406     }
10407   }
10408   if (lt_foo != "") { lt_freq[lt_foo]++; }
10409   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10410 }'`
10411   # AWK program above erroneously prepends '/' to C:/dos/paths
10412   # for these hosts.
10413   case $host_os in
10414     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10415       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10416   esac
10417   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10418 else
10419   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10420 fi
10421 library_names_spec=
10422 libname_spec='lib$name'
10423 soname_spec=
10424 shrext_cmds=".so"
10425 postinstall_cmds=
10426 postuninstall_cmds=
10427 finish_cmds=
10428 finish_eval=
10429 shlibpath_var=
10430 shlibpath_overrides_runpath=unknown
10431 version_type=none
10432 dynamic_linker="$host_os ld.so"
10433 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10434 need_lib_prefix=unknown
10435 hardcode_into_libs=no
10436
10437 # when you set need_version to no, make sure it does not cause -set_version
10438 # flags to be left without arguments
10439 need_version=unknown
10440
10441 case $host_os in
10442 aix3*)
10443   version_type=linux
10444   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10445   shlibpath_var=LIBPATH
10446
10447   # AIX 3 has no versioning support, so we append a major version to the name.
10448   soname_spec='${libname}${release}${shared_ext}$major'
10449   ;;
10450
10451 aix[4-9]*)
10452   version_type=linux
10453   need_lib_prefix=no
10454   need_version=no
10455   hardcode_into_libs=yes
10456   if test "$host_cpu" = ia64; then
10457     # AIX 5 supports IA64
10458     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10459     shlibpath_var=LD_LIBRARY_PATH
10460   else
10461     # With GCC up to 2.95.x, collect2 would create an import file
10462     # for dependence libraries.  The import file would start with
10463     # the line `#! .'.  This would cause the generated library to
10464     # depend on `.', always an invalid library.  This was fixed in
10465     # development snapshots of GCC prior to 3.0.
10466     case $host_os in
10467       aix4 | aix4.[01] | aix4.[01].*)
10468       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10469            echo ' yes '
10470            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10471         :
10472       else
10473         can_build_shared=no
10474       fi
10475       ;;
10476     esac
10477     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10478     # soname into executable. Probably we can add versioning support to
10479     # collect2, so additional links can be useful in future.
10480     if test "$aix_use_runtimelinking" = yes; then
10481       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10482       # instead of lib<name>.a to let people know that these are not
10483       # typical AIX shared libraries.
10484       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10485     else
10486       # We preserve .a as extension for shared libraries through AIX4.2
10487       # and later when we are not doing run time linking.
10488       library_names_spec='${libname}${release}.a $libname.a'
10489       soname_spec='${libname}${release}${shared_ext}$major'
10490     fi
10491     shlibpath_var=LIBPATH
10492   fi
10493   ;;
10494
10495 amigaos*)
10496   case $host_cpu in
10497   powerpc)
10498     # Since July 2007 AmigaOS4 officially supports .so libraries.
10499     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10500     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10501     ;;
10502   m68k)
10503     library_names_spec='$libname.ixlibrary $libname.a'
10504     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10505     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'
10506     ;;
10507   esac
10508   ;;
10509
10510 beos*)
10511   library_names_spec='${libname}${shared_ext}'
10512   dynamic_linker="$host_os ld.so"
10513   shlibpath_var=LIBRARY_PATH
10514   ;;
10515
10516 bsdi[45]*)
10517   version_type=linux
10518   need_version=no
10519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10520   soname_spec='${libname}${release}${shared_ext}$major'
10521   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10522   shlibpath_var=LD_LIBRARY_PATH
10523   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10524   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10525   # the default ld.so.conf also contains /usr/contrib/lib and
10526   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10527   # libtool to hard-code these into programs
10528   ;;
10529
10530 cygwin* | mingw* | pw32* | cegcc*)
10531   version_type=windows
10532   shrext_cmds=".dll"
10533   need_version=no
10534   need_lib_prefix=no
10535
10536   case $GCC,$host_os in
10537   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10538     library_names_spec='$libname.dll.a'
10539     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10540     postinstall_cmds='base_file=`basename \${file}`~
10541       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10542       dldir=$destdir/`dirname \$dlpath`~
10543       test -d \$dldir || mkdir -p \$dldir~
10544       $install_prog $dir/$dlname \$dldir/$dlname~
10545       chmod a+x \$dldir/$dlname~
10546       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10547         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10548       fi'
10549     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10550       dlpath=$dir/\$dldll~
10551        $RM \$dlpath'
10552     shlibpath_overrides_runpath=yes
10553
10554     case $host_os in
10555     cygwin*)
10556       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10557       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10558
10559       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10560       ;;
10561     mingw* | cegcc*)
10562       # MinGW DLLs use traditional 'lib' prefix
10563       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10564       ;;
10565     pw32*)
10566       # pw32 DLLs use 'pw' prefix rather than 'lib'
10567       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10568       ;;
10569     esac
10570     ;;
10571
10572   *)
10573     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10574     ;;
10575   esac
10576   dynamic_linker='Win32 ld.exe'
10577   # FIXME: first we should search . and the directory the executable is in
10578   shlibpath_var=PATH
10579   ;;
10580
10581 darwin* | rhapsody*)
10582   dynamic_linker="$host_os dyld"
10583   version_type=darwin
10584   need_lib_prefix=no
10585   need_version=no
10586   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10587   soname_spec='${libname}${release}${major}$shared_ext'
10588   shlibpath_overrides_runpath=yes
10589   shlibpath_var=DYLD_LIBRARY_PATH
10590   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10591
10592   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10593   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10594   ;;
10595
10596 dgux*)
10597   version_type=linux
10598   need_lib_prefix=no
10599   need_version=no
10600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10601   soname_spec='${libname}${release}${shared_ext}$major'
10602   shlibpath_var=LD_LIBRARY_PATH
10603   ;;
10604
10605 freebsd* | dragonfly*)
10606   # DragonFly does not have aout.  When/if they implement a new
10607   # versioning mechanism, adjust this.
10608   if test -x /usr/bin/objformat; then
10609     objformat=`/usr/bin/objformat`
10610   else
10611     case $host_os in
10612     freebsd[23].*) objformat=aout ;;
10613     *) objformat=elf ;;
10614     esac
10615   fi
10616   version_type=freebsd-$objformat
10617   case $version_type in
10618     freebsd-elf*)
10619       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10620       need_version=no
10621       need_lib_prefix=no
10622       ;;
10623     freebsd-*)
10624       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10625       need_version=yes
10626       ;;
10627   esac
10628   shlibpath_var=LD_LIBRARY_PATH
10629   case $host_os in
10630   freebsd2.*)
10631     shlibpath_overrides_runpath=yes
10632     ;;
10633   freebsd3.[01]* | freebsdelf3.[01]*)
10634     shlibpath_overrides_runpath=yes
10635     hardcode_into_libs=yes
10636     ;;
10637   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10638   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10639     shlibpath_overrides_runpath=no
10640     hardcode_into_libs=yes
10641     ;;
10642   *) # from 4.6 on, and DragonFly
10643     shlibpath_overrides_runpath=yes
10644     hardcode_into_libs=yes
10645     ;;
10646   esac
10647   ;;
10648
10649 haiku*)
10650   version_type=linux
10651   need_lib_prefix=no
10652   need_version=no
10653   dynamic_linker="$host_os runtime_loader"
10654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10655   soname_spec='${libname}${release}${shared_ext}$major'
10656   shlibpath_var=LIBRARY_PATH
10657   shlibpath_overrides_runpath=yes
10658   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10659   hardcode_into_libs=yes
10660   ;;
10661
10662 hpux9* | hpux10* | hpux11*)
10663   # Give a soname corresponding to the major version so that dld.sl refuses to
10664   # link against other versions.
10665   version_type=sunos
10666   need_lib_prefix=no
10667   need_version=no
10668   case $host_cpu in
10669   ia64*)
10670     shrext_cmds='.so'
10671     hardcode_into_libs=yes
10672     dynamic_linker="$host_os dld.so"
10673     shlibpath_var=LD_LIBRARY_PATH
10674     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10675     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10676     soname_spec='${libname}${release}${shared_ext}$major'
10677     if test "X$HPUX_IA64_MODE" = X32; then
10678       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10679     else
10680       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10681     fi
10682     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10683     ;;
10684   hppa*64*)
10685     shrext_cmds='.sl'
10686     hardcode_into_libs=yes
10687     dynamic_linker="$host_os dld.sl"
10688     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10689     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10690     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10691     soname_spec='${libname}${release}${shared_ext}$major'
10692     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10693     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10694     ;;
10695   *)
10696     shrext_cmds='.sl'
10697     dynamic_linker="$host_os dld.sl"
10698     shlibpath_var=SHLIB_PATH
10699     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10700     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701     soname_spec='${libname}${release}${shared_ext}$major'
10702     ;;
10703   esac
10704   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10705   postinstall_cmds='chmod 555 $lib'
10706   # or fails outright, so override atomically:
10707   install_override_mode=555
10708   ;;
10709
10710 interix[3-9]*)
10711   version_type=linux
10712   need_lib_prefix=no
10713   need_version=no
10714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10715   soname_spec='${libname}${release}${shared_ext}$major'
10716   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10717   shlibpath_var=LD_LIBRARY_PATH
10718   shlibpath_overrides_runpath=no
10719   hardcode_into_libs=yes
10720   ;;
10721
10722 irix5* | irix6* | nonstopux*)
10723   case $host_os in
10724     nonstopux*) version_type=nonstopux ;;
10725     *)
10726         if test "$lt_cv_prog_gnu_ld" = yes; then
10727                 version_type=linux
10728         else
10729                 version_type=irix
10730         fi ;;
10731   esac
10732   need_lib_prefix=no
10733   need_version=no
10734   soname_spec='${libname}${release}${shared_ext}$major'
10735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10736   case $host_os in
10737   irix5* | nonstopux*)
10738     libsuff= shlibsuff=
10739     ;;
10740   *)
10741     case $LD in # libtool.m4 will add one of these switches to LD
10742     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10743       libsuff= shlibsuff= libmagic=32-bit;;
10744     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10745       libsuff=32 shlibsuff=N32 libmagic=N32;;
10746     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10747       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10748     *) libsuff= shlibsuff= libmagic=never-match;;
10749     esac
10750     ;;
10751   esac
10752   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10753   shlibpath_overrides_runpath=no
10754   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10755   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10756   hardcode_into_libs=yes
10757   ;;
10758
10759 # No shared lib support for Linux oldld, aout, or coff.
10760 linux*oldld* | linux*aout* | linux*coff*)
10761   dynamic_linker=no
10762   ;;
10763
10764 # This must be Linux ELF.
10765 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10766   version_type=linux
10767   need_lib_prefix=no
10768   need_version=no
10769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10770   soname_spec='${libname}${release}${shared_ext}$major'
10771   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10772   shlibpath_var=LD_LIBRARY_PATH
10773   shlibpath_overrides_runpath=no
10774
10775   # Some binutils ld are patched to set DT_RUNPATH
10776   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10777   $as_echo_n "(cached) " >&6
10778 else
10779   lt_cv_shlibpath_overrides_runpath=no
10780     save_LDFLAGS=$LDFLAGS
10781     save_libdir=$libdir
10782     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10783          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10784     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10785 /* end confdefs.h.  */
10786
10787 int
10788 main ()
10789 {
10790
10791   ;
10792   return 0;
10793 }
10794 _ACEOF
10795 if ac_fn_c_try_link "$LINENO"; then :
10796   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10797   lt_cv_shlibpath_overrides_runpath=yes
10798 fi
10799 fi
10800 rm -f core conftest.err conftest.$ac_objext \
10801     conftest$ac_exeext conftest.$ac_ext
10802     LDFLAGS=$save_LDFLAGS
10803     libdir=$save_libdir
10804
10805 fi
10806
10807   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10808
10809   # This implies no fast_install, which is unacceptable.
10810   # Some rework will be needed to allow for fast_install
10811   # before this can be enabled.
10812   hardcode_into_libs=yes
10813
10814   # Append ld.so.conf contents to the search path
10815   if test -f /etc/ld.so.conf; then
10816     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' ' '`
10817     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10818   fi
10819
10820   # We used to test for /lib/ld.so.1 and disable shared libraries on
10821   # powerpc, because MkLinux only supported shared libraries with the
10822   # GNU dynamic linker.  Since this was broken with cross compilers,
10823   # most powerpc-linux boxes support dynamic linking these days and
10824   # people can always --disable-shared, the test was removed, and we
10825   # assume the GNU/Linux dynamic linker is in use.
10826   dynamic_linker='GNU/Linux ld.so'
10827   ;;
10828
10829 netbsd*)
10830   version_type=sunos
10831   need_lib_prefix=no
10832   need_version=no
10833   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10834     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10835     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10836     dynamic_linker='NetBSD (a.out) ld.so'
10837   else
10838     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10839     soname_spec='${libname}${release}${shared_ext}$major'
10840     dynamic_linker='NetBSD ld.elf_so'
10841   fi
10842   shlibpath_var=LD_LIBRARY_PATH
10843   shlibpath_overrides_runpath=yes
10844   hardcode_into_libs=yes
10845   ;;
10846
10847 newsos6)
10848   version_type=linux
10849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10850   shlibpath_var=LD_LIBRARY_PATH
10851   shlibpath_overrides_runpath=yes
10852   ;;
10853
10854 *nto* | *qnx*)
10855   version_type=qnx
10856   need_lib_prefix=no
10857   need_version=no
10858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10859   soname_spec='${libname}${release}${shared_ext}$major'
10860   shlibpath_var=LD_LIBRARY_PATH
10861   shlibpath_overrides_runpath=no
10862   hardcode_into_libs=yes
10863   dynamic_linker='ldqnx.so'
10864   ;;
10865
10866 openbsd*)
10867   version_type=sunos
10868   sys_lib_dlsearch_path_spec="/usr/lib"
10869   need_lib_prefix=no
10870   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10871   case $host_os in
10872     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10873     *)                          need_version=no  ;;
10874   esac
10875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10876   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10877   shlibpath_var=LD_LIBRARY_PATH
10878   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10879     case $host_os in
10880       openbsd2.[89] | openbsd2.[89].*)
10881         shlibpath_overrides_runpath=no
10882         ;;
10883       *)
10884         shlibpath_overrides_runpath=yes
10885         ;;
10886       esac
10887   else
10888     shlibpath_overrides_runpath=yes
10889   fi
10890   ;;
10891
10892 os2*)
10893   libname_spec='$name'
10894   shrext_cmds=".dll"
10895   need_lib_prefix=no
10896   library_names_spec='$libname${shared_ext} $libname.a'
10897   dynamic_linker='OS/2 ld.exe'
10898   shlibpath_var=LIBPATH
10899   ;;
10900
10901 osf3* | osf4* | osf5*)
10902   version_type=osf
10903   need_lib_prefix=no
10904   need_version=no
10905   soname_spec='${libname}${release}${shared_ext}$major'
10906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10907   shlibpath_var=LD_LIBRARY_PATH
10908   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10909   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10910   ;;
10911
10912 rdos*)
10913   dynamic_linker=no
10914   ;;
10915
10916 solaris*)
10917   version_type=linux
10918   need_lib_prefix=no
10919   need_version=no
10920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10921   soname_spec='${libname}${release}${shared_ext}$major'
10922   shlibpath_var=LD_LIBRARY_PATH
10923   shlibpath_overrides_runpath=yes
10924   hardcode_into_libs=yes
10925   # ldd complains unless libraries are executable
10926   postinstall_cmds='chmod +x $lib'
10927   ;;
10928
10929 sunos4*)
10930   version_type=sunos
10931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10932   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10933   shlibpath_var=LD_LIBRARY_PATH
10934   shlibpath_overrides_runpath=yes
10935   if test "$with_gnu_ld" = yes; then
10936     need_lib_prefix=no
10937   fi
10938   need_version=yes
10939   ;;
10940
10941 sysv4 | sysv4.3*)
10942   version_type=linux
10943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10944   soname_spec='${libname}${release}${shared_ext}$major'
10945   shlibpath_var=LD_LIBRARY_PATH
10946   case $host_vendor in
10947     sni)
10948       shlibpath_overrides_runpath=no
10949       need_lib_prefix=no
10950       runpath_var=LD_RUN_PATH
10951       ;;
10952     siemens)
10953       need_lib_prefix=no
10954       ;;
10955     motorola)
10956       need_lib_prefix=no
10957       need_version=no
10958       shlibpath_overrides_runpath=no
10959       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10960       ;;
10961   esac
10962   ;;
10963
10964 sysv4*MP*)
10965   if test -d /usr/nec ;then
10966     version_type=linux
10967     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10968     soname_spec='$libname${shared_ext}.$major'
10969     shlibpath_var=LD_LIBRARY_PATH
10970   fi
10971   ;;
10972
10973 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10974   version_type=freebsd-elf
10975   need_lib_prefix=no
10976   need_version=no
10977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10978   soname_spec='${libname}${release}${shared_ext}$major'
10979   shlibpath_var=LD_LIBRARY_PATH
10980   shlibpath_overrides_runpath=yes
10981   hardcode_into_libs=yes
10982   if test "$with_gnu_ld" = yes; then
10983     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10984   else
10985     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10986     case $host_os in
10987       sco3.2v5*)
10988         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10989         ;;
10990     esac
10991   fi
10992   sys_lib_dlsearch_path_spec='/usr/lib'
10993   ;;
10994
10995 tpf*)
10996   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10997   version_type=linux
10998   need_lib_prefix=no
10999   need_version=no
11000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11001   shlibpath_var=LD_LIBRARY_PATH
11002   shlibpath_overrides_runpath=no
11003   hardcode_into_libs=yes
11004   ;;
11005
11006 uts4*)
11007   version_type=linux
11008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11009   soname_spec='${libname}${release}${shared_ext}$major'
11010   shlibpath_var=LD_LIBRARY_PATH
11011   ;;
11012
11013 *)
11014   dynamic_linker=no
11015   ;;
11016 esac
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11018 $as_echo "$dynamic_linker" >&6; }
11019 test "$dynamic_linker" = no && can_build_shared=no
11020
11021 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11022 if test "$GCC" = yes; then
11023   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11024 fi
11025
11026 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11027   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11028 fi
11029 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11030   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11031 fi
11032
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11125 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11126 hardcode_action=
11127 if test -n "$hardcode_libdir_flag_spec" ||
11128    test -n "$runpath_var" ||
11129    test "X$hardcode_automatic" = "Xyes" ; then
11130
11131   # We can hardcode non-existent directories.
11132   if test "$hardcode_direct" != no &&
11133      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11134      # have to relink, otherwise we might link with an installed library
11135      # when we should be linking with a yet-to-be-installed one
11136      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11137      test "$hardcode_minus_L" != no; then
11138     # Linking always hardcodes the temporary library directory.
11139     hardcode_action=relink
11140   else
11141     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11142     hardcode_action=immediate
11143   fi
11144 else
11145   # We cannot hardcode anything, or else we can only hardcode existing
11146   # directories.
11147   hardcode_action=unsupported
11148 fi
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11150 $as_echo "$hardcode_action" >&6; }
11151
11152 if test "$hardcode_action" = relink ||
11153    test "$inherit_rpath" = yes; then
11154   # Fast installation is not supported
11155   enable_fast_install=no
11156 elif test "$shlibpath_overrides_runpath" = yes ||
11157      test "$enable_shared" = no; then
11158   # Fast installation is not necessary
11159   enable_fast_install=needless
11160 fi
11161
11162
11163
11164
11165
11166
11167   if test "x$enable_dlopen" != xyes; then
11168   enable_dlopen=unknown
11169   enable_dlopen_self=unknown
11170   enable_dlopen_self_static=unknown
11171 else
11172   lt_cv_dlopen=no
11173   lt_cv_dlopen_libs=
11174
11175   case $host_os in
11176   beos*)
11177     lt_cv_dlopen="load_add_on"
11178     lt_cv_dlopen_libs=
11179     lt_cv_dlopen_self=yes
11180     ;;
11181
11182   mingw* | pw32* | cegcc*)
11183     lt_cv_dlopen="LoadLibrary"
11184     lt_cv_dlopen_libs=
11185     ;;
11186
11187   cygwin*)
11188     lt_cv_dlopen="dlopen"
11189     lt_cv_dlopen_libs=
11190     ;;
11191
11192   darwin*)
11193   # if libdl is installed we need to link against it
11194     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11195 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11196 if ${ac_cv_lib_dl_dlopen+:} false; then :
11197   $as_echo_n "(cached) " >&6
11198 else
11199   ac_check_lib_save_LIBS=$LIBS
11200 LIBS="-ldl  $LIBS"
11201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11202 /* end confdefs.h.  */
11203
11204 /* Override any GCC internal prototype to avoid an error.
11205    Use char because int might match the return type of a GCC
11206    builtin and then its argument prototype would still apply.  */
11207 #ifdef __cplusplus
11208 extern "C"
11209 #endif
11210 char dlopen ();
11211 int
11212 main ()
11213 {
11214 return dlopen ();
11215   ;
11216   return 0;
11217 }
11218 _ACEOF
11219 if ac_fn_c_try_link "$LINENO"; then :
11220   ac_cv_lib_dl_dlopen=yes
11221 else
11222   ac_cv_lib_dl_dlopen=no
11223 fi
11224 rm -f core conftest.err conftest.$ac_objext \
11225     conftest$ac_exeext conftest.$ac_ext
11226 LIBS=$ac_check_lib_save_LIBS
11227 fi
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11229 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11230 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11231   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11232 else
11233
11234     lt_cv_dlopen="dyld"
11235     lt_cv_dlopen_libs=
11236     lt_cv_dlopen_self=yes
11237
11238 fi
11239
11240     ;;
11241
11242   *)
11243     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11244 if test "x$ac_cv_func_shl_load" = xyes; then :
11245   lt_cv_dlopen="shl_load"
11246 else
11247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11248 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11249 if ${ac_cv_lib_dld_shl_load+:} false; then :
11250   $as_echo_n "(cached) " >&6
11251 else
11252   ac_check_lib_save_LIBS=$LIBS
11253 LIBS="-ldld  $LIBS"
11254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11255 /* end confdefs.h.  */
11256
11257 /* Override any GCC internal prototype to avoid an error.
11258    Use char because int might match the return type of a GCC
11259    builtin and then its argument prototype would still apply.  */
11260 #ifdef __cplusplus
11261 extern "C"
11262 #endif
11263 char shl_load ();
11264 int
11265 main ()
11266 {
11267 return shl_load ();
11268   ;
11269   return 0;
11270 }
11271 _ACEOF
11272 if ac_fn_c_try_link "$LINENO"; then :
11273   ac_cv_lib_dld_shl_load=yes
11274 else
11275   ac_cv_lib_dld_shl_load=no
11276 fi
11277 rm -f core conftest.err conftest.$ac_objext \
11278     conftest$ac_exeext conftest.$ac_ext
11279 LIBS=$ac_check_lib_save_LIBS
11280 fi
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11282 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11283 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11284   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11285 else
11286   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11287 if test "x$ac_cv_func_dlopen" = xyes; then :
11288   lt_cv_dlopen="dlopen"
11289 else
11290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11291 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11292 if ${ac_cv_lib_dl_dlopen+:} false; then :
11293   $as_echo_n "(cached) " >&6
11294 else
11295   ac_check_lib_save_LIBS=$LIBS
11296 LIBS="-ldl  $LIBS"
11297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298 /* end confdefs.h.  */
11299
11300 /* Override any GCC internal prototype to avoid an error.
11301    Use char because int might match the return type of a GCC
11302    builtin and then its argument prototype would still apply.  */
11303 #ifdef __cplusplus
11304 extern "C"
11305 #endif
11306 char dlopen ();
11307 int
11308 main ()
11309 {
11310 return dlopen ();
11311   ;
11312   return 0;
11313 }
11314 _ACEOF
11315 if ac_fn_c_try_link "$LINENO"; then :
11316   ac_cv_lib_dl_dlopen=yes
11317 else
11318   ac_cv_lib_dl_dlopen=no
11319 fi
11320 rm -f core conftest.err conftest.$ac_objext \
11321     conftest$ac_exeext conftest.$ac_ext
11322 LIBS=$ac_check_lib_save_LIBS
11323 fi
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11325 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11326 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11327   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11328 else
11329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11330 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11331 if ${ac_cv_lib_svld_dlopen+:} false; then :
11332   $as_echo_n "(cached) " >&6
11333 else
11334   ac_check_lib_save_LIBS=$LIBS
11335 LIBS="-lsvld  $LIBS"
11336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11337 /* end confdefs.h.  */
11338
11339 /* Override any GCC internal prototype to avoid an error.
11340    Use char because int might match the return type of a GCC
11341    builtin and then its argument prototype would still apply.  */
11342 #ifdef __cplusplus
11343 extern "C"
11344 #endif
11345 char dlopen ();
11346 int
11347 main ()
11348 {
11349 return dlopen ();
11350   ;
11351   return 0;
11352 }
11353 _ACEOF
11354 if ac_fn_c_try_link "$LINENO"; then :
11355   ac_cv_lib_svld_dlopen=yes
11356 else
11357   ac_cv_lib_svld_dlopen=no
11358 fi
11359 rm -f core conftest.err conftest.$ac_objext \
11360     conftest$ac_exeext conftest.$ac_ext
11361 LIBS=$ac_check_lib_save_LIBS
11362 fi
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11364 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11365 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11366   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11367 else
11368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11369 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11370 if ${ac_cv_lib_dld_dld_link+:} false; then :
11371   $as_echo_n "(cached) " >&6
11372 else
11373   ac_check_lib_save_LIBS=$LIBS
11374 LIBS="-ldld  $LIBS"
11375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11376 /* end confdefs.h.  */
11377
11378 /* Override any GCC internal prototype to avoid an error.
11379    Use char because int might match the return type of a GCC
11380    builtin and then its argument prototype would still apply.  */
11381 #ifdef __cplusplus
11382 extern "C"
11383 #endif
11384 char dld_link ();
11385 int
11386 main ()
11387 {
11388 return dld_link ();
11389   ;
11390   return 0;
11391 }
11392 _ACEOF
11393 if ac_fn_c_try_link "$LINENO"; then :
11394   ac_cv_lib_dld_dld_link=yes
11395 else
11396   ac_cv_lib_dld_dld_link=no
11397 fi
11398 rm -f core conftest.err conftest.$ac_objext \
11399     conftest$ac_exeext conftest.$ac_ext
11400 LIBS=$ac_check_lib_save_LIBS
11401 fi
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11403 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11404 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11405   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11406 fi
11407
11408
11409 fi
11410
11411
11412 fi
11413
11414
11415 fi
11416
11417
11418 fi
11419
11420
11421 fi
11422
11423     ;;
11424   esac
11425
11426   if test "x$lt_cv_dlopen" != xno; then
11427     enable_dlopen=yes
11428   else
11429     enable_dlopen=no
11430   fi
11431
11432   case $lt_cv_dlopen in
11433   dlopen)
11434     save_CPPFLAGS="$CPPFLAGS"
11435     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11436
11437     save_LDFLAGS="$LDFLAGS"
11438     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11439
11440     save_LIBS="$LIBS"
11441     LIBS="$lt_cv_dlopen_libs $LIBS"
11442
11443     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11444 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11445 if ${lt_cv_dlopen_self+:} false; then :
11446   $as_echo_n "(cached) " >&6
11447 else
11448           if test "$cross_compiling" = yes; then :
11449   lt_cv_dlopen_self=cross
11450 else
11451   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11452   lt_status=$lt_dlunknown
11453   cat > conftest.$ac_ext <<_LT_EOF
11454 #line 11454 "configure"
11455 #include "confdefs.h"
11456
11457 #if HAVE_DLFCN_H
11458 #include <dlfcn.h>
11459 #endif
11460
11461 #include <stdio.h>
11462
11463 #ifdef RTLD_GLOBAL
11464 #  define LT_DLGLOBAL           RTLD_GLOBAL
11465 #else
11466 #  ifdef DL_GLOBAL
11467 #    define LT_DLGLOBAL         DL_GLOBAL
11468 #  else
11469 #    define LT_DLGLOBAL         0
11470 #  endif
11471 #endif
11472
11473 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11474    find out it does not work in some platform. */
11475 #ifndef LT_DLLAZY_OR_NOW
11476 #  ifdef RTLD_LAZY
11477 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11478 #  else
11479 #    ifdef DL_LAZY
11480 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11481 #    else
11482 #      ifdef RTLD_NOW
11483 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11484 #      else
11485 #        ifdef DL_NOW
11486 #          define LT_DLLAZY_OR_NOW      DL_NOW
11487 #        else
11488 #          define LT_DLLAZY_OR_NOW      0
11489 #        endif
11490 #      endif
11491 #    endif
11492 #  endif
11493 #endif
11494
11495 /* When -fvisbility=hidden is used, assume the code has been annotated
11496    correspondingly for the symbols needed.  */
11497 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11498 void fnord () __attribute__((visibility("default")));
11499 #endif
11500
11501 void fnord () { int i=42; }
11502 int main ()
11503 {
11504   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11505   int status = $lt_dlunknown;
11506
11507   if (self)
11508     {
11509       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11510       else
11511         {
11512           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11513           else puts (dlerror ());
11514         }
11515       /* dlclose (self); */
11516     }
11517   else
11518     puts (dlerror ());
11519
11520   return status;
11521 }
11522 _LT_EOF
11523   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11524   (eval $ac_link) 2>&5
11525   ac_status=$?
11526   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11527   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11528     (./conftest; exit; ) >&5 2>/dev/null
11529     lt_status=$?
11530     case x$lt_status in
11531       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11532       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11533       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11534     esac
11535   else :
11536     # compilation failed
11537     lt_cv_dlopen_self=no
11538   fi
11539 fi
11540 rm -fr conftest*
11541
11542
11543 fi
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11545 $as_echo "$lt_cv_dlopen_self" >&6; }
11546
11547     if test "x$lt_cv_dlopen_self" = xyes; then
11548       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11549       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11550 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11551 if ${lt_cv_dlopen_self_static+:} false; then :
11552   $as_echo_n "(cached) " >&6
11553 else
11554           if test "$cross_compiling" = yes; then :
11555   lt_cv_dlopen_self_static=cross
11556 else
11557   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11558   lt_status=$lt_dlunknown
11559   cat > conftest.$ac_ext <<_LT_EOF
11560 #line 11560 "configure"
11561 #include "confdefs.h"
11562
11563 #if HAVE_DLFCN_H
11564 #include <dlfcn.h>
11565 #endif
11566
11567 #include <stdio.h>
11568
11569 #ifdef RTLD_GLOBAL
11570 #  define LT_DLGLOBAL           RTLD_GLOBAL
11571 #else
11572 #  ifdef DL_GLOBAL
11573 #    define LT_DLGLOBAL         DL_GLOBAL
11574 #  else
11575 #    define LT_DLGLOBAL         0
11576 #  endif
11577 #endif
11578
11579 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11580    find out it does not work in some platform. */
11581 #ifndef LT_DLLAZY_OR_NOW
11582 #  ifdef RTLD_LAZY
11583 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11584 #  else
11585 #    ifdef DL_LAZY
11586 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11587 #    else
11588 #      ifdef RTLD_NOW
11589 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11590 #      else
11591 #        ifdef DL_NOW
11592 #          define LT_DLLAZY_OR_NOW      DL_NOW
11593 #        else
11594 #          define LT_DLLAZY_OR_NOW      0
11595 #        endif
11596 #      endif
11597 #    endif
11598 #  endif
11599 #endif
11600
11601 /* When -fvisbility=hidden is used, assume the code has been annotated
11602    correspondingly for the symbols needed.  */
11603 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11604 void fnord () __attribute__((visibility("default")));
11605 #endif
11606
11607 void fnord () { int i=42; }
11608 int main ()
11609 {
11610   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11611   int status = $lt_dlunknown;
11612
11613   if (self)
11614     {
11615       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11616       else
11617         {
11618           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11619           else puts (dlerror ());
11620         }
11621       /* dlclose (self); */
11622     }
11623   else
11624     puts (dlerror ());
11625
11626   return status;
11627 }
11628 _LT_EOF
11629   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11630   (eval $ac_link) 2>&5
11631   ac_status=$?
11632   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11633   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11634     (./conftest; exit; ) >&5 2>/dev/null
11635     lt_status=$?
11636     case x$lt_status in
11637       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11638       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11639       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11640     esac
11641   else :
11642     # compilation failed
11643     lt_cv_dlopen_self_static=no
11644   fi
11645 fi
11646 rm -fr conftest*
11647
11648
11649 fi
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11651 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11652     fi
11653
11654     CPPFLAGS="$save_CPPFLAGS"
11655     LDFLAGS="$save_LDFLAGS"
11656     LIBS="$save_LIBS"
11657     ;;
11658   esac
11659
11660   case $lt_cv_dlopen_self in
11661   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11662   *) enable_dlopen_self=unknown ;;
11663   esac
11664
11665   case $lt_cv_dlopen_self_static in
11666   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11667   *) enable_dlopen_self_static=unknown ;;
11668   esac
11669 fi
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687 striplib=
11688 old_striplib=
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11690 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11691 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11692   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11693   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11695 $as_echo "yes" >&6; }
11696 else
11697 # FIXME - insert some real tests, host_os isn't really good enough
11698   case $host_os in
11699   darwin*)
11700     if test -n "$STRIP" ; then
11701       striplib="$STRIP -x"
11702       old_striplib="$STRIP -S"
11703       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11704 $as_echo "yes" >&6; }
11705     else
11706       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11707 $as_echo "no" >&6; }
11708     fi
11709     ;;
11710   *)
11711     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712 $as_echo "no" >&6; }
11713     ;;
11714   esac
11715 fi
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728   # Report which library types will actually be built
11729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11730 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11732 $as_echo "$can_build_shared" >&6; }
11733
11734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11735 $as_echo_n "checking whether to build shared libraries... " >&6; }
11736   test "$can_build_shared" = "no" && enable_shared=no
11737
11738   # On AIX, shared libraries and static libraries use the same namespace, and
11739   # are all built from PIC.
11740   case $host_os in
11741   aix3*)
11742     test "$enable_shared" = yes && enable_static=no
11743     if test -n "$RANLIB"; then
11744       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11745       postinstall_cmds='$RANLIB $lib'
11746     fi
11747     ;;
11748
11749   aix[4-9]*)
11750     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11751       test "$enable_shared" = yes && enable_static=no
11752     fi
11753     ;;
11754   esac
11755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11756 $as_echo "$enable_shared" >&6; }
11757
11758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11759 $as_echo_n "checking whether to build static libraries... " >&6; }
11760   # Make sure either enable_shared or enable_static is yes.
11761   test "$enable_shared" = yes || enable_static=yes
11762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11763 $as_echo "$enable_static" >&6; }
11764
11765
11766
11767
11768 fi
11769 ac_ext=c
11770 ac_cpp='$CPP $CPPFLAGS'
11771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11774
11775 CC="$lt_save_CC"
11776
11777       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11778     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11779     (test "X$CXX" != "Xg++"))) ; then
11780   ac_ext=cpp
11781 ac_cpp='$CXXCPP $CPPFLAGS'
11782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11786 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11787 if test -z "$CXXCPP"; then
11788   if ${ac_cv_prog_CXXCPP+:} false; then :
11789   $as_echo_n "(cached) " >&6
11790 else
11791       # Double quotes because CXXCPP needs to be expanded
11792     for CXXCPP in "$CXX -E" "/lib/cpp"
11793     do
11794       ac_preproc_ok=false
11795 for ac_cxx_preproc_warn_flag in '' yes
11796 do
11797   # Use a header file that comes with gcc, so configuring glibc
11798   # with a fresh cross-compiler works.
11799   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11800   # <limits.h> exists even on freestanding compilers.
11801   # On the NeXT, cc -E runs the code through the compiler's parser,
11802   # not just through cpp. "Syntax error" is here to catch this case.
11803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11804 /* end confdefs.h.  */
11805 #ifdef __STDC__
11806 # include <limits.h>
11807 #else
11808 # include <assert.h>
11809 #endif
11810                      Syntax error
11811 _ACEOF
11812 if ac_fn_cxx_try_cpp "$LINENO"; then :
11813
11814 else
11815   # Broken: fails on valid input.
11816 continue
11817 fi
11818 rm -f conftest.err conftest.i conftest.$ac_ext
11819
11820   # OK, works on sane cases.  Now check whether nonexistent headers
11821   # can be detected and how.
11822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11823 /* end confdefs.h.  */
11824 #include <ac_nonexistent.h>
11825 _ACEOF
11826 if ac_fn_cxx_try_cpp "$LINENO"; then :
11827   # Broken: success on invalid input.
11828 continue
11829 else
11830   # Passes both tests.
11831 ac_preproc_ok=:
11832 break
11833 fi
11834 rm -f conftest.err conftest.i conftest.$ac_ext
11835
11836 done
11837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11838 rm -f conftest.i conftest.err conftest.$ac_ext
11839 if $ac_preproc_ok; then :
11840   break
11841 fi
11842
11843     done
11844     ac_cv_prog_CXXCPP=$CXXCPP
11845
11846 fi
11847   CXXCPP=$ac_cv_prog_CXXCPP
11848 else
11849   ac_cv_prog_CXXCPP=$CXXCPP
11850 fi
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11852 $as_echo "$CXXCPP" >&6; }
11853 ac_preproc_ok=false
11854 for ac_cxx_preproc_warn_flag in '' yes
11855 do
11856   # Use a header file that comes with gcc, so configuring glibc
11857   # with a fresh cross-compiler works.
11858   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11859   # <limits.h> exists even on freestanding compilers.
11860   # On the NeXT, cc -E runs the code through the compiler's parser,
11861   # not just through cpp. "Syntax error" is here to catch this case.
11862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11863 /* end confdefs.h.  */
11864 #ifdef __STDC__
11865 # include <limits.h>
11866 #else
11867 # include <assert.h>
11868 #endif
11869                      Syntax error
11870 _ACEOF
11871 if ac_fn_cxx_try_cpp "$LINENO"; then :
11872
11873 else
11874   # Broken: fails on valid input.
11875 continue
11876 fi
11877 rm -f conftest.err conftest.i conftest.$ac_ext
11878
11879   # OK, works on sane cases.  Now check whether nonexistent headers
11880   # can be detected and how.
11881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11882 /* end confdefs.h.  */
11883 #include <ac_nonexistent.h>
11884 _ACEOF
11885 if ac_fn_cxx_try_cpp "$LINENO"; then :
11886   # Broken: success on invalid input.
11887 continue
11888 else
11889   # Passes both tests.
11890 ac_preproc_ok=:
11891 break
11892 fi
11893 rm -f conftest.err conftest.i conftest.$ac_ext
11894
11895 done
11896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11897 rm -f conftest.i conftest.err conftest.$ac_ext
11898 if $ac_preproc_ok; then :
11899
11900 else
11901   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11903 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11904 See \`config.log' for more details" "$LINENO" 5; }
11905 fi
11906
11907 ac_ext=c
11908 ac_cpp='$CPP $CPPFLAGS'
11909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11912
11913 else
11914   _lt_caught_CXX_error=yes
11915 fi
11916
11917 ac_ext=cpp
11918 ac_cpp='$CXXCPP $CPPFLAGS'
11919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11922
11923 archive_cmds_need_lc_CXX=no
11924 allow_undefined_flag_CXX=
11925 always_export_symbols_CXX=no
11926 archive_expsym_cmds_CXX=
11927 compiler_needs_object_CXX=no
11928 export_dynamic_flag_spec_CXX=
11929 hardcode_direct_CXX=no
11930 hardcode_direct_absolute_CXX=no
11931 hardcode_libdir_flag_spec_CXX=
11932 hardcode_libdir_flag_spec_ld_CXX=
11933 hardcode_libdir_separator_CXX=
11934 hardcode_minus_L_CXX=no
11935 hardcode_shlibpath_var_CXX=unsupported
11936 hardcode_automatic_CXX=no
11937 inherit_rpath_CXX=no
11938 module_cmds_CXX=
11939 module_expsym_cmds_CXX=
11940 link_all_deplibs_CXX=unknown
11941 old_archive_cmds_CXX=$old_archive_cmds
11942 reload_flag_CXX=$reload_flag
11943 reload_cmds_CXX=$reload_cmds
11944 no_undefined_flag_CXX=
11945 whole_archive_flag_spec_CXX=
11946 enable_shared_with_static_runtimes_CXX=no
11947
11948 # Source file extension for C++ test sources.
11949 ac_ext=cpp
11950
11951 # Object file extension for compiled C++ test sources.
11952 objext=o
11953 objext_CXX=$objext
11954
11955 # No sense in running all these tests if we already determined that
11956 # the CXX compiler isn't working.  Some variables (like enable_shared)
11957 # are currently assumed to apply to all compilers on this platform,
11958 # and will be corrupted by setting them based on a non-working compiler.
11959 if test "$_lt_caught_CXX_error" != yes; then
11960   # Code to be used in simple compile tests
11961   lt_simple_compile_test_code="int some_variable = 0;"
11962
11963   # Code to be used in simple link tests
11964   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11965
11966   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11967
11968
11969
11970
11971
11972
11973 # If no C compiler was specified, use CC.
11974 LTCC=${LTCC-"$CC"}
11975
11976 # If no C compiler flags were specified, use CFLAGS.
11977 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11978
11979 # Allow CC to be a program name with arguments.
11980 compiler=$CC
11981
11982
11983   # save warnings/boilerplate of simple test code
11984   ac_outfile=conftest.$ac_objext
11985 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11986 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11987 _lt_compiler_boilerplate=`cat conftest.err`
11988 $RM conftest*
11989
11990   ac_outfile=conftest.$ac_objext
11991 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11992 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11993 _lt_linker_boilerplate=`cat conftest.err`
11994 $RM -r conftest*
11995
11996
11997   # Allow CC to be a program name with arguments.
11998   lt_save_CC=$CC
11999   lt_save_LD=$LD
12000   lt_save_GCC=$GCC
12001   GCC=$GXX
12002   lt_save_with_gnu_ld=$with_gnu_ld
12003   lt_save_path_LD=$lt_cv_path_LD
12004   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12005     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12006   else
12007     $as_unset lt_cv_prog_gnu_ld
12008   fi
12009   if test -n "${lt_cv_path_LDCXX+set}"; then
12010     lt_cv_path_LD=$lt_cv_path_LDCXX
12011   else
12012     $as_unset lt_cv_path_LD
12013   fi
12014   test -z "${LDCXX+set}" || LD=$LDCXX
12015   CC=${CXX-"c++"}
12016   compiler=$CC
12017   compiler_CXX=$CC
12018   for cc_temp in $compiler""; do
12019   case $cc_temp in
12020     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12021     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12022     \-*) ;;
12023     *) break;;
12024   esac
12025 done
12026 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12027
12028
12029   if test -n "$compiler"; then
12030     # We don't want -fno-exception when compiling C++ code, so set the
12031     # no_builtin_flag separately
12032     if test "$GXX" = yes; then
12033       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12034     else
12035       lt_prog_compiler_no_builtin_flag_CXX=
12036     fi
12037
12038     if test "$GXX" = yes; then
12039       # Set up default GNU C++ configuration
12040
12041
12042
12043 # Check whether --with-gnu-ld was given.
12044 if test "${with_gnu_ld+set}" = set; then :
12045   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12046 else
12047   with_gnu_ld=no
12048 fi
12049
12050 ac_prog=ld
12051 if test "$GCC" = yes; then
12052   # Check if gcc -print-prog-name=ld gives a path.
12053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12054 $as_echo_n "checking for ld used by $CC... " >&6; }
12055   case $host in
12056   *-*-mingw*)
12057     # gcc leaves a trailing carriage return which upsets mingw
12058     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12059   *)
12060     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12061   esac
12062   case $ac_prog in
12063     # Accept absolute paths.
12064     [\\/]* | ?:[\\/]*)
12065       re_direlt='/[^/][^/]*/\.\./'
12066       # Canonicalize the pathname of ld
12067       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12068       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12069         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12070       done
12071       test -z "$LD" && LD="$ac_prog"
12072       ;;
12073   "")
12074     # If it fails, then pretend we aren't using GCC.
12075     ac_prog=ld
12076     ;;
12077   *)
12078     # If it is relative, then search for the first ld in PATH.
12079     with_gnu_ld=unknown
12080     ;;
12081   esac
12082 elif test "$with_gnu_ld" = yes; then
12083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12084 $as_echo_n "checking for GNU ld... " >&6; }
12085 else
12086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12087 $as_echo_n "checking for non-GNU ld... " >&6; }
12088 fi
12089 if ${lt_cv_path_LD+:} false; then :
12090   $as_echo_n "(cached) " >&6
12091 else
12092   if test -z "$LD"; then
12093   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12094   for ac_dir in $PATH; do
12095     IFS="$lt_save_ifs"
12096     test -z "$ac_dir" && ac_dir=.
12097     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12098       lt_cv_path_LD="$ac_dir/$ac_prog"
12099       # Check to see if the program is GNU ld.  I'd rather use --version,
12100       # but apparently some variants of GNU ld only accept -v.
12101       # Break only if it was the GNU/non-GNU ld that we prefer.
12102       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12103       *GNU* | *'with BFD'*)
12104         test "$with_gnu_ld" != no && break
12105         ;;
12106       *)
12107         test "$with_gnu_ld" != yes && break
12108         ;;
12109       esac
12110     fi
12111   done
12112   IFS="$lt_save_ifs"
12113 else
12114   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12115 fi
12116 fi
12117
12118 LD="$lt_cv_path_LD"
12119 if test -n "$LD"; then
12120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12121 $as_echo "$LD" >&6; }
12122 else
12123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12124 $as_echo "no" >&6; }
12125 fi
12126 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12128 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12129 if ${lt_cv_prog_gnu_ld+:} false; then :
12130   $as_echo_n "(cached) " >&6
12131 else
12132   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12133 case `$LD -v 2>&1 </dev/null` in
12134 *GNU* | *'with BFD'*)
12135   lt_cv_prog_gnu_ld=yes
12136   ;;
12137 *)
12138   lt_cv_prog_gnu_ld=no
12139   ;;
12140 esac
12141 fi
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12143 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12144 with_gnu_ld=$lt_cv_prog_gnu_ld
12145
12146
12147
12148
12149
12150
12151
12152       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12153       # archiving commands below assume that GNU ld is being used.
12154       if test "$with_gnu_ld" = yes; then
12155         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12156         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'
12157
12158         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12159         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12160
12161         # If archive_cmds runs LD, not CC, wlarc should be empty
12162         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12163         #     investigate it a little bit more. (MM)
12164         wlarc='${wl}'
12165
12166         # ancient GNU ld didn't support --whole-archive et. al.
12167         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12168           $GREP 'no-whole-archive' > /dev/null; then
12169           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12170         else
12171           whole_archive_flag_spec_CXX=
12172         fi
12173       else
12174         with_gnu_ld=no
12175         wlarc=
12176
12177         # A generic and very simple default shared library creation
12178         # command for GNU C++ for the case where it uses the native
12179         # linker, instead of GNU ld.  If possible, this setting should
12180         # overridden to take advantage of the native linker features on
12181         # the platform it is being used on.
12182         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12183       fi
12184
12185       # Commands to make compiler produce verbose output that lists
12186       # what "hidden" libraries, object files and flags are used when
12187       # linking a shared library.
12188       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12189
12190     else
12191       GXX=no
12192       with_gnu_ld=no
12193       wlarc=
12194     fi
12195
12196     # PORTME: fill in a description of your system's C++ link characteristics
12197     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12198 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12199     ld_shlibs_CXX=yes
12200     case $host_os in
12201       aix3*)
12202         # FIXME: insert proper C++ library support
12203         ld_shlibs_CXX=no
12204         ;;
12205       aix[4-9]*)
12206         if test "$host_cpu" = ia64; then
12207           # On IA64, the linker does run time linking by default, so we don't
12208           # have to do anything special.
12209           aix_use_runtimelinking=no
12210           exp_sym_flag='-Bexport'
12211           no_entry_flag=""
12212         else
12213           aix_use_runtimelinking=no
12214
12215           # Test if we are trying to use run time linking or normal
12216           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12217           # need to do runtime linking.
12218           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12219             for ld_flag in $LDFLAGS; do
12220               case $ld_flag in
12221               *-brtl*)
12222                 aix_use_runtimelinking=yes
12223                 break
12224                 ;;
12225               esac
12226             done
12227             ;;
12228           esac
12229
12230           exp_sym_flag='-bexport'
12231           no_entry_flag='-bnoentry'
12232         fi
12233
12234         # When large executables or shared objects are built, AIX ld can
12235         # have problems creating the table of contents.  If linking a library
12236         # or program results in "error TOC overflow" add -mminimal-toc to
12237         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12238         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12239
12240         archive_cmds_CXX=''
12241         hardcode_direct_CXX=yes
12242         hardcode_direct_absolute_CXX=yes
12243         hardcode_libdir_separator_CXX=':'
12244         link_all_deplibs_CXX=yes
12245         file_list_spec_CXX='${wl}-f,'
12246
12247         if test "$GXX" = yes; then
12248           case $host_os in aix4.[012]|aix4.[012].*)
12249           # We only want to do this on AIX 4.2 and lower, the check
12250           # below for broken collect2 doesn't work under 4.3+
12251           collect2name=`${CC} -print-prog-name=collect2`
12252           if test -f "$collect2name" &&
12253              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12254           then
12255             # We have reworked collect2
12256             :
12257           else
12258             # We have old collect2
12259             hardcode_direct_CXX=unsupported
12260             # It fails to find uninstalled libraries when the uninstalled
12261             # path is not listed in the libpath.  Setting hardcode_minus_L
12262             # to unsupported forces relinking
12263             hardcode_minus_L_CXX=yes
12264             hardcode_libdir_flag_spec_CXX='-L$libdir'
12265             hardcode_libdir_separator_CXX=
12266           fi
12267           esac
12268           shared_flag='-shared'
12269           if test "$aix_use_runtimelinking" = yes; then
12270             shared_flag="$shared_flag "'${wl}-G'
12271           fi
12272         else
12273           # not using gcc
12274           if test "$host_cpu" = ia64; then
12275           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12276           # chokes on -Wl,-G. The following line is correct:
12277           shared_flag='-G'
12278           else
12279             if test "$aix_use_runtimelinking" = yes; then
12280               shared_flag='${wl}-G'
12281             else
12282               shared_flag='${wl}-bM:SRE'
12283             fi
12284           fi
12285         fi
12286
12287         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12288         # It seems that -bexpall does not export symbols beginning with
12289         # underscore (_), so it is better to generate a list of symbols to
12290         # export.
12291         always_export_symbols_CXX=yes
12292         if test "$aix_use_runtimelinking" = yes; then
12293           # Warning - without using the other runtime loading flags (-brtl),
12294           # -berok will link without error, but may produce a broken library.
12295           allow_undefined_flag_CXX='-berok'
12296           # Determine the default libpath from the value encoded in an empty
12297           # executable.
12298           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h.  */
12300
12301 int
12302 main ()
12303 {
12304
12305   ;
12306   return 0;
12307 }
12308 _ACEOF
12309 if ac_fn_cxx_try_link "$LINENO"; then :
12310
12311 lt_aix_libpath_sed='
12312     /Import File Strings/,/^$/ {
12313         /^0/ {
12314             s/^0  *\(.*\)$/\1/
12315             p
12316         }
12317     }'
12318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12319 # Check for a 64-bit object if we didn't find anything.
12320 if test -z "$aix_libpath"; then
12321   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12322 fi
12323 fi
12324 rm -f core conftest.err conftest.$ac_objext \
12325     conftest$ac_exeext conftest.$ac_ext
12326 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12327
12328           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12329
12330           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"
12331         else
12332           if test "$host_cpu" = ia64; then
12333             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12334             allow_undefined_flag_CXX="-z nodefs"
12335             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"
12336           else
12337             # Determine the default libpath from the value encoded in an
12338             # empty executable.
12339             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12340 /* end confdefs.h.  */
12341
12342 int
12343 main ()
12344 {
12345
12346   ;
12347   return 0;
12348 }
12349 _ACEOF
12350 if ac_fn_cxx_try_link "$LINENO"; then :
12351
12352 lt_aix_libpath_sed='
12353     /Import File Strings/,/^$/ {
12354         /^0/ {
12355             s/^0  *\(.*\)$/\1/
12356             p
12357         }
12358     }'
12359 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12360 # Check for a 64-bit object if we didn't find anything.
12361 if test -z "$aix_libpath"; then
12362   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12363 fi
12364 fi
12365 rm -f core conftest.err conftest.$ac_objext \
12366     conftest$ac_exeext conftest.$ac_ext
12367 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12368
12369             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12370             # Warning - without using the other run time loading flags,
12371             # -berok will link without error, but may produce a broken library.
12372             no_undefined_flag_CXX=' ${wl}-bernotok'
12373             allow_undefined_flag_CXX=' ${wl}-berok'
12374             if test "$with_gnu_ld" = yes; then
12375               # We only use this code for GNU lds that support --whole-archive.
12376               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12377             else
12378               # Exported symbols can be pulled into shared objects from archives
12379               whole_archive_flag_spec_CXX='$convenience'
12380             fi
12381             archive_cmds_need_lc_CXX=yes
12382             # This is similar to how AIX traditionally builds its shared
12383             # libraries.
12384             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'
12385           fi
12386         fi
12387         ;;
12388
12389       beos*)
12390         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12391           allow_undefined_flag_CXX=unsupported
12392           # Joseph Beckenbach <[email protected]> says some releases of gcc
12393           # support --undefined.  This deserves some investigation.  FIXME
12394           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12395         else
12396           ld_shlibs_CXX=no
12397         fi
12398         ;;
12399
12400       chorus*)
12401         case $cc_basename in
12402           *)
12403           # FIXME: insert proper C++ library support
12404           ld_shlibs_CXX=no
12405           ;;
12406         esac
12407         ;;
12408
12409       cygwin* | mingw* | pw32* | cegcc*)
12410         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12411         # as there is no search path for DLLs.
12412         hardcode_libdir_flag_spec_CXX='-L$libdir'
12413         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12414         allow_undefined_flag_CXX=unsupported
12415         always_export_symbols_CXX=no
12416         enable_shared_with_static_runtimes_CXX=yes
12417
12418         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12419           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'
12420           # If the export-symbols file already is a .def file (1st line
12421           # is EXPORTS), use it as is; otherwise, prepend...
12422           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12423             cp $export_symbols $output_objdir/$soname.def;
12424           else
12425             echo EXPORTS > $output_objdir/$soname.def;
12426             cat $export_symbols >> $output_objdir/$soname.def;
12427           fi~
12428           $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'
12429         else
12430           ld_shlibs_CXX=no
12431         fi
12432         ;;
12433       darwin* | rhapsody*)
12434
12435
12436   archive_cmds_need_lc_CXX=no
12437   hardcode_direct_CXX=no
12438   hardcode_automatic_CXX=yes
12439   hardcode_shlibpath_var_CXX=unsupported
12440   if test "$lt_cv_ld_force_load" = "yes"; then
12441     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\"`'
12442   else
12443     whole_archive_flag_spec_CXX=''
12444   fi
12445   link_all_deplibs_CXX=yes
12446   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12447   case $cc_basename in
12448      ifort*) _lt_dar_can_shared=yes ;;
12449      *) _lt_dar_can_shared=$GCC ;;
12450   esac
12451   if test "$_lt_dar_can_shared" = "yes"; then
12452     output_verbose_link_cmd=func_echo_all
12453     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}"
12454     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12455     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}"
12456     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}"
12457        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12458       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}"
12459       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}"
12460     fi
12461
12462   else
12463   ld_shlibs_CXX=no
12464   fi
12465
12466         ;;
12467
12468       dgux*)
12469         case $cc_basename in
12470           ec++*)
12471             # FIXME: insert proper C++ library support
12472             ld_shlibs_CXX=no
12473             ;;
12474           ghcx*)
12475             # Green Hills C++ Compiler
12476             # FIXME: insert proper C++ library support
12477             ld_shlibs_CXX=no
12478             ;;
12479           *)
12480             # FIXME: insert proper C++ library support
12481             ld_shlibs_CXX=no
12482             ;;
12483         esac
12484         ;;
12485
12486       freebsd2.*)
12487         # C++ shared libraries reported to be fairly broken before
12488         # switch to ELF
12489         ld_shlibs_CXX=no
12490         ;;
12491
12492       freebsd-elf*)
12493         archive_cmds_need_lc_CXX=no
12494         ;;
12495
12496       freebsd* | dragonfly*)
12497         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12498         # conventions
12499         ld_shlibs_CXX=yes
12500         ;;
12501
12502       gnu*)
12503         ;;
12504
12505       haiku*)
12506         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12507         link_all_deplibs_CXX=yes
12508         ;;
12509
12510       hpux9*)
12511         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12512         hardcode_libdir_separator_CXX=:
12513         export_dynamic_flag_spec_CXX='${wl}-E'
12514         hardcode_direct_CXX=yes
12515         hardcode_minus_L_CXX=yes # Not in the search PATH,
12516                                              # but as the default
12517                                              # location of the library.
12518
12519         case $cc_basename in
12520           CC*)
12521             # FIXME: insert proper C++ library support
12522             ld_shlibs_CXX=no
12523             ;;
12524           aCC*)
12525             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'
12526             # Commands to make compiler produce verbose output that lists
12527             # what "hidden" libraries, object files and flags are used when
12528             # linking a shared library.
12529             #
12530             # There doesn't appear to be a way to prevent this compiler from
12531             # explicitly linking system object files so we need to strip them
12532             # from the output so that they don't get included in the library
12533             # dependencies.
12534             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"'
12535             ;;
12536           *)
12537             if test "$GXX" = yes; then
12538               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'
12539             else
12540               # FIXME: insert proper C++ library support
12541               ld_shlibs_CXX=no
12542             fi
12543             ;;
12544         esac
12545         ;;
12546
12547       hpux10*|hpux11*)
12548         if test $with_gnu_ld = no; then
12549           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12550           hardcode_libdir_separator_CXX=:
12551
12552           case $host_cpu in
12553             hppa*64*|ia64*)
12554               ;;
12555             *)
12556               export_dynamic_flag_spec_CXX='${wl}-E'
12557               ;;
12558           esac
12559         fi
12560         case $host_cpu in
12561           hppa*64*|ia64*)
12562             hardcode_direct_CXX=no
12563             hardcode_shlibpath_var_CXX=no
12564             ;;
12565           *)
12566             hardcode_direct_CXX=yes
12567             hardcode_direct_absolute_CXX=yes
12568             hardcode_minus_L_CXX=yes # Not in the search PATH,
12569                                                  # but as the default
12570                                                  # location of the library.
12571             ;;
12572         esac
12573
12574         case $cc_basename in
12575           CC*)
12576             # FIXME: insert proper C++ library support
12577             ld_shlibs_CXX=no
12578             ;;
12579           aCC*)
12580             case $host_cpu in
12581               hppa*64*)
12582                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12583                 ;;
12584               ia64*)
12585                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12586                 ;;
12587               *)
12588                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12589                 ;;
12590             esac
12591             # Commands to make compiler produce verbose output that lists
12592             # what "hidden" libraries, object files and flags are used when
12593             # linking a shared library.
12594             #
12595             # There doesn't appear to be a way to prevent this compiler from
12596             # explicitly linking system object files so we need to strip them
12597             # from the output so that they don't get included in the library
12598             # dependencies.
12599             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"'
12600             ;;
12601           *)
12602             if test "$GXX" = yes; then
12603               if test $with_gnu_ld = no; then
12604                 case $host_cpu in
12605                   hppa*64*)
12606                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12607                     ;;
12608                   ia64*)
12609                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12610                     ;;
12611                   *)
12612                     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'
12613                     ;;
12614                 esac
12615               fi
12616             else
12617               # FIXME: insert proper C++ library support
12618               ld_shlibs_CXX=no
12619             fi
12620             ;;
12621         esac
12622         ;;
12623
12624       interix[3-9]*)
12625         hardcode_direct_CXX=no
12626         hardcode_shlibpath_var_CXX=no
12627         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12628         export_dynamic_flag_spec_CXX='${wl}-E'
12629         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12630         # Instead, shared libraries are loaded at an image base (0x10000000 by
12631         # default) and relocated if they conflict, which is a slow very memory
12632         # consuming and fragmenting process.  To avoid this, we pick a random,
12633         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12634         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12635         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'
12636         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'
12637         ;;
12638       irix5* | irix6*)
12639         case $cc_basename in
12640           CC*)
12641             # SGI C++
12642             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'
12643
12644             # Archives containing C++ object files must be created using
12645             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12646             # necessary to make sure instantiated templates are included
12647             # in the archive.
12648             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12649             ;;
12650           *)
12651             if test "$GXX" = yes; then
12652               if test "$with_gnu_ld" = no; then
12653                 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'
12654               else
12655                 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'
12656               fi
12657             fi
12658             link_all_deplibs_CXX=yes
12659             ;;
12660         esac
12661         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12662         hardcode_libdir_separator_CXX=:
12663         inherit_rpath_CXX=yes
12664         ;;
12665
12666       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12667         case $cc_basename in
12668           KCC*)
12669             # Kuck and Associates, Inc. (KAI) C++ Compiler
12670
12671             # KCC will only create a shared library if the output file
12672             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12673             # to its proper name (with version) after linking.
12674             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'
12675             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'
12676             # Commands to make compiler produce verbose output that lists
12677             # what "hidden" libraries, object files and flags are used when
12678             # linking a shared library.
12679             #
12680             # There doesn't appear to be a way to prevent this compiler from
12681             # explicitly linking system object files so we need to strip them
12682             # from the output so that they don't get included in the library
12683             # dependencies.
12684             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"'
12685
12686             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12687             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12688
12689             # Archives containing C++ object files must be created using
12690             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12691             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12692             ;;
12693           icpc* | ecpc* )
12694             # Intel C++
12695             with_gnu_ld=yes
12696             # version 8.0 and above of icpc choke on multiply defined symbols
12697             # if we add $predep_objects and $postdep_objects, however 7.1 and
12698             # earlier do not add the objects themselves.
12699             case `$CC -V 2>&1` in
12700               *"Version 7."*)
12701                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12702                 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'
12703                 ;;
12704               *)  # Version 8.0 or newer
12705                 tmp_idyn=
12706                 case $host_cpu in
12707                   ia64*) tmp_idyn=' -i_dynamic';;
12708                 esac
12709                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12710                 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'
12711                 ;;
12712             esac
12713             archive_cmds_need_lc_CXX=no
12714             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12715             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12716             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12717             ;;
12718           pgCC* | pgcpp*)
12719             # Portland Group C++ compiler
12720             case `$CC -V` in
12721             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12722               prelink_cmds_CXX='tpldir=Template.dir~
12723                 rm -rf $tpldir~
12724                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12725                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12726               old_archive_cmds_CXX='tpldir=Template.dir~
12727                 rm -rf $tpldir~
12728                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12729                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12730                 $RANLIB $oldlib'
12731               archive_cmds_CXX='tpldir=Template.dir~
12732                 rm -rf $tpldir~
12733                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12734                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12735               archive_expsym_cmds_CXX='tpldir=Template.dir~
12736                 rm -rf $tpldir~
12737                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12738                 $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'
12739               ;;
12740             *) # Version 6 and above use weak symbols
12741               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12742               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'
12743               ;;
12744             esac
12745
12746             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12747             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12748             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'
12749             ;;
12750           cxx*)
12751             # Compaq C++
12752             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12753             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'
12754
12755             runpath_var=LD_RUN_PATH
12756             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12757             hardcode_libdir_separator_CXX=:
12758
12759             # Commands to make compiler produce verbose output that lists
12760             # what "hidden" libraries, object files and flags are used when
12761             # linking a shared library.
12762             #
12763             # There doesn't appear to be a way to prevent this compiler from
12764             # explicitly linking system object files so we need to strip them
12765             # from the output so that they don't get included in the library
12766             # dependencies.
12767             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'
12768             ;;
12769           xl* | mpixl* | bgxl*)
12770             # IBM XL 8.0 on PPC, with GNU ld
12771             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12772             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12773             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12774             if test "x$supports_anon_versioning" = xyes; then
12775               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12776                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12777                 echo "local: *; };" >> $output_objdir/$libname.ver~
12778                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12779             fi
12780             ;;
12781           *)
12782             case `$CC -V 2>&1 | sed 5q` in
12783             *Sun\ C*)
12784               # Sun C++ 5.9
12785               no_undefined_flag_CXX=' -zdefs'
12786               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12787               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'
12788               hardcode_libdir_flag_spec_CXX='-R$libdir'
12789               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'
12790               compiler_needs_object_CXX=yes
12791
12792               # Not sure whether something based on
12793               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12794               # would be better.
12795               output_verbose_link_cmd='func_echo_all'
12796
12797               # Archives containing C++ object files must be created using
12798               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12799               # necessary to make sure instantiated templates are included
12800               # in the archive.
12801               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12802               ;;
12803             esac
12804             ;;
12805         esac
12806         ;;
12807
12808       lynxos*)
12809         # FIXME: insert proper C++ library support
12810         ld_shlibs_CXX=no
12811         ;;
12812
12813       m88k*)
12814         # FIXME: insert proper C++ library support
12815         ld_shlibs_CXX=no
12816         ;;
12817
12818       mvs*)
12819         case $cc_basename in
12820           cxx*)
12821             # FIXME: insert proper C++ library support
12822             ld_shlibs_CXX=no
12823             ;;
12824           *)
12825             # FIXME: insert proper C++ library support
12826             ld_shlibs_CXX=no
12827             ;;
12828         esac
12829         ;;
12830
12831       netbsd*)
12832         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12833           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12834           wlarc=
12835           hardcode_libdir_flag_spec_CXX='-R$libdir'
12836           hardcode_direct_CXX=yes
12837           hardcode_shlibpath_var_CXX=no
12838         fi
12839         # Workaround some broken pre-1.5 toolchains
12840         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12841         ;;
12842
12843       *nto* | *qnx*)
12844         ld_shlibs_CXX=yes
12845         ;;
12846
12847       openbsd2*)
12848         # C++ shared libraries are fairly broken
12849         ld_shlibs_CXX=no
12850         ;;
12851
12852       openbsd*)
12853         if test -f /usr/libexec/ld.so; then
12854           hardcode_direct_CXX=yes
12855           hardcode_shlibpath_var_CXX=no
12856           hardcode_direct_absolute_CXX=yes
12857           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12858           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12859           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12860             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12861             export_dynamic_flag_spec_CXX='${wl}-E'
12862             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12863           fi
12864           output_verbose_link_cmd=func_echo_all
12865         else
12866           ld_shlibs_CXX=no
12867         fi
12868         ;;
12869
12870       osf3* | osf4* | osf5*)
12871         case $cc_basename in
12872           KCC*)
12873             # Kuck and Associates, Inc. (KAI) C++ Compiler
12874
12875             # KCC will only create a shared library if the output file
12876             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12877             # to its proper name (with version) after linking.
12878             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'
12879
12880             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12881             hardcode_libdir_separator_CXX=:
12882
12883             # Archives containing C++ object files must be created using
12884             # the KAI C++ compiler.
12885             case $host in
12886               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12887               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12888             esac
12889             ;;
12890           RCC*)
12891             # Rational C++ 2.4.1
12892             # FIXME: insert proper C++ library support
12893             ld_shlibs_CXX=no
12894             ;;
12895           cxx*)
12896             case $host in
12897               osf3*)
12898                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12899                 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'
12900                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12901                 ;;
12902               *)
12903                 allow_undefined_flag_CXX=' -expect_unresolved \*'
12904                 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'
12905                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12906                   echo "-hidden">> $lib.exp~
12907                   $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~
12908                   $RM $lib.exp'
12909                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12910                 ;;
12911             esac
12912
12913             hardcode_libdir_separator_CXX=:
12914
12915             # Commands to make compiler produce verbose output that lists
12916             # what "hidden" libraries, object files and flags are used when
12917             # linking a shared library.
12918             #
12919             # There doesn't appear to be a way to prevent this compiler from
12920             # explicitly linking system object files so we need to strip them
12921             # from the output so that they don't get included in the library
12922             # dependencies.
12923             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"'
12924             ;;
12925           *)
12926             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12927               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12928               case $host in
12929                 osf3*)
12930                   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'
12931                   ;;
12932                 *)
12933                   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'
12934                   ;;
12935               esac
12936
12937               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12938               hardcode_libdir_separator_CXX=:
12939
12940               # Commands to make compiler produce verbose output that lists
12941               # what "hidden" libraries, object files and flags are used when
12942               # linking a shared library.
12943               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12944
12945             else
12946               # FIXME: insert proper C++ library support
12947               ld_shlibs_CXX=no
12948             fi
12949             ;;
12950         esac
12951         ;;
12952
12953       psos*)
12954         # FIXME: insert proper C++ library support
12955         ld_shlibs_CXX=no
12956         ;;
12957
12958       sunos4*)
12959         case $cc_basename in
12960           CC*)
12961             # Sun C++ 4.x
12962             # FIXME: insert proper C++ library support
12963             ld_shlibs_CXX=no
12964             ;;
12965           lcc*)
12966             # Lucid
12967             # FIXME: insert proper C++ library support
12968             ld_shlibs_CXX=no
12969             ;;
12970           *)
12971             # FIXME: insert proper C++ library support
12972             ld_shlibs_CXX=no
12973             ;;
12974         esac
12975         ;;
12976
12977       solaris*)
12978         case $cc_basename in
12979           CC*)
12980             # Sun C++ 4.2, 5.x and Centerline C++
12981             archive_cmds_need_lc_CXX=yes
12982             no_undefined_flag_CXX=' -zdefs'
12983             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12984             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12985               $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'
12986
12987             hardcode_libdir_flag_spec_CXX='-R$libdir'
12988             hardcode_shlibpath_var_CXX=no
12989             case $host_os in
12990               solaris2.[0-5] | solaris2.[0-5].*) ;;
12991               *)
12992                 # The compiler driver will combine and reorder linker options,
12993                 # but understands `-z linker_flag'.
12994                 # Supported since Solaris 2.6 (maybe 2.5.1?)
12995                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12996                 ;;
12997             esac
12998             link_all_deplibs_CXX=yes
12999
13000             output_verbose_link_cmd='func_echo_all'
13001
13002             # Archives containing C++ object files must be created using
13003             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13004             # necessary to make sure instantiated templates are included
13005             # in the archive.
13006             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13007             ;;
13008           gcx*)
13009             # Green Hills C++ Compiler
13010             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13011
13012             # The C++ compiler must be used to create the archive.
13013             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13014             ;;
13015           *)
13016             # GNU C++ compiler with Solaris linker
13017             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13018               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13019               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13020                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13021                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13022                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13023
13024                 # Commands to make compiler produce verbose output that lists
13025                 # what "hidden" libraries, object files and flags are used when
13026                 # linking a shared library.
13027                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13028               else
13029                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13030                 # platform.
13031                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13032                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13033                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13034
13035                 # Commands to make compiler produce verbose output that lists
13036                 # what "hidden" libraries, object files and flags are used when
13037                 # linking a shared library.
13038                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13039               fi
13040
13041               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13042               case $host_os in
13043                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13044                 *)
13045                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13046                   ;;
13047               esac
13048             fi
13049             ;;
13050         esac
13051         ;;
13052
13053     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13054       no_undefined_flag_CXX='${wl}-z,text'
13055       archive_cmds_need_lc_CXX=no
13056       hardcode_shlibpath_var_CXX=no
13057       runpath_var='LD_RUN_PATH'
13058
13059       case $cc_basename in
13060         CC*)
13061           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13062           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13063           ;;
13064         *)
13065           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13066           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13067           ;;
13068       esac
13069       ;;
13070
13071       sysv5* | sco3.2v5* | sco5v6*)
13072         # Note: We can NOT use -z defs as we might desire, because we do not
13073         # link with -lc, and that would cause any symbols used from libc to
13074         # always be unresolved, which means just about no library would
13075         # ever link correctly.  If we're not using GNU ld we use -z text
13076         # though, which does catch some bad symbols but isn't as heavy-handed
13077         # as -z defs.
13078         no_undefined_flag_CXX='${wl}-z,text'
13079         allow_undefined_flag_CXX='${wl}-z,nodefs'
13080         archive_cmds_need_lc_CXX=no
13081         hardcode_shlibpath_var_CXX=no
13082         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13083         hardcode_libdir_separator_CXX=':'
13084         link_all_deplibs_CXX=yes
13085         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13086         runpath_var='LD_RUN_PATH'
13087
13088         case $cc_basename in
13089           CC*)
13090             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13091             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13092             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13093               '"$old_archive_cmds_CXX"
13094             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13095               '"$reload_cmds_CXX"
13096             ;;
13097           *)
13098             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13099             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13100             ;;
13101         esac
13102       ;;
13103
13104       tandem*)
13105         case $cc_basename in
13106           NCC*)
13107             # NonStop-UX NCC 3.20
13108             # FIXME: insert proper C++ library support
13109             ld_shlibs_CXX=no
13110             ;;
13111           *)
13112             # FIXME: insert proper C++ library support
13113             ld_shlibs_CXX=no
13114             ;;
13115         esac
13116         ;;
13117
13118       vxworks*)
13119         # FIXME: insert proper C++ library support
13120         ld_shlibs_CXX=no
13121         ;;
13122
13123       *)
13124         # FIXME: insert proper C++ library support
13125         ld_shlibs_CXX=no
13126         ;;
13127     esac
13128
13129     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13130 $as_echo "$ld_shlibs_CXX" >&6; }
13131     test "$ld_shlibs_CXX" = no && can_build_shared=no
13132
13133     GCC_CXX="$GXX"
13134     LD_CXX="$LD"
13135
13136     ## CAVEAT EMPTOR:
13137     ## There is no encapsulation within the following macros, do not change
13138     ## the running order or otherwise move them around unless you know exactly
13139     ## what you are doing...
13140     # Dependencies to place before and after the object being linked:
13141 predep_objects_CXX=
13142 postdep_objects_CXX=
13143 predeps_CXX=
13144 postdeps_CXX=
13145 compiler_lib_search_path_CXX=
13146
13147 cat > conftest.$ac_ext <<_LT_EOF
13148 class Foo
13149 {
13150 public:
13151   Foo (void) { a = 0; }
13152 private:
13153   int a;
13154 };
13155 _LT_EOF
13156
13157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13158   (eval $ac_compile) 2>&5
13159   ac_status=$?
13160   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13161   test $ac_status = 0; }; then
13162   # Parse the compiler output and extract the necessary
13163   # objects, libraries and library flags.
13164
13165   # Sentinel used to keep track of whether or not we are before
13166   # the conftest object file.
13167   pre_test_object_deps_done=no
13168
13169   for p in `eval "$output_verbose_link_cmd"`; do
13170     case $p in
13171
13172     -L* | -R* | -l*)
13173        # Some compilers place space between "-{L,R}" and the path.
13174        # Remove the space.
13175        if test $p = "-L" ||
13176           test $p = "-R"; then
13177          prev=$p
13178          continue
13179        else
13180          prev=
13181        fi
13182
13183        if test "$pre_test_object_deps_done" = no; then
13184          case $p in
13185          -L* | -R*)
13186            # Internal compiler library paths should come after those
13187            # provided the user.  The postdeps already come after the
13188            # user supplied libs so there is no need to process them.
13189            if test -z "$compiler_lib_search_path_CXX"; then
13190              compiler_lib_search_path_CXX="${prev}${p}"
13191            else
13192              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13193            fi
13194            ;;
13195          # The "-l" case would never come before the object being
13196          # linked, so don't bother handling this case.
13197          esac
13198        else
13199          if test -z "$postdeps_CXX"; then
13200            postdeps_CXX="${prev}${p}"
13201          else
13202            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13203          fi
13204        fi
13205        ;;
13206
13207     *.$objext)
13208        # This assumes that the test object file only shows up
13209        # once in the compiler output.
13210        if test "$p" = "conftest.$objext"; then
13211          pre_test_object_deps_done=yes
13212          continue
13213        fi
13214
13215        if test "$pre_test_object_deps_done" = no; then
13216          if test -z "$predep_objects_CXX"; then
13217            predep_objects_CXX="$p"
13218          else
13219            predep_objects_CXX="$predep_objects_CXX $p"
13220          fi
13221        else
13222          if test -z "$postdep_objects_CXX"; then
13223            postdep_objects_CXX="$p"
13224          else
13225            postdep_objects_CXX="$postdep_objects_CXX $p"
13226          fi
13227        fi
13228        ;;
13229
13230     *) ;; # Ignore the rest.
13231
13232     esac
13233   done
13234
13235   # Clean up.
13236   rm -f a.out a.exe
13237 else
13238   echo "libtool.m4: error: problem compiling CXX test program"
13239 fi
13240
13241 $RM -f confest.$objext
13242
13243 # PORTME: override above test on systems where it is broken
13244 case $host_os in
13245 interix[3-9]*)
13246   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13247   # hack all around it, let's just trust "g++" to DTRT.
13248   predep_objects_CXX=
13249   postdep_objects_CXX=
13250   postdeps_CXX=
13251   ;;
13252
13253 linux*)
13254   case `$CC -V 2>&1 | sed 5q` in
13255   *Sun\ C*)
13256     # Sun C++ 5.9
13257
13258     # The more standards-conforming stlport4 library is
13259     # incompatible with the Cstd library. Avoid specifying
13260     # it if it's in CXXFLAGS. Ignore libCrun as
13261     # -library=stlport4 depends on it.
13262     case " $CXX $CXXFLAGS " in
13263     *" -library=stlport4 "*)
13264       solaris_use_stlport4=yes
13265       ;;
13266     esac
13267
13268     if test "$solaris_use_stlport4" != yes; then
13269       postdeps_CXX='-library=Cstd -library=Crun'
13270     fi
13271     ;;
13272   esac
13273   ;;
13274
13275 solaris*)
13276   case $cc_basename in
13277   CC*)
13278     # The more standards-conforming stlport4 library is
13279     # incompatible with the Cstd library. Avoid specifying
13280     # it if it's in CXXFLAGS. Ignore libCrun as
13281     # -library=stlport4 depends on it.
13282     case " $CXX $CXXFLAGS " in
13283     *" -library=stlport4 "*)
13284       solaris_use_stlport4=yes
13285       ;;
13286     esac
13287
13288     # Adding this requires a known-good setup of shared libraries for
13289     # Sun compiler versions before 5.6, else PIC objects from an old
13290     # archive will be linked into the output, leading to subtle bugs.
13291     if test "$solaris_use_stlport4" != yes; then
13292       postdeps_CXX='-library=Cstd -library=Crun'
13293     fi
13294     ;;
13295   esac
13296   ;;
13297 esac
13298
13299
13300 case " $postdeps_CXX " in
13301 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13302 esac
13303  compiler_lib_search_dirs_CXX=
13304 if test -n "${compiler_lib_search_path_CXX}"; then
13305  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13306 fi
13307
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     lt_prog_compiler_wl_CXX=
13339 lt_prog_compiler_pic_CXX=
13340 lt_prog_compiler_static_CXX=
13341
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13343 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13344
13345   # C++ specific cases for pic, static, wl, etc.
13346   if test "$GXX" = yes; then
13347     lt_prog_compiler_wl_CXX='-Wl,'
13348     lt_prog_compiler_static_CXX='-static'
13349
13350     case $host_os in
13351     aix*)
13352       # All AIX code is PIC.
13353       if test "$host_cpu" = ia64; then
13354         # AIX 5 now supports IA64 processor
13355         lt_prog_compiler_static_CXX='-Bstatic'
13356       fi
13357       lt_prog_compiler_pic_CXX='-fPIC'
13358       ;;
13359
13360     amigaos*)
13361       case $host_cpu in
13362       powerpc)
13363             # see comment about AmigaOS4 .so support
13364             lt_prog_compiler_pic_CXX='-fPIC'
13365         ;;
13366       m68k)
13367             # FIXME: we need at least 68020 code to build shared libraries, but
13368             # adding the `-m68020' flag to GCC prevents building anything better,
13369             # like `-m68040'.
13370             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13371         ;;
13372       esac
13373       ;;
13374
13375     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13376       # PIC is the default for these OSes.
13377       ;;
13378     mingw* | cygwin* | os2* | pw32* | cegcc*)
13379       # This hack is so that the source file can tell whether it is being
13380       # built for inclusion in a dll (and should export symbols for example).
13381       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13382       # (--disable-auto-import) libraries
13383       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13384       ;;
13385     darwin* | rhapsody*)
13386       # PIC is the default on this platform
13387       # Common symbols not allowed in MH_DYLIB files
13388       lt_prog_compiler_pic_CXX='-fno-common'
13389       ;;
13390     *djgpp*)
13391       # DJGPP does not support shared libraries at all
13392       lt_prog_compiler_pic_CXX=
13393       ;;
13394     haiku*)
13395       # PIC is the default for Haiku.
13396       # The "-static" flag exists, but is broken.
13397       lt_prog_compiler_static_CXX=
13398       ;;
13399     interix[3-9]*)
13400       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13401       # Instead, we relocate shared libraries at runtime.
13402       ;;
13403     sysv4*MP*)
13404       if test -d /usr/nec; then
13405         lt_prog_compiler_pic_CXX=-Kconform_pic
13406       fi
13407       ;;
13408     hpux*)
13409       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13410       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13411       # sets the default TLS model and affects inlining.
13412       case $host_cpu in
13413       hppa*64*)
13414         ;;
13415       *)
13416         lt_prog_compiler_pic_CXX='-fPIC'
13417         ;;
13418       esac
13419       ;;
13420     *qnx* | *nto*)
13421       # QNX uses GNU C++, but need to define -shared option too, otherwise
13422       # it will coredump.
13423       lt_prog_compiler_pic_CXX='-fPIC -shared'
13424       ;;
13425     *)
13426       lt_prog_compiler_pic_CXX='-fPIC'
13427       ;;
13428     esac
13429   else
13430     case $host_os in
13431       aix[4-9]*)
13432         # All AIX code is PIC.
13433         if test "$host_cpu" = ia64; then
13434           # AIX 5 now supports IA64 processor
13435           lt_prog_compiler_static_CXX='-Bstatic'
13436         else
13437           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13438         fi
13439         ;;
13440       chorus*)
13441         case $cc_basename in
13442         cxch68*)
13443           # Green Hills C++ Compiler
13444           # _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"
13445           ;;
13446         esac
13447         ;;
13448       dgux*)
13449         case $cc_basename in
13450           ec++*)
13451             lt_prog_compiler_pic_CXX='-KPIC'
13452             ;;
13453           ghcx*)
13454             # Green Hills C++ Compiler
13455             lt_prog_compiler_pic_CXX='-pic'
13456             ;;
13457           *)
13458             ;;
13459         esac
13460         ;;
13461       freebsd* | dragonfly*)
13462         # FreeBSD uses GNU C++
13463         ;;
13464       hpux9* | hpux10* | hpux11*)
13465         case $cc_basename in
13466           CC*)
13467             lt_prog_compiler_wl_CXX='-Wl,'
13468             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13469             if test "$host_cpu" != ia64; then
13470               lt_prog_compiler_pic_CXX='+Z'
13471             fi
13472             ;;
13473           aCC*)
13474             lt_prog_compiler_wl_CXX='-Wl,'
13475             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13476             case $host_cpu in
13477             hppa*64*|ia64*)
13478               # +Z the default
13479               ;;
13480             *)
13481               lt_prog_compiler_pic_CXX='+Z'
13482               ;;
13483             esac
13484             ;;
13485           *)
13486             ;;
13487         esac
13488         ;;
13489       interix*)
13490         # This is c89, which is MS Visual C++ (no shared libs)
13491         # Anyone wants to do a port?
13492         ;;
13493       irix5* | irix6* | nonstopux*)
13494         case $cc_basename in
13495           CC*)
13496             lt_prog_compiler_wl_CXX='-Wl,'
13497             lt_prog_compiler_static_CXX='-non_shared'
13498             # CC pic flag -KPIC is the default.
13499             ;;
13500           *)
13501             ;;
13502         esac
13503         ;;
13504       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13505         case $cc_basename in
13506           KCC*)
13507             # KAI C++ Compiler
13508             lt_prog_compiler_wl_CXX='--backend -Wl,'
13509             lt_prog_compiler_pic_CXX='-fPIC'
13510             ;;
13511           ecpc* )
13512             # old Intel C++ for x86_64 which still supported -KPIC.
13513             lt_prog_compiler_wl_CXX='-Wl,'
13514             lt_prog_compiler_pic_CXX='-KPIC'
13515             lt_prog_compiler_static_CXX='-static'
13516             ;;
13517           icpc* )
13518             # Intel C++, used to be incompatible with GCC.
13519             # ICC 10 doesn't accept -KPIC any more.
13520             lt_prog_compiler_wl_CXX='-Wl,'
13521             lt_prog_compiler_pic_CXX='-fPIC'
13522             lt_prog_compiler_static_CXX='-static'
13523             ;;
13524           pgCC* | pgcpp*)
13525             # Portland Group C++ compiler
13526             lt_prog_compiler_wl_CXX='-Wl,'
13527             lt_prog_compiler_pic_CXX='-fpic'
13528             lt_prog_compiler_static_CXX='-Bstatic'
13529             ;;
13530           cxx*)
13531             # Compaq C++
13532             # Make sure the PIC flag is empty.  It appears that all Alpha
13533             # Linux and Compaq Tru64 Unix objects are PIC.
13534             lt_prog_compiler_pic_CXX=
13535             lt_prog_compiler_static_CXX='-non_shared'
13536             ;;
13537           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13538             # IBM XL 8.0, 9.0 on PPC and BlueGene
13539             lt_prog_compiler_wl_CXX='-Wl,'
13540             lt_prog_compiler_pic_CXX='-qpic'
13541             lt_prog_compiler_static_CXX='-qstaticlink'
13542             ;;
13543           *)
13544             case `$CC -V 2>&1 | sed 5q` in
13545             *Sun\ C*)
13546               # Sun C++ 5.9
13547               lt_prog_compiler_pic_CXX='-KPIC'
13548               lt_prog_compiler_static_CXX='-Bstatic'
13549               lt_prog_compiler_wl_CXX='-Qoption ld '
13550               ;;
13551             esac
13552             ;;
13553         esac
13554         ;;
13555       lynxos*)
13556         ;;
13557       m88k*)
13558         ;;
13559       mvs*)
13560         case $cc_basename in
13561           cxx*)
13562             lt_prog_compiler_pic_CXX='-W c,exportall'
13563             ;;
13564           *)
13565             ;;
13566         esac
13567         ;;
13568       netbsd*)
13569         ;;
13570       *qnx* | *nto*)
13571         # QNX uses GNU C++, but need to define -shared option too, otherwise
13572         # it will coredump.
13573         lt_prog_compiler_pic_CXX='-fPIC -shared'
13574         ;;
13575       osf3* | osf4* | osf5*)
13576         case $cc_basename in
13577           KCC*)
13578             lt_prog_compiler_wl_CXX='--backend -Wl,'
13579             ;;
13580           RCC*)
13581             # Rational C++ 2.4.1
13582             lt_prog_compiler_pic_CXX='-pic'
13583             ;;
13584           cxx*)
13585             # Digital/Compaq C++
13586             lt_prog_compiler_wl_CXX='-Wl,'
13587             # Make sure the PIC flag is empty.  It appears that all Alpha
13588             # Linux and Compaq Tru64 Unix objects are PIC.
13589             lt_prog_compiler_pic_CXX=
13590             lt_prog_compiler_static_CXX='-non_shared'
13591             ;;
13592           *)
13593             ;;
13594         esac
13595         ;;
13596       psos*)
13597         ;;
13598       solaris*)
13599         case $cc_basename in
13600           CC*)
13601             # Sun C++ 4.2, 5.x and Centerline C++
13602             lt_prog_compiler_pic_CXX='-KPIC'
13603             lt_prog_compiler_static_CXX='-Bstatic'
13604             lt_prog_compiler_wl_CXX='-Qoption ld '
13605             ;;
13606           gcx*)
13607             # Green Hills C++ Compiler
13608             lt_prog_compiler_pic_CXX='-PIC'
13609             ;;
13610           *)
13611             ;;
13612         esac
13613         ;;
13614       sunos4*)
13615         case $cc_basename in
13616           CC*)
13617             # Sun C++ 4.x
13618             lt_prog_compiler_pic_CXX='-pic'
13619             lt_prog_compiler_static_CXX='-Bstatic'
13620             ;;
13621           lcc*)
13622             # Lucid
13623             lt_prog_compiler_pic_CXX='-pic'
13624             ;;
13625           *)
13626             ;;
13627         esac
13628         ;;
13629       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13630         case $cc_basename in
13631           CC*)
13632             lt_prog_compiler_wl_CXX='-Wl,'
13633             lt_prog_compiler_pic_CXX='-KPIC'
13634             lt_prog_compiler_static_CXX='-Bstatic'
13635             ;;
13636         esac
13637         ;;
13638       tandem*)
13639         case $cc_basename in
13640           NCC*)
13641             # NonStop-UX NCC 3.20
13642             lt_prog_compiler_pic_CXX='-KPIC'
13643             ;;
13644           *)
13645             ;;
13646         esac
13647         ;;
13648       vxworks*)
13649         ;;
13650       *)
13651         lt_prog_compiler_can_build_shared_CXX=no
13652         ;;
13653     esac
13654   fi
13655
13656 case $host_os in
13657   # For platforms which do not support PIC, -DPIC is meaningless:
13658   *djgpp*)
13659     lt_prog_compiler_pic_CXX=
13660     ;;
13661   *)
13662     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13663     ;;
13664 esac
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13666 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13667
13668
13669
13670 #
13671 # Check to make sure the PIC flag actually works.
13672 #
13673 if test -n "$lt_prog_compiler_pic_CXX"; then
13674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13675 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13676 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13677   $as_echo_n "(cached) " >&6
13678 else
13679   lt_cv_prog_compiler_pic_works_CXX=no
13680    ac_outfile=conftest.$ac_objext
13681    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13682    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13683    # Insert the option either (1) after the last *FLAGS variable, or
13684    # (2) before a word containing "conftest.", or (3) at the end.
13685    # Note that $ac_compile itself does not contain backslashes and begins
13686    # with a dollar sign (not a hyphen), so the echo should work correctly.
13687    # The option is referenced via a variable to avoid confusing sed.
13688    lt_compile=`echo "$ac_compile" | $SED \
13689    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13690    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13691    -e 's:$: $lt_compiler_flag:'`
13692    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13693    (eval "$lt_compile" 2>conftest.err)
13694    ac_status=$?
13695    cat conftest.err >&5
13696    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697    if (exit $ac_status) && test -s "$ac_outfile"; then
13698      # The compiler can only warn and ignore the option if not recognized
13699      # So say no if there are warnings other than the usual output.
13700      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13701      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13702      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13703        lt_cv_prog_compiler_pic_works_CXX=yes
13704      fi
13705    fi
13706    $RM conftest*
13707
13708 fi
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13710 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13711
13712 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13713     case $lt_prog_compiler_pic_CXX in
13714      "" | " "*) ;;
13715      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13716      esac
13717 else
13718     lt_prog_compiler_pic_CXX=
13719      lt_prog_compiler_can_build_shared_CXX=no
13720 fi
13721
13722 fi
13723
13724
13725
13726 #
13727 # Check to make sure the static flag actually works.
13728 #
13729 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13731 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13732 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13733   $as_echo_n "(cached) " >&6
13734 else
13735   lt_cv_prog_compiler_static_works_CXX=no
13736    save_LDFLAGS="$LDFLAGS"
13737    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13738    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13739    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13740      # The linker can only warn and ignore the option if not recognized
13741      # So say no if there are warnings
13742      if test -s conftest.err; then
13743        # Append any errors to the config.log.
13744        cat conftest.err 1>&5
13745        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13746        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13747        if diff conftest.exp conftest.er2 >/dev/null; then
13748          lt_cv_prog_compiler_static_works_CXX=yes
13749        fi
13750      else
13751        lt_cv_prog_compiler_static_works_CXX=yes
13752      fi
13753    fi
13754    $RM -r conftest*
13755    LDFLAGS="$save_LDFLAGS"
13756
13757 fi
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13759 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13760
13761 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13762     :
13763 else
13764     lt_prog_compiler_static_CXX=
13765 fi
13766
13767
13768
13769
13770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13771 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13772 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13773   $as_echo_n "(cached) " >&6
13774 else
13775   lt_cv_prog_compiler_c_o_CXX=no
13776    $RM -r conftest 2>/dev/null
13777    mkdir conftest
13778    cd conftest
13779    mkdir out
13780    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13781
13782    lt_compiler_flag="-o out/conftest2.$ac_objext"
13783    # Insert the option either (1) after the last *FLAGS variable, or
13784    # (2) before a word containing "conftest.", or (3) at the end.
13785    # Note that $ac_compile itself does not contain backslashes and begins
13786    # with a dollar sign (not a hyphen), so the echo should work correctly.
13787    lt_compile=`echo "$ac_compile" | $SED \
13788    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13789    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13790    -e 's:$: $lt_compiler_flag:'`
13791    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13792    (eval "$lt_compile" 2>out/conftest.err)
13793    ac_status=$?
13794    cat out/conftest.err >&5
13795    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13797    then
13798      # The compiler can only warn and ignore the option if not recognized
13799      # So say no if there are warnings
13800      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13801      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13802      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13803        lt_cv_prog_compiler_c_o_CXX=yes
13804      fi
13805    fi
13806    chmod u+w . 2>&5
13807    $RM conftest*
13808    # SGI C++ compiler will create directory out/ii_files/ for
13809    # template instantiation
13810    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13811    $RM out/* && rmdir out
13812    cd ..
13813    $RM -r conftest
13814    $RM conftest*
13815
13816 fi
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13818 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13819
13820
13821
13822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13823 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13824 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13825   $as_echo_n "(cached) " >&6
13826 else
13827   lt_cv_prog_compiler_c_o_CXX=no
13828    $RM -r conftest 2>/dev/null
13829    mkdir conftest
13830    cd conftest
13831    mkdir out
13832    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13833
13834    lt_compiler_flag="-o out/conftest2.$ac_objext"
13835    # Insert the option either (1) after the last *FLAGS variable, or
13836    # (2) before a word containing "conftest.", or (3) at the end.
13837    # Note that $ac_compile itself does not contain backslashes and begins
13838    # with a dollar sign (not a hyphen), so the echo should work correctly.
13839    lt_compile=`echo "$ac_compile" | $SED \
13840    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13841    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13842    -e 's:$: $lt_compiler_flag:'`
13843    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13844    (eval "$lt_compile" 2>out/conftest.err)
13845    ac_status=$?
13846    cat out/conftest.err >&5
13847    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13849    then
13850      # The compiler can only warn and ignore the option if not recognized
13851      # So say no if there are warnings
13852      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13853      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13854      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13855        lt_cv_prog_compiler_c_o_CXX=yes
13856      fi
13857    fi
13858    chmod u+w . 2>&5
13859    $RM conftest*
13860    # SGI C++ compiler will create directory out/ii_files/ for
13861    # template instantiation
13862    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13863    $RM out/* && rmdir out
13864    cd ..
13865    $RM -r conftest
13866    $RM conftest*
13867
13868 fi
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13870 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13871
13872
13873
13874
13875 hard_links="nottested"
13876 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13877   # do not overwrite the value of need_locks provided by the user
13878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13879 $as_echo_n "checking if we can lock with hard links... " >&6; }
13880   hard_links=yes
13881   $RM conftest*
13882   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13883   touch conftest.a
13884   ln conftest.a conftest.b 2>&5 || hard_links=no
13885   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13887 $as_echo "$hard_links" >&6; }
13888   if test "$hard_links" = no; then
13889     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13890 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13891     need_locks=warn
13892   fi
13893 else
13894   need_locks=no
13895 fi
13896
13897
13898
13899     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13900 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13901
13902   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13903   case $host_os in
13904   aix[4-9]*)
13905     # If we're using GNU nm, then we don't want the "-C" option.
13906     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13907     # Also, AIX nm treats weak defined symbols like other global defined
13908     # symbols, whereas GNU nm marks them as "W".
13909     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13910       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'
13911     else
13912       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'
13913     fi
13914     ;;
13915   pw32*)
13916     export_symbols_cmds_CXX="$ltdll_cmds"
13917   ;;
13918   cygwin* | mingw* | cegcc*)
13919     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'
13920   ;;
13921   *)
13922     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13923   ;;
13924   esac
13925   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13926
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13928 $as_echo "$ld_shlibs_CXX" >&6; }
13929 test "$ld_shlibs_CXX" = no && can_build_shared=no
13930
13931 with_gnu_ld_CXX=$with_gnu_ld
13932
13933
13934
13935
13936
13937
13938 #
13939 # Do we need to explicitly link libc?
13940 #
13941 case "x$archive_cmds_need_lc_CXX" in
13942 x|xyes)
13943   # Assume -lc should be added
13944   archive_cmds_need_lc_CXX=yes
13945
13946   if test "$enable_shared" = yes && test "$GCC" = yes; then
13947     case $archive_cmds_CXX in
13948     *'~'*)
13949       # FIXME: we may have to deal with multi-command sequences.
13950       ;;
13951     '$CC '*)
13952       # Test whether the compiler implicitly links with -lc since on some
13953       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13954       # to ld, don't add -lc before -lgcc.
13955       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13956 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13957 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13958   $as_echo_n "(cached) " >&6
13959 else
13960   $RM conftest*
13961         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13962
13963         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13964   (eval $ac_compile) 2>&5
13965   ac_status=$?
13966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13967   test $ac_status = 0; } 2>conftest.err; then
13968           soname=conftest
13969           lib=conftest
13970           libobjs=conftest.$ac_objext
13971           deplibs=
13972           wl=$lt_prog_compiler_wl_CXX
13973           pic_flag=$lt_prog_compiler_pic_CXX
13974           compiler_flags=-v
13975           linker_flags=-v
13976           verstring=
13977           output_objdir=.
13978           libname=conftest
13979           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13980           allow_undefined_flag_CXX=
13981           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13982   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13983   ac_status=$?
13984   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13985   test $ac_status = 0; }
13986           then
13987             lt_cv_archive_cmds_need_lc_CXX=no
13988           else
13989             lt_cv_archive_cmds_need_lc_CXX=yes
13990           fi
13991           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13992         else
13993           cat conftest.err 1>&5
13994         fi
13995         $RM conftest*
13996
13997 fi
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13999 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14000       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14001       ;;
14002     esac
14003   fi
14004   ;;
14005 esac
14006
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14071 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14072
14073 library_names_spec=
14074 libname_spec='lib$name'
14075 soname_spec=
14076 shrext_cmds=".so"
14077 postinstall_cmds=
14078 postuninstall_cmds=
14079 finish_cmds=
14080 finish_eval=
14081 shlibpath_var=
14082 shlibpath_overrides_runpath=unknown
14083 version_type=none
14084 dynamic_linker="$host_os ld.so"
14085 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14086 need_lib_prefix=unknown
14087 hardcode_into_libs=no
14088
14089 # when you set need_version to no, make sure it does not cause -set_version
14090 # flags to be left without arguments
14091 need_version=unknown
14092
14093 case $host_os in
14094 aix3*)
14095   version_type=linux
14096   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14097   shlibpath_var=LIBPATH
14098
14099   # AIX 3 has no versioning support, so we append a major version to the name.
14100   soname_spec='${libname}${release}${shared_ext}$major'
14101   ;;
14102
14103 aix[4-9]*)
14104   version_type=linux
14105   need_lib_prefix=no
14106   need_version=no
14107   hardcode_into_libs=yes
14108   if test "$host_cpu" = ia64; then
14109     # AIX 5 supports IA64
14110     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14111     shlibpath_var=LD_LIBRARY_PATH
14112   else
14113     # With GCC up to 2.95.x, collect2 would create an import file
14114     # for dependence libraries.  The import file would start with
14115     # the line `#! .'.  This would cause the generated library to
14116     # depend on `.', always an invalid library.  This was fixed in
14117     # development snapshots of GCC prior to 3.0.
14118     case $host_os in
14119       aix4 | aix4.[01] | aix4.[01].*)
14120       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14121            echo ' yes '
14122            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14123         :
14124       else
14125         can_build_shared=no
14126       fi
14127       ;;
14128     esac
14129     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14130     # soname into executable. Probably we can add versioning support to
14131     # collect2, so additional links can be useful in future.
14132     if test "$aix_use_runtimelinking" = yes; then
14133       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14134       # instead of lib<name>.a to let people know that these are not
14135       # typical AIX shared libraries.
14136       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14137     else
14138       # We preserve .a as extension for shared libraries through AIX4.2
14139       # and later when we are not doing run time linking.
14140       library_names_spec='${libname}${release}.a $libname.a'
14141       soname_spec='${libname}${release}${shared_ext}$major'
14142     fi
14143     shlibpath_var=LIBPATH
14144   fi
14145   ;;
14146
14147 amigaos*)
14148   case $host_cpu in
14149   powerpc)
14150     # Since July 2007 AmigaOS4 officially supports .so libraries.
14151     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14152     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14153     ;;
14154   m68k)
14155     library_names_spec='$libname.ixlibrary $libname.a'
14156     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14157     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'
14158     ;;
14159   esac
14160   ;;
14161
14162 beos*)
14163   library_names_spec='${libname}${shared_ext}'
14164   dynamic_linker="$host_os ld.so"
14165   shlibpath_var=LIBRARY_PATH
14166   ;;
14167
14168 bsdi[45]*)
14169   version_type=linux
14170   need_version=no
14171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14172   soname_spec='${libname}${release}${shared_ext}$major'
14173   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14174   shlibpath_var=LD_LIBRARY_PATH
14175   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14176   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14177   # the default ld.so.conf also contains /usr/contrib/lib and
14178   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14179   # libtool to hard-code these into programs
14180   ;;
14181
14182 cygwin* | mingw* | pw32* | cegcc*)
14183   version_type=windows
14184   shrext_cmds=".dll"
14185   need_version=no
14186   need_lib_prefix=no
14187
14188   case $GCC,$host_os in
14189   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14190     library_names_spec='$libname.dll.a'
14191     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14192     postinstall_cmds='base_file=`basename \${file}`~
14193       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14194       dldir=$destdir/`dirname \$dlpath`~
14195       test -d \$dldir || mkdir -p \$dldir~
14196       $install_prog $dir/$dlname \$dldir/$dlname~
14197       chmod a+x \$dldir/$dlname~
14198       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14199         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14200       fi'
14201     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14202       dlpath=$dir/\$dldll~
14203        $RM \$dlpath'
14204     shlibpath_overrides_runpath=yes
14205
14206     case $host_os in
14207     cygwin*)
14208       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14209       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14210
14211       ;;
14212     mingw* | cegcc*)
14213       # MinGW DLLs use traditional 'lib' prefix
14214       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14215       ;;
14216     pw32*)
14217       # pw32 DLLs use 'pw' prefix rather than 'lib'
14218       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14219       ;;
14220     esac
14221     ;;
14222
14223   *)
14224     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14225     ;;
14226   esac
14227   dynamic_linker='Win32 ld.exe'
14228   # FIXME: first we should search . and the directory the executable is in
14229   shlibpath_var=PATH
14230   ;;
14231
14232 darwin* | rhapsody*)
14233   dynamic_linker="$host_os dyld"
14234   version_type=darwin
14235   need_lib_prefix=no
14236   need_version=no
14237   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14238   soname_spec='${libname}${release}${major}$shared_ext'
14239   shlibpath_overrides_runpath=yes
14240   shlibpath_var=DYLD_LIBRARY_PATH
14241   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14242
14243   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14244   ;;
14245
14246 dgux*)
14247   version_type=linux
14248   need_lib_prefix=no
14249   need_version=no
14250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14251   soname_spec='${libname}${release}${shared_ext}$major'
14252   shlibpath_var=LD_LIBRARY_PATH
14253   ;;
14254
14255 freebsd* | dragonfly*)
14256   # DragonFly does not have aout.  When/if they implement a new
14257   # versioning mechanism, adjust this.
14258   if test -x /usr/bin/objformat; then
14259     objformat=`/usr/bin/objformat`
14260   else
14261     case $host_os in
14262     freebsd[23].*) objformat=aout ;;
14263     *) objformat=elf ;;
14264     esac
14265   fi
14266   version_type=freebsd-$objformat
14267   case $version_type in
14268     freebsd-elf*)
14269       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14270       need_version=no
14271       need_lib_prefix=no
14272       ;;
14273     freebsd-*)
14274       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14275       need_version=yes
14276       ;;
14277   esac
14278   shlibpath_var=LD_LIBRARY_PATH
14279   case $host_os in
14280   freebsd2.*)
14281     shlibpath_overrides_runpath=yes
14282     ;;
14283   freebsd3.[01]* | freebsdelf3.[01]*)
14284     shlibpath_overrides_runpath=yes
14285     hardcode_into_libs=yes
14286     ;;
14287   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14288   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14289     shlibpath_overrides_runpath=no
14290     hardcode_into_libs=yes
14291     ;;
14292   *) # from 4.6 on, and DragonFly
14293     shlibpath_overrides_runpath=yes
14294     hardcode_into_libs=yes
14295     ;;
14296   esac
14297   ;;
14298
14299 haiku*)
14300   version_type=linux
14301   need_lib_prefix=no
14302   need_version=no
14303   dynamic_linker="$host_os runtime_loader"
14304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14305   soname_spec='${libname}${release}${shared_ext}$major'
14306   shlibpath_var=LIBRARY_PATH
14307   shlibpath_overrides_runpath=yes
14308   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14309   hardcode_into_libs=yes
14310   ;;
14311
14312 hpux9* | hpux10* | hpux11*)
14313   # Give a soname corresponding to the major version so that dld.sl refuses to
14314   # link against other versions.
14315   version_type=sunos
14316   need_lib_prefix=no
14317   need_version=no
14318   case $host_cpu in
14319   ia64*)
14320     shrext_cmds='.so'
14321     hardcode_into_libs=yes
14322     dynamic_linker="$host_os dld.so"
14323     shlibpath_var=LD_LIBRARY_PATH
14324     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14325     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14326     soname_spec='${libname}${release}${shared_ext}$major'
14327     if test "X$HPUX_IA64_MODE" = X32; then
14328       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14329     else
14330       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14331     fi
14332     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14333     ;;
14334   hppa*64*)
14335     shrext_cmds='.sl'
14336     hardcode_into_libs=yes
14337     dynamic_linker="$host_os dld.sl"
14338     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14339     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14340     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14341     soname_spec='${libname}${release}${shared_ext}$major'
14342     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14343     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14344     ;;
14345   *)
14346     shrext_cmds='.sl'
14347     dynamic_linker="$host_os dld.sl"
14348     shlibpath_var=SHLIB_PATH
14349     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14350     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14351     soname_spec='${libname}${release}${shared_ext}$major'
14352     ;;
14353   esac
14354   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14355   postinstall_cmds='chmod 555 $lib'
14356   # or fails outright, so override atomically:
14357   install_override_mode=555
14358   ;;
14359
14360 interix[3-9]*)
14361   version_type=linux
14362   need_lib_prefix=no
14363   need_version=no
14364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14365   soname_spec='${libname}${release}${shared_ext}$major'
14366   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14367   shlibpath_var=LD_LIBRARY_PATH
14368   shlibpath_overrides_runpath=no
14369   hardcode_into_libs=yes
14370   ;;
14371
14372 irix5* | irix6* | nonstopux*)
14373   case $host_os in
14374     nonstopux*) version_type=nonstopux ;;
14375     *)
14376         if test "$lt_cv_prog_gnu_ld" = yes; then
14377                 version_type=linux
14378         else
14379                 version_type=irix
14380         fi ;;
14381   esac
14382   need_lib_prefix=no
14383   need_version=no
14384   soname_spec='${libname}${release}${shared_ext}$major'
14385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14386   case $host_os in
14387   irix5* | nonstopux*)
14388     libsuff= shlibsuff=
14389     ;;
14390   *)
14391     case $LD in # libtool.m4 will add one of these switches to LD
14392     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14393       libsuff= shlibsuff= libmagic=32-bit;;
14394     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14395       libsuff=32 shlibsuff=N32 libmagic=N32;;
14396     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14397       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14398     *) libsuff= shlibsuff= libmagic=never-match;;
14399     esac
14400     ;;
14401   esac
14402   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14403   shlibpath_overrides_runpath=no
14404   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14405   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14406   hardcode_into_libs=yes
14407   ;;
14408
14409 # No shared lib support for Linux oldld, aout, or coff.
14410 linux*oldld* | linux*aout* | linux*coff*)
14411   dynamic_linker=no
14412   ;;
14413
14414 # This must be Linux ELF.
14415 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14416   version_type=linux
14417   need_lib_prefix=no
14418   need_version=no
14419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14420   soname_spec='${libname}${release}${shared_ext}$major'
14421   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14422   shlibpath_var=LD_LIBRARY_PATH
14423   shlibpath_overrides_runpath=no
14424
14425   # Some binutils ld are patched to set DT_RUNPATH
14426   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14427   $as_echo_n "(cached) " >&6
14428 else
14429   lt_cv_shlibpath_overrides_runpath=no
14430     save_LDFLAGS=$LDFLAGS
14431     save_libdir=$libdir
14432     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14433          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14434     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14435 /* end confdefs.h.  */
14436
14437 int
14438 main ()
14439 {
14440
14441   ;
14442   return 0;
14443 }
14444 _ACEOF
14445 if ac_fn_cxx_try_link "$LINENO"; then :
14446   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14447   lt_cv_shlibpath_overrides_runpath=yes
14448 fi
14449 fi
14450 rm -f core conftest.err conftest.$ac_objext \
14451     conftest$ac_exeext conftest.$ac_ext
14452     LDFLAGS=$save_LDFLAGS
14453     libdir=$save_libdir
14454
14455 fi
14456
14457   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14458
14459   # This implies no fast_install, which is unacceptable.
14460   # Some rework will be needed to allow for fast_install
14461   # before this can be enabled.
14462   hardcode_into_libs=yes
14463
14464   # Append ld.so.conf contents to the search path
14465   if test -f /etc/ld.so.conf; then
14466     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' ' '`
14467     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14468   fi
14469
14470   # We used to test for /lib/ld.so.1 and disable shared libraries on
14471   # powerpc, because MkLinux only supported shared libraries with the
14472   # GNU dynamic linker.  Since this was broken with cross compilers,
14473   # most powerpc-linux boxes support dynamic linking these days and
14474   # people can always --disable-shared, the test was removed, and we
14475   # assume the GNU/Linux dynamic linker is in use.
14476   dynamic_linker='GNU/Linux ld.so'
14477   ;;
14478
14479 netbsd*)
14480   version_type=sunos
14481   need_lib_prefix=no
14482   need_version=no
14483   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14484     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14485     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14486     dynamic_linker='NetBSD (a.out) ld.so'
14487   else
14488     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14489     soname_spec='${libname}${release}${shared_ext}$major'
14490     dynamic_linker='NetBSD ld.elf_so'
14491   fi
14492   shlibpath_var=LD_LIBRARY_PATH
14493   shlibpath_overrides_runpath=yes
14494   hardcode_into_libs=yes
14495   ;;
14496
14497 newsos6)
14498   version_type=linux
14499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14500   shlibpath_var=LD_LIBRARY_PATH
14501   shlibpath_overrides_runpath=yes
14502   ;;
14503
14504 *nto* | *qnx*)
14505   version_type=qnx
14506   need_lib_prefix=no
14507   need_version=no
14508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14509   soname_spec='${libname}${release}${shared_ext}$major'
14510   shlibpath_var=LD_LIBRARY_PATH
14511   shlibpath_overrides_runpath=no
14512   hardcode_into_libs=yes
14513   dynamic_linker='ldqnx.so'
14514   ;;
14515
14516 openbsd*)
14517   version_type=sunos
14518   sys_lib_dlsearch_path_spec="/usr/lib"
14519   need_lib_prefix=no
14520   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14521   case $host_os in
14522     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14523     *)                          need_version=no  ;;
14524   esac
14525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14526   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14527   shlibpath_var=LD_LIBRARY_PATH
14528   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14529     case $host_os in
14530       openbsd2.[89] | openbsd2.[89].*)
14531         shlibpath_overrides_runpath=no
14532         ;;
14533       *)
14534         shlibpath_overrides_runpath=yes
14535         ;;
14536       esac
14537   else
14538     shlibpath_overrides_runpath=yes
14539   fi
14540   ;;
14541
14542 os2*)
14543   libname_spec='$name'
14544   shrext_cmds=".dll"
14545   need_lib_prefix=no
14546   library_names_spec='$libname${shared_ext} $libname.a'
14547   dynamic_linker='OS/2 ld.exe'
14548   shlibpath_var=LIBPATH
14549   ;;
14550
14551 osf3* | osf4* | osf5*)
14552   version_type=osf
14553   need_lib_prefix=no
14554   need_version=no
14555   soname_spec='${libname}${release}${shared_ext}$major'
14556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14557   shlibpath_var=LD_LIBRARY_PATH
14558   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14559   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14560   ;;
14561
14562 rdos*)
14563   dynamic_linker=no
14564   ;;
14565
14566 solaris*)
14567   version_type=linux
14568   need_lib_prefix=no
14569   need_version=no
14570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14571   soname_spec='${libname}${release}${shared_ext}$major'
14572   shlibpath_var=LD_LIBRARY_PATH
14573   shlibpath_overrides_runpath=yes
14574   hardcode_into_libs=yes
14575   # ldd complains unless libraries are executable
14576   postinstall_cmds='chmod +x $lib'
14577   ;;
14578
14579 sunos4*)
14580   version_type=sunos
14581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14582   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14583   shlibpath_var=LD_LIBRARY_PATH
14584   shlibpath_overrides_runpath=yes
14585   if test "$with_gnu_ld" = yes; then
14586     need_lib_prefix=no
14587   fi
14588   need_version=yes
14589   ;;
14590
14591 sysv4 | sysv4.3*)
14592   version_type=linux
14593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14594   soname_spec='${libname}${release}${shared_ext}$major'
14595   shlibpath_var=LD_LIBRARY_PATH
14596   case $host_vendor in
14597     sni)
14598       shlibpath_overrides_runpath=no
14599       need_lib_prefix=no
14600       runpath_var=LD_RUN_PATH
14601       ;;
14602     siemens)
14603       need_lib_prefix=no
14604       ;;
14605     motorola)
14606       need_lib_prefix=no
14607       need_version=no
14608       shlibpath_overrides_runpath=no
14609       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14610       ;;
14611   esac
14612   ;;
14613
14614 sysv4*MP*)
14615   if test -d /usr/nec ;then
14616     version_type=linux
14617     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14618     soname_spec='$libname${shared_ext}.$major'
14619     shlibpath_var=LD_LIBRARY_PATH
14620   fi
14621   ;;
14622
14623 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14624   version_type=freebsd-elf
14625   need_lib_prefix=no
14626   need_version=no
14627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14628   soname_spec='${libname}${release}${shared_ext}$major'
14629   shlibpath_var=LD_LIBRARY_PATH
14630   shlibpath_overrides_runpath=yes
14631   hardcode_into_libs=yes
14632   if test "$with_gnu_ld" = yes; then
14633     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14634   else
14635     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14636     case $host_os in
14637       sco3.2v5*)
14638         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14639         ;;
14640     esac
14641   fi
14642   sys_lib_dlsearch_path_spec='/usr/lib'
14643   ;;
14644
14645 tpf*)
14646   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14647   version_type=linux
14648   need_lib_prefix=no
14649   need_version=no
14650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14651   shlibpath_var=LD_LIBRARY_PATH
14652   shlibpath_overrides_runpath=no
14653   hardcode_into_libs=yes
14654   ;;
14655
14656 uts4*)
14657   version_type=linux
14658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14659   soname_spec='${libname}${release}${shared_ext}$major'
14660   shlibpath_var=LD_LIBRARY_PATH
14661   ;;
14662
14663 *)
14664   dynamic_linker=no
14665   ;;
14666 esac
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14668 $as_echo "$dynamic_linker" >&6; }
14669 test "$dynamic_linker" = no && can_build_shared=no
14670
14671 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14672 if test "$GCC" = yes; then
14673   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14674 fi
14675
14676 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14677   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14678 fi
14679 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14680   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14681 fi
14682
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14721 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14722 hardcode_action_CXX=
14723 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14724    test -n "$runpath_var_CXX" ||
14725    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14726
14727   # We can hardcode non-existent directories.
14728   if test "$hardcode_direct_CXX" != no &&
14729      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14730      # have to relink, otherwise we might link with an installed library
14731      # when we should be linking with a yet-to-be-installed one
14732      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14733      test "$hardcode_minus_L_CXX" != no; then
14734     # Linking always hardcodes the temporary library directory.
14735     hardcode_action_CXX=relink
14736   else
14737     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14738     hardcode_action_CXX=immediate
14739   fi
14740 else
14741   # We cannot hardcode anything, or else we can only hardcode existing
14742   # directories.
14743   hardcode_action_CXX=unsupported
14744 fi
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14746 $as_echo "$hardcode_action_CXX" >&6; }
14747
14748 if test "$hardcode_action_CXX" = relink ||
14749    test "$inherit_rpath_CXX" = yes; then
14750   # Fast installation is not supported
14751   enable_fast_install=no
14752 elif test "$shlibpath_overrides_runpath" = yes ||
14753      test "$enable_shared" = no; then
14754   # Fast installation is not necessary
14755   enable_fast_install=needless
14756 fi
14757
14758
14759
14760
14761
14762
14763
14764   fi # test -n "$compiler"
14765
14766   CC=$lt_save_CC
14767   LDCXX=$LD
14768   LD=$lt_save_LD
14769   GCC=$lt_save_GCC
14770   with_gnu_ld=$lt_save_with_gnu_ld
14771   lt_cv_path_LDCXX=$lt_cv_path_LD
14772   lt_cv_path_LD=$lt_save_path_LD
14773   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14774   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14775 fi # test "$_lt_caught_CXX_error" != yes
14776
14777 ac_ext=c
14778 ac_cpp='$CPP $CPPFLAGS'
14779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795         ac_config_commands="$ac_config_commands libtool"
14796
14797
14798
14799
14800 # Only expand once:
14801
14802
14803 # ... and we need it soon, since it is used by some of the
14804 # link tests in the configure script.
14805 : ${CONFIG_LT=./config.lt}
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
14807 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
14808 as_write_fail=0
14809 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
14810 #! $SHELL
14811 # Generated by $as_me.
14812 # Run this file to recreate a libtool stub with the current configuration.
14813 SHELL=\${CONFIG_SHELL-$SHELL}
14814 export SHELL
14815 _ASEOF
14816 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
14817 ## -------------------- ##
14818 ## M4sh Initialization. ##
14819 ## -------------------- ##
14820
14821 # Be more Bourne compatible
14822 DUALCASE=1; export DUALCASE # for MKS sh
14823 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14824   emulate sh
14825   NULLCMD=:
14826   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14827   # is contrary to our usage.  Disable this feature.
14828   alias -g '${1+"$@"}'='"$@"'
14829   setopt NO_GLOB_SUBST
14830 else
14831   case `(set -o) 2>/dev/null` in #(
14832   *posix*) :
14833     set -o posix ;; #(
14834   *) :
14835      ;;
14836 esac
14837 fi
14838
14839
14840 as_nl='
14841 '
14842 export as_nl
14843 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14844 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14845 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14846 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14847 # Prefer a ksh shell builtin over an external printf program on Solaris,
14848 # but without wasting forks for bash or zsh.
14849 if test -z "$BASH_VERSION$ZSH_VERSION" \
14850     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14851   as_echo='print -r --'
14852   as_echo_n='print -rn --'
14853 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14854   as_echo='printf %s\n'
14855   as_echo_n='printf %s'
14856 else
14857   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14858     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14859     as_echo_n='/usr/ucb/echo -n'
14860   else
14861     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14862     as_echo_n_body='eval
14863       arg=$1;
14864       case $arg in #(
14865       *"$as_nl"*)
14866         expr "X$arg" : "X\\(.*\\)$as_nl";
14867         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14868       esac;
14869       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14870     '
14871     export as_echo_n_body
14872     as_echo_n='sh -c $as_echo_n_body as_echo'
14873   fi
14874   export as_echo_body
14875   as_echo='sh -c $as_echo_body as_echo'
14876 fi
14877
14878 # The user is always right.
14879 if test "${PATH_SEPARATOR+set}" != set; then
14880   PATH_SEPARATOR=:
14881   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14882     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14883       PATH_SEPARATOR=';'
14884   }
14885 fi
14886
14887
14888 # IFS
14889 # We need space, tab and new line, in precisely that order.  Quoting is
14890 # there to prevent editors from complaining about space-tab.
14891 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14892 # splitting by setting IFS to empty value.)
14893 IFS=" ""        $as_nl"
14894
14895 # Find who we are.  Look in the path if we contain no directory separator.
14896 as_myself=
14897 case $0 in #((
14898   *[\\/]* ) as_myself=$0 ;;
14899   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14900 for as_dir in $PATH
14901 do
14902   IFS=$as_save_IFS
14903   test -z "$as_dir" && as_dir=.
14904     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14905   done
14906 IFS=$as_save_IFS
14907
14908      ;;
14909 esac
14910 # We did not find ourselves, most probably we were run as `sh COMMAND'
14911 # in which case we are not to be found in the path.
14912 if test "x$as_myself" = x; then
14913   as_myself=$0
14914 fi
14915 if test ! -f "$as_myself"; then
14916   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14917   exit 1
14918 fi
14919
14920 # Unset variables that we do not need and which cause bugs (e.g. in
14921 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14922 # suppresses any "Segmentation fault" message there.  '((' could
14923 # trigger a bug in pdksh 5.2.14.
14924 for as_var in BASH_ENV ENV MAIL MAILPATH
14925 do eval test x\${$as_var+set} = xset \
14926   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14927 done
14928 PS1='$ '
14929 PS2='> '
14930 PS4='+ '
14931
14932 # NLS nuisances.
14933 LC_ALL=C
14934 export LC_ALL
14935 LANGUAGE=C
14936 export LANGUAGE
14937
14938 # CDPATH.
14939 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14940
14941
14942 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14943 # ----------------------------------------
14944 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14945 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14946 # script with STATUS, using 1 if that was 0.
14947 as_fn_error ()
14948 {
14949   as_status=$1; test $as_status -eq 0 && as_status=1
14950   if test "$4"; then
14951     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14952     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14953   fi
14954   $as_echo "$as_me: error: $2" >&2
14955   as_fn_exit $as_status
14956 } # as_fn_error
14957
14958
14959 # as_fn_set_status STATUS
14960 # -----------------------
14961 # Set $? to STATUS, without forking.
14962 as_fn_set_status ()
14963 {
14964   return $1
14965 } # as_fn_set_status
14966
14967 # as_fn_exit STATUS
14968 # -----------------
14969 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14970 as_fn_exit ()
14971 {
14972   set +e
14973   as_fn_set_status $1
14974   exit $1
14975 } # as_fn_exit
14976
14977 # as_fn_unset VAR
14978 # ---------------
14979 # Portably unset VAR.
14980 as_fn_unset ()
14981 {
14982   { eval $1=; unset $1;}
14983 }
14984 as_unset=as_fn_unset
14985 # as_fn_append VAR VALUE
14986 # ----------------------
14987 # Append the text in VALUE to the end of the definition contained in VAR. Take
14988 # advantage of any shell optimizations that allow amortized linear growth over
14989 # repeated appends, instead of the typical quadratic growth present in naive
14990 # implementations.
14991 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14992   eval 'as_fn_append ()
14993   {
14994     eval $1+=\$2
14995   }'
14996 else
14997   as_fn_append ()
14998   {
14999     eval $1=\$$1\$2
15000   }
15001 fi # as_fn_append
15002
15003 # as_fn_arith ARG...
15004 # ------------------
15005 # Perform arithmetic evaluation on the ARGs, and store the result in the
15006 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15007 # must be portable across $(()) and expr.
15008 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15009   eval 'as_fn_arith ()
15010   {
15011     as_val=$(( $* ))
15012   }'
15013 else
15014   as_fn_arith ()
15015   {
15016     as_val=`expr "$@" || test $? -eq 1`
15017   }
15018 fi # as_fn_arith
15019
15020
15021 if expr a : '\(a\)' >/dev/null 2>&1 &&
15022    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15023   as_expr=expr
15024 else
15025   as_expr=false
15026 fi
15027
15028 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15029   as_basename=basename
15030 else
15031   as_basename=false
15032 fi
15033
15034 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15035   as_dirname=dirname
15036 else
15037   as_dirname=false
15038 fi
15039
15040 as_me=`$as_basename -- "$0" ||
15041 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15042          X"$0" : 'X\(//\)$' \| \
15043          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15044 $as_echo X/"$0" |
15045     sed '/^.*\/\([^/][^/]*\)\/*$/{
15046             s//\1/
15047             q
15048           }
15049           /^X\/\(\/\/\)$/{
15050             s//\1/
15051             q
15052           }
15053           /^X\/\(\/\).*/{
15054             s//\1/
15055             q
15056           }
15057           s/.*/./; q'`
15058
15059 # Avoid depending upon Character Ranges.
15060 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15061 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15062 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15063 as_cr_digits='0123456789'
15064 as_cr_alnum=$as_cr_Letters$as_cr_digits
15065
15066 ECHO_C= ECHO_N= ECHO_T=
15067 case `echo -n x` in #(((((
15068 -n*)
15069   case `echo 'xy\c'` in
15070   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15071   xy)  ECHO_C='\c';;
15072   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15073        ECHO_T=' ';;
15074   esac;;
15075 *)
15076   ECHO_N='-n';;
15077 esac
15078
15079 rm -f conf$$ conf$$.exe conf$$.file
15080 if test -d conf$$.dir; then
15081   rm -f conf$$.dir/conf$$.file
15082 else
15083   rm -f conf$$.dir
15084   mkdir conf$$.dir 2>/dev/null
15085 fi
15086 if (echo >conf$$.file) 2>/dev/null; then
15087   if ln -s conf$$.file conf$$ 2>/dev/null; then
15088     as_ln_s='ln -s'
15089     # ... but there are two gotchas:
15090     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15091     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15092     # In both cases, we have to default to `cp -pR'.
15093     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15094       as_ln_s='cp -pR'
15095   elif ln conf$$.file conf$$ 2>/dev/null; then
15096     as_ln_s=ln
15097   else
15098     as_ln_s='cp -pR'
15099   fi
15100 else
15101   as_ln_s='cp -pR'
15102 fi
15103 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15104 rmdir conf$$.dir 2>/dev/null
15105
15106
15107 # as_fn_mkdir_p
15108 # -------------
15109 # Create "$as_dir" as a directory, including parents if necessary.
15110 as_fn_mkdir_p ()
15111 {
15112
15113   case $as_dir in #(
15114   -*) as_dir=./$as_dir;;
15115   esac
15116   test -d "$as_dir" || eval $as_mkdir_p || {
15117     as_dirs=
15118     while :; do
15119       case $as_dir in #(
15120       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15121       *) as_qdir=$as_dir;;
15122       esac
15123       as_dirs="'$as_qdir' $as_dirs"
15124       as_dir=`$as_dirname -- "$as_dir" ||
15125 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15126          X"$as_dir" : 'X\(//\)[^/]' \| \
15127          X"$as_dir" : 'X\(//\)$' \| \
15128          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15129 $as_echo X"$as_dir" |
15130     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15131             s//\1/
15132             q
15133           }
15134           /^X\(\/\/\)[^/].*/{
15135             s//\1/
15136             q
15137           }
15138           /^X\(\/\/\)$/{
15139             s//\1/
15140             q
15141           }
15142           /^X\(\/\).*/{
15143             s//\1/
15144             q
15145           }
15146           s/.*/./; q'`
15147       test -d "$as_dir" && break
15148     done
15149     test -z "$as_dirs" || eval "mkdir $as_dirs"
15150   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15151
15152
15153 } # as_fn_mkdir_p
15154 if mkdir -p . 2>/dev/null; then
15155   as_mkdir_p='mkdir -p "$as_dir"'
15156 else
15157   test -d ./-p && rmdir ./-p
15158   as_mkdir_p=false
15159 fi
15160
15161
15162 # as_fn_executable_p FILE
15163 # -----------------------
15164 # Test if FILE is an executable regular file.
15165 as_fn_executable_p ()
15166 {
15167   test -f "$1" && test -x "$1"
15168 } # as_fn_executable_p
15169 as_test_x='test -x'
15170 as_executable_p=as_fn_executable_p
15171
15172 # Sed expression to map a string onto a valid CPP name.
15173 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15174
15175 # Sed expression to map a string onto a valid variable name.
15176 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15177
15178
15179 exec 6>&1
15180 ## --------------------------------- ##
15181 ## Main body of "$CONFIG_LT" script. ##
15182 ## --------------------------------- ##
15183 _ASEOF
15184 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
15185
15186 cat >>"$CONFIG_LT" <<\_LTEOF
15187 lt_cl_silent=false
15188 exec 5>>config.log
15189 {
15190   echo
15191   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15192 ## Running $as_me. ##
15193 _ASBOX
15194 } >&5
15195
15196 lt_cl_help="\
15197 \`$as_me' creates a local libtool stub from the current configuration,
15198 for use in further configure time tests before the real libtool is
15199 generated.
15200
15201 Usage: $0 [OPTIONS]
15202
15203   -h, --help      print this help, then exit
15204   -V, --version   print version number, then exit
15205   -q, --quiet     do not print progress messages
15206   -d, --debug     don't remove temporary files
15207
15208 Report bugs to <[email protected]>."
15209
15210 lt_cl_version="\
15211 config.lt
15212 configured by $0, generated by GNU Autoconf 2.69.
15213
15214 Copyright (C) 2009 Free Software Foundation, Inc.
15215 This config.lt script is free software; the Free Software Foundation
15216 gives unlimited permision to copy, distribute and modify it."
15217
15218 while test $# != 0
15219 do
15220   case $1 in
15221     --version | --v* | -V )
15222       echo "$lt_cl_version"; exit 0 ;;
15223     --help | --h* | -h )
15224       echo "$lt_cl_help"; exit 0 ;;
15225     --debug | --d* | -d )
15226       debug=: ;;
15227     --quiet | --q* | --silent | --s* | -q )
15228       lt_cl_silent=: ;;
15229
15230     -*) as_fn_error $? "unrecognized option: $1
15231 Try \`$0 --help' for more information." "$LINENO" 5 ;;
15232
15233     *) as_fn_error $? "unrecognized argument: $1
15234 Try \`$0 --help' for more information." "$LINENO" 5 ;;
15235   esac
15236   shift
15237 done
15238
15239 if $lt_cl_silent; then
15240   exec 6>/dev/null
15241 fi
15242 _LTEOF
15243
15244 cat >>"$CONFIG_LT" <<_LTEOF
15245
15246
15247 # The HP-UX ksh and POSIX shell print the target directory to stdout
15248 # if CDPATH is set.
15249 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15250
15251 sed_quote_subst='$sed_quote_subst'
15252 double_quote_subst='$double_quote_subst'
15253 delay_variable_subst='$delay_variable_subst'
15254 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15255 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15256 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15257 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15258 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15259 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15260 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15261 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15262 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15263 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15264 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15265 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15266 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15267 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15268 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15269 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15270 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15271 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15272 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15273 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15274 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15275 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15276 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15277 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15278 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15279 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15280 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15281 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15282 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15283 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15284 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15285 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15286 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15287 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15288 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15289 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15290 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15291 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15292 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15293 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15294 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15295 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15296 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15297 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15298 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15299 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15300 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15301 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15302 lt_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"`'
15303 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15304 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15305 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15306 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15307 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15308 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15309 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15310 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15311 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15312 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15313 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15314 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15315 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15316 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15317 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15318 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15319 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15320 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15321 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15322 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15323 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15324 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15325 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15326 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15327 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15328 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15329 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15330 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15331 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15332 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15333 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15334 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15335 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15336 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15337 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15338 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15339 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15340 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15341 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15342 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15343 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15344 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15345 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15346 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15347 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15348 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15349 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15350 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15351 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15352 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15353 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15354 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15355 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15356 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15357 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15358 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15359 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15360 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15361 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15362 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15363 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15364 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15365 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15366 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15367 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15368 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15369 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15370 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15371 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15372 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15373 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15374 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15375 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15376 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15377 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15378 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15379 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15380 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15381 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15382 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15383 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15384 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15385 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15386 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15387 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15388 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15389 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15390 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15391 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15392 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15393 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15394 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15395 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15396 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15397 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15398 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15399 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15400 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15401 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15402 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15403 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15404 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15405 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15406 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15407 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15408 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15409 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15410 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15411 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15412 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15413 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15414 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15415 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15416 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15417 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15418 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15419 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15420 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15421 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15422 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15423 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15424 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15425 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15426 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15427 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15428 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15429
15430 LTCC='$LTCC'
15431 LTCFLAGS='$LTCFLAGS'
15432 compiler='$compiler_DEFAULT'
15433
15434 # A function that is used when there is no print builtin or printf.
15435 func_fallback_echo ()
15436 {
15437   eval 'cat <<_LTECHO_EOF
15438 \$1
15439 _LTECHO_EOF'
15440 }
15441
15442 # Quote evaled strings.
15443 for var in SHELL \
15444 ECHO \
15445 SED \
15446 GREP \
15447 EGREP \
15448 FGREP \
15449 LD \
15450 NM \
15451 LN_S \
15452 lt_SP2NL \
15453 lt_NL2SP \
15454 reload_flag \
15455 OBJDUMP \
15456 deplibs_check_method \
15457 file_magic_cmd \
15458 AR \
15459 AR_FLAGS \
15460 STRIP \
15461 RANLIB \
15462 CC \
15463 CFLAGS \
15464 compiler \
15465 lt_cv_sys_global_symbol_pipe \
15466 lt_cv_sys_global_symbol_to_cdecl \
15467 lt_cv_sys_global_symbol_to_c_name_address \
15468 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15469 lt_prog_compiler_no_builtin_flag \
15470 lt_prog_compiler_wl \
15471 lt_prog_compiler_pic \
15472 lt_prog_compiler_static \
15473 lt_cv_prog_compiler_c_o \
15474 need_locks \
15475 DSYMUTIL \
15476 NMEDIT \
15477 LIPO \
15478 OTOOL \
15479 OTOOL64 \
15480 shrext_cmds \
15481 export_dynamic_flag_spec \
15482 whole_archive_flag_spec \
15483 compiler_needs_object \
15484 with_gnu_ld \
15485 allow_undefined_flag \
15486 no_undefined_flag \
15487 hardcode_libdir_flag_spec \
15488 hardcode_libdir_flag_spec_ld \
15489 hardcode_libdir_separator \
15490 fix_srcfile_path \
15491 exclude_expsyms \
15492 include_expsyms \
15493 file_list_spec \
15494 variables_saved_for_relink \
15495 libname_spec \
15496 library_names_spec \
15497 soname_spec \
15498 install_override_mode \
15499 finish_eval \
15500 old_striplib \
15501 striplib \
15502 compiler_lib_search_dirs \
15503 predep_objects \
15504 postdep_objects \
15505 predeps \
15506 postdeps \
15507 compiler_lib_search_path \
15508 LD_CXX \
15509 reload_flag_CXX \
15510 compiler_CXX \
15511 lt_prog_compiler_no_builtin_flag_CXX \
15512 lt_prog_compiler_wl_CXX \
15513 lt_prog_compiler_pic_CXX \
15514 lt_prog_compiler_static_CXX \
15515 lt_cv_prog_compiler_c_o_CXX \
15516 export_dynamic_flag_spec_CXX \
15517 whole_archive_flag_spec_CXX \
15518 compiler_needs_object_CXX \
15519 with_gnu_ld_CXX \
15520 allow_undefined_flag_CXX \
15521 no_undefined_flag_CXX \
15522 hardcode_libdir_flag_spec_CXX \
15523 hardcode_libdir_flag_spec_ld_CXX \
15524 hardcode_libdir_separator_CXX \
15525 fix_srcfile_path_CXX \
15526 exclude_expsyms_CXX \
15527 include_expsyms_CXX \
15528 file_list_spec_CXX \
15529 compiler_lib_search_dirs_CXX \
15530 predep_objects_CXX \
15531 postdep_objects_CXX \
15532 predeps_CXX \
15533 postdeps_CXX \
15534 compiler_lib_search_path_CXX; do
15535     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15536     *[\\\\\\\`\\"\\\$]*)
15537       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15538       ;;
15539     *)
15540       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15541       ;;
15542     esac
15543 done
15544
15545 # Double-quote double-evaled strings.
15546 for var in reload_cmds \
15547 old_postinstall_cmds \
15548 old_postuninstall_cmds \
15549 old_archive_cmds \
15550 extract_expsyms_cmds \
15551 old_archive_from_new_cmds \
15552 old_archive_from_expsyms_cmds \
15553 archive_cmds \
15554 archive_expsym_cmds \
15555 module_cmds \
15556 module_expsym_cmds \
15557 export_symbols_cmds \
15558 prelink_cmds \
15559 postinstall_cmds \
15560 postuninstall_cmds \
15561 finish_cmds \
15562 sys_lib_search_path_spec \
15563 sys_lib_dlsearch_path_spec \
15564 reload_cmds_CXX \
15565 old_archive_cmds_CXX \
15566 old_archive_from_new_cmds_CXX \
15567 old_archive_from_expsyms_cmds_CXX \
15568 archive_cmds_CXX \
15569 archive_expsym_cmds_CXX \
15570 module_cmds_CXX \
15571 module_expsym_cmds_CXX \
15572 export_symbols_cmds_CXX \
15573 prelink_cmds_CXX; do
15574     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15575     *[\\\\\\\`\\"\\\$]*)
15576       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15577       ;;
15578     *)
15579       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15580       ;;
15581     esac
15582 done
15583
15584 ac_aux_dir='$ac_aux_dir'
15585 xsi_shell='$xsi_shell'
15586 lt_shell_append='$lt_shell_append'
15587
15588 # See if we are running on zsh, and set the options which allow our
15589 # commands through without removal of \ escapes INIT.
15590 if test -n "\${ZSH_VERSION+set}" ; then
15591    setopt NO_GLOB_SUBST
15592 fi
15593
15594
15595     PACKAGE='$PACKAGE'
15596     VERSION='$VERSION'
15597     TIMESTAMP='$TIMESTAMP'
15598     RM='$RM'
15599     ofile='$ofile'
15600
15601
15602
15603
15604
15605 _LTEOF
15606
15607 cat >>"$CONFIG_LT" <<\_LTEOF
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
15609 $as_echo "$as_me: creating $ofile" >&6;}
15610
15611
15612     # See if we are running on zsh, and set the options which allow our
15613     # commands through without removal of \ escapes.
15614     if test -n "${ZSH_VERSION+set}" ; then
15615       setopt NO_GLOB_SUBST
15616     fi
15617
15618     cfgfile="${ofile}T"
15619     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15620     $RM "$cfgfile"
15621
15622     cat <<_LT_EOF >> "$cfgfile"
15623 #! $SHELL
15624
15625 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15626 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15627 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15628 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15629 #
15630 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15631 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15632 #   Written by Gordon Matzigkeit, 1996
15633 #
15634 #   This file is part of GNU Libtool.
15635 #
15636 # GNU Libtool is free software; you can redistribute it and/or
15637 # modify it under the terms of the GNU General Public License as
15638 # published by the Free Software Foundation; either version 2 of
15639 # the License, or (at your option) any later version.
15640 #
15641 # As a special exception to the GNU General Public License,
15642 # if you distribute this file as part of a program or library that
15643 # is built using GNU Libtool, you may include this file under the
15644 # same distribution terms that you use for the rest of that program.
15645 #
15646 # GNU Libtool is distributed in the hope that it will be useful,
15647 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15648 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15649 # GNU General Public License for more details.
15650 #
15651 # You should have received a copy of the GNU General Public License
15652 # along with GNU Libtool; see the file COPYING.  If not, a copy
15653 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15654 # obtained by writing to the Free Software Foundation, Inc.,
15655 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15656
15657
15658 # The names of the tagged configurations supported by this script.
15659 available_tags="CXX "
15660
15661 # ### BEGIN LIBTOOL CONFIG
15662
15663 # Which release of libtool.m4 was used?
15664 macro_version=$macro_version
15665 macro_revision=$macro_revision
15666
15667 # Whether or not to build shared libraries.
15668 build_libtool_libs=$enable_shared
15669
15670 # Whether or not to build static libraries.
15671 build_old_libs=$enable_static
15672
15673 # What type of objects to build.
15674 pic_mode=$pic_mode
15675
15676 # Whether or not to optimize for fast installation.
15677 fast_install=$enable_fast_install
15678
15679 # Shell to use when invoking shell scripts.
15680 SHELL=$lt_SHELL
15681
15682 # An echo program that protects backslashes.
15683 ECHO=$lt_ECHO
15684
15685 # The host system.
15686 host_alias=$host_alias
15687 host=$host
15688 host_os=$host_os
15689
15690 # The build system.
15691 build_alias=$build_alias
15692 build=$build
15693 build_os=$build_os
15694
15695 # A sed program that does not truncate output.
15696 SED=$lt_SED
15697
15698 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15699 Xsed="\$SED -e 1s/^X//"
15700
15701 # A grep program that handles long lines.
15702 GREP=$lt_GREP
15703
15704 # An ERE matcher.
15705 EGREP=$lt_EGREP
15706
15707 # A literal string matcher.
15708 FGREP=$lt_FGREP
15709
15710 # A BSD- or MS-compatible name lister.
15711 NM=$lt_NM
15712
15713 # Whether we need soft or hard links.
15714 LN_S=$lt_LN_S
15715
15716 # What is the maximum length of a command?
15717 max_cmd_len=$max_cmd_len
15718
15719 # Object file suffix (normally "o").
15720 objext=$ac_objext
15721
15722 # Executable file suffix (normally "").
15723 exeext=$exeext
15724
15725 # whether the shell understands "unset".
15726 lt_unset=$lt_unset
15727
15728 # turn spaces into newlines.
15729 SP2NL=$lt_lt_SP2NL
15730
15731 # turn newlines into spaces.
15732 NL2SP=$lt_lt_NL2SP
15733
15734 # An object symbol dumper.
15735 OBJDUMP=$lt_OBJDUMP
15736
15737 # Method to check whether dependent libraries are shared objects.
15738 deplibs_check_method=$lt_deplibs_check_method
15739
15740 # Command to use when deplibs_check_method == "file_magic".
15741 file_magic_cmd=$lt_file_magic_cmd
15742
15743 # The archiver.
15744 AR=$lt_AR
15745 AR_FLAGS=$lt_AR_FLAGS
15746
15747 # A symbol stripping program.
15748 STRIP=$lt_STRIP
15749
15750 # Commands used to install an old-style archive.
15751 RANLIB=$lt_RANLIB
15752 old_postinstall_cmds=$lt_old_postinstall_cmds
15753 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15754
15755 # Whether to use a lock for old archive extraction.
15756 lock_old_archive_extraction=$lock_old_archive_extraction
15757
15758 # A C compiler.
15759 LTCC=$lt_CC
15760
15761 # LTCC compiler flags.
15762 LTCFLAGS=$lt_CFLAGS
15763
15764 # Take the output of nm and produce a listing of raw symbols and C names.
15765 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15766
15767 # Transform the output of nm in a proper C declaration.
15768 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15769
15770 # Transform the output of nm in a C name address pair.
15771 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15772
15773 # Transform the output of nm in a C name address pair when lib prefix is needed.
15774 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15775
15776 # The name of the directory that contains temporary libtool files.
15777 objdir=$objdir
15778
15779 # Used to examine libraries when file_magic_cmd begins with "file".
15780 MAGIC_CMD=$MAGIC_CMD
15781
15782 # Must we lock files when doing compilation?
15783 need_locks=$lt_need_locks
15784
15785 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15786 DSYMUTIL=$lt_DSYMUTIL
15787
15788 # Tool to change global to local symbols on Mac OS X.
15789 NMEDIT=$lt_NMEDIT
15790
15791 # Tool to manipulate fat objects and archives on Mac OS X.
15792 LIPO=$lt_LIPO
15793
15794 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15795 OTOOL=$lt_OTOOL
15796
15797 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15798 OTOOL64=$lt_OTOOL64
15799
15800 # Old archive suffix (normally "a").
15801 libext=$libext
15802
15803 # Shared library suffix (normally ".so").
15804 shrext_cmds=$lt_shrext_cmds
15805
15806 # The commands to extract the exported symbol list from a shared archive.
15807 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15808
15809 # Variables whose values should be saved in libtool wrapper scripts and
15810 # restored at link time.
15811 variables_saved_for_relink=$lt_variables_saved_for_relink
15812
15813 # Do we need the "lib" prefix for modules?
15814 need_lib_prefix=$need_lib_prefix
15815
15816 # Do we need a version for libraries?
15817 need_version=$need_version
15818
15819 # Library versioning type.
15820 version_type=$version_type
15821
15822 # Shared library runtime path variable.
15823 runpath_var=$runpath_var
15824
15825 # Shared library path variable.
15826 shlibpath_var=$shlibpath_var
15827
15828 # Is shlibpath searched before the hard-coded library search path?
15829 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15830
15831 # Format of library name prefix.
15832 libname_spec=$lt_libname_spec
15833
15834 # List of archive names.  First name is the real one, the rest are links.
15835 # The last name is the one that the linker finds with -lNAME
15836 library_names_spec=$lt_library_names_spec
15837
15838 # The coded name of the library, if different from the real name.
15839 soname_spec=$lt_soname_spec
15840
15841 # Permission mode override for installation of shared libraries.
15842 install_override_mode=$lt_install_override_mode
15843
15844 # Command to use after installation of a shared archive.
15845 postinstall_cmds=$lt_postinstall_cmds
15846
15847 # Command to use after uninstallation of a shared archive.
15848 postuninstall_cmds=$lt_postuninstall_cmds
15849
15850 # Commands used to finish a libtool library installation in a directory.
15851 finish_cmds=$lt_finish_cmds
15852
15853 # As "finish_cmds", except a single script fragment to be evaled but
15854 # not shown.
15855 finish_eval=$lt_finish_eval
15856
15857 # Whether we should hardcode library paths into libraries.
15858 hardcode_into_libs=$hardcode_into_libs
15859
15860 # Compile-time system search path for libraries.
15861 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15862
15863 # Run-time system search path for libraries.
15864 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15865
15866 # Whether dlopen is supported.
15867 dlopen_support=$enable_dlopen
15868
15869 # Whether dlopen of programs is supported.
15870 dlopen_self=$enable_dlopen_self
15871
15872 # Whether dlopen of statically linked programs is supported.
15873 dlopen_self_static=$enable_dlopen_self_static
15874
15875 # Commands to strip libraries.
15876 old_striplib=$lt_old_striplib
15877 striplib=$lt_striplib
15878
15879
15880 # The linker used to build libraries.
15881 LD=$lt_LD
15882
15883 # How to create reloadable object files.
15884 reload_flag=$lt_reload_flag
15885 reload_cmds=$lt_reload_cmds
15886
15887 # Commands used to build an old-style archive.
15888 old_archive_cmds=$lt_old_archive_cmds
15889
15890 # A language specific compiler.
15891 CC=$lt_compiler
15892
15893 # Is the compiler the GNU compiler?
15894 with_gcc=$GCC
15895
15896 # Compiler flag to turn off builtin functions.
15897 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15898
15899 # How to pass a linker flag through the compiler.
15900 wl=$lt_lt_prog_compiler_wl
15901
15902 # Additional compiler flags for building library objects.
15903 pic_flag=$lt_lt_prog_compiler_pic
15904
15905 # Compiler flag to prevent dynamic linking.
15906 link_static_flag=$lt_lt_prog_compiler_static
15907
15908 # Does compiler simultaneously support -c and -o options?
15909 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15910
15911 # Whether or not to add -lc for building shared libraries.
15912 build_libtool_need_lc=$archive_cmds_need_lc
15913
15914 # Whether or not to disallow shared libs when runtime libs are static.
15915 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15916
15917 # Compiler flag to allow reflexive dlopens.
15918 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15919
15920 # Compiler flag to generate shared objects directly from archives.
15921 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15922
15923 # Whether the compiler copes with passing no objects directly.
15924 compiler_needs_object=$lt_compiler_needs_object
15925
15926 # Create an old-style archive from a shared archive.
15927 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15928
15929 # Create a temporary old-style archive to link instead of a shared archive.
15930 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15931
15932 # Commands used to build a shared archive.
15933 archive_cmds=$lt_archive_cmds
15934 archive_expsym_cmds=$lt_archive_expsym_cmds
15935
15936 # Commands used to build a loadable module if different from building
15937 # a shared archive.
15938 module_cmds=$lt_module_cmds
15939 module_expsym_cmds=$lt_module_expsym_cmds
15940
15941 # Whether we are building with GNU ld or not.
15942 with_gnu_ld=$lt_with_gnu_ld
15943
15944 # Flag that allows shared libraries with undefined symbols to be built.
15945 allow_undefined_flag=$lt_allow_undefined_flag
15946
15947 # Flag that enforces no undefined symbols.
15948 no_undefined_flag=$lt_no_undefined_flag
15949
15950 # Flag to hardcode \$libdir into a binary during linking.
15951 # This must work even if \$libdir does not exist
15952 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15953
15954 # If ld is used when linking, flag to hardcode \$libdir into a binary
15955 # during linking.  This must work even if \$libdir does not exist.
15956 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15957
15958 # Whether we need a single "-rpath" flag with a separated argument.
15959 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15960
15961 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15962 # DIR into the resulting binary.
15963 hardcode_direct=$hardcode_direct
15964
15965 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15966 # DIR into the resulting binary and the resulting library dependency is
15967 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15968 # library is relocated.
15969 hardcode_direct_absolute=$hardcode_direct_absolute
15970
15971 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15972 # into the resulting binary.
15973 hardcode_minus_L=$hardcode_minus_L
15974
15975 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15976 # into the resulting binary.
15977 hardcode_shlibpath_var=$hardcode_shlibpath_var
15978
15979 # Set to "yes" if building a shared library automatically hardcodes DIR
15980 # into the library and all subsequent libraries and executables linked
15981 # against it.
15982 hardcode_automatic=$hardcode_automatic
15983
15984 # Set to yes if linker adds runtime paths of dependent libraries
15985 # to runtime path list.
15986 inherit_rpath=$inherit_rpath
15987
15988 # Whether libtool must link a program against all its dependency libraries.
15989 link_all_deplibs=$link_all_deplibs
15990
15991 # Fix the shell variable \$srcfile for the compiler.
15992 fix_srcfile_path=$lt_fix_srcfile_path
15993
15994 # Set to "yes" if exported symbols are required.
15995 always_export_symbols=$always_export_symbols
15996
15997 # The commands to list exported symbols.
15998 export_symbols_cmds=$lt_export_symbols_cmds
15999
16000 # Symbols that should not be listed in the preloaded symbols.
16001 exclude_expsyms=$lt_exclude_expsyms
16002
16003 # Symbols that must always be exported.
16004 include_expsyms=$lt_include_expsyms
16005
16006 # Commands necessary for linking programs (against libraries) with templates.
16007 prelink_cmds=$lt_prelink_cmds
16008
16009 # Specify filename containing input files.
16010 file_list_spec=$lt_file_list_spec
16011
16012 # How to hardcode a shared library path into an executable.
16013 hardcode_action=$hardcode_action
16014
16015 # The directories searched by this compiler when creating a shared library.
16016 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16017
16018 # Dependencies to place before and after the objects being linked to
16019 # create a shared library.
16020 predep_objects=$lt_predep_objects
16021 postdep_objects=$lt_postdep_objects
16022 predeps=$lt_predeps
16023 postdeps=$lt_postdeps
16024
16025 # The library search path used internally by the compiler when linking
16026 # a shared library.
16027 compiler_lib_search_path=$lt_compiler_lib_search_path
16028
16029 # ### END LIBTOOL CONFIG
16030
16031 _LT_EOF
16032
16033   case $host_os in
16034   aix3*)
16035     cat <<\_LT_EOF >> "$cfgfile"
16036 # AIX sometimes has problems with the GCC collect2 program.  For some
16037 # reason, if we set the COLLECT_NAMES environment variable, the problems
16038 # vanish in a puff of smoke.
16039 if test "X${COLLECT_NAMES+set}" != Xset; then
16040   COLLECT_NAMES=
16041   export COLLECT_NAMES
16042 fi
16043 _LT_EOF
16044     ;;
16045   esac
16046
16047
16048 ltmain="$ac_aux_dir/ltmain.sh"
16049
16050
16051   # We use sed instead of cat because bash on DJGPP gets confused if
16052   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16053   # text mode, it properly converts lines to CR/LF.  This bash problem
16054   # is reportedly fixed, but why not run on old versions too?
16055   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16056     || (rm -f "$cfgfile"; exit 1)
16057
16058   case $xsi_shell in
16059   yes)
16060     cat << \_LT_EOF >> "$cfgfile"
16061
16062 # func_dirname file append nondir_replacement
16063 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16064 # otherwise set result to NONDIR_REPLACEMENT.
16065 func_dirname ()
16066 {
16067   case ${1} in
16068     */*) func_dirname_result="${1%/*}${2}" ;;
16069     *  ) func_dirname_result="${3}" ;;
16070   esac
16071 }
16072
16073 # func_basename file
16074 func_basename ()
16075 {
16076   func_basename_result="${1##*/}"
16077 }
16078
16079 # func_dirname_and_basename file append nondir_replacement
16080 # perform func_basename and func_dirname in a single function
16081 # call:
16082 #   dirname:  Compute the dirname of FILE.  If nonempty,
16083 #             add APPEND to the result, otherwise set result
16084 #             to NONDIR_REPLACEMENT.
16085 #             value returned in "$func_dirname_result"
16086 #   basename: Compute filename of FILE.
16087 #             value retuned in "$func_basename_result"
16088 # Implementation must be kept synchronized with func_dirname
16089 # and func_basename. For efficiency, we do not delegate to
16090 # those functions but instead duplicate the functionality here.
16091 func_dirname_and_basename ()
16092 {
16093   case ${1} in
16094     */*) func_dirname_result="${1%/*}${2}" ;;
16095     *  ) func_dirname_result="${3}" ;;
16096   esac
16097   func_basename_result="${1##*/}"
16098 }
16099
16100 # func_stripname prefix suffix name
16101 # strip PREFIX and SUFFIX off of NAME.
16102 # PREFIX and SUFFIX must not contain globbing or regex special
16103 # characters, hashes, percent signs, but SUFFIX may contain a leading
16104 # dot (in which case that matches only a dot).
16105 func_stripname ()
16106 {
16107   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16108   # positional parameters, so assign one to ordinary parameter first.
16109   func_stripname_result=${3}
16110   func_stripname_result=${func_stripname_result#"${1}"}
16111   func_stripname_result=${func_stripname_result%"${2}"}
16112 }
16113
16114 # func_opt_split
16115 func_opt_split ()
16116 {
16117   func_opt_split_opt=${1%%=*}
16118   func_opt_split_arg=${1#*=}
16119 }
16120
16121 # func_lo2o object
16122 func_lo2o ()
16123 {
16124   case ${1} in
16125     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16126     *)    func_lo2o_result=${1} ;;
16127   esac
16128 }
16129
16130 # func_xform libobj-or-source
16131 func_xform ()
16132 {
16133   func_xform_result=${1%.*}.lo
16134 }
16135
16136 # func_arith arithmetic-term...
16137 func_arith ()
16138 {
16139   func_arith_result=$(( $* ))
16140 }
16141
16142 # func_len string
16143 # STRING may not start with a hyphen.
16144 func_len ()
16145 {
16146   func_len_result=${#1}
16147 }
16148
16149 _LT_EOF
16150     ;;
16151   *) # Bourne compatible functions.
16152     cat << \_LT_EOF >> "$cfgfile"
16153
16154 # func_dirname file append nondir_replacement
16155 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16156 # otherwise set result to NONDIR_REPLACEMENT.
16157 func_dirname ()
16158 {
16159   # Extract subdirectory from the argument.
16160   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16161   if test "X$func_dirname_result" = "X${1}"; then
16162     func_dirname_result="${3}"
16163   else
16164     func_dirname_result="$func_dirname_result${2}"
16165   fi
16166 }
16167
16168 # func_basename file
16169 func_basename ()
16170 {
16171   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16172 }
16173
16174
16175 # func_stripname prefix suffix name
16176 # strip PREFIX and SUFFIX off of NAME.
16177 # PREFIX and SUFFIX must not contain globbing or regex special
16178 # characters, hashes, percent signs, but SUFFIX may contain a leading
16179 # dot (in which case that matches only a dot).
16180 # func_strip_suffix prefix name
16181 func_stripname ()
16182 {
16183   case ${2} in
16184     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16185     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16186   esac
16187 }
16188
16189 # sed scripts:
16190 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16191 my_sed_long_arg='1s/^-[^=]*=//'
16192
16193 # func_opt_split
16194 func_opt_split ()
16195 {
16196   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16197   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16198 }
16199
16200 # func_lo2o object
16201 func_lo2o ()
16202 {
16203   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16204 }
16205
16206 # func_xform libobj-or-source
16207 func_xform ()
16208 {
16209   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16210 }
16211
16212 # func_arith arithmetic-term...
16213 func_arith ()
16214 {
16215   func_arith_result=`expr "$@"`
16216 }
16217
16218 # func_len string
16219 # STRING may not start with a hyphen.
16220 func_len ()
16221 {
16222   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16223 }
16224
16225 _LT_EOF
16226 esac
16227
16228 case $lt_shell_append in
16229   yes)
16230     cat << \_LT_EOF >> "$cfgfile"
16231
16232 # func_append var value
16233 # Append VALUE to the end of shell variable VAR.
16234 func_append ()
16235 {
16236   eval "$1+=\$2"
16237 }
16238 _LT_EOF
16239     ;;
16240   *)
16241     cat << \_LT_EOF >> "$cfgfile"
16242
16243 # func_append var value
16244 # Append VALUE to the end of shell variable VAR.
16245 func_append ()
16246 {
16247   eval "$1=\$$1\$2"
16248 }
16249
16250 _LT_EOF
16251     ;;
16252   esac
16253
16254
16255   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16256     || (rm -f "$cfgfile"; exit 1)
16257
16258   mv -f "$cfgfile" "$ofile" ||
16259     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16260   chmod +x "$ofile"
16261
16262
16263     cat <<_LT_EOF >> "$ofile"
16264
16265 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16266
16267 # The linker used to build libraries.
16268 LD=$lt_LD_CXX
16269
16270 # How to create reloadable object files.
16271 reload_flag=$lt_reload_flag_CXX
16272 reload_cmds=$lt_reload_cmds_CXX
16273
16274 # Commands used to build an old-style archive.
16275 old_archive_cmds=$lt_old_archive_cmds_CXX
16276
16277 # A language specific compiler.
16278 CC=$lt_compiler_CXX
16279
16280 # Is the compiler the GNU compiler?
16281 with_gcc=$GCC_CXX
16282
16283 # Compiler flag to turn off builtin functions.
16284 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16285
16286 # How to pass a linker flag through the compiler.
16287 wl=$lt_lt_prog_compiler_wl_CXX
16288
16289 # Additional compiler flags for building library objects.
16290 pic_flag=$lt_lt_prog_compiler_pic_CXX
16291
16292 # Compiler flag to prevent dynamic linking.
16293 link_static_flag=$lt_lt_prog_compiler_static_CXX
16294
16295 # Does compiler simultaneously support -c and -o options?
16296 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16297
16298 # Whether or not to add -lc for building shared libraries.
16299 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16300
16301 # Whether or not to disallow shared libs when runtime libs are static.
16302 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16303
16304 # Compiler flag to allow reflexive dlopens.
16305 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16306
16307 # Compiler flag to generate shared objects directly from archives.
16308 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16309
16310 # Whether the compiler copes with passing no objects directly.
16311 compiler_needs_object=$lt_compiler_needs_object_CXX
16312
16313 # Create an old-style archive from a shared archive.
16314 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16315
16316 # Create a temporary old-style archive to link instead of a shared archive.
16317 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16318
16319 # Commands used to build a shared archive.
16320 archive_cmds=$lt_archive_cmds_CXX
16321 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16322
16323 # Commands used to build a loadable module if different from building
16324 # a shared archive.
16325 module_cmds=$lt_module_cmds_CXX
16326 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16327
16328 # Whether we are building with GNU ld or not.
16329 with_gnu_ld=$lt_with_gnu_ld_CXX
16330
16331 # Flag that allows shared libraries with undefined symbols to be built.
16332 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16333
16334 # Flag that enforces no undefined symbols.
16335 no_undefined_flag=$lt_no_undefined_flag_CXX
16336
16337 # Flag to hardcode \$libdir into a binary during linking.
16338 # This must work even if \$libdir does not exist
16339 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16340
16341 # If ld is used when linking, flag to hardcode \$libdir into a binary
16342 # during linking.  This must work even if \$libdir does not exist.
16343 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16344
16345 # Whether we need a single "-rpath" flag with a separated argument.
16346 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16347
16348 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16349 # DIR into the resulting binary.
16350 hardcode_direct=$hardcode_direct_CXX
16351
16352 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16353 # DIR into the resulting binary and the resulting library dependency is
16354 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16355 # library is relocated.
16356 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16357
16358 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16359 # into the resulting binary.
16360 hardcode_minus_L=$hardcode_minus_L_CXX
16361
16362 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16363 # into the resulting binary.
16364 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16365
16366 # Set to "yes" if building a shared library automatically hardcodes DIR
16367 # into the library and all subsequent libraries and executables linked
16368 # against it.
16369 hardcode_automatic=$hardcode_automatic_CXX
16370
16371 # Set to yes if linker adds runtime paths of dependent libraries
16372 # to runtime path list.
16373 inherit_rpath=$inherit_rpath_CXX
16374
16375 # Whether libtool must link a program against all its dependency libraries.
16376 link_all_deplibs=$link_all_deplibs_CXX
16377
16378 # Fix the shell variable \$srcfile for the compiler.
16379 fix_srcfile_path=$lt_fix_srcfile_path_CXX
16380
16381 # Set to "yes" if exported symbols are required.
16382 always_export_symbols=$always_export_symbols_CXX
16383
16384 # The commands to list exported symbols.
16385 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16386
16387 # Symbols that should not be listed in the preloaded symbols.
16388 exclude_expsyms=$lt_exclude_expsyms_CXX
16389
16390 # Symbols that must always be exported.
16391 include_expsyms=$lt_include_expsyms_CXX
16392
16393 # Commands necessary for linking programs (against libraries) with templates.
16394 prelink_cmds=$lt_prelink_cmds_CXX
16395
16396 # Specify filename containing input files.
16397 file_list_spec=$lt_file_list_spec_CXX
16398
16399 # How to hardcode a shared library path into an executable.
16400 hardcode_action=$hardcode_action_CXX
16401
16402 # The directories searched by this compiler when creating a shared library.
16403 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16404
16405 # Dependencies to place before and after the objects being linked to
16406 # create a shared library.
16407 predep_objects=$lt_predep_objects_CXX
16408 postdep_objects=$lt_postdep_objects_CXX
16409 predeps=$lt_predeps_CXX
16410 postdeps=$lt_postdeps_CXX
16411
16412 # The library search path used internally by the compiler when linking
16413 # a shared library.
16414 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16415
16416 # ### END LIBTOOL TAG CONFIG: CXX
16417 _LT_EOF
16418
16419
16420 as_fn_exit 0
16421 _LTEOF
16422 chmod +x "$CONFIG_LT"
16423
16424 # configure is writing to config.log, but config.lt does its own redirection,
16425 # appending to config.log, which fails on DOS, as config.log is still kept
16426 # open by configure.  Here we exec the FD to /dev/null, effectively closing
16427 # config.log, so it can be properly (re)opened and appended to by config.lt.
16428 lt_cl_success=:
16429 test "$silent" = yes &&
16430   lt_config_lt_args="$lt_config_lt_args --quiet"
16431 exec 5>/dev/null
16432 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
16433 exec 5>>config.log
16434 $lt_cl_success || as_fn_exit 1
16435
16436
16437 # We require a C++11 compiler.  Check if one is available, and if
16438 # necessary, set CXX_DIALECT to some -std=xxx switch.
16439   ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
16440   ac_ext=cpp
16441 ac_cpp='$CXXCPP $CPPFLAGS'
16442 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16443 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16444 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16445   CXX_DIALECT=""
16446   ac_success=no
16447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
16448 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
16449 if ${ax_cv_cxx_compile_cxx11+:} false; then :
16450   $as_echo_n "(cached) " >&6
16451 else
16452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16453 /* end confdefs.h.  */
16454
16455
16456 // If the compiler admits that it is not ready for C++11, why torture it?
16457 // Hopefully, this will speed up the test.
16458
16459 #ifndef __cplusplus
16460
16461 #error "This is not a C++ compiler"
16462
16463 #elif __cplusplus < 201103L
16464
16465 #error "This is not a C++11 compiler"
16466
16467 #else
16468
16469 namespace cxx11
16470 {
16471
16472   namespace test_static_assert
16473   {
16474
16475     template <typename T>
16476     struct check
16477     {
16478       static_assert(sizeof(int) <= sizeof(T), "not big enough");
16479     };
16480
16481   }
16482
16483   namespace test_final_override
16484   {
16485
16486     struct Base
16487     {
16488       virtual void f() {}
16489     };
16490
16491     struct Derived : public Base
16492     {
16493       virtual void f() override {}
16494     };
16495
16496   }
16497
16498   namespace test_double_right_angle_brackets
16499   {
16500
16501     template < typename T >
16502     struct check {};
16503
16504     typedef check<void> single_type;
16505     typedef check<check<void>> double_type;
16506     typedef check<check<check<void>>> triple_type;
16507     typedef check<check<check<check<void>>>> quadruple_type;
16508
16509   }
16510
16511   namespace test_decltype
16512   {
16513
16514     int
16515     f()
16516     {
16517       int a = 1;
16518       decltype(a) b = 2;
16519       return a + b;
16520     }
16521
16522   }
16523
16524   namespace test_type_deduction
16525   {
16526
16527     template < typename T1, typename T2 >
16528     struct is_same
16529     {
16530       static const bool value = false;
16531     };
16532
16533     template < typename T >
16534     struct is_same<T, T>
16535     {
16536       static const bool value = true;
16537     };
16538
16539     template < typename T1, typename T2 >
16540     auto
16541     add(T1 a1, T2 a2) -> decltype(a1 + a2)
16542     {
16543       return a1 + a2;
16544     }
16545
16546     int
16547     test(const int c, volatile int v)
16548     {
16549       static_assert(is_same<int, decltype(0)>::value == true, "");
16550       static_assert(is_same<int, decltype(c)>::value == false, "");
16551       static_assert(is_same<int, decltype(v)>::value == false, "");
16552       auto ac = c;
16553       auto av = v;
16554       auto sumi = ac + av + 'x';
16555       auto sumf = ac + av + 1.0;
16556       static_assert(is_same<int, decltype(ac)>::value == true, "");
16557       static_assert(is_same<int, decltype(av)>::value == true, "");
16558       static_assert(is_same<int, decltype(sumi)>::value == true, "");
16559       static_assert(is_same<int, decltype(sumf)>::value == false, "");
16560       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
16561       return (sumf > 0.0) ? sumi : add(c, v);
16562     }
16563
16564   }
16565
16566   namespace test_noexcept
16567   {
16568
16569     int f() { return 0; }
16570     int g() noexcept { return 0; }
16571
16572     static_assert(noexcept(f()) == false, "");
16573     static_assert(noexcept(g()) == true, "");
16574
16575   }
16576
16577   namespace test_constexpr
16578   {
16579
16580     template < typename CharT >
16581     unsigned long constexpr
16582     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
16583     {
16584       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
16585     }
16586
16587     template < typename CharT >
16588     unsigned long constexpr
16589     strlen_c(const CharT *const s) noexcept
16590     {
16591       return strlen_c_r(s, 0UL);
16592     }
16593
16594     static_assert(strlen_c("") == 0UL, "");
16595     static_assert(strlen_c("1") == 1UL, "");
16596     static_assert(strlen_c("example") == 7UL, "");
16597     static_assert(strlen_c("another\0example") == 7UL, "");
16598
16599   }
16600
16601   namespace test_rvalue_references
16602   {
16603
16604     template < int N >
16605     struct answer
16606     {
16607       static constexpr int value = N;
16608     };
16609
16610     answer<1> f(int&)       { return answer<1>(); }
16611     answer<2> f(const int&) { return answer<2>(); }
16612     answer<3> f(int&&)      { return answer<3>(); }
16613
16614     void
16615     test()
16616     {
16617       int i = 0;
16618       const int c = 0;
16619       static_assert(decltype(f(i))::value == 1, "");
16620       static_assert(decltype(f(c))::value == 2, "");
16621       static_assert(decltype(f(0))::value == 3, "");
16622     }
16623
16624   }
16625
16626   namespace test_uniform_initialization
16627   {
16628
16629     struct test
16630     {
16631       static const int zero {};
16632       static const int one {1};
16633     };
16634
16635     static_assert(test::zero == 0, "");
16636     static_assert(test::one == 1, "");
16637
16638   }
16639
16640   namespace test_lambdas
16641   {
16642
16643     void
16644     test1()
16645     {
16646       auto lambda1 = [](){};
16647       auto lambda2 = lambda1;
16648       lambda1();
16649       lambda2();
16650     }
16651
16652     int
16653     test2()
16654     {
16655       auto a = [](int i, int j){ return i + j; }(1, 2);
16656       auto b = []() -> int { return '0'; }();
16657       auto c = [=](){ return a + b; }();
16658       auto d = [&](){ return c; }();
16659       auto e = [a, &b](int x) mutable {
16660         const auto identity = [](int y){ return y; };
16661         for (auto i = 0; i < a; ++i)
16662           a += b--;
16663         return x + identity(a + b);
16664       }(0);
16665       return a + b + c + d + e;
16666     }
16667
16668     int
16669     test3()
16670     {
16671       const auto nullary = [](){ return 0; };
16672       const auto unary = [](int x){ return x; };
16673       using nullary_t = decltype(nullary);
16674       using unary_t = decltype(unary);
16675       const auto higher1st = [](nullary_t f){ return f(); };
16676       const auto higher2nd = [unary](nullary_t f1){
16677         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
16678       };
16679       return higher1st(nullary) + higher2nd(nullary)(unary);
16680     }
16681
16682   }
16683
16684   namespace test_variadic_templates
16685   {
16686
16687     template <int...>
16688     struct sum;
16689
16690     template <int N0, int... N1toN>
16691     struct sum<N0, N1toN...>
16692     {
16693       static constexpr auto value = N0 + sum<N1toN...>::value;
16694     };
16695
16696     template <>
16697     struct sum<>
16698     {
16699       static constexpr auto value = 0;
16700     };
16701
16702     static_assert(sum<>::value == 0, "");
16703     static_assert(sum<1>::value == 1, "");
16704     static_assert(sum<23>::value == 23, "");
16705     static_assert(sum<1, 2>::value == 3, "");
16706     static_assert(sum<5, 5, 11>::value == 21, "");
16707     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
16708
16709   }
16710
16711   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
16712   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
16713   // because of this.
16714   namespace test_template_alias_sfinae
16715   {
16716
16717     struct foo {};
16718
16719     template<typename T>
16720     using member = typename T::member_type;
16721
16722     template<typename T>
16723     void func(...) {}
16724
16725     template<typename T>
16726     void func(member<T>*) {}
16727
16728     void test();
16729
16730     void test() { func<foo>(0); }
16731
16732   }
16733
16734 }  // namespace cxx11
16735
16736 #endif  // __cplusplus >= 201103L
16737
16738
16739
16740 _ACEOF
16741 if ac_fn_cxx_try_compile "$LINENO"; then :
16742   ax_cv_cxx_compile_cxx11=yes
16743 else
16744   ax_cv_cxx_compile_cxx11=no
16745 fi
16746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16747 fi
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
16749 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
16750   if test x$ax_cv_cxx_compile_cxx11 = xyes; then
16751     ac_success=yes
16752   fi
16753
16754     if test x$ac_success = xno; then
16755     for alternative in ${ax_cxx_compile_alternatives}; do
16756       switch="-std=gnu++${alternative}"
16757       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16758       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16759 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16760 if eval \${$cachevar+:} false; then :
16761   $as_echo_n "(cached) " >&6
16762 else
16763   ac_save_CXX="$CXX"
16764          CXX="$CXX $switch"
16765          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16766 /* end confdefs.h.  */
16767
16768
16769 // If the compiler admits that it is not ready for C++11, why torture it?
16770 // Hopefully, this will speed up the test.
16771
16772 #ifndef __cplusplus
16773
16774 #error "This is not a C++ compiler"
16775
16776 #elif __cplusplus < 201103L
16777
16778 #error "This is not a C++11 compiler"
16779
16780 #else
16781
16782 namespace cxx11
16783 {
16784
16785   namespace test_static_assert
16786   {
16787
16788     template <typename T>
16789     struct check
16790     {
16791       static_assert(sizeof(int) <= sizeof(T), "not big enough");
16792     };
16793
16794   }
16795
16796   namespace test_final_override
16797   {
16798
16799     struct Base
16800     {
16801       virtual void f() {}
16802     };
16803
16804     struct Derived : public Base
16805     {
16806       virtual void f() override {}
16807     };
16808
16809   }
16810
16811   namespace test_double_right_angle_brackets
16812   {
16813
16814     template < typename T >
16815     struct check {};
16816
16817     typedef check<void> single_type;
16818     typedef check<check<void>> double_type;
16819     typedef check<check<check<void>>> triple_type;
16820     typedef check<check<check<check<void>>>> quadruple_type;
16821
16822   }
16823
16824   namespace test_decltype
16825   {
16826
16827     int
16828     f()
16829     {
16830       int a = 1;
16831       decltype(a) b = 2;
16832       return a + b;
16833     }
16834
16835   }
16836
16837   namespace test_type_deduction
16838   {
16839
16840     template < typename T1, typename T2 >
16841     struct is_same
16842     {
16843       static const bool value = false;
16844     };
16845
16846     template < typename T >
16847     struct is_same<T, T>
16848     {
16849       static const bool value = true;
16850     };
16851
16852     template < typename T1, typename T2 >
16853     auto
16854     add(T1 a1, T2 a2) -> decltype(a1 + a2)
16855     {
16856       return a1 + a2;
16857     }
16858
16859     int
16860     test(const int c, volatile int v)
16861     {
16862       static_assert(is_same<int, decltype(0)>::value == true, "");
16863       static_assert(is_same<int, decltype(c)>::value == false, "");
16864       static_assert(is_same<int, decltype(v)>::value == false, "");
16865       auto ac = c;
16866       auto av = v;
16867       auto sumi = ac + av + 'x';
16868       auto sumf = ac + av + 1.0;
16869       static_assert(is_same<int, decltype(ac)>::value == true, "");
16870       static_assert(is_same<int, decltype(av)>::value == true, "");
16871       static_assert(is_same<int, decltype(sumi)>::value == true, "");
16872       static_assert(is_same<int, decltype(sumf)>::value == false, "");
16873       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
16874       return (sumf > 0.0) ? sumi : add(c, v);
16875     }
16876
16877   }
16878
16879   namespace test_noexcept
16880   {
16881
16882     int f() { return 0; }
16883     int g() noexcept { return 0; }
16884
16885     static_assert(noexcept(f()) == false, "");
16886     static_assert(noexcept(g()) == true, "");
16887
16888   }
16889
16890   namespace test_constexpr
16891   {
16892
16893     template < typename CharT >
16894     unsigned long constexpr
16895     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
16896     {
16897       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
16898     }
16899
16900     template < typename CharT >
16901     unsigned long constexpr
16902     strlen_c(const CharT *const s) noexcept
16903     {
16904       return strlen_c_r(s, 0UL);
16905     }
16906
16907     static_assert(strlen_c("") == 0UL, "");
16908     static_assert(strlen_c("1") == 1UL, "");
16909     static_assert(strlen_c("example") == 7UL, "");
16910     static_assert(strlen_c("another\0example") == 7UL, "");
16911
16912   }
16913
16914   namespace test_rvalue_references
16915   {
16916
16917     template < int N >
16918     struct answer
16919     {
16920       static constexpr int value = N;
16921     };
16922
16923     answer<1> f(int&)       { return answer<1>(); }
16924     answer<2> f(const int&) { return answer<2>(); }
16925     answer<3> f(int&&)      { return answer<3>(); }
16926
16927     void
16928     test()
16929     {
16930       int i = 0;
16931       const int c = 0;
16932       static_assert(decltype(f(i))::value == 1, "");
16933       static_assert(decltype(f(c))::value == 2, "");
16934       static_assert(decltype(f(0))::value == 3, "");
16935     }
16936
16937   }
16938
16939   namespace test_uniform_initialization
16940   {
16941
16942     struct test
16943     {
16944       static const int zero {};
16945       static const int one {1};
16946     };
16947
16948     static_assert(test::zero == 0, "");
16949     static_assert(test::one == 1, "");
16950
16951   }
16952
16953   namespace test_lambdas
16954   {
16955
16956     void
16957     test1()
16958     {
16959       auto lambda1 = [](){};
16960       auto lambda2 = lambda1;
16961       lambda1();
16962       lambda2();
16963     }
16964
16965     int
16966     test2()
16967     {
16968       auto a = [](int i, int j){ return i + j; }(1, 2);
16969       auto b = []() -> int { return '0'; }();
16970       auto c = [=](){ return a + b; }();
16971       auto d = [&](){ return c; }();
16972       auto e = [a, &b](int x) mutable {
16973         const auto identity = [](int y){ return y; };
16974         for (auto i = 0; i < a; ++i)
16975           a += b--;
16976         return x + identity(a + b);
16977       }(0);
16978       return a + b + c + d + e;
16979     }
16980
16981     int
16982     test3()
16983     {
16984       const auto nullary = [](){ return 0; };
16985       const auto unary = [](int x){ return x; };
16986       using nullary_t = decltype(nullary);
16987       using unary_t = decltype(unary);
16988       const auto higher1st = [](nullary_t f){ return f(); };
16989       const auto higher2nd = [unary](nullary_t f1){
16990         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
16991       };
16992       return higher1st(nullary) + higher2nd(nullary)(unary);
16993     }
16994
16995   }
16996
16997   namespace test_variadic_templates
16998   {
16999
17000     template <int...>
17001     struct sum;
17002
17003     template <int N0, int... N1toN>
17004     struct sum<N0, N1toN...>
17005     {
17006       static constexpr auto value = N0 + sum<N1toN...>::value;
17007     };
17008
17009     template <>
17010     struct sum<>
17011     {
17012       static constexpr auto value = 0;
17013     };
17014
17015     static_assert(sum<>::value == 0, "");
17016     static_assert(sum<1>::value == 1, "");
17017     static_assert(sum<23>::value == 23, "");
17018     static_assert(sum<1, 2>::value == 3, "");
17019     static_assert(sum<5, 5, 11>::value == 21, "");
17020     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17021
17022   }
17023
17024   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17025   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17026   // because of this.
17027   namespace test_template_alias_sfinae
17028   {
17029
17030     struct foo {};
17031
17032     template<typename T>
17033     using member = typename T::member_type;
17034
17035     template<typename T>
17036     void func(...) {}
17037
17038     template<typename T>
17039     void func(member<T>*) {}
17040
17041     void test();
17042
17043     void test() { func<foo>(0); }
17044
17045   }
17046
17047 }  // namespace cxx11
17048
17049 #endif  // __cplusplus >= 201103L
17050
17051
17052
17053 _ACEOF
17054 if ac_fn_cxx_try_compile "$LINENO"; then :
17055   eval $cachevar=yes
17056 else
17057   eval $cachevar=no
17058 fi
17059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17060          CXX="$ac_save_CXX"
17061 fi
17062 eval ac_res=\$$cachevar
17063                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17064 $as_echo "$ac_res" >&6; }
17065       if eval test x\$$cachevar = xyes; then
17066         CXX_DIALECT="$switch"
17067         CXX="$CXX $switch"
17068         if test -n "$CXXCPP" ; then
17069           CXXCPP="$CXXCPP $switch"
17070         fi
17071         ac_success=yes
17072         break
17073       fi
17074     done
17075   fi
17076
17077     if test x$ac_success = xno; then
17078                 for alternative in ${ax_cxx_compile_alternatives}; do
17079       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
17080         cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
17081         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
17082 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
17083 if eval \${$cachevar+:} false; then :
17084   $as_echo_n "(cached) " >&6
17085 else
17086   ac_save_CXX="$CXX"
17087            CXX="$CXX $switch"
17088            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089 /* end confdefs.h.  */
17090
17091
17092 // If the compiler admits that it is not ready for C++11, why torture it?
17093 // Hopefully, this will speed up the test.
17094
17095 #ifndef __cplusplus
17096
17097 #error "This is not a C++ compiler"
17098
17099 #elif __cplusplus < 201103L
17100
17101 #error "This is not a C++11 compiler"
17102
17103 #else
17104
17105 namespace cxx11
17106 {
17107
17108   namespace test_static_assert
17109   {
17110
17111     template <typename T>
17112     struct check
17113     {
17114       static_assert(sizeof(int) <= sizeof(T), "not big enough");
17115     };
17116
17117   }
17118
17119   namespace test_final_override
17120   {
17121
17122     struct Base
17123     {
17124       virtual void f() {}
17125     };
17126
17127     struct Derived : public Base
17128     {
17129       virtual void f() override {}
17130     };
17131
17132   }
17133
17134   namespace test_double_right_angle_brackets
17135   {
17136
17137     template < typename T >
17138     struct check {};
17139
17140     typedef check<void> single_type;
17141     typedef check<check<void>> double_type;
17142     typedef check<check<check<void>>> triple_type;
17143     typedef check<check<check<check<void>>>> quadruple_type;
17144
17145   }
17146
17147   namespace test_decltype
17148   {
17149
17150     int
17151     f()
17152     {
17153       int a = 1;
17154       decltype(a) b = 2;
17155       return a + b;
17156     }
17157
17158   }
17159
17160   namespace test_type_deduction
17161   {
17162
17163     template < typename T1, typename T2 >
17164     struct is_same
17165     {
17166       static const bool value = false;
17167     };
17168
17169     template < typename T >
17170     struct is_same<T, T>
17171     {
17172       static const bool value = true;
17173     };
17174
17175     template < typename T1, typename T2 >
17176     auto
17177     add(T1 a1, T2 a2) -> decltype(a1 + a2)
17178     {
17179       return a1 + a2;
17180     }
17181
17182     int
17183     test(const int c, volatile int v)
17184     {
17185       static_assert(is_same<int, decltype(0)>::value == true, "");
17186       static_assert(is_same<int, decltype(c)>::value == false, "");
17187       static_assert(is_same<int, decltype(v)>::value == false, "");
17188       auto ac = c;
17189       auto av = v;
17190       auto sumi = ac + av + 'x';
17191       auto sumf = ac + av + 1.0;
17192       static_assert(is_same<int, decltype(ac)>::value == true, "");
17193       static_assert(is_same<int, decltype(av)>::value == true, "");
17194       static_assert(is_same<int, decltype(sumi)>::value == true, "");
17195       static_assert(is_same<int, decltype(sumf)>::value == false, "");
17196       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17197       return (sumf > 0.0) ? sumi : add(c, v);
17198     }
17199
17200   }
17201
17202   namespace test_noexcept
17203   {
17204
17205     int f() { return 0; }
17206     int g() noexcept { return 0; }
17207
17208     static_assert(noexcept(f()) == false, "");
17209     static_assert(noexcept(g()) == true, "");
17210
17211   }
17212
17213   namespace test_constexpr
17214   {
17215
17216     template < typename CharT >
17217     unsigned long constexpr
17218     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17219     {
17220       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17221     }
17222
17223     template < typename CharT >
17224     unsigned long constexpr
17225     strlen_c(const CharT *const s) noexcept
17226     {
17227       return strlen_c_r(s, 0UL);
17228     }
17229
17230     static_assert(strlen_c("") == 0UL, "");
17231     static_assert(strlen_c("1") == 1UL, "");
17232     static_assert(strlen_c("example") == 7UL, "");
17233     static_assert(strlen_c("another\0example") == 7UL, "");
17234
17235   }
17236
17237   namespace test_rvalue_references
17238   {
17239
17240     template < int N >
17241     struct answer
17242     {
17243       static constexpr int value = N;
17244     };
17245
17246     answer<1> f(int&)       { return answer<1>(); }
17247     answer<2> f(const int&) { return answer<2>(); }
17248     answer<3> f(int&&)      { return answer<3>(); }
17249
17250     void
17251     test()
17252     {
17253       int i = 0;
17254       const int c = 0;
17255       static_assert(decltype(f(i))::value == 1, "");
17256       static_assert(decltype(f(c))::value == 2, "");
17257       static_assert(decltype(f(0))::value == 3, "");
17258     }
17259
17260   }
17261
17262   namespace test_uniform_initialization
17263   {
17264
17265     struct test
17266     {
17267       static const int zero {};
17268       static const int one {1};
17269     };
17270
17271     static_assert(test::zero == 0, "");
17272     static_assert(test::one == 1, "");
17273
17274   }
17275
17276   namespace test_lambdas
17277   {
17278
17279     void
17280     test1()
17281     {
17282       auto lambda1 = [](){};
17283       auto lambda2 = lambda1;
17284       lambda1();
17285       lambda2();
17286     }
17287
17288     int
17289     test2()
17290     {
17291       auto a = [](int i, int j){ return i + j; }(1, 2);
17292       auto b = []() -> int { return '0'; }();
17293       auto c = [=](){ return a + b; }();
17294       auto d = [&](){ return c; }();
17295       auto e = [a, &b](int x) mutable {
17296         const auto identity = [](int y){ return y; };
17297         for (auto i = 0; i < a; ++i)
17298           a += b--;
17299         return x + identity(a + b);
17300       }(0);
17301       return a + b + c + d + e;
17302     }
17303
17304     int
17305     test3()
17306     {
17307       const auto nullary = [](){ return 0; };
17308       const auto unary = [](int x){ return x; };
17309       using nullary_t = decltype(nullary);
17310       using unary_t = decltype(unary);
17311       const auto higher1st = [](nullary_t f){ return f(); };
17312       const auto higher2nd = [unary](nullary_t f1){
17313         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17314       };
17315       return higher1st(nullary) + higher2nd(nullary)(unary);
17316     }
17317
17318   }
17319
17320   namespace test_variadic_templates
17321   {
17322
17323     template <int...>
17324     struct sum;
17325
17326     template <int N0, int... N1toN>
17327     struct sum<N0, N1toN...>
17328     {
17329       static constexpr auto value = N0 + sum<N1toN...>::value;
17330     };
17331
17332     template <>
17333     struct sum<>
17334     {
17335       static constexpr auto value = 0;
17336     };
17337
17338     static_assert(sum<>::value == 0, "");
17339     static_assert(sum<1>::value == 1, "");
17340     static_assert(sum<23>::value == 23, "");
17341     static_assert(sum<1, 2>::value == 3, "");
17342     static_assert(sum<5, 5, 11>::value == 21, "");
17343     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17344
17345   }
17346
17347   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17348   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17349   // because of this.
17350   namespace test_template_alias_sfinae
17351   {
17352
17353     struct foo {};
17354
17355     template<typename T>
17356     using member = typename T::member_type;
17357
17358     template<typename T>
17359     void func(...) {}
17360
17361     template<typename T>
17362     void func(member<T>*) {}
17363
17364     void test();
17365
17366     void test() { func<foo>(0); }
17367
17368   }
17369
17370 }  // namespace cxx11
17371
17372 #endif  // __cplusplus >= 201103L
17373
17374
17375
17376 _ACEOF
17377 if ac_fn_cxx_try_compile "$LINENO"; then :
17378   eval $cachevar=yes
17379 else
17380   eval $cachevar=no
17381 fi
17382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17383            CXX="$ac_save_CXX"
17384 fi
17385 eval ac_res=\$$cachevar
17386                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17387 $as_echo "$ac_res" >&6; }
17388         if eval test x\$$cachevar = xyes; then
17389           CXX_DIALECT="$switch"
17390           CXX="$CXX $switch"
17391           if test -n "$CXXCPP" ; then
17392             CXXCPP="$CXXCPP $switch"
17393           fi
17394           ac_success=yes
17395           break
17396         fi
17397       done
17398       if test x$ac_success = xyes; then
17399         break
17400       fi
17401     done
17402   fi
17403   ac_ext=c
17404 ac_cpp='$CPP $CPPFLAGS'
17405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17408
17409   if test x$ax_cxx_compile_cxx11_required = xtrue; then
17410     if test x$ac_success = xno; then
17411       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
17412     fi
17413   fi
17414   if test x$ac_success = xno; then
17415     HAVE_CXX11=0
17416     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
17417 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
17418   else
17419     HAVE_CXX11=1
17420
17421 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
17422
17423   fi
17424
17425
17426
17427
17428 # Dependency checking.
17429 rm -rf .tst 2>/dev/null
17430 mkdir .tst 2>/dev/null
17431 if test -d .tst; then
17432   am__leading_dot=.
17433 else
17434   am__leading_dot=_
17435 fi
17436 rmdir .tst 2>/dev/null
17437
17438 DEPDIR="${am__leading_dot}deps"
17439
17440 ac_config_commands="$ac_config_commands depdir"
17441
17442
17443 depcc="$CC"   am_compiler_list=
17444
17445 am_depcomp=$ac_aux_dir/depcomp
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17447 $as_echo_n "checking dependency style of $depcc... " >&6; }
17448 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
17449   $as_echo_n "(cached) " >&6
17450 else
17451   if test -f "$am_depcomp"; then
17452   # We make a subdir and do the tests there.  Otherwise we can end up
17453   # making bogus files that we don't know about and never remove.  For
17454   # instance it was reported that on HP-UX the gcc test will end up
17455   # making a dummy file named `D' -- because `-MD' means `put the output
17456   # in D'.
17457   mkdir conftest.dir
17458   # Copy depcomp to subdir because otherwise we won't find it if we're
17459   # using a relative directory.
17460   cp "$am_depcomp" conftest.dir
17461   cd conftest.dir
17462   # We will build objects and dependencies in a subdirectory because
17463   # it helps to detect inapplicable dependency modes.  For instance
17464   # both Tru64's cc and ICC support -MD to output dependencies as a
17465   # side effect of compilation, but ICC will put the dependencies in
17466   # the current directory while Tru64 will put them in the object
17467   # directory.
17468   mkdir sub
17469
17470   am_cv_CC_dependencies_compiler_type=none
17471   if test "$am_compiler_list" = ""; then
17472      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17473   fi
17474   for depmode in $am_compiler_list; do
17475     if test $depmode = none; then break; fi
17476
17477     $as_echo "$as_me:$LINENO: trying $depmode" >&5
17478     # Setup a source with many dependencies, because some compilers
17479     # like to wrap large dependency lists on column 80 (with \), and
17480     # we should not choose a depcomp mode which is confused by this.
17481     #
17482     # We need to recreate these files for each test, as the compiler may
17483     # overwrite some of them when testing with obscure command lines.
17484     # This happens at least with the AIX C compiler.
17485     : > sub/conftest.c
17486     for i in 1 2 3 4 5 6; do
17487       echo '#include "conftst'$i'.h"' >> sub/conftest.c
17488       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17489       # Solaris 8's {/usr,}/bin/sh.
17490       touch sub/conftst$i.h
17491     done
17492     echo "include sub/conftest.Po" > confmf
17493
17494     # We check with `-c' and `-o' for the sake of the "dashmstdout"
17495     # mode.  It turns out that the SunPro C++ compiler does not properly
17496     # handle `-M -o', and we need to detect this.
17497     depcmd="depmode=$depmode \
17498        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
17499        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17500        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
17501     echo "| $depcmd" | sed -e 's/  */ /g' >&5
17502     if env $depcmd > conftest.err 2>&1 &&
17503        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
17504        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
17505        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
17506       # icc doesn't choke on unknown options, it will just issue warnings
17507       # or remarks (even with -Werror).  So we grep stderr for any message
17508       # that says an option was ignored or not supported.
17509       # When given -MP, icc 7.0 and 7.1 complain thusly:
17510       #   icc: Command line warning: ignoring option '-M'; no argument required
17511       # The diagnosis changed in icc 8.0:
17512       #   icc: Command line remark: option '-MP' not supported
17513       if (grep 'ignoring option' conftest.err ||
17514           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17515         am_cv_CC_dependencies_compiler_type=$depmode
17516         $as_echo "$as_me:$LINENO: success" >&5
17517         break
17518       fi
17519     fi
17520     $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
17521     sed -e 's/^/| /' < conftest.err >&5
17522   done
17523
17524   cd ..
17525   rm -rf conftest.dir
17526 else
17527   am_cv_CC_dependencies_compiler_type=none
17528 fi
17529
17530 fi
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
17532 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
17533 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
17534 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
17535 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
17536
17537 fi
17538
17539
17540
17541 CONFIG_OBS=
17542 CONFIG_DEPS=
17543 CONFIG_SRCS=
17544 ENABLE_CFLAGS=
17545
17546 CONFIG_ALL=
17547 CONFIG_CLEAN=
17548 CONFIG_INSTALL=
17549 CONFIG_UNINSTALL=
17550
17551 # If we haven't got the data from the intl directory,
17552 # assume NLS is disabled.
17553 USE_NLS=no
17554 LIBINTL=
17555 LIBINTL_DEP=
17556 INCINTL=
17557 XGETTEXT=
17558 GMSGFMT=
17559 POSUB=
17560
17561 if test -f  ../intl/config.intl; then
17562   .  ../intl/config.intl
17563 fi
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17565 $as_echo_n "checking whether NLS is requested... " >&6; }
17566 if test x"$USE_NLS" != xyes; then
17567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17568 $as_echo "no" >&6; }
17569 else
17570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17571 $as_echo "yes" >&6; }
17572
17573 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17574
17575
17576   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
17577 $as_echo_n "checking for catalogs to be installed... " >&6; }
17578   # Look for .po and .gmo files in the source directory.
17579   CATALOGS=
17580   XLINGUAS=
17581   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
17582     # If there aren't any .gmo files the shell will give us the
17583     # literal string "../path/to/srcdir/po/*.gmo" which has to be
17584     # weeded out.
17585     case "$cat" in *\**)
17586       continue;;
17587     esac
17588     # The quadruple backslash is collapsed to a double backslash
17589     # by the backticks, then collapsed again by the double quotes,
17590     # leaving us with one backslash in the sed expression (right
17591     # before the dot that mustn't act as a wildcard).
17592     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
17593     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
17594     # The user is allowed to set LINGUAS to a list of languages to
17595     # install catalogs for.  If it's empty that means "all of them."
17596     if test "x$LINGUAS" = x; then
17597       CATALOGS="$CATALOGS $cat"
17598       XLINGUAS="$XLINGUAS $lang"
17599     else
17600       case "$LINGUAS" in *$lang*)
17601         CATALOGS="$CATALOGS $cat"
17602         XLINGUAS="$XLINGUAS $lang"
17603         ;;
17604       esac
17605     fi
17606   done
17607   LINGUAS="$XLINGUAS"
17608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
17609 $as_echo "$LINGUAS" >&6; }
17610
17611
17612     DATADIRNAME=share
17613
17614   INSTOBJEXT=.mo
17615
17616   GENCAT=gencat
17617
17618   CATOBJEXT=.gmo
17619
17620 fi
17621
17622 localedir='${datadir}/locale'
17623
17624
17625 if test x"$USE_NLS" = xyes; then
17626    CONFIG_ALL="$CONFIG_ALL all-po"
17627    CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
17628    CONFIG_INSTALL="$CONFIG_INSTALL install-po"
17629    CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
17630 fi
17631
17632 PACKAGE=gdb
17633
17634 cat >>confdefs.h <<_ACEOF
17635 #define PACKAGE "$PACKAGE"
17636 _ACEOF
17637
17638
17639
17640 # We never need to detect it in this sub-configure.
17641 # But preserve it for config.status --recheck.
17642
17643
17644
17645 MAKEINFO_EXTRA_FLAGS=""
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
17647 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
17648 if ${gdb_cv_have_makeinfo_click+:} false; then :
17649   $as_echo_n "(cached) " >&6
17650 else
17651   echo '@clicksequence{a @click{} b}' >conftest.texinfo
17652   if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
17653     gdb_cv_have_makeinfo_click=yes
17654   else
17655     gdb_cv_have_makeinfo_click=no
17656   fi
17657 fi
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
17659 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
17660 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
17661   MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
17662 fi
17663
17664
17665
17666
17667 # Check whether --with-separate-debug-dir was given.
17668 if test "${with_separate_debug_dir+set}" = set; then :
17669   withval=$with_separate_debug_dir;
17670     DEBUGDIR=$withval
17671 else
17672   DEBUGDIR=${libdir}/debug
17673 fi
17674
17675
17676   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17677   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17678   ac_define_dir=`eval echo $DEBUGDIR`
17679   ac_define_dir=`eval echo $ac_define_dir`
17680
17681 cat >>confdefs.h <<_ACEOF
17682 #define DEBUGDIR "$ac_define_dir"
17683 _ACEOF
17684
17685
17686
17687
17688   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
17689      if test "x$prefix" = xNONE; then
17690         test_prefix=/usr/local
17691      else
17692         test_prefix=$prefix
17693      fi
17694   else
17695      test_prefix=$exec_prefix
17696   fi
17697   value=0
17698   case ${ac_define_dir} in
17699      "${test_prefix}"|"${test_prefix}/"*|\
17700         '${exec_prefix}'|'${exec_prefix}/'*)
17701      value=1
17702      ;;
17703   esac
17704
17705 cat >>confdefs.h <<_ACEOF
17706 #define DEBUGDIR_RELOCATABLE $value
17707 _ACEOF
17708
17709
17710
17711
17712 # We can't pass paths as command line arguments.
17713 # Mingw32 tries to be clever and will convert the paths for us.
17714 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
17715 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
17716 # This breaks GDB's relocatable path conversions since paths passed in
17717 # config.h would not get so translated, the path prefixes no longer match.
17718
17719   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17720   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17721   ac_define_dir=`eval echo $bindir`
17722   ac_define_dir=`eval echo $ac_define_dir`
17723
17724 cat >>confdefs.h <<_ACEOF
17725 #define BINDIR "$ac_define_dir"
17726 _ACEOF
17727
17728
17729
17730 # GDB's datadir relocation
17731
17732
17733
17734 # Check whether --with-gdb-datadir was given.
17735 if test "${with_gdb_datadir+set}" = set; then :
17736   withval=$with_gdb_datadir;
17737     GDB_DATADIR=$withval
17738 else
17739   GDB_DATADIR=${datadir}/gdb
17740 fi
17741
17742
17743   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17744   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17745   ac_define_dir=`eval echo $GDB_DATADIR`
17746   ac_define_dir=`eval echo $ac_define_dir`
17747
17748 cat >>confdefs.h <<_ACEOF
17749 #define GDB_DATADIR "$ac_define_dir"
17750 _ACEOF
17751
17752
17753
17754
17755   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
17756      if test "x$prefix" = xNONE; then
17757         test_prefix=/usr/local
17758      else
17759         test_prefix=$prefix
17760      fi
17761   else
17762      test_prefix=$exec_prefix
17763   fi
17764   value=0
17765   case ${ac_define_dir} in
17766      "${test_prefix}"|"${test_prefix}/"*|\
17767         '${exec_prefix}'|'${exec_prefix}/'*)
17768      value=1
17769      ;;
17770   esac
17771
17772 cat >>confdefs.h <<_ACEOF
17773 #define GDB_DATADIR_RELOCATABLE $value
17774 _ACEOF
17775
17776
17777
17778
17779
17780 # Check whether --with-relocated-sources was given.
17781 if test "${with_relocated_sources+set}" = set; then :
17782   withval=$with_relocated_sources; reloc_srcdir="${withval}"
17783
17784   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17785   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17786   ac_define_dir=`eval echo $reloc_srcdir`
17787   ac_define_dir=`eval echo $ac_define_dir`
17788
17789 cat >>confdefs.h <<_ACEOF
17790 #define RELOC_SRCDIR "$ac_define_dir"
17791 _ACEOF
17792
17793
17794
17795 fi
17796
17797
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
17799 $as_echo_n "checking for default auto-load directory... " >&6; }
17800
17801 # Check whether --with-auto-load-dir was given.
17802 if test "${with_auto_load_dir+set}" = set; then :
17803   withval=$with_auto_load_dir;
17804 else
17805   with_auto_load_dir='$debugdir:$datadir/auto-load'
17806 fi
17807
17808 escape_dir=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
17809
17810   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17811   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17812   ac_define_dir=`eval echo $escape_dir`
17813   ac_define_dir=`eval echo $ac_define_dir`
17814
17815 cat >>confdefs.h <<_ACEOF
17816 #define AUTO_LOAD_DIR "$ac_define_dir"
17817 _ACEOF
17818
17819
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
17821 $as_echo "$with_auto_load_dir" >&6; }
17822
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
17824 $as_echo_n "checking for default auto-load safe-path... " >&6; }
17825
17826 # Check whether --with-auto-load-safe-path was given.
17827 if test "${with_auto_load_safe_path+set}" = set; then :
17828   withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
17829      with_auto_load_safe_path="/"
17830      fi
17831 else
17832   with_auto_load_safe_path="$with_auto_load_dir"
17833 fi
17834
17835 escape_dir=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
17836
17837   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17838   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17839   ac_define_dir=`eval echo $escape_dir`
17840   ac_define_dir=`eval echo $ac_define_dir`
17841
17842 cat >>confdefs.h <<_ACEOF
17843 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
17844 _ACEOF
17845
17846
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
17848 $as_echo "$with_auto_load_safe_path" >&6; }
17849
17850
17851
17852 subdirs="$subdirs testsuite"
17853
17854
17855 # Check whether to support alternative target configurations
17856 # Check whether --enable-targets was given.
17857 if test "${enable_targets+set}" = set; then :
17858   enableval=$enable_targets; case "${enableval}" in
17859   yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
17860             ;;
17861   no)       enable_targets= ;;
17862   *)        enable_targets=$enableval ;;
17863 esac
17864 fi
17865
17866
17867 # Check whether --enable-64-bit-bfd was given.
17868 if test "${enable_64_bit_bfd+set}" = set; then :
17869   enableval=$enable_64_bit_bfd; case $enableval in #(
17870   yes|no) :
17871      ;; #(
17872   *) :
17873     as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
17874   *) :
17875      ;;
17876 esac
17877 else
17878   enable_64_bit_bfd=no
17879 fi
17880
17881
17882 if test "x$enable_64_bit_bfd" = "xno"; then :
17883     # The cast to long int works around a bug in the HP C Compiler
17884 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17885 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17886 # This bug is HP SR number 8606223364.
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
17888 $as_echo_n "checking size of void *... " >&6; }
17889 if ${ac_cv_sizeof_void_p+:} false; then :
17890   $as_echo_n "(cached) " >&6
17891 else
17892   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
17893
17894 else
17895   if test "$ac_cv_type_void_p" = yes; then
17896      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17898 as_fn_error 77 "cannot compute sizeof (void *)
17899 See \`config.log' for more details" "$LINENO" 5; }
17900    else
17901      ac_cv_sizeof_void_p=0
17902    fi
17903 fi
17904
17905 fi
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17907 $as_echo "$ac_cv_sizeof_void_p" >&6; }
17908
17909
17910
17911 cat >>confdefs.h <<_ACEOF
17912 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17913 _ACEOF
17914
17915
17916   if test "x$ac_cv_sizeof_void_p" = "x8"; then :
17917   enable_64_bit_bfd=yes
17918 fi
17919
17920 fi
17921
17922  if test "x$enable_64_bit_bfd" = "xyes"; then
17923   ENABLE_BFD_64_BIT_TRUE=
17924   ENABLE_BFD_64_BIT_FALSE='#'
17925 else
17926   ENABLE_BFD_64_BIT_TRUE='#'
17927   ENABLE_BFD_64_BIT_FALSE=
17928 fi
17929
17930
17931
17932 # Provide defaults for some variables set by the per-host and per-target
17933 # configuration.
17934 gdb_host_obs=posix-hdep.o
17935
17936 if test "${target}" = "${host}"; then
17937   gdb_native=yes
17938 else
17939   gdb_native=no
17940 fi
17941
17942 . $srcdir/configure.host
17943
17944 # Accumulate some settings from configure.tgt over all enabled targets
17945
17946 TARGET_OBS=
17947 all_targets=
17948 HAVE_NATIVE_GCORE_TARGET=
17949
17950 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
17951 do
17952   if test "$targ_alias" = "all"; then
17953     all_targets=true
17954   else
17955     # Canonicalize the secondary target names.
17956     result=`$ac_config_sub $targ_alias 2>/dev/null`
17957     if test -n "$result"; then
17958         targ=$result
17959     else
17960         targ=$targ_alias
17961     fi
17962
17963     . ${srcdir}/configure.tgt
17964
17965     if test -z "${gdb_target_obs}"; then :
17966   as_fn_error $? "configuration ${targ} is unsupported." "$LINENO" 5
17967 fi
17968
17969     # Target-specific object files
17970     for i in ${gdb_target_obs}; do
17971         case " $TARGET_OBS " in
17972         *" ${i} "*) ;;
17973         *)
17974           TARGET_OBS="$TARGET_OBS ${i}"
17975           ;;
17976         esac
17977     done
17978
17979     # Check whether this target needs 64-bit CORE_ADDR
17980     if test x${enable_64_bit_bfd} = xno; then
17981       . ${srcdir}/../bfd/config.bfd
17982     fi
17983
17984     # Check whether this target is native and supports gcore.
17985     if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
17986        && $gdb_have_gcore; then
17987       HAVE_NATIVE_GCORE_TARGET=1
17988     fi
17989   fi
17990 done
17991
17992 if test x${all_targets} = xtrue; then
17993   if test x${enable_64_bit_bfd} = xyes; then
17994     TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
17995   else
17996     TARGET_OBS='$(ALL_TARGET_OBS)'
17997   fi
17998 fi
17999
18000
18001
18002
18003 # For other settings, only the main target counts.
18004 gdb_sim=
18005 gdb_osabi=
18006 targ=$target; . ${srcdir}/configure.tgt
18007
18008 # Fetch the default architecture and default target vector from BFD.
18009 targ=$target; . $srcdir/../bfd/config.bfd
18010
18011 # We only want the first architecture, so strip off the others if
18012 # there is more than one.
18013 targ_archs=`echo $targ_archs | sed 's/ .*//'`
18014
18015 if test "x$targ_archs" != x; then
18016
18017 cat >>confdefs.h <<_ACEOF
18018 #define DEFAULT_BFD_ARCH $targ_archs
18019 _ACEOF
18020
18021 fi
18022 if test "x$targ_defvec" != x; then
18023
18024 cat >>confdefs.h <<_ACEOF
18025 #define DEFAULT_BFD_VEC $targ_defvec
18026 _ACEOF
18027
18028 fi
18029
18030 # Enable MI.
18031 # Check whether --enable-gdbmi was given.
18032 if test "${enable_gdbmi+set}" = set; then :
18033   enableval=$enable_gdbmi;
18034            case $enableval in
18035              yes | no)
18036                ;;
18037              *)
18038                as_fn_error $? "bad value $enableval for --enable-gdbmi" "$LINENO" 5
18039                ;;
18040            esac
18041
18042 else
18043   enable_gdbmi=yes
18044 fi
18045
18046 if test x"$enable_gdbmi" = xyes; then
18047   if test -d "$srcdir/mi"; then
18048     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
18049     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
18050     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
18051     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
18052   fi
18053 fi
18054
18055 # Enable TUI.
18056 # Check whether --enable-tui was given.
18057 if test "${enable_tui+set}" = set; then :
18058   enableval=$enable_tui;
18059            case $enableval in
18060              yes | no | auto)
18061                ;;
18062              *)
18063                as_fn_error $? "bad value $enableval for --enable-tui" "$LINENO" 5
18064                ;;
18065            esac
18066
18067 else
18068   enable_tui=auto
18069 fi
18070
18071
18072 # Enable gdbtk.
18073 # Check whether --enable-gdbtk was given.
18074 if test "${enable_gdbtk+set}" = set; then :
18075   enableval=$enable_gdbtk;
18076            case $enableval in
18077              yes | no)
18078                ;;
18079              *)
18080                as_fn_error $? "bad value $enableval for --enable-gdbtk" "$LINENO" 5
18081                ;;
18082            esac
18083
18084 else
18085   if test -d "$srcdir/gdbtk"; then
18086                  enable_gdbtk=yes
18087                else
18088                  enable_gdbtk=no
18089                fi
18090 fi
18091
18092 # We unconditionally disable gdbtk tests on selected platforms.
18093 case $host_os in
18094   go32* | windows*)
18095     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
18096 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
18097     enable_gdbtk=no ;;
18098 esac
18099
18100 # Handle optional debuginfod support
18101
18102
18103
18104
18105
18106
18107
18108 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18109         if test -n "$ac_tool_prefix"; then
18110   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18111 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18113 $as_echo_n "checking for $ac_word... " >&6; }
18114 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18115   $as_echo_n "(cached) " >&6
18116 else
18117   case $PKG_CONFIG in
18118   [\\/]* | ?:[\\/]*)
18119   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18120   ;;
18121   *)
18122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18123 for as_dir in $PATH
18124 do
18125   IFS=$as_save_IFS
18126   test -z "$as_dir" && as_dir=.
18127     for ac_exec_ext in '' $ac_executable_extensions; do
18128   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18129     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18131     break 2
18132   fi
18133 done
18134   done
18135 IFS=$as_save_IFS
18136
18137   ;;
18138 esac
18139 fi
18140 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18141 if test -n "$PKG_CONFIG"; then
18142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18143 $as_echo "$PKG_CONFIG" >&6; }
18144 else
18145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18146 $as_echo "no" >&6; }
18147 fi
18148
18149
18150 fi
18151 if test -z "$ac_cv_path_PKG_CONFIG"; then
18152   ac_pt_PKG_CONFIG=$PKG_CONFIG
18153   # Extract the first word of "pkg-config", so it can be a program name with args.
18154 set dummy pkg-config; ac_word=$2
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18156 $as_echo_n "checking for $ac_word... " >&6; }
18157 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18158   $as_echo_n "(cached) " >&6
18159 else
18160   case $ac_pt_PKG_CONFIG in
18161   [\\/]* | ?:[\\/]*)
18162   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18163   ;;
18164   *)
18165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18166 for as_dir in $PATH
18167 do
18168   IFS=$as_save_IFS
18169   test -z "$as_dir" && as_dir=.
18170     for ac_exec_ext in '' $ac_executable_extensions; do
18171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18172     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18174     break 2
18175   fi
18176 done
18177   done
18178 IFS=$as_save_IFS
18179
18180   ;;
18181 esac
18182 fi
18183 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18184 if test -n "$ac_pt_PKG_CONFIG"; then
18185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18186 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18187 else
18188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18189 $as_echo "no" >&6; }
18190 fi
18191
18192   if test "x$ac_pt_PKG_CONFIG" = x; then
18193     PKG_CONFIG=""
18194   else
18195     case $cross_compiling:$ac_tool_warned in
18196 yes:)
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18199 ac_tool_warned=yes ;;
18200 esac
18201     PKG_CONFIG=$ac_pt_PKG_CONFIG
18202   fi
18203 else
18204   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18205 fi
18206
18207 fi
18208 if test -n "$PKG_CONFIG"; then
18209         _pkg_min_version=0.9.0
18210         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18211 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18212         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18213                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18214 $as_echo "yes" >&6; }
18215         else
18216                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18217 $as_echo "no" >&6; }
18218                 PKG_CONFIG=""
18219         fi
18220 fi
18221
18222 # Handle optional debuginfod support
18223
18224 # Check whether --with-debuginfod was given.
18225 if test "${with_debuginfod+set}" = set; then :
18226   withval=$with_debuginfod;
18227 else
18228   with_debuginfod=auto
18229 fi
18230
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
18232 $as_echo_n "checking whether to use debuginfod... " >&6; }
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
18234 $as_echo "$with_debuginfod" >&6; }
18235
18236 if test "x$with_debuginfod" != xno; then
18237
18238 pkg_failed=no
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
18240 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
18241
18242 if test -n "$DEBUGINFOD_CFLAGS"; then
18243     pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
18244  elif test -n "$PKG_CONFIG"; then
18245     if test -n "$PKG_CONFIG" && \
18246     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
18247   ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
18248   ac_status=$?
18249   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18250   test $ac_status = 0; }; then
18251   pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
18252                       test "x$?" != "x0" && pkg_failed=yes
18253 else
18254   pkg_failed=yes
18255 fi
18256  else
18257     pkg_failed=untried
18258 fi
18259 if test -n "$DEBUGINFOD_LIBS"; then
18260     pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
18261  elif test -n "$PKG_CONFIG"; then
18262     if test -n "$PKG_CONFIG" && \
18263     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
18264   ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
18265   ac_status=$?
18266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18267   test $ac_status = 0; }; then
18268   pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
18269                       test "x$?" != "x0" && pkg_failed=yes
18270 else
18271   pkg_failed=yes
18272 fi
18273  else
18274     pkg_failed=untried
18275 fi
18276
18277 if test $pkg_failed = no; then
18278   pkg_save_LDFLAGS="$LDFLAGS"
18279   LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
18280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18281 /* end confdefs.h.  */
18282
18283 int
18284 main ()
18285 {
18286
18287   ;
18288   return 0;
18289 }
18290 _ACEOF
18291 if ac_fn_c_try_link "$LINENO"; then :
18292
18293 else
18294   pkg_failed=yes
18295 fi
18296 rm -f core conftest.err conftest.$ac_objext \
18297     conftest$ac_exeext conftest.$ac_ext
18298   LDFLAGS=$pkg_save_LDFLAGS
18299 fi
18300
18301
18302
18303 if test $pkg_failed = yes; then
18304         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18305 $as_echo "no" >&6; }
18306
18307 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18308         _pkg_short_errors_supported=yes
18309 else
18310         _pkg_short_errors_supported=no
18311 fi
18312         if test $_pkg_short_errors_supported = yes; then
18313                 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
18314         else
18315                 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
18316         fi
18317         # Put the nasty error message in config.log where it belongs
18318         echo "$DEBUGINFOD_PKG_ERRORS" >&5
18319
18320         if test "x$with_debuginfod" = xyes; then
18321        as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
18322      else
18323        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
18324 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
18325      fi
18326 elif test $pkg_failed = untried; then
18327         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18328 $as_echo "no" >&6; }
18329         if test "x$with_debuginfod" = xyes; then
18330        as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
18331      else
18332        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
18333 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
18334      fi
18335 else
18336         DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
18337         DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
18338         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18339 $as_echo "yes" >&6; }
18340
18341 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
18342
18343 fi
18344 else
18345   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
18346 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
18347 fi
18348
18349
18350 # Libunwind support for ia64.
18351
18352 # Check whether --with-libunwind-ia64 was given.
18353 if test "${with_libunwind_ia64+set}" = set; then :
18354   withval=$with_libunwind_ia64;
18355 else
18356   with_libunwind_ia64=auto
18357 fi
18358
18359
18360 # Backward compatibility option.
18361 if test "${with_libunwind+set}" = set; then
18362   if test x"$with_libunwind_ia64" != xauto; then
18363     as_fn_error $? "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
18364   fi
18365   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
18366 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
18367   with_libunwind_ia64="$with_libunwind"
18368 fi
18369
18370 case "$with_libunwind_ia64" in
18371   yes | no)
18372     ;;
18373   auto)
18374     for ac_header in libunwind-ia64.h
18375 do :
18376   ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
18377 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
18378   cat >>confdefs.h <<_ACEOF
18379 #define HAVE_LIBUNWIND_IA64_H 1
18380 _ACEOF
18381
18382 fi
18383
18384 done
18385
18386     with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
18387     ;;
18388   *)
18389     as_fn_error $? "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
18390     ;;
18391 esac
18392
18393 if test x"$with_libunwind_ia64" = xyes; then
18394   for ac_header in libunwind-ia64.h
18395 do :
18396   ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
18397 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
18398   cat >>confdefs.h <<_ACEOF
18399 #define HAVE_LIBUNWIND_IA64_H 1
18400 _ACEOF
18401
18402 fi
18403
18404 done
18405
18406   if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
18407     as_fn_error $? "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
18408   fi
18409   CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
18410   CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
18411   CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
18412 fi
18413
18414 opt_curses=no
18415
18416 # Check whether --with-curses was given.
18417 if test "${with_curses+set}" = set; then :
18418   withval=$with_curses; opt_curses=$withval
18419 fi
18420
18421
18422 prefer_curses=no
18423 if test "$opt_curses" = "yes"; then
18424   prefer_curses=yes
18425 fi
18426
18427 # Profiling support.
18428 # Check whether --enable-profiling was given.
18429 if test "${enable_profiling+set}" = set; then :
18430   enableval=$enable_profiling;
18431            case $enableval in
18432              yes | no)
18433                ;;
18434              *)
18435                as_fn_error $? "bad value $enableval for --enable-profiling" "$LINENO" 5
18436                ;;
18437            esac
18438
18439 else
18440   enable_profiling=no
18441 fi
18442
18443
18444 for ac_func in monstartup _mcleanup
18445 do :
18446   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18447 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18448 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18449   cat >>confdefs.h <<_ACEOF
18450 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18451 _ACEOF
18452
18453 fi
18454 done
18455
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
18457 $as_echo_n "checking for _etext... " >&6; }
18458 if ${ac_cv_var__etext+:} false; then :
18459   $as_echo_n "(cached) " >&6
18460 else
18461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18462 /* end confdefs.h.  */
18463 #include <stdlib.h>
18464          extern char _etext;
18465 int
18466 main ()
18467 {
18468 free (&_etext);
18469
18470   ;
18471   return 0;
18472 }
18473 _ACEOF
18474 if ac_fn_c_try_link "$LINENO"; then :
18475   ac_cv_var__etext=yes
18476 else
18477   ac_cv_var__etext=no
18478
18479 fi
18480 rm -f core conftest.err conftest.$ac_objext \
18481     conftest$ac_exeext conftest.$ac_ext
18482
18483 fi
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
18485 $as_echo "$ac_cv_var__etext" >&6; }
18486 if test "$ac_cv_var__etext" = yes; then
18487
18488 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
18489
18490 fi
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
18492 $as_echo_n "checking for etext... " >&6; }
18493 if ${ac_cv_var_etext+:} false; then :
18494   $as_echo_n "(cached) " >&6
18495 else
18496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18497 /* end confdefs.h.  */
18498 #include <stdlib.h>
18499          extern char etext;
18500 int
18501 main ()
18502 {
18503 free (&etext);
18504
18505   ;
18506   return 0;
18507 }
18508 _ACEOF
18509 if ac_fn_c_try_link "$LINENO"; then :
18510   ac_cv_var_etext=yes
18511 else
18512   ac_cv_var_etext=no
18513
18514 fi
18515 rm -f core conftest.err conftest.$ac_objext \
18516     conftest$ac_exeext conftest.$ac_ext
18517
18518 fi
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
18520 $as_echo "$ac_cv_var_etext" >&6; }
18521 if test "$ac_cv_var_etext" = yes; then
18522
18523 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
18524
18525 fi
18526 if test "$enable_profiling" = yes ; then
18527   if test "$ac_cv_func_monstartup" = no || test "$ac_cv_func__mcleanup" = no; then
18528     as_fn_error $? "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
18529   fi
18530   PROFILE_CFLAGS=-pg
18531   OLD_CFLAGS="$CFLAGS"
18532   CFLAGS="$CFLAGS $PROFILE_CFLAGS"
18533
18534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
18535 $as_echo_n "checking whether $CC supports -pg... " >&6; }
18536 if ${ac_cv_cc_supports_pg+:} false; then :
18537   $as_echo_n "(cached) " >&6
18538 else
18539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18540 /* end confdefs.h.  */
18541
18542 int
18543 main ()
18544 {
18545 int x;
18546   ;
18547   return 0;
18548 }
18549 _ACEOF
18550 if ac_fn_c_try_compile "$LINENO"; then :
18551   ac_cv_cc_supports_pg=yes
18552 else
18553   ac_cv_cc_supports_pg=no
18554
18555 fi
18556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18557
18558 fi
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
18560 $as_echo "$ac_cv_cc_supports_pg" >&6; }
18561
18562   if test "$ac_cv_cc_supports_pg" = no; then
18563     as_fn_error $? "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
18564   fi
18565
18566   CFLAGS="$OLD_CFLAGS"
18567 fi
18568
18569 CODESIGN_CERT=
18570 # Check whether --enable-codesign was given.
18571 if test "${enable_codesign+set}" = set; then :
18572   enableval=$enable_codesign; CODESIGN_CERT=$enableval
18573 fi
18574
18575
18576
18577
18578
18579 # Check whether --with-pkgversion was given.
18580 if test "${with_pkgversion+set}" = set; then :
18581   withval=$with_pkgversion; case "$withval" in
18582       yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
18583       no)  PKGVERSION= ;;
18584       *)   PKGVERSION="($withval) " ;;
18585      esac
18586 else
18587   PKGVERSION="(GDB) "
18588
18589 fi
18590
18591
18592
18593
18594
18595 # Check whether --with-bugurl was given.
18596 if test "${with_bugurl+set}" = set; then :
18597   withval=$with_bugurl; case "$withval" in
18598       yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
18599       no)  BUGURL=
18600            ;;
18601       *)   BUGURL="$withval"
18602            ;;
18603      esac
18604 else
18605   BUGURL="https://www.gnu.org/software/gdb/bugs/"
18606
18607 fi
18608
18609   case ${BUGURL} in
18610   "")
18611     REPORT_BUGS_TO=
18612     REPORT_BUGS_TEXI=
18613     ;;
18614   *)
18615     REPORT_BUGS_TO="<$BUGURL>"
18616     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
18617     ;;
18618   esac;
18619
18620
18621
18622
18623 cat >>confdefs.h <<_ACEOF
18624 #define PKGVERSION "$PKGVERSION"
18625 _ACEOF
18626
18627
18628 cat >>confdefs.h <<_ACEOF
18629 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
18630 _ACEOF
18631
18632
18633 # --------------------- #
18634 # Checks for programs.  #
18635 # --------------------- #
18636
18637 for ac_prog in gawk mawk nawk awk
18638 do
18639   # Extract the first word of "$ac_prog", so it can be a program name with args.
18640 set dummy $ac_prog; ac_word=$2
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18642 $as_echo_n "checking for $ac_word... " >&6; }
18643 if ${ac_cv_prog_AWK+:} false; then :
18644   $as_echo_n "(cached) " >&6
18645 else
18646   if test -n "$AWK"; then
18647   ac_cv_prog_AWK="$AWK" # Let the user override the test.
18648 else
18649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18650 for as_dir in $PATH
18651 do
18652   IFS=$as_save_IFS
18653   test -z "$as_dir" && as_dir=.
18654     for ac_exec_ext in '' $ac_executable_extensions; do
18655   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18656     ac_cv_prog_AWK="$ac_prog"
18657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18658     break 2
18659   fi
18660 done
18661   done
18662 IFS=$as_save_IFS
18663
18664 fi
18665 fi
18666 AWK=$ac_cv_prog_AWK
18667 if test -n "$AWK"; then
18668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
18669 $as_echo "$AWK" >&6; }
18670 else
18671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18672 $as_echo "no" >&6; }
18673 fi
18674
18675
18676   test -n "$AWK" && break
18677 done
18678
18679 # Find a good install program.  We prefer a C program (faster),
18680 # so one script is as good as another.  But avoid the broken or
18681 # incompatible versions:
18682 # SysV /etc/install, /usr/sbin/install
18683 # SunOS /usr/etc/install
18684 # IRIX /sbin/install
18685 # AIX /bin/install
18686 # AmigaOS /C/install, which installs bootblocks on floppy discs
18687 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18688 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18689 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18690 # OS/2's system install, which has a completely different semantic
18691 # ./install, which can be erroneously created by make from ./install.sh.
18692 # Reject install programs that cannot install multiple files.
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
18694 $as_echo_n "checking for a BSD-compatible install... " >&6; }
18695 if test -z "$INSTALL"; then
18696 if ${ac_cv_path_install+:} false; then :
18697   $as_echo_n "(cached) " >&6
18698 else
18699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18700 for as_dir in $PATH
18701 do
18702   IFS=$as_save_IFS
18703   test -z "$as_dir" && as_dir=.
18704     # Account for people who put trailing slashes in PATH elements.
18705 case $as_dir/ in #((
18706   ./ | .// | /[cC]/* | \
18707   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18708   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
18709   /usr/ucb/* ) ;;
18710   *)
18711     # OSF1 and SCO ODT 3.0 have their own names for install.
18712     # Don't use installbsd from OSF since it installs stuff as root
18713     # by default.
18714     for ac_prog in ginstall scoinst install; do
18715       for ac_exec_ext in '' $ac_executable_extensions; do
18716         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
18717           if test $ac_prog = install &&
18718             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18719             # AIX install.  It has an incompatible calling convention.
18720             :
18721           elif test $ac_prog = install &&
18722             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18723             # program-specific install script used by HP pwplus--don't use.
18724             :
18725           else
18726             rm -rf conftest.one conftest.two conftest.dir
18727             echo one > conftest.one
18728             echo two > conftest.two
18729             mkdir conftest.dir
18730             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
18731               test -s conftest.one && test -s conftest.two &&
18732               test -s conftest.dir/conftest.one &&
18733               test -s conftest.dir/conftest.two
18734             then
18735               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18736               break 3
18737             fi
18738           fi
18739         fi
18740       done
18741     done
18742     ;;
18743 esac
18744
18745   done
18746 IFS=$as_save_IFS
18747
18748 rm -rf conftest.one conftest.two conftest.dir
18749
18750 fi
18751   if test "${ac_cv_path_install+set}" = set; then
18752     INSTALL=$ac_cv_path_install
18753   else
18754     # As a last resort, use the slow shell script.  Don't cache a
18755     # value for INSTALL within a source directory, because that will
18756     # break other packages using the cache if that directory is
18757     # removed, or if the value is a relative name.
18758     INSTALL=$ac_install_sh
18759   fi
18760 fi
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
18762 $as_echo "$INSTALL" >&6; }
18763
18764 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18765 # It thinks the first close brace ends the variable substitution.
18766 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18767
18768 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18769
18770 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18771
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
18773 $as_echo_n "checking whether ln -s works... " >&6; }
18774 LN_S=$as_ln_s
18775 if test "$LN_S" = "ln -s"; then
18776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18777 $as_echo "yes" >&6; }
18778 else
18779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
18780 $as_echo "no, using $LN_S" >&6; }
18781 fi
18782
18783 if test -n "$ac_tool_prefix"; then
18784   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18785 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18787 $as_echo_n "checking for $ac_word... " >&6; }
18788 if ${ac_cv_prog_RANLIB+:} false; then :
18789   $as_echo_n "(cached) " >&6
18790 else
18791   if test -n "$RANLIB"; then
18792   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18793 else
18794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18795 for as_dir in $PATH
18796 do
18797   IFS=$as_save_IFS
18798   test -z "$as_dir" && as_dir=.
18799     for ac_exec_ext in '' $ac_executable_extensions; do
18800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18801     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18803     break 2
18804   fi
18805 done
18806   done
18807 IFS=$as_save_IFS
18808
18809 fi
18810 fi
18811 RANLIB=$ac_cv_prog_RANLIB
18812 if test -n "$RANLIB"; then
18813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
18814 $as_echo "$RANLIB" >&6; }
18815 else
18816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18817 $as_echo "no" >&6; }
18818 fi
18819
18820
18821 fi
18822 if test -z "$ac_cv_prog_RANLIB"; then
18823   ac_ct_RANLIB=$RANLIB
18824   # Extract the first word of "ranlib", so it can be a program name with args.
18825 set dummy ranlib; ac_word=$2
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18827 $as_echo_n "checking for $ac_word... " >&6; }
18828 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
18829   $as_echo_n "(cached) " >&6
18830 else
18831   if test -n "$ac_ct_RANLIB"; then
18832   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18833 else
18834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18835 for as_dir in $PATH
18836 do
18837   IFS=$as_save_IFS
18838   test -z "$as_dir" && as_dir=.
18839     for ac_exec_ext in '' $ac_executable_extensions; do
18840   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18841     ac_cv_prog_ac_ct_RANLIB="ranlib"
18842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18843     break 2
18844   fi
18845 done
18846   done
18847 IFS=$as_save_IFS
18848
18849 fi
18850 fi
18851 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18852 if test -n "$ac_ct_RANLIB"; then
18853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
18854 $as_echo "$ac_ct_RANLIB" >&6; }
18855 else
18856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18857 $as_echo "no" >&6; }
18858 fi
18859
18860   if test "x$ac_ct_RANLIB" = x; then
18861     RANLIB=":"
18862   else
18863     case $cross_compiling:$ac_tool_warned in
18864 yes:)
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18867 ac_tool_warned=yes ;;
18868 esac
18869     RANLIB=$ac_ct_RANLIB
18870   fi
18871 else
18872   RANLIB="$ac_cv_prog_RANLIB"
18873 fi
18874
18875 for ac_prog in 'bison -y' byacc
18876 do
18877   # Extract the first word of "$ac_prog", so it can be a program name with args.
18878 set dummy $ac_prog; ac_word=$2
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18880 $as_echo_n "checking for $ac_word... " >&6; }
18881 if ${ac_cv_prog_YACC+:} false; then :
18882   $as_echo_n "(cached) " >&6
18883 else
18884   if test -n "$YACC"; then
18885   ac_cv_prog_YACC="$YACC" # Let the user override the test.
18886 else
18887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18888 for as_dir in $PATH
18889 do
18890   IFS=$as_save_IFS
18891   test -z "$as_dir" && as_dir=.
18892     for ac_exec_ext in '' $ac_executable_extensions; do
18893   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18894     ac_cv_prog_YACC="$ac_prog"
18895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18896     break 2
18897   fi
18898 done
18899   done
18900 IFS=$as_save_IFS
18901
18902 fi
18903 fi
18904 YACC=$ac_cv_prog_YACC
18905 if test -n "$YACC"; then
18906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
18907 $as_echo "$YACC" >&6; }
18908 else
18909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18910 $as_echo "no" >&6; }
18911 fi
18912
18913
18914   test -n "$YACC" && break
18915 done
18916 test -n "$YACC" || YACC="yacc"
18917
18918
18919 if test -n "$ac_tool_prefix"; then
18920   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
18921 set dummy ${ac_tool_prefix}ar; ac_word=$2
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18923 $as_echo_n "checking for $ac_word... " >&6; }
18924 if ${ac_cv_prog_AR+:} false; then :
18925   $as_echo_n "(cached) " >&6
18926 else
18927   if test -n "$AR"; then
18928   ac_cv_prog_AR="$AR" # Let the user override the test.
18929 else
18930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18931 for as_dir in $PATH
18932 do
18933   IFS=$as_save_IFS
18934   test -z "$as_dir" && as_dir=.
18935     for ac_exec_ext in '' $ac_executable_extensions; do
18936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18937     ac_cv_prog_AR="${ac_tool_prefix}ar"
18938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18939     break 2
18940   fi
18941 done
18942   done
18943 IFS=$as_save_IFS
18944
18945 fi
18946 fi
18947 AR=$ac_cv_prog_AR
18948 if test -n "$AR"; then
18949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
18950 $as_echo "$AR" >&6; }
18951 else
18952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18953 $as_echo "no" >&6; }
18954 fi
18955
18956
18957 fi
18958 if test -z "$ac_cv_prog_AR"; then
18959   ac_ct_AR=$AR
18960   # Extract the first word of "ar", so it can be a program name with args.
18961 set dummy ar; ac_word=$2
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18963 $as_echo_n "checking for $ac_word... " >&6; }
18964 if ${ac_cv_prog_ac_ct_AR+:} false; then :
18965   $as_echo_n "(cached) " >&6
18966 else
18967   if test -n "$ac_ct_AR"; then
18968   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
18969 else
18970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18971 for as_dir in $PATH
18972 do
18973   IFS=$as_save_IFS
18974   test -z "$as_dir" && as_dir=.
18975     for ac_exec_ext in '' $ac_executable_extensions; do
18976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18977     ac_cv_prog_ac_ct_AR="ar"
18978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18979     break 2
18980   fi
18981 done
18982   done
18983 IFS=$as_save_IFS
18984
18985 fi
18986 fi
18987 ac_ct_AR=$ac_cv_prog_ac_ct_AR
18988 if test -n "$ac_ct_AR"; then
18989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
18990 $as_echo "$ac_ct_AR" >&6; }
18991 else
18992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18993 $as_echo "no" >&6; }
18994 fi
18995
18996   if test "x$ac_ct_AR" = x; then
18997     AR=""
18998   else
18999     case $cross_compiling:$ac_tool_warned in
19000 yes:)
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19003 ac_tool_warned=yes ;;
19004 esac
19005     AR=$ac_ct_AR
19006   fi
19007 else
19008   AR="$ac_cv_prog_AR"
19009 fi
19010
19011 if test -n "$ac_tool_prefix"; then
19012   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
19013 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19015 $as_echo_n "checking for $ac_word... " >&6; }
19016 if ${ac_cv_prog_DLLTOOL+:} false; then :
19017   $as_echo_n "(cached) " >&6
19018 else
19019   if test -n "$DLLTOOL"; then
19020   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
19021 else
19022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19023 for as_dir in $PATH
19024 do
19025   IFS=$as_save_IFS
19026   test -z "$as_dir" && as_dir=.
19027     for ac_exec_ext in '' $ac_executable_extensions; do
19028   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19029     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
19030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19031     break 2
19032   fi
19033 done
19034   done
19035 IFS=$as_save_IFS
19036
19037 fi
19038 fi
19039 DLLTOOL=$ac_cv_prog_DLLTOOL
19040 if test -n "$DLLTOOL"; then
19041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
19042 $as_echo "$DLLTOOL" >&6; }
19043 else
19044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19045 $as_echo "no" >&6; }
19046 fi
19047
19048
19049 fi
19050 if test -z "$ac_cv_prog_DLLTOOL"; then
19051   ac_ct_DLLTOOL=$DLLTOOL
19052   # Extract the first word of "dlltool", so it can be a program name with args.
19053 set dummy dlltool; ac_word=$2
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19055 $as_echo_n "checking for $ac_word... " >&6; }
19056 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
19057   $as_echo_n "(cached) " >&6
19058 else
19059   if test -n "$ac_ct_DLLTOOL"; then
19060   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
19061 else
19062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19063 for as_dir in $PATH
19064 do
19065   IFS=$as_save_IFS
19066   test -z "$as_dir" && as_dir=.
19067     for ac_exec_ext in '' $ac_executable_extensions; do
19068   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19069     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
19070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19071     break 2
19072   fi
19073 done
19074   done
19075 IFS=$as_save_IFS
19076
19077 fi
19078 fi
19079 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
19080 if test -n "$ac_ct_DLLTOOL"; then
19081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
19082 $as_echo "$ac_ct_DLLTOOL" >&6; }
19083 else
19084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19085 $as_echo "no" >&6; }
19086 fi
19087
19088   if test "x$ac_ct_DLLTOOL" = x; then
19089     DLLTOOL=""
19090   else
19091     case $cross_compiling:$ac_tool_warned in
19092 yes:)
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19095 ac_tool_warned=yes ;;
19096 esac
19097     DLLTOOL=$ac_ct_DLLTOOL
19098   fi
19099 else
19100   DLLTOOL="$ac_cv_prog_DLLTOOL"
19101 fi
19102
19103 if test -n "$ac_tool_prefix"; then
19104   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19105 set dummy ${ac_tool_prefix}windres; ac_word=$2
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19107 $as_echo_n "checking for $ac_word... " >&6; }
19108 if ${ac_cv_prog_WINDRES+:} false; then :
19109   $as_echo_n "(cached) " >&6
19110 else
19111   if test -n "$WINDRES"; then
19112   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19113 else
19114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19115 for as_dir in $PATH
19116 do
19117   IFS=$as_save_IFS
19118   test -z "$as_dir" && as_dir=.
19119     for ac_exec_ext in '' $ac_executable_extensions; do
19120   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19121     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19123     break 2
19124   fi
19125 done
19126   done
19127 IFS=$as_save_IFS
19128
19129 fi
19130 fi
19131 WINDRES=$ac_cv_prog_WINDRES
19132 if test -n "$WINDRES"; then
19133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19134 $as_echo "$WINDRES" >&6; }
19135 else
19136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19137 $as_echo "no" >&6; }
19138 fi
19139
19140
19141 fi
19142 if test -z "$ac_cv_prog_WINDRES"; then
19143   ac_ct_WINDRES=$WINDRES
19144   # Extract the first word of "windres", so it can be a program name with args.
19145 set dummy windres; ac_word=$2
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19147 $as_echo_n "checking for $ac_word... " >&6; }
19148 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
19149   $as_echo_n "(cached) " >&6
19150 else
19151   if test -n "$ac_ct_WINDRES"; then
19152   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19153 else
19154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19155 for as_dir in $PATH
19156 do
19157   IFS=$as_save_IFS
19158   test -z "$as_dir" && as_dir=.
19159     for ac_exec_ext in '' $ac_executable_extensions; do
19160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19161     ac_cv_prog_ac_ct_WINDRES="windres"
19162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19163     break 2
19164   fi
19165 done
19166   done
19167 IFS=$as_save_IFS
19168
19169 fi
19170 fi
19171 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19172 if test -n "$ac_ct_WINDRES"; then
19173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19174 $as_echo "$ac_ct_WINDRES" >&6; }
19175 else
19176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19177 $as_echo "no" >&6; }
19178 fi
19179
19180   if test "x$ac_ct_WINDRES" = x; then
19181     WINDRES=""
19182   else
19183     case $cross_compiling:$ac_tool_warned in
19184 yes:)
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19187 ac_tool_warned=yes ;;
19188 esac
19189     WINDRES=$ac_ct_WINDRES
19190   fi
19191 else
19192   WINDRES="$ac_cv_prog_WINDRES"
19193 fi
19194
19195
19196 case $host_os in
19197   gnu*)
19198     # Needed for GNU Hurd hosts.
19199     if test -n "$ac_tool_prefix"; then
19200   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
19201 set dummy ${ac_tool_prefix}mig; ac_word=$2
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19203 $as_echo_n "checking for $ac_word... " >&6; }
19204 if ${ac_cv_prog_MIG+:} false; then :
19205   $as_echo_n "(cached) " >&6
19206 else
19207   if test -n "$MIG"; then
19208   ac_cv_prog_MIG="$MIG" # Let the user override the test.
19209 else
19210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19211 for as_dir in $PATH
19212 do
19213   IFS=$as_save_IFS
19214   test -z "$as_dir" && as_dir=.
19215     for ac_exec_ext in '' $ac_executable_extensions; do
19216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19217     ac_cv_prog_MIG="${ac_tool_prefix}mig"
19218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19219     break 2
19220   fi
19221 done
19222   done
19223 IFS=$as_save_IFS
19224
19225 fi
19226 fi
19227 MIG=$ac_cv_prog_MIG
19228 if test -n "$MIG"; then
19229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
19230 $as_echo "$MIG" >&6; }
19231 else
19232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19233 $as_echo "no" >&6; }
19234 fi
19235
19236
19237 fi
19238 if test -z "$ac_cv_prog_MIG"; then
19239   ac_ct_MIG=$MIG
19240   # Extract the first word of "mig", so it can be a program name with args.
19241 set dummy mig; ac_word=$2
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19243 $as_echo_n "checking for $ac_word... " >&6; }
19244 if ${ac_cv_prog_ac_ct_MIG+:} false; then :
19245   $as_echo_n "(cached) " >&6
19246 else
19247   if test -n "$ac_ct_MIG"; then
19248   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
19249 else
19250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19251 for as_dir in $PATH
19252 do
19253   IFS=$as_save_IFS
19254   test -z "$as_dir" && as_dir=.
19255     for ac_exec_ext in '' $ac_executable_extensions; do
19256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19257     ac_cv_prog_ac_ct_MIG="mig"
19258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19259     break 2
19260   fi
19261 done
19262   done
19263 IFS=$as_save_IFS
19264
19265 fi
19266 fi
19267 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
19268 if test -n "$ac_ct_MIG"; then
19269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
19270 $as_echo "$ac_ct_MIG" >&6; }
19271 else
19272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19273 $as_echo "no" >&6; }
19274 fi
19275
19276   if test "x$ac_ct_MIG" = x; then
19277     MIG=""
19278   else
19279     case $cross_compiling:$ac_tool_warned in
19280 yes:)
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19283 ac_tool_warned=yes ;;
19284 esac
19285     MIG=$ac_ct_MIG
19286   fi
19287 else
19288   MIG="$ac_cv_prog_MIG"
19289 fi
19290
19291     if test x"$MIG" = x; then
19292       as_fn_error $? "MIG not found but required for $host hosts" "$LINENO" 5
19293     fi
19294     ;;
19295 esac
19296
19297 # ---------------------- #
19298 # Checks for libraries.  #
19299 # ---------------------- #
19300
19301 # We might need to link with -lm; most simulators need it.
19302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
19303 $as_echo_n "checking for main in -lm... " >&6; }
19304 if ${ac_cv_lib_m_main+:} false; then :
19305   $as_echo_n "(cached) " >&6
19306 else
19307   ac_check_lib_save_LIBS=$LIBS
19308 LIBS="-lm  $LIBS"
19309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19310 /* end confdefs.h.  */
19311
19312
19313 int
19314 main ()
19315 {
19316 return main ();
19317   ;
19318   return 0;
19319 }
19320 _ACEOF
19321 if ac_fn_c_try_link "$LINENO"; then :
19322   ac_cv_lib_m_main=yes
19323 else
19324   ac_cv_lib_m_main=no
19325 fi
19326 rm -f core conftest.err conftest.$ac_objext \
19327     conftest$ac_exeext conftest.$ac_ext
19328 LIBS=$ac_check_lib_save_LIBS
19329 fi
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
19331 $as_echo "$ac_cv_lib_m_main" >&6; }
19332 if test "x$ac_cv_lib_m_main" = xyes; then :
19333   cat >>confdefs.h <<_ACEOF
19334 #define HAVE_LIBM 1
19335 _ACEOF
19336
19337   LIBS="-lm $LIBS"
19338
19339 fi
19340
19341
19342 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
19343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
19344 $as_echo_n "checking for library containing gethostbyname... " >&6; }
19345 if ${ac_cv_search_gethostbyname+:} false; then :
19346   $as_echo_n "(cached) " >&6
19347 else
19348   ac_func_search_save_LIBS=$LIBS
19349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19350 /* end confdefs.h.  */
19351
19352 /* Override any GCC internal prototype to avoid an error.
19353    Use char because int might match the return type of a GCC
19354    builtin and then its argument prototype would still apply.  */
19355 #ifdef __cplusplus
19356 extern "C"
19357 #endif
19358 char gethostbyname ();
19359 int
19360 main ()
19361 {
19362 return gethostbyname ();
19363   ;
19364   return 0;
19365 }
19366 _ACEOF
19367 for ac_lib in '' nsl; do
19368   if test -z "$ac_lib"; then
19369     ac_res="none required"
19370   else
19371     ac_res=-l$ac_lib
19372     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19373   fi
19374   if ac_fn_c_try_link "$LINENO"; then :
19375   ac_cv_search_gethostbyname=$ac_res
19376 fi
19377 rm -f core conftest.err conftest.$ac_objext \
19378     conftest$ac_exeext
19379   if ${ac_cv_search_gethostbyname+:} false; then :
19380   break
19381 fi
19382 done
19383 if ${ac_cv_search_gethostbyname+:} false; then :
19384
19385 else
19386   ac_cv_search_gethostbyname=no
19387 fi
19388 rm conftest.$ac_ext
19389 LIBS=$ac_func_search_save_LIBS
19390 fi
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
19392 $as_echo "$ac_cv_search_gethostbyname" >&6; }
19393 ac_res=$ac_cv_search_gethostbyname
19394 if test "$ac_res" != no; then :
19395   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19396
19397 fi
19398
19399
19400 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
19401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
19402 $as_echo_n "checking for library containing socketpair... " >&6; }
19403 if ${ac_cv_search_socketpair+:} false; then :
19404   $as_echo_n "(cached) " >&6
19405 else
19406   ac_func_search_save_LIBS=$LIBS
19407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19408 /* end confdefs.h.  */
19409
19410 /* Override any GCC internal prototype to avoid an error.
19411    Use char because int might match the return type of a GCC
19412    builtin and then its argument prototype would still apply.  */
19413 #ifdef __cplusplus
19414 extern "C"
19415 #endif
19416 char socketpair ();
19417 int
19418 main ()
19419 {
19420 return socketpair ();
19421   ;
19422   return 0;
19423 }
19424 _ACEOF
19425 for ac_lib in '' socket; do
19426   if test -z "$ac_lib"; then
19427     ac_res="none required"
19428   else
19429     ac_res=-l$ac_lib
19430     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19431   fi
19432   if ac_fn_c_try_link "$LINENO"; then :
19433   ac_cv_search_socketpair=$ac_res
19434 fi
19435 rm -f core conftest.err conftest.$ac_objext \
19436     conftest$ac_exeext
19437   if ${ac_cv_search_socketpair+:} false; then :
19438   break
19439 fi
19440 done
19441 if ${ac_cv_search_socketpair+:} false; then :
19442
19443 else
19444   ac_cv_search_socketpair=no
19445 fi
19446 rm conftest.$ac_ext
19447 LIBS=$ac_func_search_save_LIBS
19448 fi
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
19450 $as_echo "$ac_cv_search_socketpair" >&6; }
19451 ac_res=$ac_cv_search_socketpair
19452 if test "$ac_res" != no; then :
19453   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19454
19455 fi
19456
19457
19458 # Link in zlib/zstd if we can.  This allows us to read compressed debug
19459 # sections.
19460
19461   # Use the system's zlib library.
19462   zlibdir="-L\$(top_builddir)/../zlib"
19463   zlibinc="-I\$(top_srcdir)/../zlib"
19464
19465 # Check whether --with-system-zlib was given.
19466 if test "${with_system_zlib+set}" = set; then :
19467   withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
19468     zlibdir=
19469     zlibinc=
19470   fi
19471
19472 fi
19473
19474
19475
19476
19477
19478
19479 # Check whether --with-zstd was given.
19480 if test "${with_zstd+set}" = set; then :
19481   withval=$with_zstd;
19482 else
19483   with_zstd=auto
19484 fi
19485
19486
19487 if test "$with_zstd" != no; then :
19488
19489 pkg_failed=no
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
19491 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
19492
19493 if test -n "$ZSTD_CFLAGS"; then
19494     pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
19495  elif test -n "$PKG_CONFIG"; then
19496     if test -n "$PKG_CONFIG" && \
19497     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19498   ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19499   ac_status=$?
19500   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19501   test $ac_status = 0; }; then
19502   pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
19503                       test "x$?" != "x0" && pkg_failed=yes
19504 else
19505   pkg_failed=yes
19506 fi
19507  else
19508     pkg_failed=untried
19509 fi
19510 if test -n "$ZSTD_LIBS"; then
19511     pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
19512  elif test -n "$PKG_CONFIG"; then
19513     if test -n "$PKG_CONFIG" && \
19514     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19515   ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19516   ac_status=$?
19517   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19518   test $ac_status = 0; }; then
19519   pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
19520                       test "x$?" != "x0" && pkg_failed=yes
19521 else
19522   pkg_failed=yes
19523 fi
19524  else
19525     pkg_failed=untried
19526 fi
19527
19528 if test $pkg_failed = no; then
19529   pkg_save_LDFLAGS="$LDFLAGS"
19530   LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
19531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19532 /* end confdefs.h.  */
19533
19534 int
19535 main ()
19536 {
19537
19538   ;
19539   return 0;
19540 }
19541 _ACEOF
19542 if ac_fn_c_try_link "$LINENO"; then :
19543
19544 else
19545   pkg_failed=yes
19546 fi
19547 rm -f core conftest.err conftest.$ac_objext \
19548     conftest$ac_exeext conftest.$ac_ext
19549   LDFLAGS=$pkg_save_LDFLAGS
19550 fi
19551
19552
19553
19554 if test $pkg_failed = yes; then
19555         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19556 $as_echo "no" >&6; }
19557
19558 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19559         _pkg_short_errors_supported=yes
19560 else
19561         _pkg_short_errors_supported=no
19562 fi
19563         if test $_pkg_short_errors_supported = yes; then
19564                 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19565         else
19566                 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19567         fi
19568         # Put the nasty error message in config.log where it belongs
19569         echo "$ZSTD_PKG_ERRORS" >&5
19570
19571
19572     if test "$with_zstd" = yes; then
19573       as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19574     fi
19575
19576 elif test $pkg_failed = untried; then
19577         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19578 $as_echo "no" >&6; }
19579
19580     if test "$with_zstd" = yes; then
19581       as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19582     fi
19583
19584 else
19585         ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
19586         ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
19587         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19588 $as_echo "yes" >&6; }
19589
19590
19591 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
19592
19593
19594 fi
19595
19596 fi
19597
19598
19599
19600       if test "X$prefix" = "XNONE"; then
19601     acl_final_prefix="$ac_default_prefix"
19602   else
19603     acl_final_prefix="$prefix"
19604   fi
19605   if test "X$exec_prefix" = "XNONE"; then
19606     acl_final_exec_prefix='${prefix}'
19607   else
19608     acl_final_exec_prefix="$exec_prefix"
19609   fi
19610   acl_save_prefix="$prefix"
19611   prefix="$acl_final_prefix"
19612   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
19613   prefix="$acl_save_prefix"
19614
19615
19616 # Check whether --with-gnu-ld was given.
19617 if test "${with_gnu_ld+set}" = set; then :
19618   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19619 else
19620   with_gnu_ld=no
19621 fi
19622
19623 # Prepare PATH_SEPARATOR.
19624 # The user is always right.
19625 if test "${PATH_SEPARATOR+set}" != set; then
19626   echo "#! /bin/sh" >conf$$.sh
19627   echo  "exit 0"   >>conf$$.sh
19628   chmod +x conf$$.sh
19629   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19630     PATH_SEPARATOR=';'
19631   else
19632     PATH_SEPARATOR=:
19633   fi
19634   rm -f conf$$.sh
19635 fi
19636 ac_prog=ld
19637 if test "$GCC" = yes; then
19638   # Check if gcc -print-prog-name=ld gives a path.
19639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
19640 $as_echo_n "checking for ld used by GCC... " >&6; }
19641   case $host in
19642   *-*-mingw*)
19643     # gcc leaves a trailing carriage return which upsets mingw
19644     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19645   *)
19646     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19647   esac
19648   case $ac_prog in
19649     # Accept absolute paths.
19650     [\\/]* | [A-Za-z]:[\\/]*)
19651       re_direlt='/[^/][^/]*/\.\./'
19652       # Canonicalize the path of ld
19653       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
19654       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
19655         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
19656       done
19657       test -z "$LD" && LD="$ac_prog"
19658       ;;
19659   "")
19660     # If it fails, then pretend we aren't using GCC.
19661     ac_prog=ld
19662     ;;
19663   *)
19664     # If it is relative, then search for the first ld in PATH.
19665     with_gnu_ld=unknown
19666     ;;
19667   esac
19668 elif test "$with_gnu_ld" = yes; then
19669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19670 $as_echo_n "checking for GNU ld... " >&6; }
19671 else
19672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19673 $as_echo_n "checking for non-GNU ld... " >&6; }
19674 fi
19675 if ${acl_cv_path_LD+:} false; then :
19676   $as_echo_n "(cached) " >&6
19677 else
19678   if test -z "$LD"; then
19679   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
19680   for ac_dir in $PATH; do
19681     test -z "$ac_dir" && ac_dir=.
19682     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19683       acl_cv_path_LD="$ac_dir/$ac_prog"
19684       # Check to see if the program is GNU ld.  I'd rather use --version,
19685       # but apparently some GNU ld's only accept -v.
19686       # Break only if it was the GNU/non-GNU ld that we prefer.
19687       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
19688         test "$with_gnu_ld" != no && break
19689       else
19690         test "$with_gnu_ld" != yes && break
19691       fi
19692     fi
19693   done
19694   IFS="$ac_save_ifs"
19695 else
19696   acl_cv_path_LD="$LD" # Let the user override the test with a path.
19697 fi
19698 fi
19699
19700 LD="$acl_cv_path_LD"
19701 if test -n "$LD"; then
19702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19703 $as_echo "$LD" >&6; }
19704 else
19705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19706 $as_echo "no" >&6; }
19707 fi
19708 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19710 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19711 if ${acl_cv_prog_gnu_ld+:} false; then :
19712   $as_echo_n "(cached) " >&6
19713 else
19714   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
19715 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
19716   acl_cv_prog_gnu_ld=yes
19717 else
19718   acl_cv_prog_gnu_ld=no
19719 fi
19720 fi
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
19722 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
19723 with_gnu_ld=$acl_cv_prog_gnu_ld
19724
19725
19726
19727                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
19728 $as_echo_n "checking for shared library run path origin... " >&6; }
19729 if ${acl_cv_rpath+:} false; then :
19730   $as_echo_n "(cached) " >&6
19731 else
19732
19733     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
19734     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
19735     . ./conftest.sh
19736     rm -f ./conftest.sh
19737     acl_cv_rpath=done
19738
19739 fi
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
19741 $as_echo "$acl_cv_rpath" >&6; }
19742   wl="$acl_cv_wl"
19743   libext="$acl_cv_libext"
19744   shlibext="$acl_cv_shlibext"
19745   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
19746   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
19747   hardcode_direct="$acl_cv_hardcode_direct"
19748   hardcode_minus_L="$acl_cv_hardcode_minus_L"
19749     # Check whether --enable-rpath was given.
19750 if test "${enable_rpath+set}" = set; then :
19751   enableval=$enable_rpath; :
19752 else
19753   enable_rpath=yes
19754 fi
19755
19756
19757
19758
19759
19760
19761
19762
19763     use_additional=yes
19764
19765   acl_save_prefix="$prefix"
19766   prefix="$acl_final_prefix"
19767   acl_save_exec_prefix="$exec_prefix"
19768   exec_prefix="$acl_final_exec_prefix"
19769
19770     eval additional_includedir=\"$includedir\"
19771     eval additional_libdir=\"$libdir\"
19772
19773   exec_prefix="$acl_save_exec_prefix"
19774   prefix="$acl_save_prefix"
19775
19776
19777 # Check whether --with-libiconv-prefix was given.
19778 if test "${with_libiconv_prefix+set}" = set; then :
19779   withval=$with_libiconv_prefix;
19780     if test "X$withval" = "Xno"; then
19781       use_additional=no
19782     else
19783       if test "X$withval" = "X"; then
19784
19785   acl_save_prefix="$prefix"
19786   prefix="$acl_final_prefix"
19787   acl_save_exec_prefix="$exec_prefix"
19788   exec_prefix="$acl_final_exec_prefix"
19789
19790           eval additional_includedir=\"$includedir\"
19791           eval additional_libdir=\"$libdir\"
19792
19793   exec_prefix="$acl_save_exec_prefix"
19794   prefix="$acl_save_prefix"
19795
19796       else
19797         additional_includedir="$withval/include"
19798         additional_libdir="$withval/lib"
19799       fi
19800     fi
19801
19802 fi
19803
19804
19805 # Check whether --with-libiconv-type was given.
19806 if test "${with_libiconv_type+set}" = set; then :
19807   withval=$with_libiconv_type;  with_libiconv_type=$withval
19808 else
19809    with_libiconv_type=auto
19810 fi
19811
19812   lib_type=`eval echo \$with_libiconv_type`
19813
19814       LIBICONV=
19815   LTLIBICONV=
19816   INCICONV=
19817   rpathdirs=
19818   ltrpathdirs=
19819   names_already_handled=
19820   names_next_round='iconv '
19821   while test -n "$names_next_round"; do
19822     names_this_round="$names_next_round"
19823     names_next_round=
19824     for name in $names_this_round; do
19825       already_handled=
19826       for n in $names_already_handled; do
19827         if test "$n" = "$name"; then
19828           already_handled=yes
19829           break
19830         fi
19831       done
19832       if test -z "$already_handled"; then
19833         names_already_handled="$names_already_handled $name"
19834                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19835         eval value=\"\$HAVE_LIB$uppername\"
19836         if test -n "$value"; then
19837           if test "$value" = yes; then
19838             eval value=\"\$LIB$uppername\"
19839             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
19840             eval value=\"\$LTLIB$uppername\"
19841             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
19842           else
19843                                     :
19844           fi
19845         else
19846                               found_dir=
19847           found_la=
19848           found_so=
19849           found_a=
19850           if test $use_additional = yes; then
19851             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
19852               found_dir="$additional_libdir"
19853               found_so="$additional_libdir/lib$name.$shlibext"
19854               if test -f "$additional_libdir/lib$name.la"; then
19855                 found_la="$additional_libdir/lib$name.la"
19856               fi
19857             elif test x$lib_type != xshared; then
19858               if test -f "$additional_libdir/lib$name.$libext"; then
19859                 found_dir="$additional_libdir"
19860                 found_a="$additional_libdir/lib$name.$libext"
19861                 if test -f "$additional_libdir/lib$name.la"; then
19862                   found_la="$additional_libdir/lib$name.la"
19863                 fi
19864               fi
19865             fi
19866           fi
19867           if test "X$found_dir" = "X"; then
19868             for x in $LDFLAGS $LTLIBICONV; do
19869
19870   acl_save_prefix="$prefix"
19871   prefix="$acl_final_prefix"
19872   acl_save_exec_prefix="$exec_prefix"
19873   exec_prefix="$acl_final_exec_prefix"
19874   eval x=\"$x\"
19875   exec_prefix="$acl_save_exec_prefix"
19876   prefix="$acl_save_prefix"
19877
19878               case "$x" in
19879                 -L*)
19880                   dir=`echo "X$x" | sed -e 's/^X-L//'`
19881                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
19882                     found_dir="$dir"
19883                     found_so="$dir/lib$name.$shlibext"
19884                     if test -f "$dir/lib$name.la"; then
19885                       found_la="$dir/lib$name.la"
19886                     fi
19887                   elif test x$lib_type != xshared; then
19888                     if test -f "$dir/lib$name.$libext"; then
19889                       found_dir="$dir"
19890                       found_a="$dir/lib$name.$libext"
19891                       if test -f "$dir/lib$name.la"; then
19892                         found_la="$dir/lib$name.la"
19893                       fi
19894                     fi
19895                   fi
19896                   ;;
19897               esac
19898               if test "X$found_dir" != "X"; then
19899                 break
19900               fi
19901             done
19902           fi
19903           if test "X$found_dir" != "X"; then
19904                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
19905             if test "X$found_so" != "X"; then
19906                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
19907                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19908               else
19909                                                                                 haveit=
19910                 for x in $ltrpathdirs; do
19911                   if test "X$x" = "X$found_dir"; then
19912                     haveit=yes
19913                     break
19914                   fi
19915                 done
19916                 if test -z "$haveit"; then
19917                   ltrpathdirs="$ltrpathdirs $found_dir"
19918                 fi
19919                                 if test "$hardcode_direct" = yes; then
19920                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19921                 else
19922                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
19923                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19924                                                             haveit=
19925                     for x in $rpathdirs; do
19926                       if test "X$x" = "X$found_dir"; then
19927                         haveit=yes
19928                         break
19929                       fi
19930                     done
19931                     if test -z "$haveit"; then
19932                       rpathdirs="$rpathdirs $found_dir"
19933                     fi
19934                   else
19935                                                                                 haveit=
19936                     for x in $LDFLAGS $LIBICONV; do
19937
19938   acl_save_prefix="$prefix"
19939   prefix="$acl_final_prefix"
19940   acl_save_exec_prefix="$exec_prefix"
19941   exec_prefix="$acl_final_exec_prefix"
19942   eval x=\"$x\"
19943   exec_prefix="$acl_save_exec_prefix"
19944   prefix="$acl_save_prefix"
19945
19946                       if test "X$x" = "X-L$found_dir"; then
19947                         haveit=yes
19948                         break
19949                       fi
19950                     done
19951                     if test -z "$haveit"; then
19952                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
19953                     fi
19954                     if test "$hardcode_minus_L" != no; then
19955                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19956                     else
19957                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19958                     fi
19959                   fi
19960                 fi
19961               fi
19962             else
19963               if test "X$found_a" != "X"; then
19964                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
19965               else
19966                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
19967               fi
19968             fi
19969                         additional_includedir=
19970             case "$found_dir" in
19971               */lib | */lib/)
19972                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19973                 additional_includedir="$basedir/include"
19974                 ;;
19975             esac
19976             if test "X$additional_includedir" != "X"; then
19977                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
19978                 haveit=
19979                 if test "X$additional_includedir" = "X/usr/local/include"; then
19980                   if test -n "$GCC"; then
19981                     case $host_os in
19982                       linux*) haveit=yes;;
19983                     esac
19984                   fi
19985                 fi
19986                 if test -z "$haveit"; then
19987                   for x in $CPPFLAGS $INCICONV; do
19988
19989   acl_save_prefix="$prefix"
19990   prefix="$acl_final_prefix"
19991   acl_save_exec_prefix="$exec_prefix"
19992   exec_prefix="$acl_final_exec_prefix"
19993   eval x=\"$x\"
19994   exec_prefix="$acl_save_exec_prefix"
19995   prefix="$acl_save_prefix"
19996
19997                     if test "X$x" = "X-I$additional_includedir"; then
19998                       haveit=yes
19999                       break
20000                     fi
20001                   done
20002                   if test -z "$haveit"; then
20003                     if test -d "$additional_includedir"; then
20004                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20005                     fi
20006                   fi
20007                 fi
20008               fi
20009             fi
20010                         if test -n "$found_la"; then
20011                                                         save_libdir="$libdir"
20012               case "$found_la" in
20013                 */* | *\\*) . "$found_la" ;;
20014                 *) . "./$found_la" ;;
20015               esac
20016               libdir="$save_libdir"
20017                             for dep in $dependency_libs; do
20018                 case "$dep" in
20019                   -L*)
20020                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20021                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
20022                       haveit=
20023                       if test "X$additional_libdir" = "X/usr/local/lib"; then
20024                         if test -n "$GCC"; then
20025                           case $host_os in
20026                             linux*) haveit=yes;;
20027                           esac
20028                         fi
20029                       fi
20030                       if test -z "$haveit"; then
20031                         haveit=
20032                         for x in $LDFLAGS $LIBICONV; do
20033
20034   acl_save_prefix="$prefix"
20035   prefix="$acl_final_prefix"
20036   acl_save_exec_prefix="$exec_prefix"
20037   exec_prefix="$acl_final_exec_prefix"
20038   eval x=\"$x\"
20039   exec_prefix="$acl_save_exec_prefix"
20040   prefix="$acl_save_prefix"
20041
20042                           if test "X$x" = "X-L$additional_libdir"; then
20043                             haveit=yes
20044                             break
20045                           fi
20046                         done
20047                         if test -z "$haveit"; then
20048                           if test -d "$additional_libdir"; then
20049                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
20050                           fi
20051                         fi
20052                         haveit=
20053                         for x in $LDFLAGS $LTLIBICONV; do
20054
20055   acl_save_prefix="$prefix"
20056   prefix="$acl_final_prefix"
20057   acl_save_exec_prefix="$exec_prefix"
20058   exec_prefix="$acl_final_exec_prefix"
20059   eval x=\"$x\"
20060   exec_prefix="$acl_save_exec_prefix"
20061   prefix="$acl_save_prefix"
20062
20063                           if test "X$x" = "X-L$additional_libdir"; then
20064                             haveit=yes
20065                             break
20066                           fi
20067                         done
20068                         if test -z "$haveit"; then
20069                           if test -d "$additional_libdir"; then
20070                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
20071                           fi
20072                         fi
20073                       fi
20074                     fi
20075                     ;;
20076                   -R*)
20077                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
20078                     if test "$enable_rpath" != no; then
20079                                                                   haveit=
20080                       for x in $rpathdirs; do
20081                         if test "X$x" = "X$dir"; then
20082                           haveit=yes
20083                           break
20084                         fi
20085                       done
20086                       if test -z "$haveit"; then
20087                         rpathdirs="$rpathdirs $dir"
20088                       fi
20089                                                                   haveit=
20090                       for x in $ltrpathdirs; do
20091                         if test "X$x" = "X$dir"; then
20092                           haveit=yes
20093                           break
20094                         fi
20095                       done
20096                       if test -z "$haveit"; then
20097                         ltrpathdirs="$ltrpathdirs $dir"
20098                       fi
20099                     fi
20100                     ;;
20101                   -l*)
20102                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20103                     ;;
20104                   *.la)
20105                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20106                     ;;
20107                   *)
20108                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
20109                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20110                     ;;
20111                 esac
20112               done
20113             fi
20114           else
20115                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
20116               LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20117               LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20118             else
20119               LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
20120               LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
20121             fi
20122           fi
20123         fi
20124       fi
20125     done
20126   done
20127   if test "X$rpathdirs" != "X"; then
20128     if test -n "$hardcode_libdir_separator"; then
20129                         alldirs=
20130       for found_dir in $rpathdirs; do
20131         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20132       done
20133             acl_save_libdir="$libdir"
20134       libdir="$alldirs"
20135       eval flag=\"$hardcode_libdir_flag_spec\"
20136       libdir="$acl_save_libdir"
20137       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20138     else
20139             for found_dir in $rpathdirs; do
20140         acl_save_libdir="$libdir"
20141         libdir="$found_dir"
20142         eval flag=\"$hardcode_libdir_flag_spec\"
20143         libdir="$acl_save_libdir"
20144         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20145       done
20146     fi
20147   fi
20148   if test "X$ltrpathdirs" != "X"; then
20149             for found_dir in $ltrpathdirs; do
20150       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20151     done
20152   fi
20153
20154
20155
20156
20157
20158
20159
20160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20161 $as_echo_n "checking for iconv... " >&6; }
20162 if ${am_cv_func_iconv+:} false; then :
20163   $as_echo_n "(cached) " >&6
20164 else
20165
20166     am_cv_func_iconv="no, consider installing GNU libiconv"
20167     am_cv_lib_iconv=no
20168                     am_save_CPPFLAGS="$CPPFLAGS"
20169     CPPFLAGS="$CPPFLAGS $INCICONV"
20170     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20171 /* end confdefs.h.  */
20172 #include <stdlib.h>
20173 #include <iconv.h>
20174 int
20175 main ()
20176 {
20177 iconv_t cd = iconv_open("","");
20178        iconv(cd,NULL,NULL,NULL,NULL);
20179        iconv_close(cd);
20180   ;
20181   return 0;
20182 }
20183 _ACEOF
20184 if ac_fn_c_try_link "$LINENO"; then :
20185   am_cv_func_iconv=yes
20186 fi
20187 rm -f core conftest.err conftest.$ac_objext \
20188     conftest$ac_exeext conftest.$ac_ext
20189     CPPFLAGS="$am_save_CPPFLAGS"
20190
20191     if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
20192       for _libs in .libs _libs; do
20193         am_save_CPPFLAGS="$CPPFLAGS"
20194         am_save_LIBS="$LIBS"
20195         CPPFLAGS="$CPPFLAGS -I../libiconv/include"
20196         LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
20197         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20198 /* end confdefs.h.  */
20199 #include <stdlib.h>
20200 #include <iconv.h>
20201 int
20202 main ()
20203 {
20204 iconv_t cd = iconv_open("","");
20205            iconv(cd,NULL,NULL,NULL,NULL);
20206            iconv_close(cd);
20207   ;
20208   return 0;
20209 }
20210 _ACEOF
20211 if ac_fn_c_try_link "$LINENO"; then :
20212   INCICONV="-I../libiconv/include"
20213           LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
20214           LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
20215           am_cv_lib_iconv=yes
20216           am_cv_func_iconv=yes
20217 fi
20218 rm -f core conftest.err conftest.$ac_objext \
20219     conftest$ac_exeext conftest.$ac_ext
20220         CPPFLAGS="$am_save_CPPFLAGS"
20221         LIBS="$am_save_LIBS"
20222         if test "$am_cv_func_iconv" = "yes"; then
20223           break
20224         fi
20225       done
20226     fi
20227
20228     if test "$am_cv_func_iconv" != yes; then
20229       am_save_CPPFLAGS="$CPPFLAGS"
20230       am_save_LIBS="$LIBS"
20231       CPPFLAGS="$CPPFLAGS $INCICONV"
20232       LIBS="$LIBS $LIBICONV"
20233       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20234 /* end confdefs.h.  */
20235 #include <stdlib.h>
20236 #include <iconv.h>
20237 int
20238 main ()
20239 {
20240 iconv_t cd = iconv_open("","");
20241          iconv(cd,NULL,NULL,NULL,NULL);
20242          iconv_close(cd);
20243   ;
20244   return 0;
20245 }
20246 _ACEOF
20247 if ac_fn_c_try_link "$LINENO"; then :
20248   am_cv_lib_iconv=yes
20249         am_cv_func_iconv=yes
20250 fi
20251 rm -f core conftest.err conftest.$ac_objext \
20252     conftest$ac_exeext conftest.$ac_ext
20253       CPPFLAGS="$am_save_CPPFLAGS"
20254       LIBS="$am_save_LIBS"
20255     fi
20256
20257 fi
20258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20259 $as_echo "$am_cv_func_iconv" >&6; }
20260   if test "$am_cv_func_iconv" = yes; then
20261
20262 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20263
20264   fi
20265   if test "$am_cv_lib_iconv" = yes; then
20266
20267   for element in $INCICONV; do
20268     haveit=
20269     for x in $CPPFLAGS; do
20270
20271   acl_save_prefix="$prefix"
20272   prefix="$acl_final_prefix"
20273   acl_save_exec_prefix="$exec_prefix"
20274   exec_prefix="$acl_final_exec_prefix"
20275   eval x=\"$x\"
20276   exec_prefix="$acl_save_exec_prefix"
20277   prefix="$acl_save_prefix"
20278
20279       if test "X$x" = "X$element"; then
20280         haveit=yes
20281         break
20282       fi
20283     done
20284     if test -z "$haveit"; then
20285       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20286     fi
20287   done
20288
20289     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20290 $as_echo_n "checking how to link with libiconv... " >&6; }
20291     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20292 $as_echo "$LIBICONV" >&6; }
20293   else
20294     LIBICONV=
20295     LTLIBICONV=
20296   fi
20297
20298
20299
20300   if test "$am_cv_func_iconv" = yes; then
20301     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20302 $as_echo_n "checking for iconv declaration... " >&6; }
20303     if ${am_cv_proto_iconv+:} false; then :
20304   $as_echo_n "(cached) " >&6
20305 else
20306
20307       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20308 /* end confdefs.h.  */
20309
20310 #include <stdlib.h>
20311 #include <iconv.h>
20312 extern
20313 #ifdef __cplusplus
20314 "C"
20315 #endif
20316 #if defined(__STDC__) || defined(__cplusplus)
20317 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20318 #else
20319 size_t iconv();
20320 #endif
20321
20322 int
20323 main ()
20324 {
20325
20326   ;
20327   return 0;
20328 }
20329 _ACEOF
20330 if ac_fn_c_try_compile "$LINENO"; then :
20331   am_cv_proto_iconv_arg1=""
20332 else
20333   am_cv_proto_iconv_arg1="const"
20334 fi
20335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20336       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);"
20337 fi
20338
20339     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20340     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20341          }$am_cv_proto_iconv" >&5
20342 $as_echo "${ac_t:-
20343          }$am_cv_proto_iconv" >&6; }
20344
20345 cat >>confdefs.h <<_ACEOF
20346 #define ICONV_CONST $am_cv_proto_iconv_arg1
20347 _ACEOF
20348
20349   fi
20350
20351
20352 # GDB may fork/exec the iconv program to get the list of supported character
20353 # sets.  Allow the user to specify where to find it.
20354 # There are several factors affecting the choice of option name:
20355 # - There is already --with-libiconv-prefix but we can't use it, it specifies
20356 #   the build-time location of libiconv files.
20357 # - The program we need to find is iconv, which comes with glibc.  The user
20358 #   doesn't necessarily have libiconv installed.  Therefore naming this
20359 #   --with-libiconv-foo feels wrong.
20360 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
20361 #   defined to work on directories not files (though it really doesn't know
20362 #   the difference).
20363 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
20364 #   with --with-libiconv-prefix.
20365 # Putting these together is why the option name is --with-iconv-bin.
20366
20367
20368 # Check whether --with-iconv-bin was given.
20369 if test "${with_iconv_bin+set}" = set; then :
20370   withval=$with_iconv_bin; iconv_bin="${withval}"
20371
20372 cat >>confdefs.h <<_ACEOF
20373 #define ICONV_BIN "${iconv_bin}"
20374 _ACEOF
20375
20376
20377   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
20378      if test "x$prefix" = xNONE; then
20379         test_prefix=/usr/local
20380      else
20381         test_prefix=$prefix
20382      fi
20383   else
20384      test_prefix=$exec_prefix
20385   fi
20386   value=0
20387   case ${iconv_bin} in
20388      "${test_prefix}"|"${test_prefix}/"*|\
20389         '${exec_prefix}'|'${exec_prefix}/'*)
20390      value=1
20391      ;;
20392   esac
20393
20394 cat >>confdefs.h <<_ACEOF
20395 #define ICONV_BIN_RELOCATABLE $value
20396 _ACEOF
20397
20398
20399
20400 fi
20401
20402
20403 # For the TUI, we need enhanced curses functionality.
20404 if test x"$enable_tui" != xno; then
20405   prefer_curses=yes
20406 fi
20407
20408 curses_found=no
20409 if test x"$prefer_curses" = xyes; then
20410   # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
20411   # curses library because the latter might not provide all the
20412   # functionality we need.  However, this leads to problems on systems
20413   # where the linker searches /usr/local/lib, but the compiler doesn't
20414   # search /usr/local/include, if ncurses is installed in /usr/local.  A
20415   # default installation of ncurses on alpha*-dec-osf* will lead to such
20416   # a situation.
20417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
20418 $as_echo_n "checking for library containing waddstr... " >&6; }
20419 if ${ac_cv_search_waddstr+:} false; then :
20420   $as_echo_n "(cached) " >&6
20421 else
20422   ac_func_search_save_LIBS=$LIBS
20423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20424 /* end confdefs.h.  */
20425
20426 /* Override any GCC internal prototype to avoid an error.
20427    Use char because int might match the return type of a GCC
20428    builtin and then its argument prototype would still apply.  */
20429 #ifdef __cplusplus
20430 extern "C"
20431 #endif
20432 char waddstr ();
20433 int
20434 main ()
20435 {
20436 return waddstr ();
20437   ;
20438   return 0;
20439 }
20440 _ACEOF
20441 for ac_lib in '' ncursesw ncurses cursesX curses; do
20442   if test -z "$ac_lib"; then
20443     ac_res="none required"
20444   else
20445     ac_res=-l$ac_lib
20446     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20447   fi
20448   if ac_fn_c_try_link "$LINENO"; then :
20449   ac_cv_search_waddstr=$ac_res
20450 fi
20451 rm -f core conftest.err conftest.$ac_objext \
20452     conftest$ac_exeext
20453   if ${ac_cv_search_waddstr+:} false; then :
20454   break
20455 fi
20456 done
20457 if ${ac_cv_search_waddstr+:} false; then :
20458
20459 else
20460   ac_cv_search_waddstr=no
20461 fi
20462 rm conftest.$ac_ext
20463 LIBS=$ac_func_search_save_LIBS
20464 fi
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
20466 $as_echo "$ac_cv_search_waddstr" >&6; }
20467 ac_res=$ac_cv_search_waddstr
20468 if test "$ac_res" != no; then :
20469   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20470
20471 fi
20472
20473
20474   if test "$ac_cv_search_waddstr" != no; then
20475     curses_found=yes
20476   fi
20477 fi
20478
20479 # Check whether we should enable the TUI, but only do so if we really
20480 # can.
20481 if test x"$enable_tui" != xno; then
20482   if test -d "$srcdir/tui"; then
20483     if test "$curses_found" != no; then
20484       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
20485       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
20486       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
20487       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
20488     else
20489       if test x"$enable_tui" = xyes; then
20490         as_fn_error $? "no enhanced curses library found; disable TUI" "$LINENO" 5
20491       else
20492         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
20493 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
20494       fi
20495     fi
20496   fi
20497 fi
20498
20499 # Since GDB uses Readline, we need termcap functionality.  In many
20500 # cases this will be provided by the curses library, but some systems
20501 # have a separate termcap library, or no curses library at all.
20502
20503 case $host_os in
20504   cygwin*)
20505     if test -d "$srcdir/libtermcap"; then
20506       LIBS="../libtermcap/libtermcap.a $LIBS"
20507       ac_cv_search_tgetent="../libtermcap/libtermcap.a"
20508     fi ;;
20509   go32* | *djgpp*)
20510     ac_cv_search_tgetent="none required"
20511     ;;
20512 esac
20513
20514 # These are the libraries checked by Readline.
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
20516 $as_echo_n "checking for library containing tgetent... " >&6; }
20517 if ${ac_cv_search_tgetent+:} false; then :
20518   $as_echo_n "(cached) " >&6
20519 else
20520   ac_func_search_save_LIBS=$LIBS
20521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20522 /* end confdefs.h.  */
20523
20524 /* Override any GCC internal prototype to avoid an error.
20525    Use char because int might match the return type of a GCC
20526    builtin and then its argument prototype would still apply.  */
20527 #ifdef __cplusplus
20528 extern "C"
20529 #endif
20530 char tgetent ();
20531 int
20532 main ()
20533 {
20534 return tgetent ();
20535   ;
20536   return 0;
20537 }
20538 _ACEOF
20539 for ac_lib in '' termcap tinfow tinfo curses ncursesw ncurses; do
20540   if test -z "$ac_lib"; then
20541     ac_res="none required"
20542   else
20543     ac_res=-l$ac_lib
20544     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20545   fi
20546   if ac_fn_c_try_link "$LINENO"; then :
20547   ac_cv_search_tgetent=$ac_res
20548 fi
20549 rm -f core conftest.err conftest.$ac_objext \
20550     conftest$ac_exeext
20551   if ${ac_cv_search_tgetent+:} false; then :
20552   break
20553 fi
20554 done
20555 if ${ac_cv_search_tgetent+:} false; then :
20556
20557 else
20558   ac_cv_search_tgetent=no
20559 fi
20560 rm conftest.$ac_ext
20561 LIBS=$ac_func_search_save_LIBS
20562 fi
20563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
20564 $as_echo "$ac_cv_search_tgetent" >&6; }
20565 ac_res=$ac_cv_search_tgetent
20566 if test "$ac_res" != no; then :
20567   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20568
20569 fi
20570
20571
20572 if test "$ac_cv_search_tgetent" = no; then
20573   CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
20574 fi
20575
20576
20577 # Check whether --with-system-readline was given.
20578 if test "${with_system_readline+set}" = set; then :
20579   withval=$with_system_readline;
20580 fi
20581
20582
20583 if test "$with_system_readline" = yes; then
20584   for ac_header in readline/readline.h
20585 do :
20586   ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
20587 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
20588   cat >>confdefs.h <<_ACEOF
20589 #define HAVE_READLINE_READLINE_H 1
20590 _ACEOF
20591  readline_h=yes
20592 else
20593   readline_h=no
20594 fi
20595
20596 done
20597
20598   if test "$readline_h" = "no"; then
20599     as_fn_error $? "readline development packages are probably missing" "$LINENO" 5
20600   fi
20601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
20602 $as_echo_n "checking whether system readline is new enough... " >&6; }
20603 if ${gdb_cv_readline_ok+:} false; then :
20604   $as_echo_n "(cached) " >&6
20605 else
20606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20607 /* end confdefs.h.  */
20608 #include <stdio.h>
20609            #include <readline/readline.h>
20610 int
20611 main ()
20612 {
20613 #if RL_VERSION_MAJOR < 7
20614            # error "readline version 7 required"
20615            #endif
20616
20617   ;
20618   return 0;
20619 }
20620 _ACEOF
20621 if ac_fn_c_try_compile "$LINENO"; then :
20622   gdb_cv_readline_ok=yes
20623 else
20624   gdb_cv_readline_ok=no
20625
20626 fi
20627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20628
20629 fi
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
20631 $as_echo "$gdb_cv_readline_ok" >&6; }
20632   if test "$gdb_cv_readline_ok" != yes; then
20633     as_fn_error $? "system readline is not new enough" "$LINENO" 5
20634   fi
20635
20636   READLINE=-lreadline
20637   READLINE_DEPS=
20638   READLINE_CFLAGS=
20639   READLINE_TEXI_INCFLAG=
20640 else
20641   READLINE='$(READLINE_DIR)/libreadline.a'
20642   READLINE_DEPS='$(READLINE)'
20643   READLINE_CFLAGS='-I$(READLINE_SRC)/..'
20644   READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
20645 fi
20646
20647
20648
20649
20650
20651 # Generate jit-reader.h
20652
20653 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
20654 TARGET_PTR=
20655
20656 # The cast to long int works around a bug in the HP C Compiler
20657 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20658 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20659 # This bug is HP SR number 8606223364.
20660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
20661 $as_echo_n "checking size of unsigned long long... " >&6; }
20662 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
20663   $as_echo_n "(cached) " >&6
20664 else
20665   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
20666
20667 else
20668   if test "$ac_cv_type_unsigned_long_long" = yes; then
20669      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20671 as_fn_error 77 "cannot compute sizeof (unsigned long long)
20672 See \`config.log' for more details" "$LINENO" 5; }
20673    else
20674      ac_cv_sizeof_unsigned_long_long=0
20675    fi
20676 fi
20677
20678 fi
20679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
20680 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
20681
20682
20683
20684 cat >>confdefs.h <<_ACEOF
20685 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
20686 _ACEOF
20687
20688
20689 # The cast to long int works around a bug in the HP C Compiler
20690 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20691 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20692 # This bug is HP SR number 8606223364.
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
20694 $as_echo_n "checking size of unsigned long... " >&6; }
20695 if ${ac_cv_sizeof_unsigned_long+:} false; then :
20696   $as_echo_n "(cached) " >&6
20697 else
20698   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
20699
20700 else
20701   if test "$ac_cv_type_unsigned_long" = yes; then
20702      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20704 as_fn_error 77 "cannot compute sizeof (unsigned long)
20705 See \`config.log' for more details" "$LINENO" 5; }
20706    else
20707      ac_cv_sizeof_unsigned_long=0
20708    fi
20709 fi
20710
20711 fi
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
20713 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20714
20715
20716
20717 cat >>confdefs.h <<_ACEOF
20718 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20719 _ACEOF
20720
20721
20722 # The cast to long int works around a bug in the HP C Compiler
20723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20725 # This bug is HP SR number 8606223364.
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
20727 $as_echo_n "checking size of unsigned __int128... " >&6; }
20728 if ${ac_cv_sizeof_unsigned___int128+:} false; then :
20729   $as_echo_n "(cached) " >&6
20730 else
20731   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128"        "$ac_includes_default"; then :
20732
20733 else
20734   if test "$ac_cv_type_unsigned___int128" = yes; then
20735      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20737 as_fn_error 77 "cannot compute sizeof (unsigned __int128)
20738 See \`config.log' for more details" "$LINENO" 5; }
20739    else
20740      ac_cv_sizeof_unsigned___int128=0
20741    fi
20742 fi
20743
20744 fi
20745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
20746 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
20747
20748
20749
20750 cat >>confdefs.h <<_ACEOF
20751 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
20752 _ACEOF
20753
20754
20755
20756 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
20757   TARGET_PTR="unsigned long"
20758 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
20759   TARGET_PTR="unsigned long long"
20760 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
20761   TARGET_PTR="unsigned __int128"
20762 else
20763   TARGET_PTR="unsigned long"
20764 fi
20765
20766
20767 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
20768
20769
20770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20771 $as_echo_n "checking for library containing dlopen... " >&6; }
20772 if ${ac_cv_search_dlopen+:} false; then :
20773   $as_echo_n "(cached) " >&6
20774 else
20775   ac_func_search_save_LIBS=$LIBS
20776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20777 /* end confdefs.h.  */
20778
20779 /* Override any GCC internal prototype to avoid an error.
20780    Use char because int might match the return type of a GCC
20781    builtin and then its argument prototype would still apply.  */
20782 #ifdef __cplusplus
20783 extern "C"
20784 #endif
20785 char dlopen ();
20786 int
20787 main ()
20788 {
20789 return dlopen ();
20790   ;
20791   return 0;
20792 }
20793 _ACEOF
20794 for ac_lib in '' dl; do
20795   if test -z "$ac_lib"; then
20796     ac_res="none required"
20797   else
20798     ac_res=-l$ac_lib
20799     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20800   fi
20801   if ac_fn_c_try_link "$LINENO"; then :
20802   ac_cv_search_dlopen=$ac_res
20803 fi
20804 rm -f core conftest.err conftest.$ac_objext \
20805     conftest$ac_exeext
20806   if ${ac_cv_search_dlopen+:} false; then :
20807   break
20808 fi
20809 done
20810 if ${ac_cv_search_dlopen+:} false; then :
20811
20812 else
20813   ac_cv_search_dlopen=no
20814 fi
20815 rm conftest.$ac_ext
20816 LIBS=$ac_func_search_save_LIBS
20817 fi
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20819 $as_echo "$ac_cv_search_dlopen" >&6; }
20820 ac_res=$ac_cv_search_dlopen
20821 if test "$ac_res" != no; then :
20822   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20823
20824 fi
20825
20826
20827
20828
20829 # Check whether --with-jit-reader-dir was given.
20830 if test "${with_jit_reader_dir+set}" = set; then :
20831   withval=$with_jit_reader_dir;
20832     JIT_READER_DIR=$withval
20833 else
20834   JIT_READER_DIR=${libdir}/gdb
20835 fi
20836
20837
20838   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
20839   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20840   ac_define_dir=`eval echo $JIT_READER_DIR`
20841   ac_define_dir=`eval echo $ac_define_dir`
20842
20843 cat >>confdefs.h <<_ACEOF
20844 #define JIT_READER_DIR "$ac_define_dir"
20845 _ACEOF
20846
20847
20848
20849
20850   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
20851      if test "x$prefix" = xNONE; then
20852         test_prefix=/usr/local
20853      else
20854         test_prefix=$prefix
20855      fi
20856   else
20857      test_prefix=$exec_prefix
20858   fi
20859   value=0
20860   case ${ac_define_dir} in
20861      "${test_prefix}"|"${test_prefix}/"*|\
20862         '${exec_prefix}'|'${exec_prefix}/'*)
20863      value=1
20864      ;;
20865   esac
20866
20867 cat >>confdefs.h <<_ACEOF
20868 #define JIT_READER_DIR_RELOCATABLE $value
20869 _ACEOF
20870
20871
20872
20873
20874
20875 # Check whether --with-expat was given.
20876 if test "${with_expat+set}" = set; then :
20877   withval=$with_expat;
20878 else
20879   with_expat=auto
20880 fi
20881
20882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
20883 $as_echo_n "checking whether to use expat... " >&6; }
20884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
20885 $as_echo "$with_expat" >&6; }
20886
20887 if test "${with_expat}" = no; then
20888   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
20889 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
20890   HAVE_LIBEXPAT=no
20891 else
20892
20893
20894
20895
20896
20897
20898
20899
20900     use_additional=yes
20901
20902   acl_save_prefix="$prefix"
20903   prefix="$acl_final_prefix"
20904   acl_save_exec_prefix="$exec_prefix"
20905   exec_prefix="$acl_final_exec_prefix"
20906
20907     eval additional_includedir=\"$includedir\"
20908     eval additional_libdir=\"$libdir\"
20909
20910   exec_prefix="$acl_save_exec_prefix"
20911   prefix="$acl_save_prefix"
20912
20913
20914 # Check whether --with-libexpat-prefix was given.
20915 if test "${with_libexpat_prefix+set}" = set; then :
20916   withval=$with_libexpat_prefix;
20917     if test "X$withval" = "Xno"; then
20918       use_additional=no
20919     else
20920       if test "X$withval" = "X"; then
20921
20922   acl_save_prefix="$prefix"
20923   prefix="$acl_final_prefix"
20924   acl_save_exec_prefix="$exec_prefix"
20925   exec_prefix="$acl_final_exec_prefix"
20926
20927           eval additional_includedir=\"$includedir\"
20928           eval additional_libdir=\"$libdir\"
20929
20930   exec_prefix="$acl_save_exec_prefix"
20931   prefix="$acl_save_prefix"
20932
20933       else
20934         additional_includedir="$withval/include"
20935         additional_libdir="$withval/lib"
20936       fi
20937     fi
20938
20939 fi
20940
20941
20942 # Check whether --with-libexpat-type was given.
20943 if test "${with_libexpat_type+set}" = set; then :
20944   withval=$with_libexpat_type;  with_libexpat_type=$withval
20945 else
20946    with_libexpat_type=auto
20947 fi
20948
20949   lib_type=`eval echo \$with_libexpat_type`
20950
20951       LIBEXPAT=
20952   LTLIBEXPAT=
20953   INCEXPAT=
20954   rpathdirs=
20955   ltrpathdirs=
20956   names_already_handled=
20957   names_next_round='expat '
20958   while test -n "$names_next_round"; do
20959     names_this_round="$names_next_round"
20960     names_next_round=
20961     for name in $names_this_round; do
20962       already_handled=
20963       for n in $names_already_handled; do
20964         if test "$n" = "$name"; then
20965           already_handled=yes
20966           break
20967         fi
20968       done
20969       if test -z "$already_handled"; then
20970         names_already_handled="$names_already_handled $name"
20971                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20972         eval value=\"\$HAVE_LIB$uppername\"
20973         if test -n "$value"; then
20974           if test "$value" = yes; then
20975             eval value=\"\$LIB$uppername\"
20976             test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
20977             eval value=\"\$LTLIB$uppername\"
20978             test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
20979           else
20980                                     :
20981           fi
20982         else
20983                               found_dir=
20984           found_la=
20985           found_so=
20986           found_a=
20987           if test $use_additional = yes; then
20988             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
20989               found_dir="$additional_libdir"
20990               found_so="$additional_libdir/lib$name.$shlibext"
20991               if test -f "$additional_libdir/lib$name.la"; then
20992                 found_la="$additional_libdir/lib$name.la"
20993               fi
20994             elif test x$lib_type != xshared; then
20995               if test -f "$additional_libdir/lib$name.$libext"; then
20996                 found_dir="$additional_libdir"
20997                 found_a="$additional_libdir/lib$name.$libext"
20998                 if test -f "$additional_libdir/lib$name.la"; then
20999                   found_la="$additional_libdir/lib$name.la"
21000                 fi
21001               fi
21002             fi
21003           fi
21004           if test "X$found_dir" = "X"; then
21005             for x in $LDFLAGS $LTLIBEXPAT; do
21006
21007   acl_save_prefix="$prefix"
21008   prefix="$acl_final_prefix"
21009   acl_save_exec_prefix="$exec_prefix"
21010   exec_prefix="$acl_final_exec_prefix"
21011   eval x=\"$x\"
21012   exec_prefix="$acl_save_exec_prefix"
21013   prefix="$acl_save_prefix"
21014
21015               case "$x" in
21016                 -L*)
21017                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21018                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
21019                     found_dir="$dir"
21020                     found_so="$dir/lib$name.$shlibext"
21021                     if test -f "$dir/lib$name.la"; then
21022                       found_la="$dir/lib$name.la"
21023                     fi
21024                   elif test x$lib_type != xshared; then
21025                     if test -f "$dir/lib$name.$libext"; then
21026                       found_dir="$dir"
21027                       found_a="$dir/lib$name.$libext"
21028                       if test -f "$dir/lib$name.la"; then
21029                         found_la="$dir/lib$name.la"
21030                       fi
21031                     fi
21032                   fi
21033                   ;;
21034               esac
21035               if test "X$found_dir" != "X"; then
21036                 break
21037               fi
21038             done
21039           fi
21040           if test "X$found_dir" != "X"; then
21041                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
21042             if test "X$found_so" != "X"; then
21043                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21044                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
21045               else
21046                                                                                 haveit=
21047                 for x in $ltrpathdirs; do
21048                   if test "X$x" = "X$found_dir"; then
21049                     haveit=yes
21050                     break
21051                   fi
21052                 done
21053                 if test -z "$haveit"; then
21054                   ltrpathdirs="$ltrpathdirs $found_dir"
21055                 fi
21056                                 if test "$hardcode_direct" = yes; then
21057                                                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
21058                 else
21059                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21060                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
21061                                                             haveit=
21062                     for x in $rpathdirs; do
21063                       if test "X$x" = "X$found_dir"; then
21064                         haveit=yes
21065                         break
21066                       fi
21067                     done
21068                     if test -z "$haveit"; then
21069                       rpathdirs="$rpathdirs $found_dir"
21070                     fi
21071                   else
21072                                                                                 haveit=
21073                     for x in $LDFLAGS $LIBEXPAT; do
21074
21075   acl_save_prefix="$prefix"
21076   prefix="$acl_final_prefix"
21077   acl_save_exec_prefix="$exec_prefix"
21078   exec_prefix="$acl_final_exec_prefix"
21079   eval x=\"$x\"
21080   exec_prefix="$acl_save_exec_prefix"
21081   prefix="$acl_save_prefix"
21082
21083                       if test "X$x" = "X-L$found_dir"; then
21084                         haveit=yes
21085                         break
21086                       fi
21087                     done
21088                     if test -z "$haveit"; then
21089                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
21090                     fi
21091                     if test "$hardcode_minus_L" != no; then
21092                                                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
21093                     else
21094                                                                                                                                                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
21095                     fi
21096                   fi
21097                 fi
21098               fi
21099             else
21100               if test "X$found_a" != "X"; then
21101                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
21102               else
21103                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
21104               fi
21105             fi
21106                         additional_includedir=
21107             case "$found_dir" in
21108               */lib | */lib/)
21109                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21110                 additional_includedir="$basedir/include"
21111                 ;;
21112             esac
21113             if test "X$additional_includedir" != "X"; then
21114                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21115                 haveit=
21116                 if test "X$additional_includedir" = "X/usr/local/include"; then
21117                   if test -n "$GCC"; then
21118                     case $host_os in
21119                       linux*) haveit=yes;;
21120                     esac
21121                   fi
21122                 fi
21123                 if test -z "$haveit"; then
21124                   for x in $CPPFLAGS $INCEXPAT; do
21125
21126   acl_save_prefix="$prefix"
21127   prefix="$acl_final_prefix"
21128   acl_save_exec_prefix="$exec_prefix"
21129   exec_prefix="$acl_final_exec_prefix"
21130   eval x=\"$x\"
21131   exec_prefix="$acl_save_exec_prefix"
21132   prefix="$acl_save_prefix"
21133
21134                     if test "X$x" = "X-I$additional_includedir"; then
21135                       haveit=yes
21136                       break
21137                     fi
21138                   done
21139                   if test -z "$haveit"; then
21140                     if test -d "$additional_includedir"; then
21141                                             INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
21142                     fi
21143                   fi
21144                 fi
21145               fi
21146             fi
21147                         if test -n "$found_la"; then
21148                                                         save_libdir="$libdir"
21149               case "$found_la" in
21150                 */* | *\\*) . "$found_la" ;;
21151                 *) . "./$found_la" ;;
21152               esac
21153               libdir="$save_libdir"
21154                             for dep in $dependency_libs; do
21155                 case "$dep" in
21156                   -L*)
21157                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21158                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21159                       haveit=
21160                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21161                         if test -n "$GCC"; then
21162                           case $host_os in
21163                             linux*) haveit=yes;;
21164                           esac
21165                         fi
21166                       fi
21167                       if test -z "$haveit"; then
21168                         haveit=
21169                         for x in $LDFLAGS $LIBEXPAT; do
21170
21171   acl_save_prefix="$prefix"
21172   prefix="$acl_final_prefix"
21173   acl_save_exec_prefix="$exec_prefix"
21174   exec_prefix="$acl_final_exec_prefix"
21175   eval x=\"$x\"
21176   exec_prefix="$acl_save_exec_prefix"
21177   prefix="$acl_save_prefix"
21178
21179                           if test "X$x" = "X-L$additional_libdir"; then
21180                             haveit=yes
21181                             break
21182                           fi
21183                         done
21184                         if test -z "$haveit"; then
21185                           if test -d "$additional_libdir"; then
21186                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
21187                           fi
21188                         fi
21189                         haveit=
21190                         for x in $LDFLAGS $LTLIBEXPAT; do
21191
21192   acl_save_prefix="$prefix"
21193   prefix="$acl_final_prefix"
21194   acl_save_exec_prefix="$exec_prefix"
21195   exec_prefix="$acl_final_exec_prefix"
21196   eval x=\"$x\"
21197   exec_prefix="$acl_save_exec_prefix"
21198   prefix="$acl_save_prefix"
21199
21200                           if test "X$x" = "X-L$additional_libdir"; then
21201                             haveit=yes
21202                             break
21203                           fi
21204                         done
21205                         if test -z "$haveit"; then
21206                           if test -d "$additional_libdir"; then
21207                                                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
21208                           fi
21209                         fi
21210                       fi
21211                     fi
21212                     ;;
21213                   -R*)
21214                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21215                     if test "$enable_rpath" != no; then
21216                                                                   haveit=
21217                       for x in $rpathdirs; do
21218                         if test "X$x" = "X$dir"; then
21219                           haveit=yes
21220                           break
21221                         fi
21222                       done
21223                       if test -z "$haveit"; then
21224                         rpathdirs="$rpathdirs $dir"
21225                       fi
21226                                                                   haveit=
21227                       for x in $ltrpathdirs; do
21228                         if test "X$x" = "X$dir"; then
21229                           haveit=yes
21230                           break
21231                         fi
21232                       done
21233                       if test -z "$haveit"; then
21234                         ltrpathdirs="$ltrpathdirs $dir"
21235                       fi
21236                     fi
21237                     ;;
21238                   -l*)
21239                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21240                     ;;
21241                   *.la)
21242                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21243                     ;;
21244                   *)
21245                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
21246                     LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
21247                     ;;
21248                 esac
21249               done
21250             fi
21251           else
21252                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
21253               LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
21254               LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
21255             else
21256               LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
21257               LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
21258             fi
21259           fi
21260         fi
21261       fi
21262     done
21263   done
21264   if test "X$rpathdirs" != "X"; then
21265     if test -n "$hardcode_libdir_separator"; then
21266                         alldirs=
21267       for found_dir in $rpathdirs; do
21268         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21269       done
21270             acl_save_libdir="$libdir"
21271       libdir="$alldirs"
21272       eval flag=\"$hardcode_libdir_flag_spec\"
21273       libdir="$acl_save_libdir"
21274       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
21275     else
21276             for found_dir in $rpathdirs; do
21277         acl_save_libdir="$libdir"
21278         libdir="$found_dir"
21279         eval flag=\"$hardcode_libdir_flag_spec\"
21280         libdir="$acl_save_libdir"
21281         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
21282       done
21283     fi
21284   fi
21285   if test "X$ltrpathdirs" != "X"; then
21286             for found_dir in $ltrpathdirs; do
21287       LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
21288     done
21289   fi
21290
21291
21292         ac_save_CPPFLAGS="$CPPFLAGS"
21293
21294   for element in $INCEXPAT; do
21295     haveit=
21296     for x in $CPPFLAGS; do
21297
21298   acl_save_prefix="$prefix"
21299   prefix="$acl_final_prefix"
21300   acl_save_exec_prefix="$exec_prefix"
21301   exec_prefix="$acl_final_exec_prefix"
21302   eval x=\"$x\"
21303   exec_prefix="$acl_save_exec_prefix"
21304   prefix="$acl_save_prefix"
21305
21306       if test "X$x" = "X$element"; then
21307         haveit=yes
21308         break
21309       fi
21310     done
21311     if test -z "$haveit"; then
21312       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21313     fi
21314   done
21315
21316
21317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
21318 $as_echo_n "checking for libexpat... " >&6; }
21319 if ${ac_cv_libexpat+:} false; then :
21320   $as_echo_n "(cached) " >&6
21321 else
21322
21323     ac_save_LIBS="$LIBS"
21324     LIBS="$LIBS $LIBEXPAT"
21325     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21326 /* end confdefs.h.  */
21327 #include "expat.h"
21328 int
21329 main ()
21330 {
21331 XML_Parser p = XML_ParserCreate (0);
21332   ;
21333   return 0;
21334 }
21335 _ACEOF
21336 if ac_fn_c_try_link "$LINENO"; then :
21337   ac_cv_libexpat=yes
21338 else
21339   ac_cv_libexpat=no
21340 fi
21341 rm -f core conftest.err conftest.$ac_objext \
21342     conftest$ac_exeext conftest.$ac_ext
21343     LIBS="$ac_save_LIBS"
21344
21345 fi
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
21347 $as_echo "$ac_cv_libexpat" >&6; }
21348   if test "$ac_cv_libexpat" = yes; then
21349     HAVE_LIBEXPAT=yes
21350
21351 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
21352
21353     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
21354 $as_echo_n "checking how to link with libexpat... " >&6; }
21355     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
21356 $as_echo "$LIBEXPAT" >&6; }
21357   else
21358     HAVE_LIBEXPAT=no
21359             CPPFLAGS="$ac_save_CPPFLAGS"
21360     LIBEXPAT=
21361     LTLIBEXPAT=
21362   fi
21363
21364
21365
21366
21367
21368
21369   if test "$HAVE_LIBEXPAT" != yes; then
21370     if test "$with_expat" = yes; then
21371       as_fn_error $? "expat is missing or unusable" "$LINENO" 5
21372     else
21373       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
21374 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
21375     fi
21376   else
21377     save_LIBS=$LIBS
21378     LIBS="$LIBS $LIBEXPAT"
21379     for ac_func in XML_StopParser
21380 do :
21381   ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
21382 if test "x$ac_cv_func_XML_StopParser" = xyes; then :
21383   cat >>confdefs.h <<_ACEOF
21384 #define HAVE_XML_STOPPARSER 1
21385 _ACEOF
21386
21387 fi
21388 done
21389
21390     LIBS=$save_LIBS
21391   fi
21392 fi
21393
21394 # Verify that we have a usable GMP library.
21395
21396
21397
21398
21399
21400
21401
21402
21403     use_additional=yes
21404
21405   acl_save_prefix="$prefix"
21406   prefix="$acl_final_prefix"
21407   acl_save_exec_prefix="$exec_prefix"
21408   exec_prefix="$acl_final_exec_prefix"
21409
21410     eval additional_includedir=\"$includedir\"
21411     eval additional_libdir=\"$libdir\"
21412
21413   exec_prefix="$acl_save_exec_prefix"
21414   prefix="$acl_save_prefix"
21415
21416
21417 # Check whether --with-libgmp-prefix was given.
21418 if test "${with_libgmp_prefix+set}" = set; then :
21419   withval=$with_libgmp_prefix;
21420     if test "X$withval" = "Xno"; then
21421       use_additional=no
21422     else
21423       if test "X$withval" = "X"; then
21424
21425   acl_save_prefix="$prefix"
21426   prefix="$acl_final_prefix"
21427   acl_save_exec_prefix="$exec_prefix"
21428   exec_prefix="$acl_final_exec_prefix"
21429
21430           eval additional_includedir=\"$includedir\"
21431           eval additional_libdir=\"$libdir\"
21432
21433   exec_prefix="$acl_save_exec_prefix"
21434   prefix="$acl_save_prefix"
21435
21436       else
21437         additional_includedir="$withval/include"
21438         additional_libdir="$withval/lib"
21439       fi
21440     fi
21441
21442 fi
21443
21444
21445 # Check whether --with-libgmp-type was given.
21446 if test "${with_libgmp_type+set}" = set; then :
21447   withval=$with_libgmp_type;  with_libgmp_type=$withval
21448 else
21449    with_libgmp_type=auto
21450 fi
21451
21452   lib_type=`eval echo \$with_libgmp_type`
21453
21454       LIBGMP=
21455   LTLIBGMP=
21456   INCGMP=
21457   rpathdirs=
21458   ltrpathdirs=
21459   names_already_handled=
21460   names_next_round='gmp '
21461   while test -n "$names_next_round"; do
21462     names_this_round="$names_next_round"
21463     names_next_round=
21464     for name in $names_this_round; do
21465       already_handled=
21466       for n in $names_already_handled; do
21467         if test "$n" = "$name"; then
21468           already_handled=yes
21469           break
21470         fi
21471       done
21472       if test -z "$already_handled"; then
21473         names_already_handled="$names_already_handled $name"
21474                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21475         eval value=\"\$HAVE_LIB$uppername\"
21476         if test -n "$value"; then
21477           if test "$value" = yes; then
21478             eval value=\"\$LIB$uppername\"
21479             test -z "$value" || LIBGMP="${LIBGMP}${LIBGMP:+ }$value"
21480             eval value=\"\$LTLIB$uppername\"
21481             test -z "$value" || LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }$value"
21482           else
21483                                     :
21484           fi
21485         else
21486                               found_dir=
21487           found_la=
21488           found_so=
21489           found_a=
21490           if test $use_additional = yes; then
21491             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
21492               found_dir="$additional_libdir"
21493               found_so="$additional_libdir/lib$name.$shlibext"
21494               if test -f "$additional_libdir/lib$name.la"; then
21495                 found_la="$additional_libdir/lib$name.la"
21496               fi
21497             elif test x$lib_type != xshared; then
21498               if test -f "$additional_libdir/lib$name.$libext"; then
21499                 found_dir="$additional_libdir"
21500                 found_a="$additional_libdir/lib$name.$libext"
21501                 if test -f "$additional_libdir/lib$name.la"; then
21502                   found_la="$additional_libdir/lib$name.la"
21503                 fi
21504               fi
21505             fi
21506           fi
21507           if test "X$found_dir" = "X"; then
21508             for x in $LDFLAGS $LTLIBGMP; do
21509
21510   acl_save_prefix="$prefix"
21511   prefix="$acl_final_prefix"
21512   acl_save_exec_prefix="$exec_prefix"
21513   exec_prefix="$acl_final_exec_prefix"
21514   eval x=\"$x\"
21515   exec_prefix="$acl_save_exec_prefix"
21516   prefix="$acl_save_prefix"
21517
21518               case "$x" in
21519                 -L*)
21520                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21521                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
21522                     found_dir="$dir"
21523                     found_so="$dir/lib$name.$shlibext"
21524                     if test -f "$dir/lib$name.la"; then
21525                       found_la="$dir/lib$name.la"
21526                     fi
21527                   elif test x$lib_type != xshared; then
21528                     if test -f "$dir/lib$name.$libext"; then
21529                       found_dir="$dir"
21530                       found_a="$dir/lib$name.$libext"
21531                       if test -f "$dir/lib$name.la"; then
21532                         found_la="$dir/lib$name.la"
21533                       fi
21534                     fi
21535                   fi
21536                   ;;
21537               esac
21538               if test "X$found_dir" != "X"; then
21539                 break
21540               fi
21541             done
21542           fi
21543           if test "X$found_dir" != "X"; then
21544                         LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-L$found_dir -l$name"
21545             if test "X$found_so" != "X"; then
21546                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21547                                 LIBGMP="${LIBGMP}${LIBGMP:+ }$found_so"
21548               else
21549                                                                                 haveit=
21550                 for x in $ltrpathdirs; do
21551                   if test "X$x" = "X$found_dir"; then
21552                     haveit=yes
21553                     break
21554                   fi
21555                 done
21556                 if test -z "$haveit"; then
21557                   ltrpathdirs="$ltrpathdirs $found_dir"
21558                 fi
21559                                 if test "$hardcode_direct" = yes; then
21560                                                       LIBGMP="${LIBGMP}${LIBGMP:+ }$found_so"
21561                 else
21562                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21563                                                             LIBGMP="${LIBGMP}${LIBGMP:+ }$found_so"
21564                                                             haveit=
21565                     for x in $rpathdirs; do
21566                       if test "X$x" = "X$found_dir"; then
21567                         haveit=yes
21568                         break
21569                       fi
21570                     done
21571                     if test -z "$haveit"; then
21572                       rpathdirs="$rpathdirs $found_dir"
21573                     fi
21574                   else
21575                                                                                 haveit=
21576                     for x in $LDFLAGS $LIBGMP; do
21577
21578   acl_save_prefix="$prefix"
21579   prefix="$acl_final_prefix"
21580   acl_save_exec_prefix="$exec_prefix"
21581   exec_prefix="$acl_final_exec_prefix"
21582   eval x=\"$x\"
21583   exec_prefix="$acl_save_exec_prefix"
21584   prefix="$acl_save_prefix"
21585
21586                       if test "X$x" = "X-L$found_dir"; then
21587                         haveit=yes
21588                         break
21589                       fi
21590                     done
21591                     if test -z "$haveit"; then
21592                       LIBGMP="${LIBGMP}${LIBGMP:+ }-L$found_dir"
21593                     fi
21594                     if test "$hardcode_minus_L" != no; then
21595                                                                                         LIBGMP="${LIBGMP}${LIBGMP:+ }$found_so"
21596                     else
21597                                                                                                                                                                                 LIBGMP="${LIBGMP}${LIBGMP:+ }-l$name"
21598                     fi
21599                   fi
21600                 fi
21601               fi
21602             else
21603               if test "X$found_a" != "X"; then
21604                                 LIBGMP="${LIBGMP}${LIBGMP:+ }$found_a"
21605               else
21606                                                 LIBGMP="${LIBGMP}${LIBGMP:+ }-L$found_dir -l$name"
21607               fi
21608             fi
21609                         additional_includedir=
21610             case "$found_dir" in
21611               */lib | */lib/)
21612                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21613                 additional_includedir="$basedir/include"
21614                 ;;
21615             esac
21616             if test "X$additional_includedir" != "X"; then
21617                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21618                 haveit=
21619                 if test "X$additional_includedir" = "X/usr/local/include"; then
21620                   if test -n "$GCC"; then
21621                     case $host_os in
21622                       linux*) haveit=yes;;
21623                     esac
21624                   fi
21625                 fi
21626                 if test -z "$haveit"; then
21627                   for x in $CPPFLAGS $INCGMP; do
21628
21629   acl_save_prefix="$prefix"
21630   prefix="$acl_final_prefix"
21631   acl_save_exec_prefix="$exec_prefix"
21632   exec_prefix="$acl_final_exec_prefix"
21633   eval x=\"$x\"
21634   exec_prefix="$acl_save_exec_prefix"
21635   prefix="$acl_save_prefix"
21636
21637                     if test "X$x" = "X-I$additional_includedir"; then
21638                       haveit=yes
21639                       break
21640                     fi
21641                   done
21642                   if test -z "$haveit"; then
21643                     if test -d "$additional_includedir"; then
21644                                             INCGMP="${INCGMP}${INCGMP:+ }-I$additional_includedir"
21645                     fi
21646                   fi
21647                 fi
21648               fi
21649             fi
21650                         if test -n "$found_la"; then
21651                                                         save_libdir="$libdir"
21652               case "$found_la" in
21653                 */* | *\\*) . "$found_la" ;;
21654                 *) . "./$found_la" ;;
21655               esac
21656               libdir="$save_libdir"
21657                             for dep in $dependency_libs; do
21658                 case "$dep" in
21659                   -L*)
21660                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21661                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21662                       haveit=
21663                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21664                         if test -n "$GCC"; then
21665                           case $host_os in
21666                             linux*) haveit=yes;;
21667                           esac
21668                         fi
21669                       fi
21670                       if test -z "$haveit"; then
21671                         haveit=
21672                         for x in $LDFLAGS $LIBGMP; do
21673
21674   acl_save_prefix="$prefix"
21675   prefix="$acl_final_prefix"
21676   acl_save_exec_prefix="$exec_prefix"
21677   exec_prefix="$acl_final_exec_prefix"
21678   eval x=\"$x\"
21679   exec_prefix="$acl_save_exec_prefix"
21680   prefix="$acl_save_prefix"
21681
21682                           if test "X$x" = "X-L$additional_libdir"; then
21683                             haveit=yes
21684                             break
21685                           fi
21686                         done
21687                         if test -z "$haveit"; then
21688                           if test -d "$additional_libdir"; then
21689                                                         LIBGMP="${LIBGMP}${LIBGMP:+ }-L$additional_libdir"
21690                           fi
21691                         fi
21692                         haveit=
21693                         for x in $LDFLAGS $LTLIBGMP; do
21694
21695   acl_save_prefix="$prefix"
21696   prefix="$acl_final_prefix"
21697   acl_save_exec_prefix="$exec_prefix"
21698   exec_prefix="$acl_final_exec_prefix"
21699   eval x=\"$x\"
21700   exec_prefix="$acl_save_exec_prefix"
21701   prefix="$acl_save_prefix"
21702
21703                           if test "X$x" = "X-L$additional_libdir"; then
21704                             haveit=yes
21705                             break
21706                           fi
21707                         done
21708                         if test -z "$haveit"; then
21709                           if test -d "$additional_libdir"; then
21710                                                         LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-L$additional_libdir"
21711                           fi
21712                         fi
21713                       fi
21714                     fi
21715                     ;;
21716                   -R*)
21717                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21718                     if test "$enable_rpath" != no; then
21719                                                                   haveit=
21720                       for x in $rpathdirs; do
21721                         if test "X$x" = "X$dir"; then
21722                           haveit=yes
21723                           break
21724                         fi
21725                       done
21726                       if test -z "$haveit"; then
21727                         rpathdirs="$rpathdirs $dir"
21728                       fi
21729                                                                   haveit=
21730                       for x in $ltrpathdirs; do
21731                         if test "X$x" = "X$dir"; then
21732                           haveit=yes
21733                           break
21734                         fi
21735                       done
21736                       if test -z "$haveit"; then
21737                         ltrpathdirs="$ltrpathdirs $dir"
21738                       fi
21739                     fi
21740                     ;;
21741                   -l*)
21742                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21743                     ;;
21744                   *.la)
21745                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21746                     ;;
21747                   *)
21748                                         LIBGMP="${LIBGMP}${LIBGMP:+ }$dep"
21749                     LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }$dep"
21750                     ;;
21751                 esac
21752               done
21753             fi
21754           else
21755                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
21756               LIBGMP="${LIBGMP}${LIBGMP:+ }-l$name"
21757               LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-l$name"
21758             else
21759               LIBGMP="${LIBGMP}${LIBGMP:+ }-l:lib$name.$libext"
21760               LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-l:lib$name.$libext"
21761             fi
21762           fi
21763         fi
21764       fi
21765     done
21766   done
21767   if test "X$rpathdirs" != "X"; then
21768     if test -n "$hardcode_libdir_separator"; then
21769                         alldirs=
21770       for found_dir in $rpathdirs; do
21771         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21772       done
21773             acl_save_libdir="$libdir"
21774       libdir="$alldirs"
21775       eval flag=\"$hardcode_libdir_flag_spec\"
21776       libdir="$acl_save_libdir"
21777       LIBGMP="${LIBGMP}${LIBGMP:+ }$flag"
21778     else
21779             for found_dir in $rpathdirs; do
21780         acl_save_libdir="$libdir"
21781         libdir="$found_dir"
21782         eval flag=\"$hardcode_libdir_flag_spec\"
21783         libdir="$acl_save_libdir"
21784         LIBGMP="${LIBGMP}${LIBGMP:+ }$flag"
21785       done
21786     fi
21787   fi
21788   if test "X$ltrpathdirs" != "X"; then
21789             for found_dir in $ltrpathdirs; do
21790       LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-R$found_dir"
21791     done
21792   fi
21793
21794
21795         ac_save_CPPFLAGS="$CPPFLAGS"
21796
21797   for element in $INCGMP; do
21798     haveit=
21799     for x in $CPPFLAGS; do
21800
21801   acl_save_prefix="$prefix"
21802   prefix="$acl_final_prefix"
21803   acl_save_exec_prefix="$exec_prefix"
21804   exec_prefix="$acl_final_exec_prefix"
21805   eval x=\"$x\"
21806   exec_prefix="$acl_save_exec_prefix"
21807   prefix="$acl_save_prefix"
21808
21809       if test "X$x" = "X$element"; then
21810         haveit=yes
21811         break
21812       fi
21813     done
21814     if test -z "$haveit"; then
21815       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21816     fi
21817   done
21818
21819
21820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgmp" >&5
21821 $as_echo_n "checking for libgmp... " >&6; }
21822 if ${ac_cv_libgmp+:} false; then :
21823   $as_echo_n "(cached) " >&6
21824 else
21825
21826     ac_save_LIBS="$LIBS"
21827     LIBS="$LIBS $LIBGMP"
21828     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21829 /* end confdefs.h.  */
21830 #include <gmp.h>
21831 int
21832 main ()
21833 {
21834 mpz_t n;
21835                        mpz_init (n);
21836   ;
21837   return 0;
21838 }
21839 _ACEOF
21840 if ac_fn_c_try_link "$LINENO"; then :
21841   ac_cv_libgmp=yes
21842 else
21843   ac_cv_libgmp=no
21844 fi
21845 rm -f core conftest.err conftest.$ac_objext \
21846     conftest$ac_exeext conftest.$ac_ext
21847     LIBS="$ac_save_LIBS"
21848
21849 fi
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgmp" >&5
21851 $as_echo "$ac_cv_libgmp" >&6; }
21852   if test "$ac_cv_libgmp" = yes; then
21853     HAVE_LIBGMP=yes
21854
21855 $as_echo "#define HAVE_LIBGMP 1" >>confdefs.h
21856
21857     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgmp" >&5
21858 $as_echo_n "checking how to link with libgmp... " >&6; }
21859     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGMP" >&5
21860 $as_echo "$LIBGMP" >&6; }
21861   else
21862     HAVE_LIBGMP=no
21863             CPPFLAGS="$ac_save_CPPFLAGS"
21864     LIBGMP=
21865     LTLIBGMP=
21866   fi
21867
21868
21869
21870
21871
21872
21873 if test "$HAVE_LIBGMP" != yes; then
21874   as_fn_error $? "GMP is missing or unusable" "$LINENO" 5
21875 fi
21876
21877
21878 # Check whether --with-mpfr was given.
21879 if test "${with_mpfr+set}" = set; then :
21880   withval=$with_mpfr;
21881 else
21882   with_mpfr=auto
21883 fi
21884
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
21886 $as_echo_n "checking whether to use MPFR... " >&6; }
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
21888 $as_echo "$with_mpfr" >&6; }
21889
21890 if test "${with_mpfr}" = no; then
21891   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
21892 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
21893   HAVE_LIBMPFR=no
21894 else
21895
21896
21897
21898
21899
21900
21901
21902
21903     use_additional=yes
21904
21905   acl_save_prefix="$prefix"
21906   prefix="$acl_final_prefix"
21907   acl_save_exec_prefix="$exec_prefix"
21908   exec_prefix="$acl_final_exec_prefix"
21909
21910     eval additional_includedir=\"$includedir\"
21911     eval additional_libdir=\"$libdir\"
21912
21913   exec_prefix="$acl_save_exec_prefix"
21914   prefix="$acl_save_prefix"
21915
21916
21917 # Check whether --with-libmpfr-prefix was given.
21918 if test "${with_libmpfr_prefix+set}" = set; then :
21919   withval=$with_libmpfr_prefix;
21920     if test "X$withval" = "Xno"; then
21921       use_additional=no
21922     else
21923       if test "X$withval" = "X"; then
21924
21925   acl_save_prefix="$prefix"
21926   prefix="$acl_final_prefix"
21927   acl_save_exec_prefix="$exec_prefix"
21928   exec_prefix="$acl_final_exec_prefix"
21929
21930           eval additional_includedir=\"$includedir\"
21931           eval additional_libdir=\"$libdir\"
21932
21933   exec_prefix="$acl_save_exec_prefix"
21934   prefix="$acl_save_prefix"
21935
21936       else
21937         additional_includedir="$withval/include"
21938         additional_libdir="$withval/lib"
21939       fi
21940     fi
21941
21942 fi
21943
21944
21945 # Check whether --with-libmpfr-type was given.
21946 if test "${with_libmpfr_type+set}" = set; then :
21947   withval=$with_libmpfr_type;  with_libmpfr_type=$withval
21948 else
21949    with_libmpfr_type=auto
21950 fi
21951
21952   lib_type=`eval echo \$with_libmpfr_type`
21953
21954       LIBMPFR=
21955   LTLIBMPFR=
21956   INCMPFR=
21957   rpathdirs=
21958   ltrpathdirs=
21959   names_already_handled=
21960   names_next_round='mpfr gmp'
21961   while test -n "$names_next_round"; do
21962     names_this_round="$names_next_round"
21963     names_next_round=
21964     for name in $names_this_round; do
21965       already_handled=
21966       for n in $names_already_handled; do
21967         if test "$n" = "$name"; then
21968           already_handled=yes
21969           break
21970         fi
21971       done
21972       if test -z "$already_handled"; then
21973         names_already_handled="$names_already_handled $name"
21974                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21975         eval value=\"\$HAVE_LIB$uppername\"
21976         if test -n "$value"; then
21977           if test "$value" = yes; then
21978             eval value=\"\$LIB$uppername\"
21979             test -z "$value" || LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$value"
21980             eval value=\"\$LTLIB$uppername\"
21981             test -z "$value" || LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
21982           else
21983                                     :
21984           fi
21985         else
21986                               found_dir=
21987           found_la=
21988           found_so=
21989           found_a=
21990           if test $use_additional = yes; then
21991             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
21992               found_dir="$additional_libdir"
21993               found_so="$additional_libdir/lib$name.$shlibext"
21994               if test -f "$additional_libdir/lib$name.la"; then
21995                 found_la="$additional_libdir/lib$name.la"
21996               fi
21997             elif test x$lib_type != xshared; then
21998               if test -f "$additional_libdir/lib$name.$libext"; then
21999                 found_dir="$additional_libdir"
22000                 found_a="$additional_libdir/lib$name.$libext"
22001                 if test -f "$additional_libdir/lib$name.la"; then
22002                   found_la="$additional_libdir/lib$name.la"
22003                 fi
22004               fi
22005             fi
22006           fi
22007           if test "X$found_dir" = "X"; then
22008             for x in $LDFLAGS $LTLIBMPFR; do
22009
22010   acl_save_prefix="$prefix"
22011   prefix="$acl_final_prefix"
22012   acl_save_exec_prefix="$exec_prefix"
22013   exec_prefix="$acl_final_exec_prefix"
22014   eval x=\"$x\"
22015   exec_prefix="$acl_save_exec_prefix"
22016   prefix="$acl_save_prefix"
22017
22018               case "$x" in
22019                 -L*)
22020                   dir=`echo "X$x" | sed -e 's/^X-L//'`
22021                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
22022                     found_dir="$dir"
22023                     found_so="$dir/lib$name.$shlibext"
22024                     if test -f "$dir/lib$name.la"; then
22025                       found_la="$dir/lib$name.la"
22026                     fi
22027                   elif test x$lib_type != xshared; then
22028                     if test -f "$dir/lib$name.$libext"; then
22029                       found_dir="$dir"
22030                       found_a="$dir/lib$name.$libext"
22031                       if test -f "$dir/lib$name.la"; then
22032                         found_la="$dir/lib$name.la"
22033                       fi
22034                     fi
22035                   fi
22036                   ;;
22037               esac
22038               if test "X$found_dir" != "X"; then
22039                 break
22040               fi
22041             done
22042           fi
22043           if test "X$found_dir" != "X"; then
22044                         LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
22045             if test "X$found_so" != "X"; then
22046                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
22047                                 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
22048               else
22049                                                                                 haveit=
22050                 for x in $ltrpathdirs; do
22051                   if test "X$x" = "X$found_dir"; then
22052                     haveit=yes
22053                     break
22054                   fi
22055                 done
22056                 if test -z "$haveit"; then
22057                   ltrpathdirs="$ltrpathdirs $found_dir"
22058                 fi
22059                                 if test "$hardcode_direct" = yes; then
22060                                                       LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
22061                 else
22062                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22063                                                             LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
22064                                                             haveit=
22065                     for x in $rpathdirs; do
22066                       if test "X$x" = "X$found_dir"; then
22067                         haveit=yes
22068                         break
22069                       fi
22070                     done
22071                     if test -z "$haveit"; then
22072                       rpathdirs="$rpathdirs $found_dir"
22073                     fi
22074                   else
22075                                                                                 haveit=
22076                     for x in $LDFLAGS $LIBMPFR; do
22077
22078   acl_save_prefix="$prefix"
22079   prefix="$acl_final_prefix"
22080   acl_save_exec_prefix="$exec_prefix"
22081   exec_prefix="$acl_final_exec_prefix"
22082   eval x=\"$x\"
22083   exec_prefix="$acl_save_exec_prefix"
22084   prefix="$acl_save_prefix"
22085
22086                       if test "X$x" = "X-L$found_dir"; then
22087                         haveit=yes
22088                         break
22089                       fi
22090                     done
22091                     if test -z "$haveit"; then
22092                       LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
22093                     fi
22094                     if test "$hardcode_minus_L" != no; then
22095                                                                                         LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
22096                     else
22097                                                                                                                                                                                 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name"
22098                     fi
22099                   fi
22100                 fi
22101               fi
22102             else
22103               if test "X$found_a" != "X"; then
22104                                 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_a"
22105               else
22106                                                 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
22107               fi
22108             fi
22109                         additional_includedir=
22110             case "$found_dir" in
22111               */lib | */lib/)
22112                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22113                 additional_includedir="$basedir/include"
22114                 ;;
22115             esac
22116             if test "X$additional_includedir" != "X"; then
22117                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
22118                 haveit=
22119                 if test "X$additional_includedir" = "X/usr/local/include"; then
22120                   if test -n "$GCC"; then
22121                     case $host_os in
22122                       linux*) haveit=yes;;
22123                     esac
22124                   fi
22125                 fi
22126                 if test -z "$haveit"; then
22127                   for x in $CPPFLAGS $INCMPFR; do
22128
22129   acl_save_prefix="$prefix"
22130   prefix="$acl_final_prefix"
22131   acl_save_exec_prefix="$exec_prefix"
22132   exec_prefix="$acl_final_exec_prefix"
22133   eval x=\"$x\"
22134   exec_prefix="$acl_save_exec_prefix"
22135   prefix="$acl_save_prefix"
22136
22137                     if test "X$x" = "X-I$additional_includedir"; then
22138                       haveit=yes
22139                       break
22140                     fi
22141                   done
22142                   if test -z "$haveit"; then
22143                     if test -d "$additional_includedir"; then
22144                                             INCMPFR="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
22145                     fi
22146                   fi
22147                 fi
22148               fi
22149             fi
22150                         if test -n "$found_la"; then
22151                                                         save_libdir="$libdir"
22152               case "$found_la" in
22153                 */* | *\\*) . "$found_la" ;;
22154                 *) . "./$found_la" ;;
22155               esac
22156               libdir="$save_libdir"
22157                             for dep in $dependency_libs; do
22158                 case "$dep" in
22159                   -L*)
22160                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22161                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
22162                       haveit=
22163                       if test "X$additional_libdir" = "X/usr/local/lib"; then
22164                         if test -n "$GCC"; then
22165                           case $host_os in
22166                             linux*) haveit=yes;;
22167                           esac
22168                         fi
22169                       fi
22170                       if test -z "$haveit"; then
22171                         haveit=
22172                         for x in $LDFLAGS $LIBMPFR; do
22173
22174   acl_save_prefix="$prefix"
22175   prefix="$acl_final_prefix"
22176   acl_save_exec_prefix="$exec_prefix"
22177   exec_prefix="$acl_final_exec_prefix"
22178   eval x=\"$x\"
22179   exec_prefix="$acl_save_exec_prefix"
22180   prefix="$acl_save_prefix"
22181
22182                           if test "X$x" = "X-L$additional_libdir"; then
22183                             haveit=yes
22184                             break
22185                           fi
22186                         done
22187                         if test -z "$haveit"; then
22188                           if test -d "$additional_libdir"; then
22189                                                         LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
22190                           fi
22191                         fi
22192                         haveit=
22193                         for x in $LDFLAGS $LTLIBMPFR; do
22194
22195   acl_save_prefix="$prefix"
22196   prefix="$acl_final_prefix"
22197   acl_save_exec_prefix="$exec_prefix"
22198   exec_prefix="$acl_final_exec_prefix"
22199   eval x=\"$x\"
22200   exec_prefix="$acl_save_exec_prefix"
22201   prefix="$acl_save_prefix"
22202
22203                           if test "X$x" = "X-L$additional_libdir"; then
22204                             haveit=yes
22205                             break
22206                           fi
22207                         done
22208                         if test -z "$haveit"; then
22209                           if test -d "$additional_libdir"; then
22210                                                         LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
22211                           fi
22212                         fi
22213                       fi
22214                     fi
22215                     ;;
22216                   -R*)
22217                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
22218                     if test "$enable_rpath" != no; then
22219                                                                   haveit=
22220                       for x in $rpathdirs; do
22221                         if test "X$x" = "X$dir"; then
22222                           haveit=yes
22223                           break
22224                         fi
22225                       done
22226                       if test -z "$haveit"; then
22227                         rpathdirs="$rpathdirs $dir"
22228                       fi
22229                                                                   haveit=
22230                       for x in $ltrpathdirs; do
22231                         if test "X$x" = "X$dir"; then
22232                           haveit=yes
22233                           break
22234                         fi
22235                       done
22236                       if test -z "$haveit"; then
22237                         ltrpathdirs="$ltrpathdirs $dir"
22238                       fi
22239                     fi
22240                     ;;
22241                   -l*)
22242                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22243                     ;;
22244                   *.la)
22245                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22246                     ;;
22247                   *)
22248                                         LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$dep"
22249                     LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
22250                     ;;
22251                 esac
22252               done
22253             fi
22254           else
22255                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
22256               LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name"
22257               LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
22258             else
22259               LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l:lib$name.$libext"
22260               LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-l:lib$name.$libext"
22261             fi
22262           fi
22263         fi
22264       fi
22265     done
22266   done
22267   if test "X$rpathdirs" != "X"; then
22268     if test -n "$hardcode_libdir_separator"; then
22269                         alldirs=
22270       for found_dir in $rpathdirs; do
22271         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22272       done
22273             acl_save_libdir="$libdir"
22274       libdir="$alldirs"
22275       eval flag=\"$hardcode_libdir_flag_spec\"
22276       libdir="$acl_save_libdir"
22277       LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag"
22278     else
22279             for found_dir in $rpathdirs; do
22280         acl_save_libdir="$libdir"
22281         libdir="$found_dir"
22282         eval flag=\"$hardcode_libdir_flag_spec\"
22283         libdir="$acl_save_libdir"
22284         LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag"
22285       done
22286     fi
22287   fi
22288   if test "X$ltrpathdirs" != "X"; then
22289             for found_dir in $ltrpathdirs; do
22290       LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
22291     done
22292   fi
22293
22294
22295         ac_save_CPPFLAGS="$CPPFLAGS"
22296
22297   for element in $INCMPFR; do
22298     haveit=
22299     for x in $CPPFLAGS; do
22300
22301   acl_save_prefix="$prefix"
22302   prefix="$acl_final_prefix"
22303   acl_save_exec_prefix="$exec_prefix"
22304   exec_prefix="$acl_final_exec_prefix"
22305   eval x=\"$x\"
22306   exec_prefix="$acl_save_exec_prefix"
22307   prefix="$acl_save_prefix"
22308
22309       if test "X$x" = "X$element"; then
22310         haveit=yes
22311         break
22312       fi
22313     done
22314     if test -z "$haveit"; then
22315       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22316     fi
22317   done
22318
22319
22320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
22321 $as_echo_n "checking for libmpfr... " >&6; }
22322 if ${ac_cv_libmpfr+:} false; then :
22323   $as_echo_n "(cached) " >&6
22324 else
22325
22326     ac_save_LIBS="$LIBS"
22327     LIBS="$LIBS $LIBMPFR"
22328     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22329 /* end confdefs.h.  */
22330 #include <mpfr.h>
22331 int
22332 main ()
22333 {
22334 mpfr_exp_t exp; mpfr_t x;
22335                          mpfr_frexp (&exp, x, x, MPFR_RNDN);
22336   ;
22337   return 0;
22338 }
22339 _ACEOF
22340 if ac_fn_c_try_link "$LINENO"; then :
22341   ac_cv_libmpfr=yes
22342 else
22343   ac_cv_libmpfr=no
22344 fi
22345 rm -f core conftest.err conftest.$ac_objext \
22346     conftest$ac_exeext conftest.$ac_ext
22347     LIBS="$ac_save_LIBS"
22348
22349 fi
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
22351 $as_echo "$ac_cv_libmpfr" >&6; }
22352   if test "$ac_cv_libmpfr" = yes; then
22353     HAVE_LIBMPFR=yes
22354
22355 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
22356
22357     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
22358 $as_echo_n "checking how to link with libmpfr... " >&6; }
22359     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
22360 $as_echo "$LIBMPFR" >&6; }
22361   else
22362     HAVE_LIBMPFR=no
22363             CPPFLAGS="$ac_save_CPPFLAGS"
22364     LIBMPFR=
22365     LTLIBMPFR=
22366   fi
22367
22368
22369
22370
22371
22372
22373   if test "$HAVE_LIBMPFR" != yes; then
22374     if test "$with_mpfr" = yes; then
22375       as_fn_error $? "MPFR is missing or unusable" "$LINENO" 5
22376     else
22377       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
22378 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
22379     fi
22380   fi
22381 fi
22382
22383 # --------------------- #
22384 # Check for libpython.  #
22385 # --------------------- #
22386
22387
22388
22389
22390
22391
22392 # Check whether --with-python was given.
22393 if test "${with_python+set}" = set; then :
22394   withval=$with_python;
22395 else
22396   with_python=auto
22397 fi
22398
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
22400 $as_echo_n "checking whether to use python... " >&6; }
22401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
22402 $as_echo "$with_python" >&6; }
22403
22404 if test "${with_python}" = no; then
22405   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
22406 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
22407   have_libpython=no
22408 else
22409   case "${with_python}" in
22410   [\\/]* | ?:[\\/]*)
22411     if test -d "${with_python}"; then
22412       # Assume the python binary is ${with_python}/bin/python.
22413       python_prog="${with_python}/bin/python"
22414       python_prefix=
22415       # If python does not exit ${with_python}/bin, then try in
22416       # ${with_python}.  On Windows/MinGW, this is where the Python
22417       # executable is.
22418       if test ! -x "${python_prog}"; then
22419         python_prog="${with_python}/python"
22420         python_prefix=
22421       fi
22422       if test ! -x "${python_prog}"; then
22423         # Fall back to gdb 7.0/7.1 behaviour.
22424         python_prog=missing
22425         python_prefix=${with_python}
22426       fi
22427     elif test -x "${with_python}"; then
22428       # While we can't run python compiled for $host (unless host == build),
22429       # the user could write a script that provides the needed information,
22430       # so we support that.
22431       python_prog=${with_python}
22432       python_prefix=
22433     else
22434       as_fn_error $? "invalid value for --with-python" "$LINENO" 5
22435     fi
22436     ;;
22437   */*)
22438     # Disallow --with-python=foo/bar.
22439     as_fn_error $? "invalid value for --with-python" "$LINENO" 5
22440     ;;
22441   *)
22442     # The user has either specified auto, yes, or the name of the python
22443     # program assumed to be in $PATH.
22444     python_prefix=
22445     case "${with_python}" in
22446     yes | auto)
22447       if test "${build}" = "${host}"; then
22448         # Look first for 'python', then 'python3'.
22449         for ac_prog in python python3
22450 do
22451   # Extract the first word of "$ac_prog", so it can be a program name with args.
22452 set dummy $ac_prog; ac_word=$2
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22454 $as_echo_n "checking for $ac_word... " >&6; }
22455 if ${ac_cv_path_python_prog_path+:} false; then :
22456   $as_echo_n "(cached) " >&6
22457 else
22458   case $python_prog_path in
22459   [\\/]* | ?:[\\/]*)
22460   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
22461   ;;
22462   *)
22463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22464 for as_dir in $PATH
22465 do
22466   IFS=$as_save_IFS
22467   test -z "$as_dir" && as_dir=.
22468     for ac_exec_ext in '' $ac_executable_extensions; do
22469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22470     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
22471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22472     break 2
22473   fi
22474 done
22475   done
22476 IFS=$as_save_IFS
22477
22478   ;;
22479 esac
22480 fi
22481 python_prog_path=$ac_cv_path_python_prog_path
22482 if test -n "$python_prog_path"; then
22483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
22484 $as_echo "$python_prog_path" >&6; }
22485 else
22486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22487 $as_echo "no" >&6; }
22488 fi
22489
22490
22491   test -n "$python_prog_path" && break
22492 done
22493 test -n "$python_prog_path" || python_prog_path="missing"
22494
22495         if test "${python_prog_path}" = missing; then
22496           python_prog=missing
22497         else
22498           python_prog=${python_prog_path}
22499         fi
22500       else
22501         # Not much we can do except assume the cross-compiler will find the
22502         # right files.
22503         python_prog=missing
22504       fi
22505       ;;
22506     *)
22507       # While we can't run python compiled for $host (unless host == build),
22508       # the user could write a script that provides the needed information,
22509       # so we support that.
22510       python_prog="${with_python}"
22511       # Extract the first word of "${python_prog}", so it can be a program name with args.
22512 set dummy ${python_prog}; ac_word=$2
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22514 $as_echo_n "checking for $ac_word... " >&6; }
22515 if ${ac_cv_path_python_prog_path+:} false; then :
22516   $as_echo_n "(cached) " >&6
22517 else
22518   case $python_prog_path in
22519   [\\/]* | ?:[\\/]*)
22520   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
22521   ;;
22522   *)
22523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22524 for as_dir in $PATH
22525 do
22526   IFS=$as_save_IFS
22527   test -z "$as_dir" && as_dir=.
22528     for ac_exec_ext in '' $ac_executable_extensions; do
22529   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22530     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
22531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22532     break 2
22533   fi
22534 done
22535   done
22536 IFS=$as_save_IFS
22537
22538   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
22539   ;;
22540 esac
22541 fi
22542 python_prog_path=$ac_cv_path_python_prog_path
22543 if test -n "$python_prog_path"; then
22544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
22545 $as_echo "$python_prog_path" >&6; }
22546 else
22547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22548 $as_echo "no" >&6; }
22549 fi
22550
22551
22552       if test "${python_prog_path}" = missing; then
22553         as_fn_error $? "unable to find python program ${python_prog}" "$LINENO" 5
22554       fi
22555       ;;
22556     esac
22557   esac
22558
22559   if test "${python_prog}" != missing; then
22560     # We have a python program to use, but it may be too old.
22561     # Don't flag an error for --with-python=auto (the default).
22562     have_python_config=yes
22563     python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
22564     if test $? != 0; then
22565       have_python_config=failed
22566       if test "${with_python}" != auto; then
22567         as_fn_error $? "failure running python-config --includes" "$LINENO" 5
22568       fi
22569     fi
22570     python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
22571     if test $? != 0; then
22572       have_python_config=failed
22573       if test "${with_python}" != auto; then
22574         as_fn_error $? "failure running python-config --ldflags" "$LINENO" 5
22575       fi
22576     fi
22577     python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
22578     if test $? != 0; then
22579       have_python_config=failed
22580       if test "${with_python}" != auto; then
22581         as_fn_error $? "failure running python-config --exec-prefix" "$LINENO" 5
22582       fi
22583     fi
22584   else
22585     # We do not have a python executable we can use to determine where
22586     # to find the Python headers and libs.  We cannot guess the include
22587     # path from the python_prefix either, because that include path
22588     # depends on the Python version.  So, there is nothing much we can
22589     # do except assume that the compiler will be able to find those files.
22590     python_includes=
22591     python_libs=
22592     have_python_config=no
22593   fi
22594
22595   # If we have python-config, only try the configuration it provides.
22596   # Otherwise fallback on the old way of trying different versions of
22597   # python in turn.
22598
22599   have_libpython=no
22600   if test "${have_python_config}" = yes; then
22601
22602
22603   new_CPPFLAGS=${python_includes}
22604   new_LIBS=${python_libs}
22605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
22606 $as_echo_n "checking for python... " >&6; }
22607   save_CPPFLAGS=$CPPFLAGS
22608   save_LIBS=$LIBS
22609   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
22610   LIBS="$new_LIBS $LIBS"
22611   found_usable_python=no
22612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22613 /* end confdefs.h.  */
22614 #include "Python.h"
22615 int
22616 main ()
22617 {
22618
22619                                     #if PY_MAJOR_VERSION != 3
22620                                     # error "We only support Python 3"
22621                                     #endif
22622                                     Py_Initialize ();
22623
22624   ;
22625   return 0;
22626 }
22627 _ACEOF
22628 if ac_fn_c_try_link "$LINENO"; then :
22629   have_libpython=yes
22630                   found_usable_python=yes
22631                   PYTHON_CPPFLAGS=$new_CPPFLAGS
22632                   PYTHON_LIBS=$new_LIBS
22633 fi
22634 rm -f core conftest.err conftest.$ac_objext \
22635     conftest$ac_exeext conftest.$ac_ext
22636   CPPFLAGS=$save_CPPFLAGS
22637   LIBS=$save_LIBS
22638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
22639 $as_echo "${found_usable_python}" >&6; }
22640
22641   fi
22642
22643   if test "${have_libpython}" = no; then
22644     case "${with_python}" in
22645     yes)
22646       as_fn_error $? "python is missing or unusable" "$LINENO" 5
22647       ;;
22648     auto)
22649       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
22650 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
22651       ;;
22652     *)
22653       as_fn_error $? "no usable python found at ${with_python}" "$LINENO" 5
22654       ;;
22655     esac
22656   else
22657     if test -n "${python_prefix}"; then
22658
22659 cat >>confdefs.h <<_ACEOF
22660 #define WITH_PYTHON_PATH "${python_prefix}"
22661 _ACEOF
22662
22663
22664   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
22665      if test "x$prefix" = xNONE; then
22666         test_prefix=/usr/local
22667      else
22668         test_prefix=$prefix
22669      fi
22670   else
22671      test_prefix=$exec_prefix
22672   fi
22673   value=0
22674   case ${python_prefix} in
22675      "${test_prefix}"|"${test_prefix}/"*|\
22676         '${exec_prefix}'|'${exec_prefix}/'*)
22677      value=1
22678      ;;
22679   esac
22680
22681 cat >>confdefs.h <<_ACEOF
22682 #define PYTHON_PATH_RELOCATABLE $value
22683 _ACEOF
22684
22685
22686     fi
22687   fi
22688 fi
22689
22690
22691 # Check whether --with-python-libdir was given.
22692 if test "${with_python_libdir+set}" = set; then :
22693   withval=$with_python_libdir;
22694 else
22695
22696     # If no python libdir is specified then select one based on
22697     # python's prefix path.
22698     if test -n "${python_prefix}"; then
22699       with_python_libdir=${python_prefix}/lib
22700     fi
22701
22702 fi
22703
22704
22705 if test "${have_libpython}" != no; then
22706
22707 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
22708
22709   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
22710   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
22711   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
22712   CONFIG_INSTALL="$CONFIG_INSTALL install-python"
22713   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
22714
22715   if test -n "${with_python_libdir}"; then
22716
22717 cat >>confdefs.h <<_ACEOF
22718 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
22719 _ACEOF
22720
22721
22722   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
22723      if test "x$prefix" = xNONE; then
22724         test_prefix=/usr/local
22725      else
22726         test_prefix=$prefix
22727      fi
22728   else
22729      test_prefix=$exec_prefix
22730   fi
22731   value=0
22732   case ${with_python_libdir} in
22733      "${test_prefix}"|"${test_prefix}/"*|\
22734         '${exec_prefix}'|'${exec_prefix}/'*)
22735      value=1
22736      ;;
22737   esac
22738
22739 cat >>confdefs.h <<_ACEOF
22740 #define PYTHON_LIBDIR_RELOCATABLE $value
22741 _ACEOF
22742
22743
22744   fi
22745
22746   # Flags needed to compile Python code (taken from python-config --cflags).
22747   # We cannot call python-config directly because it will output whatever was
22748   # used when compiling the Python interpreter itself, including flags which
22749   # would make the python-related objects be compiled differently from the
22750   # rest of GDB (e.g., -O2 and -fPIC).
22751   if test "${GCC}" = yes; then
22752     tentative_python_cflags="-fno-strict-aliasing -fwrapv"
22753     # Python headers recommend -DNDEBUG, but it's unclear if that just
22754     # refers to building Python itself.  In release mode, though, it
22755     # doesn't hurt for the Python code in gdb to follow.
22756     $development || tentative_python_cflags="$tentative_python_cflags -DNDEBUG"
22757   fi
22758
22759   if test "x${tentative_python_cflags}" != x; then
22760     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
22761 $as_echo_n "checking compiler flags for python code... " >&6; }
22762     for flag in ${tentative_python_cflags}; do
22763       # Check that the compiler accepts it
22764       saved_CFLAGS="$CFLAGS"
22765       CFLAGS="$CFLAGS $flag"
22766       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22767 /* end confdefs.h.  */
22768
22769 int
22770 main ()
22771 {
22772
22773   ;
22774   return 0;
22775 }
22776 _ACEOF
22777 if ac_fn_c_try_compile "$LINENO"; then :
22778   PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
22779 fi
22780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22781       CFLAGS="$saved_CFLAGS"
22782     done
22783     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
22784 $as_echo "${PYTHON_CFLAGS}" >&6; }
22785   fi
22786
22787   # On x64 Windows, Python's include headers, and pyconfig.h in
22788   # particular, rely on MS_WIN64 macro to detect that it's a 64bit
22789   # version of Windows.  Unfortunately, MS_WIN64 is only defined if
22790   # _MSC_VER, a Microsoft-specific macro, is defined.  So, when
22791   # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
22792   # The issue was reported to the Python community, but still isn't
22793   # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
22794
22795   case "$gdb_host" in
22796     mingw64)
22797            if test "${GCC}" = yes; then
22798              CPPFLAGS="$CPPFLAGS -DMS_WIN64"
22799            fi
22800            ;;
22801   esac
22802 else
22803   # Even if Python support is not compiled in, we need to have this file
22804   # included so that the "python" command, et.al., still exists.
22805   CONFIG_OBS="$CONFIG_OBS python/python.o"
22806   CONFIG_SRCS="$CONFIG_SRCS python/python.c"
22807 fi
22808
22809 # Work around Python http://bugs.python.org/issue10112.  See also
22810 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
22811 # no effect.  Note that the only test after this that uses Python is
22812 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
22813 # run without -export-dynamic too.
22814 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
22815
22816
22817
22818
22819  if test "${have_libpython}" != no; then
22820   HAVE_PYTHON_TRUE=
22821   HAVE_PYTHON_FALSE='#'
22822 else
22823   HAVE_PYTHON_TRUE='#'
22824   HAVE_PYTHON_FALSE=
22825 fi
22826
22827
22828 # -------------------- #
22829 # Check for libguile.  #
22830 # -------------------- #
22831
22832
22833
22834
22835
22836
22837 # Check whether --with-guile was given.
22838 if test "${with_guile+set}" = set; then :
22839   withval=$with_guile;
22840 else
22841   with_guile=auto
22842 fi
22843
22844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
22845 $as_echo_n "checking whether to use guile... " >&6; }
22846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
22847 $as_echo "$with_guile" >&6; }
22848
22849 # Extract the first word of "pkg-config", so it can be a program name with args.
22850 set dummy pkg-config; ac_word=$2
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22852 $as_echo_n "checking for $ac_word... " >&6; }
22853 if ${ac_cv_path_pkg_config_prog_path+:} false; then :
22854   $as_echo_n "(cached) " >&6
22855 else
22856   case $pkg_config_prog_path in
22857   [\\/]* | ?:[\\/]*)
22858   ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
22859   ;;
22860   *)
22861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22862 for as_dir in $PATH
22863 do
22864   IFS=$as_save_IFS
22865   test -z "$as_dir" && as_dir=.
22866     for ac_exec_ext in '' $ac_executable_extensions; do
22867   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22868     ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
22869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22870     break 2
22871   fi
22872 done
22873   done
22874 IFS=$as_save_IFS
22875
22876   test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
22877   ;;
22878 esac
22879 fi
22880 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
22881 if test -n "$pkg_config_prog_path"; then
22882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
22883 $as_echo "$pkg_config_prog_path" >&6; }
22884 else
22885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22886 $as_echo "no" >&6; }
22887 fi
22888
22889
22890
22891 try_guile_versions="guile-3.0 guile-2.2 guile-2.0"
22892 have_libguile=no
22893 case "${with_guile}" in
22894 no)
22895   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
22896 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
22897   ;;
22898 auto)
22899   if test "${pkg_config_prog_path}" = "missing"; then
22900     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
22901 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
22902   else
22903
22904   pkg_config=${pkg_config_prog_path}
22905   guile_version_list=${try_guile_versions}
22906   flag_errors=no
22907
22908   found_usable_guile=checking
22909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
22910 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
22911   for guile_version in ${guile_version_list}; do
22912     ${pkg_config} --exists ${guile_version} 2>/dev/null
22913     if test $? != 0; then
22914       continue
22915     fi
22916             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
22917     if test $? != 0; then
22918       as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
22919     fi
22920     new_LIBS=`${pkg_config} --libs ${guile_version}`
22921     if test $? != 0; then
22922       as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
22923     fi
22924         found_usable_guile=${guile_version}
22925     break
22926   done
22927   if test "${found_usable_guile}" = "checking"; then
22928     if test "${flag_errors}" = "yes"; then
22929       as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
22930     else
22931       found_usable_guile=no
22932     fi
22933   fi
22934       if test "${found_usable_guile}" != no; then
22935     save_CPPFLAGS=$CPPFLAGS
22936     save_LIBS=$LIBS
22937     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
22938     LIBS="$LIBS $new_LIBS"
22939     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22940 /* end confdefs.h.  */
22941 #include "libguile.h"
22942 int
22943 main ()
22944 {
22945 scm_init_guile ();
22946   ;
22947   return 0;
22948 }
22949 _ACEOF
22950 if ac_fn_c_try_link "$LINENO"; then :
22951   have_libguile=yes
22952                     GUILE_CPPFLAGS=$new_CPPFLAGS
22953                     GUILE_LIBS=$new_LIBS
22954 else
22955   found_usable_guile=no
22956 fi
22957 rm -f core conftest.err conftest.$ac_objext \
22958     conftest$ac_exeext conftest.$ac_ext
22959         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
22960 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
22961
22962 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
22963
22964
22965 fi
22966
22967     CPPFLAGS=$save_CPPFLAGS
22968     LIBS=$save_LIBS
22969     if test "${found_usable_guile}" = no; then
22970       if test "${flag_errors}" = yes; then
22971         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22973 as_fn_error $? "linking guile version ${guile_version} test program failed
22974 See \`config.log' for more details" "$LINENO" 5; }
22975       fi
22976     fi
22977   fi
22978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
22979 $as_echo "${found_usable_guile}" >&6; }
22980
22981   fi
22982   ;;
22983 yes)
22984   if test "${pkg_config_prog_path}" = "missing"; then
22985     as_fn_error $? "pkg-config not found" "$LINENO" 5
22986   fi
22987
22988   pkg_config=${pkg_config_prog_path}
22989   guile_version_list=${try_guile_versions}
22990   flag_errors=yes
22991
22992   found_usable_guile=checking
22993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
22994 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
22995   for guile_version in ${guile_version_list}; do
22996     ${pkg_config} --exists ${guile_version} 2>/dev/null
22997     if test $? != 0; then
22998       continue
22999     fi
23000             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
23001     if test $? != 0; then
23002       as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
23003     fi
23004     new_LIBS=`${pkg_config} --libs ${guile_version}`
23005     if test $? != 0; then
23006       as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
23007     fi
23008         found_usable_guile=${guile_version}
23009     break
23010   done
23011   if test "${found_usable_guile}" = "checking"; then
23012     if test "${flag_errors}" = "yes"; then
23013       as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
23014     else
23015       found_usable_guile=no
23016     fi
23017   fi
23018       if test "${found_usable_guile}" != no; then
23019     save_CPPFLAGS=$CPPFLAGS
23020     save_LIBS=$LIBS
23021     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
23022     LIBS="$LIBS $new_LIBS"
23023     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23024 /* end confdefs.h.  */
23025 #include "libguile.h"
23026 int
23027 main ()
23028 {
23029 scm_init_guile ();
23030   ;
23031   return 0;
23032 }
23033 _ACEOF
23034 if ac_fn_c_try_link "$LINENO"; then :
23035   have_libguile=yes
23036                     GUILE_CPPFLAGS=$new_CPPFLAGS
23037                     GUILE_LIBS=$new_LIBS
23038 else
23039   found_usable_guile=no
23040 fi
23041 rm -f core conftest.err conftest.$ac_objext \
23042     conftest$ac_exeext conftest.$ac_ext
23043         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
23044 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
23045
23046 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
23047
23048
23049 fi
23050
23051     CPPFLAGS=$save_CPPFLAGS
23052     LIBS=$save_LIBS
23053     if test "${found_usable_guile}" = no; then
23054       if test "${flag_errors}" = yes; then
23055         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23057 as_fn_error $? "linking guile version ${guile_version} test program failed
23058 See \`config.log' for more details" "$LINENO" 5; }
23059       fi
23060     fi
23061   fi
23062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
23063 $as_echo "${found_usable_guile}" >&6; }
23064
23065   ;;
23066 [\\/]* | ?:[\\/]*)
23067   if test -x "${with_guile}"; then
23068
23069   pkg_config=${with_guile}
23070   guile_version_list=${try_guile_versions}
23071   flag_errors=yes
23072
23073   found_usable_guile=checking
23074   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
23075 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
23076   for guile_version in ${guile_version_list}; do
23077     ${pkg_config} --exists ${guile_version} 2>/dev/null
23078     if test $? != 0; then
23079       continue
23080     fi
23081             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
23082     if test $? != 0; then
23083       as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
23084     fi
23085     new_LIBS=`${pkg_config} --libs ${guile_version}`
23086     if test $? != 0; then
23087       as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
23088     fi
23089         found_usable_guile=${guile_version}
23090     break
23091   done
23092   if test "${found_usable_guile}" = "checking"; then
23093     if test "${flag_errors}" = "yes"; then
23094       as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
23095     else
23096       found_usable_guile=no
23097     fi
23098   fi
23099       if test "${found_usable_guile}" != no; then
23100     save_CPPFLAGS=$CPPFLAGS
23101     save_LIBS=$LIBS
23102     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
23103     LIBS="$LIBS $new_LIBS"
23104     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23105 /* end confdefs.h.  */
23106 #include "libguile.h"
23107 int
23108 main ()
23109 {
23110 scm_init_guile ();
23111   ;
23112   return 0;
23113 }
23114 _ACEOF
23115 if ac_fn_c_try_link "$LINENO"; then :
23116   have_libguile=yes
23117                     GUILE_CPPFLAGS=$new_CPPFLAGS
23118                     GUILE_LIBS=$new_LIBS
23119 else
23120   found_usable_guile=no
23121 fi
23122 rm -f core conftest.err conftest.$ac_objext \
23123     conftest$ac_exeext conftest.$ac_ext
23124         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
23125 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
23126
23127 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
23128
23129
23130 fi
23131
23132     CPPFLAGS=$save_CPPFLAGS
23133     LIBS=$save_LIBS
23134     if test "${found_usable_guile}" = no; then
23135       if test "${flag_errors}" = yes; then
23136         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23138 as_fn_error $? "linking guile version ${guile_version} test program failed
23139 See \`config.log' for more details" "$LINENO" 5; }
23140       fi
23141     fi
23142   fi
23143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
23144 $as_echo "${found_usable_guile}" >&6; }
23145
23146   else
23147     as_fn_error $? "Guile config program not executable: ${with_guile}" "$LINENO" 5
23148   fi
23149   ;;
23150 "" | */*)
23151   # Disallow --with=guile="" and --with-guile=foo/bar.
23152   as_fn_error $? "invalid value for --with-guile" "$LINENO" 5
23153   ;;
23154 *)
23155   # A space separate list of guile versions to try, in order.
23156   if test "${pkg_config_prog_path}" = "missing"; then
23157     as_fn_error $? "pkg-config not found" "$LINENO" 5
23158   fi
23159
23160   pkg_config=${pkg_config_prog_path}
23161   guile_version_list=${with_guile}
23162   flag_errors=yes
23163
23164   found_usable_guile=checking
23165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
23166 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
23167   for guile_version in ${guile_version_list}; do
23168     ${pkg_config} --exists ${guile_version} 2>/dev/null
23169     if test $? != 0; then
23170       continue
23171     fi
23172             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
23173     if test $? != 0; then
23174       as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
23175     fi
23176     new_LIBS=`${pkg_config} --libs ${guile_version}`
23177     if test $? != 0; then
23178       as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
23179     fi
23180         found_usable_guile=${guile_version}
23181     break
23182   done
23183   if test "${found_usable_guile}" = "checking"; then
23184     if test "${flag_errors}" = "yes"; then
23185       as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
23186     else
23187       found_usable_guile=no
23188     fi
23189   fi
23190       if test "${found_usable_guile}" != no; then
23191     save_CPPFLAGS=$CPPFLAGS
23192     save_LIBS=$LIBS
23193     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
23194     LIBS="$LIBS $new_LIBS"
23195     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23196 /* end confdefs.h.  */
23197 #include "libguile.h"
23198 int
23199 main ()
23200 {
23201 scm_init_guile ();
23202   ;
23203   return 0;
23204 }
23205 _ACEOF
23206 if ac_fn_c_try_link "$LINENO"; then :
23207   have_libguile=yes
23208                     GUILE_CPPFLAGS=$new_CPPFLAGS
23209                     GUILE_LIBS=$new_LIBS
23210 else
23211   found_usable_guile=no
23212 fi
23213 rm -f core conftest.err conftest.$ac_objext \
23214     conftest$ac_exeext conftest.$ac_ext
23215         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
23216 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
23217
23218 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
23219
23220
23221 fi
23222
23223     CPPFLAGS=$save_CPPFLAGS
23224     LIBS=$save_LIBS
23225     if test "${found_usable_guile}" = no; then
23226       if test "${flag_errors}" = yes; then
23227         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23229 as_fn_error $? "linking guile version ${guile_version} test program failed
23230 See \`config.log' for more details" "$LINENO" 5; }
23231       fi
23232     fi
23233   fi
23234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
23235 $as_echo "${found_usable_guile}" >&6; }
23236
23237   ;;
23238 esac
23239
23240 if test "${have_libguile}" != no; then
23241     case "${with_guile}" in
23242   [\\/]* | ?:[\\/]*)
23243
23244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
23245 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
23246 if ${ac_cv_guild_program_name+:} false; then :
23247   $as_echo_n "(cached) " >&6
23248 else
23249   ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
23250
23251      # In Guile up to 2.0.11 included, guile-2.0.pc would not define
23252      # the 'guild' and 'bindir' variables.  In that case, try to guess
23253      # what the program name is, at the risk of getting it wrong if
23254      # Guile was configured with '--program-suffix' or similar.
23255      if test "x$ac_cv_guild_program_name" = "x"; then
23256        guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
23257        ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
23258      fi
23259
23260 fi
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
23262 $as_echo "$ac_cv_guild_program_name" >&6; }
23263
23264   if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
23265     as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
23266   fi
23267
23268   GUILD="$ac_cv_guild_program_name"
23269
23270
23271     ;;
23272   *)
23273
23274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
23275 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
23276 if ${ac_cv_guild_program_name+:} false; then :
23277   $as_echo_n "(cached) " >&6
23278 else
23279   ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
23280
23281      # In Guile up to 2.0.11 included, guile-2.0.pc would not define
23282      # the 'guild' and 'bindir' variables.  In that case, try to guess
23283      # what the program name is, at the risk of getting it wrong if
23284      # Guile was configured with '--program-suffix' or similar.
23285      if test "x$ac_cv_guild_program_name" = "x"; then
23286        guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
23287        ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
23288      fi
23289
23290 fi
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
23292 $as_echo "$ac_cv_guild_program_name" >&6; }
23293
23294   if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
23295     as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
23296   fi
23297
23298   GUILD="$ac_cv_guild_program_name"
23299
23300
23301     ;;
23302   esac
23303
23304
23305   if test "$cross_compiling" = no; then
23306     GUILD_TARGET_FLAG=
23307   else
23308     GUILD_TARGET_FLAG="--target=$host"
23309   fi
23310
23311
23312
23313
23314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
23315 $as_echo_n "checking whether guild supports this host... " >&6; }
23316 if ${ac_cv_guild_ok+:} false; then :
23317   $as_echo_n "(cached) " >&6
23318 else
23319   echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
23320      if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
23321        ac_cv_guild_ok=yes
23322      else
23323        ac_cv_guild_ok=no
23324      fi
23325 fi
23326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
23327 $as_echo "$ac_cv_guild_ok" >&6; }
23328
23329     if test "$ac_cv_guild_ok" = no; then
23330     have_libguile=no
23331     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
23332 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
23333   fi
23334 fi
23335
23336 if test "${have_libguile}" != no; then
23337
23338 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
23339
23340   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
23341   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
23342   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
23343   CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
23344   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
23345
23346     save_LIBS="$LIBS"
23347   save_CPPFLAGS="$CPPFLAGS"
23348   LIBS="$GUILE_LIBS"
23349   CPPFLAGS="$GUILE_CPPFLAGS"
23350   for ac_func in scm_new_smob
23351 do :
23352   ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
23353 if test "x$ac_cv_func_scm_new_smob" = xyes; then :
23354   cat >>confdefs.h <<_ACEOF
23355 #define HAVE_SCM_NEW_SMOB 1
23356 _ACEOF
23357
23358 fi
23359 done
23360
23361   LIBS="$save_LIBS"
23362   CPPFLAGS="$save_CPPFLAGS"
23363 else
23364   # Even if Guile support is not compiled in, we need to have these files
23365   # included.
23366   CONFIG_OBS="$CONFIG_OBS guile/guile.o"
23367   CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
23368 fi
23369
23370
23371  if test "${have_libguile}" != no; then
23372   HAVE_GUILE_TRUE=
23373   HAVE_GUILE_FALSE='#'
23374 else
23375   HAVE_GUILE_TRUE='#'
23376   HAVE_GUILE_FALSE=
23377 fi
23378
23379
23380 # ---------------------------- #
23381 # Check for source highlight.  #
23382 # ---------------------------- #
23383
23384 SRCHIGH_LIBS=
23385 SRCHIGH_CFLAGS=
23386
23387 # Check whether --enable-source-highlight was given.
23388 if test "${enable_source_highlight+set}" = set; then :
23389   enableval=$enable_source_highlight;
23390            case $enableval in
23391              yes | no | auto)
23392                ;;
23393              *)
23394                as_fn_error $? "bad value $enableval for --enable-source-highlight" "$LINENO" 5
23395                ;;
23396            esac
23397
23398 else
23399   enable_source_highlight=auto
23400 fi
23401
23402
23403 if test "${enable_source_highlight}" != "no"; then
23404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
23405 $as_echo_n "checking for the source-highlight library... " >&6; }
23406   if test "${pkg_config_prog_path}" = "missing"; then
23407     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
23408 $as_echo "no - pkg-config not found" >&6; }
23409     if test "${enable_source_highlight}" = "yes"; then
23410       as_fn_error $? "pkg-config was not found in your system" "$LINENO" 5
23411     fi
23412   else
23413     if ${pkg_config_prog_path} --exists source-highlight; then
23414       case "$LDFLAGS" in
23415         *static-libstdc*)
23416           as_fn_error $? "source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
23417           ;;
23418       esac
23419
23420       srchigh_pkg_cflags=`${pkg_config_prog_path} --cflags source-highlight`
23421       srchigh_pkg_libs=`${pkg_config_prog_path} --libs source-highlight`
23422
23423       # Now that we have found a source-highlight library, check if we can use
23424       # it.  In particular, we're trying to detect the situation that the
23425       # library is using the new libstdc++ library abi ( see
23426       # https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html )
23427       # while the compiler being used to compile gdb is using the old abi.
23428       # Such a situation will result in an undefined reference to
23429       # srchilite::SourceHighlight::SourceHighlight(std::string const&).
23430       # This situation can occur for instance when using a source highlight
23431       # library compiled with g++ 7.5.0 while building gdb with g++ 4.8.5.
23432       ac_ext=cpp
23433 ac_cpp='$CXXCPP $CPPFLAGS'
23434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23437
23438       save_CXXFLAGS="$CXXFLAGS"
23439       save_LIBS="$LIBS"
23440       CXXFLAGS="$CXXFLAGS $srchigh_pkg_cflags"
23441       LIBS="$LIBS $srchigh_pkg_libs"
23442       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23443 /* end confdefs.h.  */
23444 #include <srchilite/sourcehighlight.h>
23445 int
23446 main ()
23447 {
23448 std::string outlang = "esc.outlang";
23449            new srchilite::SourceHighlight (outlang);
23450
23451   ;
23452   return 0;
23453 }
23454 _ACEOF
23455 if ac_fn_cxx_try_link "$LINENO"; then :
23456   have_usable_source_highlight=yes
23457 else
23458   have_usable_source_highlight=no
23459
23460 fi
23461 rm -f core conftest.err conftest.$ac_objext \
23462     conftest$ac_exeext conftest.$ac_ext
23463       CXXFLAGS="$save_CXXFLAGS"
23464       LIBS="$save_LIBS"
23465       ac_ext=c
23466 ac_cpp='$CPP $CPPFLAGS'
23467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23470
23471
23472       if test "${have_usable_source_highlight}" = "yes"; then
23473
23474 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
23475
23476         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23477 $as_echo "yes" >&6; }
23478         SRCHIGH_CFLAGS="$srchigh_pkg_cflags"
23479         SRCHIGH_LIBS="$srchigh_pkg_libs"
23480       else
23481         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23482 $as_echo "no" >&6; }
23483         if test "${enable_source_highlight}" = "yes"; then
23484           as_fn_error $? "source-highlight in your system could not be used" "$LINENO" 5
23485         fi
23486       fi
23487     else
23488       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23489 $as_echo "no" >&6; }
23490       if test "${enable_source_highlight}" = "yes"; then
23491         as_fn_error $? "source-highlight was not found in your system" "$LINENO" 5
23492       fi
23493     fi
23494   fi
23495 fi
23496
23497
23498
23499 # ------------------------- #
23500 # Checks for header files.  #
23501 # ------------------------- #
23502
23503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
23504 $as_echo_n "checking for ANSI C header files... " >&6; }
23505 if ${ac_cv_header_stdc+:} false; then :
23506   $as_echo_n "(cached) " >&6
23507 else
23508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23509 /* end confdefs.h.  */
23510 #include <stdlib.h>
23511 #include <stdarg.h>
23512 #include <string.h>
23513 #include <float.h>
23514
23515 int
23516 main ()
23517 {
23518
23519   ;
23520   return 0;
23521 }
23522 _ACEOF
23523 if ac_fn_c_try_compile "$LINENO"; then :
23524   ac_cv_header_stdc=yes
23525 else
23526   ac_cv_header_stdc=no
23527 fi
23528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23529
23530 if test $ac_cv_header_stdc = yes; then
23531   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23533 /* end confdefs.h.  */
23534 #include <string.h>
23535
23536 _ACEOF
23537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23538   $EGREP "memchr" >/dev/null 2>&1; then :
23539
23540 else
23541   ac_cv_header_stdc=no
23542 fi
23543 rm -f conftest*
23544
23545 fi
23546
23547 if test $ac_cv_header_stdc = yes; then
23548   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23550 /* end confdefs.h.  */
23551 #include <stdlib.h>
23552
23553 _ACEOF
23554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23555   $EGREP "free" >/dev/null 2>&1; then :
23556
23557 else
23558   ac_cv_header_stdc=no
23559 fi
23560 rm -f conftest*
23561
23562 fi
23563
23564 if test $ac_cv_header_stdc = yes; then
23565   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23566   if test "$cross_compiling" = yes; then :
23567   :
23568 else
23569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23570 /* end confdefs.h.  */
23571 #include <ctype.h>
23572 #include <stdlib.h>
23573 #if ((' ' & 0x0FF) == 0x020)
23574 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23575 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23576 #else
23577 # define ISLOWER(c) \
23578                    (('a' <= (c) && (c) <= 'i') \
23579                      || ('j' <= (c) && (c) <= 'r') \
23580                      || ('s' <= (c) && (c) <= 'z'))
23581 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23582 #endif
23583
23584 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23585 int
23586 main ()
23587 {
23588   int i;
23589   for (i = 0; i < 256; i++)
23590     if (XOR (islower (i), ISLOWER (i))
23591         || toupper (i) != TOUPPER (i))
23592       return 2;
23593   return 0;
23594 }
23595 _ACEOF
23596 if ac_fn_c_try_run "$LINENO"; then :
23597
23598 else
23599   ac_cv_header_stdc=no
23600 fi
23601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23602   conftest.$ac_objext conftest.beam conftest.$ac_ext
23603 fi
23604
23605 fi
23606 fi
23607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
23608 $as_echo "$ac_cv_header_stdc" >&6; }
23609 if test $ac_cv_header_stdc = yes; then
23610
23611 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
23612
23613 fi
23614
23615 # elf_hp.h is for HP/UX 64-bit shared library support.
23616 for ac_header in nlist.h machine/reg.h \
23617                   thread_db.h \
23618                   sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
23619                   sys/procctl.h sys/resource.h sys/ptrace.h ptrace.h \
23620                   sys/reg.h sys/debugreg.h \
23621                   termios.h elf_hp.h
23622 do :
23623   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23624 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23625 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23626   cat >>confdefs.h <<_ACEOF
23627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23628 _ACEOF
23629
23630 fi
23631
23632 done
23633
23634 for ac_header in sys/user.h
23635 do :
23636   ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
23637 # include <sys/param.h>
23638 #endif
23639
23640 "
23641 if test "x$ac_cv_header_sys_user_h" = xyes; then :
23642   cat >>confdefs.h <<_ACEOF
23643 #define HAVE_SYS_USER_H 1
23644 _ACEOF
23645
23646 fi
23647
23648 done
23649
23650
23651 for ac_header in curses.h cursesX.h ncurses.h ncursesw/ncurses.h ncurses/ncurses.h ncurses/term.h
23652 do :
23653   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23654 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23655 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23656   cat >>confdefs.h <<_ACEOF
23657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23658 _ACEOF
23659
23660 fi
23661
23662 done
23663
23664 for ac_header in term.h
23665 do :
23666   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
23667 # include <curses.h>
23668 #endif
23669
23670 "
23671 if test "x$ac_cv_header_term_h" = xyes; then :
23672   cat >>confdefs.h <<_ACEOF
23673 #define HAVE_TERM_H 1
23674 _ACEOF
23675
23676 fi
23677
23678 done
23679
23680
23681 for ac_header in sys/socket.h
23682 do :
23683   ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
23684 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
23685   cat >>confdefs.h <<_ACEOF
23686 #define HAVE_SYS_SOCKET_H 1
23687 _ACEOF
23688
23689 fi
23690
23691 done
23692
23693 for ac_header in ws2tcpip.h
23694 do :
23695   ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
23696 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
23697   cat >>confdefs.h <<_ACEOF
23698 #define HAVE_WS2TCPIP_H 1
23699 _ACEOF
23700
23701 fi
23702
23703 done
23704
23705 for ac_header in execinfo.h
23706 do :
23707   ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
23708 if test "x$ac_cv_header_execinfo_h" = xyes; then :
23709   cat >>confdefs.h <<_ACEOF
23710 #define HAVE_EXECINFO_H 1
23711 _ACEOF
23712
23713 fi
23714
23715 done
23716
23717
23718 # ------------------------- #
23719 # Checks for declarations.  #
23720 # ------------------------- #
23721
23722
23723   # Check for presence and size of long long.
23724   ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
23725 if test "x$ac_cv_type_long_long" = xyes; then :
23726
23727 cat >>confdefs.h <<_ACEOF
23728 #define HAVE_LONG_LONG 1
23729 _ACEOF
23730
23731 # The cast to long int works around a bug in the HP C Compiler
23732 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23733 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23734 # This bug is HP SR number 8606223364.
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
23736 $as_echo_n "checking size of long long... " >&6; }
23737 if ${ac_cv_sizeof_long_long+:} false; then :
23738   $as_echo_n "(cached) " >&6
23739 else
23740   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
23741
23742 else
23743   if test "$ac_cv_type_long_long" = yes; then
23744      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23746 as_fn_error 77 "cannot compute sizeof (long long)
23747 See \`config.log' for more details" "$LINENO" 5; }
23748    else
23749      ac_cv_sizeof_long_long=0
23750    fi
23751 fi
23752
23753 fi
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
23755 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23756
23757
23758
23759 cat >>confdefs.h <<_ACEOF
23760 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23761 _ACEOF
23762
23763
23764 fi
23765
23766
23767   as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
23768 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
23769 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
23770   ac_have_decl=1
23771 else
23772   ac_have_decl=0
23773 fi
23774
23775 cat >>confdefs.h <<_ACEOF
23776 #define HAVE_DECL_BASENAME $ac_have_decl
23777 _ACEOF
23778 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
23779 if test "x$ac_cv_have_decl_ffs" = xyes; then :
23780   ac_have_decl=1
23781 else
23782   ac_have_decl=0
23783 fi
23784
23785 cat >>confdefs.h <<_ACEOF
23786 #define HAVE_DECL_FFS $ac_have_decl
23787 _ACEOF
23788 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
23789 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
23790   ac_have_decl=1
23791 else
23792   ac_have_decl=0
23793 fi
23794
23795 cat >>confdefs.h <<_ACEOF
23796 #define HAVE_DECL_ASPRINTF $ac_have_decl
23797 _ACEOF
23798 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
23799 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
23800   ac_have_decl=1
23801 else
23802   ac_have_decl=0
23803 fi
23804
23805 cat >>confdefs.h <<_ACEOF
23806 #define HAVE_DECL_VASPRINTF $ac_have_decl
23807 _ACEOF
23808 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
23809 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
23810   ac_have_decl=1
23811 else
23812   ac_have_decl=0
23813 fi
23814
23815 cat >>confdefs.h <<_ACEOF
23816 #define HAVE_DECL_SNPRINTF $ac_have_decl
23817 _ACEOF
23818 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
23819 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
23820   ac_have_decl=1
23821 else
23822   ac_have_decl=0
23823 fi
23824
23825 cat >>confdefs.h <<_ACEOF
23826 #define HAVE_DECL_VSNPRINTF $ac_have_decl
23827 _ACEOF
23828
23829   ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
23830 if test "x$ac_cv_have_decl_strtol" = xyes; then :
23831   ac_have_decl=1
23832 else
23833   ac_have_decl=0
23834 fi
23835
23836 cat >>confdefs.h <<_ACEOF
23837 #define HAVE_DECL_STRTOL $ac_have_decl
23838 _ACEOF
23839 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
23840 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
23841   ac_have_decl=1
23842 else
23843   ac_have_decl=0
23844 fi
23845
23846 cat >>confdefs.h <<_ACEOF
23847 #define HAVE_DECL_STRTOUL $ac_have_decl
23848 _ACEOF
23849 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
23850 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
23851   ac_have_decl=1
23852 else
23853   ac_have_decl=0
23854 fi
23855
23856 cat >>confdefs.h <<_ACEOF
23857 #define HAVE_DECL_STRTOLL $ac_have_decl
23858 _ACEOF
23859 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
23860 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
23861   ac_have_decl=1
23862 else
23863   ac_have_decl=0
23864 fi
23865
23866 cat >>confdefs.h <<_ACEOF
23867 #define HAVE_DECL_STRTOULL $ac_have_decl
23868 _ACEOF
23869
23870   ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
23871 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
23872   ac_have_decl=1
23873 else
23874   ac_have_decl=0
23875 fi
23876
23877 cat >>confdefs.h <<_ACEOF
23878 #define HAVE_DECL_STRVERSCMP $ac_have_decl
23879 _ACEOF
23880
23881
23882
23883 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
23884 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
23885   ac_have_decl=1
23886 else
23887   ac_have_decl=0
23888 fi
23889
23890 cat >>confdefs.h <<_ACEOF
23891 #define HAVE_DECL_SNPRINTF $ac_have_decl
23892 _ACEOF
23893
23894
23895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
23896 $as_echo_n "checking for LC_MESSAGES... " >&6; }
23897 if ${am_cv_val_LC_MESSAGES+:} false; then :
23898   $as_echo_n "(cached) " >&6
23899 else
23900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23901 /* end confdefs.h.  */
23902 #include <locale.h>
23903 int
23904 main ()
23905 {
23906 return LC_MESSAGES
23907   ;
23908   return 0;
23909 }
23910 _ACEOF
23911 if ac_fn_c_try_link "$LINENO"; then :
23912   am_cv_val_LC_MESSAGES=yes
23913 else
23914   am_cv_val_LC_MESSAGES=no
23915 fi
23916 rm -f core conftest.err conftest.$ac_objext \
23917     conftest$ac_exeext conftest.$ac_ext
23918 fi
23919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
23920 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
23921   if test $am_cv_val_LC_MESSAGES = yes; then
23922
23923 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
23924
23925   fi
23926
23927
23928 # ------------------ #
23929 # Checks for types.  #
23930 # ------------------ #
23931
23932 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
23933 #if HAVE_SYS_SOCKET_H
23934 # include <sys/socket.h>
23935 #elif HAVE_WS2TCPIP_H
23936 # include <ws2tcpip.h>
23937 #endif
23938
23939 "
23940 if test "x$ac_cv_type_socklen_t" = xyes; then :
23941
23942 cat >>confdefs.h <<_ACEOF
23943 #define HAVE_SOCKLEN_T 1
23944 _ACEOF
23945
23946
23947 fi
23948
23949
23950 # ------------------------------------- #
23951 # Checks for compiler characteristics.  #
23952 # ------------------------------------- #
23953
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23955 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23956 if ${ac_cv_c_const+:} false; then :
23957   $as_echo_n "(cached) " >&6
23958 else
23959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23960 /* end confdefs.h.  */
23961
23962 int
23963 main ()
23964 {
23965
23966 #ifndef __cplusplus
23967   /* Ultrix mips cc rejects this sort of thing.  */
23968   typedef int charset[2];
23969   const charset cs = { 0, 0 };
23970   /* SunOS 4.1.1 cc rejects this.  */
23971   char const *const *pcpcc;
23972   char **ppc;
23973   /* NEC SVR4.0.2 mips cc rejects this.  */
23974   struct point {int x, y;};
23975   static struct point const zero = {0,0};
23976   /* AIX XL C 1.02.0.0 rejects this.
23977      It does not let you subtract one const X* pointer from another in
23978      an arm of an if-expression whose if-part is not a constant
23979      expression */
23980   const char *g = "string";
23981   pcpcc = &g + (g ? g-g : 0);
23982   /* HPUX 7.0 cc rejects these. */
23983   ++pcpcc;
23984   ppc = (char**) pcpcc;
23985   pcpcc = (char const *const *) ppc;
23986   { /* SCO 3.2v4 cc rejects this sort of thing.  */
23987     char tx;
23988     char *t = &tx;
23989     char const *s = 0 ? (char *) 0 : (char const *) 0;
23990
23991     *t++ = 0;
23992     if (s) return 0;
23993   }
23994   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23995     int x[] = {25, 17};
23996     const int *foo = &x[0];
23997     ++foo;
23998   }
23999   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24000     typedef const int *iptr;
24001     iptr p = 0;
24002     ++p;
24003   }
24004   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
24005        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24006     struct s { int j; const int *ap[3]; } bx;
24007     struct s *b = &bx; b->j = 5;
24008   }
24009   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24010     const int foo = 10;
24011     if (!foo) return 0;
24012   }
24013   return !cs[0] && !zero.x;
24014 #endif
24015
24016   ;
24017   return 0;
24018 }
24019 _ACEOF
24020 if ac_fn_c_try_compile "$LINENO"; then :
24021   ac_cv_c_const=yes
24022 else
24023   ac_cv_c_const=no
24024 fi
24025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24026 fi
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
24028 $as_echo "$ac_cv_c_const" >&6; }
24029 if test $ac_cv_c_const = no; then
24030
24031 $as_echo "#define const /**/" >>confdefs.h
24032
24033 fi
24034
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
24036 $as_echo_n "checking for inline... " >&6; }
24037 if ${ac_cv_c_inline+:} false; then :
24038   $as_echo_n "(cached) " >&6
24039 else
24040   ac_cv_c_inline=no
24041 for ac_kw in inline __inline__ __inline; do
24042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24043 /* end confdefs.h.  */
24044 #ifndef __cplusplus
24045 typedef int foo_t;
24046 static $ac_kw foo_t static_foo () {return 0; }
24047 $ac_kw foo_t foo () {return 0; }
24048 #endif
24049
24050 _ACEOF
24051 if ac_fn_c_try_compile "$LINENO"; then :
24052   ac_cv_c_inline=$ac_kw
24053 fi
24054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24055   test "$ac_cv_c_inline" != no && break
24056 done
24057
24058 fi
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
24060 $as_echo "$ac_cv_c_inline" >&6; }
24061
24062 case $ac_cv_c_inline in
24063   inline | yes) ;;
24064   *)
24065     case $ac_cv_c_inline in
24066       no) ac_val=;;
24067       *) ac_val=$ac_cv_c_inline;;
24068     esac
24069     cat >>confdefs.h <<_ACEOF
24070 #ifndef __cplusplus
24071 #define inline $ac_val
24072 #endif
24073 _ACEOF
24074     ;;
24075 esac
24076
24077  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
24078 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
24079 if ${ac_cv_c_bigendian+:} false; then :
24080   $as_echo_n "(cached) " >&6
24081 else
24082   ac_cv_c_bigendian=unknown
24083     # See if we're dealing with a universal compiler.
24084     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24085 /* end confdefs.h.  */
24086 #ifndef __APPLE_CC__
24087                not a universal capable compiler
24088              #endif
24089              typedef int dummy;
24090
24091 _ACEOF
24092 if ac_fn_c_try_compile "$LINENO"; then :
24093
24094         # Check for potential -arch flags.  It is not universal unless
24095         # there are at least two -arch flags with different values.
24096         ac_arch=
24097         ac_prev=
24098         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
24099          if test -n "$ac_prev"; then
24100            case $ac_word in
24101              i?86 | x86_64 | ppc | ppc64)
24102                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
24103                  ac_arch=$ac_word
24104                else
24105                  ac_cv_c_bigendian=universal
24106                  break
24107                fi
24108                ;;
24109            esac
24110            ac_prev=
24111          elif test "x$ac_word" = "x-arch"; then
24112            ac_prev=arch
24113          fi
24114        done
24115 fi
24116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24117     if test $ac_cv_c_bigendian = unknown; then
24118       # See if sys/param.h defines the BYTE_ORDER macro.
24119       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24120 /* end confdefs.h.  */
24121 #include <sys/types.h>
24122              #include <sys/param.h>
24123
24124 int
24125 main ()
24126 {
24127 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
24128                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
24129                      && LITTLE_ENDIAN)
24130               bogus endian macros
24131              #endif
24132
24133   ;
24134   return 0;
24135 }
24136 _ACEOF
24137 if ac_fn_c_try_compile "$LINENO"; then :
24138   # It does; now see whether it defined to BIG_ENDIAN or not.
24139          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24140 /* end confdefs.h.  */
24141 #include <sys/types.h>
24142                 #include <sys/param.h>
24143
24144 int
24145 main ()
24146 {
24147 #if BYTE_ORDER != BIG_ENDIAN
24148                  not big endian
24149                 #endif
24150
24151   ;
24152   return 0;
24153 }
24154 _ACEOF
24155 if ac_fn_c_try_compile "$LINENO"; then :
24156   ac_cv_c_bigendian=yes
24157 else
24158   ac_cv_c_bigendian=no
24159 fi
24160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24161 fi
24162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24163     fi
24164     if test $ac_cv_c_bigendian = unknown; then
24165       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24166       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24167 /* end confdefs.h.  */
24168 #include <limits.h>
24169
24170 int
24171 main ()
24172 {
24173 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24174               bogus endian macros
24175              #endif
24176
24177   ;
24178   return 0;
24179 }
24180 _ACEOF
24181 if ac_fn_c_try_compile "$LINENO"; then :
24182   # It does; now see whether it defined to _BIG_ENDIAN or not.
24183          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24184 /* end confdefs.h.  */
24185 #include <limits.h>
24186
24187 int
24188 main ()
24189 {
24190 #ifndef _BIG_ENDIAN
24191                  not big endian
24192                 #endif
24193
24194   ;
24195   return 0;
24196 }
24197 _ACEOF
24198 if ac_fn_c_try_compile "$LINENO"; then :
24199   ac_cv_c_bigendian=yes
24200 else
24201   ac_cv_c_bigendian=no
24202 fi
24203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24204 fi
24205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24206     fi
24207     if test $ac_cv_c_bigendian = unknown; then
24208       # Compile a test program.
24209       if test "$cross_compiling" = yes; then :
24210   # Try to guess by grepping values from an object file.
24211          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24212 /* end confdefs.h.  */
24213 short int ascii_mm[] =
24214                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24215                 short int ascii_ii[] =
24216                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24217                 int use_ascii (int i) {
24218                   return ascii_mm[i] + ascii_ii[i];
24219                 }
24220                 short int ebcdic_ii[] =
24221                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24222                 short int ebcdic_mm[] =
24223                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24224                 int use_ebcdic (int i) {
24225                   return ebcdic_mm[i] + ebcdic_ii[i];
24226                 }
24227                 extern int foo;
24228
24229 int
24230 main ()
24231 {
24232 return use_ascii (foo) == use_ebcdic (foo);
24233   ;
24234   return 0;
24235 }
24236 _ACEOF
24237 if ac_fn_c_try_compile "$LINENO"; then :
24238   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24239               ac_cv_c_bigendian=yes
24240             fi
24241             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24242               if test "$ac_cv_c_bigendian" = unknown; then
24243                 ac_cv_c_bigendian=no
24244               else
24245                 # finding both strings is unlikely to happen, but who knows?
24246                 ac_cv_c_bigendian=unknown
24247               fi
24248             fi
24249 fi
24250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24251 else
24252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24253 /* end confdefs.h.  */
24254 $ac_includes_default
24255 int
24256 main ()
24257 {
24258
24259              /* Are we little or big endian?  From Harbison&Steele.  */
24260              union
24261              {
24262                long int l;
24263                char c[sizeof (long int)];
24264              } u;
24265              u.l = 1;
24266              return u.c[sizeof (long int) - 1] == 1;
24267
24268   ;
24269   return 0;
24270 }
24271 _ACEOF
24272 if ac_fn_c_try_run "$LINENO"; then :
24273   ac_cv_c_bigendian=no
24274 else
24275   ac_cv_c_bigendian=yes
24276 fi
24277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24278   conftest.$ac_objext conftest.beam conftest.$ac_ext
24279 fi
24280
24281     fi
24282 fi
24283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
24284 $as_echo "$ac_cv_c_bigendian" >&6; }
24285  case $ac_cv_c_bigendian in #(
24286    yes)
24287      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
24288 ;; #(
24289    no)
24290       ;; #(
24291    universal)
24292
24293 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
24294
24295      ;; #(
24296    *)
24297      as_fn_error $? "unknown endianness
24298  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
24299  esac
24300
24301
24302 # ------------------------------ #
24303 # Checks for library functions.  #
24304 # ------------------------------ #
24305
24306 for ac_func in getuid getgid \
24307                 pipe pread pread64 pwrite resize_term \
24308                 getpgid setsid \
24309                 sigaction sigsetmask socketpair \
24310                 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
24311                 setrlimit getrlimit posix_madvise waitpid \
24312                 use_default_colors
24313 do :
24314   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24315 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24316 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24317   cat >>confdefs.h <<_ACEOF
24318 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24319 _ACEOF
24320
24321 fi
24322 done
24323
24324
24325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
24326 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
24327 if ${am_cv_langinfo_codeset+:} false; then :
24328   $as_echo_n "(cached) " >&6
24329 else
24330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24331 /* end confdefs.h.  */
24332 #include <langinfo.h>
24333 int
24334 main ()
24335 {
24336 char* cs = nl_langinfo(CODESET);
24337   ;
24338   return 0;
24339 }
24340 _ACEOF
24341 if ac_fn_c_try_link "$LINENO"; then :
24342   am_cv_langinfo_codeset=yes
24343 else
24344   am_cv_langinfo_codeset=no
24345 fi
24346 rm -f core conftest.err conftest.$ac_objext \
24347     conftest$ac_exeext conftest.$ac_ext
24348
24349 fi
24350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
24351 $as_echo "$am_cv_langinfo_codeset" >&6; }
24352   if test $am_cv_langinfo_codeset = yes; then
24353
24354 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
24355
24356   fi
24357
24358 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
24359 if test "x$ac_cv_type_size_t" = xyes; then :
24360
24361 else
24362
24363 cat >>confdefs.h <<_ACEOF
24364 #define size_t unsigned int
24365 _ACEOF
24366
24367 fi
24368
24369
24370
24371
24372   for ac_header in $ac_header_list
24373 do :
24374   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24375 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24376 "
24377 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24378   cat >>confdefs.h <<_ACEOF
24379 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24380 _ACEOF
24381
24382 fi
24383
24384 done
24385
24386
24387
24388
24389
24390
24391
24392 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
24393 if test "x$ac_cv_type_pid_t" = xyes; then :
24394
24395 else
24396
24397 cat >>confdefs.h <<_ACEOF
24398 #define pid_t int
24399 _ACEOF
24400
24401 fi
24402
24403
24404   # Set the 'development' global.
24405   . $srcdir/../bfd/development.sh
24406
24407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24408 $as_echo_n "checking for ANSI C header files... " >&6; }
24409 if ${ac_cv_header_stdc+:} false; then :
24410   $as_echo_n "(cached) " >&6
24411 else
24412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24413 /* end confdefs.h.  */
24414 #include <stdlib.h>
24415 #include <stdarg.h>
24416 #include <string.h>
24417 #include <float.h>
24418
24419 int
24420 main ()
24421 {
24422
24423   ;
24424   return 0;
24425 }
24426 _ACEOF
24427 if ac_fn_c_try_compile "$LINENO"; then :
24428   ac_cv_header_stdc=yes
24429 else
24430   ac_cv_header_stdc=no
24431 fi
24432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24433
24434 if test $ac_cv_header_stdc = yes; then
24435   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24437 /* end confdefs.h.  */
24438 #include <string.h>
24439
24440 _ACEOF
24441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24442   $EGREP "memchr" >/dev/null 2>&1; then :
24443
24444 else
24445   ac_cv_header_stdc=no
24446 fi
24447 rm -f conftest*
24448
24449 fi
24450
24451 if test $ac_cv_header_stdc = yes; then
24452   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24454 /* end confdefs.h.  */
24455 #include <stdlib.h>
24456
24457 _ACEOF
24458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24459   $EGREP "free" >/dev/null 2>&1; then :
24460
24461 else
24462   ac_cv_header_stdc=no
24463 fi
24464 rm -f conftest*
24465
24466 fi
24467
24468 if test $ac_cv_header_stdc = yes; then
24469   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24470   if test "$cross_compiling" = yes; then :
24471   :
24472 else
24473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24474 /* end confdefs.h.  */
24475 #include <ctype.h>
24476 #include <stdlib.h>
24477 #if ((' ' & 0x0FF) == 0x020)
24478 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24479 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24480 #else
24481 # define ISLOWER(c) \
24482                    (('a' <= (c) && (c) <= 'i') \
24483                      || ('j' <= (c) && (c) <= 'r') \
24484                      || ('s' <= (c) && (c) <= 'z'))
24485 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24486 #endif
24487
24488 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24489 int
24490 main ()
24491 {
24492   int i;
24493   for (i = 0; i < 256; i++)
24494     if (XOR (islower (i), ISLOWER (i))
24495         || toupper (i) != TOUPPER (i))
24496       return 2;
24497   return 0;
24498 }
24499 _ACEOF
24500 if ac_fn_c_try_run "$LINENO"; then :
24501
24502 else
24503   ac_cv_header_stdc=no
24504 fi
24505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24506   conftest.$ac_objext conftest.beam conftest.$ac_ext
24507 fi
24508
24509 fi
24510 fi
24511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
24512 $as_echo "$ac_cv_header_stdc" >&6; }
24513 if test $ac_cv_header_stdc = yes; then
24514
24515 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
24516
24517 fi
24518
24519   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24520 # for constant arguments.  Useless!
24521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
24522 $as_echo_n "checking for working alloca.h... " >&6; }
24523 if ${ac_cv_working_alloca_h+:} false; then :
24524   $as_echo_n "(cached) " >&6
24525 else
24526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24527 /* end confdefs.h.  */
24528 #include <alloca.h>
24529 int
24530 main ()
24531 {
24532 char *p = (char *) alloca (2 * sizeof (int));
24533                           if (p) return 0;
24534   ;
24535   return 0;
24536 }
24537 _ACEOF
24538 if ac_fn_c_try_link "$LINENO"; then :
24539   ac_cv_working_alloca_h=yes
24540 else
24541   ac_cv_working_alloca_h=no
24542 fi
24543 rm -f core conftest.err conftest.$ac_objext \
24544     conftest$ac_exeext conftest.$ac_ext
24545 fi
24546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
24547 $as_echo "$ac_cv_working_alloca_h" >&6; }
24548 if test $ac_cv_working_alloca_h = yes; then
24549
24550 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
24551
24552 fi
24553
24554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
24555 $as_echo_n "checking for alloca... " >&6; }
24556 if ${ac_cv_func_alloca_works+:} false; then :
24557   $as_echo_n "(cached) " >&6
24558 else
24559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24560 /* end confdefs.h.  */
24561 #ifdef __GNUC__
24562 # define alloca __builtin_alloca
24563 #else
24564 # ifdef _MSC_VER
24565 #  include <malloc.h>
24566 #  define alloca _alloca
24567 # else
24568 #  ifdef HAVE_ALLOCA_H
24569 #   include <alloca.h>
24570 #  else
24571 #   ifdef _AIX
24572  #pragma alloca
24573 #   else
24574 #    ifndef alloca /* predefined by HP cc +Olibcalls */
24575 void *alloca (size_t);
24576 #    endif
24577 #   endif
24578 #  endif
24579 # endif
24580 #endif
24581
24582 int
24583 main ()
24584 {
24585 char *p = (char *) alloca (1);
24586                                     if (p) return 0;
24587   ;
24588   return 0;
24589 }
24590 _ACEOF
24591 if ac_fn_c_try_link "$LINENO"; then :
24592   ac_cv_func_alloca_works=yes
24593 else
24594   ac_cv_func_alloca_works=no
24595 fi
24596 rm -f core conftest.err conftest.$ac_objext \
24597     conftest$ac_exeext conftest.$ac_ext
24598 fi
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
24600 $as_echo "$ac_cv_func_alloca_works" >&6; }
24601
24602 if test $ac_cv_func_alloca_works = yes; then
24603
24604 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
24605
24606 else
24607   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24608 # that cause trouble.  Some versions do not even contain alloca or
24609 # contain a buggy version.  If you still want to use their alloca,
24610 # use ar to extract alloca.o from them instead of compiling alloca.c.
24611
24612 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24613
24614 $as_echo "#define C_ALLOCA 1" >>confdefs.h
24615
24616
24617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
24618 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
24619 if ${ac_cv_os_cray+:} false; then :
24620   $as_echo_n "(cached) " >&6
24621 else
24622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24623 /* end confdefs.h.  */
24624 #if defined CRAY && ! defined CRAY2
24625 webecray
24626 #else
24627 wenotbecray
24628 #endif
24629
24630 _ACEOF
24631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24632   $EGREP "webecray" >/dev/null 2>&1; then :
24633   ac_cv_os_cray=yes
24634 else
24635   ac_cv_os_cray=no
24636 fi
24637 rm -f conftest*
24638
24639 fi
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
24641 $as_echo "$ac_cv_os_cray" >&6; }
24642 if test $ac_cv_os_cray = yes; then
24643   for ac_func in _getb67 GETB67 getb67; do
24644     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24645 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24646 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24647
24648 cat >>confdefs.h <<_ACEOF
24649 #define CRAY_STACKSEG_END $ac_func
24650 _ACEOF
24651
24652     break
24653 fi
24654
24655   done
24656 fi
24657
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
24659 $as_echo_n "checking stack direction for C alloca... " >&6; }
24660 if ${ac_cv_c_stack_direction+:} false; then :
24661   $as_echo_n "(cached) " >&6
24662 else
24663   if test "$cross_compiling" = yes; then :
24664   ac_cv_c_stack_direction=0
24665 else
24666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24667 /* end confdefs.h.  */
24668 $ac_includes_default
24669 int
24670 find_stack_direction (int *addr, int depth)
24671 {
24672   int dir, dummy = 0;
24673   if (! addr)
24674     addr = &dummy;
24675   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
24676   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
24677   return dir + dummy;
24678 }
24679
24680 int
24681 main (int argc, char **argv)
24682 {
24683   return find_stack_direction (0, argc + !argv + 20) < 0;
24684 }
24685 _ACEOF
24686 if ac_fn_c_try_run "$LINENO"; then :
24687   ac_cv_c_stack_direction=1
24688 else
24689   ac_cv_c_stack_direction=-1
24690 fi
24691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24692   conftest.$ac_objext conftest.beam conftest.$ac_ext
24693 fi
24694
24695 fi
24696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
24697 $as_echo "$ac_cv_c_stack_direction" >&6; }
24698 cat >>confdefs.h <<_ACEOF
24699 #define STACK_DIRECTION $ac_cv_c_stack_direction
24700 _ACEOF
24701
24702
24703 fi
24704
24705
24706   WIN32APILIBS=
24707   case ${host} in
24708     *mingw32*)
24709
24710 $as_echo "#define USE_WIN32API 1" >>confdefs.h
24711
24712       WIN32APILIBS="-lws2_32"
24713       ;;
24714   esac
24715
24716
24717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
24718 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
24719 if ${am_cv_langinfo_codeset+:} false; then :
24720   $as_echo_n "(cached) " >&6
24721 else
24722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24723 /* end confdefs.h.  */
24724 #include <langinfo.h>
24725 int
24726 main ()
24727 {
24728 char* cs = nl_langinfo(CODESET);
24729   ;
24730   return 0;
24731 }
24732 _ACEOF
24733 if ac_fn_c_try_link "$LINENO"; then :
24734   am_cv_langinfo_codeset=yes
24735 else
24736   am_cv_langinfo_codeset=no
24737 fi
24738 rm -f core conftest.err conftest.$ac_objext \
24739     conftest$ac_exeext conftest.$ac_ext
24740
24741 fi
24742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
24743 $as_echo "$am_cv_langinfo_codeset" >&6; }
24744   if test $am_cv_langinfo_codeset = yes; then
24745
24746 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
24747
24748   fi
24749
24750
24751   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
24752 do :
24753   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24754 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24755 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24756   cat >>confdefs.h <<_ACEOF
24757 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24758 _ACEOF
24759
24760 fi
24761
24762 done
24763
24764
24765
24766 for ac_func in getpagesize
24767 do :
24768   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
24769 if test "x$ac_cv_func_getpagesize" = xyes; then :
24770   cat >>confdefs.h <<_ACEOF
24771 #define HAVE_GETPAGESIZE 1
24772 _ACEOF
24773
24774 fi
24775 done
24776
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
24778 $as_echo_n "checking for working mmap... " >&6; }
24779 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
24780   $as_echo_n "(cached) " >&6
24781 else
24782   if test "$cross_compiling" = yes; then :
24783   ac_cv_func_mmap_fixed_mapped=no
24784 else
24785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24786 /* end confdefs.h.  */
24787 $ac_includes_default
24788 /* malloc might have been renamed as rpl_malloc. */
24789 #undef malloc
24790
24791 /* Thanks to Mike Haertel and Jim Avera for this test.
24792    Here is a matrix of mmap possibilities:
24793         mmap private not fixed
24794         mmap private fixed at somewhere currently unmapped
24795         mmap private fixed at somewhere already mapped
24796         mmap shared not fixed
24797         mmap shared fixed at somewhere currently unmapped
24798         mmap shared fixed at somewhere already mapped
24799    For private mappings, we should verify that changes cannot be read()
24800    back from the file, nor mmap's back from the file at a different
24801    address.  (There have been systems where private was not correctly
24802    implemented like the infamous i386 svr4.0, and systems where the
24803    VM page cache was not coherent with the file system buffer cache
24804    like early versions of FreeBSD and possibly contemporary NetBSD.)
24805    For shared mappings, we should conversely verify that changes get
24806    propagated back to all the places they're supposed to be.
24807
24808    Grep wants private fixed already mapped.
24809    The main things grep needs to know about mmap are:
24810    * does it exist and is it safe to write into the mmap'd area
24811    * how to use it (BSD variants)  */
24812
24813 #include <fcntl.h>
24814 #include <sys/mman.h>
24815
24816 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24817 char *malloc ();
24818 #endif
24819
24820 /* This mess was copied from the GNU getpagesize.h.  */
24821 #ifndef HAVE_GETPAGESIZE
24822 # ifdef _SC_PAGESIZE
24823 #  define getpagesize() sysconf(_SC_PAGESIZE)
24824 # else /* no _SC_PAGESIZE */
24825 #  ifdef HAVE_SYS_PARAM_H
24826 #   include <sys/param.h>
24827 #   ifdef EXEC_PAGESIZE
24828 #    define getpagesize() EXEC_PAGESIZE
24829 #   else /* no EXEC_PAGESIZE */
24830 #    ifdef NBPG
24831 #     define getpagesize() NBPG * CLSIZE
24832 #     ifndef CLSIZE
24833 #      define CLSIZE 1
24834 #     endif /* no CLSIZE */
24835 #    else /* no NBPG */
24836 #     ifdef NBPC
24837 #      define getpagesize() NBPC
24838 #     else /* no NBPC */
24839 #      ifdef PAGESIZE
24840 #       define getpagesize() PAGESIZE
24841 #      endif /* PAGESIZE */
24842 #     endif /* no NBPC */
24843 #    endif /* no NBPG */
24844 #   endif /* no EXEC_PAGESIZE */
24845 #  else /* no HAVE_SYS_PARAM_H */
24846 #   define getpagesize() 8192   /* punt totally */
24847 #  endif /* no HAVE_SYS_PARAM_H */
24848 # endif /* no _SC_PAGESIZE */
24849
24850 #endif /* no HAVE_GETPAGESIZE */
24851
24852 int
24853 main ()
24854 {
24855   char *data, *data2, *data3;
24856   const char *cdata2;
24857   int i, pagesize;
24858   int fd, fd2;
24859
24860   pagesize = getpagesize ();
24861
24862   /* First, make a file with some known garbage in it. */
24863   data = (char *) malloc (pagesize);
24864   if (!data)
24865     return 1;
24866   for (i = 0; i < pagesize; ++i)
24867     *(data + i) = rand ();
24868   umask (0);
24869   fd = creat ("conftest.mmap", 0600);
24870   if (fd < 0)
24871     return 2;
24872   if (write (fd, data, pagesize) != pagesize)
24873     return 3;
24874   close (fd);
24875
24876   /* Next, check that the tail of a page is zero-filled.  File must have
24877      non-zero length, otherwise we risk SIGBUS for entire page.  */
24878   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24879   if (fd2 < 0)
24880     return 4;
24881   cdata2 = "";
24882   if (write (fd2, cdata2, 1) != 1)
24883     return 5;
24884   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
24885   if (data2 == MAP_FAILED)
24886     return 6;
24887   for (i = 0; i < pagesize; ++i)
24888     if (*(data2 + i))
24889       return 7;
24890   close (fd2);
24891   if (munmap (data2, pagesize))
24892     return 8;
24893
24894   /* Next, try to mmap the file at a fixed address which already has
24895      something else allocated at it.  If we can, also make sure that
24896      we see the same garbage.  */
24897   fd = open ("conftest.mmap", O_RDWR);
24898   if (fd < 0)
24899     return 9;
24900   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24901                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
24902     return 10;
24903   for (i = 0; i < pagesize; ++i)
24904     if (*(data + i) != *(data2 + i))
24905       return 11;
24906
24907   /* Finally, make sure that changes to the mapped area do not
24908      percolate back to the file as seen by read().  (This is a bug on
24909      some variants of i386 svr4.0.)  */
24910   for (i = 0; i < pagesize; ++i)
24911     *(data2 + i) = *(data2 + i) + 1;
24912   data3 = (char *) malloc (pagesize);
24913   if (!data3)
24914     return 12;
24915   if (read (fd, data3, pagesize) != pagesize)
24916     return 13;
24917   for (i = 0; i < pagesize; ++i)
24918     if (*(data + i) != *(data3 + i))
24919       return 14;
24920   close (fd);
24921   return 0;
24922 }
24923 _ACEOF
24924 if ac_fn_c_try_run "$LINENO"; then :
24925   ac_cv_func_mmap_fixed_mapped=yes
24926 else
24927   ac_cv_func_mmap_fixed_mapped=no
24928 fi
24929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24930   conftest.$ac_objext conftest.beam conftest.$ac_ext
24931 fi
24932
24933 fi
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
24935 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24936 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24937
24938 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
24939
24940 fi
24941 rm -f conftest.mmap conftest.txt
24942
24943   for ac_header in vfork.h
24944 do :
24945   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24946 if test "x$ac_cv_header_vfork_h" = xyes; then :
24947   cat >>confdefs.h <<_ACEOF
24948 #define HAVE_VFORK_H 1
24949 _ACEOF
24950
24951 fi
24952
24953 done
24954
24955 for ac_func in fork vfork
24956 do :
24957   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24958 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24959 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24960   cat >>confdefs.h <<_ACEOF
24961 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24962 _ACEOF
24963
24964 fi
24965 done
24966
24967 if test "x$ac_cv_func_fork" = xyes; then
24968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24969 $as_echo_n "checking for working fork... " >&6; }
24970 if ${ac_cv_func_fork_works+:} false; then :
24971   $as_echo_n "(cached) " >&6
24972 else
24973   if test "$cross_compiling" = yes; then :
24974   ac_cv_func_fork_works=cross
24975 else
24976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24977 /* end confdefs.h.  */
24978 $ac_includes_default
24979 int
24980 main ()
24981 {
24982
24983           /* By Ruediger Kuhlmann. */
24984           return fork () < 0;
24985
24986   ;
24987   return 0;
24988 }
24989 _ACEOF
24990 if ac_fn_c_try_run "$LINENO"; then :
24991   ac_cv_func_fork_works=yes
24992 else
24993   ac_cv_func_fork_works=no
24994 fi
24995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24996   conftest.$ac_objext conftest.beam conftest.$ac_ext
24997 fi
24998
24999 fi
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
25001 $as_echo "$ac_cv_func_fork_works" >&6; }
25002
25003 else
25004   ac_cv_func_fork_works=$ac_cv_func_fork
25005 fi
25006 if test "x$ac_cv_func_fork_works" = xcross; then
25007   case $host in
25008     *-*-amigaos* | *-*-msdosdjgpp*)
25009       # Override, as these systems have only a dummy fork() stub
25010       ac_cv_func_fork_works=no
25011       ;;
25012     *)
25013       ac_cv_func_fork_works=yes
25014       ;;
25015   esac
25016   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25017 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25018 fi
25019 ac_cv_func_vfork_works=$ac_cv_func_vfork
25020 if test "x$ac_cv_func_vfork" = xyes; then
25021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
25022 $as_echo_n "checking for working vfork... " >&6; }
25023 if ${ac_cv_func_vfork_works+:} false; then :
25024   $as_echo_n "(cached) " >&6
25025 else
25026   if test "$cross_compiling" = yes; then :
25027   ac_cv_func_vfork_works=cross
25028 else
25029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25030 /* end confdefs.h.  */
25031 /* Thanks to Paul Eggert for this test.  */
25032 $ac_includes_default
25033 #include <sys/wait.h>
25034 #ifdef HAVE_VFORK_H
25035 # include <vfork.h>
25036 #endif
25037 /* On some sparc systems, changes by the child to local and incoming
25038    argument registers are propagated back to the parent.  The compiler
25039    is told about this with #include <vfork.h>, but some compilers
25040    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
25041    static variable whose address is put into a register that is
25042    clobbered by the vfork.  */
25043 static void
25044 #ifdef __cplusplus
25045 sparc_address_test (int arg)
25046 # else
25047 sparc_address_test (arg) int arg;
25048 #endif
25049 {
25050   static pid_t child;
25051   if (!child) {
25052     child = vfork ();
25053     if (child < 0) {
25054       perror ("vfork");
25055       _exit(2);
25056     }
25057     if (!child) {
25058       arg = getpid();
25059       write(-1, "", 0);
25060       _exit (arg);
25061     }
25062   }
25063 }
25064
25065 int
25066 main ()
25067 {
25068   pid_t parent = getpid ();
25069   pid_t child;
25070
25071   sparc_address_test (0);
25072
25073   child = vfork ();
25074
25075   if (child == 0) {
25076     /* Here is another test for sparc vfork register problems.  This
25077        test uses lots of local variables, at least as many local
25078        variables as main has allocated so far including compiler
25079        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
25080        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
25081        reuse the register of parent for one of the local variables,
25082        since it will think that parent can't possibly be used any more
25083        in this routine.  Assigning to the local variable will thus
25084        munge parent in the parent process.  */
25085     pid_t
25086       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25087       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25088     /* Convince the compiler that p..p7 are live; otherwise, it might
25089        use the same hardware register for all 8 local variables.  */
25090     if (p != p1 || p != p2 || p != p3 || p != p4
25091         || p != p5 || p != p6 || p != p7)
25092       _exit(1);
25093
25094     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25095        from child file descriptors.  If the child closes a descriptor
25096        before it execs or exits, this munges the parent's descriptor
25097        as well.  Test for this by closing stdout in the child.  */
25098     _exit(close(fileno(stdout)) != 0);
25099   } else {
25100     int status;
25101     struct stat st;
25102
25103     while (wait(&status) != child)
25104       ;
25105     return (
25106          /* Was there some problem with vforking?  */
25107          child < 0
25108
25109          /* Did the child fail?  (This shouldn't happen.)  */
25110          || status
25111
25112          /* Did the vfork/compiler bug occur?  */
25113          || parent != getpid()
25114
25115          /* Did the file descriptor bug occur?  */
25116          || fstat(fileno(stdout), &st) != 0
25117          );
25118   }
25119 }
25120 _ACEOF
25121 if ac_fn_c_try_run "$LINENO"; then :
25122   ac_cv_func_vfork_works=yes
25123 else
25124   ac_cv_func_vfork_works=no
25125 fi
25126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25127   conftest.$ac_objext conftest.beam conftest.$ac_ext
25128 fi
25129
25130 fi
25131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
25132 $as_echo "$ac_cv_func_vfork_works" >&6; }
25133
25134 fi;
25135 if test "x$ac_cv_func_fork_works" = xcross; then
25136   ac_cv_func_vfork_works=$ac_cv_func_vfork
25137   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25138 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25139 fi
25140
25141 if test "x$ac_cv_func_vfork_works" = xyes; then
25142
25143 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
25144
25145 else
25146
25147 $as_echo "#define vfork fork" >>confdefs.h
25148
25149 fi
25150 if test "x$ac_cv_func_fork_works" = xyes; then
25151
25152 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
25153
25154 fi
25155
25156   for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
25157                   ptrace64 sbrk setns sigaltstack sigprocmask \
25158                   setpgid setpgrp getrusage getauxval sigtimedwait
25159 do :
25160   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25161 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25162 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25163   cat >>confdefs.h <<_ACEOF
25164 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25165 _ACEOF
25166
25167 fi
25168 done
25169
25170
25171   # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
25172   # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
25173   # only in linux/personality.h.
25174   ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
25175 "
25176 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
25177   ac_have_decl=1
25178 else
25179   ac_have_decl=0
25180 fi
25181
25182 cat >>confdefs.h <<_ACEOF
25183 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
25184 _ACEOF
25185
25186
25187   ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
25188 if test "x$ac_cv_have_decl_strstr" = xyes; then :
25189   ac_have_decl=1
25190 else
25191   ac_have_decl=0
25192 fi
25193
25194 cat >>confdefs.h <<_ACEOF
25195 #define HAVE_DECL_STRSTR $ac_have_decl
25196 _ACEOF
25197
25198
25199   # ----------------------- #
25200   # Checks for structures.  #
25201   # ----------------------- #
25202
25203   ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25204 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
25205
25206 cat >>confdefs.h <<_ACEOF
25207 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25208 _ACEOF
25209
25210
25211 fi
25212 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25213 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
25214
25215 cat >>confdefs.h <<_ACEOF
25216 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25217 _ACEOF
25218
25219
25220 fi
25221
25222
25223   # On FreeBSD we need libutil for the kinfo_get* functions.  On
25224   # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
25225   # Figure out which one to use.
25226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
25227 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
25228 if ${ac_cv_search_kinfo_getfile+:} false; then :
25229   $as_echo_n "(cached) " >&6
25230 else
25231   ac_func_search_save_LIBS=$LIBS
25232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25233 /* end confdefs.h.  */
25234
25235 /* Override any GCC internal prototype to avoid an error.
25236    Use char because int might match the return type of a GCC
25237    builtin and then its argument prototype would still apply.  */
25238 #ifdef __cplusplus
25239 extern "C"
25240 #endif
25241 char kinfo_getfile ();
25242 int
25243 main ()
25244 {
25245 return kinfo_getfile ();
25246   ;
25247   return 0;
25248 }
25249 _ACEOF
25250 for ac_lib in '' util util-freebsd; do
25251   if test -z "$ac_lib"; then
25252     ac_res="none required"
25253   else
25254     ac_res=-l$ac_lib
25255     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25256   fi
25257   if ac_fn_c_try_link "$LINENO"; then :
25258   ac_cv_search_kinfo_getfile=$ac_res
25259 fi
25260 rm -f core conftest.err conftest.$ac_objext \
25261     conftest$ac_exeext
25262   if ${ac_cv_search_kinfo_getfile+:} false; then :
25263   break
25264 fi
25265 done
25266 if ${ac_cv_search_kinfo_getfile+:} false; then :
25267
25268 else
25269   ac_cv_search_kinfo_getfile=no
25270 fi
25271 rm conftest.$ac_ext
25272 LIBS=$ac_func_search_save_LIBS
25273 fi
25274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
25275 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
25276 ac_res=$ac_cv_search_kinfo_getfile
25277 if test "$ac_res" != no; then :
25278   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25279
25280 fi
25281
25282
25283   # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
25284   for ac_func in kinfo_getfile
25285 do :
25286   ac_fn_c_check_func "$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
25287 if test "x$ac_cv_func_kinfo_getfile" = xyes; then :
25288   cat >>confdefs.h <<_ACEOF
25289 #define HAVE_KINFO_GETFILE 1
25290 _ACEOF
25291
25292 fi
25293 done
25294
25295
25296   # ----------------------- #
25297   # Check for threading.    #
25298   # ----------------------- #
25299
25300   # Check whether --enable-threading was given.
25301 if test "${enable_threading+set}" = set; then :
25302   enableval=$enable_threading; case "$enableval" in
25303     yes) want_threading=yes ;;
25304     no) want_threading=no ;;
25305     *) as_fn_error $? "bad value $enableval for threading" "$LINENO" 5 ;;
25306     esac
25307 else
25308   want_threading=yes
25309 fi
25310
25311
25312   # Check for std::thread.  This does not work on some platforms, like
25313   # mingw and DJGPP.
25314   ac_ext=cpp
25315 ac_cpp='$CXXCPP $CPPFLAGS'
25316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25319
25320
25321
25322
25323
25324 ac_ext=c
25325 ac_cpp='$CPP $CPPFLAGS'
25326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25329
25330 ax_pthread_ok=no
25331
25332 # We used to check for pthread.h first, but this fails if pthread.h
25333 # requires special compiler flags (e.g. on Tru64 or Sequent).
25334 # It gets checked for in the link test anyway.
25335
25336 # First of all, check if the user has set any of the PTHREAD_LIBS,
25337 # etcetera environment variables, and if threads linking works using
25338 # them:
25339 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
25340         ax_pthread_save_CC="$CC"
25341         ax_pthread_save_CFLAGS="$CFLAGS"
25342         ax_pthread_save_LIBS="$LIBS"
25343         if test "x$PTHREAD_CC" != "x"; then :
25344   CC="$PTHREAD_CC"
25345 fi
25346         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25347         LIBS="$PTHREAD_LIBS $LIBS"
25348         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
25349 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
25350         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25351 /* end confdefs.h.  */
25352
25353 /* Override any GCC internal prototype to avoid an error.
25354    Use char because int might match the return type of a GCC
25355    builtin and then its argument prototype would still apply.  */
25356 #ifdef __cplusplus
25357 extern "C"
25358 #endif
25359 char pthread_join ();
25360 int
25361 main ()
25362 {
25363 return pthread_join ();
25364   ;
25365   return 0;
25366 }
25367 _ACEOF
25368 if ac_fn_c_try_link "$LINENO"; then :
25369   ax_pthread_ok=yes
25370 fi
25371 rm -f core conftest.err conftest.$ac_objext \
25372     conftest$ac_exeext conftest.$ac_ext
25373         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
25374 $as_echo "$ax_pthread_ok" >&6; }
25375         if test "x$ax_pthread_ok" = "xno"; then
25376                 PTHREAD_LIBS=""
25377                 PTHREAD_CFLAGS=""
25378         fi
25379         CC="$ax_pthread_save_CC"
25380         CFLAGS="$ax_pthread_save_CFLAGS"
25381         LIBS="$ax_pthread_save_LIBS"
25382 fi
25383
25384 # We must check for the threads library under a number of different
25385 # names; the ordering is very important because some systems
25386 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
25387 # libraries is broken (non-POSIX).
25388
25389 # Create a list of thread flags to try.  Items starting with a "-" are
25390 # C compiler flags, and other items are library names, except for "none"
25391 # which indicates that we try without any flags at all, and "pthread-config"
25392 # which is a program returning the flags for the Pth emulation library.
25393
25394 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
25395
25396 # The ordering *is* (sometimes) important.  Some notes on the
25397 # individual items follow:
25398
25399 # pthreads: AIX (must check this before -lpthread)
25400 # none: in case threads are in libc; should be tried before -Kthread and
25401 #       other compiler flags to prevent continual compiler warnings
25402 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
25403 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
25404 #           (Note: HP C rejects this with "bad form for `-t' option")
25405 # -pthreads: Solaris/gcc (Note: HP C also rejects)
25406 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
25407 #      doesn't hurt to check since this sometimes defines pthreads and
25408 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
25409 #      is present but should not be used directly; and before -mthreads,
25410 #      because the compiler interprets this as "-mt" + "-hreads")
25411 # -mthreads: Mingw32/gcc, Lynx/gcc
25412 # pthread: Linux, etcetera
25413 # --thread-safe: KAI C++
25414 # pthread-config: use pthread-config program (for GNU Pth library)
25415
25416 case $host_os in
25417
25418         freebsd*)
25419
25420         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
25421         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
25422
25423         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
25424         ;;
25425
25426         hpux*)
25427
25428         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
25429         # multi-threading and also sets -lpthread."
25430
25431         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
25432         ;;
25433
25434         openedition*)
25435
25436         # IBM z/OS requires a feature-test macro to be defined in order to
25437         # enable POSIX threads at all, so give the user a hint if this is
25438         # not set. (We don't define these ourselves, as they can affect
25439         # other portions of the system API in unpredictable ways.)
25440
25441         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25442 /* end confdefs.h.  */
25443
25444 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
25445              AX_PTHREAD_ZOS_MISSING
25446 #            endif
25447
25448 _ACEOF
25449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25450   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
25451   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
25452 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
25453 fi
25454 rm -f conftest*
25455
25456         ;;
25457
25458         solaris*)
25459
25460         # On Solaris (at least, for some versions), libc contains stubbed
25461         # (non-functional) versions of the pthreads routines, so link-based
25462         # tests will erroneously succeed. (N.B.: The stubs are missing
25463         # pthread_cleanup_push, or rather a function called by this macro,
25464         # so we could check for that, but who knows whether they'll stub
25465         # that too in a future libc.)  So we'll check first for the
25466         # standard Solaris way of linking pthreads (-mt -lpthread).
25467
25468         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
25469         ;;
25470 esac
25471
25472 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
25473
25474 if test "x$GCC" = "xyes"; then :
25475   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
25476 fi
25477
25478 # The presence of a feature test macro requesting re-entrant function
25479 # definitions is, on some systems, a strong hint that pthreads support is
25480 # correctly enabled
25481
25482 case $host_os in
25483         darwin* | hpux* | linux* | osf* | solaris*)
25484         ax_pthread_check_macro="_REENTRANT"
25485         ;;
25486
25487         aix*)
25488         ax_pthread_check_macro="_THREAD_SAFE"
25489         ;;
25490
25491         *)
25492         ax_pthread_check_macro="--"
25493         ;;
25494 esac
25495 if test "x$ax_pthread_check_macro" = "x--"; then :
25496   ax_pthread_check_cond=0
25497 else
25498   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
25499 fi
25500
25501 # Are we compiling with Clang?
25502
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
25504 $as_echo_n "checking whether $CC is Clang... " >&6; }
25505 if ${ax_cv_PTHREAD_CLANG+:} false; then :
25506   $as_echo_n "(cached) " >&6
25507 else
25508   ax_cv_PTHREAD_CLANG=no
25509      # Note that Autoconf sets GCC=yes for Clang as well as GCC
25510      if test "x$GCC" = "xyes"; then
25511         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25512 /* end confdefs.h.  */
25513 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
25514 #            if defined(__clang__) && defined(__llvm__)
25515              AX_PTHREAD_CC_IS_CLANG
25516 #            endif
25517
25518 _ACEOF
25519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25520   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
25521   ax_cv_PTHREAD_CLANG=yes
25522 fi
25523 rm -f conftest*
25524
25525      fi
25526
25527 fi
25528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
25529 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
25530 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
25531
25532 ax_pthread_clang_warning=no
25533
25534 # Clang needs special handling, because older versions handle the -pthread
25535 # option in a rather... idiosyncratic way
25536
25537 if test "x$ax_pthread_clang" = "xyes"; then
25538
25539         # Clang takes -pthread; it has never supported any other flag
25540
25541         # (Note 1: This will need to be revisited if a system that Clang
25542         # supports has POSIX threads in a separate library.  This tends not
25543         # to be the way of modern systems, but it's conceivable.)
25544
25545         # (Note 2: On some systems, notably Darwin, -pthread is not needed
25546         # to get POSIX threads support; the API is always present and
25547         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
25548         # -pthread does define _REENTRANT, and while the Darwin headers
25549         # ignore this macro, third-party headers might not.)
25550
25551         PTHREAD_CFLAGS="-pthread"
25552         PTHREAD_LIBS=
25553
25554         ax_pthread_ok=yes
25555
25556         # However, older versions of Clang make a point of warning the user
25557         # that, in an invocation where only linking and no compilation is
25558         # taking place, the -pthread option has no effect ("argument unused
25559         # during compilation").  They expect -pthread to be passed in only
25560         # when source code is being compiled.
25561         #
25562         # Problem is, this is at odds with the way Automake and most other
25563         # C build frameworks function, which is that the same flags used in
25564         # compilation (CFLAGS) are also used in linking.  Many systems
25565         # supported by AX_PTHREAD require exactly this for POSIX threads
25566         # support, and in fact it is often not straightforward to specify a
25567         # flag that is used only in the compilation phase and not in
25568         # linking.  Such a scenario is extremely rare in practice.
25569         #
25570         # Even though use of the -pthread flag in linking would only print
25571         # a warning, this can be a nuisance for well-run software projects
25572         # that build with -Werror.  So if the active version of Clang has
25573         # this misfeature, we search for an option to squash it.
25574
25575         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
25576 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
25577 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
25578   $as_echo_n "(cached) " >&6
25579 else
25580   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
25581              # Create an alternate version of $ac_link that compiles and
25582              # links in two steps (.c -> .o, .o -> exe) instead of one
25583              # (.c -> exe), because the warning occurs only in the second
25584              # step
25585              ax_pthread_save_ac_link="$ac_link"
25586              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
25587              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
25588              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
25589              ax_pthread_save_CFLAGS="$CFLAGS"
25590              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
25591                 if test "x$ax_pthread_try" = "xunknown"; then :
25592   break
25593 fi
25594                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
25595                 ac_link="$ax_pthread_save_ac_link"
25596                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25597 /* end confdefs.h.  */
25598 int main(void){return 0;}
25599 _ACEOF
25600 if ac_fn_c_try_link "$LINENO"; then :
25601   ac_link="$ax_pthread_2step_ac_link"
25602                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25603 /* end confdefs.h.  */
25604 int main(void){return 0;}
25605 _ACEOF
25606 if ac_fn_c_try_link "$LINENO"; then :
25607   break
25608 fi
25609 rm -f core conftest.err conftest.$ac_objext \
25610     conftest$ac_exeext conftest.$ac_ext
25611
25612 fi
25613 rm -f core conftest.err conftest.$ac_objext \
25614     conftest$ac_exeext conftest.$ac_ext
25615              done
25616              ac_link="$ax_pthread_save_ac_link"
25617              CFLAGS="$ax_pthread_save_CFLAGS"
25618              if test "x$ax_pthread_try" = "x"; then :
25619   ax_pthread_try=no
25620 fi
25621              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
25622
25623 fi
25624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
25625 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
25626
25627         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
25628                 no | unknown) ;;
25629                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
25630         esac
25631
25632 fi # $ax_pthread_clang = yes
25633
25634 if test "x$ax_pthread_ok" = "xno"; then
25635 for ax_pthread_try_flag in $ax_pthread_flags; do
25636
25637         case $ax_pthread_try_flag in
25638                 none)
25639                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
25640 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
25641                 ;;
25642
25643                 -mt,pthread)
25644                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
25645 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
25646                 PTHREAD_CFLAGS="-mt"
25647                 PTHREAD_LIBS="-lpthread"
25648                 ;;
25649
25650                 -*)
25651                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
25652 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
25653                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
25654                 ;;
25655
25656                 pthread-config)
25657                 # Extract the first word of "pthread-config", so it can be a program name with args.
25658 set dummy pthread-config; ac_word=$2
25659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25660 $as_echo_n "checking for $ac_word... " >&6; }
25661 if ${ac_cv_prog_ax_pthread_config+:} false; then :
25662   $as_echo_n "(cached) " >&6
25663 else
25664   if test -n "$ax_pthread_config"; then
25665   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
25666 else
25667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25668 for as_dir in $PATH
25669 do
25670   IFS=$as_save_IFS
25671   test -z "$as_dir" && as_dir=.
25672     for ac_exec_ext in '' $ac_executable_extensions; do
25673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25674     ac_cv_prog_ax_pthread_config="yes"
25675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25676     break 2
25677   fi
25678 done
25679   done
25680 IFS=$as_save_IFS
25681
25682   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
25683 fi
25684 fi
25685 ax_pthread_config=$ac_cv_prog_ax_pthread_config
25686 if test -n "$ax_pthread_config"; then
25687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
25688 $as_echo "$ax_pthread_config" >&6; }
25689 else
25690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25691 $as_echo "no" >&6; }
25692 fi
25693
25694
25695                 if test "x$ax_pthread_config" = "xno"; then :
25696   continue
25697 fi
25698                 PTHREAD_CFLAGS="`pthread-config --cflags`"
25699                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
25700                 ;;
25701
25702                 *)
25703                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
25704 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
25705                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
25706                 ;;
25707         esac
25708
25709         ax_pthread_save_CFLAGS="$CFLAGS"
25710         ax_pthread_save_LIBS="$LIBS"
25711         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25712         LIBS="$PTHREAD_LIBS $LIBS"
25713
25714         # Check for various functions.  We must include pthread.h,
25715         # since some functions may be macros.  (On the Sequent, we
25716         # need a special flag -Kthread to make this header compile.)
25717         # We check for pthread_join because it is in -lpthread on IRIX
25718         # while pthread_create is in libc.  We check for pthread_attr_init
25719         # due to DEC craziness with -lpthreads.  We check for
25720         # pthread_cleanup_push because it is one of the few pthread
25721         # functions on Solaris that doesn't have a non-functional libc stub.
25722         # We try pthread_create on general principles.
25723
25724         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25725 /* end confdefs.h.  */
25726 #include <pthread.h>
25727 #                       if $ax_pthread_check_cond
25728 #                        error "$ax_pthread_check_macro must be defined"
25729 #                       endif
25730                         static void routine(void *a) { a = 0; }
25731                         static void *start_routine(void *a) { return a; }
25732 int
25733 main ()
25734 {
25735 pthread_t th; pthread_attr_t attr;
25736                         pthread_create(&th, 0, start_routine, 0);
25737                         pthread_join(th, 0);
25738                         pthread_attr_init(&attr);
25739                         pthread_cleanup_push(routine, 0);
25740                         pthread_cleanup_pop(0) /* ; */
25741   ;
25742   return 0;
25743 }
25744 _ACEOF
25745 if ac_fn_c_try_link "$LINENO"; then :
25746   ax_pthread_ok=yes
25747 fi
25748 rm -f core conftest.err conftest.$ac_objext \
25749     conftest$ac_exeext conftest.$ac_ext
25750
25751         CFLAGS="$ax_pthread_save_CFLAGS"
25752         LIBS="$ax_pthread_save_LIBS"
25753
25754         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
25755 $as_echo "$ax_pthread_ok" >&6; }
25756         if test "x$ax_pthread_ok" = "xyes"; then :
25757   break
25758 fi
25759
25760         PTHREAD_LIBS=""
25761         PTHREAD_CFLAGS=""
25762 done
25763 fi
25764
25765 # Various other checks:
25766 if test "x$ax_pthread_ok" = "xyes"; then
25767         ax_pthread_save_CFLAGS="$CFLAGS"
25768         ax_pthread_save_LIBS="$LIBS"
25769         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25770         LIBS="$PTHREAD_LIBS $LIBS"
25771
25772         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
25773         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
25774 $as_echo_n "checking for joinable pthread attribute... " >&6; }
25775 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
25776   $as_echo_n "(cached) " >&6
25777 else
25778   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
25779              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
25780                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25781 /* end confdefs.h.  */
25782 #include <pthread.h>
25783 int
25784 main ()
25785 {
25786 int attr = $ax_pthread_attr; return attr /* ; */
25787   ;
25788   return 0;
25789 }
25790 _ACEOF
25791 if ac_fn_c_try_link "$LINENO"; then :
25792   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
25793 fi
25794 rm -f core conftest.err conftest.$ac_objext \
25795     conftest$ac_exeext conftest.$ac_ext
25796              done
25797
25798 fi
25799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
25800 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
25801         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
25802                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
25803                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
25804
25805 cat >>confdefs.h <<_ACEOF
25806 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
25807 _ACEOF
25808
25809                ax_pthread_joinable_attr_defined=yes
25810
25811 fi
25812
25813         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
25814 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
25815 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
25816   $as_echo_n "(cached) " >&6
25817 else
25818   ax_cv_PTHREAD_SPECIAL_FLAGS=no
25819              case $host_os in
25820              solaris*)
25821              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
25822              ;;
25823              esac
25824
25825 fi
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
25827 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
25828         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
25829                test "x$ax_pthread_special_flags_added" != "xyes"; then :
25830   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
25831                ax_pthread_special_flags_added=yes
25832 fi
25833
25834         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
25835 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
25836 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
25837   $as_echo_n "(cached) " >&6
25838 else
25839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25840 /* end confdefs.h.  */
25841 #include <pthread.h>
25842 int
25843 main ()
25844 {
25845 int i = PTHREAD_PRIO_INHERIT;
25846   ;
25847   return 0;
25848 }
25849 _ACEOF
25850 if ac_fn_c_try_link "$LINENO"; then :
25851   ax_cv_PTHREAD_PRIO_INHERIT=yes
25852 else
25853   ax_cv_PTHREAD_PRIO_INHERIT=no
25854 fi
25855 rm -f core conftest.err conftest.$ac_objext \
25856     conftest$ac_exeext conftest.$ac_ext
25857
25858 fi
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
25860 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
25861         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
25862                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
25863
25864 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
25865
25866                ax_pthread_prio_inherit_defined=yes
25867
25868 fi
25869
25870         CFLAGS="$ax_pthread_save_CFLAGS"
25871         LIBS="$ax_pthread_save_LIBS"
25872
25873         # More AIX lossage: compile with *_r variant
25874         if test "x$GCC" != "xyes"; then
25875             case $host_os in
25876                 aix*)
25877                 case "x/$CC" in #(
25878   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
25879     #handle absolute path differently from PATH based program lookup
25880                      case "x$CC" in #(
25881   x/*) :
25882     if as_fn_executable_p ${CC}_r; then :
25883   PTHREAD_CC="${CC}_r"
25884 fi ;; #(
25885   *) :
25886     for ac_prog in ${CC}_r
25887 do
25888   # Extract the first word of "$ac_prog", so it can be a program name with args.
25889 set dummy $ac_prog; ac_word=$2
25890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25891 $as_echo_n "checking for $ac_word... " >&6; }
25892 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
25893   $as_echo_n "(cached) " >&6
25894 else
25895   if test -n "$PTHREAD_CC"; then
25896   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
25897 else
25898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25899 for as_dir in $PATH
25900 do
25901   IFS=$as_save_IFS
25902   test -z "$as_dir" && as_dir=.
25903     for ac_exec_ext in '' $ac_executable_extensions; do
25904   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25905     ac_cv_prog_PTHREAD_CC="$ac_prog"
25906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25907     break 2
25908   fi
25909 done
25910   done
25911 IFS=$as_save_IFS
25912
25913 fi
25914 fi
25915 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
25916 if test -n "$PTHREAD_CC"; then
25917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
25918 $as_echo "$PTHREAD_CC" >&6; }
25919 else
25920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25921 $as_echo "no" >&6; }
25922 fi
25923
25924
25925   test -n "$PTHREAD_CC" && break
25926 done
25927 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
25928  ;;
25929 esac ;; #(
25930   *) :
25931      ;;
25932 esac
25933                 ;;
25934             esac
25935         fi
25936 fi
25937
25938 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
25939
25940
25941
25942
25943
25944 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
25945 if test "x$ax_pthread_ok" = "xyes"; then
25946         threads=yes
25947         :
25948 else
25949         ax_pthread_ok=no
25950         threads=no
25951 fi
25952 ac_ext=cpp
25953 ac_cpp='$CXXCPP $CPPFLAGS'
25954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25957
25958
25959   save_LIBS="$LIBS"
25960   LIBS="$PTHREAD_LIBS $LIBS"
25961   save_CXXFLAGS="$CXXFLAGS"
25962   CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS"
25963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
25964 $as_echo_n "checking for std::thread... " >&6; }
25965 if ${gdb_cv_cxx_std_thread+:} false; then :
25966   $as_echo_n "(cached) " >&6
25967 else
25968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25969 /* end confdefs.h.  */
25970 #include <thread>
25971     void callback() { }
25972 int
25973 main ()
25974 {
25975 std::thread t(callback);
25976   ;
25977   return 0;
25978 }
25979 _ACEOF
25980 if ac_fn_cxx_try_compile "$LINENO"; then :
25981   gdb_cv_cxx_std_thread=yes
25982 else
25983   gdb_cv_cxx_std_thread=no
25984 fi
25985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25986 fi
25987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
25988 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
25989
25990   if test "$threads" = "yes"; then
25991     # This check must be here, while LIBS includes any necessary
25992     # threading library.
25993     for ac_func in pthread_sigmask pthread_setname_np
25994 do :
25995   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25996 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
25997 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25998   cat >>confdefs.h <<_ACEOF
25999 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26000 _ACEOF
26001
26002 fi
26003 done
26004
26005   fi
26006   LIBS="$save_LIBS"
26007   CXXFLAGS="$save_CXXFLAGS"
26008
26009   if test "$want_threading" = "yes"; then
26010     if test "$gdb_cv_cxx_std_thread" = "yes"; then
26011
26012 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
26013
26014     fi
26015   fi
26016   ac_ext=c
26017 ac_cpp='$CPP $CPPFLAGS'
26018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26021
26022
26023       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
26024 $as_echo_n "checking for sigsetjmp... " >&6; }
26025 if ${gdb_cv_func_sigsetjmp+:} false; then :
26026   $as_echo_n "(cached) " >&6
26027 else
26028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26029 /* end confdefs.h.  */
26030 #include <setjmp.h>
26031 int
26032 main ()
26033 {
26034 sigjmp_buf env;
26035            while (! sigsetjmp (env, 1))
26036              siglongjmp (env, 1);
26037
26038   ;
26039   return 0;
26040 }
26041 _ACEOF
26042 if ac_fn_c_try_compile "$LINENO"; then :
26043   gdb_cv_func_sigsetjmp=yes
26044 else
26045   gdb_cv_func_sigsetjmp=no
26046
26047 fi
26048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26049
26050 fi
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
26052 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
26053   if test "$gdb_cv_func_sigsetjmp" = "yes"; then
26054
26055 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
26056
26057   fi
26058
26059
26060 # Check whether --with-intel_pt was given.
26061 if test "${with_intel_pt+set}" = set; then :
26062   withval=$with_intel_pt;
26063 else
26064   with_intel_pt=auto
26065 fi
26066
26067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
26068 $as_echo_n "checking whether to use intel pt... " >&6; }
26069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
26070 $as_echo "$with_intel_pt" >&6; }
26071
26072   if test "${with_intel_pt}" = no; then
26073     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
26074 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
26075     HAVE_LIBIPT=no
26076   else
26077     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26078 /* end confdefs.h.  */
26079
26080   #include <linux/perf_event.h>
26081   #ifndef PERF_ATTR_SIZE_VER5
26082   # error
26083   #endif
26084
26085 _ACEOF
26086 if ac_fn_c_try_cpp "$LINENO"; then :
26087   perf_event=yes
26088 else
26089   perf_event=no
26090 fi
26091 rm -f conftest.err conftest.i conftest.$ac_ext
26092     if test "$perf_event" != yes; then
26093       if test "$with_intel_pt" = yes; then
26094         as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
26095       else
26096         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
26097 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
26098       fi
26099     fi
26100
26101
26102
26103
26104
26105
26106
26107
26108
26109     use_additional=yes
26110
26111   acl_save_prefix="$prefix"
26112   prefix="$acl_final_prefix"
26113   acl_save_exec_prefix="$exec_prefix"
26114   exec_prefix="$acl_final_exec_prefix"
26115
26116     eval additional_includedir=\"$includedir\"
26117     eval additional_libdir=\"$libdir\"
26118
26119   exec_prefix="$acl_save_exec_prefix"
26120   prefix="$acl_save_prefix"
26121
26122
26123 # Check whether --with-libipt-prefix was given.
26124 if test "${with_libipt_prefix+set}" = set; then :
26125   withval=$with_libipt_prefix;
26126     if test "X$withval" = "Xno"; then
26127       use_additional=no
26128     else
26129       if test "X$withval" = "X"; then
26130
26131   acl_save_prefix="$prefix"
26132   prefix="$acl_final_prefix"
26133   acl_save_exec_prefix="$exec_prefix"
26134   exec_prefix="$acl_final_exec_prefix"
26135
26136           eval additional_includedir=\"$includedir\"
26137           eval additional_libdir=\"$libdir\"
26138
26139   exec_prefix="$acl_save_exec_prefix"
26140   prefix="$acl_save_prefix"
26141
26142       else
26143         additional_includedir="$withval/include"
26144         additional_libdir="$withval/lib"
26145       fi
26146     fi
26147
26148 fi
26149
26150
26151 # Check whether --with-libipt-type was given.
26152 if test "${with_libipt_type+set}" = set; then :
26153   withval=$with_libipt_type;  with_libipt_type=$withval
26154 else
26155    with_libipt_type=auto
26156 fi
26157
26158   lib_type=`eval echo \$with_libipt_type`
26159
26160       LIBIPT=
26161   LTLIBIPT=
26162   INCIPT=
26163   rpathdirs=
26164   ltrpathdirs=
26165   names_already_handled=
26166   names_next_round='ipt '
26167   while test -n "$names_next_round"; do
26168     names_this_round="$names_next_round"
26169     names_next_round=
26170     for name in $names_this_round; do
26171       already_handled=
26172       for n in $names_already_handled; do
26173         if test "$n" = "$name"; then
26174           already_handled=yes
26175           break
26176         fi
26177       done
26178       if test -z "$already_handled"; then
26179         names_already_handled="$names_already_handled $name"
26180                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26181         eval value=\"\$HAVE_LIB$uppername\"
26182         if test -n "$value"; then
26183           if test "$value" = yes; then
26184             eval value=\"\$LIB$uppername\"
26185             test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
26186             eval value=\"\$LTLIB$uppername\"
26187             test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
26188           else
26189                                     :
26190           fi
26191         else
26192                               found_dir=
26193           found_la=
26194           found_so=
26195           found_a=
26196           if test $use_additional = yes; then
26197             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
26198               found_dir="$additional_libdir"
26199               found_so="$additional_libdir/lib$name.$shlibext"
26200               if test -f "$additional_libdir/lib$name.la"; then
26201                 found_la="$additional_libdir/lib$name.la"
26202               fi
26203             elif test x$lib_type != xshared; then
26204               if test -f "$additional_libdir/lib$name.$libext"; then
26205                 found_dir="$additional_libdir"
26206                 found_a="$additional_libdir/lib$name.$libext"
26207                 if test -f "$additional_libdir/lib$name.la"; then
26208                   found_la="$additional_libdir/lib$name.la"
26209                 fi
26210               fi
26211             fi
26212           fi
26213           if test "X$found_dir" = "X"; then
26214             for x in $LDFLAGS $LTLIBIPT; do
26215
26216   acl_save_prefix="$prefix"
26217   prefix="$acl_final_prefix"
26218   acl_save_exec_prefix="$exec_prefix"
26219   exec_prefix="$acl_final_exec_prefix"
26220   eval x=\"$x\"
26221   exec_prefix="$acl_save_exec_prefix"
26222   prefix="$acl_save_prefix"
26223
26224               case "$x" in
26225                 -L*)
26226                   dir=`echo "X$x" | sed -e 's/^X-L//'`
26227                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
26228                     found_dir="$dir"
26229                     found_so="$dir/lib$name.$shlibext"
26230                     if test -f "$dir/lib$name.la"; then
26231                       found_la="$dir/lib$name.la"
26232                     fi
26233                   elif test x$lib_type != xshared; then
26234                     if test -f "$dir/lib$name.$libext"; then
26235                       found_dir="$dir"
26236                       found_a="$dir/lib$name.$libext"
26237                       if test -f "$dir/lib$name.la"; then
26238                         found_la="$dir/lib$name.la"
26239                       fi
26240                     fi
26241                   fi
26242                   ;;
26243               esac
26244               if test "X$found_dir" != "X"; then
26245                 break
26246               fi
26247             done
26248           fi
26249           if test "X$found_dir" != "X"; then
26250                         LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
26251             if test "X$found_so" != "X"; then
26252                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
26253                                 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
26254               else
26255                                                                                 haveit=
26256                 for x in $ltrpathdirs; do
26257                   if test "X$x" = "X$found_dir"; then
26258                     haveit=yes
26259                     break
26260                   fi
26261                 done
26262                 if test -z "$haveit"; then
26263                   ltrpathdirs="$ltrpathdirs $found_dir"
26264                 fi
26265                                 if test "$hardcode_direct" = yes; then
26266                                                       LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
26267                 else
26268                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
26269                                                             LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
26270                                                             haveit=
26271                     for x in $rpathdirs; do
26272                       if test "X$x" = "X$found_dir"; then
26273                         haveit=yes
26274                         break
26275                       fi
26276                     done
26277                     if test -z "$haveit"; then
26278                       rpathdirs="$rpathdirs $found_dir"
26279                     fi
26280                   else
26281                                                                                 haveit=
26282                     for x in $LDFLAGS $LIBIPT; do
26283
26284   acl_save_prefix="$prefix"
26285   prefix="$acl_final_prefix"
26286   acl_save_exec_prefix="$exec_prefix"
26287   exec_prefix="$acl_final_exec_prefix"
26288   eval x=\"$x\"
26289   exec_prefix="$acl_save_exec_prefix"
26290   prefix="$acl_save_prefix"
26291
26292                       if test "X$x" = "X-L$found_dir"; then
26293                         haveit=yes
26294                         break
26295                       fi
26296                     done
26297                     if test -z "$haveit"; then
26298                       LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
26299                     fi
26300                     if test "$hardcode_minus_L" != no; then
26301                                                                                         LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
26302                     else
26303                                                                                                                                                                                 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
26304                     fi
26305                   fi
26306                 fi
26307               fi
26308             else
26309               if test "X$found_a" != "X"; then
26310                                 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
26311               else
26312                                                 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
26313               fi
26314             fi
26315                         additional_includedir=
26316             case "$found_dir" in
26317               */lib | */lib/)
26318                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
26319                 additional_includedir="$basedir/include"
26320                 ;;
26321             esac
26322             if test "X$additional_includedir" != "X"; then
26323                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
26324                 haveit=
26325                 if test "X$additional_includedir" = "X/usr/local/include"; then
26326                   if test -n "$GCC"; then
26327                     case $host_os in
26328                       linux*) haveit=yes;;
26329                     esac
26330                   fi
26331                 fi
26332                 if test -z "$haveit"; then
26333                   for x in $CPPFLAGS $INCIPT; do
26334
26335   acl_save_prefix="$prefix"
26336   prefix="$acl_final_prefix"
26337   acl_save_exec_prefix="$exec_prefix"
26338   exec_prefix="$acl_final_exec_prefix"
26339   eval x=\"$x\"
26340   exec_prefix="$acl_save_exec_prefix"
26341   prefix="$acl_save_prefix"
26342
26343                     if test "X$x" = "X-I$additional_includedir"; then
26344                       haveit=yes
26345                       break
26346                     fi
26347                   done
26348                   if test -z "$haveit"; then
26349                     if test -d "$additional_includedir"; then
26350                                             INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
26351                     fi
26352                   fi
26353                 fi
26354               fi
26355             fi
26356                         if test -n "$found_la"; then
26357                                                         save_libdir="$libdir"
26358               case "$found_la" in
26359                 */* | *\\*) . "$found_la" ;;
26360                 *) . "./$found_la" ;;
26361               esac
26362               libdir="$save_libdir"
26363                             for dep in $dependency_libs; do
26364                 case "$dep" in
26365                   -L*)
26366                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26367                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
26368                       haveit=
26369                       if test "X$additional_libdir" = "X/usr/local/lib"; then
26370                         if test -n "$GCC"; then
26371                           case $host_os in
26372                             linux*) haveit=yes;;
26373                           esac
26374                         fi
26375                       fi
26376                       if test -z "$haveit"; then
26377                         haveit=
26378                         for x in $LDFLAGS $LIBIPT; do
26379
26380   acl_save_prefix="$prefix"
26381   prefix="$acl_final_prefix"
26382   acl_save_exec_prefix="$exec_prefix"
26383   exec_prefix="$acl_final_exec_prefix"
26384   eval x=\"$x\"
26385   exec_prefix="$acl_save_exec_prefix"
26386   prefix="$acl_save_prefix"
26387
26388                           if test "X$x" = "X-L$additional_libdir"; then
26389                             haveit=yes
26390                             break
26391                           fi
26392                         done
26393                         if test -z "$haveit"; then
26394                           if test -d "$additional_libdir"; then
26395                                                         LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
26396                           fi
26397                         fi
26398                         haveit=
26399                         for x in $LDFLAGS $LTLIBIPT; do
26400
26401   acl_save_prefix="$prefix"
26402   prefix="$acl_final_prefix"
26403   acl_save_exec_prefix="$exec_prefix"
26404   exec_prefix="$acl_final_exec_prefix"
26405   eval x=\"$x\"
26406   exec_prefix="$acl_save_exec_prefix"
26407   prefix="$acl_save_prefix"
26408
26409                           if test "X$x" = "X-L$additional_libdir"; then
26410                             haveit=yes
26411                             break
26412                           fi
26413                         done
26414                         if test -z "$haveit"; then
26415                           if test -d "$additional_libdir"; then
26416                                                         LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
26417                           fi
26418                         fi
26419                       fi
26420                     fi
26421                     ;;
26422                   -R*)
26423                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
26424                     if test "$enable_rpath" != no; then
26425                                                                   haveit=
26426                       for x in $rpathdirs; do
26427                         if test "X$x" = "X$dir"; then
26428                           haveit=yes
26429                           break
26430                         fi
26431                       done
26432                       if test -z "$haveit"; then
26433                         rpathdirs="$rpathdirs $dir"
26434                       fi
26435                                                                   haveit=
26436                       for x in $ltrpathdirs; do
26437                         if test "X$x" = "X$dir"; then
26438                           haveit=yes
26439                           break
26440                         fi
26441                       done
26442                       if test -z "$haveit"; then
26443                         ltrpathdirs="$ltrpathdirs $dir"
26444                       fi
26445                     fi
26446                     ;;
26447                   -l*)
26448                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26449                     ;;
26450                   *.la)
26451                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26452                     ;;
26453                   *)
26454                                         LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
26455                     LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
26456                     ;;
26457                 esac
26458               done
26459             fi
26460           else
26461                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
26462               LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
26463               LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
26464             else
26465               LIBIPT="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
26466               LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
26467             fi
26468           fi
26469         fi
26470       fi
26471     done
26472   done
26473   if test "X$rpathdirs" != "X"; then
26474     if test -n "$hardcode_libdir_separator"; then
26475                         alldirs=
26476       for found_dir in $rpathdirs; do
26477         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
26478       done
26479             acl_save_libdir="$libdir"
26480       libdir="$alldirs"
26481       eval flag=\"$hardcode_libdir_flag_spec\"
26482       libdir="$acl_save_libdir"
26483       LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
26484     else
26485             for found_dir in $rpathdirs; do
26486         acl_save_libdir="$libdir"
26487         libdir="$found_dir"
26488         eval flag=\"$hardcode_libdir_flag_spec\"
26489         libdir="$acl_save_libdir"
26490         LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
26491       done
26492     fi
26493   fi
26494   if test "X$ltrpathdirs" != "X"; then
26495             for found_dir in $ltrpathdirs; do
26496       LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
26497     done
26498   fi
26499
26500
26501         ac_save_CPPFLAGS="$CPPFLAGS"
26502
26503   for element in $INCIPT; do
26504     haveit=
26505     for x in $CPPFLAGS; do
26506
26507   acl_save_prefix="$prefix"
26508   prefix="$acl_final_prefix"
26509   acl_save_exec_prefix="$exec_prefix"
26510   exec_prefix="$acl_final_exec_prefix"
26511   eval x=\"$x\"
26512   exec_prefix="$acl_save_exec_prefix"
26513   prefix="$acl_save_prefix"
26514
26515       if test "X$x" = "X$element"; then
26516         haveit=yes
26517         break
26518       fi
26519     done
26520     if test -z "$haveit"; then
26521       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
26522     fi
26523   done
26524
26525
26526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
26527 $as_echo_n "checking for libipt... " >&6; }
26528 if ${ac_cv_libipt+:} false; then :
26529   $as_echo_n "(cached) " >&6
26530 else
26531
26532     ac_save_LIBS="$LIBS"
26533     LIBS="$LIBS $LIBIPT"
26534     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26535 /* end confdefs.h.  */
26536 #include "intel-pt.h"
26537 int
26538 main ()
26539 {
26540 pt_insn_alloc_decoder (0);
26541   ;
26542   return 0;
26543 }
26544 _ACEOF
26545 if ac_fn_c_try_link "$LINENO"; then :
26546   ac_cv_libipt=yes
26547 else
26548   ac_cv_libipt=no
26549 fi
26550 rm -f core conftest.err conftest.$ac_objext \
26551     conftest$ac_exeext conftest.$ac_ext
26552     LIBS="$ac_save_LIBS"
26553
26554 fi
26555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
26556 $as_echo "$ac_cv_libipt" >&6; }
26557   if test "$ac_cv_libipt" = yes; then
26558     HAVE_LIBIPT=yes
26559
26560 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
26561
26562     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
26563 $as_echo_n "checking how to link with libipt... " >&6; }
26564     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
26565 $as_echo "$LIBIPT" >&6; }
26566   else
26567     HAVE_LIBIPT=no
26568             CPPFLAGS="$ac_save_CPPFLAGS"
26569     LIBIPT=
26570     LTLIBIPT=
26571   fi
26572
26573
26574
26575
26576
26577
26578     if test "$HAVE_LIBIPT" != yes; then
26579       if test "$with_intel_pt" = yes; then
26580         as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
26581       else
26582         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
26583 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
26584       fi
26585     else
26586       save_LIBS=$LIBS
26587       LIBS="$LIBS $LIBIPT"
26588       for ac_func in pt_insn_event
26589 do :
26590   ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
26591 if test "x$ac_cv_func_pt_insn_event" = xyes; then :
26592   cat >>confdefs.h <<_ACEOF
26593 #define HAVE_PT_INSN_EVENT 1
26594 _ACEOF
26595
26596 fi
26597 done
26598
26599       ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
26600 "
26601 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
26602
26603 cat >>confdefs.h <<_ACEOF
26604 #define HAVE_STRUCT_PT_INSN_ENABLED 1
26605 _ACEOF
26606
26607
26608 fi
26609 ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
26610 "
26611 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
26612
26613 cat >>confdefs.h <<_ACEOF
26614 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
26615 _ACEOF
26616
26617
26618 fi
26619
26620       LIBS=$save_LIBS
26621     fi
26622   fi
26623
26624   # Check if the compiler and runtime support printing long longs.
26625
26626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
26627 $as_echo_n "checking for long long support in printf... " >&6; }
26628 if ${gdb_cv_printf_has_long_long+:} false; then :
26629   $as_echo_n "(cached) " >&6
26630 else
26631   if test "$cross_compiling" = yes; then :
26632   gdb_cv_printf_has_long_long=no
26633 else
26634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26635 /* end confdefs.h.  */
26636 $ac_includes_default
26637 int
26638 main ()
26639 {
26640 char buf[32];
26641     long long l = 0;
26642     l = (l << 16) + 0x0123;
26643     l = (l << 16) + 0x4567;
26644     l = (l << 16) + 0x89ab;
26645     l = (l << 16) + 0xcdef;
26646     sprintf (buf, "0x%016llx", l);
26647     return (strcmp ("0x0123456789abcdef", buf));
26648   ;
26649   return 0;
26650 }
26651 _ACEOF
26652 if ac_fn_c_try_run "$LINENO"; then :
26653   gdb_cv_printf_has_long_long=yes
26654 else
26655   gdb_cv_printf_has_long_long=no
26656 fi
26657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26658   conftest.$ac_objext conftest.beam conftest.$ac_ext
26659 fi
26660
26661 fi
26662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
26663 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
26664   if test "$gdb_cv_printf_has_long_long" = yes; then
26665
26666 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
26667
26668   fi
26669
26670
26671 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
26672
26673  for ac_header in sys/procfs.h
26674 do :
26675   ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
26676 if test "x$ac_cv_header_sys_procfs_h" = xyes; then :
26677   cat >>confdefs.h <<_ACEOF
26678 #define HAVE_SYS_PROCFS_H 1
26679 _ACEOF
26680
26681 fi
26682
26683 done
26684
26685   if test "$ac_cv_header_sys_procfs_h" = yes; then
26686
26687  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
26688 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
26689  if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
26690   $as_echo_n "(cached) " >&6
26691 else
26692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26693 /* end confdefs.h.  */
26694
26695 #define _SYSCALL32
26696 #include <sys/procfs.h>
26697 int
26698 main ()
26699 {
26700 gregset_t avar
26701   ;
26702   return 0;
26703 }
26704 _ACEOF
26705 if ac_fn_c_try_compile "$LINENO"; then :
26706   bfd_cv_have_sys_procfs_type_gregset_t=yes
26707 else
26708   bfd_cv_have_sys_procfs_type_gregset_t=no
26709
26710 fi
26711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26712 fi
26713
26714  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
26715
26716 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
26717
26718  fi
26719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
26720 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
26721
26722
26723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
26724 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
26725  if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
26726   $as_echo_n "(cached) " >&6
26727 else
26728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26729 /* end confdefs.h.  */
26730
26731 #define _SYSCALL32
26732 #include <sys/procfs.h>
26733 int
26734 main ()
26735 {
26736 fpregset_t avar
26737   ;
26738   return 0;
26739 }
26740 _ACEOF
26741 if ac_fn_c_try_compile "$LINENO"; then :
26742   bfd_cv_have_sys_procfs_type_fpregset_t=yes
26743 else
26744   bfd_cv_have_sys_procfs_type_fpregset_t=no
26745
26746 fi
26747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26748 fi
26749
26750  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
26751
26752 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
26753
26754  fi
26755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
26756 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
26757
26758
26759  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
26760 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
26761  if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
26762   $as_echo_n "(cached) " >&6
26763 else
26764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26765 /* end confdefs.h.  */
26766
26767 #define _SYSCALL32
26768 #include <sys/procfs.h>
26769 int
26770 main ()
26771 {
26772 prgregset_t avar
26773   ;
26774   return 0;
26775 }
26776 _ACEOF
26777 if ac_fn_c_try_compile "$LINENO"; then :
26778   bfd_cv_have_sys_procfs_type_prgregset_t=yes
26779 else
26780   bfd_cv_have_sys_procfs_type_prgregset_t=no
26781
26782 fi
26783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26784 fi
26785
26786  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
26787
26788 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
26789
26790  fi
26791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
26792 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
26793
26794
26795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
26796 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
26797  if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
26798   $as_echo_n "(cached) " >&6
26799 else
26800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26801 /* end confdefs.h.  */
26802
26803 #define _SYSCALL32
26804 #include <sys/procfs.h>
26805 int
26806 main ()
26807 {
26808 prfpregset_t avar
26809   ;
26810   return 0;
26811 }
26812 _ACEOF
26813 if ac_fn_c_try_compile "$LINENO"; then :
26814   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
26815 else
26816   bfd_cv_have_sys_procfs_type_prfpregset_t=no
26817
26818 fi
26819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26820 fi
26821
26822  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
26823
26824 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
26825
26826  fi
26827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
26828 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
26829
26830
26831  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
26832 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
26833  if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
26834   $as_echo_n "(cached) " >&6
26835 else
26836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26837 /* end confdefs.h.  */
26838
26839 #define _SYSCALL32
26840 #include <sys/procfs.h>
26841 int
26842 main ()
26843 {
26844 prgregset32_t avar
26845   ;
26846   return 0;
26847 }
26848 _ACEOF
26849 if ac_fn_c_try_compile "$LINENO"; then :
26850   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
26851 else
26852   bfd_cv_have_sys_procfs_type_prgregset32_t=no
26853
26854 fi
26855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26856 fi
26857
26858  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
26859
26860 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
26861
26862  fi
26863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
26864 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
26865
26866
26867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
26868 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
26869  if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
26870   $as_echo_n "(cached) " >&6
26871 else
26872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26873 /* end confdefs.h.  */
26874
26875 #define _SYSCALL32
26876 #include <sys/procfs.h>
26877 int
26878 main ()
26879 {
26880 lwpid_t avar
26881   ;
26882   return 0;
26883 }
26884 _ACEOF
26885 if ac_fn_c_try_compile "$LINENO"; then :
26886   bfd_cv_have_sys_procfs_type_lwpid_t=yes
26887 else
26888   bfd_cv_have_sys_procfs_type_lwpid_t=no
26889
26890 fi
26891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26892 fi
26893
26894  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
26895
26896 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
26897
26898  fi
26899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
26900 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
26901
26902
26903  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
26904 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
26905  if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
26906   $as_echo_n "(cached) " >&6
26907 else
26908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26909 /* end confdefs.h.  */
26910
26911 #define _SYSCALL32
26912 #include <sys/procfs.h>
26913 int
26914 main ()
26915 {
26916 psaddr_t avar
26917   ;
26918   return 0;
26919 }
26920 _ACEOF
26921 if ac_fn_c_try_compile "$LINENO"; then :
26922   bfd_cv_have_sys_procfs_type_psaddr_t=yes
26923 else
26924   bfd_cv_have_sys_procfs_type_psaddr_t=no
26925
26926 fi
26927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26928 fi
26929
26930  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
26931
26932 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
26933
26934  fi
26935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
26936 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
26937
26938
26939  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
26940 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
26941  if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
26942   $as_echo_n "(cached) " >&6
26943 else
26944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26945 /* end confdefs.h.  */
26946
26947 #define _SYSCALL32
26948 #include <sys/procfs.h>
26949 int
26950 main ()
26951 {
26952 elf_fpregset_t avar
26953   ;
26954   return 0;
26955 }
26956 _ACEOF
26957 if ac_fn_c_try_compile "$LINENO"; then :
26958   bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
26959 else
26960   bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
26961
26962 fi
26963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26964 fi
26965
26966  if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
26967
26968 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
26969
26970  fi
26971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
26972 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
26973
26974   fi
26975
26976
26977 # Check the return and argument types of ptrace.
26978
26979
26980 for ac_header in sys/ptrace.h ptrace.h
26981 do :
26982   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26983 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26984 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26985   cat >>confdefs.h <<_ACEOF
26986 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26987 _ACEOF
26988
26989 fi
26990
26991 done
26992
26993
26994 gdb_ptrace_headers='
26995 #include <sys/types.h>
26996 #if HAVE_SYS_PTRACE_H
26997 # include <sys/ptrace.h>
26998 #endif
26999 #if HAVE_UNISTD_H
27000 # include <unistd.h>
27001 #endif
27002 '
27003
27004 # Check return type.  Varargs (used on GNU/Linux) conflict with the
27005 # empty argument list, so check for that explicitly.
27006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
27007 $as_echo_n "checking return type of ptrace... " >&6; }
27008 if ${gdb_cv_func_ptrace_ret+:} false; then :
27009   $as_echo_n "(cached) " >&6
27010 else
27011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27012 /* end confdefs.h.  */
27013  $gdb_ptrace_headers
27014 int
27015 main ()
27016 {
27017 extern long ptrace (enum __ptrace_request, ...);
27018
27019   ;
27020   return 0;
27021 }
27022 _ACEOF
27023 if ac_fn_c_try_compile "$LINENO"; then :
27024   gdb_cv_func_ptrace_ret='long'
27025 else
27026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27027 /* end confdefs.h.  */
27028 $gdb_ptrace_headers
27029 int
27030 main ()
27031 {
27032 extern int ptrace ();
27033
27034   ;
27035   return 0;
27036 }
27037 _ACEOF
27038 if ac_fn_c_try_compile "$LINENO"; then :
27039   gdb_cv_func_ptrace_ret='int'
27040 else
27041   gdb_cv_func_ptrace_ret='long'
27042
27043 fi
27044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27045
27046 fi
27047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27048
27049 fi
27050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
27051 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
27052
27053
27054 cat >>confdefs.h <<_ACEOF
27055 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
27056 _ACEOF
27057
27058
27059 # Check argument types.
27060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
27061 $as_echo_n "checking types of arguments for ptrace... " >&6; }
27062 if ${gdb_cv_func_ptrace_args+:} false; then :
27063   $as_echo_n "(cached) " >&6
27064 else
27065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27066 /* end confdefs.h.  */
27067 $gdb_ptrace_headers
27068 int
27069 main ()
27070 {
27071 extern long ptrace (enum __ptrace_request, ...);
27072
27073   ;
27074   return 0;
27075 }
27076 _ACEOF
27077 if ac_fn_c_try_compile "$LINENO"; then :
27078   gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
27079 else
27080   for gdb_arg1 in 'int' 'long'; do
27081         for gdb_arg2 in 'pid_t' 'int' 'long'; do
27082           for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
27083             for gdb_arg4 in 'int' 'long' 'void *'; do
27084               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27085 /* end confdefs.h.  */
27086 $gdb_ptrace_headers
27087 int
27088 main ()
27089 {
27090 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
27091
27092   ;
27093   return 0;
27094 }
27095 _ACEOF
27096 if ac_fn_c_try_compile "$LINENO"; then :
27097   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
27098                  break 4;
27099
27100 fi
27101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27102
27103               for gdb_arg5 in 'int *' 'int' 'long'; do
27104                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27105 /* end confdefs.h.  */
27106 $gdb_ptrace_headers
27107 int
27108 main ()
27109 {
27110 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
27111
27112   ;
27113   return 0;
27114 }
27115 _ACEOF
27116 if ac_fn_c_try_compile "$LINENO"; then :
27117   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
27118                    break 5;
27119
27120 fi
27121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27122               done
27123             done
27124           done
27125         done
27126       done
27127       # Provide a safe default value.
27128       : ${gdb_cv_func_ptrace_args='int,int,long,long'}
27129
27130 fi
27131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27132
27133 fi
27134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
27135 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
27136
27137 ac_save_IFS=$IFS; IFS=','
27138 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
27139 IFS=$ac_save_IFS
27140 shift
27141
27142 cat >>confdefs.h <<_ACEOF
27143 #define PTRACE_TYPE_ARG1 $1
27144 _ACEOF
27145
27146
27147 cat >>confdefs.h <<_ACEOF
27148 #define PTRACE_TYPE_ARG3 $3
27149 _ACEOF
27150
27151
27152 cat >>confdefs.h <<_ACEOF
27153 #define PTRACE_TYPE_ARG4 $4
27154 _ACEOF
27155
27156 if test -n "$5"; then
27157
27158 cat >>confdefs.h <<_ACEOF
27159 #define PTRACE_TYPE_ARG5 $5
27160 _ACEOF
27161
27162 fi
27163
27164
27165 if test "$cross_compiling" = no; then
27166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27167 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27168 if ${ac_cv_func_setpgrp_void+:} false; then :
27169   $as_echo_n "(cached) " >&6
27170 else
27171   if test "$cross_compiling" = yes; then :
27172   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
27173 else
27174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27175 /* end confdefs.h.  */
27176 $ac_includes_default
27177 int
27178 main ()
27179 {
27180 /* If this system has a BSD-style setpgrp which takes arguments,
27181   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
27182   exit successfully. */
27183   return setpgrp (1,1) != -1;
27184   ;
27185   return 0;
27186 }
27187 _ACEOF
27188 if ac_fn_c_try_run "$LINENO"; then :
27189   ac_cv_func_setpgrp_void=no
27190 else
27191   ac_cv_func_setpgrp_void=yes
27192 fi
27193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27194   conftest.$ac_objext conftest.beam conftest.$ac_ext
27195 fi
27196
27197 fi
27198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
27199 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
27200 if test $ac_cv_func_setpgrp_void = yes; then
27201
27202 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
27203
27204 fi
27205
27206 else
27207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27208 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27209 if ${ac_cv_func_setpgrp_void+:} false; then :
27210   $as_echo_n "(cached) " >&6
27211 else
27212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27213 /* end confdefs.h.  */
27214 #include <unistd.h>
27215 int
27216 main ()
27217 {
27218 if (setpgrp(1,1) == -1)
27219              exit (0);
27220            else
27221              exit (1);
27222
27223   ;
27224   return 0;
27225 }
27226 _ACEOF
27227 if ac_fn_c_try_compile "$LINENO"; then :
27228   ac_cv_func_setpgrp_void=no
27229 else
27230   ac_cv_func_setpgrp_void=yes
27231
27232 fi
27233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27234
27235 fi
27236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
27237 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
27238 if test "$ac_cv_func_setpgrp_void" = yes; then
27239   $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
27240
27241 fi
27242 fi
27243
27244 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
27245 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
27246 #include <sys/proc.h>
27247
27248 "
27249 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes; then :
27250
27251 cat >>confdefs.h <<_ACEOF
27252 #define HAVE_STRUCT_THREAD_TD_PCB 1
27253 _ACEOF
27254
27255
27256 fi
27257
27258
27259 # See if <sys/lwp.h> defines `struct lwp`.
27260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
27261 $as_echo_n "checking for struct lwp... " >&6; }
27262 if ${gdb_cv_struct_lwp+:} false; then :
27263   $as_echo_n "(cached) " >&6
27264 else
27265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27266 /* end confdefs.h.  */
27267 #include <sys/param.h>
27268          #define _KMEMUSER
27269          #include <sys/lwp.h>
27270 int
27271 main ()
27272 {
27273 struct lwp l;
27274
27275   ;
27276   return 0;
27277 }
27278 _ACEOF
27279 if ac_fn_c_try_compile "$LINENO"; then :
27280   gdb_cv_struct_lwp=yes
27281 else
27282   gdb_cv_struct_lwp=no
27283
27284 fi
27285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27286
27287 fi
27288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
27289 $as_echo "$gdb_cv_struct_lwp" >&6; }
27290 if test "$gdb_cv_struct_lwp" = yes; then
27291
27292 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
27293
27294 fi
27295
27296 # See if <machine/reg.h> degines `struct reg'.
27297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
27298 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
27299 if ${gdb_cv_struct_reg+:} false; then :
27300   $as_echo_n "(cached) " >&6
27301 else
27302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27303 /* end confdefs.h.  */
27304 #include <sys/types.h>
27305          #include <machine/reg.h>
27306 int
27307 main ()
27308 {
27309 struct reg r;
27310
27311   ;
27312   return 0;
27313 }
27314 _ACEOF
27315 if ac_fn_c_try_compile "$LINENO"; then :
27316   gdb_cv_struct_reg=yes
27317 else
27318   gdb_cv_struct_reg=no
27319
27320 fi
27321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27322
27323 fi
27324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
27325 $as_echo "$gdb_cv_struct_reg" >&6; }
27326 if test "$gdb_cv_struct_reg" = yes; then
27327
27328 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
27329
27330 fi
27331
27332 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
27333 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
27334 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
27335 #include <machine/reg.h>
27336 "
27337 if test "x$ac_cv_member_struct_reg_r_fs" = xyes; then :
27338
27339 cat >>confdefs.h <<_ACEOF
27340 #define HAVE_STRUCT_REG_R_FS 1
27341 _ACEOF
27342
27343
27344 fi
27345 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
27346 #include <machine/reg.h>
27347 "
27348 if test "x$ac_cv_member_struct_reg_r_gs" = xyes; then :
27349
27350 cat >>confdefs.h <<_ACEOF
27351 #define HAVE_STRUCT_REG_R_GS 1
27352 _ACEOF
27353
27354
27355 fi
27356
27357
27358 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
27360 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
27361 if ${gdb_cv_have_ptrace_getregs+:} false; then :
27362   $as_echo_n "(cached) " >&6
27363 else
27364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27365 /* end confdefs.h.  */
27366 #include <sys/ptrace.h>
27367 int
27368 main ()
27369 {
27370 PTRACE_GETREGS;
27371   ;
27372   return 0;
27373 }
27374 _ACEOF
27375 if ac_fn_c_try_compile "$LINENO"; then :
27376   gdb_cv_have_ptrace_getregs=yes
27377 else
27378   gdb_cv_have_ptrace_getregs=no
27379
27380 fi
27381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27382
27383 fi
27384
27385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
27386 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
27387 if test "$gdb_cv_have_ptrace_getregs" = yes; then
27388
27389 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
27390
27391 fi
27392
27393 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
27394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
27395 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
27396 if ${gdb_cv_have_ptrace_getfpxregs+:} false; then :
27397   $as_echo_n "(cached) " >&6
27398 else
27399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27400 /* end confdefs.h.  */
27401 #include <sys/ptrace.h>
27402 int
27403 main ()
27404 {
27405 PTRACE_GETFPXREGS;
27406   ;
27407   return 0;
27408 }
27409 _ACEOF
27410 if ac_fn_c_try_compile "$LINENO"; then :
27411   gdb_cv_have_ptrace_getfpxregs=yes
27412 else
27413   gdb_cv_have_ptrace_getfpxregs=no
27414
27415 fi
27416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27417
27418 fi
27419
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
27421 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
27422 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
27423
27424 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
27425
27426 fi
27427
27428 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
27429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
27430 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
27431 if ${gdb_cv_have_pt_getdbregs+:} false; then :
27432   $as_echo_n "(cached) " >&6
27433 else
27434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27435 /* end confdefs.h.  */
27436 #include <sys/types.h>
27437          #include <sys/ptrace.h>
27438 int
27439 main ()
27440 {
27441 PT_GETDBREGS;
27442
27443   ;
27444   return 0;
27445 }
27446 _ACEOF
27447 if ac_fn_c_try_compile "$LINENO"; then :
27448   gdb_cv_have_pt_getdbregs=yes
27449 else
27450   gdb_cv_have_pt_getdbregs=no
27451
27452 fi
27453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27454
27455 fi
27456
27457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
27458 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
27459 if test "$gdb_cv_have_pt_getdbregs" = yes; then
27460
27461 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
27462
27463 fi
27464
27465 # See if <sys/ptrace.h> supports LWP names on FreeBSD
27466 # Older FreeBSD versions don't have the pl_tdname member of
27467 # `struct ptrace_lwpinfo'.
27468 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
27469 "
27470 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes; then :
27471
27472 cat >>confdefs.h <<_ACEOF
27473 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
27474 _ACEOF
27475
27476
27477 fi
27478
27479
27480 # See if <sys/ptrace.h> supports syscall fields on FreeBSD.  The
27481 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
27482 # FreeBSD 10.3.
27483 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_syscall_code" "ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" "#include <sys/ptrace.h>
27484 "
27485 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes; then :
27486
27487 cat >>confdefs.h <<_ACEOF
27488 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
27489 _ACEOF
27490
27491
27492 fi
27493
27494
27495 # Check if the compiler supports the `long long' type.
27496
27497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
27498 $as_echo_n "checking for long long support in compiler... " >&6; }
27499 if ${gdb_cv_c_long_long+:} false; then :
27500   $as_echo_n "(cached) " >&6
27501 else
27502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27503 /* end confdefs.h.  */
27504 extern long long foo;
27505 int
27506 main ()
27507 {
27508 switch (foo & 2) { case 0: return 1; }
27509   ;
27510   return 0;
27511 }
27512 _ACEOF
27513 if ac_fn_c_try_compile "$LINENO"; then :
27514   gdb_cv_c_long_long=yes
27515 else
27516   gdb_cv_c_long_long=no
27517 fi
27518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27519 fi
27520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
27521 $as_echo "$gdb_cv_c_long_long" >&6; }
27522 if test "$gdb_cv_c_long_long" != yes; then
27523   # libdecnumber requires long long.
27524   as_fn_error $? "Compiler must support long long for GDB." "$LINENO" 5
27525 fi
27526
27527 # Check if the compiler and runtime support printing decfloats.
27528
27529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
27530 $as_echo_n "checking for decfloat support in printf... " >&6; }
27531 if ${gdb_cv_printf_has_decfloat+:} false; then :
27532   $as_echo_n "(cached) " >&6
27533 else
27534   if test "$cross_compiling" = yes; then :
27535   gdb_cv_printf_has_decfloat=no
27536 else
27537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27538 /* end confdefs.h.  */
27539 $ac_includes_default
27540 int
27541 main ()
27542 {
27543 char buf[64];
27544   _Decimal32 d32 = 1.2345df;
27545   _Decimal64 d64 = 1.2345dd;
27546   _Decimal128 d128 = 1.2345dl;
27547   sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
27548   return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
27549   ;
27550   return 0;
27551 }
27552 _ACEOF
27553 if ac_fn_c_try_run "$LINENO"; then :
27554   gdb_cv_printf_has_decfloat=yes
27555 else
27556   gdb_cv_printf_has_decfloat=no
27557 fi
27558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27559   conftest.$ac_objext conftest.beam conftest.$ac_ext
27560 fi
27561
27562 fi
27563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
27564 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
27565 if test "$gdb_cv_printf_has_decfloat" = yes; then
27566
27567 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
27568
27569 fi
27570
27571 # Check if the compiler supports the `long double' type.  We can't use
27572 # AC_C_LONG_DOUBLE because that one does additional checks on the
27573 # constants defined in <float.h> that fail on some systems,
27574 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
27575
27576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
27577 $as_echo_n "checking for long double support in compiler... " >&6; }
27578 if ${gdb_cv_c_long_double+:} false; then :
27579   $as_echo_n "(cached) " >&6
27580 else
27581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27582 /* end confdefs.h.  */
27583 long double foo;
27584 _ACEOF
27585 if ac_fn_c_try_compile "$LINENO"; then :
27586   gdb_cv_c_long_double=yes
27587 else
27588   gdb_cv_c_long_double=no
27589 fi
27590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27591 fi
27592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
27593 $as_echo "$gdb_cv_c_long_double" >&6; }
27594 if test "$gdb_cv_c_long_double" = yes; then
27595
27596 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
27597
27598 fi
27599
27600 # Check if the compiler and runtime support printing long doubles.
27601
27602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
27603 $as_echo_n "checking for long double support in printf... " >&6; }
27604 if ${gdb_cv_printf_has_long_double+:} false; then :
27605   $as_echo_n "(cached) " >&6
27606 else
27607   if test "$cross_compiling" = yes; then :
27608   gdb_cv_printf_has_long_double=no
27609 else
27610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27611 /* end confdefs.h.  */
27612 $ac_includes_default
27613 int
27614 main ()
27615 {
27616 char buf[16];
27617   long double f = 3.141592653;
27618   sprintf (buf, "%Lg", f);
27619   return (strncmp ("3.14159", buf, 7));
27620   ;
27621   return 0;
27622 }
27623 _ACEOF
27624 if ac_fn_c_try_run "$LINENO"; then :
27625   gdb_cv_printf_has_long_double=yes
27626 else
27627   gdb_cv_printf_has_long_double=no
27628 fi
27629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27630   conftest.$ac_objext conftest.beam conftest.$ac_ext
27631 fi
27632
27633 fi
27634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
27635 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
27636 if test "$gdb_cv_printf_has_long_double" = yes; then
27637
27638 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
27639
27640 fi
27641
27642 # Check if the compiler and runtime support scanning long doubles.
27643
27644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
27645 $as_echo_n "checking for long double support in scanf... " >&6; }
27646 if ${gdb_cv_scanf_has_long_double+:} false; then :
27647   $as_echo_n "(cached) " >&6
27648 else
27649   if test "$cross_compiling" = yes; then :
27650   gdb_cv_scanf_has_long_double=no
27651 else
27652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27653 /* end confdefs.h.  */
27654 #include <stdio.h>
27655 int
27656 main ()
27657 {
27658 char *buf = "3.141592653";
27659   long double f = 0;
27660   sscanf (buf, "%Lg", &f);
27661   return !(f > 3.14159 && f < 3.14160);
27662   ;
27663   return 0;
27664 }
27665 _ACEOF
27666 if ac_fn_c_try_run "$LINENO"; then :
27667   gdb_cv_scanf_has_long_double=yes
27668 else
27669   gdb_cv_scanf_has_long_double=no
27670 fi
27671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27672   conftest.$ac_objext conftest.beam conftest.$ac_ext
27673 fi
27674
27675 fi
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
27677 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
27678 if test "$gdb_cv_scanf_has_long_double" = yes; then
27679
27680 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
27681
27682 fi
27683
27684 case ${host_os} in
27685 aix*)
27686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
27687 $as_echo_n "checking for -bbigtoc option... " >&6; }
27688 if ${gdb_cv_bigtoc+:} false; then :
27689   $as_echo_n "(cached) " >&6
27690 else
27691   SAVE_LDFLAGS=$LDFLAGS
27692
27693      case $GCC in
27694        yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
27695        *) gdb_cv_bigtoc=-bbigtoc ;;
27696      esac
27697
27698      LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
27699      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27700 /* end confdefs.h.  */
27701
27702 int
27703 main ()
27704 {
27705 int i;
27706   ;
27707   return 0;
27708 }
27709 _ACEOF
27710 if ac_fn_c_try_link "$LINENO"; then :
27711
27712 else
27713   gdb_cv_bigtoc=
27714
27715 fi
27716 rm -f core conftest.err conftest.$ac_objext \
27717     conftest$ac_exeext conftest.$ac_ext
27718      LDFLAGS="${SAVE_LDFLAGS}"
27719
27720 fi
27721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
27722 $as_echo "$gdb_cv_bigtoc" >&6; }
27723   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
27724   ;;
27725 esac
27726
27727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
27728 $as_echo_n "checking for the dynamic export flag... " >&6; }
27729 dynamic_list=false
27730 if test "${gdb_native}" = yes; then
27731    # The dynamically loaded libthread_db needs access to symbols in the gdb
27732    # executable.  Older GNU ld supports --export-dynamic but --dynamic-list
27733    # may not be supported there.
27734    old_LDFLAGS="$LDFLAGS"
27735    # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
27736    RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
27737    LDFLAGS="$LDFLAGS $RDYNAMIC"
27738    if test "${have_libpython}" = no; then
27739      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27740 /* end confdefs.h.  */
27741
27742 int
27743 main ()
27744 {
27745
27746   ;
27747   return 0;
27748 }
27749 _ACEOF
27750 if ac_fn_c_try_link "$LINENO"; then :
27751   dynamic_list=true
27752 fi
27753 rm -f core conftest.err conftest.$ac_objext \
27754     conftest$ac_exeext conftest.$ac_ext
27755    else
27756      # Workaround http://bugs.python.org/issue4434 where static
27757      # libpythonX.Y.a would get its symbols required for
27758      # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
27759      # Problem does not happen for the recommended libpythonX.Y.so linkage.
27760
27761      # Note the workaround for Python
27762      # http://bugs.python.org/issue10112 earlier has removed
27763      # -export-dynamic from PYTHON_LIBS.  That's exactly what we want
27764      # here too, as otherwise it'd make this -Wl,--dynamic-list test
27765      # always pass.
27766      old_CFLAGS="$CFLAGS"
27767      CFLAGS="$CFLAGS $PYTHON_CFLAGS"
27768      old_LIBS="$LIBS"
27769      LIBS="$LIBS $PYTHON_LIBS"
27770      old_CPPFLAGS="$CPPFLAGS"
27771      CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
27772      if test "$cross_compiling" = yes; then :
27773   true
27774 else
27775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27776 /* end confdefs.h.  */
27777 #include "Python.h"
27778 int
27779 main ()
27780 {
27781 int err;
27782           Py_Initialize ();
27783           err = PyRun_SimpleString ("import ctypes\n");
27784           Py_Finalize ();
27785           return err == 0 ? 0 : 1;
27786   ;
27787   return 0;
27788 }
27789 _ACEOF
27790 if ac_fn_c_try_run "$LINENO"; then :
27791   dynamic_list=true
27792 fi
27793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27794   conftest.$ac_objext conftest.beam conftest.$ac_ext
27795 fi
27796
27797      LIBS="$old_LIBS"
27798      CFLAGS="$old_CFLAGS"
27799      CPPFLAGS="$old_CPPFLAGS"
27800    fi
27801    LDFLAGS="$old_LDFLAGS"
27802 fi
27803 if $dynamic_list; then
27804   found="-Wl,--dynamic-list"
27805   RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
27806 else
27807   found="-rdynamic"
27808   RDYNAMIC="-rdynamic"
27809 fi
27810
27811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
27812 $as_echo "$found" >&6; }
27813
27814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether execinfo.h backtrace is available" >&5
27815 $as_echo_n "checking whether execinfo.h backtrace is available... " >&6; }
27816 if ${gdb_cv_execinfo_backtrace+:} false; then :
27817   $as_echo_n "(cached) " >&6
27818 else
27819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27820 /* end confdefs.h.  */
27821
27822          #include <execinfo.h>
27823
27824 int
27825 main ()
27826 {
27827
27828          int f;
27829          void *b[2];
27830          f = backtrace (b, 2);
27831          backtrace_symbols_fd (b, f, 2);
27832
27833   ;
27834   return 0;
27835 }
27836 _ACEOF
27837 if ac_fn_c_try_link "$LINENO"; then :
27838   gdb_cv_execinfo_backtrace=yes
27839 else
27840   gdb_cv_execinfo_backtrace=no
27841 fi
27842 rm -f core conftest.err conftest.$ac_objext \
27843     conftest$ac_exeext conftest.$ac_ext
27844 fi
27845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_execinfo_backtrace" >&5
27846 $as_echo "$gdb_cv_execinfo_backtrace" >&6; }
27847 if test "$gdb_cv_execinfo_backtrace" = yes; then
27848
27849 $as_echo "#define HAVE_EXECINFO_BACKTRACE 1" >>confdefs.h
27850
27851 fi
27852
27853
27854 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
27855    case ${host_os} in
27856    aix*)
27857       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
27858 $as_echo_n "checking for AiX thread debugging library... " >&6; }
27859       if ${gdb_cv_have_aix_thread_debug+:} false; then :
27860   $as_echo_n "(cached) " >&6
27861 else
27862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27863 /* end confdefs.h.  */
27864 #include <sys/pthdebug.h>
27865 int
27866 main ()
27867 {
27868 #ifndef PTHDB_VERSION_3
27869                #error
27870                #endif
27871
27872   ;
27873   return 0;
27874 }
27875 _ACEOF
27876 if ac_fn_c_try_compile "$LINENO"; then :
27877   gdb_cv_have_aix_thread_debug=yes
27878 else
27879   gdb_cv_have_aix_thread_debug=no
27880
27881 fi
27882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27883
27884 fi
27885
27886       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
27887 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
27888       if test "$gdb_cv_have_aix_thread_debug" = yes; then
27889          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
27890          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
27891          LIBS="$LIBS -lpthdebug"
27892
27893          # Older versions of AIX do not provide the declaration for
27894          # the getthrds function (it appears that it was introduced
27895          # with AIX 6.x).
27896          ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
27897 "
27898 if test "x$ac_cv_have_decl_getthrds" = xyes; then :
27899   ac_have_decl=1
27900 else
27901   ac_have_decl=0
27902 fi
27903
27904 cat >>confdefs.h <<_ACEOF
27905 #define HAVE_DECL_GETTHRDS $ac_have_decl
27906 _ACEOF
27907
27908       fi
27909       ;;
27910    esac
27911
27912 fi
27913
27914 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
27915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
27916 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
27917 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false; then :
27918   $as_echo_n "(cached) " >&6
27919 else
27920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27921 /* end confdefs.h.  */
27922 #include <thread_db.h>
27923 int
27924 main ()
27925 {
27926 int i = TD_NOTALLOC;
27927
27928   ;
27929   return 0;
27930 }
27931 _ACEOF
27932 if ac_fn_c_try_compile "$LINENO"; then :
27933   gdb_cv_thread_db_h_has_td_notalloc=yes
27934 else
27935   gdb_cv_thread_db_h_has_td_notalloc=no
27936
27937 fi
27938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27939
27940 fi
27941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
27942 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
27943
27944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
27945 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
27946 if ${gdb_cv_thread_db_h_has_td_version+:} false; then :
27947   $as_echo_n "(cached) " >&6
27948 else
27949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27950 /* end confdefs.h.  */
27951 #include <thread_db.h>
27952 int
27953 main ()
27954 {
27955 int i = TD_VERSION;
27956
27957   ;
27958   return 0;
27959 }
27960 _ACEOF
27961 if ac_fn_c_try_compile "$LINENO"; then :
27962   gdb_cv_thread_db_h_has_td_version=yes
27963 else
27964   gdb_cv_thread_db_h_has_td_version=no
27965
27966 fi
27967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27968
27969 fi
27970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
27971 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
27972
27973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
27974 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
27975 if ${gdb_cv_thread_db_h_has_td_notls+:} false; then :
27976   $as_echo_n "(cached) " >&6
27977 else
27978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27979 /* end confdefs.h.  */
27980 #include <thread_db.h>
27981 int
27982 main ()
27983 {
27984 int i = TD_NOTLS;
27985
27986   ;
27987   return 0;
27988 }
27989 _ACEOF
27990 if ac_fn_c_try_compile "$LINENO"; then :
27991   gdb_cv_thread_db_h_has_td_notls=yes
27992 else
27993   gdb_cv_thread_db_h_has_td_notls=no
27994
27995 fi
27996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27997
27998 fi
27999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
28000 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
28001 fi
28002 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
28003
28004 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
28005
28006 fi
28007 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
28008
28009 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
28010
28011 fi
28012 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
28013
28014 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
28015
28016 fi
28017
28018 case $host_os in
28019   go32* | *djgpp*)
28020     gdbinit=gdb.ini
28021     ;;
28022   *)
28023     gdbinit=.gdbinit
28024     ;;
28025 esac
28026
28027 cat >>confdefs.h <<_ACEOF
28028 #define GDBINIT "$gdbinit"
28029 _ACEOF
28030
28031
28032
28033 cat >>confdefs.h <<_ACEOF
28034 #define GDBEARLYINIT ".gdbearlyinit"
28035 _ACEOF
28036
28037
28038
28039 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
28040 # except that the argument to --with-sysroot is optional.
28041 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
28042 if test "x$with_sysroot" = xyes; then
28043   with_sysroot="${exec_prefix}/${target_alias}/sys-root"
28044 fi
28045
28046 # Check whether --with-sysroot was given.
28047 if test "${with_sysroot+set}" = set; then :
28048   withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
28049 else
28050   TARGET_SYSTEM_ROOT=
28051 fi
28052
28053
28054   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
28055   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28056   ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
28057   ac_define_dir=`eval echo $ac_define_dir`
28058
28059 cat >>confdefs.h <<_ACEOF
28060 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
28061 _ACEOF
28062
28063
28064
28065
28066   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
28067      if test "x$prefix" = xNONE; then
28068         test_prefix=/usr/local
28069      else
28070         test_prefix=$prefix
28071      fi
28072   else
28073      test_prefix=$exec_prefix
28074   fi
28075   value=0
28076   case ${ac_define_dir} in
28077      "${test_prefix}"|"${test_prefix}/"*|\
28078         '${exec_prefix}'|'${exec_prefix}/'*)
28079      value=1
28080      ;;
28081   esac
28082
28083 cat >>confdefs.h <<_ACEOF
28084 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
28085 _ACEOF
28086
28087
28088
28089
28090
28091 # Check whether --with-system-gdbinit was given.
28092 if test "${with_system_gdbinit+set}" = set; then :
28093   withval=$with_system_gdbinit;
28094     SYSTEM_GDBINIT=$withval
28095 else
28096   SYSTEM_GDBINIT=
28097 fi
28098
28099
28100   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
28101   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28102   ac_define_dir=`eval echo $SYSTEM_GDBINIT`
28103   ac_define_dir=`eval echo $ac_define_dir`
28104
28105 cat >>confdefs.h <<_ACEOF
28106 #define SYSTEM_GDBINIT "$ac_define_dir"
28107 _ACEOF
28108
28109
28110
28111
28112   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
28113      if test "x$prefix" = xNONE; then
28114         test_prefix=/usr/local
28115      else
28116         test_prefix=$prefix
28117      fi
28118   else
28119      test_prefix=$exec_prefix
28120   fi
28121   value=0
28122   case ${ac_define_dir} in
28123      "${test_prefix}"|"${test_prefix}/"*|\
28124         '${exec_prefix}'|'${exec_prefix}/'*)
28125      value=1
28126      ;;
28127   esac
28128
28129 cat >>confdefs.h <<_ACEOF
28130 #define SYSTEM_GDBINIT_RELOCATABLE $value
28131 _ACEOF
28132
28133
28134
28135
28136
28137 # Check whether --with-system-gdbinit-dir was given.
28138 if test "${with_system_gdbinit_dir+set}" = set; then :
28139   withval=$with_system_gdbinit_dir;
28140     SYSTEM_GDBINIT_DIR=$withval
28141 else
28142   SYSTEM_GDBINIT_DIR=
28143 fi
28144
28145
28146   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
28147   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28148   ac_define_dir=`eval echo $SYSTEM_GDBINIT_DIR`
28149   ac_define_dir=`eval echo $ac_define_dir`
28150
28151 cat >>confdefs.h <<_ACEOF
28152 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
28153 _ACEOF
28154
28155
28156
28157
28158   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
28159      if test "x$prefix" = xNONE; then
28160         test_prefix=/usr/local
28161      else
28162         test_prefix=$prefix
28163      fi
28164   else
28165      test_prefix=$exec_prefix
28166   fi
28167   value=0
28168   case ${ac_define_dir} in
28169      "${test_prefix}"|"${test_prefix}/"*|\
28170         '${exec_prefix}'|'${exec_prefix}/'*)
28171      value=1
28172      ;;
28173   esac
28174
28175 cat >>confdefs.h <<_ACEOF
28176 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
28177 _ACEOF
28178
28179
28180
28181
28182
28183
28184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
28185 $as_echo_n "checking the compiler type... " >&6; }
28186 if ${gdb_cv_compiler_type+:} false; then :
28187   $as_echo_n "(cached) " >&6
28188 else
28189   gdb_cv_compiler_type=unknown
28190   if test "$gdb_cv_compiler_type" = unknown; then
28191      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28192 /* end confdefs.h.  */
28193
28194 int
28195 main ()
28196 {
28197
28198                           #if !defined __GNUC__ || defined __clang__
28199                           #error not gcc
28200                           #endif
28201
28202   ;
28203   return 0;
28204 }
28205 _ACEOF
28206 if ac_fn_c_try_compile "$LINENO"; then :
28207   gdb_cv_compiler_type=gcc
28208 fi
28209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28210   fi
28211
28212   if test "$gdb_cv_compiler_type" = unknown; then
28213      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28214 /* end confdefs.h.  */
28215
28216 int
28217 main ()
28218 {
28219
28220                           #ifndef __clang__
28221                           #error not clang
28222                           #endif
28223
28224   ;
28225   return 0;
28226 }
28227 _ACEOF
28228 if ac_fn_c_try_compile "$LINENO"; then :
28229   gdb_cv_compiler_type=clang
28230 fi
28231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28232   fi
28233
28234 fi
28235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
28236 $as_echo "$gdb_cv_compiler_type" >&6; }
28237
28238  GDB_COMPILER_TYPE="$gdb_cv_compiler_type"
28239
28240
28241 # Check whether --enable-werror was given.
28242 if test "${enable_werror+set}" = set; then :
28243   enableval=$enable_werror; case "${enableval}" in
28244      yes | y) ERROR_ON_WARNING="yes" ;;
28245      no | n)  ERROR_ON_WARNING="no" ;;
28246      *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
28247    esac
28248 fi
28249
28250
28251 # Enable -Werror by default when using gcc.  Turn it off for releases.
28252 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
28253     ERROR_ON_WARNING=yes
28254 fi
28255
28256 WERROR_CFLAGS=""
28257 if test "${ERROR_ON_WARNING}" = yes ; then
28258     WERROR_CFLAGS="-Werror"
28259 fi
28260
28261 # The options we'll try to enable.
28262 build_warnings="-Wall -Wpointer-arith \
28263 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
28264 -Wno-switch -Wno-char-subscripts \
28265 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
28266 -Wno-sign-compare -Wno-error=maybe-uninitialized \
28267 -Wno-mismatched-tags \
28268 -Wno-error=deprecated-register \
28269 -Wsuggest-override \
28270 -Wimplicit-fallthrough=3 \
28271 -Wduplicated-cond \
28272 -Wshadow=local \
28273 -Wdeprecated-copy \
28274 -Wdeprecated-copy-dtor \
28275 -Wredundant-move \
28276 -Wmissing-declarations \
28277 -Wstrict-null-sentinel \
28278 "
28279
28280 # The -Wmissing-prototypes flag will be accepted by GCC, but results
28281 # in a warning being printed about the flag not being valid for C++,
28282 # this is something to do with using ccache, and argument ordering.
28283 if test "$GDB_COMPILER_TYPE" != gcc; then
28284   build_warnings="$build_warnings -Wmissing-prototypes"
28285 fi
28286
28287 case "${host}" in
28288   *-*-mingw32*)
28289     # Enable -Wno-format by default when using gcc on mingw since many
28290     # GCC versions complain about %I64.
28291     build_warnings="$build_warnings -Wno-format" ;;
28292   *-*-solaris*)
28293     # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
28294     # doesn't understand.
28295     build_warnings="$build_warnings -Wno-unknown-pragmas"
28296     # Solaris 11 <unistd.h> marks vfork deprecated.
28297     build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
28298   *)
28299     # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
28300     # but there's a special case for this below.
28301     build_warnings="$build_warnings -Wformat-nonliteral" ;;
28302 esac
28303
28304 # Check whether --enable-build-warnings was given.
28305 if test "${enable_build_warnings+set}" = set; then :
28306   enableval=$enable_build_warnings; case "${enableval}" in
28307   yes)  ;;
28308   no)   build_warnings="-w";;
28309   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
28310         build_warnings="${build_warnings} ${t}";;
28311   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
28312         build_warnings="${t} ${build_warnings}";;
28313   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
28314 esac
28315 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
28316   echo "Setting compiler warning flags = $build_warnings" 6>&1
28317 fi
28318 fi
28319 # Check whether --enable-gdb-build-warnings was given.
28320 if test "${enable_gdb_build_warnings+set}" = set; then :
28321   enableval=$enable_gdb_build_warnings; case "${enableval}" in
28322   yes)  ;;
28323   no)   build_warnings="-w";;
28324   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
28325         build_warnings="${build_warnings} ${t}";;
28326   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
28327         build_warnings="${t} ${build_warnings}";;
28328   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
28329 esac
28330 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
28331   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
28332 fi
28333 fi
28334
28335 # The set of warnings supported by a C++ compiler is not the same as
28336 # of the C compiler.
28337 ac_ext=cpp
28338 ac_cpp='$CXXCPP $CPPFLAGS'
28339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28342
28343
28344 WARN_CFLAGS=""
28345 if test "x${build_warnings}" != x -a "x$GCC" = xyes
28346 then
28347     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
28348 $as_echo_n "checking compiler warning flags... " >&6; }
28349     # Separate out the -Werror flag as some files just cannot be
28350     # compiled with it enabled.
28351     for w in ${build_warnings}; do
28352         # GCC does not complain about -Wno-unknown-warning.  Invert
28353         # and test -Wunknown-warning instead.
28354         case $w in
28355         -Wno-*)
28356                 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
28357         -Wformat-nonliteral)
28358                 # gcc requires -Wformat before -Wformat-nonliteral
28359                 # will work, so stick them together.
28360                 w="-Wformat $w"
28361                 wtest="$w"
28362                 ;;
28363         *)
28364                 wtest=$w ;;
28365         esac
28366
28367         case $w in
28368         -Werr*) WERROR_CFLAGS=-Werror ;;
28369         *)
28370             # Check whether GCC accepts it.
28371             saved_CFLAGS="$CFLAGS"
28372             CFLAGS="$CFLAGS -Werror $wtest"
28373             saved_CXXFLAGS="$CXXFLAGS"
28374             CXXFLAGS="$CXXFLAGS -Werror $wtest"
28375             if test "x$w" = "x-Wunused-variable"; then
28376               # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
28377               # fixed in GCC 4.9.  This test is derived from the gdb
28378               # source code that triggered this bug in GCC.
28379               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28380 /* end confdefs.h.  */
28381 struct scoped_restore_base {};
28382                     struct scoped_restore_tmpl : public scoped_restore_base {
28383                       ~scoped_restore_tmpl() {}
28384                     };
28385 int
28386 main ()
28387 {
28388 const scoped_restore_base &b = scoped_restore_tmpl();
28389
28390   ;
28391   return 0;
28392 }
28393 _ACEOF
28394 if ac_fn_cxx_try_compile "$LINENO"; then :
28395   WARN_CFLAGS="${WARN_CFLAGS} $w"
28396 fi
28397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28398             else
28399               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28400 /* end confdefs.h.  */
28401
28402 int
28403 main ()
28404 {
28405
28406   ;
28407   return 0;
28408 }
28409 _ACEOF
28410 if ac_fn_cxx_try_compile "$LINENO"; then :
28411   WARN_CFLAGS="${WARN_CFLAGS} $w"
28412 fi
28413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28414             fi
28415             CFLAGS="$saved_CFLAGS"
28416             CXXFLAGS="$saved_CXXFLAGS"
28417         esac
28418     done
28419     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
28420 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
28421 fi
28422
28423
28424
28425 ac_ext=c
28426 ac_cpp='$CPP $CPPFLAGS'
28427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28430
28431
28432
28433 # Check whether --enable-ubsan was given.
28434 if test "${enable_ubsan+set}" = set; then :
28435   enableval=$enable_ubsan;
28436 else
28437   enable_ubsan=no
28438 fi
28439
28440 if test "x$enable_ubsan" = xauto; then
28441   if $development; then
28442     enable_ubsan=yes
28443   fi
28444 fi
28445 ac_ext=cpp
28446 ac_cpp='$CXXCPP $CPPFLAGS'
28447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28450
28451 if test "x$enable_ubsan" = xyes; then
28452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsanitize=undefined is accepted" >&5
28453 $as_echo_n "checking whether -fsanitize=undefined is accepted... " >&6; }
28454   saved_CXXFLAGS="$CXXFLAGS"
28455   CXXFLAGS="$CXXFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
28456         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28457 /* end confdefs.h.  */
28458
28459 int
28460 main ()
28461 {
28462
28463   ;
28464   return 0;
28465 }
28466 _ACEOF
28467 if ac_fn_cxx_try_link "$LINENO"; then :
28468   enable_ubsan=yes
28469 else
28470   enable_ubsan=no
28471
28472 fi
28473 rm -f core conftest.err conftest.$ac_objext \
28474     conftest$ac_exeext conftest.$ac_ext
28475   CXXFLAGS="$saved_CXXFLAGS"
28476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ubsan" >&5
28477 $as_echo "$enable_ubsan" >&6; }
28478   if test "x$enable_ubsan" = xyes; then
28479     WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
28480     CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined"
28481   fi
28482 fi
28483 ac_ext=c
28484 ac_cpp='$CPP $CPPFLAGS'
28485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28488
28489
28490
28491 # In the Cygwin environment, we need some additional flags.
28492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
28493 $as_echo_n "checking for cygwin... " >&6; }
28494 if ${gdb_cv_os_cygwin+:} false; then :
28495   $as_echo_n "(cached) " >&6
28496 else
28497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28498 /* end confdefs.h.  */
28499
28500 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
28501 lose
28502 #endif
28503 _ACEOF
28504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28505   $EGREP "^lose$" >/dev/null 2>&1; then :
28506   gdb_cv_os_cygwin=yes
28507 else
28508   gdb_cv_os_cygwin=no
28509 fi
28510 rm -f conftest*
28511
28512 fi
28513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
28514 $as_echo "$gdb_cv_os_cygwin" >&6; }
28515
28516
28517 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
28518 case ${host} in
28519   *go32* ) SER_HARDWIRE=ser-go32.o ;;
28520   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
28521   *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
28522   *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o" ;;
28523 esac
28524
28525
28526 # libreadline needs libuser32.a in a cygwin environment
28527 WIN32LIBS=
28528 if test x"$gdb_cv_os_cygwin" = xyes; then
28529     WIN32LIBS="-luser32"
28530     case "${target}" in
28531         *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
28532         ;;
28533     esac
28534 fi
28535
28536 # The ser-tcp.c module requires sockets.
28537 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
28538 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
28539
28540 # Add ELF support to GDB, but only if BFD includes ELF support.
28541
28542   OLD_CFLAGS=$CFLAGS
28543   OLD_LDFLAGS=$LDFLAGS
28544   OLD_LIBS=$LIBS
28545   OLD_CC=$CC
28546   # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
28547   # points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
28548   # always want our bfd.
28549   CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
28550   LDFLAGS="-L../bfd -L../libiberty"
28551   intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
28552   LIBS="-lbfd -liberty $intl $LIBS"
28553   CC="./libtool --quiet --mode=link $CC"
28554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
28555 $as_echo_n "checking for ELF support in BFD... " >&6; }
28556 if ${gdb_cv_var_elf+:} false; then :
28557   $as_echo_n "(cached) " >&6
28558 else
28559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28560 /* end confdefs.h.  */
28561 #include <stdlib.h>
28562            #include <string.h>
28563            #include "bfd.h"
28564            #include "elf-bfd.h"
28565 int
28566 main ()
28567 {
28568 return bfd_get_elf_phdr_upper_bound (NULL);
28569
28570   ;
28571   return 0;
28572 }
28573 _ACEOF
28574 if ac_fn_c_try_link "$LINENO"; then :
28575   gdb_cv_var_elf=yes
28576 else
28577   gdb_cv_var_elf=no
28578
28579 fi
28580 rm -f core conftest.err conftest.$ac_objext \
28581     conftest$ac_exeext conftest.$ac_ext
28582
28583 fi
28584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
28585 $as_echo "$gdb_cv_var_elf" >&6; }
28586   CC=$OLD_CC
28587   CFLAGS=$OLD_CFLAGS
28588   LDFLAGS=$OLD_LDFLAGS
28589   LIBS=$OLD_LIBS
28590 if test "$gdb_cv_var_elf" = yes; then
28591   CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o \
28592                 gcore-elf.o elf-none-tdep.o"
28593
28594 $as_echo "#define HAVE_ELF 1" >>confdefs.h
28595
28596   # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
28597   if test "$plugins" = "yes"; then
28598     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28599 $as_echo_n "checking for library containing dlopen... " >&6; }
28600 if ${ac_cv_search_dlopen+:} false; then :
28601   $as_echo_n "(cached) " >&6
28602 else
28603   ac_func_search_save_LIBS=$LIBS
28604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28605 /* end confdefs.h.  */
28606
28607 /* Override any GCC internal prototype to avoid an error.
28608    Use char because int might match the return type of a GCC
28609    builtin and then its argument prototype would still apply.  */
28610 #ifdef __cplusplus
28611 extern "C"
28612 #endif
28613 char dlopen ();
28614 int
28615 main ()
28616 {
28617 return dlopen ();
28618   ;
28619   return 0;
28620 }
28621 _ACEOF
28622 for ac_lib in '' dl; do
28623   if test -z "$ac_lib"; then
28624     ac_res="none required"
28625   else
28626     ac_res=-l$ac_lib
28627     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28628   fi
28629   if ac_fn_c_try_link "$LINENO"; then :
28630   ac_cv_search_dlopen=$ac_res
28631 fi
28632 rm -f core conftest.err conftest.$ac_objext \
28633     conftest$ac_exeext
28634   if ${ac_cv_search_dlopen+:} false; then :
28635   break
28636 fi
28637 done
28638 if ${ac_cv_search_dlopen+:} false; then :
28639
28640 else
28641   ac_cv_search_dlopen=no
28642 fi
28643 rm conftest.$ac_ext
28644 LIBS=$ac_func_search_save_LIBS
28645 fi
28646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28647 $as_echo "$ac_cv_search_dlopen" >&6; }
28648 ac_res=$ac_cv_search_dlopen
28649 if test "$ac_res" != no; then :
28650   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28651
28652 fi
28653
28654   fi
28655 fi
28656
28657 # Add macho support to GDB, but only if BFD includes it.
28658
28659   OLD_CFLAGS=$CFLAGS
28660   OLD_LDFLAGS=$LDFLAGS
28661   OLD_LIBS=$LIBS
28662   OLD_CC=$CC
28663   # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
28664   # points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
28665   # always want our bfd.
28666   CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
28667   LDFLAGS="-L../bfd -L../libiberty"
28668   intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
28669   LIBS="-lbfd -liberty $intl $LIBS"
28670   CC="./libtool --quiet --mode=link $CC"
28671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
28672 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
28673 if ${gdb_cv_var_macho+:} false; then :
28674   $as_echo_n "(cached) " >&6
28675 else
28676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28677 /* end confdefs.h.  */
28678 #include <stdlib.h>
28679            #include <string.h>
28680            #include "bfd.h"
28681            #include "mach-o.h"
28682 int
28683 main ()
28684 {
28685 return bfd_mach_o_lookup_command (NULL, 0, NULL);
28686
28687   ;
28688   return 0;
28689 }
28690 _ACEOF
28691 if ac_fn_c_try_link "$LINENO"; then :
28692   gdb_cv_var_macho=yes
28693 else
28694   gdb_cv_var_macho=no
28695
28696 fi
28697 rm -f core conftest.err conftest.$ac_objext \
28698     conftest$ac_exeext conftest.$ac_ext
28699
28700 fi
28701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
28702 $as_echo "$gdb_cv_var_macho" >&6; }
28703   CC=$OLD_CC
28704   CFLAGS=$OLD_CFLAGS
28705   LDFLAGS=$OLD_LDFLAGS
28706   LIBS=$OLD_LIBS
28707 if test "$gdb_cv_var_macho" = yes; then
28708   CONFIG_OBS="$CONFIG_OBS machoread.o"
28709 fi
28710
28711 # Add any host-specific objects to GDB.
28712 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
28713
28714 # If building on ELF, look for lzma support for embedded compressed debug info.
28715 if test "$gdb_cv_var_elf" = yes; then
28716
28717 # Check whether --with-lzma was given.
28718 if test "${with_lzma+set}" = set; then :
28719   withval=$with_lzma;
28720 else
28721   with_lzma=auto
28722 fi
28723
28724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
28725 $as_echo_n "checking whether to use lzma... " >&6; }
28726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
28727 $as_echo "$with_lzma" >&6; }
28728
28729   if test "${with_lzma}" != no; then
28730
28731
28732
28733
28734
28735
28736
28737
28738     use_additional=yes
28739
28740   acl_save_prefix="$prefix"
28741   prefix="$acl_final_prefix"
28742   acl_save_exec_prefix="$exec_prefix"
28743   exec_prefix="$acl_final_exec_prefix"
28744
28745     eval additional_includedir=\"$includedir\"
28746     eval additional_libdir=\"$libdir\"
28747
28748   exec_prefix="$acl_save_exec_prefix"
28749   prefix="$acl_save_prefix"
28750
28751
28752 # Check whether --with-liblzma-prefix was given.
28753 if test "${with_liblzma_prefix+set}" = set; then :
28754   withval=$with_liblzma_prefix;
28755     if test "X$withval" = "Xno"; then
28756       use_additional=no
28757     else
28758       if test "X$withval" = "X"; then
28759
28760   acl_save_prefix="$prefix"
28761   prefix="$acl_final_prefix"
28762   acl_save_exec_prefix="$exec_prefix"
28763   exec_prefix="$acl_final_exec_prefix"
28764
28765           eval additional_includedir=\"$includedir\"
28766           eval additional_libdir=\"$libdir\"
28767
28768   exec_prefix="$acl_save_exec_prefix"
28769   prefix="$acl_save_prefix"
28770
28771       else
28772         additional_includedir="$withval/include"
28773         additional_libdir="$withval/lib"
28774       fi
28775     fi
28776
28777 fi
28778
28779
28780 # Check whether --with-liblzma-type was given.
28781 if test "${with_liblzma_type+set}" = set; then :
28782   withval=$with_liblzma_type;  with_liblzma_type=$withval
28783 else
28784    with_liblzma_type=auto
28785 fi
28786
28787   lib_type=`eval echo \$with_liblzma_type`
28788
28789       LIBLZMA=
28790   LTLIBLZMA=
28791   INCLZMA=
28792   rpathdirs=
28793   ltrpathdirs=
28794   names_already_handled=
28795   names_next_round='lzma '
28796   while test -n "$names_next_round"; do
28797     names_this_round="$names_next_round"
28798     names_next_round=
28799     for name in $names_this_round; do
28800       already_handled=
28801       for n in $names_already_handled; do
28802         if test "$n" = "$name"; then
28803           already_handled=yes
28804           break
28805         fi
28806       done
28807       if test -z "$already_handled"; then
28808         names_already_handled="$names_already_handled $name"
28809                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
28810         eval value=\"\$HAVE_LIB$uppername\"
28811         if test -n "$value"; then
28812           if test "$value" = yes; then
28813             eval value=\"\$LIB$uppername\"
28814             test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
28815             eval value=\"\$LTLIB$uppername\"
28816             test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
28817           else
28818                                     :
28819           fi
28820         else
28821                               found_dir=
28822           found_la=
28823           found_so=
28824           found_a=
28825           if test $use_additional = yes; then
28826             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
28827               found_dir="$additional_libdir"
28828               found_so="$additional_libdir/lib$name.$shlibext"
28829               if test -f "$additional_libdir/lib$name.la"; then
28830                 found_la="$additional_libdir/lib$name.la"
28831               fi
28832             elif test x$lib_type != xshared; then
28833               if test -f "$additional_libdir/lib$name.$libext"; then
28834                 found_dir="$additional_libdir"
28835                 found_a="$additional_libdir/lib$name.$libext"
28836                 if test -f "$additional_libdir/lib$name.la"; then
28837                   found_la="$additional_libdir/lib$name.la"
28838                 fi
28839               fi
28840             fi
28841           fi
28842           if test "X$found_dir" = "X"; then
28843             for x in $LDFLAGS $LTLIBLZMA; do
28844
28845   acl_save_prefix="$prefix"
28846   prefix="$acl_final_prefix"
28847   acl_save_exec_prefix="$exec_prefix"
28848   exec_prefix="$acl_final_exec_prefix"
28849   eval x=\"$x\"
28850   exec_prefix="$acl_save_exec_prefix"
28851   prefix="$acl_save_prefix"
28852
28853               case "$x" in
28854                 -L*)
28855                   dir=`echo "X$x" | sed -e 's/^X-L//'`
28856                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
28857                     found_dir="$dir"
28858                     found_so="$dir/lib$name.$shlibext"
28859                     if test -f "$dir/lib$name.la"; then
28860                       found_la="$dir/lib$name.la"
28861                     fi
28862                   elif test x$lib_type != xshared; then
28863                     if test -f "$dir/lib$name.$libext"; then
28864                       found_dir="$dir"
28865                       found_a="$dir/lib$name.$libext"
28866                       if test -f "$dir/lib$name.la"; then
28867                         found_la="$dir/lib$name.la"
28868                       fi
28869                     fi
28870                   fi
28871                   ;;
28872               esac
28873               if test "X$found_dir" != "X"; then
28874                 break
28875               fi
28876             done
28877           fi
28878           if test "X$found_dir" != "X"; then
28879                         LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
28880             if test "X$found_so" != "X"; then
28881                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
28882                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
28883               else
28884                                                                                 haveit=
28885                 for x in $ltrpathdirs; do
28886                   if test "X$x" = "X$found_dir"; then
28887                     haveit=yes
28888                     break
28889                   fi
28890                 done
28891                 if test -z "$haveit"; then
28892                   ltrpathdirs="$ltrpathdirs $found_dir"
28893                 fi
28894                                 if test "$hardcode_direct" = yes; then
28895                                                       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
28896                 else
28897                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
28898                                                             LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
28899                                                             haveit=
28900                     for x in $rpathdirs; do
28901                       if test "X$x" = "X$found_dir"; then
28902                         haveit=yes
28903                         break
28904                       fi
28905                     done
28906                     if test -z "$haveit"; then
28907                       rpathdirs="$rpathdirs $found_dir"
28908                     fi
28909                   else
28910                                                                                 haveit=
28911                     for x in $LDFLAGS $LIBLZMA; do
28912
28913   acl_save_prefix="$prefix"
28914   prefix="$acl_final_prefix"
28915   acl_save_exec_prefix="$exec_prefix"
28916   exec_prefix="$acl_final_exec_prefix"
28917   eval x=\"$x\"
28918   exec_prefix="$acl_save_exec_prefix"
28919   prefix="$acl_save_prefix"
28920
28921                       if test "X$x" = "X-L$found_dir"; then
28922                         haveit=yes
28923                         break
28924                       fi
28925                     done
28926                     if test -z "$haveit"; then
28927                       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
28928                     fi
28929                     if test "$hardcode_minus_L" != no; then
28930                                                                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
28931                     else
28932                                                                                                                                                                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
28933                     fi
28934                   fi
28935                 fi
28936               fi
28937             else
28938               if test "X$found_a" != "X"; then
28939                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
28940               else
28941                                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
28942               fi
28943             fi
28944                         additional_includedir=
28945             case "$found_dir" in
28946               */lib | */lib/)
28947                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
28948                 additional_includedir="$basedir/include"
28949                 ;;
28950             esac
28951             if test "X$additional_includedir" != "X"; then
28952                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
28953                 haveit=
28954                 if test "X$additional_includedir" = "X/usr/local/include"; then
28955                   if test -n "$GCC"; then
28956                     case $host_os in
28957                       linux*) haveit=yes;;
28958                     esac
28959                   fi
28960                 fi
28961                 if test -z "$haveit"; then
28962                   for x in $CPPFLAGS $INCLZMA; do
28963
28964   acl_save_prefix="$prefix"
28965   prefix="$acl_final_prefix"
28966   acl_save_exec_prefix="$exec_prefix"
28967   exec_prefix="$acl_final_exec_prefix"
28968   eval x=\"$x\"
28969   exec_prefix="$acl_save_exec_prefix"
28970   prefix="$acl_save_prefix"
28971
28972                     if test "X$x" = "X-I$additional_includedir"; then
28973                       haveit=yes
28974                       break
28975                     fi
28976                   done
28977                   if test -z "$haveit"; then
28978                     if test -d "$additional_includedir"; then
28979                                             INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
28980                     fi
28981                   fi
28982                 fi
28983               fi
28984             fi
28985                         if test -n "$found_la"; then
28986                                                         save_libdir="$libdir"
28987               case "$found_la" in
28988                 */* | *\\*) . "$found_la" ;;
28989                 *) . "./$found_la" ;;
28990               esac
28991               libdir="$save_libdir"
28992                             for dep in $dependency_libs; do
28993                 case "$dep" in
28994                   -L*)
28995                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
28996                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
28997                       haveit=
28998                       if test "X$additional_libdir" = "X/usr/local/lib"; then
28999                         if test -n "$GCC"; then
29000                           case $host_os in
29001                             linux*) haveit=yes;;
29002                           esac
29003                         fi
29004                       fi
29005                       if test -z "$haveit"; then
29006                         haveit=
29007                         for x in $LDFLAGS $LIBLZMA; do
29008
29009   acl_save_prefix="$prefix"
29010   prefix="$acl_final_prefix"
29011   acl_save_exec_prefix="$exec_prefix"
29012   exec_prefix="$acl_final_exec_prefix"
29013   eval x=\"$x\"
29014   exec_prefix="$acl_save_exec_prefix"
29015   prefix="$acl_save_prefix"
29016
29017                           if test "X$x" = "X-L$additional_libdir"; then
29018                             haveit=yes
29019                             break
29020                           fi
29021                         done
29022                         if test -z "$haveit"; then
29023                           if test -d "$additional_libdir"; then
29024                                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
29025                           fi
29026                         fi
29027                         haveit=
29028                         for x in $LDFLAGS $LTLIBLZMA; do
29029
29030   acl_save_prefix="$prefix"
29031   prefix="$acl_final_prefix"
29032   acl_save_exec_prefix="$exec_prefix"
29033   exec_prefix="$acl_final_exec_prefix"
29034   eval x=\"$x\"
29035   exec_prefix="$acl_save_exec_prefix"
29036   prefix="$acl_save_prefix"
29037
29038                           if test "X$x" = "X-L$additional_libdir"; then
29039                             haveit=yes
29040                             break
29041                           fi
29042                         done
29043                         if test -z "$haveit"; then
29044                           if test -d "$additional_libdir"; then
29045                                                         LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
29046                           fi
29047                         fi
29048                       fi
29049                     fi
29050                     ;;
29051                   -R*)
29052                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
29053                     if test "$enable_rpath" != no; then
29054                                                                   haveit=
29055                       for x in $rpathdirs; do
29056                         if test "X$x" = "X$dir"; then
29057                           haveit=yes
29058                           break
29059                         fi
29060                       done
29061                       if test -z "$haveit"; then
29062                         rpathdirs="$rpathdirs $dir"
29063                       fi
29064                                                                   haveit=
29065                       for x in $ltrpathdirs; do
29066                         if test "X$x" = "X$dir"; then
29067                           haveit=yes
29068                           break
29069                         fi
29070                       done
29071                       if test -z "$haveit"; then
29072                         ltrpathdirs="$ltrpathdirs $dir"
29073                       fi
29074                     fi
29075                     ;;
29076                   -l*)
29077                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
29078                     ;;
29079                   *.la)
29080                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
29081                     ;;
29082                   *)
29083                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
29084                     LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
29085                     ;;
29086                 esac
29087               done
29088             fi
29089           else
29090                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
29091               LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
29092               LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
29093             else
29094               LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
29095               LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
29096             fi
29097           fi
29098         fi
29099       fi
29100     done
29101   done
29102   if test "X$rpathdirs" != "X"; then
29103     if test -n "$hardcode_libdir_separator"; then
29104                         alldirs=
29105       for found_dir in $rpathdirs; do
29106         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
29107       done
29108             acl_save_libdir="$libdir"
29109       libdir="$alldirs"
29110       eval flag=\"$hardcode_libdir_flag_spec\"
29111       libdir="$acl_save_libdir"
29112       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
29113     else
29114             for found_dir in $rpathdirs; do
29115         acl_save_libdir="$libdir"
29116         libdir="$found_dir"
29117         eval flag=\"$hardcode_libdir_flag_spec\"
29118         libdir="$acl_save_libdir"
29119         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
29120       done
29121     fi
29122   fi
29123   if test "X$ltrpathdirs" != "X"; then
29124             for found_dir in $ltrpathdirs; do
29125       LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
29126     done
29127   fi
29128
29129
29130         ac_save_CPPFLAGS="$CPPFLAGS"
29131
29132   for element in $INCLZMA; do
29133     haveit=
29134     for x in $CPPFLAGS; do
29135
29136   acl_save_prefix="$prefix"
29137   prefix="$acl_final_prefix"
29138   acl_save_exec_prefix="$exec_prefix"
29139   exec_prefix="$acl_final_exec_prefix"
29140   eval x=\"$x\"
29141   exec_prefix="$acl_save_exec_prefix"
29142   prefix="$acl_save_prefix"
29143
29144       if test "X$x" = "X$element"; then
29145         haveit=yes
29146         break
29147       fi
29148     done
29149     if test -z "$haveit"; then
29150       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
29151     fi
29152   done
29153
29154
29155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
29156 $as_echo_n "checking for liblzma... " >&6; }
29157 if ${ac_cv_liblzma+:} false; then :
29158   $as_echo_n "(cached) " >&6
29159 else
29160
29161     ac_save_LIBS="$LIBS"
29162     LIBS="$LIBS $LIBLZMA"
29163     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29164 /* end confdefs.h.  */
29165 #include "lzma.h"
29166 int
29167 main ()
29168 {
29169 lzma_index_iter iter;
29170                            lzma_index_iter_init (&iter, 0);
29171                            lzma_mf_is_supported (LZMA_MF_HC3);
29172   ;
29173   return 0;
29174 }
29175 _ACEOF
29176 if ac_fn_c_try_link "$LINENO"; then :
29177   ac_cv_liblzma=yes
29178 else
29179   ac_cv_liblzma=no
29180 fi
29181 rm -f core conftest.err conftest.$ac_objext \
29182     conftest$ac_exeext conftest.$ac_ext
29183     LIBS="$ac_save_LIBS"
29184
29185 fi
29186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
29187 $as_echo "$ac_cv_liblzma" >&6; }
29188   if test "$ac_cv_liblzma" = yes; then
29189     HAVE_LIBLZMA=yes
29190
29191 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
29192
29193     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
29194 $as_echo_n "checking how to link with liblzma... " >&6; }
29195     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
29196 $as_echo "$LIBLZMA" >&6; }
29197   else
29198     HAVE_LIBLZMA=no
29199             CPPFLAGS="$ac_save_CPPFLAGS"
29200     LIBLZMA=
29201     LTLIBLZMA=
29202   fi
29203
29204
29205
29206
29207
29208
29209     if test "$HAVE_LIBLZMA" != yes; then
29210       if test "$with_lzma" = yes; then
29211         as_fn_error $? "missing liblzma for --with-lzma" "$LINENO" 5
29212       fi
29213     fi
29214   fi
29215 fi
29216
29217 LIBGUI="../libgui/src/libgui.a"
29218 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
29219
29220
29221
29222 WIN32LDAPP=
29223
29224
29225
29226 case "${host}" in
29227 *-*-cygwin* | *-*-mingw* )
29228     configdir="win"
29229     ;;
29230 *)
29231     configdir="unix"
29232     ;;
29233 esac
29234
29235 GDBTKLIBS=
29236 if test "${enable_gdbtk}" = "yes"; then
29237
29238     # Gdbtk must have an absolute path to srcdir in order to run
29239     # properly when not installed.
29240     here=`pwd`
29241     cd ${srcdir}
29242     GDBTK_SRC_DIR=`pwd`
29243     cd $here
29244
29245
29246     #
29247     # Ok, lets find the tcl configuration
29248     # First, look for one uninstalled.
29249     # the alternative search directory is invoked by --with-tcl
29250     #
29251
29252     if test x"${no_tcl}" = x ; then
29253         # we reset no_tcl in case something fails here
29254         no_tcl=true
29255
29256 # Check whether --with-tcl was given.
29257 if test "${with_tcl+set}" = set; then :
29258   withval=$with_tcl; with_tclconfig=${withval}
29259 fi
29260
29261         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
29262 $as_echo_n "checking for Tcl configuration... " >&6; }
29263         if ${ac_cv_c_tclconfig+:} false; then :
29264   $as_echo_n "(cached) " >&6
29265 else
29266
29267
29268             # First check to see if --with-tcl was specified.
29269             case "${host}" in
29270                 *-*-cygwin*) platDir="win" ;;
29271                 *) platDir="unix" ;;
29272             esac
29273             if test x"${with_tclconfig}" != x ; then
29274                 if test -f "${with_tclconfig}/tclConfig.sh" ; then
29275                     ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
29276                 else
29277                     as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
29278                 fi
29279             fi
29280
29281             # then check for a private Tcl installation
29282             if test x"${ac_cv_c_tclconfig}" = x ; then
29283                 for i in \
29284                         ../tcl \
29285                         `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
29286                         `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
29287                         `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
29288                         ../../tcl \
29289                         `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
29290                         `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
29291                         `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
29292                         ../../../tcl \
29293                         `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
29294                         `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
29295                         `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
29296                     if test -f "$i/$platDir/tclConfig.sh" ; then
29297                         ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
29298                         break
29299                     fi
29300                 done
29301             fi
29302
29303             # on Darwin, check in Framework installation locations
29304             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
29305                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
29306                         `ls -d /Library/Frameworks 2>/dev/null` \
29307                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
29308                         `ls -d /System/Library/Frameworks 2>/dev/null` \
29309                         ; do
29310                     if test -f "$i/Tcl.framework/tclConfig.sh" ; then
29311                         ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
29312                         break
29313                     fi
29314                 done
29315             fi
29316
29317             # check in a few common install locations
29318             if test x"${ac_cv_c_tclconfig}" = x ; then
29319                 for i in `ls -d ${libdir} 2>/dev/null` \
29320                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
29321                         `ls -d ${prefix}/lib 2>/dev/null` \
29322                         `ls -d /usr/local/lib 2>/dev/null` \
29323                         `ls -d /usr/contrib/lib 2>/dev/null` \
29324                         `ls -d /usr/lib 2>/dev/null` \
29325                         ; do
29326                     if test -f "$i/tclConfig.sh" ; then
29327                         ac_cv_c_tclconfig=`(cd $i; pwd)`
29328                         break
29329                     fi
29330                 done
29331             fi
29332
29333             # check in a few other private locations
29334             if test x"${ac_cv_c_tclconfig}" = x ; then
29335                 for i in \
29336                         ${srcdir}/../tcl \
29337                         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
29338                         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
29339                         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
29340                     if test -f "$i/$platDir/tclConfig.sh" ; then
29341                     ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
29342                     break
29343                 fi
29344                 done
29345             fi
29346
29347 fi
29348
29349
29350         if test x"${ac_cv_c_tclconfig}" = x ; then
29351             TCL_BIN_DIR="# no Tcl configs found"
29352             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
29353 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
29354         else
29355             no_tcl=
29356             TCL_BIN_DIR=${ac_cv_c_tclconfig}
29357             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
29358 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
29359         fi
29360     fi
29361
29362
29363     # If $no_tk is nonempty, then we can't do Tk, and there is no
29364     # point to doing Tcl.
29365
29366     #
29367     # Ok, lets find the tk configuration
29368     # First, look for one uninstalled.
29369     # the alternative search directory is invoked by --with-tk
29370     #
29371
29372     if test x"${no_tk}" = x ; then
29373         # we reset no_tk in case something fails here
29374         no_tk=true
29375
29376 # Check whether --with-tk was given.
29377 if test "${with_tk+set}" = set; then :
29378   withval=$with_tk; with_tkconfig=${withval}
29379 fi
29380
29381         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
29382 $as_echo_n "checking for Tk configuration... " >&6; }
29383         if ${ac_cv_c_tkconfig+:} false; then :
29384   $as_echo_n "(cached) " >&6
29385 else
29386
29387
29388             # First check to see if --with-tkconfig was specified.
29389             if test x"${with_tkconfig}" != x ; then
29390                 if test -f "${with_tkconfig}/tkConfig.sh" ; then
29391                     ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
29392                 else
29393                     as_fn_error $? "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
29394                 fi
29395             fi
29396
29397             # then check for a private Tk library
29398             case "${host}" in
29399                 *-*-cygwin*) platDir="win" ;;
29400                 *) platDir="unix" ;;
29401             esac
29402             if test x"${ac_cv_c_tkconfig}" = x ; then
29403                 for i in \
29404                         ../tk \
29405                         `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
29406                         `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
29407                         `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
29408                         ../../tk \
29409                         `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
29410                         `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
29411                         `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
29412                         ../../../tk \
29413                         `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
29414                         `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
29415                         `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
29416                     if test -f "$i/$platDir/tkConfig.sh" ; then
29417                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
29418                         break
29419                     fi
29420                 done
29421             fi
29422
29423             # on Darwin, check in Framework installation locations
29424             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
29425                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
29426                         `ls -d /Library/Frameworks 2>/dev/null` \
29427                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
29428                         `ls -d /System/Library/Frameworks 2>/dev/null` \
29429                         ; do
29430                     if test -f "$i/Tk.framework/tkConfig.sh" ; then
29431                         ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
29432                         break
29433                     fi
29434                 done
29435             fi
29436
29437             # check in a few common install locations
29438             if test x"${ac_cv_c_tkconfig}" = x ; then
29439                 for i in `ls -d ${libdir} 2>/dev/null` \
29440                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
29441                         `ls -d ${prefix}/lib 2>/dev/null` \
29442                         `ls -d /usr/local/lib 2>/dev/null` \
29443                         `ls -d /usr/contrib/lib 2>/dev/null` \
29444                         `ls -d /usr/lib 2>/dev/null` \
29445                         ; do
29446                     if test -f "$i/tkConfig.sh" ; then
29447                         ac_cv_c_tkconfig=`(cd $i; pwd)`
29448                         break
29449                     fi
29450                 done
29451             fi
29452             # check in a few other private locations
29453             if test x"${ac_cv_c_tkconfig}" = x ; then
29454                 for i in \
29455                         ${srcdir}/../tk \
29456                         `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
29457                         `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
29458                         `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
29459                     if test -f "$i/$platDir/tkConfig.sh" ; then
29460                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
29461                         break
29462                     fi
29463                 done
29464             fi
29465
29466 fi
29467
29468
29469         if test x"${ac_cv_c_tkconfig}" = x ; then
29470             TK_BIN_DIR="# no Tk configs found"
29471             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
29472 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
29473         else
29474             no_tk=
29475             TK_BIN_DIR=${ac_cv_c_tkconfig}
29476             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
29477 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
29478         fi
29479     fi
29480
29481
29482     if test -z "${no_tcl}" -a -z "${no_tk}"; then
29483
29484     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
29485 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
29486
29487     if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
29488         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
29489 $as_echo "loading" >&6; }
29490         . ${TCL_BIN_DIR}/tclConfig.sh
29491     else
29492         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
29493 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
29494     fi
29495
29496     # eval is required to do the TCL_DBGX substitution
29497     eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
29498     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
29499
29500     # If the TCL_BIN_DIR is the build directory (not the install directory),
29501     # then set the common variable name to the value of the build variables.
29502     # For example, the variable TCL_LIB_SPEC will be set to the value
29503     # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
29504     # instead of TCL_BUILD_LIB_SPEC since it will work with both an
29505     # installed and uninstalled version of Tcl.
29506     if test -f "${TCL_BIN_DIR}/Makefile" ; then
29507         TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
29508         TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
29509         TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
29510     elif test "`uname -s`" = "Darwin"; then
29511         # If Tcl was built as a framework, attempt to use the libraries
29512         # from the framework at the given location so that linking works
29513         # against Tcl.framework installed in an arbitrary location.
29514         case ${TCL_DEFS} in
29515             *TCL_FRAMEWORK*)
29516                 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
29517                     for i in "`cd ${TCL_BIN_DIR}; pwd`" \
29518                              "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
29519                         if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
29520                             TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
29521                             break
29522                         fi
29523                     done
29524                 fi
29525                 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
29526                     TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
29527                     TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
29528                 fi
29529                 ;;
29530         esac
29531     fi
29532
29533     # eval is required to do the TCL_DBGX substitution
29534     eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
29535     eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
29536     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
29537     eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
29538
29539
29540
29541
29542
29543
29544
29545
29546
29547
29548
29549
29550
29551
29552
29553         # Check for in-tree tcl
29554         here=`pwd`
29555         cd ${srcdir}/..
29556         topdir=`pwd`
29557         cd ${here}
29558
29559         intree="no"
29560         if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
29561           intree="yes"
29562         fi
29563
29564         # Find Tcl private headers
29565         if test x"${intree}" = xno; then
29566
29567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
29568 $as_echo_n "checking for Tcl private headers... " >&6; }
29569   private_dir=""
29570   dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
29571   if test -f ${dir}/tclInt.h ; then
29572     private_dir=${dir}
29573   fi
29574
29575   if test x"${private_dir}" = x; then
29576     as_fn_error $? "could not find private Tcl headers" "$LINENO" 5
29577   else
29578     TCL_PRIVATE_INCLUDE="-I${private_dir}"
29579     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
29580 $as_echo "${private_dir}" >&6; }
29581   fi
29582
29583           TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
29584           TCL_LIBRARY="${TCL_LIB_SPEC}"
29585           TCL_DEPS=""
29586         else
29587           # If building tcl in the same src tree, private headers
29588           # are not needed, but we need to be sure to use the right
29589           # headers library
29590           TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
29591           TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
29592           TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
29593         fi
29594
29595
29596
29597
29598
29599     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
29600 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
29601
29602     if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
29603         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
29604 $as_echo "loading" >&6; }
29605         . ${TK_BIN_DIR}/tkConfig.sh
29606     else
29607         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
29608 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
29609     fi
29610
29611     # eval is required to do the TK_DBGX substitution
29612     eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
29613     eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
29614
29615     # If the TK_BIN_DIR is the build directory (not the install directory),
29616     # then set the common variable name to the value of the build variables.
29617     # For example, the variable TK_LIB_SPEC will be set to the value
29618     # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
29619     # instead of TK_BUILD_LIB_SPEC since it will work with both an
29620     # installed and uninstalled version of Tcl.
29621     if test -f "${TK_BIN_DIR}/Makefile" ; then
29622         TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
29623         TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
29624         TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
29625     elif test "`uname -s`" = "Darwin"; then
29626         # If Tk was built as a framework, attempt to use the libraries
29627         # from the framework at the given location so that linking works
29628         # against Tk.framework installed in an arbitrary location.
29629         case ${TK_DEFS} in
29630             *TK_FRAMEWORK*)
29631                 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
29632                     for i in "`cd ${TK_BIN_DIR}; pwd`" \
29633                              "`cd ${TK_BIN_DIR}/../..; pwd`"; do
29634                         if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
29635                             TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
29636                             break
29637                         fi
29638                     done
29639                 fi
29640                 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
29641                     TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
29642                     TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
29643                 fi
29644                 ;;
29645         esac
29646     fi
29647
29648     # eval is required to do the TK_DBGX substitution
29649     eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
29650     eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
29651     eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
29652     eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
29653
29654
29655
29656
29657
29658
29659
29660
29661
29662
29663
29664
29665
29666
29667         # Check for in-tree Tk
29668         intree="no"
29669         if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
29670           intree="yes"
29671         fi
29672
29673         # Find Tk private headers
29674         if test x"${intree}" = xno; then
29675
29676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
29677 $as_echo_n "checking for Tk private headers... " >&6; }
29678   private_dir=""
29679   dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
29680   if test -f ${dir}/tkInt.h; then
29681     private_dir=${dir}
29682   fi
29683
29684   if test x"${private_dir}" = x; then
29685     as_fn_error $? "could not find Tk private headers" "$LINENO" 5
29686   else
29687     TK_PRIVATE_INCLUDE="-I${private_dir}"
29688     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
29689 $as_echo "${private_dir}" >&6; }
29690   fi
29691
29692           TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
29693           TK_LIBRARY=${TK_LIB_SPEC}
29694           TK_DEPS=""
29695         else
29696           TK_INCLUDE="-I${TK_SRC_DIR}/generic"
29697           TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
29698           TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
29699         fi
29700
29701
29702
29703
29704
29705         ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
29706
29707         # Include some libraries that Tcl and Tk want.
29708         TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
29709         # Yes, the ordering seems wrong here.  But it isn't.
29710         # TK_LIBS is the list of libraries that need to be linked
29711         # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
29712         # were in LIBS then any link tests after this point would
29713         # try to include things like `$(LIBGUI)', which wouldn't work.
29714         GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
29715
29716         CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
29717         CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
29718         CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
29719         CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
29720         CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
29721         CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
29722         CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
29723
29724         if test x"$gdb_cv_os_cygwin" = xyes; then
29725           WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
29726           WIN32LDAPP="-Wl,--subsystem,console"
29727           CONFIG_OBS="${CONFIG_OBS} gdbres.o"
29728         fi
29729
29730         subdirs="$subdirs gdbtk"
29731
29732     fi
29733 fi
29734
29735
29736
29737
29738
29739
29740
29741
29742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
29743 $as_echo_n "checking for X... " >&6; }
29744
29745
29746 # Check whether --with-x was given.
29747 if test "${with_x+set}" = set; then :
29748   withval=$with_x;
29749 fi
29750
29751 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29752 if test "x$with_x" = xno; then
29753   # The user explicitly disabled X.
29754   have_x=disabled
29755 else
29756   case $x_includes,$x_libraries in #(
29757     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
29758     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
29759   $as_echo_n "(cached) " >&6
29760 else
29761   # One or both of the vars are not set, and there is no cached value.
29762 ac_x_includes=no ac_x_libraries=no
29763 rm -f -r conftest.dir
29764 if mkdir conftest.dir; then
29765   cd conftest.dir
29766   cat >Imakefile <<'_ACEOF'
29767 incroot:
29768         @echo incroot='${INCROOT}'
29769 usrlibdir:
29770         @echo usrlibdir='${USRLIBDIR}'
29771 libdir:
29772         @echo libdir='${LIBDIR}'
29773 _ACEOF
29774   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29775     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
29776     for ac_var in incroot usrlibdir libdir; do
29777       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29778     done
29779     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29780     for ac_extension in a so sl dylib la dll; do
29781       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29782          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29783         ac_im_usrlibdir=$ac_im_libdir; break
29784       fi
29785     done
29786     # Screen out bogus values from the imake configuration.  They are
29787     # bogus both because they are the default anyway, and because
29788     # using them would break gcc on systems where it needs fixed includes.
29789     case $ac_im_incroot in
29790         /usr/include) ac_x_includes= ;;
29791         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29792     esac
29793     case $ac_im_usrlibdir in
29794         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
29795         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29796     esac
29797   fi
29798   cd ..
29799   rm -f -r conftest.dir
29800 fi
29801
29802 # Standard set of common directories for X headers.
29803 # Check X11 before X11Rn because it is often a symlink to the current release.
29804 ac_x_header_dirs='
29805 /usr/X11/include
29806 /usr/X11R7/include
29807 /usr/X11R6/include
29808 /usr/X11R5/include
29809 /usr/X11R4/include
29810
29811 /usr/include/X11
29812 /usr/include/X11R7
29813 /usr/include/X11R6
29814 /usr/include/X11R5
29815 /usr/include/X11R4
29816
29817 /usr/local/X11/include
29818 /usr/local/X11R7/include
29819 /usr/local/X11R6/include
29820 /usr/local/X11R5/include
29821 /usr/local/X11R4/include
29822
29823 /usr/local/include/X11
29824 /usr/local/include/X11R7
29825 /usr/local/include/X11R6
29826 /usr/local/include/X11R5
29827 /usr/local/include/X11R4
29828
29829 /usr/X386/include
29830 /usr/x386/include
29831 /usr/XFree86/include/X11
29832
29833 /usr/include
29834 /usr/local/include
29835 /usr/unsupported/include
29836 /usr/athena/include
29837 /usr/local/x11r5/include
29838 /usr/lpp/Xamples/include
29839
29840 /usr/openwin/include
29841 /usr/openwin/share/include'
29842
29843 if test "$ac_x_includes" = no; then
29844   # Guess where to find include files, by looking for Xlib.h.
29845   # First, try using that file with no special directory specified.
29846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29847 /* end confdefs.h.  */
29848 #include <X11/Xlib.h>
29849 _ACEOF
29850 if ac_fn_c_try_cpp "$LINENO"; then :
29851   # We can compile using X headers with no special include directory.
29852 ac_x_includes=
29853 else
29854   for ac_dir in $ac_x_header_dirs; do
29855   if test -r "$ac_dir/X11/Xlib.h"; then
29856     ac_x_includes=$ac_dir
29857     break
29858   fi
29859 done
29860 fi
29861 rm -f conftest.err conftest.i conftest.$ac_ext
29862 fi # $ac_x_includes = no
29863
29864 if test "$ac_x_libraries" = no; then
29865   # Check for the libraries.
29866   # See if we find them without any special options.
29867   # Don't add to $LIBS permanently.
29868   ac_save_LIBS=$LIBS
29869   LIBS="-lX11 $LIBS"
29870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29871 /* end confdefs.h.  */
29872 #include <X11/Xlib.h>
29873 int
29874 main ()
29875 {
29876 XrmInitialize ()
29877   ;
29878   return 0;
29879 }
29880 _ACEOF
29881 if ac_fn_c_try_link "$LINENO"; then :
29882   LIBS=$ac_save_LIBS
29883 # We can link X programs with no special library path.
29884 ac_x_libraries=
29885 else
29886   LIBS=$ac_save_LIBS
29887 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29888 do
29889   # Don't even attempt the hair of trying to link an X program!
29890   for ac_extension in a so sl dylib la dll; do
29891     if test -r "$ac_dir/libX11.$ac_extension"; then
29892       ac_x_libraries=$ac_dir
29893       break 2
29894     fi
29895   done
29896 done
29897 fi
29898 rm -f core conftest.err conftest.$ac_objext \
29899     conftest$ac_exeext conftest.$ac_ext
29900 fi # $ac_x_libraries = no
29901
29902 case $ac_x_includes,$ac_x_libraries in #(
29903   no,* | *,no | *\'*)
29904     # Didn't find X, or a directory has "'" in its name.
29905     ac_cv_have_x="have_x=no";; #(
29906   *)
29907     # Record where we found X for the cache.
29908     ac_cv_have_x="have_x=yes\
29909         ac_x_includes='$ac_x_includes'\
29910         ac_x_libraries='$ac_x_libraries'"
29911 esac
29912 fi
29913 ;; #(
29914     *) have_x=yes;;
29915   esac
29916   eval "$ac_cv_have_x"
29917 fi # $with_x != no
29918
29919 if test "$have_x" != yes; then
29920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
29921 $as_echo "$have_x" >&6; }
29922   no_x=yes
29923 else
29924   # If each of the values was on the command line, it overrides each guess.
29925   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29926   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29927   # Update the cache value to reflect the command line values.
29928   ac_cv_have_x="have_x=yes\
29929         ac_x_includes='$x_includes'\
29930         ac_x_libraries='$x_libraries'"
29931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
29932 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
29933 fi
29934
29935
29936 # Unlike the sim directory, whether a simulator is linked is controlled by
29937 # presence of a gdb_sim definition in the target configure.tgt entry.
29938 # This code just checks for a few cases where we'd like to ignore those
29939 # definitions, even when they're present in the '.mt' file.  These cases
29940 # are when --disable-sim is specified, or if the simulator directory is
29941 # not part of the source tree.
29942 #
29943 # Check whether --enable-sim was given.
29944 if test "${enable_sim+set}" = set; then :
29945   enableval=$enable_sim; echo "enable_sim = $enable_sim";
29946  echo "enableval = ${enableval}";
29947  case "${enableval}" in
29948   yes) ignore_sim=false ;;
29949   no)  ignore_sim=true ;;
29950   *)   ignore_sim=false ;;
29951  esac
29952 else
29953   ignore_sim=false
29954 fi
29955
29956
29957 if test ! -d "${srcdir}/../sim"; then
29958   ignore_sim=true
29959 fi
29960
29961 SIM=
29962 SIM_OBS=
29963 if test "${ignore_sim}" = "false"; then
29964   if test x"${gdb_sim}" != x ; then
29965     SIM="${gdb_sim}"
29966     SIM_OBS="remote-sim.o"
29967
29968     # Some tdep code should only be compiled in when the ppc sim is
29969     # built.  PR sim/13418.
29970     case $target in
29971       powerpc*-*-*)
29972
29973 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
29974
29975         ;;
29976     esac
29977   fi
29978 fi
29979
29980
29981
29982
29983
29984
29985
29986
29987
29988
29989
29990
29991
29992
29993 # List of host floatformats.
29994
29995 cat >>confdefs.h <<_ACEOF
29996 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
29997 _ACEOF
29998
29999
30000 cat >>confdefs.h <<_ACEOF
30001 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
30002 _ACEOF
30003
30004
30005 cat >>confdefs.h <<_ACEOF
30006 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
30007 _ACEOF
30008
30009
30010 # target_subdir is used by the testsuite to find the target libraries.
30011 target_subdir=
30012 if test "${host}" != "${target}"; then
30013     target_subdir="${target_alias}/"
30014 fi
30015
30016
30017 # Import nat definitions.
30018 nat_makefile_frag=/dev/null
30019 if test "${gdb_native}" = "yes"; then
30020   . ${srcdir}/configure.nat
30021   nativefile=$NAT_FILE
30022 fi
30023
30024
30025
30026
30027
30028
30029
30030
30031
30032
30033
30034 if test x"${gdb_osabi}" != x ; then
30035
30036 cat >>confdefs.h <<_ACEOF
30037 #define GDB_OSABI_DEFAULT $gdb_osabi
30038 _ACEOF
30039
30040 fi
30041
30042 # Setup possible use of libbacktrace.
30043 # Check whether --enable-libbacktrace was given.
30044 if test "${enable_libbacktrace+set}" = set; then :
30045   enableval=$enable_libbacktrace;
30046            case $enableval in
30047              yes | no)
30048                ;;
30049              *)
30050                as_fn_error $? "bad value $enableval for --enable-libbacktrace" "$LINENO" 5
30051                ;;
30052            esac
30053
30054 else
30055   enable_libbacktrace=yes
30056 fi
30057
30058
30059 if test "${enable_libbacktrace}" = "yes"; then
30060   LIBBACKTRACE_INC="-I$srcdir/../libbacktrace/ -I../libbacktrace/"
30061   LIBBACKTRACE_LIB=../libbacktrace/libbacktrace.la
30062
30063 $as_echo "#define HAVE_LIBBACKTRACE 1" >>confdefs.h
30064
30065 else
30066   LIBBACKTRACE_INC=
30067   LIBBACKTRACE_LIB=
30068 fi
30069
30070
30071
30072
30073 # Check for babeltrace and babeltrace-ctf
30074
30075 # Check whether --with-babeltrace was given.
30076 if test "${with_babeltrace+set}" = set; then :
30077   withval=$with_babeltrace;
30078 else
30079   with_babeltrace=auto
30080 fi
30081
30082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
30083 $as_echo_n "checking whether to use babeltrace... " >&6; }
30084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
30085 $as_echo "$with_babeltrace" >&6; }
30086
30087 if test "x$with_babeltrace" = "xno"; then
30088   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
30089 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
30090 else
30091   # Append -Werror to CFLAGS so that configure can catch the warning
30092   # "assignment from incompatible pointer type", which is related to
30093   # the babeltrace change from 1.0.3 to 1.1.0.  Babeltrace 1.1.0 works
30094   # in GDB, while babeltrace 1.0.3 is broken.
30095   # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
30096   # safe to save and restore CFLAGS here.
30097   saved_CFLAGS=$CFLAGS
30098   CFLAGS="$CFLAGS -Werror"
30099
30100
30101
30102
30103
30104
30105
30106
30107     use_additional=yes
30108
30109   acl_save_prefix="$prefix"
30110   prefix="$acl_final_prefix"
30111   acl_save_exec_prefix="$exec_prefix"
30112   exec_prefix="$acl_final_exec_prefix"
30113
30114     eval additional_includedir=\"$includedir\"
30115     eval additional_libdir=\"$libdir\"
30116
30117   exec_prefix="$acl_save_exec_prefix"
30118   prefix="$acl_save_prefix"
30119
30120
30121 # Check whether --with-libbabeltrace-prefix was given.
30122 if test "${with_libbabeltrace_prefix+set}" = set; then :
30123   withval=$with_libbabeltrace_prefix;
30124     if test "X$withval" = "Xno"; then
30125       use_additional=no
30126     else
30127       if test "X$withval" = "X"; then
30128
30129   acl_save_prefix="$prefix"
30130   prefix="$acl_final_prefix"
30131   acl_save_exec_prefix="$exec_prefix"
30132   exec_prefix="$acl_final_exec_prefix"
30133
30134           eval additional_includedir=\"$includedir\"
30135           eval additional_libdir=\"$libdir\"
30136
30137   exec_prefix="$acl_save_exec_prefix"
30138   prefix="$acl_save_prefix"
30139
30140       else
30141         additional_includedir="$withval/include"
30142         additional_libdir="$withval/lib"
30143       fi
30144     fi
30145
30146 fi
30147
30148
30149 # Check whether --with-libbabeltrace-type was given.
30150 if test "${with_libbabeltrace_type+set}" = set; then :
30151   withval=$with_libbabeltrace_type;  with_libbabeltrace_type=$withval
30152 else
30153    with_libbabeltrace_type=auto
30154 fi
30155
30156   lib_type=`eval echo \$with_libbabeltrace_type`
30157
30158       LIBBABELTRACE=
30159   LTLIBBABELTRACE=
30160   INCBABELTRACE=
30161   rpathdirs=
30162   ltrpathdirs=
30163   names_already_handled=
30164   names_next_round='babeltrace babeltrace-ctf'
30165   while test -n "$names_next_round"; do
30166     names_this_round="$names_next_round"
30167     names_next_round=
30168     for name in $names_this_round; do
30169       already_handled=
30170       for n in $names_already_handled; do
30171         if test "$n" = "$name"; then
30172           already_handled=yes
30173           break
30174         fi
30175       done
30176       if test -z "$already_handled"; then
30177         names_already_handled="$names_already_handled $name"
30178                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
30179         eval value=\"\$HAVE_LIB$uppername\"
30180         if test -n "$value"; then
30181           if test "$value" = yes; then
30182             eval value=\"\$LIB$uppername\"
30183             test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
30184             eval value=\"\$LTLIB$uppername\"
30185             test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
30186           else
30187                                     :
30188           fi
30189         else
30190                               found_dir=
30191           found_la=
30192           found_so=
30193           found_a=
30194           if test $use_additional = yes; then
30195             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
30196               found_dir="$additional_libdir"
30197               found_so="$additional_libdir/lib$name.$shlibext"
30198               if test -f "$additional_libdir/lib$name.la"; then
30199                 found_la="$additional_libdir/lib$name.la"
30200               fi
30201             elif test x$lib_type != xshared; then
30202               if test -f "$additional_libdir/lib$name.$libext"; then
30203                 found_dir="$additional_libdir"
30204                 found_a="$additional_libdir/lib$name.$libext"
30205                 if test -f "$additional_libdir/lib$name.la"; then
30206                   found_la="$additional_libdir/lib$name.la"
30207                 fi
30208               fi
30209             fi
30210           fi
30211           if test "X$found_dir" = "X"; then
30212             for x in $LDFLAGS $LTLIBBABELTRACE; do
30213
30214   acl_save_prefix="$prefix"
30215   prefix="$acl_final_prefix"
30216   acl_save_exec_prefix="$exec_prefix"
30217   exec_prefix="$acl_final_exec_prefix"
30218   eval x=\"$x\"
30219   exec_prefix="$acl_save_exec_prefix"
30220   prefix="$acl_save_prefix"
30221
30222               case "$x" in
30223                 -L*)
30224                   dir=`echo "X$x" | sed -e 's/^X-L//'`
30225                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
30226                     found_dir="$dir"
30227                     found_so="$dir/lib$name.$shlibext"
30228                     if test -f "$dir/lib$name.la"; then
30229                       found_la="$dir/lib$name.la"
30230                     fi
30231                   elif test x$lib_type != xshared; then
30232                     if test -f "$dir/lib$name.$libext"; then
30233                       found_dir="$dir"
30234                       found_a="$dir/lib$name.$libext"
30235                       if test -f "$dir/lib$name.la"; then
30236                         found_la="$dir/lib$name.la"
30237                       fi
30238                     fi
30239                   fi
30240                   ;;
30241               esac
30242               if test "X$found_dir" != "X"; then
30243                 break
30244               fi
30245             done
30246           fi
30247           if test "X$found_dir" != "X"; then
30248                         LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
30249             if test "X$found_so" != "X"; then
30250                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
30251                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
30252               else
30253                                                                                 haveit=
30254                 for x in $ltrpathdirs; do
30255                   if test "X$x" = "X$found_dir"; then
30256                     haveit=yes
30257                     break
30258                   fi
30259                 done
30260                 if test -z "$haveit"; then
30261                   ltrpathdirs="$ltrpathdirs $found_dir"
30262                 fi
30263                                 if test "$hardcode_direct" = yes; then
30264                                                       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
30265                 else
30266                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
30267                                                             LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
30268                                                             haveit=
30269                     for x in $rpathdirs; do
30270                       if test "X$x" = "X$found_dir"; then
30271                         haveit=yes
30272                         break
30273                       fi
30274                     done
30275                     if test -z "$haveit"; then
30276                       rpathdirs="$rpathdirs $found_dir"
30277                     fi
30278                   else
30279                                                                                 haveit=
30280                     for x in $LDFLAGS $LIBBABELTRACE; do
30281
30282   acl_save_prefix="$prefix"
30283   prefix="$acl_final_prefix"
30284   acl_save_exec_prefix="$exec_prefix"
30285   exec_prefix="$acl_final_exec_prefix"
30286   eval x=\"$x\"
30287   exec_prefix="$acl_save_exec_prefix"
30288   prefix="$acl_save_prefix"
30289
30290                       if test "X$x" = "X-L$found_dir"; then
30291                         haveit=yes
30292                         break
30293                       fi
30294                     done
30295                     if test -z "$haveit"; then
30296                       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
30297                     fi
30298                     if test "$hardcode_minus_L" != no; then
30299                                                                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
30300                     else
30301                                                                                                                                                                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
30302                     fi
30303                   fi
30304                 fi
30305               fi
30306             else
30307               if test "X$found_a" != "X"; then
30308                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
30309               else
30310                                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
30311               fi
30312             fi
30313                         additional_includedir=
30314             case "$found_dir" in
30315               */lib | */lib/)
30316                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
30317                 additional_includedir="$basedir/include"
30318                 ;;
30319             esac
30320             if test "X$additional_includedir" != "X"; then
30321                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
30322                 haveit=
30323                 if test "X$additional_includedir" = "X/usr/local/include"; then
30324                   if test -n "$GCC"; then
30325                     case $host_os in
30326                       linux*) haveit=yes;;
30327                     esac
30328                   fi
30329                 fi
30330                 if test -z "$haveit"; then
30331                   for x in $CPPFLAGS $INCBABELTRACE; do
30332
30333   acl_save_prefix="$prefix"
30334   prefix="$acl_final_prefix"
30335   acl_save_exec_prefix="$exec_prefix"
30336   exec_prefix="$acl_final_exec_prefix"
30337   eval x=\"$x\"
30338   exec_prefix="$acl_save_exec_prefix"
30339   prefix="$acl_save_prefix"
30340
30341                     if test "X$x" = "X-I$additional_includedir"; then
30342                       haveit=yes
30343                       break
30344                     fi
30345                   done
30346                   if test -z "$haveit"; then
30347                     if test -d "$additional_includedir"; then
30348                                             INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
30349                     fi
30350                   fi
30351                 fi
30352               fi
30353             fi
30354                         if test -n "$found_la"; then
30355                                                         save_libdir="$libdir"
30356               case "$found_la" in
30357                 */* | *\\*) . "$found_la" ;;
30358                 *) . "./$found_la" ;;
30359               esac
30360               libdir="$save_libdir"
30361                             for dep in $dependency_libs; do
30362                 case "$dep" in
30363                   -L*)
30364                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
30365                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
30366                       haveit=
30367                       if test "X$additional_libdir" = "X/usr/local/lib"; then
30368                         if test -n "$GCC"; then
30369                           case $host_os in
30370                             linux*) haveit=yes;;
30371                           esac
30372                         fi
30373                       fi
30374                       if test -z "$haveit"; then
30375                         haveit=
30376                         for x in $LDFLAGS $LIBBABELTRACE; do
30377
30378   acl_save_prefix="$prefix"
30379   prefix="$acl_final_prefix"
30380   acl_save_exec_prefix="$exec_prefix"
30381   exec_prefix="$acl_final_exec_prefix"
30382   eval x=\"$x\"
30383   exec_prefix="$acl_save_exec_prefix"
30384   prefix="$acl_save_prefix"
30385
30386                           if test "X$x" = "X-L$additional_libdir"; then
30387                             haveit=yes
30388                             break
30389                           fi
30390                         done
30391                         if test -z "$haveit"; then
30392                           if test -d "$additional_libdir"; then
30393                                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
30394                           fi
30395                         fi
30396                         haveit=
30397                         for x in $LDFLAGS $LTLIBBABELTRACE; do
30398
30399   acl_save_prefix="$prefix"
30400   prefix="$acl_final_prefix"
30401   acl_save_exec_prefix="$exec_prefix"
30402   exec_prefix="$acl_final_exec_prefix"
30403   eval x=\"$x\"
30404   exec_prefix="$acl_save_exec_prefix"
30405   prefix="$acl_save_prefix"
30406
30407                           if test "X$x" = "X-L$additional_libdir"; then
30408                             haveit=yes
30409                             break
30410                           fi
30411                         done
30412                         if test -z "$haveit"; then
30413                           if test -d "$additional_libdir"; then
30414                                                         LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
30415                           fi
30416                         fi
30417                       fi
30418                     fi
30419                     ;;
30420                   -R*)
30421                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
30422                     if test "$enable_rpath" != no; then
30423                                                                   haveit=
30424                       for x in $rpathdirs; do
30425                         if test "X$x" = "X$dir"; then
30426                           haveit=yes
30427                           break
30428                         fi
30429                       done
30430                       if test -z "$haveit"; then
30431                         rpathdirs="$rpathdirs $dir"
30432                       fi
30433                                                                   haveit=
30434                       for x in $ltrpathdirs; do
30435                         if test "X$x" = "X$dir"; then
30436                           haveit=yes
30437                           break
30438                         fi
30439                       done
30440                       if test -z "$haveit"; then
30441                         ltrpathdirs="$ltrpathdirs $dir"
30442                       fi
30443                     fi
30444                     ;;
30445                   -l*)
30446                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
30447                     ;;
30448                   *.la)
30449                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
30450                     ;;
30451                   *)
30452                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
30453                     LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
30454                     ;;
30455                 esac
30456               done
30457             fi
30458           else
30459                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
30460               LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
30461               LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
30462             else
30463               LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
30464               LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
30465             fi
30466           fi
30467         fi
30468       fi
30469     done
30470   done
30471   if test "X$rpathdirs" != "X"; then
30472     if test -n "$hardcode_libdir_separator"; then
30473                         alldirs=
30474       for found_dir in $rpathdirs; do
30475         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
30476       done
30477             acl_save_libdir="$libdir"
30478       libdir="$alldirs"
30479       eval flag=\"$hardcode_libdir_flag_spec\"
30480       libdir="$acl_save_libdir"
30481       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
30482     else
30483             for found_dir in $rpathdirs; do
30484         acl_save_libdir="$libdir"
30485         libdir="$found_dir"
30486         eval flag=\"$hardcode_libdir_flag_spec\"
30487         libdir="$acl_save_libdir"
30488         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
30489       done
30490     fi
30491   fi
30492   if test "X$ltrpathdirs" != "X"; then
30493             for found_dir in $ltrpathdirs; do
30494       LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
30495     done
30496   fi
30497
30498
30499         ac_save_CPPFLAGS="$CPPFLAGS"
30500
30501   for element in $INCBABELTRACE; do
30502     haveit=
30503     for x in $CPPFLAGS; do
30504
30505   acl_save_prefix="$prefix"
30506   prefix="$acl_final_prefix"
30507   acl_save_exec_prefix="$exec_prefix"
30508   exec_prefix="$acl_final_exec_prefix"
30509   eval x=\"$x\"
30510   exec_prefix="$acl_save_exec_prefix"
30511   prefix="$acl_save_prefix"
30512
30513       if test "X$x" = "X$element"; then
30514         haveit=yes
30515         break
30516       fi
30517     done
30518     if test -z "$haveit"; then
30519       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
30520     fi
30521   done
30522
30523
30524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
30525 $as_echo_n "checking for libbabeltrace... " >&6; }
30526 if ${ac_cv_libbabeltrace+:} false; then :
30527   $as_echo_n "(cached) " >&6
30528 else
30529
30530     ac_save_LIBS="$LIBS"
30531     LIBS="$LIBS $LIBBABELTRACE"
30532     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30533 /* end confdefs.h.  */
30534 #include <babeltrace/babeltrace.h>
30535                          #include <babeltrace/ctf/events.h>
30536                          #include <babeltrace/ctf/iterator.h>
30537 int
30538 main ()
30539 {
30540 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
30541                         struct bt_ctf_event *event = NULL;
30542                         const struct bt_definition *scope;
30543
30544                         pos->type = BT_SEEK_BEGIN;
30545                         bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
30546                         scope = bt_ctf_get_top_level_scope (event,
30547                                                            BT_STREAM_EVENT_HEADER);
30548                         bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
30549
30550   ;
30551   return 0;
30552 }
30553 _ACEOF
30554 if ac_fn_c_try_link "$LINENO"; then :
30555   ac_cv_libbabeltrace=yes
30556 else
30557   ac_cv_libbabeltrace=no
30558 fi
30559 rm -f core conftest.err conftest.$ac_objext \
30560     conftest$ac_exeext conftest.$ac_ext
30561     LIBS="$ac_save_LIBS"
30562
30563 fi
30564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
30565 $as_echo "$ac_cv_libbabeltrace" >&6; }
30566   if test "$ac_cv_libbabeltrace" = yes; then
30567     HAVE_LIBBABELTRACE=yes
30568
30569 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
30570
30571     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
30572 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
30573     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
30574 $as_echo "$LIBBABELTRACE" >&6; }
30575   else
30576     HAVE_LIBBABELTRACE=no
30577             CPPFLAGS="$ac_save_CPPFLAGS"
30578     LIBBABELTRACE=
30579     LTLIBBABELTRACE=
30580   fi
30581
30582
30583
30584
30585
30586
30587   CFLAGS=$saved_CFLAGS
30588
30589   if test "$HAVE_LIBBABELTRACE" != yes; then
30590      if test "$with_babeltrace" = yes; then
30591        as_fn_error $? "babeltrace is missing or unusable" "$LINENO" 5
30592      else
30593        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
30594 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
30595      fi
30596   fi
30597 fi
30598
30599 # Check for xxhash
30600
30601 # Check whether --with-xxhash was given.
30602 if test "${with_xxhash+set}" = set; then :
30603   withval=$with_xxhash;
30604 else
30605   with_xxhash=auto
30606 fi
30607
30608
30609  # Check whether --enable-libctf was given.
30610 if test "${enable_libctf+set}" = set; then :
30611   enableval=$enable_libctf;
30612       case "$enableval" in
30613        yes|no) ;;
30614        *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
30615       esac
30616
30617 else
30618   enable_libctf=yes
30619 fi
30620
30621
30622 if test "${enable_libctf}" = yes; then
30623
30624 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
30625
30626   LIBCTF="../libctf/libctf.la"
30627   CTF_DEPS="../libctf/libctf.la"
30628 else
30629   LIBCTF=
30630   CTF_DEPS=
30631 fi
30632
30633
30634
30635 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
30636 # empty version.
30637
30638 if test "x$with_xxhash" != "xno"; then
30639
30640
30641
30642
30643
30644
30645
30646
30647     use_additional=yes
30648
30649   acl_save_prefix="$prefix"
30650   prefix="$acl_final_prefix"
30651   acl_save_exec_prefix="$exec_prefix"
30652   exec_prefix="$acl_final_exec_prefix"
30653
30654     eval additional_includedir=\"$includedir\"
30655     eval additional_libdir=\"$libdir\"
30656
30657   exec_prefix="$acl_save_exec_prefix"
30658   prefix="$acl_save_prefix"
30659
30660
30661 # Check whether --with-libxxhash-prefix was given.
30662 if test "${with_libxxhash_prefix+set}" = set; then :
30663   withval=$with_libxxhash_prefix;
30664     if test "X$withval" = "Xno"; then
30665       use_additional=no
30666     else
30667       if test "X$withval" = "X"; then
30668
30669   acl_save_prefix="$prefix"
30670   prefix="$acl_final_prefix"
30671   acl_save_exec_prefix="$exec_prefix"
30672   exec_prefix="$acl_final_exec_prefix"
30673
30674           eval additional_includedir=\"$includedir\"
30675           eval additional_libdir=\"$libdir\"
30676
30677   exec_prefix="$acl_save_exec_prefix"
30678   prefix="$acl_save_prefix"
30679
30680       else
30681         additional_includedir="$withval/include"
30682         additional_libdir="$withval/lib"
30683       fi
30684     fi
30685
30686 fi
30687
30688
30689 # Check whether --with-libxxhash-type was given.
30690 if test "${with_libxxhash_type+set}" = set; then :
30691   withval=$with_libxxhash_type;  with_libxxhash_type=$withval
30692 else
30693    with_libxxhash_type=auto
30694 fi
30695
30696   lib_type=`eval echo \$with_libxxhash_type`
30697
30698       LIBXXHASH=
30699   LTLIBXXHASH=
30700   INCXXHASH=
30701   rpathdirs=
30702   ltrpathdirs=
30703   names_already_handled=
30704   names_next_round='xxhash '
30705   while test -n "$names_next_round"; do
30706     names_this_round="$names_next_round"
30707     names_next_round=
30708     for name in $names_this_round; do
30709       already_handled=
30710       for n in $names_already_handled; do
30711         if test "$n" = "$name"; then
30712           already_handled=yes
30713           break
30714         fi
30715       done
30716       if test -z "$already_handled"; then
30717         names_already_handled="$names_already_handled $name"
30718                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
30719         eval value=\"\$HAVE_LIB$uppername\"
30720         if test -n "$value"; then
30721           if test "$value" = yes; then
30722             eval value=\"\$LIB$uppername\"
30723             test -z "$value" || LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$value"
30724             eval value=\"\$LTLIB$uppername\"
30725             test -z "$value" || LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
30726           else
30727                                     :
30728           fi
30729         else
30730                               found_dir=
30731           found_la=
30732           found_so=
30733           found_a=
30734           if test $use_additional = yes; then
30735             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
30736               found_dir="$additional_libdir"
30737               found_so="$additional_libdir/lib$name.$shlibext"
30738               if test -f "$additional_libdir/lib$name.la"; then
30739                 found_la="$additional_libdir/lib$name.la"
30740               fi
30741             elif test x$lib_type != xshared; then
30742               if test -f "$additional_libdir/lib$name.$libext"; then
30743                 found_dir="$additional_libdir"
30744                 found_a="$additional_libdir/lib$name.$libext"
30745                 if test -f "$additional_libdir/lib$name.la"; then
30746                   found_la="$additional_libdir/lib$name.la"
30747                 fi
30748               fi
30749             fi
30750           fi
30751           if test "X$found_dir" = "X"; then
30752             for x in $LDFLAGS $LTLIBXXHASH; do
30753
30754   acl_save_prefix="$prefix"
30755   prefix="$acl_final_prefix"
30756   acl_save_exec_prefix="$exec_prefix"
30757   exec_prefix="$acl_final_exec_prefix"
30758   eval x=\"$x\"
30759   exec_prefix="$acl_save_exec_prefix"
30760   prefix="$acl_save_prefix"
30761
30762               case "$x" in
30763                 -L*)
30764                   dir=`echo "X$x" | sed -e 's/^X-L//'`
30765                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
30766                     found_dir="$dir"
30767                     found_so="$dir/lib$name.$shlibext"
30768                     if test -f "$dir/lib$name.la"; then
30769                       found_la="$dir/lib$name.la"
30770                     fi
30771                   elif test x$lib_type != xshared; then
30772                     if test -f "$dir/lib$name.$libext"; then
30773                       found_dir="$dir"
30774                       found_a="$dir/lib$name.$libext"
30775                       if test -f "$dir/lib$name.la"; then
30776                         found_la="$dir/lib$name.la"
30777                       fi
30778                     fi
30779                   fi
30780                   ;;
30781               esac
30782               if test "X$found_dir" != "X"; then
30783                 break
30784               fi
30785             done
30786           fi
30787           if test "X$found_dir" != "X"; then
30788                         LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
30789             if test "X$found_so" != "X"; then
30790                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
30791                                 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
30792               else
30793                                                                                 haveit=
30794                 for x in $ltrpathdirs; do
30795                   if test "X$x" = "X$found_dir"; then
30796                     haveit=yes
30797                     break
30798                   fi
30799                 done
30800                 if test -z "$haveit"; then
30801                   ltrpathdirs="$ltrpathdirs $found_dir"
30802                 fi
30803                                 if test "$hardcode_direct" = yes; then
30804                                                       LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
30805                 else
30806                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
30807                                                             LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
30808                                                             haveit=
30809                     for x in $rpathdirs; do
30810                       if test "X$x" = "X$found_dir"; then
30811                         haveit=yes
30812                         break
30813                       fi
30814                     done
30815                     if test -z "$haveit"; then
30816                       rpathdirs="$rpathdirs $found_dir"
30817                     fi
30818                   else
30819                                                                                 haveit=
30820                     for x in $LDFLAGS $LIBXXHASH; do
30821
30822   acl_save_prefix="$prefix"
30823   prefix="$acl_final_prefix"
30824   acl_save_exec_prefix="$exec_prefix"
30825   exec_prefix="$acl_final_exec_prefix"
30826   eval x=\"$x\"
30827   exec_prefix="$acl_save_exec_prefix"
30828   prefix="$acl_save_prefix"
30829
30830                       if test "X$x" = "X-L$found_dir"; then
30831                         haveit=yes
30832                         break
30833                       fi
30834                     done
30835                     if test -z "$haveit"; then
30836                       LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
30837                     fi
30838                     if test "$hardcode_minus_L" != no; then
30839                                                                                         LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
30840                     else
30841                                                                                                                                                                                 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
30842                     fi
30843                   fi
30844                 fi
30845               fi
30846             else
30847               if test "X$found_a" != "X"; then
30848                                 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
30849               else
30850                                                 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
30851               fi
30852             fi
30853                         additional_includedir=
30854             case "$found_dir" in
30855               */lib | */lib/)
30856                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
30857                 additional_includedir="$basedir/include"
30858                 ;;
30859             esac
30860             if test "X$additional_includedir" != "X"; then
30861                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
30862                 haveit=
30863                 if test "X$additional_includedir" = "X/usr/local/include"; then
30864                   if test -n "$GCC"; then
30865                     case $host_os in
30866                       linux*) haveit=yes;;
30867                     esac
30868                   fi
30869                 fi
30870                 if test -z "$haveit"; then
30871                   for x in $CPPFLAGS $INCXXHASH; do
30872
30873   acl_save_prefix="$prefix"
30874   prefix="$acl_final_prefix"
30875   acl_save_exec_prefix="$exec_prefix"
30876   exec_prefix="$acl_final_exec_prefix"
30877   eval x=\"$x\"
30878   exec_prefix="$acl_save_exec_prefix"
30879   prefix="$acl_save_prefix"
30880
30881                     if test "X$x" = "X-I$additional_includedir"; then
30882                       haveit=yes
30883                       break
30884                     fi
30885                   done
30886                   if test -z "$haveit"; then
30887                     if test -d "$additional_includedir"; then
30888                                             INCXXHASH="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
30889                     fi
30890                   fi
30891                 fi
30892               fi
30893             fi
30894                         if test -n "$found_la"; then
30895                                                         save_libdir="$libdir"
30896               case "$found_la" in
30897                 */* | *\\*) . "$found_la" ;;
30898                 *) . "./$found_la" ;;
30899               esac
30900               libdir="$save_libdir"
30901                             for dep in $dependency_libs; do
30902                 case "$dep" in
30903                   -L*)
30904                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
30905                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
30906                       haveit=
30907                       if test "X$additional_libdir" = "X/usr/local/lib"; then
30908                         if test -n "$GCC"; then
30909                           case $host_os in
30910                             linux*) haveit=yes;;
30911                           esac
30912                         fi
30913                       fi
30914                       if test -z "$haveit"; then
30915                         haveit=
30916                         for x in $LDFLAGS $LIBXXHASH; do
30917
30918   acl_save_prefix="$prefix"
30919   prefix="$acl_final_prefix"
30920   acl_save_exec_prefix="$exec_prefix"
30921   exec_prefix="$acl_final_exec_prefix"
30922   eval x=\"$x\"
30923   exec_prefix="$acl_save_exec_prefix"
30924   prefix="$acl_save_prefix"
30925
30926                           if test "X$x" = "X-L$additional_libdir"; then
30927                             haveit=yes
30928                             break
30929                           fi
30930                         done
30931                         if test -z "$haveit"; then
30932                           if test -d "$additional_libdir"; then
30933                                                         LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
30934                           fi
30935                         fi
30936                         haveit=
30937                         for x in $LDFLAGS $LTLIBXXHASH; do
30938
30939   acl_save_prefix="$prefix"
30940   prefix="$acl_final_prefix"
30941   acl_save_exec_prefix="$exec_prefix"
30942   exec_prefix="$acl_final_exec_prefix"
30943   eval x=\"$x\"
30944   exec_prefix="$acl_save_exec_prefix"
30945   prefix="$acl_save_prefix"
30946
30947                           if test "X$x" = "X-L$additional_libdir"; then
30948                             haveit=yes
30949                             break
30950                           fi
30951                         done
30952                         if test -z "$haveit"; then
30953                           if test -d "$additional_libdir"; then
30954                                                         LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
30955                           fi
30956                         fi
30957                       fi
30958                     fi
30959                     ;;
30960                   -R*)
30961                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
30962                     if test "$enable_rpath" != no; then
30963                                                                   haveit=
30964                       for x in $rpathdirs; do
30965                         if test "X$x" = "X$dir"; then
30966                           haveit=yes
30967                           break
30968                         fi
30969                       done
30970                       if test -z "$haveit"; then
30971                         rpathdirs="$rpathdirs $dir"
30972                       fi
30973                                                                   haveit=
30974                       for x in $ltrpathdirs; do
30975                         if test "X$x" = "X$dir"; then
30976                           haveit=yes
30977                           break
30978                         fi
30979                       done
30980                       if test -z "$haveit"; then
30981                         ltrpathdirs="$ltrpathdirs $dir"
30982                       fi
30983                     fi
30984                     ;;
30985                   -l*)
30986                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
30987                     ;;
30988                   *.la)
30989                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
30990                     ;;
30991                   *)
30992                                         LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$dep"
30993                     LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
30994                     ;;
30995                 esac
30996               done
30997             fi
30998           else
30999                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
31000               LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
31001               LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
31002             else
31003               LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
31004               LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
31005             fi
31006           fi
31007         fi
31008       fi
31009     done
31010   done
31011   if test "X$rpathdirs" != "X"; then
31012     if test -n "$hardcode_libdir_separator"; then
31013                         alldirs=
31014       for found_dir in $rpathdirs; do
31015         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
31016       done
31017             acl_save_libdir="$libdir"
31018       libdir="$alldirs"
31019       eval flag=\"$hardcode_libdir_flag_spec\"
31020       libdir="$acl_save_libdir"
31021       LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$flag"
31022     else
31023             for found_dir in $rpathdirs; do
31024         acl_save_libdir="$libdir"
31025         libdir="$found_dir"
31026         eval flag=\"$hardcode_libdir_flag_spec\"
31027         libdir="$acl_save_libdir"
31028         LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$flag"
31029       done
31030     fi
31031   fi
31032   if test "X$ltrpathdirs" != "X"; then
31033             for found_dir in $ltrpathdirs; do
31034       LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
31035     done
31036   fi
31037
31038
31039         ac_save_CPPFLAGS="$CPPFLAGS"
31040
31041   for element in $INCXXHASH; do
31042     haveit=
31043     for x in $CPPFLAGS; do
31044
31045   acl_save_prefix="$prefix"
31046   prefix="$acl_final_prefix"
31047   acl_save_exec_prefix="$exec_prefix"
31048   exec_prefix="$acl_final_exec_prefix"
31049   eval x=\"$x\"
31050   exec_prefix="$acl_save_exec_prefix"
31051   prefix="$acl_save_prefix"
31052
31053       if test "X$x" = "X$element"; then
31054         haveit=yes
31055         break
31056       fi
31057     done
31058     if test -z "$haveit"; then
31059       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
31060     fi
31061   done
31062
31063
31064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
31065 $as_echo_n "checking for libxxhash... " >&6; }
31066 if ${ac_cv_libxxhash+:} false; then :
31067   $as_echo_n "(cached) " >&6
31068 else
31069
31070     ac_save_LIBS="$LIBS"
31071     LIBS="$LIBS $LIBXXHASH"
31072     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31073 /* end confdefs.h.  */
31074 #include <xxhash.h>
31075 int
31076 main ()
31077 {
31078 XXH32("foo", 3, 0);
31079
31080   ;
31081   return 0;
31082 }
31083 _ACEOF
31084 if ac_fn_c_try_link "$LINENO"; then :
31085   ac_cv_libxxhash=yes
31086 else
31087   ac_cv_libxxhash=no
31088 fi
31089 rm -f core conftest.err conftest.$ac_objext \
31090     conftest$ac_exeext conftest.$ac_ext
31091     LIBS="$ac_save_LIBS"
31092
31093 fi
31094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
31095 $as_echo "$ac_cv_libxxhash" >&6; }
31096   if test "$ac_cv_libxxhash" = yes; then
31097     HAVE_LIBXXHASH=yes
31098
31099 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
31100
31101     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
31102 $as_echo_n "checking how to link with libxxhash... " >&6; }
31103     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
31104 $as_echo "$LIBXXHASH" >&6; }
31105   else
31106     HAVE_LIBXXHASH=no
31107             CPPFLAGS="$ac_save_CPPFLAGS"
31108     LIBXXHASH=
31109     LTLIBXXHASH=
31110   fi
31111
31112
31113
31114
31115
31116
31117   if test "$HAVE_LIBXXHASH" != yes; then
31118     if test "$with_xxhash" = yes; then
31119       as_fn_error $? "xxhash is missing or unusable" "$LINENO" 5
31120     fi
31121   fi
31122   if test "x$with_xxhash" = "xauto"; then
31123     with_xxhash="$HAVE_LIBXXHASH"
31124   fi
31125 fi
31126
31127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
31128 $as_echo_n "checking whether to use xxhash... " >&6; }
31129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
31130 $as_echo "$with_xxhash" >&6; }
31131
31132 NM_H=
31133 rm -f nm.h
31134 if test "${nativefile}" != ""; then
31135     case "${nativefile}" in
31136       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
31137       * ) GDB_NM_FILE="${nativefile}"
31138     esac
31139     ac_config_links="$ac_config_links nm.h:$GDB_NM_FILE"
31140
31141
31142 cat >>confdefs.h <<_ACEOF
31143 #define GDB_NM_FILE "${GDB_NM_FILE}"
31144 _ACEOF
31145
31146     NM_H=nm.h
31147 fi
31148
31149
31150
31151 for ac_prog in xsltproc
31152 do
31153   # Extract the first word of "$ac_prog", so it can be a program name with args.
31154 set dummy $ac_prog; ac_word=$2
31155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31156 $as_echo_n "checking for $ac_word... " >&6; }
31157 if ${ac_cv_path_XSLTPROC+:} false; then :
31158   $as_echo_n "(cached) " >&6
31159 else
31160   case $XSLTPROC in
31161   [\\/]* | ?:[\\/]*)
31162   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
31163   ;;
31164   *)
31165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31166 for as_dir in $PATH
31167 do
31168   IFS=$as_save_IFS
31169   test -z "$as_dir" && as_dir=.
31170     for ac_exec_ext in '' $ac_executable_extensions; do
31171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31172     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
31173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31174     break 2
31175   fi
31176 done
31177   done
31178 IFS=$as_save_IFS
31179
31180   ;;
31181 esac
31182 fi
31183 XSLTPROC=$ac_cv_path_XSLTPROC
31184 if test -n "$XSLTPROC"; then
31185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
31186 $as_echo "$XSLTPROC" >&6; }
31187 else
31188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31189 $as_echo "no" >&6; }
31190 fi
31191
31192
31193   test -n "$XSLTPROC" && break
31194 done
31195 test -n "$XSLTPROC" || XSLTPROC="missing"
31196
31197 if test "x$USE_MAINTAINER_MODE" = xyes; then
31198   if test "${XSLTPROC}" = missing; then
31199     as_fn_error $? "unable to find xsltproc.  maintainer-mode requires xsltproc." "$LINENO" 5
31200   fi
31201 fi
31202
31203
31204
31205
31206
31207 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
31208
31209
31210
31211 # Check whether we will enable the inclusion of unit tests when
31212 # compiling GDB.
31213 #
31214 # The default value of this option changes depending whether we're on
31215 # development mode (in which case it's "true") or not (in which case
31216 # it's "false").  The $development variable is set by the GDB_AC_COMMON
31217 # macro, which must therefore be used before GDB_AC_SELFTEST.
31218
31219 if test "x$development" != xtrue && test "x$development" != xfalse; then :
31220   as_fn_error $? "Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
31221 fi
31222
31223 # Check whether --enable-unit-tests was given.
31224 if test "${enable_unit_tests+set}" = set; then :
31225   enableval=$enable_unit_tests; case "${enableval}" in
31226   yes)  enable_unittests=true  ;;
31227   no)   enable_unittests=false ;;
31228   *)    as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
31229 esac
31230 else
31231   enable_unittests=$development
31232 fi
31233
31234
31235 if $enable_unittests; then
31236
31237 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
31238
31239
31240   CONFIG_OBS="$CONFIG_OBS \$(SELFTESTS_OBS)"
31241   CONFIG_SRCS="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
31242
31243 fi
31244
31245
31246
31247   gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
31248   GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
31249   if test "x$GDB_TRANSFORM_NAME" = x; then
31250      GDB_TRANSFORM_NAME=gdb
31251   fi
31252
31253
31254
31255   gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
31256   GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
31257   if test "x$GCORE_TRANSFORM_NAME" = x; then
31258      GCORE_TRANSFORM_NAME=gcore
31259   fi
31260
31261
31262 ac_config_files="$ac_config_files gcore"
31263
31264 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
31265
31266
31267 cat >confcache <<\_ACEOF
31268 # This file is a shell script that caches the results of configure
31269 # tests run on this system so they can be shared between configure
31270 # scripts and configure runs, see configure's option --config-cache.
31271 # It is not useful on other systems.  If it contains results you don't
31272 # want to keep, you may remove or edit it.
31273 #
31274 # config.status only pays attention to the cache file if you give it
31275 # the --recheck option to rerun configure.
31276 #
31277 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31278 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31279 # following values.
31280
31281 _ACEOF
31282
31283 # The following way of writing the cache mishandles newlines in values,
31284 # but we know of no workaround that is simple, portable, and efficient.
31285 # So, we kill variables containing newlines.
31286 # Ultrix sh set writes to stderr and can't be redirected directly,
31287 # and sets the high bit in the cache file unless we assign to the vars.
31288 (
31289   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31290     eval ac_val=\$$ac_var
31291     case $ac_val in #(
31292     *${as_nl}*)
31293       case $ac_var in #(
31294       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31295 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31296       esac
31297       case $ac_var in #(
31298       _ | IFS | as_nl) ;; #(
31299       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31300       *) { eval $ac_var=; unset $ac_var;} ;;
31301       esac ;;
31302     esac
31303   done
31304
31305   (set) 2>&1 |
31306     case $as_nl`(ac_space=' '; set) 2>&1` in #(
31307     *${as_nl}ac_space=\ *)
31308       # `set' does not quote correctly, so add quotes: double-quote
31309       # substitution turns \\\\ into \\, and sed turns \\ into \.
31310       sed -n \
31311         "s/'/'\\\\''/g;
31312           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31313       ;; #(
31314     *)
31315       # `set' quotes correctly as required by POSIX, so do not add quotes.
31316       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31317       ;;
31318     esac |
31319     sort
31320 ) |
31321   sed '
31322      /^ac_cv_env_/b end
31323      t clear
31324      :clear
31325      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31326      t end
31327      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31328      :end' >>confcache
31329 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31330   if test -w "$cache_file"; then
31331     if test "x$cache_file" != "x/dev/null"; then
31332       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31333 $as_echo "$as_me: updating cache $cache_file" >&6;}
31334       if test ! -f "$cache_file" || test -h "$cache_file"; then
31335         cat confcache >"$cache_file"
31336       else
31337         case $cache_file in #(
31338         */* | ?:*)
31339           mv -f confcache "$cache_file"$$ &&
31340           mv -f "$cache_file"$$ "$cache_file" ;; #(
31341         *)
31342           mv -f confcache "$cache_file" ;;
31343         esac
31344       fi
31345     fi
31346   else
31347     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31348 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31349   fi
31350 fi
31351 rm -f confcache
31352
31353 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31354 # Let make expand exec_prefix.
31355 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31356
31357 DEFS=-DHAVE_CONFIG_H
31358
31359 ac_libobjs=
31360 ac_ltlibobjs=
31361 U=
31362 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31363   # 1. Remove the extension, and $U if already installed.
31364   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31365   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31366   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
31367   #    will be set to the directory where LIBOBJS objects are built.
31368   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31369   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31370 done
31371 LIBOBJS=$ac_libobjs
31372
31373 LTLIBOBJS=$ac_ltlibobjs
31374
31375
31376 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
31377   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
31378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31379 fi
31380 if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
31381   as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined.
31382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31383 fi
31384 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
31385   as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
31386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31387 fi
31388 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
31389   as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
31390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31391 fi
31392
31393
31394 : "${CONFIG_STATUS=./config.status}"
31395 ac_write_fail=0
31396 ac_clean_files_save=$ac_clean_files
31397 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31398 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31399 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31400 as_write_fail=0
31401 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31402 #! $SHELL
31403 # Generated by $as_me.
31404 # Run this file to recreate the current configuration.
31405 # Compiler output produced by configure, useful for debugging
31406 # configure, is in config.log if it exists.
31407
31408 debug=false
31409 ac_cs_recheck=false
31410 ac_cs_silent=false
31411
31412 SHELL=\${CONFIG_SHELL-$SHELL}
31413 export SHELL
31414 _ASEOF
31415 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31416 ## -------------------- ##
31417 ## M4sh Initialization. ##
31418 ## -------------------- ##
31419
31420 # Be more Bourne compatible
31421 DUALCASE=1; export DUALCASE # for MKS sh
31422 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31423   emulate sh
31424   NULLCMD=:
31425   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31426   # is contrary to our usage.  Disable this feature.
31427   alias -g '${1+"$@"}'='"$@"'
31428   setopt NO_GLOB_SUBST
31429 else
31430   case `(set -o) 2>/dev/null` in #(
31431   *posix*) :
31432     set -o posix ;; #(
31433   *) :
31434      ;;
31435 esac
31436 fi
31437
31438
31439 as_nl='
31440 '
31441 export as_nl
31442 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31443 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31444 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31445 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31446 # Prefer a ksh shell builtin over an external printf program on Solaris,
31447 # but without wasting forks for bash or zsh.
31448 if test -z "$BASH_VERSION$ZSH_VERSION" \
31449     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31450   as_echo='print -r --'
31451   as_echo_n='print -rn --'
31452 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31453   as_echo='printf %s\n'
31454   as_echo_n='printf %s'
31455 else
31456   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31457     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31458     as_echo_n='/usr/ucb/echo -n'
31459   else
31460     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31461     as_echo_n_body='eval
31462       arg=$1;
31463       case $arg in #(
31464       *"$as_nl"*)
31465         expr "X$arg" : "X\\(.*\\)$as_nl";
31466         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31467       esac;
31468       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31469     '
31470     export as_echo_n_body
31471     as_echo_n='sh -c $as_echo_n_body as_echo'
31472   fi
31473   export as_echo_body
31474   as_echo='sh -c $as_echo_body as_echo'
31475 fi
31476
31477 # The user is always right.
31478 if test "${PATH_SEPARATOR+set}" != set; then
31479   PATH_SEPARATOR=:
31480   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31481     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31482       PATH_SEPARATOR=';'
31483   }
31484 fi
31485
31486
31487 # IFS
31488 # We need space, tab and new line, in precisely that order.  Quoting is
31489 # there to prevent editors from complaining about space-tab.
31490 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31491 # splitting by setting IFS to empty value.)
31492 IFS=" ""        $as_nl"
31493
31494 # Find who we are.  Look in the path if we contain no directory separator.
31495 as_myself=
31496 case $0 in #((
31497   *[\\/]* ) as_myself=$0 ;;
31498   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31499 for as_dir in $PATH
31500 do
31501   IFS=$as_save_IFS
31502   test -z "$as_dir" && as_dir=.
31503     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31504   done
31505 IFS=$as_save_IFS
31506
31507      ;;
31508 esac
31509 # We did not find ourselves, most probably we were run as `sh COMMAND'
31510 # in which case we are not to be found in the path.
31511 if test "x$as_myself" = x; then
31512   as_myself=$0
31513 fi
31514 if test ! -f "$as_myself"; then
31515   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31516   exit 1
31517 fi
31518
31519 # Unset variables that we do not need and which cause bugs (e.g. in
31520 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
31521 # suppresses any "Segmentation fault" message there.  '((' could
31522 # trigger a bug in pdksh 5.2.14.
31523 for as_var in BASH_ENV ENV MAIL MAILPATH
31524 do eval test x\${$as_var+set} = xset \
31525   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31526 done
31527 PS1='$ '
31528 PS2='> '
31529 PS4='+ '
31530
31531 # NLS nuisances.
31532 LC_ALL=C
31533 export LC_ALL
31534 LANGUAGE=C
31535 export LANGUAGE
31536
31537 # CDPATH.
31538 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31539
31540
31541 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31542 # ----------------------------------------
31543 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31544 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31545 # script with STATUS, using 1 if that was 0.
31546 as_fn_error ()
31547 {
31548   as_status=$1; test $as_status -eq 0 && as_status=1
31549   if test "$4"; then
31550     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31551     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31552   fi
31553   $as_echo "$as_me: error: $2" >&2
31554   as_fn_exit $as_status
31555 } # as_fn_error
31556
31557
31558 # as_fn_set_status STATUS
31559 # -----------------------
31560 # Set $? to STATUS, without forking.
31561 as_fn_set_status ()
31562 {
31563   return $1
31564 } # as_fn_set_status
31565
31566 # as_fn_exit STATUS
31567 # -----------------
31568 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31569 as_fn_exit ()
31570 {
31571   set +e
31572   as_fn_set_status $1
31573   exit $1
31574 } # as_fn_exit
31575
31576 # as_fn_unset VAR
31577 # ---------------
31578 # Portably unset VAR.
31579 as_fn_unset ()
31580 {
31581   { eval $1=; unset $1;}
31582 }
31583 as_unset=as_fn_unset
31584 # as_fn_append VAR VALUE
31585 # ----------------------
31586 # Append the text in VALUE to the end of the definition contained in VAR. Take
31587 # advantage of any shell optimizations that allow amortized linear growth over
31588 # repeated appends, instead of the typical quadratic growth present in naive
31589 # implementations.
31590 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31591   eval 'as_fn_append ()
31592   {
31593     eval $1+=\$2
31594   }'
31595 else
31596   as_fn_append ()
31597   {
31598     eval $1=\$$1\$2
31599   }
31600 fi # as_fn_append
31601
31602 # as_fn_arith ARG...
31603 # ------------------
31604 # Perform arithmetic evaluation on the ARGs, and store the result in the
31605 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31606 # must be portable across $(()) and expr.
31607 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31608   eval 'as_fn_arith ()
31609   {
31610     as_val=$(( $* ))
31611   }'
31612 else
31613   as_fn_arith ()
31614   {
31615     as_val=`expr "$@" || test $? -eq 1`
31616   }
31617 fi # as_fn_arith
31618
31619
31620 if expr a : '\(a\)' >/dev/null 2>&1 &&
31621    test "X`expr 00001 : '.*\(...\)'`" = X001; then
31622   as_expr=expr
31623 else
31624   as_expr=false
31625 fi
31626
31627 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31628   as_basename=basename
31629 else
31630   as_basename=false
31631 fi
31632
31633 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31634   as_dirname=dirname
31635 else
31636   as_dirname=false
31637 fi
31638
31639 as_me=`$as_basename -- "$0" ||
31640 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31641          X"$0" : 'X\(//\)$' \| \
31642          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31643 $as_echo X/"$0" |
31644     sed '/^.*\/\([^/][^/]*\)\/*$/{
31645             s//\1/
31646             q
31647           }
31648           /^X\/\(\/\/\)$/{
31649             s//\1/
31650             q
31651           }
31652           /^X\/\(\/\).*/{
31653             s//\1/
31654             q
31655           }
31656           s/.*/./; q'`
31657
31658 # Avoid depending upon Character Ranges.
31659 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31660 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31661 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31662 as_cr_digits='0123456789'
31663 as_cr_alnum=$as_cr_Letters$as_cr_digits
31664
31665 ECHO_C= ECHO_N= ECHO_T=
31666 case `echo -n x` in #(((((
31667 -n*)
31668   case `echo 'xy\c'` in
31669   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
31670   xy)  ECHO_C='\c';;
31671   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31672        ECHO_T=' ';;
31673   esac;;
31674 *)
31675   ECHO_N='-n';;
31676 esac
31677
31678 rm -f conf$$ conf$$.exe conf$$.file
31679 if test -d conf$$.dir; then
31680   rm -f conf$$.dir/conf$$.file
31681 else
31682   rm -f conf$$.dir
31683   mkdir conf$$.dir 2>/dev/null
31684 fi
31685 if (echo >conf$$.file) 2>/dev/null; then
31686   if ln -s conf$$.file conf$$ 2>/dev/null; then
31687     as_ln_s='ln -s'
31688     # ... but there are two gotchas:
31689     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31690     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31691     # In both cases, we have to default to `cp -pR'.
31692     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31693       as_ln_s='cp -pR'
31694   elif ln conf$$.file conf$$ 2>/dev/null; then
31695     as_ln_s=ln
31696   else
31697     as_ln_s='cp -pR'
31698   fi
31699 else
31700   as_ln_s='cp -pR'
31701 fi
31702 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31703 rmdir conf$$.dir 2>/dev/null
31704
31705
31706 # as_fn_mkdir_p
31707 # -------------
31708 # Create "$as_dir" as a directory, including parents if necessary.
31709 as_fn_mkdir_p ()
31710 {
31711
31712   case $as_dir in #(
31713   -*) as_dir=./$as_dir;;
31714   esac
31715   test -d "$as_dir" || eval $as_mkdir_p || {
31716     as_dirs=
31717     while :; do
31718       case $as_dir in #(
31719       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31720       *) as_qdir=$as_dir;;
31721       esac
31722       as_dirs="'$as_qdir' $as_dirs"
31723       as_dir=`$as_dirname -- "$as_dir" ||
31724 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31725          X"$as_dir" : 'X\(//\)[^/]' \| \
31726          X"$as_dir" : 'X\(//\)$' \| \
31727          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31728 $as_echo X"$as_dir" |
31729     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31730             s//\1/
31731             q
31732           }
31733           /^X\(\/\/\)[^/].*/{
31734             s//\1/
31735             q
31736           }
31737           /^X\(\/\/\)$/{
31738             s//\1/
31739             q
31740           }
31741           /^X\(\/\).*/{
31742             s//\1/
31743             q
31744           }
31745           s/.*/./; q'`
31746       test -d "$as_dir" && break
31747     done
31748     test -z "$as_dirs" || eval "mkdir $as_dirs"
31749   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31750
31751
31752 } # as_fn_mkdir_p
31753 if mkdir -p . 2>/dev/null; then
31754   as_mkdir_p='mkdir -p "$as_dir"'
31755 else
31756   test -d ./-p && rmdir ./-p
31757   as_mkdir_p=false
31758 fi
31759
31760
31761 # as_fn_executable_p FILE
31762 # -----------------------
31763 # Test if FILE is an executable regular file.
31764 as_fn_executable_p ()
31765 {
31766   test -f "$1" && test -x "$1"
31767 } # as_fn_executable_p
31768 as_test_x='test -x'
31769 as_executable_p=as_fn_executable_p
31770
31771 # Sed expression to map a string onto a valid CPP name.
31772 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31773
31774 # Sed expression to map a string onto a valid variable name.
31775 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31776
31777
31778 exec 6>&1
31779 ## ----------------------------------- ##
31780 ## Main body of $CONFIG_STATUS script. ##
31781 ## ----------------------------------- ##
31782 _ASEOF
31783 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31784
31785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31786 # Save the log message, to keep $0 and so on meaningful, and to
31787 # report actual input values of CONFIG_FILES etc. instead of their
31788 # values after options handling.
31789 ac_log="
31790 This file was extended by $as_me, which was
31791 generated by GNU Autoconf 2.69.  Invocation command line was
31792
31793   CONFIG_FILES    = $CONFIG_FILES
31794   CONFIG_HEADERS  = $CONFIG_HEADERS
31795   CONFIG_LINKS    = $CONFIG_LINKS
31796   CONFIG_COMMANDS = $CONFIG_COMMANDS
31797   $ $0 $@
31798
31799 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31800 "
31801
31802 _ACEOF
31803
31804 case $ac_config_files in *"
31805 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31806 esac
31807
31808 case $ac_config_headers in *"
31809 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31810 esac
31811
31812
31813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31814 # Files that config.status was made for.
31815 config_files="$ac_config_files"
31816 config_headers="$ac_config_headers"
31817 config_links="$ac_config_links"
31818 config_commands="$ac_config_commands"
31819
31820 _ACEOF
31821
31822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31823 ac_cs_usage="\
31824 \`$as_me' instantiates files and other configuration actions
31825 from templates according to the current configuration.  Unless the files
31826 and actions are specified as TAGs, all are instantiated by default.
31827
31828 Usage: $0 [OPTION]... [TAG]...
31829
31830   -h, --help       print this help, then exit
31831   -V, --version    print version number and configuration settings, then exit
31832       --config     print configuration, then exit
31833   -q, --quiet, --silent
31834                    do not print progress messages
31835   -d, --debug      don't remove temporary files
31836       --recheck    update $as_me by reconfiguring in the same conditions
31837       --file=FILE[:TEMPLATE]
31838                    instantiate the configuration file FILE
31839       --header=FILE[:TEMPLATE]
31840                    instantiate the configuration header FILE
31841
31842 Configuration files:
31843 $config_files
31844
31845 Configuration headers:
31846 $config_headers
31847
31848 Configuration links:
31849 $config_links
31850
31851 Configuration commands:
31852 $config_commands
31853
31854 Report bugs to the package provider."
31855
31856 _ACEOF
31857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31858 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31859 ac_cs_version="\\
31860 config.status
31861 configured by $0, generated by GNU Autoconf 2.69,
31862   with options \\"\$ac_cs_config\\"
31863
31864 Copyright (C) 2012 Free Software Foundation, Inc.
31865 This config.status script is free software; the Free Software Foundation
31866 gives unlimited permission to copy, distribute and modify it."
31867
31868 ac_pwd='$ac_pwd'
31869 srcdir='$srcdir'
31870 INSTALL='$INSTALL'
31871 AWK='$AWK'
31872 test -n "\$AWK" || AWK=awk
31873 _ACEOF
31874
31875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31876 # The default lists apply if the user does not specify any file.
31877 ac_need_defaults=:
31878 while test $# != 0
31879 do
31880   case $1 in
31881   --*=?*)
31882     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31883     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31884     ac_shift=:
31885     ;;
31886   --*=)
31887     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31888     ac_optarg=
31889     ac_shift=:
31890     ;;
31891   *)
31892     ac_option=$1
31893     ac_optarg=$2
31894     ac_shift=shift
31895     ;;
31896   esac
31897
31898   case $ac_option in
31899   # Handling of the options.
31900   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31901     ac_cs_recheck=: ;;
31902   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31903     $as_echo "$ac_cs_version"; exit ;;
31904   --config | --confi | --conf | --con | --co | --c )
31905     $as_echo "$ac_cs_config"; exit ;;
31906   --debug | --debu | --deb | --de | --d | -d )
31907     debug=: ;;
31908   --file | --fil | --fi | --f )
31909     $ac_shift
31910     case $ac_optarg in
31911     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31912     '') as_fn_error $? "missing file argument" ;;
31913     esac
31914     as_fn_append CONFIG_FILES " '$ac_optarg'"
31915     ac_need_defaults=false;;
31916   --header | --heade | --head | --hea )
31917     $ac_shift
31918     case $ac_optarg in
31919     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31920     esac
31921     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31922     ac_need_defaults=false;;
31923   --he | --h)
31924     # Conflict between --help and --header
31925     as_fn_error $? "ambiguous option: \`$1'
31926 Try \`$0 --help' for more information.";;
31927   --help | --hel | -h )
31928     $as_echo "$ac_cs_usage"; exit ;;
31929   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31930   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31931     ac_cs_silent=: ;;
31932
31933   # This is an error.
31934   -*) as_fn_error $? "unrecognized option: \`$1'
31935 Try \`$0 --help' for more information." ;;
31936
31937   *) as_fn_append ac_config_targets " $1"
31938      ac_need_defaults=false ;;
31939
31940   esac
31941   shift
31942 done
31943
31944 ac_configure_extra_args=
31945
31946 if $ac_cs_silent; then
31947   exec 6>/dev/null
31948   ac_configure_extra_args="$ac_configure_extra_args --silent"
31949 fi
31950
31951 _ACEOF
31952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31953 if \$ac_cs_recheck; then
31954   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31955   shift
31956   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31957   CONFIG_SHELL='$SHELL'
31958   export CONFIG_SHELL
31959   exec "\$@"
31960 fi
31961
31962 _ACEOF
31963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31964 exec 5>>config.log
31965 {
31966   echo
31967   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31968 ## Running $as_me. ##
31969 _ASBOX
31970   $as_echo "$ac_log"
31971 } >&5
31972
31973 _ACEOF
31974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31975 #
31976 # INIT-COMMANDS
31977 #
31978
31979
31980 # The HP-UX ksh and POSIX shell print the target directory to stdout
31981 # if CDPATH is set.
31982 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31983
31984 sed_quote_subst='$sed_quote_subst'
31985 double_quote_subst='$double_quote_subst'
31986 delay_variable_subst='$delay_variable_subst'
31987 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31988 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31989 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31990 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31991 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31992 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31993 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31994 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31995 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31996 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31997 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31998 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31999 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
32000 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
32001 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
32002 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
32003 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
32004 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
32005 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
32006 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
32007 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
32008 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
32009 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
32010 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
32011 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
32012 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
32013 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
32014 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
32015 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
32016 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
32017 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
32018 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
32019 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
32020 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
32021 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
32022 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
32023 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
32024 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32025 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32026 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
32027 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
32028 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
32029 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
32030 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
32031 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
32032 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
32033 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
32034 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
32035 lt_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"`'
32036 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
32037 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
32038 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
32039 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
32040 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
32041 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
32042 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
32043 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
32044 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
32045 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
32046 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
32047 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
32048 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
32049 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
32050 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
32051 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32052 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
32053 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
32054 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
32055 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
32056 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
32057 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
32058 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32059 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
32060 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32061 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
32062 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32063 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
32064 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
32065 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
32066 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
32067 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
32068 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
32069 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
32070 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
32071 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
32072 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
32073 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
32074 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
32075 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
32076 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
32077 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
32078 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
32079 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
32080 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
32081 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
32082 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
32083 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
32084 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
32085 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
32086 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
32087 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
32088 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
32089 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
32090 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
32091 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
32092 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
32093 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
32094 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32095 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32096 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
32097 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
32098 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
32099 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
32100 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
32101 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
32102 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
32103 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
32104 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
32105 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
32106 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
32107 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
32108 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
32109 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
32110 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
32111 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
32112 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
32113 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
32114 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
32115 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32116 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32117 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
32118 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
32119 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
32120 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
32121 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
32122 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
32123 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
32124 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
32125 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
32126 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32127 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32128 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
32129 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32130 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32131 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32132 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32133 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32134 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32135 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
32136 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32137 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32138 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32139 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
32140 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
32141 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
32142 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
32143 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
32144 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
32145 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
32146 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
32147 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
32148 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
32149 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
32150 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32151 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32152 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32153 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32154 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
32155 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
32156 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
32157 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32158 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32159 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
32160 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
32161 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
32162
32163 LTCC='$LTCC'
32164 LTCFLAGS='$LTCFLAGS'
32165 compiler='$compiler_DEFAULT'
32166
32167 # A function that is used when there is no print builtin or printf.
32168 func_fallback_echo ()
32169 {
32170   eval 'cat <<_LTECHO_EOF
32171 \$1
32172 _LTECHO_EOF'
32173 }
32174
32175 # Quote evaled strings.
32176 for var in SHELL \
32177 ECHO \
32178 SED \
32179 GREP \
32180 EGREP \
32181 FGREP \
32182 LD \
32183 NM \
32184 LN_S \
32185 lt_SP2NL \
32186 lt_NL2SP \
32187 reload_flag \
32188 OBJDUMP \
32189 deplibs_check_method \
32190 file_magic_cmd \
32191 AR \
32192 AR_FLAGS \
32193 STRIP \
32194 RANLIB \
32195 CC \
32196 CFLAGS \
32197 compiler \
32198 lt_cv_sys_global_symbol_pipe \
32199 lt_cv_sys_global_symbol_to_cdecl \
32200 lt_cv_sys_global_symbol_to_c_name_address \
32201 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
32202 lt_prog_compiler_no_builtin_flag \
32203 lt_prog_compiler_wl \
32204 lt_prog_compiler_pic \
32205 lt_prog_compiler_static \
32206 lt_cv_prog_compiler_c_o \
32207 need_locks \
32208 DSYMUTIL \
32209 NMEDIT \
32210 LIPO \
32211 OTOOL \
32212 OTOOL64 \
32213 shrext_cmds \
32214 export_dynamic_flag_spec \
32215 whole_archive_flag_spec \
32216 compiler_needs_object \
32217 with_gnu_ld \
32218 allow_undefined_flag \
32219 no_undefined_flag \
32220 hardcode_libdir_flag_spec \
32221 hardcode_libdir_flag_spec_ld \
32222 hardcode_libdir_separator \
32223 fix_srcfile_path \
32224 exclude_expsyms \
32225 include_expsyms \
32226 file_list_spec \
32227 variables_saved_for_relink \
32228 libname_spec \
32229 library_names_spec \
32230 soname_spec \
32231 install_override_mode \
32232 finish_eval \
32233 old_striplib \
32234 striplib \
32235 compiler_lib_search_dirs \
32236 predep_objects \
32237 postdep_objects \
32238 predeps \
32239 postdeps \
32240 compiler_lib_search_path \
32241 LD_CXX \
32242 reload_flag_CXX \
32243 compiler_CXX \
32244 lt_prog_compiler_no_builtin_flag_CXX \
32245 lt_prog_compiler_wl_CXX \
32246 lt_prog_compiler_pic_CXX \
32247 lt_prog_compiler_static_CXX \
32248 lt_cv_prog_compiler_c_o_CXX \
32249 export_dynamic_flag_spec_CXX \
32250 whole_archive_flag_spec_CXX \
32251 compiler_needs_object_CXX \
32252 with_gnu_ld_CXX \
32253 allow_undefined_flag_CXX \
32254 no_undefined_flag_CXX \
32255 hardcode_libdir_flag_spec_CXX \
32256 hardcode_libdir_flag_spec_ld_CXX \
32257 hardcode_libdir_separator_CXX \
32258 fix_srcfile_path_CXX \
32259 exclude_expsyms_CXX \
32260 include_expsyms_CXX \
32261 file_list_spec_CXX \
32262 compiler_lib_search_dirs_CXX \
32263 predep_objects_CXX \
32264 postdep_objects_CXX \
32265 predeps_CXX \
32266 postdeps_CXX \
32267 compiler_lib_search_path_CXX; do
32268     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32269     *[\\\\\\\`\\"\\\$]*)
32270       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
32271       ;;
32272     *)
32273       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32274       ;;
32275     esac
32276 done
32277
32278 # Double-quote double-evaled strings.
32279 for var in reload_cmds \
32280 old_postinstall_cmds \
32281 old_postuninstall_cmds \
32282 old_archive_cmds \
32283 extract_expsyms_cmds \
32284 old_archive_from_new_cmds \
32285 old_archive_from_expsyms_cmds \
32286 archive_cmds \
32287 archive_expsym_cmds \
32288 module_cmds \
32289 module_expsym_cmds \
32290 export_symbols_cmds \
32291 prelink_cmds \
32292 postinstall_cmds \
32293 postuninstall_cmds \
32294 finish_cmds \
32295 sys_lib_search_path_spec \
32296 sys_lib_dlsearch_path_spec \
32297 reload_cmds_CXX \
32298 old_archive_cmds_CXX \
32299 old_archive_from_new_cmds_CXX \
32300 old_archive_from_expsyms_cmds_CXX \
32301 archive_cmds_CXX \
32302 archive_expsym_cmds_CXX \
32303 module_cmds_CXX \
32304 module_expsym_cmds_CXX \
32305 export_symbols_cmds_CXX \
32306 prelink_cmds_CXX; do
32307     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32308     *[\\\\\\\`\\"\\\$]*)
32309       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
32310       ;;
32311     *)
32312       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32313       ;;
32314     esac
32315 done
32316
32317 ac_aux_dir='$ac_aux_dir'
32318 xsi_shell='$xsi_shell'
32319 lt_shell_append='$lt_shell_append'
32320
32321 # See if we are running on zsh, and set the options which allow our
32322 # commands through without removal of \ escapes INIT.
32323 if test -n "\${ZSH_VERSION+set}" ; then
32324    setopt NO_GLOB_SUBST
32325 fi
32326
32327
32328     PACKAGE='$PACKAGE'
32329     VERSION='$VERSION'
32330     TIMESTAMP='$TIMESTAMP'
32331     RM='$RM'
32332     ofile='$ofile'
32333
32334
32335
32336 ac_aux_dir='$ac_aux_dir'
32337
32338
32339 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
32340 GDB_NM_FILE=$GDB_NM_FILE
32341
32342 _ACEOF
32343
32344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32345
32346 # Handling of arguments.
32347 for ac_config_target in $ac_config_targets
32348 do
32349   case $ac_config_target in
32350     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
32351     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32352     "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
32353     "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
32354     "nm.h") CONFIG_LINKS="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
32355     "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
32356     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32357     "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
32358     "gdb-gdb.py") CONFIG_FILES="$CONFIG_FILES gdb-gdb.py" ;;
32359     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
32360     "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
32361
32362   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32363   esac
32364 done
32365
32366
32367 # If the user did not use the arguments to specify the items to instantiate,
32368 # then the envvar interface is used.  Set only those that are not.
32369 # We use the long form for the default assignment because of an extremely
32370 # bizarre bug on SunOS 4.1.3.
32371 if $ac_need_defaults; then
32372   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32373   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32374   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
32375   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32376 fi
32377
32378 # Have a temporary directory for convenience.  Make it in the build tree
32379 # simply because there is no reason against having it here, and in addition,
32380 # creating and moving files from /tmp can sometimes cause problems.
32381 # Hook for its removal unless debugging.
32382 # Note that there is a small window in which the directory will not be cleaned:
32383 # after its creation but before its name has been assigned to `$tmp'.
32384 $debug ||
32385 {
32386   tmp= ac_tmp=
32387   trap 'exit_status=$?
32388   : "${ac_tmp:=$tmp}"
32389   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32390 ' 0
32391   trap 'as_fn_exit 1' 1 2 13 15
32392 }
32393 # Create a (secure) tmp directory for tmp files.
32394
32395 {
32396   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32397   test -d "$tmp"
32398 }  ||
32399 {
32400   tmp=./conf$$-$RANDOM
32401   (umask 077 && mkdir "$tmp")
32402 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32403 ac_tmp=$tmp
32404
32405 # Set up the scripts for CONFIG_FILES section.
32406 # No need to generate them if there are no CONFIG_FILES.
32407 # This happens for instance with `./config.status config.h'.
32408 if test -n "$CONFIG_FILES"; then
32409
32410 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32411   ac_cs_awk_getline=:
32412   ac_cs_awk_pipe_init=
32413   ac_cs_awk_read_file='
32414       while ((getline aline < (F[key])) > 0)
32415         print(aline)
32416       close(F[key])'
32417   ac_cs_awk_pipe_fini=
32418 else
32419   ac_cs_awk_getline=false
32420   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32421   ac_cs_awk_read_file='
32422       print "|#_!!_#|"
32423       print "cat " F[key] " &&"
32424       '$ac_cs_awk_pipe_init
32425   # The final `:' finishes the AND list.
32426   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32427 fi
32428 ac_cr=`echo X | tr X '\015'`
32429 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32430 # But we know of no other shell where ac_cr would be empty at this
32431 # point, so we can use a bashism as a fallback.
32432 if test "x$ac_cr" = x; then
32433   eval ac_cr=\$\'\\r\'
32434 fi
32435 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32436 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32437   ac_cs_awk_cr='\\r'
32438 else
32439   ac_cs_awk_cr=$ac_cr
32440 fi
32441
32442 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32443 _ACEOF
32444
32445 # Create commands to substitute file output variables.
32446 {
32447   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32448   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32449   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32450   echo "_ACAWK" &&
32451   echo "_ACEOF"
32452 } >conf$$files.sh &&
32453 . ./conf$$files.sh ||
32454   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32455 rm -f conf$$files.sh
32456
32457 {
32458   echo "cat >conf$$subs.awk <<_ACEOF" &&
32459   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32460   echo "_ACEOF"
32461 } >conf$$subs.sh ||
32462   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32463 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32464 ac_delim='%!_!# '
32465 for ac_last_try in false false false false false :; do
32466   . ./conf$$subs.sh ||
32467     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32468
32469   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32470   if test $ac_delim_n = $ac_delim_num; then
32471     break
32472   elif $ac_last_try; then
32473     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32474   else
32475     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32476   fi
32477 done
32478 rm -f conf$$subs.sh
32479
32480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32481 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32482 _ACEOF
32483 sed -n '
32484 h
32485 s/^/S["/; s/!.*/"]=/
32486 p
32487 g
32488 s/^[^!]*!//
32489 :repl
32490 t repl
32491 s/'"$ac_delim"'$//
32492 t delim
32493 :nl
32494 h
32495 s/\(.\{148\}\)..*/\1/
32496 t more1
32497 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32498 p
32499 n
32500 b repl
32501 :more1
32502 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32503 p
32504 g
32505 s/.\{148\}//
32506 t nl
32507 :delim
32508 h
32509 s/\(.\{148\}\)..*/\1/
32510 t more2
32511 s/["\\]/\\&/g; s/^/"/; s/$/"/
32512 p
32513 b
32514 :more2
32515 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32516 p
32517 g
32518 s/.\{148\}//
32519 t delim
32520 ' <conf$$subs.awk | sed '
32521 /^[^""]/{
32522   N
32523   s/\n//
32524 }
32525 ' >>$CONFIG_STATUS || ac_write_fail=1
32526 rm -f conf$$subs.awk
32527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32528 _ACAWK
32529 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32530   for (key in S) S_is_set[key] = 1
32531   FS = "\a"
32532   \$ac_cs_awk_pipe_init
32533 }
32534 {
32535   line = $ 0
32536   nfields = split(line, field, "@")
32537   substed = 0
32538   len = length(field[1])
32539   for (i = 2; i < nfields; i++) {
32540     key = field[i]
32541     keylen = length(key)
32542     if (S_is_set[key]) {
32543       value = S[key]
32544       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32545       len += length(value) + length(field[++i])
32546       substed = 1
32547     } else
32548       len += 1 + keylen
32549   }
32550   if (nfields == 3 && !substed) {
32551     key = field[2]
32552     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
32553       \$ac_cs_awk_read_file
32554       next
32555     }
32556   }
32557   print line
32558 }
32559 \$ac_cs_awk_pipe_fini
32560 _ACAWK
32561 _ACEOF
32562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32563 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32564   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32565 else
32566   cat
32567 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32568   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32569 _ACEOF
32570
32571 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32572 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32573 # trailing colons and then remove the whole line if VPATH becomes empty
32574 # (actually we leave an empty line to preserve line numbers).
32575 if test "x$srcdir" = x.; then
32576   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
32577 h
32578 s///
32579 s/^/:/
32580 s/[      ]*$/:/
32581 s/:\$(srcdir):/:/g
32582 s/:\${srcdir}:/:/g
32583 s/:@srcdir@:/:/g
32584 s/^:*//
32585 s/:*$//
32586 x
32587 s/\(=[   ]*\).*/\1/
32588 G
32589 s/\n//
32590 s/^[^=]*=[       ]*$//
32591 }'
32592 fi
32593
32594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32595 fi # test -n "$CONFIG_FILES"
32596
32597 # Set up the scripts for CONFIG_HEADERS section.
32598 # No need to generate them if there are no CONFIG_HEADERS.
32599 # This happens for instance with `./config.status Makefile'.
32600 if test -n "$CONFIG_HEADERS"; then
32601 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32602 BEGIN {
32603 _ACEOF
32604
32605 # Transform confdefs.h into an awk script `defines.awk', embedded as
32606 # here-document in config.status, that substitutes the proper values into
32607 # config.h.in to produce config.h.
32608
32609 # Create a delimiter string that does not exist in confdefs.h, to ease
32610 # handling of long lines.
32611 ac_delim='%!_!# '
32612 for ac_last_try in false false :; do
32613   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32614   if test -z "$ac_tt"; then
32615     break
32616   elif $ac_last_try; then
32617     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32618   else
32619     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32620   fi
32621 done
32622
32623 # For the awk script, D is an array of macro values keyed by name,
32624 # likewise P contains macro parameters if any.  Preserve backslash
32625 # newline sequences.
32626
32627 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32628 sed -n '
32629 s/.\{148\}/&'"$ac_delim"'/g
32630 t rset
32631 :rset
32632 s/^[     ]*#[    ]*define[       ][      ]*/ /
32633 t def
32634 d
32635 :def
32636 s/\\$//
32637 t bsnl
32638 s/["\\]/\\&/g
32639 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32640 D["\1"]=" \3"/p
32641 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
32642 d
32643 :bsnl
32644 s/["\\]/\\&/g
32645 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32646 D["\1"]=" \3\\\\\\n"\\/p
32647 t cont
32648 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32649 t cont
32650 d
32651 :cont
32652 n
32653 s/.\{148\}/&'"$ac_delim"'/g
32654 t clear
32655 :clear
32656 s/\\$//
32657 t bsnlc
32658 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32659 d
32660 :bsnlc
32661 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32662 b cont
32663 ' <confdefs.h | sed '
32664 s/'"$ac_delim"'/"\\\
32665 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32666
32667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32668   for (key in D) D_is_set[key] = 1
32669   FS = "\a"
32670 }
32671 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32672   line = \$ 0
32673   split(line, arg, " ")
32674   if (arg[1] == "#") {
32675     defundef = arg[2]
32676     mac1 = arg[3]
32677   } else {
32678     defundef = substr(arg[1], 2)
32679     mac1 = arg[2]
32680   }
32681   split(mac1, mac2, "(") #)
32682   macro = mac2[1]
32683   prefix = substr(line, 1, index(line, defundef) - 1)
32684   if (D_is_set[macro]) {
32685     # Preserve the white space surrounding the "#".
32686     print prefix "define", macro P[macro] D[macro]
32687     next
32688   } else {
32689     # Replace #undef with comments.  This is necessary, for example,
32690     # in the case of _POSIX_SOURCE, which is predefined and required
32691     # on some systems where configure will not decide to define it.
32692     if (defundef == "undef") {
32693       print "/*", prefix defundef, macro, "*/"
32694       next
32695     }
32696   }
32697 }
32698 { print }
32699 _ACAWK
32700 _ACEOF
32701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32702   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32703 fi # test -n "$CONFIG_HEADERS"
32704
32705
32706 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
32707 shift
32708 for ac_tag
32709 do
32710   case $ac_tag in
32711   :[FHLC]) ac_mode=$ac_tag; continue;;
32712   esac
32713   case $ac_mode$ac_tag in
32714   :[FHL]*:*);;
32715   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32716   :[FH]-) ac_tag=-:-;;
32717   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32718   esac
32719   ac_save_IFS=$IFS
32720   IFS=:
32721   set x $ac_tag
32722   IFS=$ac_save_IFS
32723   shift
32724   ac_file=$1
32725   shift
32726
32727   case $ac_mode in
32728   :L) ac_source=$1;;
32729   :[FH])
32730     ac_file_inputs=
32731     for ac_f
32732     do
32733       case $ac_f in
32734       -) ac_f="$ac_tmp/stdin";;
32735       *) # Look for the file first in the build tree, then in the source tree
32736          # (if the path is not absolute).  The absolute path cannot be DOS-style,
32737          # because $ac_f cannot contain `:'.
32738          test -f "$ac_f" ||
32739            case $ac_f in
32740            [\\/$]*) false;;
32741            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32742            esac ||
32743            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32744       esac
32745       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32746       as_fn_append ac_file_inputs " '$ac_f'"
32747     done
32748
32749     # Let's still pretend it is `configure' which instantiates (i.e., don't
32750     # use $as_me), people would be surprised to read:
32751     #    /* config.h.  Generated by config.status.  */
32752     configure_input='Generated from '`
32753           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32754         `' by configure.'
32755     if test x"$ac_file" != x-; then
32756       configure_input="$ac_file.  $configure_input"
32757       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32758 $as_echo "$as_me: creating $ac_file" >&6;}
32759     fi
32760     # Neutralize special characters interpreted by sed in replacement strings.
32761     case $configure_input in #(
32762     *\&* | *\|* | *\\* )
32763        ac_sed_conf_input=`$as_echo "$configure_input" |
32764        sed 's/[\\\\&|]/\\\\&/g'`;; #(
32765     *) ac_sed_conf_input=$configure_input;;
32766     esac
32767
32768     case $ac_tag in
32769     *:-:* | *:-) cat >"$ac_tmp/stdin" \
32770       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32771     esac
32772     ;;
32773   esac
32774
32775   ac_dir=`$as_dirname -- "$ac_file" ||
32776 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32777          X"$ac_file" : 'X\(//\)[^/]' \| \
32778          X"$ac_file" : 'X\(//\)$' \| \
32779          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32780 $as_echo X"$ac_file" |
32781     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32782             s//\1/
32783             q
32784           }
32785           /^X\(\/\/\)[^/].*/{
32786             s//\1/
32787             q
32788           }
32789           /^X\(\/\/\)$/{
32790             s//\1/
32791             q
32792           }
32793           /^X\(\/\).*/{
32794             s//\1/
32795             q
32796           }
32797           s/.*/./; q'`
32798   as_dir="$ac_dir"; as_fn_mkdir_p
32799   ac_builddir=.
32800
32801 case "$ac_dir" in
32802 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32803 *)
32804   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32805   # A ".." for each directory in $ac_dir_suffix.
32806   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32807   case $ac_top_builddir_sub in
32808   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32809   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32810   esac ;;
32811 esac
32812 ac_abs_top_builddir=$ac_pwd
32813 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32814 # for backward compatibility:
32815 ac_top_builddir=$ac_top_build_prefix
32816
32817 case $srcdir in
32818   .)  # We are building in place.
32819     ac_srcdir=.
32820     ac_top_srcdir=$ac_top_builddir_sub
32821     ac_abs_top_srcdir=$ac_pwd ;;
32822   [\\/]* | ?:[\\/]* )  # Absolute name.
32823     ac_srcdir=$srcdir$ac_dir_suffix;
32824     ac_top_srcdir=$srcdir
32825     ac_abs_top_srcdir=$srcdir ;;
32826   *) # Relative name.
32827     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32828     ac_top_srcdir=$ac_top_build_prefix$srcdir
32829     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32830 esac
32831 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32832
32833
32834   case $ac_mode in
32835   :F)
32836   #
32837   # CONFIG_FILE
32838   #
32839
32840   case $INSTALL in
32841   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32842   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32843   esac
32844 _ACEOF
32845
32846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32847 # If the template does not know about datarootdir, expand it.
32848 # FIXME: This hack should be removed a few years after 2.60.
32849 ac_datarootdir_hack=; ac_datarootdir_seen=
32850 ac_sed_dataroot='
32851 /datarootdir/ {
32852   p
32853   q
32854 }
32855 /@datadir@/p
32856 /@docdir@/p
32857 /@infodir@/p
32858 /@localedir@/p
32859 /@mandir@/p'
32860 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32861 *datarootdir*) ac_datarootdir_seen=yes;;
32862 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32863   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32864 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32865 _ACEOF
32866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32867   ac_datarootdir_hack='
32868   s&@datadir@&$datadir&g
32869   s&@docdir@&$docdir&g
32870   s&@infodir@&$infodir&g
32871   s&@localedir@&$localedir&g
32872   s&@mandir@&$mandir&g
32873   s&\\\${datarootdir}&$datarootdir&g' ;;
32874 esac
32875 _ACEOF
32876
32877 # Neutralize VPATH when `$srcdir' = `.'.
32878 # Shell code in configure.ac might set extrasub.
32879 # FIXME: do we really want to maintain this feature?
32880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32881 ac_sed_extra="$ac_vpsub
32882 $extrasub
32883 _ACEOF
32884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32885 :t
32886 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32887 s|@configure_input@|$ac_sed_conf_input|;t t
32888 s&@top_builddir@&$ac_top_builddir_sub&;t t
32889 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32890 s&@srcdir@&$ac_srcdir&;t t
32891 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32892 s&@top_srcdir@&$ac_top_srcdir&;t t
32893 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32894 s&@builddir@&$ac_builddir&;t t
32895 s&@abs_builddir@&$ac_abs_builddir&;t t
32896 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32897 s&@INSTALL@&$ac_INSTALL&;t t
32898 $ac_datarootdir_hack
32899 "
32900 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32901 if $ac_cs_awk_getline; then
32902   $AWK -f "$ac_tmp/subs.awk"
32903 else
32904   $AWK -f "$ac_tmp/subs.awk" | $SHELL
32905 fi \
32906   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32907
32908 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32909   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32910   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
32911       "$ac_tmp/out"`; test -z "$ac_out"; } &&
32912   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32913 which seems to be undefined.  Please make sure it is defined" >&5
32914 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32915 which seems to be undefined.  Please make sure it is defined" >&2;}
32916
32917   rm -f "$ac_tmp/stdin"
32918   case $ac_file in
32919   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32920   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32921   esac \
32922   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32923  ;;
32924   :H)
32925   #
32926   # CONFIG_HEADER
32927   #
32928   if test x"$ac_file" != x-; then
32929     {
32930       $as_echo "/* $configure_input  */" \
32931       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32932     } >"$ac_tmp/config.h" \
32933       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32934     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32935       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32936 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32937     else
32938       rm -f "$ac_file"
32939       mv "$ac_tmp/config.h" "$ac_file" \
32940         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32941     fi
32942   else
32943     $as_echo "/* $configure_input  */" \
32944       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32945       || as_fn_error $? "could not create -" "$LINENO" 5
32946   fi
32947  ;;
32948   :L)
32949   #
32950   # CONFIG_LINK
32951   #
32952
32953   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
32954     :
32955   else
32956     # Prefer the file from the source tree if names are identical.
32957     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
32958       ac_source=$srcdir/$ac_source
32959     fi
32960
32961     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
32962 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
32963
32964     if test ! -r "$ac_source"; then
32965       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
32966     fi
32967     rm -f "$ac_file"
32968
32969     # Try a relative symlink, then a hard link, then a copy.
32970     case $ac_source in
32971     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
32972         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
32973     esac
32974     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
32975       ln "$ac_source" "$ac_file" 2>/dev/null ||
32976       cp -p "$ac_source" "$ac_file" ||
32977       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
32978   fi
32979  ;;
32980   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32981 $as_echo "$as_me: executing $ac_file commands" >&6;}
32982  ;;
32983   esac
32984
32985
32986   case $ac_file$ac_mode in
32987     "config.h":H) echo > stamp-h ;;
32988     "libtool":C)
32989
32990     # See if we are running on zsh, and set the options which allow our
32991     # commands through without removal of \ escapes.
32992     if test -n "${ZSH_VERSION+set}" ; then
32993       setopt NO_GLOB_SUBST
32994     fi
32995
32996     cfgfile="${ofile}T"
32997     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32998     $RM "$cfgfile"
32999
33000     cat <<_LT_EOF >> "$cfgfile"
33001 #! $SHELL
33002
33003 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
33004 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
33005 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33006 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
33007 #
33008 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33009 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
33010 #   Written by Gordon Matzigkeit, 1996
33011 #
33012 #   This file is part of GNU Libtool.
33013 #
33014 # GNU Libtool is free software; you can redistribute it and/or
33015 # modify it under the terms of the GNU General Public License as
33016 # published by the Free Software Foundation; either version 2 of
33017 # the License, or (at your option) any later version.
33018 #
33019 # As a special exception to the GNU General Public License,
33020 # if you distribute this file as part of a program or library that
33021 # is built using GNU Libtool, you may include this file under the
33022 # same distribution terms that you use for the rest of that program.
33023 #
33024 # GNU Libtool is distributed in the hope that it will be useful,
33025 # but WITHOUT ANY WARRANTY; without even the implied warranty of
33026 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
33027 # GNU General Public License for more details.
33028 #
33029 # You should have received a copy of the GNU General Public License
33030 # along with GNU Libtool; see the file COPYING.  If not, a copy
33031 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33032 # obtained by writing to the Free Software Foundation, Inc.,
33033 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33034
33035
33036 # The names of the tagged configurations supported by this script.
33037 available_tags="CXX "
33038
33039 # ### BEGIN LIBTOOL CONFIG
33040
33041 # Which release of libtool.m4 was used?
33042 macro_version=$macro_version
33043 macro_revision=$macro_revision
33044
33045 # Whether or not to build shared libraries.
33046 build_libtool_libs=$enable_shared
33047
33048 # Whether or not to build static libraries.
33049 build_old_libs=$enable_static
33050
33051 # What type of objects to build.
33052 pic_mode=$pic_mode
33053
33054 # Whether or not to optimize for fast installation.
33055 fast_install=$enable_fast_install
33056
33057 # Shell to use when invoking shell scripts.
33058 SHELL=$lt_SHELL
33059
33060 # An echo program that protects backslashes.
33061 ECHO=$lt_ECHO
33062
33063 # The host system.
33064 host_alias=$host_alias
33065 host=$host
33066 host_os=$host_os
33067
33068 # The build system.
33069 build_alias=$build_alias
33070 build=$build
33071 build_os=$build_os
33072
33073 # A sed program that does not truncate output.
33074 SED=$lt_SED
33075
33076 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
33077 Xsed="\$SED -e 1s/^X//"
33078
33079 # A grep program that handles long lines.
33080 GREP=$lt_GREP
33081
33082 # An ERE matcher.
33083 EGREP=$lt_EGREP
33084
33085 # A literal string matcher.
33086 FGREP=$lt_FGREP
33087
33088 # A BSD- or MS-compatible name lister.
33089 NM=$lt_NM
33090
33091 # Whether we need soft or hard links.
33092 LN_S=$lt_LN_S
33093
33094 # What is the maximum length of a command?
33095 max_cmd_len=$max_cmd_len
33096
33097 # Object file suffix (normally "o").
33098 objext=$ac_objext
33099
33100 # Executable file suffix (normally "").
33101 exeext=$exeext
33102
33103 # whether the shell understands "unset".
33104 lt_unset=$lt_unset
33105
33106 # turn spaces into newlines.
33107 SP2NL=$lt_lt_SP2NL
33108
33109 # turn newlines into spaces.
33110 NL2SP=$lt_lt_NL2SP
33111
33112 # An object symbol dumper.
33113 OBJDUMP=$lt_OBJDUMP
33114
33115 # Method to check whether dependent libraries are shared objects.
33116 deplibs_check_method=$lt_deplibs_check_method
33117
33118 # Command to use when deplibs_check_method == "file_magic".
33119 file_magic_cmd=$lt_file_magic_cmd
33120
33121 # The archiver.
33122 AR=$lt_AR
33123 AR_FLAGS=$lt_AR_FLAGS
33124
33125 # A symbol stripping program.
33126 STRIP=$lt_STRIP
33127
33128 # Commands used to install an old-style archive.
33129 RANLIB=$lt_RANLIB
33130 old_postinstall_cmds=$lt_old_postinstall_cmds
33131 old_postuninstall_cmds=$lt_old_postuninstall_cmds
33132
33133 # Whether to use a lock for old archive extraction.
33134 lock_old_archive_extraction=$lock_old_archive_extraction
33135
33136 # A C compiler.
33137 LTCC=$lt_CC
33138
33139 # LTCC compiler flags.
33140 LTCFLAGS=$lt_CFLAGS
33141
33142 # Take the output of nm and produce a listing of raw symbols and C names.
33143 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33144
33145 # Transform the output of nm in a proper C declaration.
33146 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33147
33148 # Transform the output of nm in a C name address pair.
33149 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33150
33151 # Transform the output of nm in a C name address pair when lib prefix is needed.
33152 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33153
33154 # The name of the directory that contains temporary libtool files.
33155 objdir=$objdir
33156
33157 # Used to examine libraries when file_magic_cmd begins with "file".
33158 MAGIC_CMD=$MAGIC_CMD
33159
33160 # Must we lock files when doing compilation?
33161 need_locks=$lt_need_locks
33162
33163 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33164 DSYMUTIL=$lt_DSYMUTIL
33165
33166 # Tool to change global to local symbols on Mac OS X.
33167 NMEDIT=$lt_NMEDIT
33168
33169 # Tool to manipulate fat objects and archives on Mac OS X.
33170 LIPO=$lt_LIPO
33171
33172 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
33173 OTOOL=$lt_OTOOL
33174
33175 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33176 OTOOL64=$lt_OTOOL64
33177
33178 # Old archive suffix (normally "a").
33179 libext=$libext
33180
33181 # Shared library suffix (normally ".so").
33182 shrext_cmds=$lt_shrext_cmds
33183
33184 # The commands to extract the exported symbol list from a shared archive.
33185 extract_expsyms_cmds=$lt_extract_expsyms_cmds
33186
33187 # Variables whose values should be saved in libtool wrapper scripts and
33188 # restored at link time.
33189 variables_saved_for_relink=$lt_variables_saved_for_relink
33190
33191 # Do we need the "lib" prefix for modules?
33192 need_lib_prefix=$need_lib_prefix
33193
33194 # Do we need a version for libraries?
33195 need_version=$need_version
33196
33197 # Library versioning type.
33198 version_type=$version_type
33199
33200 # Shared library runtime path variable.
33201 runpath_var=$runpath_var
33202
33203 # Shared library path variable.
33204 shlibpath_var=$shlibpath_var
33205
33206 # Is shlibpath searched before the hard-coded library search path?
33207 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33208
33209 # Format of library name prefix.
33210 libname_spec=$lt_libname_spec
33211
33212 # List of archive names.  First name is the real one, the rest are links.
33213 # The last name is the one that the linker finds with -lNAME
33214 library_names_spec=$lt_library_names_spec
33215
33216 # The coded name of the library, if different from the real name.
33217 soname_spec=$lt_soname_spec
33218
33219 # Permission mode override for installation of shared libraries.
33220 install_override_mode=$lt_install_override_mode
33221
33222 # Command to use after installation of a shared archive.
33223 postinstall_cmds=$lt_postinstall_cmds
33224
33225 # Command to use after uninstallation of a shared archive.
33226 postuninstall_cmds=$lt_postuninstall_cmds
33227
33228 # Commands used to finish a libtool library installation in a directory.
33229 finish_cmds=$lt_finish_cmds
33230
33231 # As "finish_cmds", except a single script fragment to be evaled but
33232 # not shown.
33233 finish_eval=$lt_finish_eval
33234
33235 # Whether we should hardcode library paths into libraries.
33236 hardcode_into_libs=$hardcode_into_libs
33237
33238 # Compile-time system search path for libraries.
33239 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33240
33241 # Run-time system search path for libraries.
33242 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33243
33244 # Whether dlopen is supported.
33245 dlopen_support=$enable_dlopen
33246
33247 # Whether dlopen of programs is supported.
33248 dlopen_self=$enable_dlopen_self
33249
33250 # Whether dlopen of statically linked programs is supported.
33251 dlopen_self_static=$enable_dlopen_self_static
33252
33253 # Commands to strip libraries.
33254 old_striplib=$lt_old_striplib
33255 striplib=$lt_striplib
33256
33257
33258 # The linker used to build libraries.
33259 LD=$lt_LD
33260
33261 # How to create reloadable object files.
33262 reload_flag=$lt_reload_flag
33263 reload_cmds=$lt_reload_cmds
33264
33265 # Commands used to build an old-style archive.
33266 old_archive_cmds=$lt_old_archive_cmds
33267
33268 # A language specific compiler.
33269 CC=$lt_compiler
33270
33271 # Is the compiler the GNU compiler?
33272 with_gcc=$GCC
33273
33274 # Compiler flag to turn off builtin functions.
33275 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33276
33277 # How to pass a linker flag through the compiler.
33278 wl=$lt_lt_prog_compiler_wl
33279
33280 # Additional compiler flags for building library objects.
33281 pic_flag=$lt_lt_prog_compiler_pic
33282
33283 # Compiler flag to prevent dynamic linking.
33284 link_static_flag=$lt_lt_prog_compiler_static
33285
33286 # Does compiler simultaneously support -c and -o options?
33287 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33288
33289 # Whether or not to add -lc for building shared libraries.
33290 build_libtool_need_lc=$archive_cmds_need_lc
33291
33292 # Whether or not to disallow shared libs when runtime libs are static.
33293 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33294
33295 # Compiler flag to allow reflexive dlopens.
33296 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33297
33298 # Compiler flag to generate shared objects directly from archives.
33299 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33300
33301 # Whether the compiler copes with passing no objects directly.
33302 compiler_needs_object=$lt_compiler_needs_object
33303
33304 # Create an old-style archive from a shared archive.
33305 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33306
33307 # Create a temporary old-style archive to link instead of a shared archive.
33308 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33309
33310 # Commands used to build a shared archive.
33311 archive_cmds=$lt_archive_cmds
33312 archive_expsym_cmds=$lt_archive_expsym_cmds
33313
33314 # Commands used to build a loadable module if different from building
33315 # a shared archive.
33316 module_cmds=$lt_module_cmds
33317 module_expsym_cmds=$lt_module_expsym_cmds
33318
33319 # Whether we are building with GNU ld or not.
33320 with_gnu_ld=$lt_with_gnu_ld
33321
33322 # Flag that allows shared libraries with undefined symbols to be built.
33323 allow_undefined_flag=$lt_allow_undefined_flag
33324
33325 # Flag that enforces no undefined symbols.
33326 no_undefined_flag=$lt_no_undefined_flag
33327
33328 # Flag to hardcode \$libdir into a binary during linking.
33329 # This must work even if \$libdir does not exist
33330 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33331
33332 # If ld is used when linking, flag to hardcode \$libdir into a binary
33333 # during linking.  This must work even if \$libdir does not exist.
33334 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
33335
33336 # Whether we need a single "-rpath" flag with a separated argument.
33337 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33338
33339 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33340 # DIR into the resulting binary.
33341 hardcode_direct=$hardcode_direct
33342
33343 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33344 # DIR into the resulting binary and the resulting library dependency is
33345 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33346 # library is relocated.
33347 hardcode_direct_absolute=$hardcode_direct_absolute
33348
33349 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33350 # into the resulting binary.
33351 hardcode_minus_L=$hardcode_minus_L
33352
33353 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33354 # into the resulting binary.
33355 hardcode_shlibpath_var=$hardcode_shlibpath_var
33356
33357 # Set to "yes" if building a shared library automatically hardcodes DIR
33358 # into the library and all subsequent libraries and executables linked
33359 # against it.
33360 hardcode_automatic=$hardcode_automatic
33361
33362 # Set to yes if linker adds runtime paths of dependent libraries
33363 # to runtime path list.
33364 inherit_rpath=$inherit_rpath
33365
33366 # Whether libtool must link a program against all its dependency libraries.
33367 link_all_deplibs=$link_all_deplibs
33368
33369 # Fix the shell variable \$srcfile for the compiler.
33370 fix_srcfile_path=$lt_fix_srcfile_path
33371
33372 # Set to "yes" if exported symbols are required.
33373 always_export_symbols=$always_export_symbols
33374
33375 # The commands to list exported symbols.
33376 export_symbols_cmds=$lt_export_symbols_cmds
33377
33378 # Symbols that should not be listed in the preloaded symbols.
33379 exclude_expsyms=$lt_exclude_expsyms
33380
33381 # Symbols that must always be exported.
33382 include_expsyms=$lt_include_expsyms
33383
33384 # Commands necessary for linking programs (against libraries) with templates.
33385 prelink_cmds=$lt_prelink_cmds
33386
33387 # Specify filename containing input files.
33388 file_list_spec=$lt_file_list_spec
33389
33390 # How to hardcode a shared library path into an executable.
33391 hardcode_action=$hardcode_action
33392
33393 # The directories searched by this compiler when creating a shared library.
33394 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33395
33396 # Dependencies to place before and after the objects being linked to
33397 # create a shared library.
33398 predep_objects=$lt_predep_objects
33399 postdep_objects=$lt_postdep_objects
33400 predeps=$lt_predeps
33401 postdeps=$lt_postdeps
33402
33403 # The library search path used internally by the compiler when linking
33404 # a shared library.
33405 compiler_lib_search_path=$lt_compiler_lib_search_path
33406
33407 # ### END LIBTOOL CONFIG
33408
33409 _LT_EOF
33410
33411   case $host_os in
33412   aix3*)
33413     cat <<\_LT_EOF >> "$cfgfile"
33414 # AIX sometimes has problems with the GCC collect2 program.  For some
33415 # reason, if we set the COLLECT_NAMES environment variable, the problems
33416 # vanish in a puff of smoke.
33417 if test "X${COLLECT_NAMES+set}" != Xset; then
33418   COLLECT_NAMES=
33419   export COLLECT_NAMES
33420 fi
33421 _LT_EOF
33422     ;;
33423   esac
33424
33425
33426 ltmain="$ac_aux_dir/ltmain.sh"
33427
33428
33429   # We use sed instead of cat because bash on DJGPP gets confused if
33430   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
33431   # text mode, it properly converts lines to CR/LF.  This bash problem
33432   # is reportedly fixed, but why not run on old versions too?
33433   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
33434     || (rm -f "$cfgfile"; exit 1)
33435
33436   case $xsi_shell in
33437   yes)
33438     cat << \_LT_EOF >> "$cfgfile"
33439
33440 # func_dirname file append nondir_replacement
33441 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
33442 # otherwise set result to NONDIR_REPLACEMENT.
33443 func_dirname ()
33444 {
33445   case ${1} in
33446     */*) func_dirname_result="${1%/*}${2}" ;;
33447     *  ) func_dirname_result="${3}" ;;
33448   esac
33449 }
33450
33451 # func_basename file
33452 func_basename ()
33453 {
33454   func_basename_result="${1##*/}"
33455 }
33456
33457 # func_dirname_and_basename file append nondir_replacement
33458 # perform func_basename and func_dirname in a single function
33459 # call:
33460 #   dirname:  Compute the dirname of FILE.  If nonempty,
33461 #             add APPEND to the result, otherwise set result
33462 #             to NONDIR_REPLACEMENT.
33463 #             value returned in "$func_dirname_result"
33464 #   basename: Compute filename of FILE.
33465 #             value retuned in "$func_basename_result"
33466 # Implementation must be kept synchronized with func_dirname
33467 # and func_basename. For efficiency, we do not delegate to
33468 # those functions but instead duplicate the functionality here.
33469 func_dirname_and_basename ()
33470 {
33471   case ${1} in
33472     */*) func_dirname_result="${1%/*}${2}" ;;
33473     *  ) func_dirname_result="${3}" ;;
33474   esac
33475   func_basename_result="${1##*/}"
33476 }
33477
33478 # func_stripname prefix suffix name
33479 # strip PREFIX and SUFFIX off of NAME.
33480 # PREFIX and SUFFIX must not contain globbing or regex special
33481 # characters, hashes, percent signs, but SUFFIX may contain a leading
33482 # dot (in which case that matches only a dot).
33483 func_stripname ()
33484 {
33485   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
33486   # positional parameters, so assign one to ordinary parameter first.
33487   func_stripname_result=${3}
33488   func_stripname_result=${func_stripname_result#"${1}"}
33489   func_stripname_result=${func_stripname_result%"${2}"}
33490 }
33491
33492 # func_opt_split
33493 func_opt_split ()
33494 {
33495   func_opt_split_opt=${1%%=*}
33496   func_opt_split_arg=${1#*=}
33497 }
33498
33499 # func_lo2o object
33500 func_lo2o ()
33501 {
33502   case ${1} in
33503     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
33504     *)    func_lo2o_result=${1} ;;
33505   esac
33506 }
33507
33508 # func_xform libobj-or-source
33509 func_xform ()
33510 {
33511   func_xform_result=${1%.*}.lo
33512 }
33513
33514 # func_arith arithmetic-term...
33515 func_arith ()
33516 {
33517   func_arith_result=$(( $* ))
33518 }
33519
33520 # func_len string
33521 # STRING may not start with a hyphen.
33522 func_len ()
33523 {
33524   func_len_result=${#1}
33525 }
33526
33527 _LT_EOF
33528     ;;
33529   *) # Bourne compatible functions.
33530     cat << \_LT_EOF >> "$cfgfile"
33531
33532 # func_dirname file append nondir_replacement
33533 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
33534 # otherwise set result to NONDIR_REPLACEMENT.
33535 func_dirname ()
33536 {
33537   # Extract subdirectory from the argument.
33538   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
33539   if test "X$func_dirname_result" = "X${1}"; then
33540     func_dirname_result="${3}"
33541   else
33542     func_dirname_result="$func_dirname_result${2}"
33543   fi
33544 }
33545
33546 # func_basename file
33547 func_basename ()
33548 {
33549   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
33550 }
33551
33552
33553 # func_stripname prefix suffix name
33554 # strip PREFIX and SUFFIX off of NAME.
33555 # PREFIX and SUFFIX must not contain globbing or regex special
33556 # characters, hashes, percent signs, but SUFFIX may contain a leading
33557 # dot (in which case that matches only a dot).
33558 # func_strip_suffix prefix name
33559 func_stripname ()
33560 {
33561   case ${2} in
33562     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
33563     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
33564   esac
33565 }
33566
33567 # sed scripts:
33568 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
33569 my_sed_long_arg='1s/^-[^=]*=//'
33570
33571 # func_opt_split
33572 func_opt_split ()
33573 {
33574   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
33575   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
33576 }
33577
33578 # func_lo2o object
33579 func_lo2o ()
33580 {
33581   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
33582 }
33583
33584 # func_xform libobj-or-source
33585 func_xform ()
33586 {
33587   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
33588 }
33589
33590 # func_arith arithmetic-term...
33591 func_arith ()
33592 {
33593   func_arith_result=`expr "$@"`
33594 }
33595
33596 # func_len string
33597 # STRING may not start with a hyphen.
33598 func_len ()
33599 {
33600   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
33601 }
33602
33603 _LT_EOF
33604 esac
33605
33606 case $lt_shell_append in
33607   yes)
33608     cat << \_LT_EOF >> "$cfgfile"
33609
33610 # func_append var value
33611 # Append VALUE to the end of shell variable VAR.
33612 func_append ()
33613 {
33614   eval "$1+=\$2"
33615 }
33616 _LT_EOF
33617     ;;
33618   *)
33619     cat << \_LT_EOF >> "$cfgfile"
33620
33621 # func_append var value
33622 # Append VALUE to the end of shell variable VAR.
33623 func_append ()
33624 {
33625   eval "$1=\$$1\$2"
33626 }
33627
33628 _LT_EOF
33629     ;;
33630   esac
33631
33632
33633   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
33634     || (rm -f "$cfgfile"; exit 1)
33635
33636   mv -f "$cfgfile" "$ofile" ||
33637     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33638   chmod +x "$ofile"
33639
33640
33641     cat <<_LT_EOF >> "$ofile"
33642
33643 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33644
33645 # The linker used to build libraries.
33646 LD=$lt_LD_CXX
33647
33648 # How to create reloadable object files.
33649 reload_flag=$lt_reload_flag_CXX
33650 reload_cmds=$lt_reload_cmds_CXX
33651
33652 # Commands used to build an old-style archive.
33653 old_archive_cmds=$lt_old_archive_cmds_CXX
33654
33655 # A language specific compiler.
33656 CC=$lt_compiler_CXX
33657
33658 # Is the compiler the GNU compiler?
33659 with_gcc=$GCC_CXX
33660
33661 # Compiler flag to turn off builtin functions.
33662 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33663
33664 # How to pass a linker flag through the compiler.
33665 wl=$lt_lt_prog_compiler_wl_CXX
33666
33667 # Additional compiler flags for building library objects.
33668 pic_flag=$lt_lt_prog_compiler_pic_CXX
33669
33670 # Compiler flag to prevent dynamic linking.
33671 link_static_flag=$lt_lt_prog_compiler_static_CXX
33672
33673 # Does compiler simultaneously support -c and -o options?
33674 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33675
33676 # Whether or not to add -lc for building shared libraries.
33677 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33678
33679 # Whether or not to disallow shared libs when runtime libs are static.
33680 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33681
33682 # Compiler flag to allow reflexive dlopens.
33683 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33684
33685 # Compiler flag to generate shared objects directly from archives.
33686 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33687
33688 # Whether the compiler copes with passing no objects directly.
33689 compiler_needs_object=$lt_compiler_needs_object_CXX
33690
33691 # Create an old-style archive from a shared archive.
33692 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33693
33694 # Create a temporary old-style archive to link instead of a shared archive.
33695 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33696
33697 # Commands used to build a shared archive.
33698 archive_cmds=$lt_archive_cmds_CXX
33699 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33700
33701 # Commands used to build a loadable module if different from building
33702 # a shared archive.
33703 module_cmds=$lt_module_cmds_CXX
33704 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33705
33706 # Whether we are building with GNU ld or not.
33707 with_gnu_ld=$lt_with_gnu_ld_CXX
33708
33709 # Flag that allows shared libraries with undefined symbols to be built.
33710 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33711
33712 # Flag that enforces no undefined symbols.
33713 no_undefined_flag=$lt_no_undefined_flag_CXX
33714
33715 # Flag to hardcode \$libdir into a binary during linking.
33716 # This must work even if \$libdir does not exist
33717 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33718
33719 # If ld is used when linking, flag to hardcode \$libdir into a binary
33720 # during linking.  This must work even if \$libdir does not exist.
33721 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33722
33723 # Whether we need a single "-rpath" flag with a separated argument.
33724 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33725
33726 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33727 # DIR into the resulting binary.
33728 hardcode_direct=$hardcode_direct_CXX
33729
33730 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33731 # DIR into the resulting binary and the resulting library dependency is
33732 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33733 # library is relocated.
33734 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33735
33736 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33737 # into the resulting binary.
33738 hardcode_minus_L=$hardcode_minus_L_CXX
33739
33740 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33741 # into the resulting binary.
33742 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33743
33744 # Set to "yes" if building a shared library automatically hardcodes DIR
33745 # into the library and all subsequent libraries and executables linked
33746 # against it.
33747 hardcode_automatic=$hardcode_automatic_CXX
33748
33749 # Set to yes if linker adds runtime paths of dependent libraries
33750 # to runtime path list.
33751 inherit_rpath=$inherit_rpath_CXX
33752
33753 # Whether libtool must link a program against all its dependency libraries.
33754 link_all_deplibs=$link_all_deplibs_CXX
33755
33756 # Fix the shell variable \$srcfile for the compiler.
33757 fix_srcfile_path=$lt_fix_srcfile_path_CXX
33758
33759 # Set to "yes" if exported symbols are required.
33760 always_export_symbols=$always_export_symbols_CXX
33761
33762 # The commands to list exported symbols.
33763 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33764
33765 # Symbols that should not be listed in the preloaded symbols.
33766 exclude_expsyms=$lt_exclude_expsyms_CXX
33767
33768 # Symbols that must always be exported.
33769 include_expsyms=$lt_include_expsyms_CXX
33770
33771 # Commands necessary for linking programs (against libraries) with templates.
33772 prelink_cmds=$lt_prelink_cmds_CXX
33773
33774 # Specify filename containing input files.
33775 file_list_spec=$lt_file_list_spec_CXX
33776
33777 # How to hardcode a shared library path into an executable.
33778 hardcode_action=$hardcode_action_CXX
33779
33780 # The directories searched by this compiler when creating a shared library.
33781 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33782
33783 # Dependencies to place before and after the objects being linked to
33784 # create a shared library.
33785 predep_objects=$lt_predep_objects_CXX
33786 postdep_objects=$lt_postdep_objects_CXX
33787 predeps=$lt_predeps_CXX
33788 postdeps=$lt_postdeps_CXX
33789
33790 # The library search path used internally by the compiler when linking
33791 # a shared library.
33792 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33793
33794 # ### END LIBTOOL TAG CONFIG: CXX
33795 _LT_EOF
33796
33797  ;;
33798     "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
33799     "nm.h":L) echo > stamp-nmh ;;
33800     "gcore":F) chmod +x gcore ;;
33801
33802   esac
33803 done # for ac_tag
33804
33805
33806 as_fn_exit 0
33807 _ACEOF
33808 ac_clean_files=$ac_clean_files_save
33809
33810 test $ac_write_fail = 0 ||
33811   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33812
33813
33814 # configure is writing to config.log, and then calls config.status.
33815 # config.status does its own redirection, appending to config.log.
33816 # Unfortunately, on DOS this fails, as config.log is still kept open
33817 # by configure, so config.status won't be able to write to it; its
33818 # output is simply discarded.  So we exec the FD to /dev/null,
33819 # effectively closing config.log, so it can be properly (re)opened and
33820 # appended to by config.status.  When coming back to configure, we
33821 # need to make the FD available again.
33822 if test "$no_create" != yes; then
33823   ac_cs_success=:
33824   ac_config_status_args=
33825   test "$silent" = yes &&
33826     ac_config_status_args="$ac_config_status_args --quiet"
33827   exec 5>/dev/null
33828   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33829   exec 5>>config.log
33830   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33831   # would make configure fail if this is the last instruction.
33832   $ac_cs_success || as_fn_exit 1
33833 fi
33834
33835 #
33836 # CONFIG_SUBDIRS section.
33837 #
33838 if test "$no_recursion" != yes; then
33839
33840   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
33841   # so they do not pile up.
33842   ac_sub_configure_args=
33843   ac_prev=
33844   eval "set x $ac_configure_args"
33845   shift
33846   for ac_arg
33847   do
33848     if test -n "$ac_prev"; then
33849       ac_prev=
33850       continue
33851     fi
33852     case $ac_arg in
33853     -cache-file | --cache-file | --cache-fil | --cache-fi \
33854     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33855       ac_prev=cache_file ;;
33856     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33857     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33858     | --c=*)
33859       ;;
33860     --config-cache | -C)
33861       ;;
33862     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33863       ac_prev=srcdir ;;
33864     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33865       ;;
33866     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33867       ac_prev=prefix ;;
33868     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33869       ;;
33870     --disable-option-checking)
33871       ;;
33872     *)
33873       case $ac_arg in
33874       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33875       esac
33876       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
33877     esac
33878   done
33879
33880   # Always prepend --prefix to ensure using the same prefix
33881   # in subdir configurations.
33882   ac_arg="--prefix=$prefix"
33883   case $ac_arg in
33884   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33885   esac
33886   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33887
33888   # Pass --silent
33889   if test "$silent" = yes; then
33890     ac_sub_configure_args="--silent $ac_sub_configure_args"
33891   fi
33892
33893   # Always prepend --disable-option-checking to silence warnings, since
33894   # different subdirs can have different --enable and --with options.
33895   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
33896
33897   ac_popdir=`pwd`
33898   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33899
33900     # Do not complain, so a configure script can configure whichever
33901     # parts of a large source tree are present.
33902     test -d "$srcdir/$ac_dir" || continue
33903
33904     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33905     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
33906     $as_echo "$ac_msg" >&6
33907     as_dir="$ac_dir"; as_fn_mkdir_p
33908     ac_builddir=.
33909
33910 case "$ac_dir" in
33911 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33912 *)
33913   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33914   # A ".." for each directory in $ac_dir_suffix.
33915   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33916   case $ac_top_builddir_sub in
33917   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33918   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33919   esac ;;
33920 esac
33921 ac_abs_top_builddir=$ac_pwd
33922 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33923 # for backward compatibility:
33924 ac_top_builddir=$ac_top_build_prefix
33925
33926 case $srcdir in
33927   .)  # We are building in place.
33928     ac_srcdir=.
33929     ac_top_srcdir=$ac_top_builddir_sub
33930     ac_abs_top_srcdir=$ac_pwd ;;
33931   [\\/]* | ?:[\\/]* )  # Absolute name.
33932     ac_srcdir=$srcdir$ac_dir_suffix;
33933     ac_top_srcdir=$srcdir
33934     ac_abs_top_srcdir=$srcdir ;;
33935   *) # Relative name.
33936     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33937     ac_top_srcdir=$ac_top_build_prefix$srcdir
33938     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33939 esac
33940 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33941
33942
33943     cd "$ac_dir"
33944
33945     # Check for guested configure; otherwise get Cygnus style configure.
33946     if test -f "$ac_srcdir/configure.gnu"; then
33947       ac_sub_configure=$ac_srcdir/configure.gnu
33948     elif test -f "$ac_srcdir/configure"; then
33949       ac_sub_configure=$ac_srcdir/configure
33950     elif test -f "$ac_srcdir/configure.in"; then
33951       # This should be Cygnus configure.
33952       ac_sub_configure=$ac_aux_dir/configure
33953     else
33954       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
33955 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33956       ac_sub_configure=
33957     fi
33958
33959     # The recursion is here.
33960     if test -n "$ac_sub_configure"; then
33961       # Make the cache file name correct relative to the subdirectory.
33962       case $cache_file in
33963       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
33964       *) # Relative name.
33965         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
33966       esac
33967
33968       { $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
33969 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
33970       # The eval makes quoting arguments work.
33971       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33972            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
33973         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
33974     fi
33975
33976     cd "$ac_popdir"
33977   done
33978 fi
33979 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33980   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33981 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33982 fi
33983
This page took 1.780501 seconds and 4 git commands to generate.